aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui.c
diff options
context:
space:
mode:
authorStephane Carrez <stcarrez@nerim.fr>2002-08-28 20:33:27 +0000
committerStephane Carrez <stcarrez@nerim.fr>2002-08-28 20:33:27 +0000
commit77cad3ba61341dfd6323c8f6e0067071ba6e599b (patch)
tree3e3d7cec588e36f1ab9392621ffb313e1442c2dc /gdb/tui/tui.c
parentbfb3754e3d662ed801fe51563ef872f376130560 (diff)
downloadgdb-77cad3ba61341dfd6323c8f6e0067071ba6e599b.zip
gdb-77cad3ba61341dfd6323c8f6e0067071ba6e599b.tar.gz
gdb-77cad3ba61341dfd6323c8f6e0067071ba6e599b.tar.bz2
* tui.c (tuiGetLowDisassemblyAddress): Moved from here.
* tuiDisassem.c (tuiGetLowDisassemblyAddress): To here, and use tui_find_disassembly_address to find the starting address of disassemble window.
Diffstat (limited to 'gdb/tui/tui.c')
-rw-r--r--gdb/tui/tui.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c
index 2b9ccae..ab2c201 100644
--- a/gdb/tui/tui.c
+++ b/gdb/tui/tui.c
@@ -311,31 +311,6 @@ tuiFree (char *ptr)
}
}
-/* Determine what the low address will be to display in the TUI's
- disassembly window. This may or may not be the same as the
- low address input. */
-CORE_ADDR
-tuiGetLowDisassemblyAddress (CORE_ADDR low, CORE_ADDR pc)
-{
- int line;
- CORE_ADDR newLow;
-
- /* Determine where to start the disassembly so that the pc is about in the
- middle of the viewport. */
- for (line = 0, newLow = pc;
- (newLow > low &&
- line < (tuiDefaultWinViewportHeight (DISASSEM_WIN,
- DISASSEM_COMMAND) / 2));)
- {
- bfd_byte buffer[4];
-
- newLow -= sizeof (bfd_getb32 (buffer));
- line++;
- }
-
- return newLow;
-}
-
void
strcat_to_buf (char *buf, int buflen, const char *itemToAdd)
{