summaryrefslogtreecommitdiff
path: root/scripts/build/debug/gdbinit.in
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-07-24 18:30:52 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-07-24 18:30:52 (GMT)
commit82ba904b905f1491d71f49cdea5d892bb0a46027 (patch)
treef333f6ccf88fa8f2ffee4e95019773f9965f19f8 /scripts/build/debug/gdbinit.in
parent4d85f4389d6e6c7640430cea90d1047bb046e7d7 (diff)
debug/gdb: install gdbinit sample file
gdb needs to know where to find the libstdc++ helper python script to do, well, whatever it has to do with it... We can't install that in the user's ~/.gdbinit, it's too complex to handle all the cases. Moreover, if the user is using more than one toolchain, we can't put all that stuff in there... Just provide a sample config file the user can adapt to his/her own needs. Thanks go to Khem RAJ for providing such a hint: http://sourceware.org/ml/crossgcc/2011-07/msg00026.html Reported-by: ANDY KENNEDY <ANDY.KENNEDY@adtran.com> CC: Khem Raj <raj.khem@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'scripts/build/debug/gdbinit.in')
-rw-r--r--scripts/build/debug/gdbinit.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/build/debug/gdbinit.in b/scripts/build/debug/gdbinit.in
new file mode 100644
index 0000000..3950099
--- /dev/null
+++ b/scripts/build/debug/gdbinit.in
@@ -0,0 +1,6 @@
+python
+import sys
+sys.path.insert(0, '@@PREFIX@@/share/gcc-@@VERSION@@/python')
+from libstdcxx.v6.printers import register_libstdcxx_printers
+register_libstdcxx_printers (None)
+end