diff options
Diffstat (limited to 'gdb/umax-dep.c')
-rw-r--r-- | gdb/umax-dep.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/umax-dep.c b/gdb/umax-dep.c index 0f055f7..717ea45 100644 --- a/gdb/umax-dep.c +++ b/gdb/umax-dep.c @@ -17,12 +17,12 @@ You should have received a copy of the GNU General Public License along with GDB; see the file COPYING. If not, write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <stdio.h> #include "defs.h" #include "param.h" #include "frame.h" #include "inferior.h" -#include <stdio.h> #include <sys/param.h> #include <sys/dir.h> #include <signal.h> @@ -534,10 +534,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; |