gdb/riscv: Additional print format string fixes
authorAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 6 Mar 2018 13:05:34 +0000 (13:05 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 6 Mar 2018 14:24:50 +0000 (14:24 +0000)
Another riscv format string fix.

gdb/ChangeLog:

* riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
where appropriate.

gdb/ChangeLog
gdb/riscv-tdep.c

index 9567102043c816e03eee1e235fc718d4eba717c3..88b1172121f641261eedf1e46a5daa0d9b0a824d 100644 (file)
@@ -1,3 +1,8 @@
+2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
+       where appropriate.
+
 2018-03-06  Andrew Burgess  <andrew.burgess@embecosm.com>
 
        * riscv-tdep.c (riscv_print_arg_location): Add header comment,
index 5c04a740df0b8e233b31ae2e64df0c103cfdd2ca..797ca72a8428c6f003984d4fe55c1d7a729b5371 100644 (file)
@@ -2121,8 +2121,8 @@ riscv_push_dummy_call (struct gdbarch *gdbarch,
                              call_info.memory.arg_offset);
          fprintf_unfiltered (gdb_stdlog, "Stack required (for refs): 0x%x\n",
                              call_info.memory.ref_offset);
-         fprintf_unfiltered (gdb_stdlog, "          Stack allocated: 0x%lx\n",
-                             (osp - sp));
+         fprintf_unfiltered (gdb_stdlog, "          Stack allocated: %s\n",
+                             core_addr_to_string_nz (osp - sp));
        }
     }