Use field_core_addr in more places
authorTom Tromey <tromey@adacore.com>
Mon, 1 Jul 2019 18:02:37 +0000 (12:02 -0600)
committerTom Tromey <tromey@adacore.com>
Mon, 15 Jul 2019 15:28:59 +0000 (09:28 -0600)
This changes a few spots that use field_fmt to use field_core_addr
instead.

gdb/ChangeLog
2019-07-15  Tom Tromey  <tromey@adacore.com>

* target.c (flash_erase_command): Use field_core_addr.
* symfile.c (generic_load): Use field_core_addr.
* sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
Use field_core_addr.
* i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
field_core_addr.

gdb/ChangeLog
gdb/i386-linux-tdep.c
gdb/sparc64-linux-tdep.c
gdb/symfile.c
gdb/target.c

index d79d89f9389cfb10777f8431afb0cd963ef9aaf7..c8d0c6acea8e7628a66f7b1302fe1f7cd9cc2cde 100644 (file)
@@ -1,3 +1,12 @@
+2019-07-15  Tom Tromey  <tromey@adacore.com>
+
+       * target.c (flash_erase_command): Use field_core_addr.
+       * symfile.c (generic_load): Use field_core_addr.
+       * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
+       Use field_core_addr.
+       * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
+       field_core_addr.
+
 2019-07-12  Andrew Burgess  <andrew.burgess@embecosm.com>
 
        * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
index d0d339d7dcb803d4daf2fd97dffdcbf6bb1bf98d..760d00008f432c53c389547266c8525d531cdb20 100644 (file)
@@ -432,13 +432,13 @@ i386_linux_handle_segmentation_fault (struct gdbarch *gdbarch,
     uiout->field_string ("sigcode-meaning", _("Lower bound violation"));
 
   uiout->text (_(" while accessing address "));
-  uiout->field_fmt ("bound-access", "%s", paddress (gdbarch, access));
+  uiout->field_core_addr ("bound-access", gdbarch, access);
 
   uiout->text (_("\nBounds: [lower = "));
-  uiout->field_fmt ("lower-bound", "%s", paddress (gdbarch, lower_bound));
+  uiout->field_core_addr ("lower-bound", gdbarch, lower_bound);
 
   uiout->text (_(", upper = "));
-  uiout->field_fmt ("upper-bound", "%s", paddress (gdbarch, upper_bound));
+  uiout->field_core_addr ("upper-bound", gdbarch, upper_bound);
 
   uiout->text (_("]"));
 }
index 158db97ec619328b54d6e38a57ba7ddaf5844e35..563d21e4b4c0a1a714bf80be76f2d11c32863778 100644 (file)
@@ -150,19 +150,19 @@ sparc64_linux_handle_segmentation_fault (struct gdbarch *gdbarch,
       uiout->text ("\n");
       uiout->field_string ("sigcode-meaning", _("ADI disabled"));
       uiout->text (_(" while accessing address "));
-      uiout->field_fmt ("bound-access", "%s", paddress (gdbarch, addr));
+      uiout->field_core_addr ("bound-access", gdbarch, addr);
       break;
     case SEGV_ADIDERR: /* disrupting mismatch */
       uiout->text ("\n");
       uiout->field_string ("sigcode-meaning", _("ADI deferred mismatch"));
       uiout->text (_(" while accessing address "));
-      uiout->field_fmt ("bound-access", "%s", paddress (gdbarch, addr));
+      uiout->field_core_addr ("bound-access", gdbarch, addr);
       break;
     case SEGV_ADIPERR: /* precise mismatch */
       uiout->text ("\n");
       uiout->field_string ("sigcode-meaning", _("ADI precise mismatch"));
       uiout->text (_(" while accessing address "));
-      uiout->field_fmt ("bound-access", "%s", paddress (gdbarch, addr));
+      uiout->field_core_addr ("bound-access", gdbarch, addr);
       break;
     default:
       break;
index 13a07e4dc0e57eff06680b25d921c5009dc20e07..caa0e79bd9a92e40cf130564aa0330359661283a 100644 (file)
@@ -2095,7 +2095,7 @@ generic_load (const char *args, int from_tty)
   CORE_ADDR entry = bfd_get_start_address (loadfile_bfd.get ());
   entry = gdbarch_addr_bits_remove (target_gdbarch (), entry);
   uiout->text ("Start address ");
-  uiout->field_fmt ("address", "%s", paddress (target_gdbarch (), entry));
+  uiout->field_core_addr ("address", target_gdbarch (), entry);
   uiout->text (", load size ");
   uiout->field_fmt ("load-size", "%lu", total_progress.data_count);
   uiout->text ("\n");
index de3706d75dc108d2c69ef769a8e4ce1293de62a3..b3cfc53cca1a90d01a07f212985eed9787f3274e 100644 (file)
@@ -3793,7 +3793,7 @@ flash_erase_command (const char *cmd, int from_tty)
          ui_out_emit_tuple tuple_emitter (current_uiout, "erased-regions");
 
           current_uiout->message (_("Erasing flash memory region at address "));
-          current_uiout->field_fmt ("address", "%s", paddress (gdbarch, m.lo));
+          current_uiout->field_core_addr ("address", gdbarch, m.lo);
           current_uiout->message (", size = ");
           current_uiout->field_fmt ("size", "%s", hex_string (m.hi - m.lo));
           current_uiout->message ("\n");
This page took 0.030859 seconds and 4 git commands to generate.