summaryrefslogtreecommitdiff
path: root/sim/testsuite/sim/sh64/compact/subc.cgs
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2004-03-24 04:10:01 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2004-03-24 04:10:01 +0000
commitc4b3a45944f0638c35b7f94c94c0ebf73d16c194 (patch)
treeffc265f78503e66b9decc8bee3f7d8515d0df045 /sim/testsuite/sim/sh64/compact/subc.cgs
parent51771d455eee6505ad7ab5999cad8c9dc7a97d84 (diff)
downloadgdb-cvs/ezannoni_pie-20040323-branch.tar.gz
2004-03-23 Elena Zannoni <ezannoni@redhat.com>ezannoni_pie-20040323-branchcvs/ezannoni_pie-20040323-branch
* solib-svr4.c (svr4_solib_create_inferior_hook): Disable breakpoints at startup. (elf_locate_base): Find out where the entry point for the program is, using the auxv vector, if possible. Compute the address of .dynamic using it. (svr4_current_sos): Don't ignore the first entry if we have PIE, it's our main program. Delete code that was skipping over the solib entry for main executable. * solist.h (struct so_list): Add fields main and main_relocated. (add_to_target_sections): Export. * solib.c (symbol_add_stub): Handle main executable in shared library list. Ignore it if it has been relocated already. Add it as the main symbol file, otherwise. * infrun.c (handle_inferior_event): Re-enable startup breakpoints. * solib-svr4.c (elf_locate_base, first_link_map_member) svr4_current_sos, enable_break): Add debugging output. * solist.h (debug_solib): Export. * solib.c (debug_solib): New variable to enable debugging output. (symbol_add_stub, update_solib_list, update_solib_list) (add_to_target_sections): Add debugging output. (_initialize_solib): Add new comand to enable printing of debugging output. (add_to_target_sections): New function. Factored out from update_solib_list. (update_solib_list): Call add_to_target_sections. * varobj.h (varobj_refresh): New prototype. * varobj.c (varobj_refresh): New function. * symfile.c (reread_symbols): Make sure that we recompute the entry point for the program. (symbol_file_clear): Clear the solibs as well, if we change symbol files. (clear_symtab_users): Refresh the varobjs that depend on the symtabs we are clearing. * objfiles.c (entry_point_address): Rewrite, to fetch entry point from auxv vector, if possible. Add include of elf/common.h. * breakpoint.h (enum bptype): Add bp type bp_startup_disabled. (re_enable_breakpoints_at_startup) (disable_breakpoints_at_startup): Add prototypes * breakpoint.c (re_enable_breakpoints_at_startup) (disable_breakpoints_at_startup): New functions. (describe_other_breakpoints, delete_breakpoint) (breakpoint_re_set_one): Handle new bp type. * auxv.h (target_auxv_parse, target_auxv_search): Update. * auxv.c (target_auxv_parse, target_auxv_search) (fprint_target_auxv): Use ULONGEST instead of CORE_ADDR for variable. Change variable name to at_type.
Diffstat (limited to 'sim/testsuite/sim/sh64/compact/subc.cgs')
-rw-r--r--sim/testsuite/sim/sh64/compact/subc.cgs109
1 files changed, 0 insertions, 109 deletions
diff --git a/sim/testsuite/sim/sh64/compact/subc.cgs b/sim/testsuite/sim/sh64/compact/subc.cgs
deleted file mode 100644
index cda1e84ae9d..00000000000
--- a/sim/testsuite/sim/sh64/compact/subc.cgs
+++ /dev/null
@@ -1,109 +0,0 @@
-# sh testcase for subc $rm, $rn -*- Asm -*-
-# mach: all
-# as: -isa=shcompact
-# ld: -m shelf32
-
- .include "compact/testutils.inc"
-
- start
-zero:
- mov #0, r0
- mov #0, r1
- clrt
- subc r0, r1
- assert r1, #0
-
-zerot:
- mov #0, r0
- mov #0, r1
- sett
- subc r0, r1
- # Invert all 1's to all 0's for ease of comparison.
- not r1, r1
- assert r1, #0
-
-null:
- mov #0, r0
- mov #10, r1
- clrt
- subc r0, r1
- assert r1, #10
-
-nullt:
- mov #0, r0
- mov #10, r1
- sett
- subc r0, r1
- assert r1, #9
-
-subc:
- mov #10, r0
- mov #0, r1
- clrt
- subc r0, r1
- # Again, invert ..
- not r1, r1
- assert r1, #9
-
-subct:
- mov #10, r0
- mov #0, r1
- sett
- subc r0, r1
- # Again, invert ..
- not r1, r1
- assert r1, #10
-
-subc2:
- mov #10, r0
- mov #20, r1
- clrt
- subc r0, r1
- assert r1, #10
-
-subc2t:
- mov #20, r0
- mov #10, r1
- sett
- subc r0, r1
- # Again, invert ..
- not r1, r1
- assert r1, #10
-
-subc3:
- mov #5, r0
- mov #5, r1
- clrt
- subc r0, r1
- assert r1, #0
-
-subc3t:
- mov #5, r0
- mov #5, r1
- sett
- subc r0, r1
- # Again, invert ..
- not r1, r1
- assert r1, #0
-
-large:
- mov #2, r0
- mov #10, r1
- clrt
- subc r1, r0
- # Again, invert ..
- not r0, r0
- assert r0, #7
-
-larget:
- mov #2, r0
- mov #10, r1
- sett
- subc r0, r1
- assert r1, #7
-
-okay:
- pass
-
-wrong:
- fail