diff options
author | Tom Tromey <tom@tromey.com> | 2021-11-29 13:50:24 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2021-12-04 11:04:48 -0700 |
commit | 17f60345f0cfff8faf6f4f734cf2f7e56094e977 (patch) | |
tree | 3f577a38502ce93f179171d6820873415be0848b | |
parent | 3daaa003d26a0cf29e972bf0a16a7b4b58208d0a (diff) | |
download | binutils-17f60345f0cfff8faf6f4f734cf2f7e56094e977.zip binutils-17f60345f0cfff8faf6f4f734cf2f7e56094e977.tar.gz binutils-17f60345f0cfff8faf6f4f734cf2f7e56094e977.tar.bz2 |
Remove Irix case from find_file_and_directory
find_file_and_directory has a special case for the Irix 6.2 compiler.
Since this is long obsolete, this patch removes it.
-rw-r--r-- | gdb/dwarf2/read.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 57538fc..3cf0c9e 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -10509,15 +10509,6 @@ find_file_and_directory (struct die_info *die, struct dwarf2_cu *cu) res.comp_dir = cu->per_objfile->objfile->intern (comp_dir_storage.c_str ()); } - if (res.comp_dir != NULL) - { - /* Irix 6.2 native cc prepends <machine>.: to the compilation - directory, get rid of it. */ - const char *cp = strchr (res.comp_dir, ':'); - - if (cp && cp != res.comp_dir && cp[-1] == '.' && cp[1] == '/') - res.comp_dir = cp + 1; - } if (res.name == NULL) res.name = "<unknown>"; |