📄 changelog
字号:
Thu Oct 1 10:30:54 1992 Fred Fish (fnf@cygnus.com) * dwarfread.c (dbsize): New variable to hold size of dwarf info. * dwarfread.c (dwarf_build_psymtabs): Rename dbsize parameter to dbfsize and use it to initialize new local file scope dbsize. * dwarfread.c (read_ofile_symtab): Initialize dbsize and use it. * dwarfread.c (basicdieinfo): Use dbsize to check for oversize DIEs as well as the current check for undersize DIEs. This helps to gracefully detect and reject corrupted DIE information.Thu Oct 1 01:57:56 1992 John Gilmore (gnu@cygnus.com) Add `command hooks' and a hook for inferior program stopping. * command.h (struct cmd_list_element): Remove unused `aux' field. Add new `hook', `hookee', and `cmd_pointer' fields. * command.c (add_cmd): Initialize new fields, elim old. (add_alias_cmd): Clone new fields. (delete_cmd): Un-hook hookee if we're deleting hook. (help_cmd): Tell user the command is hooked, if it is. (lookup_cmd_1): Abbreviations return the original command instead of themselves, so that hooks on the original cmd will be run. * defs.h (enum command_class): Add class_pseudo and comments. * gdbcmd.h (execute_user_command): Add prototype. * infrun.c (normal_stop): If the stop command is hooked, run the hook whenever we stop. (hook_stop_stub): Stub for catch_errors. (_initialize_infrun): Set up pseudo "stop" command. * main.c (execute_user_command): Code extracted from execute_command. (execute_command): If hooked, run the hook before the command. (define_command): If defining a new hook, check the command it is hooking, and warn if none. Install the hook. * source.c (_initialize_source): "l" is an abbrev for "list". * doc/gdb.texinfo: Document command hooks. * Makefile.in (VERSION): Roll to 4.6.7. * config/sun4os4.mh: Remove dup inftarg.o from NATDEPFILES. * infrun.c (breakpoints_inserted): Make it static again. * tm-symmetry.h (FLOAT_INFO): #if 0 it for cross-ptrace abuse.Wed Sep 30 15:33:22 1992 K. Richard Pixley (rich@sendai.cygnus.com) Native file renaming. * nat-sparc.c -> sparc-nat.c * nat-sun4os4.h -> nm-sun4os4.h * nat-trash.h -> nm-trash.h * config/sun4os4.mh: track file renaming. * configure.in: link to nm.h rather than nat.h. * infptrace.c: include nm.h rather than nat.h.Tue Sep 29 14:35:00 1992 K. Richard Pixley (rich@sendai.cygnus.com) Host/target/native split for sun4. * Makefile.in (TSOBS): removed corelow.o. * infptrace.c: included nat.h. * nat-trash.h: temporary header file. This should be removed once all hosts have the native/host/target split. * configure.in: add a symlink from nat-trash.h to nat.h if no other nat file exists for this configuration. * sparc-tdep.c: no longer include sys/ptrace.h. * sparc-xdep.c: removed. contents have been moved to nat-sparc.c. * xm-sparc.h (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): moved to nat-sun4os4.h. * nat-sparc.c, nat-sun4os4.h: new files for sun4 native support. * config/sun4os4.mh (XDEPFILES): moved infptrace.o and inftarg.o to NATDEPFILES. removed sparc-xdep.o. (NATDEPFILES, NAT_FILE): new macros for native support. Break the direct connection from core_file_command to any particular type of core file support. * target.h (find_core_target): new prototype. * target.c (find_core_target): new function. Walks the target list looking for the core target. * core.c (core_file_command): replace calls to core_detach and core_open with find_core_target and direct calls.Tue Sep 29 10:19:00 1992 Ian Lance Taylor (ian@cygnus.com) * xm-hp300hpux.h: define MEM_FNS_DECLARED; include <sys/ptrace.h> for infptrace.c. config/hp300hpux.mh: ALLOCA1 was not defined.Mon Sep 28 22:03:41 1992 Stu Grossman (grossman at cygnus.com) * breakpoint.c, exec.c, language.c, main.c, printcmd.c, symfile.c, target.c, valprint.c: Use unfiltered forms of f/printf, et. al. until we can figure out a better way to do paging.Sat Sep 26 02:07:31 1992 John Gilmore (gnu@cygnus.com) * 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. Rename all HPPA files to fit into unique DOS filenames: * *hppabsd* => *hppab* * *hppahpux* => *hppah*Sat Sep 26 00:25:15 1992 John Gilmore (gnu@cygnus.com) Make the /proc support a target-struct in its own right. * 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. * 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. * 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. * xm-irix4.h, xm-sysv4.h (CREATE_INFERIOR_HOOK): No longer needed.Fri Sep 25 21:59:27 1992 John Gilmore (gnu@cygnus.com) 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-vx.c (vx_attach): Ditto. Cleanup. * remote-hms.c (hms_attach): Remove completely, it was useless. * remote-mm.c, remote-hms.c, remote-adapt.c: Remove commented-out start_remote calls. * remote-hms.c, remote-adapt.c, remote-mm.c: Remove DENTER and DEXIT macros and their calls. Use a real debugger -- like gdb -- to see what functions are being called when. * utils.c (strcmp_iw): Make nonstatic, for lint.Fri Sep 25 18:48:20 1992 John Gilmore (gnu@cygnus.com) * infrun.c, inftarg.c, inferior.h: Comment and lint cleanups.Fri Sep 25 15:13:44 1992 Stu Grossman (grossman at cygnus.com) * 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. * remote.c (remote_wait): Make regs be char to avoid picayune ANSI compiler warnings.Fri Sep 25 12:09:33 1992 K. Richard Pixley (rich@sendai.cygnus.com) * 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. * xcoffexec.c (exec_ops): child_attach and child_create_inferior replaced with find_default_attach and find_default_create_inferior.Fri Sep 25 10:21:04 1992 Ken Raeburn (raeburn@rtl.cygnus.com) * i960-pinsn.c: Use _filtered routines for printing, so symbolic addresses don't get displayed in the wrong positions.Fri Sep 25 09:52:47 1992 K. Richard Pixley (rich@sendai.cygnus.com) 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.oWed Sep 23 11:14:53 1992 Stu Grossman (grossman at cygnus.com) * 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.Tue Sep 22 17:13:19 1992 Ken Raeburn (raeburn@cambridge.cygnus.com) * tm-i960.h (ext_format_i960): Add top-level declaration. (REGISTER_CONVERT_TO_{VIRTUAL,RAW}): Don't declare it in nested blocks, else Sun4 compiler complains.Tue Sep 22 00:43:51 1992 John Gilmore (gnu@cygnus.com) * mips-pinsn.c (print_insn_arg, case 'B'): Disassemble `break' instruction's argument. Patch from jonathan@cs.stanford.edu (Jonathan Stone).Mon Sep 21 18:16:30 1992 K. Richard Pixley (rich@sendai.cygnus.com) 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.Mon Sep 21 19:43:13 1992 John Gilmore and K. Richard Pixley (gnu@cygnus.com) 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.Mon Sep 21 19:23:05 1992 John Gilmore (gnu@cygnus.com) * infrun.c (_initialize_infrun): Alias `i handle' == `i signals'. * stabsread.c (read_struct_type): Simplify complicated expression for dumb DECstation compiler.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.Sep 20 08:42:12 1992 Fred Fish (fnf@cygnus.com) * 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.Sat Sep 19 09:52:26 1992 Fred Fish (fnf@cygnus.com) * 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.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -