Fix thread list parsing for recent GDBs again.
commit82e0a688fc9d7d494a96427f03b75d1cdd83f25b
authorJohannes Sixt <j6t@kdbg.org>
Wed, 22 Aug 2012 19:41:45 +0000 (22 21:41 +0200)
committerJohannes Sixt <j6t@kdbg.org>
Wed, 22 Aug 2012 19:41:45 +0000 (22 21:41 +0200)
treefc42109b6abee040b44445173d0919a49351634c
parent2c4c711946a1a9e809c570332b6794f0c19a7d19
Fix thread list parsing for recent GDBs again.

Commit 449e95b9 (Fix parsing of the thread list) introduced a new algorithm
that can parse the thread list as produced by recent GDBs. But the new
method incorrectly skips two characters at the beginning of the stack
frame information, which strips off the first two letters of the function
name or the address.

The fix skips the two bytes only in the old parser, which are in that case
two blanks. These two are then trimmed when the name is constructed. This
incidentally also strips whitespace at the end of the name that was
inadvertently produced by the new algorithm.
kdbg/gdbdriver.cpp