This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[obv] Fix spu-tdep.c compilation failure
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Cc: Pedro Alves <pedro at codesourcery dot com>
- Date: Fri, 2 Jul 2010 10:05:57 +0200
- Subject: [obv] Fix spu-tdep.c compilation failure
Hi,
currently compilation failed with --enable-64-bit-bfd --enable-targets=all:
spu-tdep.c: In function ‘spu_catch_start’:
spu-tdep.c:1898: error: passing argument 10 of ‘create_breakpoint’ makes pointer from integer without a cast
breakpoint.h:834: note: expected ‘struct breakpoint_ops *’ but argument is of type ‘int’
spu-tdep.c:1898: error: passing argument 11 of ‘create_breakpoint’ makes integer from pointer without a cast
breakpoint.h:834: note: expected ‘int’ but argument is of type ‘void *’
spu-tdep.c:1898: error: too many arguments to function ‘create_breakpoint’
Checked-in as obvious.
Regards,
Jan
http://sourceware.org/ml/gdb-cvs/2010-07/msg00012.html
--- src/gdb/ChangeLog 2010/07/01 18:03:48 1.11959
+++ src/gdb/ChangeLog 2010/07/02 08:04:02 1.11960
@@ -1,3 +1,8 @@
+2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * spu-tdep.c (spu_catch_start): Adjust the caller of changed
+ create_breakpoint prototype.
+
2010-07-01 Pedro Alves <pedro@codesourcery.com>
* breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
--- src/gdb/spu-tdep.c 2010/06/23 12:46:35 1.61
+++ src/gdb/spu-tdep.c 2010/07/02 08:04:03 1.62
@@ -1892,7 +1892,7 @@
create_breakpoint (get_objfile_arch (objfile), buf /* arg */,
NULL /* cond_string */, -1 /* thread */,
0 /* parse_condition_and_thread */, 1 /* tempflag */,
- 0 /* hardwareflag */, 0 /* traceflag */,
+ bp_breakpoint /* type_wanted */,
0 /* ignore_count */,
AUTO_BOOLEAN_FALSE /* pending_break_support */,
NULL /* ops */, 0 /* from_tty */, 1 /* enabled */);