<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <div class="moz-forward-container">-------- Forwarded Message
      --------
      <table class="moz-email-headers-table" cellpadding="0"
        cellspacing="0" border="0">
        <tbody>
          <tr>
            <th nowrap="nowrap" valign="BASELINE" align="RIGHT">Subject:
            </th>
            <td>[PATCH 1/3] When stepping and plt is UNRESOLVED we need
              to stop to avoid undefinite loop</td>
          </tr>
          <tr>
            <th nowrap="nowrap" valign="BASELINE" align="RIGHT">Date: </th>
            <td>Wed, 23 Mar 2016 11:13:03 +0100</td>
          </tr>
          <tr>
            <th nowrap="nowrap" valign="BASELINE" align="RIGHT">From: </th>
            <td>Thierry Fauck <a class="moz-txt-link-rfc2396E" href="mailto:thierry.fauck@fr.ibm.com"><thierry.fauck@fr.ibm.com></a></td>
          </tr>
          <tr>
            <th nowrap="nowrap" valign="BASELINE" align="RIGHT">To: </th>
            <td><a class="moz-txt-link-abbreviated" href="mailto:ltrace-devel@lists.alioth.debian.org">ltrace-devel@lists.alioth.debian.org</a></td>
          </tr>
          <tr>
            <th nowrap="nowrap" valign="BASELINE" align="RIGHT">CC: </th>
            <td>Thierry Fauck <a class="moz-txt-link-rfc2396E" href="mailto:tfauck@free.fr"><tfauck@free.fr></a></td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      <pre>From: Thierry Fauck <a class="moz-txt-link-rfc2396E" href="mailto:tfauck@free.fr"><tfauck@free.fr></a>

This patch return appropriate flag to stop stepping

        modified:   sysdeps/linux-gnu/ppc/plt.c

Signed-off-by: Thierry Fauck <a class="moz-txt-link-rfc2396E" href="mailto:tfauck@free.fr"><tfauck@free.fr></a>
---
 sysdeps/linux-gnu/ppc/plt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sysdeps/linux-gnu/ppc/plt.c b/sysdeps/linux-gnu/ppc/plt.c
index 5f81889..2238e4e 100644
--- a/sysdeps/linux-gnu/ppc/plt.c
+++ b/sysdeps/linux-gnu/ppc/plt.c
@@ -946,7 +946,7 @@ cb_keep_stepping_p(struct process_stopping_handler *self)
        /* In UNRESOLVED state, the RESOLVED_VALUE in fact contains
         * the PLT entry value.  */
        if (value == libsym->arch.resolved_value)
-               return CBS_CONT;
+               return CBS_STOP;
 
        debug(DEBUG_PROCESS, "pid=%d PLT got resolved to value %#"PRIx64,
              proc->pid, value);
-- 
2.7.0

</pre>
      <br>
    </div>
    <br>
  </body>
</html>