]> git.pld-linux.org Git - packages/gdb.git/blobdiff - gdb-6.6-buildid-locate-core-as-arg.patch
- up to 8.2
[packages/gdb.git] / gdb-6.6-buildid-locate-core-as-arg.patch
index 5d9792a86d61e3e12611746b4ad6da2be89d4246..40938a540ed7fb45342ffc2b499f7b44a70f2b9b 100644 (file)
@@ -1,9 +1,7 @@
 From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
 From: Fedora GDB patches <invalid@email.com>
 Date: Fri, 27 Oct 2017 21:07:50 +0200
-Subject: print a more useful error message for "gdb core"
-
-FileName: gdb-6.6-buildid-locate-core-as-arg.patch
+Subject: gdb-6.6-buildid-locate-core-as-arg.patch
 
 ;;=push+jan
 
@@ -62,14 +60,8 @@ Http://sourceware.org/ml/gdb-patches/2010-01/msg00517.html
 
        * exec.c (exec_file_attach): Print a more useful error message if the
        user did "gdb core".
----
- gdb/common/common-exceptions.h |  3 +++
- gdb/exec.c                     | 22 +++++++++++++++---
- gdb/main.c                     | 53 +++++++++++++++++++++++++++++++++++++++---
- 3 files changed, 72 insertions(+), 6 deletions(-)
 
 diff --git a/gdb/common/common-exceptions.h b/gdb/common/common-exceptions.h
-index 15c85e28ab..9fe2375bce 100644
 --- a/gdb/common/common-exceptions.h
 +++ b/gdb/common/common-exceptions.h
 @@ -104,6 +104,9 @@ enum errors {
@@ -83,18 +75,17 @@ index 15c85e28ab..9fe2375bce 100644
    NR_ERRORS
  };
 diff --git a/gdb/exec.c b/gdb/exec.c
-index c8c32ecc27..b329e2b834 100644
 --- a/gdb/exec.c
 +++ b/gdb/exec.c
-@@ -35,6 +35,7 @@
- #include "progspace.h"
+@@ -36,6 +36,7 @@
  #include "gdb_bfd.h"
  #include "gcore.h"
+ #include "source.h"
 +#include "exceptions.h"
  
  #include <fcntl.h>
  #include "readline/readline.h"
-@@ -346,12 +347,27 @@ exec_file_attach (const char *filename, int from_tty)
+@@ -357,12 +358,27 @@ exec_file_attach (const char *filename, int from_tty)
  
        if (!bfd_check_format_matches (exec_bfd, bfd_object, &matching))
        {
@@ -126,10 +117,9 @@ index c8c32ecc27..b329e2b834 100644
  
        if (build_section_table (exec_bfd, &sections, &sections_end))
 diff --git a/gdb/main.c b/gdb/main.c
-index 3c98787edb..17d35f4a8a 100644
 --- a/gdb/main.c
 +++ b/gdb/main.c
-@@ -446,6 +446,37 @@ struct cmdarg
+@@ -447,6 +447,37 @@ struct cmdarg
    char *string;
  };
  
@@ -167,7 +157,7 @@ index 3c98787edb..17d35f4a8a 100644
  static void
  captured_main_1 (struct captured_main_args *context)
  {
-@@ -882,6 +913,8 @@ captured_main_1 (struct captured_main_args *context)
+@@ -883,6 +914,8 @@ captured_main_1 (struct captured_main_args *context)
        {
          symarg = argv[optind];
          execarg = argv[optind];
@@ -176,7 +166,7 @@ index 3c98787edb..17d35f4a8a 100644
          optind++;
        }
  
-@@ -1032,11 +1065,25 @@ captured_main_1 (struct captured_main_args *context)
+@@ -1033,11 +1066,25 @@ captured_main_1 (struct captured_main_args *context)
        && symarg != NULL
        && strcmp (execarg, symarg) == 0)
      {
@@ -205,6 +195,3 @@ index 3c98787edb..17d35f4a8a 100644
        catch_command_errors (symbol_file_add_main_adapter, symarg,
                              !batch_flag);
      }
--- 
-2.14.3
-
This page took 0.038523 seconds and 4 git commands to generate.