Commit Graph

336 Commits

Author SHA1 Message Date
John Gilmore eae1a26123 * findvar.c (read_register, write_register): Handle machines
where REGISTER_TYPE is not the same size as "int".
1992-01-28 03:20:39 +00:00
John Gilmore c55e616795 Handle debug symbols in dynamically loaded (relocated) code:
* dbxread.c (read_ofile_symtab):  Fix up N_CATCH better.  Pass
offset to process_one_symbol.
(process_one_symbol):  Take new offset parameter.  Add it into
appropriate symbol types to relocate symbols to loaded addresses.
Handle all possible symbol types, and complain() about types that
we don't expect to see.
* mipsread.c (psymtab_to_symtab_1):  Pass offset of zero to
process_one_symbol (FIXME, should pass real offset).

Misc bugfixes:

* breakpoint.c (resolve_sal_pc):  Split out code to resolve a
sal's PC value.
(set_breakpoint, break_command_1, until_break_command,
catch_command_1, breakpoint_re_set_one):  Use it.
(breakpoint_re_set_one):  Disable bkpts that don't re-set cleanly.
(breakpoint_re_set):  Mention breakpoint number in error messages.
* symtab.h (resolve_sal_pc):  Declare.
* infcmd.c (jump_command):  Use resolve_sal_pc.

* source.c (find_source_lines):  Avoid "Source file is more
recent than executable" when bfd_get_mtime gives 0.
(list_command):  Shorten "FILE, line N" to "FILE:N".

* putenv.c (putenv):  Avoid unportably casting pointers to unsigneds.
1992-01-28 02:57:37 +00:00
Stu Grossman 3c03b5de58 * dbxread.c (process_one_symbol): Make a first cut at handling
symbol tables generated by Suns acc.
1992-01-28 02:24:08 +00:00
Stu Grossman 1aa560b2ea * symtab.c (find_pc_line): Fix stepping into and out of #included
files.
1992-01-27 23:52:11 +00:00
John Gilmore 5a4e721505 * buildsym.c (read_struct_type): Circumvent sun3 sunos "--" compiler bug.
* c-exp.y (yylex):  `this' and `template' are only tokens in C++.
* target.c (target_xfer_memory):  Return errno in preference to EIO.
1992-01-27 22:10:05 +00:00
John Gilmore 3818ed33a9 * xm-convex.h, xm-hp300bsd.h, xm-isi.h, xm-merlin.h, xm-news.h,
xm-np1.h, xm-pn.h, xm-pyr.h, xm-rtbsd.h, xm-symmetry.h, xm-umax.h:
Remove MISSING_VPRINTF declaration, and superfluous "kgdb" defines.
1992-01-27 21:45:35 +00:00
Stu Grossman 71f49876db * Makefile.in (OPCODES): Remove OPCODES defs and refs. There is
no longer any need to copy ../include/opcode/* into gdb.
1992-01-27 21:04:55 +00:00
John Gilmore fd8db897af Split ChangeLog out at Jan 1, 1992. 1992-01-27 20:32:19 +00:00
Fred Fish 2213b721f0 Update with numerous changes received from current maintainer (Peggy
Fieland).  Should not effect release at all.
1992-01-27 16:23:11 +00:00
Per Bothner 24b2fbdc54 Print C++ constructor methods without bogus "return type." 1992-01-27 03:08:01 +00:00
Fred Fish cdb90e99e7 The unused parameter "target" should be a pointer to a structure, not the
entire structure.
1992-01-25 23:59:53 +00:00
Fred Fish 1b07e406ad Convert the couple of references to the local (now removed) version
of ansidecl.h to use the ../include version.
1992-01-24 09:32:03 +00:00
Fred Fish f66f459f43 Misc small fixes for problems uncovered by prototyping. 1992-01-24 06:52:43 +00:00
Fred Fish fc1f864632 The i386_frame_num_args() function takes a pointer to a struct, not
the entire struct itself.
1992-01-24 06:42:04 +00:00
Fred Fish 1b7a420ef5 Correctly cast some arguments to modify_field and {read/write}_register_bytes. 1992-01-24 06:38:17 +00:00
Fred Fish 99140c31fe The list_in_scope pointer needs to be initialized to point to a
valid scope.  Use the file scope as the initial scope.
1992-01-24 06:32:43 +00:00
Fred Fish 9a1ae235a8 Document ansidecl.h going away, in favor of the copy in ../include. 1992-01-24 06:26:18 +00:00
Michael Tiemann 0eb0a82097 Fix demangling of destructors, and fix a minor indentation problem. 1992-01-20 16:55:45 +00:00
Stu Grossman 313085cbc9 * Makefile.in (HFILES): Add partial-stab.h. 1992-01-19 01:19:41 +00:00
Fred Fish be9a236222 Add several new files for stratus (i860* and *-stratus.h). Also add
macro USER_CFLAGS to Makefile.  Add stratus config frags to configure.in.
1992-01-19 00:52:06 +00:00
Fred Fish cdce29eefc Pass address of structure to complain() rather than the entire structure. 1992-01-16 08:57:31 +00:00
Fred Fish 7f4352410f Only compile in solib_add_common_symbols for non-SVR4 (SunOS) shared libs. 1992-01-15 18:01:42 +00:00
Fred Fish a5bd5ba617 Changes to fix bug with static variables within function scopes. 1992-01-15 06:42:32 +00:00
Stu Grossman 8c3d2a53db Reference: gdb-pend/636
* inflow.c:  remove #include <sys/dir.h>.  Not necessary, and
doesn't exist on some systems.
1992-01-15 01:11:30 +00:00
Stu Grossman 5e746644b6 Reference: gdb-pend/646
* infrun.c (wait_for_inferior!!!!):  Prevent gdb from hanging when
nexting over recursive function calls.
1992-01-15 00:52:19 +00:00
Stu Grossman d261ece7ea Reference: gdb-pend/657
* target.c (target_read_string):  Create this routine to read null
terminated strings from the target.  It deals with running off the
end of memory elegantly as well.  solib.c (find_solib):  Use
target_read_string() to avoid problems with running off the end of
memory.
1992-01-15 00:40:30 +00:00
Stu Grossman 7e97eb2826 gdb-pend/620
* inflow.c (child_terminal_info):  #ifdef TIOCPGRP around lines
that reference pgrp_inferior.
1992-01-14 20:31:40 +00:00
Per Bothner 0cf9329b64 * tm-mips.h: Removed BLOCK_ADDRESS_ABSOLUTE, now that
mips-tfile has been hacked to act more "traditionally."
	* dbxread.c:  Fixed typo in comment.
1992-01-13 23:00:42 +00:00
Per Bothner 488d2691c7 * mips-tdep.c (mips_skip_prologue): Add some number of
'sw' instructions before 'addiu' adjusts the stack.
1992-01-12 21:10:42 +00:00
Fred Fish 4d315a071a Many changes to convert over to generic symbol table reading code in
buildsym.c   (second cvs ci attempt)
1992-01-11 01:41:23 +00:00
John Gilmore 1a4d253ce7 Rename bitfields to avoid conflict with macro names in new opcode/sparc.h. 1992-01-02 23:09:53 +00:00
Fred Fish 1d4c28c5fa Makefile.in: Change tm-svr4.h to tm-sysv4.h. Change xm-svr4.h
to xm-sysv4.h.  Split OPCODE_DIR into OPCODE_DIR1 and OPCODE_DIR2
to reflect actual locations of opcode files, so TAGS target will
be buildable.

i386-tdep.c:  Change an erroneous 'm68k' reference to 'i386'.

i386-tdep.c (supply_fpregset, fill_fpregset):  Remove m68k code.

m68k-tdep.c (supply_fpregset, fill_fpregset):  Fix array
dereferencing to access the correct elements.

valops.c (value_addr):  Declare return type of external func value_copy().

xcoffread.c:  Undefine next_symbol_text before redefining it.
1992-01-01 12:32:19 +00:00
Per Bothner 8e9a3f3b18 Mainly stuff to improve handling of TYPE_CODE_REF (C++ reference)
values. (See ChangeLog.)
1991-12-30 19:22:29 +00:00
Per Bothner a3723a4352 Missed some stuff last time.
Also, recognize constructors specially in gdb_mangle_name().
1991-12-28 19:37:55 +00:00
Fred Fish a39ad5ce42 Many small changes to procfs.c to add base support for a new "info proc"
command that prints /proc specific information, changes to solib.c to
allow more flexible handling of finding the dynamic linker structures,
changes to utils.c and defs.h to add a new null_cleanup() function to
serve as an anchor point for cleanup chains with no obvious "first
cleanup".
1991-12-28 06:27:24 +00:00
Per Bothner aab77d5f23 More changes, mostly cleanups from the last set.
Made some more progress in removing duplicate assembly opcode files.
More improvements to how mipsread and to a lesser extent dbxread work.
See the ChangeLog for details.
1991-12-27 21:11:37 +00:00
Fred Fish b440b1e9e4 Various changes to clean up ADD_PSYMBOL_TO_LIST and ADD_PSYMBOL_ADDR_TO_LIST
usages.
1991-12-27 03:55:12 +00:00
John Gilmore e39636f7e7 Roll VERSION to 4.3.2. 1991-12-24 19:39:16 +00:00
Per Bothner 7e258d18e0 Oodles of changes. The most important is adding support for stabs
encapsulated in mips ecoff.  See ChangeLog for the gory details.
1991-12-23 23:16:58 +00:00
Fred Fish 431df2ebac * solib.c (locate_base): Fix uninitialized variable that was
causing return of random value to callee.

	* config/mh-amix, config/mh-i386v4:  Change to find alloca by
	compiling and linking alloca.c, even when it is not strictly
	required.  Also arrange to link with -ltermlib rather than
	-ltermcap.

	* Makefile.in:  Move TERMCAP definition to prior to inclusion
	of host makefile fragments so it can be overridden.
1991-12-23 03:43:48 +00:00
John Gilmore 6b5b330b26 * xcoffread.c (read_symbol_lineno): Logic error in incrementing
symbol table entry number.  (From Metin Ozisik.)
1991-12-21 00:36:59 +00:00
Fred Fish 70b74b930c Document change to config/mh-i386v4. 1991-12-20 19:52:35 +00:00
Fred Fish ee1ad69ccd * configure.in, tm-amix.h, tm-i386v4.h, xm-amix.h, xm-i386v4.h:
Change svr4 references to sysv4.

* source.c:  Move declaration of external function index to
front of file so it is in scope for all references.

* utils.c (error, fatal):  Make definitions consistent with
defs.h declarations (declared as "volatile void").
1991-12-20 19:44:16 +00:00
John Gilmore 859eb781d8 Bugfix rfe and stbrx instrucionts. 1991-12-20 18:56:37 +00:00
Stu Grossman 0a5d35ed30 * command.h, defs.h, eval.h, expression.h, remote-sa.sparc.c,
sparc-tdep.c, symtab.h, target.h, value.h, vx-share/ptrace.h,
vx-share/xdr_ptrace.h, vx-share/xdr_rdb.h:  ANSIfy enums.
1991-12-19 01:14:31 +00:00
Fred Fish c7e53c85dc Document changes to config/tm-amix and config/tm-i386v4. 1991-12-16 21:04:40 +00:00
Fred Fish 6fa6e49649 Print the names of files from which symbols are being loaded if verbose
is set.
1991-12-16 21:01:34 +00:00
Fred Fish f8b76e70b7 Numerous small changes and a complete reorganization of solib.c, to support
SVR4 shared libraries in a manner very close to the original SunOS support.
See the ChangeLog for details.
1991-12-16 20:57:28 +00:00
Fred Fish 619fd1455b Fix miscellaneous comparisons of integer with NULL that elicit compiler
warnings about comparisons of integer with pointer when NULL is defined
as ((void *) 0) rather than just a bare 0.
1991-12-14 00:13:05 +00:00
Fred Fish dda14b63ff Fix a problem on i386 systems where buffered code stream access was failing
to take into account the minimum size granularity of the code section.  For
now, the buffering is simply disabled until it can be done right.
There is still a similar problem in the i386 disassembly code for locations
within 20 bytes of the end of the code segment.
1991-12-08 02:24:21 +00:00