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.
+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
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