John Gilmore [Sat, 26 Sep 1992 11:00:36 +0000 (11:00 +0000)]
* config/hppabsd.mh, config.hppahpux.mh: Remove various bogosity.
* hosts/hppahpux.h: Remove bcopy and index circumventions.
John Gilmore [Sat, 26 Sep 1992 10:29:01 +0000 (10:29 +0000)]
* config/hppabsd.mh, config/hppahpux.mh: Use standard coredep.o.
Rename all HPPA files to fit into unique DOS filenames:
* *hppabsd* => *hppab*
* *hppahpux* => *hppah*
John Gilmore [Sat, 26 Sep 1992 10:27:10 +0000 (10:27 +0000)]
Rename all HPPA files to fit into unique DOS filenames:
*hppabsd* => *hppab* *hppahpux* => *hppah*
John Gilmore [Sat, 26 Sep 1992 10:24:26 +0000 (10:24 +0000)]
* findvar.c (supply_register): Add CLEAN_UP_REGISTER_VALUE hook.
* tm-hppa.h (CLEAN_UP_REGISTER_VALUE): Use it.
* hppa-coredep.c: Remove, now that we use the hook.
* config/hppab.mh, config/hppah.mh: Use standard coredep.o.
* hppab-xdep.c, hppah-xdep.c: Remove custom code, use hook.
* dbxread.c, partial-stab.h: Replace all #ifdef hp9000s800's with
GDB_TARGET_IS_HPPA's. This is a SERIOUS KLUDGE. The code needs to all
be ripped out and reimplemented right (see elfread.c).
* tm-hppa.h (GDB_TARGET_IS_HPPA): Define.
John Gilmore [Sat, 26 Sep 1992 09:06:30 +0000 (09:06 +0000)]
Make the /proc support a target-struct in its own right.
* inferior.h (proc_wait, inferior_proc_init, proc_set_exec_trap):
No longer global functions.
(fork_inferior): New global function from fork-child.c.
* inftarg.c (child_wait): Remove USE_PROC_FS conditional.
(ptrace_me, ptrace_him): New stub functions for fork_inferior().
(child_create_inferior): Moved to fork-child.c as fork_inferior.
(child_create_inferior): New tiny function that calls fork_inferior.
* fork-child.c: New file, containing fork_inferior, which is
built from slight mods to inftarg.c's child_create_inferior.
* procfs.c (procfs_ops): Add target vector.
(attach): Rename as static do_attach.
(procfs_create_inferior): New tiny function that calls fork_inferior.
(child_xfer_memory): Rename to static procfs_xfer_memory.
(store_inferior_registers): Rename to static procfs_store_registers.
(inferior_proc_init): Rename to static procfs_init_inferior.
(procfs_attach, procfs_detach, procfs_prepare_to_store,
procfs_files_info, procfs_open, procfs_mourn_inferior,
procfs_can_run): Slightly mangled copies of the corresponding
child_XXX routines from inftarg.c.
(proc_wait): Renamed to static procfs_wait.
(child_resume): Rename to static procfs_resume.
(fetch_inferior_registers): Rename to static procfs_fetch_registers.
(initialize_proc_fs): Rename to initialize_procfs. Set up
procfs_ops, too.
* xm-irix4.h, xm-sysv4.h (CREATE_INFERIOR_HOOK): No longer needed.
John Gilmore [Sat, 26 Sep 1992 09:04:24 +0000 (09:04 +0000)]
* putenv.c: index -> strchr.
* regex.c: Always rename bcopy to memcpy, etc.
FIXME: Eventually do the renames rather than use #define's.
* sparc-tdep.c (deferred_stores): Moved from sparc-xdep.c.
Fix bcopy->memcpy.
* sparc-xdep.c: Move deferred_stores to target dependent.
John Gilmore [Sat, 26 Sep 1992 08:08:42 +0000 (08:08 +0000)]
Add inftarg.o and fork-child.o to all *.mh that reference infptrace.o.
Add fork-child.o to all *.mh that reference procfs.o.
John Gilmore [Sat, 26 Sep 1992 08:06:45 +0000 (08:06 +0000)]
* Makefile.in: Remove inftarg.[co], since it is now included via
config/*.mh files.
* config/*.mh: Add inftarg.o and fork-child.o to all *.mh that
reference infptrace.o. Add fork-child.o to all *.mh that
reference procfs.o.
John Gilmore [Sat, 26 Sep 1992 05:41:54 +0000 (05:41 +0000)]
* i960-pinsn.c: Change bzero to memset.
* sparc-pinsn.c: Change index to strchr.
John Gilmore [Sat, 26 Sep 1992 05:39:13 +0000 (05:39 +0000)]
Lint; remove bcopy/bzero.
John Gilmore [Sat, 26 Sep 1992 05:34:14 +0000 (05:34 +0000)]
Lint
John Gilmore [Sat, 26 Sep 1992 05:20:24 +0000 (05:20 +0000)]
Split non-target-dependent code out of target_attach routines.
* target.h: Comments on target_attach args and results.
* infcmd.c (attach_command): Check for existing execution, call
target_attach, set up terminal status and wait_for_inferior, wait
for the attach status, and do normal_stop.
* inftarg.c (child_attach): Remove target independent stuff.
* remote-adapt.c (adapt_attach): Ditto.
* remote-mm.c (mm_attach): Ditto.
* remote-udi.c (udi_attach): Ditto.
* remote-vx.c (vx_attach): Ditto.
Cleanup.
* remote-hms.c (hms_attach): Remove completely, it was useless.
* remote-mm.c, remote-hms.c, remote-udi.c, remote-adapt.c: Remove
commented-out start_remote calls.
* remote-hms.c, remote-adapt.c, remote-mm.c, remote-udi.c: Remove
DENTER and DEXIT macros and their calls. Use a real debugger --
like gdb -- to see what functions are being called when.
John Gilmore [Sat, 26 Sep 1992 02:20:05 +0000 (02:20 +0000)]
Add Adobe a.out support.
* aout-adobe.c: New file. So far, only reads a.out.adobe. FIXME.
* config/adobe.mt: Add.
* configure.in (*-adobe-* target): Add.
* targets.c (a_out_adobe_vec): Add.
* Makefile.in: add aout-adobe.c.
* configure.in: Put two dashes in all entries to be matched.
Add comments to remind people to do this.
Reorder all entries that match manufacturer names, to occur
last, so they will only be matched if no more specific match
occurs. Remove manufacturers `aout', `bout', `coff', and `elf'.
John Gilmore [Sat, 26 Sep 1992 01:49:18 +0000 (01:49 +0000)]
* infrun.c, inftarg.c, inferior.h: Comment and lint cleanups.
Ian Lance Taylor [Sat, 26 Sep 1992 01:20:04 +0000 (01:20 +0000)]
Fri Sep 25 18:18:52 1992 Ian Lance Taylor (ian@cygnus.com)
* tc-m68k.h: if M68KCOFF, define DOT_LABEL_PREFIX (to require
local labels to start with a .) and set REGISTER_PREFIX to %.
tc-m68k.c (m68k_reg_parse): accept REGISTER_PREFIX if defined.
John Gilmore [Sat, 26 Sep 1992 00:55:33 +0000 (00:55 +0000)]
Comment changes.
Stu Grossman [Sat, 26 Sep 1992 00:45:52 +0000 (00:45 +0000)]
Update patches to current version of devo.
Stu Grossman [Fri, 25 Sep 1992 22:59:27 +0000 (22:59 +0000)]
* tm-sparc.h, dbxread.c (read_ofile_symtab): Install Jim Wilson's
fix to differentiate between gcc1 & gcc2 compiled files so that we
can debug calls that pass structs as args correctly.
* symmisc.c (dump_symtab): If block was compiled with gcc, say
so, and what version.
Stu Grossman [Fri, 25 Sep 1992 22:23:54 +0000 (22:23 +0000)]
* remote.c (remote_wait): Make regs be char to avoid picayune
ANSI compiler warnings.
* energize.h: Move all external struct decls to inside of
__STDC__, add prototype for energize_shell_wait().
* energize.c (getpty): Clean up, make us really get a controlling
terminal.
* (energize_initialize): Disable SIGIO prior to setting up for
I/O interrupts. Move setsid(), et. al. to getpty().
* (energize_shell_wait): New routine to wait for things started
via the shell command, uses wait() instead of /dev/proc.
* Also, add prototype for execute_command_1().
Brendan Kehoe [Fri, 25 Sep 1992 22:05:15 +0000 (22:05 +0000)]
* elf.c (section_from_elf_index): Return bfd_abs_section, not 0,
since we should never have a NULL section.
(elf_slurp_symbol_table): If st_shndx doesn't match any of our
tests, set the section to bfd_abs_section.
Ken Raeburn [Fri, 25 Sep 1992 21:14:46 +0000 (21:14 +0000)]
defined(__STDC__) / __STDC__==1 changes recommended by gnu
Ken Raeburn [Fri, 25 Sep 1992 21:05:20 +0000 (21:05 +0000)]
* Makefile.in (ldexp.o, ldctor.o, ldlang.o, ldmain.o, ldwrite.o, lexsup.o,
mri.o, relax.o): Indicate dependence on ldgram.h.
* ld.h (strip_symbols_type): Add value STRIP_SOME.
* ldgram.y (OPTION_RETAIN_SYMBOLS_FILE): New terminal token.
(lang_add_keepsyms_file): New function.
* ldlex.l: Handle "-retain-symbols-file".
* ldsym.c (keepsyms_file, kept_syms): New vars.
(process_keepsyms): New functihon; reads file, marks symbols for saving.
(write_file_locals): File symbols should always be kept.
(ldsym_write): Warn about "-retain-symbols-file" overriding "-S" and "-s".
Process retain-symbols file before setting symtab.
* ldsym.h (SYM_KEEP): New flag for ldsym_type flags.
(keepsyms_file, kept_syms): Declare them.
* ldmain.c (main): Non-fatal errors should still cause non-zero exit status
even with -r.
Stu Grossman [Fri, 25 Sep 1992 19:54:06 +0000 (19:54 +0000)]
* configure.in: Add ncr* configuration.
* z8k-dis.c (struct instr_data_s): Make instr_asmsrc char to make
picayune ANSI compilers happy.
Stu Grossman [Fri, 25 Sep 1992 19:48:50 +0000 (19:48 +0000)]
* readline.c (clear_to_eol, rl_generic_bind): Make static.
(rl_digit_loop): Add arg to call to rl_message().
* vi_mode.c (rl_vi_first_print): Add arg to call to
rl_back_to_indent().
K. Richard Pixley [Fri, 25 Sep 1992 19:19:08 +0000 (19:19 +0000)]
* inftarg.c (child_create_inferior, child_attach,
child_mourn_inferior): collect unix child process stratum
functions which live below the target vector into this file to
facilitate host/target/native split. Also, make them static.
* inflow.c (child_mourn_inferior): removed.
* infrun.c (child_create_inferior, child_attach): removed.
(resume): becomes global so that functions below the
target vector can find it.
* inferior.h (resume): add prototype.
(child_mourn_inferior, child_create_inferior, child_attach):
remove prototypes.
K. Richard Pixley [Fri, 25 Sep 1992 19:11:25 +0000 (19:11 +0000)]
* xcoffexec.c (exec_ops): child_attach and child_create_inferior
replaced with find_default_attach and
find_default_create_inferior.
Steve Chamberlain [Fri, 25 Sep 1992 18:14:29 +0000 (18:14 +0000)]
Fri Sep 25 11:11:57 1992 Steve Chamberlain (sac@thepub.cygnus.com)
* coff-z8k.c: getting closer
* coffcode.h (coff_get_relocated_section_contents): allow
EXTRA_CASES hooks for different arches to provide different reloc
types.
* seclet.h: #ifndef around it to allow multiple inclusion
* srec.c: minor doc fix
Steve Chamberlain [Fri, 25 Sep 1992 18:11:04 +0000 (18:11 +0000)]
Fri Sep 25 11:08:01 1992 Steve Chamberlain (sac@thepub.cygnus.com)
Added initial support for the z8k
* z8ksim.em, z8ksim.sc-sh, z8ksim.sh: new files
* configure.in, Makefile.in: modified to reflect above
* ldlang.c (lang_check): when linking conflicting architectures,
make the output file reflect at least one of the bad inputs.
Ken Raeburn [Fri, 25 Sep 1992 17:23:59 +0000 (17:23 +0000)]
use _filtered routines for printing so symbolic addresses show up in the right place
K. Richard Pixley [Fri, 25 Sep 1992 17:04:36 +0000 (17:04 +0000)]
keep corelow.c
K. Richard Pixley [Fri, 25 Sep 1992 17:03:55 +0000 (17:03 +0000)]
Separate core functions along target vector in preparation for
native support. Functions above vector now live in core.c. Those
below in corelow.c.
* core.c (solib_add_stub, core_close, core_open, core_detach,
get_core_registers, core_files_info, core_ops): moved to corelow.c
(_initialize_core): removed addition of core_ops target.
* corelow.c: new file.
(solib_add_stub, core_close, core_open, core_detach,
get_core_registers, core_files_info, core_ops): moved from core.c
(_initialize_corelow): new function.
* gdbcore.h (core_open, core_detach): added prototypes.
(core_ops): add forward declaration.
* Makefile.in (SFILES_MAINDIR): add core.c
(OBS): add core.o
(TSOBS): change core.o to corelow.o
Steve Chamberlain [Thu, 24 Sep 1992 20:28:14 +0000 (20:28 +0000)]
z8kgen: temp file to generate z8k-opc.h from
z8k-dis.c: fixed various bugs
Brendan Kehoe [Thu, 24 Sep 1992 19:43:45 +0000 (19:43 +0000)]
* listing.c (debugging_pseudo): Add stabs and stabn as things to ignore.
Stu Grossman [Wed, 23 Sep 1992 18:19:19 +0000 (18:19 +0000)]
* m68k-tdep.c (m68k_saved_pc_after_call): Use 'GDB_TARGET_IS_SUN3'
instead of 'sun' predefined symbol so that trap analysis code is
enabled only when the TARGET is a sun3.
Ken Raeburn [Tue, 22 Sep 1992 22:02:54 +0000 (22:02 +0000)]
fix repeated ext_format_i960 local decls so sun4 cc accepts it
Ken Raeburn [Tue, 22 Sep 1992 21:55:21 +0000 (21:55 +0000)]
fix repeated ext_format_i960 local decls so sun4 cc accepts it
Sean Eric Fagan [Tue, 22 Sep 1992 20:07:55 +0000 (20:07 +0000)]
Tue Sep 22 13:02:07 1992 Sean Eric Fagan (sef@cygnus.com)
* obj-coffbfd.c (do_relocs_for,fill_section): now allocate all
sections starting from zero, rather than making them consecutive.
This makes subsequent reloc calculations easier, esp if the
object format doesn't understand addends. (obj_coff_lcomm): (maybe
temporarily) allocate lcomm in .data rather than in .bss. It
seems that some tools can't cope with a non-zero sized bss
before linkage.
Ken Raeburn [Tue, 22 Sep 1992 19:24:33 +0000 (19:24 +0000)]
cpu32 and -mno-688?1 support from p3
Ken Raeburn [Tue, 22 Sep 1992 19:19:02 +0000 (19:19 +0000)]
cpu32 and -mno-688?1 support from p3
Ian Lance Taylor [Tue, 22 Sep 1992 15:32:03 +0000 (15:32 +0000)]
Roll bask the WRS change, since it had already been applied, and the
reversed patch they sent blew my mind.
John Gilmore [Tue, 22 Sep 1992 07:46:14 +0000 (07:46 +0000)]
* mips-pinsn.c (print_insn_arg, case 'B'): Disassemble `break'
instruction's argument. Patch from jonathan@cs.stanford.edu
(Jonathan Stone).
John Gilmore [Tue, 22 Sep 1992 07:34:45 +0000 (07:34 +0000)]
Describe coding style of GDB.
John Gilmore [Tue, 22 Sep 1992 07:23:35 +0000 (07:23 +0000)]
Break the thread of control that implies that a unix child
process will be the default target.
* target.c (find_default_run_target, find_default_attach,
find_default_create_inferior, return_zero): new functions.
(cleanup_target): Make return_zero the default for to_can_run.
* exec.c (exec_ops), core.c (core_ops): Replace child_attach and
child_create_inferior references with find_default_XXX instead.
* target.h (struct target_ops): new field, to_can_run.
(find_default_attach, find_default_create_inferior): new prototypes.
(target_can_run): new macro.
* Also added a zero (default) to_can_run element to all static
struct target_ops initializations throughout GDB, except:
* inftarg.c (child_ops): Use new child_can_run() to enable child runs.
* infrun.c (child_create_inferior): Clean up error handling when
no exec file is specified.
(child_attach): Don't require exec file.
John Gilmore [Tue, 22 Sep 1992 05:23:57 +0000 (05:23 +0000)]
Remove kill_inferior_fast, in favor of target_kill, which goes
through the target vector.
* inferior.h (kill_inferior_fast): remove declaration.
* main.c (disconnect): call quit_cover using catch_errors rather
than calling kill_inferior_fast directly. New way goes through
the target vector, handles attached processes, and writes
command history if appropriate.
(quit_cover): new function, wrapper for quit_command.
* convex-xdep.c, go32-xdep.c, hppabsd-xdep.c, hppahpux-xdep.c,
infptrace.c, procfs.c: Removed all instances of kill_inferior_fast,
inlining them into the local kill_inferior when needed.
John Gilmore [Tue, 22 Sep 1992 02:33:11 +0000 (02:33 +0000)]
* infrun.c (_initialize_infrun): Alias `i handle' == `i signals'.
* stabsread.c (read_struct_type): Simplify complicated expression
for dumb DECstation compiler.
John Gilmore [Tue, 22 Sep 1992 02:32:39 +0000 (02:32 +0000)]
Minor wording changes.
John Gilmore [Tue, 22 Sep 1992 02:26:50 +0000 (02:26 +0000)]
Minor wording changes.
Ian Lance Taylor [Mon, 21 Sep 1992 22:36:04 +0000 (22:36 +0000)]
Patches from WRS:
Mon Sep 21 14:54:35 1992 Ian Lance Taylor (ian@cygnus.com)
* m68k-pinsn (print_insn_arg, fetch_arg): added support for
operands to memory management instructions, from WRS.
Ian Lance Taylor [Mon, 21 Sep 1992 22:31:41 +0000 (22:31 +0000)]
Patches from WRS:
Mon Sep 21 14:44:17 1992 Ian Lance Taylor (ian@cygnus.com)
* tc-m68k.c (m68k_ip): fixed move16 operand handling, from WRS.
Ian Lance Taylor [Mon, 21 Sep 1992 22:30:36 +0000 (22:30 +0000)]
Patches from WRS:
Mon Sep 21 14:41:30 1992 Ian Lance Taylor (ian@cygnus.com)
* mh-irix4: put in patches from WRS.
Ian Lance Taylor [Mon, 21 Sep 1992 22:29:51 +0000 (22:29 +0000)]
Patches from WRS:
Mon Sep 21 14:39:56 1992 Ian Lance Taylor (ian@cygnus.com)
* m68k-pinsn (print_insn_arg, fetch_arg): added support for
operands to memory management instructions, from WRS.
Ian Lance Taylor [Mon, 21 Sep 1992 22:28:42 +0000 (22:28 +0000)]
Patches from WRS:
Mon Sep 21 14:33:58 1992 Ian Lance Taylor (ian@cygnus.com)
* hosts/hp9000.h, hosts/irix3.h: changes from WRS.
K. Richard Pixley [Mon, 21 Sep 1992 20:01:00 +0000 (20:01 +0000)]
tense test typo
K. Richard Pixley [Mon, 21 Sep 1992 19:47:39 +0000 (19:47 +0000)]
fix typo
Roland Pesch [Mon, 21 Sep 1992 17:27:34 +0000 (17:27 +0000)]
More conditional markup so HMS (Hitachi) can have the configuration
of their dreams.
Fred Fish [Sun, 20 Sep 1992 15:50:12 +0000 (15:50 +0000)]
* configure.in: Use i386-elf for all i386/i486 sysv4 hosts, not
just ncr.
Fred Fish [Sun, 20 Sep 1992 15:45:52 +0000 (15:45 +0000)]
* main.c (main): Back out previous language setting changes.
Replace with simple default to C before processing any init
files. There MUST be a language set, even in the absence of
init files or executables, or expression parsing fails.
Fred Fish [Sat, 19 Sep 1992 16:55:34 +0000 (16:55 +0000)]
* main.c (main): Move code that sets initial language to
symfile.c. Fixup places where command files are processed to
be consistent in setting a default language if none has been
previously set.
* symfile.c (set_initial_language): Add code moved from
main() that sets an initial default language when a new
symbol file is read.
* symfile.c (symbol_file_command): Call set_initial_language.
* symtab.c (find_main_psymtab): Add FIXME comment.
John Gilmore [Sat, 19 Sep 1992 12:08:23 +0000 (12:08 +0000)]
* rs6000-tdep.c (push_dummy_frame, pop_dummy_frame): replace
calls to {fetch|store}_inferior_registers with calls to
target_{fetch|store}_registers, for remote-target independence.
John Gilmore [Sat, 19 Sep 1992 11:55:20 +0000 (11:55 +0000)]
* configure.in: removed target_dependent line.
* remote-mm.c (mm_attach): change printf to error to prevent
fallthrough bug.
* remote-udi.c (udi_attach): change printf to error to prevent
fallthrough bug.
John Gilmore [Sat, 19 Sep 1992 11:47:19 +0000 (11:47 +0000)]
comment changes
John Gilmore [Sat, 19 Sep 1992 11:45:20 +0000 (11:45 +0000)]
Left out ChangeLog, oops
John Gilmore [Sat, 19 Sep 1992 11:25:52 +0000 (11:25 +0000)]
* Makefile.in: Fix bug I introduced in merging Rich's change.
* infrun.c (child_create_inferior): Use proceed() rather than
doing all the same stuff by hand.
John Gilmore [Sat, 19 Sep 1992 11:09:01 +0000 (11:09 +0000)]
* Makefile.in, configure.in: add support for files used only when
configured native, that is, when host == target.
John Gilmore [Sat, 19 Sep 1992 10:56:01 +0000 (10:56 +0000)]
* tm-sparc.h, xm-sparc.h: externs and macros relating to deferred
stores are target dependent and were moved from xm to tm.
John Gilmore [Sat, 19 Sep 1992 10:47:09 +0000 (10:47 +0000)]
* Makefile.in (gdb-all.texi): Build in objdir, not $srcdir.
John Gilmore [Sat, 19 Sep 1992 10:21:04 +0000 (10:21 +0000)]
* config/decstation.mh: Add MMALLOC_LIB and MMALLOC_DISABLE
overrides, to avoid problem in xdr_bytes with malloc(0) => 0.
Ken Raeburn [Fri, 18 Sep 1992 21:02:18 +0000 (21:02 +0000)]
fix typo in install rule
Ian Lance Taylor [Fri, 18 Sep 1992 19:37:55 +0000 (19:37 +0000)]
Patched a couple of minor bugs in UDI support. These have been sent
to AMD.
Ken Raeburn [Fri, 18 Sep 1992 16:33:16 +0000 (16:33 +0000)]
fix uninitialized pointer when reading relocs
Steve Chamberlain [Fri, 18 Sep 1992 15:03:59 +0000 (15:03 +0000)]
* tc-m68k.c (m68k_ip): An(disp) is not pc relative.
John Gilmore [Fri, 18 Sep 1992 09:56:28 +0000 (09:56 +0000)]
Remove convert_{to,from}_virtual members from target structs.
John Gilmore [Fri, 18 Sep 1992 09:53:47 +0000 (09:53 +0000)]
* target.h (struct target_ops): removed to_convert_to_virtual and
to_convert_from_virtual elements. Initializations removed from
all static initializations.
(target_convert_to_virtual, target_convert_from_virtual):
removed.
(host_convert_to_virtual, host_convert_from_virtual): Removed
forward declarations.
* target.c (cleanup_target): removed default assignments for
to_convert_to_virtual and to_convert_from_virtual.
* inftarg.c (host_convert_to_virtual, host_convert_from_virtual):
removed.
* findvar.c (value_of_register, value_from_register):
target_convert_to_virtual inlined.
* infcmd.c (do_registers_info): target_convert_to_virtual inlined.
* valops.c (value_assign): target_convert_from_virtual inlined.
John Gilmore [Fri, 18 Sep 1992 09:21:44 +0000 (09:21 +0000)]
* main.c (gdb_readline): Avoid printf_filtered, which sets char
position wrong if used for the prompt.
* utils.c (puts_filtered): Comment: NOT a puts() replacement!
John Gilmore [Fri, 18 Sep 1992 09:20:15 +0000 (09:20 +0000)]
Support for accessing arbitrary MIPS stack frames in memory.
* blockframe.c (get_prev_frame_info): If INIT_FRAME_PC_FIRST is
set, run it before INIT_EXTRA_FRAME_INFO.
* stack.c (frame_info): If PRINT_EXTRA_FRAME_INFO defined, call it.
* mips-tdep.c (init_extra_frame_info): Only clobber the `frame'
(FP) value in the frame_info struct if it is zero (as from top of
execution stack).
(setup_arbitrary_frame): Implement FRAME_SPECIFICATION_DYADIC.
* mips-xdep.c (fetch_inferior_registers): ZERO_REGNUM always
comes back as zero. So does FP_REGNUM, as a trigger for
init_extra_frame_info.
* tm-mips.h (INIT_FRAME_PC_FIRST): Kludge, FIXME, defined to get
the program counter set before INIT_EXTRA_FRAME_INFO is run.
(INIT_FRAME_PC): Defined to null.
(PRINT_EXTRA_FRAME_INFO): print frame pointer location via symtab.
(FRAME_SPECIFICATION_DYADIC): Ask for two args in frame command.
Briefly explain MIPS stacks in GDB.
John Gilmore [Fri, 18 Sep 1992 09:05:54 +0000 (09:05 +0000)]
* Makefile.in (make): Remove obsolete crud.
(sparc-opc.o): Avoid Sun Make VPATH bug.
John Gilmore [Fri, 18 Sep 1992 08:09:25 +0000 (08:09 +0000)]
* tm-rs6000.h (AIX_BUGGY_PTRACE_CALL): Zap, we think we fixed it.
Rich and I believe the "real problem" was that both single_step
and target_resume were issuing PT_CONTINUE calls. This would
cause the second PT_CONTINUE to sometimes fail because the process
was already running.
* infptrace.c (child_resume): Remove AIX_BUGGY_PTRACE_CALL kludge.
John Gilmore [Fri, 18 Sep 1992 07:40:15 +0000 (07:40 +0000)]
Preliminary cleanup for splitting host/native/target.
* infptrace.c (child_resume): Don't deal with NO_SINGLE_STEP
here; it is dealt with at a gdb-target-independent level.
* rs6000-tdep.c (single_step): Don't call ptrace, we are a
high toned routine. Fix return type to void.
Mark Eichin [Fri, 18 Sep 1992 07:37:38 +0000 (07:37 +0000)]
only set PWD if it is already set (and likely wrong). from p3.
John Gilmore [Fri, 18 Sep 1992 07:06:38 +0000 (07:06 +0000)]
* Makefile.in (update-depend, update-alldeps): Split out of
setup-to-dist, for convenience in rebuilding the depend and
alldeps.mak files.
(assorted): Update to catch straggler files when building gdb.tar.Z
John Gilmore [Fri, 18 Sep 1992 06:59:58 +0000 (06:59 +0000)]
Changes to make the gdb.tar.Z rule work better.
* Makefile.in (GDB_SUPPORT_DIRS): Add opcodes.
(DEVO_SUPPORT): Add configure.texi.
(bfd-ilrt.tar.Z): Remove ancient rule.
Mark Eichin [Fri, 18 Sep 1992 06:16:37 +0000 (06:16 +0000)]
from p3. Some shells leave PWD in the environment (old tcsh, ksh at least)
screws nested configures. "unset PWD" is the right answer, except that
Decstation sh doesn't *have* unset.
Note also that the send-pr build will fail if you have PWD in your
environment, because emacs also (foolishly) trusts it.
* configure: just set PWD=`pwd` at the top, since Ultrix sh
doesn't have unset and all success paths (and most error paths)
out set it anyway. (Note: should change all uses of ${PWD=`pwd`}
to just ${PWD} to avoid confusion.)
John Gilmore [Thu, 17 Sep 1992 11:22:54 +0000 (11:22 +0000)]
Improve release doc slightly.
John Gilmore [Thu, 17 Sep 1992 11:02:44 +0000 (11:02 +0000)]
* copying.awk, copying.c (show_copying_command,
show_warranty_command): Rename from copying_info, warranty_info,
to match command function conventions.
John Gilmore [Thu, 17 Sep 1992 10:58:53 +0000 (10:58 +0000)]
* utils.c (prompt_for_continue): Reinitialize more-counts
before printing anything, and again afterward. Fix comments.
(vfprintf_filtered): Eliminate static buffer; use auto buffer,
or alloca() if needed.
* rs6000-xdep.c: Use correct conditional (IBM6000_TARGET) to
detect native versus cross-host.
Stu Grossman [Thu, 17 Sep 1992 05:01:51 +0000 (05:01 +0000)]
* m68k-tdep.c (sun3_saved_pc_after_call): Only do trap check for
Suns. Rename to m68k_saved_pc_after_call.
* tm-68k-noun.h, tm-sun3.h (SAVED_PC_AFTER_CALL): Use
m68k_saved... instead of sun3_saved...
Jim Wilson [Wed, 16 Sep 1992 00:26:24 +0000 (00:26 +0000)]
Make as.new depend on LIBS not the never set LIBDEPS, so that we get an
opcodes directory dependence.
Jim Wilson [Wed, 16 Sep 1992 00:23:52 +0000 (00:23 +0000)]
Update to SPARC V9 draft 1.1. Put brfcx before brfc to avoid superfluous
symbol table entries. Document unimplemented synthetic instructions.
Ian Lance Taylor [Tue, 15 Sep 1992 23:30:30 +0000 (23:30 +0000)]
Tue Sep 15 15:35:38 1992 Ian Lance Taylor (ian@cygnus.com)
* Makefile.in (install): if $(tooldir) exists, install ld in
$(tooldir)/bin.
Ian Lance Taylor [Tue, 15 Sep 1992 23:27:10 +0000 (23:27 +0000)]
Changes to make an installed cross-compiler find everything correctly.
Tue Sep 15 15:32:02 1992 Ian Lance Taylor (ian@cygnus.com)
* Makefile.in (install): if $(tooldir) exists, install as in
$(tooldir)/bin.
Ian Lance Taylor [Tue, 15 Sep 1992 23:26:41 +0000 (23:26 +0000)]
Changes to make an installed cross-compiler find everything correctly.
Tue Sep 15 15:26:38 1992 Ian Lance Taylor (ian@cygnus.com)
* Makefile.in (install): if $(tooldir) exists, install nm and
strip in $(tooldir)/bin.
Ian Lance Taylor [Tue, 15 Sep 1992 23:26:16 +0000 (23:26 +0000)]
Changes to make an installed cross-compiler find everything correctly.
Tue Sep 15 16:00:54 1992 Ian Lance Taylor (ian@cygnus.com)
* configure: always set $(tooldir) to $(libdir)/$(target_alias),
even for a native compilation.
Jim Wilson [Tue, 15 Sep 1992 19:55:26 +0000 (19:55 +0000)]
In brx macro, check for XCC bit set in xcc insns, and not set in icc insns.
In cond macro, do brx before br, to avoid getting extra symbol table entries
due to failed pattern matches.
Roland Pesch [Tue, 15 Sep 1992 17:51:14 +0000 (17:51 +0000)]
Keep h8.m4 now.
Stu Grossman [Tue, 15 Sep 1992 09:19:53 +0000 (09:19 +0000)]
Add missing utils.c patches.
Stu Grossman [Tue, 15 Sep 1992 08:22:29 +0000 (08:22 +0000)]
Don't use prototypes for vfprintf_filtered(). Someday we'll get prototypes of
varargs routines working...
Stu Grossman [Tue, 15 Sep 1992 07:28:05 +0000 (07:28 +0000)]
All new patches for Energize!
Stu Grossman [Tue, 15 Sep 1992 07:12:52 +0000 (07:12 +0000)]
* energize.c (pty_to_kernel): Must check for EAGAIN as
termination condition.
(full_filename): Don't prepend dirname if filename begins with /.
(breakpoint_notify, kernel_dispatch): Deal with DynamicLoad
messages properly!!
(getpty (NCR)): Lotsa bug fixes...
(kernel_dispatch (case StopRType)): Use kill() instead of
killpg() so we can deal with losing systems...
(wait_for_events): Work around NCR select() lossage. It doesn't
zero out readfds when select() returns zero.
(energize_initialize): Use I_SETSIG to get SIGIO interrupts. Use
getcwd() instead of getwd() (NCR getwd() seg faults).
(energize_wait): Use sigaction() for NCR. Their version of signal()
is unreliable by default.
Stu Grossman [Tue, 15 Sep 1992 06:42:19 +0000 (06:42 +0000)]
* procfs.c (proc_wait): Call print_sys_errmsg() if we get an
error from PIOCSWSTOP.
Stu Grossman [Tue, 15 Sep 1992 06:27:18 +0000 (06:27 +0000)]
* breakpoint.c, core.c, exec.c, language.c, main.c, printcmd.c,
symfile.c, target.c, valprint.c: Use _filtered form of *printf.
defs.h, utils.c: Make vfprintf_filtered global.