From: Fernando Nasser <fnasser@cygnus.com>
To: tromey@cygnus.com
Cc: Insight List <insight@sourceware.cygnus.com>
Subject: Re: Patch: session saving
Date: Wed, 13 Dec 2000 14:27:00 -0000 [thread overview]
Message-ID: <3A37F7BC.742F7CED@cygnus.com> (raw)
In-Reply-To: <87zoij96f7.fsf@creche.cygnus.com>
Tom Tromey wrote:
>
> This patch implements simple session saving for Insight.
>
(...)
>
> Future work includes:
>
(...)
>
> * Save target and target settings
>
I did this one following your instructions.
It works beautifully.
Thanks for the hints.
Fernando
Here is the patch:
* session.tcl (session_save): Save target name.
(session_load): Restore target name.
Index: session.tcl
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/session.tcl,v
retrieving revision 1.3
diff -c -p -r1.3 session.tcl
*** session.tcl 2000/12/07 21:56:25 1.3
--- session.tcl 2000/12/13 22:23:01
*************** proc session_save {} {
*** 58,63 ****
--- 58,65 ----
# the session, as returned by session_list.
#
proc session_load {name} {
+ global gdb_target_name
+
# gdb sessions are named after the executable.
set key gdb/session/$name
*************** proc session_load {name} {
*** 86,92 ****
set_exe
}
! # FIXME: handle target
}
#
--- 88,97 ----
set_exe
}
! if {[info exists values(target)]} {
! debug "Restoring Target: $values(target)"
! set gdb_target_name $values(target)
! }
}
#
--
Fernando Nasser
Red Hat - Toronto E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9
prev parent reply other threads:[~2000-12-13 14:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-28 12:39 Tom Tromey
2000-11-28 12:58 ` Syd Polk
2000-12-13 14:27 ` Fernando Nasser [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3A37F7BC.742F7CED@cygnus.com \
--to=fnasser@cygnus.com \
--cc=insight@sourceware.cygnus.com \
--cc=tromey@cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).