This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug sim/9734] New: result of sim_create_sim not checked in remote-sim.c
- From: "richard dot stuckey at arc dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 12 Jan 2009 14:27:14 -0000
- Subject: [Bug sim/9734] New: result of sim_create_sim not checked in remote-sim.c
- Reply-to: sourceware-bugzilla at sourceware dot org
If sim_create_inferior fails to create the inferior, for whatever reason, gdb
should not mark the target as running.
The code at the end of function gdbsim_create_inferior in remote-sim.c should be
changed to:
if (sim_create_inferior (gdbsim_desc, exec_bfd, argv, env) == SIM_RC_OK)
{
inferior_ptid = pid_to_ptid (42);
target_mark_running (&gdbsim_ops);
insert_breakpoints (); /* Needed to get correct instruction in cache */
clear_proceed_status ();
}
--
Summary: result of sim_create_sim not checked in remote-sim.c
Product: gdb
Version: 6.8
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: sim
AssignedTo: unassigned at sourceware dot org
ReportedBy: richard dot stuckey at arc dot com
CC: gdb-prs at sourceware dot org
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.