diff options
author | aburgess <aburgess> | 2012-10-11 21:25:17 +0000 |
---|---|---|
committer | aburgess <aburgess> | 2012-10-11 21:25:17 +0000 |
commit | 28fabb616b116a014365a6f14616773dab999b38 (patch) | |
tree | deb058f2e9ba5051dccb21033801b19641f5adc2 /gdb/remote-sim.c | |
parent | 97d4ee2eb1dc37a678281d72a68c22848ee381ce (diff) | |
download | gdb-28fabb616b116a014365a6f14616773dab999b38.tar.gz |
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.
Diffstat (limited to 'gdb/remote-sim.c')
-rw-r--r-- | gdb/remote-sim.c | 3 |
1 files changed, 3 insertions, 0 deletions
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.")); |