This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] MI: Error out on -var-create invalid FRAME-ADDR


Jan Kratochvil wrote:

> - Â Â Âif (innermost_block && fi != NULL)
> + Â Â Âif (innermost_block)
> {
> +ÂÂÂÂÂÂÂ Â/* User could specify explicit FRAME-ADDR which was not found but
> +ÂÂÂÂÂÂÂ Â Â EXPRESSION is frame specific and we would not be able to evaluate
> +ÂÂÂÂÂÂÂ Â Â it correctly next time. ÂWith VALID_BLOCK set we must also set
> +ÂÂÂÂÂÂÂ Â Â FRAME and THREAD_ID. Â*/
> +ÂÂÂÂÂÂÂ Âif (fi == NULL)
> +ÂÂÂÂÂÂÂ Â Â{
> +ÂÂÂÂÂÂÂ Â Â Âfprintf_unfiltered (gdb_stderr, "Failed to find the specified"
> +ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ Â" frame.\n");
> +ÂÂÂÂÂÂÂ Â Â Âreturn NULL;
> +ÂÂÂÂÂÂÂ Â Â}

Why is this fprintf + NULL return, as opposed to error?

Seems OK otherwise.

- Volodya





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]