]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: allow use of ~ in 'save gdb-index' command
authorAndrew Burgess <aburgess@redhat.com>
Mon, 27 Nov 2023 13:33:17 +0000 (13:33 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Tue, 28 Nov 2023 10:23:18 +0000 (10:23 +0000)
commit4793f551a5aa68522fd5fbbb7e8f621148f410cd
tree5ec711d4a93624bd17aec9f6ef30fb8492a43169
parentec7917750c7b1c92d764a5678a6831a3de072380
gdb: allow use of ~ in 'save gdb-index' command

Add a call to gdb_tilde_expand in the save_gdb_index_command function,
this means that we can now do:

  (gdb) save gdb-index ~/blah/

Previous this wouldn't work.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/dwarf2/index-write.c
gdb/testsuite/gdb.dwarf2/gdb-index-tilde.exp [new file with mode: 0644]