aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
1998-11-21keep restored fileStan Shebs1-0/+1
1998-11-21 * config/m68k/delta68.mh (NAT_FILE): Undo 1998-08-18 change;Stan Shebs4-4/+38
without NAT_FILE definition, configure will assume that GDB cannot run native. * config/m68k/nm-delta68.h (KERNEL_U_SIZE): New macro. * delta68-nat.c (kernel_u_size): New function.
1998-11-20Added fr30-tdep.c.Zdenek Radouch1-0/+1
1998-11-20Replacing a bogus file with a semi-bogus one (sharing through devo).Zdenek Radouch1-146/+703
1998-11-20Replacing a bogus file with possibly an initial version of the same.Zdenek Radouch1-4/+2
1998-11-20Semi-bogus version of the file (sharing through devo).Zdenek Radouch1-0/+723
1998-11-20CARP:Andrew Cagney2-2/+7
* buildsym.c (end_symtab): Cleanup PROCESS_LINENUMBER_HOOK.
1998-11-19Thu Nov 19 15:21:04 1998 Geoffrey Noer <noer@cygnus.com>Geoffrey Noer3-8/+17
* rdi-share/host.h: if compiling under Cygwin, make sure new preprocessor define is defined. Define it if not. * rdi-share/hostchan.h: ditto * rdi-share/aclocal.m4: regenerate * rdi-share/configure: regenerate
1998-11-19Thu Nov 19 15:21:04 1998 Geoffrey Noer <noer@cygnus.com>Geoffrey Noer4-16/+17
* rdi-share/host.h: if compiling under Cygwin, make sure new preprocessor define is defined. Define it if not. * rdi-share/aclocal.m4: regenerate * rdi-share/configure: regenerate
1998-11-19Thu Nov 19 14:43:44 1998 Geoffrey Noer <noer@cygnus.com>Geoffrey Noer3-3/+8
* configure.in: switch back to checking __CYGWIN32__ * configure: regenerate
1998-11-19CARP:Andrew Cagney3-2/+11
* exec.c (exec_file_command): Cleanup. Replace #if NEED_TEXT_START_END with if(). * config/pa/nm-hppah.h (NEED_TEXT_START_END): Redefine to be 1. * config/convex/tm-convex.h (NEED_TEXT_START_END): Ditto. * config/gould/tm-np1.h (NEED_TEXT_START_END): Ditto. * config/a29k/tm-a29k.h (NEED_TEXT_START_END): Ditto.
1998-11-19Thu Nov 19 13:06:22 1998 Geoffrey Noer <noer@cygnus.com>Geoffrey Noer2-5/+11
* main.c: Wait until more time has passed before calling new cygwin_ funcs, revert back to the cygwin32_ ones for now. * win32-nat.c: Ditto.
1998-11-19Thu Nov 19 13:14:57 1998 Geoffrey Noer <noer@cygnus.com>Geoffrey Noer3-11/+21
* gdbtk-cmds.c: Can't start using new API names yet. Switch back to calling cygwin32_ funcs until some time has passed... * gdbtk.c: Ditto. Also, include sys/cygwin.h for Cygwin, instead of providing own proto.
1998-11-18Replace sys_errlist with strerror().Andrew Cagney2-4/+8
1998-11-18Fixed a typo.Michael Snyder1-1/+1
1998-11-18Wed Nov 11 15:47:00 1998 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder2-14/+24
* procfs.c (proc_set_exec_trap): don't set PR_ASYNC or PR_FORK in the child process for UnixWare (causes processes forked by the debuggee to hang).
1998-11-16Mon Nov 16 14:17:05 1998 Geoffrey Noer <noer@cygnus.com>Geoffrey Noer2-15/+21
* defs.h: if compiling under Cygwin, define __CYGWIN__ if __CYGWIN32__ is defined and __CYGWIN__ isn't for backwards compatibility.
1998-11-14fix up sanitize fileGeoffrey Noer1-4/+4
1998-11-14fix sanitize fileGeoffrey Noer1-4/+4
1998-11-13Fri Nov 13 00:15:08 1998 Geoffrey Noer <noer@cygnus.com>Geoffrey Noer31-978/+617
Changes to account for name change from cygwin32 to cygwin and clean up Win32-related ifdefs. * configure.tgt: check for cygwin* instead of cygwin32. New cygwin gdb_target variable loses the "32". * configure.host: check for cygwin* instead of cygwin32. New cygwin gdb_host variable loses the "32". * configure.in: test __CYGWIN__ instead of __CYGWIN32__, rename gdb_cv_os_cygwin32 variable to drop the "32". Call AM_EXEEXT instead of AC_EXEEXT since that isn't in a released autoconf yet. * configure: regenerate. * main.c: drop "32" from cygwin_ funcs, include sys/cygwin.h where cygwin path conv protos live, instead of adding a proto here for them here. * {main.c, ser-tcp.c, ser-unix.c, top.c}: check __CYGWIN__ instead of __CYGWIN32__. * source.c: thoughout, check _WIN32 instead of WIN32. * config/i386/cygwin32.mh: delete. * config/i386/cygwin.mh: new file, was cygwin32.mh. * config/i386/cygwin32.mt: delete. * config/i386/cygwin.mt: new file, was cygwin32.mt. * config/i386/tm-cygwin32.h: delete. * config/i386/tm-cygwin.h: new file, was tm-cygwin32.h. * config/i386/xm-cygwin32.h: delete. * config/i386/xm-cygwin.h: new file, was xm-cygwin32.h. * config/i386/xm-windows.h: #include xm-cygwin.h now. * config/powerpc/cygwin32.mh: delete. * config/powerpc/cygwin.mh: new file, was cygwin32.mh. * config/powerpc/cygwin32.mt: delete. * config/powerpc/cygwin.mt: new file, was cygwin32.mt. * config/powerpc/tm-cygwin32.h: delete. * config/powerpc/tm-cygwin.h: new file, was tm-cygwin32.h. * config/powerpc/xm-cygwin32.h: delete. * config/powerpc/xm-cygwin.h: new file, was xm-cygwin32.h. * rdi-share/aclocal.m4: regenerate with aclocal. * rdi-share/configure: regenerate with autoconf. * rdi-share/{host.h, hostchan.c, hostchan.h, serdrv.c, * serpardr.c, unixcomm.c}: check __CYGWIN__ instead of __CYGWIN32__.
1998-11-13 * remote.c (remote_get_threadinfo) : Support for remoteJohn Metzler3-6/+169
multithread debugging. (remote_get_threadlist) : get a partial list of threads (remote_threadlist_iterator) : Step through all the threads (init_remote_threadtests) : Optional builtin unit test commands. * thread.c (bind_target_thread_vector) : Implementa a more dynamic way of accessing target specific thread info functions than FIND_NEW_THREADS. (target_thread_info) : Function to get extended thread information. * gdbthread.h : Export internal data structures corresponding to external detailed thread info response. This is more like a 'ps' command than what might be expected of host based threads. This is for embedded systems.
1998-11-13Thu Nov 12 15:20:15 1998 Jim Ingham <jingham@cygnus.com>Jim Ingham6-46/+97
* console.tcl (complete): I added the ability to pass from_tty from gdb_cmd to the underlying commands. Pass 1 when the command is invoked from the console. * interface.tcl (gdbtk_tcl_tstart, gdbtk_tcl_tstop): Run the src window's do_tstop method rather than manipulating the widgets by hand. * src.tcl (build_win): Redo the packing so that the function combobox doesn't push all the other combo-boxes off the screen if it has a very long function name in it. * srcbar.tcl (do_tstop): Added a mode that just changes the GUI, which can be called from console hooks. * srctextwin.tcl: Fixed some bugs I introduced in setting breakpoints in the assembly & mixed mode windows. Dropped the notion of joint breakpoint images for lines that have breakpoints of two separate types. Too fragile. Also added the "dont_change_appearance" flag, used in the continue_to_here method to tell the GUI not to reflect the temporary disabling of all the breakpoints. * toolbar.tcl (insert_buttons): Added a little more error-checking. Thu Nov 12 15:20:15 1998 Jim Ingham <jingham@cygnus.com> * gdbtk-cmds.c (gdb_cmd): Added an optional second argument to the gdb_cmd, which is from_tty. This is passed to the gdb command parser. It is 0 by default, and the console window passes 1. * gdbtk-cmds.c: moved disassemble_from_exec from gdbtk.c to gdbtk-cmds.c with all the other link-var'ed variables * gdbtk-hooks.c (gdbtk_trace_find): Only run the hook functions if we are called from_tty. * gdbtk-hooks.c (gdbtk_trace_start_stop): Set the trace buttons from a trace_start_command callback rather than doing it as a special case in gdb_cmd. * tracepoint.c (tstart_command, tstop_command): Add call to trace_start_stop_hook here.
1998-11-09Mon Nov 9 12:00:36 1998 Dave Brolley <brolley@cygnus.com>Dave Brolley4-0/+279
* config/fr30/fr30.mt: New file. * config/fr30/tm-fr30.h: New file.
1998-11-06Patches to fix linux-x-i960-vxworks5.0 build failure.Jim Wilson4-9/+18
* remote-vx.c (net_read_registers, net_write_registers, vx_xver_memory, vx_resume, vx_attach, vx_detach, vx_kill): Change errno to errno_num. * vx-share/xdr_ptrace.c (xdr_ptrace_return): Likewise. * vx-share/xdr_ptrace.h (struct ptrace_return): Likewise.
1998-11-05Wed Nov 4 18:44:31 1998 Dave Brolley <brolley@cygnus.com>Dave Brolley2-0/+6
* configure.tgt: Add fr30-*-elf*.
1998-11-05Merging the Tracepoint changes back into the Trunk:Jim Ingham6-16/+116
Wed Nov 4 12:41:42 1998 Jim Ingham <jingham@cygnus.com> * actiondlg.tcl: Get the stack collect string from an instance variable. Need to implement some way to get this from the target settings... * global_pref.tcl (toggle_tracing_mode): Add & remove hooks when you go in and out of tracing mode. Also reset the B1 behavior when you leave tracing mode * interface.tcl (gdbtk_tcl_trace_find_hook): Added the trace find hook, so you can switch the GUI state when the tfind command is used to enter & leave browse mode. * srcbar.tcl (constructor, destructor trace_find_hook): Added the trace_find_hook to the source toolbar, and added the necessary hooks to handle it. * srctextwin.tcl (trace_find_hook): Added a trace find hook to the sourcebar as well. * stack.tcl (update): protect against errors in gdb_stack. Just return "NO STACK" if we couldn't get it. * src_pref.tcl (constructor, cancel): Put all the saved prefs in an array, on cancel, see if any have changed and only rebuild the window if there have been changes. Mon Nov 2 13:24:10 1998 Jim Ingham <jingham@cygnus.com> * bp.tcl (update): The hook function was passing more arguments than this function expected. Mon Nov 2 11:16:10 1998 Jim Ingham <jingham@cygnus.com> * toolbar.tcl: Added Tdump image. Fri Oct 30 17:36:05 1998 Jim Ingham <jingham@cygnus.com> * src.tcl (set_execution_status): Changed status messages, tracing is not the same as async debugging... Fri Oct 30 17:06:31 1998 Jim Ingham <jingham@cygnus.com> * bp.tcl (bp_all): Only remove tracepoints in the tracepoint window, and breakpoints in the breakpoint window. Fri Oct 30 11:22:23 1998 Jim Ingham <jingham@cygnus.com> * actiondlg.tcl: Added special tag "Collect Stack". This still needs to get hooked into the target database to deal with targets that need to do something special to collect the stack. Also moved some repeated code into loops. * main.tcl (source_file): Source in a file of gdb commands. * srcbar.tcl (constructor): Added source file menu entry, and made stack buttons belong to both the Trace & Control classes. * srctextwin.tcl (constructor): One too many separators in the trace trace popup menu. * tclIndex: regenerated. * tfind_args.tcl: Added "tfind frame" * toolbar.tcl (create_button): Allow a button to belong to more than one class. * toolbar.tcl (enable_ui): Eliminate redundant code, and allow a button to belong to more than one class. * toolbar.tcl (create_trace_menu): Added save tracepoints & Tfind frame menu items. * tracedlg.tcl: Added deletion of actions, and fixed a the whiile-stepping combobox callback for the new combobox. * util.tcl (save_trace_commands): new proc. 1998-10-29 Michael Snyder <msnyder@demo-laptop2.cygnus.com> * target.tcl: add /dev/cua0 for Linux. Tue Oct 27 13:46:03 1998 Jim Ingham <jingham@cygnus.com> * Many little bug fixes all over in order to get tracing to work along with normal program control. * toolbar.tcl: Rewrote much of the code here to put commonly used code into functions, and clean up adding menus and buttons. Added the ability to disable particular menu items, not just whole menus. Added the ability to delete and insert buttons on the fly. * srcbar.tcl: Pushed the changes to toolbar.tcl into this file. * srctextwin.tcl: Changed the code dealing with breakpoints and tracepoints to use the text tags more consistently. Use only one set of menus for the whole widget, rather than having a separate set for the SRC+ASM case. Rewrote a lot of the code to separate out the tracing & program control functions. * interface.tcl (gdbtk_tcl_breakpoint): pass more information to the scrtextwin when a breakpoint changes state, so it can do the right thing without having to guess... * tracedlg.tcl (build_win): get the packing right so the window expands correctly. * main.tcl: do_tstop -> tstop, do_tstart -> tstart to avoid confusion with the methods in ScrBar.tcl. * prefs.tcl: Added two new preferences B1_Behavior to control whether B1 sets breakpoints or tracepoints. * src_prefs.tcl: Put in support for the B1_Behavior. * global_prefs.tcl: Put back tracing checkbox. * tdump.tcl: Fixed an incorrect (1 rather than 1.0) text widget line specification. * tfind_args.tcl (build_win): Bind return in the entry to the OK button. Clear the entry field if the Type has changed. * utils.tcl: Added comments for the debug commands. * watch.tcl (build_win): Flash the OK button before invoking it. Wed Nov 4 12:41:42 1998 Jim Ingham <jingham@cygnus.com> * gdbtk-cmds.c (gdb_set_bp_addr): Pass the type, enable & thread to gdbtk_tcl_breakpoint. * gdbtk-hooks.c (gdbtk_trace_find): Added this function. It is the hook function for tfind commands. * tracepoint.c (trace_find_command): Added the trace_find_hook, run when you do trace_find_command. * tracepoint.h: Define the trace_find_hook. Mon Nov 2 11:16:10 1998 Jim Ingham <jingham@cygnus.com> * gdbtk-cmds (gdb_get_tracepoint_info): Demangle C++ function names. Fri Oct 30 11:22:23 1998 Jim Ingham <jingham@cygnus.com> * gdbtk-cmds (gdb_get_tracepoint_info): Fixed typo. Wed Oct 28 10:14:33 1998 Jim Ingham <jingham@cygnus.com> * gdbtk-cmds.c: Made the bdtypes & bpdisp arrays shared so they could be used in gdbtk-hooks.c (breakpoint_notify). Also fixed a few error messages to actually print the bp number rather that #%d... * gdbtk-hooks.c (breakpoint_notify): pass more of the information about the breakpoint into the Tcl command, so it does not have to try and guess about information we have on the C side. * gdbtk.h: Export the bptypes & pbdisp arrays.
1998-11-05* top.c (gdb_readline): Allow CRLF line termination on systemsChristopher Faylor6-2072/+2317
which define CRLF_SOURCE_FILES. * win32-nat.c: 1) Add thread support, 2) fix ability to attach to a running process, and 3) implement limited support for cygwin signals. (thread_rec): New function. (child_add_thread): Ditto. (child_init_thread_list): Ditto. (child_delete_thread): Ditto. (do_child_fetch_inferior_registers): Ditto. (do_child_store_inferior_registers): Ditto. (handle_output_debug_string): Ditto. (child_fetch_inferior_registers): Use do_* function to perform operation. (child_store_inferior_registers): Ditto. (child_continue): Ditto. (child_thread_alive): Ditto. (cygwin_pid_to_str): Ditto. (handle_load_dll): Reorganize, add first attempt at reading dll names from attached processes. Change info messages to provide more information when dll is already loaded. (handle_exception): Changes mandated by new thread-aware structures. (child_wait): Track thread creation/destruction. Handle cygwin signals. (child_create_inferior): Ditto. (child_resume): Ditto. (child_kill_inferior): Ditto. Close child process handle to avoid a handle leak. (child_ops): Fill out child_ops fields that deal with threads. * config/i386/tm-cygwin32.h: Declare function and macro needed for converting a cygwin "pid" to a string. * config/i386/xm-cygwin32.h: define HAVE_SIGSETMASK as 0 since sigsetmask is not defined in cygwin.
1998-11-05* win32-nat.c: Remove obsolete PPC conditionals.Christopher Faylor2-85/+5
1998-11-04 * v850ice.c (do_gdb): New function.Keith Seitz2-11/+30
(ice_stepi): Use do_gdb to step properly. (ice_nexti): Use do_gdb to step properly. (view_source): Correct call to src window's location for new version.
1998-11-03Fix mn10200 build failure on redhat 5.0 linux.Jim Wilson2-4/+13
* c-exp.y (parse_number): Check TARGET_LONG_LONG_BIT when setting high_bit to avoid undefined negative shift.
1998-11-02Mon Nov 2 15:26:33 1998 Geoffrey Noer <noer@cygnus.com>Geoffrey Noer3-261/+763
* configure.in: Check cygwin* instead of cygwin32*. * configure: regenerate
1998-10-30Added missing keeper files.Michael Snyder1-0/+2
1998-10-29Thu Oct 29 10:04:20 1998 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder4-131/+252
[Support for trace debugging: registers that were not collected.] * remote.c (remote_fetch_registers): accept 'xxxx' in the register packet, with the meaning "register value is not available". Set register_valid to -1, which will connote "no value available". * findvar.c (read_relative_register_raw_bytes): return failure if register_valid == -1. (value_of_register): return failure if register_valid == -1. (read_var_value): return error if value_of_register fails for a register variable. (value_from_register): return failure if register_valid == -1. * eval.c (evaluate_subexp_standard): return error if value_of_register fails for a register used in an expression. * infcmd.c (do_registers_info): display "value not available" for registers for which register_valid == -1. * tracepoint.c (set_raw_tracepoint): just save the filename as is from the symbol table, rather than trying to prepend the dir name. Also save the bfd section. (tracepoints_info): use the section when looking up the function name. * tracepoint.h: add section field to tracepoint struct.
1998-10-29Wed Oct 28 16:19:02 1998 Martin M. Hunt <hunt@cygnus.com>Martin Hunt2-2/+11
* gdbtk-cmds.c (gdb_set_bp_addr): For callback, send full pathname instead of just basename.
1998-10-28* peripheral part of sky->devo mergeFrank Ch. Eigler3-4/+12
* patch approved by shebs Wed Oct 28 12:33:52 EST 1998 Frank Ch. Eigler <fche@cygnus.com> * configure.in: Accept both -skyb- and -sky- for --with-sim-funit/gpu2 options. * configure: Rebuilt.
1998-10-28 * sparcl-tdep.c (send_resp, sparclite_serial_start,Mark Alexander2-6/+40
sparclite_serial_write): Use remote_timeout instead of hardcoded two second timeout. (download): Fix adjustment of a.out load addresses.
1998-10-28Unify (well almost) --enable-build-warnings configuration optionAndrew Cagney3-50/+68
across GDB and SIM directories.
1998-10-27Replace syserr_list with more portable strerror().Andrew Cagney2-2/+6
1998-10-26* config/rs6000/aix4.mh (NATDEPFILES): Move xcoffread.o from here.Andrew Cagney2-0/+25
* config/rs6000/aix4.mt (TDEPFILES): To here. * rdi-share/unixcomm.c: Provide definitions of SERPORT and PARPORT on BSD hosts.
1998-10-22Written policy on GDB checkins.Stan Shebs1-0/+1
1998-10-191998-10-19 Jason Molenda (jsm@bugshack.cygnus.com)Jason Molenda2-37/+37
* configure.in (AM_EXEEXT): Use AC_EXEEXT instead. * configure: Regenerated. Geoff just removed the AM_EXEEXT definition from ../binutils/aclocal.m4 so we would have been hosed in the near future.
1998-10-17fix typoFelix Lee1-0/+5
1998-10-17 * core-sol2.c: #include <sys/types.h>, for sol2.7 weirdness.Felix Lee2-0/+5
1998-10-16Fri Oct 16 15:31:38 1998 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder1-0/+5
* m32r-tdep.c (decode_prologue): Return failure if we reach the end of the function without finding the end of the prologue.
1998-10-161998-10-16 Jason Molenda (jsm@bugshack.cygnus.com)Jason Molenda12-68/+148
* command.c copying.c copying.awk core-aout.c core-regset.c corelow.c dcache.c i386-tdep.c i386v4-nat.c i387-tdep.c infcmd.c infptrace.c infrun.c remote.c solib.c symfile.c symmisc.c valarith.c: Add prototypes. * defs.h: Add prototype for utils.c::do_run_cleanups. * gdbtypes.c: Add prototypes. (make_pointer_type): Add braces to remove nested if-else ambiguity. (make_reference_type): Ditto. * printcmd.c (printf_command): Initialize 'f' and 'string' at function startup to suppress possibly-used-before-initialized warning. * remote-utils.c: Add prototypes. (sr_pollchar): Add braces to remove nested if-else ambiguity. * ser-tcp.c: Add prototypes. (wait_for): Add braces to remove nested if-else ambiguity. (tcp_readchar): Ditto. * ser-unix.c: Add prototypes. (get_tty_state): Don't define errno here. (get_tty_state): Don't define errno here. (hardwire_readchar): Only define 't' if we are compiling in a Cygwin environment. * symtab.c: Add prototypes. (find_methods): Add braces to remove nested if-else ambiguity. (search_symbols): Set 'i' to an initial value to suppress a possibly-used-before-initialized warning. * valops.c: Add prototypes. (value_cast): Set 'eltype2' to an initial value to suppress a possibly-used-before-initialized warning. (value_of_variable): Add braces to remove nested if-else ambiguity. (value_of_this): Ditto. * valprint.c: Add prototypes. (print_floating): Add braces to remove nested if-else ambiguity. Looks like a big change, but it is really just a lot of small stuff. In the cases where GCC was flagging a possible use-before-initialized warning on variables, it turned out that these were being used properly but GCC couldn't see that.
1998-10-16 * tm-sp64.h (SETUP_ARBITRARY_FRAME, RAME_SPECIFICATION_DYADIC):Stan Shebs2-12/+12
Remove, nevermore used.
1998-10-15command.c: Include "wait.h" after, rather than before, <wait.h>.Andrew Cagney2-1/+28
"wait.h" was defining all WIF* macro's instead of filling in those that <wait.h> missed. Stops heaps of warnings from <wait.h> re-defining WIF*s defined in "wait.h".
1998-10-141998-10-14 Jason Molenda (jsm@bugshack.cygnus.com)Jason Molenda11-133/+197
* defs.h: Move _initialize_printcmd, _initialize_stack, _initialize_blockframe out of here and in to their respective .c files. * blockframe.c: Move _initialize_blockframe prototype to here. * printcmd.c: Move _initialize_printcmd prototype to here. * stack.c: Move _initialize_stack prototype to here. * source.c, symtab.h: Move _initialize_source prototype to the .c file. * values.c, value.h: Move _initialize_values prototype to the .c file. * gdbthread.h, thread.c: Move _initialize_thread prototype to the .c file. * breakpoint.c, breakpoint.h: Move _initialize_breakpoint prototype to the .c file. * abug-rom.c alpha-nat.c alpha-tdep.c annotate.c ax-gdb.c bcache.c: Standardize comments for the prototype section of these files. * configure.in: Look in libc for wctype before looking for it in libc. The last one is to fix the GNU ld (~2.9.1) + Solaris 2.6 interaction problem where an empty stub library (libw) causes a core dump when we call vasprintf (e.g. `info br') in the final linked gdb.
1998-10-14Results of first-pass at looking for problems with making the targetAndrew Cagney2-1/+1065
architecture a vector.
1998-10-14 * sol-thread.c (ps_pstop, etc): simple test for proc_service.hFelix Lee6-49/+126
version didn't work for sol2.6; pushed it to autoconf. * configure.in (gdb_cv_proc_service_is_old): new test. * acconfig.h (PROC_SERVICE_IS_OLD): new define. * configure, config.in: regenerate.