Re: Build gdbtk-cmds.c get error

Keith Seitz <[email protected]>
Newsgroups gmane.comp.debugging.insight
Message-ID <[email protected]>
On 07/04/2010 01:20 AM, Hui Zhu wrote:
> ../../src/gdb/gdbtk/generic/gdbtk-bp.c:558: error: too many arguments
> to function 'create_breakpoint'

I've committed the attached patch to fix this, another API change in gdb.

Thank you for bringing this to my attention.

Keith

ChangeLog
2010-07-04  Keith Seitz  <[email protected]>

	* generic/gdbtk-bp.c (gdb_set_bp): Update arguments for API
	change in create_breakpoint.
update-create-breakpoint-api.patch (text/plain, 696 B)
Index: generic/gdbtk-bp.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-bp.c,v
retrieving revision 1.36
diff -u -p -r1.36 gdbtk-bp.c
--- generic/gdbtk-bp.c	2 Apr 2010 23:39:55 -0000	1.36
+++ generic/gdbtk-bp.c	4 Jul 2010 18:09:32 -0000
@@ -549,8 +549,7 @@ gdb_set_bp (ClientData clientData, Tcl_I
       create_breakpoint (get_current_arch (), address, condition, thread,
 			 0	/* condition and thread are valid */,
 			 temp,
-			 0	/* hardware flag */,
-			 0	/* trace flag */,
+			 bp_breakpoint /* type wanted */,
 			 ignore_count,
 			 (pending ? AUTO_BOOLEAN_TRUE : AUTO_BOOLEAN_FALSE),
 			 NULL	/* breakpoint ops */,
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.