From: Mark Alexander Date: Thu, 12 Dec 1996 02:54:55 +0000 (+0000) Subject: * gdbtk.c (gdb_loc): Correct truncation of PC on 64-bit MIPS. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=78b9b1703921a4ae313d760970c090d3f2e85095;p=binutils-gdb.git * gdbtk.c (gdb_loc): Correct truncation of PC on 64-bit MIPS. --- diff --git a/gdb/gdbtk.c b/gdb/gdbtk.c index 6d569f5d92b..bb781f00115 100644 --- a/gdb/gdbtk.c +++ b/gdb/gdbtk.c @@ -479,7 +479,7 @@ gdb_loc (clientData, interp, argc, argv) dsprintf_append_element (result_ptr, "%d", sal.line); /* line number */ - dsprintf_append_element (result_ptr, "0x%lx", pc); /* PC */ + dsprintf_append_element (result_ptr, "0x%s", paddr_nz(pc)); /* PC */ return TCL_OK; }