aboutsummaryrefslogtreecommitdiff
path: root/gold/descriptors.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2009-02-28 03:05:08 +0000
committerIan Lance Taylor <ian@airs.com>2009-02-28 03:05:08 +0000
commit61edd21fa41ccf31fe391ee320c4812c4d45486a (patch)
treec255bd0ec7a6fad35fcdba6b8b61760626d8fd69 /gold/descriptors.h
parente29e076ab80ed58ab0343c9910e02df7220233f8 (diff)
downloadgdb-61edd21fa41ccf31fe391ee320c4812c4d45486a.zip
gdb-61edd21fa41ccf31fe391ee320c4812c4d45486a.tar.gz
gdb-61edd21fa41ccf31fe391ee320c4812c4d45486a.tar.bz2
PR 5990
* descriptors.h (Open_descriptor): Add is_on_stack field. * descriptors.cc (Descriptors::open): If the descriptor is on the top of the stack, remove it. Initialize is_on_stack field. (Descriptors::release): Only add pod to stack if it is not on the stack already. (Descriptors::close_some_descriptor): Clear stack_next and is_on_stack fields.
Diffstat (limited to 'gold/descriptors.h')
-rw-r--r--gold/descriptors.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gold/descriptors.h b/gold/descriptors.h
index 1933314..44c2475 100644
--- a/gold/descriptors.h
+++ b/gold/descriptors.h
@@ -69,6 +69,8 @@ class Descriptors
bool inuse;
// Whether this is a write descriptor.
bool is_write;
+ // Whether the descriptor is on the stack.
+ bool is_on_stack;
};
bool