(einsert): Delete.
* library/console.itb: (insert): Add tag parameter.
(einsert): Delete.
* library/interface.tcl (gdbtk_tcl_fputs): Use Console::insert.
(gdbtk_tcl_fputs_error): Likewise.
(gdbtk_tcl_fputs_log): Likewise.
(gdbtk_tcl_fputs_target): Likewise.
(set_target): Likewise.
+2002-01-02 Keith Seitz <keiths@redhat.com>
+
+ * library/console.ith (insert): Add tag parameter.
+ (einsert): Delete.
+ * library/console.itb: (insert): Add tag parameter.
+ (einsert): Delete.
+ * library/interface.tcl (gdbtk_tcl_fputs): Use Console::insert.
+ (gdbtk_tcl_fputs_error): Likewise.
+ (gdbtk_tcl_fputs_log): Likewise.
+ (gdbtk_tcl_fputs_target): Likewise.
+ (set_target): Likewise.
+
2002-01-02 Ian Roxborough <irox@redhat.com>
* library/managedwin.itb (ManagedWin::_create): When
# ------------------------------------------------------------------
# METHOD: insert - insert new text in the text widget
# ------------------------------------------------------------------
-body Console::insert {line} {
+body Console::insert {line {tag ""}} {
if {$_needNL} {
$_twin insert {insert linestart} "\n"
}
# Remove all \r characters from line.
set line [join [split $line \r] {}]
- $_twin insert {insert -1 line lineend} $line
+ $_twin insert {insert -1 line lineend} $line $tag
set nlines [lindex [split [$_twin index end] .] 0]
if {$nlines > $throttle} {
::update idletasks
}
-#-------------------------------------------------------------------
-# METHOD: einsert - insert error text in the text widget
-# ------------------------------------------------------------------
-body Console::einsert {line tag} {
- debug $line
- if {$_needNL} {
- $_twin insert end "\n"
- }
- $_twin insert end $line $tag
- $_twin see insert
- set _needNL 0
-}
-
# ------------------------------------------------------------------
# NAME: ConsoleWin::_operate_and_get_next
# DESCRIPTION: Invokes the current command and, if this
method constructor {args}
method destructor {}
- method insert {line}
- method einsert {line tag}
+ method insert {line {tag ""}}
method invoke {}
method _insertion {args}
method get_text {}
# ------------------------------------------------------------------
proc gdbtk_tcl_fputs_error {message} {
if {$::gdbtk_state(console) != ""} {
- $::gdbtk_state(console) einsert $message err_tag
+ $::gdbtk_state(console) insert $message err_tag
update
}
}
# ------------------------------------------------------------------
proc gdbtk_tcl_fputs_log {message} {
if {$::gdbtk_state(console) != ""} {
- $::gdbtk_state(console) einsert $message log_tag
+ $::gdbtk_state(console) insert $message log_tag
update
}
}
# ------------------------------------------------------------------
proc gdbtk_tcl_fputs_target {message} {
if {$::gdbtk_state(console) != ""} {
- $::gdbtk_state(console) einsert $message target_tag
+ $::gdbtk_state(console) insert $message target_tag
update
}
}
if {![catch {pref get gdb/load/$gdb_target_name-after_attaching} aa] && $aa != ""} {
if {[catch {gdb_cmd $aa} err]} {
- catch {[ManagedWin::find Console] einsert $err err_tag}
+ catch {[ManagedWin::find Console] insert $err err_tag}
}
}
set gdb_target_changed 0
catch {gdb_immediate nexti}
}
- # ------------------------------------------------------------------
+# ------------------------------------------------------------------
# PROC: gdbtk_attached
# ------------------------------------------------------------------
#