diff options
author | Tom Tromey <tom@tromey.com> | 2017-09-27 20:43:27 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-09-29 20:46:45 -0600 |
commit | 9754d8c4c48209eaefb044d03dc25f14dca8a263 (patch) | |
tree | a1e637af474f02280a28433bd252c9e707c8d027 /gdb | |
parent | 99ef965c6e812cc73691873c965cff0d2d5b89a0 (diff) | |
download | gdb-9754d8c4c48209eaefb044d03dc25f14dca8a263.zip gdb-9754d8c4c48209eaefb044d03dc25f14dca8a263.tar.gz gdb-9754d8c4c48209eaefb044d03dc25f14dca8a263.tar.bz2 |
Remove some unused declarations
This removes a couple of unused cleanup-related declarations.
gdb/ChangeLog
2017-09-29 Tom Tromey <tom@tromey.com>
* main.c (captured_main_1): Remove unused declaration.
* spu-multiarch.c (parse_spufs_run): Remove unused declaration.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/main.c | 2 | ||||
-rw-r--r-- | gdb/spu-multiarch.c | 1 |
3 files changed, 5 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6227a8e..4fa2d49 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2017-09-29 Tom Tromey <tom@tromey.com> + * main.c (captured_main_1): Remove unused declaration. + * spu-multiarch.c (parse_spufs_run): Remove unused declaration. + +2017-09-29 Tom Tromey <tom@tromey.com> + * symtab.c (search_symbols): Remove unused outer cleanup. (make_source_files_completion_list): Remove unused declaration. @@ -498,8 +498,6 @@ captured_main_1 (struct captured_main_args *context) int save_auto_load; struct objfile *objfile; - struct cleanup *chain; - #ifdef HAVE_SBRK /* Set this before constructing scoped_command_stats. */ lim_at_start = (char *) sbrk (0); diff --git a/gdb/spu-multiarch.c b/gdb/spu-multiarch.c index ebca082..a935a72 100644 --- a/gdb/spu-multiarch.c +++ b/gdb/spu-multiarch.c @@ -56,7 +56,6 @@ static int parse_spufs_run (ptid_t ptid, int *fd, CORE_ADDR *addr) { enum bfd_endian byte_order = gdbarch_byte_order (target_gdbarch ()); - struct cleanup *old_chain; struct gdbarch_tdep *tdep; struct regcache *regcache; gdb_byte buf[4]; |