diff options
author | Doug Evans <dje@google.com> | 2013-03-28 16:39:09 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2013-03-28 16:39:09 +0000 |
commit | 41245087227a1b3b1434cfd0799d3db95c6bffb8 (patch) | |
tree | 728a7183289f0f7802dc8680017660cb26d2e372 | |
parent | 19e08130eec4abee547e82c5485603423deea193 (diff) | |
download | fsf-binutils-gdb-41245087227a1b3b1434cfd0799d3db95c6bffb8.zip fsf-binutils-gdb-41245087227a1b3b1434cfd0799d3db95c6bffb8.tar.gz fsf-binutils-gdb-41245087227a1b3b1434cfd0799d3db95c6bffb8.tar.bz2 |
* python/python.c (finish_python_initialization): Provide suggestion
for how to tell gdb to find its python files.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/python/python.c | 8 |
2 files changed, 11 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a5f8963..cfdb643 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-03-28 Doug Evans <dje@google.com> + + * python/python.c (finish_python_initialization): Provide suggestion + for how to tell gdb to find its python files. + 2013-03-28 Pedro Alves <palves@redhat.com> PR gdb/15294 diff --git a/gdb/python/python.c b/gdb/python/python.c index 4a7cb28..67d06e5 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -1711,9 +1711,13 @@ finish_python_initialization (void) if (gdb_python_module == NULL) { gdbpy_print_stack (); - warning (_("Could not load the Python gdb module from `%s'."), + /* This is passed in one call to warning so that blank lines aren't + inserted between each line of text. */ + warning (_("\n" + "Could not load the Python gdb module from `%s'.\n" + "Limited Python support is available from the _gdb module.\n" + "Suggest passing --data-directory=/path/to/gdb/data-directory.\n"), gdb_pythondir); - warning (_("Limited Python support is available from the _gdb module.")); do_cleanups (cleanup); return; } |