This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
gdb and binutils branch master updated. 487ad57ccfe1434e21774117d20dfd9e23f12afa
- From: qiyao at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 29 Oct 2013 06:41:08 -0000
- Subject: gdb and binutils branch master updated. 487ad57ccfe1434e21774117d20dfd9e23f12afa
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".
The branch, master has been updated
via 487ad57ccfe1434e21774117d20dfd9e23f12afa (commit)
from 3c4797ba74e0b7db0db3e34b606ba9c1d0f2baf7 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=487ad57ccfe1434e21774117d20dfd9e23f12afa
commit 487ad57ccfe1434e21774117d20dfd9e23f12afa
Author: Yao Qi <yao@codesourcery.com>
Date: Thu Oct 24 20:42:02 2013 +0800
Simplify REGISTRY cleanup usages
In registry.c:registry_clear_data, the registered data is iterated and
invoke each 'free' function with the data passed:
for (registration = data_registry->registrations, i = 0;
i < fields->num_data;
registration = registration->next, i++)
if (fields->data[i] != NULL && registration->data->free != NULL)
adaptor (registration->data->free, container, fields->data[i]);
we can see that data is passed to function 'free' and data is not NULL.
In each usage, we don't have to get the data again through key and
do NULL pointer checking. This patch is to simplify them.
gdb:
2013-10-29 Yao Qi <yao@codesourcery.com>
* auto-load.c (auto_load_pspace_data_cleanup): Get data from
parameter 'arg' instead of from program_space_data.
* objfiles.c (objfiles_pspace_data_cleanup): Likewise.
* solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
* solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
* solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
* inflow.c (inflow_inferior_data_cleanup): Get data from
parameter 'arg' instead of inferior_data.
* registry.h: Add comments.
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 12 ++++++++++++
gdb/auto-load.c | 12 ++++--------
gdb/inflow.c | 12 ++++--------
gdb/objfiles.c | 10 +++-------
gdb/registry.h | 7 ++++---
gdb/solib-darwin.c | 5 +----
gdb/solib-dsbt.c | 5 +----
gdb/solib-svr4.c | 6 +-----
8 files changed, 30 insertions(+), 39 deletions(-)
hooks/post-receive
--
gdb and binutils