public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] fix missed breakpoint upon jit re-registration
@ 2020-05-12 11:33 Mihails Strasuns
  2020-05-12 11:33 ` [PATCH 1/2] [gdb/testsuite] optional flags for compile_and_download_n_jit_so Mihails Strasuns
  2020-05-12 11:33 ` [PATCH 2/2] jit: remove bp locations when unregistering jit code Mihails Strasuns
  0 siblings, 2 replies; 9+ messages in thread
From: Mihails Strasuns @ 2020-05-12 11:33 UTC (permalink / raw)
  To: gdb-patches

Same as the patch previously submitted on gerrit but rebased and with a test
case reworked based on changes recently merged. Without the fix the last
breakpoint hit test case will FAIL. Issue was originally found when debugging
an OpenCL program.

Some explanation of the issue is in the second commit. Alternative would be to
remove all breakpoint locations upon any destruction of an object file but I
don't understand the implications well enough to call for it myself.

Mihails Strasuns (2):
  [gdb/testsuite] optional flags for compile_and_download_n_jit_so
  jit: remove bp locations when unregistering jit code

 gdb/breakpoint.c                              | 44 +++++++++++
 gdb/breakpoint.h                              |  7 ++
 gdb/jit.c                                     | 36 ++++++---
 gdb/testsuite/gdb.base/jit-elf-reregister.c   | 66 ++++++++++++++++
 gdb/testsuite/gdb.base/jit-elf-reregister.exp | 77 +++++++++++++++++++
 gdb/testsuite/lib/jit-elf-helpers.exp         |  8 +-
 6 files changed, 227 insertions(+), 11 deletions(-)
 create mode 100644 gdb/testsuite/gdb.base/jit-elf-reregister.c
 create mode 100644 gdb/testsuite/gdb.base/jit-elf-reregister.exp

-- 
2.26.2

Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Gary Kershaw
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-06-16 11:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-12 11:33 [PATCH 0/2] fix missed breakpoint upon jit re-registration Mihails Strasuns
2020-05-12 11:33 ` [PATCH 1/2] [gdb/testsuite] optional flags for compile_and_download_n_jit_so Mihails Strasuns
2020-05-24 14:34   ` Simon Marchi
2020-05-12 11:33 ` [PATCH 2/2] jit: remove bp locations when unregistering jit code Mihails Strasuns
2020-05-24 15:01   ` Simon Marchi
2020-05-25 10:07     ` Strasuns, Mihails
2020-06-05 12:07       ` Strasuns, Mihails
2020-06-07  3:41       ` Simon Marchi
2020-06-16 11:48         ` Strasuns, Mihails

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).