<p>Tzafrir Cohen has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/6939">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">ast_coredumper: allow setting asterisk binary explicitly<br><br>Adds an extra option, --asterisk-bin=<path> to ast_coredumper. If<br>provided, the binary given to gdb will be the parameter, rather than<br>asterisk from the PATH.<br><br>ASTERISK-27380 #close<br><br>Change-Id: I25f5b91eb75059b0fb2f142e468c26b283b0a9f3<br>---<br>M contrib/scripts/ast_coredumper<br>1 file changed, 12 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/39/6939/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/contrib/scripts/ast_coredumper b/contrib/scripts/ast_coredumper<br>index 81e94e9..73c7917 100755<br>--- a/contrib/scripts/ast_coredumper<br>+++ b/contrib/scripts/ast_coredumper<br>@@ -17,6 +17,7 @@<br> [ --tarball-results ] [ --delete-results-after ]<br> [ --tarball-uniqueid="<uniqueid>" ]<br> [ --no-default-search ] [ --append-coredumps ]<br>+ [ --asterisk-bin="path" ]<br> [ <coredump> | <pattern> ... ]<br> <br> DESCRIPTION<br>@@ -95,6 +96,10 @@<br> --append-coredumps<br> Append any coredumps specified on the command line to the<br> config file specified ones instead of overriding them.<br>+<br>+ --asterisk-binary<br>+ Path to the asterisk binary. Default: look for asterisk<br>+ in the PATH.<br> <br> <coredump> | <pattern><br> A list of coredumps or coredump search patterns. Unless<br>@@ -261,6 +266,9 @@<br> --tarball-uniqueid=*)<br> tarball_uniqueid=${a#*=}<br> ;;<br>+ --asterisk-bin=*)<br>+ asterisk_bin=${a#*=}<br>+ ;;<br> --help|-*)<br> print_help<br> ;;<br>@@ -362,7 +370,10 @@<br> for i in ${!COREDUMPS[@]} ; do<br> cf=${COREDUMPS[$i]}<br> echo "Processing $cf"<br>- ${GDB} -n --batch -q --ex "source /tmp/.ast_coredumper.gdbinit" $(which asterisk) "$cf" 2>/dev/null | (<br>+ if [ -z "$asterisk_bin" ]; then<br>+ asterisk_bin=$(which asterisk)<br>+ fi<br>+ ${GDB} -n --batch -q --ex "source /tmp/.ast_coredumper.gdbinit" "$asterisk_bin" "$cf" 2>/dev/null | (<br> of=/dev/null<br> while IFS= read line ; do<br> if [[ "$line" =~ !@!@!@!\ ([^\ ]+)\ !@!@!@! ]] ; then<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/6939">change 6939</a>. To unsubscribe, 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/6939"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I25f5b91eb75059b0fb2f142e468c26b283b0a9f3 </div>
<div style="display:none"> Gerrit-Change-Number: 6939 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Tzafrir Cohen <tzafrir.cohen@xorcom.com> </div>