I’m debugging my program with gdb and I have found a weird value for a variable x0.
the search x0 = will only show me the line in the current frame where the “x0 = ” regex is written from the last listed line in the frame, on. Is there a possibility to find the regex in an upward direction? Like, if x0 has a weird value, I would like the gdb to search for the “x0 = ” regex from the current line, up. This is much easier than just listing above, and above, and above…
Thanks
http://sourceware.org/gdb/current/onlinedocs/gdb/Search.html#index-search-450
reverse-search regexp
And the
searchcommand is just an alias offorward-searchcommand.