summaryrefslogtreecommitdiff
path: root/gdb
Commit message (Collapse)AuthorAgeFilesLines
* lib/gdb.exp(gdb_expect): Handle getting a value for $timeoutBob Manson1997-06-182-10/+14
| | | | more gracefully.
* * procfs.c (proc_set_exec_trap, procfs_init_inferior, procfs_wait,Peter Schauer1997-06-172-53/+16
| | | | | | | | unconditionally_kill_inferior): Undo Oct 26 1996 and Apr 26 1997 changes to trace PRFS_STOPTERM and handle PR_DEAD. These changes tried to work around a problem with an early DU 4.0 release, but they trigger subtle timing dependent kernel bugs in older OSF/1 releases.
* * lib/gdb.exp(gdb_expect): Declare errorInfo and errorCodeBob Manson1997-06-172-0/+7
| | | | as global variables.
* * dwarfread.c (new_symbol): Use SYMBOL_VALUE_ADDRESS, instead ofFred Fish1997-06-172-3/+17
| | | | SYMBOL_VALUE, to set the value of LOC_STATIC symbols.
* * infrun.c (wait_for_inferior): Mark registers as invalid whenMark Alexander1997-06-175-433/+849
| | | | | | | | | | | | | | stepping over an instruction that triggered a watchpoint. * remote-mips.c: Numerous changes to support hardware breakpoints and watchpoints on LSI MiniRISC and TinyRISC boards. * mips-tdep.c: Move MIPS16-related macros to config/mips/tm-mips.h. (mips_breakpoint_from_pc): Account for different breakpoint instructions used by PMON and IDT monitor. * config/mips/tm-embed.h: Enable hardware breakpoints on embedded MIPS targets. * config/mips/tm-mips.h: Define breakpoint instructions for PMON and IDT monitor. Move MIPS16-related macros here from mips-tdep.c.
* * lib/gdb.exp: Close connection to remote host if gdb doesn'tBob Manson1997-06-172-3/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | initialize. (default_gdb_init): New procedure; allow gdb_init to be overridden by a target configuration file. (gdb_expect): Pass the timeout to remote_expect. * config/dos.exp(dos_wait): Add timeout parameter. * lib/remote.exp(remote_expect): Add timeout parameter. (remote_wait): Ditto. (standard_wait): Ditto. Also give up if the program outputs more than 512,000 bytes. * config/vxworks.exp: Use timeout parameter instead of setting timeout variable. * config/dos.exp: Ditto. * config/ddb.exp: Ditto. * lib/mondfe.exp: Ditto. * lib/rlogin.exp: Ditto. * lib/telnet.exp: Ditto. * config/base68k.exp: Ditto. * config/i386-bozo.exp: Ditto. * config/gdb-comm.exp: Ditto. * config/gdb_stub.exp: Ditto. * config/i960.exp: Ditto. * config/ddb-ether.exp: Ditto. * config/sim.exp: Ditto. * lib/g++.exp(g++_init): Use g++_include_flags instead of making up the includes ourselves.
* * config/monitor.exp(gdb_load): Fix typo in regexp.Bob Manson1997-06-142-12/+21
| | | | Fixes last night's tcl error mesages.
* * fix earlier checkin errorMichael Snyder1997-06-131-3/+0
|
* Fri Jun 13 13:44:47 1997 Michael Snyder (msnyder@cleaver.cygnus.com)Michael Snyder1997-06-138-18/+120
| | | | | * config/mips/tm-tx39[l].h, tx39[l].mt: change r3900 target to tx39. [also clean up sanitization]
* * mn10300-tdep.c (mn10300_analyze_prologue): Fix some comments.Jeff Law1997-06-131-0/+8
| | | | | | | | Add missing return statements after finding an "add imm{16,32},sp" instruction. (mn10300_frame_chain): Add in size of our register save area to find our caller's frame if our caller does not have a frame pointer. Fixes some problems debugging optimized code.
* * symfile.c (generic_load): Check return code of target_write_memory.David Edelsohn1997-06-132-2/+8
|
* * config/i386/nm-linux.h: Enable prototypes that were #ifdef out.Fred Fish1997-06-1312-53/+875
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * config/tm-sysv4.h (in_plt_section): Add prototype. * maint.c (maintenance_translate_address): Avoid assignment inside if, per GNU coding standards. * symfile.c (simple_read_overlay_table): Avoid assignments inside if, per GNU coding standards. * monitor.c (parse_register_dump): Is really a void function. Add prototype. (monitor_read_memory): Remove unused variable "name". (monitor_read_memory): Remove unused variable "regbuf". (monitor_open): Remove unused variable "i". (get_hex_word): Apparently unused, #if away for now. (from_hex): Ditto. * i386v4-nat.c (supply_fpregset): Remove unused variable "regi". (fill_fpregset): Remove unused variables "regi", "to", "from" and "registers". * remote-e7000.c (ctype.h): Include. (e7000_insert_breakpoint): #if away unused arg used by unused expr. * frame.h (generic_get_saved_register): Add prototype. (enum lval_type): Add partial forward decl. * dsrec.c (make_srec): Remove unused variable "type_code". * remote-sim.c (gdbsim_wait): Handle sim_running and sim_polling cases by just ignoring them. (command.h): Include. * java-exp.y (parse_number): Remove unused variable "unsigned_p". * java-lang.c (gdbcore.h): Include for prototypes. (type_from_class): Remove unused variable "ftype". (type_from_class): Remove unused variable "name_length". (evaluate_subexp_java): Add default case to handle remaining enumerations. * java-valprint.c (c-lang.h): Include for prototypes. * symfile.c (simple_read_overlay_region_table): #if away unused function. (simple_free_overlay_region_table): Ditto. (overlay_is_mapped): Add default case to switch. (simple_read_overlay_region_table): Ditto. (simple_read_overlay_region_table): Add prototype. * symtab.c (fixup_symbol_section): Remove unused msym variable. (fixup_psymbol_section): Ditto. (find_pc_sect_symtab): Make distance a CORE_ADDR. * utils.c: Add comment about t_addr being either unsigned long or unsigned long long. (paddr): Change formats to match actual types args are cast to. (preg): Ditto. (paddr_nz): Ditto. (preg_nz): Ditto.
* * sh-tdep.c (symfile.h): Include.Fred Fish1997-06-133-1/+16
| | | | | | | (gdb_string.h): Include. (sh_fix_call_dummy): Ifdef away, currently unused. * config/sh/tm-sh.h (pop_frame): Add prototype. * config/sh/tm-sh.h (sh_set_processor_type): Add prototype.
* * defs.h (perror_with_name): Is a NORETURN function.Fred Fish1997-06-1311-28/+501
| | | | | | | | | | | | | | | | | | | | | | | | | | * utils.c (perror_with_name): Is a NORETURN function. (error): Is NORETURN independently of ANSI_PROTOTYPES. * symtab.c (fixup_symbol_section): Remove prototype. * symtab.h: (fixup_symbol_section): Add prototype. * m32r-rom.c (report_transfer_performance): Add prototype. * sparclet-rom.c: Ditto. * dsrec.c: Ditto. * c-exp.y (parse_number): Cast args to float* or double* as appropriate for conversion format. * java-exp.y (parse_number): Ditto. * Makefile.in (c-exp.tab.c): Remove #line lines that refer to nonexistant y.tab.c file. (java-exp.tab.c): Ditto. (f-exp.tab.c): Ditto. (m2-exp.tab.c): Ditto. start-sanitize-gdbtk * gdbtk.c (gdbtk_init): Make truth value test explicit. Remove unused static variable "Gdbtk_Library". end-sanitize-gdbtk
* * gdb.base/funcargs.exp: Remove spurious suppress tests call.Bob Manson1997-06-132-79/+92
|
* start-sanitize-gdbtkPeter Schauer1997-06-075-12/+36
| | | | | | | | | | | | | | | | | * gdbtk.c (gdb_get_breakpoint_info): Add string for new enumeration del_at_next_stop to bpdisp array. end-sanitize-gdbtk * eval.c (evaluate_subexp_for_sizeof): Handle dereferencing of non-pointer values. * symtab.c (gdb_mangle_name): Improve mangling of nested types, their physical names already include the class name. * valops.c (value_cast): Handle upcast of a class pointer. From Andreas Schwab (schwab@issan.informatik.uni-dortmund.de): * corelow.c (get_core_registers): Make secname big enough.
* Modified Files:Keith Seitz1997-06-063-1/+52
| | | | | | | ChangeLog sh-tdep.c config/sh/tm-sh.h * config/sh/tm-sh.h: add define for FPSCR_REGNUM * sh-tdep.c (sh_show_regs): print out all registers for the current processor
* sim_kill() isn't used.Andrew Cagney1997-06-062-2/+25
|
* * config/monitor.exp(gdb_target_monitor): Call gdb_file_cmdBob Manson1997-06-042-36/+60
| | | | | | | | | | | | | here. Call gdb_target_exec before rebooting the target, to make sure the connection to the target is closed. (gdb_load): Pass the name of the executable to gdb_target_monitor. Don't call gdb_file_cmd here; let gdb_target_monitor do it. * config/gdbserver.exp: Pass the executable being loaded to gdb_target_monitor. Don't call gdb_file_cmd here; let gdb_target_monitor do it. * gdb.disasm/hppa.exp: Don't use exec_output.
* * configure.tgt: add mipsr3900-elf targetMichael Snyder1997-06-038-0/+132
| | | | * config/mips/r3900*.mt config/mips/tm-r3900*.h: ditto
* * Makefile.in (LIB_RUNTIME_DIR): New variable.Tom Tromey1997-06-031-0/+10
|
* Added proelf.Bob Manson1997-06-031-0/+1
|
* * gdb.c++/virtfunc.exp(gdb_virtfunc_restart): Make sure we runBob Manson1997-05-231-1/+16
| | | | | | | | | | | | | | | | | | | test_calls after restarting. * lib/gdb.exp(gdb_run_cmd): Send jump command again after reloading. * gdb.base/watchpoint.exp: Fix typo. * gdb.base/setshow.exp: Check for use_gdb_stub. * gdb.base/break.exp: Fix continue until exit test for the gdb stub case. * gdb.base/langs.exp: Ditto. * config/monitor.exp(gdb_load): Handle gdb_sect_offset and gdb_load_offset. If we weren't given a file to load, figure out what the current file is and use it.
* * config/monitor.exp(gdb_load): Handle gdb_sect_offset andBob Manson1997-05-233-36/+83
| | | | gdb_load_offset.
* * infcmd.c (jump_command): Don't try to dereference sfn if it'sBob Manson1997-05-231-0/+5
| | | | NULL.
* * config/i386-bozo.exp: New file.Bob Manson1997-05-232-0/+5
|
* Don't restrict the endian commands to BI-ENDIAN gdb.Andrew Cagney1997-05-232-18/+27
|
* Make sure we keep the old value of timeout set properly.Bob Manson1997-05-231-3/+7
|
* Don't look at timeout unless it exists.Bob Manson1997-05-231-3/+9
|
* * lib/gdb.exp(gdb_expect): Look for gdb,timeout targetBob Manson1997-05-232-0/+11
| | | | feature.
* * config/proelf.exp: New entry.Bob Manson1997-05-232-0/+24
|
* * lib/gdb.exp: Remove spurious .* patterns at the beginningBob Manson1997-05-222-28/+37
| | | | of regexps.
* * gdb.base/watchpoint.exp: Don't run the test_steppingBob Manson1997-05-222-8/+14
| | | | tests if gdb can't call functions on the target.
* add new file.Bob Manson1997-05-221-0/+1
|
* Restrict simulator commands to an enabled simulator.Andrew Cagney1997-05-222-8/+22
|
* * gdb.base/setshow.exp: Don't run the set prompt tests ifBob Manson1997-05-222-14/+21
| | | | the board has gdb_prompt set.
* Wed May 21 16:03:25 1997 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder1997-05-214-380/+715
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * procfs.c (init_procinfo): new function, abstracts some code shared by create_procinfo and do_attach; (procfs_set_inferior_syscall_traps): new function, abstracts some code needed by procfs_init_inferior, do_attach, and procfs_lwp_creation_handler; (procfs_first_available): new function, find any LWP that's runnable; (procfs_thread_alive): replace stub function with real implementation; (procfs_lwp_creation_handler): fix bug starting new child threads; (info_proc): bug fixes and enhancements for the "INFO PROCESSES" command; (close_procinfo_file): call new function "delete_thread" to cleanup GDB's thread database; (proc_init_failed): add new argument "kill", to control whether process is killed (so this function can be shared by create_procinfo and do_attach); (procfs_exit_handler): handle exit from an attached process, and cleanup procinfo handles when the process exits; (procfs_resume, procfs_wait): cleanup after a thread when it exits; (do_attach, do_detach): handle attached processes with multiple threads; plus some general improvements in the diagnostic output. * sol-thread.c (sol_thread_alive): replace stub with real implementation; (thread_to_lwp, lwp_to_thread): enhance to handle threads that may have exited; (sol_thread_attach): add startup setup stuff; (sol_thread_detach): add unpush_target call; (sol_thread_mourn_inferior): add unpush_target call; (sol_thread_wait, sol_thread_resume): enhance to deal with thread exit cleanly; (sol_thread_new_objfile, sol_thread_pid_to_str): detect unsuccessful startup and don't crash; plus some general cleanup. * thread.c (delete_thread): new function, allows targets to notify gdb when a thread is no longer valid. * infrun.c (wait_for_inferior): don't try to detect a new thread on receiving a TARGET_EXITED event.
* * gdb.base/a2-run.exp: Change "gdb,noargs" to just "noargs".Jeff Law1997-05-202-1/+21
| | | | | * gdb.base/commands.exp: Likewise. * gdb.base/setshow.exp: Likewise.
* Depreciate sim_set_callbacks() function. Set simulator callbacksAndrew Cagney1997-05-201-5/+3
| | | | during sim_open().
* * config/monitor.exp(gdb_start): Look for gdb_prompt targetBob Manson1997-05-191-0/+20
| | | | | | feature. * config/i960.exp: New file.
* * config/rs6000/tm-rs6000.h (SIG_FRAME_LR_OFFSET): Define.Peter Schauer1997-05-152-7/+40
| | | | | | | | | | | * rs6000-tdep.c (frameless_function_invocation): Mark frames with a zero PC as frameless to improve backtraces from core dumps caused by dereferencing a NULL function pointer. (frameless_function_invocation, frame_saved_pc, rs6000_frame_chain): Handle frameless functions interrupted by a signal. * sparc-tdep.c (sparc_init_extra_frame_info, sparc_frame_saved_pc): Handle frameless functions interrupted by a signal.
* * mn10200-tdep.c (mn10200_analyze_prologue): Update prologue commentsJeff Law1997-05-142-12/+199
| | | | | to reflect current reality. Gross attempt at handling out of line prologues.
* * mn10200-tdep.c (mn10200_skip_prologue): Don't look at the debugJeff Law1997-05-142-18/+9
| | | | | symbols to find the end of the prologue. * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
* Fix total number of tic80 registersAndrew Cagney1997-05-142-1/+7
|
* Fix tic80 sanitization.Mark Alexander1997-05-131-0/+2
|
* * tic80-tdep.c, config/tic80/tm-tic80.h: First cut at gettingMark Alexander1997-05-123-51/+504
| | | | basic C80 features working.
* Add h8300.exp.Mark Alexander1997-05-081-0/+1
|
* Part II of getting GdbTk's stop button to always work.Andrew Cagney1997-05-086-119/+204
|
* Remove remote-pa.c.Mark Alexander1997-05-061-1/+0
|
* Tue May 6 13:53:05 1997 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder1997-05-061-0/+11
| | | | * Add overlay tests to gdb.base/.Sanitize