* gdbtk.c (gdb_loc): Correct truncation of PC on 64-bit MIPS.
authorMark Alexander <marka@cygnus>
Thu, 12 Dec 1996 02:54:55 +0000 (02:54 +0000)
committerMark Alexander <marka@cygnus>
Thu, 12 Dec 1996 02:54:55 +0000 (02:54 +0000)
gdb/gdbtk.c

index 6d569f5d92bc76a7d4002ea24bc3efadc0e05520..bb781f0011596b3561b78d44ea8b8656f56af987 100644 (file)
@@ -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;
 }