Peter Schauer [Sat, 15 Oct 1994 10:50:07 +0000 (10:50 +0000)]
* eval.c (evaluate_subexp): Make fnptr a LONGEST instead
of using longest_to_int.
* infcmd.c (run_stack_dummy): Reinstate set_current_frame call,
mips and alpha targets need the real breakpoint pc for
creating the breakpoint frame.
* stack.c (return_command): Cast return value to the return
type of the function from which we return.
* values.c (set_return_value): Pass VALUE_CONTENTS unmodified
to STORE_RETURN_VALUE.
* symtab.c (lookup_symbol): Remove search for `static mangled
symbols', the search for `static symbols' already looks for
mangled and demangled symbols via lookup_block_symbol.
* valarith.c (value_binop): Use ANSI C arithmetic conversions
when performing integral evaluations, implement BINOP_EQUAL and
BINOP_LESS.
(value_equal, value_less): Use value_binop to perform the
comparison if both operands have TYPE_CODE_INT.
* rs6000-tdep.c (pop_frame): Make sure all registers are valid,
as they are written back later. Handle sp restore for frameless
functions. Use fdata.nosavedpc instead of fdata.frameless to
determine if the pc has been saved.
(function_frame_info): Handle `mr r31,r1', which is generated by
gcc-2.6, as a synonym for `oril r31,r1,0'.
(skip_trampoline_code): Handle shared library trampolines.
* xcoffread.c (read_xcoff_symtabs): Record XMC_GL symbols with
their real name. Enables setting of breakpoints in shared libraries
before the executable is run.
Rob Savoye [Sat, 15 Oct 1994 01:45:59 +0000 (01:45 +0000)]
* monitor.h, remote-mon.c: Hack up to so the old ROM monitor
interface code still works with the new ROM monitor
structures. Fake out a couple of fields.
Ken Raeburn [Fri, 14 Oct 1994 23:17:15 +0000 (23:17 +0000)]
update to version 2.5
Ken Raeburn [Fri, 14 Oct 1994 23:08:21 +0000 (23:08 +0000)]
From 2.5 release:
* Makefile.in (BISON): Use bison -y, not bison.
* Makefile.in (VERSION): Updated to 2.5.
(clean-here): Delete stamp-mk.com.
(distclean): Delete .gdbinit.
Also, note release in changelog.
J.T. Conklin [Fri, 14 Oct 1994 22:57:12 +0000 (22:57 +0000)]
* Makefile.in (ALL_EMULATIONS): Add ei386nw.o and eppcnw.o.
(ei386nw.c, eppcnw.c): New targets.
* config/{i386,ppc}-nw.mt, emulparams/{i386,ppc}nw.sh,
scripttmpl/nw.sc: New files, for i386 and powerpc netware.
* configure.in: Changed netware ld_target name to be {i386,ppc}-nw
instead of {i386,ppc}-elf.
* configure.in (sparc*-*-netware): Removed. There is no such
thing anymore.
Ian Lance Taylor [Fri, 14 Oct 1994 22:34:50 +0000 (22:34 +0000)]
clobbered somehow by previous checkin
Stan Shebs [Fri, 14 Oct 1994 22:05:54 +0000 (22:05 +0000)]
* h8500-tdep.c (target_read_sp, target_write_sp, target_read_pc,
target_write_pc, target_read_fp, target_write_fp): Rename to
h8500_read_sp, etc.
(h8500_read_pc, h8500_write_pc): Add pid argument.
* config/h8500/tm-h8500.h (TARGET_READ_SP, TARGET_WRITE_SP,
TARGET_READ_PC, TARGET_WRITE_PC, TARGET_READ_FP, TARGET_WRITE_FP):
Change to match functions above.
J.T. Conklin [Fri, 14 Oct 1994 21:38:10 +0000 (21:38 +0000)]
* ldint.texinfo: Move misplaced `@end iftex'.
Ian Lance Taylor [Fri, 14 Oct 1994 18:57:57 +0000 (18:57 +0000)]
* configure.in (configdirs): Remove definition--testsuite is no
longer configured.
* Makefile.in (testsuite): Remove target.
(site.exp): New target.
(check): Rewrite.
(clean, distclean): Don't recur into testsuite directory.
Ian Lance Taylor [Fri, 14 Oct 1994 18:56:29 +0000 (18:56 +0000)]
Rewrite testsuite.
* configure.in, Makefile.in: Remove.
* binutils-all/configure.in, binutils-all/Makefile.in: Remove.
* binutils-all/bintest.c: Remove.
* binutils-all/bintest.s: New file.
* binutils-all/nm.exp, binutils-all/objdump.exp: Rewrite.
* binutils-all/size.exp: Rewrite.
* config/default.exp: Load utils-lib.exp. Set AS and ASFLAGS.
Don't go up one directory from $base_dir. Create tmpdir.
(binutils_run, binutils-assemble): New procedures.
* config/unix.exp: Remove.
* config/mt-a29k-udi, config/mt-i386-aout: Remove.
* config/mt-i960-nindy, config/mt-lynx, config/mt-m68k: Remove.
* config/mt-mips-ecoff, config/mt-slite: Remove.
* config/mt-sparc-aout, config/mt-vxworks: Remove.
* lib/utils-lib.exp (binutil_version): Don't redirect standard
input when getting version. Don't unset errorInfo.
(default_binutils_run): New procedure.
(default_binutils_assemble): New procedure.
Ian Lance Taylor [Fri, 14 Oct 1994 16:04:27 +0000 (16:04 +0000)]
Fri Oct 14 12:02:18 1994 Eric Youngdale (eric@aib.com)
* scripttempl/elf.sc: Add .rel.ctors, .rela.ctors, .rel.dtors, and
.rela.dtors to the list of .rel* sections.
Ian Lance Taylor [Fri, 14 Oct 1994 15:09:07 +0000 (15:09 +0000)]
* bfd.c (bfd_scan_vma): Cast end to be non const before passing it
to strtoul.
Jason Merrill [Thu, 13 Oct 1994 22:52:54 +0000 (22:52 +0000)]
Thu Oct 13 15:51:20 1994 Jason Merrill (jason@phydeaux.cygnus.com)
* Makefile.in (ALL_TARGET_MODULES): Add libstdc++.
(CHECK_TARGET_MODULES): Ditto.
(INSTALL_TARGET_MODULES): Ditto.
(TARGET_LIBS): Ditto.
(all-libstdc++): Note dependencies.
Jim Kingdon [Thu, 13 Oct 1994 20:44:08 +0000 (20:44 +0000)]
* NEWS: Add item about if and while.
Jim Kingdon [Thu, 13 Oct 1994 20:36:04 +0000 (20:36 +0000)]
* .gdbinit: Restore `end'; it was not excess. Reindent
list-objfiles to make this clear. Comment out all of
list-objfiles because old gdb's choke on it.
Ian Lance Taylor [Thu, 13 Oct 1994 18:41:39 +0000 (18:41 +0000)]
* bfd.c (bfd_scan_vma): Pass end argument on to strtoul.
Ken Raeburn [Thu, 13 Oct 1994 18:17:11 +0000 (18:17 +0000)]
configure.in: handle i[345]86-*-linux*, not just -linux
Ken Raeburn [Thu, 13 Oct 1994 15:45:43 +0000 (15:45 +0000)]
te-netbsd532.h -> te-nbsd532.h
Ian Lance Taylor [Thu, 13 Oct 1994 15:26:35 +0000 (15:26 +0000)]
* scripttempl/aout.sc: Set _etext and __etext to ., not
${DATA_ALIGNMENT}. This is compatible with SunOS, and, with luck,
will not break any other system. From Eric Valette
<ev@chorus.fr>.
Ian Lance Taylor [Thu, 13 Oct 1994 03:21:47 +0000 (03:21 +0000)]
correct comment
Ian Lance Taylor [Thu, 13 Oct 1994 03:20:47 +0000 (03:20 +0000)]
* config/mips/tm-bigmips64.h: Just define TARGET_BYTE_ORDER and
include tm-mips64.h.
Stan Shebs [Thu, 13 Oct 1994 02:37:31 +0000 (02:37 +0000)]
xcoffexec.c is gone
Stan Shebs [Thu, 13 Oct 1994 02:28:24 +0000 (02:28 +0000)]
* Makefile.in (ANNOTATE_OBS): New definition.
(COMMON_OBS): Add exec.o.
(annotate.o): Remove extra compile rule.
* config/*/*.mh, config/*/*.mt: Remove exec.o from *DEPFILES lists
everywhere.
Rob Savoye [Thu, 13 Oct 1994 02:04:51 +0000 (02:04 +0000)]
It works fully now.
Rob Savoye [Thu, 13 Oct 1994 02:03:09 +0000 (02:03 +0000)]
Cleanup debugging messages.
Stan Shebs [Thu, 13 Oct 1994 02:00:07 +0000 (02:00 +0000)]
* .gdbinit: Remove excess `end'.
Stan Shebs [Thu, 13 Oct 1994 01:16:19 +0000 (01:16 +0000)]
* exec.c: Merge in RS6000 support from xcoffexec.c.
(symfile.h, objfiles.h, xcoffsolib.h): Include.
(vmap): New global variable.
(exec_close): Close and free objects in vmap chain.
(exec_file_command) [IBM6000_TARGET]: Set up initial vmap.
(bfdsec_to_vmap, map_vmap): Moved here from xcoffexec.c.
(exec_files_info): Print vmap information.
* xcoffexec.c: Remove.
* config/rs6000/rs6000.mt, config/rs6000/rs6000lynx.mt
(TDEPFILES): Use exec.o instead of xcoffexec.o.
* TODO: Remove pertinent items.
Ken Raeburn [Thu, 13 Oct 1994 00:33:21 +0000 (00:33 +0000)]
Renamed config/te-netbsd532.h to te-nbsd532.h.
J.T. Conklin [Wed, 12 Oct 1994 23:35:54 +0000 (23:35 +0000)]
* config/cplus-dem.c: Removed. It isn't used. Even if it was,
it's better to use the one in libiberty.
Rob Savoye [Wed, 12 Oct 1994 23:12:47 +0000 (23:12 +0000)]
Cleanup debug logging, fix single stepping. WinBond works good!
Ken Raeburn [Wed, 12 Oct 1994 22:53:26 +0000 (22:53 +0000)]
* symbols.c (resolve_symbol_value, case O_symbol): Undo last change; it breaks
the rs6000 support, and doesn't seem to be needed.
Ian Lance Taylor [Wed, 12 Oct 1994 21:51:04 +0000 (21:51 +0000)]
* ecoff.c (ecoff_set_symbol_info): Mark local stProc or stLabel
symbols as BSF_DEBUGGING.
PR 5769.
Ken Raeburn [Wed, 12 Oct 1994 21:39:54 +0000 (21:39 +0000)]
* opncls.c (bfd_realloc): Deleted, since it's broken and fixing it would make
it slow. Besides, it isn't used much.
* elfcode.h (elf_map_symbols): Always allocate new storage for the symbol table.
Ian Lance Taylor [Wed, 12 Oct 1994 20:26:35 +0000 (20:26 +0000)]
* lexsup.c (parse_args): Change -V to be a synonym for -v. Add
--verbose to get the old -V behaviour.
* ld.1, ld.texinfo: Document this change.
Ken Raeburn [Wed, 12 Oct 1994 20:15:17 +0000 (20:15 +0000)]
Sigh. I nuked more than one set of dje's changes.
Ken Raeburn [Wed, 12 Oct 1994 20:13:12 +0000 (20:13 +0000)]
Restore dje's changes that I accidentally nuked.
J.T. Conklin [Wed, 12 Oct 1994 19:01:58 +0000 (19:01 +0000)]
* config/tc-i386.h,te-netbsd532.h (TARGET_FORMAT): Changed to
a.out-<arch>-netbsd to match corresponding changes in BFD.
Ian Lance Taylor [Wed, 12 Oct 1994 18:11:52 +0000 (18:11 +0000)]
* config/tc-ppc.c (ppc_fix_adjustable): Resolve symbol values
rather than explicitly adding the frag address.
* config/obj-coff.c (coff_frob_symbol): Add a zero entry to mark
the end of the line numbers; this replaces the zero entry which
used to be added by coff_add_linesym, removed Oct 7.
(coff_adjust_section_syms): Ignore sections with no seginfo.
Update the RS/6000 assembler for recent gas changes.
Ian Lance Taylor [Wed, 12 Oct 1994 16:19:33 +0000 (16:19 +0000)]
* rs6000-core.c (rs6000coff_core_file_matches_executable_p): Make
str1 and str2 const pointers.
Jeff Law [Wed, 12 Oct 1994 16:13:51 +0000 (16:13 +0000)]
* partial-stab.h (N_TEXT): Delete GDB_TARGET_IS_HPPA kludge; they
are no longer needed as of gcc-2.6.0.
Ian Lance Taylor [Wed, 12 Oct 1994 15:57:28 +0000 (15:57 +0000)]
* Makefile.in (INSTALL): Use top level install.sh script.
* config/README (INSTALL): Remove.
* config/delta88.mh (INSTALL): Remove.
* config/i386v4.mh (INSTALL): Remove.
* config/irix4.mh (INSTALL): Remove.
* config/irix5.mh (INSTALL): Remove.
* config/ncrt3000.mh (INSTALL): Remove.
Ken Raeburn [Wed, 12 Oct 1994 06:56:16 +0000 (06:56 +0000)]
shut up if only a subset was checked out in the first place
Ken Raeburn [Wed, 12 Oct 1994 05:46:05 +0000 (05:46 +0000)]
* Makefile.in (bootstrap, bootstrap2, bootstrap3): Create a "stage" symlink to
the appropriate stage* directory, and use it instead in the -B options.
(comparison): Revert yesterday's change.
Ken Raeburn [Wed, 12 Oct 1994 05:41:45 +0000 (05:41 +0000)]
* config/tc-sparc.c (tc_gen_reloc): For non-a.out relocations, if pc-relative,
use fx_offset only, ignore address of relocation.
Rob Savoye [Wed, 12 Oct 1994 03:34:08 +0000 (03:34 +0000)]
Breakpoints work, run works. Fixed "monitor" command.
Karen Christiansen [Tue, 11 Oct 1994 23:59:43 +0000 (23:59 +0000)]
updating to match changes made to progressive/build-all.mk
Rob Savoye [Tue, 11 Oct 1994 22:12:30 +0000 (22:12 +0000)]
Writing to memory now works for both targets.
Ian Lance Taylor [Tue, 11 Oct 1994 21:40:54 +0000 (21:40 +0000)]
Tue Oct 11 13:57:56 1994 Eric Youngdale (eric@andante.aib.com)
* elf32-i386.c (elf_i386_check_relocs): Make sure that a symbol
with a global offset table entry or a procedure linkage table
entry is added to the dynamic symbol table.
* elf32-sparc.c (elf32_sparc_check_relocs): Likewise.
* elf32-i386.c (elf_i386_adjust_dynamic_symbol): If a symbol has
already gotten a procedure linkage table entry, change the
definition to the PLT entry.
* elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Likewise.
Ian Lance Taylor [Tue, 11 Oct 1994 21:13:45 +0000 (21:13 +0000)]
* lynx-core.c (lynx_core_file_p): SPARC Lynx appears to start
dumping the .data section in a core file at a page boundary.
Ian Lance Taylor [Tue, 11 Oct 1994 21:08:57 +0000 (21:08 +0000)]
* lynx-nat.c (child_wait): Correct handling of byte reversed SPARC
Lynx wait status.
(fetch_core_registers): Don't try to fetch a register if
regmap maps it to -1.
* sparc-tdep.c (sparc_frame_find_saved_regs): Use FRAME_SAVED_I0
and FRAME_SAVED_L0 when setting saved_regs_addr. SPARC Lynx
stores the registers in a weird order.
These patches make SPARC Lynx gdb usable, though it still has problems.
Jason Merrill [Tue, 11 Oct 1994 19:43:48 +0000 (19:43 +0000)]
Tue Oct 11 12:12:29 1994 Jason Merrill (jason@phydeaux.cygnus.com)
* Makefile.in (CXXFLAGS): Use -fno-implicit-templates instead of
-fexternal-templates.
Because libstdc++ won't build with -fexternal-templates.
Ian Lance Taylor [Tue, 11 Oct 1994 19:25:42 +0000 (19:25 +0000)]
* config/tc-mips.c (mips_ip): Don't use S_IS_LOCAL when checking
for an embedded PIC switch expression, since the definition of
S_IS_LOCAL was changed.
Jason Merrill [Tue, 11 Oct 1994 19:13:46 +0000 (19:13 +0000)]
Tue Oct 11 12:12:29 1994 Jason Merrill (jason@phydeaux.cygnus.com)
* configure.in (target_libs): Add libstdc++.
(noconfigdirs): Add libstdc++ as appropriate.
Ken Raeburn [Tue, 11 Oct 1994 19:12:55 +0000 (19:12 +0000)]
* Makefile.in (comparison): When comparing as.new or gasp.new, try running the
binary through sed to avoid differences due to "stage1" or "stage2" having been
written into the binary.
Rob Savoye [Tue, 11 Oct 1994 04:37:18 +0000 (04:37 +0000)]
Memory_reads_inferior() and monitor_fetch_registers() now work good on
both targets. On to the "set" functions...
David Edelsohn [Mon, 10 Oct 1994 21:04:34 +0000 (21:04 +0000)]
Keep/lose arc stuff.
J.T. Conklin [Mon, 10 Oct 1994 20:54:28 +0000 (20:54 +0000)]
* nlmconv.c (link_inputs): Pass -Ur flag to ld so that the
ctor/dtor tables needed by C++ programs are built.
Ken Raeburn [Mon, 10 Oct 1994 20:38:06 +0000 (20:38 +0000)]
* cofflink.c (_bfd_coff_final_link): Cast argument to bfd_h_put_32 to correct
type.
(coff_read_string_table): Cast argument to bfd_h_get_32 to correct type.
* elfcode.h (elf_link_output_extsym): Cast argument to bfd_elf_hash to correct
type.
Ken Raeburn [Mon, 10 Oct 1994 20:30:32 +0000 (20:30 +0000)]
* elf32-sparc.c (elf_sparc_howto_table): The PC10, PC22, and WPLT30 relocations
are PC-relative.
David Edelsohn [Mon, 10 Oct 1994 17:24:43 +0000 (17:24 +0000)]
Move COPYING.NEWLIB to cygnus_files.
Don't want it appearing in fsf releases!
Jim Wilson [Mon, 10 Oct 1994 01:06:20 +0000 (01:06 +0000)]
* Makefile.in (srconv.o): Add dependence on sysroff.c.
Jim Kingdon [Sun, 9 Oct 1994 14:52:02 +0000 (14:52 +0000)]
* gdb.base/corefile.exp: Add (xfail'd) test for reinit_frame_cache
bug involving using inferior_pid to figure out whether to select a
frame.
Jim Kingdon [Sun, 9 Oct 1994 04:02:32 +0000 (04:02 +0000)]
* blockframe.c (reinit_frame_cache): Reinstate select_frame call
if inferior_pid is nonzero.
Peter Schauer [Sat, 8 Oct 1994 11:55:45 +0000 (11:55 +0000)]
* config/sparc/tm-sparc.h: Add PARAMS declarations to all
function declarations.
Peter Schauer [Sat, 8 Oct 1994 11:54:29 +0000 (11:54 +0000)]
Speed up GDB startup time by not demangling partial symbols.
* symfile.h (ADD_PSYMBOL_VT_TO_LIST),
symfile.c (add_psymbol_to_list, add_psymbol_addr_to_list):
No longer demangle partial symbols.
* symtab.c (lookup_symbol, list_symbols): Handle mangled
variables, e.g. C++ static members, via the minimal symbols.
Handle reordered functions in an objfile, for Irix 5.2 shared
libraries.
* objfiles.h (OBJF_REORDERED): New bit in the objfile flags,
set if the functions in an objfile are reordered.
* mdebugread.c (parse_partial_symbols): Detect reordered
functions in an objfile.
* symtab.c (find_pc_psymtab, find_pc_symtab): Use expensive
lookup algorithm if the functions in the objfile are reordered.
* xcoffexec.c (exec_close): If the current target has a copy
of the exec_ops sections, reflect the freeing of the sections
in current_target.
* valops.c (call_function_by_hand): Use `sizeof dummy1', not
`sizeof dummy', for constructing the call dummy code.
* config/sparc/tm-sparc.h: Add PARAMS declarations to all
function declarations.
* sparc-tdep.c (sparc_pop_frame): Cast result of
read_memory_integer to CORE_ADDR when passing it to PC_ADJUST.
* irix5-nat.c (enable_break): Set breakpoint at the entry point
of the executable, to handle the case where main resides in a
shared library.
* irix5-nat.c (solib_create_inferior_hook): Reset stop_soon_quietly
after shared library symbol reading, to get rid of a warning from
heuristic_proc_start if the startup code has no symbolic debug info.
* breakpoint.h (struct breakpoint): Add new fields language
and input_radix, to enable breakpoint resetting with the
proper language and radix.
* breakpoint.c (set_raw_breakpoint): Initialize them.
(breakpoint_re_set_one): Use them when resetting the breakpoint.
(breakpoint_re_set): Preserve current language and input_radix
across breakpoint_re_set_one calls.
* symtab.c (decode_line_1): Do not build a canonical line
specification for `*expr' line specifications.
* breakpoint.h (bpstat_stop_status): Fix prototype declaration.
Ken Raeburn [Sat, 8 Oct 1994 07:55:52 +0000 (07:55 +0000)]
elf fixes
Jim Kingdon [Sat, 8 Oct 1994 03:41:21 +0000 (03:41 +0000)]
The point of these changes is to avoid reading the frame pointer
and stack pointer during stepping, to speed things up.
A. Changes to not select a frame until we need a selected frame:
* blockframe.c (flush_cached_frames): Call select_frame (NULL, -1).
* infrun.c (wait_for_inferior): Move call to select_frame back to
normal_stop. This reverts a change of 13 Apr 94 (it says Jeff
Law, but the change was my idea); the only reason for that change
was so we could save and restore the selected frame in
wait_for_inferior, and now that flush_cached frames clears the
selected frame, that should work OK now.
B. Changes to not create a current_frame until we need one:
* blockframe.c (get_current_frame): If current_frame is NULL, try
to create an innermost frame.
* sparc-tdep.c (sparc_pop_frame), infcmd.c (run-stack_dummy),
infrun.c (wait_for_inferior), thread.c (thread_switch),
convex-tdep.c (set_thread_command), a29k-tdep.c (pop_frame),
alpha-tdep.c (alpha_pop_frame), convex-xdep.c (core_file_command),
h8300-tdep.c (h8300_pop_frame), h8500-tdep.c (h8300_pop_frame),
hppa-tdep.c (hppa_pop_frame), i386-tdep.c (i386_pop_frame),
i960-tdep.c (pop_frame), m68k-tdep.c
(m68k_pop_frame), mips-tdep.c (mips_pop_frame), rs6000-tdep.c
(push_dummy_frame, pop_dummy_frame, pop_frame), sh-tdep.c
(pop_frame), config/arm/tm-arm.h (POP_FRAME),
config/convex/tm-convex.h (POP_FRAME), config/gould/tm-pn.h
(POP_FRAME), config/ns32k/tm-merlin.h (POP_FRAME),
config/ns32k/tm-umax.h (POP_FRAME), config/tahoe/tm-tahoe.h
(POP_FRAME), config/vax/tm-vax.h (POP_FRAME): Don't
call create_new_frame.
* corelow.c (core_open), altos-xdep.c (core_file_command),
arm-xdep.c (core_file_command), gould-xdep.c (core_file_command),
m3-nat.c (select_thread), sun386-nat.c (core_file_command),
umax-xdep.c (core_file_command): Don't call create_new_frame; do
call flush_cached_frames.
* blockframe.c (reinit_frame_cache): Don't call create_new_frame
or select_frame.
C. Changes to get rid of stop_frame_address and instead only
fetch the frame pointer when we need it.
* breakpoint.c (bpstat_stop_status): Remove argument
frame_address; use FRAME_FP (get_current_frame ()).
* infrun.c (wait_for_inferior): Don't pass frame pointer to
bpstat_stop_status.
* infrun.c (wait_for_inferior): Use FRAME_FP (get_current_frame
()) instead of stop_frame_address.
* infrun.c (save_inferior_status, restore_inferior_status),
inferior.h (struct inferior_status): Don't save and restore
stop_frame_address.
* inferior.h, infcmd.c, thread.c (thread_switch), m3-nat.c
(select_thread): Remove stop_frame_address and uses thereof.
D. Same thing for the stack pointer.
* infrun.c (wait_for_inferior): Remove stop_sp and replace
uses thereof with read_sp ().
E. Change to eliminate one nasty little spot where we were
wanting to know the frame pointer from before the current step
(idea from GDB 3.5, which saved my ass, because my other ideas of
how to fix it were very baroque).
* infrun.c: Remove prev_frame_address.
* infrun.c (wait_for_inferior, step_over_function): Use
step_frame_address instead of prev_frame_address.
F. Same basic idea for the stack pointer.
* inferior.h, infcmd.c: New variable step_sp.
* infcmd.c (step_1, until_next_command): Set it.
* infrun.c: Remove prev_sp and replace uses by step_sp.
* infrun.c (wait_for_inferior): If we get out of the step
range, then set step_sp to the current stack pointer before we
start going again.
Ken Raeburn [Fri, 7 Oct 1994 22:06:01 +0000 (22:06 +0000)]
coff aux/lineno, m88k, vms/flagseen changes
Ken Raeburn [Fri, 7 Oct 1994 22:02:54 +0000 (22:02 +0000)]
* config/obj-coff.c (do_relocs_for): Test only TC_KEEP_FX_OFFSET, rather than
both it and TC_M88K.
(coff_adjust_section_syms): New function.
(coff_frob_section): For non-empty sections, create aux entry for the section
symbol, indicating the size.
(n_line_nos): New variable.
(add_lineno): Increment it.
(coff_add_linesym): Increment n_line_nos, don't call add_lineno.
(coff_frob_file): New function; map coff_adjust_section_syms over sections.
(obj_coff_line): Only reset line_base for .bf symbols.
* config/obj-coff.h (coff_adjust_section_syms, coff_frob_file): Declare.
(obj_frob_file): New macro.
* config/obj-coff.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Renamed from
obj_frob_forward_symbol, and rewritten for new parameter list.
Ken Raeburn [Fri, 7 Oct 1994 22:00:18 +0000 (22:00 +0000)]
define TC_KEEP_FX_OFFSET
Ken Raeburn [Fri, 7 Oct 1994 22:00:01 +0000 (22:00 +0000)]
Mon Oct 3 21:02:38 1994 Pat Rankin (rankin@eql.caltech.edu)
* config/obj-vms.h (S_IS_LOCAL): fix obsolete flagseen[] reference.
Ian Lance Taylor [Fri, 7 Oct 1994 16:33:35 +0000 (16:33 +0000)]
whoops
Ian Lance Taylor [Fri, 7 Oct 1994 16:20:21 +0000 (16:20 +0000)]
* top.c (target_byte_order_auto): New static variable.
(set_endian): Mention that ``auto'' is permitted.
(set_endian_auto): New static function.
(show_endian): Change message based on target_byte_order_auto.
(set_endian_from_file): New function.
(init_main): Add command ``auto'' to endianlist.
* exec.c (exec_file_command): Call set_endian_from_file.
* defs.h (set_endian_from_file): Declare.
J.T. Conklin [Fri, 7 Oct 1994 01:17:02 +0000 (01:17 +0000)]
* nlm/i386.c (flush_i_cache): New function, does nothing.
(frame_to_registers, registers_to_frame, set_step_traps,
clear_step_traps, do_status): Make non-static.
Per Bothner [Fri, 7 Oct 1994 01:06:03 +0000 (01:06 +0000)]
* config.guess: Update from FSF.
Ian Lance Taylor [Thu, 6 Oct 1994 16:47:32 +0000 (16:47 +0000)]
* defs.h: If TARGET_BYTE_ORDER_SELECTABLE is defined by tm.h,
define TARGET_BYTE_ORDER as target_byte_order, and declare
target_byte_order as an extern int, and define BITS_BIG_ENDIAN as
a test of TARGET_BYTE_ORDER.
* top.c: Several additions if TARGET_BYTE_ORDER_SELECTABLE is
defined:
(endianlist, target_byte_order): New variables.
(set_endian, set_endian_big, set_endian_little): New functions.
(show_endian): New function.
(init_cmd_lists): Initialize endianlist.
(init_main): Add commands ``set endian big'', ``set endian
little'', and ``show endian''.
* a29k-pinsn.c: Rewrite uses of TARGET_BYTE_ORDER and
BITS_BIG_ENDIAN to switch at run time rather than at compile time.
* coffread.c, dwarfread.c, findvar.c, mips-tdep.c: Likewise.
* remote-os9k.c, stabsread.c, valarith.c, valprint.c: Likewise.
* values.c: Likewise.
* mips-tdep.c: Rewrite uses of GDB_TARGET_IS_MIPS64 to switch at
run time rather than at compile time.
Ian Lance Taylor [Thu, 6 Oct 1994 16:43:40 +0000 (16:43 +0000)]
* config/mips/tm-mips.h (GDB_TARGET_IS_MIPS64): If not already
defined, define as 0.
(FIX_CALL_DUMMY): Rewrite to remove presumption that host and
target are similar.
* config/mips/tm-idt.h (TARGET_BYTE_ORDER_SELECTABLE): Define.
* config/mips/tm-idtl.h (TARGET_BYTE_ORDER_SELECTABLE): Define.
* config/mips/tm-idt64.h (TARGET_BYTE_ORDER_SELECTABLE): Define.
(BREAKPOINT): Remove definition.
* config/mips/tm-idtl64.h (TARGET_BYTE_ORDER_SELECTABLE): Define.
(BREAKPOINT): Remove definition.
* config/mips/tm-mips64.h (GDB_TARGET_IS_MIPS64): Define with a
value of 1, rather than without a value.
* config/mips/tm-bigmips64.h (GDB_TARGET_IS_MIPS64): Likewise.
Ian Lance Taylor [Thu, 6 Oct 1994 16:42:52 +0000 (16:42 +0000)]
* remote-mips.c (break_insn): Remove.
(BREAK_INSN, BREAK_INSN_SIZE): Define.
(mips_insert_breakpoint): Use BREAK_INSN, not break_insn.
(mips_remove_breakpoint): Likewise.
Rob Savoye [Thu, 6 Oct 1994 05:28:49 +0000 (05:28 +0000)]
Both targets initialize, can dump registers too.
Brendan Kehoe [Wed, 5 Oct 1994 21:32:42 +0000 (21:32 +0000)]
* Makefile.in (all-prms): Depend on all-librx.
J.T. Conklin [Wed, 5 Oct 1994 21:01:54 +0000 (21:01 +0000)]
* nlm/configure.in: ${gdb_host_cpu} defaults to ${host_cpu}.
J.T. Conklin [Wed, 5 Oct 1994 18:45:58 +0000 (18:45 +0000)]
yet another typo
J.T. Conklin [Wed, 5 Oct 1994 18:44:56 +0000 (18:44 +0000)]
* nlm/Makefile.in: Get rid of NWINCLUDES.
* config/{alpha,powerpc}/gdbserve.mt: Remove NWINCLUDES.
User should now configure with --with-headers.
Ian Lance Taylor [Wed, 5 Oct 1994 18:43:30 +0000 (18:43 +0000)]
* archive.c (bfd_construct_extended_name_table): SVR4 uses slash
newline at the end of the file name, not just newline.
J.T. Conklin [Wed, 5 Oct 1994 18:43:12 +0000 (18:43 +0000)]
Fix typo
J.T. Conklin [Wed, 5 Oct 1994 18:40:49 +0000 (18:40 +0000)]
* nlm/Makefile.in: Get rid of NWINCLUDES.
* config/{alpha,i386,powerpc}: Remove NWINCLUDES. User should
now configure with --with-headers.
Ian Lance Taylor [Wed, 5 Oct 1994 04:13:29 +0000 (04:13 +0000)]
* config/obj-coff.c (coff_frob_section): Remove assert about
section alignment.
* config/tc-sparc.c (md_section_align): Use section alignment, not
xvec align_power_min field.
Jeff Law [Tue, 4 Oct 1994 23:30:39 +0000 (23:30 +0000)]
Add ChangeLog entry that (apparently) I nuked.
Ian Lance Taylor [Tue, 4 Oct 1994 21:30:45 +0000 (21:30 +0000)]
* ecoff.c (_bfd_ecoff_new_section_hook): Default section alignment
power to 4, rather than using align_power_min.
Ian Lance Taylor [Tue, 4 Oct 1994 21:13:51 +0000 (21:13 +0000)]
* coffcode.h (coff_new_section_hook): Don't use align_power_min;
use COFF_DEFAULT_SECTION_ALIGNMENT_POWER instead. Force the .stab
and .stabstr sections to be aligned to no more than 2. Remove
COFF_SPARC special cases.
* coff-a29k.c: Define COFF_DEFAULT_SECTION_ALIGNMENT_POWER.
* coff-apollo.c, coff-go32.c, coff-h8300.c: Likewise.
* coff-h8500.c, coff-i386.c, coff-i960.c, coff-m68k.c: Likewise.
* coff-m88k.c, coff-rs6000.c, coff-sh.c, coff-sparc.c: Likewise.
* coff-we32k.c, coff-z8k.c: Likewise.
PR 5706.
Ian Lance Taylor [Tue, 4 Oct 1994 16:18:19 +0000 (16:18 +0000)]
* configure.in: Use ${config_shell} when running config.bfd.
Ian Lance Taylor [Tue, 4 Oct 1994 16:06:32 +0000 (16:06 +0000)]
* configure: Use ${config_shell} when running ${configsub}.
Ian Lance Taylor [Tue, 4 Oct 1994 15:54:27 +0000 (15:54 +0000)]
* cofflink.c (coff_link_input_bfd): Don't try to convert a long
filename if the offset field is zero.
Ian Lance Taylor [Tue, 4 Oct 1994 15:25:02 +0000 (15:25 +0000)]
* elfcode.h (swap_out_syms): If the alignment of a common symbol
was not set, use a sensible default rather than zero.
PR 5751.
David Edelsohn [Mon, 3 Oct 1994 21:30:15 +0000 (21:30 +0000)]
* config.sub: No longer recognize h8300h.
Ian Lance Taylor [Mon, 3 Oct 1994 16:41:46 +0000 (16:41 +0000)]
* config.sub: Remove extraneous differences between config.sub and
gcc/config.sub.
Jim Kingdon [Mon, 3 Oct 1994 14:51:22 +0000 (14:51 +0000)]
* gdbserver/server.c (main): Silently accept all unrecognized
requests and send back a zero length acknowledge. That is what
*-stub.c do and is what remote.c expects.
Peter Schauer [Mon, 3 Oct 1994 12:14:38 +0000 (12:14 +0000)]
* gdbserver/server.c (main): Silently accept query requests
and send back a zero length acknowledge.
Peter Schauer [Mon, 3 Oct 1994 12:13:46 +0000 (12:13 +0000)]
* corelow.c (core_open): Copy the modified to_sections_end
vector from current_target to core_ops too.
* gdbserver/server.c (main): Silently accept query requests
and send back a zero length acknowledge.
Peter Schauer [Mon, 3 Oct 1994 11:47:38 +0000 (11:47 +0000)]
* rs6000-core.c (rs6000coff_core_p): Set SEC_HAS_CONTENTS flag
for .stack and .ldinfo sections. Cast coredata.c_tab to a
file_ptr to avoid warnings from gcc.