OSDN Git Service

* generic/gdbtk-bp.c (tracepoint_exists): Remove recently
authorkseitz <kseitz>
Tue, 12 Apr 2011 05:11:08 +0000 (05:11 +0000)
committerkseitz <kseitz>
Tue, 12 Apr 2011 05:11:08 +0000 (05:11 +0000)
removed "not_found_ptr" argument from call to decode_line_1.
* generic/gdbtk-stack.c (gdb_get_vars_command): Likewise.
* generic/gdbtk-cmds.c (gdb_get_line_command): Likewise.
(gdb_get_file_command): Likewise.
(gdb_get_function_command): Likewise.

From Kevin Buettner  <kevinb@redhat.com>
* generic/gdbtk-register.c (): Delete declaration of `buffer'.
Use `valaddr' in its place.

gdb/gdbtk/ChangeLog
gdb/gdbtk/generic/gdbtk-bp.c
gdb/gdbtk/generic/gdbtk-cmds.c
gdb/gdbtk/generic/gdbtk-register.c
gdb/gdbtk/generic/gdbtk-stack.c

index 39653d4..1dcd6d9 100644 (file)
@@ -1,3 +1,16 @@
+2011-04-11  Keith Seitz  <keiths@redhat.com>
+
+       * generic/gdbtk-bp.c (tracepoint_exists): Remove recently
+       removed "not_found_ptr" argument from call to decode_line_1.
+       * generic/gdbtk-stack.c (gdb_get_vars_command): Likewise.
+       * generic/gdbtk-cmds.c (gdb_get_line_command): Likewise.
+       (gdb_get_file_command): Likewise.
+       (gdb_get_function_command): Likewise.
+
+       From Kevin Buettner  <kevinb@redhat.com>
+       * generic/gdbtk-register.c (): Delete declaration of `buffer'.
+       Use `valaddr' in its place.
+
 2011-04-08  Keith Seitz  <keiths@redhat.com>
 
        * generic/gdbtk-bp.c (tracepoint_exists): Update for
index 6787928..7ceaf39 100644 (file)
@@ -831,7 +831,7 @@ tracepoint_exists (char *args)
   char *file = NULL;
   int result = -1;
 
-  sals = decode_line_1 (&args, 1, NULL, 0, NULL, NULL);
+  sals = decode_line_1 (&args, 1, NULL, 0, NULL);
   if (sals.nelts == 1)
     {
       resolve_sal_pc (&sals.sals[0]);
index 7d50fd6..e15cf2a 100644 (file)
@@ -961,7 +961,7 @@ gdb_get_line_command (ClientData clientData, Tcl_Interp *interp,
     }
 
   args = Tcl_GetStringFromObj (objv[1], NULL);
-  sals = decode_line_1 (&args, 1, NULL, 0, NULL, NULL);
+  sals = decode_line_1 (&args, 1, NULL, 0, NULL);
   if (sals.nelts == 1)
     {
       Tcl_SetIntObj (result_ptr->obj_ptr, sals.sals[0].line);
@@ -997,7 +997,7 @@ gdb_get_file_command (ClientData clientData, Tcl_Interp *interp,
     }
 
   args = Tcl_GetStringFromObj (objv[1], NULL);
-  sals = decode_line_1 (&args, 1, NULL, 0, NULL, NULL);
+  sals = decode_line_1 (&args, 1, NULL, 0, NULL);
   if (sals.nelts == 1)
     {
       Tcl_SetStringObj (result_ptr->obj_ptr,
@@ -1033,7 +1033,7 @@ gdb_get_function_command (ClientData clientData, Tcl_Interp *interp,
     }
 
   args = Tcl_GetStringFromObj (objv[1], NULL);
-  sals = decode_line_1 (&args, 1, NULL, 0, NULL, NULL);
+  sals = decode_line_1 (&args, 1, NULL, 0, NULL);
   if (sals.nelts == 1)
     {
       resolve_sal_pc (&sals.sals[0]);
index f6d7ff5..654e0c2 100644 (file)
@@ -276,7 +276,6 @@ get_register (int regnum, map_arg arg)
   CORE_ADDR addr;
   enum lval_type lval;
   struct type *reg_vtype;
-  gdb_byte buffer[MAX_REGISTER_SIZE];
   int format;
   struct cleanup *old_chain = NULL;
   struct ui_file *stb;
@@ -330,7 +329,7 @@ get_register (int regnum, map_arg arg)
        {
          int idx = ((gdbarch_byte_order (gdbarch) == BFD_ENDIAN_BIG)
                     ? j : register_size (gdbarch, regnum) - 1 - j);
-         sprintf (ptr, "%02x", (unsigned char) buffer[idx]);
+         sprintf (ptr, "%02x", (unsigned char) valaddr[idx]);
          ptr += 2;
        }
       fputs_unfiltered (buf, stb);
index 8fc0149..c1ec564 100644 (file)
@@ -298,7 +298,7 @@ gdb_get_vars_command (ClientData clientData, Tcl_Interp *interp,
   if (objc == 2)
     {
       args = Tcl_GetStringFromObj (objv[1], NULL);
-      sals = decode_line_1 (&args, 1, NULL, 0, NULL, NULL);
+      sals = decode_line_1 (&args, 1, NULL, 0, NULL);
       if (sals.nelts == 0)
        {
          gdbtk_set_result (interp, "error decoding line");