diff options
author | Pedro Alves <palves@redhat.com> | 2011-01-25 18:18:15 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2011-01-25 18:18:15 +0000 |
commit | b30aa27843a8f47a308a4aea7e182001af8b0ffc (patch) | |
tree | e3ff99a34f1f345b2c835fb9ee7e50e2b655fcdd /gdb/tui | |
parent | ab2188aa2a7958d3954f98229002036867278636 (diff) | |
download | gdb-b30aa27843a8f47a308a4aea7e182001af8b0ffc.zip gdb-b30aa27843a8f47a308a4aea7e182001af8b0ffc.tar.gz gdb-b30aa27843a8f47a308a4aea7e182001af8b0ffc.tar.bz2 |
* tui/tui-regs.c (tui_register_format): Remove dead code.
Diffstat (limited to 'gdb/tui')
-rw-r--r-- | gdb/tui/tui-regs.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c index fb70e9d..1d2bb23 100644 --- a/gdb/tui/tui-regs.c +++ b/gdb/tui/tui-regs.c @@ -702,23 +702,7 @@ tui_register_format (struct frame_info *frame, stream = tui_sfileopen (256); gdb_stdout = stream; cleanups = make_cleanup (tui_restore_gdbout, (void*) old_stdout); - if (TYPE_VECTOR (type) != 0 && 0) - { - 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); - } + gdbarch_print_registers_info (gdbarch, stream, frame, regnum, 1); /* Save formatted output in the buffer. */ p = tui_file_get_strbuf (stream); |