"set complaints 0" as SNAFU.
[nethome.git] / .gdbinit
1 # See .bashrc: export GDBHISTFILE="$HOME/.gdb_history"
2 # Should also work <jefyi6bzm6.fsf@sykes.suse.de> (untested):
3 # set history filename ~/.gdb_history
4 set history save on
5 # https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=106814
6 set complaints 0
7 define rt
8         break $arg0
9         run
10 #       clear $arg0
11         end
12 define ct
13         tbreak $arg0
14         continue
15         end
16 define rtl
17         tbreak main
18         run
19         break $arg0
20         continue
21 #       clear $arg0
22         end
23 define pglist3
24         if (*("$arg1")=='@')
25                 set var $arg1=struct $arg1
26                 end
27         set var $pglist_list=$arg0
28         while ($pglist_list)
29                 if (!strcmp("$arg2","."))
30                         print *(($arg1 *)$pglist_list->data)
31                 else
32                         print *(($arg1 *)$pglist_list->data)$arg2
33                         end
34                 set var $pglist_list=$pglist_list->next
35                 end
36         end
37 define pglist
38         pglist3 $arg0 $arg1 .
39         end