Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Khoo Yit Phang <khooyp@cs.umd.edu>
Cc: Joel Brobecker <brobecker@adacore.com>,
	       GDB Patches <gdb-patches@sourceware.org>
Subject: Re: [PATCH] Warn about data-directory when failing to import Python "gdb" module
Date: Sat, 22 Sep 2012 13:30:00 -0000	[thread overview]
Message-ID: <20120922133033.GA31924@host2.jankratochvil.net> (raw)
In-Reply-To: <45F70E7D-4B99-49B9-A160-76C0D3B9534F@cs.umd.edu>

On Tue, 18 Sep 2012 22:39:51 +0200, Khoo Yit Phang wrote:
> I'd still like to add this warning: even with the data-directory patch
> I just posted, it is still possible for this issue to occur, e.g., due to
> a bad install. Some minor fixes:
> 
> GDB is unable to find its auxiliary files. You may need to provide the
> -data-directory flag to GDB (please refer to the manual for details).

There has been already discussion about how to reference the GDB manual and
the checked in variant is:
------------------------------------------------------------------------------
commit 86635be5fbe89ff6c300de47fac5a70bf01486c1
To enable execution of this file add
	add-auto-load-safe-path /home/jkratoch/redhat/gdb-clean/gdb/gdb-gdb.gdb
line to your configuration file "/home/jkratoch/.gdbinit".
To completely disable this security protection add
	set auto-load safe-path /
line to your configuration file "/home/jkratoch/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
	info "(gdb)Auto-loading safe path"
------------------------------------------------------------------------------

I find the proposed message "GDB is unable to find its auxiliary files."
redundant to the already printed:
	warning: Could not load the Python gdb module from `dfasdfsa/python'.

I would also change the second warning -> printf_filtered as it will then no
longer insert so many empty lines there.

In the end the output could be:
------------------------------------------------------------------------------
Python Exception <type 'exceptions.ImportError'> No module named gdb: 

warning: Could not load the Python gdb module from `dfasdfsa/python'.
You may need to provide the -data-directory flag to GDB.
Limited Python support is available from the _gdb module.
For more information about GDB dependencies on external files
see the "Data Files" section in the GDB manual.  E.g., run from the shell:
	info "(gdb)Data Files"
------------------------------------------------------------------------------

Do you agree or would you like to make more adjustments to the text?


Thanks,
Jan


  reply	other threads:[~2012-09-22 13:30 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-17 19:36 Khoo Yit Phang
2012-09-17 20:23 ` Jan Kratochvil
2012-09-17 20:28   ` Khoo Yit Phang
2012-09-17 20:36     ` Jan Kratochvil
2012-09-17 20:58     ` Joel Brobecker
2012-09-17 21:04       ` Khoo Yit Phang
2012-09-18 20:40         ` Khoo Yit Phang
2012-09-22 13:30           ` Jan Kratochvil [this message]
2012-09-22 18:37             ` Khoo Yit Phang
2012-10-06 20:56               ` Ping! " Khoo Yit Phang
2012-09-18  6:17       ` Eli Zaretskii
2012-09-18 11:58         ` Jan Kratochvil
2012-09-18 12:21           ` Eli Zaretskii
2012-09-18 13:54             ` Joel Brobecker
2012-09-18 15:38           ` Khoo Yit Phang
2012-09-18 15:44             ` Jan Kratochvil

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=20120922133033.GA31924@host2.jankratochvil.net \
    --to=jan.kratochvil@redhat.com \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=khooyp@cs.umd.edu \
    /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