From b92a518e7392026b969a7547e5b876ea9413f7ff Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Fri, 3 Mar 2006 14:48:55 +0000 Subject: [PATCH] * remote-utils.c (prepare_resume_reply): Move declaration of gdb_id_from_wait to the top of the block. --- gdb/gdbserver/ChangeLog | 5 +++++ gdb/gdbserver/remote-utils.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) 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); -- 2.30.2