Bug 981520 - source all files in /etc/gdbinit.d
source all files in /etc/gdbinit.d
Product: Fedora
Classification: Fedora
Component: gdb (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Jan Kratochvil
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2013-07-04 23:38 EDT by Adam Goode
Modified: 2013-09-09 04:30 EDT (History)
7 users (show)

See Also:
Fixed In Version: gdb-7.6.1-39.fc19
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-09-09 04:30:22 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Adam Goode 2013-07-04 23:38:26 EDT
Description of problem:
gdb doesn't load all the files in /etc/gdbinit.d

Version-Release number of selected component (if applicable):

There is part of a solution here:

/etc/gdbinit should be:
source /etc/gdbinit.py

/etc/gdbinit.py should be something like:
import glob
files = glob.iglob('/etc/gdbinit.d/*')
for f in files:
  gdb.execute('source %s' % f)
Comment 1 Jan Kratochvil 2013-07-05 03:59:07 EDT
This is unrelated to Bug 981356.
Comment 2 Jan Kratochvil 2013-09-09 04:30:22 EDT
* Fri Aug 30 2013 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.6.1-39.fc19
- Load /etc/gdbinit.d/*.{gdb,py} files automatically (BZ 981520).

Note You need to log in before you can comment on or make changes to this bug.