Commit 39628f49 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

- 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
parent da49807e
......@@ -368,7 +368,7 @@ BOOL DEBUG_AddBreakpoint( const DBG_VALUE *value, BOOL (*func)(void), BOOL verbo
TRUE );
DEBUG_Printf("\n");
return FALSE;
return TRUE;
}
/***********************************************************************
......@@ -472,12 +472,17 @@ void DEBUG_AddBreakpointFromLineno(int lineno)
DEBUG_Printf("Unable to add breakpoint\n");
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.cookie = DV_TARGET;
DEBUG_AddBreakpoint( &value,NULL, TRUE );
DEBUG_AddBreakpoint( &value, NULL, TRUE );
}
/***********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment