diff options
author | Paul Pluzhnikov <ppluzhnikov@google.com> | 2009-10-23 14:36:30 +0000 |
---|---|---|
committer | Paul Pluzhnikov <ppluzhnikov@google.com> | 2009-10-23 14:36:30 +0000 |
commit | 6a0fa04300e300a1df9cc137f868a91be3854225 (patch) | |
tree | 76c7bb9c5429fa1208920660389960e80d8bacb7 /gdb | |
parent | 1de1372dc937099c5fdf00d9b85f08300c1bca3d (diff) | |
download | gdb-6a0fa04300e300a1df9cc137f868a91be3854225.zip gdb-6a0fa04300e300a1df9cc137f868a91be3854225.tar.gz gdb-6a0fa04300e300a1df9cc137f868a91be3854225.tar.bz2 |
2009-10-23 Paul Pluzhnikov <ppluzhnikov@google.com>
* objfiles.c (allocate_objfile): Use xzalloc.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 8 | ||||
-rw-r--r-- | gdb/objfiles.c | 3 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0911bb7..5ef3f96 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2009-10-23 Paul Pluzhnikov <ppluzhnikov@google.com> + + * objfiles.c (allocate_objfile): Use xzalloc. + 2009-10-23 Hui Zhu <teawater@gmail.com> * record.c (record_restore): Use phex_nz. @@ -13,6 +17,10 @@ 2009-10-22 Paul Pluzhnikov <ppluzhnikov@google.com> + * record.c (record_restore, cmd_record_save): Fix warnings. + +2009-10-22 Paul Pluzhnikov <ppluzhnikov@google.com> + * disasm.h (DISASSEMBLY_OMIT_FNAME) New define. (gdb_disassembly): Correct parameter name. * disasm.c (dump_insns): Adjust. diff --git a/gdb/objfiles.c b/gdb/objfiles.c index 6082155..760aced 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -196,8 +196,7 @@ allocate_objfile (bfd *abfd, int flags) { struct objfile *objfile; - objfile = (struct objfile *) xmalloc (sizeof (struct objfile)); - memset (objfile, 0, sizeof (struct objfile)); + objfile = (struct objfile *) xzalloc (sizeof (struct objfile)); objfile->psymbol_cache = bcache_xmalloc (); objfile->macro_cache = bcache_xmalloc (); /* We could use obstack_specify_allocation here instead, but |