This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] remove unwanted output in breakpoint_re_set_one
- From: muller at cerbere dot u-strasbg dot fr
- To: Eli Zaretskii <eliz at is dot elta dot co dot il>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Mon, 14 Jan 2002 20:22:42 +0100
- Subject: Re: [RFA] remove unwanted output in breakpoint_re_set_one
- References: <4.2.0.58.20020114121954.00acc5b8@ics.u-strasbg.fr>
At 14:42 14/01/02 +0200, Eli Zaretskii wrote:
>
>On Mon, 14 Jan 2002, Pierre Muller wrote:
>
>> 2002-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
>>
>> * breakpoint.c (breakpoint_re_set_one): Remove call to mention
>> for watchpoints to avoid unnecessary output
>> when dynamic libraries are loaded.
>
>This, of course, begs the question: why was the call to `mention' in
>breakpoint_re_set_one in the first place? Is this function called only
>when a dynamic library was loaded? If not, we might be shooting
>ourselves in the foot. Even if it is only called when a dynamic library
>was loaded, the question why the message was put there still remains.
If you look above in the same function you will see that
mention is called for breakpoints, but only if the breakpoint
address changed.
So it should probably be the same here, but
can a shared lib loading change the watched addresses
needed to watch a given expression?
I suppose that a correct implementation would
just call mention if the watched address area are changed,
but I have no idea how that can be done, and I am not
enough interested in this to invest time to try to find out
how that could be accomplished.