- now reporting message on bogus line number in 'bp <num>' commands
(useful when user thinks <num> is a linear address) - fixed bogus return value in DEBUG_AddBreakpoint
This commit is contained in:
parent
da49807ea3
commit
39628f49ed
@ -368,7 +368,7 @@ BOOL DEBUG_AddBreakpoint( const DBG_VALUE *value, BOOL (*func)(void), BOOL verbo
|
|||||||
TRUE );
|
TRUE );
|
||||||
DEBUG_Printf("\n");
|
DEBUG_Printf("\n");
|
||||||
|
|
||||||
return FALSE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
@ -472,7 +472,12 @@ void DEBUG_AddBreakpointFromLineno(int lineno)
|
|||||||
DEBUG_Printf("Unable to add breakpoint\n");
|
DEBUG_Printf("Unable to add breakpoint\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
DEBUG_GetLineNumberAddr(nh, lineno, &value.addr, TRUE);
|
if (!DEBUG_GetLineNumberAddr(nh, lineno, &value.addr, TRUE))
|
||||||
|
{
|
||||||
|
DEBUG_Printf("Unknown line number\n"
|
||||||
|
"(either out of file, or no code at given line number)\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
value.type = NULL;
|
value.type = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user