This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
[python] thinko in previous patch
- From: Tom Tromey <tromey at redhat dot com>
- To: Project Archer <archer at sourceware dot org>
- Date: Tue, 03 Mar 2009 14:59:07 -0700
- Subject: [python] thinko in previous patch
- Reply-to: Tom Tromey <tromey at redhat dot com>
In the previous patch I neglected to account for the case where
gdb_datadir can be NULL. Oops, fixed as appended.
Tom
b/gdb/ChangeLog:
2009-03-03 Tom Tromey <tromey@redhat.com>
* python/python.c (gdbpy_new_objfile): Check gdb_datadir.
diff --git a/gdb/python/python.c b/gdb/python/python.c
index b3c3123..c338009 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -1004,7 +1004,7 @@ gdbpy_new_objfile (struct objfile *objfile)
input = fopen (debugfile, "r");
}
- if (!input)
+ if (!input && gdb_datadir)
{
/* Also try the same file in a subdirectory of gdb's data
directory. */