[Ltrace-devel] [PATCH for-0.7.0 v2] mips: Workaround for breakage in breakpoint_for_symbol()

Sedat Dilek sedat.dilek at gmail.com
Sat Nov 10 14:42:02 UTC 2012


Unfortunately, builds for the MIPS arch are known to be BROKEN (see [1])!

Edgar (ltrace MIPS maintainer) is cooking up a "real" fix, so this here is a
temporary workaround!
For a "WIP" patch from Edgar see [2] and as usually feedback is welcome.

[1] http://lists.alioth.debian.org/pipermail/ltrace-devel/2012-November/000764.html
[2] http://lists.alioth.debian.org/pipermail/ltrace-devel/2012-November/000770.html

Signed-off-by: Sedat Dilek <sedat.dilek at gmail.com>
---
 proc.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/proc.c b/proc.c
index e17b9ed..43ccbfd 100644
--- a/proc.c
+++ b/proc.c
@@ -752,8 +752,10 @@ breakpoint_for_symbol(struct library_symbol *libsym, struct Process *proc)
 	struct breakpoint *bp = dict_find_entry(proc->breakpoints,
 						bp_addr);
 	if (bp != NULL) {
+#ifndef __mips__
 		assert(bp->libsym == NULL);
 		bp->libsym = libsym;
+#endif
 		return 0;
 	}
 
-- 
1.7.9.5




More information about the Ltrace-devel mailing list