[PATCH 1/3] rld-dwarf: Add function::has_entry_pc
Alex White
alexanderjwhite at gmail.com
Wed Mar 3 17:01:52 UTC 2021
---
rtemstoolkit/rld-dwarf.cpp | 8 +++++++-
rtemstoolkit/rld-dwarf.h | 5 +++++
2 files changed, 12 insertions(+), 1 deletion(-)
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
@@ -884,6 +884,12 @@ namespace rld
return addr;
}
+ bool
+ function::has_entry_pc () const
+ {
+ return has_entry_pc_;
+ }
+
bool
function::has_machine_code () const
{
@@ -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
@@ -376,6 +376,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?
*/
--
2.27.0
More information about the devel
mailing list