summaryrefslogtreecommitdiff
path: root/gdb
Commit message (Collapse)AuthorAgeFilesLines
* gdb:Tom Tromey2008-07-275-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.
* gdb:Tom Tromey2008-07-274-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.
* *** empty log message ***gdbadmin2008-07-271-1/+1
|
* Kill cmd_async_ok.Vladimir Prus2008-07-266-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.
* * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passingJoseph Myers2008-07-262-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.
* *** empty log message ***gdbadmin2008-07-261-1/+1
|
* gdb:Tom Tromey2008-07-2518-1040/+174
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* *** empty log message ***gdbadmin2008-07-251-1/+1
|
* * remote.c (remote_threads_extra_info): Don't query the remotePedro Alves2008-07-242-0/+11
| | | | server about info on the internally added main thread.
* * nto-procfs.c (procfs_attach): Populate initial thread list.Aleksandar Ristovski2008-07-242-1/+7
| | | | (procfs_wait): Return new pid, built from the inferior status.
* *** empty log message ***gdbadmin2008-07-241-1/+1
|
* * configure.ac (CONFIG_INITS): Delete long obsoleted variable.Thiago Jung Bauermann2008-07-233-2/+5
| | | | * configure: Regenerate.
* * nto-procfs.c (procfs_xfer_memory): Changed signature.Aleksandar Ristovski2008-07-234-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.
* *** empty log message ***gdbadmin2008-07-231-1/+1
|
* Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE.Stan Shebs2008-07-229-24/+29
| | | | | | | | | | | | | | | * 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.
* *** empty log message ***gdbadmin2008-07-221-1/+1
|
* gdbTom Tromey2008-07-218-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-20 Sergei Poselenov <sposelenov@emcraft.com>Chris Demetriou2008-07-212-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.
* *** empty log message ***gdbadmin2008-07-211-1/+1
|
* 2008-07-20 Chris Demetriou <cgd@google.com>Chris Demetriou2008-07-202-0/+5
| | | | * MAINTAINERS (Write After Approval): Add self.
* *** empty log message ***gdbadmin2008-07-201-1/+1
|
* *** empty log message ***gdbadmin2008-07-191-1/+1
|
* gdbTom Tromey2008-07-1815-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.
* * configure.ac: Put old value of $LIBS after -lbfd -liberty $intlJoseph Myers2008-07-183-2/+8
| | | | | in BFD ELF check. * configure: Regenerate.
* *** empty log message ***gdbadmin2008-07-181-1/+1
|
* Fix for Linux/VDSO failure.Paul Pluzhnikov2008-07-172-2/+6
|
* Fix for failing gdb.base/auxv.exp on LinuxPaul Pluzhnikov2008-07-172-0/+6
|
* Fix for gdb.base/corefile.exp failure on LinuxPaul Pluzhnikov2008-07-172-1/+6
|
* *** empty log message ***gdbadmin2008-07-171-1/+1
|
* *** empty log message ***gdbadmin2008-07-161-1/+1
|
* Revert frame_unwind_caller_pc / frame_unwind_caller_id.Daniel Jacobowitz2008-07-1510-50/+20
|
* * valops.c (value_cast_pointers): Follow typedefs when checkingAndreas Schwab2008-07-152-397/+402
| | | | result of coercion.
* Fix for 'FAIL: gdb.cp/class2.exp: p acp->c2' on spu-elfPaul Pluzhnikov2008-07-152-2/+6
|
* * block.c (block_function): Renamed to ...Daniel Jacobowitz2008-07-156-10/+20
| | | | | | (block_linkage_function): ... this. All callers changed. * block.h (block_function): Renamed to ... (block_linkage_function): ... this.
* * frame.c (frame_unwind_id): Renamed to ...Daniel Jacobowitz2008-07-1510-20/+50
| | | | | | | | | | | | | | (frame_unwind_caller_id): ... this. All callers updated. (frame_pc_unwind): Renamed to ... (frame_unwind_caller_pc): ... this. All callers updated. * frame.h: Document frame_unwind_caller_WHAT functions. (frame_unwind_id): Renamed to ... (frame_unwind_caller_id): ... this. (frame_pc_unwind): Renamed to ... (frame_unwind_caller_pc): ... this. * hppa-tdep.c (hppa_find_unwind_entry_in_block): Correct comment. * stack.c (parse_frame_specification_1): Do not rely on frame_unwind_id.
* * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned.Daniel Jacobowitz2008-07-152-2/+6
|
* * frame.c (frame_sp_unwind): Delete.Daniel Jacobowitz2008-07-153-12/+12
| | | | | (get_frame_sp): Do not use it. * frame.h (frame_sp_unwind): Delete prototype.
* * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc.Daniel Jacobowitz2008-07-152-1/+5
|
* * dwarf2-frame.c (dwarf2_frame_cache): Update comment.Daniel Jacobowitz2008-07-155-42/+56
| | | | | | | | | * frame.c (frame_unwind_address_in_block): Delete. (get_frame_address_in_block): Do not use it. Check the type of the next frame first. (frame_cleanup_after_sniffer): Update comment. * frame.h (frame_unwind_address_in_block): Delete prototype. * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment.
* * frame.c (frame_func_unwind): Delete.Daniel Jacobowitz2008-07-155-24/+24
| | | | | | | (get_frame_func): Do not use it. * frame.h (frame_func_unwind): Delete prototype. * hppa-tdep.c (hppa_frame_cache): Update comment. * rs6000-tdep.c (rs6000_frame_cache): Update comment.
* * remote-sim.c (init_gdbsim_ops): RemoveStan Shebs2008-07-152-4/+5
| | | | TARGET_REDEFINE_DEFAULT_OPS.
* * findvar.c (read_var_value): Remove unused variable.Daniel Jacobowitz2008-07-152-2/+4
|
* * infrun.c (handle_inferior_event): Tag threads as stoppedLuis Machado2008-07-152-23/+28
| | | | before inserting breakpoints.
* * MAINTAINERS: Added myself to section Write After Approval.Hui Zhu2008-07-152-0/+5
|
* *** empty log message ***gdbadmin2008-07-151-1/+1
|
* * generic/gdbtk-stack.c (gdb_block_args): Remove deprecated valuesKeith Seitz2008-07-149-56/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | LOC_LOCAL_ARG, LOC_COMPUTED_ARG, LOC_REGPARM, LOC_BASEARG_ARG, and LOC_BASEARG. (gdb_get_blocks): Likewise. (gdb_get_vars_command): Likewise. Fix type-punned pointer error introduced on 03-07. * generic/gdbtk-cmds.c (gdbtk_load_asm): Use paddress instead of deprecated_print_address_numeric. (gdb_stop): Update use of target_stop. * generic/gdbtk.h (gdbtk_get_ptid): Declare new function. * generic/gdbtk-hooks.c (gdbtk_wait): Save inferior's ptid. (gdbtk_get_ptid): Define new function. * generic/gdbtk-varobj.c (variable_update): Update for recent varobj_update API change. * generic/gdbtk-wrapper.h (GDB_varobj_update): Likewise. * generic/gdbtk-wrapper.c (GDB_varobj_update): Likewise. (wrap_varobj_update): Likewise. * library/targetselection.itb (init_target_db): Initialize preferences here instead of ... (_init): ... here. (_init_prefs): Define gdb/load/default-portname, too.
* Fix for PR gdb/2477Paul Pluzhnikov2008-07-146-3/+37
|
* * i386-dicos-tdep.c (i386_dicos_frame_align): Delete.Pedro Alves2008-07-142-8/+22
| | | | | | (i386_dicos_push_dummy_code): New. (i386_dicos_init_abi): Don't register i386_dicos_frame_align. Register i386_dicos_push_dummy_code.
* * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter.Markus Deuling2008-07-145-106/+170
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (mips_n32n64_push_dummy_call, mips_o64_return_value) (mips_eabi_push_dummy_call): Update call to fp_register_arg_p. (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch. (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command) (mips_n32n64_fp_arg_chunk_p): Update caller. (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter. (mips_n32n64_push_dummy_call): Update caller. (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace current_gdbarch. (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call) (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller. (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace current_gdbarch. (mips_eabi_push_dummy_call, mips_o32_push_dummy_call) (mips_o64_push_dummy_call): Update caller. (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch. (fp_register_arg_p, mips_dump_tdep): Update caller. (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch. (mips16_scan_prologue, mips32_scan_prologue): Update caller. (reset_saved_regs): Make static. Add gdbarch as parameter. Replace current_gdbarch. (mips32_scan_prologue): Update caller. (heuristic_proc_start): Add gdbarch as parameter. Replace current_gdbarch. (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller. * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers) (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at the current architecture. Update call to getregs_supplies. (getregs_supplies): Add gdbarch as parameter and replace current_gdbarch. * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and NBSD_MIPS_JB_ELEMENT_SIZE. (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and replace current_gdbarch. * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace current_gdbarch. (mips_fetch_registers, mips_store_registers): Update call to mips_map_regno. (mips_load): Use get_regcache_arch to get at the current_architecture and replace current_gdbarch.
* *** empty log message ***gdbadmin2008-07-141-1/+1
|