Re: [BUG] gdbtk-bp.c: got build error

Keith Seitz <[email protected]>
Newsgroups gmane.comp.debugging.insight
Message-ID <[email protected]>
On 11/13/2010 06:58 AM, Hui Zhu wrote:
> ../../src/gdb/gdbtk/generic/gdbtk-bp.c: In function 'gdb_set_bp':
> ../../src/gdb/gdbtk/generic/gdbtk-bp.c:557: error: too few arguments
> to function 'create_breakpoint'

Thank you for reporting this. I've committed the attached patch to fix this.

Keith

ChangeLog
2010-11-13  Keith Seitz  <[email protected]>

	* generic/gdbtk-bp.c (gdb_set_bp): Update for recent
	create_breakpoint API update.
create_breakpoint-update.patch (text/plain, 542 B)
Index: generic/gdbtk-bp.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-bp.c,v
retrieving revision 1.37
diff -u -p -r1.37 gdbtk-bp.c
--- generic/gdbtk-bp.c	4 Jul 2010 18:13:14 -0000	1.37
+++ generic/gdbtk-bp.c	13 Nov 2010 23:23:29 -0000
@@ -554,7 +554,7 @@ gdb_set_bp (ClientData clientData, Tcl_I
 			 (pending ? AUTO_BOOLEAN_TRUE : AUTO_BOOLEAN_FALSE),
 			 NULL	/* breakpoint ops */,
 			 0	/* from_tty */,
-			 enabled);
+			 enabled, 0);
     }
 
   if (e.reason < 0)
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.