From: David Anderson <davea@quasar.engr.sgi.com>
To: gdb@sources.redhat.com
Subject: Re: MIPS stack tracing
Date: Mon, 04 Feb 2002 09:22:00 -0000 [thread overview]
Message-ID: <200202041721.JAA16362@quasar.engr.sgi.com> (raw)
Daniel Jacobowitz <drow@mvista.com>
>
> .mdebug is the ECOFF/Third-Eye debugging info format; binutils recently
> switched to generating stabs-in-ELF like other targets instead.
>
> To my complete surprise, we apparently get PDR information out of the
> .mdebug section. This is somewhat bizarre, as it is also present in a
> .pdr section independent of data format. We need to read in this
> information. I'll investigate next week (if no one beats me to it :).
The original third-eye was (as you say) added to COFF
by MIPS (SGI was separate then, mid 1980's).
No real sections. the PDR was inside the third-eye data.
When MIPS/SGI moved to Elf we made the third-eye
data be a section named .mdebug but with
bit-for-bit identical contents to the coff-object
third-eye. There was no .pdr section.
The third-eye data structures were not ideal, in that
they had absolute (not section-relative) file offsets,
and those, of course, were always wrong for objects-inside-archives
as such objects-inside-archives were simply plunked in by ar(1)
and extracted by ld with no update of the mdebug data.
Third-eye was designed this way precisely because
various object formats of the time third-eye was
designed did not have real sections
and adding extra sections was a major hassle (compatibility-wise
and more). So section-relative offsets were an idea that
just did not work back then (and I guess Peter Rowell,
the designer (he was Third-eye Software),
just did not think of making the mdebug-internal
offsets be mdebug-relative (or decided not to, I don't know...)).
Andrew Cagney <ac131313@cygnus.com>
>It would go back to SGI (Hmm, didn't sgi switch to dwarf2?) which was
>using mdebug info. A number of embedded MIPS toolchains would have been
>mdebug for compatability (I know this as I filed gdb/150, gdb/152 and
>gdb/149) and I have a sinking feeling that they haven't yet ``just gone
>away''.
Ok. More than you want to know (sorry).
SGI has 3 ABIs, all ELF (since the mid 1990's).
An executable can be built in any ABI.
o32. Uses mdebug (third-eye). Follows
the MIPS Processor Supplement.
Intended for MIPS-1 (and now MIPS-2
cpu chips only.
This will never change, compiler in stasis :-)
n32 Uses dwarf-2. For MIPS-3 and MIPS-4 cpu chips,
takes advantage of 64bit integer registers
and additional floating point registers.
pointers are 32 bits.
Not yet using dwarf-3.
ABI defined in N32 Handbook (http://techpubs.sgi.com)
64 Uses dwarf-2. For MIPS-3 and MIPS-4 cpu chips,
takes advantage of 64bit integer registers
and additional floating point registers.
pointers are 64 bits.
Not yet using dwarf-3.
David Anderson davea@sgi.com
next reply other threads:[~2002-02-04 17:22 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-04 9:22 David Anderson [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-02-07 6:56 Don Bowman
2002-02-07 7:30 ` Daniel Jacobowitz
2002-02-06 9:40 Don Bowman
2002-02-06 16:45 ` Daniel Jacobowitz
2002-02-03 15:49 Don Bowman
2002-02-03 12:29 Don Bowman
2002-02-03 12:29 ` Daniel Jacobowitz
2002-02-03 12:29 ` Andrew Cagney
2002-02-03 12:13 ` Daniel Jacobowitz
2002-02-03 12:29 ` Andrew Cagney
2002-02-02 12:14 Don Bowman
2002-02-02 14:45 ` Daniel Jacobowitz
2002-02-02 11:26 Don Bowman
2002-02-02 12:11 ` Stan Shebs
2002-02-02 10:58 David Anderson
2002-02-02 9:57 David Anderson
2002-02-01 10:15 Don Bowman
2002-02-01 11:32 ` Daniel Jacobowitz
2002-02-02 11:16 ` Greg McGary
2002-01-31 14:27 Don Bowman
2002-02-01 9:37 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200202041721.JAA16362@quasar.engr.sgi.com \
--to=davea@quasar.engr.sgi.com \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox