Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Re: Debugging frameless code
@ 2000-09-29  2:27 Nicolas.Thery
  2000-09-29  2:44 ` Kevin Buettner
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas.Thery @ 2000-09-29  2:27 UTC (permalink / raw)
  To: gdb

Kevin Buettner <kevinb@cygnus.com> wrote:

>  >  To  be  more  precise,  is  it  possible  to dump stack backtrace for
frameless
> > code using a recent version of gdb and elf/dwarf2 (and gcc as the
> > compiler)?
>
> In some cases, yes.  For example, I've been able to do this for
> Linux/IA-64.  (But it's also the case that as the optimization gets
> more aggressive, this could fail.)
>
> Which target in particular were you wondering about?

Thanks for your answer.

I'm interested in ARM/THUMB debugging.  Currently I use GDB 4.17 (from
Cygnus GNUPro 98r2) with PE-COFF/STABS.  With that configuration backtrace
does not work if the involved functions are frameless.  I was wondering
whether the situation would be improved by using a more recent version of
GDB and/or ELF/DWARF.

I looked at the ARM backtrace code in the GDB CVS repository a couple of
months ago and it seemed quite similar to GDB 4.17 but I may be wrong.

Nicolas


^ permalink raw reply	[flat|nested] 3+ messages in thread
* Debugging frameless code
@ 2000-09-28  7:44 Nicolas.Thery
  0 siblings, 0 replies; 3+ messages in thread
From: Nicolas.Thery @ 2000-09-28  7:44 UTC (permalink / raw)
  To: gdb

Hi,

GDB documentation states that gdb has limited ability to deal with code
compiled without frame pointer.

Does this limitation applies to every version of gdb and every kind of
binary/debug format?

To be more precise, is it possible to dump stack backtrace for frameless
code using a recent version of gdb and elf/dwarf2 (and gcc as the
compiler)?

I've been told that dwarf2 includes information that can help a debugger in
such a case, but I don't know whether gcc actually emits these information
and whether gdb is able to use them.

Thanks in advance


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

end of thread, other threads:[~2000-09-29  2:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-29  2:27 Debugging frameless code Nicolas.Thery
2000-09-29  2:44 ` Kevin Buettner
  -- strict thread matches above, loose matches on Subject: below --
2000-09-28  7:44 Nicolas.Thery

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox