]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
fix a couple of FIXMEs
authorTom Tromey <tromey@redhat.com>
Mon, 25 Nov 2013 15:47:51 +0000 (08:47 -0700)
committerTom Tromey <tromey@redhat.com>
Fri, 6 Dec 2013 19:13:47 +0000 (12:13 -0700)
This fixes a couple of old "32x64" FIXME comments by using paddress
with current_gdbarch rather than hex_string and a cast to long.

2013-12-06  Tom Tromey  <tromey@redhat.com>

* cli/cli-cmds.c (edit_command): Use paddress, not hex_string.
(list_command): Likewise.

gdb/ChangeLog
gdb/cli/cli-cmds.c

index 38ba081a7e28b6fa005856933a1eb36fb75a1625..fc35c2274666db474dfe055b73d6c4994c7f0176 100644 (file)
@@ -1,3 +1,8 @@
+2013-12-06  Tom Tromey  <tromey@redhat.com>
+
+       * cli/cli-cmds.c (edit_command): Use paddress, not hex_string.
+       (list_command): Likewise.
+
 2013-12-06  Tom Tromey  <tromey@redhat.com>
 
        * psymtab.c (allocate_psymtab): Put the filename in the filename
index 85f171356c45f6f3f0cb6607c9a59b7cbcb8b053..52a6bc90a78c62f99c5e10511dd7ca490a29a7b0 100644 (file)
@@ -817,9 +817,8 @@ edit_command (char *arg, int from_tty)
          struct gdbarch *gdbarch;
 
           if (sal.symtab == 0)
-           /* FIXME-32x64--assumes sal.pc fits in long.  */
            error (_("No source file for address %s."),
-                  hex_string ((unsigned long) sal.pc));
+                  paddress (get_current_arch (), sal.pc));
 
          gdbarch = get_objfile_arch (sal.symtab->objfile);
           sym = find_pc_function (sal.pc);
@@ -982,9 +981,8 @@ list_command (char *arg, int from_tty)
       struct gdbarch *gdbarch;
 
       if (sal.symtab == 0)
-       /* FIXME-32x64--assumes sal.pc fits in long.  */
        error (_("No source file for address %s."),
-              hex_string ((unsigned long) sal.pc));
+              paddress (get_current_arch (), sal.pc));
 
       gdbarch = get_objfile_arch (sal.symtab->objfile);
       sym = find_pc_function (sal.pc);