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
org = open(p[0].file).read().split("\n")[int(p[0].line) - 1] | |
prt = org.lstrip() | |
print("%s:%s:%s: cocci: found" % (p[0].file, p[0].line, p[0].column)) | |
print("%s | %s" % (p[0].line, prt)) | |
print( | |
"%s | %s%s" | |
% ( | |
" " * len(p[0].line), | |
" " * (int(p[0].column) - (len(org) - len(prt))), | |
"^" * (int(p[0].column_end) - int(p[0].column)), |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# | |
# STL GDB evaluators/views/utilities - 1.03 | |
# | |
# The new GDB commands: | |
# are entirely non instrumental | |
# do not depend on any "inline"(s) - e.g. size(), [], etc | |
# are extremely tolerant to debugger settings | |
# | |
# This file should be "included" in .gdbinit as following: | |
# source stl-views.gdb or just paste it into your .gdbinit file |