From: Daniel Jacobowitz <drow@mvista.com>
To: Kris Warkentin <kewarken@qnx.com>
Cc: "Gdb@Sources.Redhat.Com" <gdb@sources.redhat.com>
Subject: Re: [RFC] target defined OSABI sniffer
Date: Thu, 26 Jun 2003 14:46:00 -0000 [thread overview]
Message-ID: <20030626144607.GA19638@nevyn.them.org> (raw)
In-Reply-To: <040001c33bf1$4ed98060$0202040a@catdog>
On Thu, Jun 26, 2003 at 10:43:29AM -0400, Kris Warkentin wrote:
> It seems that a lot of effort has been put into the multi-arch stuff but
> most of it centers around recognizing a binary and setting things up based
> on that. I'm pondering whether that is the right approach in all cases.
> Shouldn't the target be telling gdb what it should be doing rather than the
> other way around? I've been looking at different ways of getting gdb to
> recognize a QNX binary so that it can set the OSABI properly but shouldn't
> the fact that I'm connected to a remote neutrino machine be sufficient?
>
> One possible solution that I'm considering is to put something like a
> TARGET_SNIFF_OSABI() type function in the generic sniffer. That way, when
> I'm connected to a remote machine, I can just set the osabi and arch to
> match that machine. Then, if the binary isn't compatable, we can error out.
>
> In the native case, my current_target should KNOW that it's on a Neutrino
> box and be able to respond with the appropriate osabi.
>
> Can anyone comment on some possible downsides of this? Our chief architect
> is fairly insistent that we shouldn't need a way to recognize a Neutrino
> binary and I'm not having a lot of luck convincing him otherwise. Just from
> my experience chasing these osabi problems, it looks like there are LOTS of
> places where the arch can shift under my feet. I'm thinking that maybe core
> files or simulators might be a problem. The other problem might be that
You're quite right. How do you expect to take a binary and a core dump
and realize they are QNX?
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
next prev parent reply other threads:[~2003-06-26 14:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-26 14:43 Kris Warkentin
2003-06-26 14:46 ` Daniel Jacobowitz [this message]
2003-06-26 15:50 ` Andrew Cagney
2003-06-26 18:56 ` Kris Warkentin
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=20030626144607.GA19638@nevyn.them.org \
--to=drow@mvista.com \
--cc=gdb@sources.redhat.com \
--cc=kewarken@qnx.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).