Re: Use external editor in 'commands' command

Tom Tromey
2009-01-16T23:56:39Z

>>>>> "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