From: Andrew Burgess Date: Thu, 11 Oct 2012 21:25:18 +0000 (+0000) Subject: http://sourceware.org/ml/gdb-patches/2012-10/msg00032.html X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2a7c8fd5b451d496c156fd0999150abc4fee9f02;p=binutils-gdb.git sourceware.org/ml/gdb-patches/2012-10/msg00032.html gdb/ChangeLog * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to reset thread numbering back to 1. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8b07e477850..e6867c62eec 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2012-10-11 Andrew Burgess + + * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to + reset thread numbering back to 1. + 2012-10-11 Doug Evans PR breakpoints/14643. diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index 14e989cd7a2..adc77e7bc1b 100644 --- a/gdb/remote-sim.c +++ b/gdb/remote-sim.c @@ -640,6 +640,9 @@ gdbsim_create_inferior (struct target_ops *target, char *exec_file, char *args, else argv = NULL; + if (!have_inferiors ()) + init_thread_list (); + if (sim_create_inferior (sim_data->gdbsim_desc, exec_bfd, argv, env) != SIM_RC_OK) error (_("Unable to create sim inferior."));