Make gdb.python/python.exp more robust
authorLuis Machado <lgustavo@codesourcery.com>
Fri, 20 Jan 2017 19:15:36 +0000 (13:15 -0600)
committerLuis Machado <lgustavo@codesourcery.com>
Fri, 20 Jan 2017 19:15:36 +0000 (13:15 -0600)
commitd334ae250a3ec888f0603cf8e909d0f425aeb30f
treef96d7f1ef23d1f7a546198b798b11e9c387d44b7
parent78cbbba8e0bc8b0288f5ce4360b4689ab893aa13
Make gdb.python/python.exp more robust

I noticed gdb.python/python.exp failing on aarch64-elf like so:

FAIL: gdb.python/python.exp: Test decode_line func1 line number

This particular test expects the line number for func1 to be 19, hardcoded.

In my aarch64-elf tests gdb thinks func1 is at line 20, making the test fail.

The following patch addresses this by reading the line number information from
GDB and comparing it against the python decoded symtab information.

gdb/testsuite/ChangeLog:

2017-01-20  Luis Machado  <lgustavo@codesourcery.com>

* gdb.python/python.exp: Check line number against what GDB thinks
the line number is for func1.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/python.exp
This page took 0.024353 seconds and 4 git commands to generate.