├── sim ├── ppc │ ├── aclocal.m4 │ ├── .gdbinit │ ├── ppc.mt │ └── sim-main.h ├── testsuite │ ├── m32r-elf │ │ ├── loop.s │ │ ├── exit47.s │ │ └── hello.s │ ├── frv-elf │ │ ├── loop.s │ │ ├── exit47.s │ │ └── grloop.s │ ├── d10v-elf │ │ ├── exit47.s │ │ ├── t-trap.s │ │ ├── hello.s │ │ ├── loop.s │ │ ├── t-ae-ld-d.s │ │ ├── t-ae-st-d.s │ │ ├── t-ae-ld2w-d.s │ │ ├── t-ae-st2w-d.s │ │ ├── t-ae-st-id.s │ │ ├── t-rie-xx.s │ │ ├── t-ae-ld-id.s │ │ ├── t-ae-ld2w-id.s │ │ ├── t-sp.s │ │ ├── t-ae-st2w-id.s │ │ ├── t-rdt.s │ │ ├── t-rte.s │ │ ├── t-ae-st-i.s │ │ └── t-ae-st-is.s │ └── sim │ │ ├── cris │ │ ├── c │ │ │ ├── hellodyn.c │ │ │ ├── seek2.c │ │ │ ├── hellodyn2.c │ │ │ ├── hello.c │ │ │ ├── truncate2.c │ │ │ ├── openpf4.c │ │ │ ├── readlink3.c │ │ │ ├── badldso1.c │ │ │ ├── mmap4.c │ │ │ ├── readlink6.c │ │ │ ├── exitg2.c │ │ │ ├── sig13.c │ │ │ ├── clone6.c │ │ │ ├── fcntl2.c │ │ │ ├── syscall7.c │ │ │ ├── syscall8.c │ │ │ ├── sysctl3.c │ │ │ ├── badldso2.c │ │ │ ├── mprotect2.c │ │ │ ├── sigreturn3.c │ │ │ ├── rtsigsuspend2.c │ │ │ ├── clone2.c │ │ │ ├── readlink11.c │ │ │ ├── sched6.c │ │ │ ├── badldso3.c │ │ │ ├── sigreturn4.c │ │ │ ├── rtsigprocmask2.c │ │ │ ├── readlink5.c │ │ │ ├── sched1.c │ │ │ └── sig3.c │ │ ├── hw │ │ │ └── rv-n-cris │ │ │ │ ├── trivial4.r │ │ │ │ ├── quit.s │ │ │ │ ├── host1.ms │ │ │ │ └── std.dev │ │ └── asm │ │ │ ├── badarch1.ms │ │ │ ├── opterr2.ms │ │ │ ├── sbfs.ms │ │ │ ├── opterr1.ms │ │ │ ├── rfg.ms │ │ │ ├── halt.ms │ │ │ ├── option2.ms │ │ │ ├── fidxd.ms │ │ │ ├── fidxi.ms │ │ │ ├── ftagi.ms │ │ │ ├── movrss.ms │ │ │ ├── movssr.ms │ │ │ ├── option1.ms │ │ │ ├── option3.ms │ │ │ ├── ftagd.ms │ │ │ ├── addqpc.ms │ │ │ ├── movppc.ms │ │ │ ├── option4.ms │ │ │ ├── subqpc.ms │ │ │ ├── moverpcd.ms │ │ │ ├── msteppc1.ms │ │ │ ├── msteppc2.ms │ │ │ ├── msteppc3.ms │ │ │ ├── movempc.ms │ │ │ ├── movsmpc.ms │ │ │ ├── movumpc.ms │ │ │ ├── io1.ms │ │ │ ├── movsrpc.ms │ │ │ ├── movurpc.ms │ │ │ ├── movepcb.ms │ │ │ ├── movepcw.ms │ │ │ ├── moveqpc.ms │ │ │ ├── moverbpc.ms │ │ │ ├── moverdpc.ms │ │ │ ├── moverpcb.ms │ │ │ ├── moverpcw.ms │ │ │ ├── moverwpc.ms │ │ │ ├── movucpc.ms │ │ │ ├── opterr4.ms │ │ │ ├── opterr5.ms │ │ │ ├── x0-v10.ms │ │ │ ├── bare2.ms │ │ │ ├── x0-v32.ms │ │ │ ├── clearfv10.ms │ │ │ ├── clearfv32.ms │ │ │ └── movscpc.ms │ │ ├── cr16 │ │ ├── nop.cgs │ │ ├── hw-trap.ms │ │ ├── bal1_24.cgs │ │ ├── bal2_24.cgs │ │ ├── uread16.ms │ │ ├── lshb_i.cgs │ │ ├── lshw_i.cgs │ │ ├── addw.cgs │ │ ├── andb.cgs │ │ ├── andw.cgs │ │ ├── beq0w.cgs │ │ ├── lshb.cgs │ │ ├── movw.cgs │ │ ├── orb.cgs │ │ ├── orw.cgs │ │ ├── xorb.cgs │ │ ├── xorw.cgs │ │ ├── lshw.cgs │ │ ├── movb.cgs │ │ ├── uread32.ms │ │ ├── addb.cgs │ │ ├── bne0w.cgs │ │ ├── subb.cgs │ │ ├── beq0b.cgs │ │ ├── bne0b.cgs │ │ ├── lpr-spr.cgs │ │ ├── movxb.cgs │ │ ├── lshd_i.cgs │ │ ├── movzb.cgs │ │ ├── subw.cgs │ │ ├── bcs.cgs │ │ ├── bge.cgs │ │ ├── bgt.cgs │ │ ├── bhi.cgs │ │ ├── bhs.cgs │ │ ├── bht.cgs │ │ ├── blo.cgs │ │ ├── bls.cgs │ │ ├── blt.cgs │ │ ├── addd.cgs │ │ ├── movd.cgs │ │ ├── jump.cgs │ │ ├── lshd.cgs │ │ ├── movxw.cgs │ │ ├── movzw.cgs │ │ └── popret3.cgs │ │ ├── frv │ │ ├── bar.cgs │ │ ├── nop.cgs │ │ ├── mnop.cgs │ │ ├── fnop.cgs │ │ ├── membar.cgs │ │ ├── call.cgs │ │ ├── cop1.cgs │ │ └── cop2.cgs │ │ ├── m32r │ │ ├── nop.cgs │ │ ├── bra8.cgs │ │ ├── bra24.cgs │ │ ├── ldi8.cgs │ │ ├── ldi16.cgs │ │ ├── ld24.cgs │ │ ├── slli.cgs │ │ ├── add3.cgs │ │ ├── addi.cgs │ │ ├── srli.cgs │ │ ├── add.cgs │ │ ├── mv.cgs │ │ ├── or.cgs │ │ ├── and.cgs │ │ ├── sll.cgs │ │ ├── srai.cgs │ │ ├── srl.cgs │ │ ├── mul.cgs │ │ ├── neg.cgs │ │ ├── xor.cgs │ │ ├── not.cgs │ │ ├── rem.cgs │ │ ├── sub.cgs │ │ ├── div.cgs │ │ ├── mvfacmi.cgs │ │ ├── mvtc.cgs │ │ ├── or3.cgs │ │ ├── sll3.cgs │ │ ├── srl3.cgs │ │ ├── and3.cgs │ │ ├── divu.cgs │ │ ├── mullo.cgs │ │ ├── sra.cgs │ │ ├── xor3.cgs │ │ ├── jl.cgs │ │ ├── mulhi.cgs │ │ ├── beqz.cgs │ │ ├── bgez.cgs │ │ ├── bgtz.cgs │ │ └── jmp.cgs │ │ ├── arm │ │ ├── bx.cgs │ │ ├── thumb │ │ │ ├── b.cgs │ │ │ ├── bx-hs.cgs │ │ │ ├── bx-rs.cgs │ │ │ ├── pop.cgs │ │ │ ├── swi.cgs │ │ │ ├── bcc.cgs │ │ │ ├── bcs.cgs │ │ │ ├── beq.cgs │ │ │ ├── bge.cgs │ │ │ ├── bgt.cgs │ │ │ ├── bhi.cgs │ │ │ ├── ble.cgs │ │ │ ├── bls.cgs │ │ │ ├── blt.cgs │ │ │ ├── bmi.cgs │ │ │ ├── bne.cgs │ │ │ ├── bpl.cgs │ │ │ ├── bvc.cgs │ │ │ ├── bvs.cgs │ │ │ ├── push.cgs │ │ │ ├── adc.cgs │ │ │ ├── add.cgs │ │ │ ├── and.cgs │ │ │ ├── bic.cgs │ │ │ ├── bl-hi.cgs │ │ │ ├── bl-lo.cgs │ │ │ ├── cmn.cgs │ │ │ ├── eor.cgs │ │ │ ├── mul.cgs │ │ │ ├── mvn.cgs │ │ │ ├── neg.cgs │ │ │ ├── orr.cgs │ │ │ ├── ror.cgs │ │ │ ├── sbc.cgs │ │ │ ├── sub.cgs │ │ │ ├── tst.cgs │ │ │ ├── add-sp.cgs │ │ │ ├── ldr.cgs │ │ │ ├── mov.cgs │ │ │ ├── pop-pc.cgs │ │ │ ├── str.cgs │ │ │ ├── sub-sp.cgs │ │ │ ├── add-hd-hs.cgs │ │ │ ├── add-hd-rs.cgs │ │ │ ├── add-rd-hs.cgs │ │ │ ├── addi.cgs │ │ │ ├── addi8.cgs │ │ │ ├── cmp-hd-hs.cgs │ │ │ ├── cmp-hd-rs.cgs │ │ │ ├── cmp-rd-hs.cgs │ │ │ ├── ldmia.cgs │ │ │ ├── ldrb.cgs │ │ │ ├── ldrh.cgs │ │ │ ├── ldsb.cgs │ │ │ ├── ldsh.cgs │ │ │ ├── mov-hd-hs.cgs │ │ │ ├── mov-hd-rs.cgs │ │ │ ├── mov-rd-hs.cgs │ │ │ ├── push-lr.cgs │ │ │ ├── stmia.cgs │ │ │ ├── strb.cgs │ │ │ ├── strh.cgs │ │ │ ├── subi.cgs │ │ │ ├── subi8.cgs │ │ │ ├── lda-pc.cgs │ │ │ ├── lda-sp.cgs │ │ │ ├── ldr-imm.cgs │ │ │ ├── ldr-pc.cgs │ │ │ ├── ldrb-imm.cgs │ │ │ ├── str-imm.cgs │ │ │ ├── strb-imm.cgs │ │ │ ├── ldr-sprel.cgs │ │ │ ├── ldrh-imm.cgs │ │ │ ├── str-sprel.cgs │ │ │ ├── strh-imm.cgs │ │ │ ├── lsl.cgs │ │ │ ├── lsr.cgs │ │ │ ├── asr.cgs │ │ │ └── cmp.cgs │ │ ├── swi.cgs │ │ ├── swp.cgs │ │ ├── swpb.cgs │ │ ├── mul.cgs │ │ ├── mla.cgs │ │ ├── smlal.cgs │ │ ├── smull.cgs │ │ ├── umlal.cgs │ │ └── umull.cgs │ │ ├── fr30 │ │ ├── add.ms │ │ └── nop.cgs │ │ ├── sh64 │ │ ├── media │ │ │ ├── nop.cgs │ │ │ ├── sleep.cgs │ │ │ ├── synci.cgs │ │ │ ├── synco.cgs │ │ │ ├── icbi.cgs │ │ │ ├── ocbi.cgs │ │ │ ├── ocbp.cgs │ │ │ ├── ocbwb.cgs │ │ │ ├── prefi.cgs │ │ │ ├── rte.cgs │ │ │ ├── alloco.cgs │ │ │ ├── getcfg.cgs │ │ │ ├── putcfg.cgs │ │ │ ├── brk.cgs │ │ │ ├── trapa.cgs │ │ │ ├── fgetscr.cgs │ │ │ ├── fputscr.cgs │ │ │ ├── mcmv.cgs │ │ │ ├── floatld.cgs │ │ │ ├── floatls.cgs │ │ │ ├── floatqd.cgs │ │ │ ├── floatqs.cgs │ │ │ ├── mmull.cgs │ │ │ ├── mmulw.cgs │ │ │ ├── msubl.cgs │ │ │ ├── msubw.cgs │ │ │ ├── fstp.cgs │ │ │ ├── fstxp.cgs │ │ │ ├── ldhil.cgs │ │ │ ├── ldhiq.cgs │ │ │ ├── ldlol.cgs │ │ │ ├── ldloq.cgs │ │ │ ├── maddsl.cgs │ │ │ ├── maddsw.cgs │ │ │ ├── msubsl.cgs │ │ │ ├── msubsw.cgs │ │ │ ├── stlol.cgs │ │ │ ├── stloq.cgs │ │ │ ├── maddsub.cgs │ │ │ ├── mcmpeqb.cgs │ │ │ ├── mcmpeql.cgs │ │ │ ├── mcmpeqw.cgs │ │ │ ├── mcmpgtl.cgs │ │ │ ├── mcmpgtw.cgs │ │ │ ├── mcnvslw.cgs │ │ │ ├── mcnvswb.cgs │ │ │ ├── mmulfxl.cgs │ │ │ ├── mmulfxw.cgs │ │ │ ├── msadubq.cgs │ │ │ ├── mshardl.cgs │ │ │ ├── mshardw.cgs │ │ │ ├── mshfhib.cgs │ │ │ ├── mshfhil.cgs │ │ │ ├── mshfhiw.cgs │ │ │ ├── mshflob.cgs │ │ │ ├── mshflol.cgs │ │ │ ├── mshflow.cgs │ │ │ ├── mshlldl.cgs │ │ │ ├── mshlldw.cgs │ │ │ ├── mshlrdl.cgs │ │ │ ├── mshlrdw.cgs │ │ │ ├── msubsub.cgs │ │ │ ├── shllil.cgs │ │ │ ├── shlril.cgs │ │ │ ├── mcmpgtub.cgs │ │ │ ├── mcnvswub.cgs │ │ │ ├── mmacfxwl.cgs │ │ │ ├── mmulhiwl.cgs │ │ │ ├── mmullowl.cgs │ │ │ ├── mshaldsl.cgs │ │ │ ├── mshaldsw.cgs │ │ │ ├── mshardsq.cgs │ │ │ ├── mmulfxrpw.cgs │ │ │ ├── mmulsumwq.cgs │ │ │ └── mmacnfx-wl.cgs │ │ └── compact │ │ │ ├── nop.cgs │ │ │ ├── frchg.cgs │ │ │ ├── fschg.cgs │ │ │ ├── sets.cgs │ │ │ ├── fsts.cgs │ │ │ ├── shlr2.cgs │ │ │ ├── shlr8.cgs │ │ │ ├── clrmac.cgs │ │ │ ├── shlr16.cgs │ │ │ ├── fcnvds.cgs │ │ │ ├── pref.cgs │ │ │ ├── ocbi.cgs │ │ │ ├── clrs.cgs │ │ │ ├── clrt.cgs │ │ │ ├── ocbp.cgs │ │ │ ├── sett.cgs │ │ │ ├── ocbwb.cgs │ │ │ └── trapa.cgs │ │ ├── sh │ │ ├── fail.s │ │ └── pass.s │ │ └── v850 │ │ └── testutils.cgs ├── erc32 │ └── startsim ├── m32c │ ├── mem.c │ └── timer_a.h ├── mn10300 │ ├── sim-main.c │ └── mn10300.dc ├── avr │ └── ChangeLog ├── microblaze │ └── ChangeLog ├── v850 │ └── v850_sim.h └── common │ └── gdbinit.in ├── bfd ├── po │ ├── .cvsignore │ ├── da.po │ ├── es.po │ ├── ja.po │ ├── ro.po │ ├── sv.po │ ├── zh_CN.po │ └── BLD-POTFILES.in ├── stamp-h.in ├── MAINTAINERS ├── ChangeLog-0001 ├── ChangeLog-0203 ├── ChangeLog-9193 ├── configure.com ├── hosts │ └── alphavms.h ├── doc │ └── makefile.vms └── version.h ├── opcodes ├── po │ ├── .cvsignore │ ├── da.po │ ├── es.po │ ├── fr.po │ ├── ga.po │ ├── ro.po │ ├── sv.po │ └── pt_BR.po ├── stamp-h.in ├── MAINTAINERS ├── ia64-raw.tbl ├── ia64-waw.tbl └── ia64-war.tbl ├── gdb ├── version.in ├── msg.defs ├── testsuite │ ├── .gdbinit │ ├── gdb.xml │ │ ├── trivial.xml │ │ ├── loop.xml │ │ ├── inc-2.xml │ │ ├── bad-include.xml │ │ ├── inc-body.xml │ │ ├── includes.xml │ │ ├── core-only.xml │ │ ├── tdesc-bogus.xml │ │ ├── single-reg.xml │ │ └── tdesc-unknown.xml │ ├── gdb.asm │ │ ├── empty.inc │ │ ├── netbsd.inc │ │ └── openbsd.inc │ ├── gdb.base │ │ ├── lineinc1.h │ │ ├── lineinc2.h │ │ ├── lineinc3.h │ │ ├── comp-dir │ │ │ └── subdir │ │ │ │ └── dummy.txt │ │ ├── psymtab1.c │ │ ├── psymtab2.c │ │ ├── ss.h │ │ ├── pr10179-b.c │ │ ├── ptype1.c │ │ ├── bar.c │ │ ├── baz.c │ │ ├── foo.c │ │ ├── grbx.c │ │ ├── pr10179-a.c │ │ ├── pc-fp.c │ │ ├── fixsectshr.c │ │ ├── vforked-prog.c │ │ ├── gdbvars.c │ │ ├── langs2.cxx │ │ ├── args.c │ │ ├── langs1.f │ │ └── shr2.c │ ├── config │ │ ├── h8300.exp │ │ ├── arm-ice.exp │ │ ├── cygmon.exp │ │ ├── i386-bozo.exp │ │ └── m32r-stub.exp │ ├── gdb.hp │ │ ├── gdb.objdbg │ │ │ ├── tools │ │ │ │ ├── test-objdbg.cc │ │ │ │ ├── symaddr │ │ │ │ └── symaddr.pa64 │ │ │ ├── objdbg04 │ │ │ │ ├── x2.cc │ │ │ │ └── x1.cc │ │ │ ├── objdbg02 │ │ │ │ ├── x3.cc │ │ │ │ ├── x2.cc │ │ │ │ └── x1.cc │ │ │ ├── objdbg03 │ │ │ │ └── x2.cc │ │ │ └── objdbg01 │ │ │ │ ├── x3.cc │ │ │ │ └── x2.cc │ │ ├── gdb.defects │ │ │ ├── solib-d.c │ │ │ ├── solib-d2.c │ │ │ └── bs14602.c │ │ ├── tools │ │ │ └── odump │ │ └── gdb.base-hp │ │ │ ├── dollar.c │ │ │ └── hwwatchbus.c │ ├── gdb.threads │ │ ├── tls-shared.c │ │ ├── tls-nodebug.c │ │ └── tls-main.c │ ├── gdb.cp │ │ ├── m-static1.cc │ │ ├── pr10728-x.h │ │ ├── pr10728-x.cc │ │ ├── hang.H │ │ ├── hang1.cc │ │ ├── hang3.cc │ │ ├── hang2.cc │ │ ├── pr10728-y.cc │ │ ├── pr9067.cc │ │ ├── namespace-nested-import.cc │ │ ├── pr-1210.cc │ │ └── nsimport.cc │ ├── gdb.java │ │ ├── jmain.java │ │ └── jmisc.java │ ├── gdb.dwarf2 │ │ ├── file1.txt │ │ ├── dw4-sig-types.cc │ │ ├── dw4-sig-types.h │ │ └── dw4-sig-types-b.cc │ ├── gdb.mi │ │ └── gdb701.c │ ├── gdb.python │ │ └── py-infthread.c │ ├── gdb.ada │ │ └── complete │ │ │ ├── pck.adb │ │ │ └── foo.adb │ ├── gdb.multi │ │ └── crashme.c │ └── gdb.pascal │ │ └── hello.pas ├── notify.defs ├── msg_reply.defs ├── process_reply.defs ├── MAINTAINERS ├── ChangeLog-1991 ├── config │ ├── i386 │ │ ├── mingw64.mh │ │ ├── cygwin.mh │ │ ├── mingw.mh │ │ ├── nto.mh │ │ ├── nbsd64.mh │ │ ├── obsd.mh │ │ ├── i386sol2.mh │ │ ├── nbsdelf.mh │ │ ├── obsd64.mh │ │ ├── darwin.mh │ │ ├── sol2-64.mh │ │ ├── fbsd64.mh │ │ ├── nbsdaout.mh │ │ ├── fbsd.mh │ │ ├── obsdaout.mh │ │ └── go32.mh │ ├── pa │ │ ├── obsd.mh │ │ ├── nbsd.mh │ │ └── hpux.mh │ ├── sh │ │ └── nbsd.mh │ ├── m88k │ │ └── obsd.mh │ ├── mips │ │ ├── nbsd.mh │ │ ├── obsd64.mh │ │ ├── irix5.mh │ │ ├── irix6.mh │ │ └── linux.mh │ ├── arm │ │ ├── nbsdelf.mh │ │ ├── nbsdaout.mh │ │ └── linux.mh │ ├── vax │ │ ├── vax.mh │ │ ├── obsd.mh │ │ ├── nbsdelf.mh │ │ └── nbsdaout.mh │ ├── alpha │ │ ├── nbsd.mh │ │ ├── fbsd.mh │ │ └── alpha-osf3.mh │ ├── m68k │ │ ├── nbsdelf.mh │ │ ├── nbsdaout.mh │ │ └── obsd.mh │ ├── powerpc │ │ ├── nbsd.mh │ │ ├── obsd.mh │ │ └── spu-linux.mh │ ├── sparc │ │ ├── nbsd64.mh │ │ ├── nbsdelf.mh │ │ ├── nbsdaout.mh │ │ ├── fbsd.mh │ │ └── sol2.mh │ ├── s390 │ │ └── s390.mh │ └── xtensa │ │ └── linux.mh ├── doc │ ├── stack_frame.pdf │ ├── stack_frame.png │ └── configure.ac ├── PROBLEMS └── gdbserver │ └── acinclude.m4 ├── config ├── mt-netware ├── mt-gnu ├── mt-mips-elfoabi ├── bootstrap-O1.mk ├── bootstrap-O3.mk ├── mt-alphaieee ├── mh-lynxrs6k ├── mt-v810 ├── mh-solaris ├── mt-mips-gnu ├── bootstrap-time.mk ├── mt-spu ├── mh-sysv4 ├── mh-sysv5 ├── mt-ospace ├── mh-x86omitfp ├── mh-dgux386 ├── mh-necv4 ├── mh-sco ├── mh-ncr3000 ├── mh-decstation ├── mh-cxux ├── mh-interix ├── mt-d30v ├── mh-ppc-darwin ├── mt-mep ├── mh-pa ├── mh-pa-hpux10 ├── mh-cygwin ├── mh-mingw ├── plugins.m4 └── mt-mips16-compat ├── include ├── MAINTAINERS ├── coff │ └── ChangeLog ├── aout │ └── hppa.h └── som │ └── ChangeLog ├── intl ├── VERSION └── locale.alias ├── libiberty ├── config │ ├── mh-fbsd21 │ ├── mh-cxux7 │ ├── mh-openedition │ └── mh-windows ├── strverscmp.c └── msdos.c ├── libdecnumber ├── bid │ ├── decimal128.h │ ├── decimal32.h │ ├── decimal64.h │ ├── decimal128Local.h │ ├── decimal32Symbols.h │ ├── decimal64Symbols.h │ └── decimal128Symbols.h ├── decCommonSymbols.h └── decPackedSymbols.h ├── etc ├── configdev.jin └── configbuild.jin └── readline ├── examples ├── rlfe │ └── screen.h └── rl-fgets.c └── doc └── version.texi /sim/ppc/aclocal.m4: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /bfd/po/.cvsignore: -------------------------------------------------------------------------------- 1 | *.gmo 2 | -------------------------------------------------------------------------------- /bfd/stamp-h.in: -------------------------------------------------------------------------------- 1 | timestamp 2 | -------------------------------------------------------------------------------- /opcodes/po/.cvsignore: -------------------------------------------------------------------------------- 1 | *.gmo 2 | -------------------------------------------------------------------------------- /opcodes/stamp-h.in: -------------------------------------------------------------------------------- 1 | timestamp 2 | -------------------------------------------------------------------------------- /gdb/version.in: -------------------------------------------------------------------------------- 1 | 7.2.50.20101026-cvs 2 | -------------------------------------------------------------------------------- /gdb/msg.defs: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /gdb/testsuite/.gdbinit: -------------------------------------------------------------------------------- 1 | set height 400 2 | -------------------------------------------------------------------------------- /bfd/MAINTAINERS: -------------------------------------------------------------------------------- 1 | See ../binutils/MAINTAINERS 2 | -------------------------------------------------------------------------------- /gdb/notify.defs: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.xml/trivial.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /config/mt-netware: -------------------------------------------------------------------------------- 1 | GDB_NLM_DEPS = all-gcc all-ld 2 | -------------------------------------------------------------------------------- /gdb/msg_reply.defs: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.asm/empty.inc: -------------------------------------------------------------------------------- 1 | comment "empty" 2 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.base/lineinc1.h: -------------------------------------------------------------------------------- 1 | #define FOO 1 2 | -------------------------------------------------------------------------------- /include/MAINTAINERS: -------------------------------------------------------------------------------- 1 | See ../binutils/MAINTAINERS 2 | -------------------------------------------------------------------------------- /opcodes/MAINTAINERS: -------------------------------------------------------------------------------- 1 | See ../binutils/MAINTAINERS 2 | -------------------------------------------------------------------------------- /intl/VERSION: -------------------------------------------------------------------------------- 1 | GNU gettext library from gettext-0.12.1 2 | -------------------------------------------------------------------------------- /libiberty/config/mh-fbsd21: -------------------------------------------------------------------------------- 1 | EXTRA_OFILES=vasprintf.o 2 | -------------------------------------------------------------------------------- /sim/ppc/.gdbinit: -------------------------------------------------------------------------------- 1 | set output-radix 16 2 | break error 3 | -------------------------------------------------------------------------------- /gdb/process_reply.defs: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /libdecnumber/bid/decimal128.h: -------------------------------------------------------------------------------- 1 | #include "dpd/decimal128.h" 2 | -------------------------------------------------------------------------------- /libdecnumber/bid/decimal32.h: -------------------------------------------------------------------------------- 1 | #include "dpd/decimal32.h" 2 | -------------------------------------------------------------------------------- /libdecnumber/bid/decimal64.h: -------------------------------------------------------------------------------- 1 | #include "dpd/decimal64.h" 2 | -------------------------------------------------------------------------------- /libiberty/config/mh-cxux7: -------------------------------------------------------------------------------- 1 | HDEFINES = -DHARRIS_FLOAT_FORMAT 2 | -------------------------------------------------------------------------------- /config/mt-gnu: -------------------------------------------------------------------------------- 1 | CXXFLAGS_FOR_TARGET = $(CXXFLAGS) -D_GNU_SOURCE 2 | -------------------------------------------------------------------------------- /config/mt-mips-elfoabi: -------------------------------------------------------------------------------- 1 | include $(srcdir)/config/mt-mips16-compat 2 | -------------------------------------------------------------------------------- /gdb/testsuite/config/h8300.exp: -------------------------------------------------------------------------------- 1 | load_lib "../config/monitor.exp"; 2 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.base/lineinc2.h: -------------------------------------------------------------------------------- 1 | #undef FOO 2 | #define FOO 2 3 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.base/lineinc3.h: -------------------------------------------------------------------------------- 1 | #undef FOO 2 | #define FOO 3 3 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.xml/loop.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /gdb/testsuite/config/arm-ice.exp: -------------------------------------------------------------------------------- 1 | load_lib "../config/monitor.exp"; 2 | -------------------------------------------------------------------------------- /gdb/testsuite/config/cygmon.exp: -------------------------------------------------------------------------------- 1 | load_lib "../config/monitor.exp"; 2 | -------------------------------------------------------------------------------- /gdb/testsuite/config/i386-bozo.exp: -------------------------------------------------------------------------------- 1 | load_lib "../config/monitor.exp" 2 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.base/comp-dir/subdir/dummy.txt: -------------------------------------------------------------------------------- 1 | For completion.exp 2 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.xml/inc-2.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /libdecnumber/bid/decimal128Local.h: -------------------------------------------------------------------------------- 1 | #include "dpd/decimal128Local.h" 2 | -------------------------------------------------------------------------------- /libdecnumber/bid/decimal32Symbols.h: -------------------------------------------------------------------------------- 1 | #include "dpd/decimal32Symbols.h" 2 | -------------------------------------------------------------------------------- /libdecnumber/bid/decimal64Symbols.h: -------------------------------------------------------------------------------- 1 | #include "dpd/decimal64Symbols.h" 2 | -------------------------------------------------------------------------------- /sim/testsuite/m32r-elf/loop.s: -------------------------------------------------------------------------------- 1 | .globl _start 2 | _start: bra _start 3 | -------------------------------------------------------------------------------- /bfd/po/da.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/legumbre/gdb-z80/HEAD/bfd/po/da.po -------------------------------------------------------------------------------- /bfd/po/es.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/legumbre/gdb-z80/HEAD/bfd/po/es.po -------------------------------------------------------------------------------- /bfd/po/ja.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/legumbre/gdb-z80/HEAD/bfd/po/ja.po -------------------------------------------------------------------------------- /bfd/po/ro.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/legumbre/gdb-z80/HEAD/bfd/po/ro.po -------------------------------------------------------------------------------- /bfd/po/sv.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/legumbre/gdb-z80/HEAD/bfd/po/sv.po -------------------------------------------------------------------------------- /gdb/testsuite/gdb.base/psymtab1.c: -------------------------------------------------------------------------------- 1 | int main () 2 | { 3 | return 0; 4 | } 5 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.base/psymtab2.c: -------------------------------------------------------------------------------- 1 | extern int zzz; 2 | 3 | int zzz = 123; 4 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.base/ss.h: -------------------------------------------------------------------------------- 1 | struct s { 2 | int a; 3 | int b; 4 | }; 5 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.xml/bad-include.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /libdecnumber/bid/decimal128Symbols.h: -------------------------------------------------------------------------------- 1 | #include "dpd/decimal128Symbols.h" 2 | -------------------------------------------------------------------------------- /sim/ppc/ppc.mt: -------------------------------------------------------------------------------- 1 | ALL=all-ppc 2 | CLEAN=clean-ppc 3 | DO_INSTALL=install-ppc 4 | -------------------------------------------------------------------------------- /bfd/po/zh_CN.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/legumbre/gdb-z80/HEAD/bfd/po/zh_CN.po -------------------------------------------------------------------------------- /config/bootstrap-O1.mk: -------------------------------------------------------------------------------- 1 | BOOT_CFLAGS := -O1 $(filter-out -O%, $(BOOT_CFLAGS)) 2 | -------------------------------------------------------------------------------- /config/bootstrap-O3.mk: -------------------------------------------------------------------------------- 1 | BOOT_CFLAGS := -O3 $(filter-out -O%, $(BOOT_CFLAGS)) 2 | -------------------------------------------------------------------------------- /gdb/MAINTAINERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/legumbre/gdb-z80/HEAD/gdb/MAINTAINERS -------------------------------------------------------------------------------- /gdb/testsuite/gdb.xml/inc-body.xml: -------------------------------------------------------------------------------- 1 | invalid-body 2 | -------------------------------------------------------------------------------- /sim/erc32/startsim: -------------------------------------------------------------------------------- 1 | # 2 | xterm -e sis $* & 3 | xterm -e tip /dev/ttypc & 4 | 5 | -------------------------------------------------------------------------------- /sim/m32c/mem.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/legumbre/gdb-z80/HEAD/sim/m32c/mem.c -------------------------------------------------------------------------------- /sim/testsuite/frv-elf/loop.s: -------------------------------------------------------------------------------- 1 | .global _start 2 | _start: bra icc0,0,_start 3 | -------------------------------------------------------------------------------- /bfd/ChangeLog-0001: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/legumbre/gdb-z80/HEAD/bfd/ChangeLog-0001 -------------------------------------------------------------------------------- /bfd/ChangeLog-0203: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/legumbre/gdb-z80/HEAD/bfd/ChangeLog-0203 -------------------------------------------------------------------------------- /bfd/ChangeLog-9193: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/legumbre/gdb-z80/HEAD/bfd/ChangeLog-9193 -------------------------------------------------------------------------------- /bfd/configure.com: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/legumbre/gdb-z80/HEAD/bfd/configure.com -------------------------------------------------------------------------------- /config/mt-alphaieee: -------------------------------------------------------------------------------- 1 | CFLAGS_FOR_TARGET += -mieee 2 | CXXFLAGS_FOR_TARGET += -mieee 3 | -------------------------------------------------------------------------------- /etc/configdev.jin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/legumbre/gdb-z80/HEAD/etc/configdev.jin -------------------------------------------------------------------------------- /gdb/ChangeLog-1991: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/legumbre/gdb-z80/HEAD/gdb/ChangeLog-1991 -------------------------------------------------------------------------------- /gdb/config/i386/mingw64.mh: -------------------------------------------------------------------------------- 1 | NATDEPFILES= i386-nat.o windows-nat.o amd64-windows-nat.o 2 | -------------------------------------------------------------------------------- /gdb/testsuite/config/m32r-stub.exp: -------------------------------------------------------------------------------- 1 | load_lib "../../testsuite/config/sparclet.exp" 2 | -------------------------------------------------------------------------------- /intl/locale.alias: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/legumbre/gdb-z80/HEAD/intl/locale.alias -------------------------------------------------------------------------------- /libiberty/config/mh-openedition: -------------------------------------------------------------------------------- 1 | HDEFINES = -D_ALL_SOURCE -DLE370 2 | CC=c89 3 | 4 | -------------------------------------------------------------------------------- /opcodes/po/da.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/legumbre/gdb-z80/HEAD/opcodes/po/da.po -------------------------------------------------------------------------------- /opcodes/po/es.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/legumbre/gdb-z80/HEAD/opcodes/po/es.po -------------------------------------------------------------------------------- /opcodes/po/fr.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/legumbre/gdb-z80/HEAD/opcodes/po/fr.po -------------------------------------------------------------------------------- /opcodes/po/ga.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/legumbre/gdb-z80/HEAD/opcodes/po/ga.po -------------------------------------------------------------------------------- /opcodes/po/ro.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/legumbre/gdb-z80/HEAD/opcodes/po/ro.po -------------------------------------------------------------------------------- /opcodes/po/sv.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/legumbre/gdb-z80/HEAD/opcodes/po/sv.po -------------------------------------------------------------------------------- /sim/testsuite/d10v-elf/exit47.s: -------------------------------------------------------------------------------- 1 | .include "t-macros.i" 2 | 3 | start 4 | exit47 5 | -------------------------------------------------------------------------------- /bfd/hosts/alphavms.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/legumbre/gdb-z80/HEAD/bfd/hosts/alphavms.h -------------------------------------------------------------------------------- /etc/configbuild.jin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/legumbre/gdb-z80/HEAD/etc/configbuild.jin -------------------------------------------------------------------------------- /gdb/testsuite/gdb.base/pr10179-b.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int 4 | foo2() 5 | { 6 | } 7 | -------------------------------------------------------------------------------- /opcodes/ia64-raw.tbl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/legumbre/gdb-z80/HEAD/opcodes/ia64-raw.tbl -------------------------------------------------------------------------------- /opcodes/ia64-waw.tbl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/legumbre/gdb-z80/HEAD/opcodes/ia64-waw.tbl -------------------------------------------------------------------------------- /opcodes/po/pt_BR.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/legumbre/gdb-z80/HEAD/opcodes/po/pt_BR.po -------------------------------------------------------------------------------- /sim/testsuite/d10v-elf/t-trap.s: -------------------------------------------------------------------------------- 1 | .include "t-macros.i" 2 | 3 | start 4 | 5 | exit47 6 | -------------------------------------------------------------------------------- /config/mh-lynxrs6k: -------------------------------------------------------------------------------- 1 | # /bin/sh is too buggy, so use /bin/bash instead. 2 | SHELL = /bin/bash 3 | -------------------------------------------------------------------------------- /config/mt-v810: -------------------------------------------------------------------------------- 1 | CC_FOR_TARGET = ca732 -ansi 2 | AS_FOR_TARGET = as732 3 | AR_FOR_TARGET = ar732 4 | -------------------------------------------------------------------------------- /gdb/doc/stack_frame.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/legumbre/gdb-z80/HEAD/gdb/doc/stack_frame.pdf -------------------------------------------------------------------------------- /gdb/doc/stack_frame.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/legumbre/gdb-z80/HEAD/gdb/doc/stack_frame.png -------------------------------------------------------------------------------- /gdb/testsuite/gdb.hp/gdb.objdbg/tools/test-objdbg.cc: -------------------------------------------------------------------------------- 1 | int main() 2 | { 3 | return 0; 4 | } 5 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.xml/includes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /include/coff/ChangeLog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/legumbre/gdb-z80/HEAD/include/coff/ChangeLog -------------------------------------------------------------------------------- /libiberty/config/mh-windows: -------------------------------------------------------------------------------- 1 | EXTRA_OFILES=asprintf.o strcasecmp.o strncasecmp.o vasprintf.o 2 | -------------------------------------------------------------------------------- /libiberty/strverscmp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/legumbre/gdb-z80/HEAD/libiberty/strverscmp.c -------------------------------------------------------------------------------- /sim/testsuite/d10v-elf/hello.s: -------------------------------------------------------------------------------- 1 | .include "t-macros.i" 2 | 3 | start 4 | hello 5 | exit0 6 | -------------------------------------------------------------------------------- /config/mh-solaris: -------------------------------------------------------------------------------- 1 | # Makefile changes for Suns running Solaris 2 2 | X11_EXTRA_LIBS = -lnsl -lsocket 3 | -------------------------------------------------------------------------------- /config/mt-mips-gnu: -------------------------------------------------------------------------------- 1 | include $(srcdir)/config/mt-gnu 2 | include $(srcdir)/config/mt-mips16-compat 3 | -------------------------------------------------------------------------------- /gdb/config/pa/obsd.mh: -------------------------------------------------------------------------------- 1 | # Host: OpenBSD/hppa 2 | NATDEPFILES= fork-child.o inf-ptrace.o hppabsd-nat.o 3 | -------------------------------------------------------------------------------- /gdb/config/sh/nbsd.mh: -------------------------------------------------------------------------------- 1 | # Host: NetBSD/sh 2 | NATDEPFILES= fork-child.o inf-ptrace.o shnbsd-nat.o 3 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.hp/gdb.objdbg/objdbg04/x2.cc: -------------------------------------------------------------------------------- 1 | #include "x.h" 2 | 3 | template class Adder; 4 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.xml/core-only.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /readline/examples/rlfe/screen.h: -------------------------------------------------------------------------------- 1 | /* Dummy header to avoid modifying pty.c */ 2 | #include "os.h" 3 | -------------------------------------------------------------------------------- /sim/testsuite/d10v-elf/loop.s: -------------------------------------------------------------------------------- 1 | .text 2 | .globl _start 3 | 4 | _start: 5 | bra _start 6 | nop 7 | -------------------------------------------------------------------------------- /gdb/config/m88k/obsd.mh: -------------------------------------------------------------------------------- 1 | # Host: OpenBSD/m88k 2 | NATDEPFILES= fork-child.o inf-ptrace.o m88kbsd-nat.o 3 | -------------------------------------------------------------------------------- /gdb/config/mips/nbsd.mh: -------------------------------------------------------------------------------- 1 | # Host: NetBSD/mips 2 | NATDEPFILES= fork-child.o inf-ptrace.o mipsnbsd-nat.o 3 | -------------------------------------------------------------------------------- /readline/examples/rl-fgets.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/legumbre/gdb-z80/HEAD/readline/examples/rl-fgets.c -------------------------------------------------------------------------------- /sim/mn10300/sim-main.c: -------------------------------------------------------------------------------- 1 | #ifndef SIM_MAIN_C 2 | #define SIM_MAIN_C 3 | #include "op_utils.c" 4 | #endif 5 | -------------------------------------------------------------------------------- /config/bootstrap-time.mk: -------------------------------------------------------------------------------- 1 | BOOT_CFLAGS += -time=$(shell pwd)/time.log 2 | TFLAGS += -time=$(shell pwd)/time.log 3 | -------------------------------------------------------------------------------- /gdb/config/mips/obsd64.mh: -------------------------------------------------------------------------------- 1 | # Host: OpenBSD/mips64 2 | NATDEPFILES= fork-child.o inf-ptrace.o mips64obsd-nat.o 3 | -------------------------------------------------------------------------------- /gdb/config/arm/nbsdelf.mh: -------------------------------------------------------------------------------- 1 | # Host: NetBSD/arm 2 | NATDEPFILES= fork-child.o inf-ptrace.o corelow.o armnbsd-nat.o 3 | -------------------------------------------------------------------------------- /gdb/config/i386/cygwin.mh: -------------------------------------------------------------------------------- 1 | MH_CFLAGS= 2 | NATDEPFILES= i386-nat.o windows-nat.o i386-windows-nat.o 3 | XM_CLIBS= 4 | -------------------------------------------------------------------------------- /gdb/config/i386/mingw.mh: -------------------------------------------------------------------------------- 1 | MH_CFLAGS= 2 | NATDEPFILES= i386-nat.o windows-nat.o i386-windows-nat.o 3 | XM_CLIBS= 4 | -------------------------------------------------------------------------------- /gdb/config/pa/nbsd.mh: -------------------------------------------------------------------------------- 1 | # Host: NetBSD/hppa 2 | NATDEPFILES= fork-child.o inf-ptrace.o nbsd-nat.o hppanbsd-nat.o 3 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.base/ptype1.c: -------------------------------------------------------------------------------- 1 | typedef char foo; 2 | 3 | foo charfoo (afoo) 4 | { 5 | return (afoo * 2); 6 | } 7 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.threads/tls-shared.c: -------------------------------------------------------------------------------- 1 | __thread int i_tls = 1; 2 | int foo () 3 | { 4 | return i_tls; 5 | } 6 | 7 | -------------------------------------------------------------------------------- /sim/testsuite/frv-elf/exit47.s: -------------------------------------------------------------------------------- 1 | .global _start 2 | _start: 3 | setlos #47,gr8 4 | setlos #1,gr7 5 | tira gr0,#0 6 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/c/hellodyn.c: -------------------------------------------------------------------------------- 1 | /* 2 | #dynamic: 3 | #sim: --sysroot=@exedir@ 4 | */ 5 | #include "hello.c" 6 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/c/seek2.c: -------------------------------------------------------------------------------- 1 | /* Simulator options: 2 | #sim: --sysroot=@exedir@/ 3 | */ 4 | #include "seek1.c" 5 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/hw/rv-n-cris/trivial4.r: -------------------------------------------------------------------------------- 1 | W, 2 | r,a8832,abcdef01 3 | w,a8836,aabbccdd 4 | r,a8836,76543210 5 | -------------------------------------------------------------------------------- /config/mt-spu: -------------------------------------------------------------------------------- 1 | # spu ld makefile invokes as-new and bin2c in maintainer mode. 2 | all-ld: $(MAINT) all-gas all-binutils 3 | -------------------------------------------------------------------------------- /gdb/config/i386/nto.mh: -------------------------------------------------------------------------------- 1 | # Host: Intel 386 running QNX. 2 | 3 | NATDEPFILES= nto-procfs.o 4 | NAT_FILE= config/nm-nto.h 5 | -------------------------------------------------------------------------------- /gdb/config/vax/vax.mh: -------------------------------------------------------------------------------- 1 | # Host: VAX running 4.2BSD or Ultrix 2 | NATDEPFILES= vax-nat.o fork-child.o inf-ptrace.o corelow.o 3 | -------------------------------------------------------------------------------- /sim/avr/ChangeLog: -------------------------------------------------------------------------------- 1 | 2010-04-14 Mike Frysinger 2 | 3 | * interp.c (sim_write): Add const to buffer arg. 4 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/c/hellodyn2.c: -------------------------------------------------------------------------------- 1 | /* 2 | #dynamic: 3 | #sim: --sysroot=@exedir@ --load-vma 4 | */ 5 | #include "hello.c" 6 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.cp/m-static1.cc: -------------------------------------------------------------------------------- 1 | // 2002-08-16 2 | 3 | #include "m-static.h" 4 | 5 | const int gnu_obj_4::elsewhere = 221; 6 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.cp/pr10728-x.h: -------------------------------------------------------------------------------- 1 | struct Y; 2 | struct X 3 | { 4 | Y* y1; 5 | Y* y2; 6 | }; 7 | 8 | X* y(); 9 | 10 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.hp/gdb.defects/solib-d.c: -------------------------------------------------------------------------------- 1 | main() 2 | { 3 | function_from_primary(); 4 | function_from_secondary(); 5 | } 6 | 7 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.hp/gdb.objdbg/objdbg02/x3.cc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void foo3() 4 | { 5 | printf("In foo3.\n"); 6 | } 7 | -------------------------------------------------------------------------------- /config/mh-sysv4: -------------------------------------------------------------------------------- 1 | # The l flag generates a warning from the SVR4 archiver, remove it. 2 | AR_FLAGS = cr 3 | 4 | X11_EXTRA_LIBS = -lnsl 5 | -------------------------------------------------------------------------------- /config/mh-sysv5: -------------------------------------------------------------------------------- 1 | # The l flag generates a warning from the SVR4 archiver, remove it. 2 | AR_FLAGS = cr 3 | 4 | X11_EXTRA_LIBS = -lnsl 5 | -------------------------------------------------------------------------------- /config/mt-ospace: -------------------------------------------------------------------------------- 1 | # Build libraries optimizing for space, not speed. 2 | CFLAGS_FOR_TARGET = -g -Os 3 | CXXFLAGS_FOR_TARGET = -g -Os 4 | -------------------------------------------------------------------------------- /gdb/config/arm/nbsdaout.mh: -------------------------------------------------------------------------------- 1 | # Host: NetBSD/arm 2 | NATDEPFILES= fork-child.o inf-ptrace.o corelow.o armnbsd-nat.o \ 3 | solib-sunos.o 4 | -------------------------------------------------------------------------------- /opcodes/ia64-war.tbl: -------------------------------------------------------------------------------- 1 | Resource Name; Readers; Writers; Semantics of Dependency 2 | PR63; IC:pr-readers-br+1; IC:mod-sched-brs; stop 3 | -------------------------------------------------------------------------------- /sim/microblaze/ChangeLog: -------------------------------------------------------------------------------- 1 | 2010-04-14 Mike Frysinger 2 | 3 | * interp.c (sim_write): Add const to buffer arg. 4 | -------------------------------------------------------------------------------- /config/mh-x86omitfp: -------------------------------------------------------------------------------- 1 | # Add -fomit-frame-pointer to the usual BOOT_CFLAGS to speed up the compiler. 2 | BOOT_CFLAGS += -fomit-frame-pointer 3 | -------------------------------------------------------------------------------- /gdb/config/alpha/nbsd.mh: -------------------------------------------------------------------------------- 1 | # Host: NetBSD/alpha 2 | NATDEPFILES= fork-child.o inf-ptrace.o alphabsd-nat.o bsd-kvm.o 3 | 4 | LOADLIBES= -lkvm 5 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.cp/pr10728-x.cc: -------------------------------------------------------------------------------- 1 | #include "pr10728-x.h" 2 | 3 | int main() 4 | { 5 | X* x = y(); 6 | return 0; // marker 1 7 | } 8 | -------------------------------------------------------------------------------- /config/mh-dgux386: -------------------------------------------------------------------------------- 1 | # The l flag generates a warning from the SVR4 archiver, remove it. 2 | AR_FLAGS = cr 3 | 4 | X11_EXTRA_LIBS = -lnsl 5 | 6 | -------------------------------------------------------------------------------- /config/mh-necv4: -------------------------------------------------------------------------------- 1 | # Host Makefile fragment for NEC MIPS SVR4. 2 | 3 | # NEC -lX11 needs some other libraries. 4 | X11_EXTRA_LIBS = -lsocket -lnsl 5 | -------------------------------------------------------------------------------- /config/mh-sco: -------------------------------------------------------------------------------- 1 | # You may need this if you don't have bison. 2 | # BISON = yacc -Sm10400 3 | 4 | X11_EXTRA_LIBS = -lsocket -lm -lintl -lmalloc 5 | -------------------------------------------------------------------------------- /gdb/config/m68k/nbsdelf.mh: -------------------------------------------------------------------------------- 1 | # Host: NetBSD/m68k ELF 2 | NATDEPFILES= m68kbsd-nat.o bsd-kvm.o fork-child.o inf-ptrace.o 3 | 4 | LOADLIBES= -lkvm 5 | -------------------------------------------------------------------------------- /gdb/config/pa/hpux.mh: -------------------------------------------------------------------------------- 1 | # Host: PA-RISC HP-UX 2 | NATDEPFILES= fork-child.o inf-ptrace.o inf-ttrace.o \ 3 | hppa-hpux-nat.o corelow.o somread.o 4 | -------------------------------------------------------------------------------- /gdb/config/powerpc/nbsd.mh: -------------------------------------------------------------------------------- 1 | # Host: NetBSD/powerpc 2 | NATDEPFILES= fork-child.o inf-ptrace.o ppcnbsd-nat.o bsd-kvm.o 3 | 4 | LOADLIBES= -lkvm 5 | -------------------------------------------------------------------------------- /gdb/config/powerpc/obsd.mh: -------------------------------------------------------------------------------- 1 | # Host: OpenBSD/powerpc 2 | NATDEPFILES= fork-child.o inf-ptrace.o ppcobsd-nat.o bsd-kvm.o 3 | 4 | LOADLIBES= -lkvm 5 | -------------------------------------------------------------------------------- /gdb/config/vax/obsd.mh: -------------------------------------------------------------------------------- 1 | # Host: OpenBSD/vax 2 | NATDEPFILES= fork-child.o inf-ptrace.o \ 3 | vaxbsd-nat.o bsd-kvm.o 4 | 5 | LOADLIBES= -lkvm 6 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.java/jmain.java: -------------------------------------------------------------------------------- 1 | public class jmain 2 | { 3 | public static void main (String[] args) 4 | { 5 | return; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.java/jmisc.java: -------------------------------------------------------------------------------- 1 | public class jmisc 2 | { 3 | public static void main (String[] args) 4 | { 5 | return; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.xml/tdesc-bogus.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | -------------------------------------------------------------------------------- /sim/testsuite/m32r-elf/exit47.s: -------------------------------------------------------------------------------- 1 | ;; Return with exit code 47. 2 | 3 | .globl _start 4 | _start: 5 | ldi8 r1,#47 6 | ldi8 r0,#1 7 | trap #0 8 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/c/hello.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | int main () 4 | { 5 | printf ("pass\n"); 6 | exit (0); 7 | } 8 | -------------------------------------------------------------------------------- /gdb/PROBLEMS: -------------------------------------------------------------------------------- 1 | 2 | Known problems in GDB 7.2.50 3 | 4 | See also: http://www.gnu.org/software/gdb/bugs/ 5 | 6 | None worth mentioning here. 7 | -------------------------------------------------------------------------------- /gdb/config/vax/nbsdelf.mh: -------------------------------------------------------------------------------- 1 | # Host: NetBSD/vax ELF 2 | NATDEPFILES= fork-child.o inf-ptrace.o \ 3 | vaxbsd-nat.o bsd-kvm.o 4 | 5 | LOADLIBES= -lkvm 6 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.xml/single-reg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /include/aout/hppa.h: -------------------------------------------------------------------------------- 1 | #include "filehdr.h" 2 | #include "aouthdr.h" 3 | #include "scnhdr.h" 4 | #include "spacehdr.h" 5 | #include "syms.h" 6 | 7 | 8 | -------------------------------------------------------------------------------- /bfd/doc/makefile.vms: -------------------------------------------------------------------------------- 1 | CFLAGS = /noopt/include=([],[-],[-.-.include]) 2 | LDFLAGS = /nomap 3 | LDLIBS = ,sys$$library:vaxcrtl.olb/lib 4 | 5 | all: chew.exe 6 | -------------------------------------------------------------------------------- /gdb/config/i386/nbsd64.mh: -------------------------------------------------------------------------------- 1 | # Host: NetBSD/amd64 2 | NATDEPFILES= fork-child.o inf-ptrace.o \ 3 | nbsd-nat.o amd64-nat.o amd64bsd-nat.o amd64nbsd-nat.o 4 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.hp/gdb.objdbg/objdbg03/x2.cc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int common10; 4 | int common11; 5 | 6 | int data10 = 10; 7 | int data11 = 11; 8 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/c/truncate2.c: -------------------------------------------------------------------------------- 1 | /* 2 | #sim: --sysroot=@exedir@ 3 | #notarget: cris*-*-elf 4 | */ 5 | #define PREFIX "/" 6 | #include "truncate1.c" 7 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/hw/rv-n-cris/quit.s: -------------------------------------------------------------------------------- 1 | ; Trivial target simulator program that just exits. 2 | .include "testutils.inc" 3 | startnostack 4 | quit 5 | -------------------------------------------------------------------------------- /gdb/config/i386/obsd.mh: -------------------------------------------------------------------------------- 1 | # Host: OpenBSD/i386 ELF 2 | NATDEPFILES= fork-child.o inf-ptrace.o \ 3 | i386bsd-nat.o i386obsd-nat.o bsd-kvm.o 4 | 5 | LOADLIBES= -lkvm 6 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.hp/gdb.objdbg/objdbg01/x3.cc: -------------------------------------------------------------------------------- 1 | #include "x3.h" 2 | 3 | void foo() 4 | { 5 | (new Info)->p(new PP); 6 | (new Info)->p(new QQ); 7 | } 8 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/c/openpf4.c: -------------------------------------------------------------------------------- 1 | /* Basic file operations, now *with* sysroot. 2 | #sim: --sysroot=@exedir@ 3 | */ 4 | #define PREFIX "/" 5 | #include "openpf3.c" 6 | -------------------------------------------------------------------------------- /gdb/config/m68k/nbsdaout.mh: -------------------------------------------------------------------------------- 1 | # Host: NetBSD/m68k a.out 2 | NATDEPFILES= m68kbsd-nat.o fork-child.o inf-ptrace.o \ 3 | solib.o solib-sunos.o 4 | 5 | LOADLIBES= -lkvm 6 | -------------------------------------------------------------------------------- /gdb/config/m68k/obsd.mh: -------------------------------------------------------------------------------- 1 | # Host: OpenBSD/m68k 2 | NATDEPFILES= m68kbsd-nat.o bsd-kvm.o fork-child.o inf-ptrace.o \ 3 | solib.o solib-sunos.o 4 | 5 | LOADLIBES= -lkvm 6 | -------------------------------------------------------------------------------- /gdb/config/sparc/nbsd64.mh: -------------------------------------------------------------------------------- 1 | # Host: NetBSD/sparc64 2 | NATDEPFILES= fork-child.o inf-ptrace.o \ 3 | sparc64nbsd-nat.o sparc-nat.o bsd-kvm.o 4 | 5 | LOADLIBES= -lkvm 6 | -------------------------------------------------------------------------------- /gdb/config/sparc/nbsdelf.mh: -------------------------------------------------------------------------------- 1 | # Host: NetBSD/sparc ELF 2 | NATDEPFILES= fork-child.o inf-ptrace.o \ 3 | sparc-nat.o sparcnbsd-nat.o bsd-kvm.o 4 | 5 | LOADLIBES= -lkvm 6 | -------------------------------------------------------------------------------- /config/mh-ncr3000: -------------------------------------------------------------------------------- 1 | # Host configuration file for an NCR 3000 (i486/SVR4) system. 2 | 3 | # The l flag generates a warning from the SVR4 archiver, remove it. 4 | AR_FLAGS = cq 5 | -------------------------------------------------------------------------------- /gdb/config/i386/i386sol2.mh: -------------------------------------------------------------------------------- 1 | # Host: Solaris x86 2 | NATDEPFILES= fork-child.o i386v4-nat.o i386-sol2-nat.o \ 3 | procfs.o proc-api.o proc-events.o proc-flags.o proc-why.o 4 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.base/bar.c: -------------------------------------------------------------------------------- 1 | static int barx = 'b' + 'a' + 'r'; 2 | 3 | int bar (int x) 4 | { 5 | if (x) 6 | return barx; 7 | else 8 | return 0; 9 | } 10 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.base/baz.c: -------------------------------------------------------------------------------- 1 | static int bazx = 'b' + 'a' + 'z'; 2 | 3 | int baz (int x) 4 | { 5 | if (x) 6 | return bazx; 7 | else 8 | return 0; 9 | } 10 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.base/foo.c: -------------------------------------------------------------------------------- 1 | static int foox = 'f' + 'o' + 'o'; 2 | 3 | int foo (int x) 4 | { 5 | if (x) 6 | return foox; 7 | else 8 | return 0; 9 | } 10 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.dwarf2/file1.txt: -------------------------------------------------------------------------------- 1 | File 1 Line 1 2 | File 1 Line 2 3 | File 1 Line 3 4 | File 1 Line 4 5 | File 1 Line 5 6 | File 1 Line 6 7 | File 1 Line 7 8 | File 1 Line 8 9 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/badarch1.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv3 crisv8 crisv10 crisv32 2 | # xerror: 3 | # output: *not a CRIS program* 4 | # sim: /bin/sh 5 | .include "nopv32t.ms" 6 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/c/readlink3.c: -------------------------------------------------------------------------------- 1 | /* Simulator options: 2 | #notarget: cris*-*-elf 3 | #sim: --sysroot=@exedir@ 4 | */ 5 | #define SYSROOTED 1 6 | #include "readlink2.c" 7 | -------------------------------------------------------------------------------- /gdb/config/i386/nbsdelf.mh: -------------------------------------------------------------------------------- 1 | # Host: NetBSD/i386 ELF 2 | NATDEPFILES= fork-child.o inf-ptrace.o \ 3 | nbsd-nat.o i386bsd-nat.o i386nbsd-nat.o bsd-kvm.o 4 | 5 | LOADLIBES= -lkvm 6 | -------------------------------------------------------------------------------- /gdb/config/i386/obsd64.mh: -------------------------------------------------------------------------------- 1 | # Host: OpenBSD/amd64 2 | NATDEPFILES= fork-child.o inf-ptrace.o \ 3 | amd64-nat.o amd64bsd-nat.o amd64obsd-nat.o bsd-kvm.o 4 | 5 | LOADLIBES= -lkvm 6 | -------------------------------------------------------------------------------- /gdb/config/mips/irix5.mh: -------------------------------------------------------------------------------- 1 | # Host: SGI Iris running irix 5.x 2 | NATDEPFILES= fork-child.o irix5-nat.o corelow.o procfs.o \ 3 | proc-api.o proc-events.o proc-flags.o proc-why.o 4 | -------------------------------------------------------------------------------- /gdb/config/mips/irix6.mh: -------------------------------------------------------------------------------- 1 | # Host: SGI Iris running irix 6.x 2 | NATDEPFILES= fork-child.o irix5-nat.o corelow.o procfs.o \ 3 | proc-api.o proc-events.o proc-flags.o proc-why.o 4 | -------------------------------------------------------------------------------- /gdb/config/vax/nbsdaout.mh: -------------------------------------------------------------------------------- 1 | # Host: NetBSD/vax a.out 2 | NATDEPFILES= fork-child.o inf-ptrace.o \ 3 | vaxbsd-nat.o bsd-kvm.o \ 4 | solib.o solib-sunos.o 5 | 6 | LOADLIBES= -lkvm 7 | -------------------------------------------------------------------------------- /gdb/config/i386/darwin.mh: -------------------------------------------------------------------------------- 1 | # Host: IA86 running Darwin 2 | 3 | NATDEPFILES = fork-child.o machoread.o darwin-nat.o \ 4 | i386-darwin-nat.o i386-nat.o amd64-nat.o darwin-nat-info.o 5 | -------------------------------------------------------------------------------- /gdb/config/sparc/nbsdaout.mh: -------------------------------------------------------------------------------- 1 | # Host: NetBSD/sparc a.out 2 | NATDEPFILES= fork-child.o inf-ptrace.o \ 3 | sparc-nat.o sparcnbsd-nat.o bsd-kvm.o solib-sunos.o 4 | 5 | LOADLIBES= -lkvm 6 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.cp/hang.H: -------------------------------------------------------------------------------- 1 | struct A 2 | { 3 | struct B *b_ptr_in_a; 4 | }; 5 | 6 | struct C 7 | { 8 | struct B 9 | { 10 | int member_of_B_in_C; 11 | }; 12 | }; 13 | -------------------------------------------------------------------------------- /config/mh-decstation: -------------------------------------------------------------------------------- 1 | # for X11, since the native DECwindows include files are really broken when 2 | # it comes to function prototypes. 3 | X11_EXTRA_CFLAGS = "-DNeedFunctionPrototypes=0" 4 | -------------------------------------------------------------------------------- /gdb/config/alpha/fbsd.mh: -------------------------------------------------------------------------------- 1 | # Host: FreeBSD/alpha 2 | NATDEPFILES= fork-child.o inf-ptrace.o \ 3 | fbsd-nat.o alphabsd-nat.o bsd-kvm.o \ 4 | corelow.o core-regset.o 5 | 6 | LOADLIBES= -lkvm 7 | -------------------------------------------------------------------------------- /gdb/config/i386/sol2-64.mh: -------------------------------------------------------------------------------- 1 | # Host: Solaris x86_64 2 | NATDEPFILES= fork-child.o amd64-nat.o i386v4-nat.o i386-sol2-nat.o \ 3 | procfs.o proc-api.o proc-events.o proc-flags.o proc-why.o 4 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.base/grbx.c: -------------------------------------------------------------------------------- 1 | static int grbxx = 'g' + 'r' + 'b' + 'x'; 2 | 3 | int grbx (int x) 4 | { 5 | if (x) 6 | return grbxx; 7 | else 8 | return 0; 9 | } 10 | 11 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.cp/hang1.cc: -------------------------------------------------------------------------------- 1 | #include "hang.H" 2 | 3 | extern int dummy2 (void); 4 | extern int dummy3 (void); 5 | 6 | int main (int argc, char **argv) { return dummy2() + dummy3(); } 7 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.cp/hang3.cc: -------------------------------------------------------------------------------- 1 | #include "hang.H" 2 | 3 | const struct B *const_B_ptr; 4 | int var_in_hang3 = 42; 5 | 6 | int dummy3 (void) 7 | { 8 | return var_in_hang3; 9 | } 10 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.dwarf2/dw4-sig-types.cc: -------------------------------------------------------------------------------- 1 | 2 | #include "dw4-sig-types.h" 3 | 4 | myns::bar_type myset; 5 | 6 | int 7 | main () 8 | { 9 | foo (); 10 | 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.hp/tools/odump: -------------------------------------------------------------------------------- 1 | #!/bin/ksh 2 | 3 | # First source /app/appserver 4 | . /app/appserver 5 | 6 | # Exec the executable. 7 | exec $APPROOT/usr/contrib/bin/$(basename $0) "$@" 8 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/nop.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for nop 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global nop 9 | nop: 10 | nop 11 | pass 12 | -------------------------------------------------------------------------------- /sim/testsuite/sim/frv/bar.cgs: -------------------------------------------------------------------------------- 1 | # frv testcase for bar 2 | # mach: all 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global bar 9 | bar: 10 | bar 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/frv/nop.cgs: -------------------------------------------------------------------------------- 1 | # frv testcase for nop 2 | # mach: all 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global nop 9 | nop: 10 | nop 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/v850/v850_sim.h: -------------------------------------------------------------------------------- 1 | struct simops 2 | { 3 | unsigned long opcode; 4 | unsigned long mask; 5 | int (* func) PARAMS ((void)); 6 | int numops; 7 | int operands[12]; 8 | }; 9 | -------------------------------------------------------------------------------- /bfd/po/BLD-POTFILES.in: -------------------------------------------------------------------------------- 1 | bfd_stdint.h 2 | bfdver.h 3 | elf32-ia64.c 4 | elf32-target.h 5 | elf64-ia64.c 6 | elf64-target.h 7 | peigen.c 8 | pepigen.c 9 | pex64igen.c 10 | targmatch.h 11 | -------------------------------------------------------------------------------- /config/mh-cxux: -------------------------------------------------------------------------------- 1 | # Configuration for Harris CX/UX 7 (and maybe 6), based on sysv4 configuration. 2 | 3 | # The l flag generates a warning from the SVR4 archiver, remove it. 4 | AR_FLAGS = cq 5 | 6 | -------------------------------------------------------------------------------- /gdb/config/i386/fbsd64.mh: -------------------------------------------------------------------------------- 1 | # Host: FreeBSD/amd64 2 | NATDEPFILES= fork-child.o inf-ptrace.o \ 3 | fbsd-nat.o amd64-nat.o amd64bsd-nat.o amd64fbsd-nat.o \ 4 | bsd-kvm.o 5 | 6 | LOADLIBES= -lkvm 7 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/opterr2.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv3 crisv8 crisv10 crisv32 2 | # xerror: 3 | # output: *: unrecognized option [`']--cris-xyz'\n 4 | # sim: --cris-xyz 5 | .include "nopv32t.ms" 6 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/c/badldso1.c: -------------------------------------------------------------------------------- 1 | /* 2 | #notarget: cris*-*-elf 3 | #dynamic: 4 | #xerror: 5 | #output: *: could not load ELF interpreter `*' for program `*'\n 6 | */ 7 | #include "hello.c" 8 | -------------------------------------------------------------------------------- /sim/testsuite/sim/frv/mnop.cgs: -------------------------------------------------------------------------------- 1 | # frv testcase for mnop 2 | # mach: all 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global mnop 9 | mnop: 10 | mnop 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/nop.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for nop 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global nop 9 | nop: 10 | nop 11 | pass 12 | -------------------------------------------------------------------------------- /gdb/config/sparc/fbsd.mh: -------------------------------------------------------------------------------- 1 | # Host: FreeBSD/sparc64 2 | NATDEPFILES= fork-child.o inf-ptrace.o \ 3 | fbsd-nat.o sparc-nat.o sparc64-nat.o sparc64fbsd-nat.o \ 4 | bsd-kvm.o 5 | 6 | LOADLIBES= -lkvm 7 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.base/pr10179-a.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern int foo2(); 4 | 5 | int 6 | foo1() 7 | { 8 | } 9 | 10 | int 11 | bar1() 12 | { 13 | } 14 | 15 | main() 16 | { 17 | } 18 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/sbfs.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv10 2 | # xerror: 3 | # output: SBFS isn't implemented\nprogram stopped with signal 5.\n 4 | 5 | .include "testutils.inc" 6 | start 7 | sbfs [r10] 8 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/c/mmap4.c: -------------------------------------------------------------------------------- 1 | /* Just check that MAP_DENYWRITE is "honored" (ignored). 2 | #notarget: cris*-*-elf 3 | */ 4 | #define MMAP_FLAGS (MAP_PRIVATE|MAP_DENYWRITE) 5 | #include "mmap1.c" 6 | -------------------------------------------------------------------------------- /bfd/version.h: -------------------------------------------------------------------------------- 1 | #define BFD_VERSION_DATE 20101026 2 | #define BFD_VERSION @bfd_version@ 3 | #define BFD_VERSION_STRING @bfd_version_package@ @bfd_version_string@ 4 | #define REPORT_BUGS_TO @report_bugs_to@ 5 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.base/pc-fp.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void 4 | foo (int i) 5 | { 6 | i++; 7 | printf ("In foo %d\n", i); 8 | } 9 | 10 | int 11 | main () 12 | { 13 | foo (1); 14 | } 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/bx.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for bx$cond $rn 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global bx 9 | bx: 10 | bx0 pc 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/c/readlink6.c: -------------------------------------------------------------------------------- 1 | /* Check that rare readlink calls don't cause the simulator to abort. 2 | #notarget: cris*-*-elf 3 | #dest: @exedir@/readlink6.c.x 4 | */ 5 | #include "readlink2.c" 6 | -------------------------------------------------------------------------------- /sim/testsuite/sim/frv/fnop.cgs: -------------------------------------------------------------------------------- 1 | # frv testcase for fnop 2 | # mach: fr500 fr550 frv 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global fnop 9 | fnop: 10 | fnop 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/frv/membar.cgs: -------------------------------------------------------------------------------- 1 | # frv testcase for membar 2 | # mach: all 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global membar 9 | membar: 10 | membar 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /gdb/config/i386/nbsdaout.mh: -------------------------------------------------------------------------------- 1 | # Host: NetBSD/i386 a.out 2 | NATDEPFILES= fork-child.o inf-ptrace.o \ 3 | nbsd-nat.o i386bsd-nat.o i386nbsd-nat.o bsd-kvm.o \ 4 | solib.o solib-sunos.o 5 | 6 | LOADLIBES= -lkvm 7 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.cp/hang2.cc: -------------------------------------------------------------------------------- 1 | #include "hang.H" 2 | 3 | struct B 4 | { 5 | int member_of_B; 6 | }; 7 | 8 | int var_in_b = 1729; 9 | 10 | int dummy2 (void) 11 | { 12 | return var_in_b; 13 | } 14 | -------------------------------------------------------------------------------- /include/som/ChangeLog: -------------------------------------------------------------------------------- 1 | 2010-06-10 Tristan Gingold 2 | 3 | * aout.h: New file. 4 | * clock.h: Likewise. 5 | * lst.h: Likewise. 6 | * reloc.h: Likewise. 7 | * internal.h: Likewise. 8 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/b.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for b $offset11 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global b 9 | b: 10 | b footext 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/opterr1.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv3 crisv8 crisv10 crisv32 2 | # xerror: 3 | # output: *: unrecognized option [`']--cris-stats=xyz'\n 4 | # sim: --cris-stats=xyz 5 | .include "nopv32t.ms" 6 | -------------------------------------------------------------------------------- /config/mh-interix: -------------------------------------------------------------------------------- 1 | # The shell may not be in /bin. 2 | SHELL = sh 3 | 4 | # We also need to override LIBGCC2_DEBUG_CFLAGS so libgcc2 will be 5 | # built without debugging information 6 | 7 | LIBGCC2_DEBUG_CFLAGS= 8 | -------------------------------------------------------------------------------- /config/mt-d30v: -------------------------------------------------------------------------------- 1 | # Build libraries optimizing for space, not speed. 2 | # Turn off warnings about symbols named the same as registers 3 | CFLAGS_FOR_TARGET = -g -Os -Wa,-C 4 | CXXFLAGS_FOR_TARGET = -g -Os -Wa,-C 5 | -------------------------------------------------------------------------------- /gdb/config/i386/fbsd.mh: -------------------------------------------------------------------------------- 1 | # Host: FreeBSD/i386 2 | NATDEPFILES= fork-child.o inf-ptrace.o \ 3 | fbsd-nat.o i386-nat.o i386bsd-nat.o i386fbsd-nat.o \ 4 | bsd-kvm.o 5 | NAT_FILE= nm-fbsd.h 6 | 7 | LOADLIBES= -lkvm 8 | -------------------------------------------------------------------------------- /gdb/config/i386/obsdaout.mh: -------------------------------------------------------------------------------- 1 | # Host: OpenBSD/i386 a.out 2 | NATDEPFILES= fork-child.o inf-ptrace.o \ 3 | i386bsd-nat.o i386nbsd-nat.o i386obsd-nat.o bsd-kvm.o \ 4 | solib.o solib-sunos.o 5 | 6 | LOADLIBES= -lkvm 7 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.base/fixsectshr.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | static FILE *static_fun = NULL; 5 | 6 | FILE * 7 | force_static_fun (void) 8 | { 9 | return static_fun; 10 | } 11 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.cp/pr10728-y.cc: -------------------------------------------------------------------------------- 1 | #include "pr10728-x.h" 2 | struct Y{}; 3 | 4 | X* y() 5 | { 6 | static X xx; 7 | static Y yy; 8 | xx.y1 = &yy; 9 | xx.y2 = xx.y1+1; 10 | return &xx; 11 | } 12 | -------------------------------------------------------------------------------- /sim/ppc/sim-main.h: -------------------------------------------------------------------------------- 1 | #include "sim-basics.h" 2 | #include "sim-signal.h" 3 | 4 | typedef unsigned32 sim_cia; 5 | 6 | #include "sim-base.h" 7 | 8 | struct sim_state { 9 | sim_state_base base; 10 | }; 11 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/bx-hs.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for bx $hs 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global bx_hs 9 | bx_hs: 10 | bx r8 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/bx-rs.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for bx $rs 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global bx_rs 9 | bx_rs: 10 | bx r0 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/pop.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for pop {$rlist} 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global pop 9 | pop: 10 | pop {0} 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/swi.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for swi $value8 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global swi 9 | swi: 10 | swi 0 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/hw-trap.ms: -------------------------------------------------------------------------------- 1 | # mach(): cr16 2 | 3 | .include "testutils.inc" 4 | 5 | start 6 | 7 | # perform trap 8 | movw $0,r2 9 | movw $0x410,r0 10 | pass # the pass macro use the trap 8 11 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/rfg.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv32 2 | # xerror: 3 | # output: RFG isn't implemented\nprogram stopped with signal 5.\n 4 | 5 | .include "testutils.inc" 6 | start 7 | rfg 8 | 9 | quit 10 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/c/exitg2.c: -------------------------------------------------------------------------------- 1 | /* Check exit_group(2) trivially with non-zero status. 2 | #notarget: cris-*-* *-*-elf 3 | #output: exit_group\n 4 | #xerror: 5 | */ 6 | #define EXITVAL 1 7 | #include "exitg1.c" 8 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/swi.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for swi$cond ${swi-comment} 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global swi 9 | swi: 10 | swi0 0 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/bcc.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for bcc $soffset8 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global bcc 9 | bcc: 10 | bcc footext 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/bcs.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for bcs $soffset8 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global bcs 9 | bcs: 10 | bcs footext 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/beq.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for beq $soffset8 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global beq 9 | beq: 10 | beq footext 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/bge.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for bge $soffset8 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global bge 9 | bge: 10 | bge footext 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/bgt.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for bgt $soffset8 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global bgt 9 | bgt: 10 | bgt footext 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/bhi.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for bhi $soffset8 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global bhi 9 | bhi: 10 | bhi footext 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/ble.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for ble $soffset8 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global ble 9 | ble: 10 | ble footext 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/bls.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for bls $soffset8 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global bls 9 | bls: 10 | bls footext 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/blt.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for blt $soffset8 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global blt 9 | blt: 10 | blt footext 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/bmi.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for bmi $soffset8 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global bmi 9 | bmi: 10 | bmi footext 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/bne.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for bne $soffset8 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global bne 9 | bne: 10 | bne footext 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/bpl.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for bpl $soffset8 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global bpl 9 | bpl: 10 | bpl footext 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/bvc.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for bvc $soffset8 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global bvc 9 | bvc: 10 | bvc footext 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/bvs.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for bvs $soffset8 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global bvs 9 | bvs: 10 | bvs footext 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/push.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for push {$rlist} 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global push 9 | push: 10 | push {0} 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/halt.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv32 2 | # xerror: 3 | # output: HALT isn't implemented\nprogram stopped with signal 5.\n 4 | 5 | .include "testutils.inc" 6 | start 7 | halt 8 | 9 | quit 10 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/option2.ms: -------------------------------------------------------------------------------- 1 | #mach: crisv0 crisv3 crisv8 crisv10 crisv32 2 | #sim: --sysroot=/non/exist/dir 3 | #output: run: can't change directory to "/non/exist/dir"\n 4 | #xerror: 5 | .include "option1.ms" 6 | -------------------------------------------------------------------------------- /sim/testsuite/sim/fr30/add.ms: -------------------------------------------------------------------------------- 1 | # fr30 testcase for add $Rj,$Ri 2 | # cpu {} 3 | 4 | .include "testutils.inc" 5 | 6 | START 7 | 8 | .text 9 | .global add 10 | add: 11 | add ac,ac 12 | fail 13 | EXIT 0 14 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/nop.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for nop -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | nop 10 | pass 11 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.base/vforked-prog.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #ifdef PROTOTYPES 4 | int main (void) 5 | #else 6 | main() 7 | #endif 8 | { 9 | printf("Hello from vforked-prog...\n"); 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /sim/testsuite/frv-elf/grloop.s: -------------------------------------------------------------------------------- 1 | .global _start 2 | _start: 3 | setlo 0x0400,gr10 4 | loop: 5 | addicc gr10,-1,gr10,icc0 6 | bne icc0,0,loop 7 | ; exit (0) 8 | setlos #0,gr8 9 | setlos #1,gr7 10 | tira gr0,#0 11 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/adc.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for adc $rd,$rs 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global alu_adc 9 | alu_adc: 10 | adc r0,r0 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/add.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for add $rd,$rs,$rn 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global add 9 | add: 10 | add r0,r0,r0 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/and.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for and $rd,$rs 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global alu_and 9 | alu_and: 10 | and r0,r0 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/bic.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for bic $rd,$rs 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global alu_bic 9 | alu_bic: 10 | bic r0,r0 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/bl-hi.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for bl-hi ${lbwl-hi} 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global bl_hi 9 | bl_hi: 10 | bl-hi 0 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/bl-lo.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for bl-lo ${lbwl-lo} 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global bl_lo 9 | bl_lo: 10 | bl-lo 0 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/cmn.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for cmn $rd,$rs 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global alu_cmn 9 | alu_cmn: 10 | cmn r0,r0 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/eor.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for eor $rd,$rs 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global alu_eor 9 | alu_eor: 10 | eor r0,r0 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/mul.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for mul $rd,$rs 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global alu_mul 9 | alu_mul: 10 | mul r0,r0 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/mvn.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for mvn $rd,$rs 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global alu_mvn 9 | alu_mvn: 10 | mvn r0,r0 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/neg.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for neg $rd,$rs 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global alu_neg 9 | alu_neg: 10 | neg r0,r0 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/orr.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for orr $rd,$rs 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global alu_orr 9 | alu_orr: 10 | orr r0,r0 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/ror.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for ror $rd,$rs 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global alu_ror 9 | alu_ror: 10 | ror r0,r0 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/sbc.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for sbc $rd,$rs 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global alu_sbc 9 | alu_sbc: 10 | sbc r0,r0 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/sub.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for sub $rd,$rs,$rn 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global sub 9 | sub: 10 | sub r0,r0,r0 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/tst.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for tst $rd,$rs 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global alu_tst 9 | alu_tst: 10 | tst r0,r0 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/fidxd.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv32 2 | # xerror: 3 | # output: FIDXD isn't implemented\nprogram stopped with signal 5.\n 4 | 5 | .include "testutils.inc" 6 | start 7 | fidxd [r3] 8 | 9 | quit 10 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/fidxi.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv32 2 | # xerror: 3 | # output: FIDXI isn't implemented\nprogram stopped with signal 5.\n 4 | 5 | .include "testutils.inc" 6 | start 7 | fidxi [r5] 8 | 9 | quit 10 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/ftagi.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv32 2 | # xerror: 3 | # output: FTAGI isn't implemented\nprogram stopped with signal 5.\n 4 | 5 | .include "testutils.inc" 6 | start 7 | ftagi [r8] 8 | 9 | quit 10 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/movrss.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv32 2 | # xerror: 3 | # output: Write to support register is unimplemented\nprogram stopped with signal 5.\n 4 | 5 | .include "testutils.inc" 6 | start 7 | move R3,S0 8 | 9 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/movssr.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv32 2 | # xerror: 3 | # output: Read of support register is unimplemented\nprogram stopped with signal 5.\n 4 | 5 | .include "testutils.inc" 6 | start 7 | move S0,R3 8 | 9 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/option1.ms: -------------------------------------------------------------------------------- 1 | #mach: crisv0 crisv3 crisv8 crisv10 crisv32 2 | #sim: --cris-trace=foo 3 | #xerror: 4 | #output: Unknown option `--cris-trace=foo'\n 5 | .include "testutils.inc" 6 | start 7 | fail 8 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/option3.ms: -------------------------------------------------------------------------------- 1 | #mach: crisv0 crisv3 crisv8 crisv10 crisv32 2 | #sim: --cris-cycles=foo 3 | #xerror: 4 | #output: Unknown option `--cris-cycles=foo'\n 5 | .include "testutils.inc" 6 | start 7 | fail 8 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/sleep.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for sleep -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | sleep 10 | pass 11 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/synci.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for synci -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | synci 10 | pass 11 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/synco.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for synco -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | synco 10 | pass 11 | -------------------------------------------------------------------------------- /gdb/config/sparc/sol2.mh: -------------------------------------------------------------------------------- 1 | # Host: Solaris SPARC & UltraSPARC 2 | NAT_FILE= nm-sol2.h 3 | NATDEPFILES= sparc-sol2-nat.o \ 4 | corelow.o core-regset.o fork-child.o \ 5 | procfs.o proc-api.o proc-events.o proc-flags.o proc-why.o 6 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.base/gdbvars.c: -------------------------------------------------------------------------------- 1 | /* Simple program to help exercise gdb's convenience variables. */ 2 | 3 | typedef void *ptr; 4 | 5 | ptr p = &p; 6 | 7 | int 8 | main () 9 | { 10 | p = &p; 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.cp/pr9067.cc: -------------------------------------------------------------------------------- 1 | struct B; 2 | 3 | struct A { 4 | static B b; 5 | }; 6 | 7 | struct B { 8 | A a; 9 | }; 10 | 11 | B A::b; 12 | B b; 13 | 14 | int main(int,char **) 15 | { 16 | return 0; 17 | } 18 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.hp/gdb.base-hp/dollar.c: -------------------------------------------------------------------------------- 1 | #ifdef PROTOTYPES 2 | int main (int argc, char **argv) 3 | #else 4 | main (argc, argv, envp) 5 | int argc; 6 | char **argv; 7 | #endif 8 | { 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /libdecnumber/decCommonSymbols.h: -------------------------------------------------------------------------------- 1 | #if !defined(DECCOMMONSYMBOLS) 2 | #define DECCOMMONSYMBOLS 3 | 4 | #ifdef IN_LIBGCC2 5 | #define DECCOMBFROM __decCOMBFROM 6 | #define DECCOMBMSD __decCOMBMSD 7 | #endif 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/swp.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for swp$cond $rd,$rm,[$rn] 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global swp 9 | swp: 10 | swp0 pc,pc,[pc] 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/add-sp.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for add sp,#$sword7 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global add_sp 9 | add_sp: 10 | add sp,#0 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/ldr.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for ldr $rd,[$rb,$ro] 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global ldr 9 | ldr: 10 | ldr r0,[r0,r0] 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/mov.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for mov ${bit10-rd},#$offset8 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global mov 9 | mov: 10 | mov r0,#0 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/pop-pc.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for pop {${rlist-pc}} 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global pop_pc 9 | pop_pc: 10 | pop {0} 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/str.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for str $rd,[$rb,$ro] 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global str 9 | str: 10 | str r0,[r0,r0] 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/sub-sp.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for add sp,#-$sword7 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global sub_sp 9 | sub_sp: 10 | add sp,#-0 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/ftagd.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv32 2 | # xerror: 3 | # output: FTAGD isn't implemented\nprogram stopped with signal 5.\n 4 | 5 | .include "testutils.inc" 6 | start 7 | ftagd [r11] 8 | 9 | quit 10 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.dwarf2/dw4-sig-types.h: -------------------------------------------------------------------------------- 1 | 2 | #include 3 | using std::set; 4 | 5 | namespace myns 6 | { 7 | 8 | struct bar_type 9 | { 10 | set foo; 11 | }; 12 | 13 | } // myns 14 | 15 | extern void foo (); 16 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/swpb.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for swpb${cond}b $rd,$rm,[$rn] 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global swpb 9 | swpb: 10 | swpb0b pc,pc,[pc] 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/add-hd-hs.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for add $hd,$hs 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global add_hd_hs 9 | add_hd_hs: 10 | add r8,r8 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/add-hd-rs.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for add $hd,$rs 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global add_hd_rs 9 | add_hd_rs: 10 | add r8,r0 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/add-rd-hs.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for add $rd,$hs 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global add_rd_hs 9 | add_rd_hs: 10 | add r0,r8 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/addi.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for add $rd,$rs,#$offset3 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global addi 9 | addi: 10 | add r0,r0,#0 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/addi8.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for add ${bit10-rd},#$offset8 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global addi8 9 | addi8: 10 | add r0,#0 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/cmp-hd-hs.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for cmp $hd,$hs 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global cmp_hd_hs 9 | cmp_hd_hs: 10 | cmp r8,r8 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/cmp-hd-rs.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for cmp $hd,$rs 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global cmp_hd_rs 9 | cmp_hd_rs: 10 | cmp r8,r0 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/cmp-rd-hs.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for cmp $rd,$hs 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global cmp_rd_hs 9 | cmp_rd_hs: 10 | cmp r0,r8 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/ldmia.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for ldmia $rb!,{$rlist} 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global ldmia 9 | ldmia: 10 | ldmia r0!,{0} 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/ldrb.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for ldrb $rd,[$rb,$ro] 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global ldrb 9 | ldrb: 10 | ldrb r0,[r0,r0] 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/ldrh.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for ldrh $rd,[$rb,$ro] 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global ldrh 9 | ldrh: 10 | ldrh r0,[r0,r0] 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/ldsb.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for ldsb $rd,[$rb,$ro] 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global ldsb 9 | ldsb: 10 | ldsb r0,[r0,r0] 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/ldsh.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for ldsh $rd,[$rb,$ro] 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global ldsh 9 | ldsh: 10 | ldsh r0,[r0,r0] 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/mov-hd-hs.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for mov $hd,$hs 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global mov_hd_hs 9 | mov_hd_hs: 10 | mov r8,r8 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/mov-hd-rs.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for mov $hd,$rs 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global mov_hd_rs 9 | mov_hd_rs: 10 | mov r8,r0 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/mov-rd-hs.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for mov $rd,$hs 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global mov_rd_hs 9 | mov_rd_hs: 10 | mov r0,r8 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/push-lr.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for push {${rlist-lr}} 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global push_lr 9 | push_lr: 10 | push {0} 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/stmia.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for stmia $rb!,{$rlist} 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global stmia 9 | stmia: 10 | stmia r0!,{0} 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/strb.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for strb $rd,[$rb,$ro] 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global strb 9 | strb: 10 | strb r0,[r0,r0] 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/strh.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for strh $rd,[$rb,$ro] 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global strh 9 | strh: 10 | strh r0,[r0,r0] 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/subi.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for sub $rd,$rs,#$offset3 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global subi 9 | subi: 10 | sub r0,r0,#0 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/subi8.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for sub ${bit10-rd},#$offset8 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global subi8 9 | subi8: 10 | sub r0,#0 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/hw/rv-n-cris/host1.ms: -------------------------------------------------------------------------------- 1 | #mach: crisv32 2 | #sim(crisv32): --hw-device "/rv/host localhost" 3 | 4 | # Check that we trivially resolve a hostname. 5 | 6 | #r @,@srcdir@/trivial4.r 7 | 8 | .include "trivial4.ms" 9 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/bra8.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for bra $disp8 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global bra8 9 | bra8: 10 | bra.s ok 11 | 12 | fail 13 | ok: 14 | pass 15 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.cp/namespace-nested-import.cc: -------------------------------------------------------------------------------- 1 | namespace A{ 2 | namespace B{ 3 | namespace C{ 4 | int x = 5; 5 | } 6 | } 7 | } 8 | 9 | int main(){ 10 | using namespace A::B; 11 | return C::x; 12 | } 13 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.hp/gdb.defects/solib-d2.c: -------------------------------------------------------------------------------- 1 | int global_from_secondary = 9012; 2 | int function_from_secondary() 3 | { 4 | static int local_static = 3456; 5 | return 0; 6 | } 7 | 8 | garbage() 9 | { 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.mi/gdb701.c: -------------------------------------------------------------------------------- 1 | struct _foo 2 | { 3 | int x; 4 | int y; 5 | int z; 6 | }; 7 | 8 | typedef struct _foo Foo; 9 | 10 | int 11 | main (int argc, char *argv[]) 12 | { 13 | Foo *foo = 0; 14 | return 0; 15 | } 16 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/mul.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for mul$cond${set-cc?} ${mul-rd},$rm,$rs 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global mul 9 | mul: 10 | mul00 pc,pc,pc 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/lda-pc.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for add ${bit10-rd},pc,$word8 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global lda_pc 9 | lda_pc: 10 | add r0,pc,0 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/lda-sp.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for add ${bit10-rd},sp,$word8 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global lda_sp 9 | lda_sp: 10 | add r0,sp,0 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/c/sig13.c: -------------------------------------------------------------------------------- 1 | /* As the included file, but specifying silent ENOSYS. 2 | #notarget: cris*-*-elf 3 | #sim: --cris-unknown-syscall=enosys-quiet 4 | #output: ENOSYS\n 5 | #output: xyzzy\n 6 | */ 7 | 8 | #include "sig7.c" 9 | -------------------------------------------------------------------------------- /config/mh-ppc-darwin: -------------------------------------------------------------------------------- 1 | # The -mdynamic-no-pic ensures that the compiler executable is built without 2 | # position-independent-code -- the usual default on Darwin. This fix speeds 3 | # compiles by 3-5%. 4 | 5 | BOOT_CFLAGS += -mdynamic-no-pic 6 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.asm/netbsd.inc: -------------------------------------------------------------------------------- 1 | comment "netbsd .note" 2 | 3 | .section ".note.netbsd.ident", "a" 4 | .p2align 2 5 | 6 | .long 7 7 | .long 4 8 | .long 1 9 | .ascii "NetBSD\0\0" 10 | .long 105010000 11 | 12 | .p2align 2 13 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.asm/openbsd.inc: -------------------------------------------------------------------------------- 1 | comment "openbsd .note" 2 | 3 | .section ".note.openbsd.ident", "a" 4 | .p2align 2 5 | 6 | .long 8 7 | .long 4 8 | .long 1 9 | .ascii "OpenBSD\0\0" 10 | .long 200311 11 | 12 | .p2align 2 13 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.base/langs2.cxx: -------------------------------------------------------------------------------- 1 | extern "C" int csub (int); 2 | int 3 | foo (int x) 4 | { 5 | return csub (x / 2); 6 | } 7 | 8 | extern "C" int cppsub_ (int *); 9 | int 10 | cppsub_ (int *y) 11 | { 12 | return foo (*y); 13 | } 14 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/bal1_24.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for bal $disp24 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global bal24 9 | bal24: 10 | bal (ra), ok 11 | 12 | fail 13 | 14 | ok: 15 | pass 16 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/bal2_24.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for bal $disp24 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global bal24 9 | bal24: 10 | bal (r12), ok 11 | 12 | fail 13 | 14 | ok: 15 | pass 16 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/addqpc.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv3 crisv8 crisv10 2 | # xerror: 3 | # output: General register read of PC is not implemented.\nprogram stopped with signal 5.\n 4 | 5 | .include "testutils.inc" 6 | start 7 | addq 1,pc 8 | 9 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/movppc.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv3 crisv8 crisv10 2 | # xerror: 3 | # output: General register read of PC is not implemented.\nprogram stopped with signal 5.\n 4 | 5 | .include "testutils.inc" 6 | start 7 | move srp,[PC+] 8 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/option4.ms: -------------------------------------------------------------------------------- 1 | #mach: crisv0 crisv3 crisv8 crisv10 crisv32 2 | #sim: --cris-unknown-syscall=foo 3 | #xerror: 4 | #output: Unknown option `--cris-unknown-syscall=foo'\n 5 | .include "testutils.inc" 6 | start 7 | fail 8 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/subqpc.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv3 crisv8 crisv10 2 | # xerror: 3 | # output: General register read of PC is not implemented.\nprogram stopped with signal 5.\n 4 | 5 | .include "testutils.inc" 6 | start 7 | subq 31,pc 8 | 9 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/c/clone6.c: -------------------------------------------------------------------------------- 1 | /* As the included file, but specifying silent ENOSYS. 2 | #notarget: cris*-*-elf 3 | #sim: --cris-unknown-syscall=enosys-quiet 4 | #output: ENOSYS\n 5 | #output: xyzzy\n 6 | */ 7 | 8 | #include "clone5.c" 9 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/c/fcntl2.c: -------------------------------------------------------------------------------- 1 | /* As the included file, but specifying silent ENOSYS. 2 | #notarget: cris*-*-elf 3 | #sim: --cris-unknown-syscall=enosys-quiet 4 | #output: ENOSYS\n 5 | #output: xyzzy\n 6 | */ 7 | 8 | #include "fcntl1.c" 9 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/c/syscall7.c: -------------------------------------------------------------------------------- 1 | /* As the included file, but specifying silent ENOSYS. 2 | #notarget: cris*-*-elf 3 | #sim: --cris-unknown-syscall=enosys-quiet 4 | #output: ENOSYS\n 5 | #output: xyzzy\n 6 | */ 7 | 8 | #include "syscall1.c" 9 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/c/syscall8.c: -------------------------------------------------------------------------------- 1 | /* As the included file, but specifying silent ENOSYS. 2 | #notarget: cris*-*-elf 3 | #sim: --cris-unknown-syscall=enosys-quiet 4 | #output: ENOSYS\n 5 | #output: xyzzy\n 6 | */ 7 | 8 | #include "syscall2.c" 9 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/c/sysctl3.c: -------------------------------------------------------------------------------- 1 | /* As the included file, but specifying silent ENOSYS. 2 | #notarget: cris*-*-elf 3 | #sim: --cris-unknown-syscall=enosys-quiet 4 | #output: ENOSYS\n 5 | #output: xyzzy\n 6 | */ 7 | 8 | #include "sysctl2.c" 9 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/bra24.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for bra $disp24 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global bra24 9 | bra24: 10 | bra.l ok 11 | 12 | fail 13 | 14 | ok: 15 | pass 16 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh/fail.s: -------------------------------------------------------------------------------- 1 | # sh testcase, fail 2 | # mach: all 3 | # as(sh): -defsym sim_cpu=0 4 | # as(shdsp): -defsym sim_cpu=1 -dsp 5 | 6 | .include "testutils.inc" 7 | 8 | start 9 | 10 | fail 11 | 12 | exit 0 13 | 14 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/icbi.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for icbi $rm, $disp6x32 -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | icbi r0, 0 10 | pass 11 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/ocbi.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for ocbi $rm, $disp6x32 -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | ocbi r0, 0 10 | pass 11 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/ocbp.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for ocbp $rm, $disp6x32 -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | ocbp r0, 0 10 | pass 11 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/ocbwb.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for ocbwb $rm, $disp6x32 -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | ocbwb r0, 0 10 | pass 11 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/prefi.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for prefi $rm, $disp6x32 -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | prefi r0, 0 10 | pass 11 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/rte.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for rte -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | # Unimplemented. 10 | rte 11 | pass 12 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.hp/gdb.defects/bs14602.c: -------------------------------------------------------------------------------- 1 | /* Test file for bs14602.exp */ 2 | 3 | double v_double = 0; 4 | long double v_long_double = 12345.67890; 5 | 6 | int main () { 7 | v_double = 0; 8 | v_long_double = 12345.67890; 9 | } 10 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.python/py-infthread.c: -------------------------------------------------------------------------------- 1 | int f2 (int a) 2 | { 3 | return ++a; 4 | } 5 | 6 | int f1 (int a, int b) 7 | { 8 | return f2(a) + b; 9 | } 10 | 11 | int main (int argc, char *argv[]) 12 | { 13 | return f1 (1, 2); 14 | } 15 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.threads/tls-nodebug.c: -------------------------------------------------------------------------------- 1 | /* Test accessing TLS based variable without any debug info compiled. */ 2 | 3 | #include 4 | 5 | __thread int thread_local = 42; 6 | 7 | int main(void) 8 | { 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/ldr-imm.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for ldr $rd,[$rb,#${offset5-7}] 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global ldr_imm 9 | ldr_imm: 10 | ldr r0,[r0,#0] 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/ldr-pc.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for ldr ${bit10-rd},[pc,#$word8] 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global ldr_pc 9 | ldr_pc: 10 | ldr r0,[pc,#0] 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/ldrb-imm.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for ldrb $rd,[$rb,#$offset5] 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global ldrb_imm 9 | ldrb_imm: 10 | ldrb r0,[r0,#0] 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/str-imm.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for str $rd,[$rb,#${offset5-7}] 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global str_imm 9 | str_imm: 10 | str r0,[r0,#0] 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/strb-imm.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for strb $rd,[$rb,#$offset5] 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global strb_imm 9 | strb_imm: 10 | strb r0,[r0,#0] 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/c/badldso2.c: -------------------------------------------------------------------------------- 1 | /* 2 | #notarget: cris*-*-elf 3 | #dynamic: 4 | #xerror: 5 | #cc: additional_flags=-Wl,-dynamic-linker,/dev/null 6 | #output: *: could not load ELF interpreter `*' for program `*'\n 7 | */ 8 | #include "hello.c" 9 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/c/mprotect2.c: -------------------------------------------------------------------------------- 1 | /* As the included file, but specifying silent ENOSYS. 2 | #notarget: cris*-*-elf 3 | #sim: --cris-unknown-syscall=enosys-quiet 4 | #output: ENOSYS\n 5 | #output: xyzzy\n 6 | */ 7 | 8 | #include "mprotect1.c" 9 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/c/sigreturn3.c: -------------------------------------------------------------------------------- 1 | /* As the included file, but specifying silent ENOSYS. 2 | #notarget: cris*-*-elf 3 | #sim: --cris-unknown-syscall=enosys-quiet 4 | #output: ENOSYS\n 5 | #output: xyzzy\n 6 | */ 7 | 8 | #include "sigreturn1.c" 9 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/compact/nop.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for nop 2 | # mach: all 3 | # as: -isa=shcompact 4 | # ld: -m shelf32 5 | 6 | .include "compact/testutils.inc" 7 | 8 | start 9 | 10 | .global nop 11 | nop: 12 | nop 13 | pass 14 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/alloco.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for alloco $rm, $disp6x32 -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | alloco r0, 32 10 | pass 11 | -------------------------------------------------------------------------------- /gdb/doc/configure.ac: -------------------------------------------------------------------------------- 1 | AC_PREREQ(2.59) 2 | AC_INIT(refcard.tex) 3 | sinclude(../../config/acx.m4) 4 | AC_PROG_INSTALL 5 | AC_PROG_LN_S 6 | 7 | ACX_PKGVERSION([GDB]) 8 | ACX_BUGURL([http://www.gnu.org/software/gdb/bugs/]) 9 | AC_OUTPUT(Makefile) 10 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.ada/complete/pck.adb: -------------------------------------------------------------------------------- 1 | package body Pck is 2 | 3 | procedure Proc (I : Integer) is 4 | Not_In_Scope : Integer := 77; 5 | begin 6 | Inner.Inside_Variable := Not_In_Scope + I; 7 | end Proc; 8 | 9 | end Pck; 10 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.threads/tls-main.c: -------------------------------------------------------------------------------- 1 | __thread int i_tls = 2; 2 | int main () 3 | { 4 | int result; 5 | result = foo (); /* Call to foo should return 2, not 1. */ 6 | result ++; 7 | return 0; /* break here to check result */ 8 | } 9 | 10 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/mla.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for mla$cond${set-cc?} ${mul-rd},$rm,$rs,${mul-rn} 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global mla 9 | mla: 10 | mla00 pc,pc,pc,pc 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/smlal.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for smlal$cond${set-cc?} $rdlo,$rdhi,$rm,$rs 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global smlal 9 | smlal: 10 | smlal00 pc,pc,pc,pc 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/smull.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for smull$cond${set-cc?} $rdlo,$rdhi,$rm,$rs 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global smull 9 | smull: 10 | smull00 pc,pc,pc,pc 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/ldr-sprel.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for ldr ${bit10-rd},[sp,#$word8] 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global ldr_sprel 9 | ldr_sprel: 10 | ldr r0,[sp,#0] 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/ldrh-imm.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for ldrh $rd,[$rb,#${offset5-6}] 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global ldrh_imm 9 | ldrh_imm: 10 | ldrh r0,[r0,#0] 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/str-sprel.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for str ${bit10-rd},[sp,#$word8] 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global str_sprel 9 | str_sprel: 10 | str r0,[sp,#0] 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/strh-imm.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for strh $rd,[$rb,#${offset5-6}] 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global strh_imm 9 | strh_imm: 10 | strh r0,[r0,#0] 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/umlal.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for umlal$cond${set-cc?} $rdlo,$rdhi,$rm,$rs 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global umlal 9 | umlal: 10 | umlal00 pc,pc,pc,pc 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/umull.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for umull$cond${set-cc?} $rdlo,$rdhi,$rm,$rs 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global umull 9 | umull: 10 | umull00 pc,pc,pc,pc 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/c/rtsigsuspend2.c: -------------------------------------------------------------------------------- 1 | /* As the included file, but specifying silent ENOSYS. 2 | #notarget: cris*-*-elf 3 | #sim: --cris-unknown-syscall=enosys-quiet 4 | #output: ENOSYS\n 5 | #output: xyzzy\n 6 | */ 7 | 8 | #include "rtsigsuspend1.c" 9 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/ldi8.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for ldi $dr,#$simm8 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global ldi8 9 | ldi8: 10 | ldi r4, #0x78 11 | 12 | test_h_gr r4, 0x78 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/compact/frchg.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for frchg 2 | # mach: all 3 | # as: -isa=shcompact 4 | # ld: -m shelf32 5 | 6 | .include "compact/testutils.inc" 7 | 8 | start 9 | frchg 10 | frchg 11 | frchg 12 | frchg 13 | pass 14 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/compact/fschg.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for fschg 2 | # mach: all 3 | # as: -isa=shcompact 4 | # ld: -m shelf32 5 | 6 | .include "compact/testutils.inc" 7 | 8 | start 9 | fschg 10 | fschg 11 | fschg 12 | fschg 13 | pass 14 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/getcfg.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for getcfg $rm, $disp6, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | getcfg r0, 0, r0 10 | pass 11 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/putcfg.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for putcfg $rm, $disp6, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | putcfg r0, 0, r0 10 | pass 11 | -------------------------------------------------------------------------------- /gdb/config/powerpc/spu-linux.mh: -------------------------------------------------------------------------------- 1 | # Target: Cell BE (PowerPC64 + SPU) 2 | 3 | # This implements a 'pseudo-native' GDB running on the 4 | # PPU side of the Cell BE and debugging the SPU side. 5 | 6 | NATDEPFILES = spu-linux-nat.o fork-child.o inf-ptrace.o 7 | 8 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.dwarf2/dw4-sig-types-b.cc: -------------------------------------------------------------------------------- 1 | 2 | #include "dw4-sig-types.h" 3 | 4 | extern myns::bar_type myset; 5 | 6 | static myns::bar_type * 7 | bar () 8 | { 9 | return &myset; 10 | } 11 | 12 | void 13 | foo () 14 | { 15 | bar (); 16 | } 17 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.hp/gdb.base-hp/hwwatchbus.c: -------------------------------------------------------------------------------- 1 | /* This program raises a SIGBUS signal on HP-UX when the 2 | pointer "bogus_p" is dereferenced. 3 | */ 4 | int * bogus_p = (int *)3; 5 | 6 | int main() 7 | { 8 | *bogus_p = 0xdeadbeef; 9 | } 10 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.hp/gdb.objdbg/tools/symaddr: -------------------------------------------------------------------------------- 1 | #!/bin/ksh 2 | 3 | # Get the address of a symbol in Hex. 4 | # $1 = object/executable file name 5 | # $2 = symbol name 6 | ${srcdir}/gdb.hp/tools/odump -sym "$1" | grep "$2"$ | awk '{print $1}' 7 | 8 | exit 0 9 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.multi/crashme.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int 5 | main (int argc, char **argv) 6 | { 7 | int *foo = NULL; 8 | 9 | printf ("Oh no, a bug!\n"); /* set breakpoint here */ 10 | 11 | return *foo; 12 | } 13 | -------------------------------------------------------------------------------- /libdecnumber/decPackedSymbols.h: -------------------------------------------------------------------------------- 1 | #if !defined(DECPACKEDSYMBOLS) 2 | #define DECPACKEDSYMBOLS 3 | 4 | #ifdef IN_LIBGCC2 5 | #define decPackedFromNumber __decPackedFromNumber 6 | #define decPackedToNumber __decPackedToNumber 7 | #endif 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/uread16.ms: -------------------------------------------------------------------------------- 1 | # mach: cr16 2 | 3 | .include "testutils.inc" 4 | 5 | start 6 | 7 | .global read16 8 | read16: 9 | loadw foo,r1 10 | cmpw $42, r1 11 | beq ok 12 | fail 13 | ok: 14 | pass 15 | 16 | foo: 17 | .word 42 18 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/moverpcd.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv3 crisv8 crisv10 2 | # output: 4\n 3 | 4 | # Test that move.d pc,R works. 5 | 6 | .include "testutils.inc" 7 | start 8 | x: 9 | move.d pc,r3 10 | y: 11 | sub.d y-4,r3 12 | dumpr3 13 | quit 14 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/msteppc1.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv3 crisv8 crisv10 2 | # xerror: 3 | # output: General register read of PC is not implemented.\n 4 | # output: program stopped with signal 5.\n 5 | 6 | .include "testutils.inc" 7 | start 8 | mstep pc,r2 9 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/msteppc2.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv3 crisv8 crisv10 2 | # xerror: 3 | # output: General register read of PC is not implemented.\n 4 | # output: program stopped with signal 5.\n 5 | 6 | .include "testutils.inc" 7 | start 8 | mstep r2,pc 9 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/msteppc3.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv3 crisv8 crisv10 2 | # xerror: 3 | # output: General register read of PC is not implemented.\n 4 | # output: program stopped with signal 5.\n 5 | 6 | .include "testutils.inc" 7 | start 8 | mstep pc,pc 9 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/hw/rv-n-cris/std.dev: -------------------------------------------------------------------------------- 1 | /rv/reg 0xd0000000 64 2 | /rv/remote-reg 0xa8800 3 | /rv/intnum 4 2 4 | /cris/vec-for-int 4 0x33 8 0x34 0xaa 0xea 5 | /rv/mem 0x20000 0x400 6 | /rv/remote-mem 0xe000 7 | /rv/mbox 0xc000f000 8 | /rv > int int /cris 9 | -------------------------------------------------------------------------------- /sim/testsuite/sim/v850/testutils.cgs: -------------------------------------------------------------------------------- 1 | # v850 test framework 2 | # mach: all 3 | 4 | .include "testutils.inc" 5 | 6 | # This just makes sure that a passing test will pass. 7 | 8 | seti 0x12345678, r1 9 | 10 | reg r1, 0x12345678 11 | 12 | pass 13 | -------------------------------------------------------------------------------- /config/mt-mep: -------------------------------------------------------------------------------- 1 | 2 | EXTRA_TARGET_HOST_ALL_MODULES:=$(EXTRA_TARGET_HOST_ALL_MODULES) all-utils 3 | EXTRA_TARGET_HOST_INSTALL_MODULES:=$(EXTRA_TARGET_HOST_INSTALL_MODULES) install-utils 4 | 5 | all-utils : all-libiberty 6 | 7 | install-utils : all-libiberty 8 | 9 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.hp/gdb.objdbg/objdbg01/x2.cc: -------------------------------------------------------------------------------- 1 | #include "x3.h" 2 | #include 3 | 4 | int acomm; 5 | 6 | void PP::print() 7 | { 8 | printf("In PP::print()\n"); 9 | } 10 | 11 | void QQ::print() 12 | { 13 | printf("In QQ::print()\n"); 14 | } 15 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.hp/gdb.objdbg/tools/symaddr.pa64: -------------------------------------------------------------------------------- 1 | #!/bin/ksh 2 | 3 | # Get the address of a symbol in Hex. 4 | # $1 = object/executable file name 5 | # $2 = symbol name 6 | /usr/ccs/bin/elfdump -t +s .symtab "$1" | grep "$2"$ | awk '{print $6}' 7 | 8 | exit 0 9 | -------------------------------------------------------------------------------- /sim/mn10300/mn10300.dc: -------------------------------------------------------------------------------- 1 | switch : 7 : 0 : : : : 0 : : 2 | switch : 7 : 0 : : : : 1 : : 3 | switch : 7 : 0 : : : : 2 : : 4 | switch : 7 : 0 : : : : 3 : : 5 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/lsl.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for lsl $rd,$rs,#$offset5 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global lsl 9 | lsl: 10 | lsl r0,r0,#0 11 | 12 | # FIXME: Also lsl $rd,$rs 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/lsr.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for lsr $rd,$rs,#$offset5 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global lsr 9 | lsr: 10 | lsr r0,r0,#0 11 | 12 | # FIXME: Also lsr $rd,$rs 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/lshb_i.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for lshb_i $uimm5, reg 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global lshb_i 9 | lshb_i: 10 | movb $6,r4 11 | lshb $1, r4 12 | test_h_gr r4, 12 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/c/clone2.c: -------------------------------------------------------------------------------- 1 | /* Make sure the thread system trivially works with trace output. 2 | #notarget: cris*-*-elf 3 | #sim: --cris-trace=basic --trace-file=@exedir@/clone2.tmp 4 | #output: got: a\nthen: bc\nexit: 0\n 5 | */ 6 | #include "clone1.c" 7 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/ldi16.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for ldi $dr,$slo16 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global ldi16 9 | ldi16: 10 | ldi r4, #0x1234 11 | 12 | test_h_gr r4, 0x1234 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/compact/sets.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for sets -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shcompact 4 | # ld: -m shelf32 5 | 6 | .include "compact/testutils.inc" 7 | 8 | start 9 | 10 | .global sets 11 | sets: 12 | sets 13 | pass 14 | -------------------------------------------------------------------------------- /libiberty/msdos.c: -------------------------------------------------------------------------------- 1 | char msg[] = "No vfork available - aborting\n"; 2 | vfork() 3 | { 4 | write(1, msg, sizeof(msg)); 5 | } 6 | 7 | sigsetmask() 8 | { 9 | /* no signals support in go32 (yet) */ 10 | } 11 | 12 | waitpid() 13 | { 14 | return -1; 15 | } 16 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/asr.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for asr $rd,$rs 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global alu_asr 9 | alu_asr: 10 | asr r0,r0 11 | 12 | # FIXME: Also asr $rd,$rs,#$offset5 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/arm/thumb/cmp.cgs: -------------------------------------------------------------------------------- 1 | # arm testcase for cmp ${bit10-rd},#$offset8 2 | # mach: unfinished 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global cmp 9 | cmp: 10 | cmp r0,#0 11 | 12 | # FIXME: Also: cmp $rd,$rs 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/movempc.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv3 crisv8 crisv10 2 | # xerror: 3 | # output: General register write to PC is not implemented.\nprogram stopped with signal 5.\n 4 | 5 | .include "testutils.inc" 6 | start 7 | move.d _start,r12 8 | move.d [r12],pc 9 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/movsmpc.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv3 crisv8 crisv10 2 | # xerror: 3 | # output: General register write to PC is not implemented.\nprogram stopped with signal 5.\n 4 | 5 | .include "testutils.inc" 6 | start 7 | move.d _start,r12 8 | movs.w [r12],pc 9 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/movumpc.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv3 crisv8 crisv10 2 | # xerror: 3 | # output: General register write to PC is not implemented.\nprogram stopped with signal 5.\n 4 | 5 | .include "testutils.inc" 6 | start 7 | move.d _start,r1 8 | movu.b [r1+],pc 9 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/ld24.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for ld24 $dr,#$uimm24 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global ld24 9 | ld24: 10 | ld24 r4, #0x123456 11 | 12 | test_h_gr r4, 0x123456 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/compact/fsts.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for fsts fpul, $frn -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shcompact 4 | # ld: -m shelf32 5 | 6 | .include "compact/testutils.inc" 7 | 8 | start 9 | fsts fpul, fr0 10 | fsts fpul, fr1 11 | pass 12 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/compact/shlr2.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for shlr2 $rn 2 | # mach: all 3 | # as: -isa=shcompact 4 | # ld: -m shelf32 5 | 6 | .include "compact/testutils.inc" 7 | 8 | start 9 | 10 | .global shrl2 11 | shrl2: 12 | shlr2 r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/compact/shlr8.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for shlr8 $rn 2 | # mach: all 3 | # as: -isa=shcompact 4 | # ld: -m shelf32 5 | 6 | .include "compact/testutils.inc" 7 | 8 | start 9 | 10 | .global shrl8 11 | shrl8: 12 | shlr8 r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /gdb/config/i386/go32.mh: -------------------------------------------------------------------------------- 1 | # Host: Intel x86 running DJGPP 2 | 3 | # We include several header files from config/djgpp 4 | MH_CFLAGS= -I$(srcdir)/config/djgpp 5 | 6 | NATDEPFILES= go32-nat.o i386-nat.o 7 | 8 | HOST_IPC= 9 | CC= gcc 10 | XM_CLIBS= -ldbg 11 | 12 | 13 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.base/args.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int 4 | main (int argc, char **argv) 5 | { 6 | int i = 0; 7 | printf ("%d\n", argc); 8 | while (i < argc) 9 | printf ("%s\n", argv[i++]); 10 | 11 | return 0; /* set breakpoint here */ 12 | } 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/lshw_i.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for lshb_i $uimm4, reg 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global lshb_i 9 | lshb_i: 10 | movw $0x1234,r4 11 | lshw $8, r4 12 | test_h_gr r4, 0x3400 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/io1.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv32 2 | # sim: --cris-900000xx --memory-region 0x90000000,0x10 3 | # xerror: 4 | # output: Seeing --cris-900000xx with memory defined there\n 5 | 6 | ; Check that I/O region overlap is detected. 7 | 8 | .include "nopv32t.ms" 9 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/movsrpc.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv3 crisv8 crisv10 2 | # xerror: 3 | # output: General register write to PC is not implemented.\nprogram stopped with signal 5.\n 4 | 5 | .include "testutils.inc" 6 | start 7 | setf 8 | movs.w r0,pc 9 | quit 10 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/movurpc.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv3 crisv8 crisv10 2 | # xerror: 3 | # output: General register write to PC is not implemented.\nprogram stopped with signal 5.\n 4 | 5 | .include "testutils.inc" 6 | start 7 | setf 8 | movu.b r3,pc 9 | quit 10 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/slli.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for slli $dr,#$uimm5 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global slli 9 | slli: 10 | mvi_h_gr r4, 6 11 | slli r4, #1 12 | test_h_gr r4, 12 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh/pass.s: -------------------------------------------------------------------------------- 1 | # sh testcase, pass 2 | # mach: all 3 | # as(sh): -defsym sim_cpu=0 4 | # as(shdsp): -defsym sim_cpu=1 -dsp 5 | 6 | .include "testutils.inc" 7 | 8 | start 9 | set_grs_a5a5 10 | test_grs_a5a5 11 | pass 12 | 13 | exit 0 14 | 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/compact/clrmac.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for clrmac -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shcompact 4 | # ld: -m shelf32 5 | 6 | .include "compact/testutils.inc" 7 | 8 | start 9 | 10 | .global clrmac 11 | clrmac: 12 | clrmac 13 | pass 14 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/compact/shlr16.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for shlr16 $rn 2 | # mach: all 3 | # as: -isa=shcompact 4 | # ld: -m shelf32 5 | 6 | .include "compact/testutils.inc" 7 | 8 | start 9 | 10 | .global shrl16 11 | shrl16: 12 | shlr16 r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/brk.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for brk -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | # brk will cause the sim to trap, so avoid it. 10 | pass 11 | brk 12 | -------------------------------------------------------------------------------- /sim/testsuite/d10v-elf/t-ae-ld-d.s: -------------------------------------------------------------------------------- 1 | .include "t-macros.i" 2 | 3 | start 4 | 5 | PSW_BITS = 0 6 | point_dmap_at_imem 7 | check_interrupt (VEC_AE&DMAP_MASK)+DMAP_BASE PSW_BITS test_ld 8 | 9 | ld r8,@0x4000 10 | test_ld: 11 | ld r8,@0x4001 12 | nop 13 | exit47 14 | -------------------------------------------------------------------------------- /sim/testsuite/d10v-elf/t-ae-st-d.s: -------------------------------------------------------------------------------- 1 | .include "t-macros.i" 2 | 3 | start 4 | 5 | PSW_BITS = 0 6 | point_dmap_at_imem 7 | check_interrupt (VEC_AE&DMAP_MASK)+DMAP_BASE PSW_BITS test_st 8 | 9 | st r8,@0x4000 10 | test_st: 11 | st r8,@0x4001 12 | nop 13 | exit47 14 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/addw.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for addw $sr,$dr 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global addw 9 | addw: 10 | 11 | movw $0x1234,r4 12 | addw $0x1234,r4 13 | 14 | test_h_gr r4, 0x2468 15 | 16 | pass 17 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/andb.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for and $sr,$dr 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global and 9 | and: 10 | movb $3, r4 11 | movb $6, r5 12 | 13 | andb r4,r5 14 | 15 | test_h_gr r5, 2 16 | 17 | pass 18 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/andw.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for and $sr,$dr 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global and 9 | and: 10 | movw $3, r4 11 | movw $6, r5 12 | 13 | andw r4, r5 14 | 15 | test_h_gr r5, 2 16 | 17 | pass 18 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/beq0w.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for beq disp16 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global beq 9 | beq: 10 | mvi_h_condbit 0 11 | movw $0, r4 12 | beq0b r4, 0x1a 13 | not_ok: 14 | fail 15 | ok: 16 | pass 17 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/lshb.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for lshb count, reg 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global lshb 9 | lshb: 10 | movb $6, r4 11 | movb $1, r5 12 | lshb r5, r4 13 | test_h_gr r4, 12 14 | 15 | pass 16 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/movw.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for movw $imm16, reg 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global movw 9 | movw: 10 | movw $0x1234, r4 11 | 12 | movw r4, r5 13 | 14 | test_h_gr r5, 0x1234 15 | 16 | pass 17 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/orb.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for orb $imm, reg 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global orb 9 | orb: 10 | movb $3, r4 11 | movb $6, r5 12 | 13 | orb r4,r5 14 | 15 | test_h_gr r5, 7 16 | 17 | pass 18 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/orw.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for orw reg, reg 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global orw 9 | orw: 10 | movw $3, r4 11 | movw $6, r5 12 | 13 | orw r4, r5 14 | 15 | test_h_gr r5, 7 16 | 17 | pass 18 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/xorb.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for xor $dr,$sr 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global xor 9 | xor: 10 | movb $3, r4 11 | movb $6, r5 12 | 13 | xorb r4,r5 14 | 15 | test_h_gr r5, 5 16 | 17 | pass 18 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/xorw.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for xor $dr,$sr 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global xor 9 | xor: 10 | movw $3, r4 11 | movw $6, r5 12 | 13 | xorw r4, r5 14 | 15 | test_h_gr r5, 5 16 | 17 | pass 18 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/movepcb.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv3 crisv8 crisv10 2 | # xerror: 3 | # output: General register read of PC is not implemented.\nprogram stopped with signal 5.\n 4 | 5 | .include "testutils.inc" 6 | startnostack 7 | setf 8 | test.b pc 9 | quit 10 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/movepcw.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv3 crisv8 crisv10 2 | # xerror: 3 | # output: General register read of PC is not implemented.\nprogram stopped with signal 5.\n 4 | 5 | .include "testutils.inc" 6 | startnostack 7 | setf 8 | test.w pc 9 | quit 10 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/add3.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for add3 $dr,$sr,#$slo16 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global add3 9 | add3: 10 | 11 | mvi_h_gr r5, 1 12 | add3 r4, r5, 2 13 | test_h_gr r4, 3 14 | 15 | pass 16 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/addi.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for addi $dr,#$simm8 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global addi 9 | addi: 10 | 11 | mvi_h_gr r5, 1 12 | addi r5, 2 13 | test_h_gr r5, 3 14 | 15 | pass 16 | 17 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/srli.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for srli $dr,#$uimm5 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global srli 9 | srli: 10 | mvi_h_gr r5, 6 11 | srli r5, #1 12 | test_h_gr r5, 3 13 | 14 | 15 | pass 16 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/compact/fcnvds.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for fcnvds -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shcompact 4 | # ld: -m shelf32 5 | 6 | .include "compact/testutils.inc" 7 | 8 | start 9 | _setpr 10 | fcnvds dr0, fpul 11 | _clrpr 12 | okay: 13 | pass 14 | -------------------------------------------------------------------------------- /config/mh-pa: -------------------------------------------------------------------------------- 1 | # The ada virtual array implementation requires that indexing be disabled on 2 | # hosts such as hpux that use a segmented memory architecture. Both the c 3 | # and ada files need to be compiled with this option for correct operation. 4 | ADA_CFLAGS = -mdisable-indexing 5 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.base/langs1.f: -------------------------------------------------------------------------------- 1 | c I am not sure whether there is a way to have a fortran program without 2 | c a MAIN, but it does not really harm us to have one. 3 | end 4 | subroutine fsub 5 | integer*4 cppsub 6 | return (cppsub (10000)) 7 | end 8 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.cp/pr-1210.cc: -------------------------------------------------------------------------------- 1 | class A 2 | { 3 | }; 4 | 5 | class B : virtual public A 6 | { 7 | }; 8 | 9 | class C : public A 10 | { 11 | protected: 12 | B myB; 13 | }; 14 | 15 | int main() 16 | { 17 | C *obj = new C(); 18 | return 0; 19 | } 20 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/lshw.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for lshw reg, reg 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global lshw 9 | lshw: 10 | movw $0x1234, r4 11 | movw $8, r5 12 | lshw r5, r4 13 | test_h_gr r4, 0x3400 14 | 15 | pass 16 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/movb.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for movb $imm, reg 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global movb 9 | movb: 10 | movb $1, r4 11 | movb $0, r5 12 | 13 | movb r4, r5 14 | 15 | test_h_gr r5, 1 16 | 17 | pass 18 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/uread32.ms: -------------------------------------------------------------------------------- 1 | # mach: cr16 2 | 3 | .include "testutils.inc" 4 | 5 | start 6 | 7 | .global read32 8 | read32: 9 | loadd foo, (r1,r0) 10 | cmpd $0x12345678, (r1,r0) 11 | beq ok 12 | fail 13 | ok: 14 | pass 15 | 16 | foo: 17 | .long 0x12345678 18 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/moveqpc.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv3 crisv8 crisv10 2 | # xerror: 3 | # output: General register write to PC is not implemented.\nprogram stopped with signal 5.\n 4 | 5 | .include "testutils.inc" 6 | startnostack 7 | setf 8 | moveq -30,pc 9 | quit 10 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/moverbpc.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv3 crisv8 crisv10 2 | # xerror: 3 | # output: General register write to PC is not implemented.\nprogram stopped with signal 5.\n 4 | 5 | .include "testutils.inc" 6 | startnostack 7 | setf 8 | move.d r5,pc 9 | quit 10 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/moverdpc.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv3 crisv8 crisv10 2 | # xerror: 3 | # output: General register write to PC is not implemented.\nprogram stopped with signal 5.\n 4 | 5 | .include "testutils.inc" 6 | startnostack 7 | setf 8 | move.d r5,pc 9 | quit 10 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/moverpcb.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv3 crisv8 crisv10 2 | # xerror: 3 | # output: General register read of PC is not implemented.\nprogram stopped with signal 5.\n 4 | 5 | .include "testutils.inc" 6 | startnostack 7 | setf 8 | move.b pc,r5 9 | quit 10 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/moverpcw.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv3 crisv8 crisv10 2 | # xerror: 3 | # output: General register read of PC is not implemented.\nprogram stopped with signal 5.\n 4 | 5 | .include "testutils.inc" 6 | startnostack 7 | setf 8 | move.w pc,r2 9 | quit 10 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/moverwpc.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv3 crisv8 crisv10 2 | # xerror: 3 | # output: General register write to PC is not implemented.\nprogram stopped with signal 5.\n 4 | 5 | .include "testutils.inc" 6 | startnostack 7 | setf 8 | move.d r5,pc 9 | quit 10 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/movucpc.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv3 crisv8 crisv10 2 | # xerror: 3 | # output: General register write to PC is not implemented.\nprogram stopped with signal 5.\n 4 | 5 | .include "testutils.inc" 6 | start 7 | movu.w 0x4321,pc 8 | dumpr3 9 | 10 | quit 11 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/add.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for add $dr,$sr 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global add 9 | add: 10 | 11 | mvi_h_gr r4, 1 12 | mvi_h_gr r5, 2 13 | add r4, r5 14 | test_h_gr r4, 3 15 | 16 | pass 17 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/mv.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for mv $dr,$sr 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global mv 9 | mv: 10 | mvi_h_gr r4, 1 11 | mvi_h_gr r5, 0 12 | 13 | mv r5, r4 14 | 15 | test_h_gr r5, 1 16 | 17 | pass 18 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/or.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for or $dr,$sr 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global or 9 | or: 10 | mvi_h_gr r4, 3 11 | mvi_h_gr r5, 6 12 | 13 | or r4, r5 14 | 15 | test_h_gr r4, 7 16 | 17 | pass 18 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/trapa.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for trapa $rm -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | # This performs a trap to emit "pass". 10 | movi 253, r0 11 | trapa r0 12 | -------------------------------------------------------------------------------- /gdb/config/mips/linux.mh: -------------------------------------------------------------------------------- 1 | # Host: Linux/MIPS 2 | NAT_FILE= config/nm-linux.h 3 | NATDEPFILES= inf-ptrace.o fork-child.o mips-linux-nat.o \ 4 | linux-thread-db.o proc-service.o \ 5 | linux-nat.o linux-fork.o 6 | NAT_CDEPS = $(srcdir)/proc-service.list 7 | 8 | LOADLIBES = -ldl $(RDYNAMIC) 9 | -------------------------------------------------------------------------------- /gdb/config/s390/s390.mh: -------------------------------------------------------------------------------- 1 | # Host: S390, running Linux 2 | NAT_FILE= config/nm-linux.h 3 | NATDEPFILES= inf-ptrace.o fork-child.o corelow.o s390-nat.o \ 4 | linux-thread-db.o proc-service.o linux-nat.o linux-fork.o 5 | NAT_CDEPS = $(srcdir)/proc-service.list 6 | LOADLIBES = -ldl $(RDYNAMIC) 7 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.hp/gdb.objdbg/objdbg02/x2.cc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | struct foo_type { 4 | int t1; 5 | int t2; 6 | }; 7 | 8 | static void foo2() 9 | { 10 | printf("In foo2.\n"); 11 | } 12 | 13 | void foo1() 14 | { 15 | printf("In foo1.\n"); 16 | foo2(); 17 | } 18 | -------------------------------------------------------------------------------- /sim/m32c/timer_a.h: -------------------------------------------------------------------------------- 1 | typedef struct 2 | { 3 | int count; 4 | int reload; 5 | int prescale; 6 | int tcspr; 7 | unsigned char bsr; 8 | unsigned char mode; 9 | unsigned char ic; 10 | } Timer_A; 11 | 12 | extern Timer_A timer_a; 13 | 14 | extern void update_timer_a (); 15 | -------------------------------------------------------------------------------- /sim/testsuite/d10v-elf/t-ae-ld2w-d.s: -------------------------------------------------------------------------------- 1 | .include "t-macros.i" 2 | 3 | start 4 | 5 | PSW_BITS = 0 6 | point_dmap_at_imem 7 | check_interrupt (VEC_AE&DMAP_MASK)+DMAP_BASE PSW_BITS test_ld2w 8 | 9 | ld2w r8,@0x4000 10 | test_ld2w: 11 | ld2w r8,@0x4001 12 | nop 13 | exit47 14 | -------------------------------------------------------------------------------- /sim/testsuite/d10v-elf/t-ae-st2w-d.s: -------------------------------------------------------------------------------- 1 | .include "t-macros.i" 2 | 3 | start 4 | 5 | PSW_BITS = 0 6 | point_dmap_at_imem 7 | check_interrupt (VEC_AE&DMAP_MASK)+DMAP_BASE PSW_BITS test_st2w 8 | 9 | st2w r8,@0x4000 10 | test_st2w: 11 | st2w r8,@0x4001 12 | nop 13 | exit47 14 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/addb.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for addb $sr, reg 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global add 9 | add: 10 | 11 | movb $0x1234,r4 12 | movb $0x1234,r5 13 | addb r4, r5 14 | test_h_gr r5, 0x68 15 | 16 | pass 17 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/bne0w.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for bne0w reg disp5 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global bne0w 9 | bne0w: 10 | mvi_h_condbit 0 11 | movw $1, r4 12 | bne0w r4, 0x1a 13 | not_ok: 14 | fail 15 | ok: 16 | pass 17 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/subb.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for subb $sr,$dr 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global subb 9 | subb: 10 | 11 | movb $7, r4 12 | movb $3, r5 13 | 14 | subb r5, r4 15 | 16 | test_h_gr r4, 4 17 | 18 | pass 19 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/c/readlink11.c: -------------------------------------------------------------------------------- 1 | /* As readlink5.c (sic), but specifying silent ENOSYS. 2 | #notarget: cris*-*-elf 3 | #dest: ./readlink11.c.x 4 | #sim: --cris-unknown-syscall=enosys-quiet 5 | #output: ENOSYS\n 6 | #output: xyzzy\n 7 | */ 8 | 9 | #include "readlink2.c" 10 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/c/sched6.c: -------------------------------------------------------------------------------- 1 | /* 2 | #notarget: cris*-*-elf 3 | */ 4 | 5 | #include 6 | #include 7 | #include 8 | 9 | int main (void) 10 | { 11 | if (sched_yield () != 0) 12 | abort (); 13 | printf ("pass\n"); 14 | exit (0); 15 | } 16 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/and.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for and $dr,$sr 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global and 9 | and: 10 | mvi_h_gr r4, 3 11 | mvi_h_gr r5, 6 12 | 13 | and r4, r5 14 | 15 | test_h_gr r4, 2 16 | 17 | pass 18 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/sll.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for sll $dr,$sr 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global sll 9 | sll: 10 | mvi_h_gr r4, 6 11 | mvi_h_gr r5, 1 12 | sll r4, r5 13 | test_h_gr r4, 12 14 | 15 | pass 16 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/srai.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for srai $dr,#$uimm5 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global srai 9 | srai: 10 | mvi_h_gr r5, 0xf0f0f0ff 11 | srai r5, #4 12 | test_h_gr r5, 0xff0f0f0f 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/srl.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for srl $dr,$sr 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global srl 9 | srl: 10 | mvi_h_gr r4, 6 11 | mvi_h_gr r5, 1 12 | srl r4, r5 13 | test_h_gr r4, 3 14 | 15 | pass 16 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/fgetscr.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for fgetscr $frf -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global fgetscr 11 | fgetscr: 12 | fgetscr fr0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/fputscr.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for fputscr $frgh -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global fputscr 11 | fputscr: 12 | fputscr fr0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/mcmv.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for mcmv $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global mcmv 11 | mcmv: 12 | mcmv r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.base/shr2.c: -------------------------------------------------------------------------------- 1 | #ifdef PROTOTYPES 2 | int shr2(int x) 3 | #else 4 | int shr2(x) int x; 5 | #endif 6 | { 7 | return 2*x; 8 | } 9 | 10 | #ifdef PROTOTYPES 11 | int shr2_local(int x) 12 | #else 13 | int shr2_local(x) int x; 14 | #endif 15 | { 16 | return 2*x; 17 | } 18 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.cp/nsimport.cc: -------------------------------------------------------------------------------- 1 | namespace A { 2 | int x = 11; 3 | namespace{ 4 | int xx = 22; 5 | } 6 | } 7 | 8 | using namespace A; 9 | 10 | namespace{ 11 | int xxx = 33; 12 | }; 13 | 14 | int main() 15 | { 16 | x; 17 | xx; 18 | xxx; 19 | return 0; 20 | } 21 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.hp/gdb.objdbg/objdbg04/x1.cc: -------------------------------------------------------------------------------- 1 | #include 2 | #include "x.h" 3 | 4 | template class Adder; 5 | 6 | int main() 7 | { 8 | Adder add; 9 | 10 | add.set(3); 11 | add.add(3); 12 | printf("In main: %d\n", add.get()); 13 | 14 | return 0; 15 | } 16 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/beq0b.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for beq0b reg disp5 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global beq0b 9 | beq0b: 10 | mvi_h_condbit 0 11 | movw $0x1200, r4 12 | beq0b r4, 0x1a 13 | not_ok: 14 | fail 15 | ok: 16 | pass 17 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/bne0b.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for bne0b reg disp5 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global ne0b 9 | bne0b: 10 | mvi_h_condbit 0 11 | movw $0x1201, r4 12 | bne0b r4, 0x1a 13 | not_ok: 14 | fail 15 | ok: 16 | pass 17 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/opterr4.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv3 crisv8 crisv10 crisv32 2 | # xerror: 3 | # output: Invalid option [`']--cris-start-address=x'\n 4 | # sim: --cris-start-address=x 5 | .include "nopv32t.ms" 6 | 7 | ; Check that we recognize wrong usage of the --cris-start-address option. 8 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/c/badldso3.c: -------------------------------------------------------------------------------- 1 | /* 2 | #notarget: cris*-*-elf 3 | #dynamic: 4 | #xerror: 5 | #cc: additional_flags=-Wl,-dynamic-linker,/compilercheck.x 6 | #sim: --sysroot=@exedir@ 7 | #output: *: could not load ELF interpreter `*' for program `*'\n 8 | */ 9 | #include "hello.c" 10 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/c/sigreturn4.c: -------------------------------------------------------------------------------- 1 | /* As the included file, but specifying silent ENOSYS. 2 | #notarget: cris*-*-elf 3 | #cc: additional_flags=-pthread 4 | #sim: --cris-unknown-syscall=enosys-quiet 5 | #output: ENOSYS\n 6 | #output: xyzzy\n 7 | */ 8 | 9 | #include "sigreturn2.c" 10 | -------------------------------------------------------------------------------- /sim/testsuite/sim/frv/call.cgs: -------------------------------------------------------------------------------- 1 | # frv testcase for call $label24 2 | # mach: all 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global call 9 | call: 10 | set_spr_immed 0,lr 11 | call ok1 12 | bad1: 13 | fail 14 | ok1: 15 | test_spr_addr bad1,lr 16 | 17 | pass 18 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/mul.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for mul $dr,$sr 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global mul 9 | mul: 10 | mvi_h_gr r4, 3 11 | mvi_h_gr r5, 7 12 | 13 | mul r5, r4 14 | 15 | test_h_gr r5, 21 16 | 17 | pass 18 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/neg.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for neg $dr,$sr 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global neg 9 | neg: 10 | mvi_h_gr r4, 1 11 | mvi_h_gr r5, 2 12 | 13 | neg r4, r5 14 | 15 | test_h_gr r4, -2 16 | 17 | pass 18 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/xor.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for xor $dr,$sr 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global xor 9 | xor: 10 | 11 | mvi_h_gr r4, 3 12 | mvi_h_gr r5, 6 13 | xor r4, r5 14 | test_h_gr r4, 5 15 | 16 | pass 17 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/compact/pref.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for pref @$rn 2 | # mach: all 3 | # as: -isa=shcompact 4 | # ld: -m shelf32 5 | 6 | .include "compact/testutils.inc" 7 | 8 | start 9 | 10 | .global pref 11 | pref: 12 | pref @r0 13 | pref @r1 14 | pref @r15 15 | pass 16 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/floatld.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for float.ld $frgh, $drf -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | movi 1, r0 10 | fmov.ls r0, fr0 11 | float.ld fr0, dr0 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/floatls.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for float.ls $frgh, $frf -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | movi 1, r0 10 | fmov.ls r0, fr0 11 | float.ls fr0, fr0 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/floatqd.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for float.qd $drgh, $drf -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | movi 1, r0 10 | fmov.qd r0, dr0 11 | float.qd dr0, dr2 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/floatqs.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for float.qs $drgh, $frf -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | movi 1, r0 10 | fmov.qd r0, dr0 11 | float.qs dr0, fr1 12 | pass 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/mmull.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for mmul.l $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global mmull 11 | mmull: 12 | mmul.l r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/mmulw.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for mmul.w $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global mmulw 11 | mmulw: 12 | mmul.w r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/msubl.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for msub.l $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global msubl 11 | msubl: 12 | msub.l r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/msubw.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for msub.w $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global msubw 11 | msubw: 12 | msub.w r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /gdb/gdbserver/acinclude.m4: -------------------------------------------------------------------------------- 1 | dnl gdb/gdbserver/configure.in uses BFD_HAVE_SYS_PROCFS_TYPE. 2 | sinclude(../../bfd/bfd.m4) 3 | 4 | dnl This gets autoconf bugfixes 5 | sinclude(../../config/override.m4) 6 | 7 | dnl For ACX_PKGVERSION and ACX_BUGURL. 8 | sinclude(../../config/acx.m4) 9 | 10 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.hp/gdb.objdbg/objdbg02/x1.cc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern void foo1(); 4 | extern void foo3(); 5 | 6 | struct foo_type; 7 | 8 | int main() 9 | { 10 | struct foo_type *x; 11 | 12 | printf("In main.\n"); 13 | foo1(); 14 | foo3(); 15 | return 0; 16 | } 17 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/lpr-spr.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for lpr reg, preg 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global lpr 9 | lpr: 10 | movw $0x1234,r3 11 | lpr r3, psr 12 | 13 | spr psr,r5 14 | 15 | 16 | test_h_gr r5, 0x1234 17 | 18 | pass 19 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/movxb.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for movb $imm4, reg 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global movb 9 | movb: 10 | movb $0xf, r4 11 | movw $0x1234, r5 12 | 13 | movxb r4, r5 14 | 15 | test_h_gr r5, 0xf 16 | 17 | pass 18 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/opterr5.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv3 crisv8 crisv10 crisv32 2 | # xerror: 3 | # output: Invalid option [`']--cris-program-offset=x'\n 4 | # sim: --cris-program-offset=x 5 | .include "nopv32t.ms" 6 | 7 | ; Check that we recognize wrong usage of the --cris-program-offset option. 8 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/not.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for not $dr,$sr 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global not 9 | not: 10 | mvi_h_gr r4, 1 11 | mvi_h_gr r5, 2 12 | 13 | not r4, r5 14 | 15 | test_h_gr r4, 0xfffffffd 16 | 17 | pass 18 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/rem.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for rem $dr,$sr 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global rem 9 | rem: 10 | mvi_h_gr r4, 12345678 11 | mvi_h_gr r5, 7 12 | 13 | rem r4, r5 14 | 15 | test_h_gr r4, 2 16 | 17 | pass 18 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/sub.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for sub $dr,$sr 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global sub 9 | sub: 10 | 11 | mvi_h_gr r4, 7 12 | mvi_h_gr r5, 3 13 | 14 | sub r4, r5 15 | 16 | test_h_gr r4, 4 17 | 18 | pass 19 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/compact/ocbi.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for ocbi @$rn -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shcompact 4 | # ld: -m shelf32 5 | 6 | .include "compact/testutils.inc" 7 | 8 | start 9 | .global ocbi 10 | ocbi: 11 | ocbi @r0 12 | ocbi @r1 13 | ocbi @r15 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/fstp.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for fst.p $rm, $disp10x8, $fpf -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global fstp 11 | fstp: 12 | fst.p r0, 0, fp0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/fstxp.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for fstx.p $rm, $rn, $fpf -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global fstxp 11 | fstxp: 12 | fstx.p r0, r0, fp0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/ldhil.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for ldhi.l $rm, $disp6, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global ldhil 11 | ldhil: 12 | ldhi.l r0, 0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/ldhiq.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for ldhi.q $rm, $disp6, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global ldhiq 11 | ldhiq: 12 | ldhi.q r0, 0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/ldlol.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for ldlo.l $rm, $disp6, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global ldlol 11 | ldlol: 12 | ldlo.l r0, 0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/ldloq.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for ldlo.q $rm, $disp6, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global ldloq 11 | ldloq: 12 | ldlo.q r0, 0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/maddsl.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for madds.l $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global maddsl 11 | maddsl: 12 | madds.l r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/maddsw.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for madds.w $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global maddsw 11 | maddsw: 12 | madds.w r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/msubsl.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for msubs.l $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global msubsl 11 | msubsl: 12 | msubs.l r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/msubsw.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for msubs.w $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global msubsw 11 | msubsw: 12 | msubs.w r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/stlol.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for stlo.l $rm, $disp6, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global stlol 11 | stlol: 12 | stlo.l r0, 0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/stloq.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for stlo.q $rm, $disp6, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global stloq 11 | stloq: 12 | stlo.q r0, 0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /config/mh-pa-hpux10: -------------------------------------------------------------------------------- 1 | # The ada virtual array implementation requires that indexing be disabled on 2 | # hosts such as hpux that use a segmented memory architecture. Both the c 3 | # and ada files need to be compiled with this option for correct operation. 4 | ADA_CFLAGS = -mdisable-indexing -D_X_HPUX10 5 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.xml/tdesc-unknown.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /readline/doc/version.texi: -------------------------------------------------------------------------------- 1 | @ignore 2 | Copyright (C) 1988-2005 Free Software Foundation, Inc. 3 | @end ignore 4 | 5 | @set EDITION 5.1-beta1 6 | @set VERSION 5.1-beta1 7 | @set UPDATED 11 November 2005 8 | @set UPDATED-MONTH November 2005 9 | 10 | @set LASTCHANGE Fri Nov 11 19:50:51 EST 2005 11 | -------------------------------------------------------------------------------- /sim/testsuite/d10v-elf/t-ae-st-id.s: -------------------------------------------------------------------------------- 1 | .include "t-macros.i" 2 | 3 | start 4 | 5 | PSW_BITS = 0 6 | point_dmap_at_imem 7 | check_interrupt (VEC_AE&DMAP_MASK)+DMAP_BASE PSW_BITS test_st 8 | 9 | ldi r10,#0x4001 10 | st r8, @(1,r10) 11 | test_st: 12 | st r8,@(2,r10) 13 | nop 14 | exit47 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/lshd_i.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for lshb_i $uimm5, regp 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global lshb_i 9 | lshb_i: 10 | movd $0x12345678,(r4,r3) 11 | lshd $16, (r4,r3) 12 | test_h_grp "(r4,r3)", 0x56780000 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/movzb.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for movzb reg, reg 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global movzb 9 | movzb: 10 | movw $0x120f, r4 11 | movw $0x1200, r5 12 | 13 | movzb r4, r5 14 | 15 | test_h_gr r5, 0xf 16 | 17 | pass 18 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/subw.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for subw $sr,$dr 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global subw 9 | subw: 10 | 11 | movw $0x1234, r4 12 | movw $0x1111, r5 13 | 14 | subw r5, r4 15 | 16 | test_h_gr r4, 0x123 17 | 18 | pass 19 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/c/rtsigprocmask2.c: -------------------------------------------------------------------------------- 1 | /* As the included file, but specifying silent ENOSYS. 2 | #notarget: cris*-*-elf 3 | #cc: additional_flags=-pthread 4 | #sim: --cris-unknown-syscall=enosys-quiet 5 | #output: ENOSYS\n 6 | #output: xyzzy\n 7 | */ 8 | 9 | #include "rtsigprocmask1.c" 10 | -------------------------------------------------------------------------------- /sim/testsuite/sim/frv/cop1.cgs: -------------------------------------------------------------------------------- 1 | # frv testcase for cop1 $s6_1,$CPRi,$CPRj,$CPRk 2 | # mach: frv 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global cop1 9 | cop1: 10 | cop1 0,cpr0,cpr15,cpr31 11 | cop1 31,cpr32,cpr45,cpr63 12 | cop1 -32,cpr32,cpr45,cpr63 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/frv/cop2.cgs: -------------------------------------------------------------------------------- 1 | # frv testcase for cop2 $s6_1,$CPRi,$CPRj,$CPRk 2 | # mach: frv 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global cop2 9 | cop2: 10 | cop2 0,cpr0,cpr15,cpr31 11 | cop2 31,cpr32,cpr45,cpr63 12 | cop2 -32,cpr32,cpr45,cpr63 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/div.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for div $dr,$sr 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global div 9 | div: 10 | mvi_h_gr r4, 0x18000 11 | mvi_h_gr r5, 8 12 | 13 | div r4, r5 14 | 15 | test_h_gr r4, 0x3000 16 | 17 | pass 18 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/mvfacmi.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for mvfacmi $dr 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global mvfacmi 9 | mvfacmi: 10 | 11 | mvi_h_accum0 0x12345678, 0x87654321 12 | mvfacmi r4 13 | test_h_gr r4, 0x56788765 14 | 15 | pass 16 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/mvtc.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for mvtc $sr,$dcr 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global mvtc 9 | mvtc: 10 | mvi_h_condbit 0 11 | mvi_h_gr r4, 1 12 | 13 | mvtc r4, cr1 14 | bc ok 15 | 16 | fail 17 | ok: 18 | pass 19 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/or3.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for or3 $dr,$sr,#$ulo16 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global or3 9 | or3: 10 | mvi_h_gr r4, 0 11 | mvi_h_gr r5, 6 12 | 13 | or3 r4, r5, #3 14 | 15 | test_h_gr r4, 7 16 | 17 | pass 18 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/sll3.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for sll3 $dr,$sr,#$simm16 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global sll3 9 | sll3: 10 | mvi_h_gr r4, 1 11 | mvi_h_gr r5, 6 12 | sll3 r4, r5, #1 13 | test_h_gr r4, 12 14 | 15 | pass 16 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/srl3.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for srl3 $dr,$sr,#$simm16 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global srl3 9 | srl3: 10 | mvi_h_gr r4, 0 11 | mvi_h_gr r5, 6 12 | srl3 r4, r5, #1 13 | test_h_gr r4, 3 14 | 15 | pass 16 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/compact/clrs.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for clrs -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shcompact 4 | # ld: -m shelf32 5 | 6 | .include "compact/testutils.inc" 7 | 8 | start 9 | 10 | .global clrs 11 | clrs: 12 | clrs 13 | # Somehow ensure that S is set. 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/compact/clrt.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for clrt -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shcompact 4 | # ld: -m shelf32 5 | 6 | .include "compact/testutils.inc" 7 | 8 | start 9 | 10 | .global clrt 11 | clrt: 12 | clrt 13 | bt wrong 14 | pass 15 | wrong: 16 | fail 17 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/compact/ocbp.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for ocbp @$rn -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shcompact 4 | # ld: -m shelf32 5 | 6 | .include "compact/testutils.inc" 7 | 8 | start 9 | 10 | .global ocbp 11 | ocbp: 12 | ocbp @r0 13 | ocbp @r1 14 | ocbp @r15 15 | pass 16 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/compact/sett.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for sett -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shcompact 4 | # ld: -m shelf32 5 | 6 | .include "compact/testutils.inc" 7 | 8 | start 9 | 10 | .global sett 11 | sett: 12 | sett 13 | bf wrong 14 | pass 15 | wrong: 16 | fail 17 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/maddsub.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for madds.ub $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global maddsub 11 | maddsub: 12 | madds.ub r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/mcmpeqb.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for mcmpeq.b $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global mcmpeqb 11 | mcmpeqb: 12 | mcmpeq.b r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/mcmpeql.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for mcmpeq.l $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global mcmpeql 11 | mcmpeql: 12 | mcmpeq.l r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/mcmpeqw.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for mcmpeq.w $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global mcmpeqw 11 | mcmpeqw: 12 | mcmpeq.w r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/mcmpgtl.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for mcmpgt.l $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global mcmpgtl 11 | mcmpgtl: 12 | mcmpgt.l r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/mcmpgtw.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for mcmpgt.w $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global mcmpgtw 11 | mcmpgtw: 12 | mcmpgt.w r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/mcnvslw.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for mcnvs.lw $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global mcnvslw 11 | mcnvslw: 12 | mcnvs.lw r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/mcnvswb.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for mcnvs.wb $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global mcnvswb 11 | mcnvswb: 12 | mcnvs.wb r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/mmulfxl.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for mmulfx.l $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global mmulfxl 11 | mmulfxl: 12 | mmulfx.l r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/mmulfxw.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for mmulfx.w $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global mmulfxw 11 | mmulfxw: 12 | mmulfx.w r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/msadubq.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for msad.ubq $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global msadubq 11 | msadubq: 12 | msad.ubq r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/mshardl.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for mshard.l $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global mshardl 11 | mshardl: 12 | mshard.l r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/mshardw.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for mshard.w $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global mshardw 11 | mshardw: 12 | mshard.w r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/mshfhib.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for mshfhi.b $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global mshfhib 11 | mshfhib: 12 | mshfhi.b r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/mshfhil.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for mshfhi.l $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global mshfhil 11 | mshfhil: 12 | mshfhi.l r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/mshfhiw.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for mshfhi.w $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global mshfhiw 11 | mshfhiw: 12 | mshfhi.w r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/mshflob.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for mshflo.b $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global mshflob 11 | mshflob: 12 | mshflo.b r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/mshflol.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for mshflo.l $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global mshflol 11 | mshflol: 12 | mshflo.l r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/mshflow.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for mshflo.w $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global mshflow 11 | mshflow: 12 | mshflo.w r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/mshlldl.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for mshlld.l $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global mshlldl 11 | mshlldl: 12 | mshlld.l r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/mshlldw.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for mshlld.w $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global mshlldw 11 | mshlldw: 12 | mshlld.w r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/mshlrdl.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for mshlrd.l $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global mshlrdl 11 | mshlrdl: 12 | mshlrd.l r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/mshlrdw.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for mshlrd.w $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global mshlrdw 11 | mshlrdw: 12 | mshlrd.w r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/msubsub.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for msubs.ub $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global msubsub 11 | msubsub: 12 | msubs.ub r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/shllil.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for shlli.l $rm, $imm6, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global shllil 11 | shllil: 12 | shlli.l r0, 0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/shlril.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for shlri.l $rm, $imm6, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global shlril 11 | shlril: 12 | shlri.l r0, 0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /gdb/config/arm/linux.mh: -------------------------------------------------------------------------------- 1 | # Host: ARM based machine running GNU/Linux 2 | 3 | NAT_FILE= config/nm-linux.h 4 | NATDEPFILES= inf-ptrace.o fork-child.o arm-linux-nat.o \ 5 | proc-service.o linux-thread-db.o linux-nat.o linux-fork.o 6 | NAT_CDEPS = $(srcdir)/proc-service.list 7 | 8 | LOADLIBES= -ldl $(RDYNAMIC) 9 | -------------------------------------------------------------------------------- /sim/testsuite/d10v-elf/t-rie-xx.s: -------------------------------------------------------------------------------- 1 | .include "t-macros.i" 2 | 3 | start 4 | 5 | PSW_BITS = 0 6 | point_dmap_at_imem 7 | check_interrupt (VEC_RIE&DMAP_MASK)+DMAP_BASE PSW_BITS test_rie_xx 8 | 9 | test_rie_xx: 10 | .short 0xe120, 0x0000 ;; Example of RIE code 11 | nop 12 | exit47 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/bcs.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for bcs disp16 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global bcs 9 | bcs: 10 | mvi_h_condbit 0 11 | movw $12, r4 12 | movw $10, r5 13 | subw r4, r5 14 | bcs ok 15 | not_ok: 16 | fail 17 | ok: 18 | pass 19 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/bge.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for beq disp16 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global beq 9 | beq: 10 | mvi_h_condbit 0 11 | movw $2, r4 12 | movw $1, r5 13 | cmpw r4, r5 14 | bgt ok 15 | not_ok: 16 | fail 17 | ok: 18 | pass 19 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/bgt.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for beq disp16 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global beq 9 | beq: 10 | mvi_h_condbit 0 11 | movw $2, r4 12 | movw $1, r5 13 | cmpw r4, r5 14 | bgt ok 15 | not_ok: 16 | fail 17 | ok: 18 | pass 19 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/bhi.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for beq disp16 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global beq 9 | beq: 10 | mvi_h_condbit 0 11 | movw $2, r4 12 | movw $1, r5 13 | cmpw r4, r5 14 | bhi ok 15 | not_ok: 16 | fail 17 | ok: 18 | pass 19 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/bhs.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for bhi disp16 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global bhi 9 | bhi: 10 | mvi_h_condbit 0 11 | movw $2, r4 12 | movw $1, r5 13 | cmpw r4, r5 14 | bhs ok 15 | not_ok: 16 | fail 17 | ok: 18 | pass 19 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/bht.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for beq disp16 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global beq 9 | beq: 10 | mvi_h_condbit 0 11 | movw $1, r4 12 | movw $2, r5 13 | cmpw r4, r5 14 | blt ok 15 | not_ok: 16 | fail 17 | ok: 18 | pass 19 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/blo.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for beq disp16 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global beq 9 | beq: 10 | mvi_h_condbit 0 11 | movw $1, r4 12 | movw $2, r5 13 | cmpw r4, r5 14 | blt ok 15 | not_ok: 16 | fail 17 | ok: 18 | pass 19 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/bls.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for beq disp16 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global beq 9 | beq: 10 | mvi_h_condbit 0 11 | movw $1, r4 12 | movw $2, r5 13 | cmpw r4, r5 14 | bls ok 15 | not_ok: 16 | fail 17 | ok: 18 | pass 19 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/blt.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for beq disp16 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global beq 9 | beq: 10 | mvi_h_condbit 0 11 | movw $1, r4 12 | movw $2, r5 13 | cmpw r4, r5 14 | blt ok 15 | not_ok: 16 | fail 17 | ok: 18 | pass 19 | -------------------------------------------------------------------------------- /sim/testsuite/sim/fr30/nop.cgs: -------------------------------------------------------------------------------- 1 | # fr30 testcase for nop 2 | # mach(): fr30 3 | 4 | .include "testutils.inc" 5 | 6 | START 7 | 8 | .text 9 | .global nop 10 | nop: 11 | ; Test nop 12 | set_cc 0x0f ; Condition codes are irrelevent 13 | nop 14 | test_cc 1 1 1 1 15 | 16 | pass 17 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/and3.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for and3 $dr,$sr,#$uimm16 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global and3 9 | and3: 10 | mvi_h_gr r4, 0 11 | mvi_h_gr r5, 6 12 | 13 | and3 r4, r5, #3 14 | 15 | test_h_gr r4, 2 16 | 17 | pass 18 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/divu.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for divu $dr,$sr 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global divu 9 | divu: 10 | mvi_h_gr r4, 0x18000 11 | mvi_h_gr r5, 8 12 | 13 | divu r4, r5 14 | 15 | test_h_gr r4, 0x3000 16 | 17 | pass 18 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/mullo.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for mullo $src1,$src2 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global mullo 9 | mullo: 10 | 11 | mvi_h_gr r4, 4 12 | mvi_h_gr r5, 5 13 | mullo r4, r5 14 | test_h_accum0 0, 0x140000 15 | 16 | pass 17 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/sra.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for sra $dr,$sr 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global sra 9 | sra: 10 | 11 | mvi_h_gr r4, 0xf0f0f0ff 12 | mvi_h_gr r5, 4 13 | sra r4, r5 14 | test_h_gr r4, 0xff0f0f0f 15 | 16 | pass 17 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/xor3.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for xor3 $dr,$sr,#$uimm16 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global xor3 9 | xor3: 10 | 11 | mvi_h_gr r5, 0 12 | mvi_h_gr r4, 3 13 | xor3 r5, r4, #6 14 | test_h_gr r5, 5 15 | 16 | pass 17 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/compact/ocbwb.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for ocbwb @$rn -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shcompact 4 | # ld: -m shelf32 5 | 6 | .include "compact/testutils.inc" 7 | 8 | start 9 | 10 | .global ocbwb 11 | ocbwb: 12 | ocbwb @r0 13 | ocbwb @r1 14 | ocbwb @r15 15 | pass 16 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/mcmpgtub.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for mcmpgt.ub $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global mcmpgtub 11 | mcmpgtub: 12 | mcmpgt.ub r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/mcnvswub.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for mcnvs.wub $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global mcnvswub 11 | mcnvswub: 12 | mcnvs.wub r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/mmacfxwl.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for mmacfx.wl $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global mmacfxwl 11 | mmacfxwl: 12 | mmacfx.wl r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/mmulhiwl.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for mmulhi.wl $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global mmulhiwl 11 | mmulhiwl: 12 | mmulhi.wl r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/mmullowl.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for mmullo.wl $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global mmullowl 11 | mmullowl: 12 | mmullo.wl r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/mshaldsl.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for mshalds.l $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global mshaldsl 11 | mshaldsl: 12 | mshalds.l r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/mshaldsw.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for mshalds.w $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global mshaldsw 11 | mshaldsw: 12 | mshalds.w r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/mshardsq.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for mshards.q $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global mshardsq 11 | mshardsq: 12 | mshards.q r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /gdb/config/alpha/alpha-osf3.mh: -------------------------------------------------------------------------------- 1 | # Host: Little-endian Alpha running OSF/1-3.x and higher using procfs 2 | NAT_FILE= nm-osf3.h 3 | NATDEPFILES= corelow.o alpha-nat.o fork-child.o \ 4 | solib-osf.o solib.o procfs.o proc-api.o proc-events.o proc-flags.o \ 5 | proc-why.o dec-thread.o 6 | NAT_CLIBS= -lpthreaddebug 7 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.ada/complete/foo.adb: -------------------------------------------------------------------------------- 1 | with Pck; use Pck; 2 | 3 | procedure Foo is 4 | Some_Local_Variable : Integer := 1; 5 | External_Identical_Two : Integer := 74; 6 | begin 7 | My_Global_Variable := Some_Local_Variable + 1; -- START 8 | Proc (External_Identical_Two); 9 | end Foo; 10 | 11 | -------------------------------------------------------------------------------- /sim/common/gdbinit.in: -------------------------------------------------------------------------------- 1 | break sim_io_error 2 | break sim_core_signal 3 | @cgen_breaks@ 4 | 5 | define dump 6 | set sim_debug_dump () 7 | end 8 | 9 | document dump 10 | Dump cpu and simulator registers for debugging the simulator. 11 | Requires the simulator to provide function sim_debug_dump. 12 | end 13 | -------------------------------------------------------------------------------- /sim/testsuite/d10v-elf/t-ae-ld-id.s: -------------------------------------------------------------------------------- 1 | .include "t-macros.i" 2 | 3 | start 4 | 5 | PSW_BITS = 0 6 | point_dmap_at_imem 7 | check_interrupt (VEC_AE&DMAP_MASK)+DMAP_BASE PSW_BITS test_ld 8 | 9 | ldi r10, #0x4001 10 | ld r8, @(1,r10) 11 | 12 | test_ld: 13 | ld r8,@(2,r10) 14 | nop 15 | exit47 16 | -------------------------------------------------------------------------------- /sim/testsuite/d10v-elf/t-ae-ld2w-id.s: -------------------------------------------------------------------------------- 1 | .include "t-macros.i" 2 | 3 | start 4 | 5 | PSW_BITS = 0 6 | point_dmap_at_imem 7 | check_interrupt (VEC_AE&DMAP_MASK)+DMAP_BASE PSW_BITS test_ld2w 8 | 9 | ldi r10, #0x4001 10 | ld2w r8,@(1,r10) 11 | test_ld2w: 12 | ld2w r8,@(2,r10) 13 | nop 14 | exit47 15 | -------------------------------------------------------------------------------- /sim/testsuite/d10v-elf/t-sp.s: -------------------------------------------------------------------------------- 1 | .include "t-macros.i" 2 | 3 | start 4 | 5 | ;;; Read/Write values to SPU/SPI 6 | 7 | loadpsw2 0 8 | ldi sp, 0xdead 9 | loadpsw2 PSW_SM 10 | ldi sp, 0xbeef 11 | 12 | loadpsw2 0 13 | check 1 sp 0xdead 14 | loadpsw2 PSW_SM 15 | check 2 sp 0xbeef 16 | 17 | exit0 18 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/addd.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for addd $sr, regp 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global addd 9 | addd: 10 | 11 | movd $0x12345678,(r4,r3) 12 | addd $0x44444444,(r4,r3) 13 | 14 | test_h_grp "(r4,r3)", 0x56789abc 15 | 16 | pass 17 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/movd.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for movd $imm32, regp 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global movd 9 | movd: 10 | movd $0x12345678, (r4,r3) 11 | 12 | movd (r4,r3), (r6,r5) 13 | 14 | test_h_grp "(r6,r5)", 0x12345678 15 | 16 | pass 17 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/x0-v10.ms: -------------------------------------------------------------------------------- 1 | #mach: crisv10 2 | #ld: --section-start=.text=0 3 | #output: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3dfff[0-9a-f][0-9a-f][0-9a-f] ixnzvc 0\n 4 | #output: 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3dfff[0-9a-f][0-9a-f][0-9a-f] ixnzvc 1\n 5 | #sim: --cris-trace=basic 6 | 7 | .include "break.ms" 8 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/c/readlink5.c: -------------------------------------------------------------------------------- 1 | /* Check that unsupported readlink calls don't cause the simulator to abort. 2 | #notarget: cris*-*-elf 3 | #dest: ./readlink5.c.x 4 | #xerror: 5 | #output: Unimplemented readlink syscall (*)\n 6 | #output: program stopped with signal 4.\n 7 | */ 8 | #include "readlink2.c" 9 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/c/sched1.c: -------------------------------------------------------------------------------- 1 | /* 2 | #notarget: cris*-*-elf 3 | */ 4 | 5 | #include 6 | #include 7 | #include 8 | 9 | int main (void) 10 | { 11 | if (sched_getscheduler (getpid ()) != SCHED_OTHER) 12 | abort (); 13 | printf ("pass\n"); 14 | exit (0); 15 | } 16 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/compact/trapa.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for trapa #$imm8 -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shcompact 4 | # ld: -m shelf32 5 | 6 | .include "compact/testutils.inc" 7 | 8 | start 9 | 10 | .global trapa 11 | trapa: 12 | # pass is a macro for "trapa #253". 13 | trapa #253 14 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/mmulfxrpw.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for mmulfxrp.w $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global mmulfxrpw 11 | mmulfxrpw: 12 | mmulfxrp.w r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/mmulsumwq.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for mmulsum.wq $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global mmulsumwq 11 | mmulsumwq: 12 | mmulsum.wq r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /config/mh-cygwin: -------------------------------------------------------------------------------- 1 | EXTRA_TARGET_HOST_ALL_MODULES=maybe-all-libtermcap 2 | EXTRA_TARGET_HOST_INSTALL_MODULES=maybe-install-libtermcap 3 | 4 | # Increase stack limit to same as Linux default. 5 | LDFLAGS += -Wl,--stack,8388608 6 | 7 | all-gdb: maybe-all-libtermcap 8 | 9 | install-gdb: maybe-all-libtermcap 10 | -------------------------------------------------------------------------------- /config/mh-mingw: -------------------------------------------------------------------------------- 1 | # Add -D__USE_MINGW_ACCESS to enable the built compiler to work on Windows 2 | # Vista (see PR33281 for details). 3 | BOOT_CFLAGS += -D__USE_MINGW_ACCESS -Wno-pedantic-ms-format 4 | CFLAGS += -D__USE_MINGW_ACCESS 5 | # Increase stack limit to same as Linux default. 6 | LDFLAGS += -Wl,--stack,8388608 7 | -------------------------------------------------------------------------------- /config/plugins.m4: -------------------------------------------------------------------------------- 1 | AC_DEFUN([AC_PLUGINS], 2 | [ 3 | AC_ARG_ENABLE([plugins], 4 | AS_HELP_STRING([--enable-plugins], [Enable support for plugins (defaults no)]), 5 | [case "${enableval}" in 6 | yes | "") plugins=yes ;; 7 | no) plugins=no ;; 8 | *) plugins=yes ;; 9 | esac], 10 | [plugins=no]) 11 | ]) 12 | -------------------------------------------------------------------------------- /sim/testsuite/d10v-elf/t-ae-st2w-id.s: -------------------------------------------------------------------------------- 1 | .include "t-macros.i" 2 | 3 | start 4 | 5 | PSW_BITS = 0 6 | point_dmap_at_imem 7 | check_interrupt (VEC_AE&DMAP_MASK)+DMAP_BASE PSW_BITS test_st2w 8 | 9 | ldi r10, #0x4001 10 | st2w r8, @(1,r10) 11 | test_st2w: 12 | st2w r8,@(2,r10) 13 | nop 14 | exit47 15 | -------------------------------------------------------------------------------- /sim/testsuite/d10v-elf/t-rdt.s: -------------------------------------------------------------------------------- 1 | .include "t-macros.i" 2 | 3 | start 4 | 5 | PSW_BITS = PSW_C|PSW_F0|PSW_F1 6 | 7 | ldi r6, #success@word 8 | mvtc r6, dpc 9 | ldi r6, #PSW_BITS 10 | mvtc r6, dpsw 11 | 12 | test_rdt: 13 | RTD 14 | exit47 15 | 16 | success: 17 | checkpsw2 1 PSW_BITS 18 | exit0 19 | -------------------------------------------------------------------------------- /sim/testsuite/d10v-elf/t-rte.s: -------------------------------------------------------------------------------- 1 | .include "t-macros.i" 2 | 3 | start 4 | 5 | PSW_BITS = PSW_C|PSW_F0|PSW_F1 6 | 7 | ldi r6, #success@word 8 | mvtc r6, bpc 9 | ldi r6, #PSW_BITS 10 | mvtc r6, bpsw 11 | 12 | test_rte: 13 | RTE 14 | exit47 15 | 16 | success: 17 | checkpsw2 1 PSW_BITS 18 | exit0 19 | -------------------------------------------------------------------------------- /sim/testsuite/m32r-elf/hello.s: -------------------------------------------------------------------------------- 1 | 2 | .globl _start 3 | _start: 4 | 5 | ; write (hello world) 6 | ldi8 r3,#14 7 | ld24 r2,#hello 8 | ldi8 r1,#1 9 | ldi8 r0,#5 10 | trap #0 11 | ; exit (0) 12 | ldi8 r1,#0 13 | ldi8 r0,#1 14 | trap #0 15 | 16 | length: .long 14 17 | hello: .ascii "Hello World!\r\n" 18 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/jump.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for jmp (regp) 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global jmp 9 | jmp: 10 | movd $ok1, (r4,r3) 11 | jump (r4,r3) 12 | fail 13 | ok1: 14 | movd $ok2, (r4,r3) 15 | jump (r4,r3) 16 | fail 17 | ok2: 18 | pass 19 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/lshd.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for lshd reg, regp 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global lshd 9 | lshd: 10 | movd $0x12345678, (r4,r3) 11 | movw $0x10, r5 12 | lshd r5, (r4,r3) 13 | test_h_grp "(r4,r3)", 0x56780000 14 | 15 | pass 16 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/movxw.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for movw reg, regp 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global movw 9 | movw: 10 | movw $0x1234, r4 11 | movd $0, (r6,r5) 12 | 13 | movxw r4, (r6,r5) 14 | 15 | test_h_grp "(r6, r5)", 0x1234 16 | 17 | pass 18 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/bare2.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv32 2 | # output: 0\n0\n4\n42\n 3 | # sim: --cris-naked --target binary --architecture crisv32 4 | # ld: --oformat binary 5 | 6 | ; Check that we can run a naked binary with the same expected 7 | ; results as an ELF "executable". 8 | 9 | .include "bare1.ms" 10 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/x0-v32.ms: -------------------------------------------------------------------------------- 1 | #mach: crisv32 2 | #ld: --section-start=.text=0 3 | #output: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3dfff[0-9a-f][0-9a-f][0-9a-f] ixnzvc 0 0\n 4 | #output: 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3dfff[0-9a-f][0-9a-f][0-9a-f] ixnzvc 1 0\n 5 | #sim: --cris-trace=basic 6 | 7 | .include "break.ms" 8 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/c/sig3.c: -------------------------------------------------------------------------------- 1 | /* Check that TRT happens at an abort (3) call, single thread. 2 | #xerror: 3 | #output: program stopped with signal 6.\n 4 | */ 5 | 6 | #include 7 | #include 8 | int main (void) 9 | { 10 | abort (); 11 | printf ("xyzzy\n"); 12 | exit (0); 13 | } 14 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/jl.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for jl $sr 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global jl 9 | jl: 10 | mvaddr_h_gr r4, ok 11 | jl r4 12 | not_ok: 13 | fail 14 | ok: 15 | mvaddr_h_gr r4, not_ok 16 | bne r4, r14, not_ok 17 | 18 | pass 19 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/mulhi.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for mulhi $src1,$src2 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global mulhi 9 | mulhi: 10 | 11 | mvi_h_gr r4, 0x40000 12 | mvi_h_gr r5, 0x50000 13 | mulhi r4, r5 14 | test_h_accum0 0, 0x140000 15 | 16 | pass 17 | -------------------------------------------------------------------------------- /sim/testsuite/sim/sh64/media/mmacnfx-wl.cgs: -------------------------------------------------------------------------------- 1 | # sh testcase for mmacnfx.wl $rm, $rn, $rd -*- Asm -*- 2 | # mach: all 3 | # as: -isa=shmedia 4 | # ld: -m shelf64 5 | 6 | .include "media/testutils.inc" 7 | 8 | start 9 | 10 | .global mmacnfx_wl 11 | mmacnfx_wl: 12 | mmacnfx.wl r0, r0, r0 13 | 14 | pass 15 | -------------------------------------------------------------------------------- /config/mt-mips16-compat: -------------------------------------------------------------------------------- 1 | # Configurations use this fragment if they support MIPS16 and non-MIPS16 code, 2 | # but if the libraries are all non-MIPS16. Add -minterlink-mips16 so 3 | # that the libraries can be used with both ISA modes. 4 | CFLAGS_FOR_TARGET += -minterlink-mips16 5 | CXXFLAGS_FOR_TARGET += -minterlink-mips16 6 | -------------------------------------------------------------------------------- /gdb/config/xtensa/linux.mh: -------------------------------------------------------------------------------- 1 | # Host: Xtensa, running GNU/Linux. 2 | 3 | NAT_FILE= config/nm-linux.h 4 | 5 | NATDEPFILES= inf-ptrace.o fork-child.o xtensa-linux-nat.o \ 6 | linux-thread-db.o proc-service.o linux-nat.o linux-fork.o 7 | NAT_CDEPS = $(srcdir)/proc-service.list 8 | 9 | LOADLIBES = -ldl $(RDYNAMIC) 10 | -------------------------------------------------------------------------------- /gdb/testsuite/gdb.pascal/hello.pas: -------------------------------------------------------------------------------- 1 | program hello; 2 | 3 | var 4 | st : string; 5 | 6 | procedure print_hello; 7 | begin 8 | Writeln('Before assignment'); { set breakpoint 1 here } 9 | st:='Hello, world!'; 10 | writeln(st); {set breakpoint 2 here } 11 | end; 12 | 13 | begin 14 | print_hello; 15 | end. 16 | -------------------------------------------------------------------------------- /sim/testsuite/d10v-elf/t-ae-st-i.s: -------------------------------------------------------------------------------- 1 | .include "t-macros.i" 2 | 3 | start 4 | 5 | PSW_BITS = 0 6 | point_dmap_at_imem 7 | check_interrupt (VEC_AE&DMAP_MASK)+DMAP_BASE PSW_BITS test_st 8 | 9 | ldi r10,#0x4000 10 | st r8, @r10 11 | 12 | ldi r10,#0x4001 13 | test_st: 14 | st r8,@r10 15 | nop 16 | exit47 17 | -------------------------------------------------------------------------------- /sim/testsuite/d10v-elf/t-ae-st-is.s: -------------------------------------------------------------------------------- 1 | .include "t-macros.i" 2 | 3 | start 4 | 5 | PSW_BITS = 0 6 | point_dmap_at_imem 7 | check_interrupt (VEC_AE&DMAP_MASK)+DMAP_BASE PSW_BITS test_st 8 | 9 | ldi sp,#0x4000 10 | st r8, @-SP 11 | 12 | ldi sp,#0x4001 13 | test_st: 14 | st r8,@-SP 15 | nop 16 | exit47 17 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/movzw.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for movzw reg, regp 2 | # mach(): cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global movzw 9 | movzw: 10 | movb $0xff, r4 11 | movd $0x12345678,(r6, r5) 12 | 13 | movzw r4, (r6,r5) 14 | 15 | test_h_grp "(r6, r5)", 0xff 16 | 17 | pass 18 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cr16/popret3.cgs: -------------------------------------------------------------------------------- 1 | # cr16 testcase for popret RA insns. 2 | # mach: cr16 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global popret3 9 | popret3: 10 | movd $0x1006, (sp) 11 | movd $ok, (ra) 12 | lshd $-1, (ra) 13 | stord (ra), 0x1006 14 | popret RA 15 | 16 | ok: 17 | pass 18 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/clearfv10.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv10 2 | # output: ef\n 3 | 4 | ; Check that "clearf x" doesn't trivially fail. 5 | 6 | .include "testutils.inc" 7 | start 8 | setf mbixnzvc 9 | clearf x ; Actually, x would be cleared by almost-all other insns. 10 | move dccr,r3 11 | dumpr3 12 | quit 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/clearfv32.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv32 2 | # output: ef\n 3 | 4 | ; Check that "clearf x" doesn't trivially fail. 5 | 6 | .include "testutils.inc" 7 | start 8 | setf puixnzvc 9 | clearf x ; Actually, x would be cleared by almost-all other insns. 10 | move ccs,r3 11 | dumpr3 12 | quit 13 | -------------------------------------------------------------------------------- /sim/testsuite/sim/cris/asm/movscpc.ms: -------------------------------------------------------------------------------- 1 | # mach: crisv3 crisv8 crisv10 2 | # xerror: 3 | # output: General register write to PC is not implemented.\nprogram stopped with signal 5.\n 4 | 5 | .include "testutils.inc" 6 | start 7 | movs.b 0x42,pc 8 | dumpr3 9 | 10 | movs.w 0x4321,pc 11 | dumpr3 12 | 13 | quit 14 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/beqz.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for beqz $src2,$disp16 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global beqz 9 | beqz: 10 | mvi_h_gr r4, 0 11 | beqz r4, ok 12 | not_ok: 13 | fail 14 | ok: 15 | mvi_h_gr r4, 1 16 | beqz r4, not_ok 17 | 18 | pass 19 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/bgez.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for bgez $src2,$disp16 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global bgez 9 | bgez: 10 | mvi_h_gr r4, 1 11 | bgez r4, ok 12 | not_ok: 13 | fail 14 | ok: 15 | mvi_h_gr r4, -1 16 | bgez r4, not_ok 17 | 18 | pass 19 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/bgtz.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for bgtz $src2,$disp16 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global bgtz 9 | bgtz: 10 | mvi_h_gr r4, 1 11 | bgtz r4, ok 12 | not_ok: 13 | fail 14 | ok: 15 | mvi_h_gr r4, 0 16 | bgtz r4, not_ok 17 | 18 | pass 19 | -------------------------------------------------------------------------------- /sim/testsuite/sim/m32r/jmp.cgs: -------------------------------------------------------------------------------- 1 | # m32r testcase for jmp $sr 2 | # mach(): m32r m32rx 3 | 4 | .include "testutils.inc" 5 | 6 | start 7 | 8 | .global jmp 9 | jmp: 10 | mvaddr_h_gr r4, ok1 11 | jmp r4 12 | fail 13 | ok1: 14 | mvaddr_h_gr r4, ok2 15 | addi r4,#1 16 | jmp r4 17 | fail 18 | ok2: 19 | pass 20 | --------------------------------------------------------------------------------