This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
[PATCH] Update gdbtk_wait for ptid
- To: Insight Maling List <insight at sources dot redhat dot com>
- Subject: [PATCH] Update gdbtk_wait for ptid
- From: Keith Seitz <keiths at cygnus dot com>
- Date: Fri, 18 May 2001 15:54:08 -0700 (PDT)
Hi,
It appears that I forgot to check this in!
2001-05-18 Keith Seitz <keiths@cygnus.com>
* generic/gdbtk-hooks.c (gdbtk_wait): Change integer pid
argument to match gdb's new "ptid_t" pids.
Index: generic/gdbtk-hooks.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-hooks.c,v
retrieving revision 1.13
diff -u -p -r1.13 gdbtk-hooks.c
--- gdbtk-hooks.c 2001/05/10 22:34:54 1.13
+++ gdbtk-hooks.c 2001/05/18 21:31:46
@@ -88,7 +88,7 @@ static void gdbtk_file_changed (char *);
static void gdbtk_exec_file_display (char *);
static void tk_command_loop (void);
static void gdbtk_call_command (struct cmd_list_element *, char *, int);
-static int gdbtk_wait (int, struct target_waitstatus *);
+static ptid_t gdbtk_wait (ptid_t, struct target_waitstatus *);
int x_event (int);
static int gdbtk_query (const char *, va_list);
static void gdbtk_warning (const char *, va_list);
@@ -661,17 +661,17 @@ gdbtk_post_add_symbol ()
/* This hook function is called whenever we want to wait for the
target. */
-static int
-gdbtk_wait (pid, ourstatus)
- int pid;
+static ptid_t
+gdbtk_wait (ptid, ourstatus)
+ ptid_t ptid;
struct target_waitstatus *ourstatus;
{
gdbtk_force_detach = 0;
gdbtk_start_timer ();
- pid = target_wait (pid, ourstatus);
+ ptid = target_wait (ptid, ourstatus);
gdbtk_stop_timer ();
- return pid;
+ return ptid;
}
/*