This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: don't set the pspace on ordinary breakpoints


>>>>> "Pedro" == Pedro Alves <pedro@codesourcery.com> writes:

Pedro> I'm looking at this one, and thinking that if we simply remove the
Pedro> guard, we'll allow re-set to go through while we can't trust
Pedro> symbols/sections in the program space, because they haven't been
Pedro> relocated yet, but this is wrong (as opposed to just inneficient)
Pedro> because GDB will actually read memory from the wrong addresses
Pedro> (prologue skipping, breakpoint shadow, at least).

Pedro> We can't just make bp_startup_disabled be per-location,
Pedro> because a re-set could find new locations, defeating the guard.

Yeah, that makes sense.

I think I will change linespec to ignore program spaces in this state.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]