mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
* tui/tui-regs.c (tui_register_format): Remove dead code.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2011-01-25 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
|
* tui/tui-regs.c (tui_register_format): Remove dead code.
|
||||||
|
|
||||||
2011-01-25 Pedro Alves <pedro@codesourcery.com>
|
2011-01-25 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
* printcmd.c (print_formatted): Use val_print_scalar_formatted
|
* printcmd.c (print_formatted): Use val_print_scalar_formatted
|
||||||
|
@ -702,23 +702,7 @@ tui_register_format (struct frame_info *frame,
|
|||||||
stream = tui_sfileopen (256);
|
stream = tui_sfileopen (256);
|
||||||
gdb_stdout = stream;
|
gdb_stdout = stream;
|
||||||
cleanups = make_cleanup (tui_restore_gdbout, (void*) old_stdout);
|
cleanups = make_cleanup (tui_restore_gdbout, (void*) old_stdout);
|
||||||
if (TYPE_VECTOR (type) != 0 && 0)
|
gdbarch_print_registers_info (gdbarch, stream, frame, regnum, 1);
|
||||||
{
|
|
||||||
gdb_byte buf[MAX_REGISTER_SIZE];
|
|
||||||
int len;
|
|
||||||
struct value_print_options opts;
|
|
||||||
|
|
||||||
len = register_size (gdbarch, regnum);
|
|
||||||
fprintf_filtered (stream, "%-14s ", name);
|
|
||||||
get_frame_register (frame, regnum, buf);
|
|
||||||
get_formatted_print_options (&opts, 'f');
|
|
||||||
print_scalar_formatted (buf, type, &opts, len, stream);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
gdbarch_print_registers_info (gdbarch, stream,
|
|
||||||
frame, regnum, 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Save formatted output in the buffer. */
|
/* Save formatted output in the buffer. */
|
||||||
p = tui_file_get_strbuf (stream);
|
p = tui_file_get_strbuf (stream);
|
||||||
|
Reference in New Issue
Block a user