]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Fix -var-update for registers in frames 1 and up users/palves/fix-var-update-for-registers
authorPedro Alves <palves@redhat.com>
Thu, 11 Aug 2016 18:14:11 +0000 (19:14 +0100)
committerPedro Alves <palves@redhat.com>
Thu, 11 Aug 2016 18:14:11 +0000 (19:14 +0100)
commit3762064506515b6ec75f5aee62a67bd5fa90df80
tree60bdadbe19502fa85ddae1c37ba251aa154aba03
parent8be1e36919a884152d7115f4f4b8c0cfcf086a1f
Fix -var-update for registers in frames 1 and up

XXX palves:

Watchpoints on locals are quite similar in principle with varobjs on
locals.  Likewise wathpoints/varobjs on registers.

So this actually makes "watch $pc" in non-current frames be a local
watchpoint.

So

 up
 watch $pc
 down
 continue

now does the "right" thing.  I'm not sure this is really right,
though.

Haven't done anything on the varobjs side.

gdb/testsuite/ChangeLog:
2016-06-13  Don Breazeal  <dbreazea@my.domain.org>

* gdb.ada/mi_interface.exp: Add thread-id field to expected
output of -var-create and -var-list-children.
* gdb.ada/mi_var_array.exp: Add thread-id field to expected
output of -var-list-children.
* gdb.mi/mi-break.exp (test_error): Add thread-id field to
expected output of -var-create.
* gdb.mi/mi-frame-regs.exp: New test script.
* gdb.mi/mi-var-cmd.exp: Add thread-id field to expected
output of -var-create.
* gdb.mi/mi-var-create-rtti.exp: Likewise.

gdb/ChangeLog:
2016-06-13  Don Breazeal  <donb@codesourcery.com>
    Andrew Burgess <andrew.burgess@embecosm.com>

* varobj.c (varobj_create): Initialize innermost_block to
the global block instead of NULL.
(new_root_variable): Initialize the thread_id and next
fields.
(value_of_root_1): Set within_scope if the variable's
valid_block field is the global block.
gdb/breakpoint.c
gdb/testsuite/gdb.ada/mi_interface.exp
gdb/testsuite/gdb.ada/mi_var_array.exp
gdb/testsuite/gdb.mi/mi-break.exp
gdb/testsuite/gdb.mi/mi-frame-regs.exp [new file with mode: 0644]
gdb/testsuite/gdb.mi/mi-var-cmd.exp
gdb/testsuite/gdb.mi/mi-var-create-rtti.exp
gdb/varobj.c