This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug sim/9734] result of sim_create_inferior not checked in remote-sim.c
- From: "pedro at codesourcery dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 12 Jan 2009 14:33:55 -0000
- Subject: [Bug sim/9734] result of sim_create_inferior not checked in remote-sim.c
- References: <20090112142713.9734.richard.stuckey@arc.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From pedro at codesourcery dot com 2009-01-12 14:33 -------
I see that the result of sim_create_inferior is still not checked on current
mainline. I think that it would be best to throw an error() instead, otherwise
currently core gdb will probably assert, in thinking the inferior was created.
if (sim_create_inferior (gdbsim_desc, exec_bfd, argv, env) != SIM_RC_OK)
error (_("foo failed to create, blah!"));
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
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.