Rebase to FSF GDB 7.6.1.
This commit is contained in:
parent
983a3bf47d
commit
9823d71e51
|
@ -1,2 +1,2 @@
|
|||
/gdb-libstdc++-v3-python-r155978.tar.bz2
|
||||
/gdb-7.6.tar.bz2
|
||||
/gdb-7.6.1.tar.bz2
|
||||
|
|
|
@ -430,17 +430,17 @@ Index: gdb-7.5.91.20130407/gdb/elfread.c
|
|||
+#ifdef HAVE_LIBRPM
|
||||
+ if (missing_exec == MISSING_EXEC_NOT_TRIED)
|
||||
+ {
|
||||
+ char *exec_filename;
|
||||
+ char *execfilename;
|
||||
|
||||
- fprintf_unfiltered (gdb_stdlog,
|
||||
- _("Missing separate debuginfo for %s\n"), binary);
|
||||
- if (debug != NULL)
|
||||
- fprintf_unfiltered (gdb_stdlog, _("Try to install the hash file %s\n"),
|
||||
- debug);
|
||||
+ exec_filename = get_exec_file (0);
|
||||
+ if (exec_filename != NULL)
|
||||
+ execfilename = get_exec_file (0);
|
||||
+ if (execfilename != NULL)
|
||||
+ {
|
||||
+ if (missing_rpm_enlist (exec_filename) == 0)
|
||||
+ if (missing_rpm_enlist (execfilename) == 0)
|
||||
+ missing_exec = MISSING_EXEC_NOT_FOUND;
|
||||
+ else
|
||||
+ missing_exec = MISSING_EXEC_ENLISTED;
|
||||
|
|
|
@ -23,7 +23,7 @@ Index: gdb-7.6/gdb/corelow.c
|
|||
+{
|
||||
+ CORE_ADDR at_entry;
|
||||
+ struct elf_build_id *build_id;
|
||||
+ char *exec_filename, *debug_filename;
|
||||
+ char *execfilename, *debug_filename;
|
||||
+ char *build_id_filename;
|
||||
+ struct cleanup *back_to;
|
||||
+
|
||||
|
@ -44,14 +44,14 @@ Index: gdb-7.6/gdb/corelow.c
|
|||
+ file - such .eh_frame would not be found if SYMFILE_OBJFILE would refer
|
||||
+ directly to the separate debug info file. */
|
||||
+
|
||||
+ exec_filename = build_id_to_filename (build_id, &build_id_filename, 0);
|
||||
+ execfilename = build_id_to_filename (build_id, &build_id_filename, 0);
|
||||
+ make_cleanup (xfree, build_id_filename);
|
||||
+
|
||||
+ if (exec_filename != NULL)
|
||||
+ if (execfilename != NULL)
|
||||
+ {
|
||||
+ make_cleanup (xfree, exec_filename);
|
||||
+ exec_file_attach (exec_filename, from_tty);
|
||||
+ symbol_file_add_main (exec_filename, from_tty);
|
||||
+ make_cleanup (xfree, execfilename);
|
||||
+ exec_file_attach (execfilename, from_tty);
|
||||
+ symbol_file_add_main (execfilename, from_tty);
|
||||
+ if (symfile_objfile != NULL)
|
||||
+ symfile_objfile->flags |= OBJF_BUILD_ID_CORE_LOADED;
|
||||
+ }
|
||||
|
|
|
@ -1,209 +0,0 @@
|
|||
http://sourceware.org/ml/gdb-cvs/2013-06/msg00034.html
|
||||
|
||||
### src/gdb/ChangeLog 2013/06/05 20:43:53 1.15689
|
||||
### src/gdb/ChangeLog 2013/06/05 22:28:51 1.15690
|
||||
## -1,3 +1,14 @@
|
||||
+2013-06-05 Doug Evans <dje@google.com>
|
||||
+ Keith Seitz <keiths@redhat.com>
|
||||
+
|
||||
+ PR 15519
|
||||
+ * cp-namespace.c (find_symbol_in_baseclass): Call
|
||||
+ cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
|
||||
+ Check result of call to lookup_symbol_static.
|
||||
+ Call lookup_static_symbol_aux unconditionally.
|
||||
+ Call check_typedef on base types before accessing them.
|
||||
+ (cp_lookup_nested_symbol): Fix comment.
|
||||
+
|
||||
2013-06-05 Luis Machado <lgustavo@codesourcery.com>
|
||||
|
||||
* gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
|
||||
--- src/gdb/cp-namespace.c 2013/05/30 17:29:06 1.67
|
||||
+++ src/gdb/cp-namespace.c 2013/06/05 22:28:51 1.68
|
||||
@@ -720,36 +720,40 @@
|
||||
for (i = 0; i < TYPE_N_BASECLASSES (parent_type); ++i)
|
||||
{
|
||||
size_t len;
|
||||
+ struct type *base_type = TYPE_BASECLASS (parent_type, i);
|
||||
const char *base_name = TYPE_BASECLASS_NAME (parent_type, i);
|
||||
|
||||
if (base_name == NULL)
|
||||
continue;
|
||||
|
||||
/* Search this particular base class. */
|
||||
- sym = cp_lookup_symbol_namespace (base_name, name, block, VAR_DOMAIN);
|
||||
+ sym = cp_lookup_symbol_in_namespace (base_name, name, block,
|
||||
+ VAR_DOMAIN, 0);
|
||||
if (sym != NULL)
|
||||
break;
|
||||
|
||||
+ /* Now search all static file-level symbols. We have to do this for
|
||||
+ things like typedefs in the class. First search in this symtab,
|
||||
+ what we want is possibly there. */
|
||||
len = strlen (base_name) + 2 + strlen (name) + 1;
|
||||
concatenated_name = xrealloc (concatenated_name, len);
|
||||
xsnprintf (concatenated_name, len, "%s::%s", base_name, name);
|
||||
sym = lookup_symbol_static (concatenated_name, block, VAR_DOMAIN);
|
||||
+ if (sym != NULL)
|
||||
+ break;
|
||||
|
||||
- /* If there is currently no BLOCK, e.g., the inferior hasn't yet
|
||||
- been started, then try searching all STATIC_BLOCK symbols in
|
||||
- all objfiles. */
|
||||
- if (block == NULL)
|
||||
- {
|
||||
- sym = lookup_static_symbol_aux (concatenated_name, VAR_DOMAIN);
|
||||
- if (sym != NULL)
|
||||
- break;
|
||||
- }
|
||||
+ /* Nope. We now have to search all static blocks in all objfiles,
|
||||
+ even if block != NULL, because there's no guarantees as to which
|
||||
+ symtab the symbol we want is in. */
|
||||
+ sym = lookup_static_symbol_aux (concatenated_name, VAR_DOMAIN);
|
||||
+ if (sym != NULL)
|
||||
+ break;
|
||||
|
||||
/* If this class has base classes, search them next. */
|
||||
- if (TYPE_N_BASECLASSES (TYPE_BASECLASS (parent_type, i)) > 0)
|
||||
+ CHECK_TYPEDEF (base_type);
|
||||
+ if (TYPE_N_BASECLASSES (base_type) > 0)
|
||||
{
|
||||
- sym = find_symbol_in_baseclass (TYPE_BASECLASS (parent_type, i),
|
||||
- name, block);
|
||||
+ sym = find_symbol_in_baseclass (base_type, name, block);
|
||||
if (sym != NULL)
|
||||
break;
|
||||
}
|
||||
@@ -797,8 +801,8 @@
|
||||
if (sym != NULL)
|
||||
return sym;
|
||||
|
||||
- /* Now search all static file-level symbols. Not strictly
|
||||
- correct, but more useful than an error. We do not try to
|
||||
+ /* Now search all static file-level symbols. We have to do this
|
||||
+ for things like typedefs in the class. We do not try to
|
||||
guess any imported namespace as even the fully specified
|
||||
namespace search is already not C++ compliant and more
|
||||
assumptions could make it too magic. */
|
||||
### src/gdb/testsuite/ChangeLog 2013/06/05 20:38:37 1.3685
|
||||
### src/gdb/testsuite/ChangeLog 2013/06/05 22:28:51 1.3686
|
||||
## -1,3 +1,11 @@
|
||||
+2013-06-05 Doug Evans <dje@google.com>
|
||||
+ Keith Seitz <keiths@redhat.com>
|
||||
+
|
||||
+ * gdb.cp/derivation2.cc: New file.
|
||||
+ * gdb.cp/derivation.cc (main): Call foo2.
|
||||
+ * gdb.cp/derivation.exp: Add tests for typedefs in another
|
||||
+ file, and when there's an active block.
|
||||
+
|
||||
2013-06-05 Luis Machado <lgustavo@codesourcery.com>
|
||||
|
||||
* gdb.cp/virtfunc.exp (make_one_vtable_result): Handle extra output
|
||||
--- src/gdb/testsuite/gdb.cp/derivation2.cc
|
||||
+++ src/gdb/testsuite/gdb.cp/derivation2.cc 2013-06-10 12:35:14.881272247 +0000
|
||||
@@ -0,0 +1,49 @@
|
||||
+/* This testcase is part of GDB, the GNU debugger.
|
||||
+
|
||||
+ Copyright 2013 Free Software Foundation, Inc.
|
||||
+
|
||||
+ This program is free software; you can redistribute it and/or modify
|
||||
+ it under the terms of the GNU General Public License as published by
|
||||
+ the Free Software Foundation; either version 3 of the License, or
|
||||
+ (at your option) any later version.
|
||||
+
|
||||
+ This program is distributed in the hope that it will be useful,
|
||||
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
+ GNU General Public License for more details.
|
||||
+
|
||||
+ You should have received a copy of the GNU General Public License
|
||||
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
+ */
|
||||
+
|
||||
+/* A copy of some classes in derivation.cc so that we can test symbol lookup
|
||||
+ in other CUs. */
|
||||
+
|
||||
+class A2 {
|
||||
+public:
|
||||
+ typedef int value_type;
|
||||
+ value_type a;
|
||||
+
|
||||
+ A2()
|
||||
+ {
|
||||
+ a=1;
|
||||
+ }
|
||||
+};
|
||||
+
|
||||
+class D2 : public A2 {
|
||||
+public:
|
||||
+ value_type d;
|
||||
+
|
||||
+ D2()
|
||||
+ {
|
||||
+ d=7;
|
||||
+ }
|
||||
+};
|
||||
+
|
||||
+void
|
||||
+foo2 ()
|
||||
+{
|
||||
+ D2 d2_instance;
|
||||
+ d2_instance.a = 42;
|
||||
+ d2_instance.d = 43;
|
||||
+}
|
||||
--- src/gdb/testsuite/gdb.cp/derivation.cc 2013/01/01 06:33:27 1.5
|
||||
+++ src/gdb/testsuite/gdb.cp/derivation.cc 2013/06/05 22:28:51 1.6
|
||||
@@ -16,6 +16,8 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
+extern void foo2 (); /* from derivation2.cc */
|
||||
+
|
||||
namespace N {
|
||||
typedef double value_type;
|
||||
struct Base { typedef int value_type; };
|
||||
@@ -306,9 +308,7 @@
|
||||
N::Derived::value_type d = 1;
|
||||
N::value_type n = 3.0;
|
||||
dobj.doit ();
|
||||
+ foo2 ();
|
||||
return 0;
|
||||
|
||||
}
|
||||
-
|
||||
-
|
||||
-
|
||||
--- src/gdb/testsuite/gdb.cp/derivation.exp 2013/01/01 06:33:27 1.24
|
||||
+++ src/gdb/testsuite/gdb.cp/derivation.exp 2013/06/05 22:28:51 1.25
|
||||
@@ -32,14 +32,15 @@
|
||||
|
||||
load_lib "cp-support.exp"
|
||||
|
||||
-standard_testfile .cc
|
||||
+standard_testfile derivation.cc derivation2.cc
|
||||
|
||||
-if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug c++}]} {
|
||||
+if {[prepare_for_testing $testfile.exp $testfile \
|
||||
+ [list $srcfile $srcfile2] {debug c++}]} {
|
||||
return -1
|
||||
}
|
||||
|
||||
# Check inheritance of typedefs.
|
||||
-foreach klass {"A" "D" "E" "F"} {
|
||||
+foreach klass {"A" "D" "E" "F" "A2" "D2"} {
|
||||
gdb_test "ptype ${klass}::value_type" "type = int"
|
||||
gdb_test "whatis ${klass}::value_type" "type = int"
|
||||
gdb_test "p (${klass}::value_type) 0" " = 0"
|
||||
@@ -57,6 +58,13 @@
|
||||
continue
|
||||
}
|
||||
|
||||
+# Check inheritance of typedefs again, but this time with an active block.
|
||||
+foreach klass {"A" "D" "A2" "D2"} {
|
||||
+ gdb_test "ptype ${klass}::value_type" "type = int"
|
||||
+ gdb_test "whatis ${klass}::value_type" "type = int"
|
||||
+ gdb_test "p (${klass}::value_type) 0" " = 0"
|
||||
+}
|
||||
+
|
||||
gdb_test "up" ".*main.*" "up from marker1"
|
||||
|
||||
# Print class types and values.
|
|
@ -1,58 +0,0 @@
|
|||
http://sourceware.org/ml/gdb-cvs/2013-06/msg00044.html
|
||||
|
||||
### src/gdb/testsuite/ChangeLog 2013/06/06 19:00:13 1.3688
|
||||
### src/gdb/testsuite/ChangeLog 2013/06/06 19:02:26 1.3689
|
||||
## -1,3 +1,7 @@
|
||||
+2013-06-06 Doug Evans <dje@google.com>
|
||||
+
|
||||
+ * gdb.cp/derivation.exp: Make tests have unique names.
|
||||
+
|
||||
2013-06-06 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* gdb.base/dump.exp (capture_value): Don't put expression into
|
||||
--- src/gdb/testsuite/gdb.cp/derivation.exp 2013/06/05 22:28:51 1.25
|
||||
+++ src/gdb/testsuite/gdb.cp/derivation.exp 2013/06/06 19:02:27 1.26
|
||||
@@ -40,15 +40,17 @@
|
||||
}
|
||||
|
||||
# Check inheritance of typedefs.
|
||||
-foreach klass {"A" "D" "E" "F" "A2" "D2"} {
|
||||
- gdb_test "ptype ${klass}::value_type" "type = int"
|
||||
- gdb_test "whatis ${klass}::value_type" "type = int"
|
||||
- gdb_test "p (${klass}::value_type) 0" " = 0"
|
||||
-}
|
||||
-foreach klass {"Z" "ZZ"} {
|
||||
- gdb_test "ptype ${klass}::value_type" "type = float"
|
||||
- gdb_test "whatis ${klass}::value_type" "type = float"
|
||||
- gdb_test "p (${klass}::value_type) 0" " = 0"
|
||||
+with_test_prefix "before run" {
|
||||
+ foreach klass {"A" "D" "E" "F" "A2" "D2"} {
|
||||
+ gdb_test "ptype ${klass}::value_type" "type = int"
|
||||
+ gdb_test "whatis ${klass}::value_type" "type = int"
|
||||
+ gdb_test "p (${klass}::value_type) 0" " = 0"
|
||||
+ }
|
||||
+ foreach klass {"Z" "ZZ"} {
|
||||
+ gdb_test "ptype ${klass}::value_type" "type = float"
|
||||
+ gdb_test "whatis ${klass}::value_type" "type = float"
|
||||
+ gdb_test "p (${klass}::value_type) 0" " = 0"
|
||||
+ }
|
||||
}
|
||||
|
||||
# Set it up at a breakpoint so we can play with the variable values.
|
||||
@@ -59,10 +61,12 @@
|
||||
}
|
||||
|
||||
# Check inheritance of typedefs again, but this time with an active block.
|
||||
-foreach klass {"A" "D" "A2" "D2"} {
|
||||
- gdb_test "ptype ${klass}::value_type" "type = int"
|
||||
- gdb_test "whatis ${klass}::value_type" "type = int"
|
||||
- gdb_test "p (${klass}::value_type) 0" " = 0"
|
||||
+with_test_prefix "at marker1" {
|
||||
+ foreach klass {"A" "D" "A2" "D2"} {
|
||||
+ gdb_test "ptype ${klass}::value_type" "type = int"
|
||||
+ gdb_test "whatis ${klass}::value_type" "type = int"
|
||||
+ gdb_test "p (${klass}::value_type) 0" " = 0"
|
||||
+ }
|
||||
}
|
||||
|
||||
gdb_test "up" ".*main.*" "up from marker1"
|
File diff suppressed because it is too large
Load Diff
|
@ -1202,100 +1202,6 @@ http://sourceware.org/ml/gdb-cvs/2013-04/msg00070.html
|
|||
|
||||
|
||||
|
||||
http://sourceware.org/bugzilla/show_bug.cgi?id=15413
|
||||
http://sourceware.org/ml/gdb-cvs/2013-05/msg00063.html
|
||||
|
||||
### src/gdb/ChangeLog 2013/04/26 14:13:13 1.15260.2.50
|
||||
### src/gdb/ChangeLog 2013/05/07 17:04:56 1.15260.2.51
|
||||
## -1,3 +1,10 @@
|
||||
+2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
|
||||
+
|
||||
+ PR breakpoints/15413:
|
||||
+ * breakpoint.c (condition_completer): Simplify the code to
|
||||
+ disconsider multiple locations of breakpoints when completing the
|
||||
+ "condition" command.
|
||||
+
|
||||
2013-04-26 Joel Brobecker <brobecker@adacore.com>
|
||||
|
||||
* version.in: Set version to 7.6.0.20130426-cvs.
|
||||
--- src/gdb/breakpoint.c 2013/04/25 08:15:34 1.745.2.5
|
||||
+++ src/gdb/breakpoint.c 2013/05/07 17:04:57 1.745.2.6
|
||||
@@ -1015,27 +1015,14 @@
|
||||
len = strlen (text);
|
||||
|
||||
ALL_BREAKPOINTS (b)
|
||||
- {
|
||||
- int single = b->loc->next == NULL;
|
||||
- struct bp_location *loc;
|
||||
- int count = 1;
|
||||
-
|
||||
- for (loc = b->loc; loc; loc = loc->next)
|
||||
- {
|
||||
- char location[50];
|
||||
-
|
||||
- if (single)
|
||||
- xsnprintf (location, sizeof (location), "%d", b->number);
|
||||
- else
|
||||
- xsnprintf (location, sizeof (location), "%d.%d", b->number,
|
||||
- count);
|
||||
+ {
|
||||
+ char number[50];
|
||||
|
||||
- if (strncmp (location, text, len) == 0)
|
||||
- VEC_safe_push (char_ptr, result, xstrdup (location));
|
||||
+ xsnprintf (number, sizeof (number), "%d", b->number);
|
||||
|
||||
- ++count;
|
||||
- }
|
||||
- }
|
||||
+ if (strncmp (number, text, len) == 0)
|
||||
+ VEC_safe_push (char_ptr, result, xstrdup (number));
|
||||
+ }
|
||||
|
||||
return result;
|
||||
}
|
||||
### src/gdb/testsuite/ChangeLog 2013/05/03 16:26:32 1.3580.2.20
|
||||
### src/gdb/testsuite/ChangeLog 2013/05/07 17:04:57 1.3580.2.21
|
||||
## -1,3 +1,11 @@
|
||||
+2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
|
||||
+
|
||||
+ PR breakpoints/15413:
|
||||
+ * gdb.base/pending.exp: Add test for completion of the "condition"
|
||||
+ command for pending breakpoints.
|
||||
+ * gdb.linespec/linespec.ex: Add test for completion of the
|
||||
+ "condition" command when dealing with multiple locations.
|
||||
+
|
||||
2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
|
||||
|
||||
* status-stop.exp (test_tstart_tstart): Check for error
|
||||
--- src/gdb/testsuite/gdb.base/pending.exp 2013/01/01 06:33:26 1.27
|
||||
+++ src/gdb/testsuite/gdb.base/pending.exp 2013/05/07 17:04:57 1.27.2.1
|
||||
@@ -55,6 +55,9 @@
|
||||
}
|
||||
}
|
||||
|
||||
+# Complete the condition (PR 15413).
|
||||
+gdb_test "complete condition " "condition 1"
|
||||
+
|
||||
gdb_test "info break" \
|
||||
"Num Type\[ \]+Disp Enb Address\[ \]+What.*
|
||||
\[0-9\]+\[\t \]+breakpoint keep y.*PENDING.*pendfunc1.*" \
|
||||
--- src/gdb/testsuite/gdb.linespec/linespec.exp 2013/01/01 06:41:24 1.6
|
||||
+++ src/gdb/testsuite/gdb.linespec/linespec.exp 2013/05/07 17:04:57 1.6.2.1
|
||||
@@ -63,6 +63,10 @@
|
||||
"Breakpoint $decimal at $hex: dupname:label. \[(\]2 locations\[)\]" \
|
||||
"multi-location break using duplicate function name and label"
|
||||
|
||||
+# Testing if the "condition" command completes only the breakpoints,
|
||||
+# not the locations.
|
||||
+gdb_test "complete condition " "condition $decimal\r\ncondition $decimal\r\ncondition $decimal"
|
||||
+
|
||||
gdb_test_no_output "set breakpoint pending off" \
|
||||
"disable pending breakpoints for linespec tests"
|
||||
|
||||
|
||||
|
||||
|
||||
https://bugzilla.redhat.com/show_bug.cgi?id=967915
|
||||
http://sourceware.org/ml/gdb-cvs/2013-05/msg00146.html
|
||||
|
||||
|
|
14
gdb.spec
14
gdb.spec
|
@ -32,11 +32,11 @@ Name: %{?scl_prefix}gdb
|
|||
%global snapsrc 20130312
|
||||
# See timestamp of source gnulib installed into gdb/gnulib/ .
|
||||
%global snapgnulib 20121213
|
||||
Version: 7.6
|
||||
Version: 7.6.1
|
||||
|
||||
# The release always contains a leading reserved number, start it at 1.
|
||||
# `upstream' is not a part of `name' to stay fully rpm dependencies compatible for the testing.
|
||||
Release: 37%{?dist}
|
||||
Release: 38%{?dist}
|
||||
|
||||
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and BSD and Public Domain
|
||||
Group: Development/Debuggers
|
||||
|
@ -578,11 +578,6 @@ Patch834: gdb-vdso-gcore.patch
|
|||
#=drop
|
||||
Patch835: gdb-psymtab-expand.patch
|
||||
|
||||
# Fix C++ lookups performance regression (Doug Evans, BZ 972677).
|
||||
#=drop
|
||||
Patch838: gdb-cxx-performance-1of2.patch
|
||||
Patch839: gdb-cxx-performance-2of2.patch
|
||||
|
||||
# Fix crash on 'enable count' (Simon Marchi, BZ 993118).
|
||||
Patch843: gdb-enable-count-crash.patch
|
||||
|
||||
|
@ -909,8 +904,6 @@ find -name "*.info*"|xargs rm -f
|
|||
%patch832 -p1
|
||||
%patch834 -p1
|
||||
%patch835 -p1
|
||||
%patch838 -p1
|
||||
%patch839 -p1
|
||||
%patch843 -p1
|
||||
|
||||
%patch836 -p1
|
||||
|
@ -1440,6 +1433,9 @@ fi
|
|||
%endif # 0%{!?el5:1} || "%{_target_cpu}" == "noarch"
|
||||
|
||||
%changelog
|
||||
* Fri Aug 30 2013 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.6.1-38.fc19
|
||||
- Rebase to FSF GDB 7.6.1.
|
||||
|
||||
* Fri Aug 30 2013 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.6-37.fc19
|
||||
- Fix false warnings of new %%pre during future upgrades (BZ 999645).
|
||||
|
||||
|
|
Loading…
Reference in New Issue