diff options
author | Tom Tromey <tom@tromey.com> | 2020-03-13 17:39:52 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-03-13 18:03:39 -0600 |
commit | 040f66bd2d6aea4d35a2e5cb88b499799ee4c466 (patch) | |
tree | 09c445dee8203cf83911e918ebea820a0835894a /gdb | |
parent | a6e05a6c3a9439a7253d2eab7ee4fe760b4cc829 (diff) | |
download | gdb-040f66bd2d6aea4d35a2e5cb88b499799ee4c466.zip gdb-040f66bd2d6aea4d35a2e5cb88b499799ee4c466.tar.gz gdb-040f66bd2d6aea4d35a2e5cb88b499799ee4c466.tar.bz2 |
Use common_val_print in riscv-tdep.c
This changes some spots in riscv-tdep.c to use common_val_print rather
than val_print.
gdb/ChangeLog
2020-03-13 Tom Tromey <tom@tromey.com>
* riscv-tdep.c (riscv_print_one_register_info): Use
common_val_print.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/riscv-tdep.c | 12 |
2 files changed, 8 insertions, 9 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3cab13b..2144454 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2020-03-13 Tom Tromey <tom@tromey.com> + * riscv-tdep.c (riscv_print_one_register_info): Use + common_val_print. + +2020-03-13 Tom Tromey <tom@tromey.com> + * mi/mi-main.c (output_register): Use common_val_print. 2020-03-13 Tom Tromey <tom@tromey.com> diff --git a/gdb/riscv-tdep.c b/gdb/riscv-tdep.c index 97741a3..2978b9e 100644 --- a/gdb/riscv-tdep.c +++ b/gdb/riscv-tdep.c @@ -694,9 +694,7 @@ riscv_print_one_register_info (struct gdbarch *gdbarch, get_user_print_options (&opts); opts.deref_ref = 1; - val_print (regtype, - value_embedded_offset (val), 0, - file, 0, val, &opts, current_language); + common_val_print (val, file, 0, &opts, current_language); if (print_raw_format) { @@ -713,9 +711,7 @@ riscv_print_one_register_info (struct gdbarch *gdbarch, /* Print the register in hex. */ get_formatted_print_options (&opts, 'x'); opts.deref_ref = 1; - val_print (regtype, - value_embedded_offset (val), 0, - file, 0, val, &opts, current_language); + common_val_print (val, file, 0, &opts, current_language); if (print_raw_format) { @@ -849,9 +845,7 @@ riscv_print_one_register_info (struct gdbarch *gdbarch, get_user_print_options (&opts); opts.deref_ref = 1; fprintf_filtered (file, "\t"); - val_print (regtype, - value_embedded_offset (val), 0, - file, 0, val, &opts, current_language); + common_val_print (val, file, 0, &opts, current_language); } } } |