Commit Graph

3532 Commits

Author SHA1 Message Date
Wilfried Moser 947ca02583 * eval.c (evaluate_subexp_standard): In case of OP_ARRAY: make a
better check of array boundaries.
1996-09-05 10:32:09 +00:00
Stu Grossman 5819f35dcf * configure: Update aclocal.m4 and re-run autoconf to get correct
defs for BFD stuff.
	* remote-wiggler.c (wiggler_error):  Error codes are hex.  Also,
	fix default message generation.
1996-09-05 08:33:28 +00:00
Stu Grossman 0ca4776ee4 Oops! 1996-09-05 01:18:49 +00:00
Ian Lance Taylor 10d183a0f0 * terminal.h: Don't use #elif. 1996-09-04 17:09:43 +00:00
Wilfried Moser b5865bb263 * ch-exp.c (parse_tuple_element): Allow (*): for array tuples
if we have a type.

        * eval.c (evaluate_subexp_standard): In case of OP_ARRAY:
        check number of args against bounds of array to avoid
        memory corruption.

        * value.h (COERCE_REF): Do a CHECK_TYPEDEF in case we get
        a TYPE_CODE_TYPEDEF.
1996-09-04 14:29:37 +00:00
Michael Meissner ba5f27cd57 gdbserver/configure does not exist 1996-08-29 21:43:31 +00:00
Michael Meissner 26c543ea67 Recognize i686 as pentium pro 1996-08-29 21:42:11 +00:00
Ian Lance Taylor 0cf433d937 * configure.in: If CY_AC_PATH_TCLCONFIG can't find TCL, don't run
CY_AC_LOAD_TCLCONFIG.
	* configure: Rebuild.
1996-08-28 17:13:00 +00:00
Michael Meissner 855f9c5870 Regenerate configure 1996-08-27 14:18:23 +00:00
Martin Hunt 7b3fa778e2 Mon Aug 26 18:36:54 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
* config/d10v/d10v.mt: New file.
	* config/d10v/tm-d10v.h: New file.
	* configure.in: New target D10V.
	* d10v-tdep.c: New file.
1996-08-27 01:51:55 +00:00
Fred Fish 94b4f75666 * rs6000-tdep.c: Fix typo in comment.
* valops.c (call_function_by_hand): Set using_gcc to 2
	for code compiled without -g, per comment in code.
	* config/a29k/tm-a29k.h (STACK_ALIGN): Add comment.
	* config/sparc/tm-sparc.h (STACK_ALIGN): Add comment.
	* config/sparc/tm-sp64.h (STACK_ALIGN): Add comment.
	* config/pyr/tm-pyr.h (STACK_ALIGN): Add comment.
	* config/m88k/tm-m88k.h (STACK_ALIGN): Add comment.
	* config/pa/tm-hppa.h (PUSH_ARGUMENTS): Enclose args in ()'s.
	(STACK_ALIGN): Add comment, move to be with other associated
 	macros, and document.
	* config/mips/tm-mips.h (PUSH_ARGUMENTS): Enclose args in ()'s.
	(STACK_ALIGN): Remove completely, handled by PUSH_ARGUMENTS.
	* config/alpha/tm-alpha.h (PUSH_ARGUMENTS): Enclose args in ()'s.
	* config/rs6000/tm-rs6000.h (STACK_ALIGN): Remove completely,
	handled by PUSH_ARGUMENTS.
	(PUSH_ARGUMENTS): Enclose args in ()'s.
1996-08-25 07:17:22 +00:00
Fred Fish 26b3dc44a5 Fixup my email addresses to consistently be fnf@cygnus.com 1996-08-23 08:02:23 +00:00
Fred Fish fe58c81f5c * gdbtk.c (gdbtk_init): Check for a DISPLAY env variable and
gracefully degrade to using command line interface if none is
	found.
1996-08-23 07:57:10 +00:00
Fred Fish d538f9cfbc * valprint.c (print_longest): Test for CC_HAS_LONG_LONG as well as
PRINTF_HAS_LONG_LONG.
	* expprint.c (dump_expression): Ditto.
	* configure.in: Fix check for long long support in compiler to
	use a function body, not a nested function.
	* configure: Rebuild with autoconf.
1996-08-23 00:47:10 +00:00
Ian Lance Taylor fef1696ffc * aclocal.m4: Include ../bfd/aclocal.m4.
* configure.in: Add stdlib.h to AC_CHECK_HEADERS.  Call
	BFD_NEED_DECLARATION on malloc, realloc, and free.
	* acconfig.h: Add NEED_DECLARATION_MALLOC,
	NEED_DECLARATION_REALLOC, and NEED_DECLARATION_FREE.
	* configure, config.in: Rebuild.
	* defs.h: Include <stddef.h> and <stdlib.h> based on HAVE_*_H
	rather than __STDC__.  Only declare malloc, realloc, and free if
	NEED_DECLARATION_* is defined.
1996-08-21 01:02:53 +00:00
Fred Fish dbc4eefc3d * solib.c (_initialize_solib): Add missing '\' chars at ends of
strings that continue on next line.
	(enable_break): Replace "return 0" with setting success to zero
 	and letting normal return handle the return.
Fix for 96q4 bug 003
1996-08-20 22:56:22 +00:00
Stan Shebs 2f163bc3c8 * rs6000-tdep.c (rs6000_fix_call_dummy): Add full set of arguments.
* config/rs6000/tm-rs6000.h (FIX_CALL_DUMMY): Pass all arguments
	to function, declare function correctly.
1996-08-17 00:57:52 +00:00
Dawn Perchik 68fc375edd * symtab.h: changed namespace to _namespace for compiling under
MFC v4.0.
1996-08-17 00:32:45 +00:00
Stan Shebs b208ff3b5a * mpw-make.sed: Update for various recent changes, add some
comments.
start-sanitize-gm
	* mpw-config.in: Fix name of Magic Cap-specific file.
end-sanitize-gm
1996-08-16 20:53:56 +00:00
Michael Meissner b597998a37 Fix warning 1996-08-16 19:48:46 +00:00
Jackie Smith Cashion 4caa115815 Fri Aug 16 15:15:37 1996 James G. Smith <jsmith@cygnus.co.uk>
* config/mips/{vr4300.mt, vr4300el.mt} (SIM): Add -lm when
 	simulator is included.
1996-08-16 14:17:36 +00:00
Fred Fish eb17f9d504 * findvar.c (write_register_pid): Only needed when TARGET_WRITE_PC
is not defined.
	(read_register_pid): Only needed when TARGET_READ_PC is not
	defined.
	* hppa-tdep.c (frame_saved_pc): Remove prototype.
	* infptrace.c (udot_info): Prototype when CHILD_XFER_MEMORY is
	not defined.
	* config/xm-aix4.h (aix_resizewindow): Convert old style decl
	to prototype.
	* xcoffsolib.c (command.h): Include for needed prototypes.
1996-08-15 20:52:34 +00:00
Fred Fish e5718bee33 From Blair MacIntyre <bm@cs.columbia.edu>:
* hppa-tdep.c (hppa_fix_call_dummy): Use MSYMBOL_TYPE rather
	than SYMBOL_TYPE on msymbols.
	* somsolib.c (som_solib_create_inferior_hook): Ditto.
1996-08-14 22:41:34 +00:00
Fred Fish 81a80f3282 * Makefile.in (init.c): Generate with prototypes.
* config/pa/tm-hppa.h (frame_saved_pc): Add prototype.
	* config/rs6000/xm-rs6000.h (aix_resizewindow): Ditto.
	* config/rs6000/tm-rs6000.h (frame_initial_stack_address): Ditto.
	(pc_load_segment_name): Ditto.
	(pop_frame): Ditto.
	(extract_return_value): Ditto.
	(is_magic_function_pointer): Ditto.
	(push_dummy_frame): Ditto.
	(fix_call_dummy): Ditto.
	(push_arguments): Ditto.
	(skip_trampoline_code): Ditto.
	(aix_process_linenos): Ditto.

	* config/m68k/tm-cisco.h (get_longjmp_target): Add prototype.
	* config/m68k/tm-es1800.h: Ditto.
	* config/m68k/tm-vx68.h: Ditto.
	* config/m68k/tm-sun3.h: Ditto.
	* config/m68k/tm-m68kv4.h: Ditto.
1996-08-14 20:29:08 +00:00
Fred Fish 857dcde8c2 * config/mips/nm-mips.h (get_longjmp_target): Add prototype.
* config/mips/nm-irix3.h (get_longjmp_target): Add prototype.
	* remote-mips.c (mips_read_processor_type): Remove prototype.
	* mips-tdep.c (gdb_print_insn_mips): Add prototype and make static.
	* irix5-nat.c (fetch_core_registers): Add prototype.
1996-08-14 08:46:24 +00:00
Fred Fish c1d58bcded * remote-pa.c (boot_board): Add dummy params to make type compatible
for passing to add_com.
	* scm-exp.c (scm_lreadr): Ensure svalue is not used uninitialized.
	* buildsym.c (compare_line_numbers): Change function to match
	prototype and also what qsort expects.
1996-08-13 04:27:08 +00:00
Mark Alexander cd21cbc400 * remote.c: Make remote_write_size public.
* sh-tdep.c (_initialize_sh_tdep): Set remote_write_size to 300
	to prevent packet errors with some versions of CMON.
(Fixes PR 10254)
1996-08-13 02:30:34 +00:00
Stu Grossman 8501c74270 * defs.h: Define CONST_PTR as blank if compiling with Microsoft
C, else it's `const'.
	* c-lang.c c-lang.h ch-lang.c f-lang.c language.c m2-lang.c
	scm-lang.c: Microsoft C can't hack const pointers.  Use CONST_PTR
	macro instead.
	* configure configure.in defs.h:  Use AC_C_CONST to figure out if
	the compiler supports const.  Gets rid of some cruft in defs.h.
	* dwarf2read.c:  <string.h> -> "gdb_string.h"
	* remote-sim.c:  Add prototypes.  Fix call to gdbsim_kill.
	* sparcl-tdep.c (download):  Add prototypes to write_routine and
	start_routine args.

	* mswin/gdbwin.c:  Don't include both varargs.h AND stdarg.h.  Get
	rid of varargs.h  Include string.h.
	* (gdbwin_update gdbwin_fputs regs_changed_f bpt_changed_f
	update):  Fix prototypes, fix calls.
	* (update):  Return value for catch_errors.
	* (run_execute_command togdb_command_from_tty togdb_command):
	Cleanup catching of errors from calls to execute_command.  Also,
	dup command string to avoid modifying const strings.
	* (togdb_breakinfo_i_init togdb_breakinfo_i_next):  Use 0 instead
	of NULL when see if b->address isn't set.
	* (bi_disable_bpt bi_enable_bpt bi_delete_all
	bi_delete_breakpoint):  Add arg to calls to update.
	* (gui_command):  Add prototype.
	* (mswin_query):  Fix prototype.
	* (_initialize_gdbwin):  Dup string to avoid modifying const.
	* (info_path togdb_get_info_path):  Remove const from decls cuz
	this can't be const (it points at malloc'ed memory).
	* (togdb_searchpath):  Remove const from path.  Dup string to
	avoid modifying const strings.
	* rindex -> strrchr.
	* (gdbwin_list_symbols):  Regexp param is const.
	* Fix lots of refs to psymtabs to deref correct pointers.
	* (togdb_set_breakpoint_sal):  Call set_breakpoint_sal with sal,
	not &sal.
	* mswin/gdbwin.h (togdb_searchpath togdb_get_info_path
	toget_set_info_path):  Fix prototypes to match reality.
	* mswin/gui.cpp:  Define _beginthreadex and _endthreadex routines
	with proper prototypes.
	* mswin/iface.cpp (gdbwin_fputs):  Define with correct number of args.
	* mswin/ser-win32s.c:  Fix defs of min and max.
	* mswin/serdll32.c (OpenComm16):  Make cbInQueue and cbOutQueue be
	USHORT.
	* (WriteComm16):  Change lpBug from LPVOID to LPCSTR.
	* mswin/serdll32.h:  Fix prototypes for OpenComm16 and WriteComm16.
1996-08-13 00:01:37 +00:00
Stu Grossman 82c6139baa * main.c (main): Make sure command loop is used with cygwin32.
* terminal.h:  Allow cygwin32 to use termios.h.
1996-08-12 04:02:41 +00:00
Tom Tromey 611f046fe2 * Makefile.in (LIB_INSTALL_DIR): New macro.
(TCL): Include @TCL_LD_SEARCH_FLAGS@.
1996-08-09 19:05:29 +00:00
Jeff Law c149559feb * somread.c (som_symtab_read): Handle secondary definition
symbols (aka weak symbols).
1996-08-09 18:43:54 +00:00
Jeff Law bb1847ca10 * config/tm-hppa.h (EXTRACT_RETURN_VALUE): Fix thinko in
last change.
1996-08-09 15:12:48 +00:00
Stu Grossman 8d42089e48 * symfile.c (symfile_bfd_open): Change ifdef from __WIN32__ to
_WIN32.
1996-08-08 17:17:35 +00:00
Stu Grossman e618c70e96 * somread.c: Rearrange order of includes to fix warnings under
hpux-10.10.  Also don't include sys/file.h.
1996-08-08 17:14:02 +00:00
Stu Grossman 500992b743 * dbxread.c: Don't include param.h or sys/file.h.
* (dbx_symfile_read):  Determine symfile_relocatable from bfd
	flags instead of file extension.  Also clean up a little bit.
1996-08-08 04:52:49 +00:00
Stu Grossman 9e77e83d30 * dwarf2read.c dwarfread.c exec.c infcmd.c infrun.c main.c
mdebugread.c os9kread.c source.c top.c utils.c:  Don't
	include param.h or sys/file.h (or unistd.h in some cases).
	* defs.h exec.c inflow.c remote-array.c remote-e7000.c
	sparcl-tdep.c terminal.h utils.c:  Replace all occurances of
	__WIN32__, WINGDB, WIN32, etc... with _WIN32.
	* main.c:  Remove #ifndef WINGDB around option processing.  Fix
	bug with passing argc==0 and argv==NULL to getopt.
	* (main) Remove calls to access() before source_command.  Let
	soure_command handle access errors.
	* maint.c (maintenance_dump_me):  #ifdef out for _WIN32.
	* symtab.c (operator_chars):  Make this global for wingdb.
	* top.c (disconnect):  #ifdef out for _WIN32.
	* (source_command):  If got an error and from_tty, then call print
	error, else just return quietly.
	* utils.c (fatal_dump_core):  Can't kill ourselves under windows.
	Just exit.
	* (pollquit notice_quit):  #ifdef out stuff that doesn't exist
	under windows.
1996-08-08 02:50:22 +00:00
Jeff Law 8d03845101 * config/pa/tm-hppa.h (EXTRACT_RETURN_VALUE): Tweak for
structures > 4 bytes in size.
Fixing more structure return problems.
1996-08-07 16:32:44 +00:00
Jeff Law 0d43c8e711 * valops.c (call_function_by_hand): Handle aligning stacks that
grow up correctly.
        * config/pa/tm-hppa.h (USE_STRUCT_CONVENTION): Define.
        (STACK_ALIGN): Define.
        * hppa-tdep.c (hppa_alignof): Don't demand a minumim two byte
        alignment on structs/unions.
Fixing assorted structure passing/return problems reported by the net.
1996-08-07 16:05:19 +00:00
Fred Fish 769d0c90f7 * config/powerpc/nm-aix.h (PTRACE_ARG3_TYPE): Define to "int *",
which is the documented type under at least AIX 3 and AIX 4.
1996-08-04 23:40:18 +00:00
Fred Fish 38eee4a946 * config/alpha/alpha-osf3.mh (MMALLOC_CFLAGS): Define NO_MMCHECK to
not install consistency checks.
1996-08-03 11:27:21 +00:00
Fred Fish 6b24a9f6bb * config/alpha/alpha-osf3.mh (XM_FILE): Change from xm-alpha.h to
xm-alphaosf.h.
1996-08-03 11:18:20 +00:00
Tom Tromey 047465fd1b changes for new tcl/tk:
* gdbtk.c (mainWindow): Deleted.
        (cleanup_init): Don't destroy main window.
        (gdbtk_init): Main window now created by Tk_Init.

        * configure.in: Most X checks now handled automatically by Tk.
        Use new macros to find Tcl/Tk.
        * aclocal.m4: New version for new Tcl/Tk; from Don Libes.
        * config.in, configure: Regenerated.

        * Makefile.in (TCL, TCL_CFLAGS, TK, TK_CFLAGS, X11_CFLAGS,
        X11_LDFLAGS, X11_LIBS): Changed for new Tcl and Tk.
1996-08-02 02:43:27 +00:00
Fred Fish 8efb80797c * config/mips/tm-mips.h (TM_MIPS_H): Enclose file contents in
this, define when contents are included.
	(mips_read_processor_type): Add prototype.
	* config/mips/xm-mips.h: Remove strdup decl, now in gdb_string.h
	* mdebugread.c (ecoff_relocate_efi): Add prototype.
	(fixup_sigtramp): Only needed when TM_MIPS_H is defined.
1996-08-01 17:30:37 +00:00
Jason Molenda e822a3dbf6 * Makefile.in (gdbtk.tcl): put in $(datadir), not $(libdir). 1996-08-01 07:13:18 +00:00
Fred Fish a95d92fa57 * rs6000-nat.c (add_vmap): Return 0 to caller rather than random value.
(vmap_ldinfo): Ensure got_exec_file is not used uninitialized.
	(fetch_core_registers): Add prototype.
	(vmap_symtab): Ditto.
	(objfile_symbol_add): Ditto.
	(add_vmap): Ditto.
	(vmap_ldinfo): Ditto.
	(vmap_exec): Ditto.
1996-08-01 05:25:23 +00:00
Stan Shebs cb74cc240d * stabsread.c (get_substring): Declare second arg as int.
* remote-es.c: Include gdb_string.h after defs.h.
1996-07-31 01:07:30 +00:00
Fred Fish 368f1e773b * rs6000-tdep.c (push_arguments): Remove unused variable "pc".
(branch_dest): Remove unused variable "offset".
	(pop_dummy_frame): Add prototype and make static.
	(push_arguments): Guard against using len uninitialized.
	(push_arguments): Guard against using arg uninitialized.
	(frame_saved_pc): Remove unused variable "frameless".
	(free_loadinfo): Ifdef out unused function.
1996-07-30 07:24:22 +00:00
Fred Fish 6e0949ae3e * xcoffread.c (compare_lte): Change prototype and function to
be correct type for passing to qsort.
	(add_stab_to_list): Ifdef out unused function and prototype.
	(compare_lte): Add prototype
	(arrange_linetable): Ditto.
	(record_include_begin): Ditto.
	(record_include_end): Ditto.
	(process_linenos): Ditto.
	(xcoff_next_symbol_text): Ditto.
	(scan_xcoff_symtab): Ditto.
	(xcoff_initial_scan): Ditto.
1996-07-30 06:50:23 +00:00
Fred Fish 80e0e92aaa * mips-tdep.c (mips_read_processor_type): Add parens around
bitwise-and operands in comparison; previous expression always
	evaluated to 0 because of equality comparison of two constants.
1996-07-30 06:15:13 +00:00
Fred Fish 58b4fad226 * rs6000-tdep.c (skip_prologue): Add missing parens around
operands of logical-or so that first operand does not bind
	to previous logical-and.
1996-07-30 05:12:07 +00:00