aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-disasm.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2010-05-17 22:21:43 +0000
committerMichael Snyder <msnyder@vmware.com>2010-05-17 22:21:43 +0000
commit1c5313c5c81121a5fcec2f3344012ff5a86d8e8f (patch)
treead2c3927e02f498b644436d7e172d1243fb18f84 /gdb/tui/tui-disasm.c
parentf4a14ae60d33ac392ac74c54da1ef10bb293adef (diff)
downloadgdb-1c5313c5c81121a5fcec2f3344012ff5a86d8e8f.zip
gdb-1c5313c5c81121a5fcec2f3344012ff5a86d8e8f.tar.gz
gdb-1c5313c5c81121a5fcec2f3344012ff5a86d8e8f.tar.bz2
2010-05-17 Michael Snyder <msnyder@vmware.com>
* tui/tui.c: White space. * tui/tui-data.c: White space. * tui/tui-disasm.c: White space. * tui/tui-file.c: White space. * tui/tui-interp.c: White space. * tui/tui-main.c: White space. * tui/tui-out.c: White space. * tui/tui-regs.c: White space. * tui/tui-source.c: White space. * tui/tui-stack.c: White space. * tui/tui-win.c: White space. * tui/tui-winsource.c: White space.
Diffstat (limited to 'gdb/tui/tui-disasm.c')
-rw-r--r--gdb/tui/tui-disasm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/tui/tui-disasm.c b/gdb/tui/tui-disasm.c
index cb8358e..6d8aa1b 100644
--- a/gdb/tui/tui-disasm.c
+++ b/gdb/tui/tui-disasm.c
@@ -214,6 +214,7 @@ tui_set_disassem_content (struct gdbarch *gdbarch, CORE_ADDR pc)
for (i = 0; i < max_lines; i++)
{
size_t len = strlen (asm_lines[i].addr_string);
+
if (len > addr_size)
addr_size = len;