old-cross-binutils/gdb/testsuite
Joel Brobecker c56e7c4390 Make ctxobj.exp and print-file-var.exp work on all platforms.
This patch adjusts the testing strategy used in a couple of testcases
where we are trying to print the value of a global variable defined
at multiple locations.  The problem is that the actual value depends
on the platform.  So instead of hard-coding the expected value in
the testcase script, we use local variables (in the inferior) holding
the correct value, and we compare the global variable's value with
the local variable's value.

gdb/testsuite/ChangeLog:

        * gdb.base/ctxobj-f.c (GET_VERSION): Introduce local variable
        and add comment.
        * gdb.base/ctxobj-m.c (main): Rewrite, and add comment.
        * gdb.base/ctxobj.exp: Insert breakpoint in ctxobj-f.c using
        "STOP" marker.  Adjust testing strategy to make it work on
        all targets.

        * gdb.base/print-file-var-main.c (main): Rewrite using local
        variables and adjust get_version_2's return value check.
        Add small comment.
        * gdb.base/print-file-var.exp: Insert breakpoint using "STOP"
        marker.  Adjust testing strategy to make it work on all targets.
2012-06-05 13:50:31 +00:00
..
boards 2012-01-27 Pedro Alves <palves@redhat.com> 2012-01-27 13:02:22 +00:00
config 2012-01-27 Pedro Alves <palves@redhat.com> 2012-01-27 13:02:22 +00:00
gdb.ada stop parsing breakpoint command if invalid keyword found 2012-06-05 13:50:13 +00:00
gdb.arch * Makefile.in (clean): Remove Fission .dwo and .dwp files. 2012-05-17 19:03:59 +00:00
gdb.asm * Makefile.in (clean): Remove Fission .dwo and .dwp files. 2012-05-17 19:03:59 +00:00
gdb.base Make ctxobj.exp and print-file-var.exp work on all platforms. 2012-06-05 13:50:31 +00:00
gdb.cell * Makefile.in (clean): Remove Fission .dwo and .dwp files. 2012-05-17 19:03:59 +00:00
gdb.cp PR c++/7173: 2012-05-21 19:47:54 +00:00
gdb.disasm * Makefile.in (clean): Remove Fission .dwo and .dwp files. 2012-05-17 19:03:59 +00:00
gdb.dwarf2 gdb/ 2012-05-24 22:14:36 +00:00
gdb.fortran * Makefile.in (clean): Remove Fission .dwo and .dwp files. 2012-05-17 19:03:59 +00:00
gdb.gdb gdb/ 2012-03-19 18:19:26 +00:00
gdb.go * Makefile.in (clean): Remove Fission .dwo and .dwp files. 2012-05-17 19:03:59 +00:00
gdb.hp * Makefile.in (clean): Remove Fission .dwo and .dwp files. 2012-05-17 19:03:59 +00:00
gdb.java * Makefile.in (clean): Remove Fission .dwo and .dwp files. 2012-05-17 19:03:59 +00:00
gdb.linespec * Makefile.in (clean): Remove Fission .dwo and .dwp files. 2012-05-17 19:03:59 +00:00
gdb.mi 2012-05-23 Stan Shebs <stan@codesourcery.com> 2012-05-24 00:33:47 +00:00
gdb.modula2 * Makefile.in (clean): Remove Fission .dwo and .dwp files. 2012-05-17 19:03:59 +00:00
gdb.multi * Makefile.in (clean): Remove Fission .dwo and .dwp files. 2012-05-17 19:03:59 +00:00
gdb.objc PR exp/13907: 2012-05-18 15:31:42 +00:00
gdb.opencl * Makefile.in (clean): Remove Fission .dwo and .dwp files. 2012-05-17 19:03:59 +00:00
gdb.opt * Makefile.in (clean): Remove Fission .dwo and .dwp files. 2012-05-17 19:03:59 +00:00
gdb.pascal * Makefile.in (clean): Remove Fission .dwo and .dwp files. 2012-05-17 19:03:59 +00:00
gdb.python * gdb.python/py-prompt.exp: Quit if the target is remote. 2012-05-19 01:05:38 +00:00
gdb.reverse * Makefile.in (clean): Remove Fission .dwo and .dwp files. 2012-05-17 19:03:59 +00:00
gdb.server gdb/ 2012-05-28 20:37:29 +00:00
gdb.stabs * Makefile.in (clean): Remove Fission .dwo and .dwp files. 2012-05-17 19:03:59 +00:00
gdb.threads * Makefile.in (clean): Remove Fission .dwo and .dwp files. 2012-05-17 19:03:59 +00:00
gdb.trace * gdb.trace/unavailable.exp (gdb_collect_globals_test): Update 2012-05-25 21:54:16 +00:00
gdb.xml * Makefile.in (clean): Remove Fission .dwo and .dwp files. 2012-05-17 19:03:59 +00:00
lib * lib/gdb.exp (gdb_test_multiple): Correct formatting. 2012-05-09 14:29:49 +00:00
aclocal.m4
ChangeLog Make ctxobj.exp and print-file-var.exp work on all platforms. 2012-06-05 13:50:31 +00:00
configure Initial pass at Go language support. 2012-04-25 14:07:23 +00:00
configure.ac Initial pass at Go language support. 2012-04-25 14:07:23 +00:00
dg-extract-results.sh * dg-extract-results.sh: Handle KFAILs. 2012-03-18 04:17:16 +00:00
Makefile.in * Makefile.in (clean): Remove Fission .dwo and .dwp files. 2012-05-17 19:03:59 +00:00
TODO