public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  archer-jankratochvil-entryval: Fix i386 bug, support COMPILE.
@ 2011-07-16 13:32 jkratoch
  0 siblings, 0 replies; only message in thread
From: jkratoch @ 2011-07-16 13:32 UTC (permalink / raw)
  To: archer-commits

The branch, archer-jankratochvil-entryval has been updated
       via  665541b1f3045b9d494b3949675682f38806a2e3 (commit)
      from  0422f3a989cfe0e53e3b047fb6180c9e174f7591 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit 665541b1f3045b9d494b3949675682f38806a2e3
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sat Jul 16 15:30:55 2011 +0200

    Fix i386 bug, support COMPILE.

-----------------------------------------------------------------------

Summary of changes:
 gdb/dwarf2expr.c                             |    2 +-
 gdb/testsuite/gdb.arch/amd64-entry-value.exp |   13 ++++++++++---
 2 files changed, 11 insertions(+), 4 deletions(-)

First 500 lines of diff:
diff --git a/gdb/dwarf2expr.c b/gdb/dwarf2expr.c
index 84f114a..fcd03e3 100644
--- a/gdb/dwarf2expr.c
+++ b/gdb/dwarf2expr.c
@@ -548,7 +548,7 @@ dwarf_block_to_dwarf_reg_deref (const gdb_byte *buf, const gdb_byte *buf_end,
       buf++;
       *deref_size_return = -1;
     }
-  if (*buf == DW_OP_deref_size)
+  else if (*buf == DW_OP_deref_size)
     {
       buf++;
       if (buf >= buf_end)
diff --git a/gdb/testsuite/gdb.arch/amd64-entry-value.exp b/gdb/testsuite/gdb.arch/amd64-entry-value.exp
index 417737d..65d1c6b 100644
--- a/gdb/testsuite/gdb.arch/amd64-entry-value.exp
+++ b/gdb/testsuite/gdb.arch/amd64-entry-value.exp
@@ -13,13 +13,20 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if { ![istarget x86_64-*-* ] || ![is_lp64_target] } {
+set testfile amd64-entry-value
+set srcfile ${testfile}.s
+set opts {}
+
+if [info exists COMPILE] {
+    # make check RUNTESTFLAGS="gdb.arch/amd64-entry-value.exp COMPILE=1"
+    set srcfile ${testfile}.cc
+    lappend opts debug optimize=-O2
+} elseif { ![istarget x86_64-*-* ] || ![is_lp64_target] } {
     verbose "Skipping amd64-entry-value."
     return
 }
 
-set testfile amd64-entry-value
-if { [prepare_for_testing ${testfile}.exp ${testfile} ${testfile}.s {}] } {
+if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} $opts] } {
     return -1
 }
 


hooks/post-receive
--
Repository for Project Archer.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-07-16 13:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-16 13:32 [SCM] archer-jankratochvil-entryval: Fix i386 bug, support COMPILE jkratoch

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).