Fix gdb.dwarf2/dw2-double-set-die-type.exp with Clang
authorGary Benson <gbenson@redhat.com>
Wed, 30 Sep 2020 09:51:58 +0000 (10:51 +0100)
committerGary Benson <gbenson@redhat.com>
Wed, 30 Sep 2020 09:51:58 +0000 (10:51 +0100)
commitf65825ec7a29fb67d7b31e93ba7b057e6b87465e
treecbdeeecea736733ffb9d6dd7a2b07d7eaa39ea50
parent51dee44b37c4254e6b6a016b062c23b8e1f9ca33
Fix gdb.dwarf2/dw2-double-set-die-type.exp with Clang

gdb.dwarf2/dw2-double-set-die-type.exp failed to build with Clang,
because of the following issues:

- One .uleb128 directive was specified with an uppercase U,
  causing Clang to fail with the message:
    error: unknown directive
  This commit converts that directive to all-lowercase.

- The label ".Labbrev1_begin" was referenced but not defined,
  causing Clang to fail with the message:
    <unknown>:0: error: Undefined temporary symbol
  This commit adds the label in the appropriate place.

- The label ".Ldebug_line0" was referenced but not defined,
  causing Clang to fail with the message:
    <unknown>:0: error: Undefined temporary symbol
  This commit removes the reference.

gdb/testsuite/ChangeLog:

* gdb.dwarf2/dw2-double-set-die-type.S (.Ldie_3e0):
Convert directive to lowercase.
(.Labbrev1_begin): Add missing label.
(abbrev code 0x1): Remove DW_AT_stmt_list.
(.Ldie_b): Likewise.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.S