summaryrefslogtreecommitdiff
path: root/gdb/gdbtk
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2001-05-18 22:49:34 +0000
committerKeith Seitz <keiths@redhat.com>2001-05-18 22:49:34 +0000
commit090e250fb236395c6fe81c12189ebac23df6f8c1 (patch)
treeab6b2d5153a570c4e4ad86a28a8e6f43264a6a9d /gdb/gdbtk
parent45b93b735f741c314495e10756a154bc6fa663ac (diff)
downloadgdb-090e250fb236395c6fe81c12189ebac23df6f8c1.tar.gz
It appears that I forgot to check this in!
* generic/gdbtk-hooks.c (gdbtk_wait): Change integer pid argument to match gdb's new "ptid_t" pids.
Diffstat (limited to 'gdb/gdbtk')
-rw-r--r--gdb/gdbtk/ChangeLog5
-rw-r--r--gdb/gdbtk/generic/gdbtk-hooks.c12
2 files changed, 11 insertions, 6 deletions
diff --git a/gdb/gdbtk/ChangeLog b/gdb/gdbtk/ChangeLog
index 199d76c05b4..ceed6a64942 100644
--- a/gdb/gdbtk/ChangeLog
+++ b/gdb/gdbtk/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
2001-05-14 Keith Seitz <keiths@cygnus.com>
* library/interface.tcl (gdbtk_quit_check): Don't save sessions
diff --git a/gdb/gdbtk/generic/gdbtk-hooks.c b/gdb/gdbtk/generic/gdbtk-hooks.c
index 2dd19c694c4..717eda503b5 100644
--- a/gdb/gdbtk/generic/gdbtk-hooks.c
+++ b/gdb/gdbtk/generic/gdbtk-hooks.c
@@ -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;
}
/*