This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gdb and jeeni


Wrong list.  This should have been posted to insight@sourceware.cygnus.com as it is
a GUI only problem.

Anyway, I can't reproduce this problem here.  Something is really bad with your Tcl
as it is generating a combobox event (which is the only case the change_baud is called).

I don't know what is causing this spurious call, but I can add a guard against this.
Please try the attached patch and let me know if it solved your problem.

Thanks.

Fernando

P.S.: Please drop the gdb list when replying.  Thanks.



Shaun Jackman wrote:
> 
> I'm running Insight 5.0 --target=arm-elf --host=i686-pc-linux-gnu and a jeeni
> (ARM Angel/Ethernet). When I click "Target Settings" I get the error 'No symbol
> "ETH" in current context.'
> The stack trace is:
> No symbol "ETH" in current context.
> 
>     while executing
> "gdb_cmd "set remotebaud $baud""
>     (object "::.targetselection0.targetselection" method "::TargetSelection::change_baud" body line 4)
>     invoked from within
> "::.targetselection0.targetselection change_baud .targetselection0.targetselection.f.lab.lf.childsite.cb ETH"
>     (in namespace inscope "::TargetSelection" script line 1)
>     invoked from within
> "namespace inscope ::TargetSelection {::.targetselection0.targetselection change_baud} .targetselection0.targetselection.f.lab.lf.childsite.cb ETH"
>     ("after" script)errorCode is NONE
> 
> Cheers,
> Shaun



===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/targetselection.itb,v
retrieving revision 1.1.1.1
diff -c -p -r1.1.1.1 targetselection.itb
*** targetselection.itb 2000/02/07 00:19:42     1.1.1.1
--- targetselection.itb 2000/08/03 20:49:38
*************** body TargetSelection::change_target {w {
*** 769,775 ****
  # ------------------------------------------------------------------
  body TargetSelection::change_baud {w {baud ""}} {
    if {$baud != ""} {
!     if {[string compare $baud "TCP"] != 0} {
        gdb_cmd "set remotebaud $baud"
        if {[catch {gdb_cmd "show remotebaud"} res]} {
        set newbaud 0
--- 769,776 ----
  # ------------------------------------------------------------------
  body TargetSelection::change_baud {w {baud ""}} {
    if {$baud != ""} {
!     if {([string compare $baud "TCP"] != 0)
!         && ([string compare $baud "ETX"] != 0)} {
        gdb_cmd "set remotebaud $baud"
        if {[catch {gdb_cmd "show remotebaud"} res]} {
        set newbaud 0



-- 
Fernando Nasser
Red Hat Canada Ltd.                     E-Mail:  fnasser@cygnus.com
2323 Yonge Street, Suite #300           Tel:  416-482-2661 ext. 311
Toronto, Ontario   M4P 2C9              Fax:  416-482-6299

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]