<div dir="ltr">Does our init file mechanism have the ability to do something conditionally if it's a core file? (i.e. do we already have a way to get Ted's desired behavior via an inserted call to "thread backtrace all" that somehow gets triggered by the init, but only when we're talking about a core file?)<div><br></div><div>Alternatively, Ted, you could have a wrapper script of some sort (think lldb-core.{sh,bat} or something) that you call that sources an lldb core-file-specific init file that sets up aliases and the like to start up lldb how you want, maybe?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 30, 2015 at 9:32 AM, Greg Clayton via lldb-dev <span dir="ltr"><<a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">"thread list" should just list the threads and their stop reasons (no backtraces). If you want backtraces just do "thread backtrace all".<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Nov 24, 2015, at 1:09 PM, Ted Woodward via lldb-dev <<a href="mailto:lldb-dev@lists.llvm.org">lldb-dev@lists.llvm.org</a>> wrote:<br>
><br>
> I’ve been working on an old rev that we’d released on; now I’m much closer to ToT as we move towards our next major Hexagon release.<br>
><br>
> Core dumps on the old rev would print out a listing/disassembly for each thread in the core dump. Now it doesn’t.<br>
><br>
> ToT does this, on x86 Linux:<br>
><br>
> >bin/lldb ~/lldb_test/coredump/lincrash -c ~/lldb_test/coredump/lincore<br>
> (lldb) target create "/usr2/tedwood/lldb_test/coredump/lincrash" --core "/usr2/tedwood/lldb_test/coredump/lincore"<br>
> Core file '/usr2/tedwood/lldb_test/coredump/lincore' (x86_64) was loaded.<br>
> (lldb) thread list<br>
> Process 0 stopped<br>
> * thread #1: tid = 0, 0x0000000000401190 lincrash`main + 16 at lincrash.c:5, name = 'lincrash', stop reason = signal SIGSEGV<br>
> (lldb)<br>
><br>
> I can see the listing by going up and down the stack, but I’d like to see the listing on load. Is the no listing intended?<br>
><br>
> Ted<br>
><br>
> --<br>
> Qualcomm Innovation Center, Inc.<br>
> The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project<br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> lldb-dev mailing list<br>
> <a href="mailto:lldb-dev@lists.llvm.org">lldb-dev@lists.llvm.org</a><br>
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev</a><br>
<br>
_______________________________________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@lists.llvm.org">lldb-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">-Todd</div></div>
</div>