aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2000-11-18Handle optimizer code motions into the prologue.Kevin Buettner2-6/+113
2000-11-18Protoization.Kevin Buettner2-6/+6
2000-11-17 * lib/gdb.exp (gdb_test): Override timeout with board info.Nicholas Duffek2-4/+12
2000-11-17 * gdb.base/display.exp: Don't kill running stub. Add "again" toNicholas Duffek2-13/+19
the second kill and detach messages.
2000-11-17 * configure.in: Add AC_EXEEXT.Nicholas Duffek7-6/+137
* configure: Regenerate. * Makefile.in (just-check): Export EXEEXT. * lib/gdb.exp ($EXEEXT): Import from environment. * gdb.base/maint.exp: Expect $EXEEXT in executable name. Don't expect "maint dump-me" on Cygwin. * gdb.base/reread.exp ($binfile, $binfile1, $binfile2): Append $EXEEXT.
2000-11-17 * gdb.base/break.exp: Test backtrace and finish from calledNicholas Duffek2-15/+24
function on all platforms, not just HP-UX.
2000-11-17* gdb.texinfo: Document new 'set step-mode' command.Christopher Faylor2-0/+21
2000-11-17* thread.c (thread_apply_all_command): Save the command before executing itChristopher Faylor2-0/+23
because it may be modified. Restore the saved command so that the same command is executed on next thread. (thread_apply_command): Same correction.
2000-11-172000-11-16 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder2-1/+17
* regcache.c (read_register_bytes): Failing to set register_valid is not necessarily an error, if the register is a pseudo-register. Some pseudo-registers are never marked as valid, so that they will be read anew every time. Determining if a pseudo-register is valid (or should be marked invalid) may be difficult, whereas just recomputing it may be cheap.
2000-11-16 * tracepoint.c (trace_find_tracepoint_command): Replace call toDavid Taylor3-2/+9
parse_and_eval_address with a call to parse_and_eval_long as we are evaluating an integer, not an address. * top.c (show_commands): Ditto.
2000-11-15Protoization.Kevin Buettner4-8/+6
2000-11-15 * utils.c (strlen_paddr, paddr, paddr_nz): Use TARGET_ADDR_BIT,David Taylor2-3/+9
not TARGET_PTR_BIT, since we are dealing with addresses, not pointers.
2000-11-142000-11-03 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder2-42/+61
* config/monitor.exp (gdb_target_cmd): Abstracts some of the code from gdb_target_monitor, so it can be used independantly for gdbserver. Also comment out an unnecessary PUTS.
2000-11-142000-11-03 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder7-36/+78
* gdb.base/a2-run.exp: Use gdb_skip_stdio_test. * gdb.base/corefile.exp: Expect the message "Program is being debugged already" when we send the "corefile" command, since the preceeding gdb_load may have connected gdb to a remote target. * gdb.base/display.exp: Disable hardware watchpoints if new board info variable "no_hardware_watchpoints" is true. Replace single-letter commands with more readable ones. * gdb.base/recurse.exp (recurse_tests): Disable hardware watchpoints if new board info variable "no_hardware_watchpoints" is true. * gdb.base/restore.exp (restore_tests): Call gdb_skip_stdio_tests to see if stdio (printf) testing is possible. * gdb.base/watchpoint.exp: Disable hardware watchpoints if new board info variable "no_hardware_watchpoints" is true. Use new proc "gdb_skip_stdio_tests" to see if printf tests are possible.
2000-11-14From Kenneth Block <kenneth.block@compaq.com>Daniel Berlin2-59/+20
* demangle.c: Use libibery list of demanglers instead of out of date local copy.
2000-11-14Fix ``show remotewritesize'' was doing a set.Andrew Cagney2-1/+8
2000-11-142000-11-13 Fernando Nasser <fnasser@redhat.com>Fernando Nasser2-11/+26
From Orjan Friberg <orjanf@axis.com>: * gdb.base/printcmds.exp: Escape curly braces followed by a number in array print pattern match.
2000-11-13 * config/djgpp/config.sed: Fix tweaking "VPATH=.:foo", and handleEli Zaretskii2-1/+7
the gettext's posrcprefix correctly with drive letters.
2000-11-10* stabsread.c (read_range_type): Properly construct complexJim Blandy2-4/+13
type nodes.
2000-11-102000-11-10 Fernando Nasser <fnasser@totem.toronto.redhat.com>Fernando Nasser5-1235/+1309
* symtab.c (decode_line_1, total_number_of_methods, find_methods, build_command_line_spec, find_toplevel_char, decode_line_2): Move to linespec.c. * linespec.c: New file. Routines that handle linespecs, formerly in symtab.c. * symtab.h: Export find_line_symtab and find_function_start_sal, * Makefile.in: Add linespec.c.
2000-11-10* inferior.h (step_over_calls_kind): New enum to clarify values inChristopher Faylor4-17/+77
step_over_calls. * infcmd.c (step_over_calls): Change definition. (step_1): Use new enum values in relation to step_over_calls. (step_once): Ditto. (until_next_command): Ditto. * infrun.c (clear_proceed_status): Ditto. (handle_inferior_event): Ditto. * inferior.h (step_stop_if_no_debug): New variable. * infrun.c (step_stop_if_no_debug): Declare. (handle_inferior_event): Stop the step command if we entered a function without line info. (_initialize_infrun): New command 'set step-mode' to control the step command. * infcmd.c (step_once): Switch to stepi mode if there is no line info (and switching is enabled).
2000-11-102000-11-10 J.T. Conklin <jtc@redback.com>J.T. Conklin2-32/+32
* target.c (do_xfer_memory): Only perform a single memory transfer instead of iterating to tranfer the entire region. Higher layers are expected to call this function multiple times for partial transfers. (target_xfer_memory_partial): Remove unused local variables. 2000-11-10 Nick Duffek <nsd@redhat.com> * target.c (target_xfer_memory_partial): Return bytes transferred instead of 0.
2000-11-10Protoization.Kevin Buettner3-17/+12
2000-11-10Add code for relocating dynamic executables.Kevin Buettner2-1/+117
2000-11-092000-11-09 Fernando Nasser <fnasser@redhat.com>Fernando Nasser3-8/+15
* gdb.c++/templates.exp (test_template_breakpoints): Change Britsh spelling "cancelled" to U.S. spelling "canceled" to match changes made to gdb. * gdb.c++/ovldbreak.exp: Ditto.
2000-11-09* config/i386/nbsd.mh: Remove solib.o, solib-svr4.o from NATDEPFILES.J.T. Conklin14-17/+29
* config/i386/nbsdelf.mh: Likewise. * config/m68k/nbsd.mh: Likewise. * config/ns32k/nbsd.mh: Likewise. * config/powerpc/nbsd.mh: Likewise. * config/sparc/nbsd.mh: Likewise. * config/sparc/nbsdelf.mh: Likewise. * config/i386/nbsd.mt: Add solib.o, solib-svr4.o to TDEPFILES. * config/i386/nbsdelf.mt: Likewise. * config/m68k/nbsd.mt: Likewise. * config/ns32k/nbsd.mt: Likewise. * config/powerpc/nbsd.mt: Likewise. * config/sparc/nbsd.mt: Likewise.
2000-11-09 Add auto-solib-add support for AIX, remove obsolete and unusedPeter Schauer18-177/+178
SOLIB_SYMBOLS_MANUAL code, cleanup of AIX shared library handling code. * rs6000-nat.c (vmap_symtab): Do not try to modify offsets if symbols are not yet loaded. (vmap_add_symbols): New function to add symbols for a vmap entry. (add_vmap): Turn errors into warnings, return NULL vmap upon failure. Add symbols via vmap_add_symbols only if requested. (xcoff_relocate_core): Allow debugging of core files without an executable file. Handle NULL returns from add_vmap gracefully. * xcoffsolib.c (solib_add): Remove, no longer needed. (solib_info): Do not check for new shared libraries if there is no inferior process. (sharedlibrary_command): Made static. Do not check for new shared libraries if there is no inferior process. Add symbols for requested shared libraries via vmap_add_symbols. (_initialize_solib): Add `set auto-solib-add' command. * xcoffsolib.h (vmap_add_symbols): Add prototype declaration. * config/rs6000/tm-rs6000.h (PC_LOAD_SEGMENT): Move from here ... * config/rs6000/nm-rs6000.h: ... to here, this is an AIX native feature. * config/powerpc/tm-macos.h, config/powerpc/tm-ppc-eabi.h, config/powerpc/tm-ppc-nw.h, config/rs6000/tm-rs6000ly.h: Remove #undef PC_LOAD_SEGMENT. * config/powerpc/aix.mt, config/rs6000/aix4.mt, config/rs6000/rs6000.mt (TDEPFILES): Move xcoffsolib.o from here ... * config/powerpc/aix.mh, config/rs6000/aix4.mh, config/rs6000/rs6000.mh (NATDEPFILES): ... to here, xcoffsolib.o contains AIX native code only. * rs6000-tdep.c: Remove #include xcoffsolib.h, no longer needed. * xcoffsolib.h (xcoff_relocate_symtab_hook): Remove declaration. * rs6000-nat.c (_initialize_core_rs6000): Remove setting of xcoff_relocate_symtab_hook, no longer needed. * xcoffsolib.c (solib_info, sharedlibrary_command): Remove xcoff_relocate_symtab_hook indirection, call xcoff_relocate_symtab directly, as xcoffsolib.c is now compiled in native AIX configurations only. * Makefile.in: Update dependencies for rs6000-tdep.o, rs6000-nat.o and xcoffsolib.o.
2000-11-09 * MAINTAINERS: Specify the vax-dec-vms5.5 target tupple.Andrew Cagney3-2/+11
* vax-tdep.c: Include "gdbcore.h", "frame.h" and "value.h". (vax_print_insn): Change ``d'' to a const char pointer.
2000-11-082000-11-08 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder2-17/+22
* gdbarch.sh: Spelling correction: registrary -> registry. * gdbarch.c: Ditto.
2000-11-08Work around targets that don't yet define JB_PC or JB_ELEMENT_SIZE.Andrew Cagney2-0/+15
2000-11-08Rename get_longjmp_target to m68k_get_longjmp_target. Update all m68kAndrew Cagney9-14/+27
targets.
2000-11-08* gdbserver/configure.in (files): Don't link nm-empty.h when aAndrew Cagney3-32/+49
non-native target. * configure: Regenerate.
2000-11-08Protoization.Kevin Buettner3-10/+9
2000-11-08AIX5 changes.Kevin Buettner2-6/+48
2000-11-082000-11-07 Daniel Berlin <dberlin@redhat.com>Daniel Berlin2-39/+7
* dwarf2read.c: Revert June 5th change for caching of types, as per Jim Blandy's request.
2000-11-062000-11-06 Fernando Nasser <fnasser@totem.toronto.redhat.com>Fernando Nasser4-1/+52
* wrapper.c (gdb_value_assign): New function. Longjump-free version of value_assign. (wrap_value_assign): New function. Wrapper for value_assign. * wrapper.h: Add declaration for the above. * varobj.c (varobj_set_value): Use gdb_value_assign, not value_assign which can longjump. Do not change varobj value if assign fails.
2000-11-062000-11-06 Fernando Nasser <fnasser@cygnus.com>Fernando Nasser5-23/+121
From Steven Johnson <sbjohnson@ozemail.com.au>: This set of changes add "hookpost-" as an expansion on the original hooking of commands to GDB. A Hook may now be run "AFTER" execution of a command as well as before. * command.h (struct cmd_list_element): Changed elements hook and hookee to hook_pre and hookee_pre respectively. Added hook_post and hookee_post for the post hook command operation. Added hook_in so that an executing hook can be flagged to prevent recursion. * command.c (add_cmd): Changed initilization of cmd_list_element to reflect above changes. (delete_cmd): Remove both pre and post hooks. (help_cmd): Notify that the command has pre and/or post hooks. * infrun.c (normal_stop): Change references to hook_pre from hook. * top.c (execute_command): Run both pre and post hooks. (define_command): Allow definition of both pre and post hooks. The definition of pre-hooks is done as before, with the "hook-" prefix for backward compatibility.
2000-11-06 * gdb.base/callfuncs.c (main): Moved to end of file, callPeter Schauer3-15/+115
t_double_values to initialize the FPU before inferior calls are made. * gdb.base/callfuncs.exp: Test for register preservation after calling inferior functions. Add tests for continuining, finishing and returning from a stop in a call dummy.
2000-11-06 * stack.c (return_command): Pop dummy frame if we just returned fromPeter Schauer2-0/+11
a stop in a call dummy.
2000-11-06Protoization.Kevin Buettner3-15/+12
2000-11-04Protoization.Kevin Buettner2-15/+14
2000-11-03In new_symbol(), relocate symbol address by base address of the sectionKevin Buettner2-2/+14
it is in instead of using the base address of the .text section.
2000-11-03* TODO: Note abstraction layer violation where "ocd reset" commandJ.T. Conklin16-193/+241
must invalidate the dcache, and how this might be fixed. * monitor.c (#include "dcache.h"): Removed. (remote_dcache): Removed. (monitor_open): Removed code that created local dcache. (flush_monitor_dcache): Removed (unused function). (monitor_resume): Removed call to dcache_invd(). (monitor_load): Likewise. (monitor_xfer_memory): Changed to call monitor_write_memory(), monitor_write_memory_block(), and monitor_read_memory() instead of dcache_xfer_memory(). * monitor.h (flush_monitor_dcache): Removed (unused function). * ocd.c (#include "dcache.h"): Removed. (ocd_dcache): Removed. (ocd_open): Removed code that created local dcache. (ocd_resume): Removed call to dcache_invd(). (ocd_xfer_memory): Changed to call ocd_write_bytes() and ocd_read_bytes() instead of dcache_xfer_memory(). (bdm_reset_command): Invalidate target dcache. * remote-bug.c (bug_load): Remove call to dcache_invd(). (bug_resume): Likewise. (bug_settings): Remove dcache, readfunc, and writefunc fields from initializer. (bug_xfer_memory): Changed to call bug_read_memory() and bug_write_memory() instead of dcache_xfer_memory(). * remote-nindy.c (#include "dcache.h"): Removed. (nindy_dcache): Removed. (nindy_open): Removed code that created local dcache. (nindy_resume): Removed call to dcache_invd(). (nindy_load): Likewise. (nindy_xfer_inferior_memory): Changed to call ninMemPut() and ninMemGet() instead of dcache_xfer_memory(). * remote-sds.c (#include "dcache.h"): Removed. (sds_dcache): Removed. (sds_open): Removed code that created local dcache. (sds_resume): Removed call to dcache_invd(). (sds_xfer_memory): Changed to call sds_write_bytes() and sds_read_bytes() instead of dcache_xfer_memory(). * remote-utils.c (gr_open): Removed code that created local dcache. * remote-utils.h (#include "dcache.h"): Removed. (struct gr_settings): Removed dcache, readfunc, and writefunc fields. (gr_get_dcache, gr_set_dcache): Removed macro definitions. * remote.c (#include "dcache.h"): Removed. (remote_dcache): Removed. (remote_open_1): Removed code that created local dcache. (remote_async_open_1): Likewise. (remote_resume): Removed call to dcache_invd(). (remote_async_resume): Likewise. (remote_xfer_memory): Changed to call remote_write_bytes() and remote_read_bytes() instead of dcache_xfer_memory(). * wince.c (#include "dcache.h"): Removed. (remote_dcache): Removed. (child_create_inferior): Removed code that created local dcache. (child_xfer_memory): Changed to call remote_write_bytes() and remote_read_bytes() instead of dcache_xfer_memory(). (child_resume): Removed call to dcache_invd(). * target.c (target_dcache): Added. (target_load): Invalidate target_dcache. (do_xfer_memory): New function. (target_xfer_memory): Reimplement in terms of dcache_xfer_memory(). (target_xfer_memory_partial): Likewise. (initialize_targets): Create target_dcache. * target.h (#include "dcache.h"): Added. (target_open): Invalidate target_dcache. (target_resume): Likewise. (do_xfer_memory): New declaration. * dcache.c (dcache_init): Removed reading and writing arguments. (dcache_struct): Removed read_memory and write_memory fields. (dcache_write_line): Call do_xfer_memory. (dcache_read_line): Likewise. (dcache_xfer_memory): Likewise. (dcache_invalidate): Renamed from dcache_invd. (dcache_init): Updated. (dcache_xfer_memory): Updated. * dcache.h (memxferfunc): Removed definition.
2000-11-03 * objfiles.c (objfile_relocate): Relocate ei.entry_point withPeter Schauer2-3/+17
its section offset, use SECT_OFF_TEXT only as a fallback.
2000-11-02Protoization.Kevin Buettner4-7/+11
2000-10-312000-10-30 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder7-2/+153
* config/sh/tm-linux.h: New file. Include generic tm-linux.h, plus tm-sh.h, then define SVR4_FETCH_LINK_MAP_OFFSETS to use the sh target function instead of the default link map offsets. * config/sh/sh.mt: Add solib.o and solib-svr4.o to TDEPFILES. Use sh/tm-linux.h instead of sh/tm-sh.h. * sh-tdep.c (sh_linux_svr4_fetch_link_map_offsets): New function. Construct target-specific link map offsets. * i386-linux-tdep.c (i386_linux_svr4_fetch_link_map_offsets: New function. Construct target-specific link map offsets. * config/i386/tm-linux.h: Use above function instead of default. 2000-10-30 Michael Snyder <msnyder@cleaver.cygnus.com> * config/i386/tm-linux.h: Remove definition of SVR4_SHARED_LIBS, and inclusion of solib.h. Move up into ../tm-linux.h. config/tm-linux.h: Define SVR4_SHARED_LIBS, include solib.h.
2000-10-31Protoization.Kevin Buettner3-19/+16
2000-10-30solib.c relocation improvementsKevin Buettner4-47/+75
2000-10-30[left out in the previous check-in]Michael Snyder2-2/+2
2000-10-30 Michael Snyder <msnyder@cleaver.cygnus.com> * config/m68k/linux.mh: Remove solib.c, solib-svr4.c from NATDEPFILES. * config/powerpc/linux.mh: ditto. * config/ia64/linux.mh: ditto. * config/i386/linux.mh: ditto. * config/alpha/alpha-linux.mh: ditto. * config/arm/linux.mh: ditto. * config/m68k/linux.mt: Add solib.c, solib-svr4.c to TDEPFILES. * config/powerpc/linux.mt: ditto. * config/ia64/linux.mt: ditto. * config/i386/linux.mt: ditto. * config/alpha/alpha-linux.mt: ditto. * config/arm/linux.mt: ditto.
2000-10-302000-10-30 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder11-10/+25
* config/m68k/linux.mh: Remove solib.c, solib-svr4.c from NATDEPFILES. * config/powerpc/linux.mh: ditto. * config/ia64/linux.mh: ditto. * config/i386/linux.mh: ditto. * config/alpha/alpha-linux.mh: ditto. * config/arm/linux.mh: ditto. * config/m68k/linux.mt: Add solib.c, solib-svr4.c to TDEPFILES. * config/powerpc/linux.mt: ditto. * config/ia64/linux.mt: ditto. * config/i386/linux.mt: ditto. * config/alpha/alpha-linux.mt: ditto. * config/arm/linux.mt: ditto.