Commit Graph

3044 Commits

Author SHA1 Message Date
Kung Hsu aeca85c13a * stabsread.c (read_one_struct_field): Add a patch to handle cfront
generated stabs that each field is in full mangled name.
1995-09-12 23:05:22 +00:00
Kung Hsu f434284a2c * infcmd.c (attach_command): Add solibs only when
auto_solib_add_at_startup is set.
1995-09-12 22:49:08 +00:00
Fred Fish 0764fb0451 * NEWS: Add information about remote target caching. 1995-09-12 00:26:17 +00:00
Fred Fish 031c4a7eed * defs.h: Only include mmalloc.h if NO_MMALLOC is not
defined.
1995-09-11 23:41:45 +00:00
Michael Tiemann 3a4f97862f Sun Sep 10 10:24:48 1995 Michael Tiemann <tiemann@axon.cygnus.com>
* tm-ppc-eabi.h (PC_IN_CALL_DUMMY): Redefine this to work with the
	simulator.  FIXME.

	* rs6000-tdep.c (push_dummy_frame): Calculate the correct link
	register offset from the current frame (don't assume it is always 8).
	(push_dummy_frame): Add comment about having only 4096 bytes of
	stack space in the simulator (by default).

	* remote-sim.c (gdbsim_create_inferior): Call
	`add_text_to_loadinfo' so that gdb can find TOC entries when
	calling functions in the inferior.

With this changes, it is now possible to correctly call inferior
functions in the PPC simulator.
1995-09-10 17:37:22 +00:00
Peter Schauer 85226acd41 * sparc-tdep.c (fill_fpregset): Fix incorrect FP_MAX_REGNUM
substitution.
	(supply_fpregset):  Use FP_MAX_REGNUM.
1995-09-10 15:56:01 +00:00
Peter Schauer b6a40d0cf1 * stabsread.c (read_enum_type): Exit loop for putting pending
enum symbols into the enum type correctly if we had no pending
	symbols on entry to read_enum_type.
1995-09-09 15:24:18 +00:00
Kung Hsu 6047ab6a19 * inferior.h: Add extern declaration of inferior_environ.
* solib.c (solib_map_sections): To get inferior's env instead of
	gdb's for LD_LIBRARY_PATH, same for PATH.
1995-09-09 00:26:46 +00:00
Kung Hsu 2858b1f25e * solib.c (solib_map_sections): Copy full path name into so_list
structure so that symbol_file_add can find it.
1995-09-08 20:00:56 +00:00
Peter Schauer 5e711e7f50 * configure.in: Explicitly `exit 0' for broken shells.
* configure:  Rebuilt.

	* symtab.c (list_symbols):  Add missing blank after
	`<function, no debug info>' output.

	* valops.c (value_assign):  Handle truncation when assigning
	to bitfields. Use value_copy to construct the return value
	from toval.
	* values.c (value_copy):  Copy VALUE_FRAME and VALUE_OPTIMIZED_OUT.
1995-09-02 13:48:16 +00:00
Jackie Smith Cashion 180fd370b1 Ideally the "remote-mips.c" prompt spotting code should be updated to
spot different prompts at run-time, so as to avoid having target
specific versions of gdb. This is a pending TODO.

Fri Sep  1 08:25:50 1995  James G. Smith  <jsmith@beauty.cygnus.com>

        * configure (mips64*vr4300*-*-elf): Support added.
        * remote-mips.c (mips_readchar): Change to allow build-time prompt
        string.
        * config/mips/tm-mips.h: Added TARGET_MONITOR_PROMPT.
        * config/mips/{vr4300.mt, vr4300el.mt, tm-vr4300.h,
        tm-vr4300el.h}: Added.
1995-09-01 15:33:14 +00:00
Jim Wilson 07846c7a1f * config/sh/sh.mt (SIM): Add -lm. 1995-08-31 19:59:59 +00:00
Kung Hsu 9b73a4677d * rmote-nindy.c (non_dle, nidy_resume, nindy_wait): Changes to
conform to GNU coding standards.
1995-08-31 01:21:57 +00:00
Kung Hsu 0858c908aa * remote.c (remote_wait): Revert 19 July my change which should be
customer specific.
1995-08-29 00:11:16 +00:00
Peter Schauer 080868b466 * mdebugread.c (parse_symbol): Handle sh.value of zero for enums.
Determine signedness of enum type from enumerators.
	(parse_type):  Handle btIndirect types, handle fBitfield for
	some non-member types.
	(upgrade_type):  Use TYPE_FLAG_TARGET_STUB for arrays with
	unknown length.
	(cross_ref):  Handle stIndirect forward reference to btTypedef.

	* stabsread.c (read_enum_type):  Determine signedness of enum
	type from enumerators.

	* top.c (execute_command):  Remove trailing whitespace from
	command arguments, except for `set' and `complete' commands.
	(validate_comname):  Allow underscores in user defined command
	names.

	* values.c (modify_field):  Change `Value does not fit in %d bits'
	error to a warning. Exclude sign extension bits of negative field
	values from fit check.
1995-08-26 07:35:13 +00:00
Michael Meissner 13ba8b6927 Only build PowerPC simulator if target is powerpc*-*-eabisim 1995-08-25 16:05:32 +00:00
Michael Meissner 19c3fec4bf Link in PowerPC simulator. 1995-08-23 20:59:06 +00:00
Jeff Law 740e802827 * tm-hppa.h (EXTRACT_RETURN_VALUE): Fix for FP values. 1995-08-22 09:52:33 +00:00
Jeff Law 90df364f49 * tm-hppa.h (STORE_RETURN_VALUE): Fix to work with -msoft-float
calling conventions too.  Use the TYPE of the return value, not
	its length to determine if it should also be copied into the
	floating point registers.
1995-08-22 08:13:34 +00:00
Jeff Law 7e72b115ad * tm-hppa.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete. Causes more
problems than it fixes.
	* hppa-tdep.c (skip_prologue): If we exit the main loop without
	finding all the register saves, retry again without looking for
	the registers we could not find the first time.

Better fix for 7768.
1995-08-22 08:04:15 +00:00
Jeff Law c85ff3a363 * hppa-tdep.c (frame_chain_valid): Handle systems where "$START$"
calls "main" directly.
	(skip_prologue): Always assume arguments were saved into the stack
	since GCC will do so without setting the magic Args_Saved bit in
	the unwind descriptor.
1995-08-22 05:43:30 +00:00
Kung Hsu bb8e4e4d95 * remote-udi.c (udi_wait): Mask off high bits of stop reason.
* remote-udi.c (fetch_register): For unfetchable regs, pretend it's
	done. Fix a bug.
1995-08-21 18:56:04 +00:00
Jeff Law fa296a0c44 * Makefile.in (install): Remove "brokensed" hack, unnecessary now
that we're using autoconf.
	(uninstall): Likewise.
1995-08-21 06:49:42 +00:00
Michael Tiemann f61f41d929 Wire up the breakpoint window so that it works. Also, fix a typo that
kept the breakpoints in the source window from updating when enabled or
disabled.
1995-08-20 00:26:54 +00:00
Peter Schauer 2447e9afab * gdbtypes.c (recursive_dump_type): Add dont_print_type_obstack
to inhibit infinite recursion when printing aggregate types.
1995-08-19 08:21:23 +00:00
Steve Chamberlain 69c626a9aa * dcache.c (dcache_write_line): Write dirty lines right. 1995-08-19 00:54:12 +00:00
Peter Schauer 673e1bab44 * sparc-tdep.c (isbranch): Fix typo which caused wrong
target addresses for annulled branches.
1995-08-18 13:27:21 +00:00
Jeff Law 1ce8a30f17 * config/pa/tm-hppa.h (PROLOGUE_FIRSTLINE_OVERLAP): Define.
Yes, this dusty old macro is really the right thing to do when you've
got a port which performs scheduling on prologues...  Fixes latest
mentor gdb PR.
1995-08-17 04:01:24 +00:00
Steve Chamberlain ec10503a73 * remote.c (remote_write_bytes): Chop up large transfers. 1995-08-15 14:53:24 +00:00
Stan Shebs dd17dde6de * gcc.patch: Remove, relevant only to long-ago versions of GCC. 1995-08-15 01:07:54 +00:00
Kung Hsu ae71adb82b * blokcframe.c (inside_main_func): Add comments. 1995-08-14 22:15:16 +00:00
Kung Hsu 56c423fec5 * blockframe.c (inside_main_func): Fix a typo in previous change. 1995-08-14 21:42:17 +00:00
Kung Hsu 0e2c2c1e3b * config/sparc/tm-sparclite.h: Define FRAME_CHAIN_VALID_ALTERNATE.
* blockframe.c (inside_main_func): If main func addr range not set,
	try to set it now.
1995-08-14 20:45:51 +00:00
Jeff Law 407f52c1a2 * config/powerpc/xm-aix.h (FIVE_ARG_PTRACE): Define.
* config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.

So we can build under aix4 with an ansi compiler (should not effect aix3
since aix3 doesn't have a ptrace prototype).
1995-08-13 06:11:38 +00:00
Jeff Law 65eaea2742 * configure.in: Recognize aix4 specially as some aspects
of aix4 need different handling than aix3.
        * configure: Updated.
        * config/powerpc/{aix4.mh,aix4.mt,tm-ppc-aix4.h}: New files
        specific to aix4 support on the power pc.
        * config/powerpc/tm-ppc-aix.h (DONT_RELOCATE_SYMFILE_OBJFILE): Do
        not defined.  The aix4 specific target files will do that.
        * config/rs6000/{aix4,mh,aix4,mt,tm-rs6000-aix4.h}: New files
        specific to aix4 support on the rs6000.

        * config/rs6000/tm-rs6000.h (CONVERT_FROM_FUNC_PTR_ADDR): Don't
        do the conversion if the pointer is not a magic aix function
        pointer.
        * rs6000-tdep.c: Include objfiles.h and symtab.h.
        (is_magic_function_pointer): New function.

        * rs6000-tdep.c (skip_prologue): Refine check for frameless
        functions.  Handle b .+4 emitted by aix4 compilers.  Only
        allow one load of a minimal toc pointer.  Handle aix4 compiler's
        code for alloca.

        * rs6000-tdep.c (find_toc_address): Report an error if no toc was
        found rather than possibly core dumping.

        * partial-stab.h: Handle extra field generated by the aix4 compiler
        for enumerations.
        * stabsread.c (read_enum_type): Likewise.
1995-08-12 22:50:04 +00:00
Peter Schauer 07781ac0c3 * rs6000-tdep.c (extract_return_value): Fix returning of values
whose length is less than the register size for big endian targets.
1995-08-12 10:21:12 +00:00
Kung Hsu f21c9aecae * symtab.c (list_symbols): if break command set breakpoint on matched
symbol.
1995-08-11 20:15:21 +00:00
Fred Fish eae45ea981 * defs.h (strchr, strrchr, strstr, strtok, strerror): Enclose in
#ifndefs to protect against previous definitions as macros.
	* HOW_TO_RELEASE:  Continue updating...
1995-08-11 16:39:14 +00:00
Kung Hsu 38fb211bc9 * xcoffread.x (xcoff_symfile_offset): Revert an unwanted change gets
in accidentally from Aug 1 checkin.
1995-08-09 21:56:37 +00:00
Steve Chamberlain 998cfe7df0 * remote-hms.c (hms_cmds): Get reg term right.
* monitor.c (monitor_fetch_register):  If we see
	a non-hex digit, just stop reading.
 	* remote.c (remote_wait): Change way $O is handled.
1995-08-09 20:41:16 +00:00
Jeff Law 25d0e5a03a Fix typo in changelog entry. 1995-08-09 18:59:48 +00:00
Jeff Law fbc3f1913d * configure.in (powerpc-*-aix*): Recognize as a new gdb host
and target.
         (powerpc-*-eabi*): Don't set configdirs.
         (powerpcle-*-eabi*0: Likewise.
         * configure: Updated.
         * rs6000-nat.c (vmap_ldinfo): Don't relocate data addresses
         for the main objfile if DONT_RELOCATE_SYMFILE_OBJFILE is
         defined.
         * config/powerpc/{aix.mh,aix.mh}: Host and target makefile fragments
         for powerpc running aix4.
         * config/powerpc/{nm-aix.h, tm-ppc-aix.h, xm-aix.h}: Native, target
         and host include files for powerpc running aix4.

More of Mike's powerpc work + minor changes.
1995-08-09 18:53:41 +00:00
Stan Shebs 327332d87d * top.c (target_output_hook): Really make it match defs.h (char *
is not the same as unsigned char *).
1995-08-09 15:16:33 +00:00
J.T. Conklin c61c48c055 * Makefile.in (CXX_FOR_TARGET): Don't use ${rootme}/../gcc/xgcc
unless it is present.
1995-08-08 22:15:20 +00:00
Jeff Law 7aaec27bc7 * top.c (target_output_hook): Make declaration match the one
in defs.h.
1995-08-08 18:01:46 +00:00
Jeff Law 842bdf8ce1 * symfile.c (add_psymbol_to_list): Initialize SYMBOL_SECTION.
(add_psymbol_addr_to_list): Likewise.
        * symfile.h (ADD_PSYMBOL_VT_TO_LIST): Likewise.
1995-08-08 17:53:58 +00:00
Steve Chamberlain 764efb58e9 * top.c (target_output_hook): New definition. 1995-08-07 22:42:19 +00:00
Steve Chamberlain b6d70e158a * stack.c (gdb_string.h): Include after defs.h
* defs.h (target_output_hook): New declaration.
	* source.c (mod_path): Fix Win32 \ handling.
1995-08-07 22:39:00 +00:00
Jeff Law f4eec25cb8 * hppa-tdep.c (frame_saved_pc): Don't try to dig a return pointer
out of a long branch stub.

hpux10 _start is incorrectly marked as a long-branch stub.
1995-08-07 04:17:24 +00:00
Fred Fish 605b7789b1 Document FSF address updating of all files with FSF addresses,
except for the COPYING* files.
1995-08-03 18:42:27 +00:00