summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Address.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2013-11-09 00:03:31 +0000
committerGreg Clayton <gclayton@apple.com>2013-11-09 00:03:31 +0000
commitb35db6399dd8ab092bd45c10d1a76e10fae2dad7 (patch)
tree2241777d807b54db63858e7274e253acf1dc2413 /lldb/source/Core/Address.cpp
parent1b6973fc99e381bf8b8f5036502193b8219f4d5e (diff)
downloadbcm5719-llvm-b35db6399dd8ab092bd45c10d1a76e10fae2dad7.tar.gz
bcm5719-llvm-b35db6399dd8ab092bd45c10d1a76e10fae2dad7.zip
Fixed the the breakpoint test case failures.
There were 6 on darwin. All of these were related to the recent changes for exec. llvm-svn: 194298
Diffstat (limited to 'lldb/source/Core/Address.cpp')
-rw-r--r--lldb/source/Core/Address.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/lldb/source/Core/Address.cpp b/lldb/source/Core/Address.cpp
index 1e79f332ffc..de2165cff84 100644
--- a/lldb/source/Core/Address.cpp
+++ b/lldb/source/Core/Address.cpp
@@ -280,7 +280,7 @@ Address::GetFileAddress () const
// address by adding the file base address to our offset
return sect_file_addr + m_offset;
}
- else if (SectionWasDeleted())
+ else if (SectionWasDeletedPrivate())
{
// Used to have a valid section but it got deleted so the
// offset doesn't mean anything without the section
@@ -308,7 +308,7 @@ Address::GetLoadAddress (Target *target) const
}
}
}
- else if (SectionWasDeleted())
+ else if (SectionWasDeletedPrivate())
{
// Used to have a valid section but it got deleted so the
// offset doesn't mean anything without the section
@@ -783,6 +783,14 @@ Address::Dump (Stream *s, ExecutionContextScope *exe_scope, DumpStyle style, Dum
bool
Address::SectionWasDeleted() const
{
+ if (GetSection())
+ return false;
+ return SectionWasDeletedPrivate();
+}
+
+bool
+Address::SectionWasDeletedPrivate() const
+{
lldb::SectionWP empty_section_wp;
// If either call to "std::weak_ptr::owner_before(...) value returns true, this
OpenPOWER on IntegriCloud