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: [RFA] Fix for testsuite errors with gdbserver (remote)


Tom> All that python_inferior_exit is doing to provoke the crash is calling
Tom> get_current_arch.  Under what circumstances is this not safe?  I would
Tom> have thought -- perhaps naively -- that it was always safe.

This is maybe a little too brief.
get_current_arch calls has_stack_frames.

My view is that has_stack_frames relies on some invariants that should
hold for the various globals it accesses.  Maybe it is using them
incorrectly.  Or maybe the invariants, whatever they are, are violated
elsewhere.

I think Pierre's patch operates on the latter theory.  I don't really
know enough to know whether it is correct.

Tom


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