From: "Eli Zaretskii" <eliz@is.elta.co.il>
To: gdb@sources.redhat.com
Cc: ac131313@cygnus.com
Subject: Re: GDB on SGI Irix 6.5
Date: Thu, 19 Apr 2001 06:08:00 -0000 [thread overview]
Message-ID: <3405-Thu19Apr2001160546+0300-eliz@is.elta.co.il> (raw)
In-Reply-To: <Pine.SUN.3.91.1010418192856.456A-100000@is>
> Date: Wed, 18 Apr 2001 19:31:42 +0300 (IDT)
> From: Eli Zaretskii <eliz@is.elta.co.il>
>
> On Tue, 17 Apr 2001, Andrew Cagney wrote:
>
> > Hmm, I've this sinking feeling that, prior to me adding the assert() it
> > was falling off the end of the regcache and just blatting memory :-/
> >
> > 72, I've this feeling that it is the ``FP'':
> >
> > ac131313@localhost$ grep 72 config/mips/tm-*
> > config/mips/tm-mips.h:#define FP_REGNUM 72 /* Pseudo
> > register that contains true address of executing stack frame */
> >
> > As a quick hack, pump up NUM_PSEUDO_REGS to make space for this (and
> > possibly a few more).
>
> Thanks for the hint.
>
> However, this doesn't work: it again bumps into internal_error because
> there's no gdbarch method for fetching pseudo registers. How would such
> a method look for a target that doesn't have a frame pointer?
>
> Also, strangely enough, tm-irix3.h does define a place for FP in the
> registers array (at index 30). So why doesn't it define FP_REGNUM
> accordingly?
I think I've got it: tm-irix3.h is simply wrong for either Irix 6.5 or
the N32 ABI and the MIPS CPUs that support it (or both). Not only
should FP_REGNUM be set to 30, but the enumeration and the total
number of registers defined on tm-irix3.h is incorrect for the SGI
machine I have here.
tm-mips.h, which defines FP_REGNUM to 72, is also wrong for Irix, at
least for Irix 6.5 with N32 executables. I have no idea how could
this possibly work for anyone in the past.
I have a provisional patch which seems to DTRT for me. But to clean
it up (so that I can submit it without blushing ;-), I need help in
making several decisions, since I have no prior experience with, or
knowledge about, the different CPUs and ABIs supported by SGI Irix.
Questions:
- Should I make the change in tm-irix5.h, or should I leave it alone
and create irix6x.h? The issue here is that perhaps Irix 5 did
work like tm-irix5.h says, and I won't want to break that.
- What should I do about the different ABIs? At least 3 come to
mind: O32, N32, and N64. They have subtly different layouts of
registers, so if I need to set things up for more than a single
ABI, I'll need to know what's the current say-so about how this
should be done (e.g., does gdbarch has some functionality for
dynamically computing the registers array?).
Thanks in advance for any help.
next prev parent reply other threads:[~2001-04-19 6:08 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-09 0:08 Eli Zaretskii
2001-04-09 6:53 ` Daniel Berlin
2001-04-17 10:38 ` Andrew Cagney
2001-04-18 9:29 ` Eli Zaretskii
2001-04-19 6:08 ` Eli Zaretskii [this message]
2001-04-30 10:01 ` Andrew Cagney
2001-04-30 11:28 ` Eli Zaretskii
2001-04-19 18:06 David B Anderson
2001-04-21 11:12 ` Eli Zaretskii
2001-04-21 12:09 ` Paul Hilfinger
2001-04-21 13:09 ` David B Anderson
2001-04-21 13:19 ` Eli Zaretskii
2001-05-17 8:58 ` Eli Zaretskii
2001-05-17 9:15 ` Eli Zaretskii
2001-05-17 9:26 ` Daniel Berlin
2001-05-17 9:28 ` Eli Zaretskii
2001-05-17 9:41 ` Daniel Berlin
2001-05-17 11:33 ` Eli Zaretskii
2001-05-17 11:47 ` Daniel Berlin
2001-05-17 10:15 David B Anderson
2001-05-17 11:40 ` Eli Zaretskii
2001-06-13 1:53 Eli Zaretskii
[not found] <200106131650.JAA27856@quasar.engr.sgi.com>
2001-06-13 11:40 ` Eli Zaretskii
2001-06-13 13:05 ` Andrew Cagney
[not found] <Pine.SUN.3.91.1010612152328.3699B-100000@is>
[not found] ` <3B266F35.50007@cygnus.com>
[not found] ` <15142.30117.72465.686304@kwikemart.cygnus.com>
2001-06-13 1:55 ` Eli Zaretskii
2001-06-13 13:35 ` David B Anderson
2001-06-13 21:19 ` Daniel Berlin
[not found] <npae3c16ia.fsf@zwingli.cygnus.com>
2001-06-14 0:52 ` Eli Zaretskii
2001-06-14 10:05 ` Daniel Berlin
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=3405-Thu19Apr2001160546+0300-eliz@is.elta.co.il \
--to=eliz@is.elta.co.il \
--cc=ac131313@cygnus.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