Fix decoding of thread IDs in the gdbproxy.
This commit is contained in:
parent
1c97e56fa9
commit
8fa319264d
|
@ -126,7 +126,8 @@ static inline unsigned char hex_to0(int x)
|
||||||
static int hex_to_int(const char* src, size_t len){
|
static int hex_to_int(const char* src, size_t len){
|
||||||
unsigned int returnval = 0;
|
unsigned int returnval = 0;
|
||||||
while (len--){
|
while (len--){
|
||||||
returnval=hex_from0(src[0]);
|
returnval|=hex_from0(src[0]);
|
||||||
|
src++;
|
||||||
if(len) returnval<<=4;
|
if(len) returnval<<=4;
|
||||||
}
|
}
|
||||||
return returnval;
|
return returnval;
|
||||||
|
|
Loading…
Reference in New Issue