On 8/22/24 9:30 AM, Iain Sandoe wrote:
Hi Jason,
+ tree stmt = begin_function_body ();
As in the last patch, "stmt" seems an obscure name for the result of
begin_function_body.
done.
+ /* Avoid the code here attaching a location that makes the debugger jump. */
+ location_t save_input_loc = input_location;
+ location_t loc = UNKNOWN_LOCATION;
+ input_location = loc;
Maybe use iloc_sentinel? It's a bit awkward because it won't set
UNKNOWN_LOCATION, but avoids needing to restore it at the end of the function.
I've used this - with the function start location - but I don't think that
really solves the problem; it needs to be UNKNOWN_LOCATION to stop the debugger
dancing around.
You can directly set input_location to UNKNOWN_LOCATION after the
iloc_sentinel, it will still restore the original value on scope exit.
Jason