]> sourceware.org Git - debugedit.git/log
debugedit.git
8 years agoAdd find-debuginfo.sh -m minisymtab support.
Mark Wielaard [Tue, 14 Jun 2016 15:07:08 +0000 (17:07 +0200)]
Add find-debuginfo.sh -m minisymtab support.

Support for minisymtab (a minimal function symbol table in a compressed
section in the main binary) has been in gdb and elfutils based tools
since some years. Fedora has had this as rpm-4.10.0-minidebuginfo.patch
since 2012.

The patch adjusts macros to pass -m to find-debuginfo.sh when
_include_minidebuginfo has been set. find-debuginfo.sh now takes -m
as argument to generate the .gnu_debugdata ELF section to be added
to the main executable.

To support the testcases a new macros.debug is added that is used to
generate debuginfo packages in the rpmbuild.at testsuite.

The original support was added to Fedora rpm by Alexander Larsson.
Lubos Kardos fixed a bug in it when strip -g was used. I added some
configuration macros and two testcases to check the basic support works
and for the strip -g bug.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
9 years agoMake sure references to go sources in debuginfo packages go to the installed path...
Jan Kratochvil [Wed, 15 Apr 2015 07:51:08 +0000 (09:51 +0200)]
Make sure references to go sources in debuginfo packages go to the installed path and not the source file in the build environment.

 - Resolves: rhbz#1184221

9 years agoPass _find_debuginfo_opts -g to eu-strip for executables (rhbz:#1186563)
Lubos Kardos [Fri, 27 Mar 2015 14:45:57 +0000 (15:45 +0100)]
Pass _find_debuginfo_opts -g to eu-strip for executables (rhbz:#1186563)

9 years agoFix debuginfo creation for changed file output.
Pascal Terjan [Mon, 16 Feb 2015 12:08:50 +0000 (13:08 +0100)]
Fix debuginfo creation for changed file output.

file will print a "warning" that it only processed up to 256 notes.
Fixes: http://rpm.org/ticket/887
10 years agoEnsure clean paths are used for matching in debugedit (RhBug:1077148)
Panu Matilainen [Tue, 25 Mar 2014 12:06:34 +0000 (14:06 +0200)]
Ensure clean paths are used for matching in debugedit (RhBug:1077148)

- Things like extra slashes can cause sources not to be found at all
  due to path prefix matching, canonicalize the argument paths first.

10 years agoAdd support for m68k
Andreas Schwab [Wed, 12 Mar 2014 14:16:15 +0000 (15:16 +0100)]
Add support for m68k

Tested on m68k-suse-linux.

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
11 years agoDoh, its .debug_gdb_scripts, not _script (really fix SuseBug:818502)
Panu Matilainen [Thu, 1 Aug 2013 13:34:40 +0000 (16:34 +0300)]
Doh, its .debug_gdb_scripts, not _script (really fix SuseBug:818502)

11 years agoTeach debugedit about .debug_gdb_script section (SuseBug:818502)
Panu Matilainen [Mon, 17 Jun 2013 12:40:47 +0000 (15:40 +0300)]
Teach debugedit about .debug_gdb_script section (SuseBug:818502)

11 years agoAvoid breaking build on older systems which dont know AArch64
Panu Matilainen [Mon, 17 Jun 2013 07:17:07 +0000 (10:17 +0300)]
Avoid breaking build on older systems which dont know AArch64

11 years agodebugedit: handle aarch64 debug_info relocations (RhBug:974860)
Kyle McMartin [Sun, 16 Jun 2013 16:48:46 +0000 (12:48 -0400)]
debugedit: handle aarch64 debug_info relocations (RhBug:974860)

AArch64 generates a relocation which must be handled similar to other
architectures. Adding this patch allows debugedit to run against the
kernel debuginfo.

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
11 years agoPlug segfault on NULL pointer dereference in debugedit (RhBug:929365)
Panu Matilainen [Wed, 22 May 2013 04:24:06 +0000 (07:24 +0300)]
Plug segfault on NULL pointer dereference in debugedit (RhBug:929365)

- Not sure what the right thing to do would be here, ignoring seems
  like a better option than crashing though...

11 years agoRevert "make "canonicalization(...)shrank by one character" error message more usefull"
Panu Matilainen [Wed, 9 Jan 2013 11:48:40 +0000 (13:48 +0200)]
Revert "make "canonicalization(...)shrank by one character" error message more usefull"

- The message is not about basedir and destdir, and printing them
  here only makes the message even more confusing than it was, eg:
      canonicalization unexpectedly shrank by one character \
          ('/home/pmatilai/rpmbuild/BUILD/' vs '/usr/src/debug/')
- This reverts commit bda09c382b90fdbad9a166a49642f36b5a5396ce

12 years agomake "canonicalization(...)shrank by one character" error message more usefull
thierry.vignaud@gmail.com [Fri, 19 Oct 2012 08:08:35 +0000 (10:08 +0200)]
make "canonicalization(...)shrank by one character" error message more usefull

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
12 years agoWarn but dont fail the build on STABS debuginfo (RhBug:725378, others)
Panu Matilainen [Wed, 7 Mar 2012 11:47:09 +0000 (13:47 +0200)]
Warn but dont fail the build on STABS debuginfo (RhBug:725378, others)

- debugedit doesn't support STABS but there are some crazy cases
  like PPC Linux kernel which contains both STABS and DWARF debuginfo
  sections, manually added. A better fix would be erroring out
  if we didn't find any usable debuginfo and warning otherwise but
  this at least folks get their kernels built.

12 years agoGenerate debug symlinks for all filenames sharing a build-id (RhBug:641377)
Jan Kratochvil [Wed, 7 Mar 2012 09:30:19 +0000 (11:30 +0200)]
Generate debug symlinks for all filenames sharing a build-id (RhBug:641377)

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
12 years agoTeach debugedit about .debug_macro dwarf section (RhBug:759272)
Panu Matilainen [Fri, 2 Dec 2011 10:11:05 +0000 (12:11 +0200)]
Teach debugedit about .debug_macro dwarf section (RhBug:759272)

13 years ago$RPM_BUILD_ROOT breaks brp-* scripts if it contains spaces (ticket #843)
Jeff Tickle [Tue, 6 Sep 2011 06:52:19 +0000 (09:52 +0300)]
$RPM_BUILD_ROOT breaks brp-* scripts if it contains spaces (ticket #843)

- This patch adds quotes around $RPM_BUILD_ROOT in places that I noticed
  they were missing, and attempts to handle some of the problems that can
  occur when looping over the output of find.

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
13 years agoAdd DWARF-4 support to debugedit (RhBug:707677)
Jakub Jelinek [Fri, 17 Jun 2011 13:40:20 +0000 (16:40 +0300)]
Add DWARF-4 support to debugedit (RhBug:707677)

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
13 years agoAdd -r flag to find-debuginfo.sh to invoke eu-strip --reloc-debug-sections.
Mark Wielaard [Wed, 25 May 2011 13:44:42 +0000 (15:44 +0200)]
Add -r flag to find-debuginfo.sh to invoke eu-strip --reloc-debug-sections.
- This is a new option to eu-strip that strips out/resolves relocations
  between .debug_* elf sections in ET_REL files. This can save a lot of
  space for kernel module.

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
13 years agoBail out of debuginfo if stabs format encountered (RhBug:453506)
Panu Matilainen [Tue, 24 May 2011 14:23:37 +0000 (17:23 +0300)]
Bail out of debuginfo if stabs format encountered (RhBug:453506)
- The previous "silently ignore" policy produces bogus debuginfo
  packages on some architectures and fails with other mysterious
  errors on others, better just fail hard until (if ever) somebody adds
  stabs support.

13 years agoRemove unused variable in debugedit
Panu Matilainen [Fri, 4 Mar 2011 12:50:30 +0000 (14:50 +0200)]
Remove unused variable in debugedit

14 years agodebugedit: fix incorrect error messages regarding -b and -d
Anssi Hannula [Mon, 16 Aug 2010 23:29:14 +0000 (02:29 +0300)]
debugedit: fix incorrect error messages regarding -b and -d

14 years agoFix find-debuginfo.sh behavior on cross-directory hardlinks (RhBug:618426)
Roland McGrath [Mon, 9 Aug 2010 12:27:03 +0000 (15:27 +0300)]
Fix find-debuginfo.sh behavior on cross-directory hardlinks (RhBug:618426)
- The find-debuginfo.sh script makes hard links of .debug files to
  correspond to hard links between install binaries.  It can fail to
  create one of these .debug hard links if it's in a directory that
  didn't exist at that point in the script run. How this happens
  depends on things like the order "find" lists files, so it can
  be hard to reproduce off hand.

14 years agoCreate GDB index from find-debuginfo if possible (RhBug:617166)
Tom Tromey [Mon, 9 Aug 2010 12:22:51 +0000 (15:22 +0300)]
Create GDB index from find-debuginfo if possible (RhBug:617166)
- Details in https://fedoraproject.org/wiki/Features/GdbIndex

14 years agoMake debugedit -i recompute build ID only when any DWARF was actually changed.
Roland McGrath [Tue, 11 May 2010 03:05:48 +0000 (20:05 -0700)]
Make debugedit -i recompute build ID only when any DWARF was actually changed.

14 years agoWhitespace fixups for tools/debugedit.c
Roland McGrath [Tue, 11 May 2010 00:53:07 +0000 (17:53 -0700)]
Whitespace fixups for tools/debugedit.c

14 years agoUse grep -E and grep -F instead of egrep and fgrep.
Ville Skyttä [Wed, 16 Dec 2009 21:14:04 +0000 (23:14 +0200)]
Use grep -E and grep -F instead of egrep and fgrep.

egrep and fgrep are deprecated in GNU grep and "historical" in POSIX.

15 years agofind-debuginfo.sh: use permissions 444 for all .debug files
Roland McGrath [Wed, 9 Sep 2009 18:07:10 +0000 (11:07 -0700)]
find-debuginfo.sh: use permissions 444 for all .debug files

Signed-off-by: Roland McGrath <roland@redhat.com>
15 years agoAdd debugedit support for DWARF-3 (RhBug:505774)
Panu Matilainen [Tue, 16 Jun 2009 10:52:43 +0000 (13:52 +0300)]
Add debugedit support for DWARF-3 (RhBug:505774)
- patch from Jakub Jelinek

15 years agoRevert couple of checksum -> digest renames
Panu Matilainen [Thu, 19 Mar 2009 08:15:49 +0000 (10:15 +0200)]
Revert couple of checksum -> digest renames
- physical cpio header and elf header have checksums, not digests
  (from commit 0097de79aa1f07c0a3b1cb15b9191c5fcdc71b6e)
- doesn't affect functionality though

15 years agoAdd md5->filedigest aliases (rhbz#487597)
Jindrich Novy [Fri, 27 Feb 2009 13:34:39 +0000 (14:34 +0100)]
Add md5->filedigest aliases (rhbz#487597)
- add %verify(nofiledigest) as %verify(nomd5) file attribute alias
- reference digests as digests not checksums
- make old md5 related symbols obsolete and use newer reference
- update man page accordingly

15 years agoDelay NSS initialization until actually used
Panu Matilainen [Thu, 8 Jan 2009 11:17:22 +0000 (13:17 +0200)]
Delay NSS initialization until actually used
- since NSS is allergic (ie becomes non-functional) after forking, delay
  it's initialization until really needed, ie lazy init in rpmDigestInit()
- however as NSS init can fail if attempted in completely empty chroot,
  we force crypto init to happen at transaction set create time, forking
  past that is pretty much doomed anyway
- this is the other half of the fix for rhbz#476737, and similar case
  noticed by Pixel in Mandriva (due to urpm forking)

16 years agoAdjust for file output change (rhbz#468129)
Panu Matilainen [Fri, 31 Oct 2008 08:17:07 +0000 (10:17 +0200)]
Adjust for file output change (rhbz#468129)
- file util used reported file details along with mime type, newer ones don't

16 years agodebugedit: Include empty CU current directories (rhbz#444310)
Panu Matilainen [Fri, 27 Jun 2008 12:15:46 +0000 (15:15 +0300)]
debugedit: Include empty CU current directories (rhbz#444310)
- patch from Jan Kratochvil

16 years agoSilence bogus warning on memset()
Panu Matilainen [Mon, 5 May 2008 05:15:17 +0000 (08:15 +0300)]
Silence bogus warning on memset()
- gcc doesn't realize shrank == 0 would terminate the process via error()
  before reaching memset(), work around...

16 years agoMinimally convert all pgpHexCvt() users to use pgpHexStr() instead
Panu Matilainen [Mon, 7 Apr 2008 10:26:46 +0000 (13:26 +0300)]
Minimally convert all pgpHexCvt() users to use pgpHexStr() instead

16 years agoRemove now useless nested function in debugedit
Panu Matilainen [Fri, 4 Jan 2008 10:00:51 +0000 (12:00 +0200)]
Remove now useless nested function in debugedit

16 years agoMore size_t type pedantry
Panu Matilainen [Fri, 14 Dec 2007 09:38:20 +0000 (11:38 +0200)]
More size_t type pedantry

16 years agoSwitch to <rpm/foo.h> style for public headers
Panu Matilainen [Sat, 8 Dec 2007 12:02:32 +0000 (14:02 +0200)]
Switch to <rpm/foo.h> style for public headers
- adjust include paths accordingly

16 years agoEliminate type "byte"
Ralf Corsépius [Mon, 26 Nov 2007 09:42:39 +0000 (10:42 +0100)]
Eliminate type "byte"

16 years agoExpand private include file names to be relative to $(top_srcdir)
Ralf Corsépius [Fri, 23 Nov 2007 10:47:48 +0000 (11:47 +0100)]
Expand private include file names to be relative to $(top_srcdir)

16 years agoInclude system.h
Ralf Corsépius [Thu, 22 Nov 2007 12:41:06 +0000 (13:41 +0100)]
Include system.h

16 years agoDebugedit needs crypto initialization too..
Panu Matilainen [Thu, 15 Nov 2007 13:16:10 +0000 (15:16 +0200)]
Debugedit needs crypto initialization too..

17 years agoUse NSS instead of beecrypt for encryption (Tomas Mraz)
Panu Matilainen [Fri, 2 Nov 2007 08:02:40 +0000 (10:02 +0200)]
Use NSS instead of beecrypt for encryption (Tomas Mraz)

17 years agoRemove local def of uint32_t, uint16_t.
Ralf Corsépius [Mon, 29 Oct 2007 07:22:15 +0000 (08:22 +0100)]
Remove local def of uint32_t, uint16_t.
Include <stdint.h>.
Use size_t for sizes.

17 years agoEliminate [u|]int_[8|16|32]. Use c99 stdint.h types instead.
Ralf Corsépius [Fri, 26 Oct 2007 11:24:14 +0000 (13:24 +0200)]
Eliminate [u|]int_[8|16|32]. Use c99 stdint.h types instead.

17 years agodebugedit mishandles empty DW_AT_comp_dir (Roland McGrath)
Panu Matilainen [Thu, 18 Oct 2007 06:34:54 +0000 (09:34 +0300)]
debugedit mishandles empty DW_AT_comp_dir (Roland McGrath)
- fpc seems to produce DW_AT_comp_dir with value "" (empty string).
  This is dubious, but debugedit makes it even worse by getting confused by it.

17 years agodebugedit mishandles DW_FORM_ref_addr (Roland McGrath)
Panu Matilainen [Thu, 18 Oct 2007 06:33:56 +0000 (09:33 +0300)]
debugedit mishandles DW_FORM_ref_addr (Roland McGrath)

17 years agoReformat call to poptGetContext for better source-code readability.
Ralf Corsépius [Mon, 17 Sep 2007 02:31:28 +0000 (04:31 +0200)]
Reformat call to poptGetContext for better source-code readability.

17 years agoFix a bunch of whitespace-in-files issues in find-debuginfo
Panu Matilainen [Wed, 5 Sep 2007 12:21:43 +0000 (15:21 +0300)]
Fix a bunch of whitespace-in-files issues in find-debuginfo

17 years agoNew find-debuginfo script from Roland McGrath
Panu Matilainen [Wed, 5 Sep 2007 12:00:59 +0000 (15:00 +0300)]
New find-debuginfo script from Roland McGrath
- new options for using -g on DSO's
- support for multiple output files (multiple debuginfo subpackages)
- build ID support
- symlink and hardlink support
- new macro to optionally terminate build on missing build id's

17 years agoDebugedit fixes.
Panu Matilainen [Tue, 4 Sep 2007 05:19:03 +0000 (08:19 +0300)]
Debugedit fixes.

This makes debugedit's -l file get files that already match the -d rewrite
directory, not just those that match the -b build directory and get rewritten.

Patch from Roland McGrath

17 years agoFix debugedit buildid thinko.
Panu Matilainen [Sun, 12 Aug 2007 12:27:46 +0000 (15:27 +0300)]
Fix debugedit buildid thinko.
Patch from Roland McGrath

17 years agoAnd one last debugedit fix...
Panu Matilainen [Thu, 12 Jul 2007 11:36:49 +0000 (14:36 +0300)]
And one last debugedit fix...
Modern gcc doesn't like arithmetics on void pointers, cast where needed.

17 years agoSilence the rest of ptr signedness issues in debugedit
Panu Matilainen [Thu, 12 Jul 2007 10:53:23 +0000 (13:53 +0300)]
Silence the rest of ptr signedness issues in debugedit

17 years agocomp_dir doesn't need to be unsigned
Panu Matilainen [Thu, 12 Jul 2007 10:47:51 +0000 (13:47 +0300)]
comp_dir doesn't need to be unsigned

17 years agoRemove unused variable (debugedit)
Panu Matilainen [Thu, 12 Jul 2007 10:43:40 +0000 (13:43 +0300)]
Remove unused variable (debugedit)

17 years agoDebugedit cleanup continued.
Panu Matilainen [Thu, 12 Jul 2007 10:43:01 +0000 (13:43 +0300)]
Debugedit cleanup continued.
Cast to expected type on all uses of strchr()

17 years agoDebugedit cleanup continued.
Panu Matilainen [Thu, 12 Jul 2007 10:41:18 +0000 (13:41 +0300)]
Debugedit cleanup continued.
Cast to expected types on all uses of has_prefix() canonicalize_path()

17 years agodebugedit signedness fixes wrt strlen()
Panu Matilainen [Thu, 12 Jul 2007 10:37:32 +0000 (13:37 +0300)]
debugedit signedness fixes wrt strlen()

17 years agoNew debugedit option to recompute build ID (rhbz#246404)
Panu Matilainen [Wed, 4 Jul 2007 12:11:27 +0000 (15:11 +0300)]
New debugedit option to recompute build ID (rhbz#246404)
Patch from Roland McGrath.

17 years agoFix debugedit for relative paths (#232222)
Paul Nasrat [Mon, 23 Apr 2007 09:49:31 +0000 (10:49 +0100)]
Fix debugedit for relative paths (#232222)

17 years agoFix for debugedit with ../../ in paths
Paul Nasrat [Thu, 15 Mar 2007 15:59:55 +0000 (15:59 +0000)]
Fix for debugedit with ../../ in paths

17 years agoFix debugedit for O0
Paul Nasrat [Thu, 15 Mar 2007 15:59:22 +0000 (15:59 +0000)]
Fix debugedit for O0

17 years agoFix up debuginfo for various issues - inc. libc-client debuginfo (rh#205339)
Paul Nasrat [Thu, 15 Mar 2007 15:58:27 +0000 (15:58 +0000)]
Fix up debuginfo for various issues - inc. libc-client debuginfo (rh#205339)

17 years agoFix for thinko in debugedit on ppc
Paul Nasrat [Thu, 15 Mar 2007 15:57:30 +0000 (15:57 +0000)]
Fix for thinko in debugedit on ppc

19 years ago- fix: find-debuginfo.sh kernel voo-doo tweaks (#159346).
jbj [Wed, 13 Jul 2005 11:09:39 +0000 (11:09 +0000)]
- fix: find-debuginfo.sh kernel voo-doo tweaks (#159346).

CVS patchset: 7880
CVS date: 2005/07/13 11:09:39

19 years ago- fix: java compiled with -O0 confuses debugedit (#161722).
jbj [Wed, 13 Jul 2005 09:23:07 +0000 (09:23 +0000)]
- fix: java compiled with -O0 confuses debugedit (#161722).

CVS patchset: 7873
CVS date: 2005/07/13 09:23:07

20 years agoFix help for list-file option.
arekm [Thu, 20 May 2004 21:30:00 +0000 (21:30 +0000)]
Fix help for list-file option.

CVS patchset: 7248
CVS date: 2004/05/20 21:30:00

20 years ago- find-debuginfo.sh: permit stripping unwritable by non-root (#112429).
jbj [Sun, 28 Dec 2003 15:36:06 +0000 (15:36 +0000)]
- find-debuginfo.sh: permit stripping unwritable by non-root (#112429).

CVS patchset: 7040
CVS date: 2003/12/28 15:36:06

21 years ago- apply debugedit patch necessary to produce kernel -debuginfo files.
jbj [Thu, 10 Jul 2003 12:43:51 +0000 (12:43 +0000)]
- apply debugedit patch necessary to produce kernel -debuginfo files.

CVS patchset: 6933
CVS date: 2003/07/10 12:43:51

21 years agoSkip /usr/lib/debug when walking $RPM_BUILD_ROOT.
jbj [Fri, 14 Mar 2003 21:43:16 +0000 (21:43 +0000)]
Skip /usr/lib/debug when walking $RPM_BUILD_ROOT.

CVS patchset: 6688
CVS date: 2003/03/14 21:43:16

21 years ago- fix: more debugedit.c problems.
jbj [Mon, 27 Jan 2003 17:45:53 +0000 (17:45 +0000)]
- fix: more debugedit.c problems.

CVS patchset: 6029
CVS date: 2003/01/27 17:45:53

21 years ago- fix: debugedit.c problem.
jbj [Wed, 22 Jan 2003 19:21:23 +0000 (19:21 +0000)]
- fix: debugedit.c problem.

CVS patchset: 6022
CVS date: 2003/01/22 19:21:23

21 years ago- update to elfutils-0.56.
jbj [Fri, 15 Nov 2002 18:01:47 +0000 (18:01 +0000)]
- update to elfutils-0.56.
- have debug sub-subpackage use external, not internal, elfutils.

CVS patchset: 5863
CVS date: 2002/11/15 18:01:47

22 years agoElfutils fiddles fo fix striptofile.
jbj [Tue, 12 Nov 2002 20:09:04 +0000 (20:09 +0000)]
Elfutils fiddles fo fix striptofile.

CVS patchset: 5847
CVS date: 2002/11/12 20:09:04

22 years ago- add debug sub-package patch.
jbj [Fri, 18 Oct 2002 18:45:47 +0000 (18:45 +0000)]
- add debug sub-package patch.
- re-add elfutils/libdwarf (for dwarf.h), eliminate tools/dwarf2.h.

CVS patchset: 5789
CVS date: 2002/10/18 18:45:47

22 years agoDebug package patch.
jbj [Fri, 18 Oct 2002 16:01:59 +0000 (16:01 +0000)]
Debug package patch.

CVS patchset: 5788
CVS date: 2002/10/18 16:01:59

22 years ago- eliminate myftw, use Fts(3) instead.
jbj [Fri, 20 Sep 2002 21:26:16 +0000 (21:26 +0000)]
- eliminate myftw, use Fts(3) instead.

CVS patchset: 5730
CVS date: 2002/09/20 21:26:16

22 years ago- add a macro to create a sub-package with debugging symbols.
jbj [Thu, 22 Aug 2002 19:21:14 +0000 (19:21 +0000)]
- add a macro to create a sub-package with debugging symbols.

CVS patchset: 5662
CVS date: 2002/08/22 19:21:14

This page took 0.052792 seconds and 5 git commands to generate.