From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3815 invoked by alias); 12 Jan 2009 14:27:14 -0000 Received: (qmail 3731 invoked by uid 48); 12 Jan 2009 14:27:14 -0000 Date: Mon, 12 Jan 2009 14:27:00 -0000 From: "richard dot stuckey at arc dot com" To: gdb-prs@sourceware.org Message-ID: <20090112142713.9734.richard.stuckey@arc.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug sim/9734] New: result of sim_create_sim not checked in remote-sim.c X-Bugzilla-Reason: CC Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org X-SW-Source: 2009-q1/txt/msg00045.txt.bz2 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.