public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Ilko Iliev <iliev@caretec.at>
To: Keith Seitz <keiths@redhat.com>
Cc: "insight@sources.redhat.com" <insight@sources.redhat.com>
Subject: Re: remote target: single step too slow
Date: Fri, 12 Nov 2004 14:37:00 -0000	[thread overview]
Message-ID: <4194CA7F.9040109@caretec.at> (raw)
In-Reply-To: <1100019429.2774.11.camel@lindt.uglyboxes.com>

yes, you are right
the problem is in gdb.

regards
ilko


Keith Seitz wrote:

>On Tue, 2004-11-09 at 01:11, Ilko Iliev wrote:
>  
>
>>I think it is not question for the gdb list.
>>The command "info locals" in gdb work normally - after breakpoint or
>>single step gdb reads only the local variables
>>If the local variables window in insight is open: after each
>>breakpoint or single step insight reads the local variables and a
>>piece program code. For example: if there are 10 local variables the
>>insight reads 10 times the same program code.
>>    
>>
>
>You did not mention that you had an open locals window in your last
>message... That changes things.
>
>  
>
>>Is it a feature or a bug?
>>If it is a future how can I turn it off?
>>    
>>
>
>I believe this is still a gdb problem. The locals window doesn't do
>much. It uses gdb's varobj to do all the real work. Here's a quick way
>to test: use mi to debug your program. You can test by doing it by hand
>(which isn't so tough, but you still need to create all the varobjs by
>hand) or via some UI that uses mi, like eclipse.
>
>To run mi by hand, start "gdb --i=mi". You can then do something like:
>(gdb)
>file gdb
>&"file gdb"
>(gdb)
>-break-insert main
>^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x0808f881",func="main",file="../../src/gdb/gdb.c",line="31",times="0"}
>(gdb)
>-exec-run
>^running
>(gdb)
>*stopped,reason="breakpoint-hit",bkptno="1",thread-id="0",frame={addr="0x0808f881",func="main",args=[{name="argc",value="0"},{name="argv",value="0x0"}],file="../../src/gdb/gdb.c",line="31"}
>(gdb)
>info locals
>&"info locals\n"
>~"args = {"
>~"argc = 0, argv = 0x36bffc, "
>~"use_windows = 0, "
>~"\n"
>~"  interpreter_p = 0x36bffc \"\\\\\\2756\"}"
>~"\n"
>^done
>(gdb)
>-var-create var1 * args
>&"During symbol reading, Incomplete CFI data; unspecified registers at
>0x0808f8a2.\n"
>^done,name="var1",numchild="4",type="struct captured_main_args"
>(gdb)
>-var-create var2 * argc
>^done,name="var2",numchild="0",type="int"
>(gdb)
>-var-create var3 * use_windows
>^done,name="var3",numchild="0",type="int"
>(gdb)
>-exec-step
>^running
>(gdb)
>*stopped,reason="end-stepping-range",thread-id="0",frame={addr="0x0808f884",func="main",args=[{name="argc",value="1"},{name="argv",value="0x1"}],file="../../src/gdb/gdb.c",line="30"}
>(gdb)
>-var-update var1
>^done,changelist=[]
>(gdb)
>-var-update var2
>^done,changelist=[{name="var2",in_scope="true",type_changed="false"}]
>(gdb)
>-var-update var3
>^done,changelist=[]
>(gdb)
>
>If your problem still occurs (and I bet it does, unless there is
>something else you haven't mentioned), it's a problem with varobj and
>should go to the gdb list.
>
>Keith
>  
>

      reply	other threads:[~2004-11-12 14:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-04 14:22 Ilko Iliev
2004-11-04 17:22 ` Keith Seitz
2004-11-09  9:13   ` Ilko Iliev
     [not found]   ` <419089A6.9030005@caretec.at>
2004-11-09 16:57     ` Keith Seitz
2004-11-12 14:37       ` Ilko Iliev [this message]

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=4194CA7F.9040109@caretec.at \
    --to=iliev@caretec.at \
    --cc=insight@sources.redhat.com \
    --cc=keiths@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: link
Be 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).