aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
1992-09-26Rename all HPPA files to fit into unique DOS filenames:John Gilmore9-0/+4068
*hppabsd* => *hppab* *hppahpux* => *hppah*
1992-09-26* findvar.c (supply_register): Add CLEAN_UP_REGISTER_VALUE hook.John Gilmore4-21/+59
* 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.
1992-09-26Make the /proc support a target-struct in its own right.John Gilmore5-81/+551
* 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.
1992-09-26* putenv.c: index -> strchr.John Gilmore4-14/+18
* 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.
1992-09-26Add inftarg.o and fork-child.o to all *.mh that reference infptrace.o.John Gilmore46-46/+45
Add fork-child.o to all *.mh that reference procfs.o.
1992-09-26* Makefile.in: Remove inftarg.[co], since it is now included viaJohn Gilmore4-406/+391
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.
1992-09-26* i960-pinsn.c: Change bzero to memset.John Gilmore3-6/+16
* sparc-pinsn.c: Change index to strchr.
1992-09-26Lint; remove bcopy/bzero.John Gilmore2-3/+10
1992-09-26LintJohn Gilmore1-0/+1
1992-09-26Split non-target-dependent code out of target_attach routines.John Gilmore8-320/+52
* 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.
1992-09-26Add Adobe a.out support.John Gilmore3-17/+43
* 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'.
1992-09-26* infrun.c, inftarg.c, inferior.h: Comment and lint cleanups.John Gilmore4-18/+20
1992-09-26Fri Sep 25 18:18:52 1992 Ian Lance Taylor (ian@cygnus.com)Ian Lance Taylor1-0/+6
* 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.
1992-09-26Comment changes.John Gilmore1-0/+4
1992-09-26Update patches to current version of devo.Stu Grossman1-174/+141
1992-09-25* tm-sparc.h, dbxread.c (read_ofile_symtab): Install Jim Wilson'sStu Grossman3-26/+40
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.
1992-09-25* remote.c (remote_wait): Make regs be char to avoid picayuneStu Grossman3-49/+86
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().
1992-09-25 * elf.c (section_from_elf_index): Return bfd_abs_section, not 0,Brendan Kehoe2-4/+10
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.
1992-09-25defined(__STDC__) / __STDC__==1 changes recommended by gnuKen Raeburn2-0/+11
1992-09-25* Makefile.in (ldexp.o, ldctor.o, ldlang.o, ldmain.o, ldwrite.o, lexsup.o,Ken Raeburn3-3/+134
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.
1992-09-25* configure.in: Add ncr* configuration.Stu Grossman3-1/+145
* z8k-dis.c (struct instr_data_s): Make instr_asmsrc char to make picayune ANSI compilers happy.
1992-09-25* readline.c (clear_to_eol, rl_generic_bind): Make static.Stu Grossman2-76/+94
(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().
1992-09-25 * inftarg.c (child_create_inferior, child_attach,K. Richard Pixley4-304/+352
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.
1992-09-25 * xcoffexec.c (exec_ops): child_attach and child_create_inferiorK. Richard Pixley2-3/+13
replaced with find_default_attach and find_default_create_inferior.
1992-09-25Fri Sep 25 11:11:57 1992 Steve Chamberlain (sac@thepub.cygnus.com)Steve Chamberlain4-3/+241
* 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
1992-09-25Fri Sep 25 11:08:01 1992 Steve Chamberlain (sac@thepub.cygnus.com)Steve Chamberlain7-24/+180
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.
1992-09-25use _filtered routines for printing so symbolic addresses show up in the ↵Ken Raeburn1-46/+46
right place
1992-09-25keep corelow.cK. Richard Pixley1-0/+1
1992-09-25 Separate core functions along target vector in preparation forK. Richard Pixley3-244/+292
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
1992-09-24z8kgen: temp file to generate z8k-opc.h fromSteve Chamberlain3-0/+2265
z8k-dis.c: fixed various bugs
1992-09-24* listing.c (debugging_pseudo): Add stabs and stabn as things to ignore.Brendan Kehoe1-0/+5
1992-09-23* m68k-tdep.c (m68k_saved_pc_after_call): Use 'GDB_TARGET_IS_SUN3'Stu Grossman1-0/+6
instead of 'sun' predefined symbol so that trap analysis code is enabled only when the TARGET is a sun3.
1992-09-22fix repeated ext_format_i960 local decls so sun4 cc accepts itKen Raeburn1-4/+2
1992-09-22fix repeated ext_format_i960 local decls so sun4 cc accepts itKen Raeburn1-0/+6
1992-09-22Tue Sep 22 13:02:07 1992 Sean Eric Fagan (sef@cygnus.com)Sean Eric Fagan2-35/+68
* 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.
1992-09-22cpu32 and -mno-688?1 support from p3Ken Raeburn1-27/+59
1992-09-22cpu32 and -mno-688?1 support from p3Ken Raeburn1-0/+10
1992-09-22Roll bask the WRS change, since it had already been applied, and theIan Lance Taylor2-5/+2
reversed patch they sent blew my mind.
1992-09-22* mips-pinsn.c (print_insn_arg, case 'B'): Disassemble `break'John Gilmore2-0/+10
instruction's argument. Patch from jonathan@cs.stanford.edu (Jonathan Stone).
1992-09-22Describe coding style of GDB.John Gilmore1-0/+4
1992-09-22Break the thread of control that implies that a unix childJohn Gilmore12-2/+39
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.
1992-09-22Remove kill_inferior_fast, in favor of target_kill, which goesJohn Gilmore6-66/+22
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.
1992-09-22* infrun.c (_initialize_infrun): Alias `i handle' == `i signals'.John Gilmore3-0/+20
* stabsread.c (read_struct_type): Simplify complicated expression for dumb DECstation compiler.
1992-09-22Minor wording changes.John Gilmore1-0/+4
1992-09-22Minor wording changes.John Gilmore1-4/+4
1992-09-21Patches from WRS:Ian Lance Taylor2-1/+39
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.
1992-09-21Patches from WRS:Ian Lance Taylor2-2/+5
Mon Sep 21 14:44:17 1992 Ian Lance Taylor (ian@cygnus.com) * tc-m68k.c (m68k_ip): fixed move16 operand handling, from WRS.
1992-09-21Patches from WRS:Ian Lance Taylor1-1/+1
Mon Sep 21 14:41:30 1992 Ian Lance Taylor (ian@cygnus.com) * mh-irix4: put in patches from WRS.
1992-09-21Patches from WRS:Ian Lance Taylor1-1/+34
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.
1992-09-21Patches from WRS:Ian Lance Taylor2-0/+11
Mon Sep 21 14:33:58 1992 Ian Lance Taylor (ian@cygnus.com) * hosts/hp9000.h, hosts/irix3.h: changes from WRS.