diff options
author | Yao Qi <yao.qi@linaro.org> | 2018-01-19 09:08:36 +0000 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2018-01-19 09:08:36 +0000 |
commit | dea445b940545f9564972c5410ac8792b72cc9c3 (patch) | |
tree | 1877cd35878a8a8627b05b626f5683acd67d3f8a | |
parent | adf8243ba9220966bbb8f67460b2d323e00cbfdb (diff) | |
download | gdb-dea445b940545f9564972c5410ac8792b72cc9c3.zip gdb-dea445b940545f9564972c5410ac8792b72cc9c3.tar.gz gdb-dea445b940545f9564972c5410ac8792b72cc9c3.tar.bz2 |
Find arm-linux-gnueabi(hf)?-gcc in compile
GCC for arm-linux has different names on different distros. It is
arm-linux-gnu-gcc on fedora. Debian/Ubuntu has arm-linux-gnueabihf-gcc
and arm-linux-gnueabi-gcc. So when I run gdb.compile/ tests on arm-linux,
I get,
(gdb) compile code -- ;
Could not find a compiler matching "^arm(-[^-]*)?-linux(-gnu)?-gcc$"
This patch extend the regexp to match both arm-linux-gnu-gcc and
arm-linux-gnueabihf-gcc.
gdb:
2018-01-19 Yao Qi <yao.qi@linaro.org>
* osabi.c (gdb_osabi_names): Extend the regexp for
arm-linux-gnueabihf and arm-linux-gnueabi.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/osabi.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 90dacd2..6709f44 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2018-01-19 Yao Qi <yao.qi@linaro.org> + + * osabi.c (gdb_osabi_names): Extend the regexp for + arm-linux-gnueabihf. + 2018-01-18 Yao Qi <yao.qi@linaro.org> * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to diff --git a/gdb/osabi.c b/gdb/osabi.c index 129164f..fd44deb 100644 --- a/gdb/osabi.c +++ b/gdb/osabi.c @@ -63,7 +63,7 @@ static const struct osabi_names gdb_osabi_names[] = { "SVR4", NULL }, { "GNU/Hurd", NULL }, { "Solaris", NULL }, - { "GNU/Linux", "linux(-gnu)?" }, + { "GNU/Linux", "linux(-gnu[^-]*)?" }, { "FreeBSD", NULL }, { "NetBSD", NULL }, { "OpenBSD", NULL }, |