This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v3] Enable tracing of pseudo-registers on ARM
- From: Pedro Alves <palves at redhat dot com>
- To: Antoine Tremblay <antoine dot tremblay at ericsson dot com>
- Cc: Marcin KoÅcielnicki <koriakin at 0x04 dot net>, gdb-patches at sourceware dot org, qiyaoltc at gmail dot com
- Date: Wed, 24 Feb 2016 19:02:42 +0000
- Subject: Re: [PATCH v3] Enable tracing of pseudo-registers on ARM
- Authentication-results: sourceware.org; auth=none
- References: <wwoklh6gpsne dot fsf at ericsson dot com> <1455910116-13237-1-git-send-email-antoine dot tremblay at ericsson dot com> <56C7796B dot 3030504 at redhat dot com> <wwokoab8it8q dot fsf at ericsson dot com> <56CDF23A dot 8000007 at redhat dot com> <56CDF48B dot 5040008 at 0x04 dot net> <56CDF792 dot 3040604 at redhat dot com> <wwokfuwi7xal dot fsf at ericsson dot com>
On 02/24/2016 06:55 PM, Antoine Tremblay wrote:
> The only requirement for this to work properly is that the arch uses
> tdesc_use_registers, otherwise the default mapping function to tdesc is
> identity to GDB numbers.
Even then, if the target doesn't report a tdesc, register numbers
on the target side must match gdb's. So it still works. The reason
the current code doesn't consider tdesc numbers is that AX predates
xml target descriptions, and back then gdb numbers was all you had.
> s390 uses that so it should be fine.
Thanks,
Pedro Alves