public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] No stack frames in gdb
@ 1999-05-06  0:17 Andrew Lunn
  1999-05-06  0:29 ` Jesper Skov
  1999-05-06  0:33 ` Brendan Simon
  0 siblings, 2 replies; 3+ messages in thread
From: Andrew Lunn @ 1999-05-06  0:17 UTC (permalink / raw)
  To: ecos-discuss

I've a problem with gdb. It does not show the stack frames. It can
tell you what function you are in, but not what function calls are
nested to get where you are.

bash-2.02$ ppcgdb mtest.exe
GNU gdb 4.17-ecosSWtools-981021
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.  This version of GDB is supported
for customers of Cygnus Solutions.  Type "show warranty" for details.
This GDB was configured as "--host=i586-cygwin32 --target=powerpc-eabi"...
(gdb) psim
Size of register r0 (0) incorrect (1 instead of 4))Connected to the simulator.
Breakpoint 1 at 0x83868: file //d/cygnus/ecos-1.1/packages/infra/v1_1/src/buffer.
cxx, line 707.
(gdb) break main
Breakpoint 2 at 0x80324: file mtest.c, line 14.
(gdb) run
Starting program: /h/aplett/mbuf/mtest.exe

Breakpoint 2, main () at mtest.c:14
14        mbinit();
(gdb) s
mbinit () at upic_mbuf.c:64
64              mmbfree = NULL; mclfree = NULL;
(gdb) s
65              m_mballoc(NMB_INIT);
(gdb) s
m_mballoc (nmb=128) at upic_mbuf.c:82
82              nbytes = (nmb * MSIZE);
(gdb) where
#0  m_mballoc (nmb=128) at upic_mbuf.c:82
(gdb)

Here i am three functions deep, but it only shows the current
function. Do i need to turn on some configuration option so that stack
frame GBD understands are be used?

	Thanks
		Andrew

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

* Re: [ECOS] No stack frames in gdb
  1999-05-06  0:17 [ECOS] No stack frames in gdb Andrew Lunn
@ 1999-05-06  0:29 ` Jesper Skov
  1999-05-06  0:33 ` Brendan Simon
  1 sibling, 0 replies; 3+ messages in thread
From: Jesper Skov @ 1999-05-06  0:29 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: ecos-discuss

>>>>> "Andrew" == Andrew Lunn <lunn@ma.tech.ascom.ch> writes:

Andrew> I've a problem with gdb. It does not show the stack frames. It
Andrew> can tell you what function you are in, but not what function
Andrew> calls are nested to get where you are.

This is a known problem (ID 18036). Unfortunately there is no
workaround.

Jesper

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

* Re: [ECOS] No stack frames in gdb
  1999-05-06  0:17 [ECOS] No stack frames in gdb Andrew Lunn
  1999-05-06  0:29 ` Jesper Skov
@ 1999-05-06  0:33 ` Brendan Simon
  1 sibling, 0 replies; 3+ messages in thread
From: Brendan Simon @ 1999-05-06  0:33 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: ecos-discuss

Have you tried the "backtrace" command ?  I use "bt" for short.

Brendan Simon.



Andrew Lunn wrote:

> I've a problem with gdb. It does not show the stack frames. It can
> tell you what function you are in, but not what function calls are
> nested to get where you are.
>
> bash-2.02$ ppcgdb mtest.exe
> GNU gdb 4.17-ecosSWtools-981021
> Copyright 1998 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.  This version of GDB is supported
> for customers of Cygnus Solutions.  Type "show warranty" for details.
> This GDB was configured as "--host=i586-cygwin32 --target=powerpc-eabi"...
> (gdb) psim
> Size of register r0 (0) incorrect (1 instead of 4))Connected to the simulator.
> Breakpoint 1 at 0x83868: file //d/cygnus/ecos-1.1/packages/infra/v1_1/src/buffer.
> cxx, line 707.
> (gdb) break main
> Breakpoint 2 at 0x80324: file mtest.c, line 14.
> (gdb) run
> Starting program: /h/aplett/mbuf/mtest.exe
>
> Breakpoint 2, main () at mtest.c:14
> 14        mbinit();
> (gdb) s
> mbinit () at upic_mbuf.c:64
> 64              mmbfree = NULL; mclfree = NULL;
> (gdb) s
> 65              m_mballoc(NMB_INIT);
> (gdb) s
> m_mballoc (nmb=128) at upic_mbuf.c:82
> 82              nbytes = (nmb * MSIZE);
> (gdb) where
> #0  m_mballoc (nmb=128) at upic_mbuf.c:82
> (gdb)
>
> Here i am three functions deep, but it only shows the current
> function. Do i need to turn on some configuration option so that stack
> frame GBD understands are be used?
>
>         Thanks
>                 Andrew

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

end of thread, other threads:[~1999-05-06  0:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-05-06  0:17 [ECOS] No stack frames in gdb Andrew Lunn
1999-05-06  0:29 ` Jesper Skov
1999-05-06  0:33 ` Brendan Simon

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).