[PATCH] get_prompt API change

Keith Seitz <[email protected]>
Newsgroups gmane.comp.debugging.insight
Message-ID <[email protected]>
Hi,

I've committed the attached patch which fixes a build problem with 
get_prompt in gdbtk-cmds.c. That function now (once again) takes no 
arguments.

Keith

ChangeLog

2011-09-11  Keith Seitz  <[email protected]>

	* generic/gdbtk-cmds.c (gdb_prompt_command): get_prompt now
	takes no arguments.
get_prompt.patch (text/plain, 606 B)
Index: generic/gdbtk-cmds.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-cmds.c,v
retrieving revision 1.121
diff -u -p -r1.121 gdbtk-cmds.c
--- generic/gdbtk-cmds.c	1 Aug 2011 22:08:20 -0000	1.121
+++ generic/gdbtk-cmds.c	11 Sep 2011 16:33:06 -0000
@@ -793,7 +793,7 @@ static int
 gdb_prompt_command (ClientData clientData, Tcl_Interp *interp,
 		    int objc, Tcl_Obj *CONST objv[])
 {
-  Tcl_SetStringObj (result_ptr->obj_ptr, get_prompt (0), -1);
+  Tcl_SetStringObj (result_ptr->obj_ptr, get_prompt (), -1);
   return TCL_OK;
 }
 
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.