Vicente Olivert Riera <[email protected]> writes: > - int rc = unw_get_reg(&cursor, UNW_REG_IP, > - (unw_word_t *) &ip); > + int rc = unw_get_reg(&cursor, UNW_REG_IP, &uw_ip); > + ip = (arch_addr_t) uw_ip; > + assert(uw_ip == (unw_word_t) ip); > + > if (rc < 0) {
Sorry, I know this is literally what I said should be done, but when unw_get_reg fails, uw_ip should be considered uninitialized and the following assert might fail. Please move the assignment and the assert behind the condition block. Thank you, Petr _______________________________________________ Ltrace-devel mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/ltrace-devel
