From: Andrew Burgess <aburgess@redhat.com>
To: gdb-patches@sourceware.org
Cc: Andrew Burgess <aburgess@redhat.com>
Subject: [PATCHv2 0/6] disabled_by_cond fixes for breakpoints
Date: Thu, 29 Aug 2024 17:27:04 +0100 [thread overview]
Message-ID: <cover.1724948606.git.aburgess@redhat.com> (raw)
In-Reply-To: <cover.1724014054.git.aburgess@redhat.com>
I found some small problems with the disabled_by_cond logic for
breakpoints, these are fixed in patch #2.
Writing a test for patch #2 exposed a problem with an existing test
related to disabled_by_cond, though in this case it was the test that
was making some assumptions that turned out to be invalid on my
machine. By making the test a little stricter the issue can be
avoided. This is patch #1.
During review of the v1 series Tom pointed me at PR gdb/32079, which
was partially fixed by patch #2. The final fixes are in patch #6.
And while working on patch #6 I spotted the bugs which are fixed in
patches #3, #4, and #5.
The first patch from the v1 series has been merged as this was a
standalone testsuite improvement.
Thanks,
Andrew
---
Andrew Burgess (6):
gdb/testsuite: avoid incorrect symbols in
gdb.base/condbreak-multi-context.cc
gdb: fixes for code_breakpoint::disabled_by_cond logic
gdb: remove duplicate check in disable_breakpoints_in_freed_objfile
gdb: restructure disable_breakpoints_in_unloaded_shlib
gdb: handle dprintf breakpoints when unloading a shared library
gdb: disable internal b/p when a solib is unloaded
gdb/breakpoint.c | 77 ++++--
gdb/solib.c | 2 +-
.../gdb.base/bp-disabled-by-cond-lib.c | 24 ++
gdb/testsuite/gdb.base/bp-disabled-by-cond.c | 64 +++++
.../gdb.base/bp-disabled-by-cond.exp | 197 +++++++++++++++
gdb/testsuite/gdb.base/bp-disabled-by-cond.py | 21 ++
.../gdb.base/condbreak-multi-context.cc | 6 +-
.../gdb.base/condbreak-multi-context.exp | 231 ++++++++++++------
gdb/testsuite/gdb.base/dlmopen.exp | 76 ++++--
gdb/testsuite/gdb.base/shlib-unload-lib.c | 30 +++
gdb/testsuite/gdb.base/shlib-unload.c | 63 +++++
gdb/testsuite/gdb.base/shlib-unload.exp | 116 +++++++++
gdb/testsuite/gdb.base/shlib-unload.h | 26 ++
gdb/testsuite/gdb.base/shlib-unload.py | 31 +++
14 files changed, 852 insertions(+), 112 deletions(-)
create mode 100644 gdb/testsuite/gdb.base/bp-disabled-by-cond-lib.c
create mode 100644 gdb/testsuite/gdb.base/bp-disabled-by-cond.c
create mode 100644 gdb/testsuite/gdb.base/bp-disabled-by-cond.exp
create mode 100644 gdb/testsuite/gdb.base/bp-disabled-by-cond.py
create mode 100644 gdb/testsuite/gdb.base/shlib-unload-lib.c
create mode 100644 gdb/testsuite/gdb.base/shlib-unload.c
create mode 100644 gdb/testsuite/gdb.base/shlib-unload.exp
create mode 100644 gdb/testsuite/gdb.base/shlib-unload.h
create mode 100644 gdb/testsuite/gdb.base/shlib-unload.py
base-commit: 0e6430633515f78599840ac0ab82e20f46654363
--
2.25.4
next prev parent reply other threads:[~2024-08-29 16:27 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-18 20:50 [PATCH 0/3] " Andrew Burgess
2024-08-18 20:50 ` [PATCH 1/3] gdb/testsuite: add no-delete-breakpoints option to 'runto' proc Andrew Burgess
2024-08-23 16:39 ` Tom Tromey
2024-08-28 9:40 ` Andrew Burgess
2024-08-18 20:50 ` [PATCH 2/3] gdb/testsuite: avoid incorrect symbols in gdb.base/condbreak-multi-context.cc Andrew Burgess
2024-08-23 16:40 ` Tom Tromey
2024-08-18 20:50 ` [PATCH 3/3] gdb: fixes for code_breakpoint::disabled_by_cond logic Andrew Burgess
2024-08-23 16:42 ` Tom Tromey
2024-08-29 16:27 ` Andrew Burgess [this message]
2024-08-29 16:27 ` [PATCHv2 1/6] gdb/testsuite: avoid incorrect symbols in gdb.base/condbreak-multi-context.cc Andrew Burgess
2024-08-29 16:27 ` [PATCHv2 2/6] gdb: fixes for code_breakpoint::disabled_by_cond logic Andrew Burgess
2024-08-29 16:27 ` [PATCHv2 3/6] gdb: remove duplicate check in disable_breakpoints_in_freed_objfile Andrew Burgess
2024-08-30 16:05 ` Tom Tromey
2024-08-30 20:24 ` Andrew Burgess
2024-08-29 16:27 ` [PATCHv2 4/6] gdb: restructure disable_breakpoints_in_unloaded_shlib Andrew Burgess
2024-08-29 16:27 ` [PATCHv2 5/6] gdb: handle dprintf breakpoints when unloading a shared library Andrew Burgess
2024-08-29 16:27 ` [PATCHv2 6/6] gdb: disable internal b/p when a solib is unloaded Andrew Burgess
2024-08-30 12:03 ` Hannes Domani
2024-08-30 20:23 ` Andrew Burgess
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1724948606.git.aburgess@redhat.com \
--to=aburgess@redhat.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).