diff options
| author | Mark Wielaard <[email protected]> | 2014-11-11 14:10:04 +0100 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2014-11-11 14:10:09 +0100 |
| commit | 09086238f39daab4060d0e5f39f89820a0771d8c (patch) | |
| tree | 4ef9f512f3a30c3db8da2f8ce7d9106f2d3e6180 /libdw/dwarf_getsrclines.c | |
| parent | 0a1e81b321d45c5a6d49c5c69a48f9a2dfd9a551 (diff) | |
libdw: Fix dwarf_getsrclines.c 32bit compile error.
__libdw_getsrclines should have been marked as internal_function in
both libdwP.h and dwarf_getsrclines.c. Do address_size comparison as
uint8_t to avoid signedness warning.
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'libdw/dwarf_getsrclines.c')
| -rw-r--r-- | libdw/dwarf_getsrclines.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libdw/dwarf_getsrclines.c b/libdw/dwarf_getsrclines.c index 4bb19c2e..15881e8e 100644 --- a/libdw/dwarf_getsrclines.c +++ b/libdw/dwarf_getsrclines.c @@ -428,7 +428,7 @@ read_srclines (Dwarf *dbg, apporiate for the target machine. We use the address size field from the CU header. */ op_index = 0; - if (unlikely (lineendp - linep < address_size)) + if (unlikely (lineendp - linep < (uint8_t) address_size)) goto invalid_data; if (__libdw_read_address_inc (dbg, IDX_debug_line, &linep, address_size, &addr)) @@ -730,6 +730,7 @@ files_lines_compare (const void *p1, const void *p2) } int +internal_function __libdw_getsrclines (Dwarf *dbg, Dwarf_Off debug_line_offset, const char *comp_dir, unsigned address_size, Dwarf_Lines **linesp, Dwarf_Files **filesp) |
