diff options
author | Tom Tromey <tom@tromey.com> | 2020-11-12 08:47:09 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-11-12 08:47:09 -0700 |
commit | 1f2624a35413c31c317e5da8ce7401b59ecfbfa5 (patch) | |
tree | de75c4db6e08432ce1bf00fae7a2855593e5dab5 /gdb/testsuite/gdb.rust | |
parent | 9e74f0aef6a73dba185161558cebace2ed9a54e5 (diff) | |
download | gdb-1f2624a35413c31c317e5da8ce7401b59ecfbfa5.zip gdb-1f2624a35413c31c317e5da8ce7401b59ecfbfa5.tar.gz gdb-1f2624a35413c31c317e5da8ce7401b59ecfbfa5.tar.bz2 |
Fix Rust regression with -readnow
PR rust/26799 points out that a certain test case fails with -readnow.
This happens because, with -readnow, there are no partial symtabs; but
find_symbol_at_address requires these.
This patch fixes this problem by searching all of an objfile's
compunit symtabs if it does not have partial symbols.
Note that this test will still fail with .gdb_index. I don't think
that is readily fixable.
gdb/ChangeLog
2020-11-12 Tom Tromey <tom@tromey.com>
PR rust/26799:
* symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
exist.
gdb/testsuite/ChangeLog
2020-11-12 Tom Tromey <tom@tromey.com>
PR rust/26799:
* gdb.rust/traits.exp: Remove kfails.
Diffstat (limited to 'gdb/testsuite/gdb.rust')
-rw-r--r-- | gdb/testsuite/gdb.rust/traits.exp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gdb/testsuite/gdb.rust/traits.exp b/gdb/testsuite/gdb.rust/traits.exp index d237b92..73a75b0 100644 --- a/gdb/testsuite/gdb.rust/traits.exp +++ b/gdb/testsuite/gdb.rust/traits.exp @@ -45,11 +45,5 @@ if {![runto ${srcfile}:$line]} { set readnow_p [readnow $binfile] -if { $readnow_p } { - setup_kfail "gdb/26799" *-*-* -} gdb_test "print *td" " = 23.5" -if { $readnow_p } { - setup_kfail "gdb/26799" *-*-* -} gdb_test "print *tu" " = 23" |