From: Srinath Avadhanula <srinathava@gmail.com>
To: gdb@sourceware.org
Subject: A question about data-directory
Date: Mon, 30 Aug 2010 22:46:00 -0000 [thread overview]
Message-ID: <AANLkTimiRzkYFLcBSG_FCnc=7XWVANGbOwKK0CHDS3Xf@mail.gmail.com> (raw)
Hi,
I am trying to play around the python pretty-printing stuff in 7.1
(sweet!). However, I cannot seem to get my pretty printers loaded as
documented here:
http://sourceware.org/gdb/current/onlinedocs/gdb/objfile_002dgdb_002epy-file.html#objfile_002dgdb_002epy-file
I think I am unclear on what "real-name" means. I tried the following setup.
/tmp/test/test.cpp # source file
/tmp/test/test # executable
/tmp/test/data/python/auto-load/test-gdb.py # auto-loadable file.
/tmp/test/data/python/auto-load/test.py # auto-loadable file.
/tmp/test/data/python/auto-load/test # auto-loadable file.
/tmp/test/data/python/auto-load/test.o # auto-loadable file.
I basically created as many variants of the executable as I could
think of. All of these files are simple python scripts which contain a
single line "print 'getting here'"
I then started GDB and within it
(gdb) set data-directory /tmp/test/data
(gdb) file test
Reading symbols from /tmp/test/test...done.
(gdb)
I was expecting the output from the auto-load script to say 'getting
here' before getting back to the prompt. If I place test-gdb.py in the
same directory as the executable (i.e. at /tmp/test/test-gdb.py) then
I do get a line saying 'getting here'.
Could you please let me know what I am doing wrong?
Regards,
Srinath
PS: This is the version I am using:
savadhan@mint /tmp/test $ gdb --version
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
next reply other threads:[~2010-08-30 22:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-30 22:46 Srinath Avadhanula [this message]
2010-08-30 23:00 ` Daniel Jacobowitz
2010-08-30 23:22 ` Srinath Avadhanula
2010-08-31 13:08 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='AANLkTimiRzkYFLcBSG_FCnc=7XWVANGbOwKK0CHDS3Xf@mail.gmail.com' \
--to=srinathava@gmail.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox