aboutsummaryrefslogtreecommitdiff
path: root/gdb/exec.h
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2014-06-03 13:48:12 -0700
committerDoug Evans <dje@google.com>2014-06-03 13:48:12 -0700
commita5b1fd27801326156c2263b867297e80bcf9fe3d (patch)
tree32642c2c3b4b920d559cd25073a8c6fa7df9f204 /gdb/exec.h
parent33ac0ca144af42a986a21fcf9c978b4d75b8174c (diff)
downloadgdb-a5b1fd27801326156c2263b867297e80bcf9fe3d.zip
gdb-a5b1fd27801326156c2263b867297e80bcf9fe3d.tar.gz
gdb-a5b1fd27801326156c2263b867297e80bcf9fe3d.tar.bz2
resize_section_table cleanup
* exec.c (exec_close_1): Call clear_section_table instead of resize_section_table. (clear_section_table): New function. (resize_section_table): Make static. Rename arg num_added to adjustment. * exec.h (clear_section_table): Declare. (resize_section_table): Delete. * progspace.c (release_program_space): Call clear_section_table instead of resize_section_table.
Diffstat (limited to 'gdb/exec.h')
-rw-r--r--gdb/exec.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/exec.h b/gdb/exec.h
index 44f1367..304310f 100644
--- a/gdb/exec.h
+++ b/gdb/exec.h
@@ -41,10 +41,9 @@ extern struct target_ops exec_ops;
extern int build_section_table (struct bfd *, struct target_section **,
struct target_section **);
-/* Resize the section table held by TABLE, by NUM_ADDED. Returns the
- old size. */
+/* Remove all entries from TABLE. */
-extern int resize_section_table (struct target_section_table *, int);
+extern void clear_section_table (struct target_section_table *table);
/* Read from mappable read-only sections of BFD executable files.
Return TARGET_XFER_OK, if read is successful. Return