]> git.pld-linux.org Git - packages/gdb.git/blobdiff - gdb-6.6-buildid-locate-rpm.patch
- updated build-id patches from fedora to gdb 7.6
[packages/gdb.git] / gdb-6.6-buildid-locate-rpm.patch
index f5553f1960b0dd01375e13304c596aca3874ebca..8289baea03558660c0101c56acdd5d21939241e2 100644 (file)
@@ -1,16 +1,16 @@
-Index: gdb-7.4.50.20120602/gdb/event-top.c
+Index: gdb-7.6/gdb/event-top.c
 ===================================================================
---- gdb-7.4.50.20120602.orig/gdb/event-top.c   2012-06-02 21:08:08.651227347 +0200
-+++ gdb-7.4.50.20120602/gdb/event-top.c        2012-06-02 21:08:23.479221885 +0200
+--- gdb-7.6.orig/gdb/event-top.c       2013-01-31 19:37:37.000000000 +0100
++++ gdb-7.6/gdb/event-top.c    2013-07-17 19:51:02.679357656 +0200
 @@ -36,6 +36,7 @@
- #include "observer.h"
  #include "continuations.h"
  #include "gdbcmd.h"           /* for dont_repeat() */
+ #include "annotate.h"
 +#include "symfile.h"
  
  /* readline include files.  */
  #include "readline/readline.h"
-@@ -176,6 +177,8 @@ rl_callback_read_char_wrapper (gdb_clien
+@@ -170,6 +171,8 @@ rl_callback_read_char_wrapper (gdb_clien
  void
  cli_command_loop (void)
  {
@@ -19,7 +19,7 @@ Index: gdb-7.4.50.20120602/gdb/event-top.c
    display_gdb_prompt (0);
  
    /* Now it's time to start the event loop.  */
-@@ -241,6 +244,8 @@ display_gdb_prompt (char *new_prompt)
+@@ -237,6 +240,8 @@ display_gdb_prompt (char *new_prompt)
    /* Reset the nesting depth used when trace-commands is set.  */
    reset_command_nest_depth ();
  
@@ -28,11 +28,11 @@ Index: gdb-7.4.50.20120602/gdb/event-top.c
    /* Each interpreter has its own rules on displaying the command
       prompt.  */
    if (!current_interp_display_prompt_p ())
-Index: gdb-7.4.50.20120602/gdb/elfread.c
+Index: gdb-7.6/gdb/elfread.c
 ===================================================================
---- gdb-7.4.50.20120602.orig/gdb/elfread.c     2012-06-02 21:08:08.651227347 +0200
-+++ gdb-7.4.50.20120602/gdb/elfread.c  2012-06-02 21:08:23.482221882 +0200
-@@ -48,6 +48,7 @@
+--- gdb-7.6.orig/gdb/elfread.c 2013-07-17 19:51:02.639357629 +0200
++++ gdb-7.6/gdb/elfread.c      2013-07-17 19:51:50.738390068 +0200
+@@ -49,6 +49,7 @@
  #include "gdbcore.h"
  #include "gdbcmd.h"
  #include "observer.h"
@@ -40,7 +40,7 @@ Index: gdb-7.4.50.20120602/gdb/elfread.c
  #include <sys/stat.h>
  
  extern void _initialize_elfread (void);
-@@ -1647,8 +1648,361 @@ build_id_to_filename (struct build_id *b
+@@ -1682,8 +1683,360 @@ build_id_to_filename (const struct elf_b
    return retval;
  }
  
@@ -258,8 +258,7 @@ Index: gdb-7.4.50.20120602/gdb/elfread.c
 +
 +        /* Base package name for `debuginfo-install'.  We do not use the
 +           `yum' command directly as the line
-+               yum --disablerepo='*' --enablerepo='*debug*' \
-+                   install NAME-debuginfo.ARCH
++               yum --enablerepo='*debug*' install NAME-debuginfo.ARCH
 +           would be more complicated than just:
 +               debuginfo-install NAME-VERSION-RELEASE.ARCH
 +           Do not supply the rpm base name (derived from .src.rpm name) as
@@ -399,11 +398,11 @@ Index: gdb-7.4.50.20120602/gdb/elfread.c
 +
  /* This MISSING_FILEPAIR_HASH tracker is used only for the duplicite messages
 -     Try to install the hash file ...
-+     yum --disablerepo='*' --enablerepo='*debug*' install ...
++     yum --enablerepo='*debug*' install ...
     avoidance.  */
  
  struct missing_filepair
-@@ -1702,11 +2056,17 @@ missing_filepair_change (void)
+@@ -1737,11 +2090,17 @@ missing_filepair_change (void)
        /* All their memory came just from missing_filepair_OBSTACK.  */
        missing_filepair_hash = NULL;
      }
@@ -421,7 +420,7 @@ Index: gdb-7.4.50.20120602/gdb/elfread.c
    missing_filepair_change ();
  }
  
-@@ -1773,14 +2133,35 @@ debug_print_missing (const char *binary,
+@@ -1808,14 +2167,34 @@ debug_print_missing (const char *binary,
  
    *slot = missing_filepair;
  
@@ -458,18 +457,17 @@ Index: gdb-7.4.50.20120602/gdb/elfread.c
 +                          _("Missing separate debuginfo for %s\n"), binary);
 +        if (debug != NULL)
 +        fprintf_unfiltered (gdb_stdlog, _("Try: %s %s\n"),
-+                            "yum --disablerepo='*' --enablerepo='*debug*'"
-+                            " install", debug);
++                            "yum --enablerepo='*debug*' install", debug);
 +      }
  }
  
  static char *
-Index: gdb-7.4.50.20120602/gdb/symfile.h
+Index: gdb-7.6/gdb/symfile.h
 ===================================================================
---- gdb-7.4.50.20120602.orig/gdb/symfile.h     2012-06-02 21:08:08.651227347 +0200
-+++ gdb-7.4.50.20120602/gdb/symfile.h  2012-06-02 21:08:23.499221877 +0200
-@@ -621,6 +621,8 @@ extern struct build_id *build_id_addr_ge
- extern char *build_id_to_filename (struct build_id *build_id,
+--- gdb-7.6.orig/gdb/symfile.h 2013-07-17 19:51:02.639357629 +0200
++++ gdb-7.6/gdb/symfile.h      2013-07-17 19:51:02.687357661 +0200
+@@ -598,6 +598,8 @@ extern struct elf_build_id *build_id_add
+ extern char *build_id_to_filename (const struct elf_build_id *build_id,
                                   char **link_return, int add_debug_suffix);
  extern void debug_print_missing (const char *binary, const char *debug);
 +extern void debug_flush_missing (void);
@@ -477,11 +475,11 @@ Index: gdb-7.4.50.20120602/gdb/symfile.h
  
  /* From dwarf2read.c */
  
-Index: gdb-7.4.50.20120602/gdb/testsuite/lib/gdb.exp
+Index: gdb-7.6/gdb/testsuite/lib/gdb.exp
 ===================================================================
---- gdb-7.4.50.20120602.orig/gdb/testsuite/lib/gdb.exp 2012-06-02 21:08:08.651227347 +0200
-+++ gdb-7.4.50.20120602/gdb/testsuite/lib/gdb.exp      2012-06-02 21:08:23.510221873 +0200
-@@ -1388,7 +1388,7 @@ proc default_gdb_start { } {
+--- gdb-7.6.orig/gdb/testsuite/lib/gdb.exp     2013-07-17 19:51:02.640357629 +0200
++++ gdb-7.6/gdb/testsuite/lib/gdb.exp  2013-07-17 19:51:02.688357662 +0200
+@@ -1482,7 +1482,7 @@ proc default_gdb_start { } {
            warning "Couldn't set the width to 0."
        }
      }
@@ -490,11 +488,11 @@ Index: gdb-7.4.50.20120602/gdb/testsuite/lib/gdb.exp
      send_gdb "set build-id-verbose 0\n"
      gdb_expect 10 {
        -re "$gdb_prompt $" {
-Index: gdb-7.4.50.20120602/gdb/testsuite/lib/mi-support.exp
+Index: gdb-7.6/gdb/testsuite/lib/mi-support.exp
 ===================================================================
---- gdb-7.4.50.20120602.orig/gdb/testsuite/lib/mi-support.exp  2012-06-02 21:08:08.651227347 +0200
-+++ gdb-7.4.50.20120602/gdb/testsuite/lib/mi-support.exp       2012-06-02 21:08:23.523221869 +0200
-@@ -213,7 +213,7 @@ proc default_mi_gdb_start { args } {
+--- gdb-7.6.orig/gdb/testsuite/lib/mi-support.exp      2013-07-17 19:51:02.656357640 +0200
++++ gdb-7.6/gdb/testsuite/lib/mi-support.exp   2013-07-17 19:51:02.689357663 +0200
+@@ -212,7 +212,7 @@ proc default_mi_gdb_start { args } {
            warning "Couldn't set the width to 0."
        }
      }
@@ -503,10 +501,10 @@ Index: gdb-7.4.50.20120602/gdb/testsuite/lib/mi-support.exp
      send_gdb "190-gdb-set build-id-verbose 0\n"
      gdb_expect 10 {
        -re ".*190-gdb-set build-id-verbose 0\r\n190\\\^done\r\n$mi_gdb_prompt$" {
-Index: gdb-7.4.50.20120602/gdb/tui/tui-interp.c
+Index: gdb-7.6/gdb/tui/tui-interp.c
 ===================================================================
---- gdb-7.4.50.20120602.orig/gdb/tui/tui-interp.c      2012-06-02 21:08:08.651227347 +0200
-+++ gdb-7.4.50.20120602/gdb/tui/tui-interp.c   2012-06-02 21:08:23.524221869 +0200
+--- gdb-7.6.orig/gdb/tui/tui-interp.c  2013-01-01 07:41:30.000000000 +0100
++++ gdb-7.6/gdb/tui/tui-interp.c       2013-07-17 19:51:02.689357663 +0200
 @@ -30,6 +30,7 @@
  #include "tui/tui.h"
  #include "tui/tui-io.h"
@@ -515,10 +513,10 @@ Index: gdb-7.4.50.20120602/gdb/tui/tui-interp.c
  
  /* Set to 1 when the TUI mode must be activated when we first start
     gdb.  */
-Index: gdb-7.4.50.20120602/gdb/aclocal.m4
+Index: gdb-7.6/gdb/aclocal.m4
 ===================================================================
---- gdb-7.4.50.20120602.orig/gdb/aclocal.m4    2012-06-02 21:08:08.651227347 +0200
-+++ gdb-7.4.50.20120602/gdb/aclocal.m4 2012-06-02 21:08:23.545221858 +0200
+--- gdb-7.6.orig/gdb/aclocal.m4        2013-01-17 12:06:26.000000000 +0100
++++ gdb-7.6/gdb/aclocal.m4     2013-07-17 19:51:02.689357663 +0200
 @@ -11,6 +11,164 @@
  # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  # PARTICULAR PURPOSE.
@@ -684,11 +682,11 @@ Index: gdb-7.4.50.20120602/gdb/aclocal.m4
  # AM_CONDITIONAL                                            -*- Autoconf -*-
  
  # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
-Index: gdb-7.4.50.20120602/gdb/config.in
+Index: gdb-7.6/gdb/config.in
 ===================================================================
---- gdb-7.4.50.20120602.orig/gdb/config.in     2012-06-02 21:08:08.651227347 +0200
-+++ gdb-7.4.50.20120602/gdb/config.in  2012-06-02 21:08:23.546221859 +0200
-@@ -36,6 +36,9 @@
+--- gdb-7.6.orig/gdb/config.in 2012-12-09 19:39:58.000000000 +0100
++++ gdb-7.6/gdb/config.in      2013-07-17 19:51:02.689357663 +0200
+@@ -33,6 +33,9 @@
  /* Define to BFD's default target vector. */
  #undef DEFAULT_BFD_VEC
  
@@ -698,7 +696,7 @@ Index: gdb-7.4.50.20120602/gdb/config.in
  /* Define to 1 if translation of program messages to the user's native
     language is requested. */
  #undef ENABLE_NLS
-@@ -216,6 +219,9 @@
+@@ -210,6 +213,9 @@
  /* Define if Python 2.7 is being used. */
  #undef HAVE_LIBPYTHON2_7
  
@@ -708,12 +706,12 @@ Index: gdb-7.4.50.20120602/gdb/config.in
  /* Define to 1 if you have the <libunwind-ia64.h> header file. */
  #undef HAVE_LIBUNWIND_IA64_H
  
-Index: gdb-7.4.50.20120602/gdb/configure
+Index: gdb-7.6/gdb/configure
 ===================================================================
---- gdb-7.4.50.20120602.orig/gdb/configure     2012-06-02 21:08:08.651227347 +0200
-+++ gdb-7.4.50.20120602/gdb/configure  2012-06-02 21:20:53.245838121 +0200
-@@ -680,6 +680,11 @@ REPORT_BUGS_TO
- PKGVERSION
+--- gdb-7.6.orig/gdb/configure 2013-07-17 19:51:01.665356963 +0200
++++ gdb-7.6/gdb/configure      2013-07-17 19:51:02.691357664 +0200
+@@ -686,6 +686,11 @@ PKGVERSION
+ HAVE_NATIVE_GCORE_TARGET
  TARGET_OBS
  subdirs
 +RPM_LIBS
@@ -724,7 +722,7 @@ Index: gdb-7.4.50.20120602/gdb/configure
  GDB_DATADIR
  DEBUGDIR
  MAKEINFO_EXTRA_FLAGS
-@@ -780,6 +785,7 @@ with_gdb_datadir
+@@ -786,6 +791,7 @@ with_gdb_datadir
  with_relocated_sources
  with_auto_load_dir
  with_auto_load_safe_path
@@ -732,7 +730,7 @@ Index: gdb-7.4.50.20120602/gdb/configure
  enable_targets
  enable_64_bit_bfd
  enable_gdbcli
-@@ -825,6 +831,11 @@ CPPFLAGS
+@@ -834,6 +840,11 @@ CPPFLAGS
  CPP
  MAKEINFO
  MAKEINFOFLAGS
@@ -744,7 +742,7 @@ Index: gdb-7.4.50.20120602/gdb/configure
  YACC
  YFLAGS
  XMKMF'
-@@ -1494,6 +1505,8 @@ Optional Packages:
+@@ -1504,6 +1515,8 @@ Optional Packages:
                            [--with-auto-load-dir]
    --without-auto-load-safe-path
                            do not restrict auto-loaded files locations
@@ -753,7 +751,7 @@ Index: gdb-7.4.50.20120602/gdb/configure
    --with-libunwind-ia64   use libunwind frame unwinding for ia64 targets
    --with-curses           use the curses library instead of the termcap
                            library
-@@ -1535,6 +1548,13 @@ Some influential environment variables:
+@@ -1548,6 +1561,13 @@ Some influential environment variables:
    MAKEINFO    Parent configure detects if it is of sufficient version.
    MAKEINFOFLAGS
                Parameters for MAKEINFO.
@@ -767,7 +765,7 @@ Index: gdb-7.4.50.20120602/gdb/configure
    YACC        The `Yet Another C Compiler' implementation to use. Defaults to
                the first program found out of: `bison -y', `byacc', `yacc'.
    YFLAGS      The list of arguments that will be passed by default to $YACC.
-@@ -5015,6 +5035,491 @@ _ACEOF
+@@ -5033,6 +5053,491 @@ _ACEOF
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
  $as_echo "$with_auto_load_safe_path" >&6; }
  
@@ -1259,10 +1257,10 @@ Index: gdb-7.4.50.20120602/gdb/configure
  
  
  subdirs="$subdirs testsuite"
-Index: gdb-7.4.50.20120602/gdb/configure.ac
+Index: gdb-7.6/gdb/configure.ac
 ===================================================================
---- gdb-7.4.50.20120602.orig/gdb/configure.ac  2012-06-02 21:08:08.651227347 +0200
-+++ gdb-7.4.50.20120602/gdb/configure.ac       2012-06-02 21:08:23.560221855 +0200
+--- gdb-7.6.orig/gdb/configure.ac      2013-07-17 19:51:01.666356964 +0200
++++ gdb-7.6/gdb/configure.ac   2013-07-17 19:51:02.692357665 +0200
 @@ -166,6 +166,199 @@ AC_DEFINE_DIR(AUTO_LOAD_SAFE_PATH, escap
              [Directories safe to hold auto-loaded files.])
  AC_MSG_RESULT([$with_auto_load_safe_path])
@@ -1463,11 +1461,11 @@ Index: gdb-7.4.50.20120602/gdb/configure.ac
  AC_CONFIG_SUBDIRS(testsuite)
  
  # Check whether to support alternative target configurations
-Index: gdb-7.4.50.20120602/gdb/corelow.c
+Index: gdb-7.6/gdb/corelow.c
 ===================================================================
---- gdb-7.4.50.20120602.orig/gdb/corelow.c     2012-06-02 21:08:08.651227347 +0200
-+++ gdb-7.4.50.20120602/gdb/corelow.c  2012-06-02 21:08:23.561221855 +0200
-@@ -317,7 +317,7 @@ build_id_locate_exec (int from_tty)
+--- gdb-7.6.orig/gdb/corelow.c 2013-07-17 19:51:02.608357607 +0200
++++ gdb-7.6/gdb/corelow.c      2013-07-17 19:51:02.692357665 +0200
+@@ -314,7 +314,7 @@ build_id_locate_exec (int from_tty)
          symfile_objfile->flags |= OBJF_BUILD_ID_CORE_LOADED;
      }
    else
This page took 0.052032 seconds and 4 git commands to generate.