aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi/mi-getopt.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2022-01-31 14:36:31 +0000
committerNick Clifton <nickc@redhat.com>2022-01-31 14:36:31 +0000
commitf10f8617a302f45dae721eae0cd659911f03d864 (patch)
treecd6444637702f0c5d88e39fb8163fa3b07ad879e /gdb/mi/mi-getopt.c
parent9ff8aa7d418bc508dbd429576b93e30ed9dc5891 (diff)
downloadgdb-f10f8617a302f45dae721eae0cd659911f03d864.zip
gdb-f10f8617a302f45dae721eae0cd659911f03d864.tar.gz
gdb-f10f8617a302f45dae721eae0cd659911f03d864.tar.bz2
Import patch from mainline GCC to fix an infinite recusion in the Rust demangler.
PR 98886 PR 99935 * rust-demangle.c (struct rust_demangler): Add a recursion counter. (demangle_path): Increment/decrement the recursion counter upon entry and exit. Fail if the counter exceeds a fixed limit. (demangle_type): Likewise. (rust_demangle_callback): Initialise the recursion counter, disabling if requested by the option flags.
Diffstat (limited to 'gdb/mi/mi-getopt.c')
0 files changed, 0 insertions, 0 deletions