mirror of
https://github.com/ipxe/ipxe
synced 2025-12-13 23:41:45 +03:00
Add ability to resolve relative symbols as well as locate absolute ones.
This commit is contained in:
@@ -15,6 +15,7 @@ static void gdb_symbol_line ( void ) {
|
|||||||
printf ( "Commands to start up gdb:\n\n" );
|
printf ( "Commands to start up gdb:\n\n" );
|
||||||
printf ( "gdb\n" );
|
printf ( "gdb\n" );
|
||||||
printf ( "target remote localhost:1234\n" );
|
printf ( "target remote localhost:1234\n" );
|
||||||
|
printf ( "set confirm off\n" );
|
||||||
printf ( "add-symbol-file symbols %#lx", virt_to_phys ( __text ) );
|
printf ( "add-symbol-file symbols %#lx", virt_to_phys ( __text ) );
|
||||||
printf ( " -s .rodata %#lx", virt_to_phys ( __rodata ) );
|
printf ( " -s .rodata %#lx", virt_to_phys ( __rodata ) );
|
||||||
printf ( " -s .data %#lx", virt_to_phys ( __data ) );
|
printf ( " -s .data %#lx", virt_to_phys ( __data ) );
|
||||||
@@ -22,6 +23,8 @@ static void gdb_symbol_line ( void ) {
|
|||||||
printf ( " -s .text16 %#x", ( ( rm_cs << 4 ) + (int)__text16 ) );
|
printf ( " -s .text16 %#x", ( ( rm_cs << 4 ) + (int)__text16 ) );
|
||||||
printf ( " -s .data16 %#x", ( ( rm_ds << 4 ) + (int)__data16 ) );
|
printf ( " -s .data16 %#x", ( ( rm_ds << 4 ) + (int)__data16 ) );
|
||||||
printf ( "\n" );
|
printf ( "\n" );
|
||||||
|
printf ( "add-symbol-file symbols 0\n" );
|
||||||
|
printf ( "set confirm on\n" );
|
||||||
getkey();
|
getkey();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user