This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/2] gdb: xtensa-linux: support THREADPTR register


On 01/18/2017 05:56 PM, Max Filippov wrote:
Make THREADPTR user register accessible.

2017-01-18  Max Filippov  <jcmvbkbc@gmail.com>
gdb/

Drop gdb/ from the ChangeLog.

diff --git a/gdb/xtensa-tdep.c b/gdb/xtensa-tdep.c
index 797e728..2c3e41e 100644
--- a/gdb/xtensa-tdep.c
+++ b/gdb/xtensa-tdep.c
@@ -3120,6 +3120,7 @@ xtensa_derive_tdep (struct gdbarch_tdep *tdep)

 /* Special registers 0..255 (core).  */
 #define XTENSA_DBREGN_SREG(n)  (0x0200+(n))
+#define XTENSA_DBREGN_UREG(n)  (0x0300+(n))

Maybe add a little comment about what UREG is and its use?

Otherwise i have no further comments on this particular patch.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]