aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi/mi-cmd-disas.c
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2000-03-01 20:20:38 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2000-03-01 20:20:38 +0000
commit30e28a0e4beb1fae729bf1fd8dcce9074e154b3c (patch)
tree702d2f647e66a7c8f2eb42286d6457391368ef1a /gdb/mi/mi-cmd-disas.c
parent5cc7c785d2ba07dee567660fc970aa17da7c994d (diff)
downloadgdb-30e28a0e4beb1fae729bf1fd8dcce9074e154b3c.zip
gdb-30e28a0e4beb1fae729bf1fd8dcce9074e154b3c.tar.gz
gdb-30e28a0e4beb1fae729bf1fd8dcce9074e154b3c.tar.bz2
2000-03-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* mi-cmd-disas.c (mi_cmd_disassemble): Use ui_out_field_core_addr() instead of print_address_numeric(), to maintain consistency throughout MI.
Diffstat (limited to 'gdb/mi/mi-cmd-disas.c')
-rw-r--r--gdb/mi/mi-cmd-disas.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/mi/mi-cmd-disas.c b/gdb/mi/mi-cmd-disas.c
index 78e33ab..11ba7fe 100644
--- a/gdb/mi/mi-cmd-disas.c
+++ b/gdb/mi/mi-cmd-disas.c
@@ -418,8 +418,7 @@ mi_cmd_disassemble (char *command, char **argv, int argc)
num_displayed++;
}
ui_out_list_begin (uiout, NULL);
- print_address_numeric (pc, 1, stb->stream);
- ui_out_field_stream (uiout, "address", stb);
+ ui_out_field_core_addr (uiout, "address", pc);
if (!build_address_symbolic (pc, 0, &name, &offset, &filename, &line, &unmapped))
{
@@ -467,8 +466,7 @@ mi_cmd_disassemble (char *command, char **argv, int argc)
num_displayed++;
}
ui_out_list_begin (uiout, NULL);
- print_address_numeric (pc, 1, stb->stream);
- ui_out_field_stream (uiout, "address", stb);
+ ui_out_field_core_addr (uiout, "address", pc);
if (!build_address_symbolic (pc, 0, &name, &offset, &filename, &line, &unmapped))
{