Module Name: src
Committed By: martin
Date: Mon Jul 11 18:47:01 UTC 2011
Modified Files:
src/gnu/dist/gdb6/gdb: breakpoint.c
Log Message:
replace "(CORE_ADDR) (uintptr_t) NULL" by a simple "0" - avoids the dance
with HAVE_STDINT_H and fixes the tool build for me.
Idea from dsl, OK: mrg.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/gnu/dist/gdb6/gdb/breakpoint.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/gnu/dist/gdb6/gdb/breakpoint.c
diff -u src/gnu/dist/gdb6/gdb/breakpoint.c:1.2 src/gnu/dist/gdb6/gdb/breakpoint.c:1.3
--- src/gnu/dist/gdb6/gdb/breakpoint.c:1.2 Sun Jul 3 15:26:06 2011
+++ src/gnu/dist/gdb6/gdb/breakpoint.c Mon Jul 11 18:47:01 2011
@@ -1327,7 +1327,7 @@
(b->type == bp_catch_vfork) ||
(b->type == bp_catch_fork))
{
- b->loc->address = (CORE_ADDR) (uintptr_t) NULL;
+ b->loc->address = 0;
continue;
}
@@ -1380,7 +1380,7 @@
unnecessary. A call to breakpoint_re_set_one always recomputes
the breakpoint's address from scratch, or deletes it if it can't.
So I think this assignment could be deleted without effect. */
- b->loc->address = (CORE_ADDR) (uintptr_t) NULL;
+ b->loc->address = 0;
}
/* FIXME what about longjmp breakpoints? Re-create them here? */
create_overlay_event_breakpoint ("_ovly_debug_event");