public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/gdb] gdb-17.2-rebase-f44: Load /etc/gdbinit.d/*.{gdb,py} files automatically (BZ 981520).
@ 2026-06-27 23:56 Jan Kratochvil
0 siblings, 0 replies; only message in thread
From: Jan Kratochvil @ 2026-06-27 23:56 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/gdb
Branch : gdb-17.2-rebase-f44
Commit : bdf0f25112c9e35c2e08c06bdc74245848b85288
Author : Jan Kratochvil <jan.kratochvil@redhat.com>
Date : 2013-08-30T22:37:39+02:00
Stats : +11/-4 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/gdb/c/bdf0f25112c9e35c2e08c06bdc74245848b85288?branch=gdb-17.2-rebase-f44
Log:
Load /etc/gdbinit.d/*.{gdb,py} files automatically (BZ 981520).
---
diff --git a/gdb.spec b/gdb.spec
index 49f2c7f..207a85f 100644
--- a/gdb.spec
+++ b/gdb.spec
@@ -38,7 +38,7 @@ Version: 7.6.50.%{snap}
# The release always contains a leading reserved number, start it at 1.
# `upstream' is not a part of `name' to stay fully rpm dependencies compatible for the testing.
-Release: 8%{?dist}
+Release: 9%{?dist}
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and BSD and Public Domain
Group: Development/Debuggers
@@ -1333,6 +1333,9 @@ fi
%endif # 0%{!?el5:1} || "%{_target_cpu}" == "noarch"
%changelog
+* Fri Aug 30 2013 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.6.50.20130731-9.fc20
+- Load /etc/gdbinit.d/*.{gdb,py} files automatically (BZ 981520).
+
* Fri Aug 30 2013 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.6.50.20130731-8.fc20
- New %%pre to fix failed upgrade of the previous commit (BZ 999645).
- Fix false warnings of new %%pre during future upgrades (BZ 999645).
diff --git a/gdbinit b/gdbinit
index 3bafc14..9f431dc 100644
--- a/gdbinit
+++ b/gdbinit
@@ -1,4 +1,8 @@
# System-wide GDB initialization file.
-
-# FIXME: provide a wildcard.
-source %{_sysconfdir}/gdbinit.d/gdb-heap.py
+python
+import glob
+for f in glob.iglob('%{_sysconfdir}/gdbinit.d/*.gdb'):
+ gdb.execute('source %s' % f)
+for f in glob.iglob('%{_sysconfdir}/gdbinit.d/*.py'):
+ gdb.execute('source %s' % f)
+end
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-27 23:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-27 23:56 [rpms/gdb] gdb-17.2-rebase-f44: Load /etc/gdbinit.d/*.{gdb,py} files automatically (BZ 981520) Jan Kratochvil
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox