Commit Graph

5665 Commits

Author SHA1 Message Date
David Edelsohn
bbc6c9c129 Fix typo. 1995-11-29 03:36:46 +00:00
David Edelsohn
7c40dd08ee * Makefile.in (target_subdir): Define.
(CC_FOR_TARGET, CXX_FOR_TARGET): Use it to find target libraries.
	* configure.in (X_CFLAGS): Fix typo.
	(target_subdir): Set to "${target_alias}/" if cross.
	* configure: Regenerated.
1995-11-29 03:35:35 +00:00
David Edelsohn
9c0bc1daf9 * Makefile.in (target_subdir): Define.
(CC_FOR_TARGET, CXX_FOR_TARGET): Use it to find target libraries.
	* configure.in (X_CFLAGS): Fix typo.
	(target_subdir): Set to "${target_alias}/" if cross.
	* configure.in: Regenerated.
1995-11-29 03:34:57 +00:00
David Edelsohn
4588619966 * dbxread.c (dbx_symfile_read): Set block_address_function_relative
for `pe' format files.
1995-11-28 23:45:17 +00:00
Fred Fish
bfe8f51619 * magic.h: Renamed to gmagic.h to avoid <magic.h> conflict.
* magic.c:  Renamed to gmagic.c in sympathy.
	* eval.c, gmagic.c, config/tm-magic.h:
 	Include "gmagic.h" rather than "magic.h".
1995-11-28 19:33:22 +00:00
Fred Fish
79e6c66069 * pr-5016.exp: xfail "whatis i" for alpha-osf-dec-osf2*, same as linux. 1995-11-27 22:44:38 +00:00
Fred Fish
edc1ccab96 * gdb.base/signals.exp: Setup "alpha-*-osf2*" xfail for
"bt in signals.exp".
	* gdb.base/a1-selftest.exp: Add alpha-dec-osf2 setup_xfail for
	"step over execarg initialization" and
 	"step over corearg initialization".
	* gdb.base/ptype.c (main): Declare malloc as a "char *" for systems
	with sizeof(pointer) > sizeof(int).  Avoid "void *" or include files.
1995-11-27 22:43:08 +00:00
Fred Fish
d38644cd59 Left out of last cvs commit... 1995-11-25 20:27:38 +00:00
Fred Fish
782445c7aa From Rob Savoye (rob@poseidon.cygnus.com)
* Makefile.in, configure.in, gdb.base/{Makefile.in, configure.in},
	gdb.c++/{Makefile.in, configure.in}, gdb.chill/{Makefile.in, configure.in},
	gdb.disasm/{Makefile.in, configure.in}, gdb.stabs/{Makefile.in, configure.in},
	gdb.threads/{Makefile.in, configure.in}: Major reworking for autoconfig.
	* aclocal.m4, configure, gdb.base/configure, gdb.c++/configure,
	gdb.disasm/configure, gdb.stabs/configure, gdb.stabs/default.mt : New files.
	* config/unix-gdb.exp:  Make GDB global.
	* gdb.base/{a1-selftest.exp, a2-run.exp,bitfields.exp, break.exp, callfuncs.exp,
	commands.exp, corefile.exp, crossload.exp, exprs.exp, funcargs.exp, interrupt.exp,
	langs.exp, list.exp, mips_pro.exp, nodebug.exp, opaque.exp, printcmds.exp,
	ptype.exp, recurse.exp, regs.exp, return.exp, scope.exp, setvar.exp, sigall.exp,
	signals.exp, term.exp, twice.exp, watchpoint.exp, whatis.exp},
 	gdb.c++/{classes.exp, callfuncs.exp, inherit.exp, misc.exp, templates.exp,
	virtfunc.exp}, gdb.chill/{callch.exp, chillvars.exp, misc.exp, pr-4975.exp,
	pr-5016.exp, pr-5020.exp, pr-5022.exp, pr-5646.exp, pr-5984.exp, pr-6292.exp,
	pr-6632.exp, pr-8134.exp, pr-8136.exp, result.exp, string.exp, tuples.exp},
	gdb.disasm/{hppa.exp, sh3.exp}, gdb.stabs/weird.exp: Change continues
 	to returns as necessary, arrange for test to compile own testcase executable.
	* lib/gdb.exp: Changes for testsuite to compile own test cases.

	From Fred Fish (fnf@cygnus.com)
	* gdb.c++/classes.exp (test_pointers_to_class_members): Add
 	clear_xfail at end of test which might not call either pass or fail.
	* gdb.base/a1-selftest.exp: Add i*86-*-linuxaout xfail for
	"backtrace through signal handler".
1995-11-25 19:55:29 +00:00
Peter Schauer
9b041f69fc * mdebugread.c (handle_psymbol_enumerators, parse_symbol):
Recognize enums from alpha cc -migrate.
	(upgrade_type):  Pass correct fd to parse_symbol when parsing
	the index type of an array.
	(parse_procedure, parse_lines, psymtab_to_symtab_1):  Handle
	unsorted procedure descriptors from Irix 5.x and Alpha OSF/1-3.x
	shared libraries. Use CORE_ADDR instead of `unsigned long' in
	procedure descriptor address computations.

	* symtab.c (decode_line_1):  Prevent accidental strchr match
	of a null character with the terminating null character of
	gdb_completer_quote_characters.
	(cplusplus_hint):  Make sure that only a single quote is printed
	in the hint message.
1995-11-25 11:32:18 +00:00
Jeff Law
05ee0201d1 * top.c (recurse_read_control_structure): Don't make cleanups
here.  Callers handle that correctly.
Fixes 6794.
1995-11-24 23:21:38 +00:00
Fred Fish
255764a946 * config/m68k/xm-hp300hpux.h: Define MMAP_BASE_ADDRESS and MMAP_INCREMENT.
Also force HAVE_MMAP to be defined since autoconf is currently broken
	for detecting a working mmap under hpux.
	* config/pa/xm-hppah.h (MMAP_BASE_ADDRESS): Tweak MMAP_BASE_ADDRESS
	to a better value suggested by Jeffrey A Law (law@cygnus.com).
1995-11-22 04:26:03 +00:00
Fred Fish
ac99f5b274 * config/pa/xm-hppah.h: Define MMAP_BASE_ADDRESS and MMAP_INCREMENT.
Also force HAVE_MMAP to be defined since autoconf is currently broken
	for detecting a working mmap under hpux.
1995-11-21 18:19:58 +00:00
Fred Fish
9c38648171 * objfiles.c (map_to_address): Have gdb print a warning when it
is compiled with HAVE_MMAP but without both MMAP_BASE_ADDRESS and
 	MMAP_INCREMENT defined (thus making it appear mmap doesn't work).
1995-11-21 18:19:23 +00:00
Stu Grossman
78570d35b6 * infrun.c (wait_for_inferior): Add support for dynamic function
trampolines.  These are pieces of code between the caller and the
	callee that figure out the address of the callee's code at run
	time.  Upon entry, we can't figure out the callee's address, so we
	set a breakpoint within the trampoline where the address will be
	known, and continue the target.  Once we hit the breakpoint, we
	break at the callee's address and proceed as usual.
start-sanitize-gm
	* config/tm-magic.h:  Define DYNAMIC_TRAMPOLINE_NEXTPC.  Turn off
	IN_SOLIB_CALL_TRAMPOLINE and IN_SOLIB_RETURN_TRAMPOLINE.
end-sanitize-gm
1995-11-20 22:40:34 +00:00
Fred Fish
e7b6403a67 * objfiles.c (allocate_objfile): Change warning message about mapped
symbol tables so that it is obvious that they are not supported on
	this particular machine rather than implying they are not supported
	at all in this version of gdb.
1995-11-20 19:22:40 +00:00
Peter Schauer
e701f52174 * stack.c (print_frame_info): Use minimal symbol only if
fi->pc is in a known section.
1995-11-20 09:01:52 +00:00
Angela Marie Thomas
2d777c7e4d fix typo 1995-11-19 21:13:20 +00:00
Peter Schauer
f2ebb24d94 * irix5-nat.c, osfsolib.c (solib_address): Return the name of the
containing solib.
1995-11-19 13:31:52 +00:00
Angela Marie Thomas
9547d27ffb added ppc-bug.c to Things-to-keep 1995-11-19 09:36:55 +00:00
Angela Marie Thomas
f6a72e5046 removed nm-irix5.h, nm-m3.h, nm-sysv4.h 1995-11-19 09:21:38 +00:00
Angela Marie Thomas
5c3b4d7e01 removed ppcbug-rom.o 1995-11-19 09:18:49 +00:00
Fred Fish
d0e0eca26e * solib.c (solib_address): Return the name of the containing solib.
* solib.h (PC_SOLIB): New macro; define using solib_address.
	* stack.c (print_frame_info) [PC_SOLIB]: If no function name, try
	PC_SOLIB on the PC value.
1995-11-19 07:16:03 +00:00
Peter Schauer
a94bead5fc * gdb.stabs/alpha.mt: Use $(CFLAGS) when building weird.o. 1995-11-18 12:25:18 +00:00
Peter Schauer
2e11fdd8f8 * annotate.c (annotate_source, annotate_frame_begin): Issue
`0x' prefix for the pc value, to remain consistent with previous
	GDB versions.

	* blockframe.c (find_pc_partial_function), config/pa/tm-hppa.h:
	Remove Sun shared library transfer hack and
	INHIBIT_SUNSOLIB_TRANSFER_TABLE_HACK, it is obsoleted by the
	mst_solib_trampoline minimal symbols.

	* blockframe.c (inside_main_func):  Check main_func_*pc against
	INVALID_ENTRY_*PC, not zero.
	* symfile.c (init_entry_point_info):  Initialize ei.*pc with
	INVALID_ENTRY_*PC.
	* mipsread.c (mipscoff_symfile_read):  If the entry_file bounds
	are still unknown after processing the partial symbols, then try
	to set them from the minimal symbols.

	* infcmd.c (registers_info):  Error out if selected_frame is NULL.
	* stack.c (return_command):  Select new current frame silently if
	not interactive.

	* mipsread.c (read_alphacoff_dynamic_symtab):  Ignore additional
	DT_MIPS_LOCAL_GOTNO and DT_MIPS_GOTSYM entries.

	* irix5-nat.c (solib_create_inferior_hook):  Call solib_add only
	if auto_solib_add_at_startup is nonzero.
	(_initialize_solib):  Add "set auto-solib-add" command.
	* osfsolib.c (solib_create_inferior_hook):  Call solib_add only
	if auto_solib_add_at_startup is nonzero.
	(_initialize_solib):  Add "set auto-solib-add" command.
1995-11-18 12:19:25 +00:00
Rob Savoye
7bb5e83191 * configure.in: Change "idt" config to a generic "embed" config
for all mips*-*-ecoff or elf configurations.
	* configure: Regenerate using autoconf 2.4.
	* config/mips/{idt*.mt,tm-idt*.h}: Rename to "idt" part of the
	name to "embed". Build remote-array.o along with IDT protocols.
	* remote-array.c: Nuke setting the serial port to 4800 baud.
1995-11-18 00:25:35 +00:00
Stan Shebs
21ef3a298e * utils.c: Don't include sys/ioctl.h etc if MPW is host. 1995-11-16 01:24:25 +00:00
David Edelsohn
d7cde714c1 * config/arm/tm-arm.h (ADDITIONAL_REGISTER_NAMES): Fix r5.
(FRAME_SAVED_PC): Minor clean up.
1995-11-15 20:18:00 +00:00
Michael Meissner
cc7ef3c306 ppcbug-rom checkin 1995-11-15 15:36:47 +00:00
Jeff Law
dfbb1a26dc * gdb.base/callfuncs.exp: Remove bogus hppa xfails.
* gdb.base/corefile.exp: Likewise.
        * gdb.base/funcargs.exp: Likewise.

Never should have been there anyway.
1995-11-15 07:30:52 +00:00
Michael Meissner
97a002e72a Switch to using new fangled monitor.o routines for ppcbug, rather than remote 1995-11-15 00:11:14 +00:00
Stu Grossman
7c0fe2ebbd * config/hmsirom.exp: Setup for talking to hmsi ROM monitor.
* config/monitor.exp:  Add support for setting baud rate.
1995-11-14 23:41:36 +00:00
Stu Grossman
ee824ca663 * monitor.c (monitor_load_srec monitor_make_srec): Move all
S-record download code into srec.c.
	* srec.c srec.h:  New files.  Contain S-record loading routines
	formerly in monitor.c.
	* serial.c serial.h:  New routine just like fprintf, but uses
	serial_t instead of FILE *.
	* sh-tdep.c (frame_find_saved_regs init_extra_frame_info):
	Don't add four to saved pc (makes things match manual).  Also, fix
	bug where we didn't get pc from stack frame correctly.
	* config/sh/tm-sh.h (SAVED_PC_AFTER_CALL):  Don't add four to
	saved pc.  Real hardware does this for you.
	* sh3-rom.c (sh3_load):  New routine.  Sets up for download then
	calls generic S-record loader.
	* config/h8300/h8300.mt, config/h8500/h8500.mt,
	config/m68k/monitor.mt, config/pa/hppapro.mt, config/sh/sh.mt:
	Add srec.o to TDEPFILES.
1995-11-14 23:40:18 +00:00
Stu Grossman
5c8ba01776 * monitor.c (monitor_load_srec monitor_make_srec): Move all
S-record download code into srec.c.
	* srec.c srec.h:  New files.  Contain S-record loading routines
	formerly in monitor.c.
	* serial.c serial.h:  New routine just like fprintf, but uses
	serial_t instead of FILE *.
	* sh-tdep.c (frame_find_saved_regs init_extra_frame_info):
	Don't add four to saved pc (makes things match manual).  Also, fix
	bug where we didn't get pc from stack frame correctly.
	* config/sh/tm-sh.h (SAVED_PC_AFTER_CALL):  Don't add four to
	saved pc.  Real hardware does this for you.
	* sh3-rom.c (sh3_load):  New routine.  Sets up for download then
	calls generic S-record loader.
	* config/h8300/h8300.mt, config/h8500/h8500.mt,
	config/m68k/monitor.mt, config/pa/hppapro.mt, config/sh/sh.mt:
	Add srec.o to TDEPFILES.
1995-11-14 23:24:10 +00:00
Michael Meissner
3ae5193668 Add preliminary ppcbug support. 1995-11-14 21:25:11 +00:00
Michael Meissner
855bfb535f Add preliminary ppcbug support. 1995-11-14 21:17:20 +00:00
Jeff Law
5a014755c0 Zap partial-stab.h:GDB_TARGET_IS_HPPA item. 1995-11-14 18:31:28 +00:00
Jeff Law
3306c363e3 * partial-stab.h: Remove GDB_TARGET_IS_HPPA kludge.
gcc-2.7.0 and gdb-4.15 have been released, so some old crud can
disappear.  Yippie!
1995-11-13 20:15:42 +00:00
Victoria Mixon
e0d3ace23a modified from 95q4 1995-11-10 19:44:30 +00:00
Michael Meissner
3c0bf315f5 Enable powerpc simulator for all powerpc-eabi targets, not just powerpc-eabisim if compiling with GCC. Add --enable-sim-powerpc option to control this. 1995-11-09 22:41:34 +00:00
Raymond Jou
96336a434c * mpw-config.in: Add variable with names of SIOW libraries.
* mpw-make.sed: Add an action to build SIOWgdb.
1995-11-09 22:24:44 +00:00
Stan Shebs
653b07da0c * mpw-make.sed: Edit @ENABLE_CFLAGS@ out, mpw-configure can
add back in if necessary.
1995-11-09 03:31:21 +00:00
Jackie Smith Cashion
549cd3bac1 * config/mips/vr4300.mt: Added simulator to default VR4300 build.
NOTE: Only the BigEndian build has the simulator included, because a
LittleEndian simulator is not constructed at the moment (it should
work, but has not been tested fully).
1995-11-08 16:04:23 +00:00
Stu Grossman
9cacb47b67 * remote-mips.c (mips_initialize): Fix brain damage found by
Jamie.  Basically had case statement in the wrong place...
	* (mips_load):  Remove unnecessary `db tty0' command.  It's all
	handled by mips_initialize now.
1995-11-08 00:33:16 +00:00
Stu Grossman
afb6948757 * remote-mips.c (mips_initialize): Fix brain damage found by
Jamie.  Basically had case statement in the wrong place...
1995-11-08 00:06:58 +00:00
Raymond Jou
ccb98a5afd Exclude resources from SIOWgdb. 1995-11-07 21:13:49 +00:00
Jackie Smith Cashion
8b07d12c1f * remote-mips.c (mips_initialize): Updated to talk to VR4300 RISQ
monitor board.

The mips_initialize() code seemed to have a "funny" switch
statement. I also removed an unnecessary switch into debug monitor
mode just before the call to mips_initialize() in mips_load().
1995-11-07 15:05:04 +00:00
Jackie Smith Cashion
3ce59aa616 *** empty log message *** 1995-11-06 12:02:33 +00:00
Jackie Smith Cashion
ccbd58529b Change TARGET_MONITOR_PROMPT into real strings. 1995-11-06 11:53:53 +00:00
Jackie Smith Cashion
25ba9e8f26 *** empty log message *** 1995-11-06 11:49:44 +00:00