There is currently no system-wide /etc/gdbinit. Create one (`/etc/gdbrc' ?). Try to provide also `/etc/gdbrc.d', if possible with GDB canned commands.
/etc/gdbinit: # System-wide GDB initialization file. # FIXME: provide a wildcard. source /etc/gdbinit.d/gdb-heap.py Debian uses: /etc/gdb/gdbinit
(In reply to comment #0) > There is currently no system-wide /etc/gdbinit. It indeed showed up in gdb-7.2.50.20101117-4.fc15 with a content like in comment #1. Only there is no /etc/gdbinit.d/gdb-heap.py so this is not doing very much. Is this really intended that way?
Yes, it is. If there isn't the comment FIXME: provide a wildcard. there could be instead the correct way: source /etc/gdbinit.d/* like -c /etc/prelink.conf.d/*.conf exists in /etc/prelink.conf and other similar files. /etc/gdbinit.d/gdb-heap.py is not a problem as gdbinit is run in non-interactive (from_tty == 0) mode and thus any errors reading it are ignored. One day I can implement wildcards for `source' but so far at least the 3rd party packages can be packaged correctly (with proper explicit entry for each of them).