This is the mail archive of the gdb@sources.redhat.com 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]

Re: Thread switching and stepping bug


Andrew,

I'm a bit nervous about making it the default.  Although I believe that it 
would certainly help 99% of targets, I worry about the last 1%.

Would there be some way of just turning this on for targets that support threads?

Andrew Cagney wrote:

>> Jonathan,
>> 
>> Note that my patch provides the generic PREPARE_TO_PROCEED 
>> functionality. You'll have to change your tdep file to use 
>> generic_prepare_to_proceed().  If your target is already multi-arched, 
>> it is a one line change in your {target}_gdbarch_init() function.  It 
>> would look like this:
>> 
>>   set_gdbarch_prepare_to_proceed (gdbarch, generic_prepare_to_proceed);
>> 
>> Give that a shot.
> 
> 
> Perhaphs the generic version should be enabled by default?
> 
> While this is definitly a departure from the norm - retain default 
> behavour even when broken - I suspect it may still be better since 
> enabling this fixes a bug.
> 
>     Andrew



-- 
David Smith
dsmith@redhat.com
Red Hat, Inc.
http://www.redhat.com
256.704.9222 (direct)
256.837.3839 (fax)


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