Bug 1002415

Summary: /etc/gdbinit.d/golang fix
Product: [Fedora] Fedora Reporter: Jan Kratochvil <jan.kratochvil>
Component: golangAssignee: Adam Goode <adam>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: adam, admiller, golang-updates, lemenkov, pmuldoon, renich, tromey, vbatts
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-08 15:36:15 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:

Description Jan Kratochvil 2013-08-29 07:23:19 UTC
Description of problem:
/etc/gdbinit.d/golang currently is not loaded (GDB Bug 981520).
But it should be implemented differently anyway.

Version-Release number of selected component (if applicable):
golang-1.1.1-5.fc19.x86_64

Additional info:
I do not see how /usr/lib64/golang/src/pkg/runtime/runtime-gdb.py can get executed because /usr/lib64/golang/src/pkg/runtime/runtime does not exist.
But if /usr/lib64/golang/src/pkg/runtime/runtime really exists then there should be file:
/usr/share/gdb/auto-load/usr/lib64/golang/src/pkg/runtime/runtime-gdb.py

Such file does not need any extra add-auto-load-safe-path.

Some packages use just a stub there to load the script from different location, for example:
/usr/share/gdb/auto-load/usr/lib64/libglib-2.0.so.0.3600.3-gdb.py

Comment 1 Vincent Batts 2014-07-08 15:36:15 UTC

*** This bug has been marked as a duplicate of bug 981356 ***