]> Devi Nivas Git - cs3210-lab0.git/commitdiff
Use the symbol file
authorAustin Clements <amdragon@mit.edu>
Mon, 21 Sep 2009 03:08:36 +0000 (23:08 -0400)
committerAustin Clements <amdragon@mit.edu>
Mon, 21 Sep 2009 03:08:36 +0000 (23:08 -0400)
.gdbinit.tmpl

index 4c4e7349921458b3d35028257a71c0ed4ae41ef7..f71681a10a796325b7b6278959ef00a3f64bcfe4 100644 (file)
@@ -1,9 +1,5 @@
 set $lastcs = -1
 
-# This fails on Darwin because the default gdb has no ELF support
-# echo + symbol-file obj/kern/kernel\n
-# symbol-file obj/kern/kernel
-
 define hook-stop
   # There doesn't seem to be a good way to detect if we're in 16- or
   # 32-bit mode, but in 32-bit mode we always run with CS == 8 in the
@@ -26,3 +22,6 @@ end
 
 echo + target remote localhost:1234\n
 target remote localhost:1234
+
+echo + symbol-file kernel\n
+symbol-file kernel