gdb: convert aarch64 to new-style debug macros
authorSimon Marchi <simon.marchi@polymtl.ca>
Mon, 11 Jan 2021 21:52:42 +0000 (16:52 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Mon, 11 Jan 2021 21:52:42 +0000 (16:52 -0500)
commitc6185dce03deb07b4c824d04969ab88abaf63460
treefac41622ea5a0b0f452954afbd3469483f44cc33
parenteef401dce1f890921168598fec71495dbf122f59
gdb: convert aarch64 to new-style debug macros

I haven't tried this on an actual aarch64 machine, but I am able to
exercise it like this:

    (gdb) set debug aarch64
    (gdb) maintenance selftest aa
    Running selftest aarch64-analyze-prologue.
    [aarch64] aarch64_analyze_prologue: prologue analysis gave up addr=0x14 opcode=0xf94013e0
    Running selftest aarch64-process-record.
    Ran 2 unit tests, 0 failed

gdb/ChangeLog:

* arch/aarch64-insn.h (aarch64_debug_printf): New.
* arch/aarch64-insn.c: Use aarch64_debug_printf.
* aarch64-tdep.c: Use aarch64_debug_printf.

Change-Id: Ifdb40e2816ab8e55a9aabb066d1833d9b5a46094
gdb/ChangeLog
gdb/aarch64-tdep.c
gdb/arch/aarch64-insn.c
gdb/arch/aarch64-insn.h