1991-12-20 19:09:49 +00:00
|
|
|
/* Definitions for running gdb on a host machine running any flavor of SVR4.
|
1992-02-21 01:40:57 +00:00
|
|
|
Copyright 1991, 1992 Free Software Foundation, Inc.
|
|
|
|
Written by Fred Fish at Cygnus Support (fnf@cygnus.com).
|
1991-12-20 19:09:49 +00:00
|
|
|
|
|
|
|
This file is part of GDB.
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|
|
|
|
1991-12-28 06:27:24 +00:00
|
|
|
/* Use SVR4 style shared library support */
|
|
|
|
|
|
|
|
#define SVR4_SHARED_LIBS
|
|
|
|
|
1991-12-20 19:09:49 +00:00
|
|
|
/* SVR4 has termio facilities. */
|
|
|
|
|
|
|
|
#define HAVE_TERMIO
|
|
|
|
|
1992-02-21 01:40:57 +00:00
|
|
|
/* SVR4 has mmap facilities */
|
|
|
|
|
|
|
|
#define HAVE_MMAP
|
|
|
|
|
1991-12-20 19:09:49 +00:00
|
|
|
/* TIOCGETC and TIOCGLTC are picked up somewhere, but struct tchars
|
|
|
|
and struct ltchars are not. This makes problems for inflow.c.
|
|
|
|
It is unknown at this time if this is a generic SVR4 problem or
|
|
|
|
one just limited to the initial SVR4 port host machine. */
|
|
|
|
|
|
|
|
#define TIOCGETC_BROKEN
|
|
|
|
#define TIOCGLTC_BROKEN
|
|
|
|
|
|
|
|
/* SVR4 is a derivative of System V Release 3 (USG) */
|
|
|
|
|
|
|
|
#define USG
|
|
|
|
|
|
|
|
/* Get rid of any system-imposed stack limit if possible. */
|
|
|
|
|
|
|
|
/* #define SET_STACK_LIMIT_HUGE */
|
|
|
|
|
1992-02-13 15:47:18 +00:00
|
|
|
/* Use setpgid(0,0) to run inferior in a separate process group */
|
|
|
|
|
|
|
|
#define NEED_POSIX_SETPGID
|
1992-04-01 19:46:14 +00:00
|
|
|
|
* dbxread.c: Add symbol_size to struct dbx_symfile_info.
Add symbol_size and file offsets to struct symloc.
Add static symbol_table_offset, string_table_offset,
file_string_table_offset, next_file_string_table_offset,
last_function_name.
(add_old_header_file): Convert error() to complain()t.
(dbx_symfile_read): Get symbol size via the objfile.
Also get symbol_table_offset.
(dbx_symfile_init): Record symbol size and count via the objfile.
(dbx_next_symbol_text): Always add file_string_table_offset when
accessing string table.
(read_dbx_symtab): Initialize file_string_table_offset to 0.
(SET_NAMESTRING): Use the offset.
(end_psymtab): Large kludge to determine addresses where source
files start and end (for the psymtab header).
(psymtab_to_symtab_1): Set file_string_table_offset before reading.
Get this, symbol size, and symbol offset, from psymtab.
(read_ofile_symtab): Don't back up one symbol for Solaris2.
Patch up last_source_start_addr if zero in N_SO.
(process_one_symbol): Add variable function_start_offset.
( "", N_FUN, N_LBRAC, N_RBRAC, N_SLINE): Add ifdef for
BLOCK_ADDRESS_FUNCTION_RELATIVE.
( "", N_OBJ, N_OPT): Ignore.
(elfstab_build_psymtabs): New function to read stabs out of
an ELF file.
* Makefile.in: Accept $(BISON) even though we really want $(YACC).
(gdb): use GLOBAL_CFLAGS when linking, too.
* partial-stab.h (N_UNDF): Deal with Sol2 relative stringtab offsets.
(N_OBJ, N_OPT): Ignore.
('f', 'F'): Save last function name.
* symfile.h: Prototype elfstab_build_psymtabs.
* symfile.c: Add almost-OK debug versions of add_psymbol_*to_list.
* xm-sysv4.h: Add <limits.h> to avoid conflicting defns in defs.h.
1992-06-13 06:39:27 +00:00
|
|
|
/* We have to include these files now, so that GDB will not make
|
|
|
|
competing definitions in defs.h. */
|
|
|
|
#include <limits.h>
|