diff options
author | Tom Tromey <tom@tromey.com> | 2018-08-29 15:33:23 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-08-29 15:33:23 -0600 |
commit | f6c4e3e8a3af94fbecce2a38d3fccc0980616c6d (patch) | |
tree | b7f6cd3dd3385ee15ac210b0a6277b2526c8a4c0 /gdb/compile/compile-cplus-symbols.c | |
parent | 73c13fe69a4275433544533a610275861346ef44 (diff) | |
download | gdb-f6c4e3e8a3af94fbecce2a38d3fccc0980616c6d.zip gdb-f6c4e3e8a3af94fbecce2a38d3fccc0980616c6d.tar.gz gdb-f6c4e3e8a3af94fbecce2a38d3fccc0980616c6d.tar.bz2 |
Use core_addr_to_string_nz in csky_analyze_prologue
One of the buildbot builders had a failure on a recent try run:
../../binutils-gdb/gdb/csky-tdep.c: In function CORE_ADDR csky_analyze_prologue(gdbarch*, CORE_ADDR, CORE_ADDR, CORE_ADDR, frame_info*, csky_unwind_cache*, lr_type_t):
../../binutils-gdb/gdb/csky-tdep.c:1107:23: error: format %lx expects argument of type long unsigned int, but argument 3 has type CORE_ADDR {aka long long unsigned int} [-Werror=format=]
"0x%lx\n", addr);
^
../../binutils-gdb/gdb/csky-tdep.c:1419:12: error: format %lx expects argument of type long unsigned int, but argument 3 has type CORE_ADDR {aka long long unsigned int} [-Werror=format=]
addr);
^
The fix is to use core_addr_to_string_nz rather than %lx in
csky-tdep.c.
Tested by rebuilding. I'm checking this in.
gdb/ChangeLog
2018-08-29 Tom Tromey <tom@tromey.com>
* csky-tdep.c (csky_analyze_prologue): Use
core_addr_to_string_nz.
Diffstat (limited to 'gdb/compile/compile-cplus-symbols.c')
0 files changed, 0 insertions, 0 deletions