[rtems-tools commit] rld-dwarf: Add function::has_entry_pc
Joel Sherrill
joel at rtems.org
Tue Mar 30 18:20:46 UTC 2021
Module: rtems-tools
Branch: master
Commit: 85eb59e217fc62974a9a511e5463f47ff4b135e1
Changeset: http://git.rtems.org/rtems-tools/commit/?id=85eb59e217fc62974a9a511e5463f47ff4b135e1
Author: Alex White <alex.white at oarcorp.com>
Date: Wed Mar 3 09:36:19 2021 -0600
rld-dwarf: Add function::has_entry_pc
---
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
@@ -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;
More information about the vc
mailing list