aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbinit.in
blob: 1448dd3a5382b10bfb7a97cac61696cfeef063dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
echo Setting up the environment for debugging gdb.\n

set complaints 1

b internal_error

b info_command
commands
	silent
	return
end

dir @srcdir@/../libiberty
dir @srcdir@/../bfd
dir @srcdir@
dir .
set prompt (top-gdb) 

set data-directory @srcdir@

define pdie
  if $argc == 1
    call dump_die ($arg0, 1)
  else
    if $argc == 2
      call dump_die ($arg0, $arg1)
    else
      printf "Syntax: pdie die [depth]\n"
    end
  end
end

document pdie
Pretty print a DWARF DIE.
Syntax: pdie die [depth]
end