OSDN Git Service

* library/interface.tcl (set_target_name): Call "pref getd"
authorIan Roxborough <irox@redhat.com>
Tue, 11 Dec 2001 08:55:52 +0000 (08:55 +0000)
committerIan Roxborough <irox@redhat.com>
Tue, 11 Dec 2001 08:55:52 +0000 (08:55 +0000)
instead of "pref get" to avoid undefined preference error
message for default-hostname.

gdb/gdbtk/ChangeLog
gdb/gdbtk/library/interface.tcl

index 47ce9b9..bb83e61 100644 (file)
@@ -1,3 +1,9 @@
+2001-12-10  Ian Roxborough  <irox@redhat.com>
+
+       * library/interface.tcl (set_target_name): Call "pref getd"
+       instead of "pref get" to avoid undefined preference error
+       message for default-hostname.
+
 2001-12-07  Keith Seitz  <keiths@redhat.com>
 
        * library/managedwin.itb (shutdown): Don't save geometry for
index 92845ac..a69e532 100644 (file)
@@ -1039,7 +1039,7 @@ proc set_target_name {{prompt 1}} {
       }
       set hostname [pref getd gdb/load/$target-hostname]
       if {$hostname == ""} {
-       set hostname [pref get gdb/load/default-hostname]
+       set hostname [pref getd gdb/load/default-hostname]
       }
       # replace "com1" with the real port name
       set targ [lrep $targ "com1" $port]