aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2007-11-19 19:37:18 +0000
committerBob Wilson <bob.wilson@acm.org>2007-11-19 19:37:18 +0000
commit1eee4adcdbd8631ec670405f6d61ada09164de5d (patch)
tree731aaf946fe8105955353eb805dcef80883265b6 /gas
parent00462d019bae7d5b445831c705ce2f6a45a6c09d (diff)
downloadgdb-1eee4adcdbd8631ec670405f6d61ada09164de5d.zip
gdb-1eee4adcdbd8631ec670405f6d61ada09164de5d.tar.gz
gdb-1eee4adcdbd8631ec670405f6d61ada09164de5d.tar.bz2
* dwarf2dbg.h (dwarf2_loc_directive_seen): New.
* dwarf2dbg.c (loc_directive_seen): Make external and rename to... (dwarf2_loc_directive_seen): ...this. (dwarf2_emit_insn, dwarf2_consume_line_info) (dwarf2_emit_label, dwarf2_directive_loc): Use new name.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog8
-rw-r--r--gas/dwarf2dbg.c10
-rw-r--r--gas/dwarf2dbg.h4
3 files changed, 17 insertions, 5 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index cbdaa3d..52c09f2 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,13 @@
2007-11-19 Bob Wilson <bob.wilson@acm.org>
+ * dwarf2dbg.h (dwarf2_loc_directive_seen): New.
+ * dwarf2dbg.c (loc_directive_seen): Make external and rename to...
+ (dwarf2_loc_directive_seen): ...this.
+ (dwarf2_emit_insn, dwarf2_consume_line_info)
+ (dwarf2_emit_label, dwarf2_directive_loc): Use new name.
+
+2007-11-19 Bob Wilson <bob.wilson@acm.org>
+
* dwarf2dbg.c (dwarf2_emit_label): Use dwarf2_consume_line_info.
2007-11-19 Bob Wilson <bob.wilson@acm.org>
diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c
index 96da797..8befbd0 100644
--- a/gas/dwarf2dbg.c
+++ b/gas/dwarf2dbg.c
@@ -173,7 +173,7 @@ static unsigned int dirs_allocated;
/* TRUE when we've seen a .loc directive recently. Used to avoid
doing work when there's nothing to do. */
-static bfd_boolean loc_directive_seen;
+bfd_boolean dwarf2_loc_directive_seen;
/* TRUE when we're supposed to set the basic block mark whenever a
label is seen. */
@@ -365,7 +365,7 @@ dwarf2_emit_insn (int size)
{
struct dwarf2_line_info loc;
- if (loc_directive_seen)
+ if (dwarf2_loc_directive_seen)
{
/* Use the last location established by a .loc directive, not
the value returned by dwarf2_where(). That calls as_where()
@@ -394,7 +394,7 @@ dwarf2_consume_line_info (void)
/* Unless we generate DWARF2 debugging information for each
assembler line, we only emit one line symbol for one LOC. */
if (debug_type != DEBUG_DWARF2)
- loc_directive_seen = FALSE;
+ dwarf2_loc_directive_seen = FALSE;
current.flags &= ~(DWARF2_FLAG_BASIC_BLOCK
| DWARF2_FLAG_PROLOGUE_END
@@ -576,7 +576,7 @@ dwarf2_directive_loc (int dummy ATTRIBUTE_UNUSED)
/* If we see two .loc directives in a row, force the first one to be
output now. */
- if (loc_directive_seen && debug_type != DEBUG_DWARF2)
+ if (dwarf2_loc_directive_seen && debug_type != DEBUG_DWARF2)
dwarf2_emit_insn (0);
filenum = get_absolute_expression ();
@@ -685,7 +685,7 @@ dwarf2_directive_loc (int dummy ATTRIBUTE_UNUSED)
}
demand_empty_rest_of_line ();
- loc_directive_seen = TRUE;
+ dwarf2_loc_directive_seen = TRUE;
}
void
diff --git a/gas/dwarf2dbg.h b/gas/dwarf2dbg.h
index 55836cc..4dfc624 100644
--- a/gas/dwarf2dbg.h
+++ b/gas/dwarf2dbg.h
@@ -79,6 +79,10 @@ extern void dwarf2_consume_line_info (void);
/* Should be called for each code label. */
extern void dwarf2_emit_label (symbolS *);
+/* True when we've seen a .loc directive recently. Used to avoid
+ doing work when there's nothing to do. */
+bfd_boolean dwarf2_loc_directive_seen;
+
/* True when we're supposed to set the basic block mark whenever a label
is seen. Unless the target is doing Something Weird, just call
dwarf2_emit_label. */