Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Multiple personalities gdb?
@ 2000-04-20 13:35 Elena Zannoni
  2000-04-20 14:04 ` Kevin Buettner
  0 siblings, 1 reply; 3+ messages in thread
From: Elena Zannoni @ 2000-04-20 13:35 UTC (permalink / raw)
  To: gdb

I am wondering about these two constants:

gdb-stabs.h:41:#define	SECT_OFF_MAX	16	/* Count of possible values */

and 

symfile.h:64:#define MAX_SECTIONS 40

The first is used to determine the size of the sections array in
the objfile structure:
struct stab_section_info
  {
    char *filename;
    CORE_ADDR sections[SECT_OFF_MAX];
    struct stab_section_info *next;
    int found;			/* Count of times it's found in searching */
  };


The second is used to store the information from which the
objfile->section_offsets are filled up:

struct section_addr_info {
  struct other_sections
  {
    CORE_ADDR addr;
    char *name;
    int sectindex;
  } other[MAX_SECTIONS];
};

while for section_offsets we have:

struct section_offsets
  {
    CORE_ADDR offsets[1];	/* As many as needed. */
  };

Should MAX_SECTIONS == SECT_OFF_MAX ?

As I understand it, SECT_OFF_MAX is the maximum value that a section
index can have. Souldn't it at least be increased? I have seen
sections with indexes higher than 16.

Elena


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-04-20 14:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-04-20 13:35 Multiple personalities gdb? Elena Zannoni
2000-04-20 14:04 ` Kevin Buettner
2000-04-20 14:26   ` Elena Zannoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox