Commit Graph

6160 Commits

Author SHA1 Message Date
Fred Fish e0effbaea2 * configure.in (configdirs): Add gdb.threads.
* configure: Regenerated with autoconf.
	* gdb.threads/{config.in, pthreads.c, pthreads.exp}: New.
	* gdb.threads/{Makefile.in, configure.in}: Complete rewrites.
	* gdb.threads/configure: New, generated with autoconf.
1996-08-07 18:14:56 +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 e7dc69ffc0 * lib/gdb.exp (gdb_test_exact): Turn \n in pattern into \r\n. 1996-08-06 19:20:25 +00:00
Fred Fish 5fac6a39dc * gdb.base/signals.exp (test_handle_all_print): Test separately for
each signal's status in the output of "handle all print".
	* lib/gdb.exp (gdb_test): Document that the pattern must NOT include
	the \r\n sequence that immediately precedes the gdb prompt.
	* gdb.base/a1-selftest.exp: Save original timeout and restore
	after test.
1996-08-06 01:18:18 +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
Jeff Law 61e842adf8 * gdb.disasm/hppa.s: Export fmemLRbug_tests_4 as a ST_CODE
symbol.
1996-08-04 16:21:16 +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
Brendan Kehoe e95a45af92 * config/vx-gdb.exp (gdb_start): Fix syntax of `$shell_id < 0'. 1996-08-03 00:38:50 +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
Fred Fish 80f600a4b2 * configure.in: Expand "long long" test to include code that triggers
known problem on HPUX with native compiler.
	(configure): Regenerated.
1996-07-30 04:26:25 +00:00
Jeff Law 6f35989529 * somsolib.c (som_solib_create_inferior_hook): Don't
warn if __d_pid can't be found.
1996-07-30 00:13:14 +00:00
Fred Fish f2bf454e0f * config/mips/tm-mips.h (struct frame_info): Forward decl.
(struct type): Ditto.
	(struct value): Ditto.

	* config/mips/tm-mips.h (sigtramp_address): Move extern decl
 	from mips-tdep.c to here.
	(sigtramp_end): Ditto.
	(fixup_sigtramp): Ditto.

	* config/mips/tm-mips.h (init_extra_frame_info): Add prototype.
	(mips_frame_chain): Ditto.
	(mips_step_skips_delay): Ditto.
	(mips_frame_saved_pc): Ditto.
	(mips_find_saved_regs): Ditto.
	(mips_frame_num_args): Ditto.
	(mips_pop_frame): Ditto.
	(mips_extract_return_value): Ditto.
	(mips_store_return_value): Ditto.
	(mips_push_dummy_frame): Ditto.
	(mips_push_arguments): Ditto.
	(mips_do_registers_info): Ditto.
	(ecoff_relocate_efi): Ditto.
	(ecoff_relocate_efi): Ditto.
	* irix4-nat.c (fetch_core_registers): Add prototype.
	* mips-tdep.c (read_next_frame_reg): Add prototype
	(heuristic_proc_start): Ditto.
	(heuristic_proc_desc): Ditto.
	(mips_print_register): Ditto.
	* config/mips/nm-irix5.h (procfs_set_watchpoint): Add prototype.
	(procfs_stopped_by_watchpoint): Ditto.
	* config/mips/nm-irix4.h (procfs_set_watchpoint): Add prototype.
	(procfs_stopped_by_watchpoint): Ditto.
	* config/alpha/tm-alpha.h (ecoff_relocate_efi): Add prototype.
	(struct symbol): Add forward decl for prototype.

	* breakpoint.c (internal_breakpoint_number): Only needed if
	GET_LONGJMP_TARGET or SOLIB_ADD is defined.

	* objfiles.c (ecoff_relocate_efi): Remove prototype.
1996-07-28 21:41:09 +00:00
Fred Fish 3f550b5940 * configure.in: Add test for "long long" support.
* configure: Regenerate with autoconf.
	* acconfig.h: Add CC_HAS_LONG_LONG
	* config.in: Regenerate with autoheader.
	* config/mips/tm-mips64.h (FORCE_LONG_LONG): Remove
	* config/sparc/tm-sp64.h (CC_HAS_LONG_LONG): Remove.
	* config/mips/tm-vr4300el.h (CC_HAS_LONG_LONG): Remove.
	* config/mips/tm-vr4300.h (CC_HAS_LONG_LONG): Remove.
	* config/mips/xm-irix5.h (CC_HAS_LONG_LONG): Remove
	(PRINTF_HAS_LONG_LONG): Remove.
	(FORCE_LONG_LONG): Remove.
	* config/powerpc/xm-aix.h (UINT_MAX): Undef and use gdb's version.
	* config/convex/xm-convex.h (CC_HAS_LONG_LONG): Remove
	(PRINTF_HAS_LONG_LONG): Remove.
	* config/xm-nbsd.h (CC_HAS_LONG_LONG): Remove.
	(PRINTF_HAS_LONG_LONG): Remove.
	* config/pa/tm-hppa.h (GET_FIELD): Put parens around
	subtraction inside shift.  Put parens around subtraction
	in operand of bitwise and.
	(struct frame_info): Forward declare
 	if __STDC__ defined.
	(frame_saved_regs): Ditto.
	(struct value): Ditto.
	(struct type): Ditto.
	(struct inferior_status): Ditto.
	(init_extra_frame_info): Add prototype.
	(skip_prologue): Ditto.
	(frameless_function_invocation): Ditto.
	(frame_chain): Ditto.
	(frame_chain_valid): Ditto.
	(saved_pc_after_call): Ditto.
	(hppa_fix_call_dummy): Ditto.
	(hppa_push_arguments): Ditto.
	(pa_do_registers_info): Ditto.
	(in_solib_call_trampoline): Ditto.
	(in_solib_return_trampoline): Ditto.
	(push_dummy_frame): Ditto.
	* convex-tdep.c (decout): Use print_longest rather than
	fprintf_filtered.
	* defs.h: Remove use of FORCE_LONG_LONG and __GNUC__ to set
	CC_HAS_LONG_LONG.
	(INT_MIN): Fix so it works correctly when assigned to a long long.
	* valprint.c (longest_to_int): Rewrite to remove dependence
	on INT_MIN and INT_MAX.
	(print_longest): Rewrite the code that falls back to synthesized
	hex output when LONGEST value is not representable as in a long and
 	printf doesn't support printing long longs.
	* ch-valprint.c (chill_val_print): Cast 2nd arg of
	chill_print_type_scalar to LONGEST.
	chill_print_type_scalar): Make static and add prototype.
	* hppa-tdep.c (get_field): Ifdef out unused function.
	(set_field): Ditto.
	(extract_3): Ditto.
	(extract_5_store): Ditto.
	(extract_11): Ditto.
	(extract_12): Ditto.
	(deposit_17): Ditto.
	(extract_14): Convert to static and add prototype.
	(deposit_14): Ditto.
	(extract_21): Ditto.
	(deposit_21): Ditto.
	(extract_17): Ditto.
	(extract_5r_store): Ditto.
	(extract_5R_store): Ditto.
	(extract_5_load): Ditto.
	(find_proc_framesize): Ditto.
	(find_dummy_frame_regs): Ditto.
	(sign_extend): Ditto.
	(find_unwind_entry): Add prototype.
	(find_return_regnum): Ditto.
	(unwind_command): Ditto.
	(find_dummy_frame_regs): Add parens around subtraction in operand
	of bitwise-and.
	(skip_prologue): Add parens around operands of logical-and inside
	operand of logical-or.
	(sign_extend): Add parens around operands of subtraction inside
	operand of shift.
	(low_sign_extend): Ditto.
	* top.c (filename_completer): Convert old style decl of
	filename_completion_function into prototype.
	* f-lang.c (patch_common_entries): Ifdef out unused function.
	* stabsread.c (read_cfront_baseclasses): Remove unused local
	variable "msg_noterm".
	(resolve_cfront_continuation): Remove unused local variable "fip".
	(read_type): Remove unused variable xtypenums.
	(read_cfront_static_fields): Remove unused variable "i".
	(read_cfront_static_fields): Remove unused variable "nfields".
	(read_cfront_member_functions): Add missing comment terminator.
	(read_cfront_static_fields): Return 1 rather than random value.
	(read_cfront_baseclasses): Ditto.
	(read_cfront_baseclasses): Ditto.
	(read_cfront_baseclasses): Ditto.
	* somsolib.c (som_solib_create_inferior_hook): Remove unused
	variable "u".
	(som_solib_create_inferior_hook): Remove unused variable
	shadow_contents.
	(language.h): Add for needed prototypes.
	(som_solib_sharedlibrary_command): Add prototype.
	* hpread.c: (hpread_read_array_type): Add prototype.
	* somread.c (hpread_build_pysmtabs): Add prototype.
	(hpread_symfile_finish): Ditto.
	(hpread_symfile_init): Ditto.
	* hppah-nat.c (fetch_register): Convert old style decl
	to prototype.
	(gdbcore.h): Include for needed prototypes.
	(fetch_register): Remove unused variable "mess".
	* remote-pa.c (get_offsets): Ifdef out unused function.
	(remote_start_remote): Remove unused variable "timeout".
	(boot_board): Add prototype.
	(reaad_frame): Add prototype.
	(getpkt): Remove unused variable "bp".
	(remote_kill): Add prototype.
	(remote_mourn): Add prototype.
	(remote_insert_breakpoint): Add prototype.
	(remote_remove_breakpoint): Add prototype.
	* valops.c (value_push): Only use if PUSH_ARGUMENTS is not defined.
	* infcmd.c (do_registers_info): Only need prototype if
	DO_REGISTERS_INFO is not defined.
	(breakpoint_auto_delete_contents): Only need if
	CALL_DUMMY_BREAKPOINT_OFFSET is defined.
1996-07-28 06:32:48 +00:00
Fred Fish 68aadb901e * xcoffread.c (xcoff_end_psymtab): Add textlow_not_set parameter.
(END_PSYMTAB): Ditto.
	(scan_xcoff_symtab): Call xcoff_end_psymtab with textlow_not_set.
1996-07-27 17:03:14 +00:00
Ian Lance Taylor caeec76790 * printcmd.c (_initialize_printcmd): Initialize
tm_print_insn_info.flavour.
	* gdbtk.c (gdb_disassemble): Initialize di.flavour.
1996-07-26 18:10:18 +00:00
Fred Fish ed393c169b See the huge ChangeLog entry that has the header:
Thu Jul 25 19:41:31 1996  Fred Fish  <fnf@cygnus.com>

for details about these changes.  I was going to include the complete
entry in the checkin message but it was apparently so large it caused
cvs to dump core.
1996-07-26 04:12:12 +00:00
Fred Fish b607efe714 See gdb ChangeLog entry with header:
Thu Jul 25 19:41:31 1996  Fred Fish  <fnf@cygnus.com>

for a rather huge set of changes.  I was going to put them here, but it
made cvs dump core.  :-(
1996-07-26 03:01:51 +00:00
David Edelsohn dc88c64e2c * dsrec.c (load_srec): Protect ANSI style function parms with PARAMS. 1996-07-25 23:13:08 +00:00
Stu Grossman 3a179be149 * Makefile.in (os9kread.o): Remove dependency on partial-stab.h.
* dbxread.c (read_dbx_symtab end_psymtab), partial-stab.h:  Don't
	use partial_symtab->textlow==0 as a flag, as 0 is a legitimate
	text address.  Use a seperate flag (textlow_not_set) instead.
	This makes stabs in ELF .o files work a lot better.
	* mdebugread.c xcoffread.c:  Define textlow_not_set for
	partial-stab.h.
	* stabsread.h (end_psymtab):  Add textlow_not_set arg to prototype.
1996-07-23 01:24:58 +00:00
Fred Fish 396bf873e9 * gdbtk.tcl (files_command): Reorder the binding tags for
the listbox widget to avoid referencing the listbox after
	the containing widget has been destroyed by the action of
	a previous binding.
1996-07-21 01:28:12 +00:00
Fred Fish 9422fadb91 * dwarf2read.c (struct filenames): Change internal "struct file"
to "struct fileinfo" to avoid conflict with "struct file" in
	<sys/file.h> on HPUX and Solaris.
1996-07-20 18:33:27 +00:00
Fred Fish efd14e4595 * gdbtk.tcl (delete_expr): Unset corresponding element of
expr_update_list when destroying an expression.
	(create_expr_window): Initialize expr_num, delete_expr_num,
	and expr_update_list here when each new expression window
	is created, rather than once at startup.
PR 9383
1996-07-20 17:21:36 +00:00
Stan Shebs bb5a10fef4 Always keep dwarf2read.c 1996-07-19 21:31:55 +00:00
Stan Shebs fcf0554956 * dwarf2read.c: New file, DWARF 2 reader originally contributed by
Brent Benson, with additions by Gary Funck and Jerry Kreuscher.
	* Makefile.in (COMMON_OBS): Add dwarf2read.o.
	(SFILES): Add dwarf2read.c.
	(dwarf2read.o): Add build rule.
	* symfile.h (dwarf2_has_info, dwarf2_build_psymtabs): Declare
	exported functions.
	* elfread.c (elf_symfile_read): Call them.
	(elf_symtab_read) [HARRIS_TARGET]: Skip some special symbols.
1996-07-19 21:16:13 +00:00
Geoffrey Noer 3f17fed8f1 Thu Jul 18 01:22:01 1996 Geoffrey Noer <noer@cygnus.com>
* symfile.c (symfile_bfd_open):
        * exec.c (exec_file_command): for __GO32__ and __WIN32__ systems,
        free the user from having to type the .exe extension.
1996-07-18 08:29:09 +00:00
Mark Alexander 2531b169ee * mon960-rom.c: Shorten the mon960_inits string to a single
carriage return; this prevents a hang on connecting immediately
	after powerup, when MON960 is attempting autobaud detection.
1996-07-17 14:00:46 +00:00
Mark Alexander 48b497edfe * a29k-tdep.c (get_saved_register): Allow PC to be modified
when innermost frame is selected, but not in outer frames.
PR 9012
1996-07-17 06:52:31 +00:00
Stu Grossman 76420d4630 * command.c (do_setshow_command): Don't segfault when showing
var_string and var_string_noescape vars that are NULL.

From the fsf:
	* solib.c (solib_absolute_prefix, solib_search_path): New variables.
	(_initialize_solib): Add set/show commands for those variables.
	(solib_map_sections): Implement searching using them.
1996-07-17 06:41:25 +00:00
Stu Grossman 647e52ea3a Changes from the FSF for Hurd thread support. 1996-07-17 06:03:26 +00:00
David Edelsohn 2dcfc9c781 * win32-nat.c (handle_load_dll): dos_path_to_unix_path renamed to
cygwin32_conv_to_posix_path.
	(child_create_inferior): unix_path_to_dos_path renamed to
	cygwin32_conv_to_win32_path.  Rewrite code to translate PATH.
1996-07-15 23:57:36 +00:00
Stu Grossman 91550191be * defs.h printcmd.c: Create global disassemble_info structure
tm_print_insn_info.
	* gdbtk.c (gdb_disassemble):  Setup di.mach from
	tm_print_insn_info.mach, and set endian from TARGET_BYTE_ORDER.
	* i386-tdep.c (set_assembly_language_command):  set
	tm_print_insn_info.mach to the appropriate value for 386 or 8086
	disassembly.
	* printcmd.c (print_insn):  Move init of disassembler_info to
	_initialize_printcmd.  Set endian for disassembler here.
	* sparc-tdep.c:  Set tm_print_insn_info.mach as appropriate to
	select sparc/sparclite.
	* config/sparc/{tm-sparc.h tm-sparclite.h}:  Get rid of
	TM_PRINT_INSN.  Set TM_PRINT_INSN_MACH to
	bfd_mach_sparc/bfd_mach_sparc_sparclite.
1996-07-15 23:54:39 +00:00
Fred Fish ade7264c94 Check in an entry that somehow got missed long ago. 1996-07-13 14:55:30 +00:00
Fred Fish d369b2139b * hpread.c (hpread_lookup_type): Use xmmalloc/xmrealloc rather
than xmalloc/xrealloc.
1996-07-13 05:34:40 +00:00
Fred Fish 0a4d0a494e Fix thinko in previous patch 1996-07-13 04:50:40 +00:00
Fred Fish c0e6ae2e2e * objfiles.c (map_to_file): Error return from mmalloc_findbase is
a NULL pointer, not a -1.
Fix oops from a previous checkin.
1996-07-13 01:12:11 +00:00
Stu Grossman 892d7e9f20 * gdb.texinfo: Document `set assembly-language'. 1996-07-12 18:11:24 +00:00
Stu Grossman f33b2c132b * i386-tdep.c (set_assembly_language_command): New routine to
select between i386 and i8086 instruction sets for disassembly.
	New command `set assembly-language {i386 i8086}'.
1996-07-12 17:18:53 +00:00
Mark Alexander f3138a7ca1 * monitor.c (monitor_write_memory, monitor_read_memory_single):
Disable use of "long long" memory read/write commands; can't
	use them because we hold the values to read/write in an int
	variable, and because strtoul fails on values that exceed the
	size of a long.  This fixes breakpoint problems on MON960.
1996-07-12 04:18:13 +00:00
Fred Fish 4853b6d11c * config/m68k/xm-hp300hpux.h (HAVE_MMAP): Remove definition.
* config/pa/xm-hppah.h (HAVE_MMAP): Ditto.
1996-07-12 00:19:15 +00:00
Stan Shebs 42d0ec72f0 * remote.texi: Update list of stubs in the GDB distribution.
Humoring JT :-)
1996-07-11 20:53:41 +00:00