Merge ps_get_thread_area
authorGary Benson <gbenson@redhat.com>
Wed, 25 Jun 2014 10:49:55 +0000 (11:49 +0100)
committerGary Benson <gbenson@redhat.com>
Fri, 11 Jul 2014 11:23:16 +0000 (12:23 +0100)
commit8c420b8d59e8e045aa733f478adb1d0509d447e3
treed254802f2f14195d901dbb2455b69142ca7c08e8
parentcb1da100b6291ad35ad886555a0f7114925ed29f
Merge ps_get_thread_area

This commit adds a new helper, x86_linux_get_thread_area, to
hold the common parts of the ps_get_thread_area functions in
i386-linux-nat.c and amd64-linux-nat.c.

gdb/
2014-07-11  Gary Benson  <gbenson@redhat.com>

* amd64-linux-nat.c (x86_linux_get_thread_area): New function.
(ps_get_thread_area): Delegate to the above in 32-bit mode.
* i386-linux-nat.c (x86_linux_get_thread_area): New function.
(ps_get_thread_area): Delegate to the above.
gdb/ChangeLog
gdb/amd64-linux-nat.c
gdb/i386-linux-nat.c