From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1256 invoked by alias); 22 Nov 2001 07:13:25 -0000 Mailing-List: contact insight-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 391 invoked from network); 22 Nov 2001 07:11:34 -0000 X-Lotus-FromDomain: ACER From: Keith Seitz To: Tom Tromey cc: Insight List Message-ID: <48256B0B.007F6878.00@TWALINS3> Date: Thu, 04 Oct 2001 19:28:00 -0000 Subject: Re: Startup with --args Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline X-SW-Source: 2001-q4/txt/msg00054.txt.bz2 On 21 Nov 2001, Tom Tromey wrote: > It never occurred to me. Unbelievable. How about the appended? It > is much simpler. YES! Love that isolation! Of course, late last night I convinced myself that maybe your original patch is correct, too. :-( Time will tell. Keith > Index: ChangeLog > from Tom Tromey > > * library/interface.tcl (gdbtk_tcl_preloop): Override session's > command-line arguments if required. > > Index: library/interface.tcl > =================================================================== > RCS file: /cvs/src/src/gdb/gdbtk/library/interface.tcl,v > retrieving revision 1.32 > diff -u -r1.32 interface.tcl > --- library/interface.tcl 2001/11/19 18:43:19 1.32 > +++ library/interface.tcl 2001/11/21 22:36:53 > @@ -113,8 +113,14 @@ > > if {$gdb_exe_name != ""} { > # At startup, file_changed_hook is called too late for us, so we > - # must notice the initial session by hand. > + # must notice the initial session by hand. If the arguments exist > + # -- if the user used `gdb --args' -- then we want the new > + # arguments to override the session's arguments. > + set current_args [gdb_get_inferior_args] > session_notice_file_change > + if {[string length $current_args] > 0} { > + gdb_set_inferior_args $current_args > + } > } > > gdbtk_update > From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keith Seitz To: Tom Tromey Cc: Insight List Subject: Re: Startup with --args Date: Wed, 21 Nov 2001 23:13:00 -0000 Message-ID: <48256B0B.007F6878.00@TWALINS3> X-SW-Source: 2001-q4/msg00355.html Message-ID: <20011121231300.Y8c46yQhtLvycu9zLekIcymO7bIBmG_TI-yWAulxEKA@z> On 21 Nov 2001, Tom Tromey wrote: > It never occurred to me. Unbelievable. How about the appended? It > is much simpler. YES! Love that isolation! Of course, late last night I convinced myself that maybe your original patch is correct, too. :-( Time will tell. Keith > Index: ChangeLog > from Tom Tromey > > * library/interface.tcl (gdbtk_tcl_preloop): Override session's > command-line arguments if required. > > Index: library/interface.tcl > =================================================================== > RCS file: /cvs/src/src/gdb/gdbtk/library/interface.tcl,v > retrieving revision 1.32 > diff -u -r1.32 interface.tcl > --- library/interface.tcl 2001/11/19 18:43:19 1.32 > +++ library/interface.tcl 2001/11/21 22:36:53 > @@ -113,8 +113,14 @@ > > if {$gdb_exe_name != ""} { > # At startup, file_changed_hook is called too late for us, so we > - # must notice the initial session by hand. > + # must notice the initial session by hand. If the arguments exist > + # -- if the user used `gdb --args' -- then we want the new > + # arguments to override the session's arguments. > + set current_args [gdb_get_inferior_args] > session_notice_file_change > + if {[string length $current_args] > 0} { > + gdb_set_inferior_args $current_args > + } > } > > gdbtk_update >