Re: [patch] Add an evaluation function hook to Python breakpoints.

Tom Tromey
2011-01-28T09:58:46Z

>>>>> "Phil" == Phil Muldoon <pmuldoon@redhat.com> writes:

Phil> So we only have the enum la_language available when we have the
Phil> breakpoint. Not sure if there is a way to backtrack back to
Phil> language_defn, and if not, we are stuck with current_language.

You can call `language_def' to get it.

Phil> Also the b->gdbarch member is NULL with watchpoints, so we have to do:
[...]
Phil> I'm not sure why watchpoints have a NULL gdbarch, but if you grep
Phil> watch_command_1, the watchpoint is eventually created with:

I don't know the reason either. It seems like the watchpoint's
expression will have an arch, so the watchpoint might as well have the
same one.

Tom