From 17f60345f0cfff8faf6f4f734cf2f7e56094e977 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 29 Nov 2021 13:50:24 -0700 Subject: [PATCH] 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. --- gdb/dwarf2/read.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 57538fc0adf..3cf0c9ea2a8 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 .: 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 = ""; -- 2.30.2