Commit Graph

59 Commits

Author SHA1 Message Date
Panu Matilainen 0f2a4640de Doh, its .debug_gdb_scripts, not _script (really fix SuseBug:818502) 2013-08-01 16:35:57 +03:00
Panu Matilainen b9ce1c4d7a Teach debugedit about .debug_gdb_script section (SuseBug:818502) 2013-06-17 15:41:45 +03:00
Panu Matilainen 606749c3b5 Avoid breaking build on older systems which dont know AArch64 2013-06-17 10:17:07 +03:00
Kyle McMartin 389d260ca4 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>
2013-06-17 10:06:23 +03:00
Panu Matilainen ea47e7a816 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...
2013-05-22 07:25:41 +03:00
Panu Matilainen e83cc97792 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 1eea433d99
2013-01-09 14:06:56 +02:00
thierry.vignaud@gmail.com 1eea433d99 make "canonicalization(...)shrank by one character" error message more usefull
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
2012-11-01 11:14:54 +02:00
Panu Matilainen 1684b69611 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.
2012-03-07 13:47:09 +02:00
Panu Matilainen 7c463c32fc Teach debugedit about .debug_macro dwarf section (RhBug:759272) 2011-12-02 12:11:48 +02:00
Jakub Jelinek 9d440c488b Add DWARF-4 support to debugedit (RhBug:707677)
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
2011-06-17 16:40:20 +03:00
Panu Matilainen fe2167ead9 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.
2011-05-24 17:23:37 +03:00
Panu Matilainen b925a084ed Remove unused variable in debugedit 2011-03-04 14:50:30 +02:00
Anssi Hannula 7e7ca4b366 debugedit: fix incorrect error messages regarding -b and -d 2010-09-01 10:01:13 +03:00
Roland McGrath e6a0b0e566 Make debugedit -i recompute build ID only when any DWARF was actually changed. 2010-05-11 15:09:53 +03:00
Roland McGrath c4b6362353 Whitespace fixups for tools/debugedit.c 2010-05-11 15:09:52 +03:00
Panu Matilainen 71a7dd8b7a Add debugedit support for DWARF-3 (RhBug:505774)
- patch from Jakub Jelinek
2009-06-16 13:52:43 +03:00
Panu Matilainen 298c919c00 Revert couple of checksum -> digest renames
- physical cpio header and elf header have checksums, not digests
  (from commit 7acdfded4a)
- doesn't affect functionality though
2009-03-19 10:15:49 +02:00
Jindrich Novy 7acdfded4a 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
2009-02-27 14:34:39 +01:00
Panu Matilainen 5ff05aec30 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)
2009-01-08 13:17:22 +02:00
Panu Matilainen c1a5eb3712 debugedit: Include empty CU current directories (rhbz#444310)
- patch from Jan Kratochvil
2008-06-27 15:15:46 +03:00
Panu Matilainen b15e3e3ca1 Silence bogus warning on memset()
- gcc doesn't realize shrank == 0 would terminate the process via error()
  before reaching memset(), work around...
2008-05-05 08:15:17 +03:00
Panu Matilainen 8909c05434 Minimally convert all pgpHexCvt() users to use pgpHexStr() instead 2008-04-07 13:26:46 +03:00
Panu Matilainen 243e97302d Remove now useless nested function in debugedit 2008-01-04 12:00:51 +02:00
Panu Matilainen 8946859700 More size_t type pedantry 2007-12-14 11:38:20 +02:00
Panu Matilainen 9ce13e09ef Switch to <rpm/foo.h> style for public headers
- adjust include paths accordingly
2007-12-08 14:02:32 +02:00
Ralf Corsépius 96e7f513cd Eliminate type "byte" 2007-11-26 10:42:39 +01:00
Ralf Corsépius 38560be92b Expand private include file names to be relative to $(top_srcdir) 2007-11-23 11:47:48 +01:00
Ralf Corsépius 3553b86aff Include system.h 2007-11-22 13:41:06 +01:00
Panu Matilainen f38eeadf41 Debugedit needs crypto initialization too.. 2007-11-15 15:16:10 +02:00
Panu Matilainen 8afe81c214 Use NSS instead of beecrypt for encryption (Tomas Mraz) 2007-11-02 10:02:40 +02:00
Ralf Corsépius 57a5a2b3db Remove local def of uint32_t, uint16_t.
Include <stdint.h>.
Use size_t for sizes.
2007-10-29 08:22:15 +01:00
Ralf Corsépius bebeb89735 Eliminate [u|]int_[8|16|32]. Use c99 stdint.h types instead. 2007-10-26 13:24:14 +02:00
Panu Matilainen 8bcd871811 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.
2007-10-18 09:34:54 +03:00
Panu Matilainen abdc47d51c debugedit mishandles DW_FORM_ref_addr (Roland McGrath) 2007-10-18 09:33:56 +03:00
Ralf Corsépius c72ad4dca5 Reformat call to poptGetContext for better source-code readability. 2007-09-17 04:31:28 +02:00
Panu Matilainen 283d4372ec 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
2007-09-04 08:19:03 +03:00
Panu Matilainen 97b4430a45 Fix debugedit buildid thinko.
Patch from Roland McGrath
2007-08-12 15:27:46 +03:00
Panu Matilainen 77521a682d And one last debugedit fix...
Modern gcc doesn't like arithmetics on void pointers, cast where needed.
2007-07-12 14:36:49 +03:00
Panu Matilainen bc983c5995 Silence the rest of ptr signedness issues in debugedit 2007-07-12 13:53:23 +03:00
Panu Matilainen a0a1875130 comp_dir doesn't need to be unsigned 2007-07-12 13:47:51 +03:00
Panu Matilainen 1a86730b9c Remove unused variable (debugedit) 2007-07-12 13:43:40 +03:00
Panu Matilainen ba8d55161a Debugedit cleanup continued.
Cast to expected type on all uses of strchr()
2007-07-12 13:43:01 +03:00
Panu Matilainen 3b8aa6423f Debugedit cleanup continued.
Cast to expected types on all uses of has_prefix() canonicalize_path()
2007-07-12 13:41:18 +03:00
Panu Matilainen e1e269c23c debugedit signedness fixes wrt strlen() 2007-07-12 13:37:32 +03:00
Panu Matilainen fc1646506b New debugedit option to recompute build ID (rhbz#246404)
Patch from Roland McGrath.
2007-07-04 15:11:27 +03:00
Paul Nasrat e0fe0e26ee Fix debugedit for relative paths (#232222) 2007-04-23 10:49:31 +01:00
Paul Nasrat a63c710e70 Fix for debugedit with ../../ in paths 2007-03-15 15:59:55 +00:00
Paul Nasrat 1168995029 Fix debugedit for O0 2007-03-15 15:59:22 +00:00
Paul Nasrat 060918ca27 Fix up debuginfo for various issues - inc. libc-client debuginfo (rh#205339) 2007-03-15 15:58:27 +00:00
Paul Nasrat 32fd6b3a75 Fix for thinko in debugedit on ppc 2007-03-15 15:57:30 +00:00