summaryrefslogtreecommitdiff
path: root/rtemstoolkit/rld-dwarf.h
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2018-05-11 17:21:05 +1200
committerChris Johns <chrisj@rtems.org>2018-06-18 12:26:16 +1000
commit1c8538039ee0789a6d91ed201050e183faa50316 (patch)
tree8e066b3f7383dcd22a4383551746f2853db3c689 /rtemstoolkit/rld-dwarf.h
parent881824f766937a47fb494f97f4ebcd44c99135cc (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.h4
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;