Mail Archives: djgpp/2001/06/06/07:45:16
Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote:
>> From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
>> Newsgroups: comp.os.msdos.djgpp
>> Date: 5 Jun 2001 18:03:38 GMT
>>
>> > But there was never a need to mention any source files.
>>
>> "preproc.c" in this case is not an argument for gdb. It's a command
>> line argument to be passed to the debuggee, cxref.
> This cannot be done at all with GDB, not only the DJGPP port.
Not with current GDB, sure. All I wrote above is really just one
possible explanation about what the original poster may have had in
mind, and how he might have come to expect that to work. Some people
are still used to amazingly old version of DJGPP, it seems.
To put this all into context, here's the background story:
Back in the days of 'go32 -d gdb debuggee', the debugger was started
in a wildly different way. It wasn't a separate program, but rather
an extension module to the go32 driver. The debuggee was started by
go32, only to be interrupted very soon afterwards to pass control to
the debugger module.
And as far as I remember, the way to pass command line arguments to
the debuggee indeed was to put them on the "go32 ..." command line,
so they would be available to go32 and be passed to the debuggee even
before GDB took control. GDB's "run" command wasn't functional, back
then, so you couldn't use the usual "run arg1 arg2" or "set args arg1
arg2" commands from inside GDB. To start the debuggee from scratch,
you had to quit to the shell and restart the debugger and program from
scratch.
Thus,
go32 -g gdb cxref preproc.c
would run "cxref preproc.c" under control of GDB, back then. And at
least my collection of tools did include a "gdb.bat" that expanded to
"go32 -g gdb %1 %2 %3 %4 %5 %6 %7 %8 %9", so calling "gdb cxref
preproc.c" would have been my usual way of running such a debugger
session.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -