gdb: convert nat/x86-dregs.c macros to functions
authorSimon Marchi <simon.marchi@polymtl.ca>
Thu, 15 Jul 2021 19:01:58 +0000 (15:01 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sun, 18 Jul 2021 02:45:40 +0000 (22:45 -0400)
commit85460c161d9b25b96320e6e234e1e83c01a51f09
tree76f79f106f01b0fff9a5b56551d89fcf309d64e7
parent04dd8003c0988c04cceff4e9a94da21a614ed0a9
gdb: convert nat/x86-dregs.c macros to functions

I'm debugging why GDB crashes on OpenBSD/amd64, turns out it's because
x86_dr_low.get_status is nullptr.  It would have been useful to be able
to break on x86_dr_low_get_status, so I thought it would be a good
reason to convert these function-like macros into functions.

Change-Id: Ic200b50ef8455b4697bc518da0fa2bb704cf4721
gdb/nat/x86-dregs.c