mirror of
https://github.com/intel/llvm.git
synced 2026-02-01 08:56:15 +08:00
[RenderScript] Fix reduction argument printing
When placing function name breakpoints on RenderScript Reduction kernel
functions, we were not skipping over the function prologue meaning that
inspection of the arguments could be garbled as the function was not finished
setting up the stack/registers.
In
[122fe8f](122fe8f472)
Aidan added the `SkipPrologue` function that allows us to trivially fix up the
kernel's functions' resolved addresses, falling gracefully back to the old
behaviour if we don't know how to handle the prologue or can't resolve its
size.
llvm-svn: 286387
This commit is contained in:
@@ -883,6 +883,10 @@ RSReduceBreakpointResolver::SearchCallback(lldb_private::SearchFilter &filter,
|
||||
auto address = symbol->GetAddress();
|
||||
if (filter.AddressPasses(address)) {
|
||||
bool new_bp;
|
||||
if (!SkipPrologue(module, address)) {
|
||||
if (log)
|
||||
log->Printf("%s: Error trying to skip prologue", __FUNCTION__);
|
||||
}
|
||||
m_breakpoint->AddLocation(address, &new_bp);
|
||||
if (log)
|
||||
log->Printf("%s: %s reduction breakpoint on %s in %s", __FUNCTION__,
|
||||
|
||||
Reference in New Issue
Block a user