From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22562 invoked by alias); 30 Aug 2010 22:46:58 -0000 Received: (qmail 22554 invoked by uid 22791); 30 Aug 2010 22:46:57 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-iw0-f169.google.com (HELO mail-iw0-f169.google.com) (209.85.214.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 30 Aug 2010 22:46:51 +0000 Received: by iwn33 with SMTP id 33so7731998iwn.0 for ; Mon, 30 Aug 2010 15:46:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.191.138 with SMTP id dm10mr6145004ibb.126.1283208409867; Mon, 30 Aug 2010 15:46:49 -0700 (PDT) Received: by 10.231.159.209 with HTTP; Mon, 30 Aug 2010 15:46:49 -0700 (PDT) Date: Mon, 30 Aug 2010 22:46:00 -0000 Message-ID: Subject: A question about data-directory From: Srinath Avadhanula To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-08/txt/msg00167.txt.bz2 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-fil= e.html#objfile_002dgdb_002epy-file I think I am unclear on what "real-name" means. I tried the following setup. /tmp/test/test.cpp =A0 =A0 =A0# source file /tmp/test/test =A0 =A0 =A0 =A0 =A0 =A0# executable /tmp/test/data/python/auto-load/test-gdb.py =A0 =A0# auto-loadable file. /tmp/test/data/python/auto-load/test.py =A0 =A0 =A0 =A0 =A0# auto-loadable = file. /tmp/test/data/python/auto-load/test =A0 =A0 =A0 =A0 =A0 =A0 =A0# auto-load= able 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 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: .