Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Nick Roberts <nick@nick.uklinux.net>
To: Andrew Cagney <ac131313@redhat.com>
Cc: gdb@sources.redhat.com
Subject: variable objects (was: [rfc] Annotation level THREE)
Date: Sun, 30 Mar 2003 14:59:00 -0000	[thread overview]
Message-ID: <16006.63313.824491.352546@nick.uklinux.net> (raw)
In-Reply-To: <3E84CD1B.9040302@redhat.com>

Andrew Cagney writes:
 > > -var-create - * i
 > > ^done,name="var1",numchild="0",type="int"
 > > (gdb) 
 > > -var-create - * r
 > > ^done,name="var2",numchild="10",type="double [10]"
 > > (gdb) 
 > > set var i=3
 > 
 > Do -var-assign or -var-evaluate-expression work?  Regardless, this looks 
 > like a bug.
 > 
 > > &"set var i=3\n"
 > > ^done
 > > (gdb) 
 > > -var-update *
 > > ^done,changelist=[{name="var1",in_scope="true",type_changed="false"}]
 > > (gdb) 
 > > set var r[3]=6
 > > &"set var r[3]=6\n"
 > > ^done
 > > (gdb) 
 > > -var-update *
 > > ^done,changelist=[]
 > > (gdb) 
 > 

If -var-assign is used (or, indeed, if the array element is changed within
execution) then the changelist reflects this e.g

-var-assign var2.3 6
^done,value="6"
(gdb) 
-var-update *
^done,changelist=[{name="var2.3",in_scope="true",type_changed="false"}]
(gdb) 

-var-evaluate-expression gives the following:

-var-evaluate-expression var2
^done,value="[10]"
(gdb) 

which possibly explains why nothing appears in the changelist when the CLI
command (set var r[3]=6) is used as the array size is not editable:

-var-show-attributes var2
^done,attr="noneditable"
(gdb) 


This is only a problem when trying to control GDB using both CLI and MI
commands which is what we would like to do in Emacs. Do Apple (Project 
Builder?) or Eclipse have a console where CLI commands can be entered?

Nick



  reply	other threads:[~2003-03-30 14:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3E6E7326.3020906@redhat.com>
     [not found] ` <15985.7336.23998.590592@nick.uklinux.net>
     [not found]   ` <3E751565.4030409@redhat.com>
     [not found]     ` <15990.10811.61395.996906@nick.uklinux.net>
     [not found]       ` <3E763228.9060104@redhat.com>
     [not found]         ` <15990.62618.114706.459904@nick.uklinux.net>
     [not found]           ` <3E774292.8070603@redhat.com>
2003-03-21 17:53             ` [rfc] Annotation level THREE Nick Roberts
2003-03-21 19:22               ` Andrew Cagney
     [not found]           ` <3E773B59.90403@redhat.com>
2003-03-27 20:51             ` Nick Roberts
2003-03-28 22:30               ` Andrew Cagney
2003-03-30 14:59                 ` Nick Roberts [this message]
2003-03-30 15:11                   ` variable objects (was: [rfc] Annotation level THREE) Andrew Cagney
2003-03-31  9:01                     ` Jason Molenda

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=16006.63313.824491.352546@nick.uklinux.net \
    --to=nick@nick.uklinux.net \
    --cc=ac131313@redhat.com \
    --cc=gdb@sources.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