Fix read_frame_arg for optimized-out entry values.
authorJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 22 Jul 2014 20:09:35 +0000 (22:09 +0200)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 22 Jul 2014 20:09:35 +0000 (22:09 +0200)
commite214cf6c2e05bcfc85dc6f335d8ffdc3629cf0cf
treef68188be09e5cd625527b6dfc1d94dfc355ba400
parentbddbbedd70665b48d358e457ef122c4df075b76b
Fix read_frame_arg for optimized-out entry values.

gdb/
2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>

* stack.c (read_frame_arg): Verify value_optimized_out before calling
value_available_contents_eq.

gdb/testsuite/
2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>

* gdb.arch/amd64-entry-value-paramref.S: New file.
* gdb.arch/amd64-entry-value-paramref.cc: New file.
* gdb.arch/amd64-entry-value-paramref.exp: New file.
* gdb.arch/amd64-optimout-repeat.S: New file.
* gdb.arch/amd64-optimout-repeat.c: New file.
* gdb.arch/amd64-optimout-repeat.exp: New file.

Message-ID: <20140720150727.GA18488@host2.jankratochvil.net>
Message-ID: <20140711153757.GA452@host2.jankratochvil.net>
gdb/ChangeLog
gdb/stack.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.arch/amd64-entry-value-paramref.S [new file with mode: 0644]
gdb/testsuite/gdb.arch/amd64-entry-value-paramref.cc [new file with mode: 0644]
gdb/testsuite/gdb.arch/amd64-entry-value-paramref.exp [new file with mode: 0644]
gdb/testsuite/gdb.arch/amd64-optimout-repeat.S [new file with mode: 0644]
gdb/testsuite/gdb.arch/amd64-optimout-repeat.c [new file with mode: 0644]
gdb/testsuite/gdb.arch/amd64-optimout-repeat.exp [new file with mode: 0644]