[lldb][NFC] Fix all formatting errors in .cpp file headers
Summary:
A *.cpp file header in LLDB (and in LLDB) should like this:
```
//===-- TestUtilities.cpp -------------------------------------------------===//
```
However in LLDB most of our source files have arbitrary changes to this format and
these changes are spreading through LLDB as folks usually just use the existing
source files as templates for their new files (most notably the unnecessary
editor language indicator `-*- C++ -*-` is spreading and in every review
someone is pointing out that this is wrong, resulting in people pointing out that this
is done in the same way in other files).
This patch removes most of these inconsistencies including the editor language indicators,
all the different missing/additional '-' characters, files that center the file name, missing
trailing `===//` (mostly caused by clang-format breaking the line).
Reviewers: aprantl, espindola, jfb, shafik, JDevlieghere
Reviewed By: JDevlieghere
Subscribers: dexonsmith, wuzish, emaste, sdardis, nemanjai, kbarton, MaskRay, atanasyan, arphaman, jfb, abidh, jsji, JDevlieghere, usaxena95, lldb-commits
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D73258
2020-01-24 15:23:27 +08:00
|
|
|
//===-- BreakpointResolver.cpp --------------------------------------------===//
|
2010-06-09 00:52:24 +08:00
|
|
|
//
|
2019-01-19 16:50:56 +08:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2010-06-09 00:52:24 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "lldb/Breakpoint/BreakpointResolver.h"
|
|
|
|
|
|
|
|
#include "lldb/Breakpoint/Breakpoint.h"
|
|
|
|
#include "lldb/Breakpoint/BreakpointLocation.h"
|
2018-05-01 00:49:04 +08:00
|
|
|
// Have to include the other breakpoint resolver types here so the static
|
|
|
|
// create from StructuredData can call them.
|
2016-09-13 07:10:56 +08:00
|
|
|
#include "lldb/Breakpoint/BreakpointResolverAddress.h"
|
|
|
|
#include "lldb/Breakpoint/BreakpointResolverFileLine.h"
|
|
|
|
#include "lldb/Breakpoint/BreakpointResolverFileRegex.h"
|
|
|
|
#include "lldb/Breakpoint/BreakpointResolverName.h"
|
2018-09-14 05:35:32 +08:00
|
|
|
#include "lldb/Breakpoint/BreakpointResolverScripted.h"
|
2010-06-09 00:52:24 +08:00
|
|
|
#include "lldb/Core/Address.h"
|
|
|
|
#include "lldb/Core/ModuleList.h"
|
|
|
|
#include "lldb/Core/SearchFilter.h"
|
2013-09-27 09:16:58 +08:00
|
|
|
#include "lldb/Symbol/CompileUnit.h"
|
|
|
|
#include "lldb/Symbol/Function.h"
|
2010-06-09 00:52:24 +08:00
|
|
|
#include "lldb/Symbol/SymbolContext.h"
|
|
|
|
#include "lldb/Target/Target.h"
|
2017-03-04 04:56:28 +08:00
|
|
|
#include "lldb/Utility/Log.h"
|
2017-02-03 05:39:50 +08:00
|
|
|
#include "lldb/Utility/Stream.h"
|
|
|
|
#include "lldb/Utility/StreamString.h"
|
2010-06-09 00:52:24 +08:00
|
|
|
|
|
|
|
using namespace lldb_private;
|
2013-09-27 09:16:58 +08:00
|
|
|
using namespace lldb;
|
2010-06-09 00:52:24 +08:00
|
|
|
|
|
|
|
// BreakpointResolver:
|
2016-09-13 07:10:56 +08:00
|
|
|
const char *BreakpointResolver::g_ty_to_name[] = {"FileAndLine", "Address",
|
|
|
|
"SymbolName", "SourceRegex",
|
2019-10-11 01:44:50 +08:00
|
|
|
"Python", "Exception",
|
|
|
|
"Unknown"};
|
2016-09-13 07:10:56 +08:00
|
|
|
|
2016-09-15 09:47:22 +08:00
|
|
|
const char *BreakpointResolver::g_option_names[static_cast<uint32_t>(
|
|
|
|
BreakpointResolver::OptionNames::LastOptionName)] = {
|
2018-09-14 05:35:32 +08:00
|
|
|
"AddressOffset", "Exact", "FileName", "Inlines", "Language",
|
|
|
|
"LineNumber", "Column", "ModuleName", "NameMask", "Offset",
|
|
|
|
"PythonClass", "Regex", "ScriptArgs", "SectionName", "SearchDepth",
|
|
|
|
"SkipPrologue", "SymbolNames"};
|
2016-09-13 07:10:56 +08:00
|
|
|
|
|
|
|
const char *BreakpointResolver::ResolverTyToName(enum ResolverTy type) {
|
|
|
|
if (type > LastKnownResolverType)
|
|
|
|
return g_ty_to_name[UnknownResolver];
|
|
|
|
|
|
|
|
return g_ty_to_name[type];
|
|
|
|
}
|
|
|
|
|
|
|
|
BreakpointResolver::ResolverTy
|
2017-05-12 13:49:54 +08:00
|
|
|
BreakpointResolver::NameToResolverTy(llvm::StringRef name) {
|
2016-09-13 07:10:56 +08:00
|
|
|
for (size_t i = 0; i < LastKnownResolverType; i++) {
|
2017-05-12 13:49:54 +08:00
|
|
|
if (name == g_ty_to_name[i])
|
2016-09-13 07:10:56 +08:00
|
|
|
return (ResolverTy)i;
|
|
|
|
}
|
|
|
|
return UnknownResolver;
|
|
|
|
}
|
|
|
|
|
2020-03-03 18:29:12 +08:00
|
|
|
BreakpointResolver::BreakpointResolver(const BreakpointSP &bkpt,
|
2016-03-10 02:59:13 +08:00
|
|
|
const unsigned char resolverTy,
|
|
|
|
lldb::addr_t offset)
|
2010-10-29 01:27:46 +08:00
|
|
|
: m_breakpoint(bkpt), m_offset(offset), SubclassID(resolverTy) {}
|
2010-06-09 00:52:24 +08:00
|
|
|
|
2021-07-03 02:27:37 +08:00
|
|
|
BreakpointResolver::~BreakpointResolver() = default;
|
2010-06-09 00:52:24 +08:00
|
|
|
|
2016-09-13 07:10:56 +08:00
|
|
|
BreakpointResolverSP BreakpointResolver::CreateFromStructuredData(
|
2017-05-12 12:51:55 +08:00
|
|
|
const StructuredData::Dictionary &resolver_dict, Status &error) {
|
2016-09-13 07:10:56 +08:00
|
|
|
BreakpointResolverSP result_sp;
|
|
|
|
if (!resolver_dict.IsValid()) {
|
|
|
|
error.SetErrorString("Can't deserialize from an invalid data object.");
|
|
|
|
return result_sp;
|
|
|
|
}
|
|
|
|
|
2017-05-12 13:49:54 +08:00
|
|
|
llvm::StringRef subclass_name;
|
2016-09-13 07:10:56 +08:00
|
|
|
|
|
|
|
bool success = resolver_dict.GetValueForKeyAsString(
|
|
|
|
GetSerializationSubclassKey(), subclass_name);
|
|
|
|
|
|
|
|
if (!success) {
|
2020-07-21 13:57:06 +08:00
|
|
|
error.SetErrorString("Resolver data missing subclass resolver key");
|
2016-09-13 07:10:56 +08:00
|
|
|
return result_sp;
|
|
|
|
}
|
|
|
|
|
2017-05-12 13:49:54 +08:00
|
|
|
ResolverTy resolver_type = NameToResolverTy(subclass_name);
|
2016-09-13 07:10:56 +08:00
|
|
|
if (resolver_type == UnknownResolver) {
|
2017-05-12 13:49:54 +08:00
|
|
|
error.SetErrorStringWithFormatv("Unknown resolver type: {0}.",
|
|
|
|
subclass_name);
|
2016-09-13 07:10:56 +08:00
|
|
|
return result_sp;
|
|
|
|
}
|
|
|
|
|
|
|
|
StructuredData::Dictionary *subclass_options = nullptr;
|
|
|
|
success = resolver_dict.GetValueForKeyAsDictionary(
|
|
|
|
GetSerializationSubclassOptionsKey(), subclass_options);
|
|
|
|
if (!success || !subclass_options || !subclass_options->IsValid()) {
|
|
|
|
error.SetErrorString("Resolver data missing subclass options key.");
|
|
|
|
return result_sp;
|
|
|
|
}
|
|
|
|
|
|
|
|
lldb::addr_t offset;
|
|
|
|
success = subclass_options->GetValueForKeyAsInteger(
|
|
|
|
GetKey(OptionNames::Offset), offset);
|
|
|
|
if (!success) {
|
|
|
|
error.SetErrorString("Resolver data missing offset options key.");
|
|
|
|
return result_sp;
|
|
|
|
}
|
|
|
|
|
|
|
|
BreakpointResolver *resolver;
|
|
|
|
|
|
|
|
switch (resolver_type) {
|
|
|
|
case FileLineResolver:
|
|
|
|
resolver = BreakpointResolverFileLine::CreateFromStructuredData(
|
|
|
|
nullptr, *subclass_options, error);
|
|
|
|
break;
|
|
|
|
case AddressResolver:
|
|
|
|
resolver = BreakpointResolverAddress::CreateFromStructuredData(
|
|
|
|
nullptr, *subclass_options, error);
|
|
|
|
break;
|
|
|
|
case NameResolver:
|
|
|
|
resolver = BreakpointResolverName::CreateFromStructuredData(
|
|
|
|
nullptr, *subclass_options, error);
|
|
|
|
break;
|
|
|
|
case FileRegexResolver:
|
|
|
|
resolver = BreakpointResolverFileRegex::CreateFromStructuredData(
|
|
|
|
nullptr, *subclass_options, error);
|
|
|
|
break;
|
2018-09-14 05:35:32 +08:00
|
|
|
case PythonResolver:
|
|
|
|
resolver = BreakpointResolverScripted::CreateFromStructuredData(
|
|
|
|
nullptr, *subclass_options, error);
|
|
|
|
break;
|
2016-09-13 07:10:56 +08:00
|
|
|
case ExceptionResolver:
|
|
|
|
error.SetErrorString("Exception resolvers are hard.");
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
llvm_unreachable("Should never get an unresolvable resolver type.");
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!error.Success()) {
|
|
|
|
return result_sp;
|
|
|
|
} else {
|
|
|
|
// Add on the global offset option:
|
|
|
|
resolver->SetOffset(offset);
|
|
|
|
return BreakpointResolverSP(resolver);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
StructuredData::DictionarySP BreakpointResolver::WrapOptionsDict(
|
|
|
|
StructuredData::DictionarySP options_dict_sp) {
|
|
|
|
if (!options_dict_sp || !options_dict_sp->IsValid())
|
|
|
|
return StructuredData::DictionarySP();
|
|
|
|
|
|
|
|
StructuredData::DictionarySP type_dict_sp(new StructuredData::Dictionary());
|
|
|
|
type_dict_sp->AddStringItem(GetSerializationSubclassKey(), GetResolverName());
|
|
|
|
type_dict_sp->AddItem(GetSerializationSubclassOptionsKey(), options_dict_sp);
|
|
|
|
|
|
|
|
// Add the m_offset to the dictionary:
|
|
|
|
options_dict_sp->AddIntegerItem(GetKey(OptionNames::Offset), m_offset);
|
|
|
|
|
|
|
|
return type_dict_sp;
|
|
|
|
}
|
|
|
|
|
2020-03-03 18:29:12 +08:00
|
|
|
void BreakpointResolver::SetBreakpoint(const BreakpointSP &bkpt) {
|
|
|
|
assert(bkpt);
|
2010-06-09 00:52:24 +08:00
|
|
|
m_breakpoint = bkpt;
|
2018-09-14 05:35:32 +08:00
|
|
|
NotifyBreakpointSet();
|
2010-06-09 00:52:24 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void BreakpointResolver::ResolveBreakpointInModules(SearchFilter &filter,
|
|
|
|
ModuleList &modules) {
|
|
|
|
filter.SearchInModuleList(*this, modules);
|
|
|
|
}
|
|
|
|
|
|
|
|
void BreakpointResolver::ResolveBreakpoint(SearchFilter &filter) {
|
|
|
|
filter.Search(*this);
|
|
|
|
}
|
|
|
|
|
2018-08-30 23:11:00 +08:00
|
|
|
namespace {
|
|
|
|
struct SourceLoc {
|
|
|
|
uint32_t line = UINT32_MAX;
|
2021-05-05 07:03:10 +08:00
|
|
|
uint16_t column;
|
|
|
|
SourceLoc(uint32_t l, llvm::Optional<uint16_t> c)
|
|
|
|
: line(l), column(c ? *c : LLDB_INVALID_COLUMN_NUMBER) {}
|
2018-08-30 23:11:00 +08:00
|
|
|
SourceLoc(const SymbolContext &sc)
|
|
|
|
: line(sc.line_entry.line),
|
2021-05-05 07:03:10 +08:00
|
|
|
column(sc.line_entry.column ? sc.line_entry.column
|
|
|
|
: LLDB_INVALID_COLUMN_NUMBER) {}
|
2018-08-30 23:11:00 +08:00
|
|
|
};
|
|
|
|
|
2021-05-05 07:03:10 +08:00
|
|
|
bool operator<(const SourceLoc lhs, const SourceLoc rhs) {
|
|
|
|
if (lhs.line < rhs.line)
|
2018-08-30 23:11:00 +08:00
|
|
|
return true;
|
2021-05-05 07:03:10 +08:00
|
|
|
if (lhs.line > rhs.line)
|
2018-08-30 23:11:00 +08:00
|
|
|
return false;
|
2021-05-05 07:03:10 +08:00
|
|
|
// uint32_t a_col = lhs.column ? lhs.column : LLDB_INVALID_COLUMN_NUMBER;
|
|
|
|
// uint32_t b_col = rhs.column ? rhs.column : LLDB_INVALID_COLUMN_NUMBER;
|
|
|
|
return lhs.column < rhs.column;
|
2018-08-30 23:11:00 +08:00
|
|
|
}
|
|
|
|
} // namespace
|
|
|
|
|
2021-05-05 07:03:10 +08:00
|
|
|
void BreakpointResolver::SetSCMatchesByLine(
|
|
|
|
SearchFilter &filter, SymbolContextList &sc_list, bool skip_prologue,
|
|
|
|
llvm::StringRef log_ident, uint32_t line, llvm::Optional<uint16_t> column) {
|
2018-08-30 07:16:42 +08:00
|
|
|
llvm::SmallVector<SymbolContext, 16> all_scs;
|
|
|
|
for (uint32_t i = 0; i < sc_list.GetSize(); ++i)
|
|
|
|
all_scs.push_back(sc_list[i]);
|
|
|
|
|
|
|
|
while (all_scs.size()) {
|
|
|
|
uint32_t closest_line = UINT32_MAX;
|
|
|
|
|
|
|
|
// Move all the elements with a matching file spec to the end.
|
|
|
|
auto &match = all_scs[0];
|
|
|
|
auto worklist_begin = std::partition(
|
|
|
|
all_scs.begin(), all_scs.end(), [&](const SymbolContext &sc) {
|
|
|
|
if (sc.line_entry.file == match.line_entry.file ||
|
|
|
|
sc.line_entry.original_file == match.line_entry.original_file) {
|
|
|
|
// When a match is found, keep track of the smallest line number.
|
|
|
|
closest_line = std::min(closest_line, sc.line_entry.line);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
});
|
2018-08-30 23:11:00 +08:00
|
|
|
|
|
|
|
// (worklist_begin, worklist_end) now contains all entries for one filespec.
|
|
|
|
auto worklist_end = all_scs.end();
|
|
|
|
|
|
|
|
if (column) {
|
|
|
|
// If a column was requested, do a more precise match and only
|
2021-05-05 12:28:28 +08:00
|
|
|
// return the first location that comes before or at the
|
2018-08-30 23:11:00 +08:00
|
|
|
// requested location.
|
2021-05-05 07:03:10 +08:00
|
|
|
SourceLoc requested(line, *column);
|
2018-08-30 23:11:00 +08:00
|
|
|
// First, filter out all entries left of the requested column.
|
|
|
|
worklist_end = std::remove_if(
|
|
|
|
worklist_begin, worklist_end,
|
2021-05-05 12:28:28 +08:00
|
|
|
[&](const SymbolContext &sc) { return requested < SourceLoc(sc); });
|
2018-08-30 23:11:00 +08:00
|
|
|
// Sort the remaining entries by (line, column).
|
2019-01-09 07:25:06 +08:00
|
|
|
llvm::sort(worklist_begin, worklist_end,
|
|
|
|
[](const SymbolContext &a, const SymbolContext &b) {
|
|
|
|
return SourceLoc(a) < SourceLoc(b);
|
|
|
|
});
|
2018-08-30 23:11:00 +08:00
|
|
|
|
|
|
|
// Filter out all locations with a source location after the closest match.
|
|
|
|
if (worklist_begin != worklist_end)
|
|
|
|
worklist_end = std::remove_if(
|
|
|
|
worklist_begin, worklist_end, [&](const SymbolContext &sc) {
|
|
|
|
return SourceLoc(*worklist_begin) < SourceLoc(sc);
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
// Remove all entries with a larger line number.
|
|
|
|
// ResolveSymbolContext will always return a number that is >=
|
|
|
|
// the line number you pass in. So the smaller line number is
|
|
|
|
// always better.
|
|
|
|
worklist_end = std::remove_if(worklist_begin, worklist_end,
|
|
|
|
[&](const SymbolContext &sc) {
|
|
|
|
return closest_line != sc.line_entry.line;
|
|
|
|
});
|
|
|
|
}
|
2018-08-30 07:16:42 +08:00
|
|
|
|
|
|
|
// Sort by file address.
|
2019-01-09 07:25:06 +08:00
|
|
|
llvm::sort(worklist_begin, worklist_end,
|
|
|
|
[](const SymbolContext &a, const SymbolContext &b) {
|
|
|
|
return a.line_entry.range.GetBaseAddress().GetFileAddress() <
|
|
|
|
b.line_entry.range.GetBaseAddress().GetFileAddress();
|
|
|
|
});
|
2018-08-30 07:16:42 +08:00
|
|
|
|
|
|
|
// Go through and see if there are line table entries that are
|
|
|
|
// contiguous, and if so keep only the first of the contiguous range.
|
|
|
|
// We do this by picking the first location in each lexical block.
|
|
|
|
llvm::SmallDenseSet<Block *, 8> blocks_with_breakpoints;
|
|
|
|
for (auto first = worklist_begin; first != worklist_end; ++first) {
|
|
|
|
assert(!blocks_with_breakpoints.count(first->block));
|
|
|
|
blocks_with_breakpoints.insert(first->block);
|
|
|
|
worklist_end =
|
|
|
|
std::remove_if(std::next(first), worklist_end,
|
|
|
|
[&](const SymbolContext &sc) {
|
|
|
|
return blocks_with_breakpoints.count(sc.block);
|
|
|
|
});
|
2016-09-07 04:57:50 +08:00
|
|
|
}
|
2010-06-09 00:52:24 +08:00
|
|
|
|
2018-08-30 07:16:42 +08:00
|
|
|
// Make breakpoints out of the closest line number match.
|
|
|
|
for (auto &sc : llvm::make_range(worklist_begin, worklist_end))
|
|
|
|
AddLocation(filter, sc, skip_prologue, log_ident);
|
2016-09-07 04:57:50 +08:00
|
|
|
|
2018-08-30 07:16:42 +08:00
|
|
|
// Remove all contexts processed by this iteration.
|
|
|
|
all_scs.erase(worklist_begin, all_scs.end());
|
|
|
|
}
|
|
|
|
}
|
2016-09-07 04:57:50 +08:00
|
|
|
|
2018-08-30 07:16:42 +08:00
|
|
|
void BreakpointResolver::AddLocation(SearchFilter &filter,
|
|
|
|
const SymbolContext &sc,
|
|
|
|
bool skip_prologue,
|
|
|
|
llvm::StringRef log_ident) {
|
|
|
|
Log *log(lldb_private::GetLogIfAllCategoriesSet(LIBLLDB_LOG_BREAKPOINTS));
|
|
|
|
Address line_start = sc.line_entry.range.GetBaseAddress();
|
|
|
|
if (!line_start.IsValid()) {
|
2019-07-25 01:56:10 +08:00
|
|
|
LLDB_LOGF(log,
|
|
|
|
"error: Unable to set breakpoint %s at file address "
|
|
|
|
"0x%" PRIx64 "\n",
|
|
|
|
log_ident.str().c_str(), line_start.GetFileAddress());
|
2018-08-30 07:16:42 +08:00
|
|
|
return;
|
|
|
|
}
|
2016-09-07 04:57:50 +08:00
|
|
|
|
2018-08-30 07:16:42 +08:00
|
|
|
if (!filter.AddressPasses(line_start)) {
|
2019-07-25 01:56:10 +08:00
|
|
|
LLDB_LOGF(log,
|
|
|
|
"Breakpoint %s at file address 0x%" PRIx64
|
|
|
|
" didn't pass the filter.\n",
|
|
|
|
log_ident.str().c_str(), line_start.GetFileAddress());
|
2018-08-30 07:16:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// If the line number is before the prologue end, move it there...
|
|
|
|
bool skipped_prologue = false;
|
|
|
|
if (skip_prologue && sc.function) {
|
|
|
|
Address prologue_addr(sc.function->GetAddressRange().GetBaseAddress());
|
|
|
|
if (prologue_addr.IsValid() && (line_start == prologue_addr)) {
|
|
|
|
const uint32_t prologue_byte_size = sc.function->GetPrologueByteSize();
|
|
|
|
if (prologue_byte_size) {
|
|
|
|
prologue_addr.Slide(prologue_byte_size);
|
|
|
|
|
|
|
|
if (filter.AddressPasses(prologue_addr)) {
|
|
|
|
skipped_prologue = true;
|
|
|
|
line_start = prologue_addr;
|
2013-09-27 09:16:58 +08:00
|
|
|
}
|
2016-09-07 04:57:50 +08:00
|
|
|
}
|
2013-09-27 09:16:58 +08:00
|
|
|
}
|
2016-09-07 04:57:50 +08:00
|
|
|
}
|
2018-08-30 07:16:42 +08:00
|
|
|
|
|
|
|
BreakpointLocationSP bp_loc_sp(AddLocation(line_start));
|
2020-03-03 18:29:12 +08:00
|
|
|
if (log && bp_loc_sp && !GetBreakpoint()->IsInternal()) {
|
2018-08-30 07:16:42 +08:00
|
|
|
StreamString s;
|
|
|
|
bp_loc_sp->GetDescription(&s, lldb::eDescriptionLevelVerbose);
|
2019-07-25 01:56:10 +08:00
|
|
|
LLDB_LOGF(log, "Added location (skipped prologue: %s): %s \n",
|
|
|
|
skipped_prologue ? "yes" : "no", s.GetData());
|
2018-08-30 07:16:42 +08:00
|
|
|
}
|
2013-09-27 09:16:58 +08:00
|
|
|
}
|
2016-03-10 02:59:13 +08:00
|
|
|
|
|
|
|
BreakpointLocationSP BreakpointResolver::AddLocation(Address loc_addr,
|
|
|
|
bool *new_location) {
|
|
|
|
loc_addr.Slide(m_offset);
|
2020-03-03 18:29:12 +08:00
|
|
|
return GetBreakpoint()->AddLocation(loc_addr, new_location);
|
2016-03-10 02:59:13 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void BreakpointResolver::SetOffset(lldb::addr_t offset) {
|
|
|
|
// There may already be an offset, so we are actually adjusting location
|
|
|
|
// addresses by the difference.
|
|
|
|
// lldb::addr_t slide = offset - m_offset;
|
2018-08-30 07:16:42 +08:00
|
|
|
// FIXME: We should go fix up all the already set locations for the new
|
|
|
|
// slide.
|
2016-03-10 02:59:13 +08:00
|
|
|
|
|
|
|
m_offset = offset;
|
|
|
|
}
|