Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(343)

Unified Diff: gdb/gdbserver/gdbthread.h

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/gdbserver/gdbserver.1 ('k') | gdb/gdbserver/hostio.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 */
« no previous file with comments | « gdb/gdbserver/gdbserver.1 ('k') | gdb/gdbserver/hostio.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698