[PATCH v3 1/1] gdb: abort start command if there is no symbol for 'main_name ()'

Tom Tromey tom@tromey.com
Tue Jan 14 16:08:39 GMT 2025


>>>>> Rohr, Stephan <stephan.rohr@intel.com> writes:

>   * A 'No symbol table is loaded.  Use the "file" command' error is printed.
>   * The error is consumed in 'create_breakpoint' and the user may insert a 
>      pending breakpoint.  The error only rethrown if pending breakpoints are not
>      supported.

Ugh yeah.

> We would need to rethrow the error in 'create_breakpoint'.  This requires
> additional changes and may impact other calls to 'create_breakpoint'.
> I would like to avoid this.

> I could not observer regressions for Ada if I entirely remove the check.

> Do you have any concerns?

Not really, I think.  You might as well try it IMO.

Tom


More information about the Gdb-patches mailing list