aboutsummaryrefslogtreecommitdiff
path: root/gdb/infcmd.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-06-05 11:28:10 -0600
committerTom Tromey <tom@tromey.com>2022-06-18 10:18:35 -0600
commit8e2da165187907a570a33eee7e56ce16fc597a40 (patch)
treebbc9dc6ea5ca71ab87c5f8de4381aae3c623ee01 /gdb/infcmd.c
parentfba1ac87dcb76e61f270d236f1e7c8aaec80f9c4 (diff)
downloadgdb-8e2da165187907a570a33eee7e56ce16fc597a40.zip
gdb-8e2da165187907a570a33eee7e56ce16fc597a40.tar.gz
gdb-8e2da165187907a570a33eee7e56ce16fc597a40.tar.bz2
Fix assertion failure in copy_type
PR exp/20630 points out a simple way to cause an assertion failure in copy_type -- but this was found in the wild a few times as well. copy_type only works for objfile-owned types, but there isn't a deep reason for this. This patch fixes the bug by updating copy_type to work for any sort of type. Better would perhaps be to finally implement type GC, but I still haven't attempted this. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=20630
Diffstat (limited to 'gdb/infcmd.c')
0 files changed, 0 insertions, 0 deletions