This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug sim/9734] New: result of sim_create_sim not checked in remote-sim.c


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]