Pedro Alves wrote: > > ... this bit, that revealed a bug. saved_inferior should be used. Please > add a "current_inferior = saved_inferior;" statement before > every return path in this function instead. Bonus points > if you do that in a separate patch from the "remove unused > variables" one. Pedro, I've submit a separate patch against this issue which you pointed out. http://sourceware.org/ml/gdb-patches/2010-09/msg00156.html My updated patch to remove unused variables is attached. -- Yao Qi CodeSourcery yao@codesourcery.com (650) 331-3385 x739