aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python-internal.h
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2025-06-02 14:58:51 +0100
committerAndrew Burgess <aburgess@redhat.com>2025-06-03 19:58:44 +0100
commitd462550c91cfd5293bcc47610454a381ab5825e3 (patch)
tree2e24696c7cd6646547d6055218314e5a565cbe09 /gdb/python/python-internal.h
parent4b42385c470c5f72f158f382f4d9c36f927aa84f (diff)
downloadbinutils-d462550c91cfd5293bcc47610454a381ab5825e3.zip
binutils-d462550c91cfd5293bcc47610454a381ab5825e3.tar.gz
binutils-d462550c91cfd5293bcc47610454a381ab5825e3.tar.bz2
gdb/testsuite: also compile foll-exec.exp as C++
For a long time, Fedora GDB has carried a test that performs some basic testing that GDB can handle 'catch exec' related commands for a C++ executable. The exact motivation for this test has been lost in the mists of time, but looking at the test script, the concern seems to be that GDB would have problems inserting C++ related internal breakpoints if a non C++ process is execd from a C++ one. There's no actual GDB fix associated with the Fedora test. This usually means that the issue was fixed upstream long ago. This patch does seem to date from around 2010ish (or maybe earlier). Having a look through the upstream tests, I cannot see anything that covers this sort of thing (C++ to C exec calls), and I figure it cannot hurt to have some additional testing in this area, and so I wrote this patch. I've taken the existing foll-exec.exp test, which compiles a C executable and then execs a different C executable, and split it into two copies. We now have foll-exec-c.exp and foll-exec-c++.exp. These tests compile a C and C++ executable respectively. Then within each of these scripts both a C and C++ helper application is built, which can then be execd from the main test executable. And so, we now cover 4 cases, the initial executable can be C or C++, and the execd process can be C or C++. As expected, everything passes. This is just increasing test coverage. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/python/python-internal.h')
0 files changed, 0 insertions, 0 deletions