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: [patch] Add an evaluation function hook to Python breakpoints.


>>>>> "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


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