[RFA] Make insert_breakpoints return void.
Jim Blandy
jimb@codesourcery.com
Thu Nov 29 19:52:00 GMT 2007
Vladimir Prus <vladimir at codesourcery.com> writes:
> The insert_breakpoints function has 'int' as return
> type, and even tries to return something, but will
> never manage to -- because on the way to returning
> non-zero value it will always through an exception.
> This patch adjust the prototype to match the actual
> behaviour. OK?
>
> - Volodya
>
> * breakpoint.h (insert_breakpoints): Change
> return type to void.
> * breakpoint.c (insert_breakpoints): Change
> return type to void. Rename local return_val
> variable to error.
> * infrun.c (keep_going): Instead of checking
> return value from insert_breakpoints, catch exception.
Looks great. Please commit.
More information about the Gdb-patches
mailing list