[2/4] Add a dwarf unit type to represent 24 bit values.

Message ID 20180829141845.26378-3-john@darrington.wattle.id.au
State New, archived
Headers

Commit Message

John Darrington Aug. 29, 2018, 2:18 p.m. UTC
  * include/dwarf2.h (enum dwarf_unit_type) [DE_EH_PE_udata3]: New member.
---
 include/dwarf2.h | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Tom Tromey Sept. 7, 2018, 9:50 p.m. UTC | #1
>>>>> "John" == John Darrington <john@darrington.wattle.id.au> writes:

John> 	* include/dwarf2.h (enum dwarf_unit_type) [DE_EH_PE_udata3]: New member.
John> ---
John>  include/dwarf2.h | 1 +
John>  1 file changed, 1 insertion(+)

I'm afraid I didn't look at the earlier discussion of this.

dwarf2.h is canonically maintained in the gcc repository.  So, any
change here has to be sent to gcc-patches and be committed there first.
Then the patch can be applied to gdb -- this counts as obvious (IMO).

Tom
  

Patch

diff --git a/include/dwarf2.h b/include/dwarf2.h
index cf0039a92a..0fe88a3a7e 100644
--- a/include/dwarf2.h
+++ b/include/dwarf2.h
@@ -474,6 +474,7 @@  enum dwarf_unit_type
 #define DW_EH_PE_udata2		0x02
 #define DW_EH_PE_udata4		0x03
 #define DW_EH_PE_udata8		0x04
+#define DW_EH_PE_udata3		0x05
 #define DW_EH_PE_sleb128	0x09
 #define DW_EH_PE_sdata2		0x0A
 #define DW_EH_PE_sdata4		0x0B