]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: use objfile::pspace in objfile::unlink
authorSimon Marchi <simon.marchi@polymtl.ca>
Thu, 16 May 2024 18:04:24 +0000 (14:04 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 15 Jul 2024 18:34:12 +0000 (14:34 -0400)
commit93016848f9458ebaec5a92950f7c97e66bb5732e
tree11aa3bddc44ef2f3d29569b9e370bc68944b3480
parent574b77fccb8b7420c2ae4ab758d472c75c396a33
gdb: use objfile::pspace in objfile::unlink

I think it would make sense to use objfile::pspace instead of the
current program space here.  It reduces the risks of calling this
method with the wrong current program space set.

Change-Id: Id4f3644719f232640c83a1c7f4aa92eaa6af6c5c
Approved-By: Tom Tromey <tom@tromey.com>
Reviewed-By: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
gdb/objfiles.c
gdb/objfiles.h