Add get_standard_config_dir function
authorTom Tromey <tom@tromey.com>
Sun, 5 Jul 2020 19:02:40 +0000 (13:02 -0600)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 2 Nov 2020 17:42:10 +0000 (17:42 +0000)
commit8768c3e3629657d9728487c680b173868baeee7f
tree9a8e29f261a25438a33f59a5950d499b6ecfb718
parent5b3d3560e9e867f652ff622863cbac267455f726
Add get_standard_config_dir function

This adds a new get_standard_config_dir, which returns the name of the
configuration directory.  In XDG, this is ~/.config/gdb/.  Future
patches will make use of this.

2020-07-05  Tom Tromey  <tom@tromey.com>

* pathstuff.h (get_standard_config_dir): Declare.
* pathstuff.cc (get_standard_config_dir): New function.
gdbsupport/ChangeLog
gdbsupport/pathstuff.cc
gdbsupport/pathstuff.h