diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2013-03-05 16:24:38 +0100 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2013-03-05 16:24:38 +0100 |
commit | 5a9ac57c21d9f61192ed9ecc662f71ff85a5793e (patch) | |
tree | f702c1eeed080417b6c6102c88d6db4e57c08a0e | |
parent | b84f814cd4d92f43a1c2595afec872fb3d7634eb (diff) | |
download | gdb-bt-reformat-5a9ac57c21d9f61192ed9ecc662f71ff85a5793e.tar.gz gdb-bt-reformat-5a9ac57c21d9f61192ed9ecc662f71ff85a5793e.tar.xz gdb-bt-reformat-5a9ac57c21d9f61192ed9ecc662f71ff85a5793e.zip |
Some string parameters can be prefixed by hexaddress
Similarly, access out-of-bounds messages can be appended to the address
itself.
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rwxr-xr-x | gdb-bt-reformat | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb-bt-reformat b/gdb-bt-reformat index 6bb31cb..389d6e1 100755 --- a/gdb-bt-reformat +++ b/gdb-bt-reformat @@ -11,8 +11,8 @@ DEF_IDENT = '[A-Za-z_][A-Za-z0-9_]*' DEF_UNKNOWN = '[?]{2}' DEF_HEX = '0x[0-9A-Fa-f]+' DEF_NUM = '[+-]?(?:[0-9]+(?:[.][0-9]*)?|[.][0-9]+)(?:[eE][0-9]+)?' -DEF_MSG = '[<][ A-Za-z0-9_]+[>]' -DEF_STR = '["][ A-Za-z0-9_]*["]' +DEF_MSG = '(?:%(DEF_HEX)s\s+)?[<][ A-Za-z0-9_]+[>]' % locals() +DEF_STR = '(?:%(DEF_HEX)s\s+)?["][ A-Za-z0-9_:]*["]' % locals() DEF_PATH = '[A-Za-z0-9._/-]+' RE_BT = re.compile( '(?P<init>^\#[0-9]+\s+)' |