To accommodate George Helffrich's edit command patch, I had to perform a clean-up in the CLI code removing some globals and providing the proper accessors. The edit commands goes into its proper place in cli land, and the similar list command is moved there as well. Although it is all UI stuff, I did touch many files for which I am not the maintainer (being the CLI still scattered around). Please let me know if you don't like any of the changes (they are all "global->accessor" but I've updated some comments). I don't know what to do with the TUI. It seems that it uses some of the globals and may be affected. A last note w.r.t. the MI. Someone should create the MI commands equivalent to the CLI list and edit ones. The necessary info was left behind in libgdb (source.c in particular). Depending on how the MI command arguments are defined, it may be possible to share some of the code in list_command() (the one that transforms the arguments in the beginning and end lines to be printed). If that is the case, we can move the common code back to libgdb (source.c) and export it. Regards to all. Fernando -- Fernando Nasser Red Hat Canada Ltd. E-Mail: fnasser@redhat.com 2323 Yonge Street, Suite #300 Toronto, Ontario M4P 2C9