public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "richard dot stuckey at arc dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug sim/9734] result of sim_create_inferior not checked in remote-sim.c
Date: Mon, 12 Jan 2009 14:48:00 -0000	[thread overview]
Message-ID: <20090112144843.14983.qmail@sourceware.org> (raw)
In-Reply-To: <20090112142713.9734.richard.stuckey@arc.com>


------- Additional Comments From richard dot stuckey at arc dot com  2009-01-12 14:48 -------
I have added a check to the ARC-specific version of sim_create_inferior that the
endianness of the executable file matches the endiannness of the simulator
target, for the situation that the target instance is created before the
executable file has been specified (this check should also probably go into the
gdb core code, in remote-sim.c, but I try to avoid altering the core code where
possible); if the check fails, the function gives a warning and returns 
SIM_RC_FAIL.

This, together with the change I suggested to gdbsim_create_inferior, gives the
behaviour:

(gdb) set endian big
The target is assumed to be big endian
(gdb) target sim
Connected to the simulator.
(gdb) file test.little
Reading symbols from test.little...done.
(gdb) load
(gdb) run
Starting program: test.little 
Target is big-endian but executable file test.little is little-endian.
The program is not being run.

gdb appears to be left in a stable state at this point, but I have not carried
out extensive testing on this, so am willing to accept that throwing an error
may be better.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=9734

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


  parent reply	other threads:[~2009-01-12 14:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-12 14:27 [Bug sim/9734] New: result of sim_create_sim " richard dot stuckey at arc dot com
2009-01-12 14:27 ` [Bug sim/9734] result of sim_create_inferior " richard dot stuckey at arc dot com
2009-01-12 14:33 ` pedro at codesourcery dot com
2009-01-12 14:48 ` richard dot stuckey at arc dot com [this message]
     [not found] <bug-9734-4717@http.sourceware.org/bugzilla/>
2012-02-16  4:44 ` vapier at gentoo dot org
2012-02-16  4:57 ` vapier at gentoo dot org
2012-02-16 18:33 ` vapier at gentoo dot org

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=20090112144843.14983.qmail@sourceware.org \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).