Commit graph

3745 commits

Author SHA1 Message Date
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
44d2505679 * gdb.t12/scope.exp: Add xfails for rs6000. Remove 1806 from existing
xfails; I'm not sure why they are failing, but not because of PR 1806.
1994-01-11 20:24:02 +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
Rob Savoye
c36a1486c6 * config/unix-gdb.exp: Remove gdb_unload cause it's already
defined in lib/gdb.exp
1994-01-11 05:16:50 +00:00
Rob Savoye
7ae5557239 Tweaked to work with either version of expect. removed gdb_unload proc
cause it's already in lib/gdb.exp.
1994-01-11 05:14:08 +00:00
Rob Savoye
9bcc6c3f67 Tweaked to work with either version of expect. 1994-01-11 05:09:44 +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
166b44e41e Add alpha-nw.mt to things to keep 1994-01-11 04:14:32 +00:00
Jim Kingdon
43275cc9bc Add udi2go32.c to things to keep 1994-01-11 04:14:15 +00:00
Jim Kingdon
67d99cad3a Add TODO to things to keep 1994-01-11 04:13:54 +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
f0d2557ca4 * 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.
1994-01-07 21:02:39 +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
Peter Schauer
2db87e2212 * gdb.t07/watchpoint.exp: Clear xfail for calling function with
watchpoint enabled on mips, CALL_DUMMY_BREAKPOINT_OFFSET got defined.
	* gdb.t20/gdbme.cc, gdb.t21/gdbme.cc:  Conversion operator functions
	have to be typeless.
1994-01-07 20:47:45 +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
Jim Kingdon
45dc9be388 * procfs.c (procfs_wait): Fix argument name to match 4 Jan changes.
* Move target_signal_from_host, target_signal_to_host, and
	store_waitstatus from inftarg.c to target.c.  procfs needs them.
	* target.c: Include "wait.h" and <signal.h>.
	* target.h, infrun.c (proceed), proceed callers: Pass new code
	TARGET_SIGNAL_DEFAULT instead of -1.  This avoids problems with
	enums being treated as unsigned and is cleaner.
	* infrun.c (signals_info): Don't print TARGET_SIGNAL_DEFAULT or
	TARGET_SIGNAL_0.
	* infcmd.c (signal_command), infrun.c (signals_info):
	Don't allow user to specify numeric equivalent of
	TARGET_SIGNAL_DEFAULT.
1994-01-06 16:34:51 +00:00
Rob Savoye
70dbc7514f Tweaked to work with either version of expect. 1994-01-06 05:43:20 +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
e14316e7fe * objfiles.c (build_objfile_section_table): Don't abort() if
objfile->sections is already set.

	* objfiles.c (add_to_objfile_sections): Check SEC_ALLOC not SEC_LOAD
	to match recent change to exec.c.
1994-01-04 21:37:25 +00:00
Jim Kingdon
9b70610b4e * 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:36:04 +00:00
Jim Kingdon
1ea8b1dc54 * Version 4.11.3.
* main.c (print_gdb_version): Change year to 1994.

	* ChangeLog, ChangeLog-93: Split ChangeLog at 1994.
	* Makefile.in (NONSRC): Add ChangeLog-93.
1994-01-04 14:58:43 +00:00
Jim Kingdon
ebfdc50149 New for ChangeLog split 1994-01-04 14:45:11 +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
Jim Kingdon
b563c370fb * stabs.texinfo (String Field): Talk about defining several type
numbers at once.
	Fix lint regarding changing node ELF Transformations to
	ELF and SOM Transformations.
1994-01-03 22:30:19 +00:00
Jim Kingdon
eaba7fae01 * stabsread.c (read_enum_type): Use TARGET_INT_BIT not sizeof (int). 1994-01-03 21:49:43 +00:00
Stan Shebs
e1beb23045 Mon Jan 3 11:35:26 1994 Stan Shebs (shebs@andros.cygnus.com)
* configure.in (*-*-lynxos*): Add stabs tests.
1994-01-03 19:39:01 +00:00
Jim Kingdon
b35885f226 * breakpoint.c (frame_in_dummy): Check PC as well as frame. 1994-01-03 17:20:09 +00:00
Peter Schauer
ae5c71d6c1 * mdebugread.c (psymtab_to_symtab_1): Only pass N_STAB symbols
to process_one_symbol.
	* symtab.c (find_pc_psymbol):  Search global_psymbols as well to
	avoid caching a bad endaddr in find_pc_partial_function.
1994-01-03 10:50:26 +00:00
Jim Kingdon
d568b76ab7 * config/m68k/tm-sun3.h: Don't define BELIEVE_PCC_PROMOTION. 1994-01-03 02:48:10 +00:00
Peter Schauer
9ddb33a8e3 * infrun.c (wait_for_inferior): Do not step or step resume past
the end of a one-line function we just stepped into.
1994-01-01 12:36:48 +00:00
Jim Kingdon
89a104c04a * nindy-share/nindy.c: Fix order of arguments to store_unsigned_integer
(second and third arguments were reversed).
	(say): Use varargs.
1993-12-31 23:37:18 +00:00
Jim Kingdon
4c6071f78c * remote-mips.c: Add timeout parameter to mips_request and
mips_receive_packet.
        (callers): pass in mips_receive_wait except mips_initialize (where
        we use it to clean up the kludge where we had been changing
        mips_receive_wait temporarily) and mips_wait (where we pass in
        -1 for no timeout).
1993-12-31 22:34:56 +00:00
Jim Kingdon
fa255c07df * stack.c (print_block_frame_locals): Also print LOC_BASEREG variables. 1993-12-31 19:41:30 +00:00
Peter Schauer
d0cde99c87 * symtab.c (find_methods): Call fprintf_symbol_filtered with DMGL_ANSI. 1993-12-31 14:57:19 +00:00
John Gilmore
534694b377 Insert Peter Kessler's name as inventor (I think). 1993-12-31 08:45:16 +00:00
Jim Kingdon
96e5f16150 * remote-mips.c (mips_error): New function.
* remote-mips.c: Use it instead of error() most places.
	* remote-mips.c (mips_receive_packet): New arg throw_error.
	(mips_initialize): Use it not catch_errors.
	* defs.h: Declare error_pre_print and warning_pre_print here...
	* main.c: ...not here.
1993-12-31 03:05:15 +00:00
Jim Kingdon
ca0865db54 * values.c (unpack_long): Fix garbled error message. 1993-12-30 22:49:48 +00:00
Jim Kingdon
4fb192bec1 * remote-mips.c (mips_error): New function.
* remote-mips.c: Use it instead of error() most places.
1993-12-30 22:25:52 +00:00
Jim Kingdon
05052b638c * breakpoint.c (breakpoint_chain): Make static.
* breakpoint.c, breakpoint.h (frame_in_dummy): New function.
	* stack.c (print_frame_info): Use it.
1993-12-30 20:34:06 +00:00
Peter Schauer
2d3ae7bf6d * exec.c (add_to_section_table): Check for SEC_ALLOC instead of
SEC_LOAD to handle .bss segments properly.
1993-12-30 15:56:06 +00:00
Jim Kingdon
f161923490 * infrun.c (wait_for_inferior): Enable code which assumes that if
we jump into the prologue from another function, then it was a
	subroutine call.  #if 0 AT_FUNCTION_START; the above code should
	take care of this case.
1993-12-30 15:27:52 +00:00
Jim Kingdon
6f4baef628 * valprint.c (val_print_string): Change chunksize from 200
to 8.
1993-12-30 02:40:05 +00:00
Jim Kingdon
7ec52804fe * symfile.c (generic_load): If no arguments, get file name
from get_exec_file.
1993-12-29 21:29:44 +00:00
Jim Kingdon
393e55bac4 * c-exp.y: Revert Kung's change. "..." is not a type, and the
change caused "p (...)0" to dump core.
	* gdbtypes.c (check_stub_method): Don't pass "..." to
	parse_and_eval_type.  This should fix the bug which Kung was
	trying to fix.
1993-12-29 20:52:06 +00:00
Jim Kingdon
4bfe9e81cd * stabsread.c (define_symbol): If we choose not to combine
two symbols, don't just ignore the second (LOC_REGISTER) one.
	* printcmd.c (print_frame_args): If we have a LOC_ARG and a
	LOC_REGISTER, use the LOC_ARG not the LOC_REGISTER.
1993-12-29 18:42:52 +00:00
Jim Kingdon
6c06a518bf * stabs.texinfo (Cross-References): `::' is for nested types only
within <>.
	(Structures): Document static members.
1993-12-29 16:22:31 +00:00
Fred Fish
96e5cb2138 * solib.c (DEBUG_BASE): Remove macro and all references.
* solib.c (debug_base_symbols):  Add array of symbols to lookup.
	* solib.c (IGNORE_FIRST_LINK_MAP_ENTRY):  Add macro.
	* solib.c (look_for_base, locate_base):  Use debug_base_symbols.
	* solib.c (find_solib):  Use IGNORE_FIRST_LINK_MAP_ENTRY.
1993-12-28 23:15:20 +00:00
Kung Hsu
bbc2cef268 CVS:
Modified Files:
	ChangeLog c-exp.y

        * c-exp.y : fix grammar to parse ellipsis (...)
	(fix pr4218)
1993-12-28 20:11:25 +00:00
Kung Hsu
279a3cfdfb Modified Files:
ChangeLog stabsread.c

        * stabsread.c (read_type): fix problem when reading static member
        of a class. caused by change to allow :: inside template
        instantiated name.
1993-12-28 02:46:34 +00:00
Jim Kingdon
168e808729 * stabs.texinfo: Document S type attribute. 1993-12-27 18:59:39 +00:00
Jim Kingdon
666e7e4121 * gdbtypes.h: Expand on comments for TYPE_CODE_BITSTRING and
TYPE_CODE_STRING a bit.
1993-12-27 18:56:23 +00:00
Jim Kingdon
30ae2c91cb * m68k-tdep.c (m68k_skip_prologue, m68k_find_saved_regs):
Allow pea %fp; move.l %sp, %fp instead of link instruction to
	set up the new frame.
1993-12-27 18:44:07 +00:00
Jim Kingdon
d6bbac399c * main.c (init_main): Change "set remotedebug" back to var_zinteger
from var_boolean.
1993-12-27 18:26:57 +00:00
Jim Kingdon
240972ecfb * minsyms.c (prim_record_minimal_symbol): Call
prim_record_minimal_symbol_and_info rather than duplicating code.
1993-12-27 17:49:00 +00:00
Jim Kingdon
8d60affde9 * minsyms.c, symtab.h (prim_record_minimal_symbol{,_and_info}),
coffread.c (record_minimal_symbol),
	xcoffread.c (RECORD_MINIMAL_SYMBOL), callers: Add objfile parameter.
1993-12-27 17:47:28 +00:00
Jim Kingdon
dfb4a50861 * c-exp.y (yylex): Don't try to deal with nested types. 1993-12-27 17:27:45 +00:00
Jim Kingdon
2d2fc7e464 * cp-valprint.c (cplus_print_value): Call check_stub_type on
TYPE_BASECLASS (type, i) before we look at its name.
1993-12-27 17:01:03 +00:00
Jim Kingdon
404f69a80b * dbxread.c: Move default definition of GCC_COMPILED_FLAG_SYMBOL
from here . . .
	* symtab.h: . . . to here.
	* dbxread.c (record_minimal_symbol): Move check for gcc{,2}_compiled.
	and __gnu_compiled* from here . . .
	* minsyms.c (prim_record_minimal_symbol_and_info): . . . to here.
	* minsyms.c (prim_record_minimal_symbol): Call
	prim_record_minimal_symbol_and_info rather than duplicating code.
1993-12-27 16:31:56 +00:00
Jeff Law
e7386e3225 Add comment about breakpoint vector usage. 1993-12-27 04:52:47 +00:00
Jeff Law
e89d48dd88 * stabs.texinfo: Add notes about stabs-in-som where appropriate. 1993-12-27 04:47:59 +00:00
Jeff Law
2f8c3639fa * dbxread.c (process_one_symbol): Handle stabs-in-som just like
stabs-in-elf.
        (pastab_build_psymtabs): Likewise.

        * hppa-tdep.c: Change all comments to reference %r3 or frame pointer
        rather than %r4.
        (frame_chain, skip_prologue, dig_rp_from_stack): Handle %r3 as the
        frame pointer.

        * config/pa/tm-hppa.h (FP_REGNUM): Define as %r3.
        (FIND_FRAME_SAVED_REGS): Handle %r3 as frame pointer.
        (CALL_DUMMY): Likewise.
1993-12-27 04:46:05 +00:00
Jim Kingdon
b02fd8caa2 * exec.c (exec_file_command): If error occurs after we have opened
exec_bfd but before we call push_target, make sure to close exec_bfd.
1993-12-26 23:33:14 +00:00
Jim Kingdon
b2f03c3027 Sun Dec 26 16:59:39 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
* infrun.c (wait_for_inferior): Remove confusing and inaccurate
	stuff about subroutine calls, return, etc., from comment which
	says "We've wandered out of the step range.".

Sun Dec 26 09:18:10 1993  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)

	* infrun.c (wait_for_inferior): When checking whether the line has
	changed, check the symtab as well.
1993-12-26 23:06:56 +00:00
Jim Kingdon
5461330147 * gdbtypes.c (force_to_range_type): Use switch statement.
complain() not warning() if the TYPE_CODE isn't one we know how to
	deal with gracefully.  Use builtin_type_int not
	lookup_fundamental_type (the objfile we passed to
	lookup_fundamental_type was sometimes NULL).
1993-12-26 22:37:47 +00:00
Jim Kingdon
f4f0d17487 * valops.c (call_function_by_hand, push_word), defs.h (push_word),
convex-xdep.c, m88k-nat.c, i386m3-nat.c, mips-tdep.c, mipsm3-nat.c,
	ns32km3-nat.c, remote-bug.c, m88k-tdep.c, remote-hms.c, remote-mips.c,
	config/gould/tm-np1.h, hppa-tdep.c (hppa_fix_call_dummy), remote-vx.c:
	Use REGISTER_SIZE, unsigned LONGEST, and
	{store,extract}_unsigned_integer, instead of sizeof
	(REGISTER_TYPE) and REGISTER_TYPE.
	* All tm.h files: Change REGISTER_TYPE to REGISTER_SIZE.
	* hppa-tdep.c (pa_print_fp_reg): Remove unused variable val.

	* Makefile.in (ALLDEPFILES): Remove i386ly-nat.c and m68kly-nat.c.
	Add lynx-nat.c.
1993-12-26 18:10:22 +00:00
Jeff Law
192c3eeb94 * hppa-tdep.c (init_extra_frame_info): Correctly adjust the base
of the current frame when "fromleaf" is true.  Do not adjust the
        frame base of the innermost frame if it is a leaf function.
1993-12-26 04:06:32 +00:00
Jim Kingdon
28f851f93a * stabsread.c (define_symbol): Only combine a p/r pair into a
LOC_REGPARM if REG_STRUCT_HAS_ADDR.
1993-12-25 19:50:45 +00:00
Jim Kingdon
008d4449a7 Sat Dec 25 09:50:29 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
* valops.c (value_struct_elt): Check for (value)-1 return from
	search_struct_method.
1993-12-25 19:28:47 +00:00
Jim Kingdon
04f566a356 * defs.h: Move definitions of TARGET_*_BIT after include of tm.h.
The old way (using #undef in tm.h) was ugly and asking for
	trouble, because it makes it possible for some file to use the
	wrong definition.  Move definition of HOST_CHAR_BIT after definition
	of TARGET_CHAR_BIT.
	* config/alpha/tm-alpha.h, config/h8300/tm-h8300.h,
	config/h8500/tm-h8500.h, config/z8k/tm-z8k.h: Don't undef TARGET_*_BIT
	before defining them.
1993-12-25 18:44:22 +00:00
Jim Kingdon
504ccfd788 * mdebugread.c: Change the builtin_type_* in this file to
mdebug_type_* and make them static.  Use TYPE_CODE_ERROR for
	complex and float decimal.
1993-12-25 18:04:33 +00:00
Jim Kingdon
ca603cff1e * printcmd.c (disassemble_command): Call wrap_here between printing
address and printing instruction.
1993-12-25 15:58:46 +00:00
Jim Kingdon
7677d4fda4 * stabsread.c (read_type): Don't fall through 'S' case (the case it
was falling though happened to do the thing thing ("break;") but that
	is hardly a good thing to assume).
1993-12-24 20:43:29 +00:00
Jim Kingdon
8ba154e2f0 remove stray <<<<< from CVS 1993-12-24 19:05:23 +00:00
Per Bothner
852b3831ce * valops.c (value_coerce_array): Handle STRINGs as well as ARRAYs. 1993-12-21 22:22:45 +00:00
Per Bothner
cba009211a * ch-exp.y (match_dollar_tokens): Fix off-by-one bug.
* ch-lang.c (chill_is_varying_struct), ch-lang.h:  New function.
	* ch-lang.c (chill_printstr):  Use double quotes, not single quotes.
	* ch-typeprint.c (chill_type_print_base):  Handle TYPE_CODE_BITSTRING.
	Improve printing of TYPE_CODE_STRING, TYPE_CODE_SET, and
	TYPE_CODE_STRUCT (including checking chill_is_varying_struct).
	Print TYPE_DUMMY_RANGE by printing its TYPE_TARGET_TYPE.
	Handle TYPE_CODE_ENUM.
	* ch-valprint.c (chill_val_print):  Handle TYPE_CODE_BITSTRING.
	For TYPE_CODE_STRING, never print address.  Handle VARYING strings.
	* gdbtypes.c (force_to_range_type):  New.
	* gdbtypes.c (create_set_type):  Make work, following Chill layout.
	* gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND, TYPE_DUMMY_RANGE): New.
	* stabsread.c (read_type):  Distinguish string and bitstring from
	char-array and set.
	* valarith.c (value_subscript), valops.c (value_coerce_array):
	Handle STRINGs as well as ARRAYs.
	* valarith.c (value_bit_index):  Fix think.  Use new macros.
1993-12-21 22:18:51 +00:00
Kung Hsu
40f2446977 Modified Files:
ChangeLog symtab.c c-valprint.c

        * symtab (decode_line_1): fix a bug when position char is not
        set correctly.
        * c-valprint (c_val_print): handle vtbl printing when vtbl is not
        set up yet.
1993-12-17 18:51:17 +00:00
Ian Lance Taylor
5ddff1344f * mips-tdep.c (read_next_frame_reg): If SIGFRAME_REG_SIZE is not
defined, define it as 4.
1993-12-16 21:47:59 +00:00
Jeff Law
27405a282e * config/m68k/nm-hp300bsd.h: Correctly identify 4.3BSD vs 4.4BSD.
* config/m68k/tm-hp300bsd.h (REMOTE_BPT_VECTOR): Define.

        * config/m68k/tm-m68k.h (REMOTE_BPT_VECTOR): Allow targets to
        override.
        (REMOTE_BREAKPOINT): Likewise.
1993-12-16 21:10:24 +00:00