diff options
author | Tom Tromey <tom@tromey.com> | 2022-12-11 12:48:07 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-12-12 21:38:01 -0700 |
commit | 785545988c222f603a7a190170b04d4b971d7959 (patch) | |
tree | 02f38d9402a5a99247598a134fdc670967feaa6d /gdb/testsuite/gdb.python/py-disasm.py | |
parent | d0d41b77c0cda3b59bc8b82d3d1285db2203de56 (diff) | |
download | binutils-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