- fix attaching to process (attach patch) - add fork & exec patches from IBM - adjust weak symbol handling (ppc32fc5 patch)
23 lines
710 B
Diff
23 lines
710 B
Diff
diff -Bburp ltrace-0.5/breakpoints.c ltrace-0.5-pm/breakpoints.c
|
|
--- ltrace-0.5/breakpoints.c 2006-08-30 08:03:25.000000000 -0400
|
|
+++ ltrace-0.5-pm/breakpoints.c 2006-08-30 08:02:39.000000000 -0400
|
|
@@ -20,6 +20,10 @@
|
|
|
|
struct breakpoint *address2bpstruct(struct process *proc, void *addr)
|
|
{
|
|
+ if (!proc->breakpoints) {
|
|
+ proc->breakpoints =
|
|
+ dict_init(dict_key2hash_int, dict_key_cmp_int);
|
|
+ }
|
|
return dict_find_entry(proc->breakpoints, addr);
|
|
}
|
|
|
|
@@ -33,7 +39,6 @@ insert_breakpoint(struct process *proc,
|
|
if (!proc->breakpoints) {
|
|
proc->breakpoints =
|
|
dict_init(dict_key2hash_int, dict_key_cmp_int);
|
|
- /* atexit(brk_dict_clear); *//* why bother to do this on exit? */
|
|
}
|
|
|
|
if (!addr)
|