浏览代码

[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 16 年前
父节点
当前提交
842165ef76
共有 3 个文件被更改,包括 0 次插入37 次删除
  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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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

正在加载...
取消
保存