aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--breakpoints.c29
-rw-r--r--handle_event.c19
2 files changed, 0 insertions, 48 deletions
diff --git a/breakpoints.c b/breakpoints.c
index e7120ee..3eee38b 100644
--- a/breakpoints.c
+++ b/breakpoints.c
@@ -302,35 +302,6 @@ enable_all_breakpoints(Process *proc)
dict_apply_to_all(proc->breakpoints, enable_bp_cb,
proc);
}
-#ifdef __mips__
- {
- /*
- * I'm sure there is a nicer way to do this. We need to
- * insert breakpoints _after_ the child has been started.
- */
- struct library_symbol *sym;
- struct library_symbol *new_sym;
- sym=proc->list_of_symbols;
- while(sym){
- void *addr= sym2addr(proc,sym);
- if(!addr){
- sym=sym->next;
- continue;
- }
- if(dict_find_entry(proc->breakpoints,addr)){
- sym=sym->next;
- continue;
- }
- debug(2,"inserting bp %p %s",addr,sym->name);
- new_sym=malloc(sizeof(*new_sym) + strlen(sym->name) + 1);
- memcpy(new_sym,sym,sizeof(*new_sym) + strlen(sym->name) + 1);
- new_sym->next=proc->list_of_symbols;
- proc->list_of_symbols=new_sym;
- insert_breakpoint(proc, addr, new_sym);
- sym=sym->next;
- }
- }
-#endif
}
static void
diff --git a/handle_event.c b/handle_event.c
index a82581b..1720cb3 100644
--- a/handle_event.c
+++ b/handle_event.c
@@ -593,25 +593,6 @@ handle_breakpoint(Event *event)
for (i = event->proc->callstack_depth - 1; i >= 0; i--) {
if (brk_addr == event->proc->callstack[i].return_addr) {
-#if defined(__mips__)
- void *addr = NULL;
- struct library_symbol *sym= event->proc->callstack[i].c_un.libfunc;
- struct library_symbol *new_sym;
- assert(sym);
- addr = sym2addr(event->proc, sym);
- sbp = dict_find_entry(leader->breakpoints, addr);
- if (sbp) {
- if (addr != sbp->addr) {
- insert_breakpoint(event->proc, addr, sym);
- }
- } else {
- new_sym=malloc(sizeof(*new_sym) + strlen(sym->name) + 1);
- memcpy(new_sym,sym,sizeof(*new_sym) + strlen(sym->name) + 1);
- new_sym->next = leader->list_of_symbols;
- leader->list_of_symbols = new_sym;
- insert_breakpoint(event->proc, addr, new_sym);
- }
-#endif
for (j = event->proc->callstack_depth - 1; j > i; j--) {
callstack_pop(event->proc);
}