| Index: gdb/gdbserver/gdbthread.h | 
| diff --git a/gdb/gdbserver/gdbthread.h b/gdb/gdbserver/gdbthread.h | 
| index d863ec00104b38c262099c654e992f95da8fde7a..b43d67692106a720a4fec96b753fef88038c64c7 100644 | 
| --- a/gdb/gdbserver/gdbthread.h | 
| +++ b/gdb/gdbserver/gdbthread.h | 
| @@ -1,6 +1,5 @@ | 
| /* Multi-thread control defs for remote server for GDB. | 
| -   Copyright (C) 1993, 1995, 1997-2000, 2002-2012 Free Software | 
| -   Foundation, Inc. | 
| +   Copyright (C) 1993-2013 Free Software Foundation, Inc. | 
|  | 
| This file is part of GDB. | 
|  | 
| @@ -21,6 +20,9 @@ | 
| #define GDB_THREAD_H | 
|  | 
| #include "server.h" | 
| +#include "inferiors.h" | 
| + | 
| +struct btrace_target_info; | 
|  | 
| struct thread_info | 
| { | 
| @@ -58,6 +60,9 @@ struct thread_info | 
| Each item in the list holds the current step of the while-stepping | 
| action.  */ | 
| struct wstep_state *while_stepping; | 
| + | 
| +  /* Branch trace target information for this thread.  */ | 
| +  struct btrace_target_info *btrace; | 
| }; | 
|  | 
| extern struct inferior_list all_threads; | 
| @@ -68,4 +73,6 @@ void add_thread (ptid_t ptid, void *target_data); | 
| struct thread_info *find_thread_ptid (ptid_t ptid); | 
| struct thread_info *gdb_id_to_thread (unsigned int); | 
|  | 
| +/* Get current thread ID (Linux task ID).  */ | 
| +#define current_ptid ((struct inferior_list_entry *) current_inferior)->id | 
| #endif /* GDB_THREAD_H */ | 
|  |