aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib-svr4.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
commit13fc0c2f38ad82e07263ae624593a22deffaf157 (patch)
treead8629f46ea0e4748c44c5ba3747b90c51f53c7c /gdb/solib-svr4.c
parent7bd872fe055d9a878f3e8a40abf1ff619419da8f (diff)
downloadfsf-binutils-gdb-13fc0c2f38ad82e07263ae624593a22deffaf157.zip
fsf-binutils-gdb-13fc0c2f38ad82e07263ae624593a22deffaf157.tar.gz
fsf-binutils-gdb-13fc0c2f38ad82e07263ae624593a22deffaf157.tar.bz2
Fix xcalloc() calls so order of arguments is not reversed.
Diffstat (limited to 'gdb/solib-svr4.c')
-rw-r--r--gdb/solib-svr4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c
index 987e776..f46326f 100644
--- a/gdb/solib-svr4.c
+++ b/gdb/solib-svr4.c
@@ -1110,8 +1110,8 @@ svr4_relocate_main_executable (void)
displacement = pc - bfd_get_start_address (exec_bfd);
changed = 0;
- new_offsets = xcalloc (sizeof (struct section_offsets),
- symfile_objfile->num_sections);
+ new_offsets = xcalloc (symfile_objfile->num_sections,
+ sizeof (struct section_offsets));
old_chain = make_cleanup (xfree, new_offsets);
for (i = 0; i < symfile_objfile->num_sections; i++)