forked from OSchip/llvm-project
[lldb] NFC: Fix trivial typo in comments, documents, and messages
Differential Revision: https://reviews.llvm.org/D77460
This commit is contained in:
parent
ad08ecbd16
commit
e9264b746b
|
@ -152,7 +152,7 @@ public:
|
|||
sibling = property(GetSibling, None, doc='''A read only property that returns the same result as GetSibling().''')
|
||||
name = property(GetInlinedName, None, doc='''A read only property that returns the same result as GetInlinedName().''')
|
||||
inlined_block = property(GetContainingInlinedBlock, None, doc='''A read only property that returns the same result as GetContainingInlinedBlock().''')
|
||||
range = property(get_ranges_access_object, None, doc='''A read only property that allows item access to the address ranges for a block by integer (range = block.range[0]) and by lldb.SBAdddress (find the range that contains the specified lldb.SBAddress like "pc_range = lldb.frame.block.range[frame.addr]").''')
|
||||
range = property(get_ranges_access_object, None, doc='''A read only property that allows item access to the address ranges for a block by integer (range = block.range[0]) and by lldb.SBAddress (find the range that contains the specified lldb.SBAddress like "pc_range = lldb.frame.block.range[frame.addr]").''')
|
||||
ranges = property(get_ranges_array, None, doc='''A read only property that returns a list() object that contains all of the address ranges for the block.''')
|
||||
num_ranges = property(GetNumRanges, None, doc='''A read only property that returns the same result as GetNumRanges().''')
|
||||
%}
|
||||
|
|
|
@ -59,7 +59,7 @@ public:
|
|||
uint32_t
|
||||
GetTimeoutInMicroSeconds () const;
|
||||
|
||||
%feature("docstring", "Sets the timeout in microseconds to run the expression for. If try all threads is set to true and the expression doesn't complete within the specified timeout, all threads will be resumed for the same timeout to see if the expresson will finish.") SetTimeoutInMicroSeconds;
|
||||
%feature("docstring", "Sets the timeout in microseconds to run the expression for. If try all threads is set to true and the expression doesn't complete within the specified timeout, all threads will be resumed for the same timeout to see if the expression will finish.") SetTimeoutInMicroSeconds;
|
||||
void
|
||||
SetTimeoutInMicroSeconds (uint32_t timeout = 0);
|
||||
|
||||
|
@ -80,7 +80,7 @@ public:
|
|||
bool
|
||||
GetStopOthers () const;
|
||||
|
||||
%feature("docstring", "Sets whether to stop other threads at all while running expressins. If false, TryAllThreads does nothing.") SetTryAllThreads;
|
||||
%feature("docstring", "Sets whether to stop other threads at all while running expressions. If false, TryAllThreads does nothing.") SetTryAllThreads;
|
||||
void
|
||||
SetStopOthers (bool stop_others = true);
|
||||
|
||||
|
|
|
@ -92,7 +92,7 @@ public:
|
|||
SBFile, call SBFile.Close().
|
||||
|
||||
If there is no underlying python file to unwrap, GetFile will
|
||||
use the file descriptor, if availble to create a new python
|
||||
use the file descriptor, if available to create a new python
|
||||
file object using `open(fd, mode=..., closefd=False)`
|
||||
");
|
||||
FileSP GetFile();
|
||||
|
|
|
@ -351,7 +351,7 @@ incompatible with the flags that gdb specifies.
|
|||
// response is F followed by the opened file descriptor in base 10.
|
||||
// "F-1,errno" with the errno if an error occurs.
|
||||
//
|
||||
// COMPATABILITY
|
||||
// COMPATIBILITY
|
||||
// The gdb-remote serial protocol documentatio defines a vFile:open:
|
||||
// packet which uses incompatible flag values, e.g. 1 means O_WRONLY
|
||||
// in gdb's vFile:open:, but it means eOpenOptionRead to lldb's
|
||||
|
|
|
@ -147,7 +147,7 @@ typedef std::tr1::shared_ptr<String> StringSP;
|
|||
|
||||
// FDEvent
|
||||
//
|
||||
// A class that describes a file desciptor event.
|
||||
// A class that describes a file descriptor event.
|
||||
//
|
||||
// File descriptor events fall into one of two categories: create events
|
||||
// and delete events.
|
||||
|
@ -185,7 +185,7 @@ private:
|
|||
// The frames for the stack backtrace for this event
|
||||
Frames m_frames;
|
||||
// If this is a file descriptor delete event, this might contain
|
||||
// the correspoding file descriptor create event
|
||||
// the corresponding file descriptor create event
|
||||
FDEventSP m_create_event_sp;
|
||||
// The file descriptor for this event
|
||||
int m_fd;
|
||||
|
@ -232,18 +232,18 @@ typedef std::map<int, FDEventArray> FDEventMap;
|
|||
// event is detected, the open event will be removed and placed into
|
||||
// the close event so if something tries to double close a file
|
||||
// descriptor we can show the previous close event and the file
|
||||
// desctiptor event that created it. When a new file descriptor create
|
||||
// descriptor event that created it. When a new file descriptor create
|
||||
// event comes in, we will remove the previous one for that file
|
||||
// desctiptor unless the environment variable
|
||||
// descriptor unless the environment variable
|
||||
// "FileDescriptorStackLoggingNoCompact"
|
||||
// is set. The file desctiptor history can be accessed using the
|
||||
// is set. The file descriptor history can be accessed using the
|
||||
// get_fd_history() function.
|
||||
static FDEventMap g_fd_event_map;
|
||||
// A mutex to protect access to our data structures in g_fd_event_map
|
||||
// and also our logging messages
|
||||
static pthread_mutex_t g_mutex = PTHREAD_MUTEX_INITIALIZER;
|
||||
// Log all file descriptor create and close events by default. Only log
|
||||
// warnings and erros if the "FileDescriptorMinimalLogging" environment
|
||||
// warnings and errors if the "FileDescriptorMinimalLogging" environment
|
||||
// variable is set.
|
||||
static int g_log_all_calls = 1;
|
||||
// We compact the file descriptor events by default. Set the environment
|
||||
|
@ -498,7 +498,7 @@ void save_backtrace(int fd, int err, const StringSP &string_sp,
|
|||
fd);
|
||||
} else if (g_compact) {
|
||||
// We are compacting so we remove previous create event
|
||||
// when we get the correspinding delete event
|
||||
// when we get the corresponding delete event
|
||||
event_array.pop_back();
|
||||
}
|
||||
} else {
|
||||
|
@ -518,7 +518,7 @@ void save_backtrace(int fd, int err, const StringSP &string_sp,
|
|||
// that this close if for...
|
||||
fd_event_sp->SetCreateEvent(event_array.back());
|
||||
// We are compacting so we remove previous create event
|
||||
// when we get the correspinding delete event
|
||||
// when we get the corresponding delete event
|
||||
event_array.pop_back();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -965,7 +965,7 @@ class Mach:
|
|||
result = False
|
||||
print('error: section %s is missing in %s' % (lhs_section.sectname, rhs.path))
|
||||
else:
|
||||
print('error: comaparing a %s mach-o file with a %s mach-o file is not supported' % (self.type, rhs.type))
|
||||
print('error: comparing a %s mach-o file with a %s mach-o file is not supported' % (self.type, rhs.type))
|
||||
result = False
|
||||
if not result:
|
||||
print('error: mach files differ')
|
||||
|
|
|
@ -118,7 +118,7 @@ struct LineEntry {
|
|||
/// range.
|
||||
///
|
||||
/// If the initial LineEntry this method is called on is a line #0, only the
|
||||
/// range of contiuous LineEntries with line #0 will be included in the
|
||||
/// range of continuous LineEntries with line #0 will be included in the
|
||||
/// complete range.
|
||||
///
|
||||
/// @param[in] include_inlined_functions
|
||||
|
|
|
@ -182,7 +182,7 @@ public:
|
|||
};
|
||||
/// If \c type_uid points to an array type, return its characteristics.
|
||||
/// To support variable-length array types, this function takes an
|
||||
/// optional \p ExtecutionContext. If \c exe_ctx is non-null, the
|
||||
/// optional \p ExecutionContext. If \c exe_ctx is non-null, the
|
||||
/// dynamic characteristics for that context are returned.
|
||||
virtual llvm::Optional<ArrayInfo>
|
||||
GetDynamicArrayInfoForUID(lldb::user_id_t type_uid,
|
||||
|
|
|
@ -827,18 +827,18 @@ public:
|
|||
virtual size_t ConnectToWaitingProcesses(lldb_private::Debugger &debugger,
|
||||
lldb_private::Status &error);
|
||||
|
||||
/// Gather all of crash informations into a structured data dictionnary.
|
||||
/// Gather all of crash informations into a structured data dictionary.
|
||||
///
|
||||
/// If the platform have a crashed process with crash information entries,
|
||||
/// gather all the entries into an structured data dictionnary or return a
|
||||
/// nullptr. This dictionnary is generic and extensible, as it contains an
|
||||
/// gather all the entries into an structured data dictionary or return a
|
||||
/// nullptr. This dictionary is generic and extensible, as it contains an
|
||||
/// array for each different type of crash information.
|
||||
///
|
||||
/// \param[in] process
|
||||
/// The crashed process.
|
||||
///
|
||||
/// \return
|
||||
/// A structured data dictionnary containing at each entry, the crash
|
||||
/// A structured data dictionary containing at each entry, the crash
|
||||
/// information type as the entry key and the matching an array as the
|
||||
/// entry value. \b nullptr if not implemented or if the process has no
|
||||
/// crash information entry. \b error if an error occured.
|
||||
|
|
|
@ -2922,7 +2922,7 @@ private:
|
|||
DISALLOW_COPY_AND_ASSIGN(Process);
|
||||
};
|
||||
|
||||
/// RAII guard that should be aquired when an utility function is called within
|
||||
/// RAII guard that should be acquired when an utility function is called within
|
||||
/// a given process.
|
||||
class UtilityFunctionScope {
|
||||
Process *m_process;
|
||||
|
|
|
@ -963,7 +963,7 @@ public:
|
|||
///
|
||||
/// \param[in] set_platform
|
||||
/// If \b true, then the platform will be adjusted if the currently
|
||||
/// selected platform is not compatible with the archicture being set.
|
||||
/// selected platform is not compatible with the architecture being set.
|
||||
/// If \b false, then just the architecture will be set even if the
|
||||
/// currently selected platform isn't compatible (in case it might be
|
||||
/// manually set following this function call).
|
||||
|
|
|
@ -251,7 +251,7 @@ namespace lldb_private {
|
|||
// However, if the plan doesn't want to be
|
||||
// the stop reason, then it can call SetPlanComplete and pass in "false" for
|
||||
// the "success" parameter. In that case,
|
||||
// the real stop reason will be used instead. One exapmle of this is the
|
||||
// the real stop reason will be used instead. One example of this is the
|
||||
// "StepRangeStepIn" thread plan. If it stops
|
||||
// because of a crash or breakpoint hit, it wants to unship itself, because it
|
||||
// isn't so useful to have step in keep going
|
||||
|
|
|
@ -125,7 +125,7 @@ public:
|
|||
/// Subclasses must override this function.
|
||||
///
|
||||
/// \param[in] dst
|
||||
/// A desination buffer that must be at least \a dst_len bytes
|
||||
/// A destination buffer that must be at least \a dst_len bytes
|
||||
/// long.
|
||||
///
|
||||
/// \param[in] dst_len
|
||||
|
|
|
@ -134,7 +134,7 @@ public:
|
|||
static char ID;
|
||||
};
|
||||
|
||||
/// Provider for the LLDB current working directroy.
|
||||
/// Provider for the LLDB current working directory.
|
||||
///
|
||||
/// When the reproducer is kept, it writes lldb's current working directory to
|
||||
/// a file named cwd.txt in the reproducer root.
|
||||
|
|
|
@ -111,7 +111,7 @@ public:
|
|||
|
||||
/// Set accessor from a kern_return_t.
|
||||
///
|
||||
/// Set accesssor for the error value to \a err and the error type to \c
|
||||
/// Set accessor for the error value to \a err and the error type to \c
|
||||
/// MachKernel.
|
||||
///
|
||||
/// \param[in] err
|
||||
|
@ -123,9 +123,9 @@ public:
|
|||
int SetExpressionErrorWithFormat(lldb::ExpressionResults, const char *format,
|
||||
...) __attribute__((format(printf, 3, 4)));
|
||||
|
||||
/// Set accesssor with an error value and type.
|
||||
/// Set accessor with an error value and type.
|
||||
///
|
||||
/// Set accesssor for the error value to \a err and the error type to \a
|
||||
/// Set accessor for the error value to \a err and the error type to \a
|
||||
/// type.
|
||||
///
|
||||
/// \param[in] err
|
||||
|
|
|
@ -642,7 +642,7 @@ class Base(unittest2.TestCase):
|
|||
lldb.remote_platform.SetWorkingDirectory(remote_test_dir)
|
||||
|
||||
# This function removes all files from the current working directory while leaving
|
||||
# the directories in place. The cleaup is required to reduce the disk space required
|
||||
# the directories in place. The cleanup is required to reduce the disk space required
|
||||
# by the test suite while leaving the directories untouched is neccessary because
|
||||
# sub-directories might belong to an other test
|
||||
def clean_working_directory():
|
||||
|
@ -942,12 +942,12 @@ class Base(unittest2.TestCase):
|
|||
# =======================================================================
|
||||
|
||||
def setTearDownCleanup(self, dictionary=None):
|
||||
"""Register a cleanup action at tearDown() time with a dictinary"""
|
||||
"""Register a cleanup action at tearDown() time with a dictionary"""
|
||||
self.dict = dictionary
|
||||
self.doTearDownCleanup = True
|
||||
|
||||
def addTearDownCleanup(self, dictionary):
|
||||
"""Add a cleanup action at tearDown() time with a dictinary"""
|
||||
"""Add a cleanup action at tearDown() time with a dictionary"""
|
||||
self.dicts.append(dictionary)
|
||||
self.doTearDownCleanups = True
|
||||
|
||||
|
@ -1152,7 +1152,7 @@ class Base(unittest2.TestCase):
|
|||
|
||||
# We are here because self.tearDown() detected that this test instance
|
||||
# either errored or failed. The lldb.test_result singleton contains
|
||||
# two lists (erros and failures) which get populated by the unittest
|
||||
# two lists (errors and failures) which get populated by the unittest
|
||||
# framework. Look over there for stack trace information.
|
||||
#
|
||||
# The lists contain 2-tuples of TestCase instances and strings holding
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
This directory contains source and tests for the lldb test runner
|
||||
architecture. This directory is not for lldb python tests. It
|
||||
is the test runner. The tests under this diretory are test-runner
|
||||
is the test runner. The tests under this directory are test-runner
|
||||
tests (i.e. tests that verify the test runner itself runs properly).
|
||||
|
||||
|
|
|
@ -161,7 +161,7 @@ class DebugCommunication(object):
|
|||
indicate a new packet is available. Returns True if the caller
|
||||
should keep calling this function for more packets.
|
||||
'''
|
||||
# If EOF, notify the read thread by enqueing a None.
|
||||
# If EOF, notify the read thread by enqueuing a None.
|
||||
if not packet:
|
||||
self.enqueue_recv_packet(None)
|
||||
return False
|
||||
|
@ -788,7 +788,7 @@ class DebugCommunication(object):
|
|||
self.threads = body['threads']
|
||||
for thread in self.threads:
|
||||
# Copy the thread dictionary so we can add key/value pairs to
|
||||
# it without affecfting the original info from the "threads"
|
||||
# it without affecting the original info from the "threads"
|
||||
# command.
|
||||
tid = thread['id']
|
||||
if tid in self.thread_stop_reasons:
|
||||
|
@ -1018,7 +1018,7 @@ def main():
|
|||
dest='attach',
|
||||
default=False,
|
||||
help=('Specify this option to attach to a process by name. The '
|
||||
'process name is the basanme of the executable specified with '
|
||||
'process name is the basename of the executable specified with '
|
||||
'the --program option.'))
|
||||
|
||||
parser.add_option(
|
||||
|
|
|
@ -48,7 +48,7 @@ def verify_api(all_args):
|
|||
type='string',
|
||||
action='append',
|
||||
dest='archs',
|
||||
help='architecure to use when checking the api')
|
||||
help='architecture to use when checking the api')
|
||||
parser.add_option(
|
||||
'-r',
|
||||
'--api-regex',
|
||||
|
|
|
@ -1038,7 +1038,7 @@ protected:
|
|||
// set a watchpoint.
|
||||
if (raw_command.trim().empty()) {
|
||||
result.GetErrorStream().Printf("error: required argument missing; "
|
||||
"specify an expression to evaulate into "
|
||||
"specify an expression to evaluate into "
|
||||
"the address to watch for\n");
|
||||
result.SetStatus(eReturnStatusFailed);
|
||||
return false;
|
||||
|
|
|
@ -2409,7 +2409,7 @@ void FormatEntity::AutoComplete(CompletionRequest &request) {
|
|||
|
||||
llvm::StringRef partial_variable(str.substr(dollar_pos + 2));
|
||||
if (partial_variable.empty()) {
|
||||
// Suggest all top level entites as we are just past "${"
|
||||
// Suggest all top level entities as we are just past "${"
|
||||
StringList new_matches;
|
||||
AddMatches(&g_root, str, llvm::StringRef(), new_matches);
|
||||
request.AddCompletions(new_matches);
|
||||
|
|
|
@ -35,7 +35,7 @@ using namespace lldb_private::line_editor;
|
|||
// with until TERM is set to VT100 where it stumbles over an implementation
|
||||
// assumption that may not exist on other platforms. The setupterm() function
|
||||
// would normally require headers that don't work gracefully in this context,
|
||||
// so the function declaraction has been hoisted here.
|
||||
// so the function declaration has been hoisted here.
|
||||
#if defined(__APPLE__)
|
||||
extern "C" {
|
||||
int setupterm(char *term, int fildes, int *errret);
|
||||
|
|
|
@ -650,7 +650,7 @@ Status NativeProcessProtocol::ReadMemoryWithoutTrap(lldb::addr_t addr,
|
|||
auto saved_opcodes = makeArrayRef(pair.second.saved_opcodes);
|
||||
|
||||
if (bp_addr + saved_opcodes.size() < addr || addr + bytes_read <= bp_addr)
|
||||
continue; // Breapoint not in range, ignore
|
||||
continue; // Breakpoint not in range, ignore
|
||||
|
||||
if (bp_addr < addr) {
|
||||
saved_opcodes = saved_opcodes.drop_front(addr - bp_addr);
|
||||
|
|
|
@ -522,7 +522,7 @@ ValueObjectSP ABISysV_arc::GetReturnValueObjectImpl(Thread &thread,
|
|||
// Integer return type.
|
||||
else if (retType.isIntegerTy()) {
|
||||
size_t byte_size = retType.getPrimitiveSizeInBits();
|
||||
if (1 != byte_size) // For boolian type.
|
||||
if (1 != byte_size) // For boolean type.
|
||||
byte_size /= CHAR_BIT;
|
||||
|
||||
auto raw_value = ReadRawValue(reg_ctx, byte_size);
|
||||
|
|
|
@ -681,7 +681,7 @@ bool DynamicLoaderDarwin::AddModulesUsingImageInfos(
|
|||
loaded_module_list.AppendIfNeeded(image_module_sp);
|
||||
}
|
||||
|
||||
// macCataylst support:
|
||||
// macCatalyst support:
|
||||
// Update the module's platform with the DYLD info.
|
||||
ArchSpec dyld_spec = image_infos[idx].GetArchitecture();
|
||||
if (dyld_spec.GetTriple().getOS() == llvm::Triple::IOS &&
|
||||
|
|
|
@ -136,7 +136,7 @@ protected:
|
|||
|
||||
void LoadVDSO();
|
||||
|
||||
// Loading an interpreter module (if present) assumming m_interpreter_base
|
||||
// Loading an interpreter module (if present) assuming m_interpreter_base
|
||||
// already points to its base address.
|
||||
lldb::ModuleSP LoadInterpreterModule();
|
||||
|
||||
|
|
|
@ -716,7 +716,7 @@ class CodeComplete : public CodeCompleteConsumer {
|
|||
return cmd;
|
||||
}
|
||||
|
||||
/// Attemps to merge the given completion from the given position into the
|
||||
/// Attempts to merge the given completion from the given position into the
|
||||
/// existing command. Returns the completion string that can be returned to
|
||||
/// the lldb completion API.
|
||||
std::string mergeCompletion(StringRef existing, unsigned pos,
|
||||
|
|
|
@ -56,7 +56,7 @@ class CppModuleConfiguration {
|
|||
bool analyzeFile(const FileSpec &f);
|
||||
|
||||
public:
|
||||
/// Creates a configuraiton by analyzing the given list of used source files.
|
||||
/// Creates a configuration by analyzing the given list of used source files.
|
||||
///
|
||||
/// Currently only looks at the used paths and doesn't actually access the
|
||||
/// files on the disk.
|
||||
|
|
|
@ -7223,7 +7223,7 @@ bool EmulateInstructionARM::EmulateLDRHImmediate(const uint32_t opcode,
|
|||
return true;
|
||||
}
|
||||
|
||||
// LDRH (literal) caculates an address from the PC value and an immediate
|
||||
// LDRH (literal) calculates an address from the PC value and an immediate
|
||||
// offset, loads a halfword from memory,
|
||||
// zero-extends it to form a 32-bit word, and writes it to a register.
|
||||
bool EmulateInstructionARM::EmulateLDRHLiteral(const uint32_t opcode,
|
||||
|
@ -8509,7 +8509,7 @@ bool EmulateInstructionARM::EmulateSXTH(const uint32_t opcode,
|
|||
return true;
|
||||
}
|
||||
|
||||
// UXTB extracts an 8-bit value from a register, zero-extneds it to 32 bits, and
|
||||
// UXTB extracts an 8-bit value from a register, zero-extends it to 32 bits, and
|
||||
// writes the result to the destination
|
||||
// register. You can specify a rotation by 0, 8, 16, or 24 bits before
|
||||
// extracting the 8-bit value.
|
||||
|
|
|
@ -203,7 +203,7 @@ protected:
|
|||
|
||||
bool nonvolatile_reg_p(uint32_t regnum);
|
||||
|
||||
const char *GetRegisterName(unsigned reg_num, bool altnernate_name);
|
||||
const char *GetRegisterName(unsigned reg_num, bool alternate_name);
|
||||
|
||||
private:
|
||||
std::unique_ptr<llvm::MCDisassembler> m_disasm;
|
||||
|
|
|
@ -168,7 +168,7 @@ protected:
|
|||
|
||||
bool nonvolatile_reg_p(uint64_t regnum);
|
||||
|
||||
const char *GetRegisterName(unsigned reg_num, bool altnernate_name);
|
||||
const char *GetRegisterName(unsigned reg_num, bool alternate_name);
|
||||
|
||||
private:
|
||||
std::unique_ptr<llvm::MCDisassembler> m_disasm;
|
||||
|
|
|
@ -127,7 +127,7 @@ static bool IsTrivialBasename(const llvm::StringRef &basename) {
|
|||
return false; // Empty string or "~"
|
||||
|
||||
if (!std::isalpha(basename[idx]) && basename[idx] != '_')
|
||||
return false; // First charater (after removing the possible '~'') isn't in
|
||||
return false; // First character (after removing the possible '~'') isn't in
|
||||
// [A-Za-z_]
|
||||
|
||||
// Read all characters matching [A-Za-z_0-9]
|
||||
|
|
|
@ -69,7 +69,7 @@ public:
|
|||
/// Obtain a ThreadPlan to get us into C++ constructs such as std::function.
|
||||
///
|
||||
/// \param[in] thread
|
||||
/// Curent thrad of execution.
|
||||
/// Current thrad of execution.
|
||||
///
|
||||
/// \param[in] stop_others
|
||||
/// True if other threads should pause during execution.
|
||||
|
|
|
@ -2781,7 +2781,7 @@ Symtab *ObjectFileELF::GetSymtab() {
|
|||
m_symtab_up.reset(new Symtab(this));
|
||||
|
||||
// In the event that there's no symbol entry for the entry point we'll
|
||||
// artifically create one. We delegate to the symtab object the figuring
|
||||
// artificially create one. We delegate to the symtab object the figuring
|
||||
// out of the proper size, this will usually make it span til the next
|
||||
// symbol it finds in the section. This means that if there are missing
|
||||
// symbols the entry point might span beyond its function definition.
|
||||
|
@ -2878,7 +2878,7 @@ void ObjectFileELF::ParseUnwindSymbols(Symtab *symbol_table,
|
|||
return;
|
||||
|
||||
// First we save the new symbols into a separate list and add them to the
|
||||
// symbol table after we colleced all symbols we want to add. This is
|
||||
// symbol table after we collected all symbols we want to add. This is
|
||||
// neccessary because adding a new symbol invalidates the internal index of
|
||||
// the symtab what causing the next lookup to be slow because it have to
|
||||
// recalculate the index first.
|
||||
|
|
|
@ -106,7 +106,7 @@ public:
|
|||
static lldb_private::FileSpec GetXcodeContentsDirectory();
|
||||
static lldb_private::FileSpec GetXcodeDeveloperDirectory();
|
||||
|
||||
/// Return the toolchain directroy the current LLDB instance is located in.
|
||||
/// Return the toolchain directory the current LLDB instance is located in.
|
||||
static lldb_private::FileSpec GetCurrentToolchainDirectory();
|
||||
|
||||
/// Return the command line tools directory the current LLDB instance is
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
// explicitly released using the release() member function.
|
||||
template <class T> class CFReleaser {
|
||||
public:
|
||||
// Type names for the avlue
|
||||
// Type names for the value
|
||||
typedef T element_type;
|
||||
|
||||
// Constructors and destructors
|
||||
|
|
|
@ -566,7 +566,7 @@ uint32_t NativeRegisterContextLinux_arm::SetHardwareWatchpoint(
|
|||
|
||||
// Check 4-byte alignment for hardware watchpoint target address. Below is a
|
||||
// hack to recalculate address and size in order to make sure we can watch
|
||||
// non 4-byte alligned addresses as well.
|
||||
// non 4-byte aligned addresses as well.
|
||||
if (addr & 0x03) {
|
||||
uint8_t watch_mask = (addr & 0x03) + size;
|
||||
|
||||
|
@ -861,7 +861,7 @@ Status NativeRegisterContextLinux_arm::DoReadRegisterValue(
|
|||
// PTRACE_PEEKUSER don't work in the aarch64 linux kernel used on android
|
||||
// devices (always return "Bad address"). To avoid using PTRACE_PEEKUSER we
|
||||
// read out the full GPR register set instead. This approach is about 4 times
|
||||
// slower but the performance overhead is negligible in comparision to
|
||||
// slower but the performance overhead is negligible in comparison to
|
||||
// processing time in lldb-server.
|
||||
assert(offset % 4 == 0 && "Try to write a register with unaligned offset");
|
||||
if (offset + sizeof(uint32_t) > sizeof(m_gpr_arm))
|
||||
|
@ -881,7 +881,7 @@ Status NativeRegisterContextLinux_arm::DoWriteRegisterValue(
|
|||
// devices (always return "Bad address"). To avoid using PTRACE_POKEUSER we
|
||||
// read out the full GPR register set, modify the requested register and
|
||||
// write it back. This approach is about 4 times slower but the performance
|
||||
// overhead is negligible in comparision to processing time in lldb-server.
|
||||
// overhead is negligible in comparison to processing time in lldb-server.
|
||||
assert(offset % 4 == 0 && "Try to write a register with unaligned offset");
|
||||
if (offset + sizeof(uint32_t) > sizeof(m_gpr_arm))
|
||||
return Status("Register isn't fit into the size of the GPR area");
|
||||
|
|
|
@ -571,7 +571,7 @@ uint32_t NativeRegisterContextLinux_arm64::SetHardwareWatchpoint(
|
|||
|
||||
// Check 8-byte alignment for hardware watchpoint target address. Below is a
|
||||
// hack to recalculate address and size in order to make sure we can watch
|
||||
// non 8-byte alligned addresses as well.
|
||||
// non 8-byte aligned addresses as well.
|
||||
if (addr & 0x07) {
|
||||
uint8_t watch_mask = (addr & 0x07) + size;
|
||||
|
||||
|
|
|
@ -679,7 +679,7 @@ static int GetVacantWatchIndex(struct pt_watch_regs *regs, lldb::addr_t addr,
|
|||
}
|
||||
|
||||
if (vacant_watches > 1) {
|
||||
// Split this watchpoint accross several registers
|
||||
// Split this watchpoint across several registers
|
||||
struct pt_watch_regs regs_copy;
|
||||
regs_copy = *regs;
|
||||
lldb::addr_t break_addr;
|
||||
|
|
|
@ -552,7 +552,7 @@ uint32_t NativeRegisterContextLinux_ppc64le::SetHardwareWatchpoint(
|
|||
|
||||
// Check 8-byte alignment for hardware watchpoint target address. Below is a
|
||||
// hack to recalculate address and size in order to make sure we can watch
|
||||
// non 8-byte alligned addresses as well.
|
||||
// non 8-byte aligned addresses as well.
|
||||
if (addr & 0x07) {
|
||||
|
||||
addr_t begin = llvm::alignDown(addr, 8);
|
||||
|
|
|
@ -304,7 +304,7 @@ bool CommunicationKDP::CheckForPacket(const uint8_t *src, size_t src_len,
|
|||
if (length <= bytes_available) {
|
||||
// We have an entire packet ready, we need to copy the data bytes into
|
||||
// a buffer that will be owned by the packet and erase the bytes from
|
||||
// our communcation buffer "m_bytes"
|
||||
// our communication buffer "m_bytes"
|
||||
packet.SetData(DataBufferSP(new DataBufferHeap(&m_bytes[0], length)));
|
||||
m_bytes.erase(0, length);
|
||||
|
||||
|
|
|
@ -521,7 +521,7 @@ static uint32_t g_d31_invalidates[] = {fpu_v31, fpu_s31, LLDB_INVALID_REGNUM};
|
|||
0 \
|
||||
}
|
||||
|
||||
// Defines S and D pseudo registers mapping over correspondig vector register
|
||||
// Defines S and D pseudo registers mapping over corresponding vector register
|
||||
#define DEFINE_FPU_PSEUDO(reg, size, offset, vreg) \
|
||||
{ \
|
||||
#reg, nullptr, size, FPU_OFFSET(fpu_##vreg - fpu_v0) + offset, \
|
||||
|
|
|
@ -394,7 +394,7 @@ void NativeProcessWindows::OnDebuggerConnected(lldb::addr_t image_base) {
|
|||
GetDebuggedProcessId(), image_base);
|
||||
|
||||
// This is the earliest chance we can resolve the process ID and
|
||||
// architecutre if we don't know them yet.
|
||||
// architecture if we don't know them yet.
|
||||
if (GetID() == LLDB_INVALID_PROCESS_ID)
|
||||
SetID(GetDebuggedProcessId());
|
||||
|
||||
|
|
|
@ -947,7 +947,7 @@ GDBRemoteCommunicationServerLLGS::SendStopReplyPacketForThread(
|
|||
reg_set_p->name ? reg_set_p->name : "<unnamed-set>",
|
||||
*reg_num_p);
|
||||
} else if (reg_info_p->value_regs == nullptr) {
|
||||
// Only expediate registers that are not contained in other registers.
|
||||
// Only expedite registers that are not contained in other registers.
|
||||
RegisterValue reg_value;
|
||||
Status error = reg_ctx.ReadRegister(reg_info_p, reg_value);
|
||||
if (error.Success()) {
|
||||
|
|
|
@ -3791,7 +3791,7 @@ thread_result_t ProcessGDBRemote::AsyncThread(void *arg) {
|
|||
} // switch(stop_state)
|
||||
} // else // if in All-stop-mode
|
||||
} // if (continue_packet)
|
||||
} // case eBroadcastBitAysncContinue
|
||||
} // case eBroadcastBitAsyncContinue
|
||||
break;
|
||||
|
||||
case eBroadcastBitAsyncThreadShouldExit:
|
||||
|
@ -4682,7 +4682,7 @@ llvm::Expected<LoadedModuleInfoList> ProcessGDBRemote::GetLoadedModuleList() {
|
|||
// value.
|
||||
module.set_base_is_offset(true);
|
||||
} else if (name == "l_ld") {
|
||||
// the memory address of the libraries PT_DYAMIC section.
|
||||
// the memory address of the libraries PT_DYNAMIC section.
|
||||
module.set_dynamic(StringConvert::ToUInt64(
|
||||
value.data(), LLDB_INVALID_ADDRESS, 0));
|
||||
}
|
||||
|
|
|
@ -477,7 +477,7 @@ Status ProcessMachCore::DoLoadCore() {
|
|||
// segments are usually meaningless, they may be just "read", because we're
|
||||
// dealing with kernel coredumps or early startup coredumps and the dumper
|
||||
// is grabbing pages of memory without knowing what they are. If they
|
||||
// aren't marked as "exeuctable", that can break the unwinder which will
|
||||
// aren't marked as "executable", that can break the unwinder which will
|
||||
// check a pc value to see if it is in an executable segment and stop the
|
||||
// backtrace early if it is not ("executable" and "unknown" would both be
|
||||
// fine, but "not executable" will break the unwinder).
|
||||
|
|
|
@ -257,7 +257,7 @@ void ProcessMinidump::RefreshStateAfterStop() {
|
|||
|
||||
// TODO: The definition and use of this "dump requested" constant
|
||||
// in Breakpad are actually Linux-specific, and for similar use
|
||||
// cases on Mac/Windows it defines differnt constants, referring
|
||||
// cases on Mac/Windows it defines different constants, referring
|
||||
// to them as "simulated" exceptions; consider moving this check
|
||||
// down to the OS-specific paths and checking each OS for its own
|
||||
// constant.
|
||||
|
|
|
@ -1044,7 +1044,7 @@ std::string PythonException::ReadBacktrace() const {
|
|||
if (!backtrace) {
|
||||
std::string message =
|
||||
std::string(toCString()) + "\n" +
|
||||
"Traceback unavailble, an error occurred while reading it:\n";
|
||||
"Traceback unavailable, an error occurred while reading it:\n";
|
||||
return (message + llvm::toString(backtrace.takeError()));
|
||||
}
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
// can never fail to assert instead, such as the creation of
|
||||
// PythonString from a string literal.
|
||||
//
|
||||
// * Elimintate Reset(), and make all non-default constructors private.
|
||||
// * Eliminate Reset(), and make all non-default constructors private.
|
||||
// Python objects should be created with Retain<> or Take<>, and they
|
||||
// should be assigned with operator=
|
||||
//
|
||||
|
|
|
@ -34,7 +34,7 @@ public:
|
|||
|
||||
/// Return whether the DarwinLog functionality is enabled.
|
||||
///
|
||||
/// The DarwinLog functionality is enabled if the user expicitly enabled
|
||||
/// The DarwinLog functionality is enabled if the user explicitly enabled
|
||||
/// it with the enable command, or if the user has the setting set
|
||||
/// that controls if we always enable it for newly created/attached
|
||||
/// processes.
|
||||
|
|
|
@ -1939,13 +1939,13 @@ SymbolFilePDB::GetMangledForPDBFunc(const llvm::pdb::PDBSymbolFunc &pdb_func) {
|
|||
mangled.SetMangledName(ConstString(func_decorated_name));
|
||||
|
||||
// For MSVC, format of C funciton's decorated name depends on calling
|
||||
// conventon. Unfortunately none of the format is recognized by current
|
||||
// convention. Unfortunately none of the format is recognized by current
|
||||
// LLDB. For example, `_purecall` is a __cdecl C function. From PDB,
|
||||
// `__purecall` is retrieved as both its decorated and undecorated name
|
||||
// (using PDBSymbolFunc::getUndecoratedName method). However `__purecall`
|
||||
// string is not treated as mangled in LLDB (neither `?` nor `_Z` prefix).
|
||||
// Mangled::GetDemangledName method will fail internally and caches an
|
||||
// empty string as its undecorated name. So we will face a contradition
|
||||
// empty string as its undecorated name. So we will face a contradiction
|
||||
// here for the same symbol:
|
||||
// non-empty undecorated name from PDB
|
||||
// empty undecorated name from LLDB
|
||||
|
|
|
@ -1443,7 +1443,7 @@ TypeSystemClang::CreateTemplateTemplateParmDecl(const char *template_name) {
|
|||
|
||||
// LLDB needs to create those decls only to be able to display a
|
||||
// type that includes a template template argument. Only the name matters for
|
||||
// this purpose, so we use dummy values for the other characterisitcs of the
|
||||
// this purpose, so we use dummy values for the other characteristics of the
|
||||
// type.
|
||||
return TemplateTemplateParmDecl::Create(
|
||||
ast, decl_ctx, SourceLocation(),
|
||||
|
@ -8419,7 +8419,7 @@ static bool DumpEnumValue(const clang::QualType &qual_type, Stream *s,
|
|||
// Try to find an exact match for the value.
|
||||
// At the same time, we're applying a heuristic to determine whether we want
|
||||
// to print this enum as a bitfield. We're likely dealing with a bitfield if
|
||||
// every enumrator is either a one bit value or a superset of the previous
|
||||
// every enumerator is either a one bit value or a superset of the previous
|
||||
// enumerators. Also 0 doesn't make sense when the enumerators are used as
|
||||
// flags.
|
||||
for (auto enumerator : enum_decl->enumerators()) {
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
using namespace lldb;
|
||||
using namespace lldb_private;
|
||||
|
||||
// Converts a prel31 avlue to lldb::addr_t with sign extension
|
||||
// Converts a prel31 value to lldb::addr_t with sign extension
|
||||
static addr_t Prel31ToAddr(uint32_t prel31) {
|
||||
addr_t res = prel31;
|
||||
if (prel31 & (1 << 30))
|
||||
|
|
|
@ -602,7 +602,7 @@ bool RegisterContextUnwind::CheckIfLoopingStack() {
|
|||
// multiple times, we compare the
|
||||
// CFA of the current
|
||||
// frame with the 2nd next frame because in some specail case (e.g. signal
|
||||
// hanlders, hand written assembly without ABI compiance) we can have 2
|
||||
// hanlders, hand written assembly without ABI compliance) we can have 2
|
||||
// frames with the same
|
||||
// CFA (in theory we
|
||||
// can have arbitrary number of frames with the same CFA, but more then 2 is
|
||||
|
@ -1094,7 +1094,7 @@ bool RegisterContextUnwind::IsValid() const {
|
|||
|
||||
// After the final stack frame in a stack walk we'll get one invalid
|
||||
// (eNotAValidFrame) stack frame -- one past the end of the stack walk. But
|
||||
// higher-level code will need to tell the differnece between "the unwind plan
|
||||
// higher-level code will need to tell the difference between "the unwind plan
|
||||
// below this frame failed" versus "we successfully completed the stack walk"
|
||||
// so this method helps to disambiguate that.
|
||||
|
||||
|
|
|
@ -1499,7 +1499,7 @@ lldb::ValueObjectSP DoGuessValueAt(StackFrame &frame, ConstString reg,
|
|||
// +18 that assigns to rdi, and calls itself recursively for that dereference
|
||||
// DoGuessValueAt(frame, rdi, 8, dis, vars, 0x18) finds the instruction at
|
||||
// +14 that assigns to rdi, and calls itself recursively for that
|
||||
// derefernece
|
||||
// dereference
|
||||
// DoGuessValueAt(frame, rbp, -8, dis, vars, 0x14) finds "f" in the
|
||||
// variable list.
|
||||
// Returns a ValueObject for f. (That's what was stored at rbp-8 at +14)
|
||||
|
|
|
@ -453,7 +453,7 @@ protected:
|
|||
} else {
|
||||
LLDB_LOGF(log,
|
||||
"Condition evaluated for breakpoint %s on thread "
|
||||
"0x%llx conditon_says_stop: %i.",
|
||||
"0x%llx condition_says_stop: %i.",
|
||||
loc_desc.GetData(),
|
||||
static_cast<unsigned long long>(thread_sp->GetID()),
|
||||
condition_says_stop);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""Benchmark the turnaround time starting a debugger and run to the breakpont with lldb vs. gdb."""
|
||||
"""Benchmark the turnaround time starting a debugger and run to the breakpoint with lldb vs. gdb."""
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
|
|
|
@ -157,7 +157,7 @@ class BreakpointNames(TestBase):
|
|||
# Create a dummy breakpoint to use up ID 1
|
||||
_ = self.target.BreakpointCreateByLocation(self.main_file_spec, 30)
|
||||
|
||||
# Create a breakpiont to test with
|
||||
# Create a breakpoint to test with
|
||||
bkpt = self.target.BreakpointCreateByLocation(self.main_file_spec, 10)
|
||||
bkpt_name = "ABreakpoint"
|
||||
bkpt_id = bkpt.GetID()
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
"""
|
||||
Test that breakpoints do not affect stepping.
|
||||
Check for correct StopReason when stepping to the line with breakpoint
|
||||
which chould be eStopReasonBreakpoint in general,
|
||||
which should be eStopReasonBreakpoint in general,
|
||||
and eStopReasonPlanComplete when breakpoint's condition fails.
|
||||
"""
|
||||
|
||||
|
|
|
@ -346,7 +346,7 @@ class LoadUnloadTestCase(TestBase):
|
|||
self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
|
||||
substrs=[' resolved, hit count = 1'])
|
||||
|
||||
# Issue the 'contnue' command. We should stop agaian at a_function.
|
||||
# Issue the 'continue' command. We should stop agaian at a_function.
|
||||
# The stop reason of the thread should be breakpoint and at a_function.
|
||||
self.runCmd("continue")
|
||||
|
||||
|
|
|
@ -101,7 +101,7 @@ class PluginPythonOSPlugin(TestBase):
|
|||
self.verify_os_thread_registers(thread)
|
||||
|
||||
# Now clear the OS plug-in path to make the OS plug-in created threads
|
||||
# dissappear
|
||||
# disappear
|
||||
self.dbg.HandleCommand(
|
||||
"settings clear target.process.python-os-plugin-path")
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ class PlatformProcessCrashInfoTestCase(TestBase):
|
|||
@skipUnlessDarwin
|
||||
def test_cli(self):
|
||||
"""Test that `process status --verbose` fetches the extended crash
|
||||
information dictionnary from the command-line properly."""
|
||||
information dictionary from the command-line properly."""
|
||||
self.build()
|
||||
exe = self.getBuildArtifact("a.out")
|
||||
self.expect("file " + exe,
|
||||
|
@ -46,7 +46,7 @@ class PlatformProcessCrashInfoTestCase(TestBase):
|
|||
@skipUnlessDarwin
|
||||
def test_api(self):
|
||||
"""Test that lldb can fetch a crashed process' extended crash information
|
||||
dictionnary from the api properly."""
|
||||
dictionary from the api properly."""
|
||||
self.build()
|
||||
target = self.dbg.CreateTarget(self.getBuildArtifact("a.out"))
|
||||
self.assertTrue(target, VALID_TARGET)
|
||||
|
@ -73,7 +73,7 @@ class PlatformProcessCrashInfoTestCase(TestBase):
|
|||
@skipIfDarwinEmbedded
|
||||
def test_on_sane_process(self):
|
||||
"""Test that lldb doesn't fetch the extended crash information
|
||||
dictionnary from a 'sane' stopped process."""
|
||||
dictionary from a 'sane' stopped process."""
|
||||
self.build()
|
||||
target, _, _, _ = lldbutil.run_to_line_breakpoint(self, lldb.SBFileSpec(self.source),
|
||||
self.line)
|
||||
|
|
|
@ -16,7 +16,7 @@ class ModuleLoadedNotifysTestCase(TestBase):
|
|||
mydir = TestBase.compute_mydir(__file__)
|
||||
NO_DEBUG_INFO_TESTCASE = True
|
||||
|
||||
# DyanmicLoaderDarwin should batch up notifications about
|
||||
# DynamicLoaderDarwin should batch up notifications about
|
||||
# newly added/removed libraries. Other DynamicLoaders may
|
||||
# not be written this way.
|
||||
@skipUnlessDarwin
|
||||
|
|
|
@ -11,7 +11,7 @@ using namespace A;
|
|||
void test_lookup_after_using_directive()
|
||||
{
|
||||
// BP_after_using_directive
|
||||
//printf("func() = %d\n", func()); // eval func(), exp: error, amiguous
|
||||
//printf("func() = %d\n", func()); // eval func(), exp: error, ambiguous
|
||||
std::printf("after using directive: func2() = %d\n", func2()); // eval func2(), exp: 3
|
||||
std::printf("after using directive: ::func() = %d\n", ::func()); // eval ::func(), exp: 1
|
||||
std::printf("after using directive: B::func() = %d\n", B::func()); // eval B::func(), exp: 4
|
||||
|
|
|
@ -51,7 +51,7 @@ class TestKernVerStrLCNOTE(TestBase):
|
|||
'echo "<!DOCTYPE plist PUBLIC \\"-//Apple//DTD PLIST 1.0//EN\\" \\"http://www.apple.com/DTDs/PropertyList-1.0.dtd\\">"',
|
||||
'echo "<plist version=\\"1.0\\">"',
|
||||
'',
|
||||
'# the last arugment is probably the uuid',
|
||||
'# the last argument is probably the uuid',
|
||||
'while [ $# -gt 1 ]',
|
||||
'do',
|
||||
' shift',
|
||||
|
|
|
@ -274,7 +274,7 @@ int main (int argc, char **argv)
|
|||
|
||||
int header_and_load_cmd_room = sizeof (struct mach_header_64) + size_of_load_commands;
|
||||
|
||||
// Erease the load commands / payload now that we know how much space is needed,
|
||||
// Erase the load commands / payload now that we know how much space is needed,
|
||||
// redo it.
|
||||
load_commands.clear();
|
||||
payload.clear();
|
||||
|
|
|
@ -7,7 +7,7 @@ the tests where None is passed to SB API which expects (const char *) in the
|
|||
C++ API counterpart. Passing None should not crash lldb!
|
||||
|
||||
There are three exceptions to the above general rules, though; API objects
|
||||
SBCommadnReturnObject, SBStream, and SBSymbolContextList, are all valid objects
|
||||
SBCommandReturnObject, SBStream, and SBSymbolContextList, are all valid objects
|
||||
after default construction.
|
||||
"""
|
||||
|
||||
|
|
|
@ -114,7 +114,7 @@ class FrameAPITestCase(TestBase):
|
|||
if self.TraceOn():
|
||||
print("Full stack traces when stopped on the breakpoint 'c':")
|
||||
print(session.getvalue())
|
||||
self.expect(session.getvalue(), "Argugment values displayed correctly",
|
||||
self.expect(session.getvalue(), "Argument values displayed correctly",
|
||||
exe=False,
|
||||
substrs=["a((int)val=1, (char)ch='A')",
|
||||
"a((int)val=3, (char)ch='A')"])
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// This simple program is to test the lldb Python APIs SBTarget, SBFrame,
|
||||
// SBFunction, SBSymbol, and SBAddress.
|
||||
//
|
||||
// When stopped on breakppint 1, we can get the line entry using SBFrame API
|
||||
// When stopped on breakpoint 1, we can get the line entry using SBFrame API
|
||||
// SBFrame.GetLineEntry(). We'll get the start address for the line entry
|
||||
// with the SBAddress type, resolve the symbol context using the SBTarget API
|
||||
// SBTarget.ResolveSymbolContextForAddress() in order to get the SBSymbol.
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// This simple program is to test the lldb Python API SBTarget.
|
||||
//
|
||||
// When stopped on breakppint 1, and then 2, we can get the line entries using
|
||||
// When stopped on breakpoint 1, and then 2, we can get the line entries using
|
||||
// SBFrame API SBFrame.GetLineEntry(). We'll get the start addresses for the
|
||||
// two line entries; with the start address (of SBAddress type), we can then
|
||||
// resolve the symbol context using the SBTarget API
|
||||
|
|
|
@ -72,7 +72,7 @@ class ThreadAPITestCase(TestBase):
|
|||
"main2.cpp", "// we should reach here after 3 step-over's.")
|
||||
|
||||
# We'll use the test method name as the exe_name for executable
|
||||
# comppiled from main2.cpp.
|
||||
# compiled from main2.cpp.
|
||||
self.exe_name = self.testMethodName
|
||||
|
||||
def get_process(self):
|
||||
|
|
|
@ -337,7 +337,7 @@ int main(int argc, char **argv) {
|
|||
} else if (std::strstr(argv[i], CALL_FUNCTION_PREFIX)) {
|
||||
void (*func_p)() = nullptr;
|
||||
|
||||
// Defaut to providing the address of main.
|
||||
// Default to providing the address of main.
|
||||
if (std::strcmp(argv[i] + strlen(CALL_FUNCTION_PREFIX), "hello") == 0)
|
||||
func_p = hello;
|
||||
else if (std::strcmp(argv[i] + strlen(CALL_FUNCTION_PREFIX),
|
||||
|
|
|
@ -35,7 +35,7 @@ class TestVSCode_attach(lldbvscode_testcase.VSCodeTestCaseBase):
|
|||
source = 'main.c'
|
||||
breakpoint1_line = line_number(source, '// breakpoint 1')
|
||||
lines = [breakpoint1_line]
|
||||
# Set breakoint in the thread function so we can step the threads
|
||||
# Set breakpoint in the thread function so we can step the threads
|
||||
breakpoint_ids = self.set_source_breakpoints(source, lines)
|
||||
self.assertEqual(len(breakpoint_ids), len(lines),
|
||||
"expect correct number of breakpoints")
|
||||
|
|
|
@ -28,7 +28,7 @@ class TestVSCode_breakpointEvents(lldbvscode_testcase.VSCodeTestCaseBase):
|
|||
breakpoint event that informs us that the breakpoint in the shared
|
||||
library is "changed" and the correct line number should be
|
||||
supplied. We also set a breakpoint using a LLDB command using the
|
||||
"preRunCommands" when launching our program. Any breapoints set via
|
||||
"preRunCommands" when launching our program. Any breakpoints set via
|
||||
the command interpreter should not be have breakpoint events sent
|
||||
back to VS Code as the UI isn't able to add new breakpoints to
|
||||
their UI. Code has been added that tags breakpoints set from VS Code
|
||||
|
@ -62,7 +62,7 @@ class TestVSCode_breakpointEvents(lldbvscode_testcase.VSCodeTestCaseBase):
|
|||
preRunCommands=[bp_command])
|
||||
main_bp_id = 0
|
||||
foo_bp_id = 0
|
||||
# Set breakoints and verify that they got set correctly
|
||||
# Set breakpoints and verify that they got set correctly
|
||||
vscode_breakpoint_ids = []
|
||||
response = self.vscode.request_setBreakpoints(main_source_path,
|
||||
[main_bp_line])
|
||||
|
|
|
@ -24,7 +24,7 @@ class TestVSCode_setBreakpoints(lldbvscode_testcase.VSCodeTestCaseBase):
|
|||
is no "clearBreakpoints" packet. Source file and line breakpoints
|
||||
are set by sending a "setBreakpoints" packet with a source file
|
||||
specified and zero or more source lines. If breakpoints have been
|
||||
set in the source file before, any exising breakpoints must remain
|
||||
set in the source file before, any existing breakpoints must remain
|
||||
set, and any new breakpoints must be created, and any breakpoints
|
||||
that were in previous requests and are not in the current request
|
||||
must be removed. This function tests this setting and clearing
|
||||
|
@ -44,7 +44,7 @@ class TestVSCode_setBreakpoints(lldbvscode_testcase.VSCodeTestCaseBase):
|
|||
program = self.getBuildArtifact("a.out")
|
||||
self.build_and_launch(program)
|
||||
|
||||
# Set 3 breakoints and verify that they got set correctly
|
||||
# Set 3 breakpoints and verify that they got set correctly
|
||||
response = self.vscode.request_setBreakpoints(source_path, lines)
|
||||
line_to_id = {}
|
||||
if response:
|
||||
|
@ -68,7 +68,7 @@ class TestVSCode_setBreakpoints(lldbvscode_testcase.VSCodeTestCaseBase):
|
|||
# breakpoint and set it again at the same location. We also need to
|
||||
# verify that the second line location was actually removed.
|
||||
lines.remove(second_line)
|
||||
# Set 2 breakoints and verify that the previous breakoints that were
|
||||
# Set 2 breakpoints and verify that the previous breakpoints that were
|
||||
# set above are still set.
|
||||
response = self.vscode.request_setBreakpoints(source_path, lines)
|
||||
if response:
|
||||
|
@ -195,7 +195,7 @@ class TestVSCode_setBreakpoints(lldbvscode_testcase.VSCodeTestCaseBase):
|
|||
"existing breakpoint should have its condition "
|
||||
"updated")
|
||||
|
||||
# Continue with a hitContidtion of 2 and expect it to skip 1 value
|
||||
# Continue with a hitCondition of 2 and expect it to skip 1 value
|
||||
self.continue_to_breakpoints(breakpoint_ids)
|
||||
i = int(self.vscode.get_local_variable_value('i'))
|
||||
self.assertEquals(i, 6,
|
||||
|
|
|
@ -25,7 +25,7 @@ class TestVSCode_setExceptionBreakpoints(
|
|||
is no "clear exception breakpoints" packet. Exception breakpoints
|
||||
are set by sending a "setExceptionBreakpoints" packet with zero or
|
||||
more exception filters. If exception breakpoints have been set
|
||||
before, any exising breakpoints must remain set, and any new
|
||||
before, any existing breakpoints must remain set, and any new
|
||||
breakpoints must be created, and any breakpoints that were in
|
||||
previous requests and are not in the current request must be
|
||||
removed. This exception tests this setting and clearing and makes
|
||||
|
|
|
@ -24,7 +24,7 @@ class TestVSCode_setFunctionBreakpoints(
|
|||
is no "clearFunction Breakpoints" packet. Function breakpoints
|
||||
are set by sending a "setFunctionBreakpoints" packet with zero or
|
||||
more function names. If function breakpoints have been set before,
|
||||
any exising breakpoints must remain set, and any new breakpoints
|
||||
any existing breakpoints must remain set, and any new breakpoints
|
||||
must be created, and any breakpoints that were in previous requests
|
||||
and are not in the current request must be removed. This function
|
||||
tests this setting and clearing and makes sure things happen
|
||||
|
@ -147,7 +147,7 @@ class TestVSCode_setFunctionBreakpoints(
|
|||
"existing breakpoint should have its condition "
|
||||
"updated")
|
||||
|
||||
# Continue with a hitContidtion of 2 and expect it to skip 1 value
|
||||
# Continue with a hitCondition of 2 and expect it to skip 1 value
|
||||
self.continue_to_breakpoints(breakpoint_ids)
|
||||
i = int(self.vscode.get_local_variable_value('i'))
|
||||
self.assertEquals(i, 6,
|
||||
|
|
|
@ -330,7 +330,7 @@ class TestVSCode_launch(lldbvscode_testcase.VSCodeTestCaseBase):
|
|||
second_line = line_number(source, '// breakpoint 2')
|
||||
lines = [first_line, second_line]
|
||||
|
||||
# Set 2 breakoints so we can verify that "stopCommands" get run as the
|
||||
# Set 2 breakpoints so we can verify that "stopCommands" get run as the
|
||||
# breakpoints get hit
|
||||
breakpoint_ids = self.set_source_breakpoints(source, lines)
|
||||
self.assertEquals(len(breakpoint_ids), len(lines),
|
||||
|
@ -369,7 +369,7 @@ class TestVSCode_launch(lldbvscode_testcase.VSCodeTestCaseBase):
|
|||
source = 'main.c'
|
||||
first_line = line_number(source, '// breakpoint 1')
|
||||
second_line = line_number(source, '// breakpoint 2')
|
||||
# Set target binary and 2 breakoints
|
||||
# Set target binary and 2 breakpoints
|
||||
# then we can varify the "launchCommands" get run
|
||||
# also we can verify that "stopCommands" get run as the
|
||||
# breakpoints get hit
|
||||
|
|
|
@ -67,7 +67,7 @@ class TestVSCode_stackTrace(lldbvscode_testcase.VSCodeTestCaseBase):
|
|||
|
||||
lines = [self.recurse_end]
|
||||
|
||||
# Set breakoint at a point of deepest recuusion
|
||||
# Set breakpoint at a point of deepest recuusion
|
||||
breakpoint_ids = self.set_source_breakpoints(source, lines)
|
||||
self.assertEquals(len(breakpoint_ids), len(lines),
|
||||
"expect correct number of breakpoints")
|
||||
|
|
|
@ -27,7 +27,7 @@ class TestVSCode_step(lldbvscode_testcase.VSCodeTestCaseBase):
|
|||
# source_path = os.path.join(os.getcwd(), source)
|
||||
breakpoint1_line = line_number(source, '// breakpoint 1')
|
||||
lines = [breakpoint1_line]
|
||||
# Set breakoint in the thread function so we can step the threads
|
||||
# Set breakpoint in the thread function so we can step the threads
|
||||
breakpoint_ids = self.set_source_breakpoints(source, lines)
|
||||
self.assertEqual(len(breakpoint_ids), len(lines),
|
||||
"expect correct number of breakpoints")
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
; UNSUPPORTED: system-windows
|
||||
;
|
||||
; This test verifies that we do the right thing with DIFlagExportSymbols which is the new
|
||||
; behavioir and without the DIFlagExportSymbols which is the old behavior for the given
|
||||
; behaviour and without the DIFlagExportSymbols which is the old behavior for the given
|
||||
; definitions below.
|
||||
;
|
||||
;```
|
||||
|
|
|
@ -150,7 +150,7 @@ class SpawnBase(object):
|
|||
self._buffer = self.buffer_type()
|
||||
self._buffer.write(value)
|
||||
|
||||
# This property is provided for backwards compatability (self.buffer used
|
||||
# This property is provided for backwards compatibility (self.buffer used
|
||||
# to be a string/bytes object)
|
||||
buffer = property(_get_buffer, _set_buffer)
|
||||
|
||||
|
|
|
@ -113,7 +113,7 @@
|
|||
(RNBRemote::HandleReceivedPacket): Ditto.
|
||||
(RNBRemote::CommDataReceived): Ditto.
|
||||
* DNB.cpp (DNBProcessLaunch): Changed to take a eror string pointer with
|
||||
size for more desciptive error reporting (instead of a uint32_t pointer).
|
||||
size for more descriptive error reporting (instead of a uint32_t pointer).
|
||||
* DNB.h (DNBProcessLaunch): Ditto.
|
||||
* DNBError.cpp (DNBError::AsString): Now returns NULL if there is no error.
|
||||
* DNBError.h (DNBError::SetErrorString): New accessor to allow custom error
|
||||
|
@ -268,10 +268,10 @@
|
|||
qualifier to allow arches to auto detect how many hardware watchpoints they
|
||||
have.
|
||||
* DNBArchImpl.h (DNBArchMachARM::NumSupportedHardwareBreakpoints()): Auto
|
||||
detect how many BRP pairs are avialable and disable for armv7 for the time
|
||||
detect how many BRP pairs are available and disable for armv7 for the time
|
||||
being (rdar://problem/6372672).
|
||||
(DNBArchMachARM::NumSupportedHardwareWatchpoints()): Auto detect how many
|
||||
WRP pairs are avialable and disable for armv7 for the time being
|
||||
WRP pairs are available and disable for armv7 for the time being
|
||||
(rdar://problem/6372672).
|
||||
|
||||
2009-01-09 Greg Clayton <gclayton@apple.com>
|
||||
|
@ -692,7 +692,7 @@
|
|||
2008-10-17 Greg Clayton <gclayton@apple.com>
|
||||
|
||||
* test-remotenub.cpp (RNBRunLoopLaunchInferior): Don't listen for
|
||||
the qLaunchSuccess if we aren't doing a lockdown connnection.
|
||||
the qLaunchSuccess if we aren't doing a lockdown connection.
|
||||
|
||||
2008-10-13 Greg Clayton <gclayton@apple.com>
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
// explicitly released using the release() member function.
|
||||
template <class T> class CFReleaser {
|
||||
public:
|
||||
// Type names for the avlue
|
||||
// Type names for the value
|
||||
typedef T element_type;
|
||||
|
||||
// Constructors and destructors
|
||||
|
|
|
@ -421,7 +421,7 @@ private:
|
|||
// we don't report a spurious stop on the next resume.
|
||||
int m_auto_resume_signo; // If we resume the process and still haven't
|
||||
// received our interrupt signal
|
||||
// acknownledgement, we will shortly after the next resume. We store the
|
||||
// acknowledgement, we will shortly after the next resume. We store the
|
||||
// interrupt signal in this variable so when we get the interrupt signal
|
||||
// as the sole reason for the process being stopped, we can auto resume
|
||||
// the process.
|
||||
|
|
|
@ -132,7 +132,7 @@ static cl::opt<std::string> Name("name", cl::desc("Name to find."),
|
|||
cl::sub(SymbolsSubcommand));
|
||||
static cl::opt<bool>
|
||||
Regex("regex",
|
||||
cl::desc("Search using regular expressions (avaliable for variables "
|
||||
cl::desc("Search using regular expressions (available for variables "
|
||||
"and functions only)."),
|
||||
cl::sub(SymbolsSubcommand));
|
||||
static cl::opt<std::string>
|
||||
|
@ -651,7 +651,7 @@ Error opts::symbols::verify(lldb_private::Module &Module) {
|
|||
for (uint32_t i = 0; i < comp_units_count; i++) {
|
||||
lldb::CompUnitSP comp_unit = symfile->GetCompileUnitAtIndex(i);
|
||||
if (!comp_unit)
|
||||
return make_string_error("Connot parse compile unit {0}.", i);
|
||||
return make_string_error("Cannot parse compile unit {0}.", i);
|
||||
|
||||
outs() << "Processing '"
|
||||
<< comp_unit->GetPrimaryFile().GetFilename().AsCString()
|
||||
|
|
|
@ -221,7 +221,7 @@ llvm::json::Object CreateEventObject(const llvm::StringRef event_name);
|
|||
/// the Visual Studio Code debug adaptor definition.
|
||||
///
|
||||
/// \param[in] bp
|
||||
/// The exception breakppoint object to use
|
||||
/// The exception breakpoint object to use
|
||||
///
|
||||
/// \return
|
||||
/// A "ExceptionBreakpointsFilter" JSON object with that follows
|
||||
|
|
|
@ -115,7 +115,7 @@
|
|||
},
|
||||
"sourceMap": {
|
||||
"type": "array",
|
||||
"description": "Specify an array of path remappings; each element must itself be a two element array containing a source and desination pathname. Overrides sourcePath.",
|
||||
"description": "Specify an array of path remappings; each element must itself be a two element array containing a source and destination pathname. Overrides sourcePath.",
|
||||
"default": []
|
||||
},
|
||||
"debuggerRoot": {
|
||||
|
@ -181,7 +181,7 @@
|
|||
},
|
||||
"sourceMap": {
|
||||
"type": "array",
|
||||
"description": "Specify an array of path remappings; each element must itself be a two element array containing a source and desination pathname. Overrides sourcePath.",
|
||||
"description": "Specify an array of path remappings; each element must itself be a two element array containing a source and destination pathname. Overrides sourcePath.",
|
||||
"default": []
|
||||
},
|
||||
"debuggerRoot": {
|
||||
|
|
|
@ -31,7 +31,7 @@ TEST(CyclicBuffer, EdgeCases) {
|
|||
uint8_t cyclic_buffer[6] = {'l', 'i', 'c', 'c', 'y', 'c'};
|
||||
|
||||
// We will always leave the last bytes untouched
|
||||
// so that string comparisions work.
|
||||
// so that string comparisons work.
|
||||
char smaller_buffer[4] = {};
|
||||
|
||||
// empty buffer to read into
|
||||
|
@ -70,7 +70,7 @@ TEST(CyclicBuffer, EqualSizeBuffer) {
|
|||
char cyclic[] = "cyclic";
|
||||
for (size_t i = 0; i < sizeof(cyclic); i++) {
|
||||
// We will always leave the last bytes untouched
|
||||
// so that string comparisions work.
|
||||
// so that string comparisons work.
|
||||
char equal_size_buffer[7] = {};
|
||||
bytes_read =
|
||||
ReadCylicBufferWrapper(equal_size_buffer, sizeof(cyclic_buffer),
|
||||
|
@ -85,7 +85,7 @@ TEST(CyclicBuffer, SmallerSizeBuffer) {
|
|||
uint8_t cyclic_buffer[6] = {'l', 'i', 'c', 'c', 'y', 'c'};
|
||||
|
||||
// We will always leave the last bytes untouched
|
||||
// so that string comparisions work.
|
||||
// so that string comparisons work.
|
||||
char smaller_buffer[4] = {};
|
||||
bytes_read =
|
||||
ReadCylicBufferWrapper(smaller_buffer, (sizeof(smaller_buffer) - 1),
|
||||
|
@ -136,7 +136,7 @@ TEST(CyclicBuffer, BiggerSizeBuffer) {
|
|||
char cyclic[] = "cyclic";
|
||||
for (size_t i = 0; i < sizeof(cyclic); i++) {
|
||||
// We will always leave the last bytes untouched
|
||||
// so that string comparisions work.
|
||||
// so that string comparisons work.
|
||||
char bigger_buffer[10] = {};
|
||||
bytes_read =
|
||||
ReadCylicBufferWrapper(bigger_buffer, (sizeof(bigger_buffer) - 1),
|
||||
|
|
|
@ -281,7 +281,7 @@ TEST(ArchSpecTest, Compatibility) {
|
|||
ASSERT_TRUE(A.IsCompatibleMatch(B));
|
||||
}
|
||||
{
|
||||
// The version information is auxiliary to support availablity but
|
||||
// The version information is auxiliary to support availability but
|
||||
// doesn't affect compatibility.
|
||||
ArchSpec A("x86_64-apple-macosx10.11");
|
||||
ArchSpec B("x86_64-apple-macosx10.12");
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Note: debugserver is a Darwin-only implementation of a remote debugging
|
||||
# server. It is not intended to be used on other platforms. The tests are here
|
||||
# because using the LLDB Host API is convienent and allows testing of both parts
|
||||
# because using the LLDB Host API is convenient and allows testing of both parts
|
||||
# of the debugserver communication path. If you are looking for a non-darwin
|
||||
# remote debugging server, please use lldb-server.
|
||||
|
||||
|
|
Loading…
Reference in New Issue