From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fernando Nasser To: duane_ellis@franklin.com Cc: kseitz@firetalk.com, jingham@apple.com, insight@sources.redhat.com, spolk@redhat.com Subject: Re: RFC: Save the last target that the user has connected to? Date: Thu, 20 Jul 2000 11:34:00 -0000 Message-id: <3977462B.7E76C56@cygnus.com> References: <200007172124.RAA03249@mercury.franklin.com> <39759DFC.E7798EA5@firetalk.com> <397741D1.F1180A0A@cygnus.com> <200007201823.OAA01332@mercury.franklin.com> X-SW-Source: 2000-q3/msg00084.html 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