Remove unused variable in record-btrace.c
authorSimon Marchi <simon.marchi@ericsson.com>
Mon, 10 Sep 2018 16:11:01 +0000 (17:11 +0100)
committerSimon Marchi <simon.marchi@ericsson.com>
Mon, 10 Sep 2018 16:11:46 +0000 (17:11 +0100)
commit8ec235834d454a66a89fe16bc62e11497eb79078
tree9f52aaf8889738d8980e74c51994e58690d835e5
parent1f5d1570c0eaadbb72d450211f70b24c4c23ac8e
Remove unused variable in record-btrace.c

old_inferior_ptid is unused, this is caught by a gcc built from git
recently, not sure about previous versions:

/home/emaisin/src/binutils-gdb/gdb/record-btrace.c: In function ‘frame_info* get_thread_current_frame(thread_info*)’:
/home/emaisin/src/binutils-gdb/gdb/record-btrace.c:1974:10: error: unused variable ‘old_inferior_ptid’ [-Werror=unused-variable]
1974 |   ptid_t old_inferior_ptid;
     |          ^~~~~~~~~~~~~~~~~

gdb/ChangeLog:

* record-btrace.c (get_thread_current_frame): Remove
old_inferior_ptid.
gdb/ChangeLog
gdb/record-btrace.c