diff options
author | Alex White <alex.white@oarcorp.com> | 2021-03-03 09:36:19 -0600 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2021-03-30 13:15:57 -0500 |
commit | 85eb59e217fc62974a9a511e5463f47ff4b135e1 (patch) | |
tree | 32eae41cea00477331a883c2482e16a3593023e1 | |
parent | bsps/sparc: Remove INI files using SIS in GDB (diff) | |
download | rtems-tools-85eb59e217fc62974a9a511e5463f47ff4b135e1.tar.bz2 |
rld-dwarf: Add function::has_entry_pc
-rw-r--r-- | rtemstoolkit/rld-dwarf.cpp | 8 | ||||
-rw-r--r-- | rtemstoolkit/rld-dwarf.h | 5 |
2 files changed, 12 insertions, 1 deletions
diff --git a/rtemstoolkit/rld-dwarf.cpp b/rtemstoolkit/rld-dwarf.cpp index d9ac6f3..acb4fd4 100644 --- a/rtemstoolkit/rld-dwarf.cpp +++ b/rtemstoolkit/rld-dwarf.cpp @@ -885,6 +885,12 @@ namespace rld } bool + function::has_entry_pc () const + { + return has_entry_pc_; + } + + bool function::has_machine_code () const { return machine_code_; @@ -1702,7 +1708,7 @@ namespace rld if (daddr.is_an_end_sequence ()) seq_base = 0; address addr (daddr, loc); - if (loc >= pc_low_ && loc < pc_high_) + if (loc >= pc_low_ && loc <= pc_high_) { pc = loc; addr_lines_.push_back (addr); diff --git a/rtemstoolkit/rld-dwarf.h b/rtemstoolkit/rld-dwarf.h index 45fbab1..1210813 100644 --- a/rtemstoolkit/rld-dwarf.h +++ b/rtemstoolkit/rld-dwarf.h @@ -377,6 +377,11 @@ namespace rld dwarf_unsigned pc_high () const; /** + * Does the function have an entry PC? + */ + bool has_entry_pc () const; + + /** * Does the function have machine code in the image? */ bool has_machine_code () const; |