This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA: [ser-unix.c] Fix handling of baud rates
> Date: Thu, 26 Apr 2001 10:45:36 -0400
> From: Fernando Nasser <fnasser@redhat.com>
>
> > > But as we are adding a warning(), why not just say:
> > > "Illegal baud rate %d; using %d instead."
> >
> > Can you prompt for another value (after making sure this is an
> > interactive session)?
>
> We already prompt for many things, but I believe we want to get rid of
> these prompts outside the interpreters. It complicates the
> interpreter<->libgdb protocol, I've heard. The idea is that idempotent
> libgdb operations fail and the interpreter (after asking the user what
> to do) retries them with the proper values.
Yes, that makes sense. Is there any way that libgdb can give the
interpreter an indication that it wants to prompt the user?
> So, we would have to go with the error solution until that is fixed.
>
> Is that right?
I'm not very experienced with debugging such boards, but it sounds
that a failure would indeed be the best way out.