]> git.pld-linux.org Git - packages/gdb.git/blobdiff - gdb-6.6-buildid-locate-rpm.patch
- updated to 7.10 and patches from fedora
[packages/gdb.git] / gdb-6.6-buildid-locate-rpm.patch
index 746877f80f771787055c485b0851689377494fa6..9e850ddb72436dca5619af925468a4df7bd690d3 100644 (file)
@@ -1,8 +1,8 @@
-Index: gdb-7.7.50.20140609/gdb/event-top.c
+Index: gdb-7.9.90.20150717/gdb/event-top.c
 ===================================================================
---- gdb-7.7.50.20140609.orig/gdb/event-top.c   2014-06-13 20:10:19.632787642 +0200
-+++ gdb-7.7.50.20140609/gdb/event-top.c        2014-06-13 20:11:49.605878557 +0200
-@@ -38,6 +38,7 @@
+--- gdb-7.9.90.20150717.orig/gdb/event-top.c   2015-07-17 03:59:12.000000000 +0200
++++ gdb-7.9.90.20150717/gdb/event-top.c        2015-08-01 20:07:15.822993674 +0200
+@@ -37,6 +37,7 @@
  #include "gdbcmd.h"           /* for dont_repeat() */
  #include "annotate.h"
  #include "maint.h"
@@ -10,7 +10,7 @@ Index: gdb-7.7.50.20140609/gdb/event-top.c
  
  /* readline include files.  */
  #include "readline/readline.h"
-@@ -176,6 +177,8 @@ rl_callback_read_char_wrapper (gdb_clien
+@@ -180,6 +181,8 @@ rl_callback_read_char_wrapper (gdb_clien
  void
  cli_command_loop (void *data)
  {
@@ -19,7 +19,7 @@ Index: gdb-7.7.50.20140609/gdb/event-top.c
    display_gdb_prompt (0);
  
    /* Now it's time to start the event loop.  */
-@@ -243,6 +246,8 @@ display_gdb_prompt (char *new_prompt)
+@@ -298,6 +301,8 @@ display_gdb_prompt (const char *new_prom
    /* Reset the nesting depth used when trace-commands is set.  */
    reset_command_nest_depth ();
  
@@ -28,24 +28,24 @@ Index: gdb-7.7.50.20140609/gdb/event-top.c
    old_chain = make_cleanup (free_current_contents, &actual_gdb_prompt);
  
    /* Do not call the python hook on an explicit prompt change as
-Index: gdb-7.7.50.20140609/gdb/symfile.h
+Index: gdb-7.9.90.20150717/gdb/symfile.h
 ===================================================================
---- gdb-7.7.50.20140609.orig/gdb/symfile.h     2014-06-13 20:10:19.633787643 +0200
-+++ gdb-7.7.50.20140609/gdb/symfile.h  2014-06-13 20:10:31.066799158 +0200
-@@ -573,6 +573,8 @@ void map_symbol_filenames (symbol_filena
+--- gdb-7.9.90.20150717.orig/gdb/symfile.h     2015-08-01 20:07:15.787993404 +0200
++++ gdb-7.9.90.20150717/gdb/symfile.h  2015-08-01 20:07:15.822993674 +0200
+@@ -587,6 +587,8 @@ void map_symbol_filenames (symbol_filena
  /* build-id support.  */
- extern struct elf_build_id *build_id_addr_get (CORE_ADDR addr);
+ extern struct bfd_build_id *build_id_addr_get (CORE_ADDR addr);
  extern void debug_print_missing (const char *binary, const char *debug);
 +extern void debug_flush_missing (void);
 +#define BUILD_ID_MAIN_EXECUTABLE_FILENAME _("the main executable file")
  
  /* From dwarf2read.c */
  
-Index: gdb-7.7.50.20140609/gdb/testsuite/lib/gdb.exp
+Index: gdb-7.9.90.20150717/gdb/testsuite/lib/gdb.exp
 ===================================================================
---- gdb-7.7.50.20140609.orig/gdb/testsuite/lib/gdb.exp 2014-06-13 20:10:19.634787644 +0200
-+++ gdb-7.7.50.20140609/gdb/testsuite/lib/gdb.exp      2014-06-13 20:10:31.067799159 +0200
-@@ -1492,7 +1492,7 @@ proc default_gdb_start { } {
+--- gdb-7.9.90.20150717.orig/gdb/testsuite/lib/gdb.exp 2015-08-01 20:07:15.789993420 +0200
++++ gdb-7.9.90.20150717/gdb/testsuite/lib/gdb.exp      2015-08-01 20:07:15.824993689 +0200
+@@ -1573,7 +1573,7 @@ proc default_gdb_start { } {
            warning "Couldn't set the width to 0."
        }
      }
@@ -54,11 +54,11 @@ Index: gdb-7.7.50.20140609/gdb/testsuite/lib/gdb.exp
      send_gdb "set build-id-verbose 0\n"
      gdb_expect 10 {
        -re "$gdb_prompt $" {
-Index: gdb-7.7.50.20140609/gdb/testsuite/lib/mi-support.exp
+Index: gdb-7.9.90.20150717/gdb/testsuite/lib/mi-support.exp
 ===================================================================
---- gdb-7.7.50.20140609.orig/gdb/testsuite/lib/mi-support.exp  2014-06-13 20:10:19.635787645 +0200
-+++ gdb-7.7.50.20140609/gdb/testsuite/lib/mi-support.exp       2014-06-13 20:10:31.068799160 +0200
-@@ -212,7 +212,7 @@ proc default_mi_gdb_start { args } {
+--- gdb-7.9.90.20150717.orig/gdb/testsuite/lib/mi-support.exp  2015-08-01 20:07:15.789993420 +0200
++++ gdb-7.9.90.20150717/gdb/testsuite/lib/mi-support.exp       2015-08-01 20:07:15.824993689 +0200
+@@ -214,7 +214,7 @@ proc default_mi_gdb_start { args } {
            warning "Couldn't set the width to 0."
        }
      }
@@ -67,22 +67,22 @@ Index: gdb-7.7.50.20140609/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.7.50.20140609/gdb/tui/tui-interp.c
+Index: gdb-7.9.90.20150717/gdb/tui/tui-interp.c
 ===================================================================
---- gdb-7.7.50.20140609.orig/gdb/tui/tui-interp.c      2014-06-13 20:10:31.068799160 +0200
-+++ gdb-7.7.50.20140609/gdb/tui/tui-interp.c   2014-06-13 20:10:47.806816542 +0200
-@@ -32,6 +32,7 @@
- #include "exceptions.h"
+--- gdb-7.9.90.20150717.orig/gdb/tui/tui-interp.c      2015-07-17 03:59:13.000000000 +0200
++++ gdb-7.9.90.20150717/gdb/tui/tui-interp.c   2015-08-01 20:07:15.825993697 +0200
+@@ -31,6 +31,7 @@
+ #include "tui/tui-io.h"
  #include "infrun.h"
  #include "observer.h"
 +#include "symfile.h"
  
  static struct ui_out *tui_ui_out (struct interp *self);
  
-Index: gdb-7.7.50.20140609/gdb/aclocal.m4
+Index: gdb-7.9.90.20150717/gdb/aclocal.m4
 ===================================================================
---- gdb-7.7.50.20140609.orig/gdb/aclocal.m4    2014-06-13 20:10:19.636787646 +0200
-+++ gdb-7.7.50.20140609/gdb/aclocal.m4 2014-06-13 20:10:31.069799161 +0200
+--- gdb-7.9.90.20150717.orig/gdb/aclocal.m4    2015-07-17 03:59:12.000000000 +0200
++++ gdb-7.9.90.20150717/gdb/aclocal.m4 2015-08-01 20:07:15.825993697 +0200
 @@ -11,6 +11,221 @@
  # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  # PARTICULAR PURPOSE.
@@ -305,10 +305,10 @@ Index: gdb-7.7.50.20140609/gdb/aclocal.m4
  # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
  
  # Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
-Index: gdb-7.7.50.20140609/gdb/config.in
+Index: gdb-7.9.90.20150717/gdb/config.in
 ===================================================================
---- gdb-7.7.50.20140609.orig/gdb/config.in     2014-06-13 20:10:19.637787647 +0200
-+++ gdb-7.7.50.20140609/gdb/config.in  2014-06-13 20:10:31.069799161 +0200
+--- gdb-7.9.90.20150717.orig/gdb/config.in     2015-07-17 03:59:12.000000000 +0200
++++ gdb-7.9.90.20150717/gdb/config.in  2015-08-01 20:07:15.826993704 +0200
 @@ -33,6 +33,9 @@
  /* Define to BFD's default target vector. */
  #undef DEFAULT_BFD_VEC
@@ -319,7 +319,7 @@ Index: gdb-7.7.50.20140609/gdb/config.in
  /* Define to 1 if translation of program messages to the user's native
     language is requested. */
  #undef ENABLE_NLS
-@@ -210,6 +213,9 @@
+@@ -258,6 +261,9 @@
  /* Define if Python 2.7 is being used. */
  #undef HAVE_LIBPYTHON2_7
  
@@ -329,11 +329,11 @@ Index: gdb-7.7.50.20140609/gdb/config.in
  /* Define to 1 if you have the <libunwind-ia64.h> header file. */
  #undef HAVE_LIBUNWIND_IA64_H
  
-Index: gdb-7.7.50.20140609/gdb/configure
+Index: gdb-7.9.90.20150717/gdb/configure
 ===================================================================
---- gdb-7.7.50.20140609.orig/gdb/configure     2014-06-13 20:10:19.642787652 +0200
-+++ gdb-7.7.50.20140609/gdb/configure  2014-06-13 20:10:31.073799165 +0200
-@@ -692,6 +692,11 @@ PKGVERSION
+--- gdb-7.9.90.20150717.orig/gdb/configure     2015-07-17 03:59:12.000000000 +0200
++++ gdb-7.9.90.20150717/gdb/configure  2015-08-01 20:07:15.830993735 +0200
+@@ -703,6 +703,11 @@ PKGVERSION
  HAVE_NATIVE_GCORE_TARGET
  TARGET_OBS
  subdirs
@@ -345,7 +345,7 @@ Index: gdb-7.7.50.20140609/gdb/configure
  GDB_DATADIR
  DEBUGDIR
  MAKEINFO_EXTRA_FLAGS
-@@ -795,6 +800,7 @@ with_gdb_datadir
+@@ -811,6 +816,7 @@ with_gdb_datadir
  with_relocated_sources
  with_auto_load_dir
  with_auto_load_safe_path
@@ -353,7 +353,7 @@ Index: gdb-7.7.50.20140609/gdb/configure
  enable_targets
  enable_64_bit_bfd
  enable_gdbcli
-@@ -846,6 +852,11 @@ CPPFLAGS
+@@ -867,6 +873,11 @@ CCC
  CPP
  MAKEINFO
  MAKEINFOFLAGS
@@ -365,7 +365,7 @@ Index: gdb-7.7.50.20140609/gdb/configure
  YACC
  YFLAGS
  XMKMF'
-@@ -1516,6 +1527,8 @@ Optional Packages:
+@@ -1538,6 +1549,8 @@ Optional Packages:
                            [--with-auto-load-dir]
    --without-auto-load-safe-path
                            do not restrict auto-loaded files locations
@@ -374,7 +374,7 @@ Index: gdb-7.7.50.20140609/gdb/configure
    --with-libunwind-ia64   use libunwind frame unwinding for ia64 targets
    --with-curses           use the curses library instead of the termcap
                            library
-@@ -1565,6 +1578,13 @@ Some influential environment variables:
+@@ -1592,6 +1605,13 @@ Some influential environment variables:
    MAKEINFO    Parent configure detects if it is of sufficient version.
    MAKEINFOFLAGS
                Parameters for MAKEINFO.
@@ -388,7 +388,7 @@ Index: gdb-7.7.50.20140609/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.
-@@ -5160,6 +5180,491 @@ _ACEOF
+@@ -5608,6 +5628,491 @@ _ACEOF
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
  $as_echo "$with_auto_load_safe_path" >&6; }
  
@@ -880,11 +880,11 @@ Index: gdb-7.7.50.20140609/gdb/configure
  
  
  subdirs="$subdirs testsuite"
-Index: gdb-7.7.50.20140609/gdb/configure.ac
+Index: gdb-7.9.90.20150717/gdb/configure.ac
 ===================================================================
---- gdb-7.7.50.20140609.orig/gdb/configure.ac  2014-06-13 20:10:19.643787653 +0200
-+++ gdb-7.7.50.20140609/gdb/configure.ac       2014-06-13 20:10:31.074799166 +0200
-@@ -165,6 +165,199 @@ AC_DEFINE_DIR(AUTO_LOAD_SAFE_PATH, escap
+--- gdb-7.9.90.20150717.orig/gdb/configure.ac  2015-07-17 03:59:12.000000000 +0200
++++ gdb-7.9.90.20150717/gdb/configure.ac       2015-08-01 20:07:15.831993743 +0200
+@@ -177,6 +177,199 @@ AC_DEFINE_DIR(AUTO_LOAD_SAFE_PATH, escap
              [Directories safe to hold auto-loaded files.])
  AC_MSG_RESULT([$with_auto_load_safe_path])
  
@@ -1084,11 +1084,11 @@ Index: gdb-7.7.50.20140609/gdb/configure.ac
  AC_CONFIG_SUBDIRS(testsuite)
  
  # Check whether to support alternative target configurations
-Index: gdb-7.7.50.20140609/gdb/corelow.c
+Index: gdb-7.9.90.20150717/gdb/corelow.c
 ===================================================================
---- gdb-7.7.50.20140609.orig/gdb/corelow.c     2014-06-13 20:10:19.644787654 +0200
-+++ gdb-7.7.50.20140609/gdb/corelow.c  2014-06-13 20:10:31.074799166 +0200
-@@ -316,7 +316,7 @@ build_id_locate_exec (int from_tty)
+--- gdb-7.9.90.20150717.orig/gdb/corelow.c     2015-08-01 20:07:15.775993312 +0200
++++ gdb-7.9.90.20150717/gdb/corelow.c  2015-08-01 20:07:15.831993743 +0200
+@@ -310,7 +310,7 @@ build_id_locate_exec (int from_tty)
          symfile_objfile->flags |= OBJF_BUILD_ID_CORE_LOADED;
      }
    else
@@ -1097,19 +1097,19 @@ Index: gdb-7.7.50.20140609/gdb/corelow.c
  
    do_cleanups (back_to);
  
-Index: gdb-7.7.50.20140609/gdb/build-id.c
+Index: gdb-7.9.90.20150717/gdb/build-id.c
 ===================================================================
---- gdb-7.7.50.20140609.orig/gdb/build-id.c    2014-06-13 20:10:19.644787654 +0200
-+++ gdb-7.7.50.20140609/gdb/build-id.c 2014-06-13 20:10:31.075799167 +0200
-@@ -32,6 +32,7 @@
- #include "gdbcmd.h"
- #include "observer.h"
+--- gdb-7.9.90.20150717.orig/gdb/build-id.c    2015-08-01 20:07:15.791993435 +0200
++++ gdb-7.9.90.20150717/gdb/build-id.c 2015-08-01 20:08:27.735546630 +0200
+@@ -35,6 +35,7 @@
+ #include "elf/common.h"
+ #include "elf-bfd.h"
  #include <sys/stat.h>
 +#include "elf/external.h"
  
  #define BUILD_ID_VERBOSE_NONE 0
  #define BUILD_ID_VERBOSE_FILENAMES 1
-@@ -666,8 +667,360 @@ build_id_to_filename (const struct elf_b
+@@ -665,8 +666,363 @@ build_id_to_filename (const struct bfd_b
    return result;
  }
  
@@ -1409,6 +1409,9 @@ Index: gdb-7.7.50.20140609/gdb/build-id.c
 +       (int (*) (const void *, const void *)) missing_rpm_list_compar);
 +
 +  printf_unfiltered (_("Missing separate debuginfos, use: %s"),
++#ifdef DNF_DEBUGINFO_INSTALL
++                   "dnf "
++#endif
 +                   "debuginfo-install");
 +  for (array_iter = array; array_iter < array + missing_rpm_list_entries;
 +       array_iter++)
@@ -1471,7 +1474,7 @@ Index: gdb-7.7.50.20140609/gdb/build-id.c
     avoidance.  */
  
  struct missing_filepair
-@@ -721,11 +1074,17 @@ missing_filepair_change (void)
+@@ -720,11 +1076,17 @@ missing_filepair_change (void)
        /* All their memory came just from missing_filepair_OBSTACK.  */
        missing_filepair_hash = NULL;
      }
@@ -1489,7 +1492,7 @@ Index: gdb-7.7.50.20140609/gdb/build-id.c
    missing_filepair_change ();
  }
  
-@@ -792,14 +1151,34 @@ debug_print_missing (const char *binary,
+@@ -791,14 +1153,39 @@ debug_print_missing (const char *binary,
  
    *slot = missing_filepair;
  
@@ -1526,7 +1529,12 @@ Index: gdb-7.7.50.20140609/gdb/build-id.c
 +                          _("Missing separate debuginfo for %s\n"), binary);
 +        if (debug != NULL)
 +        fprintf_unfiltered (gdb_stdlog, _("Try: %s %s\n"),
-+                            "yum --enablerepo='*debug*' install", debug);
++#ifdef DNF_DEBUGINFO_INSTALL
++                            "dnf"
++#else
++                            "yum"
++#endif
++                            " --enablerepo='*debug*' install", debug);
 +      }
  }
  
This page took 0.114836 seconds and 4 git commands to generate.