mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 21:41:47 +08:00
gdb/testsuite/
Fix s390x compatibility. * gdb.dwarf2/pr11465.S (DW_TAG_pointer_type): Use PTRBITS. Twice. * gdb.dwarf2/pr11465.exp: Set ptrbits, use it for -DPTRBITS.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
|
Fix s390x compatibility.
|
||||||
|
* gdb.dwarf2/pr11465.S (DW_TAG_pointer_type): Use PTRBITS. Twice.
|
||||||
|
* gdb.dwarf2/pr11465.exp: Set ptrbits, use it for -DPTRBITS.
|
||||||
|
|
||||||
2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
|
2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
* gdb.threads/sigstep-threads.exp: New file.
|
* gdb.threads/sigstep-threads.exp: New file.
|
||||||
|
@ -88,14 +88,14 @@ die77: .uleb128 0x9 /* DW_TAG_formal_parameter */
|
|||||||
.byte 0x0
|
.byte 0x0
|
||||||
.byte 0x0
|
.byte 0x0
|
||||||
die7e: .uleb128 0xa /* DW_TAG_pointer_type */
|
die7e: .uleb128 0xa /* DW_TAG_pointer_type */
|
||||||
.byte 0x4 /* DW_AT_byte_size */
|
.byte PTRBITS / 8 /* DW_AT_byte_size */
|
||||||
.long die84-d /* DW_AT_type */
|
.long die84-d /* DW_AT_type */
|
||||||
die84: .uleb128 0xb /* DW_TAG_subroutine_type */
|
die84: .uleb128 0xb /* DW_TAG_subroutine_type */
|
||||||
die89: .uleb128 0x9 /* DW_TAG_formal_parameter */
|
die89: .uleb128 0x9 /* DW_TAG_formal_parameter */
|
||||||
.long die5e-d /* DW_AT_type */
|
.long die5e-d /* DW_AT_type */
|
||||||
.byte 0x0
|
.byte 0x0
|
||||||
die8f: .uleb128 0xa /* DW_TAG_pointer_type */
|
die8f: .uleb128 0xa /* DW_TAG_pointer_type */
|
||||||
.byte 0x4 /* DW_AT_byte_size */
|
.byte PTRBITS / 8 /* DW_AT_byte_size */
|
||||||
.long die5e-d /* DW_AT_type */
|
.long die5e-d /* DW_AT_type */
|
||||||
die95: .uleb128 0xc /* DW_TAG_subprogram */
|
die95: .uleb128 0xc /* DW_TAG_subprogram */
|
||||||
.long die6a-d /* DW_AT_specification */
|
.long die6a-d /* DW_AT_specification */
|
||||||
|
@ -29,8 +29,14 @@ set srcfile "$testfile.S"
|
|||||||
set executable "$testfile.x"
|
set executable "$testfile.x"
|
||||||
set binfile [file join $objdir $subdir $executable]
|
set binfile [file join $objdir $subdir $executable]
|
||||||
|
|
||||||
|
if [is_ilp32_target] {
|
||||||
|
set ptrbits 32
|
||||||
|
} else {
|
||||||
|
set ptrbits 64
|
||||||
|
}
|
||||||
|
|
||||||
if { [gdb_compile [file join $srcdir $subdir $srcfile] \
|
if { [gdb_compile [file join $srcdir $subdir $srcfile] \
|
||||||
$binfile object {}] != "" } {
|
$binfile object [list additional_flags=-DPTRBITS=$ptrbits]] != "" } {
|
||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user