diff options
author | Andrew Burgess <aburgess@broadcom.com> | 2012-10-11 21:25:18 +0000 |
---|---|---|
committer | Andrew Burgess <aburgess@broadcom.com> | 2012-10-11 21:25:18 +0000 |
commit | 2a7c8fd5b451d496c156fd0999150abc4fee9f02 (patch) | |
tree | a4c47afedfea0eec33a4f02b1fd8b19f74b94fc7 | |
parent | 11fc905705c6bd2c7473138e3623ebf39f5bf1b3 (diff) | |
download | fsf-binutils-gdb-2a7c8fd5b451d496c156fd0999150abc4fee9f02.zip fsf-binutils-gdb-2a7c8fd5b451d496c156fd0999150abc4fee9f02.tar.gz fsf-binutils-gdb-2a7c8fd5b451d496c156fd0999150abc4fee9f02.tar.bz2 |
http://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.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/remote-sim.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8b07e47..e6867c6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2012-10-11 Andrew Burgess <aburgess@broadcom.com> + + * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to + reset thread numbering back to 1. + 2012-10-11 Doug Evans <dje@google.com> PR breakpoints/14643. diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index 14e989c..adc77e7 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.")); |