aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-gdb-readline.c
diff options
context:
space:
mode:
authorBruno Larsen <blarsen@redhat.com>2022-10-05 14:22:56 +0200
committerBruno Larsen <blarsen@redhat.com>2022-11-10 14:51:49 +0100
commit041de3d73aa121f2ff0c077213598963bfb34b79 (patch)
tree5d6224170af2d32f340a3c28f06f30cff3bd39d5 /gdb/python/py-gdb-readline.c
parent2acccd0a59af7a04e341d31f68b370486d5fc474 (diff)
downloadbinutils-041de3d73aa121f2ff0c077213598963bfb34b79.zip
binutils-041de3d73aa121f2ff0c077213598963bfb34b79.tar.gz
binutils-041de3d73aa121f2ff0c077213598963bfb34b79.tar.bz2
gdb/c++: Improve error messages in overload resolution
When resolving overloaded functions, GDB relies on knowing relationships between types, i.e. if a type inherits from another. However, some compilers may not add complete information for given types as a way to reduce unnecessary debug information. In these cases, GDB would just say that it couldn't resolve the method or function, with no extra information. The problem is that sometimes the user may not know that the type information is incomplete, and may just assume that there is a bug in GDB. To improve the user experience, we attempt to detect if the overload match failed because of an incomplete type, and warn the user of this. This commit also adds a testcase confirming that the message is only triggered in the correct scenario. This test was not developed as an expansion of gdb.cp/overload.cc because it needed the dwarf assembler, and porting all of overload.cc seemed unnecessary. Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/python/py-gdb-readline.c')
0 files changed, 0 insertions, 0 deletions