Re: gdbtk-cmds.c is no longer compiling

Keith Seitz <[email protected]> Tue, 30 Jul 2013 16:16:55 -0700
Newsgroups gmane.comp.debugging.insight
Message-ID <[email protected]>
On 07/26/2013 08:31 AM, Keith Seitz wrote:
> On 07/26/2013 02:26 AM, Roland Schwingel wrote:
>> Any clue on how to continue here?
>
> I think you can just delete that block. It may no longer be necessary.
>
> Give that a try and see if it makes any difference. I didn't notice a
> difference here.

Well, it seems to work for me, so I've committed this to get the build 
working again.

Keith

ChangeLog
2013-07-30  Keith Seitz  <[email protected]>

	* generic/gdbtk-cmds.c (gdb_clear_file): Remove use of pop_target,
	which was recently removed from gdb.
pop_target.patch (text/x-patch, 537 B)
Index: generic/gdbtk-cmds.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-cmds.c,v
retrieving revision 1.134
diff -u -p -r1.134 gdbtk-cmds.c
--- generic/gdbtk-cmds.c	2 Jul 2013 17:07:29 -0000	1.134
+++ generic/gdbtk-cmds.c	30 Jul 2013 23:13:11 -0000
@@ -487,9 +487,6 @@ gdb_clear_file (ClientData clientData, T
 	target_kill ();
     }
 
-  if (target_has_execution)
-    pop_target ();
-
   delete_command (NULL, 0);
   exec_file_clear (0);
   symbol_file_clear (0);