public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: "Pierre Muller" <muller@ics.u-strasbg.fr>
To: <insight@sourceware.org>
Subject: [OBV] Fix compilation error after target_wait_hook change
Date: Sun, 24 May 2009 15:42:00 -0000	[thread overview]
Message-ID: <003f01c9dc4b$09fcf340$1df6d9c0$@u-strasbg.fr> (raw)

Pedro's patch 

http://sourceware.org/ml/gdb-patches/2009-05/msg00459.html
generates a compilation failure in gdbtk/generic/gdbtk-hooks.c

  The patch below fixes it.

As this is a rather automatic change, I
took the liberty of checking it in as obvious fix.

  I hope that this is OK.


Pierre Muller
Pascal language support maintainer for GDB




ChangeLog Entry:

2009-05-24  Pierre Muller  <muller@ics.u-strasbg.fr>

       * Adapt to target_wait_hook change.
       * generic/gdbtk-hooks.c (gdbtk_wait): Add `options' argument.


Index: generic/gdbtk-hooks.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-hooks.c,v
retrieving revision 1.48
diff -u -p -r1.48 gdbtk-hooks.c
--- generic/gdbtk-hooks.c       6 Apr 2009 23:11:10 -0000       1.48
+++ generic/gdbtk-hooks.c       24 May 2009 08:32:55 -0000
@@ -83,7 +83,7 @@ static void gdbtk_detach (void);
 static void gdbtk_file_changed (char *);
 static void gdbtk_exec_file_display (char *);
 static void gdbtk_call_command (struct cmd_list_element *, char *, int);
-static ptid_t gdbtk_wait (ptid_t, struct target_waitstatus *);
+static ptid_t gdbtk_wait (ptid_t, struct target_waitstatus *, int);
 int x_event (int);
 static int gdbtk_query (const char *, va_list);
 static void gdbtk_warning (const char *, va_list);
@@ -658,11 +658,11 @@ gdbtk_post_add_symbol ()
    target.  */

 static ptid_t
-gdbtk_wait (ptid_t ptid, struct target_waitstatus *ourstatus)
+gdbtk_wait (ptid_t ptid, struct target_waitstatus *ourstatus, int options)
 {
   gdbtk_force_detach = 0;
   gdbtk_start_timer ();
-  ptid = target_wait (ptid, ourstatus);
+  ptid = target_wait (ptid, ourstatus, options);
   gdbtk_stop_timer ();
   gdbtk_ptid = ptid;

             reply	other threads:[~2009-05-24  8:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-24 15:42 Pierre Muller [this message]
2009-05-26 19:31 ` Keith Seitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='003f01c9dc4b$09fcf340$1df6d9c0$@u-strasbg.fr' \
    --to=muller@ics.u-strasbg.fr \
    --cc=insight@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).