diff options
author | Jim Ingham <jingham@apple.com> | 2012-03-01 00:50:50 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2012-03-01 00:50:50 +0000 |
commit | b5c0d1ccbd7e42ea6f26767436d1dc33bee1989f (patch) | |
tree | 023318a13237bc54ad058d61cad776e34ea39a66 /lldb/source/Target/StackID.cpp | |
parent | 76e66c31a0481e72d1ff86c56028d850b6c33cff (diff) | |
download | bcm5719-llvm-b5c0d1ccbd7e42ea6f26767436d1dc33bee1989f.tar.gz bcm5719-llvm-b5c0d1ccbd7e42ea6f26767436d1dc33bee1989f.zip |
Convert the thread plans over from using the stack count to do their logic to using StackID's. This
should be more efficient.
llvm-svn: 151780
Diffstat (limited to 'lldb/source/Target/StackID.cpp')
-rw-r--r-- | lldb/source/Target/StackID.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/source/Target/StackID.cpp b/lldb/source/Target/StackID.cpp index c430c3a38a4..1b55b722d3c 100644 --- a/lldb/source/Target/StackID.cpp +++ b/lldb/source/Target/StackID.cpp @@ -75,6 +75,12 @@ lldb_private::operator< (const StackID& lhs, const StackID& rhs) const lldb::addr_t lhs_cfa = lhs.GetCallFrameAddress(); const lldb::addr_t rhs_cfa = rhs.GetCallFrameAddress(); + // FIXME: We are assuming that the stacks grow downward in memory. That's not necessary, but true on + // all the machines we care about at present. If this changes, we'll have to deal with that. The ABI is the + // agent who knows this ordering, but the StackID has no access to the ABI. The most straightforward way + // to handle this is to add a "m_grows_downward" bool to the StackID, and set it in the constructor. + // But I'm not going to waste a bool per StackID on this till we need it. + if (lhs_cfa != rhs_cfa) return lhs_cfa < rhs_cfa; |