* Update PR28561 kfail. * Remove PR31015 kfail. * Remove PR30547 kfail. - Patches added (backport from master): * gdb-symtab-add-producer_is_gas.patch * gdb-symtab-work-around-gas-pr28629.patch * gdb-tdep-fix-nr-array-elements-in-ppc64_aggregate_ca.patch * gdb-testsuite-fix-gdb.python-py-breakpoint.exp-with-.patch * gdb-tui-fix-segfault-in-tui_find_disassembly_address.patch * gdb-tui-fix-wmaybe-uninitialized-in-tui_find_disasse.patch * gdb-testsuite-add-wait_for_msg-arg-to-term-resize-fi.patch - Patches added (backport from gdb-patches): * gdb-fix-segfault-in-for_each_block-part-2.patch * gdb-tui-allow-command-window-of-1-or-2-lines.patch * gdb-tui-fix-resizing-of-terminal-to-1-or-2-lines.patch OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=370
66 lines
2.4 KiB
Diff
66 lines
2.4 KiB
Diff
From 0cb123a4157d215c80f3deb339a3ba10a188ba19 Mon Sep 17 00:00:00 2001
|
|
From: Tom de Vries <tdevries@suse.de>
|
|
Date: Mon, 2 Jan 2023 11:59:17 +0100
|
|
Subject: [PATCH 1/6] [gdb/testsuite] Fix gdb.python/py-breakpoint.exp with
|
|
libstdc++ debug info
|
|
|
|
On x86_64-linux, I run into:
|
|
...
|
|
(gdb) python hbp1 = gdb.Breakpoint("add", type=gdb.BP_HARDWARE_BREAKPOINT)^M
|
|
Hardware assisted breakpoint 2 at 0x40072e: add. (7 locations)^M
|
|
(gdb) FAIL: gdb.python/py-breakpoint.exp: test_hardware_breakpoints: \
|
|
Set hardware breakpoint
|
|
...
|
|
due to libstdc++ debug info:
|
|
...
|
|
$ gdb -q -batch outputs/gdb.python/py-breakpoint/py-breakpoint \
|
|
-ex start \
|
|
-ex "b add" \
|
|
-ex "info break"
|
|
Temporary breakpoint 1 at 0x40076a: file py-breakpoint.c, line 50.
|
|
|
|
Temporary breakpoint 1, main (argc=1, argv=$hex) at py-breakpoint.c:50
|
|
50 int foo = 5;
|
|
Breakpoint 2 at 0x40072e: add. (7 locations)
|
|
Num Type Disp Enb Address What
|
|
2 breakpoint keep y <MULTIPLE>
|
|
2.1 y 0x000000000040072e in add(int) at \
|
|
py-breakpoint.c:39
|
|
2.2 y 0x00007ffff7b131de in \
|
|
(anonymous namespace)::fast_float::bigint::add at \
|
|
../../../../../libstdc++-v3/src/c++17/fast_float/fast_float.h:1815
|
|
...
|
|
2.7 y 0x00007ffff7b137e4 in \
|
|
(anonymous namespace)::fast_float::bigint::add at \
|
|
../../../../../libstdc++-v3/src/c++17/fast_float/fast_float.h:1815
|
|
...
|
|
|
|
Fix this by using qualified=True.
|
|
|
|
Tested on x86_64-linux.
|
|
PR testsuite/29910
|
|
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=29910
|
|
---
|
|
gdb/testsuite/gdb.python/py-breakpoint.exp | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/gdb/testsuite/gdb.python/py-breakpoint.exp b/gdb/testsuite/gdb.python/py-breakpoint.exp
|
|
index 9ba6b837a41..23c6637cd3a 100644
|
|
--- a/gdb/testsuite/gdb.python/py-breakpoint.exp
|
|
+++ b/gdb/testsuite/gdb.python/py-breakpoint.exp
|
|
@@ -273,7 +273,8 @@ proc_with_prefix test_hardware_breakpoints { } {
|
|
|
|
delete_breakpoints
|
|
|
|
- gdb_test "python hbp1 = gdb.Breakpoint(\"add\", type=gdb.BP_HARDWARE_BREAKPOINT)" \
|
|
+ set bp_args {"add", type=gdb.BP_HARDWARE_BREAKPOINT, qualified=True}
|
|
+ gdb_test "python hbp1 = gdb.Breakpoint($bp_args)" \
|
|
".*Hardware assisted breakpoint ($decimal)+ at .*$srcfile, line ($decimal)+\." \
|
|
"Set hardware breakpoint"
|
|
gdb_test "python print (gdb.breakpoints()\[0\].type == gdb.BP_HARDWARE_BREAKPOINT)" \
|
|
|
|
base-commit: 1cd845ab3d405412aabf9b959aa527dd60143826
|
|
--
|
|
2.35.3
|
|
|