Commit Graph

3184 Commits

Author SHA1 Message Date
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
25ba9e8f26 *** empty log message *** 1995-11-06 11:49:44 +00:00
Jason Molenda
da3d57e3f7 * configure.in (AC_CHECK_HEADERS): add stddef.h. 1995-11-05 08:13:39 +00:00
Fred Fish
2bf4561a01 Fix typo in ChangeLog itself. 1995-11-05 05:59:49 +00:00
Fred Fish
1738bcd31b * Makefile.in (COMMON_OBS): Use corefile.o rather than core.o
* core.c:  Rename to corefile.c.
	* config/pyr/tm-pyr.h, umax-xdep.c, sun386-nat.c, pyr-xdep.c,
	* Makefile.in (SFILES), gould-xdep.c, coredep.c, armtdep.c,
 	arm-xdep.c, altos-xdep.c: Change core.c references to corefile.c.

 	From Graham Stoney <greyham@research.canon.oz.au>.
	* Makefile.in (remote-array.o):  Add rule to build.
	(ALLDEPFILES): Add remote-array.c
	* remote-array.c (baud_rate):  Remove unnecessary declaration.
	(baudrate):  Remove.
	(array_files_info):  Print global baud_rate not baudrate.
1995-11-05 00:58:57 +00:00
Stu Grossman
188c635fbb * Makefile.in (INTERNAL_CFLAGS): Add ENABLE_CFLAGS.
* fork-child.c (fork_inferior):  Add call to
	TARGET_CREATE_INFERIOR_HOOK to allow target specific code to get
	control just before the new process executes it's first instruction.
	* remote-mips.c (mips_initialize):  Cleanup a bit.  Don't try to
	receive a packet at first.  This speeds up initialization a lot.
	Use TARGET_MONITOR_PROMPT instead of "<IDT>".
	(common_breakpoint):  Use rresponse instead of rerrflg to inspect
	error code.
	* symfile.c (syms_from_objfile reread_symbols):  Call
	TARGET_SYMFILE_POSTREAD to allow target specific code to get
	control after reading new symbols.
	* target.h:  New macros TARGET_SYMFILE_POSTREAD, and
	TARGET_CREATE_INFERIOR_HOOK.  See above for descriptions.
	* config/mips/{irix5.mh nm-irix5.h}:  Delete nm-irix5.h.  Make
	NAT_FILE point directly at ../nm-sysv4.h.
	* config/mips/{mipsm3.mh nm-m3.h}:  Delete nm-m3.h.  Make
	NAT_FILE point directly at ../nm-m3.h.
	* config/mips/{mipsv4.mh nm-sysv4.h}:  Delete nm-sysv4.h.  Make
	NAT_FILE point directly at ../nm-sysv4.h.
	* config/mips/nm-mips.h:  Improve comment at top of file.
	* config/mips/tm-mips.h (TARGET_MONITOR_PROMPT):  Change
	definition into a proper string.
start-sanitize-gm
	* configure configure.in:  Add support for --enable-gm.
	(mips*-*-magic*):  Change target from magic to idt.
	* eval.c expprint.c expression.h parse.c remote-mips.c utils.c:
	Change GENERAL_MAGIC_HACKS to GENERAL_MAGIC.
	* magic.c magic.h:  Update files from GM.
	* config/mips/magic.mt:  Delete.  No longer necessary now that we
	use --enable mechanism.
	* config/mips/tm-idt.h:  Add GM stuff needed for remote GM box.
	* config/mips/tm-irix5.h:  Add GM stuff needed for native Irix box.
	* config/mips/tm-magic.h:  Move up to config/tm-magic.h.  Move all
	platform specific stuff into tm-irix.h and tm-idt.h.  Add defs for
	TARGET_SYMFILE_POSTREAD and TARGET_CREATE_INFERIOR_HOOK.
end-sanitize-gm
1995-11-04 19:02:42 +00:00
Fred Fish
183e1f0d7c * i386-tdep.c (i386_extract_return_value): Make function visible
for all i386 targets, but only assume floating point values returned
	in floating point registers for I386_AIX_TARGET.

	* i386v-nat.c (i386_register_u_addr):  Enable code to locate
	floating point regs in user struct.
1995-11-02 15:31:46 +00:00
Fred Fish
8b14bbe5be * breakpoint.c (breakpoint_re_set): Fix typo in comment. 1995-11-01 23:06:12 +00:00
Fred Fish
e6729433e6 * symtab.c (in_prologue): Document func_start and when it is zero
don't call SKIP_PROLOGUE (which typically leads unconditionally to
	an error when we try to access a prologue at address 0).
1995-11-01 20:11:52 +00:00
Fred Fish
a99d0ef1ea * elfread.c: Include elf-bfd.h rather than libelf.h. 1995-10-31 23:58:52 +00:00
Steve Chamberlain
9cbf6c0e3a Tue Oct 31 10:42:42 1995 steve chamberlain <sac@slash.cygnus.com>
* win32-nat.c (xlate_exception): Treat a stack overflow like a SEGV.
1995-10-31 18:50:02 +00:00
Fred Fish
0ff516fd7d * monitor.c: Include gnu-regex.h rather than system regex.h. 1995-10-29 19:28:08 +00:00
Steve Chamberlain
686941a9cb Sat Oct 28 23:51:48 1995 steve chamberlain <sac@slash.cygnus.com>
* defs.h: Test on name __WIN32__ rather than WIN32.
	* inflow.c (new_tty): Likewise
	* terminal.h: Likewise.
	* utils.c (initialize_utils): Likewise.
	* win32-nat.c (child_create_inferiror): Print error code when failing.
	* config/i386/win32.mh (XM_CLIBS): Need -lkernel32.
1995-10-29 06:58:26 +00:00
Peter Schauer
b1027aa458 * symtab.h (enum address_class): Add LOC_UNRESOLVED for
a location whose address has to be resolved via the minimal
	symbol table.
	* buildsym.c (finish_block), findvar.c (symbol_read_needs_frame,
	read_var_value), printcmd.c (address_info),
	symmisc.c (print_symbol, print_partial_symbol):  Handle
	LOC_UNRESOLVED.
	* stabsread.c (scan_file_globals):  Change unresolved LOC_STATIC
	symbols to LOC_UNRESOLVED. Remove rt_common_objfile lookup
	kludge, global common symbols are now handled by LOC_UNRESOLVED.
	(scan_file_globals_1):  Move code back to scan_file_globals,
	delete.
1995-10-28 11:57:02 +00:00
Stu Grossman
0fb3e100cb * config/mips/tm-magic.h config/mips/magic.mt: New files for
magic target support.
1995-10-27 17:53:44 +00:00
Stu Grossman
cd10c7e388 * breakpoint.c (breakpoint_re_set): #ifdef GET_LONGJMP_TARGET
around calls to create_longjmp_breakpoint.  Why install the
	breakpoints if we can't find the longjmp target?
	* infrun.c (wait_for_inferior):  Cleanup comments near call test.
	* remote-mips.c:  Fixed a bunch of prototypes to avoid char/int
	complaint from picky compilers.  Add comment to mips_expect.
	Replace all instances of sr_get_debug with remote_debug.
	* (mips_readchar):  Don't jam init string to monitor.
	mips_initialize() handles that.
	* (mips_receive_header):  Print better message when we get too
	much garbage.
	* (mips_request):  Allow caller to pass in buff to allow them to
	analyze the returned message.
	* (mips_initialize):  Re-do initialization to try sending a BREAK,
	a ^C, and then a download escape sequence.  Cleanup protocol
	startup.  Eliminate sleeps.  Clear breakpoints (if using monitor
	breakpoints).  Re-init frame.
	* (mips_detach):  Close down target.
start-sanitize-gm
	* (mips_resume):  Pass signal down to target.
	* (mips_create_inferior):  Start target with TARGET_SIGNAL_PWR.
end-sanitize-gm
	* (mips_wait):  Handle return status with registers, or breakpoint stuff.
	* (mips_kill):  Add ^C handling.
	* (mips_insert_breakpoint mips_remove_breakpoint):  Call new
	breakpoint stuff if enabled.
	* (calculate_mask remote_mips_set_watchpoint
	remote_mips_remove_watchpoint remote_mips_stopped_by_watchpoint):
	Hardware watchpoint/breakpoint stuff.
	* (common_breakpoint):  Common code for new monitor breakpoint commands.
	* (mips_load):  Don't use `prompt'.  It's a global variable.
	* top.c (dont_repeat_command):  New command for use in
	user-defined commands to suppress auto-repeat (by hittin return key).
start-sanitize-gm
	* utils.c (request_quit):  Call target_kill here.  Good idea.
	Needs a better implementation.
end-sanitize-gm
	* valops.c:  Add start of auto function-call abandonment capability.

start-sanitize-gm
	* c-exp.y:  Add code (currently disabled) to handle GM dynamic
	structures (it conflicts with @!).
	* eval.c (evaluate_subexp_standard):  ditto.
	* expprint.c (print_subexp dump_expression):  ditto.
	* expression.h (enum exp_opcode):  ditto.
	* parse.c (length_of_subexp):  ditto.
	* configure, configure.in:  Add mip*-*-magic* target.
	* magic.c magic.h:  Special routines to handle GM stuff (like
	stepping through dispatcher).
end-sanitize-gm
1995-10-27 17:48:36 +00:00
Stan Shebs
e33bf0ab90 * config/xm-mpw.h: New file, all-Mac host support.
* config/m68k/xm-mpw.h: Move most definitions into generic Mac
	support.
	* config/powerpc/xm-mpw.h: New file, PowerMac host support.
1995-10-27 05:19:11 +00:00
Stan Shebs
7bd447bae3 * mpw-config.in: Add support for PowerMac host, add beginnings
of native support.
	* mpw-make.sed: Disable subdir recursion, edit out useless rule.
	* mac-xdep.c (Values.h): Don't include.
	(GestaltEqu.h): Include Gestalt.h instead.
	(do_mouse_down): Comment out control tracking, needs to be
	updated to use UPP before will work on PowerMac.
1995-10-27 05:04:44 +00:00
Brendan Kehoe
811f1bdce6 * regex.h: Renamed to gnu-regex.h.
* regex.c: Renamed to gnu-regex.c.
	* Makefile.in (POSSLIBS): Refer to gnu-regex.h and gnu-regex.c.
	(REGEX, REGEX1): Change to gnu-regex.o instead of regex.o.
	(regex.o): Renamed to gnu-regex.o; refer to gnu-regex.c.
	(irix5-nat.o, osfsolib.o, gnu-regex.o, solib.o, source.o, symtab.o):
	Likewise.
	* irix5-nat.c, osfsolib.c, gnu-regex.c, solib.c, source.c, symtab.c):
	Include "gnu-regex.h" instead of "regex.h".
	* alpha-tdep.c (in_prologue): Rename to alpha_in_prologue, to
	avoid conflicts with symtab.h.

fixes building gdb under OSF/1 4.0
1995-10-26 23:54:44 +00:00
Jason Molenda
9b820af837 forgot to check this in. 1995-10-25 02:17:02 +00:00
Stu Grossman
fe5cfadd42 * monitor.h (struct memrw_cmd->resp_delim): Document this as a regexp. 1995-10-24 21:35:23 +00:00
Stu Grossman
283dc598b8 * monitor.c (monitor_expect_regexp): Same as monitor_expect, but
with the obvious extension.  (monitor_read_memory_single):  Use
	regexp for getmem.resp_delim because of parsing ambiguities caused
	by certain monitors.  (monitor_read_memory):  Use new regexp stuff
	to parse getmem.resp_delim.
	* sh3-rom.c:  Finish off table.  Use new regexp capability for
	getmem commands.
1995-10-24 21:31:07 +00:00
Stu Grossman
3f687c7896 * infrun.c (wait_for_inferior): Disable questionable code near
the step range test.  Replace call detection test with much
	simpler (and more efficient) test that doesn't require prologue
	examination (as often).
	* symtab.c symtab.h (in_prologue):  New function that indicates
	whether or not we are in a function prologue.  This uses the
	symbol table, and then falls back to prologue examination if that
	fails.  It's much more efficient for remote debugging because it
	avoids examining memory, which is very slow.  This is used in
	wait_for_inferior to determine if we've made a function call that
	needs to be skipped over (for next/nexti).
	* mips-tdep.c (after_prologue):  New function, returns the PC
	after the prologue.  Uses PDRs and the symbol table.
	(mips_find_saved_regs):  Use in_prologue() to avoid costly
	prologue examination if possible.
	(mips_skip_prologue):  Use after_prologue() if possible to avoid
	costly prologue examination.
1995-10-24 21:22:56 +00:00
Jackie Smith Cashion
0e3a4b1e8e The revision 2.48 change (grossman 1995/10/16) had unfortunately
broken the prompt spotting for the <RISQ> variant of the IDT
monitor. Also took this opportunity to add the vr4300 configure.in
options.
1995-10-23 16:09:58 +00:00
Peter Schauer
09af586854 * alpha-tdep.c, mips-tdep.c (init_extra_frame_info):
Do not set saved registers from heuristics for a sigtramp frame.

	* dwarfread.c (enum_type):  Determine signedness of enum type
	from enumerators.

	* mips-tdep.c:  Include gdb_string.h, gcc -Wall lint.

	* rs6000-nat.c (xcoff_relocate_core):  Fix typo.

	* valops.c (value_repeat):  Fix length of memory transfer to
	match recent allocate_repeat_value change.
1995-10-21 13:14:53 +00:00
Stan Shebs
9e4c931641 * defs.h (SEEK_SET, SEEK_CUR): Add default definitions.
* dbxread.c, mdebugread.c, os9kread.c (SEEK_SET, SEEK_CUR):
	Remove default definitions.
1995-10-20 01:43:31 +00:00
Stan Shebs
987622b523 * Makefile.in (CC-LD): Rename to CC_LD, so MPW xform works.
(MMALLOC_SRC): Define.
	(MMALLOC_CFLAGS): Use.
	(ser-mac.o): Add rule.
	* dwarfread.c, somread.c, ultra3-nat.c, xcoffread.c: Replace L_SET
 	with SEEK_SET in all calls to bfd_seek.
	* scm-tags.h (scm_tags): Remove excess comma.
1995-10-19 19:54:44 +00:00
Stan Shebs
a6922ef003 * mpw-config.in: Adapt to work with autoconf'ed configury;
build config.h, add empty definitions to mk.tmp.
	(powerpc-apple-macos): Make it work.
	* mpw-make.sed: New file, sed commands to translate Unix makefile
	into MPW syntax.
	* mpw-make.in: Remove.
	* mac-gdb.r: New file, was macgdb.r, renamed for consistency
	with other tools, now includes cfrg resource.
	* macgdb.r: Remove.
	* config/m68k/xm-mpw.h: Remove most of contents, replace with
	include of include/mpw/mpw.h.
1995-10-19 19:29:52 +00:00
Jeff Law
5812b9a12d * hppa-tdep.c (frame_chain): Fix more obscure problems caused
by system calls that core dump processes without saving all
        the register state.
1995-10-18 05:48:23 +00:00
Jeff Law
ecf9ecee3c * config/pa/hppahpux.mt (XDEPFILES): Remove bogus definition.
* config/pa/hppapro.mt (XDEPFILES): Likewise.
1995-10-17 16:41:30 +00:00
Fred Fish
cd857a2da0 Fix typo 1995-10-17 15:21:36 +00:00
Stu Grossman
4704fd9cab * remote-mips.c: Add support for speedy (about 10x faster)
downloads.
1995-10-16 19:02:41 +00:00
Stu Grossman
59227c078d * remote-array.c: Move baud_rate initialization from
_initialize_array to array_open.  It was forcing the baud rate of
	all targets to be 4800 baud!  Seems like I've fixed this before...
	* config/mips/idt.mt (TDEPFILES):  Remove remote-array.o.  This
	has *nothing* to do with IDT!!!
1995-10-16 18:59:54 +00:00
Stu Grossman
d807bd8772 * gdbtk.c (gdb_disassemble): Use fprintf_unfiltered instead of
fprintf_filtered.
1995-10-16 18:54:29 +00:00
Stu Grossman
1480482acb * Makefile.in sh3-rom.c config/sh/sh.mt config/sh/tm-sh.h: Add
sh3 monitor support.
	* monitor.c:  Cleanup regexp compilation stuff to make it easier
	to use several regexps.
	* monitor.h:  Get rid of struct rom_cmd_data.  It's no longer used.
	* config/m68k/tm-monitor.h:  Don't redefine NUM_REGS here.  It just
	causes GDB to crash.
1995-10-16 18:51:15 +00:00
Stu Grossman
934ec87c6b * sparcl-tdep.c: Cleanup serial error handling. 1995-10-16 18:41:17 +00:00
Stu Grossman
4930f0a7f4 * dcache.c: Change default value of remotecache to off. It just
screws up too many targets.
	* sparcl-stub.c:  Add prototypes to many forward decls.
	* Create private copies of strlen, strcpy, and memcpy to prevent
	chaos when user steps into them.
	* (trap_low handle_exception):  Clean up DSU support code
	(hardware breakpoints).  Move lots of stuff from asm-land to
	C-land (make it much easier to #ifdef if necessary).  Also, use
	trap 255 to get into break mode instead of doing a DSU register
	write, which may trash the register.
	* (putpacket):  Don't check return value of putDebugChar.  It
	returns void...
1995-10-16 18:25:19 +00:00
Stan Shebs
cd8a3d845b * rs6000-tdep.c: Don't include a.out.h, improve some formatting. 1995-10-15 23:23:01 +00:00
Jeff Law
95037710ca * somsolib.c (som_solib_add): Just give a warning if a file
mentioned in the dld_list can't be found.
Warning seems more reasonable than croaking.

        * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP): Dig out
        the PC from the PC queues rather than %r31.
Fixes net bug.  Might also fix one of the hpux10 corefile.exp failures,
not sure (will test when I get back monday morning).
1995-10-13 17:05:53 +00:00
Jeff Law
148070cca4 * corelow.c (core_open): Don't update the to_sections and
to_sections_end fields in core_ops here.  It's too late.
        * irix5-nat.c (solib_add): Update the to_sections and
        to_sections_end fields in core_ops here if needed.
        * osfsolib.c (solib_add): Likewise.
        * rs6000-nat.c (xcoff_reload_core): Likewise.
        * solib.c (solib_add): Likewise.
        * somsolib.c (solib_add): Likewise.
1995-10-12 23:26:06 +00:00
Fred Fish
1c17c0902a * Makefile.in (VERSION): Bump version to 4.15.1 1995-10-12 00:29:59 +00:00
Fred Fish
3f38d5c97e Document changes 1995-10-10 20:21:21 +00:00
Steve Chamberlain
eb708f2e7a Tue Oct 10 12:25:11 1995 steve chamberlain <sac@slash.cygnus.com>
* win32-nat.c (child_create_inferior): Pass argv correctly.
	* Makefile.in (win32-nat.o): Add dependencies.
1995-10-10 19:33:04 +00:00
Steve Chamberlain
24e6097868 * NEWS: Add information about win32 and arm code.
* win32-nat.c: Renamed from win32.c
	* config/i386/win32.mh: Renamed from config/i386/i386win32.mh.
	* config/i386/win32.mt: Renamed from config/i386/i386win32.mt.
	* config/i386/tm-win32.h: Renamed from config/i386/tm-i386win32.h.
	* config/i386/xm-win32.h: Renamed from config/i386/xm-i386win32.h.
	* configure.in (i[345]86-*-win32): Updated to cope with filename changes.
	* configure: Regenerated.
1995-10-09 21:54:26 +00:00
Per Bothner
93f972b7de * ch-exp.y (yylex): Also look for '$' following '$'. 1995-10-09 01:00:09 +00:00
Michael Meissner
d88c6a8a92 fix typo 1995-10-08 02:53:24 +00:00
Jim Wilson
7a29d6863d Modify last patch based on advice from Stu. 1995-10-07 00:31:18 +00:00
Stan Shebs
b577652279 * top.c (execute_control_command): Use 0/1 instead of BFD's
true/false.
1995-10-07 00:27:31 +00:00
Stu Grossman
625559e742 * sparcl-stub.c: include sparclite.h to get access to register
fondling macros.
	* (trap_low):  Save and restore FP regs if necessary.  Also, clean
	up save and restore of debug unit regs.
	* (hard_trap_info):  Add more architecturally defined traps.
	* (set_debug_traps):  Only set FP disabled trap if FP is disabled.
	* (get_in_break_mode):  Clean up.  Get rid of calls to
	set_hw_breakpoint_trap().  Also, use write_asi macro
	* (handle_exception):  Clean up `g' and `G' commands.  Add `P'
	command.
	* (hw_breakpoint):  Why was this here!?  It's gone now...
1995-10-06 21:51:20 +00:00
Jim Wilson
abf6a9dc4e Changes to make the simulator work again.
* callback.c (fdbad): Fix typo in comment.
	(os_close, os_isatty, os_lseek, os_read, os_write): Use if statements
	rather than || to get correct return value.
	(os_write_stdout): Pass missing first argument to os_write.
	* remote-sim.c: Include callback.h.
	(_initialize_remote_sim): Call sim_set_callbacks and then initialize
	the callbacks.
1995-10-06 19:06:13 +00:00
Per Bothner
398f584f64 * values.c allocate_repeat_value): Allocate an array type, and
a value of that type; use that instead of setting VALUE_REPEATED.
	* value.h (struct value):  Remove fields repetitions and repeated.
	(VALUE_REPEATED, VALUE_REPETITIONS):  Removed, no longer used.
	* c-valprint.c, ch-valprint.c, eval.c, printcmd.c, valops.c,
	value.h, values.c:  Simplify, since now VALUE_REPEATED is never used.
	* valprint.c (value_print_array_elemen):  Removed never-used function.
1995-10-06 00:37:40 +00:00
Per Bothner
c700638ca7 * parse.c (write_dollar_variable): New function.
* c-exp.y (yylex):  Replace code for recognizing '$' pseudo-variables
	with a call to write_dollar_variable.
	Simplify grammar correspondingly.
	* f-exp.y:  Likewise.
	* m2-exp.y:  Likewise.
	* ch-exp.y:  Likewise.  (Remove function match_dollar_tokens.)
	* scm-exp.c (scm_lreadr):  Call write_dollar_variable to handle '$'.
1995-10-05 22:15:49 +00:00
Steve Chamberlain
0694bce619 Thu Oct 5 13:27:30 1995 steve chamberlain <sac@slash.cygnus.com>
* win32.c: New file; support for debugging on windows NT.
	* configure.in: (i[345]86-*-win32): New target.
	* configure: Regnerated.
	* eval.c (evaluate_subexp_standard): Remove unused name.
	* serial.c (gdb_string.h): Include.
	* source.c (value.h): Include.
	* config/i386/i386win32.mh (XDEPFILES): Add win32.o
	* config/i386/i386win32.mt: New.
	* config/i386/tm-i386win32.h: New.
1995-10-05 20:57:30 +00:00
Per Bothner
3c02944a98 * expression.h (enum exp_code): Added OP_NAME.
* expprint.c (print_subexp):  Add OP_NAME support.
	* parse.c (length_of_subexp, prefixify_subexp):  Likewise.
	* scm-lang.c (scm_unpack, in_eval_c, scm_lookup_name):  new function.
	* scm-lang.h:  Declare builtin_type_scm;  other minor tweaks.
	* values.c (unpack_long):  If type is SCM, call scm_unpack.
	* scm-valprint.c (scm_val_print):  Use extract_signed_integer,
	instead unpack_long
	* scm-lang.c: More Scheme expression parsing from here ...
	* scm-exp.c:  ... to here.  New file.
	Also, provide for gdb to evaluate simple constants and names..
	* Makefile.in:  Note new scm-exp.{c,o}.
1995-10-05 05:24:41 +00:00
Per Bothner
706bfe5a1c * gdbtypes.c (get_discrete_bounds): New function.
(force_to_range_type):  Use get_discrete_bounds.
	* gdbtypes.h (get_discrete_bounds):  Add declaration.
	* valarith.c (value_bit_index):  Generalize to use get_discrete_bounds.
	* ch-valprint.c (chill_val_print):  Make (power)sets and bitstring
	support use get_discrete_bounds and generally be more robust.
This fixes PR chill/8136.
1995-10-05 01:09:53 +00:00
Stan Shebs
82569cc199 * remote-nrom.c (nrom_ops): Add value for to_thread_alive,
add comment naming slots.
1995-10-03 23:58:49 +00:00
Jeff Law
a25ffb081f * top.c (build_command_line): Demand arguments for if/while
commands.
1995-10-03 03:48:32 +00:00
Jason Molenda
bac75810d1 * Makefile.in (X11_CFLAGS): Set only to @X_INCDIR@. 1995-10-02 20:12:04 +00:00
Per Bothner
5b4d668a82 * scm-lang.c: Moved Scheme value printing code to ...
* scm-valprint.c:  ... this new file.
	Also major improvements in support for printing SCM values.
	* scm-lang.h:  New file.
	* scm-tags.h:  New file.
	* Makefile.in:  Note new scm-valprint.{c,o}.
1995-09-30 23:36:40 +00:00
Jason Molenda
66efdff907 * configure.in: X_INCDIR and X_LIBDIR added.
* Makefile.in: @X_INCDIR@ and @X_LIBDIR@ added.
        * configure: Regnerated.
1995-09-30 16:38:16 +00:00
Steve Chamberlain
99f2ccd11f Fri Sep 29 02:10:05 1995 steve chamberlain <sac@slash.cygnus.com>
* config/arm/tm-arm.h (FRAME_CHAIN, FRAME_CHAIN_VALID):
	Any pc > LOWESTPC is ok.
1995-09-30 00:42:24 +00:00
Steve Chamberlain
b890317e1b * remote-rdp.c (rdp_init): Take out variable baud rate stuff.
(remote_rdp_detatch): Delete.
	* breakpoint.c (ctype.h): Don't include twice.
1995-09-30 00:06:55 +00:00
Per Bothner
0e4ca328e1 * defs.h (enum language): Add language_scm.
* expression.h (enum exp_code):  Added OP_EXPRSTRING.
	* scm-lang.c:  Preliminary support for Guile /SCM dialect of Scheme.
	* expprint.c (print_subexp):  Add OP_EXPRSTRING support.
	* parse.c (length_of_subexp, prefixify_subexp):  Likewise.
	* valops.c (find_function_in_inferior):  New function.
	(value_allocate_space_in_inferior):  New function.
	(allocate_space_in_inferior):  Redefine using previous function.
	* Makefile.in (SFILES):  Add scm-lang.c.
	(COMMON_OBS):  Add scm-lang.o
1995-09-29 01:43:54 +00:00
Steve Chamberlain
dedcc91de6 Thu Sep 28 14:32:11 1995 steve chamberlain <sac@slash.cygnus.com>
* callback.[ch]: New files.
	* remote-rdp.c: Support for the ARM RDP monitor.
	* Makefile: Update.
	* arm-tdep.c (arm_othernames): New.
	(_initialize_arm_tdep): install 'othernames' command.
	(arm_nullified_insn, shifted_reg_val, arm_get_next_pc): New.
	* configure.in: Check for termios.h, termio.h and sgtty.h.
	(i[345]86-*-win32*): New host.
	* configure: Regenerated.
	* inflow.c: Clean up inclusions.
	* main.c (main): Check for WINGDB, not WIN32.
	* printcmd.c (do_examine): Put QUIT test in loop.
	* remote-hms.c (e7000_load): Delete.
	(hms_ops): Point to generic_load instead.
	* remote-hms.c (hms_ops): Point to generic_load.
	* remote-sim.c (sim_callback_write_stdout): Becomes
	gdbsim_write_stdout.
	(gdbsim_load): Call generic_load.
	* remote-utils.c (gr_load_image): Delete.
	* ser-unix.c (terminal.h): Include instead of havig
	own #if tree.
	(hardwire_flush_input): Reset input buffer too.
	* source.c (openp): If WIN32 then open file in binary mode.
	* terminal.h: Configure IO mechanism using autoconf defines if available and
	not overriden.
	* utils.c (quit, pollquit, notice_quit): WIN32 check becomes WINGDB check.
	* config/arm/arm.mt (TDEPFILES): Add remote-rdp.o
	* config/arm/tm-arm.h (TARGET_BYTE_ORDER): becomes TARGET_BYTE_ORDER_SELECTABLE.
	(ADDR_BITS_REMOVE): New.
	(ORIGINAL_REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): New.
	(INST_xx): New
	(FRAME_FIND_SAVED_REGS): Pass the right argument.
	(arm_get_next_pc): Declare.
	* mswin/prebuilt/*/bfdtarget.h (SELECT_ARCHITECTURES): Need leading &.
1995-09-29 00:14:01 +00:00
Per Bothner
4c2260aa5c * valops.c (search_struct_field): Also allow "else" as a variant name, 1995-09-27 18:47:22 +00:00
Per Bothner
37d190e005 * eval.c (evaluate_struct_tuple): New function. Used to evaluate
structure tuples.  Now also handles Chill variant records.
	(get_label):  New function, used by evaluate_struct_tuple.
	(evaluate_subexp_standard case OP_ARRAY):  Use evaluate_struct_tuple.
	(evaluate_labeled_field_init):  Removed.
	* valops.c (search_struct_field):  Generalize to work with Chill
	variant records.
1995-09-27 17:24:45 +00:00
Peter Schauer
4f8710e6ff * rs6000-tdep.c (push_dummy_frame): Handle lr_offset of zero
correctly.
1995-09-23 13:30:04 +00:00
Peter Schauer
df1e1074de * mdebugread.c (parse_partial_symbols): Reset includes_used
and dependencies_used after finishing the partial symbol table.

	* rs6000-nat.c (xcoff_relocate_core):  Don't relocate data
	addresses for the main objfile if DONT_RELOCATE_SYMFILE_OBJFILE
	is defined.
	* xcoffread.c:  gcc -Wall lint. Remove traceback table reading
	code. The existing code tried to add parameter information for
	functions compiled without -g, which cannot be done properly
	for optimized code and produced misleading parameter displays.
	(ef_complaint, eb_complaint):  Make a local static copy to avoid
	dependency on coffread.c.
	(read_xcoff_symtab, process_xcoff_symbol, scan_xcoff_symtab):
	Enter C_EXT/C_HIDEXT symbols into the minimal symbol table only.
	(read_xcoff_symtab):  Ignore C_STAT section auxiliary entry
	symbols. Complain about unmatched .ef and .eb symbols instead of
	segfaulting.
	(process_xcoff_symbol):  Determine value of C_GSYM symbols via
	the global_sym_chain mechanism in stabsread.c.
	(xcoff_new_init):  Call stabsread_new_init and buildsym_new_init.
	(init_string_tab):  Initialize length field bytes in the strtbl.
	(scan_xcoff_symtab):  Skip symbols that start with `$' or `.$'.
	Set first_fun_line_offset for symbols with two auxents only.
1995-09-23 11:09:52 +00:00
Jeff Law
78441c6f94 * op50-rom.c (op50n_cmds): Send ".\r" after the interrupt
character.
1995-09-21 03:11:16 +00:00
Ian Lance Taylor
582433a889 add maintainer-clean Makefile targets 1995-09-20 17:24:12 +00:00
Steve Chamberlain
5e67328f28 Wed Sep 20 08:16:03 1995 steve chamberlain <sac@slash.cygnus.com>
* defs.h (xmalloc, xrealloc): Delete, they're declared in libiberty.h.
	(GETENV_PROVIDED, FCLOSE_PROVIDED): New.
	* doc/gdbint.texinfo (GETENV_PROVIDED, FCLOSE_PROVIDED): Document.
	* remote-sim.[ch] (sim_callback_write_stdout): New.
1995-09-20 16:57:36 +00:00
Per Bothner
b46805224b * gdbtypes.c (create_set_type): Set TYPE_LENGTH in bytes, not bits.
* valops.c (value_bitstring):  TYPE_LENGTH is bytes, not bits.

	* gdbtypes.c (force_to_range_type):  Calculate upper limit of
	TYPE_CODE_CHAR depending on TYPE_LENGTH (instead of just using 255).
1995-09-19 22:39:04 +00:00
Jeff Law
667315a3e1 * somsolib.c (auto_solib_add_at_startup): Delete definition. No
longer needed.
1995-09-18 07:48:34 +00:00
Peter Schauer
cc917275be * config/mips/tm-mips.h (UNUSED_REGNUM): Define.
* mipsv4-nat.c (supply_gregset):  Fill UNUSED_REGNUM register
	with zero.
1995-09-16 20:37:36 +00:00
Stu Grossman
0672384c27 * remote-sim.c (gdbsim_create_inferior): Back out change that
broke all simulator configurations except the rs6000.
1995-09-15 00:41:32 +00:00
Jeff Law
ee90dcc2dc * monitor.c (monitor_expect): Discard NULL characters.
Fixes random failures on the OKI board.
1995-09-14 21:48:25 +00:00
Kung Hsu
515f09ea88 * infcmd.c: Add extern declaration for auto_solib_add_at_startup. 1995-09-14 21:32:54 +00:00
Kung Hsu
0bd537a435 * symfile.c: Move global variable auto_solib_add_at_startup from
solib.c to symfile.c.
        * solib.c: ditto.
        * symfile.h: Add extern declaration of the above mentioned variable.
        * infcmd.c: Take out extern declaration, since it's in symfile.h.
1995-09-14 20:44:03 +00:00
Stu Grossman
4444f56bac * coffread.c (coff_symtab_read): Complain about unmatched .ef and
.eb symbols instead of segfaulting.
1995-09-14 19:43:02 +00:00
Kung Hsu
771e0a5cb0 * stbsread.c (read_one_struct_field): Use subfile language instead of
global language. Improve efficiency.
1995-09-13 22:31:04 +00:00
Jeff Law
2e977a3ae4 * somsolib.c (auto_solib_add_at_startup): Define new global variable.
(som_solib_create_inferior_hook): Don't add libraries if
	auto_solib_add_at_startup is zero.
	(_initialize_som_solib): Add command to toggle
	auto_solib_add_at_startup.
1995-09-13 14:50:51 +00:00
Jeff Law
5be86c5672 * monitor.c (monitor_make_srec): Fix thinkos in computation
of addr_size.
Critical patch from Stu.
1995-09-13 01:41:30 +00:00
Kung Hsu
fe82872cca * stabsread.c: To include language.h and expression.h for the reason
above.
1995-09-12 23:31:00 +00:00
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