* buildsym.c (patch_subfile_name): Update last_source_file
[external/binutils.git] / gdb / .gdbinit
1 echo Setting up the environment for debugging gdb.\n
2
3 set complaints 1
4
5 b fatal
6
7 b info_command
8 commands
9         silent
10         return
11 end
12
13 dir ../mmalloc
14 dir ../libiberty
15 dir ../bfd
16 set prompt (top-gdb) 
17
18 # This only works with recent (post-4.13) GDB's, but there is no way to
19 # tell what version we are.  So leave it commented out for now.
20 #define list-objfiles
21 #  set $obj = object_files
22 #  printf "objfile    bfd        msyms  name\n"
23 #  while $obj != 0
24 #    printf "0x%-8x 0x%-8x %6d %s\n", $obj, $obj->obfd, \
25 #      $obj->minimal_symbol_count, $obj->name
26 #    set var $obj = $obj->next
27 #  end
28 #end