Commit graph

2016 commits

Author SHA1 Message Date
Per Bothner
8b564df836 * main.c (show_commands): Make return type of extern
history_get be HIST_ENTRY, rather than struct _hist_entry.
	(The latter loses with the upcoming merged readline.)
1994-01-16 03:35:19 +00:00
Jim Kingdon
ab5f79719c * minsyms.c (prim_record_minimal_symbol_and_info): Make tempstring
const char *, not char *.
1994-01-16 03:23:50 +00:00
Jim Kingdon
fb155ce31a * symtab.h (struct symbol): Make section short, not unsigned short. 1994-01-16 03:14:21 +00:00
Jim Kingdon
8704184584 * symtab.c (lookup_symbol): Add comment about QUIT here. 1994-01-16 02:39:50 +00:00
Jim Kingdon
f29351d98b * utils.c (fputs_unfiltered): Call fputs, not fputs_maybe_filtered. 1994-01-15 20:14:43 +00:00
Jim Kingdon
a9b32d6192 * c-exp.y (parse_number): Check for overflow regardless of range
checking.  Fix overflow check to use unsigned LONGEST, not
	unsigned int.

	* c-exp.y (parse_number): Make it so that integer constants are
	builtin_type_long_long if builtin_type_long isn't big enough or if
	an "LL" suffix is used.  Properly handle "UL" or "LU" suffixes.
1994-01-15 17:14:18 +00:00
Jim Kingdon
dac317dc3f * c-typeprint.c (c_type_print_varspec_suffix, case TYPE_CODE_FUNC):
Print our "()" first, then recurse for the target type.
1994-01-15 15:27:49 +00:00
Jim Kingdon
831a39d7c3 * remote-udi.c (udi_create_inferior): Quote empty execfile argument. 1994-01-15 04:28:18 +00:00
Jim Kingdon
4c0b3e57c1 * gdbserver/low-lynx.c: Include <sys/wait.h> not /usr/include/wait.h. 1994-01-15 03:51:40 +00:00
Jim Kingdon
44a09a68f2 * utils.c (request_quit): Re-establish signal handler regardless
of USG.

	* config/mips/xm-irix4.h: Define HAVE_TERMIOS.
1994-01-15 03:43:01 +00:00
Jim Kingdon
9850662034 * i960-tdep.c: Include target.h. 1994-01-15 02:56:47 +00:00
Stan Shebs
658821b9fa Fri Jan 14 17:12:28 1994 Stan Shebs (shebs@andros.cygnus.com)
* lynx-nat.c (sys/wait.h): Don't use absolute pathname.
1994-01-15 01:15:55 +00:00
Jim Kingdon
4e8bc56fb5 * Makefile.in (ALLPARAM): Add config/nm-lynx.h. 1994-01-14 19:19:56 +00:00
Ian Lance Taylor
aeb145f80b * remote-mips.c (mips_request, mips_wait): Correct prototypes. 1994-01-14 16:52:22 +00:00
Jim Kingdon
d253eb7aa0 * config/i386/xm-linux.h: Define HAVE_TERMIOS. 1994-01-14 16:41:35 +00:00
Peter Schauer
52b3045e8e * config/alpha/tm-alpha.h (CALL_DUMMY): Improve comment. 1994-01-14 09:22:44 +00:00
Jim Kingdon
d0acb092fd * remote-vx.c (vx_wait): Only call i960_fault_to_signal if I80960
is defined.  Otherwise just report TARGET_SIGNAL_UNKNOWN.
1994-01-13 23:06:03 +00:00
Jim Kingdon
63dcc38026 Add search to target vector (#if 0'd until after 4.12):
* target.h (to_search, target_search): Add.
	* gdbcore.h, core.c (generic_search): Add.
	* remote.c (remote_search): Add.
	* a29k-tdep.c (init_frame_info): Use target_search to find traceback
	tag.
1994-01-13 18:44:06 +00:00
Jim Kingdon
d6596eee9f * printcmd.c (print_address_symbolic): If set print fast-symbolic-addr
is on, call find_pc_function rather than relying just on the minimal
	symbols (probably only matters for symbol readers which don't put
	statics in the minimal symbols, but changing this strikes me as
	not conservative enough).
	Initialize name_location in all cases.
	If no symbol and no msymbol, don't print anything symbolic.
1994-01-13 17:41:40 +00:00
Jim Kingdon
ae682b8061 * a29k-tdep.c (push_dummy_frame): Add comment about saving lr0. 1994-01-13 15:38:00 +00:00
John Gilmore
314e6bf3c1 * printcmd.c (print_address_symbolic): Make it search the
symtabs for variables as well as functions.  Add `set print
fast-symbolic-addr' and default it to fast (the old way).
Print line numbers for data items as well as functions.

* symtab.c (find_addr_symbol):  Return the symtab and the symbol
address, if a symbol is found (take two more args pointing to
where to store these results).

* symtab.h (find_addr_symbol):  Add prototype.
1994-01-13 05:04:40 +00:00
Jim Kingdon
470dfa0ca0 * objfiles.h: Fix comments to reflect the fact that the phrase
"top of stack" always refers to where the pushing and popping takes
	place, regardless of whether it is at the highest or lowest address.
1994-01-13 00:34:18 +00:00
Peter Schauer
a8c498978e * mdebugread.c (parse_symbol): Do not set TYPE_TAG_NAME for
compiler generated tag names.
	* mdebugread.c (parse_type):  Handle cross references to qualified
	aggregate types.
	* valops.c (value_struct_elt):  Improve error message if the
	address of a method is requested from an object instance.
	* valops.c (search_struct_method):  Make name_matched non-static
	to get it initialized correctly.
1994-01-12 21:27:51 +00:00
Jim Kingdon
4ad942bffd * go32-xdep.c: Remove unused function uerror.
(sigsetmask): Declare return type.  Declare argument (to match the
	way it is called).  Explicitly return 0.
1994-01-12 19:47:27 +00:00
John Gilmore
21578747f0 * symtab.h (struct symbol, general_symbol_info, minimal_symbol,
partial_symbol):  Shrink the storage sizes of symbols, by making
enums into 1-byte bitfields when compiled __GNUC__, moving all the
enums and small ints to the end of each struct to improve
alignment, and switching the section number from int to unsigned short.
1994-01-12 09:53:06 +00:00
John Gilmore
e0ea0fbd41 * symtab.c (find_addr_symbol): New routine that will find the nearest
symbol associated with an address.  It does so by exhaustive
search of the symtabs, so it's slow but complete.
1994-01-12 08:18:55 +00:00
John Gilmore
011d4ed95f * coffread.c (read_coff_symtab): Set PC bounds of _globals_ symtab
to [0,0] rather than [0, end of first source file].  This avoids
problems with other parts of GDB looking for linetables in the
_globals_ symtab.  Eliminate variables num_object_files and
first_object_file_end.

Fixes PR gdb/4072.
1994-01-12 08:02:26 +00:00
John Gilmore
eb5b74ca6c * a29k-tdep.c (init_frame_info): Cast null arg to examine_tag.
(pop_frame):  Restore PC2 and LR0 from dummy frames.
(push_dummy_frame):  Save PC2 and LR0 into dummy frames.
(setup_arbitrary_frame):  Handle 3 args and set up real frames.
* config/a29k/tm-a29k.h (FRAME_NUM_ARGS):  Update comments.
(DUMMY_FRAME_RSIZE):  Add 2 longwords for PC2 and LR0.
(SETUP_ARBITRARY_FRAME):  Define.
1994-01-12 07:47:14 +00:00
Jim Kingdon
4d69cf576b * infrun.c, config/mips/tm-irix5.h: Remove #if 0'd AT_FUNCTION_START. 1994-01-11 20:15:55 +00:00
Ian Lance Taylor
6a69975fbb * remote-udi.c (udi_resume): Correct prototype. 1994-01-11 19:28:31 +00:00
Jeff Law
c598654a5b * config/pa/tm-hppa.h (FRAME_FIND_SAVED_REGS): Call
hppa_frame_find_saved_regs.
        * hppa-tdep.c (dig_fp_from_stack): Delete function.
        (prologue_inst_adjust_sp): New function.
        (is_branch, inst_saves_gr, inst_saves_fr): New functions.
        (skip_prologue): Completely rewrite to use unwind information.
        (hppa_frame_find_saved_regs): Likewise.
1994-01-11 19:14:11 +00:00
Jim Kingdon
f3fe8934c2 * remote-mips.c (mips_wait): Use new function mips_signal_from_protocol
to convert a signal number with appropriate bounds checking.
1994-01-11 18:45:05 +00:00
Jim Kingdon
6397809b7f * remote-mips.c (mips_wait): Fix typos (0x177 -> 0177, 0x377 -> 0377). 1994-01-11 15:04:02 +00:00
John Gilmore
a31f4b90e5 * stack.c (frame_info): If FRAME_FIND_SAVED_REGS isn't defined,
print a newline to end the display anyway.
1994-01-11 09:20:37 +00:00
John Gilmore
c6d8db406c [Revise prev change -- this is how it's been running at Adobe, and it works
there.]

* sparc-tdep.c (sparc_pop_frame):  Pop the fsr and csr (float and
coprocessor status regs) when popping a frame.  This fixes
float exceptions that occur after calling inferior functions.

* sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
Read and write the fsr (float status register) to/from the child
process along with the float regs.  Remove Peter Schauer's change
of May 24 '93, which has higher overhead and doesn't solve the
real problem (which was that FSR wasn't being set).
1994-01-11 09:13:25 +00:00
John Gilmore
c369b6a32f * sparc-nat.c (fetch_inferior_registers, store_inferior_registers):
Read and write the fsr (float status register) to/from the child
process.  This avoids random float exceptions when running under
GDB, and probably obsoletes Peter Schauer's change of May 24 '93
(which remains for safety).
1994-01-11 08:59:41 +00:00
John Gilmore
7b2bcbf59d * a29k-tdep.c (examine_prologue): Don't worry if the ASGEQ
stack overflow check isn't right after the register stack
adjustment instruction.  Metaware R2.3u compiler moves other
things in front of it.  This fix isn't perfect but is what's
running.
1994-01-11 07:45:48 +00:00
Jim Kingdon
85b8aa88ef * c-valprint.c (c_val_print): Treat TYPE_CODE_RANGE like TYPE_CODE_INT. 1994-01-11 04:54:53 +00:00
Jim Kingdon
6aaa61dec9 * config/alpha/alpha-netware.mt: Rename to alpha-nw.mt for 14
character filenames.
	* configure.in: Change accordingly.
1994-01-11 04:12:20 +00:00
Thomas Lord
ef11827815 * m68k-stub.c, sparc-stub.c: removed spurious introduction of
_filtered io routines from these two files.
1994-01-10 23:56:49 +00:00
Peter Schauer
9d51b3c5f4 * config/i386/tm-i386v.h, config/m68k/tm-m68k.h, config/mips/tm-mips.h,
config/vax/tm-vax.h (CALL_DUMMY_BREAKPOINT_OFFSET):  Define.
	* mdebugread.c (parse_symbol):  Handle enum sh.type produced by
	DEC c89.
	* mdebugread.c (add_line):  Handle zero linenos produced by DEC c89.
1994-01-07 20:59:35 +00:00
Jim Kingdon
17d059d413 * utils.c (print_sys_errmsg): Call gdb_flush (gdb_stdout) before
printing to gdb_stderr.

	* remote-udi.c (udi_kill): Don't close the connection, just set
	inferior_pid to zero.
	(udi_mourn): Call remove_breakpoints.

	* remote-udi.c: Remove obsolete need_artificial_traps comment.
1994-01-07 19:45:45 +00:00
Jim Kingdon
11ebf93929 * i386b-nat.c (sregmap): If sEAX, etc., not defined, use tEAX, etc. 1994-01-07 17:56:59 +00:00
Jim Kingdon
d8a66e60cd * symtab.c (lookup_symbol): Don't try adding .c to the name. 1994-01-06 23:09:53 +00:00
Jim Kingdon
e3a7e9d501 * remote-bug.c: At the start of each section, reset srec_frame
back to 160.
1994-01-06 21:55:18 +00:00
Jim Kingdon
fcbc95a72a * target.h: Add TARGET_WAITKIND_LOADED and TARGET_WAITKIND_SPURIOUS.
* target.c (store_waitstatus): Add CHILD_SPECIAL_WAITSTATUS hook.
	* infrun.c (wait_for_inferior): Replace SIGTRAP_STOP_AFTER_LOAD with
	code which looks for those two waitkinds.  Use switch statement.
	* config/rs6000/tm-rs6000.h: Replace SIGTRAP_STOP_AFTER_LOAD with
	CHILD_SPECIAL_WAITSTATUS.
1994-01-06 20:51:19 +00:00
Stu Grossman
7f85a716b9 * config/alpha/alpha-netware.mt: New target support for Alpha
running Netware.
	* configure.in:  Add alpha-*-netware* target.
1994-01-04 23:43:28 +00:00
Stan Shebs
5efb389945 Tue Jan 4 14:51:35 1994 Stan Shebs (shebs@andros.cygnus.com)
* remote-mips.c (mips_wait): Fix ref to TARGET_WAITKIND_STOPPED.
1994-01-04 22:56:06 +00:00
Jim Kingdon
67ac975911 * target.h: Add enum target_waitkind, enum target_signal, and
struct target_waitstatus.  Change status argument to target_wait to
	be struct target_waitstatus * instead of int *.
	* target.h, infrun.c, all targets: Change type of signal arguments
	to resume(), proceed(), and target_resume() from int to enum
	target_signal.
	* All targets (*_wait, *_resume): Change accordingly.
	* infcmd.c (program_info, signal_command), throughout infrun.c,
	* fork-child.c, solib.c, hppa-tdep.c, osfsolib.c: Use this stuff.
	* convex-xdep.c, convex-tdep.c: Add FIXME's (getting the Convex
	signal code stuff right with the new signals would be non-trivial).
	* inferior.h (stop_signal): Make it enum target_signal not int.
	* target.c, target.h (target_signal_to_string, target_signal_to_name,
	target_signal_from_name): New functions.
	* inftarg.c, target.h (target_signal_to_host, target_signal_from_host,
	store_waitstatus): New functions.
	* procfs.c (procfs_notice_signals): Use them.
	* i960-tdep.c (i960_fault_to_signal): New function, to replace
	print_fault.
	* config/i960/tm-i960.h: Don't define PRINT_RANDOM_SIGNAL.
1994-01-04 21:53:53 +00:00
Jim Kingdon
4b404661b6 * stabsread.c (read_type): Allow defining several type numbers
at once (e.g. "(1,2)=(3,4)="...).
1994-01-03 22:36:52 +00:00