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: Use external editor in 'commands' command


>>>>> "Alfredo" == Alfredo Ortega <ortegaalfredo@gmail.com> writes:

Alfredo> It would be difficult to choose a portable editor...maybe
Alfredo> with some #defines

If you are interested in solving this problem, a user-settable
"editor" parameter would seem to be a reasonable thing to add.

There's also the option of simply not providing a default -- if EDITOR
is not set in the environment, we could make these commands call
error.

IMO you aren't required to do any better than already existing code in
gdb -- it would just be nice to have.  I do agree with Daniel that the
code in question should be pulled out into a utility function.

Tom


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