From: Stan Shebs <shebs@cygnus.com>
To: ben@sys.toronto.edu
Cc: gdb-patches@cygnus.com
Subject: Re: patch for 64 bit IRIX support
Date: Thu, 01 Apr 1999 00:00:00 -0000 [thread overview]
Message-ID: <199903110029.QAA21989@andros.cygnus.com> (raw)
In-Reply-To: <19990303232100.A4080@sys.toronto.edu>
From: Benjamin Gamsa <ben@sys.toronto.edu>
Date: Wed, 3 Mar 1999 23:21:00 -0500
I've included below a patch to gdb-4.17.85 to support the IRIX 64-bit
ABI. I've tried to keep the changes in line with the general structure
of gdb, but it still contains a few hacks. In particular, I'm not sure
about the configure stuff; such as how to specify that I want to build
for 64bit SGI targets rather than the default 32 bit target (for now I
just default irix6 to a new configuration file irix6-64, rather than the
previous irix5 that built the 32 bit version; this is clearly wrong).
Thanks for working on this! You're right, this will need some more
tinkering before it can go into the repository. Ideally, GDB would be
able to auto-detect whether an executable is 32- or 64-bit and adjust
its computations dynamically; so instead of assuming a particular
format of stack frame, the macros expand into functions that look
at a per-executable variable before jumping into the real code.
If that isn't going to work, perhaps because of old stupid ifdefs in
GDB that wire it to a particular size, then you will need to have a
separate config. I would suggest a name like mips-sgi-irix6n64, with
mips-sgi-irix6 falling back to the old 32-bit version.
Although I've done some simple preliminary testing to verify that it
can at least step through 64 bit programs and read variables, more
testing is clearly needed.
You can give your port a pretty good workout by using the GDB testsuite.
All the DejaGNU bits needed are on the ftp site, just build/install
it, go to gdb/testsuite in the objdir, and do "make check".
Stan
WARNING: multiple messages have this Message-ID
From: Stan Shebs <shebs@cygnus.com>
To: ben@sys.toronto.edu
Cc: gdb-patches@cygnus.com
Subject: Re: patch for 64 bit IRIX support
Date: Wed, 10 Mar 1999 16:29:00 -0000 [thread overview]
Message-ID: <199903110029.QAA21989@andros.cygnus.com> (raw)
Message-ID: <19990310162900.BqDUKChCjqi1ZKTzQaywGOV2NoXE9jP4KL0OSZwelI4@z> (raw)
In-Reply-To: <19990303232100.A4080@sys.toronto.edu>
From: Benjamin Gamsa <ben@sys.toronto.edu>
Date: Wed, 3 Mar 1999 23:21:00 -0500
I've included below a patch to gdb-4.17.85 to support the IRIX 64-bit
ABI. I've tried to keep the changes in line with the general structure
of gdb, but it still contains a few hacks. In particular, I'm not sure
about the configure stuff; such as how to specify that I want to build
for 64bit SGI targets rather than the default 32 bit target (for now I
just default irix6 to a new configuration file irix6-64, rather than the
previous irix5 that built the 32 bit version; this is clearly wrong).
Thanks for working on this! You're right, this will need some more
tinkering before it can go into the repository. Ideally, GDB would be
able to auto-detect whether an executable is 32- or 64-bit and adjust
its computations dynamically; so instead of assuming a particular
format of stack frame, the macros expand into functions that look
at a per-executable variable before jumping into the real code.
If that isn't going to work, perhaps because of old stupid ifdefs in
GDB that wire it to a particular size, then you will need to have a
separate config. I would suggest a name like mips-sgi-irix6n64, with
mips-sgi-irix6 falling back to the old 32-bit version.
Although I've done some simple preliminary testing to verify that it
can at least step through 64 bit programs and read variables, more
testing is clearly needed.
You can give your port a pretty good workout by using the GDB testsuite.
All the DejaGNU bits needed are on the ftp site, just build/install
it, go to gdb/testsuite in the objdir, and do "make check".
Stan
next prev parent reply other threads:[~1999-04-01 0:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-04-01 0:00 Benjamin Gamsa
1999-03-03 20:21 ` Benjamin Gamsa
1999-04-01 0:00 ` Stan Shebs [this message]
1999-03-10 16:29 ` Stan Shebs
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=199903110029.QAA21989@andros.cygnus.com \
--to=shebs@cygnus.com \
--cc=ben@sys.toronto.edu \
--cc=gdb-patches@cygnus.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