This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix gdb build failure in gdbtk


[Please Cc me for replies]

Hello All,

the appended patch adjusts the decode_line_1 calls in gdbtk.


Thiemo

/gdb/gdbtk/ChangeLog
2003-12-28  Thiemo Seufer <seufer@dev.ica.uni-stuttgart.de>
	* generic/gdbtk-bp.c (tracepoint_exists): Fix decode_line_1 call.
	* generic/gdbtk-cmds.c (gdb_get_line_command,gdb_get_file_command,
	gdb_get_function_command): Likewise.
	* generic/gdbtk-stack.c (gdb_get_vars_command): Likewise.


diff -urpNX /bigdisk/src/gcc-exclude source-orig/gdb/gdbtk/generic/gdbtk-bp.c source/gdb/gdbtk/generic/gdbtk-bp.c
--- source-orig/gdb/gdbtk/generic/gdbtk-bp.c	Mon Nov 17 23:04:35 2003
+++ source/gdb/gdbtk/generic/gdbtk-bp.c	Sun Dec 28 13:59:42 2003
@@ -905,7 +905,7 @@ tracepoint_exists (char *args)
   char *file = NULL;
   int result = -1;
 
-  sals = decode_line_1 (&args, 1, NULL, 0, &canonical);
+  sals = decode_line_1 (&args, 1, NULL, 0, &canonical, NULL);
   if (sals.nelts == 1)
     {
       resolve_sal_pc (&sals.sals[0]);
diff -urpNX /bigdisk/src/gcc-exclude source-orig/gdb/gdbtk/generic/gdbtk-cmds.c source/gdb/gdbtk/generic/gdbtk-cmds.c
--- source-orig/gdb/gdbtk/generic/gdbtk-cmds.c	Thu Dec 18 19:36:16 2003
+++ source/gdb/gdbtk/generic/gdbtk-cmds.c	Sun Dec 28 13:59:41 2003
@@ -938,7 +938,7 @@ gdb_get_line_command (ClientData clientD
     }
 
   args = Tcl_GetStringFromObj (objv[1], NULL);
-  sals = decode_line_1 (&args, 1, NULL, 0, &canonical);
+  sals = decode_line_1 (&args, 1, NULL, 0, &canonical, NULL);
   if (sals.nelts == 1)
     {
       Tcl_SetIntObj (result_ptr->obj_ptr, sals.sals[0].line);
@@ -974,7 +974,7 @@ gdb_get_file_command (ClientData clientD
     }
 
   args = Tcl_GetStringFromObj (objv[1], NULL);
-  sals = decode_line_1 (&args, 1, NULL, 0, &canonical);
+  sals = decode_line_1 (&args, 1, NULL, 0, &canonical, NULL);
   if (sals.nelts == 1)
     {
       Tcl_SetStringObj (result_ptr->obj_ptr,
@@ -1010,7 +1010,7 @@ gdb_get_function_command (ClientData cli
     }
 
   args = Tcl_GetStringFromObj (objv[1], NULL);
-  sals = decode_line_1 (&args, 1, NULL, 0, &canonical);
+  sals = decode_line_1 (&args, 1, NULL, 0, &canonical, NULL);
   if (sals.nelts == 1)
     {
       resolve_sal_pc (&sals.sals[0]);
diff -urpNX /bigdisk/src/gcc-exclude source-orig/gdb/gdbtk/generic/gdbtk-stack.c source/gdb/gdbtk/generic/gdbtk-stack.c
--- source-orig/gdb/gdbtk/generic/gdbtk-stack.c	Thu Jun 12 15:22:21 2003
+++ source/gdb/gdbtk/generic/gdbtk-stack.c	Sun Dec 28 13:59:41 2003
@@ -301,7 +301,7 @@ gdb_get_vars_command (ClientData clientD
   if (objc == 2)
     {
       args = Tcl_GetStringFromObj (objv[1], NULL);
-      sals = decode_line_1 (&args, 1, NULL, 0, &canonical);
+      sals = decode_line_1 (&args, 1, NULL, 0, &canonical, NULL);
       if (sals.nelts == 0)
 	{
 	  gdbtk_set_result (interp, "error decoding line");


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]