From: Joel Sherrill <joel.sherrill@oarcorp.com>
To: drow@false.org, gdb-patches@sourceware.org,
Ralf Corsepius <ralf.corsepius@rtems.org>
Subject: Re: gdb 6.6 sim/erc32 does not parse -E option
Date: Thu, 22 Feb 2007 17:28:00 -0000 [thread overview]
Message-ID: <45DDD2C6.4080606@oarcorp.com> (raw)
In-Reply-To: <20070222171239.GA13379@caradoc.them.org>
Daniel Jacobowitz wrote:
> On Thu, Feb 22, 2007 at 11:02:38AM -0600, Joel Sherrill wrote:
>
>> Hi,
>>
>> Apparently gdb 6.6 passes a -E endian option
>> to the sim_open hook. The erc32 simulator
>> does not parse this option and produces
>> a error message like this:
>>
>> (gdb) tar sim
>> unknown option -E
>> open of big failed
>> Connected to the simulator.
>>
>> The attached patch is in the style of the
>> existing code and silently eats the -E option
>> if the endian value is big or little.
>>
>
> Could you try this instead?
>
> http://sourceware.org/ml/gdb-patches/2007-02/msg00078.html
>
>
With this patch, gdb still passes a -E big to sim_open in the erc32
simulator code and there is nothing to parse it at that level.
AFAIK the erc32 simulator is big endian only and should just eat
the option for at least endian == big. My patch just ate the option
if it was either big or little and gave an error on any other value.
--joel
next prev parent reply other threads:[~2007-02-22 17:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-22 17:02 Joel Sherrill
2007-02-22 17:12 ` Daniel Jacobowitz
2007-02-22 17:28 ` Joel Sherrill [this message]
2007-02-22 18:16 ` Daniel Jacobowitz
2007-02-22 18:26 ` Joel Sherrill
2007-02-22 18:32 ` Daniel Jacobowitz
2007-02-22 18:46 ` Joel Sherrill
2007-02-22 18:49 ` 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=45DDD2C6.4080606@oarcorp.com \
--to=joel.sherrill@oarcorp.com \
--cc=drow@false.org \
--cc=gdb-patches@sourceware.org \
--cc=ralf.corsepius@rtems.org \
/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