aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.c
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2024-06-24 15:53:34 +0100
committerAndrew Burgess <aburgess@redhat.com>2024-09-07 20:28:58 +0100
commit67b8e30af907d8c19f50343268d7c6db85347ee2 (patch)
tree5aa12e4efaa74cec6156ff4b6f9ebfe8b2483521 /gdb/ada-lang.c
parent8f87fcb1daf1af1dd2d332f7303b02e391fa6b6c (diff)
downloadbinutils-67b8e30af907d8c19f50343268d7c6db85347ee2.zip
binutils-67b8e30af907d8c19f50343268d7c6db85347ee2.tar.gz
binutils-67b8e30af907d8c19f50343268d7c6db85347ee2.tar.bz2
gdb: implement readline rl_directory_rewrite_hook callback
Implement the readline rl_directory_rewrite_hook callback function, this is used when readline needs to offer completions from within a directory. The important thing is that this function should remove any escaping, this allows GDB to correctly offer completions in situations like this: (gdb) file /tmp/directory\ with\ spaces/<TAB><TAB> Note the escaping in 'directory\ with\ spaces'. Without the rl_directory_rewrite_hook callback readline will try to open a directory literally called '/tmp/directory\ with\ spaces' which obviously doesn't exist. There are tests added to cover this new functionality.
Diffstat (limited to 'gdb/ada-lang.c')
0 files changed, 0 insertions, 0 deletions