diff options
author | Daniel Jacobowitz <drow@false.org> | 2006-03-03 14:48:55 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2006-03-03 14:48:55 +0000 |
commit | b92a518e7392026b969a7547e5b876ea9413f7ff (patch) | |
tree | 8a0d1aaedc9680d183d5f45a13e235eb8e747047 /gdb/gdbserver/remote-utils.c | |
parent | 4f471f3957423c32c72298899a3e1f96b010d22a (diff) | |
download | gdb-b92a518e7392026b969a7547e5b876ea9413f7ff.zip gdb-b92a518e7392026b969a7547e5b876ea9413f7ff.tar.gz gdb-b92a518e7392026b969a7547e5b876ea9413f7ff.tar.bz2 |
* remote-utils.c (prepare_resume_reply): Move declaration
of gdb_id_from_wait to the top of the block.
Diffstat (limited to 'gdb/gdbserver/remote-utils.c')
-rw-r--r-- | gdb/gdbserver/remote-utils.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/gdbserver/remote-utils.c b/gdb/gdbserver/remote-utils.c index c365702..b8634e8 100644 --- a/gdb/gdbserver/remote-utils.c +++ b/gdb/gdbserver/remote-utils.c @@ -681,9 +681,11 @@ prepare_resume_reply (char *buf, char status, unsigned char signo) if (using_threads) { + unsigned int gdb_id_from_wait; + /* FIXME right place to set this? */ thread_from_wait = ((struct inferior_list_entry *)current_inferior)->id; - unsigned int gdb_id_from_wait = thread_to_gdb_id (current_inferior); + gdb_id_from_wait = thread_to_gdb_id (current_inferior); if (debug_threads) fprintf (stderr, "Writing resume reply for %ld\n\n", thread_from_wait); |