Bookmarks

A bookmark names a time in a program’s execution history, in order to be able to jump to the bookmarked time from any later point in a debugging session.

Create a bookmark using the ubookmark command, jump to a bookmarked time using the ugo bookmark command, and list bookmarks using the info bookmarks command.

ubookmark [name]

Create a bookmark at the current time in execution history.

If name is omitted, choose a name automatically.

Creating a new bookmark asks for a confirmation before overwriting the old bookmark with the same name.

For example:

126         for (unsigned i = 0; i < sizeof indicator; ++i)
recording 11,745> info time -a
Current time is: 11,745:0x555555555502 (in recorded range: [1 - 11,745])
recording 11,745> ubookmark test
Added bookmark 'test'.

The bookmark test now refers to the current time in the program’s execution history.

Bookmarks can be deleted with the delete bookmark command.

Note

Bookmark names may not start with a number, space, hyphen, comma, dollar sign, minus sign, plus sign, now, or with the name of a sub-command of the ugo command (start, end, undo etc.).

ugo bookmark name

Jump to a bookmarked time in execution history.

For example:

Program received signal SIGABRT, Aborted.
__pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6,
    no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
44      ./nptl/pthread_kill.c: No such file or directory.
recording 1,158,389 sigabrt> ugo bookmark test
main (argc=2, argv=0x7fffffffd718) at hashtable.c:126
126         for (unsigned i = 0; i < sizeof indicator; ++i)
Have moved to bookmark: test.
1% 11,745 test> info time -a
Current time is: 11,745:0x555555555502 (in recorded range: [1 - 1,158,389])

info bookmarks

Show bookmarks.

For example:

1% 11,745 test> info bookmarks
Time                      Name
------------------------  -------
   11,745:0x555555555502  test
1,158,389:0x7ffff7e4e3ac  sigabrt

delete bookmark [name]

Delete bookmark name, or, with no argument, delete all bookmarks.

For example:

1% 11,745 test> info bookmarks
Time                      Name
------------------------  -------
   11,745:0x555555555502  test
1,158,389:0x7ffff7e4e3ac  sigabrt
1% 11,745 test> delete bookmark test
1% 11,745> info bookmarks
Time                      Name
------------------------  -------
1,158,389:0x7ffff7e4e3ac  sigabrt
1% 11,745> delete bookmark
Delete all bookmarks? (y or n) y
1% 11,745> info bookmarks
No bookmarks.