aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
1996-06-05Wed Jun 5 01:52:57 1996 James G. Smith <jsmith@cygnus.co.uk>Jackie Smith Cashion4-44/+87
* configure.in (configdirs): Force 4100 builds to use 4300 GDB target. * configure: Rebuild. * config/mips/vr4300el.mt (SIM_OBS): Include simulator in little-endian builds.
1996-06-03 * inftarg.c (child_thread_alive): Protect declaration withJeff Law1-0/+3
#ifndef CHILD_THREAD_ALIVE. Fixes net buglet.
1996-06-03 * source.c (find_source_lines): Check the time on the symtab's bfd ifJeff Law1-0/+5
it exists, else check the time on the exec_bfd. Fixes net buglet reported by Michael Snyder @ NeXT.
1996-05-31Keep abug.expJeff Law1-0/+1
1996-05-30 * gdb.base/callfuncs.exp: Finish last change -- make sure theJeff Law1-0/+5
prototype information ends up in the compiler info file.
1996-05-30 * dsrec.c (make_srec): Fix calculation of address sizeMark Alexander1-0/+5
to allow addresses less than 0x100.
1996-05-30 * ch-exp.c (ch_lex): In case of LOC_TYPEDEF call calculate_array_length.Wilfried Moser2-0/+5
1996-05-28Removed EINVAL reference in remote-mips.c, and put a hardcoded 22 in itsGeoffrey Noer2-1/+8
place which reflects what the boards return.
1996-05-28 * configure: Regenerated.Tom Tromey3-161/+165
* aclocal.m4 (CY_AC_PATH_TCLH): Don't use AC_TRY_RUN. (CY_AC_PATH_TKH): Don't use AC_TRY_RUN.
1996-05-26Update with new/changed files.Fred Fish1-1/+6
1996-05-26Forgot to include in last checking.Fred Fish4-0/+190
1996-05-26 Changes from: David Mosberger-Tang <davidm@azstarnet.com>Fred Fish12-62/+246
* NEWS: Add Alpha Linux as a new native configuration. * mdebugread.c (parse_symbol): When we find a malloc() symbol with return type VOID, assume no debugging info is available for that object file and patch the return value into VOID *. Otherwise, operations requiring an implicit call to malloc() will fail. * infrun.c (wait_for_inferior): The criterion to detect entering a sigtramp handler is now: (a) the current pc is inside a sigtramp handler, (b) the previous pc is not in a sigtramp handler, and (c) the current stack pointer is "inner" than the old one. Condition (c) is new to avoid mistaking a return from a signal handler into sigtramp as a new sigtramp invocation. * dcache.c (struct dcache_block): Declare addr as CORE_ADDR. An int may not be big enough to hold an address. (dcache_hit): Ditto. (dcache_peek_byte): Fix indentation. * configure.in (alpha-*-linux*): Add target. * configure: Rebuild * config/alpha/tm-alpha.h (PROC_DESC_IS_DYN_SIGTRAMP): New macro. (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto. (DYNAMIC_SIGTRAMP_OFFSET): Ditto. (SIGCONTEXT_ADDR): Ditto. (FRAME_PAST_SIGTRAMP_FRAME): Ditto. * config/alpha/alpha-linux.mh: New file. * config/alpha/alpha-linux.mt: Ditto. * config/alpha/nm-linux.h: Ditto. * config/alpha/tm-alphalinux.h: Ditto. * config/alpha/xm-alphalinux.h: Ditto. * config/alpha/xm-alphaosf.h: Renamed from xm-alpha.h. * config/alpha/alpha-osf1.mh (XM_FILE): Change from xm-alpha.h to xm-alphaosf.h. * config/alpha/alpha-osf2.mh: Ditto. * blockframe.c (find_pc_partial_function): Pass PC to SIGTRAMP_START and SIGTRAMP_END macros for the benefit of systems that detect sigtramp code via designated code sequences (as is the case for Linux/Alpha, for example). * config/i386/tm-i386bsd.h: Change SIGTRAMP_START and SIGTRAMP_END to ignore new PC argument. * config/m68k/tm-hp300bsd.h: Ditto. * config/vax/tm-vax.h: Ditto. * alpha-tdep.c (alpha_linux_sigtramp_offset): New function. (alpha_osf_skip_sigtramp_frame): Ditto. (push_sigtramp_desc): Ditto. (alpha_find_saved_regs): Use SIGCONTEXT_ADDR macro to extract sigcontext address from frame. (alpha_saved_pc_after_call): When in sigtramp, use alpha_frame_saved_pc() instead of read-register(). (after_prologue): When inside a dynamically generated sigtramp function, there is no prologue, so return address of first instruction. (alpha_in_prologue): Fix typo in comment. (find_proc_desc): Use macro DYNAMIC_SIGTRAMP_OFFSET to determine whether we're inside a dynamicaly generated sigtramp function. If so, create and push and appropriate procedure descriptor. (alpha_frame_chain): Use macro FRAME_PAST_SIGTRAMP_FRAME to obtain the frame past a sigtramp frame (if the current frame is indeed a sigtramp function). (init_extra_frame_info): Don't read next frame register off of stack-pointer when inside a dynamiccaly generated sigtramp. (alpha_pop_frame): Also unlink and destroy procedure descriptors created for dynamically generated sigtramp functions. * alpha-nat.c: When compiling under Linux, include <asm/reg.h> and <alpha/ptrace.h> instead of <machine/reg.h>
1996-05-23 * h8300-tdep.c (IS_PUSH): Refine.Jeff Law2-12/+49
(IS_MOVE_FP, IS_MOV_SP_FP): Accept H8/300H varaints. (IS_SUB4_SP, IS_SUBL_SP): New macros. (h8300_skip_prologue): Handle H8/300H prologue code sequences. (examine_prologue): Handle addresses from 0x010000 to 0xffffff when in H8/300H mode. Get the return pointer's address correctly for the H8/300H. Handle H8/300H prolouge code sequences. Avoiding major breakage on the H8/300H, and on the eval board. Jeez, did anyone even try to debug H8/300H code with gdb in the past?!?
1996-05-23 * symfile.c (generic_load): Print the starting addressJeff Law1-0/+5
of the file just loaded. For informational purposes.
1996-05-23 * gdb.base/callfuncs.exp: Remove the compiler info file prior toFred Fish2-11/+49
attempting to regenerate it. Eliminate use of a temporary file and just generate the info file directly. Source it immediately, for consistency of use. * gdb.base/corefile.exp: Ditto * gdb.base/exprs.exp: Ditto. * gdb.base/funcargs.exp: Ditto. * gdb.base/langs.exp: Ditto. * gdb.base/list.exp: Ditto. * gdb.base/mips_pro.exp: Ditto. * gdb.base/nodebug.exp: Ditto. * gdb.base/opaque.exp: Ditto. * gdb.base/ptype.exp: Ditto. * gdb.base/scope.exp: Ditto. * gdb.base/setvar.exp: Ditto. * gdb.base/signals.exp: Ditto. * gdb.base/whatis.exp: Ditto. * gdb.c++/templates.exp: Ditto. * gdb.c++/virtfunc.exp: Ditto. * gdb.c++/virtfunc.exp: Use contents of gcc_compiled to decide whether or not to add -lstdc++ to the compile command line args.
1996-05-23 * mpw-make.sed: Edit @THREAD_DB_OBS@ out of makefile.Stan Shebs2-3/+24
1996-05-21 * dsrec.c (load_srec): Add WAITACK parameter, for machinesMark Alexander5-4/+21
like EST visionICE that send back an ACK after each S-record. * monitor.c (monitor_wait_srec_ack): New function. (monitor_load): Pass monitor_wait_srec_ack to load_srec if the monitor's MO_SREC_ACK flag is set. * monitor.h: Define MO_SREC_ACK flag. * remote-est.c (est_cmds): Add MO_SREC_ACK flag. * sh3-rom.c (sh3_load): Accomodate change in load_srec prototype. * srec.h: Add WAITACK parameter to load_srec prototype.
1996-05-20 * config/sparc/sparclite.mt: Add the sparc simulator.Rob Savoye2-1/+7
1996-05-20 * defs.h (read_command_lines, query_hook): Update prototypes.Fred Fish5-33/+241
(readline_begin_hook, readline_hook, readline_end_hook): Declare. * breakpoint.c (commands_command): Build message in temporary buffer and pass that, as well as tty control flag, to read_command_lines. * top.c (readline_begin_hook, readline_hook, readline_end_hook): Define here. (command_loop): Check for non-NULL instream before looping. (command_line_input): Use readline_hook when appropriate, to get user input from a GUI window. (read_next_line): Also build prompt if getting user input from a GUI. (recurse_read_control_structure): Fix typo in comment. (read_command_lines): Use passed in prompt and tty flag to decide how to build message. Use readline_begin_hook when appropriate, to set up a GUI interaction window. Just return head, whether NULL or not, after using readline_end_hook to complete GUI interaction. (define_command, document_command): Build message in a temporary buffer and pass it to read_command_lines, along with tty flag. * gdbtk.c (gdbtk_readline_begin, gdbtk_readline, gdbtk_readline_end): New functions. (tk_command_loop): Set instream to NULL to enable Tk user interaction. (gdbtk_init): Set readline_begin_hook, readline_hook, and readline_end_hook. * gdbtk.tcl (gdbtk_tcl_readline_begin, gdbtk_tcl_readline, gdbtk_tcl_readline_end): New functions. (tclsh): Pack scroll bar on right side of window, not left. PR 9385
1996-05-18 * blockframe.c (frameless_look_for_prologue):Peter Schauer2-0/+15
Add FUNCTION_START_OFFSET only if func_start is non-zero. * minsyms.c (lookup_minimal_symbol_by_pc): Return NULL if pc is not in a known section. * stack.c (print_frame_info): Remove check for fi->pc in known section, now handled by lookup_minimal_symbol_by_pc.
1996-05-18 * gdbtk.tcl (create_command_window): Change a misspelled "get"Fred Fish2-5/+23
to the intended "cget". (delete_line): Fix so it deletes the current line at the insertion cursor.
1996-05-17move stub.c up to main dirStan Shebs2-1556/+4
1996-05-17keep sh-stub.cStan Shebs1-0/+1
1996-05-17 * sh-stub.c: New file, was config/sh/stub.c.Stan Shebs2-0/+1557
1996-05-17 * gdbtk.tcl (gdb_prompt): Set this early on.Fred Fish3-3/+36
(create_command_window): Use gdb_prompt rather than "(gdb) ". (gdbtk_tcl_preloop): Proc executed just prior to Tk main loop. (tclsh): If an evaluation window already exists, just bring it to the front instead of trying to create another. * gdbtk.c (tk_command_loop): New function. (gdbtk_init): Call tk_command_loop rather than Tk_MainLoop.
1996-05-16 * gdbtk.tcl (evaluate_tcl_command, tclsh): New functions thatFred Fish2-0/+67
implement a tcl evaluation window for gdbtk maintainers to use.
1996-05-16 * gdbtk.tcl (files_command): Correctly insert list of files intoTom Tromey2-15/+5
listbox widget.
1996-05-16 * gdbtk.tcl (files_command): listbox command no longer acceptsTom Tromey2-1/+6
-geometry.
1996-05-16 * top.c (read_next_line): Fix thinkos. From Don Seeley.Jeff Law2-2/+4
Net buglet.
1996-05-16 * gdbtk.tcl (create_command_window): If command window's bufferStan Shebs2-6/+24
is disabled, don't execute any of the key bindings.
1996-05-15 * gdb.base/break.exp: Ignore compiler warnings when compilingJeff Law1-0/+20
break.c. * gdb.base/callfuncs.exp: Don't run these tests on the h8300. * gdb.base/default.exp: Add h8300 xfails. Handle messages from remote-sim. * gdb.base/exprs.exp: Add h8300 xfails. * gdb.base/funcargs.exp: Likewise. * gdb.base/nodebug.exp: Likewise. * gdb.base/printcmds.exp: Likewise. * gdb.base/ptype.exp: Likewise. * gdb.base/setvar.exp: Handle sizeof (int) != 4 for h8300. Add h8300 xfails. * gdb.base/return.exp: Handle float/double precision problems on the h8300. * gdb.base/funcargs.c: Explicitly make last constant argument to call_after_alloca_subr an unsigned long type. * gdb.base/return.c: Include stdio.h. Testsuite work for the H8/300 -gstabs. HMSE.
1996-05-15 * coffread.c (coff_symtab_read): Handle C_LABEL symbols likeJeff Law4-3/+24
C_STAT symbols. * h8300-tdep.c (h8300_pop_frame): Reset $sp and $pc correctly. Flush cached frames just before exiting. * remote-sim.c (gdbsim_resume): Complain if the program isn't being run. * config/h8300/tm-h8300.h (BELIEVE_PCC_PROMOTION): Define. Fix some bugs exposed by the testsuite. HMSE.
1996-05-15 * procfs.c (procfs_thread_alive procfs_stop): Make static.Stu Grossman4-21/+48
* (procfs_pid_to_str): New routine to print out thread id's in an intelligible manner. * sol-thread.c (sol_thread_fetch_registers): Re-order manner in which supply_register is called to fix bug with writing writing individual regs. * config/sparc/tm-sun4sol2.h: Define default for target_pid_to_str in case host lacks libthread_db.
1996-05-14 * Makefile.in config.in configure configure.inStu Grossman8-34/+86
config/sparc/nm-sun4sol2.h config/sparc/sun4sol2.mh config/sparc/tm-sun4sol2.h: Use autoconf to config Solaris thread and pthread support, since pre-2.5 systems don't come with libthread_db.so.1. * procfs.c (info_proc): Use int instead of id_t. Old versions of Irix don't see to define this.
1996-05-14 * gdbtk.c (tk_command): Catch case where no argument is givenFred Fish2-0/+13
since this will cause the tcl interpreter to dump core.
1996-05-13 * top.c (execute_control_command, case while_control): AllowJeff Law2-0/+7
a while command to be interrupted. Fixes net bug.
1996-05-13 * sol-thread.c: More cleanup, add comments.Stu Grossman2-33/+145
* (sol_thread_resume): Prevent people from trying to step inactive threads. * (sol_thread_wait sol_thread_fetch_registers sol_thread_store_registers): Remove unnecessary check for sol_thread_active. These routines won't get called unless threads are active.
1996-05-13 SH3-E support from Allan Tajii <atajii@hmsi.com>:Stan Shebs4-17/+144
* sh-tdep.c (sh_reg_names, sh3_reg_names): Add empty names for float registers. (sh3e_reg_names): New register name array. (sh_processor_type_table): Add sh3e processor type. * config/sh/tm-sh.h (REGISTER_VIRTUAL_TYPE): Fix test. (REGISTER_NAMES, NUM_REGS, NUM_REALREGS, etc): Adjust for full set of registers. * remote-e7000.c (want_sh3, want_sh3_nopc): New globals. (e7000_fetch_registers, e7000_wait): Use them. * sh3-rom.c (sh3_regnames): Add float registers. (sh3e_cmds, sh3e_ops): New globals. (sh3e_open): New function. (_initialize_sh3_rom): Rename from _initialize_sh3, set up sh3e target vector. * gdbwin.c (reg_order) [TARGET_SH]: Update for SH3-E. * initfake.c: Call _initialize_sh3_rom instead of _initialize_sh3.
1996-05-10 * sol-thread.c: Cleanup. gcc -Wall fixes. Add prototypes.Stu Grossman2-173/+265
Print out messages instead of codes for thread_db errors. Make access macros for thread and lwp manipulation. Make cleanups to fixup inferior_pid in case of errors.
1996-05-10 * aclocal.m4: Remove unused definition of AC_C_CROSS.Fred Fish3-22/+9
* configure.in: Add powerpcle-*-solaris* host and target config so April 30th change does not get lost next time configure is rebuilt.
1996-05-09 * Makefile.in, breakpoint.c, corelow.c, fork-child.c, inflow.c,Stu Grossman13-20/+27
infrun.c, mac-nat.c, procfs.c, remote.c, sol-thread.c, thread.c, win32-nat.c, config/nm-lynx.h: Rename thread.h to gdbthread.h to avoid conflict with Solaris /usr/include/thread.h.
1996-05-09 * abug-rom.c: Config file for the older style ABug monitor thatgRob Savoye3-0/+179
runs on the mvme13x boards. * config/m68k/monitor.mt: Add abug support for m68k croos debugging.
1996-05-09 * infcmd.c (do_registers_info): Always print the raw floatingFred Fish1-1/+4
point value's bytes in big endian order, so the the leftmost bit is the most significant. PR-9540
1996-05-08 * breakpoint.c (clear_momentary_breakpoints): Remove dead codeFred Fish4-174/+77
that is referenced nowhere else. (set_breakpoint): Ditto. (do_enable_breakpoint): Created from enable_once_breakpoint with a couple of changes. (enable_breakpoint): Call do_enable_breakpoint with an appropriate bpdisp enum value to set disposition of breakpoint. (enable_once_breakpoint): Ditto. (enable_delete_breakpoint): Ditto. * breakpoint.h (clear_momentary_breakpoints): Remove prototype. * symtab.c (find_pc_line): Improve comments. * gdbtk.c: Fix a couple of misspellings. * xcoffread.c: Ditto.
1996-05-08 * config/abug.exp: New file for the older Motorola Bug monitorRob Savoye3-10/+32
that runs on the mvme13x series VME boards. * config/monitor.exp: Use the new config array for target settings if they exist.
1996-05-08 * target.c (debug_to_xfer_memory): Insert line breaks whenStan Shebs1-0/+5
dumping the memory block.
1996-05-06 * fork-child.c (fork_inferior), inferior.h: init_trace_fun nowStu Grossman12-271/+1962
returns a possibly modified pid. * inftarg.c (ptrace_him): Now returns pid; * m3-nat.c (m3_trace_him): Now returns pid; * infcmd.c (run_command): Minor cleanup. * infrun.c (wait_for_inferior): Add another check for one_stepped near where we read the pc to avoid erroneously setting random_signal for multi-threaded support. * procfs.c: Add support for Solaris LWPs. Remove def of LOSING_POLL. Many cleanups... Several workarounds for Solaris lossage. System call entry and exit are now handled by dynamically registered handlers. * (syscallname): Don't barf when handed an unknown syscall number. * (info_proc_syscalls): Ditto. * sol-thread.c: New file. Implements Solaris thread support. * symfile.c (symbol_file_add): Add call to target_new_objfile to notify target-dependent code about new symbol tables. * (clear_symtab_users): Call target_new_objfile to notify it of the removal of all symbol tables. * target.c (push_target): Make sure that to_close is non-zero before calling it. * target.h (target_new_objfile): Provide default. * config/alpha/nm-osf2.h: Define LOSING_POLL because this version of OSF can't hack using poll with /proc. * config/sparc/nm-sun4sol2.h (target_new_objfile): Define to be sol-thread-new-objfile. * config/sparc/sun4sol2.mh: Add sol-thread.o to NATDEFFILES, and add libthread_db.so.1 to NAT_CLIBS. * config/sparc/tm-sun4sol2.h: Define PIDGET, TIDGET, and target_pid_to_str.
1996-05-06Do not do XCOFF hoooks for ELF systemsMichael Meissner2-9/+17
1996-05-03 * sim-gdb.exp: Make the SH simulator allocate less space whenStan Shebs2-1/+17
it is targeted.
1996-05-03 * gdbtk.tcl (debug_interface): New global, use to aid debugging.Stan Shebs2-56/+84
(insert_breakpoint_tag, delete_breakpoint_tag): Fix range. (file_popup_menu): Delete, never used. (listing_window_popup): Rename from listing_window_button_1, remove breakpoint toggling code. (toggle_breakpoint): New procedure. (create_file_win): Bind popup menu to button 2, toggle breakpoints with button 1 in breakpoint area, add display of tagged areas if debugging on.