diff options
author | Chris Johns <chrisj@rtems.org> | 2018-05-11 17:21:05 +1200 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2018-06-18 12:26:16 +1000 |
commit | 1c8538039ee0789a6d91ed201050e183faa50316 (patch) | |
tree | 8e066b3f7383dcd22a4383551746f2853db3c689 /rtemstoolkit/rld-dwarf.h | |
parent | 881824f766937a47fb494f97f4ebcd44c99135cc (diff) |
rtemstoolkit/dwarf: Change the address source line to signed so valid() works.
Also add a check to valid where there must be source to be valid.
Diffstat (limited to 'rtemstoolkit/rld-dwarf.h')
-rw-r--r-- | rtemstoolkit/rld-dwarf.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rtemstoolkit/rld-dwarf.h b/rtemstoolkit/rld-dwarf.h index 8a61755..c69cb9d 100644 --- a/rtemstoolkit/rld-dwarf.h +++ b/rtemstoolkit/rld-dwarf.h @@ -88,14 +88,14 @@ namespace rld /** * Assigment operator. */ - address& operator = (address& rhs); + address& operator = (const address& rhs); private: dwarf_address addr; sources const* source; dwarf_unsigned source_index; - dwarf_unsigned source_line; + dwarf_signed source_line; bool begin_statement; bool block; bool end_sequence; |