This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Add an evaluation function hook to Python breakpoints.
- From: Tom Tromey <tromey at redhat dot com>
- To: pmuldoon at redhat dot com
- Cc: Doug Evans <dje at google dot com>, pedro at codesourcery dot com, eliz at gnu dot org, gdb-patches at sourceware dot org
- Date: Fri, 28 Jan 2011 02:58:29 -0700
- Subject: Re: [patch] Add an evaluation function hook to Python breakpoints.
- References: <m38vztlr2r.fsf@redhat.com> <AANLkTimS_32d+7phemj95qCSdJzgXXOxjMhbt_9+i8D6@mail.gmail.com> <m34oags1q1.fsf@fleche.redhat.com> <m3r5dj6oed.fsf@redhat.com> <m3mxo6lpyi.fsf@fleche.redhat.com> <m3k4hqznrw.fsf@redhat.com>
>>>>> "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