public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] GDB doesn't run at i386 hello application
@ 2006-07-26 14:16 Thilo Hutt
  2006-07-27  1:23 ` David Brennan
  0 siblings, 1 reply; 2+ messages in thread
From: Thilo Hutt @ 2006-07-26 14:16 UTC (permalink / raw)
  To: ecos-discuss


Hello,

From the templates I had build a Redboot floppy binary image for an i386 with intel 82544 interface and it run at the PC. Now I had rebuilt eCos with package "default" and linked the libraries with the hello example. When I download the application with the load command via yModem over serial or TCP/IP the application run and put out the "hello, ecos World!". But if I want to debug the application with gdb, set to target remote <ipadress>:9000 the debugger stops inside the library module atexit.cxx and runs no more. I had to restart the target pc. Here are the GDB steps:

(gdb) file hello
Reading symbols from /cygdrive/h/Triton/Test/hello...done.
(gdb) target remote 192.168.50.131:9000
Remote debugging using 192.168.50.131:9000
0x000108d5 in ?? ()
    at /ecos-c/cygwin/opt/ecos/ecos-2.0/packages/language/c/libc/startup/v2_0/src/atexit.cxx:85
85      cyg_libc_invoke_atexit_handlers( void )
Current language:  auto; currently c++

.......


And I'm no more able to run the program or step any line.

Did I use the wrong gdb commands?
Or must I use a different package than "default" to use the gdb inside the application?

Regards,
Thilo


--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] GDB doesn't run at i386 hello application
  2006-07-26 14:16 [ECOS] GDB doesn't run at i386 hello application Thilo Hutt
@ 2006-07-27  1:23 ` David Brennan
  0 siblings, 0 replies; 2+ messages in thread
From: David Brennan @ 2006-07-27  1:23 UTC (permalink / raw)
  To: Thilo Hutt; +Cc: ecos-discuss

Silly question,
Did you load the file to the target? Or did GDB hang immediately  
after the target command. You don't show what happened next.

On Jul 26, 2006, at 7:18 AM, Thilo Hutt wrote:

>
> Hello,
>
>> From the templates I had build a Redboot floppy binary image for  
>> an i386 with intel 82544 interface and it run at the PC. Now I had  
>> rebuilt eCos with package "default" and linked the libraries with  
>> the hello example. When I download the application with the load  
>> command via yModem over serial or TCP/IP the application run and  
>> put out the "hello, ecos World!". But if I want to debug the  
>> application with gdb, set to target remote <ipadress>:9000 the  
>> debugger stops inside the library module atexit.cxx and runs no  
>> more. I had to restart the target pc. Here are the GDB steps:
>
> (gdb) file hello
> Reading symbols from /cygdrive/h/Triton/Test/hello...done.
> (gdb) target remote 192.168.50.131:9000
> Remote debugging using 192.168.50.131:9000
> 0x000108d5 in ?? ()
>     at /ecos-c/cygwin/opt/ecos/ecos-2.0/packages/language/c/libc/ 
> startup/v2_0/src/atexit.cxx:85
> 85      cyg_libc_invoke_atexit_handlers( void )
> Current language:  auto; currently c++
>
> .......
>
>
> And I'm no more able to run the program or step any line.
>
> Did I use the wrong gdb commands?
> Or must I use a different package than "default" to use the gdb  
> inside the application?
>
> Regards,
> Thilo
>
>
> --
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ 
> ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos- 
> discuss
>
>
>


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-07-27  1:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-26 14:16 [ECOS] GDB doesn't run at i386 hello application Thilo Hutt
2006-07-27  1:23 ` David Brennan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).