Created
December 4, 2013 07:27
-
-
Save RedHatter/7783621 to your computer and use it in GitHub Desktop.
Breakpoint for gdb, breaks when a string containing "your string" is printed to stderr. Useful for breaking on errors that could come from anywhere.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gdb break write if 2 == *(int*)($esp + 4) && strstr((char*)*(int*)($esp + 8), "your string") != 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Unfortnutately not on an ubuntu 16.04 server (intel) with gdb 8.2