This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Can't connect to simulator that doesn't have bi-endian
Hello Daniel,
I see my patch is not reasonable.
I read man1/*-*-run.1 again and there is no description about -E.
Simulators have no responsibility to implement -E option, right?
If this is true, GDB should not expect that all simulators have -E.
(It's also possible to fix man1/run.1.)
Any comments are welcome.
On 2007/01/05, at 23:34, Daniel Jacobowitz wrote:
2007-01-04 Masaki Muranaka <monaka@monami-software.com>
* common/sim-options.c (enum STANDARD_OPTIONS, standard_options,
standard_option_handler): Enable OPTION_ENDIAN (-E) regardless of
SIM_HAVE_BIENDIAN definition.
I researched the history of this problem. The use of -E was added
long
ago; I don't know precisely when. In November 2003, it was
adjusted to
depend on selected_byte_order (), but that patch was buggy - it never
registered as either big or little endian. Then I fixed the bug in
2006, and we started getting -E again.
The problem is that this patch won't fix all the simulators. d10v,
for instance, doesn't handle -E or use common/sim-options.c.
Does anyone reading this know how that used to work?
--
Masaki Muranaka
Monami software