public inbox for insight-prs@sourceware.org help / color / mirror / Atom feed
From: craig@triscend.com To: insight-gnats@sources.redhat.com Subject: insight/145: tcl error when connection to remote target times out Date: Mon, 06 May 2002 14:23:00 -0000 [thread overview] Message-ID: <20020506212255.27113.qmail@sources.redhat.com> (raw) >Number: 145 >Category: insight >Synopsis: tcl error when connection to remote target times out >Confidential: no >Severity: serious >Priority: high >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Mon May 06 14:23:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: craig@triscend.com >Release: unknown-1.0 >Organization: >Environment: Windows 2000/Cygwin >Description: The following error is reported when the connection to a remote target times-out on windows hosts. Error: bad option "-modal": must be -default, -icon, -message, -parent, -title, or -type >How-To-Repeat: >Fix: See the attached patch file. The patch forces the use of ide_messageBox on windows hosts which fixes the problem. >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: text/plain; name="interface.tcl.pat" Content-Disposition: inline; filename="interface.tcl.pat" Index: interface.tcl =================================================================== RCS file: /cvs/src/src/gdb/gdbtk/library/interface.tcl,v retrieving revision 1.43 diff -c -p -r1.43 interface.tcl *** interface.tcl 26 Apr 2002 21:09:54 -0000 1.43 --- interface.tcl 1 May 2002 17:17:57 -0000 *************** proc set_target_name {{prompt 1}} { *** 1074,1080 **** # PROC: set_target - Change the target # ------------------------------------------------------------------ proc set_target {} { ! global gdb_target_cmd gdb_target_changed gdb_pretty_name gdb_target_name # debug "gdb_target_changed=$gdb_target_changed gdb_target_cmd=\"$gdb_target_cmd\"" # debug "gdb_target_name=$gdb_target_name" if {$gdb_target_cmd == "" && ![TargetSelection::native_debugging]} { --- 1074,1080 ---- # PROC: set_target - Change the target # ------------------------------------------------------------------ proc set_target {} { ! global gdb_target_cmd gdb_target_changed gdb_pretty_name gdb_target_name tcl_platform # debug "gdb_target_changed=$gdb_target_changed gdb_target_cmd=\"$gdb_target_cmd\"" # debug "gdb_target_name=$gdb_target_name" if {$gdb_target_cmd == "" && ![TargetSelection::native_debugging]} { *************** proc set_target {} { *** 1109,1118 **** update set dialog_title "GDB" set debugger_name "GDB" ! tk_messageBox -icon error -title $dialog_title -type ok \ ! -modal task -message "$msg\n\n$debugger_name cannot connect to the target board\ using [lindex $gdb_target_cmd 1].\nVerify that the board is securely connected and, if\ necessary,\nmodify the port setting with the debugger preferences." return ERROR } --- 1109,1125 ---- update set dialog_title "GDB" set debugger_name "GDB" ! if {$tcl_platform(platform) == "windows"} { ! ide_messageBox [list set r] -icon error -title $dialog_title -type ok \ ! -modal system -message "$msg\n\n$debugger_name cannot connect to the target board\ using [lindex $gdb_target_cmd 1].\nVerify that the board is securely connected and, if\ necessary,\nmodify the port setting with the debugger preferences." + } else { + tk_messageBox -icon error -title $dialog_title -type ok \ + -modal system -message "$msg\n\n$debugger_name cannot connect to the target board\ + using [lindex $gdb_target_cmd 1].\nVerify that the board is securely connected and, if\ + necessary,\nmodify the port setting with the debugger preferences." + } return ERROR }
reply other threads:[~2002-05-06 21:23 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20020506212255.27113.qmail@sources.redhat.com \ --to=craig@triscend.com \ --cc=insight-gnats@sources.redhat.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: linkBe 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).