This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Set breakpoint on the right line
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 19 Aug 2014 15:48:10 +0200
- Subject: Re: [PATCH] Set breakpoint on the right line
- Authentication-results: sourceware.org; auth=none
- References: <1407806302-14295-1-git-send-email-yao at codesourcery dot com> <20140819063838 dot GB1773 at adacore dot com> <53F3519B dot 3080905 at codesourcery dot com>
> > I think you are right, but can you describe the error you are getting
> > with arm-none-eabi?
>
> Sure, the fail is shown as below:
>
> continue^M
> Continuing.^M
> ^M
> *** EXIT code 0^M
> [Inferior 1 (Remote target) exited normally]^M
> (gdb) FAIL: gdb.base/watchpoint-hw-hit-once.exp: continue to break-at-exit (the program exited)
>
> I also copy it in the commit log. Patch is pushed in.
I actually didn't pre-approve, but never mind :-).
I think I understand, now. The problem using the first break-at-exit
line was that the watchpoint would be triggering at the same location
the breakpoint was inserted. So the "continue" test right after would
never hit that breakpoint. If my understanding is correct, the patch
is officially approved :).
--
Joel