aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
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.
2000-10-30* gdbarch.sh, hp-psymtab-read.c, hpread.c, m3-nat.c, mcore-tdep.c,J.T. Conklin21-34/+53
mips-tdep.c, monitor.c, regcache.c, remote-es.c, ser-unix.c, somread.c, tracepoint.c: Fix spelling errors in comments. * gdbarch.c: Regenerate. * gnu-nat.c (S_exception_raise_request): Fix typos and spelling errors in strings. * m3-nat.c (intercept_exec_calls, mach_thread_parse_id): Likewise. * mcore-tdep.c (mcore_analyze_prologue): Likewise. * mips-tdep.c (mips16_next_pc, _initialize_mips_tdep): Likewise. * remote-e7000.c (e7000_start_remote): Likewise. * remote-rdp.c (handle_swi): Likewise. * remote-vx.c (vx_load_command): Likewise. * sh-tdep.c (sh_do_pseudo_register): Likewise. * sol-thread.c (td_err_string): Likewise. * symtab.c (decode_line_2): Likewise. -------------------------------------------------------------------
2000-10-302000-10-19 Josef Ezra <jezra@emc.com>Michael Snyder2-1/+8
* ax-gdb.c (gen_struct_ref): while generating data code, cases of "collect p1->p2->data" where not covered if p2 is a 'typedefed' type. this simple fix should forward the type pointer to the real type.
2000-10-30 * eval.c (parse_and_eval_long): New function.David Taylor11-17/+51
* value.h: Declare it. * breakpoint.c (breakpoints_info, maintenance_info_breakpoints): Call parse_and_eval_long, not parse_and_eval_address. * command.c (do_setshow_command): Ditto. * infcmd.c (step_1, signal_command, continue_command): Ditto. * infrun.c (signals_info): Ditto. * stack.c (set_backtrace_limit_command, backtrace_command_1, up_silently_base, down_silently_base): Ditto. * tracepoints.c (tracepoints_info, trace_find_command, trace_find_tracepoint_command): Ditto. * valprint.c (set_radix): Ditto. * values.c (show_values): Ditto.
2000-10-28Protoization.Kevin Buettner3-18/+12
2000-10-27* arch-utils.c (set_architecture, set_architecture_from_arch_mach,J.T. Conklin7-21/+47
set_gdbarch_from_file): Fix spelling error. * v850-tdep.c (v850_target_architecture_hook): Likewise. * gdbarch.sh: Fix spelling errors in comment. * gdbarch.c, gdbarch.h: Regenerate. * ppcnbsd-nat.c (fetch_core_registers, fetch_inferior_registers, store_inferior_registers): Support older NetBSD/powerpc systems from before fp reg support was added. Adapt to register number changes caused when powerpc target was multi-arched.
2000-10-27Corrected spelling errors in comments.David Anderson16-22/+30
gdbarch.{c,sh} removed a word from a comment.
2000-10-27Protoization.Kevin Buettner3-15/+23
2000-10-262000-10-26 Elena Zannoni <ezannoni@kwikemart.cygnus.com>Elena Zannoni2-0/+31
* stabsread.c (define_symbol): Update comment. 2000-10-26 Pierre Muller <muller@ics.u-strasbg.fr> * stabsread.c (define_symbol): Set the type_name of the type of the new symbol to the symbol name for type symbol, if the language is Pascal.
2000-10-26 * arch-utils.c, arch-utils.h (default_convert_from_func_ptr_addr):Peter Schauer10-28/+84
New function. * gdbarch.sh (CONVERT_FROM_FUNC_PTR_ADDR): Add. * gdbarch.c, gdbarch.h: Regenerate. * valops.c (find_function_addr): Use CONVERT_FROM_FUNC_PTR_ADDR unconditionally. * config/rs6000/tm-rs6000.h (CONVERT_FROM_FUNC_PTR_ADDR): Delete definition. * config/powerpc/tm-linux.h (CONVERT_FROM_FUNC_PTR_ADDR): Remove undef. * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Fix comment. (rs6000_gdbarch_init): Register rs6000_convert_from_func_ptr_addr if not ELFOSABI_LINUX.
2000-10-25Revert change of 2000-10-24 in which solib-svr4.o was added to TDEPFILES.Kevin Buettner2-1/+7
2000-10-25 Approved by Andrew Cagney <ac131313@cygnus.com>Fred Fish2-1/+13
* mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Define using either the current arch or use zero.
2000-10-252000-10-25 Fernando Nasser <fnasser@cygnus.com>Fernando Nasser2-1/+6
* ser-unix.c (do_unix_readchar): Coding style improvement only.
2000-10-252000-10-25 Fernando Nasser <fnasser@cygnus.com>Fernando Nasser2-0/+8
* target.c (generic_mourn_inferior): Notify GUI that inferior is gone by calling detach_hook, if defined.
2000-10-24Call end_symtab() with SECT_OFF_TEXT (objfile).Kevin Buettner4-4/+13
2000-10-24Removed extraneous blank line from one of my entries.Kevin Buettner1-1/+0
2000-10-24Restructure my 2000-10-24 solib reorg entry.Kevin Buettner1-8/+4
2000-10-24Reorganize solib.c.Kevin Buettner41-1590/+1905
2000-10-242000-10-24 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder2-91/+146
* gdb.base/commands.exp: Break up long lines, and re-indent.
2000-10-24Protoization.Kevin Buettner2-17/+11
2000-10-24* solib.c (open_symbol_file_object): Update function signature toAndrew Cagney2-3/+9
match catch_errors function argument.
2000-10-24From 2000-09-06 Angela Marie Thomas <angela@cygnus.com>:Andrew Cagney2-1/+7
* infttrace.c (get_dictionary_entry_of_page): Function require_memory_page_dictionary takes no args.
2000-10-24Delete gdba.el. More recent gud.el part of standard EMACS distro.Andrew Cagney3-2607/+8
2000-10-24Cleanup merge botch.Andrew Cagney1-2/+0
2000-10-23Corrected spelling errors in commentsDavid Anderson11-24/+34
2000-10-23Protoization.Kevin Buettner3-12/+22
2000-10-22Remove erroneously committed entry.Christopher Faylor1-10/+0
2000-10-20Add Fred Fish to the Blanket Write Privs list.Andrew Cagney2-0/+5
2000-10-20Protoization.Kevin Buettner2-20/+19
2000-10-20From Daniel Berlin <dberlin@redhat.com> :Christopher Faylor1-0/+10
* symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Initialize the symbol language to auto instead of unknown, so it will try to demangle the symbol. * symtab.h (OPNAME_PREFIX_P): Change operator prefix to correct value. * symtab.c (gdb_mangle_name): Properly handle C++ operators.
2000-10-192000-10-19 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder2-71/+147
* config/gdbserver.exp: Rewritten from the ground up, to make it compatible with the current dejagnu tree, and to make it work with the new "gdbserver" in libremote.
2000-10-18Protoization.Kevin Buettner4-28/+22
2000-10-172000-10-16 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder9-369/+559
* lib/gdb.exp (gdb_skip_float_test): New proc. Skip test if no floating point support. (gdb_skip_stdio_test): New proc. Skip test if no stdio support. * gdb.base/call-ar-st.exp: Use above procs to skip tests. * gdb.base/call-rt-st.exp: Ditto. * gdb.base/call-strs.exp: Ditto. * gdb.base/sizeof.exp (check_sizeof): Skip if no printf support. * gdb.base/varargs.exp: Skip entire test if no printf support. * gdb.base/ending-run.exp (Step to return): Skip if no printf supt. * gdb.base/shlib-call.exp: Skip several tests if no printf support.
2000-10-16 * sparc-tdep.c (sparc_fix_call_dummy): Improve comments.Peter Schauer2-12/+33
Adjust call_dummy_breakpoint_offset, so that `finish' after a stop in a call dummy works. (sparc_gdbarch_init): Fix setting of pc_in_call_dummy, it depends on SPARC32/64_CALL_DUMMY_ON_STACK, not DO_CALL_DUMMY_ON_STACK.
2000-10-16Spelling changes from Dmitry Sivachenko <dima@Chg.RU>.Eli Zaretskii4-4/+15