From: Jim Blandy <jimb@redhat.com>
To: Petr Sorfa <petrs@caldera.com>
Cc: "gdb-patches@sources.redhat.com" <gdb-patches@sources.redhat.com>
Subject: Re: [RFA] DWARF multiple comp unit header support - Revision - Part 1
Date: Thu, 15 Aug 2002 15:04:00 -0000 [thread overview]
Message-ID: <vt2r8gzss87.fsf@zenia.red-bean.com> (raw)
In-Reply-To: <3D2F0E4F.DDCC4DE9@caldera.com>
This looks good. Some comments:
Petr Sorfa <petrs@caldera.com> writes:
> 2002-07-12 Petr Sorfa (petrs@caldera.com)
>
> * dwarf2read.c (ABBREV_HASH_SIZE): moved definition
> forward in the code to be defined before
> struct comp_unit_head.
> (comp_unit_head): Added several new members,
> some are being used with this patch, some not.
> offset - Offset of the cu_header in .debug_info
> begin_offset - Base offset of cu_header into program
> next - Next comp unit head in program
> dwarf2_abbrevs - abbreviation tables associated with
> comp unit header.
The members must be documented in the code, and thus need only be
named in the ChangeLog entry.
> *************** struct comp_unit_head
> *** 174,179 ****
> --- 179,194 ----
> unsigned int offset_size; /* size of file offsets; either 4 or 8 */
> unsigned int initial_length_size; /* size of the length field; either
> 4 or 12 */
> +
> + /* New information for the comp unit head so as to keep a list
> + of available ones for a program. */
> + unsigned int offset; /* Offset of the cu_header in .debug_info */
> + char *base_offset; /* Base offset after cu_header into program */
> + char *begin_offset; /* Base offset of cu_header into program */
> + struct comp_unit_head *next; /* Next comp unit head in program */
> +
> + struct abbrev_info *dwarf2_abbrevs[ABBREV_HASH_SIZE]; /* DWARF abbrev
> + table */
> };
>
> /* The line number information for a compilation unit (found in the
These comments need to be much more expansive. It's very important
that data structures be clearly explained. How is "Base offset
*after* cu_header into program" different from "Base offset *of*
cu_header into program"?
Have you compared test suite results with and without this patch?
next prev parent reply other threads:[~2002-08-15 22:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-12 10:01 Petr Sorfa
2002-08-15 15:04 ` Jim Blandy [this message]
2002-08-16 12:00 ` Petr Sorfa
2002-09-11 9:58 jlw
2002-10-08 21:03 ` Jim Blandy
2002-10-08 21:47 ` Jim Blandy
2002-10-08 21:52 ` Christopher Faylor
2002-10-08 22:01 ` Christopher Faylor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=vt2r8gzss87.fsf@zenia.red-bean.com \
--to=jimb@redhat.com \
--cc=gdb-patches@sources.redhat.com \
--cc=petrs@caldera.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox