diff options
author | Stefan Hajnoczi | 2008-06-04 21:52:38 +0200 |
---|---|---|
committer | Michael Brown | 2008-06-05 01:45:32 +0200 |
commit | 842165ef7624f20b85e58f3d9c56d9110be0ae15 (patch) | |
tree | 682fdd512827c4599b82a88d2a1dcbc5e9b59b77 | |
parent | [TCP] Avoid shrinking TCP window (diff) | |
download | ipxe-842165ef7624f20b85e58f3d9c56d9110be0ae15.tar.gz ipxe-842165ef7624f20b85e58f3d9c56d9110be0ae15.tar.xz ipxe-842165ef7624f20b85e58f3d9c56d9110be0ae15.zip |
[GDBSYM] Remove unused gdbsym.c
The GDBSYM config.h option was an attempt at QEMU GDB debugging. I have
removed the code since it is unused and may confuse people wanting to
use the GDB stub.
-rw-r--r-- | src/arch/i386/core/gdbsym.c | 33 | ||||
-rw-r--r-- | src/config.h | 1 | ||||
-rw-r--r-- | src/core/config.c | 3 |
3 files changed, 0 insertions, 37 deletions
diff --git a/src/arch/i386/core/gdbsym.c b/src/arch/i386/core/gdbsym.c deleted file mode 100644 index 2da1a1bd..00000000 --- a/src/arch/i386/core/gdbsym.c +++ /dev/null @@ -1,33 +0,0 @@ -#include <stdio.h> -#include <gpxe/init.h> -#include <console.h> -#include <realmode.h> - -extern char __text[]; -extern char __rodata[]; -extern char __data[]; -extern char __bss[]; -extern char __text16[]; -extern char __data16[]; - - -static void gdb_symbol_line ( void ) { - printf ( "Commands to start up gdb:\n\n" ); - printf ( "gdb\n" ); - printf ( "target remote localhost:1234\n" ); - printf ( "set confirm off\n" ); - printf ( "add-symbol-file symbols %#lx", virt_to_phys ( __text ) ); - printf ( " -s .rodata %#lx", virt_to_phys ( __rodata ) ); - printf ( " -s .data %#lx", virt_to_phys ( __data ) ); - printf ( " -s .bss %#lx", virt_to_phys ( __bss ) ); - printf ( " -s .text16 %#x", ( ( rm_cs << 4 ) + (int)__text16 ) ); - printf ( " -s .data16 %#x", ( ( rm_ds << 4 ) + (int)__data16 ) ); - printf ( "\n" ); - printf ( "add-symbol-file symbols 0\n" ); - printf ( "set confirm on\n" ); - getkey(); -} - -struct startup_fn gdb_startup_fn __startup_fn ( STARTUP_NORMAL ) = { - .startup = gdb_symbol_line, -}; diff --git a/src/config.h b/src/config.h index 9a447ad5..2d8faa68 100644 --- a/src/config.h +++ b/src/config.h @@ -164,6 +164,5 @@ #undef BUILD_ID /* Include a custom build ID string, * e.g "test-foo" */ #undef NULL_TRAP /* Attempt to catch NULL function calls */ -#undef DUMP_GDBSYM /* Dump GDB symbol table information */ /* @END general.h */ diff --git a/src/core/config.c b/src/core/config.c index ffd11256..402cba90 100644 --- a/src/core/config.c +++ b/src/core/config.c @@ -198,6 +198,3 @@ REQUIRE_OBJECT ( sanboot_cmd ); #ifdef NULL_TRAP REQUIRE_OBJECT ( nulltrap ); #endif -#ifdef DUMP_GDBSYM -REQUIRE_OBJECT ( gdbsym ); -#endif |