Browse Source

Add ability to resolve relative symbols as well as locate absolute ones.

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
d5451d210c
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/arch/i386/core/gdbsym.c

+ 3
- 0
src/arch/i386/core/gdbsym.c View File

15
 	printf ( "Commands to start up gdb:\n\n" );
15
 	printf ( "Commands to start up gdb:\n\n" );
16
 	printf ( "gdb\n" );
16
 	printf ( "gdb\n" );
17
 	printf ( "target remote localhost:1234\n" );
17
 	printf ( "target remote localhost:1234\n" );
18
+	printf ( "set confirm off\n" );
18
 	printf ( "add-symbol-file symbols %#lx", virt_to_phys ( __text ) );
19
 	printf ( "add-symbol-file symbols %#lx", virt_to_phys ( __text ) );
19
 	printf ( " -s .rodata %#lx", virt_to_phys ( __rodata ) );
20
 	printf ( " -s .rodata %#lx", virt_to_phys ( __rodata ) );
20
 	printf ( " -s .data %#lx", virt_to_phys ( __data ) );
21
 	printf ( " -s .data %#lx", virt_to_phys ( __data ) );
22
 	printf ( " -s .text16 %#x", ( ( rm_cs << 4 ) + (int)__text16 ) );
23
 	printf ( " -s .text16 %#x", ( ( rm_cs << 4 ) + (int)__text16 ) );
23
 	printf ( " -s .data16 %#x", ( ( rm_ds << 4 ) + (int)__data16 ) );
24
 	printf ( " -s .data16 %#x", ( ( rm_ds << 4 ) + (int)__data16 ) );
24
 	printf ( "\n" );
25
 	printf ( "\n" );
26
+	printf ( "add-symbol-file symbols 0\n" );
27
+	printf ( "set confirm on\n" );
25
 	getkey();
28
 	getkey();
26
 }
29
 }
27
 
30
 

Loading…
Cancel
Save