[PATCH] Fix build gdbtk-hooks.c problem [was Re: grossly out of date???]

Keith Seitz <[email protected]> Wed, 24 Oct 2012 08:34:16 -0700
Newsgroups gmane.comp.debugging.insight
Message-ID <[email protected]>
On 10/24/2012 03:59 AM, Dave U. Random wrote:
>
> Yes but the daily CVS is often broken. Like now, for instance :-(
>

That's my fault: Lately, I've been doing a lot of debugging (using 
insight, of course), and I haven't been keeping up on building from HEAD 
as often as I should.

Here is a patch which fixes the build problem. This is the only problem 
that I noticed. If there are others, please send a note to the list to 
draw my attention to it.

I do try to keep insight building/working.

Keith

ChangeLog
2012-10-24  Keith Seitz  <[email protected]>

	* generic/gdbtk-hooks.c (gdbtk_memory_changed): Update for
	API changes.

Index: generic/gdbtk-hooks.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-hooks.c,v
retrieving revision 1.56
diff -u -p -r1.56 gdbtk-hooks.c
--- generic/gdbtk-hooks.c	10 Oct 2012 17:28:03 -0000	1.56
+++ generic/gdbtk-hooks.c	24 Oct 2012 15:29:40 -0000
@@ -94,8 +94,8 @@ static void gdbtk_pre_add_symbol (const
  static void gdbtk_print_frame_info (struct symtab *, int, int, int);
  static void gdbtk_post_add_symbol (void);
  static void gdbtk_register_changed (int regno);
-static void gdbtk_memory_changed (CORE_ADDR addr, ssize_t len,
-				  const bfd_byte *data);
+static void gdbtk_memory_changed (struct inferior *inferior, CORE_ADDR 
addr,
+				  ssize_t len, const bfd_byte *data);
  static void gdbtk_selected_frame_changed (int);
  static void gdbtk_context_change (int);
  static void gdbtk_error_begin (void);
@@ -399,7 +399,8 @@ gdbtk_register_changed (int regno)
  }

  static void
-gdbtk_memory_changed (CORE_ADDR addr, ssize_t len, const bfd_byte *data)
+gdbtk_memory_changed (struct inferior *inferior, CORE_ADDR addr,
+		      ssize_t len, const bfd_byte *data)
  {
    if (Tcl_Eval (gdbtk_interp, "gdbtk_memory_changed") != TCL_OK)
      report_error ();