This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH v2 0/2] Fix handling of null stap semaphores
- From: George Barrett <bob at bob131 dot so>
- To: gdb-patches at sourceware dot org
- Date: Fri, 03 Jan 2020 10:12:44 +1100
- Subject: [PATCH v2 0/2] Fix handling of null stap semaphores
- Dkim-filter: OpenDKIM Filter v2.11.0 mail.bob131.so 520E652E43
GDB's handling of userspace SystemTap probes is currently inconsistent
with the specification of the format[0]: the absence of a semaphore for
a particular probe is recorded within its ELF note by setting the
address value to zero, but the current implementation doesn't check the
value against zero until after a relocation has been applied.
The primary patch in this set is #2 ('Fix handling of null stap
semaphores'). Writing the test case revealed some issues with other
stap-related tests, fixes for which have been split into patch #1 as
suggested in a previous review.
[0]: https://sourceware.org/systemtap/wiki/UserSpaceProbeImplementation
George Barrett (2):
gdb/testsuite/gdb.base/stap-probe: Minor clean-up
Fix handling of null stap semaphores
gdb/stap-probe.c | 7 +++--
gdb/testsuite/gdb.base/stap-probe.c | 4 ++-
gdb/testsuite/gdb.base/stap-probe.exp | 45 +++++++++++++++++++++------
3 files changed, 43 insertions(+), 13 deletions(-)
--
2.24.1