<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=MsoNormal><span class=postbody><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>Hello, Can anyone tell me any special setup I might
need to be able to debug a NutOS application under avr-gdb. <o:p></o:p></span></font></span></p>

<p class=MsoNormal><span class=postbody><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></span></p>

<p class=MsoNormal><span class=postbody><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>Currently I am encountering strange behaviour. For
instance, I hit a given breakpoint and everything looks good, I have a local
int n that I increment and check and print in gdb it looks ok. I have a local char
array however that is displayed incorrectly in gdb. If I do a memset to this
local char array of 0 and then do a print on it and get garbage in gdb, not
zeros. If I do a memcpy "Testing" into my local array and then print
it in gdb I again get garbage (the same garbage in fact). If I do a printf on
it in software at the same location I get "Testing". I assume this
has to do with the ATMega128 architecture and gdb setup not looking at the
correct memory space, but I'm new to using both gdb and this platform so am at
something of a loss on how this might be set up. Any ideas?</span></font></span><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

</body>

</html>