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)
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

index 392d77ae452c97ee5e885aa6151188876e874bd1..4c421262e33979067df0fb65af503baf818fbfb3 100644 (file)
@@ -1,3 +1,8 @@
+2018-09-10  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * record-btrace.c (get_thread_current_frame): Remove
+       old_inferior_ptid.
+
 2018-09-10  Jerome Guitton  <guitton@adacore.com>
 
        * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
index eafecd967d904d55c0e39c6642a530023b989e6f..8f1346e52e40b5ad187338569f14b2e44fd27f0a 100644 (file)
@@ -1971,7 +1971,6 @@ static struct frame_info *
 get_thread_current_frame (struct thread_info *tp)
 {
   struct frame_info *frame;
-  ptid_t old_inferior_ptid;
   int executing;
 
   /* Set current thread, which is implicitly used by