]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Pass current directory to gdb_abspath
authorTom Tromey <tom@tromey.com>
Sun, 29 Sep 2024 18:22:07 +0000 (12:22 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 19 Oct 2024 19:18:00 +0000 (13:18 -0600)
commit03ace3807c891427019686f4137ad0257d63e138
treeb8a21f4e659ab366269180f12e5fd84da9c91662
parente686338105177046975bcff8fe6199536e80caf9
Pass current directory to gdb_abspath

Currently, gdb_abspath uses the current_directory global.  However,
background threads need to capture this global to avoid races with the
user using "cd".

This patch changes this function to accept a cwd parameter, in
prepration for this.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31716
gdbsupport/pathstuff.cc
gdbsupport/pathstuff.h