Hi Daisuke,<br><br><div class="gmail_quote">On Mon, Oct 22, 2012 at 3:29 PM, HATAYAMA Daisuke <span dir="ltr"><<a href="mailto:d.hatayama@jp.fujitsu.com" target="_blank">d.hatayama@jp.fujitsu.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Lei Wen <<a href="mailto:adrian.wenl@gmail.com">adrian.wenl@gmail.com</a>><br>
Subject: GCORE: add directly show backtrace function in crash<br>
Date: Mon, 22 Oct 2012 12:21:49 +0800<br>
<div><div class="h5"><br>
> Hi Daisuke,<br>
><br>
> I create a new option "-tT" for gcore, so that it could display bt for user<br>
> space<br>
> directly inside crash itself, without needing to dump a separated core file<br>
> image,<br>
> and analyze it in a different gdb env.<br>
><br>
> The attached patch is directly based on below patch, and verify over ARM<br>
> platform.<br>
> <a href="http://osdir.com/ml/general/2012-10/msg32677.html" target="_blank">http://osdir.com/ml/general/2012-10/msg32677.html</a><br>
><br>
> Before use the corresponding gcore command, we need set env in crash by:<br>
><br>
> crash>> gdb set solib-search-path [system lib path]<br>
><br>
> crash>> gdb file   [user space program symbol file]<br>
><br>
> crash>> gcore -t [user space thread id]<br>
><br>
> Thanks,<br>
> Lei<br>
<br>
</div></div>Hello Lei,<br>
<br>
That must be a useful feature, but I think it's very othogonal to<br>
gcore command...<br>
<br>
Why not releasing your own extension module separately to gcore?<br></blockquote><div><br></div><div>I put this function in gcore, is for gcore already provide the function to get</div><div>the general register for user space thread. If add another module, that</div>
<div>part of function seems a little duplicated...</div><div><br></div><div>Also provide the gcore the capability to either dump into a core file</div><div>or directly display, user may have more choice over this. :)</div>
<div><br></div></div><div>Thanks,</div><div>Lei</div>