From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AD5EB3858025; Fri, 8 Jan 2021 10:04:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AD5EB3858025 From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/27159] New: maintenance command to ignore probes Date: Fri, 08 Jan 2021 10:04:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jan 2021 10:04:43 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27159 Bug ID: 27159 Summary: maintenance command to ignore probes Product: gdb Version: HEAD Status: NEW Severity: enhancement Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- On f.i. current openSUSE, libs like libgcc and glibc contain probes, which = gdb uses for various things. There may be a fallback scenario for the case when probes are not present.= =20 F.i., for installing a master exception breakpoint, if the libgcc/unwind pr= obe is not present, the libgcc hook _Unwind_DebugHook is used instead. It may be interesting or necessary (to test a fix) to test the fallback scenario, but AFAICT it's not possible to do this without modifying sources= .=20 There is a command to disable individual probes, but for the libgcc/unwind = one, I get: ... (gdb) disable probes libgcc unwind Probe libgcc:unwind cannot be disabled. ... F.i., I did this to disable all probes: ... diff --git a/gdb/elfread.c b/gdb/elfread.c index ce63d6b4b56..6667b6799e7 100644 --- a/gdb/elfread.c +++ b/gdb/elfread.c @@ -1404,10 +1404,12 @@ elf_get_probes (struct objfile *objfile) { probes_per_bfd =3D probe_key.emplace (objfile->obfd); +#if 0 /* Here we try to gather information about all types of probes from = the objfile. */ for (const static_probe_ops *ops : all_static_probe_ops) ops->get_probes (probes_per_bfd, objfile); +#endif } return *probes_per_bfd; ... to be able to test whether the code using _Unwind_DebugHook still worked. So perhaps a command "maintenance probes-disable" could be convenient. --=20 You are receiving this mail because: You are on the CC list for the bug.=