From: Joel Brobecker <brobecker@adacore.com>
To: Michael Snyder <msnyder@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: dumb question; mips multi-abi
Date: Thu, 17 Mar 2005 19:52:00 -0000 [thread overview]
Message-ID: <20050317195206.GV1156@adacore.com> (raw)
In-Reply-To: <4239DD2B.8070306@redhat.com>
> I confess I have not been following the development of ABI support
> very closely. I have a user who wants to debug an application that
> uses a mix of (essentially) o32 and o64 code. I think he has some
> sort of calling translation layer between the two.
>
> Is that at all possible? Can gdb switch back and forth on the fly,
> while debugging a single app? Maybe manually? Maybe without expecting
> to be able to bridge the backtrace?
Hmmm, I am a bit pessimistic about this, unfortunately. I can't tell
you for sure, because I don't know this area of mips-tdep very much,
but my recent reading of this file seems to indicate that the ABI
is set in the gdbarch tdep structure when the executable is loaded.
I also noticed recently that you could force the ABI using:
add_setshow_enum_cmd ("abi", class_obscure, mips_abi_strings,
&mips_abi_string, _("\
Set the MIPS ABI used by this program."), _("\
Show the MIPS ABI used by this program."), _("\
This option can be set to one of:\n\
auto - the default ABI associated with the current binary\n\
o32\n\
o64\n\
n32\n\
n64\n\
eabi32\n\
eabi64"),
mips_abi_update,
show_mips_abi,
&setmipscmdlist, &showmipscmdlist);
But then again, this setting is only used when initializing the
gdbarch structure...
It looks like you'll have to choose on ABI between the two... :-/
--
Joel
next prev parent reply other threads:[~2005-03-17 19:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-17 19:40 Michael Snyder
2005-03-17 19:52 ` Daniel Jacobowitz
2005-03-17 19:52 ` Joel Brobecker [this message]
2005-03-17 19:58 ` Daniel Jacobowitz
2005-03-17 21:25 ` Joel Brobecker
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=20050317195206.GV1156@adacore.com \
--to=brobecker@adacore.com \
--cc=gdb-patches@sources.redhat.com \
--cc=msnyder@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