mirror of
https://github.com/intel/llvm.git
synced 2026-01-22 07:01:03 +08:00
Change the default disassembly format again. First attempt at
changing it was in r219544 - after living on that for a few
months, I wanted to take another crack at this.
The disassembly-format setting still exists and the old format
can be user specified with a setting like
${current-pc-arrow}${addr-file-or-load}{ <${function.name-without-args}${function.concrete-only-addr-offset-no-padding}>}:
This patch was discussed in http://reviews.llvm.org/D7578
<rdar://problem/19726421>
llvm-svn: 229186
This commit is contained in:
@@ -468,6 +468,7 @@ Address::Dump (Stream *s, ExecutionContextScope *exe_scope, DumpStyle style, Dum
|
||||
case DumpStyleResolvedDescription:
|
||||
case DumpStyleResolvedDescriptionNoModule:
|
||||
case DumpStyleResolvedDescriptionNoFunctionArguments:
|
||||
case DumpStyleNoFunctionName:
|
||||
if (IsSectionOffset())
|
||||
{
|
||||
uint32_t pointer_size = 4;
|
||||
@@ -553,7 +554,7 @@ Address::Dump (Stream *s, ExecutionContextScope *exe_scope, DumpStyle style, Dum
|
||||
#endif
|
||||
Address cstr_addr(*this);
|
||||
cstr_addr.SetOffset(cstr_addr.GetOffset() + pointer_size);
|
||||
func_sc.DumpStopContext(s, exe_scope, so_addr, true, true, false, true);
|
||||
func_sc.DumpStopContext(s, exe_scope, so_addr, true, true, false, true, true);
|
||||
if (ReadAddress (exe_scope, cstr_addr, pointer_size, so_addr))
|
||||
{
|
||||
#if VERBOSE_OUTPUT
|
||||
@@ -636,7 +637,7 @@ Address::Dump (Stream *s, ExecutionContextScope *exe_scope, DumpStyle style, Dum
|
||||
if (pointer_sc.function || pointer_sc.symbol)
|
||||
{
|
||||
s->PutCString(": ");
|
||||
pointer_sc.DumpStopContext(s, exe_scope, so_addr, true, false, false, true);
|
||||
pointer_sc.DumpStopContext(s, exe_scope, so_addr, true, false, false, true, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -662,6 +663,7 @@ Address::Dump (Stream *s, ExecutionContextScope *exe_scope, DumpStyle style, Dum
|
||||
const bool show_fullpaths = false;
|
||||
const bool show_inlined_frames = true;
|
||||
const bool show_function_arguments = (style != DumpStyleResolvedDescriptionNoFunctionArguments);
|
||||
const bool show_function_name = (style != DumpStyleNoFunctionName);
|
||||
if (sc.function == NULL && sc.symbol != NULL)
|
||||
{
|
||||
// If we have just a symbol make sure it is in the right section
|
||||
@@ -684,7 +686,8 @@ Address::Dump (Stream *s, ExecutionContextScope *exe_scope, DumpStyle style, Dum
|
||||
show_fullpaths,
|
||||
show_module,
|
||||
show_inlined_frames,
|
||||
show_function_arguments);
|
||||
show_function_arguments,
|
||||
show_function_name);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user