[PATCH] gdb/testsuite/fortran: Add mixed language stack test

Tom Tromey tom@tromey.com
Thu Mar 12 18:17:52 GMT 2020


>>>>> "Andrew" == Andrew Burgess <andrew.burgess@embecosm.com> writes:

Andrew> This commit adds a test that builds a mixed language stack, the stack
Andrew> contains frames of Fortran, C, and C++.  The test prints the backtrace
Andrew> and explores the stack printing arguments of different types in frames
Andrew> of different languages.

Andrew> The core of the test is repeated with GDB's language set to auto,
Andrew> fortran, c, and c++ in turn to ensure that GDB is happy to print
Andrew> frames and frame arguments when the language is set to a value that
Andrew> doesn't match the frame language.

Andrew> This test currently passes, and there are no known bugs in this area.
Andrew> The aim of this commit is simply to increase test coverage, as I don't
Andrew> believe this functionality is currently tested.

This seems like a good idea to me.
The patch looked fine as well.
Thank you for doing this.

Tom


More information about the Gdb-patches mailing list