aboutsummaryrefslogtreecommitdiff
path: root/gdb/symmetry-dep.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/symmetry-dep.c')
-rw-r--r--gdb/symmetry-dep.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/symmetry-dep.c b/gdb/symmetry-dep.c
index 92fd89a..78b4449 100644
--- a/gdb/symmetry-dep.c
+++ b/gdb/symmetry-dep.c
@@ -19,13 +19,13 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* many 387-specific items of use taken from i386-dep.c */
+#include <stdio.h>
#include "defs.h"
#include "param.h"
#include "frame.h"
#include "inferior.h"
#include "symtab.h"
-#include <stdio.h>
#include <signal.h>
#include <sys/param.h>
#include <sys/user.h>
@@ -570,10 +570,12 @@ exec_file_command (filename, from_tty)
if (read_aout_hdr (execchan, &exec_aouthdr, aout_hdrsize) < 0)
error ("\"%s\": can't read optional aouthdr", execfile);
- if (read_section_hdr (execchan, _TEXT, &text_hdr, num_sections) < 0)
+ if (read_section_hdr (execchan, _TEXT, &text_hdr, num_sections,
+ aout_hdrsize) < 0)
error ("\"%s\": can't read text section header", execfile);
- if (read_section_hdr (execchan, _DATA, &data_hdr, num_sections) < 0)
+ if (read_section_hdr (execchan, _DATA, &data_hdr, num_sections,
+ aout_hdrsize) < 0)
error ("\"%s\": can't read data section header", execfile);
text_start = exec_aouthdr.text_start;