7 extern char __rodata[];
10 extern char __text16[];
11 extern char __data16[];
14 static void gdb_symbol_line ( void ) {
15 printf ( "Commands to start up gdb:\n\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 ) );
26 printf ( "add-symbol-file symbols 0\n" );
27 printf ( "set confirm on\n" );
31 INIT_FN ( INIT_GDBSYM, gdb_symbol_line, NULL );