John Gilmore [Tue, 28 Jan 1992 02:57:37 +0000 (02:57 +0000)]
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.
John Gilmore [Mon, 27 Jan 1992 22:10:05 +0000 (22:10 +0000)]
* 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.
* Makefile.in: added relax, also made three stage go through a
partial link stage.
* relax.c : added
* config.h: if GNU960 defined, then default emulation mode is
GLD960
* ldexp.h, ldexp.c: map to file hooks
* ldlang.c: map to file hooks
* ldgram.y: added -Map -relax
* ldlex.l: added -relax, -Map
* ldmain.c: open map file
* ldmisc.c: support for map file
* ldwrite.c: new relax magic
Roland Pesch [Fri, 24 Jan 1992 03:38:02 +0000 (03:38 +0000)]
(1) describe -relax
(2) restructure machine dependencies into separate chapter
(3) replace pretty, but quick to become obsolete, graph of BFD platforms
vs architectures with extended excerpt from (and ref to ) objdump -i.
* symbols.c(colon): if a symbol is being multiply defined as exactly
the same value, then don't cause a fatal error. This fixes
P00000616 - where a def _foo= . followed by foo: is seen.
Roland Pesch [Tue, 21 Jan 1992 22:25:37 +0000 (22:25 +0000)]
(1) Changes made yesterday, forgot to check in:
a) cleanups to node structure for Info file
b) .lflags (ignored) doc restored (was covered previously in
single par on .list-related directives ignored).
c) fill in page size defaults (.psize)
d) move text on H8/300 size suffixes to after opcode table, for
better page breaks
e) @alphaenumerate->@enumerate a in GPL
(2) Doc -a, -al, -as, options to enable listings and listing control
directives; removed FIXME comments re verifying listing counter use;
advanced titlepage date to Jan 92.
* as.c: change -l to -a[lsn], to avoid conflict with 68000
command line option.
* listing.h, listing.c: now prints addresses with ??? instead of 0 when
errors in assemble prevent addresses being known. Prints
symbol table more tidily. Allows different parts of the
listing to be selected.
Roland Pesch [Mon, 20 Jan 1992 03:42:12 +0000 (03:42 +0000)]
all.m4: correct AMD 29K entry (changed elsewhere to _A29K__ some time ago)
Makefile: preprocess w/GNU m4 by default, use "all" as default config
as.texinfo: index, at last;
listing directives;
improvements (re width suffixes) to H8 machine-dep
Roland Pesch [Wed, 15 Jan 1992 23:09:45 +0000 (23:09 +0000)]
refcard.tex: single file now includes what were formerly three files, to suit
FSF preferences (format definitions, nee threecol.tex, and
default font defs, nee rc-cm.tex, now both directly in this file).
lpsrc.sed, psrc.sed: alternate font defs, now sed scripts to modify refcard.tex
Makefile.in: use sed -f psrc.sed to produce refcard.ps target; new
target lrefcard.ps for sites using long PS font names
Removed old auxiliary TeX files, no longer necessary with this scheme.
Roland Pesch [Wed, 15 Jan 1992 19:59:53 +0000 (19:59 +0000)]
Reactivate paragraph on preformatted PostScript refcard (now referring
to GhostScript as well as to PostScript); I've verified GhostScript can
display it.
Stu Grossman [Wed, 15 Jan 1992 00:40:30 +0000 (00:40 +0000)]
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.
Wed Jan 8 11:26:40 1992 Steve Chamberlain (sac at rtl.cygnus.com)
Added support for listings
* Makefile.in: include listing.[co]
* as.c: parse -l
* as.h: include listing.h, include listing hook into frag
* frags.c (frag_new): hook for creating line number info
* messages.c (as_warn, as_bad): remember message for listing
* read.c: add new pseudos to the table
* write.c: (relax_segment): need to cope with branches with 0
offsets, so create M68K_AIM_KLUDGE- this came to light because
listings make lots of zero length frags.
* listing.c, listing.h: new files