* symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
(SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
This commit is contained in:
parent
13de58df8b
commit
b29c9944fa
2 changed files with 9 additions and 4 deletions
|
@ -1,5 +1,8 @@
|
|||
2002-11-25 Jim Blandy <jimb@redhat.com>
|
||||
|
||||
* symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
|
||||
(SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
|
||||
|
||||
* symfile.c (syms_from_objfile): Adjust indentation.
|
||||
|
||||
* symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
|
||||
|
|
10
gdb/symtab.h
10
gdb/symtab.h
|
@ -803,11 +803,13 @@ struct section_offsets
|
|||
? (internal_error (__FILE__, __LINE__, "Section index is uninitialized"), -1) \
|
||||
: secoff->offsets[whichone])
|
||||
|
||||
/* The maximum possible size of a section_offsets table. */
|
||||
|
||||
#define SIZEOF_SECTION_OFFSETS \
|
||||
/* The size of a section_offsets table for N sections. */
|
||||
#define SIZEOF_N_SECTION_OFFSETS(n) \
|
||||
(sizeof (struct section_offsets) \
|
||||
+ sizeof (((struct section_offsets *) 0)->offsets) * (SECT_OFF_MAX-1))
|
||||
+ sizeof (((struct section_offsets *) 0)->offsets) * ((n)-1))
|
||||
|
||||
/* The maximum possible size of a section_offsets table. */
|
||||
#define SIZEOF_SECTION_OFFSETS (SIZEOF_N_SECTION_OFFSETS (SECT_OFF_MAX))
|
||||
|
||||
/* Each source file or header is represented by a struct symtab.
|
||||
These objects are chained through the `next' field. */
|
||||
|
|
Loading…
Reference in a new issue