This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch 3/3] bpstat_what removal
- From: Stan Shebs <stan at codesourcery dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 04 May 2010 07:09:52 -0700
- Subject: Re: [patch 3/3] bpstat_what removal
- References: <20100503200217.GD30386@host0.dyn.jankratochvil.net>
Jan Kratochvil wrote:
Hi,
the simple idea is to inline bpstat_what into handle_inferior_event. This
removes enum bpstat_what_main_action and struct bpstat_what currently acting
just as an interface between these two functions.
There's a reason for this actually, which is that it helps keep the
myriad of random breakpoint types from infecting the rest of GDB.
Breakpoint types are visible globally, and individual breakpoint types
are mentioned here and there in the code, but I think it's worthwhile to
keep the type enumerations / switches in breakpoint.c as much as possible.
There is a pretty good chance that we're going to be doing some
refactoring on how breakpoint types are handled - people are interested
in the idea of "tracing watchpoints" (or "watching tracepoints" :-) )
for instance - so there's a practical reason to provide interfaces that
define the net effect of types, rather than requiring callers to know
aracane details of each.
Stan