aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python/py-disasm.py
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-12-11 12:48:07 -0700
committerTom Tromey <tom@tromey.com>2022-12-12 21:38:01 -0700
commit785545988c222f603a7a190170b04d4b971d7959 (patch)
tree02f38d9402a5a99247598a134fdc670967feaa6d /gdb/testsuite/gdb.python/py-disasm.py
parentd0d41b77c0cda3b59bc8b82d3d1285db2203de56 (diff)
downloadbinutils-785545988c222f603a7a190170b04d4b971d7959.zip
binutils-785545988c222f603a7a190170b04d4b971d7959.tar.gz
binutils-785545988c222f603a7a190170b04d4b971d7959.tar.bz2
Fix crash in is_nocall_function
is_nocall_function anticipates only being called for a function or a method. However, PR gdb/29871 points out a situation where an unusual expression -- but one that parses to a valid, if extremely weird, function call -- breaks this assumption. This patch changes is_nocall_function to remove this assert and instead simply return 'false' in this case. Approved-By: Simon Marchi <simon.marchi@efficios.com> Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=29871
Diffstat (limited to 'gdb/testsuite/gdb.python/py-disasm.py')
0 files changed, 0 insertions, 0 deletions