This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

handling .gdb_index


As part of a Fedora 14 feature, I'm adding a new section to debug files.
The feature is here:

https://fedoraproject.org/wiki/Features/GdbIndex#Scope

... but the new section has mostly been discussed on the archer list and
on irc.

This patch lets the elfutils 'strip' utility put the new section into
the .debug file.  It also corrects an existing bug I happened to notice
at the same time, which is that .debug_pubtypes was not considered a
debugging section.

It also still does not consider .debug_types to be a debugging section.
I am not certain that this is a bug, as my understanding is that
.debug_types is not handled by elfutils in general yet.

Tom

diff --git a/libebl/ChangeLog b/libebl/ChangeLog
index ba3dc7d..cdcc3a0 100644
--- a/libebl/ChangeLog
+++ b/libebl/ChangeLog
@@ -1,3 +1,8 @@
+2010-07-07  Tom Tromey  <tromey@redhat.com>
+
+	* eblopenbackend.c (default_debugscn_p): Add .gdb_index,
+	.debug_pubtypes.
+
 2009-09-02  Petr Machata  <pmachata@redhat.com>
 
 	* libebl/eblstrtab.c (morememory): Allocate memory in multiples of
diff --git a/libebl/eblopenbackend.c b/libebl/eblopenbackend.c
index cb17f03..b157c36 100644
--- a/libebl/eblopenbackend.c
+++ b/libebl/eblopenbackend.c
@@ -1,5 +1,5 @@
 /* Generate ELF backend handle.
-   Copyright (C) 2000-2009 Red Hat, Inc.
+   Copyright (C) 2000-2010 Red Hat, Inc.
    This file is part of Red Hat elfutils.
 
    Red Hat elfutils is free software; you can redistribute it and/or modify
@@ -646,9 +646,12 @@ default_debugscn_p (const char *name)
       /* GNU DWARF 1 extensions */
       ".debug_srcinfo",
       ".debug_sfnames",
+      /* GNU DWARF 4 extension */
+      ".gdb_index",
       /* DWARF 1.1 and DWARF 2 */
       ".debug_aranges",
       ".debug_pubnames",
+      ".debug_pubtypes",
       /* DWARF 2 */
       ".debug_info",
       ".debug_abbrev",

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]