This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
[PATCH] 'inferior_pid' got renamed
- To: insight at sources dot redhat dot com
- Subject: [PATCH] 'inferior_pid' got renamed
- From: Phil Edwards <pedwards at disaster dot jaj dot com>
- Date: Sun, 6 May 2001 02:39:07 -0400
The variable inferior_pid was renamed everywhere in gdb sources recently,
but gdbtk-cmds.c needed to be changed also. (Figured this out the hard
way after reading the gdb ChangeLog.) The following patch lets me build.
Phil
Index: gdbtk-cmds.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-cmds.c,v
retrieving revision 1.33
diff -u -3 -p -r1.33 gdbtk-cmds.c
--- gdbtk-cmds.c 2001/04/23 20:28:28 1.33
+++ gdbtk-cmds.c 2001/05/06 07:53:35
@@ -624,7 +624,7 @@ gdb_clear_file (clientData, interp, objc
return TCL_ERROR;
}
- if (inferior_pid != 0 && target_has_execution)
+ if (inferior_ptid != 0 && target_has_execution)
{
if (attach_flag)
target_detach (NULL, 0);
@@ -981,7 +981,7 @@ gdb_target_has_execution_command (client
{
int result = 0;
- if (target_has_execution && inferior_pid != 0)
+ if (target_has_execution && inferior_ptid != 0)
result = 1;
Tcl_SetBooleanObj (result_ptr->obj_ptr, result);