binutils-gdb/gdb/testsuite/gdb.dwarf2
Omair Javaid 93a360cc5d Fix testsuite/gdb.dwarf2/dw2-dos-drive.exp on ARM.
This test currently fails on ARM:

  (gdb) PASS: gdb.dwarf2/dw2-dos-drive.exp: set breakpoint pending off
  break 'z:file.c':func
  Cannot access memory at address 0x0

The error is GDB trying to read the prologue at the breakpoint's
address, and failing:

  38 throw_error() exceptions.c:444 0x0016728c
  37 memory_error() corefile.c:204 0x001d1fcc
  36 read_memory() corefile.c:223 0x001d201a
  35 read_memory_unsigned_integer() corefile.c:312 0x001d2166
  34 arm_skip_prologue() arm-tdep.c:1452 0x00054270

  static CORE_ADDR
  arm_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc)
  {
  ...
    for (skip_pc = pc; skip_pc < limit_pc; skip_pc += 4)
      {
        inst = read_memory_unsigned_integer (skip_pc, 4, byte_order_for_code);


The test doesn't execute the compiled object's code, so GDB will try
to read memory from the binary's sections.  Instructions on ARM are
4-byte wide, and thus ARM's prologue scanner reads in 4-byte chunks.
As the section 'func' is put at is only 1 byte long, and no other
section is allocated contiguously:

  ...
  Sections:
  Idx Name          Size      VMA       LMA       File off  Algn
    0 .text         00000001  00000000  00000000  00000034  2**0
                    CONTENTS, ALLOC, LOAD, READONLY, CODE
  ...

... the exec target fails the read the 4 bytes.

Fix this by increasing the function's size.

gdb/testsuite/ChangeLog:
2014-01-16  Omair Javaid  <Omair.Javaid@linaro.org>

	* gdb.dwarf2/dw2-dos-drive.S: Increase text section size to 4
	bytes.
2014-01-16 10:09:34 +00:00
..
callframecfa.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
callframecfa.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
clztest.c
clztest.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
clztest.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dup-psym.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dup-psym.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-ada-ffffffff.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-ada-ffffffff.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-anon-mptr.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-anon-mptr.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-anonymous-func.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-anonymous-func.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-bad-parameter-type.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-bad-parameter-type.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-basic.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-basic.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-canonicalize-type.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-canonicalize-type.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-case-insensitive-debug.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-case-insensitive.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-case-insensitive.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-common-block.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-common-block.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-compdir-oldgcc.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-compdir-oldgcc.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-compressed.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-compressed.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-const.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-const.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-cp-infcall-ref-static-main.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-cp-infcall-ref-static.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-cp-infcall-ref-static.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-cu-size.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-cu-size.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-dir-file-name.c Since upstream gcc has recently increased the function alignment on 2014-01-10 15:37:36 +00:00
dw2-dir-file-name.exp Since upstream gcc has recently increased the function alignment on 2014-01-10 15:37:36 +00:00
dw2-dos-drive.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-dos-drive.S Fix testsuite/gdb.dwarf2/dw2-dos-drive.exp on ARM. 2014-01-16 10:09:34 +00:00
dw2-double-set-die-type.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-double-set-die-type.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-dup-frame.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-dup-frame.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-dup-frame.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-empty-namespace.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-empty-namespace.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-empty-pc-range.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-empty-pc-range.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-entry-value-main.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-entry-value.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-entry-value.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-error.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-error.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-error.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-filename.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-filename.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-icc-opaque.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-icc-opaque.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-ifort-parameter-debug.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-ifort-parameter.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-ifort-parameter.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-inheritance.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-inheritance.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-inline-break.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-inline-break.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-inline-param-main.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-inline-param.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-inline-param.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-intercu.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-intercu.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-intermix.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-intermix.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-linkage-name-trust-main.cc Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-linkage-name-trust.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-linkage-name-trust.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-minsym-in-cu.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-minsym-in-cu.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-modula2-self-type.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-modula2-self-type.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-namespaceless-anonymous.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-namespaceless-anonymous.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-noloc-main.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-noloc.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-noloc.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-objfile-overlap-inner.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-objfile-overlap-outer.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-objfile-overlap.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-op-call.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-op-call.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-op-out-param.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-op-out-param.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-op-stack-value.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-op-stack-value.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-param-error-main.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-param-error.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-param-error.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-producer.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-producer.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-ranges2.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-ranges3.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-ranges.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-ranges.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-ref-missing-frame-func.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-ref-missing-frame-main.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-ref-missing-frame.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-ref-missing-frame.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-reg-undefined.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-reg-undefined.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-reg-undefined.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-restore.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-restore.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-restrict.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-restrict.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-restrict.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-simple-locdesc.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-simple-locdesc.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-skip-prologue.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-skip-prologue.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-skip-prologue.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-stack-boundary.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-stack-boundary.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-strp.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-strp.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-undefined-ret-addr.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-undefined-ret-addr.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-undefined-ret-addr.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-unresolved-main.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-unresolved.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-unresolved.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-var-zero-addr.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw2-var-zero-addr.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw4-sig-type-unused.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw4-sig-type-unused.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw4-sig-types-b.cc
dw4-sig-types.cc
dw4-sig-types.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dw4-sig-types.h
dwp-symlink.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dwp-symlink.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dwz.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
dwzbuildid.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
file1.txt
fission-base.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
fission-base.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
fission-base.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
fission-loclists.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
fission-loclists.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
fission-mix2.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
fission-mix.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
fission-mix.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
fission-mix.h Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
fission-reread.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
fission-reread.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
gdb-index.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
implptr-64bit.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
implptr-64bit.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
implptr-optimized-out.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
implptr-optimized-out.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
implptr.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
implptr.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
implptr.S
implptrconst.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
implptrconst.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
implptrpiece.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mac-fileno.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
mac-fileno.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
main.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
Makefile.in Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
member-ptr-forwardref.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
member-ptr-forwardref.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
method-ptr.cc Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
method-ptr.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
missing-sig-type.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
nostaticblock.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
pieces-optimized-out.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
pieces-optimized-out.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
pieces-optimized-out.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
pieces.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
pieces.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
pieces.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
pr10770.c
pr10770.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
pr11465.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
pr11465.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
pr13961.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
pr13961.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
subrange.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
trace-crash.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
trace-crash.S
typeddwarf-amd64.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
typeddwarf.c
typeddwarf.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
typeddwarf.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
valop.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
valop.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
watch-notconst2.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
watch-notconst2.S Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
watch-notconst.c Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00
watch-notconst.exp Update Copyright year range in all files maintained by GDB. 2014-01-01 07:54:24 +04:00