mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-25 21:19:54 +00:00
* dbxread.c (copy_pending): Change name and function of begi argument
to endi, since that is what the caller needs.
This commit is contained in:
parent
d297ca717f
commit
ec06a3cb25
@ -1,5 +1,8 @@
|
|||||||
Wed Jun 23 00:25:58 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
|
Wed Jun 23 00:25:58 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
|
||||||
|
|
||||||
|
* dbxread.c (copy_pending): Change name and function of begi argument
|
||||||
|
to endi, since that is what the caller needs.
|
||||||
|
|
||||||
* Makefile.in (TAGFILES): Don't include YYFILES.
|
* Makefile.in (TAGFILES): Don't include YYFILES.
|
||||||
|
|
||||||
* Makefile.in (HFILES): Include monitor.h.
|
* Makefile.in (HFILES): Include monitor.h.
|
||||||
|
@ -1914,23 +1914,30 @@ process_one_symbol (type, desc, valu, name, section_offsets, objfile)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Copy a pending list, used to record the contents of a common
|
/* Copy a pending list, used to record the contents of a common
|
||||||
block for later fixup. */
|
block for later fixup. We copy the symbols starting with all
|
||||||
|
symbols in BEG, and ending with the symbols which are in
|
||||||
|
END at index ENDI. */
|
||||||
static struct pending *
|
static struct pending *
|
||||||
copy_pending (beg, begi, end)
|
copy_pending (beg, endi, end)
|
||||||
struct pending *beg;
|
struct pending *beg;
|
||||||
int begi;
|
int endi;
|
||||||
struct pending *end;
|
struct pending *end;
|
||||||
{
|
{
|
||||||
struct pending *new = 0;
|
struct pending *new = 0;
|
||||||
struct pending *next;
|
struct pending *next;
|
||||||
|
int j;
|
||||||
|
|
||||||
for (next = beg; next != 0 && (next != end || begi < end->nsyms);
|
/* Copy all the struct pendings before end. */
|
||||||
next = next->next, begi = 0)
|
for (next = beg; next != NULL && next != end; next = next->next)
|
||||||
{
|
{
|
||||||
register int j;
|
for (j = 0; j < next->nsyms; j++)
|
||||||
for (j = begi; j < next->nsyms; j++)
|
|
||||||
add_symbol_to_list (next->symbol[j], &new);
|
add_symbol_to_list (next->symbol[j], &new);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Copy however much of END we need. */
|
||||||
|
for (j = endi; j < end->nsyms; j++)
|
||||||
|
add_symbol_to_list (end->symbol[j], &new);
|
||||||
|
|
||||||
return new;
|
return new;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user