Skip to content

Commit ee38b26

Browse files
author
Mark Wielaard
committed
libdw: Correct spelling of DW_LANG_PLI in dwarf.h.
The name used in the standard and other DWARF implementations for Programming Language One, PL/I, is DW_LANG_PLI (not DW_LANG_PL1). Fix usage in dwarf_aggregate_size. Signed-off-by: Mark Wielaard <[email protected]>
1 parent a3cc818 commit ee38b26

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

NEWS

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Version 0.168
2+
3+
libdw: dwarf.h corrected the DW_LANG_PLI constant name (was DW_LANG_PL1).
4+
15
Version 0.167
26

37
libasm: Add eBPF disassembler for EM_BPF files.

libdw/ChangeLog

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2016-10-22 Mark Wielaard <[email protected]>
2+
3+
* dwarf.h: Correct spelling of DW_LANG_PLI. Add compatibility define.
4+
* dwarf_aggregate_size.c (array_size): Use correct spelling of
5+
DW_LANG_PLI.
6+
17
2016-11-02 Mark Wielaard <[email protected]>
28

39
* cfi.c (execute_cfi): Add fallthrough comments.

libdw/dwarf.h

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This file defines standard DWARF types, structures, and macros.
2-
Copyright (C) 2000-2011, 2014 Red Hat, Inc.
2+
Copyright (C) 2000-2011, 2014, 2016 Red Hat, Inc.
33
This file is part of elfutils.
44
55
This file is free software; you can redistribute it and/or modify
@@ -582,7 +582,7 @@ enum
582582
DW_LANG_C99 = 0x000c, /* ISO C:1999 */
583583
DW_LANG_Ada95 = 0x000d, /* ISO Ada:1995 */
584584
DW_LANG_Fortran95 = 0x000e, /* ISO Fortran 95 */
585-
DW_LANG_PL1 = 0x000f, /* ISO PL/1:1976 */
585+
DW_LANG_PLI = 0x000f, /* ISO PL/1:1976 */
586586
DW_LANG_ObjC = 0x0010, /* Objective-C */
587587
DW_LANG_ObjC_plus_plus = 0x0011, /* Objective-C++ */
588588
DW_LANG_UPC = 0x0012, /* Unified Parallel C */
@@ -602,6 +602,8 @@ enum
602602
DW_LANG_hi_user = 0xffff
603603
};
604604

605+
/* Old (typo) '1' != 'I'. */
606+
#define DW_LANG_PL1 DW_LANG_PLI
605607

606608
/* DWARF identifier case encodings. */
607609
enum

libdw/dwarf_aggregate_size.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* Compute size of an aggregate type from DWARF.
2-
Copyright (C) 2010, 2014 Red Hat, Inc.
2+
Copyright (C) 2010, 2014, 2016 Red Hat, Inc.
33
This file is part of elfutils.
44
55
This file is free software; you can redistribute it and/or modify
@@ -127,7 +127,7 @@ array_size (Dwarf_Die *die, Dwarf_Word *size,
127127
case DW_LANG_Fortran08:
128128
case DW_LANG_Pascal83:
129129
case DW_LANG_Modula2:
130-
case DW_LANG_PL1:
130+
case DW_LANG_PLI:
131131
lower = 1;
132132
break;
133133

0 commit comments

Comments
 (0)