aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/gdb/gdb/dbxread.c
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/gdb/gdb/dbxread.c')
-rw-r--r--gnu/usr.bin/gdb/gdb/dbxread.c58
1 files changed, 29 insertions, 29 deletions
diff --git a/gnu/usr.bin/gdb/gdb/dbxread.c b/gnu/usr.bin/gdb/gdb/dbxread.c
index 2b3a6be079a2..f6f4cc3fd678 100644
--- a/gnu/usr.bin/gdb/gdb/dbxread.c
+++ b/gnu/usr.bin/gdb/gdb/dbxread.c
@@ -19,7 +19,7 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
/* This module provides three functions: dbx_symfile_init,
- which initializes to read a symbol file; dbx_new_init, which
+ which initializes to read a symbol file; dbx_new_init, which
discards existing cached information when all symbols are being
discarded; and dbx_symfile_read, which reads a symbol table
from a file.
@@ -154,7 +154,7 @@ static CORE_ADDR lowest_text_address;
/* Complaints about the symbols we have encountered. */
-struct complaint lbrac_complaint =
+struct complaint lbrac_complaint =
{"bad block start address patched", 0, 0};
struct complaint string_table_offset_complaint =
@@ -460,7 +460,7 @@ record_minimal_symbol (name, address, type, objfile)
case N_DATA:
ms_type = mst_file_data;
- /* Check for __DYNAMIC, which is used by Sun shared libraries.
+ /* Check for __DYNAMIC, which is used by Sun shared libraries.
Record it as global even if it's local, not global, so
lookup_minimal_symbol can find it. We don't check symbol_leading_char
because for SunOS4 it always is '_'. */
@@ -501,7 +501,7 @@ record_minimal_symbol (name, address, type, objfile)
}
/* Scan and build partial symbols for a symbol file.
- We have been initialized by a call to dbx_symfile_init, which
+ We have been initialized by a call to dbx_symfile_init, which
put all the relevant info into a "struct dbx_symfile_info",
hung off the objfile structure.
@@ -603,7 +603,7 @@ dbx_new_init (ignore)
Since BFD doesn't know how to read debug symbols in a format-independent
way (and may never do so...), we have to do it ourselves. We will never
- be called unless this is an a.out (or very similar) file.
+ be called unless this is an a.out (or very similar) file.
FIXME, there should be a cleaner peephole into the BFD environment here. */
#define DBX_STRINGTAB_SIZE_SIZE sizeof(long) /* FIXME */
@@ -663,7 +663,7 @@ dbx_symfile_init (objfile)
val = bfd_seek (sym_bfd, STRING_TABLE_OFFSET, SEEK_SET);
if (val < 0)
perror_with_name (name);
-
+
memset ((PTR) size_temp, 0, sizeof (size_temp));
val = bfd_read ((PTR) size_temp, sizeof (size_temp), 1, sym_bfd);
if (val < 0)
@@ -688,18 +688,18 @@ dbx_symfile_init (objfile)
bfd can't tell us there is no string table, the sanity checks may
or may not catch this. */
DBX_STRINGTAB_SIZE (objfile) = bfd_h_get_32 (sym_bfd, size_temp);
-
+
if (DBX_STRINGTAB_SIZE (objfile) < sizeof (size_temp)
|| DBX_STRINGTAB_SIZE (objfile) > bfd_get_size (sym_bfd))
error ("ridiculous string table size (%d bytes).",
DBX_STRINGTAB_SIZE (objfile));
-
+
DBX_STRINGTAB (objfile) =
(char *) obstack_alloc (&objfile -> psymbol_obstack,
DBX_STRINGTAB_SIZE (objfile));
-
+
/* Now read in the string table in one big gulp. */
-
+
val = bfd_seek (sym_bfd, STRING_TABLE_OFFSET, SEEK_SET);
if (val < 0)
perror_with_name (name);
@@ -740,7 +740,7 @@ static char *last_function_name;
/* The address in memory of the string table of the object file we are
reading (which might not be the "main" object file, but might be a
shared library or some other dynamically loaded thing). This is set
- by read_dbx_symtab when building psymtabs, and by read_ofile_symtab
+ by read_dbx_symtab when building psymtabs, and by read_ofile_symtab
when building symtabs, and is used only by next_symbol_text. */
static char *stringtab_global;
@@ -978,7 +978,7 @@ read_dbx_dynamic_symtab (section_offsets, objfile)
do_cleanups (back_to);
return;
}
-
+
dynrels = (arelent **) xmalloc (dynrel_size);
make_cleanup (free, dynrels);
@@ -1065,7 +1065,7 @@ read_dbx_symtab (section_offsets, objfile, text_addr, text_size)
next_file_string_table_offset = 0;
stringtab_global = DBX_STRINGTAB (objfile);
-
+
pst = (struct partial_symtab *) 0;
includes_allocated = 30;
@@ -1118,8 +1118,8 @@ read_dbx_symtab (section_offsets, objfile, text_addr, text_size)
symbol lists. This last is a large section of code, so
I've imbedded it in the following macro.
*/
-
-/* Set namestring based on bufp. If the string table index is invalid,
+
+/* Set namestring based on bufp. If the string table index is invalid,
give a fake name, and print a single error message per symbol file read,
rather than abort the symbol reading or flood the user with messages. */
@@ -1213,7 +1213,7 @@ start_psymtab (objfile, section_offsets,
return result;
}
-/* Close off the current usage of PST.
+/* Close off the current usage of PST.
Returns PST or NULL if the partial symtab was empty and thrown away.
FIXME: List variables and peculiarities of same. */
@@ -1242,7 +1242,7 @@ end_psymtab (pst, include_list, num_includes, capping_symbol_offset,
we have to do some tricks to fill in texthigh and textlow.
The first trick is in partial-stab.h: if we see a static
or global function, and the textlow for the current pst
- is still 0, then we use that function's address for
+ is still 0, then we use that function's address for
the textlow of the pst.
Now, to fill in texthigh, we remember the last function seen
@@ -1272,7 +1272,7 @@ end_psymtab (pst, include_list, num_includes, capping_symbol_offset,
p = alloca (n + 1);
strncpy (p, last_function_name, n);
p[n] = 0;
-
+
minsym = lookup_minimal_symbol (p, objfile);
if (minsym) {
@@ -1283,7 +1283,7 @@ end_psymtab (pst, include_list, num_includes, capping_symbol_offset,
difficult to imagine how hard it would be to track down
the elf symbol. Luckily, most of the time no one will notice,
since the next file will likely be compiled with -g, so
- the code below will copy the first fuction's start address
+ the code below will copy the first fuction's start address
back to our texthigh variable. (Also, if this file is the
last one in a dynamically linked program, texthigh already
has the right value.) If the next file isn't compiled
@@ -1425,7 +1425,7 @@ dbx_psymtab_to_symtab_1 (pst)
{
struct cleanup *old_chain;
int i;
-
+
if (!pst)
return;
@@ -1520,7 +1520,7 @@ dbx_psymtab_to_symtab (pst)
}
/* Read in a defined section of a specific object file's symbols. */
-
+
static void
read_ofile_symtab (pst)
struct partial_symtab *pst;
@@ -1887,7 +1887,7 @@ process_one_symbol (type, desc, valu, name, section_offsets, objfile)
/* Check if previous symbol was also an N_SO (with some
sanity checks). If so, that one was actually the directory
name, and the current one is the real file name.
- Patch things up. */
+ Patch things up. */
if (previous_stab_code == (unsigned char) N_SO)
{
patch_subfile_names (current_subfile, name);
@@ -2118,7 +2118,7 @@ process_one_symbol (type, desc, valu, name, section_offsets, objfile)
Solaris 2.0, these addresses are just absolute, or
relative to the N_SO, depending on
BLOCK_ADDRESS_ABSOLUTE. */
- function_start_offset = valu;
+ function_start_offset = valu;
within_function = 1;
if (context_stack_depth > 0)
@@ -2201,7 +2201,7 @@ process_one_symbol (type, desc, valu, name, section_offsets, objfile)
adjusted for coff details. */
void
-coffstab_build_psymtabs (objfile, section_offsets, mainline,
+coffstab_build_psymtabs (objfile, section_offsets, mainline,
staboffset, stabsize,
stabstroffset, stabstrsize)
struct objfile *objfile;
@@ -2230,7 +2230,7 @@ coffstab_build_psymtabs (objfile, section_offsets, mainline,
DBX_SYMCOUNT (objfile) = stabsize / DBX_SYMBOL_SIZE (objfile);
DBX_STRINGTAB_SIZE (objfile) = stabstrsize;
DBX_SYMTAB_OFFSET (objfile) = staboffset;
-
+
if (stabstrsize > bfd_get_size (sym_bfd))
error ("ridiculous string table size: %d bytes", stabstrsize);
DBX_STRINGTAB (objfile) = (char *)
@@ -2279,7 +2279,7 @@ coffstab_build_psymtabs (objfile, section_offsets, mainline,
adjusted for elf details. */
void
-elfstab_build_psymtabs (objfile, section_offsets, mainline,
+elfstab_build_psymtabs (objfile, section_offsets, mainline,
staboffset, stabsize,
stabstroffset, stabstrsize)
struct objfile *objfile;
@@ -2308,7 +2308,7 @@ elfstab_build_psymtabs (objfile, section_offsets, mainline,
DBX_SYMCOUNT (objfile) = stabsize / DBX_SYMBOL_SIZE (objfile);
DBX_STRINGTAB_SIZE (objfile) = stabstrsize;
DBX_SYMTAB_OFFSET (objfile) = staboffset;
-
+
if (stabstrsize > bfd_get_size (sym_bfd))
error ("ridiculous string table size: %d bytes", stabstrsize);
DBX_STRINGTAB (objfile) = (char *)
@@ -2392,7 +2392,7 @@ stabsect_build_psymtabs (objfile, section_offsets, mainline, stab_name,
/ DBX_SYMBOL_SIZE (objfile);
DBX_STRINGTAB_SIZE (objfile) = bfd_section_size (sym_bfd, stabstrsect);
DBX_SYMTAB_OFFSET (objfile) = stabsect->filepos; /* XXX - FIXME: POKING INSIDE BFD DATA STRUCTURES */
-
+
if (DBX_STRINGTAB_SIZE (objfile) > bfd_get_size (sym_bfd))
error ("ridiculous string table size: %d bytes", DBX_STRINGTAB_SIZE (objfile));
DBX_STRINGTAB (objfile) = (char *)
@@ -2440,7 +2440,7 @@ dbx_symfile_offsets (objfile, addr)
for (i = 0; i < SECT_OFF_MAX; i++)
ANOFFSET (section_offsets, i) = addr;
-
+
return section_offsets;
}