Skip to content

Commit aee624d

Browse files
committed
Rename DW_VERSION_2 to DW_VERSION
1 parent 1a8f590 commit aee624d

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/elf/dwarf/DwarfARangesSectionImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
import static com.oracle.objectfile.elf.dwarf.DwarfDebugInfo.DW_ARANGES_SECTION_NAME;
4141
import static com.oracle.objectfile.elf.dwarf.DwarfDebugInfo.DW_INFO_SECTION_NAME;
42-
import static com.oracle.objectfile.elf.dwarf.DwarfDebugInfo.DW_VERSION_2;
42+
import static com.oracle.objectfile.elf.dwarf.DwarfDebugInfo.DW_VERSION;
4343

4444
/**
4545
* Section generator for debug_aranges section.
@@ -184,7 +184,7 @@ public void writeContent(DebugContext context) {
184184
log(context, " [0x%08x] %s CU %d length 0x%x", pos, classEntry.getFileName(), cuIndex, length);
185185
pos = putInt(length, buffer, pos);
186186
/* DWARF version is always 2. */
187-
pos = putShort(DW_VERSION_2, buffer, pos);
187+
pos = putShort(DW_VERSION, buffer, pos);
188188
pos = putInt(cuIndex, buffer, pos);
189189
/* Address size is always 8. */
190190
pos = putByte((byte) 8, buffer, pos);
@@ -237,7 +237,7 @@ public void writeContent(DebugContext context) {
237237
log(context, " [0x%08x] %s CU linkage stubs %d length 0x%x", pos, classEntry.getFileName(), cuIndex, length);
238238
pos = putInt(length, buffer, pos);
239239
/* DWARF version is always 2. */
240-
pos = putShort(DW_VERSION_2, buffer, pos);
240+
pos = putShort(DW_VERSION, buffer, pos);
241241
pos = putInt(cuIndex, buffer, pos);
242242
/* Address size is always 8. */
243243
pos = putByte((byte) 8, buffer, pos);

substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/elf/dwarf/DwarfDebugInfo.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ public class DwarfDebugInfo extends DebugInfoBase {
5151
public static final String DW_ARANGES_SECTION_NAME = ".debug_aranges";
5252

5353
/**
54-
* Currently generated debug info relies on DWARF spec vesion 2.
54+
* Currently generated debug info relies on DWARF spec version 2.
5555
*/
56-
public static final short DW_VERSION_2 = 2;
56+
public static final short DW_VERSION = 2;
5757

5858
/*
5959
* Define all the abbrev section codes we need for our DIEs.

substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/elf/dwarf/DwarfInfoSectionImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
import static com.oracle.objectfile.elf.dwarf.DwarfDebugInfo.DW_FLAG_true;
4242
import static com.oracle.objectfile.elf.dwarf.DwarfDebugInfo.DW_INFO_SECTION_NAME;
4343
import static com.oracle.objectfile.elf.dwarf.DwarfDebugInfo.DW_LANG_Java;
44-
import static com.oracle.objectfile.elf.dwarf.DwarfDebugInfo.DW_VERSION_2;
44+
import static com.oracle.objectfile.elf.dwarf.DwarfDebugInfo.DW_VERSION;
4545

4646
/**
4747
* Section generator for debug_info section.
@@ -196,7 +196,7 @@ private int writeCUHeader(byte[] buffer, int p) {
196196
/* CU length. */
197197
pos += putInt(0, scratch, 0);
198198
/* DWARF version. */
199-
pos += putShort(DW_VERSION_2, scratch, 0);
199+
pos += putShort(DW_VERSION, scratch, 0);
200200
/* Abbrev offset. */
201201
pos += putInt(0, scratch, 0);
202202
/* Address size. */
@@ -205,7 +205,7 @@ private int writeCUHeader(byte[] buffer, int p) {
205205
/* CU length. */
206206
pos = putInt(0, buffer, pos);
207207
/* DWARF version. */
208-
pos = putShort(DW_VERSION_2, buffer, pos);
208+
pos = putShort(DW_VERSION, buffer, pos);
209209
/* Abbrev offset. */
210210
pos = putInt(0, buffer, pos);
211211
/* Address size. */

substratevm/src/com.oracle.objectfile/src/com/oracle/objectfile/elf/dwarf/DwarfLineSectionImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
import static com.oracle.objectfile.elf.dwarf.DwarfDebugInfo.DW_LINE_SECTION_NAME;
4343
import static com.oracle.objectfile.elf.dwarf.DwarfDebugInfo.DW_STR_SECTION_NAME;
44-
import static com.oracle.objectfile.elf.dwarf.DwarfDebugInfo.DW_VERSION_2;
44+
import static com.oracle.objectfile.elf.dwarf.DwarfDebugInfo.DW_VERSION;
4545

4646
/**
4747
* Section generator for debug_line section.
@@ -317,7 +317,7 @@ private int writeHeader(ClassEntry classEntry, byte[] buffer, int p) {
317317
/*
318318
* 2 ubyte version is always 2.
319319
*/
320-
pos = putShort(DW_VERSION_2, buffer, pos);
320+
pos = putShort(DW_VERSION, buffer, pos);
321321
/*
322322
* 4 ubyte prologue length includes rest of header and dir + file table section.
323323
*/

0 commit comments

Comments
 (0)