Skip to content

Commit

Permalink
backtrace: Allow whitespace after the backtrace addresses
Browse files Browse the repository at this point in the history
Some terminals may fill padding with spaces when copying text from them.
Allow for arbitrary amount of whitespace after a backtrace line.

Signed-off-by: Botond Dénes <[email protected]>
Message-Id: <e5a04af9f22c0afefcc5c3c5b544fc634aca980d.1507117241.git.bdenes@scylladb.com>
  • Loading branch information
denesb authored and tgrabiec committed Oct 4, 2017
1 parent aee3c46 commit e60afd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/seastar-addr2line
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import subprocess


class line_processor(object):
object_address_re = re.compile('^\W*(((/[^/]+)+)\+)?(0x[0-9a-f]+)$')
object_address_re = re.compile('^\W*(((/[^/]+)+)\+)?(0x[0-9a-f]+)\W*$')

def __init__(self, executable):
self._executable = executable
Expand Down

0 comments on commit e60afd2

Please sign in to comment.