From 133777b60fdca975a8971e245bafc7d9a83a4c2a Mon Sep 17 00:00:00 2001
From: kseitz
Date: Thu, 1 Sep 2005 05:11:04 +0000
Subject: [PATCH] * library/help/target.html: Update dialog options.
* library/targetselection.itb (help): Implement. (build_win):
Don't disable help button. Only display "use tty" option on unix
hosts.
---
gdb/gdbtk/ChangeLog | 7 +++++++
gdb/gdbtk/library/help/target.html | 8 ++++++++
gdb/gdbtk/library/targetselection.itb | 16 ++++++++++------
3 files changed, 25 insertions(+), 6 deletions(-)
diff --git a/gdb/gdbtk/ChangeLog b/gdb/gdbtk/ChangeLog
index c87ed55c95..1a55da41f3 100644
--- a/gdb/gdbtk/ChangeLog
+++ b/gdb/gdbtk/ChangeLog
@@ -1,5 +1,12 @@
2005-08-31 Keith Seitz
+ * library/help/target.html: Update dialog options.
+ * library/targetselection.itb (help): Implement.
+ (build_win): Don't disable help button.
+ Only display "use tty" option on unix hosts.
+
+2005-08-31 Keith Seitz
+
* library/bpwin.itb (bp_store): gdb_get_breakpoint_info outputs
the breakpoint condition, too -- include it in the lassign.
diff --git a/gdb/gdbtk/library/help/target.html b/gdb/gdbtk/library/help/target.html
index c60ed47a25..b56821b0cf 100644
--- a/gdb/gdbtk/library/help/target.html
+++ b/gdb/gdbtk/library/help/target.html
@@ -20,7 +20,10 @@ options.
@@ -60,9 +63,14 @@ Three run options which may be selected include:
Sets a breakpoint at main()
Set breakpoint at 'exit'
Sets a breakpoint at exit()
+ Set breakpoint at
+ Sets a breakpoint at a user-specified locaiton
Display Download Dialog
Displays a dialog showing the progress of the download to
the target section by section
+ Use xterm as inferior's tty
+ Causes insight to open a tty for inferior I/O (unix versions
+ only)
diff --git a/gdb/gdbtk/library/targetselection.itb b/gdb/gdbtk/library/targetselection.itb
index 898992cd12..0de066d45e 100644
--- a/gdb/gdbtk/library/targetselection.itb
+++ b/gdb/gdbtk/library/targetselection.itb
@@ -1,5 +1,5 @@
# Target selection dialog for Insight.
-# Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
+# Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License (GPL) as published by
@@ -485,9 +485,12 @@ itcl::body TargetSelection::build_win {} {
entry $f.fr.bp.func -textvariable [pref varname gdb/load/bp_func] -width 20
checkbutton $f.fr.verb -text [gettext "Display Download Dialog"] \
-variable [pref varname gdb/load/$target-verbose]
- checkbutton $f.fr.xterm -text [gettext "Use xterm as inferior's tty"] \
- -variable [pref varname gdb/process/xtermtty] \
- -onvalue yes -offvalue no
+
+ if {$tcl_platform(platform) == "unix"} {
+ checkbutton $f.fr.xterm -text [gettext "Use xterm as inferior's tty"] \
+ -variable [pref varname gdb/process/xtermtty] \
+ -onvalue yes -offvalue no
+ }
if {![pref get gdb/control_target]} {
$f.fr.main configure -state disabled
@@ -585,8 +588,8 @@ itcl::body TargetSelection::build_win {} {
-default active
button $btns.cancel -text [gettext Cancel] -width 7 \
-command [code $this cancel]
- button $btns.help -text [gettext Help] -width 7 -command [code $this help] \
- -state disabled
+ button $btns.help -text [gettext Help] -width 7 -command [code $this help]
+
standard_button_box $btns
bind $btns.ok "$btns.ok flash; $btns.ok invoke"
bind $btns.cancel "$btns.cancel flash; $btns.cancel invoke"
@@ -974,6 +977,7 @@ itcl::body TargetSelection::set_check_button {name} {
# METHOD: help - launches context sensitive help.
# ------------------------------------------------------------------
itcl::body TargetSelection::help {} {
+ open_help target.html
}
# ------------------------------------------------------------------
--
2.11.0