aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2008-07-30 * cli/cli-decode.c (lookup_cmd_1): Use memcpy.Tom Tromey2-10/+7
(lookup_cmd_composition): Likewise.
2008-07-30 * cli/cli-cmds.c (edit_command): Remove unused variables. DeleteTom Tromey2-17/+21
dead code. Fix indentation.
2008-07-30*** empty log message ***gdbadmin1-1/+1
2008-07-29 * gdbint.texinfo: General round of cleanup and minorStan Shebs2-322/+175
clarifications. (Breakpoint Handling): Remove mention of BREAKPOINT macro. (Longjmp Support): Update description to reflect how it is done for targets without using native header. (Symbol Handling): Add a little more general explanation. (COFF, ELF): Mention stabs encapsulation. (DWARF 3): New section. (Adding a New Host): Scrub out some obsolete bits. (Generic Host Support Files): Mention ser-pipe.c, ser-mingw.c. (Host Conditionals): Remove descriptions of NO_STD_REGS, HAVE_MMAP, HAVE_TERMIO, INT_MAX etc, LONGEST, HAVE_LONG_DOUBLE, PRINTF_HAS_LONG_DOUBLE, SCANF_HAS_LONG_DOUBLE, L_SET, SEEK_CUR, SEEK_SET, STOP_SIGNAL, USG. (Raw and Virtual Register Representations): Ditto for DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE, DEPRECATED_REGISTER_VIRTUAL_TYPE, REGISTER_CONVERT_TO_TYPE. (Target Conditionals): Ditto for DEPRECATED_FP_REGNUM, DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN, DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_INIT_SAVED_REGS, DEPRECATED_FRAME_SAVED_PC, DEPRECATED_FUNCTION_START_OFFSET, DEPRECATED_REGISTER_VIRTUAL_SIZE, DEPRECATED_REGISTER_VIRTUAL_TYPE, DEPRECATED_USE_STRUCT_CONVENTION. Describe gdbarch_deprecated_fp_regnum. Update description of gdbarch_print_insn. (Adding a New Target): Scrub out obsolete bits. (Obsolete Conditionals): Remove entire section.
2008-07-29 * main.c (captured_main): Remove long-unused #if 0 blocks.Stan Shebs2-44/+4
2008-07-29*** empty log message ***gdbadmin1-1/+1
2008-07-28 * Makefile.in (just-check): Remove. Move body to...Tom Tromey2-3/+6
(check): ... here.
2008-07-28 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.Doug Evans2-3/+5
(linux_write_memory): Remove declaration of errno.
2008-07-28 * annotate.h (deprecated_annotate_starting_hook): Remove.Tom Tromey8-58/+41
(deprecated_annotate_stopped_hook): Remove. (deprecated_annotate_exited_hook): Remove. * Makefile.in (annotate.o): Depend on observer_h. * top.c (deprecated_delete_breakpoint_hook): Remove. (deprecated_create_breakpoint_hook): Likewise. (deprecated_modify_breakpoint_hook): Likewise. * interps.c (clear_interpreter_hooks): Update for removed hooks. * breakpoint.c (mention): Don't call removed hook. (delete_breakpoint): Likewise. (disable_breakpoint): Likewise. (do_enable_breakpoint): Likewise. * annotate.c: Include observer.h. (breakpoint_changed): Change type of argument. (_initialize_annotate): Register observers. (deprecated_annotate_starting_hook): Remove. (deprecated_annotate_stopped_hook): Remove. (deprecated_annotate_exited_hook): Remove. (annotate_starting): Update for hook removal. (annotate_stopped): Likewise. (annotate_exited): Likewise. * defs.h (deprecated_delete_breakpoint_hook): Remove. (deprecated_create_breakpoint_hook): Likewise. (deprecated_modify_breakpoint_hook): Likewise.
2008-07-28 * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK.Tom Tromey2-7/+4
2008-07-28*** empty log message ***gdbadmin1-1/+1
2008-07-27 * configure.ac: Check for the GNU/Linux ptrace signature.Daniel Jacobowitz3-6/+108
* configure: Regenerated.
2008-07-27 * linux-nat.c (resume_callback): Add more debugging output.Daniel Jacobowitz5-116/+165
(linux_nat_has_pending_sigint): New function, based on linux_nat_has_pending. (set_ignore_sigint, maybe_clear_ignore_sigint): New functions. (stop_wait_callback): Remove flush_mask handling. Honor ignore_sigint. Call maybe_clear_ignore_sigint. Pass NULL to recursive calls. (linux_nat_has_pending, flush_callback): Remove. (linux_nat_filter_event): Check for ignore_sigint. (linux_nat_wait): Remove flush_mask support and call to flush_callback. Use set_ignore_sigint and maybe_clear_ignore_sigint. * linux-nat.h (struct lwp_info): Add ignore_sigint field. * gdb.threads/manythreads.exp: Use remote_expect instead of after. Add a test for duplicated SIGINTs.
2008-07-27 * linux-nat.c (count_events_callback, select_event_lwp_callback): OnlyDaniel Jacobowitz4-10/+32
report events from resumed threads. * gdb.threads/schedlock.exp (get_args): Update to work for any value of NUM. (Top level): Report the number of threads that did not resume.
2008-07-27 * gdb.dwarf2/dw2-compressed.S: Also define __start.Daniel Jacobowitz2-0/+6
2008-07-27 * lib/mi-support.exp (default_mi_gdb_start): Remove check forDaniel Jacobowitz2-5/+5
non-MI prompt.
2008-07-27 * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function.Daniel Jacobowitz4-41/+88
(mips_linux_init_abi): Set tdep->syscall_next_pc. * mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to mips-tdep.h. (mips32_next_pc): Handle the syscall instruction. * mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New, from mips-tdep.c. Add syscall_next_pc to gdbarch_tdep.
2008-07-27gdb:Tom Tromey5-0/+28
PR gdb/1158: * valops.c (value_struct_elt): Treat function-valued field as a static method. gdb/testsuite: * gdb.base/callfuncs.c (struct struct_with_fnptr): New struct. (function_struct, function_struct_ptr): New globals. * gdb.base/callfuncs.exp (do_function_calls): Test calling via a function pointer in a struct.
2008-07-27gdb:Tom Tromey4-9/+35
PR gdb/1136: * macroexp.c (get_punctuator) <punctuators>: Rearrange to put longer tokens first. gdb/testsuite: * gdb.base/macscp.exp: Add test for macro lexing bug.
2008-07-27*** empty log message ***gdbadmin1-1/+1
2008-07-26 Kill cmd_async_ok.Vladimir Prus6-32/+10
* cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok) (get_cmd_async_ok): Remove. * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove. * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok. * infcmd.c (_initialize_infcmd): Likewise. * thread.c (_initialize_thread): Likewise.
2008-07-26 * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passingJoseph Myers2-21/+73
128-bit long doubles in even-odd pairs of FPRs. Do not right-align float arguments for big-endian. (mips_n32n64_return_value): Apply return value convention for structs containing one or two floating-point values to soft-float as well as hard-float. Handle 128-bit long doubles in such structs. (mips_o32_push_dummy_call): Only skip one integer register for a float argument passed in an FPR.
2008-07-26*** empty log message ***gdbadmin1-1/+1
2008-07-25gdb:Tom Tromey15-1023/+150
* tui/tui-hooks.c: Include observer.h. (tui_event_default, tui_old_event_hooks, tui_event_hooks): Remove. (tui_bp_created_observer, tui_bp_deleted_observer, tui_bp_modified_observer): New globals. (tui_install_hooks): Use observers, not events. (tui_remove_hooks): Likewise. * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h. (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New globals. (breakpoint_notify): Check mi_can_breakpoint_notify. (breakpoint_hooks): Remove. (mi_cmd_break_insert): Attach observers. Don't use events. * tracepoint.c: Include observer.h, not gdb-events.h. (tracepoint_operation, trace_pass_command): Notify observer. * interps.c: Don't include gdb-events.h. (clear_interpreter_hooks): Don't call clear_gdb_event_hooks. * gdbarch.c: Rebuild. * gdbarch.sh: Emit include for observer.h, not gdb-events.h. (deprecated_current_gdbarch_select_hack): Notify observer. * breakpoint.h: Don't include gdb-events.h. * breakpoint.c: Don't include gdb-events.h. (condition_command): Notify observer. (commands_command): Likewise. (commands_from_control_command): Likewise. (mention, delete_breakpoint, set_ignore_count): Likewise. (disable_breakpoint, do_enable_breakpoint): Likewise. * Makefile.in (gdb_events_h): Remove. (breakpoint_h): Update. (COMMON_OBS): Remove gdb-events.o. (gdb-events.o): Remove. (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o, gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update. * gdb-events.c: Remove. * gdb-events.h: Remove. * gdb-events.sh: Remove. gdb/doc: * observer.texi (GDB Observers): Document new observers: breakpoint_created, breakpoint_deleted, breakpoint_modified, tracepoint_created, tracepoint_deleted, tracepoint_modified, architecture_changed. gdb/gdbtk: * generic/gdbtk-hooks.c: Include observer.h, not gdb-events.h. (gdbtk_add_hooks): Use observers, not events. (gdbtk_architecture_changed): Add argument, for observer. * generic/gdbtk-bp.c: Include observer.h. (gdb_set_bp): Notify observer. (gdb_set_bp_addr): Likewise.
2008-07-25*** empty log message ***gdbadmin1-1/+1
2008-07-24 * remote.c (remote_threads_extra_info): Don't query the remotePedro Alves2-0/+11
server about info on the internally added main thread.
2008-07-24 * nto-procfs.c (procfs_attach): Populate initial thread list.Aleksandar Ristovski2-1/+7
(procfs_wait): Return new pid, built from the inferior status.
2008-07-24*** empty log message ***gdbadmin1-1/+1
2008-07-23 * configure.ac (CONFIG_INITS): Delete long obsoleted variable.Thiago Jung Bauermann3-2/+5
* configure: Regenerate.
2008-07-23 * nto-procfs.c (procfs_xfer_memory): Changed signature.Aleksandar Ristovski4-15/+26
(procfs_resume): Workaround for dereferencing type-punned pointer warning. * nto-tdep.c (nto_parse_redirection): Change signature to be const correct. * nto-tdep.h (nto_parse_redirection): Likewise.
2008-07-23*** empty log message ***gdbadmin1-1/+1
2008-07-22 Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE.Stan Shebs9-23/+28
* gdbarch.sh: Adjust comment to refer to in_solib_dynsym_resolve_code(). * gdbarch.h, gdbarch.c: Update. * solib-osf.c: Ditto. * infrun.c: Ditto. (handle_inferior_event): Use in_solib_dynsym_resolve_code unconditionally. * config/mips/nm-irix5.h: Remove undef of IN_SOLIB_DYNSYM_RESOLVE_CODE. * gdbint.texinfo: Refer to target_so_ops.in_dynsym_resolve_code instead of IN_SOLIB_DYNSYM_RESOLVE_CODE.
2008-07-22*** empty log message ***gdbadmin1-1/+1
2008-07-21gdbTom Tromey8-8/+33
* symfile.c (reread_symbols): Don't pass argument to observer. * exec.c (exec_file_attach): Don't pass argument to observer. * ada-lang.c (ada_executable_changed_observer): Remove argument. * symtab.c (symtab_observer_executable_changed): Remove argument. * observer.sh: Handle functions with no arguments. gdb/doc * observer.texi (GDB Observers): Remove obsolete comment. <executable_changed>: Remove argument.
2008-07-212008-07-20 Sergei Poselenov <sposelenov@emcraft.com>Chris Demetriou2-1/+8
Chris Demetriou <cgd@google.com> * elfread.c (elf_symfile_segments): Fix the check that each loadable section fits within an ELF segment to handle ELF segments that hit the end of the address space.
2008-07-21*** empty log message ***gdbadmin1-1/+1
2008-07-202008-07-20 Chris Demetriou <cgd@google.com>Chris Demetriou2-0/+5
* MAINTAINERS (Write After Approval): Add self.
2008-07-20*** empty log message ***gdbadmin1-1/+1
2008-07-19*** empty log message ***gdbadmin1-1/+1
2008-07-18gdbTom Tromey15-77/+389
PR gdb/855: * NEWS: Add entry for macro commands. * Makefile.in (macrocmd.o): Add gdb_string.h. * macroscope.h (user_macro_scope): Declare. (default_macro_scope): Update documentation. (macro_user_macros): Declare. * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup. Use user_macro_scope. (null_macro_lookup): Remove. * macrotab.h (macro_callback_fn): Declare. (macro_for_each): Likewise. (macro_allow_redefinitions): Likewise. * macrotab.c (foreach_macro): New function (macro_for_each): Likewise. (struct macro_table) <redef_ok>: New field. (macro_allow_redefinitions): New function. (new_macro_table): Update. (macro_define_function): Likewise. (macro_define_object): Likewise. * macroscope.c (user_macro_scope): New function. (default_macro_scope): Use it. (macro_user_macros): New global. (standard_macro_lookup): Look in macro_user_macros. (_initialize_macroscope): New function. * macroexp.h (macro_is_whitespace, macro_is_digit, macro_is_identifier_nondigit): Declare. * macroexp.c (macro_is_whitespace): Rename. No longer static. (macro_is_digit): Likewise. (macro_is_identifier_nondigit): Likewise. (get_identifier): Update. (get_pp_number): Likewise. (get_token): Likewise. * macrocmd.c (skip_ws): New function. (extract_identifier): Likewise. (free_macro_definition_ptr): Likewise. (user_macros): Remove. (macro_define_command): Implement. (_initialize_macrocmd): Update. (macro_undef_command): Implement. (print_one_macro): New function. (macro_list_command): Implement. gdb/doc * gdb.texinfo (Macros): Update. Use @code rather than @command. gdb/testsuite * gdb.base/macscp.exp: Add macro tests.
2008-07-18 * configure.ac: Put old value of $LIBS after -lbfd -liberty $intlJoseph Myers3-2/+8
in BFD ELF check. * configure: Regenerate.
2008-07-18*** empty log message ***gdbadmin1-1/+1
2008-07-17Fix for Linux/VDSO failure.Paul Pluzhnikov2-2/+6
2008-07-17Fix for failing gdb.base/auxv.exp on LinuxPaul Pluzhnikov2-0/+6
2008-07-17Fix for gdb.base/corefile.exp failure on LinuxPaul Pluzhnikov2-1/+6
2008-07-17*** empty log message ***gdbadmin1-1/+1
2008-07-16*** empty log message ***gdbadmin1-1/+1
2008-07-15Revert frame_unwind_caller_pc / frame_unwind_caller_id.Daniel Jacobowitz10-50/+20
2008-07-15* valops.c (value_cast_pointers): Follow typedefs when checkingAndreas Schwab2-397/+402
result of coercion.
2008-07-15Fix for 'FAIL: gdb.cp/class2.exp: p acp->c2' on spu-elfPaul Pluzhnikov2-2/+6