Explorar el Código

[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.
tags/v0.9.4
Stefan Hajnoczi hace 16 años
padre
commit
842165ef76
Se han modificado 3 ficheros con 0 adiciones y 37 borrados
  1. 0
    33
      src/arch/i386/core/gdbsym.c
  2. 0
    1
      src/config.h
  3. 0
    3
      src/core/config.c

+ 0
- 33
src/arch/i386/core/gdbsym.c Ver fichero

@@ -1,33 +0,0 @@
1
-#include <stdio.h>
2
-#include <gpxe/init.h>
3
-#include <console.h>
4
-#include <realmode.h>
5
-
6
-extern char __text[];
7
-extern char __rodata[];
8
-extern char __data[];
9
-extern char __bss[];
10
-extern char __text16[];
11
-extern char __data16[];
12
-
13
-
14
-static void gdb_symbol_line ( void ) {
15
-	printf ( "Commands to start up gdb:\n\n" );
16
-	printf ( "gdb\n" );
17
-	printf ( "target remote localhost:1234\n" );
18
-	printf ( "set confirm off\n" );
19
-	printf ( "add-symbol-file symbols %#lx", virt_to_phys ( __text ) );
20
-	printf ( " -s .rodata %#lx", virt_to_phys ( __rodata ) );
21
-	printf ( " -s .data %#lx", virt_to_phys ( __data ) );
22
-	printf ( " -s .bss %#lx", virt_to_phys ( __bss ) );
23
-	printf ( " -s .text16 %#x", ( ( rm_cs << 4 ) + (int)__text16 ) );
24
-	printf ( " -s .data16 %#x", ( ( rm_ds << 4 ) + (int)__data16 ) );
25
-	printf ( "\n" );
26
-	printf ( "add-symbol-file symbols 0\n" );
27
-	printf ( "set confirm on\n" );
28
-	getkey();
29
-}
30
-
31
-struct startup_fn gdb_startup_fn __startup_fn ( STARTUP_NORMAL ) = {
32
-	.startup = gdb_symbol_line,
33
-};

+ 0
- 1
src/config.h Ver fichero

@@ -164,6 +164,5 @@
164 164
 #undef	BUILD_ID		/* Include a custom build ID string,
165 165
 				 * e.g "test-foo" */
166 166
 #undef	NULL_TRAP		/* Attempt to catch NULL function calls */
167
-#undef	DUMP_GDBSYM		/* Dump GDB symbol table information */
168 167
 
169 168
 /* @END general.h */

+ 0
- 3
src/core/config.c Ver fichero

@@ -198,6 +198,3 @@ REQUIRE_OBJECT ( sanboot_cmd );
198 198
 #ifdef NULL_TRAP
199 199
 REQUIRE_OBJECT ( nulltrap );
200 200
 #endif
201
-#ifdef DUMP_GDBSYM
202
-REQUIRE_OBJECT ( gdbsym );
203
-#endif

Loading…
Cancelar
Guardar