This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: [discuss] Support for reverse-execution
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Michael Snyder <msnyder at redhat dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Fri, 20 May 2005 17:31:51 -0400
- Subject: Re: [discuss] Support for reverse-execution
- References: <428E53AD.7010306@redhat.com>
On Fri, May 20, 2005 at 02:16:29PM -0700, Michael Snyder wrote:
> >> It would be an interesting discussion to see how bookmarks could be
> >> incorporated into the gdb framework.
> >
> > Sounds like a very useful feature. However, I think we need to
> > support giving meaningful names to bookmarks, since a (more or less
> > arbitrary) number used by the target is going to lack any mnemonic
> > value.
>
> How about counting numbers, like we do with breakpoints?
>
> (gdb) get-bookmark
> Bookmark #1, line 12, foo.c == <quasi-random-identifier>
> (gdb) continue
> Breakpoint 5, line 144, grbx.c
> (gdb) info bookmarks
> Bookmark ID Location
> 1 <###> foo.c line 12
> (gdb) goto-bookmark 1
> Line 12, foo.c (bookmark <quasi-random-identifier>)
I think Eli's right... why not let the user give them real names? We
can give them sequential numbers, too, if we want. I'd probably end up
naming all my bookmarks "q", cause that's the sort of person I am,
but...
--
Daniel Jacobowitz
CodeSourcery, LLC