Commit graph

2812 commits

Author SHA1 Message Date
Jim Kingdon
4fb0ff3b3d * mipsread.c (mylookup_symbol): Use strcmp, not STREQ, as we have
already checked the first characters.
1993-07-15 07:28:14 +00:00
Jim Kingdon
b5d4d6d7f8 * mipsread.c (parse_procedure): Take as argument the symtab to look
the name up in.  Look it up with mylookup_symbol, not lookup_symbol.
	(psymtab_to_symtab_1): For stabs, pass the symtab to parse_procedure.
1993-07-15 07:25:58 +00:00
Jim Kingdon
9adb88b7de * mipsread.c (psymtab_to_symtab_1, parse_procedure): For stabs,
save the indices of the MIPS_EFI_SYMBOL_NAME symbol rather than
	looking them up by the names of the functions.

	* mipsread.c (mylookup_symbol): Use strcmp, not STREQ, as we have
	already checked the first characters.
1993-07-15 05:24:16 +00:00
Jim Kingdon
e91ceb3c59 * printcmds.exp: Add another printf test. 1993-07-14 22:54:22 +00:00
Jim Kingdon
19318471a1 x 1993-07-14 22:47:45 +00:00
Jim Kingdon
1ab786f460 Changes from Jeffrey Law:
* printcmd.c (makeva_list): Use MAKEVA_EXTRA_INFO to define
	machine dependent fields in the makeva_list structure.
	(makeva_size): Allocate extra space to handle gaps made by
	alignment restrictions.
	* config/pa/xm-pa.h (MAKEVA_EXTRA_INFO): Define.
	(MAKEVA_START): Initialize arglist_address field.
	(MAKEVA_ARG): Always store arguments on natural alignment
	boundaries.  Set arglist_address to the address right after
	the args.
	(MAKEVA_END): Simply return the value stored in arglist_address.
1993-07-14 22:44:03 +00:00
Ian Lance Taylor
6dc31f06c3 * configure.in: If configured -with-stabs on any target, add
stabsdirs to configdirs.
1993-07-14 22:38:37 +00:00
Jim Kingdon
bf5b632df7 * ch-valprint.c (chill_val_print, case TYPE_CODE_STRING): Print
address, not addr.

	* hppah-nat.c (store_inferior_registers): Don't print i in cases
	where we aren't using it.
1993-07-14 21:38:39 +00:00
Stu Grossman
ea7f0a9ff3 Check in ChangeLog entry that got lost.
Fri Jun 25 17:02:45 1993  Stu Grossman  (grossman at cygnus.com)

	* gdbserver/Makefile.in:  Add dependancies on server.h.
	* gdbserver/remote-gutils.c:  Remove lots of unused functions and
	variables.
	* gdbserver/remote-inflow.c:  Remove lots of unused variables and
	#includes.  Also, use PTRACE_* symbols instead of constants.
	(mywait):  Surround calls to wait() with enable/disable_async_io()
	so that we can be interrupted from GDB while waiting for the
	child.  Also, handle child exit more gracefully.
	* gdbserver/remote-server.c:  Remove lots of unused variables.
	Move all extern defs into server.h.  Redo main loop so that
	failure from getpkt() causes communications to be re-established.
	Fix 'k' command so that it restarts the child.
	* gdbserver/remote-utils.c:  Remove lots of unloved vars and
	subrs.  Move many extern decls into server.h.  (remote_open):  For
	tcp, seperate usage of proto fd from connected fd.  Close proto
	fd after getting connection.  (putpkt/getpkt):  Pay attention to
	errors when reading/writing.  Report these to the caller.  New
	routines input_interrupt/enable_async_io/disable_async_io to make
	it possible to get an I/O interrupt when data arrives from the
	comm link.
	* serial.h:  New file to contain common defs for all remote files.
1993-07-14 21:19:09 +00:00
Jim Kingdon
968dca8d81 * a29k-tdep.c (get_saved_register): Fix typo. 1993-07-14 18:55:57 +00:00
David Edelsohn
bd96254f96 * configure.in: Recognize h8300h (variant of h8300).
Recognize sparc64-*-*.
1993-07-14 16:49:18 +00:00
Jim Kingdon
5af4f5f6f1 Tue Jul 13 14:03:48 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
* stabsread.c (define_symbol): Make the caddr_t hack apply to `function
	returning foo' as well as `pointer to foo'.

	* remote.c [REMOTE_BREAKPOINT]: Use for breakpoint insn if defined.
	* config/m68k/tm-m68k.h: Define it.
	* mem-break.c, breakpoint.c: Improve comments.

Tue Jul 13 13:35:31 1993  Frederic Pierresteguy (F.Pierresteguy@frcl.bull.fr)

	* config/m68k/tm-dpx2.h: Replace "tm-68k.h" with "m68k/tm-m68k.h".
	* config/m68k/xm-dpx2.h: Define HAVE_TERMIOS not HAVE_TERMIO.
1993-07-14 15:12:05 +00:00
David Edelsohn
595dc9a4ed Restore function naming scheme (sim_xxx vs simif_xxx).
Make more generic (remove any reference to sparc64).
Document simif_xxx fns.
1993-07-14 02:21:59 +00:00
David Edelsohn
524895ab98 * gdbcore.h (read_memory_integer, read_memory_unsigned_integer):
Make prototype match definition.
1993-07-13 18:58:41 +00:00
Fred Fish
8bdc1fd08a * elfread.c: Remove notice about file still being under
construction.
1993-07-13 18:49:51 +00:00
Fred Fish
98d8248937 * Makefile.in (ultra3-xdep.o, umax-xdep.o): Add missing ')'. 1993-07-13 18:20:55 +00:00
Jim Kingdon
8549490910 * a29k-tdep.c (read_register_stack): Make val static. 1993-07-12 22:51:09 +00:00
David Edelsohn
e1f63216eb h8300 stuff. 1993-07-12 21:12:02 +00:00
David Edelsohn
696314b6cb (REGISTER_CONVERTIBLE): Change value to 0.
(REGISTER_CONVERT_TO_VIRTUAL, REGISTER_CONVERT_TO_RAW): Move def'n to
usual spot.
1993-07-12 21:09:22 +00:00
Jim Kingdon
499a5faaae * stabs.texinfo: N_MAIN is sometimes used for C. 1993-07-12 18:41:14 +00:00
Jim Kingdon
1326dacef9 * c-valprint.c (c_val_print): Fix thinko with unspecified length
arrays.
1993-07-12 18:00:48 +00:00
Jim Kingdon
eabbe766c0 * hppa-tdep.c (find_proc_framesize): If there is a frame pointer,
use it.
1993-07-12 16:34:23 +00:00
Jim Kingdon
4988d8c722 * gdb.t15/{gdbme.c,funcargs.exp}: Test for alloca-influenced frames. 1993-07-12 16:30:21 +00:00
Jim Kingdon
4f47020526 improve comment about Sun acc 1993-07-12 15:58:42 +00:00
Jim Kingdon
f1ed43304a * symtab.c (decode_line_1): Use end of block to figure out whether
val.end is in the same function, not minimal symbols.

	* source.c (line_info): Add a few more wrap_here's.

	* i386-tdep.c (i386_follow_jump): Do byteswapping where needed and
	don't make assumptions about sizes of host data types.

	* blockframe.c, symtab.h (find_pc_partial_function): New arg endaddr.
	* infrun.c, breakpoint.c, printcmd.c: Change callers.
	* printcmd.c (containing_function_bounds): Remove.
	* printcmd.c (disassemble_command): Use find_pc_partial_function,
	not containing_function_bounds.
	* infcmd.c (step_1): Use find_pc_partial_function rather than
	trying to roll our own.  Move check for a pc between SIGTRAMP_START and
	SIGTRAMP_END in find_pc_partial_function, not step_1.
1993-07-12 03:42:35 +00:00
Jim Kingdon
f6365bd696 * sparc-tdep.c (sparc_frame_chain, frame_saved_pc):
Keep unswapped value in array of char, not REGISTER_TYPE.
	Use REGISTER_RAW_SIZE not sizeof (REGISTER_TYPE).
	(sparc_extract_struct_value_address): Use TARGET_PTR_BIT not
	sizeof (CORE_ADDR).
1993-07-12 00:45:02 +00:00
David Edelsohn
9fc8002c2d Add v9 sanitized entry for sparc-tdep.c. 1993-07-12 00:13:50 +00:00
David Edelsohn
85b9835f8f Add v9 sanitization support. 1993-07-12 00:08:42 +00:00
Jim Kingdon
0a8f174266 * configure.in (m68*-bull-sysv*): added support for Bull dpx2.
* config/m68k/{t,x,n}m-dpx2.h, dpx2-nat.c: New files.
	* config/m68k/dpx2.m{h,t}: New files.
1993-07-11 23:29:31 +00:00
Jim Kingdon
efeb844ddb new for dpx2 1993-07-11 22:44:45 +00:00
David Edelsohn
53adb297a1 config/sparc/tm-sparc.h (PRINT_REGISTER_HOOK): Fix typo, add
more parens around macro arg.
1993-07-11 19:36:38 +00:00
David Edelsohn
8df6afe63b (PRINT_REGISTER_HOOK): Fix typo, add parens around macro arg. 1993-07-11 19:31:49 +00:00
Jim Kingdon
a688a1866c * gdb.t17/interrupt.exp: Test for more things. 1993-07-11 17:05:33 +00:00
Jim Kingdon
29c6dce249 * infrun.c: Remove step_resume_{duplicate,shadow}. Replace
step_resume_break_address with step_resume_breakpoint (now local
	to wait_for_inferior).
	({insert,remove}_step_breakpoint): Remove.
	(wait_for_inferior): Set step resume break with
	set_momentary_breakpoint.  Test hitting it with bpstat_stop_status
	and bpstat_what	(stop_step_resume_break removed).
	* breakpoint.{h,c}, infrun.c: Return value from bpstat_what now struct
	which includes previous return value as main_action, and a step_resume
	bit.
	* breakpoint.c (delete_breakpoint): If breakpoint was inserted, and
	there is another breakpoint there, insert it.
	* infrun.c (wait_for_inferior): Rearrange the spaghetti a bit.  Use
	a few more gotos.
	Various: Clean up and add comments.
1993-07-11 05:41:04 +00:00
Jim Kingdon
fe67503857 * infrun.c: Remove step_resume_{duplicate,shadow}. Replace
step_resume_break_address with step_resume_breakpoint (now local
	to wait_for_inferior).
	({insert,remove}_step_breakpoint): Remove.
	(wait_for_inferior): Set step resume break with
	set_momentary_breakpoint.  Test hitting it with bpstat_stop_status
	and bpstat_what	(stop_step_resume_break removed).
	* breakpoint.{h,c}, infrun.c: Return value from bpstat_what now struct
	which includes previous return value as main_action, and a step_resume
	bit.
	* breakpoint.c (delete_breakpoint): If breakpoint was inserted, and
	there is another breakpoint there, insert it.
	* infrun.c (wait_for_inferior): Rearrange the spaghetti a bit.  Use
	a few more gotos.
	Various: Clean up and add comments.
1993-07-11 04:52:50 +00:00
Jim Kingdon
fee44494f1 * infrun.c [TDESC]: Remove remaining tdesc code (see ChangeLog
for Wed Nov 13 16:45:13 1991).
1993-07-10 14:59:02 +00:00
Jim Kingdon
58e49e2178 * values.c, value.h (modify_field), callers: Make fieldval a LONGEST.
* h8300-tdep.c (NEXT_PROLOGUE_INSN): Make pword1 an INSN_WORD *
	not short *.

	* findvar.c, defs.h
	({extract,store}_{signed_integer,unsigned_integer,address}):
	New routines to replace SWAP_TARGET_AND_HOST.
	All over: All uses of SWAP_TARGET_AND_HOST on integers replaced.
1993-07-10 05:03:22 +00:00
Jim Kingdon
34df79fc9d * findvar.c, defs.h
({extract,store}_{signed_integer,unsigned_integer,address}):
	New routines to replace SWAP_TARGET_AND_HOST.
	All over: All uses of SWAP_TARGET_AND_HOST on integers replaced.
1993-07-10 01:35:53 +00:00
Jim Kingdon
271d73872f x 1993-07-09 21:20:09 +00:00
Jim Kingdon
c4f8f209e7 * config/sparc/tm-sparc.h: Add comment suggesting that removing
ins and locals from the registers array might clean things up.
1993-07-09 21:19:17 +00:00
Jim Kingdon
19bdd57f75 * utils.c: Clean up comments about wrap buffer and wrap_here.
* printcmd.c (printf_command): Call wrap_here before vprintf.
1993-07-09 20:11:47 +00:00
Jim Kingdon
81074ec8d1 * gdb.t07/watchpoint.exp: In until test, deal with the way the DEC
compiler arranges the code and line numbers.
1993-07-09 19:24:00 +00:00
Jim Kingdon
2a62a4cb1b * gdb.t17/interrupt.exp: Don't send \n after ^C. 1993-07-09 19:14:43 +00:00
Jim Kingdon
28d14fd878 * mipsread.c (cross_ref): Set the name to unknown for "struct *" case.
Patch from ptf@delcam.co.uk (Paul Flinders).
1993-07-09 18:40:26 +00:00
Jim Kingdon
4d50f90ab8 * a29k-tdep.c, findvar.c (get_saved_register): Fix byteswapping sins. 1993-07-09 18:33:23 +00:00
Peter Schauer
3ae135ab3b * gdb.t00/help.exp: Increase expect input buffer size. 1993-07-09 16:54:31 +00:00
Peter Schauer
7311533336 * gdbint.texinfo (Host, Target Conditionals): Remove TM_FILE_OVERRIDE. 1993-07-09 16:53:30 +00:00
Peter Schauer
2fcdae93aa * defs.h, remote-eb.c (TM_FILE_OVERRIDE): Remove it.
* mips-tdep.c (init_extra_frame_info):  Set proper fci->frame if pc
	is at the start of the dummy code.
1993-07-09 16:50:43 +00:00
Jim Kingdon
075aa449df * gdb.t06/signals.exp: Remove sparc xfail; bug fixed.
* gdb.t07/watchpoint.exp: Add xfail for hppa.
1993-07-09 03:55:06 +00:00
Jim Kingdon
dd99f8e4b2 * sparc-tdep.c (sparc_push_dummy_frame): Skip all the do_save_insn
stuff, just write the sp and fp.
	(sparc_pop_frame): Skip the do_restore_insn; we already restore
	the sp with the other out registers.
1993-07-09 03:53:46 +00:00
Jim Kingdon
5632cd5692 minor comment fix 1993-07-09 02:23:19 +00:00
Stu Grossman
4b9583def3 test of branches. please ignore. 1993-07-08 23:36:48 +00:00
Jim Kingdon
1af6f16c65 * gdb.t07/watchpoint.exp: Add xfail for hppa. 1993-07-08 23:08:05 +00:00
Jim Kingdon
558f4183fb * hppa-tdep.c (hppa_push_arguments): Allocate enough space for
arguments.
1993-07-08 20:06:19 +00:00
Jim Kingdon
270532f9a4 * gdb.t17/{gdbme.c,callfuncs.exp}: Add sum10 function, to test pa bug. 1993-07-08 19:58:22 +00:00
Jim Kingdon
47976ba770 * hppa-tdep.c: Change _initialize_hppab_tdep to _initialize_hppa_tdep. 1993-07-08 19:53:05 +00:00
Mark Eichin
360ea8c517 fix the declaration of run_stack_dummy, as well. 1993-07-08 19:51:04 +00:00
Jim Kingdon
73553c44e7 Revision to this change--use ->next != NULL, not just ->next, when
passing an integer argument to find_pc_line.

	* frame.h, blockframe.c, stack.c, a29k-tdep.c,
	config/gould/tmp-{pn,np1}.h,
	config/{sparc/tm-sparc.h,pyr/tm-pyr.h,vax/tm-vax.h}: Remove field
	next_frame from struct frame_info.  It has no purpose beyond
	->next->frame and is an artifact from GDB 2.8.
1993-07-08 19:32:03 +00:00
Jim Kingdon
be7f754982 * gdb.t06/signals.exp: At "p func1 ()" test, check for breakpoint
[0-9]*, not just [0-9].
1993-07-08 19:29:53 +00:00
Jim Kingdon
6de931d2a9 Add filename which dje forgot to include 1993-07-08 17:40:31 +00:00
David Edelsohn
882e8c1583 (REGISTER_CONVERT_TO_VIRTUAL): Use REGISTER_RAW_SIZE to determine bytes to copy.
(REGISTER_CONVERT_TO_RAW): Ditto.
1993-07-08 16:01:52 +00:00
David Edelsohn
bc4937f37c h8/300h stuff. 1993-07-08 15:55:48 +00:00
David Edelsohn
ad8aefa5f6 (REGISTER_TYPES): Adjust for h8/300h.
(REGISTER_RAW_SIZE): Ditto
(REGISTER_VIRTUAL_TYPE): Use builtin_type_unsigned_long for regs on the h8/300h
(ints may still be 16 bits).
(EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, EXTRACT_STRUCT_VALUE_ADDRESS):
Add FIXME's for h8/300h.  Some thought needed here.
1993-07-08 15:53:13 +00:00
David Edelsohn
6ac063909f (sparc_frame_chain): Handle sizeof (CORE_ADDR) != sizeof (REGISTER_TYPE).
(frame_saved_pc): Ditto.
1993-07-08 15:47:41 +00:00
David Edelsohn
d0414a1127 * h8300-tdep.c (print_insn): Call print_insn_h8300h if h8/300h.
(examine_prologue): reg_save_depth is 4 if h8/300h.
1993-07-08 15:32:38 +00:00
David Edelsohn
be47465751 * findvar.c (read_register): Provide some support for 64 bit regs.
(write_register): Ditto.
1993-07-08 15:27:23 +00:00
Jim Kingdon
3206db6299 * config/mips/nm-riscos.h: machine/machparam.h is always the right
place to look for BSD43_NBPG, not machine/vmparam.h
1993-07-08 03:58:39 +00:00
Jim Kingdon
e7ff735c89 Fix a place in mipsread.c where I missed using tag_name; revision to
the following change.

Thu Jul  1 09:51:27 1993  Jim Kingdon  (kingdon@cygnus.com)

	* gdbtypes.h (struct type): Add field tag_name.
	* gdbtypes.c (type_name_no_tag), c-typeprint.c (c_type_print_base):
	Use it.
	* {coff,dwarf,mips,stabs}read.c: Set it.
1993-07-08 03:34:04 +00:00
Jim Kingdon
5402346525 * infcmd.c (run_stack_dummy): New argument name.
Change error message in (another) attempt to make it comprehensible.
	* valops.c (call_function_by_hand): Pass name to run_stack_dummy.
	* symtab.h: Declare demangle and asm_demangle since macros use them.
1993-07-08 03:32:00 +00:00
David Edelsohn
cb747ec55b Initial versions of sparc64 port.
Some stuff can be removed when sparc-tdep.c is upgraded.
1993-07-08 03:19:46 +00:00
David Edelsohn
a94019bcc1 Initial versions of port to sparc64 simulators. 1993-07-08 03:08:49 +00:00
Jim Kingdon
e860d210f4 * eval.c (evaluate_subexp): Add comment about calling a member
function of a variable in a register.
1993-07-08 02:04:57 +00:00
Jim Kingdon
d3dd680054 * expression.h: Clean up comment about string in STRUCT_STRUCT etc. 1993-07-07 23:56:30 +00:00
Jim Kingdon
a40a456f20 misc fixes to .Sanitize files 1993-07-07 23:34:50 +00:00
Jim Kingdon
9ae07ce5d0 * gdb.t20/{gdbme.cc,classes.exp}: Add xfail for gdb/2972. 1993-07-07 23:26:44 +00:00
Jim Kingdon
f2dee08e88 * gdb.t2*: Set CXXFLAGS, not CFLAGS, since that's what we use. 1993-07-07 22:55:16 +00:00
Jim Kingdon
23a8e2915c * frame.h, blockframe.c, stack.c, a29k-tdep.c,
config/gould/tmp-{pn,np1}.h,
	config/{sparc/tm-sparc.h,pyr/tm-pyr.h,vax/tm-vax.h}: Remove field
	next_frame from struct frame_info.  It has no purpose beyond
	->next->frame and is an artifact from GDB 2.8.
1993-07-07 20:29:56 +00:00
Jim Kingdon
b4c2267b03 gdbtypes.h: Fix comments regarding the following change:
Thu Jul  1 09:51:27 1993  Jim Kingdon  (kingdon@cygnus.com)

	* gdbtypes.h (struct type): Add field tag_name.
1993-07-07 18:26:03 +00:00
John Gilmore
238ffce0bf * gdbint.texinfo (Target Conditionals): Remove NO_TYPEDEFS,
removed from the code by Kingdon.
1993-07-06 19:43:06 +00:00
Jim Kingdon
afde243fa5 * gdb.t00/help.exp: Replace most of docstring for "continue" with .*. 1993-07-06 19:04:59 +00:00
Jim Kingdon
c2153bf2ba * Makefile.in: Remove gdb before creating a new one.
Update init.c atomically.
1993-07-06 18:56:48 +00:00
Jim Kingdon
958e954a58 * gdb.texinfo (Break Commands): Remove stuff about flushing terminal
input when evaluating breakpoint conditions; the bug has been fixed.

	* gdb.texinfo (Continuing and Stepping): Argument to "continue"
	sets the ignore count to N-1, not to N.
1993-07-06 17:43:51 +00:00
Jim Kingdon
de6a270409 * Makefile.in (ALLPARAM): Add config/{alpha/xm-alpha.h,pa/xm-pa.h}.
(ALLCONFIG): Add config/alpha/alpha-osf1.mh.

	* infcmd.c (_initialize_infcmd): In docstring for "continue",
	describe argument as setting ignore count.
1993-07-06 17:15:02 +00:00
Jim Kingdon
46d284c9fc * gdb.t06/signals.c: Add xfails for sun3. 1993-07-06 05:23:10 +00:00
Jim Kingdon
306ee233ba * gdb.t07/watchpoint.exp: Comment out xfail for fixed bug 1836. 1993-07-06 04:05:49 +00:00
Jim Kingdon
762665e153 * gdb.t07/{gdbme.c,watchpoint.exp}: Add test for 2597. Also add
test_stepping tests.
1993-07-06 03:50:00 +00:00
Mark Eichin
86fd58bf53 solaris doesn't have siginterrupt, though it has sigaction; however,
in this case siginterrupt would just be setting the default. (This was
the only patch needed to make devo build solaris-x-a29kudi...)
1993-07-05 15:06:51 +00:00
David Edelsohn
b1d0b1614b * h8300-tdep.c (examine_prologue): Fix call to read_memory_unsigned_integer. 1993-07-04 22:07:17 +00:00
Jim Kingdon
0c5af733b1 * config/mips/{x,n}m-irix{3,4}.h: Make some definitions here
rather than including xm-bigmips.h.
1993-07-03 00:36:35 +00:00
Jim Kingdon
1500864f5b * eval.c (evaluate_subexp): Improve error messages for OP_TYPE and
default cases.
1993-07-03 00:27:47 +00:00
Jim Kingdon
fdf138bb6a * Makefile.in (distclean): Remove y.tab.h. 1993-07-03 00:24:51 +00:00
Jim Kingdon
b2618fd85a * gdb.t17/{interrupt.{c,exp},Makefile.in}: New test for solaris bug. 1993-07-02 21:56:27 +00:00
Ian Lance Taylor
e8f8e093fd cvs core dumped and didn't check this in last time.
* configure.in (mipos-*-riscos*): New host and target; use riscos.
1993-07-02 21:27:13 +00:00
Steve Chamberlain
7e721ed49d * config/h8500/tm-h8500.h: Define new macros. 1993-07-02 21:27:09 +00:00
Steve Chamberlain
a0ab5f90d1 * config/alpha/xm-alpha.h: Add MAKEVA_END. 1993-07-02 21:26:05 +00:00
Steve Chamberlain
85e07872b6 New target macros for getting at the pc, sp and fp.
* infcmd.c (read_pc, write_pc):  Modify to use new macros.
	(read_sp, write_sp, read_fp, write_fp): New functions.
	* blockframe.c (reinit_frame_cache, get_prev_frame_info):  Use new functions.
	* breakpoint.c (bpstat_alloc): ditto.
	* infrun.c (wait_for_inferior): ditto.
	* stack.c (print_frame_info): ditto.
	* valops (call_function_by_hand): ditto.
	* corelow.c (core_open): ditto.
	* h8500-tdep.c: (target_read_sp, target_write_sp, target_read_pc,
	target_write_pc, target_read_fp, target_write_fp): New functions.
	* inferior.h (read_sp, write_sp, read_fp, write_fp): Prototypes.
1993-07-02 21:25:04 +00:00
Ian Lance Taylor
d8a80e6ddc * configure.in (mipos-*-riscos*): New host and target; use riscos.
* config/mips/nm-riscos.h: If BSD43_NBPG is not defined by
	vmparam.h, include machparam.h.
	(KERNEL_U_ADDR): Define to be BSD43_UADDR.
1993-07-02 20:54:02 +00:00
Jim Kingdon
c0bca41c47 * c-exp.y (yylex): Give error if unmatched single quote. 1993-07-02 20:04:02 +00:00
Jim Kingdon
c649a7c231 * configure.in, config/m68k/*delta68*, delta68-nat.c: New port. 1993-07-02 19:18:14 +00:00
Jim Kingdon
a44cce7647 new for delta 68k 1993-07-02 19:01:48 +00:00
Jim Kingdon
38970bb5dd new files for Motorola delta 68k 1993-07-02 18:49:14 +00:00
Jim Kingdon
75fa3e0fd2 * Remove unused STACK_END_ADDR in the following files (in other
files it is used for something): tm-mips.h, tm-sun2.h, tm-news.h,
	tm-a29k, tm-i386v.h, tm-hppa.h, tm-nindy960.h, tm-amix.h,
	tm-hp300hpux.h, tm-isi.h.
1993-07-02 18:48:44 +00:00
Jim Kingdon
56f413cd8f * gdb.t06/twice.exp, Makefile.in: Just use an include of twice.c
rather than actually putting it through cpp twice.
1993-07-02 18:26:55 +00:00
Jim Kingdon
79f3218c2a * gdb.t06/signals.exp: Add xfails unixware and rs6000. 1993-07-02 18:11:23 +00:00
Ian Lance Taylor
eae166985b * config/mips-gdb.exp (gdb_exit): Removed close statement which is
no longer needed.
1993-07-02 17:49:32 +00:00
Jim Kingdon
b4ace9d36f * gdb.t06/signals.exp: Add test for sparc bug with do_save_insn. 1993-07-02 17:00:33 +00:00
Jim Kingdon
38e1dd5415 * gdb.t20/{classes,inherit}.exp: If a class which doesn't use any
C++ features prints as "struct", make it a pass, not an xfail.
1993-07-02 14:13:09 +00:00
Jim Kingdon
b2bebdb0f1 * gdbtypes.h (struct type): Add field tag_name.
* gdbtypes.c (type_name_no_tag), c-typeprint.c (c_type_print_base):
	Use it.
	* {coff,dwarf,mips,stabs}read.c: Set it.
1993-07-02 02:57:06 +00:00
Jim Kingdon
3fe11d4734 * ser-unix.c (hardwire_noflush_set_tty_state): Use an assignment,
not an initializer, to copy the structure.
1993-07-02 02:50:43 +00:00
Jim Kingdon
e5307300ce * config/mips/nm-riscos.h: Define NBPG and UPAGES.
config/mips/xm-riscos.h: Include <sys/types.h>.
1993-07-02 02:48:59 +00:00
Jim Kingdon
b55cc8a268 * gdb.t06/twice.exp: Don't care about the file name GDB prints. 1993-07-02 01:37:50 +00:00
Jim Kingdon
1f72a94a6a * xm-sysv4.h: Undefine HAVE_TERMIO. 1993-07-01 22:04:17 +00:00
Roland Pesch
b78d91ff99 * refcard.tex (\hoffset): correct longstanding error to match
intended offset; avoids cutting off edge on some printers
1993-07-01 21:59:16 +00:00
Jim Kingdon
3762d62487 * mips-nat.c (fetch_core_registers): If KERNEL_U_ADDR is not defined,
we can still process "modern" core files.
1993-07-01 21:07:02 +00:00
Jim Kingdon
0abbc7715f miscellaneous fixes to make RISC/os work; see ChangeLog's 1993-07-01 21:00:15 +00:00
Jim Kingdon
a77a5278a4 * ser-unix.c (hardwire_print_tty_state) [HAVE_TERMIOS]: Don't
print c_line.
	(_initialize_ser_hardwire): Just check whether _POSIX_JOB_CONTROL
	is defined; don't care what it is defined to.
1993-07-01 18:22:02 +00:00
Jim Kingdon
95f2d25323 * config/vax/xm-vaxult2.h: Define FD_SET and FD_ZERO. 1993-07-01 01:10:22 +00:00
Jim Kingdon
907a9cabb8 * stabs.texinfo (Parameters): Say that order of stabs is significant. 1993-06-30 23:28:24 +00:00
Jim Kingdon
e02c07a5ef * gdb.t{02,13}/comp-info.c, gdb.t06/twice.exp: Add "return 0" to end. 1993-06-30 23:05:47 +00:00
Jim Kingdon
c2e247c4ff * inftarg.c: Remove unused include of terminal.h.
* signals.h: Don't undefine signals anymore.
	* main.c: Use job_control from serial.h.
	* fork-child.c (fork_inferior): Use gdb_setpgid.
	* serial.h, ser-unix.c, ser-go32.c: Provide gdb_setpgid.
	* utils.c (quit): Use current_target->to_terminal_ours to figure
	out whether we care about lack of job control, rather than __GO32__.
	* utils.c: Include serial.h not terminal.h
	(quit): Use job_control not TIOCGPGRP.
	* terminal.h: Don't undefine TIOCGPGRP.
	* serial.h, ser-unix.c, ser-go32.c, ser-tcp.c: Add SERIAL_FLUSH_OUTPUT.
	* utils.c (quit): Use it.
	* serial.h: Add SERIAL_UN_FDOPEN.
	* utils.c (quit): Use it.
	* ser-unix.c: Add process group to ttystate.
	[HAVE_SGTTY]: Add tchars, ltchars, and lmode to ttystate.
	* inflow.c: Include serial.h not terminal.h.
	Use serial.h stuff to replace most of the maze of #ifdef's.
	* inflow.c, main.c, inferior.h: make gdb_has_a_terminal a function.
	* serial.h: Document SERIAL_SET_TTY_STATE as being immediate.
	* ser-unix.c: Use TIOCSETN not TIOCSETP so it is true.
	* serial.h, ser-unix.c, ser-go32.c, ser-tcp.c:
	Add SERIAL_PRINT_TTY_STATE, SERIAL_NOFLUSH_SET_TTY_STATE, and
	SERIAL_SET_PROCESS_GROUP.
	* inflow.c: Use them.
	* config/xm-svr4.h, config/rs6000/xm-rs6000.h, config/sparc/sun4os4.h:
	Define HAVE_TERMIOS.
	* Various: Remove all use of TIOC*_BROKEN.
1993-06-30 22:20:53 +00:00
Peter Schauer
eed6de01f2 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define. 1993-06-30 19:23:35 +00:00
Peter Schauer
76a1bd4cc0 * symtab.h (BLOCK_SHOULD_SORT): Do not sort blocks corresponding to
a function to avoid printing of function arguments in wrong order
	due to sorting.
	* symfile.c (compare_symbols):  Remove code for sorting arguments
	as blocks containing arguments are no longer sorted.
	* symtab.c (lookup_block_symbol):  Update comment accordingly.
1993-06-29 20:18:26 +00:00
Jim Kingdon
a4374df58d bugfix 1993-06-29 18:53:40 +00:00
Jim Kingdon
64b097786a * config/pa/tm-hppa.h: Remove unused ARGS_GROW_DOC.
(REG_STRUCT_HAS_ADDR): Add comment.
1993-06-29 18:27:56 +00:00
Jim Kingdon
366f286982 * gdb.t16/printcmds.exp: Add printf tests. 1993-06-29 17:51:19 +00:00
Jim Kingdon
38c41e9209 * gdb.t06/{twice.{c,exp},Makefile.in}: New test. 1993-06-29 17:13:28 +00:00
Jim Kingdon
025abdfbd3 * symtab.h: Add comments about line numbers. 1993-06-29 16:55:29 +00:00
Jim Kingdon
a8c2562115 * infrun.c (wait_for_inferior): Use find_pc_line not find_pc_symtab
to check whether there is line number information.
1993-06-29 16:54:23 +00:00
David D. Zuhn
fe76016acb fix docstring so that it compiles 1993-06-29 16:02:41 +00:00
David D. Zuhn
77641260c5 fix include file ordering problem (bfd.h vs. symfile.h) 1993-06-29 15:30:57 +00:00
Jim Kingdon
fd09c96316 * dbxread.c (process_one_symbol): If we find a LOC_BLOCK where we
don't expect it, change it to LOC_STATIC so at least we don't coredump.

	* c-typeprint.c (c_type_print_base): Don't error() on invalid type.
1993-06-29 15:25:27 +00:00
Jim Kingdon
d63aae7f32 * symtab.h (struct symtab, line_charpos): Fix comment.
* source.c (identify_source_line): Fix off by one bug with line.
1993-06-29 14:47:17 +00:00
Jim Kingdon
b4e899792d * gdb.t10/Makefile.in (clean): Remove $(EXECUTABLES) too. 1993-06-29 14:24:36 +00:00
Jim Kingdon
f9dd88b41e * config/pa/xm-pa.h: New file.
* config/pa/xm-hppa{b,h}.h: Include it.
1993-06-28 22:35:18 +00:00
Jim Kingdon
c702007b17 x 1993-06-28 22:34:29 +00:00
Jim Kingdon
53fc6c46e9 config/m88k/xm-delta88.h: Remove VPRINTF define, not needed. 1993-06-28 19:18:56 +00:00
Jim Kingdon
6b9561a423 * xcoffread.c: Remove obsolete NO_TYPEDEFS comment. 1993-06-28 17:38:30 +00:00
Jim Kingdon
44443a9b09 * gdb.stabs/wierd.exp: Add xfail for rs6000. 1993-06-28 15:15:23 +00:00
Jim Kingdon
f492b6c11b * gdb.stabs/wierd{.def,-aout.S,-xcoff.S}: Use new macros
{BEGIN,END}_COMMON for common block instead of STAB.
1993-06-28 15:03:27 +00:00
Jim Kingdon
884e8cd43e * gdb.stabs/wierd.def: Make value of N_GSYM's 0.
intp_var should be N_GSYM not N_LSYM.
	wierd-aout.S: Use a label for the value of the N_SO.
	wierd.def: Remove all backslashes.
	wierd-{aout,xcoff}.S: Put a few tests with backslashes here.
1993-06-28 14:34:46 +00:00
Peter Schauer
9325d5afa3 * gdb.t20/gdbme.cc (main): Move variable initialization for AIX to
get the expected next to inheritance3.
1993-06-28 14:23:11 +00:00
Rob Savoye
6214895281 Works again. 1993-06-28 01:43:34 +00:00
Peter Schauer
d2b860e3a7 * gdb.t00/teststrategy.exp: Remove expected failure for mips-*-*
now that gcc-2.4 gets it right.
1993-06-27 19:31:36 +00:00
Peter Schauer
be2860fbf3 * valprint.c (val_print_type_code_int): Fix off by one error with
eliminating leading zeroes for large little endian integers.
1993-06-27 15:56:44 +00:00
Jim Kingdon
42280556eb * config/mips/riscos.mh (CC): Use -systype sysv. 1993-06-27 14:28:30 +00:00
Jim Kingdon
68d2db622d * ser-unix.c: Move #include of <sys/time.h> to HAVE_SGTTY section. 1993-06-27 14:16:34 +00:00
Jim Kingdon
ee0d1b6565 * Makefile.in (ALLPARAM): Add config/mips/{x,n}-{news-mips,riscos}.h. 1993-06-27 14:06:28 +00:00
Jim Kingdon
2de1aa1cc9 * gdb.stabs/wierd{.def,.exp,-aout.S,-xcoff.S}: Add common block test. 1993-06-26 03:30:24 +00:00
Jim Kingdon
11d1934593 revisions to just-checked-in stuff re common blocks 1993-06-26 03:25:03 +00:00
Jim Kingdon
e0020f272e * stabs.texinfo (Common Blocks): Say what Sun FORTRAN does. 1993-06-26 02:39:05 +00:00