From: Daniel Jacobowitz Date: Fri, 3 Mar 2006 14:48:55 +0000 (+0000) Subject: * remote-utils.c (prepare_resume_reply): Move declaration X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b92a518e7392026b969a7547e5b876ea9413f7ff;p=binutils-gdb.git * remote-utils.c (prepare_resume_reply): Move declaration of gdb_id_from_wait to the top of the block. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index a84b4784d57..119736e7626 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2006-03-03 Daniel Jacobowitz + + * remote-utils.c (prepare_resume_reply): Move declaration + of gdb_id_from_wait to the top of the block. + 2006-02-15 Daniel Jacobowitz * linux-low.c (regsets_store_inferior_registers): Read the regset diff --git a/gdb/gdbserver/remote-utils.c b/gdb/gdbserver/remote-utils.c index c36570239f8..b8634e877fe 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);