Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mark Kettenis <kettenis@chello.nl>
To: roland@redhat.com
Cc: gdb-patches@sources.redhat.com
Subject: Re: [branch patch] dwarf-frame.c support for .eh_frame_hdr
Date: Thu, 15 May 2003 21:49:00 -0000	[thread overview]
Message-ID: <200305152149.h4FLnGHK000471@elgar.kettenis.dyndns.org> (raw)
In-Reply-To: <200305120946.h4C9ksj17912@magilla.sf.frob.com> (message from Roland McGrath on Mon, 12 May 2003 02:46:54 -0700)

   Date: Mon, 12 May 2003 02:46:54 -0700
   From: Roland McGrath <roland@redhat.com>

   2003-05-12  Roland McGrath  <roland@redhat.com>

	   * dwarf2read.c (dwarf_eh_frame_hdr_offset, dwarf_eh_frame_hdr_size,
	   dwarf_eh_frame_hdr_section): New variables.
	   (dwarf2_locate_sections): Match a section whose name starts with
	   "eh_frame_hdr", and set those.
	   (dwarf2_has_info): Clear dwarf_eh_frame_hdr_offset here.
	   * dwarf-frame.c (decode_eh_frame_hdr): New function.
	   (dwarf2_build_frame_info): Call it when dwarf_eh_frame_hdr_offset
	   is set but dwarf_eh_frame_offset is not.

Having to build a "dummy" `struct comp_unit' probably indicates that I
should change read_encoded_value()'s signature.  Well, I'll worry
about that later.

The error messages in dwarf-frame.c should probably be harmonized
before we check merge this into mailine.  I wonder whether we should
complaint() instead of error().

Is there a particular reason why you don't read in the .eh_frame_hdr
section as a whole as the other parts of GDB's "symbol reader" do (and
which I just blindly copied when I wrote the guts of dwarf-frame.c)?

	   * symfile.c (symfile_bfd_open): Try bfd_check_format with bfd_core
	   if bfd_object fails.

I think a more elaborate comment on why core files might have
"symbols" is appropriate.

Mark


  parent reply	other threads:[~2003-05-15 21:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-12  9:47 Roland McGrath
2003-05-13  3:27 ` Elena Zannoni
2003-05-13  3:42   ` Roland McGrath
2003-05-15 21:49 ` Mark Kettenis [this message]
2003-05-15 22:00   ` Elena Zannoni
2003-05-15 22:19     ` [branch patch] core files as symfiles Roland McGrath
2003-05-15 23:58       ` Andrew Cagney
2003-05-15 22:06   ` [branch patch] dwarf-frame.c support for .eh_frame_hdr Roland McGrath

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=200305152149.h4FLnGHK000471@elgar.kettenis.dyndns.org \
    --to=kettenis@chello.nl \
    --cc=gdb-patches@sources.redhat.com \
    --cc=roland@redhat.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