diff options
author | Joel Brobecker <brobecker@gnat.com> | 2007-01-08 03:14:19 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2007-01-08 03:14:19 +0000 |
commit | 9bbc9174c0040f2add24585729daccf013e99203 (patch) | |
tree | d29be8306c4a279f66769c6c9ce83fff721da984 /gdb/ada-lang.c | |
parent | cbeee26d75ad29689441f2320c5d0b2a60465bf4 (diff) | |
download | gdb-9bbc9174c0040f2add24585729daccf013e99203.zip gdb-9bbc9174c0040f2add24585729daccf013e99203.tar.gz gdb-9bbc9174c0040f2add24585729daccf013e99203.tar.bz2 |
* ada-lang.c: Add include of source.h.
(is_known_support_routine): Improve the check verifying that the file
associated to this frame exists.
* Makefile.in (ada-lang.o): Add dependency on source.h.
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r-- | gdb/ada-lang.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 706806e..974cea7 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -55,6 +55,7 @@ Boston, MA 02110-1301, USA. */ #include "exceptions.h" #include "annotate.h" #include "valprint.h" +#include "source.h" #ifndef ADA_RETAIN_DOTS #define ADA_RETAIN_DOTS 0 @@ -9056,7 +9057,6 @@ is_known_support_routine (struct frame_info *frame) = find_pc_line (get_frame_pc (frame), pc_is_after_call); char *func_name; int i; - struct stat st; /* The heuristic: 1. The symtab is null (indicating no debugging symbols) @@ -9072,7 +9072,7 @@ is_known_support_routine (struct frame_info *frame) symbols; in this case, the filename referenced by these symbols does not exists. */ - if (stat (sal.symtab->filename, &st)) + if (symtab_to_fullname (sal.symtab) == NULL) return 1; for (i = 0; known_runtime_file_name_patterns[i] != NULL; i += 1) |