aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
1992-10-06* main.c (define_command): Add forgotten initializer.John Gilmore1-0/+4
1992-10-06* language.c, language.h: Move saved_language out to globalJohn Gilmore4-35/+104
expected_language. Set expected_language when user expectation changes. * language.c (language_info): Don't print type/range checking gub. * main.c (main): Set expected language. (execute_command): Check against expected language. * symfile.c (set_initial_language): Set expected language.
1992-10-06Solaris-x86 early trialJohn Gilmore1-0/+4
1992-10-06* configure.in, config/i386sol2.{mh,mt}: Preliminary Solaris-x86 conf.John Gilmore4-0/+38
1992-10-06 A bunch of changes mostly to improve debugging of C++ programs.John Gilmore3-16/+142
Specifically, the calling of inferiors methods is improved. * value.h: New macros METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET, METHOD_PTR_TO_VOFFSET to partially hide the implementation details of pointer-to-method objects. How to tell if the pointer points to a virtual method is still very dependent on the particular compiler, but this should make it easier to find the places to change. * eval.c (evaluate_subexp [case OP_FUNCALL]), valprint.c (val_print [case TYPE_CODE_PTR]): Use the new METHOD_PTR_* macros, instead of a hard-wired-in code that incorrectly assumed a no-longerused representation of pointer-to-method values. And otherwise fix the relevant bit-rotted code. * valprint.c (type_print_base [case TYPE_CODE_STRUCT]): If there are both fields and methods, put a space between. * stabsread.c (read_struct_type): Fix bug in handling of GNU C++ anonymous type (indicated by CPLUS_MARKER followed by '_'). (It used to prematurely exit the loop reading in the fields, so it would think it should start reading methods while still in the fields. This could crash gdb given a gcc that can emit nested type information.) * valops.c (search_struct_method): Pass 'this' value by reference instead of by value. This provides a more consistent interface through a recursive search where the "bottom" functions may need to adjust offsets (due to multiple inheritance). * valops.c, value.h, values.c: Pass extra parameters to value_fn_field and value_virtual_fn_field so we can correctly adjust offset for multiple inheritance. * eval.c (evaluate_subexp [case OP_FUNCALL]): Simplify virtual function calls by using value_virtual_fn_field(). * values.c: New function baseclass_offset, derived from baseclass_addr (which perhaps can be made obsolete?). It returns an offset rather than an address. This is a cleaner interface since it doesn't mess around allocating new values. * valops.c (search_struct_method): Use baseclass_offset rather than baseclass_addr.
1992-10-05* Makefile.in: Re-install 29K/UDI stuff.Stu Grossman4-128/+226
* remote-udi.c (udi_resume): Clean up. * (udi_wait): Rewrite, leave out bugs. * Add debugging code to print out all register fetches and stores. * Straighten out target_ops. * tm-29k.h (DUMMY_FRAME_RSIZE): Pad out to doubleword.
1992-10-05Mon Oct 5 09:46:44 1992 Ian Lance Taylor (ian@cygnus.com)Ian Lance Taylor2-6/+12
* remote-udi.c (udi_create_inferior): run with no arguments should not pass the program name as an argument, since the UDI code already handles that. (udi_load): get the symbols from prog_name, not arg_string (the load command should really use arg_string as the program name, not prog_name, but at least the run command works now).
1992-10-05Mon Oct 5 09:46:44 1992 Ian Lance Taylor (ian@cygnus.com)Ian Lance Taylor2-1/+4
* munch: HP9000/300 nm puts an etra space between T and symbol name.
1992-10-05Mon Oct 5 09:46:44 1992 Ian Lance Taylor (ian@cygnus.com)Ian Lance Taylor2-1/+6
* config/irix4.mh: added -lsun to XM_CLIBS to get RPC functions needed for vxworks targets.
1992-10-03Changes to make 29k function calls work better at Adobe.John Gilmore4-16/+31
* am29k-tdep.c (_initialize_29k): Make it possible for the user to set and query the address where function calls into the inferior write a small scratch routine. `set call_scratch_address' * inferior.h (PC_IN_CALL_DUMMY): Fix fencepost error. * remote.c (remote_prepare_to_store): Only fetch regs if they are not already cached validly.
1992-10-02Rs6000 native support.K. Richard Pixley7-16/+297
* infptrace.c: remove #ifdef USG from around include ptrace.h. machines without this header should not be compiling this file. * nm-rs6000.h, rs6000-nat.c: new files for native support. * rs6000-tdep.c: do not include sys/ptrace.h or sys/reg.h. * rs6000-xdep.c: removed. all code now in rs6000-nat.c. * xm-rs6000.h: do not include ptrace.h. (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): moved to nm-rs6000.h. * config/rs6000.mh (XDEPFILES): removed rs6000-xdep.o. infptrace.o and inftarg.o move to NATDEPFIES. (NAT_FILE, NATDEPFILES): new macro for native support.
1992-10-01Sun3 native support.K. Richard Pixley6-10/+193
* config/sun3os3.mh, config/sun3os4.mh (NAT_FILE, NATDEPFILES): new macros for native support. (XDEPFILES): moved infptrace.o and inftarg.o to NATDEPFILES, removed sun3-xdep.o. * xm-sun3.h (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): moved to nm-sun3.h. * sun3-xdep.c: removed. All code is now in sun3-nat.c. * sun3-nat.c, nm-sun3.h: new files for native support.
1992-10-01 * dwarfread.c (dbsize): New variable to hold size of dwarf info.Fred Fish1-7/+18
* 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.
1992-10-01Add `command hooks' and a hook for inferior program stopping.John Gilmore1-0/+42
1992-10-01Remove dup inftarg.o from NATDEPFILES.John Gilmore1-1/+1
1992-10-01Add `command hooks' and a hook for inferior program stopping.John Gilmore3-3/+59
* 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.
1992-09-30missed a ChangeLog entryK. Richard Pixley1-0/+1
1992-09-30Native file renaming.K. Richard Pixley7-10/+346
* nat-sparc.c -> sparc-nat.c * nat-sun4os4.h -> nm-sun4os4.h * nat-trash.h -> nm-trash.h * configure.in: link to nm.h rather than nat.h. * infptrace.c: include nm.h rather than nat.h.
1992-09-30Remove energize from configdirs. Only install via energize-patches.Stu Grossman1-1/+1
1992-09-30Save nat-sparc.c as well...Fred Fish1-0/+1
1992-09-30Save nat-trash.h for non-sun4 configures of sanitized copies of currentFred Fish1-0/+1
checked in sources.
1992-09-30Keep nat-sun4os4.h so current checked in Sanitized versions will build.Fred Fish1-0/+1
1992-09-30Add energize to configdirs.Stu Grossman1-1/+1
1992-09-30Host/target/native split for sun4.K. Richard Pixley1-1/+3
* 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.
1992-09-30Host/target/native split for sun4.K. Richard Pixley8-18/+355
* 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.
1992-09-29Break the direct connection from core_file_command to anyK. Richard Pixley2-3/+19
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.
1992-09-29Tue Sep 29 10:19:00 1992 Ian Lance Taylor (ian@cygnus.com)Ian Lance Taylor3-0/+14
* xm-hp300hpux.h: define MEM_FNS_DECLARED; include <sys/ptrace.h> for infptrace.c. config/hp300hpux.mh: ALLOCA1 was not defined.
1992-09-29Yet another rev. We keep the _filtered stuff for energize.Stu Grossman1-40/+936
1992-09-29* breakpoint.c, exec.c, language.c, main.c, printcmd.c, symfile.c,Stu Grossman4-39/+138
target.c, valprint.c: Use unfiltered forms of f/printf, et. al. until we can figure out a better way to do paging.
1992-09-28energize.c (energize_wait): Use new interfaces to native/target routines.Stu Grossman1-10/+3
1992-09-28Use correct directory for .mh files so that patch can find them.Stu Grossman1-2/+2
1992-09-28Use new interfaces to native/target stuff.Stu Grossman1-70/+78
1992-09-27Preserve fork-child.c.Fred Fish1-0/+1
1992-09-26* config/hppabsd.mh, config/hppahpux.mh: Use standard coredep.o.John Gilmore4-9/+8
Rename all HPPA files to fit into unique DOS filenames: * *hppabsd* => *hppab* * *hppahpux* => *hppah*
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-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-26* infrun.c, inftarg.c, inferior.h: Comment and lint cleanups.John Gilmore4-18/+20
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 * 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-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