Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] Fix bug with the JIT interface and shared libraries
@ 2010-03-18 20:32 Reid Kleckner
  2010-03-22 17:36 ` Tom Tromey
  0 siblings, 1 reply; 3+ messages in thread
From: Reid Kleckner @ 2010-03-18 20:32 UTC (permalink / raw)
  To: gdb-patches

I uploaded the patch here and am pasting it inline below, since that
seems to the preferred review method here:

http://sourceware.org/bugzilla/show_bug.cgi?id=11094

If it looks good, would someone please apply it for me?  Thanks!

Reid



2010-02-20  Reid Kleckner  <reid@kleckner.net>

	PR gdb/11094
	* breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add bp_jit_event

Index: gdb/breakpoint.c
===================================================================
RCS file: /cvs/src/src/gdb/breakpoint.c,v
retrieving revision 1.455
diff -c -3 -r1.455 breakpoint.c
*** gdb/breakpoint.c	12 Feb 2010 01:24:09 -0000	1.455
--- gdb/breakpoint.c	20 Feb 2010 21:27:09 -0000
***************
*** 5168,5173 ****
--- 5168,5174 ----
         all breakpoints.  If we don't set shlib_disabled here, we'll try
         to insert those breakpoints and fail.  */
      if (((b->type == bp_breakpoint)
+ 	 || (b->type == bp_jit_event)
  	 || (b->type == bp_hardware_breakpoint)
  	 || (tracepoint_type (b)))
  	&& loc->pspace == current_program_space
***************
*** 5208,5214 ****
  	 || loc->loc_type == bp_loc_software_breakpoint)
  	&& solib->pspace == loc->pspace
  	&& !loc->shlib_disabled
! 	&& (b->type == bp_breakpoint || b->type == bp_hardware_breakpoint)
  	&& solib_contains_address_p (solib, loc->address))
        {
  	loc->shlib_disabled = 1;
--- 5209,5217 ----
  	 || loc->loc_type == bp_loc_software_breakpoint)
  	&& solib->pspace == loc->pspace
  	&& !loc->shlib_disabled
! 	&& (b->type == bp_breakpoint
! 	    || b->type == bp_jit_event
! 	    || b->type == bp_hardware_breakpoint)
  	&& solib_contains_address_p (solib, loc->address))
        {
  	loc->shlib_disabled = 1;


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

end of thread, other threads:[~2010-03-22 18:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-18 20:32 [RFA] Fix bug with the JIT interface and shared libraries Reid Kleckner
2010-03-22 17:36 ` Tom Tromey
2010-03-22 18:40   ` Reid Kleckner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox