This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: [0/9] Breakpoints at multiple locations
- From: "Pierre Muller" <muller at ics dot u-strasbg dot fr>
- To: "'Vladimir Prus'" <vladimir at codesourcery dot com>
- Cc: <gdb-patches at sourceware dot org>
- Date: Sat, 8 Sep 2007 00:18:35 +0200
- Subject: RE: [0/9] Breakpoints at multiple locations
- References: <200709080011.13700.vladimir@codesourcery.com>
> -----Original Message-----
> From: gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] On Behalf Of Vladimir Prus
> Sent: Friday, September 07, 2007 10:11 PM
> To: gdb-patches@sources.redhat.com
> Subject: [0/9] Breakpoints at multiple locations
>
>
> At the moment, gdb assumes that a code breakpoint has
> a single PC value. One case where it does not work
> is C++ constructors -- GCC generates several function
> bodies, and GDB sets breakpoint on just one of them,
> so breakpoints in constructors don't work reliably.
> Another case is C++ templates -- if I set a breakpoint
> on a line in template function, there's unbounded number
> of template instantiations that have this line, but GDB
> cannot set breakpoints on all of them.
Another case is pascal (and probably other languages) that
allow overloading of functions, i.e. to implement several flavors
of a same name function, differing by their parameters.
So I will be most happy about this change inside gdb.
Pierre Muller
Pascal language maintainer.