[2/2] Remove unused variable in windows-nat.c
Commit Message
Leave the call for side effects.
gdb/ChangeLog:
yyyy-mm-dd Pedro Alves <palves@redhat.com>
* windows-nat.c (handle_exception): Remove "th".
---
gdb/windows-nat.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Comments
On Thu, Jul 21, 2016 at 12:37 PM, Pedro Alves <palves@redhat.com> wrote:
> Leave the call for side effects.
>
> gdb/ChangeLog:
> yyyy-mm-dd Pedro Alves <palves@redhat.com>
>
> * windows-nat.c (handle_exception): Remove "th".
It is good to me.
On 07/21/2016 03:03 PM, Yao Qi wrote:
> On Thu, Jul 21, 2016 at 12:37 PM, Pedro Alves <palves@redhat.com> wrote:
>> Leave the call for side effects.
>>
>> gdb/ChangeLog:
>> yyyy-mm-dd Pedro Alves <palves@redhat.com>
>>
>> * windows-nat.c (handle_exception): Remove "th".
>
> It is good to me.
>
Pushed.
Thanks,
Pedro Alves
@@ -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)
{