Bug 981520

Summary: source all files in /etc/gdbinit.d
Product: [Fedora] Fedora Reporter: Adam Goode <adam>
Component: gdbAssignee: Jan Kratochvil <jan.kratochvil>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: gbenson, jan.kratochvil, palves, pmuldoon, rjones, sergiodj, tromey
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gdb-7.6.1-39.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-09 08:30:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Adam Goode 2013-07-05 03:38:26 UTC
Description of problem:
gdb doesn't load all the files in /etc/gdbinit.d


Version-Release number of selected component (if applicable):
gdb-7.6-30.fc19.x86_64


There is part of a solution here:
http://stackoverflow.com/questions/11851499/gdb-automatically-load-python-script


/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 07:59:07 UTC
This is unrelated to Bug 981356.

Comment 2 Jan Kratochvil 2013-09-09 08:30:22 UTC
* Fri Aug 30 2013 Jan Kratochvil <jan.kratochvil> - 7.6.1-39.fc19
- Load /etc/gdbinit.d/*.{gdb,py} files automatically (BZ 981520).