This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[obv,bfin] Use NULL instead of 0
- From: Yao Qi <yao at codesourcery dot com>
- To: <gdb-patches at sourceware dot org>
- Date: Mon, 18 Feb 2013 22:42:41 +0800
- Subject: [obv,bfin] Use NULL instead of 0
When investigating the usage of "breakpoint_reinsert_addr", I happen
to see that we can use NULL instead of 0 when setting
"the_low_target".
Rebuild gdbserver with bfin-linux-uclibc-gcc. I'll commit it as
obvious.
gdb/gdbserver:
2013-02-18 Yao Qi <yao@codesourcery.com>
* linux-bfin-low.c (the_low_target): Use NULL instead of 0.
---
gdb/gdbserver/linux-bfin-low.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gdb/gdbserver/linux-bfin-low.c b/gdb/gdbserver/linux-bfin-low.c
index 0568b19..3295ffd 100644
--- a/gdb/gdbserver/linux-bfin-low.c
+++ b/gdb/gdbserver/linux-bfin-low.c
@@ -102,7 +102,7 @@ struct linux_target_ops the_low_target = {
bfin_set_pc,
bfin_breakpoint,
bfin_breakpoint_len,
- 0,
+ NULL, /* breakpoint_reinsert_addr */
2,
bfin_breakpoint_at,
};
--
1.7.7.6