[Skyeye-developer] How to debug a Hello World program in Skyeye
Jinhua Zhu
skyeye-dev at hotmail.com
Wed Jan 24 09:09:17 CST 2007
Attach gdb output for debugging hello world program.
Please hlep check my problem.
Thanks.
------------------------------------------------------------------------------------------
(gdb) target remote 127.0.0.1:12345
Remote debugging using 127.0.0.1:12345
0x01000000 in begin ()
warning: shared library handler failed to enable breakpoint
(gdb) stepi
Can't send signals to this remote system. SIGHUP not sent.
Program received signal SIGHUP, Hangup.
0x01000004 in begin ()
(gdb) stepi
Can't send signals to this remote system. SIGHUP not sent.
Program received signal SIGHUP, Hangup.
0x01000008 in begin ()
(gdb) stepi
Can't send signals to this remote system. SIGHUP not sent.
Program received signal SIGHUP, Hangup.
0x0100000c in begin ()
(gdb) stepi
Can't send signals to this remote system. SIGHUP not sent.
Program received signal SIGHUP, Hangup.
0x01000018 in hello () at hello.c:11
11 char * hellostr="helloworld";
(gdb) stepi
Can't send signals to this remote system. SIGHUP not sent.
Program received signal SIGHUP, Hangup.
0x0100001c in hello () at hello.c:11
11 char * hellostr="helloworld";
(gdb) stepi
Can't send signals to this remote system. SIGHUP not sent.
Program received signal SIGHUP, Hangup.
0x01000020 in hello () at hello.c:11
11 char * hellostr="helloworld";
(gdb) stepi
Can't send signals to this remote system. SIGHUP not sent.
Program received signal SIGHUP, Hangup.
hello () at hello.c:12
12 long* paddr=(long*)0xfffd001c;
(gdb) stepi
Can't send signals to this remote system. SIGHUP not sent.
Program received signal SIGHUP, Hangup.
0x01000028 in hello () at hello.c:12
12 long* paddr=(long*)0xfffd001c;
(gdb) stepi
Can't send signals to this remote system. SIGHUP not sent.
Program received signal SIGHUP, Hangup.
0x0100002c in hello () at hello.c:12
12 long* paddr=(long*)0xfffd001c;
(gdb) stepi
Can't send signals to this remote system. SIGHUP not sent.
Program received signal SIGHUP, Hangup.
hello () at hello.c:14
14 for(i=0;i<10;i++)
(gdb) stepi
Can't send signals to this remote system. SIGHUP not sent.
Program received signal SIGHUP, Hangup.
hello () at hello.c:11
11 char * hellostr="helloworld";
(gdb) stepi
Can't send signals to this remote system. SIGHUP not sent.
Program received signal SIGHUP, Hangup.
hello () at hello.c:16
16 * paddr=hellostr[i];
(gdb) stepi
Can't send signals to this remote system. SIGHUP not sent.
Program received signal SIGHUP, Hangup.
hello () at hello.c:14
14 for(i=0;i<10;i++)
(gdb) stepi
Can't send signals to this remote system. SIGHUP not sent.
Program received signal SIGHUP, Hangup.
0x01000040 in hello () at hello.c:14
14 for(i=0;i<10;i++)
(gdb) stepi
Can't send signals to this remote system. SIGHUP not sent.
Program received signal SIGHUP, Hangup.
hello () at hello.c:16
16 * paddr=hellostr[i];
(gdb) stepi
Can't send signals to this remote system. SIGHUP not sent.
Program received signal SIGHUP, Hangup.
hello () at hello.c:14
14 for(i=0;i<10;i++)
(gdb) stepi
Can't send signals to this remote system. SIGHUP not sent.
Program received signal SIGHUP, Hangup.
hello () at hello.c:19
19 }
(gdb)
Can't send signals to this remote system. SIGHUP not sent.
Program received signal SIGHUP, Hangup.
0x01000010 in begin ()
(gdb)
-----------------------------------------------------------------------------------------------
>From: "Jinhua Zhu" <skyeye-dev at hotmail.com>
>Reply-To: "Skyeyee< ehd8g(i.d;6eh!("
><skyeye-developer at lists.gro.clinux.org>
>To: skyeye-developer at lists.gro.clinux.org
>Subject: Re: [Skyeye-developer] How to debug a Hello World program in
>Skyeye
>Date: Tue, 23 Jan 2007 15:11:03 -0500
>
>Thanks. I remove start.S from the package so that skyeye can run helloworld
>program
>directly. Btw, I still could not debug the program correctly with gdb. For
>example, the
>loop in hello function needs to be run 10 times. But it doesn't in dgb. Is
>it because of
>the compiling optimization in arm-elf-gcc?
>
>>From: "kang shuo" <blackfin.kang at gmail.com>
>>Reply-To: "Skyeyee< ehd8g(i.d;6eh!("
>><skyeye-developer at lists.gro.clinux.org>
>>To: "Skyeyee<, ehd8g(i.d, 6eh!("
>><skyeye-developer at lists.gro.clinux.org>
>>Subject: Re: [Skyeye-developer] How to debug a Hello World program in
>>Skyeye
>>Date: Tue, 23 Jan 2007 08:58:12 +0800
>>
>>Of course , for arm platform, you can run helloworld in the following URL:
>>http://www.linuxfans.org/nuke//modules.php?name=Forums&file=viewtopic&t=82187
>>
>>and debug it.
>>
>>- Thanks
>>- Michael.Kang
>>
>>On 1/23/07, Jinhua Zhu <skyeye-dev at hotmail.com> wrote:
>>>Hi,
>>>
>>>Is it possible to load a Hello World program and debug in Skyeye directly
>>>(without uclinux os)?
>>>
>>>Thanks.
>>>
>>>_________________________________________________________________
>>>Invite your Hotmail contacts to join your friends list with Windows Live
>>>Spaces
>>>http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
>>>
>>>
>>>_______________________________________________
>>>Skyeye-developer mailing list
>>>Skyeye-developer at lists.gro.clinux.org
>>>http://lists.gro.clinux.org/cgi-bin/mailman/listinfo/skyeye-developer
>>>
>>
>>_______________________________________________
>>Skyeye-developer mailing list
>>Skyeye-developer at lists.gro.clinux.org
>>http://lists.gro.clinux.org/cgi-bin/mailman/listinfo/skyeye-developer
>
>_________________________________________________________________
>Invite your Hotmail contacts to join your friends list with Windows Live
>Spaces
>http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
>
>
>_______________________________________________
>Skyeye-developer mailing list
>Skyeye-developer at lists.gro.clinux.org
>http://lists.gro.clinux.org/cgi-bin/mailman/listinfo/skyeye-developer
_________________________________________________________________
Turn searches into helpful donations. Make your search count.
http://click4thecause.live.com/search/charity/default.aspx?source=hmemtagline_donation&FORM=WLMTAG
More information about the Skyeye-developer
mailing list