<p>Jenkins2 <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/10423">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Corey Farrell: Looks good to me, but someone else must approve
  George Joseph: Looks good to me, approved
  Jenkins2: Approved for Submit

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">ast_coredumper: Remove .gdbinit file on exit<br><br>Change-Id: I1297de78628773ca368e687c6f148bf74857cae9<br>---<br>M contrib/scripts/ast_coredumper<br>1 file changed, 6 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/contrib/scripts/ast_coredumper b/contrib/scripts/ast_coredumper</span><br><span>index b2ab4ac..a098e5d 100755</span><br><span>--- a/contrib/scripts/ast_coredumper</span><br><span>+++ b/contrib/scripts/ast_coredumper</span><br><span>@@ -419,8 +419,12 @@</span><br><span> # Extract the gdb scripts from the end of this script</span><br><span> # and save them to /tmp/.gdbinit</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+gdbinit=${OUTPUTDIR:-/tmp}/.ast_coredumper.gdbinit</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+trap "rm $gdbinit" EXIT</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> ss=`egrep -n "^#@@@SCRIPTSTART@@@" $0 |cut -f1 -d:`</span><br><span style="color: hsl(0, 100%, 40%);">-tail -n +${ss} $0 >${OUTPUTDIR:-/tmp}/.ast_coredumper.gdbinit</span><br><span style="color: hsl(120, 100%, 40%);">+tail -n +${ss} $0 >$gdbinit</span><br><span> </span><br><span> # Now iterate over the coredumps and dump the debugging info</span><br><span> for i in ${!COREDUMPS[@]} ; do</span><br><span>@@ -431,7 +435,7 @@</span><br><span>   cfname=`basename ${cf}`</span><br><span>      outputdir=${OUTPUTDIR:-${cfdir}}</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-    ${GDB} -n --batch -q --ex "source ${OUTPUTDIR:-/tmp}/.ast_coredumper.gdbinit" "$asterisk_bin" "$cf" 2>/dev/null | (</span><br><span style="color: hsl(120, 100%, 40%);">+  ${GDB} -n --batch -q --ex "source $gdbinit" "$asterisk_bin" "$cf" 2>/dev/null | (</span><br><span>           of=/dev/null</span><br><span>                 while IFS= read line ; do</span><br><span>                    if [[ "$line" =~ !@!@!@!\ ([^\ ]+)\ !@!@!@! ]] ; then</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/10423">change 10423</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/10423"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I1297de78628773ca368e687c6f148bf74857cae9 </div>
<div style="display:none"> Gerrit-Change-Number: 10423 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Sean Bright <sean.bright@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 (1000185) </div>