summaryrefslogtreecommitdiff
path: root/gdb/solib-aix5.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2002-01-23 06:24:20 +0000
committerKevin Buettner <kevinb@redhat.com>2002-01-23 06:24:20 +0000
commitc26799df967e3c98c31d595ed81bc343f19fd549 (patch)
treee8443e1ae4fb4aef523131fa7975aacd13c6c0f0 /gdb/solib-aix5.c
parent07732e6b38008295374780ad44a0d15825ce44a1 (diff)
downloadgdb-c26799df967e3c98c31d595ed81bc343f19fd549.tar.gz
Fix xcalloc() calls so order of arguments is not reversed.
Diffstat (limited to 'gdb/solib-aix5.c')
-rw-r--r--gdb/solib-aix5.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/solib-aix5.c b/gdb/solib-aix5.c
index 54cb16f388e..1a8c9dfeea9 100644
--- a/gdb/solib-aix5.c
+++ b/gdb/solib-aix5.c
@@ -262,9 +262,9 @@ build_so_list_from_mapfile (int pid, long match_mask, long match_val)
if (sop == NULL)
{
- sop = xcalloc (sizeof (struct so_list), 1);
+ sop = xcalloc (1, sizeof (struct so_list));
make_cleanup (xfree, sop);
- sop->lm_info = xcalloc (sizeof (struct lm_info), 1);
+ sop->lm_info = xcalloc (1, sizeof (struct lm_info));
make_cleanup (xfree, sop->lm_info);
sop->lm_info->mapname = xstrdup (mapname);
make_cleanup (xfree, sop->lm_info->mapname);
@@ -714,8 +714,8 @@ aix5_relocate_main_executable (void)
/* Allocate the data structure which'll contain the new offsets to
relocate by. Initialize it so it contains the current offsets. */
- new_offsets = xcalloc (sizeof (struct section_offsets),
- symfile_objfile->num_sections);
+ new_offsets = xcalloc (symfile_objfile->num_sections,
+ sizeof (struct section_offsets));
make_cleanup (xfree, new_offsets);
for (i = 0; i < symfile_objfile->num_sections; i++)
new_offsets->offsets[i] = ANOFFSET (symfile_objfile->section_offsets, i);