This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GDB GUI looses current selected frame when local variable is added to Watch exp


Hi All,

  I configured gdb with "GNU gdb 5.0 (20010428-3) -- host=i686-pc-cygwin and target=powerpc-sunos-elf32"
and made gdb to accept "file myram.elf" and "core mydmpfile".  It is working fine with console (line) environment.
gdb commands, stacks and display values are working. 

  However, GUI interface have several problems -- almost working but not stable enough to use.

1) Keep loosing the current selected frame.
   
    open  ram.elf  from main screen,
    hit console -  from console window enter "core corefile"
    hit stack    -  from stack window select one stack 

    main window display the correct listing and I can go up/down ok

    point  local variable  for example ' CurrTick'    -- value displayed ok
    click Add CurrTic to watch  ------ looses frame information
            info frame -- displays "Error: No selected frame."
            no value will be display by pointing
            receive "No symbol ... in current context" when try to Add CurrTic to watch again 
    select stack or enter frame 2 -- get frame back
        again until try to use the "add Watch" again.

2)  loops and dies when hit "Local Variables Ctrl+L" to display local values
     ( my dump file may not have some memory for the location variables) 

     -- can not access memory address 0xac  -- 3 times
     --  Address of symbol "Snet Id" is unknown     -- a few times
     --  address of symbol "Cpu Ptr" is unknown     -- 50 times

    too many nested calls to Tcl-EvalObj (infinite loop?)
     eval body line 1  -- invoked from within
   "eval PREFS -cmd-$dispatch $args"
      (procedure "pref" line 6)
      invoked from within
   "pref getd gdb/load /${gdb-target_names? -baud
      (prodedure "set_baud" line 4)
       invoked from witin
   "set-baud"
      (procedure gdbtk_tcl_reloop line 4)
      invoked from within
    "gdbtk_tcl_preloop"

           ......

I have been trying to figure out to fix it ... but not doing too well,
please suggest which area I should be looking at or do you have any fix already?
I am familiar with the GDB but not Tcl part yet.

                                                      thanks ... midori

    
         
    
  

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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