[PATCH] Fix a latent bug in dw2-ranges-overlap.exp

Tom de Vries tdevries@suse.de
Tue Aug 24 06:55:22 GMT 2021


On 8/23/21 10:13 PM, Tom Tromey wrote:
> Tom> My new DWARF scanner decides that this "main" is the main program and
> Tom> sets the current language to C++ at startup, causing this test to
> Tom> fail.
> 
> Tom> This patch fixes the test in a simple way, by introducing a new
> Tom> function that takes the place of "main" in the DWARF.  I think this
> Tom> still exercises the original problem, but also avoids problems with my
> Tom> branch.
> 

In the patch introducing the test-case, it was mentioned:
...
The dwarf assembly test-case mimics the scenario described above, and
reproduces the FAIL with and without -readnow, for both mentioned OS
configurations.
...

Already before this commit, that no longer seems to be the case: when
reverting the fix, the test-case only fails with target board readnow.

Anyway, I've confirmed that after this commit, reverting the fix still
make the test-case fail with target board readnow.

Thanks,
- Tom






More information about the Gdb-patches mailing list