+export HOME
[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         start
18         break $arg0
19         continue
20 #       clear $arg0
21         end
22 define javadump
23         call _Jv_DeepDebug($arg0)
24         end
25 define pglist3
26         if (*("$arg1")=='@')
27                 set var $arg1=struct $arg1
28                 end
29         set var $pglist_list=$arg0
30         while ($pglist_list)
31                 if (!strcmp("$arg2","."))
32                         print *(($arg1 *)$pglist_list->data)
33                 else
34                         print *(($arg1 *)$pglist_list->data)$arg2
35                         end
36                 set var $pglist_list=$pglist_list->next
37                 end
38         end
39 define pglist
40         pglist3 $arg0 $arg1 .
41         end