aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2004-01-31 * breakpoint.h: Update copyright years.Daniel Jacobowitz2-1/+6
2004-01-31 * breakpoint.c (software_breakpoint_inserted_here_p): New function.Daniel Jacobowitz4-40/+119
(bpstat_stop_status): Don't decrement PC. * breakpoint.h (software_breakpoint_inserted_here_p): Add prototype. * infrun.c (adjust_pc_after_break): New function. (handle_inferior_event): Call it, early. Remove later references to DECR_PC_AFTER_BREAK. (normal_stop): Add commentary.
2004-01-31 * breakpoint.c (breakpoint_re_set_one): Add missing chunk ofDaniel Jacobowitz2-1/+11
2004-01-27 double-free fix.
2004-01-31 * gdb.base/chng-syms.exp: Remove stray newline.Daniel Jacobowitz2-1/+5
2004-01-31* sparc-tdep.c (sparc_fetch_wcookie): New function.Mark Kettenis2-0/+91
(sparc32_frame_prev_register): Handle StackGhost. (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
2004-01-31* gdb.asm/asm-source.exp: Set asm-note to "openbsd" forMark Kettenis3-0/+25
*-*-openbsd*. * gdb.asm/openbsd.inc: New file.
2004-01-31*** empty log message ***gdbadmin1-1/+1
2004-01-30* gdb.asm/asm-source.exp: Strip -Wl, from link-flags. Don'tMark Kettenis2-21/+15
append -static to link-flags for *-*-freebsd*, *-*netbsd* and *-*solaris2*. Remove commented out default settings for asm-flags. Replace gdb_compile with target_link.
2004-01-30 * regcache.c (new_register_cache): Clear the allocated registerDaniel Jacobowitz2-2/+10
buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
2004-01-302004-01-29 Michael Chastain <mec.gnu@mindspring.com>Michael Chastain2-715/+773
* gdb.cp/inherit.exp: Rewrite. Use gdb_test_multiple and gdb for all tests. Remove old hp-ux and cygnus xfail cases.
2004-01-30*** empty log message ***gdbadmin1-1/+1
2004-01-29.Roland McGrath1-1/+9
2004-01-292004-01-29 Roland McGrath <roland@redhat.com>Roland McGrath2-572/+587
* configure.in (NEW_PROC_API): Also match solaris2.9 for this test. * configure: Regenerated.
2004-01-292004-01-29 Roland McGrath <roland@redhat.com>Roland McGrath2-264/+265
* procfs.c: Include gdb_string.h for str* decls, otherwise warnings. * Makefile.in (procfs.o): Add dep.
2004-01-29New test to check that GDB does not crash due to memory corruptionPaul N. Hilfinger4-1/+148
when a reload caused by a change in an executable invalidates a breakpoint condition.
2004-01-29*** empty log message ***gdbadmin1-1/+1
2004-01-282004-01-28 Andrew Cagney <cagney@redhat.com>Andrew Cagney9-40/+54
* tui/tui-stack.h: Update copyright. (struct frame_info): Add opaque declaration. (tui_update_locator_filename): Rename tuiUpdateLocatorFilename. (tui_show_locator_content): Rename tuiShowLocatorContent. (tui_show_frame_info): Rename tuiShowFrameInfo. * tui/tui-stack.c: Update copyright. Update references. * tui/tui-winsource.c: Update references. * tui/tui-win.c: Update references. * tui/tui-layout.c: Update references. * tui/tui-hooks.c: Update copyright, update references. * tui/tui.c: Update copyright, update references. * tui/tui-disasm.c: Update references.
2004-01-282004-01-28 David Carlton <carlton@kealia.com>David Carlton2-3/+23
* dwarf2read.c (add_partial_structure): Use demangled name if namespace equals "".
2004-01-28* dwarf2read.c (read_func_scope): Re-indent comment.Jim Blandy2-21/+23
2004-01-28Clean up misapplied patch:Jim Blandy2-3/+11
* dwarf2read.c (determine_prefix): Change one of the two forward declarations for 'determine_prefix_aux' to a declaration for this. (read_func_scope): Use cu->language, not cu_language. Pass 'cu' argument to 'die_specification'.
2004-01-282004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>Andrew Cagney2-3/+26
* breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and b->exp to NULL after freeing so that error during re-parsing or evaluation of expressions associated with breakpoint don't eventually lead to re-freeing of storage. Committed by Andrew Cagney.
2004-01-28*** empty log message ***gdbadmin1-1/+1
2004-01-272004-01-27 Andrew Cagney <cagney@redhat.com>Andrew Cagney4-65/+7
* source.c (ambiguous_line_spec): Delete undefined declaration. * m32r-rom.c (m32r_set_board_address): Delete unused function. (m32r_set_server_address, m32r_set_download_path): Ditto. * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
2004-01-27 * dwarf2read.c: Update calls to changed and renamed functions, andDaniel Jacobowitz2-268/+321
references to moved variables. (struct dwarf2_cu): Add first_fn, last_fn, cached_fn, language, language_defn, list_in_scope, and ftypes members. (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language) (cu_language_defn, list_in_scope, ftypes, cu_header_offset) (baseaddr): Remove globals. (dwarf_attr): Renamed to dwarf2_attr. Add CU argument. (set_cu_language, die_is_declaration, die_specification) (determine_prefix, determin_prefix_aux, class_name, namespace_name) (dwarf2_linkage_name, dwarf2_name, dwarf2_extension) (dwarf2_get_ref_die_offset, dwarf2_fundamental_type) (initialize_cu_func_list, add_to_cu_func_list): Add CU argument. (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize cu.list_in_scope. Don't initialize cu_header_offset. (add_partial_symbol): Add local baseaddr. (psymtab_to_symtab_1): Add local baseaddr. Use objfile->section_offsets for consistency. Don't initialize cu_header_offset; do initialize cu.header.offset and cu.list_in_scope. (read_file_scope, read_func_scope, read_lexical_block_scope) (dwarf_decode_lines, new_symbol): Add local baseaddr.
2004-01-27Fix capitalization in my last ChangeLog entry.Michael Chastain1-1/+1
"Add".
2004-01-272004-01-27 Michael Chastain <mec.gnu@mindspring.com>Michael Chastain2-0/+16
* PROBLEMS: add gdb/1516.
2004-01-272003-12-29 Robert Millan <robertmh@gnu.org>Andrew Cagney3-3/+12
Patch committed by Andrw Cagney. * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu. * configure.tgt: Match knetbsd*-gnu.
2004-01-272004-01-26 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-33/+6
* breakpoint.c (catch_command_1): Delete #ifdef code. (catch_fork_command_1): Delete #ifdef wrapper. (catch_exec_command_1): Ditto. (catch_load_command_1): Ditto. (catch_unload_command_1): Ditto.
2004-01-272004-01-24 Michael Chastain <mec.gnu@mindspring.com>Michael Chastain2-39/+95
* gdb.cp/local.exp: Rewrite "ptype Local". Add "ptype l". Provide arms for current output in all my configurations.
2004-01-272004-01-26 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-51/+8
* breakpoint.c (watchpoint_check): Delete #if0ed variable. (catch_breakpoint): Delete #if0ed function. (disable_catch_breakpoint): Ditto. (delete_catch_breakpoint, enable_catch_breakpoint): Ditto. (disable_catch, enable_catch, delete_catch): Ditto. Index: breakpoint.c =================================================================== RCS file: /cvs/src/src/gdb/breakpoint.c,v retrieving revision 1.149 diff -u -r1.149 breakpoint.c --- breakpoint.c 17 Jan 2004 21:56:12 -0000 1.149 +++ breakpoint.c 27 Jan 2004 00:11:06 -0000 @@ -2455,9 +2455,6 @@ struct breakpoint *b; struct frame_info *fr; int within_current_scope; -#if 0 - struct frame_id current_frame_id; -#endif b = bs->breakpoint_at; @@ -5879,30 +5876,6 @@ do_cleanups (old_chain); } -#if 0 -/* These aren't used; I don't konw what they were for. */ -/* Set a breakpoint at the catch clause for NAME. */ -static int -catch_breakpoint (char *name) -{ -} - -static int -disable_catch_breakpoint (void) -{ -} - -static int -delete_catch_breakpoint (void) -{ -} - -static int -enable_catch_breakpoint (void) -{ -} -#endif /* 0 */ - static void ep_skip_leading_whitespace (char **s) { @@ -6482,30 +6455,6 @@ b->thread = -1; return b; } - -#if 0 -/* These aren't used; I don't know what they were for. */ -/* Disable breakpoints on all catch clauses described in ARGS. */ -static void -disable_catch (char *args) -{ - /* Map the disable command to catch clauses described in ARGS. */ -} - -/* Enable breakpoints on all catch clauses described in ARGS. */ -static void -enable_catch (char *args) -{ - /* Map the disable command to catch clauses described in ARGS. */ -} - -/* Delete breakpoints on all catch clauses in the active scope. */ -static void -delete_catch (char *args) -{ - /* Map the delete command to catch clauses described in ARGS. */ -} -#endif /* 0 */ static void catch_command (char *arg, int from_tty)
2004-01-27*** empty log message ***gdbadmin1-1/+1
2004-01-26Index: ChangeLogAndrew Cagney4-687/+26
2004-01-26 Andrew Cagney <cagney@redhat.com> * remote.c (echo_check, quit_flag): Delete variables. (cisco_kernel_mode): Delete variable. (minitelnet_return, tty_input, escape_count): Delete variables. (remote_cisco_mode): Delete variable. (remote_cisco_open, remote_cisco_close): Delete function. (remote_cisco_mourn, remote_cisco_wait): Delete function. (init_remote_cisco_ops): Delete function. (_initialize_remote): Do not install "remote cisco" code. (read_frame): Delete cisco specific code. (remote_info_process): Delete function. (remote_wait): Delete cisco specific code. (remote_cisco_section_offsets): Delete function. (remote_cisco_objfile_relocate): Delete function. (remote_async_wait): Delete cisco specific code. (minitelnet, readtty, readsocket): Delete function. Index: doc/ChangeLog 2004-01-26 Andrew Cagney <cagney@redhat.com> * gdb.texinfo (Overview): Delete references to the cisco protocol including the "N" response.
2004-01-262004-01-26 Andrew Cagney <cagney@redhat.com>Andrew Cagney24-100/+165
* gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add comments mentioning extract_returned_value_address. * infcmd.c (print_return_value): Update. Add comments on extract_returned_value_address. * stack.c (return_command): Add comments on extract_returned_value_address. * values.c: Update comment. * m32r-tdep.c: Update comment. * sparc-tdep.c: Update comment. * ia64-tdep.c (ia64_use_struct_convention): Update comment. * xstormy16-tdep.c (xstormy16_gdbarch_init): Update. * sh64-tdep.c (sh64_gdbarch_init): Update. * sh-tdep.c (sh_gdbarch_init): Update. * s390-tdep.c (s390_gdbarch_init): Update. * rs6000-tdep.c (rs6000_gdbarch_init): Update. * m68klinux-tdep.c (m68k_linux_init_abi): Update. * m68k-tdep.c (m68k_gdbarch_init): Update. * m68hc11-tdep.c (m68hc11_gdbarch_init): Update. * m32r-tdep.c (m32r_gdbarch_init): Update. * ia64-tdep.c (ia64_gdbarch_init): Update. * h8300-tdep.c (h8300_gdbarch_init): Update. * frv-tdep.c (frv_gdbarch_init): Update. * arm-tdep.c (arm_gdbarch_init): Update. * alpha-tdep.c (alpha_gdbarch_init): Update. Index: doc/ChangeLog 2004-01-26 Andrew Cagney <cagney@redhat.com> * gdbint.texinfo (Target Architecture Definition): Rename EXTRACT_STRUCT_VALUE_ADDRESS to DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2004-01-262004-01-26 Andrew Cagney <cagney@redhat.com>Andrew Cagney8-54/+86
* dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of SYMBOL_LOCATION_FUNCS (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to "struct symbol_ops". * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change type to "struct symbol_ops". * symtab.h (struct symbol_ops): Rename "struct location_funcs". (struct symbol): Replace ".aux_value.loc.funcs" and ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr". (SYMBOL_OBJFILE): Delete macro. (SYMBOL_LOCATION_FUNCS): Delete macro. (SYMBOL_LOCATION_BATON): Update. * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS intead of SYMBOL_LOCATION_FUNCS. * ax-gdb.c (gen_var_ref): Ditto. * printcmd.c (address_info): Ditto. * findvar.c (read_var_value): Ditto. (symbol_read_needs_frame): Ditto.
2004-01-26Index: ChangeLogAndrew Cagney2-0/+13
2004-01-26 Andrew Cagney <cagney@redhat.com> * dwarf2read.c (read_func_scope): Document frame-base hack.
2004-01-26*** empty log message ***gdbadmin1-1/+1
2004-01-25* infcmd.c (print_return_value): Plug memory leak; deleteMark Kettenis2-19/+23
ui_stream object. Rename argument `structure_return' to `struct_return'.
2004-01-25* infcmd.c (print_return_value): Wrap long lines.Mark Kettenis2-42/+50
(finish_command_continuation, finish_command): Remove unused variable `funcaddr'. Fix some coding-standards problems.
2004-01-25* sparc-tdep.c (sparc_regset_from_core_section): Check whetherMark Kettenis2-4/+9
SECT_SIZE is large enough, not wheter it's exactly the right size. (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and TDEP->fpregset to zero.
2004-01-25Fix Typo.Mark Kettenis1-1/+1
2004-01-25* sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also sipply theMark Kettenis2-4/+15
floating-point registers for traditional NetBSD core files. (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and TDEP->sizeof_fpregset here.
2004-01-25* sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.Mark Kettenis7-50/+254
* sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New function with code split out from sparc32nbsd_sigcontext_frame_cache. (sparc32nbsd_sigcontext_frame_cache): Use sparc32nbsd_sigcontext_saved_regs. (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for OpenBSD. * sparcobsd-tdep.c: New file. * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c. (sparcobsd-tdep.o): New dependency. * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd. * config/sparc/obsd.mt: New file.
2004-01-25Fix typo.Mark Kettenis1-1/+1
2004-01-25* sparc-tdep.c (sparc32_gdbarch_init): Don't requireMark Kettenis2-1/+7
TDEP->fpregset to be initialized to enable core file register sets.
2004-01-25*** empty log message ***gdbadmin1-1/+1
2004-01-24* sparc64-tdep.h (stryct_frame_info, struct trad_frame_saved_reg):Mark Kettenis7-49/+301
Add opaque declarations. (sparc64nbsd_sigcontext_saved_regs): New prototype. * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New function with code split out from sparc64nbsd_sigcontext_frame_cache. (sparc64nbsd_sigcontext_frame_cache): Use sparc64nbsd_sigcontext_saved_regs. (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for OpenBSD. * sparc64obsd-tdep.c: New file. * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c. (sparc64obsd-tdep.o): New dependency. * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and gdb_osabi to GDB_OSABI_OPENBSD_ELF. * config/sparc/obsd64.mt: New file.
2004-01-242004-01-24 Michael Chastain <mec.gnu@mindspring.com>Michael Chastain4-185/+164
* lib/compiler.c: Add hp_cc_compiler and hp_aCC_compiler. * lib/compiler.cc: Likewise. * lib/gdb.exp (get_compiler_info): Always call gdb_compile to get the right preprocessor. Eval the output directly. Remove special tests for hp_cc_compiler and hp_aCC_compiler. Remove hp_f77_compiler and hp_f90_compiler completely. (gdb_preprocess): Delete. (get_compiler): Delete.
2004-01-24* sparc-tdep.c (sparc_fetch_instruction): Return zero if we can'tMark Kettenis2-1/+6
read the instruction at PC.
2004-01-24* sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on theMark Kettenis2-1/+21
value of GDB_OSABI_DEFAULT. (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE instead of GDB_OSABI_NETBSD_AOUT.
2004-01-24* gdb.base/charset.c, gdb.base/dump.c, gdb.base/huge.c: IncludeMark Kettenis4-0/+10
<string.h>.