aboutsummaryrefslogtreecommitdiff
path: root/gdb/macroexp.h
diff options
context:
space:
mode:
authorLuis Machado <lgustavo@codesourcery.com>2017-02-13 07:12:17 -0600
committerLuis Machado <lgustavo@codesourcery.com>2017-02-13 07:13:54 -0600
commit13a66184d0cb485907bfcad15aac0622fd86d25f (patch)
treeec98f769fa6d0ad26be7450afe64760997c836f6 /gdb/macroexp.h
parent03f7786e2f440b9892b1c34a58fb26222ce1b493 (diff)
downloadgdb-13a66184d0cb485907bfcad15aac0622fd86d25f.zip
gdb-13a66184d0cb485907bfcad15aac0622fd86d25f.tar.gz
gdb-13a66184d0cb485907bfcad15aac0622fd86d25f.tar.bz2
Make gdb.arch/i386-biarch-core.exp more robust
This test attempts to load a x86 core file no matter what target architectures the tested GDB supports. If GDB doesn't know how to handle a i386 target, it is very likely the core file will not be recognized. In this case we should still attempt to load a core file to make sure GDB doesn't crash or throws an internal error. But we should not proceed to try to read memory unconditionally. This patch makes the test check for proper i386 arch support in GDB and bails out if i386 is not supported and the core file format is not recognized. This addresses the spurious aarch64-elf failures i'm seeing for this test. gdb/testsuite/ChangeLog: 2017-02-13 Luis Machado <lgustavo@codesourcery.com> * gdb.arch/i386-biarch-core.exp: Check for i386 arch support and return if core file is not recognized.
Diffstat (limited to 'gdb/macroexp.h')
0 files changed, 0 insertions, 0 deletions