rld-dwarf: Add function::has_entry_pc

This commit is contained in:
Alex White 2021-03-03 09:36:19 -06:00 committed by Joel Sherrill
parent 64ad86c10b
commit 85eb59e217
2 changed files with 12 additions and 1 deletions

View File

@ -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);

View File

@ -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?
*/