Fix crashes on certain memory watch expressions
This commit is contained in:
parent
f83aa47a7f
commit
9d3cae86bd
1 changed files with 3 additions and 2 deletions
|
@ -69,6 +69,7 @@ namespace
|
|||
if(*end)
|
||||
throw std::runtime_error("#syntax (badval)");
|
||||
}
|
||||
hex = 0;
|
||||
}
|
||||
uint64_t as_address() const
|
||||
{
|
||||
|
@ -242,8 +243,8 @@ std::string evaluate_watch(const std::string& expr) throw(std::bad_alloc)
|
|||
numeric_type b;
|
||||
int d;
|
||||
try {
|
||||
for(size_t i = 0; i < expr.length(); i++) {
|
||||
numeric_type r;
|
||||
for(size_t i = 0; i < expr.length(); i++) {
|
||||
numeric_type r;
|
||||
switch(expr[i]) {
|
||||
case 'C':
|
||||
y = expr.find_first_of("z", i);
|
||||
|
|
Loading…
Add table
Reference in a new issue