aboutsummaryrefslogtreecommitdiff
path: root/gdb/progspace.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2020-10-29 15:04:33 -0600
committerTom Tromey <tom@tromey.com>2020-10-29 15:04:39 -0600
commit2a3f84af539b4dc5473c44b0a01c1bcdfc7a1300 (patch)
tree480cc0467b823b8acc2d398f44e1125bb0edc746 /gdb/progspace.h
parent004eecfdc7d9b47e8364719667c64edb22d12d44 (diff)
downloadfsf-binutils-gdb-2a3f84af539b4dc5473c44b0a01c1bcdfc7a1300.zip
fsf-binutils-gdb-2a3f84af539b4dc5473c44b0a01c1bcdfc7a1300.tar.gz
fsf-binutils-gdb-2a3f84af539b4dc5473c44b0a01c1bcdfc7a1300.tar.bz2
Change remove_target_sections to method on program_space
This changes remove_target_sections to be a method on program_space. This makes sense because this function manipulates data that is attached to the program space. gdb/ChangeLog 2020-10-29 Tom Tromey <tom@tromey.com> * progspace.h (struct program_space) <remove_target_sections>: Declare. * exec.c (program_space::remove_target_sections): Now a method. * exec.h (remove_target_sections): Don't declare.
Diffstat (limited to 'gdb/progspace.h')
-rw-r--r--gdb/progspace.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/progspace.h b/gdb/progspace.h
index fa5247f..f4e1107 100644
--- a/gdb/progspace.h
+++ b/gdb/progspace.h
@@ -297,6 +297,9 @@ struct program_space
space. */
bool empty ();
+ /* Remove all target sections owned by OWNER. */
+ void remove_target_sections (void *owner);
+
/* Unique ID number. */
int num = 0;