RFC: Save the last target that the user has connected to?

Fernando Nasser fnasser@cygnus.com
Thu Jul 20 11:34:00 GMT 2000


Duane Ellis wrote:
> 
> fernado> Any reason not to do that?  Can I make this change to make this person happy?
> 
> Damn! That would make me happy.
> 
> 90% of the time i'm going in/out of the same debug session.
> 
> If this was saved - I would probably make it save in the 'current
> directory' or something like that, and *NOT* back in my home
> directory, ie: ~/.gdb-last-target would be really bad.
> 

That was probably why it is not being saved currently.  Insight uses a
preference database to save this things.  Currently there is just one
global database (in you home directory).

I agree that we should have a set of per-project (i.e., current directory)
set of preferences as does the command line interface.  This would tae a
little longer to do, however, and would have to wait.

So I rephrase my question:

  Knowing that, for the time being, the preferences saved are global, do we still
  want to save the last target we connected to?


P.S.:  Unless you press the Run button or Connect menu item immediately after the
       source window show up, you can go and change the target.  You'll be only doing
       this when you switch targets, as opposed to every single time you invoke insight.


-- 
Fernando Nasser
Red Hat - Toronto                       E-Mail:  fnasser@cygnus.com
2323 Yonge Street, Suite #300           Tel:  416-482-2661 ext. 311
Toronto, Ontario   M4P 2C9              Fax:  416-482-6299


More information about the Insight mailing list