diff options
author | Joseph Myers <joseph@codesourcery.com> | 2011-09-29 15:17:50 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2011-09-29 15:17:50 +0000 |
commit | 68fb0ec00bfd65b1085a011086d0328a904ab3df (patch) | |
tree | eae4d7ce131903ba552e2c0e412f4fe63e765566 | |
parent | 6aee0d90b5445736c0470fe0e96af7b1a6ad7e55 (diff) | |
download | gdb-68fb0ec00bfd65b1085a011086d0328a904ab3df.zip gdb-68fb0ec00bfd65b1085a011086d0328a904ab3df.tar.gz gdb-68fb0ec00bfd65b1085a011086d0328a904ab3df.tar.bz2 |
* lib/gdb.exp (is_amd64_regs_target, is_x86_like_target): Allow
for 64-bit multilibs from i?86-* targets.
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/lib/gdb.exp | 7 |
2 files changed, 7 insertions, 5 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index a21b72f..6361dba 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-09-29 Joseph Myers <joseph@codesourcery.com> + + * lib/gdb.exp (is_amd64_regs_target, is_x86_like_target): Allow + for 64-bit multilibs from i?86-* targets. + 2011-09-29 Marek Polacek <mpolacek@redhat.com> * lib/gdb.exp: Fix a typo in one of the comments. diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index ca10582..4a4708e 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -1626,7 +1626,7 @@ proc is_lp64_target {} { proc is_amd64_regs_target {} { global is_amd64_regs_target_saved - if {![istarget "x86_64-*-*"]} { + if {![istarget "x86_64-*-*"] && ![istarget "i?86-*"]} { return 0 } @@ -1665,10 +1665,7 @@ proc is_amd64_regs_target {} { # Return 1 if this target is an x86 or x86-64 with -m32. proc is_x86_like_target {} { - if {[istarget i?86-*]} { - return 1 - } - if {![istarget "x86_64-*-*"]} { + if {![istarget "x86_64-*-*"] && ![istarget i?86-*]} { return 0 } return [expr [is_ilp32_target] && ![is_amd64_regs_target]] |