diff options
author | Pedro Alves <palves@redhat.com> | 2016-07-21 12:23:48 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2016-07-21 15:30:03 +0100 |
commit | c25b7ccef4d6d96ed4af1d27c79d78767dba7161 (patch) | |
tree | 8261f1862f7c395cc5fcc5bb26ed5941218fc77b | |
parent | e3821cca157e93677ef098bf36526ccf24f497ac (diff) | |
download | gdb-c25b7ccef4d6d96ed4af1d27c79d78767dba7161.zip gdb-c25b7ccef4d6d96ed4af1d27c79d78767dba7161.tar.gz gdb-c25b7ccef4d6d96ed4af1d27c79d78767dba7161.tar.bz2 |
Remove unused variable in windows-nat.c
Leave the call for side effects.
gdb/ChangeLog:
2016-07-21 Pedro Alves <palves@redhat.com>
* windows-nat.c (handle_exception): Remove "th".
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/windows-nat.c | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d074a3d..5eeec97 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2016-07-21 Pedro Alves <palves@redhat.com> + * windows-nat.c (handle_exception): Remove "th". + +2016-07-21 Pedro Alves <palves@redhat.com> + * varobj.c (varobj_value_get_print_value): Move "gdbarch" to block scope that uses it. diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 149403a..c95dc9a 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -1014,13 +1014,12 @@ display_selectors (char * args, int from_tty) static int handle_exception (struct target_waitstatus *ourstatus) { - windows_thread_info *th; DWORD code = current_event.u.Exception.ExceptionRecord.ExceptionCode; ourstatus->kind = TARGET_WAITKIND_STOPPED; /* Record the context of the current thread. */ - th = thread_rec (current_event.dwThreadId, -1); + thread_rec (current_event.dwThreadId, -1); switch (code) { |