public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug sim/9734] New: result of sim_create_sim not checked in remote-sim.c
@ 2009-01-12 14:27 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
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: richard dot stuckey at arc dot com @ 2009-01-12 14:27 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 7+ messages in thread
[parent not found: <bug-9734-4717@http.sourceware.org/bugzilla/>]

end of thread, other threads:[~2012-02-16 18:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-12 14:27 [Bug sim/9734] New: result of sim_create_sim not checked in remote-sim.c 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
     [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

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).