diff options
author | Roland McGrath <roland@redhat.com> | 2009-07-08 14:48:34 -0700 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2009-07-08 14:48:34 -0700 |
commit | 6e1f4658619e0a6bdbf64d7678b82f4e97645633 (patch) | |
tree | dfdeb9020e721b7e278b1a10dc2a64c6aa2c537b | |
parent | 9dedfccc66ca19a72b936e6a2e6e27fb4a65be60 (diff) | |
download | elfutils-6e1f4658619e0a6bdbf64d7678b82f4e97645633.tar.gz |
Reorder some libdwP.h struct members for optimal packing.
-rw-r--r-- | libdw/ChangeLog | 2 | ||||
-rw-r--r-- | libdw/libdwP.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/libdw/ChangeLog b/libdw/ChangeLog index 600f6dc3..af8d8590 100644 --- a/libdw/ChangeLog +++ b/libdw/ChangeLog @@ -1,5 +1,7 @@ 2009-07-08 Roland McGrath <roland@redhat.com> + * libdwP.h (struct Dwarf_Line_s): Reorder members to pack better. + * dwarf_getlocation.c (check_constant_offset): New function. (dwarf_getlocation, dwarf_getlocation_addr): Call it to handle DW_AT_data_member_location of data[48] as constant offset. diff --git a/libdw/libdwP.h b/libdw/libdwP.h index eacc49fc..359aaec6 100644 --- a/libdw/libdwP.h +++ b/libdw/libdwP.h @@ -226,6 +226,8 @@ typedef struct Dwarf_Fileinfo_s Dwarf_Fileinfo; struct Dwarf_Line_s { + Dwarf_Files *files; + Dwarf_Addr addr; unsigned int file; int line; @@ -235,8 +237,6 @@ struct Dwarf_Line_s unsigned int end_sequence:1; unsigned int prologue_end:1; unsigned int epilogue_begin:1; - - Dwarf_Files *files; }; struct Dwarf_Lines_s |