Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* stabs or ecoff for Linux/mips
@ 2001-06-07  9:31 H . J . Lu
  2001-06-07  9:56 ` Daniel Berlin
  2001-06-07 11:42 ` Stan Shebs
  0 siblings, 2 replies; 11+ messages in thread
From: H . J . Lu @ 2001-06-07  9:31 UTC (permalink / raw)
  To: GDB, binutils, linux-mips

What is the better debug format for Linux/mips in the terms of gdb
and binutils, stabs or ecoff? I know the future is dwarf2. But I need
something stable now. Since Linux/x86 uses stabs, I lean toward to
stabs. Any comments?


H.J.


^ permalink raw reply	[flat|nested] 11+ messages in thread
* stabs or ecoff for Linux/mips
@ 2001-06-07  9:33 H . J . Lu
  2001-06-07 11:04 ` Andrew Cagney
  0 siblings, 1 reply; 11+ messages in thread
From: H . J . Lu @ 2001-06-07  9:33 UTC (permalink / raw)
  To: GDB, gas2linux-mips

What is the better debug format for Linux/mips in the terms of gdb
and binutils, stabs or ecoff? I know the future is dwarf2. But I need
something stable now. Since Linux/x86 uses stabs, I lean toward to
stabs. Any comments?


H.J.


^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: stabs or ecoff for Linux/mips
@ 2001-06-11 11:25 Bob Zulawnik
  0 siblings, 0 replies; 11+ messages in thread
From: Bob Zulawnik @ 2001-06-11 11:25 UTC (permalink / raw)
  To: hjl; +Cc: gdb, binutils, linux-mips

"H . J . Lu" wrote:

> That matches my own experiences. In case you haven't noticed, I
> have checked in patches to switch Linux/mips to stabs in ELF :-).

For what it's worth : stabs format cannot express certain types
of debug info that mdebug (used in ecoff) can. An example of
that is so-called PDRs (Procedure Description Records) - they
describe frame size, register masks etc.). Thus, in order to
obtain information about a function (e.g. when setting a
breakpoint at the entrance to a function), gdb has to resort to 
heuristics and read the function prolog, trying to figure out
what registers are saved where, when is the frame setup complete
etc. There are assumptions made in that gdb code  (e.g.
mips32_heuristic_proc_desc() and mips16_heuristic_proc_desc())
that have to match exactly what the compiler has done (as in
"the occurrence of instruction 'x' signifies this"). Thus,
using the stabs opens the debugger to potential misinterpretations
of the code generated by the compiler (e.g. when a new type
of frame is introduced, or maybe with some weird optimization).
I understand that there are other arguments for using stabs and 
that dwarf2 is the long-term goal, this is just an FYI. 

Bob Zulawnik


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

end of thread, other threads:[~2001-06-11 11:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-07  9:31 stabs or ecoff for Linux/mips H . J . Lu
2001-06-07  9:56 ` Daniel Berlin
2001-06-07 11:42 ` Stan Shebs
2001-06-07 12:05   ` Daniel Berlin
2001-06-07 12:24     ` H . J . Lu
2001-06-07  9:33 H . J . Lu
2001-06-07 11:04 ` Andrew Cagney
2001-06-07 11:13   ` H . J . Lu
2001-06-07 11:20     ` Ian Lance Taylor
2001-06-07 11:27     ` Andrew Cagney
2001-06-11 11:25 Bob Zulawnik

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