Fix the triplet regexp to recognize triplets, not only quadruplets
This allows triplets where the vendor is not set. gdb/ChangeLog: 2015-03-31 Matthias Klose <doko@ubuntu.com> * compile/compile.c (compile_to_object): Allow triplets with or without vendor set.
This commit is contained in:
parent
f24173ebf7
commit
71b30f27af
2 changed files with 8 additions and 1 deletions
|
@ -483,7 +483,9 @@ compile_to_object (struct command_line *cmd, char *cmd_string,
|
|||
|
||||
os_rx = osabi_triplet_regexp (gdbarch_osabi (gdbarch));
|
||||
arch_rx = gdbarch_gnu_triplet_regexp (gdbarch);
|
||||
triplet_rx = concat (arch_rx, "-[^-]*-", os_rx, (char *) NULL);
|
||||
|
||||
/* Allow triplets with or without vendor set. */
|
||||
triplet_rx = concat (arch_rx, "(-[^-]*)?-", os_rx, (char *) NULL);
|
||||
make_cleanup (xfree, triplet_rx);
|
||||
|
||||
/* Set compiler command-line arguments. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue