gdb/riscv: Format CORE_ADDR as a string for printing
authorAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 21 Dec 2018 00:48:51 +0000 (00:48 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 21 Dec 2018 17:06:27 +0000 (17:06 +0000)
commita96bd1ccc0dca2d260e0e30de462f37066973ceb
treef55dff0aa35c3c6f1e9e05999c34be012c3e85c5
parent3dcfdc58656caa4a38e1fde73a07a19114347226
gdb/riscv: Format CORE_ADDR as a string for printing

Avoid compiler errors caused by trying to print CORE_ADDR using '%ld'
format, instead convert to a string and print that instead.

gdb/ChangeLog:

* riscv-tdep.c (riscv_scan_prologue): Use plongest to format
a signed offset as a string.
gdb/ChangeLog
gdb/riscv-tdep.c