aboutsummaryrefslogtreecommitdiff
path: root/bfd/ecoff.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-10-24 19:37:18 +0000
committerIan Lance Taylor <ian@airs.com>1994-10-24 19:37:18 +0000
commita56f23aeb92540db745ece22c6fb4707e82beb65 (patch)
tree829c1d30f53c163b169b1fa1ebff9fa3706b31b2 /bfd/ecoff.c
parentd298568482ac94bbb309d1d7f9af90c094b50ded (diff)
downloadgdb-a56f23aeb92540db745ece22c6fb4707e82beb65.zip
gdb-a56f23aeb92540db745ece22c6fb4707e82beb65.tar.gz
gdb-a56f23aeb92540db745ece22c6fb4707e82beb65.tar.bz2
* ecoff.c (ecoff_set_symbol_info): Set udata.i to 0, not NULL.
Diffstat (limited to 'bfd/ecoff.c')
-rw-r--r--bfd/ecoff.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/bfd/ecoff.c b/bfd/ecoff.c
index a157b2a..0875a95 100644
--- a/bfd/ecoff.c
+++ b/bfd/ecoff.c
@@ -861,7 +861,7 @@ ecoff_set_symbol_info (abfd, ecoff_sym, asym, ext, indirect_ptr_ptr)
asym->the_bfd = abfd;
asym->value = ecoff_sym->value;
asym->section = &bfd_debug_section;
- asym->udata = NULL;
+ asym->udata.i = 0;
/* An indirect symbol requires two consecutive stabs symbols. */
if (*indirect_ptr_ptr != (asymbol *) NULL)
@@ -920,11 +920,12 @@ ecoff_set_symbol_info (abfd, ecoff_sym, asym, ext, indirect_ptr_ptr)
/* Normally, a local stProc symbol will have a corresponding
external symbol. We mark the local symbol as a debugging
symbol, in order to prevent nm from printing both out.
- Similarly, we mark stLabel fields as debugging symbols. In
- both cases, we do want to set the value correctly based on
- the symbol class. */
+ Similarly, we mark stLabel and stabs symbols as debugging
+ symbols. In both cases, we do want to set the value
+ correctly based on the symbol class. */
if (ecoff_sym->st == stProc
- || ecoff_sym->st == stLabel)
+ || ecoff_sym->st == stLabel
+ || ECOFF_IS_STAB (ecoff_sym))
asym->flags |= BSF_DEBUGGING;
}
switch (ecoff_sym->sc)