This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Don't lose compilation directory in Dwarf2 line-tables
On Fri, Apr 14, 2006 at 05:21:41PM +0300, Eli Zaretskii wrote:
> > Really? my checkout from yersterday still asks me :
> > (gdb) dir
> > Reinitialize source path to empty? (y or n) y
> >
> > Source directories searched: $cdir:$cwd
>
> Right you are, but this raises an issue with the Windows port (where I
> originally checked this): it does NOT ask for permission.
>
> [Time passes...] Ah, I see, it's probably because
> input_from_terminal_p returns zero on Windows. Is this fixable?
How current is your binary, and what are you running it in? And what's
the host platform configured as?
If it's a MinGW32-hosted GDB, and you're running it in a DOS console,
and the binary is more than a few months old, than this is an expected
and fixed bug; try a current CVS. If this is a DJGPP binary running
in a Windows console, then I'm not really sure what to do. I haven't
tried that. You'd have to do something similar to what I did for
mingw32.
The problem came in gdb_has_a_terminal. You have to have serial_fdopen
work on the console, and you have to be able to get the terminal state
from the result.
> Anyway, I think we should modify the prompt to say this:
>
> Reinitialize source path to default? (y or n)
>
> Does anyone disagree?
This sounds good to me.
--
Daniel Jacobowitz
CodeSourcery