]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Move substitute_path_component
authorTom Tromey <tom@tromey.com>
Sat, 19 Apr 2025 18:40:18 +0000 (12:40 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 8 May 2025 17:13:28 +0000 (11:13 -0600)
commit440b7ed4a4bb8da7030244df8088b0b29a0211e6
tree83d405ac82ac58da867f2df6fd92285286fba9d1
parent88d0753018cfff7a74d59316caf42e83afb2a6bc
Move substitute_path_component

This moves substitute_path_component out of utils.c.  I considered
making a new file for this (still could if someone wants that), but
since the only caller is in auto-load.c, I moved it there instead.

I've also moved the tests into auto-load.c as well.  This way
substitute_path_component can be static.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/Makefile.in
gdb/auto-load.c
gdb/unittests/utils-selftests.c [deleted file]
gdb/utils.c
gdb/utils.h