This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH v2 0/3] Fix stop-on-solib event failures
- From: Alan Hayward <Alan dot Hayward at arm dot com>
- To: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Cc: nd <nd at arm dot com>, Alan Hayward <Alan dot Hayward at arm dot com>
- Date: Wed, 21 Aug 2019 15:58:20 +0000
- Subject: [PATCH v2 0/3] Fix stop-on-solib event failures
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=c7gINmcx/e7BD10+Shd50oy+u2XqmXp0SEMcm3JGAfk=; b=ICvI0Yoaa4ao8NpI87zX8UNe3JyN6d/Scw+J45PrTx1oI345ETDDA6Fjy5uM7Gqw3TjR520Az5/J5+myzi6OcnSfsUwS/ypAEdNSrdgkoBhrvUh6m53jglKzaV8OJRJwdUQd9+GSCqfXAMxy0vUky2SJjDD3y9OnZZDVLb1cK0P3e3jkuka3430zZEPcq9rROp/W8CeIvq0KHrLy7skl7JXmBy0yjH/L/LIpZbfGjWDGlCKnUfMYV6ULDy59r9FlJA4Gl2MRVPQd2mIUK69FZAK/wBDDxwPV/AI8RXQdrmxKAikldK978U0chbVI/b86iKd+/Pn5HBxJEghkFDSIcg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i/pcNFgoZGt1+0+xs/Ab6v7EEV7kYC5QgjzD4M/AnaNbVMhKfOWNyJYZuYgMLTX5RuGQE/gyxJNLyHJ+lFWs9Yk8C/eeKTqYWexwcnPs6I8RaszID80xqEX44luxAE1Za166xnMs4W6PFMthdz8ad1nL3QALyBPO6dKbnB9rkrekmo83bxbyviCMJ3zbFq6m7FDJJ+V3Bjh1KeExwSmBxX9tyNq2+dVXkPephqsWNllHRvKdb7bPnOVQces4n5PsJDC3IDegJv2j8MO7nBLTaL+h0LH3hq4BqD9tyrjpeE4KCmIrzeFd/EfS0SGib6YwP8a80Zj6/dyMfDUwHGFgqA==
- Original-authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alan dot Hayward at arm dot com;
On some Arm targets (namely the buildbot Arm Docker setup) placing breakpoints
on just the solib dynamic probes will cause the target process to not stop.
This is due to the probes being invalid - see link in 3/3 for more details.
Fix is to fully validate the probes before using the,.
Patches 1 and 2 are code refactors. The actual fix is in patch 3.
Alan Hayward (3):
Refactor svr4_create_solib_event_breakpoints
Use gdbarch for probe::get_argument_count
Check arguments for all probes before using them
gdb/break-catch-throw.c | 2 +-
gdb/dtrace-probe.c | 4 +-
gdb/probe.c | 7 +-
gdb/probe.h | 2 +-
gdb/solib-svr4.c | 139 ++++++++++++++++++++--------------------
gdb/stap-probe.c | 6 +-
6 files changed, 80 insertions(+), 80 deletions(-)
--
2.20.1 (Apple Git-117)