aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1995-11-24 23:21:38 +0000
committerJeff Law <law@redhat.com>1995-11-24 23:21:38 +0000
commit05ee0201d11d7e42caac1f6d2f718acfe1501623 (patch)
tree389a6fcc287f5b281f6d74ddde5a2f9ce61cc97e /gdb
parent45525d8d6da63f0dead75426c3b84f33d8289da9 (diff)
downloadgdb-05ee0201d11d7e42caac1f6d2f718acfe1501623.zip
gdb-05ee0201d11d7e42caac1f6d2f718acfe1501623.tar.gz
gdb-05ee0201d11d7e42caac1f6d2f718acfe1501623.tar.bz2
* top.c (recurse_read_control_structure): Don't make cleanups
here. Callers handle that correctly. Fixes 6794.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/top.c13
2 files changed, 5 insertions, 13 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e3f8d56..c75bf37 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+Fri Nov 24 16:17:01 1995 Jeffrey A Law (law@cygnus.com)
+
+ * top.c (recurse_read_control_structure): Don't make cleanups
+ here. Callers handle that correctly.
+
Tue Nov 21 15:16:34 1995 Fred Fish <fnf@rtl.cygnus.com>
* config/m68k/xm-hp300hpux.h: Define MMAP_BASE_ADDRESS and MMAP_INCREMENT.
diff --git a/gdb/top.c b/gdb/top.c
index ea6541a..7f2c8a4 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -2249,9 +2249,7 @@ recurse_read_control_structure (current_cmd)
enum misc_command_type val;
enum command_control_type ret;
struct command_line **body_ptr, *child_tail, *next;
- struct cleanup *old_chains, *tmp_chains;
- old_chains = NULL;
child_tail = NULL;
current_body = 1;
@@ -2320,19 +2318,12 @@ recurse_read_control_structure (current_cmd)
}
else
{
- /* We have just read the first line of the child's control
- structure. From now on, arrange to throw away the line
- we have if we quit or get an error. */
body_ptr = current_cmd->body_list;
for (i = 1; i < current_body; i++)
body_ptr++;
*body_ptr = next;
- tmp_chains = make_cleanup (free_command_lines, body_ptr);
-
- if (!old_chains)
- old_chains = tmp_chains;
}
child_tail = next;
@@ -2352,10 +2343,6 @@ recurse_read_control_structure (current_cmd)
}
dont_repeat ();
- if (ret == invalid_control && old_chains)
- do_cleanups (old_chains);
- else if (old_chains)
- discard_cleanups (old_chains);
return ret;
}