pkgsrc-wip/gdb6/patches/patch-cli_cli_dump_c
John R. Shannon 5cf93ea102 1) Added test target to Makefile
2) Added some patches that reduce the number of unexpected failures
   in testsuite
2004-05-07 08:50:17 +00:00

28 lines
717 B
Text

$NetBSD: patch-cli_cli_dump_c,v 1.1 2004/05/07 08:50:18 johnrshannon Exp $
--- gdb/cli/cli-dump.c.orig 2004-02-28 11:04:37.000000000 -0700
+++ gdb/cli/cli-dump.c
@@ -72,7 +72,6 @@ scan_expression_with_cleanup (char **cmd
static void
do_fclose_cleanup (void *arg)
{
- FILE *file = arg;
fclose (arg);
}
@@ -233,7 +232,6 @@ dump_memory_to_file (char *cmd, char *mo
void *buf;
char *lo_exp;
char *hi_exp;
- int len;
/* Open the file. */
filename = scan_filename_with_cleanup (&cmd, NULL);
@@ -521,7 +519,6 @@ static void
restore_binary_file (char *filename, struct callback_data *data)
{
FILE *file = fopen_with_cleanup (filename, FOPEN_RB);
- int status;
char *buf;
long len;