This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: behavior of hook-stop command
- From: Sergio Durigan Junior <sergiodj at redhat dot com>
- To: "Amker.Cheng" <amker dot cheng at gmail dot com>
- Cc: gdb at sourceware dot org, hellogcc at freelists dot org
- Date: Tue, 02 Aug 2011 19:57:55 -0300
- Subject: Re: behavior of hook-stop command
- References: <CAHFci296i+6EGPL45Gx0LYtQ7F-eg0QCR+cQeVaAo7k6Z_uFsQ@mail.gmail.com>
Hi Amker,
"Amker.Cheng" <amker.cheng@gmail.com> writes:
> In gdb document, it is said hook-stop makes the associated commands
> execute every time execution stops in your program.
>
> while for cases where continue command included in hook-stop, it's not true.
[...]
> I understand hook_in is essential to prevent gdb from possible
> recursion and seems hard
> to change the behavior within current infrastructure.
> Is this a bug? Should we state this in GDB document?
I believe it could be treated as a bug. I'm not sure if this will be
fixed on the code, or on the documentation, but either way I suggest you
to open a bug in GDB bugzilla, please:
http://sourceware.org/bugzilla/
Thanks,
Sergio.