- 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:
Eric Pouech 2004-01-28 20:05:39 +00:00 committed by Alexandre Julliard
parent da49807ea3
commit 39628f49ed

View File

@ -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;