aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-03-312009-03-30 Stan Shebs <stan@codesourcery.com>Stan Shebs15-932/+903
Make tracepoints into a type of breakpoint. * breakpoint.h (enum bptype): Add bp_tracepoint. (struct breakpoint): Add fields step_count, pass_count, actions. (get_tracepoint, get_tracepoint_by_number): Declare. (all_tracepoints): Declare. * breakpoint.c: Include tracepoint.h, readline.h. (ALL_TRACEPOINTS): Move here from tracepoint.c. (tracepoint_count): Ditto. (should_be_inserted): GDB does not insert tracepoints itself. (print_it_typical): Add tracepoint case. (bpstat_what): Ditto. (print_one_breakpoint_location): Ditto, and add printing for pass count, step count, and action list. (user_settable_breakpoint): Add tracepoint case. (allocate_bp_location): Ditto. (set_breakpoint_location_function): Ditto. (disable_breakpoints_in_shlibs): Ditto. (mention): Ditto. (break_command_really): Add argument traceflag, use to choose basic breakpoint type. (break_command_1): Pass extra argument. (set_breakpoint, handle_gnu_v3_exceptions): Ditto. (breakpoint_re_set_one): Add tracepoint case. (disable_command, enable_command): Ditto. (set_tracepoint_count): Move here from tracepoint.c. (trace_command): Move here from tracepoint.c and use break_command_really. (tracepoints_info): Move here from tracepoint.c and call breakpoints_info. (enable_trace_command): Move here from tracepoint.c and call enable_command. (disable_trace_command): Move here from tracepoint.c and call disable_command. (delete_trace_command): Move here from tracepoint.c and call delete_breakpoint. (trace_pass_command): Move here from tracepoint.c. (get_tracepoint_by_number): Ditto. (tracepoint_save_command): Ditto. (get_tracepoint): New function. (all_tracepoints): New function. (_initialize_breakpoint): Move tracepoint init from tracepoint.c, deprecate "enable trace" and "disable trace" commands. * tracepoint.h (struct tracepoint): Remove. (tracepoint_chain): Remove decl. (deprecated_create_tracepoint_hook): Remove decl. (deprecated_delete_tracepoint_hook): Remove decl. (deprecated_modify_tracepoint_hook): Remove decl. (ALL_TRACEPOINTS, ALL_TRACEPOINTS_SAFE): Remove. (free_actions): Update signature. (validate_actionline): Update signature. (end_actions_pseudocommand): Declare. (while_stepping_pseudocommand): Declare. * tracepoint.c: Include breakpoint.h. (tracepoint_chain, tracepoint_count): Remove. (free_actions, make_cleanup_free_actions): Update signature. (trace_command, set_raw_tracepoint): Remove. (trace_mention): Remove. (tracepoints_info): Remove. (tracepoint_operation, map_args_over_tracepoints): Remove. (get_tracepoint_by_number): Remove. (enable_trace_command, disable_trace_command): Remove. (delete_trace_command, trace_pass_command): Remove. (trace_actions_command, read_actions): Update signature. (validate_actionline): Update signature, use bp loc. (encode_actions): Ditto. (download_tracepoint): New function, body of trace_start_command. (trace_start_command): Call it, use all_tracepoints. (tracepoint_save_command): Remove. (tracepoint_dump_command): Use get_tracepoint. (end_actions_pseudocommand): Make globally visible. (while_stepping_pseudocommand): Ditto. (_initialize_tracepoint): Move command definitions to breakpoint.c. doc/ * gdb.texinfo (Tracepoints): Describe tracepoints as a special case of breakpoints. (Enable and Disable Tracepoints): Mention deprecation. (Listing Tracepoints): Update description and example. testsuite/ * gdb.trace/actions.exp: Update to match new info trace format. * gdb.trace/deltrace.exp: Ditto. * gdb.trace/infotrace.exp: Ditto. * gdb.trace/passcount.exp: Ditto. * gdb.trace/save-trace.exp: Ditto. * gdb.trace/while-stepping.exp: Ditto. * gdb.trace/tracecmd.exp: Ditto, plus don't allow pending option. gdbtk/ * generic/gdbtk-bp.c (gdb_actions_command): Update to handle tracepoints as breakpoints. (gdb_get_tracepoint_info): Ditto, plus use get_tracepoint and breakpoint locations. (tracepoint_exists): Ditto, plus use all_tracepoints.
2009-03-31 * doc/internals.texi: Fix trivial syntax errors.Dave Korn2-3/+7
2009-03-31* elflink.c (elf_link_input_bfd): Don't try to resolve complexDJ Delorie2-1/+7
relocs when doing a relocatable link.
2009-03-31daily updateAlan Modra1-1/+1
2009-03-31*** empty log message ***gdbadmin1-1/+1
2009-03-30 * ffsll.c (ffsll): Correct implementation.Ian Lance Taylor2-3/+12
2009-03-30binutils/Richard Sandiford2-0/+6
* MAINTAINERS: Add self.
2009-03-30gdb/Thiago Jung Bauermann12-21/+801
Expose frames to Python. * Makefile.in (SUBDIR_PYTHON_OBS): Add python-frame.o. (SUBDIR_PYTHON_SRCS): Add python-frame.c. (python-frame.o): New target. * python/python-frame.c: New file. * python/python-internal.h (gdbpy_frames, gdbpy_newest_frame, gdbpy_frame_stop_reason_string, gdbpy_selected_frame, gdbpy_initialize_frames): New prototypes. * python/python.c (_initialize_python): Call gdbpy_initialize_frames. (GdbMethods): Add `selected_frame' and `frame_stop_reason_string' entries. * stack.c (find_frame_funname): New function, factored out of print_frame. (print_frame): Call find_frame_funname. * stack.h (find_frame_funname): Add prototype. gdb/doc/ * gdb.texinfo (Frames in Python): New node. (Python API): Update. gdb/testsuite/ * gdb.python/python-frame.c: New file. * gdb.python/python-frame.exp: New file.
2009-03-30gas/testsuite:Joseph Myers5-1/+72
* gas/arm/mapsecs.d, gas/arm/mapsecs.s: New. opcodes: * arm-dis.c (print_insn): Also check section matches in backwards search for mapping symbol.
2009-03-30merge from gccDJ Delorie23-1606/+1976
2009-03-30merge from gccDJ Delorie23-1971/+1611
2009-03-30*** empty log message ***gdbadmin1-1/+1
2009-03-30daily updateAlan Modra1-1/+1
2009-03-29 Remove unused value_object attribute `owned_by_gdb'.Thiago Jung Bauermann2-5/+10
* python/python-value.c (value_object): Remove owned_by_gdb attribute. (valpy_dealloc): Remove reference to self->owned_by_gdb. (valpy_new): Likewise. (value_to_value_object): Likewise.
2009-03-29gdb/Thiago Jung Bauermann6-7/+65
Change gdb.Value.address from a method to an attribute. * python/python-value.c (value_object): Add `address' element. (valpy_dealloc): Decrement reference to self->address if set. (valpy_new): Initialize val_obj->address. (valpy_address): Rename to ... (valpy_get_address): ... this. Change signature from method to attribute. Update self->address if not set. (value_to_value_object): Initialize val_obj->address. (value_object_getset): Add `address' element. (value_object_methods): Remove `address' element. gdb/testsuite/ * gdb.python/python-value.exp: Add tests for the address attribute. gdb/doc/ * gdb.texinfo (Values From Inferior): Change gdb.Value.address from a method to an attribute.
2009-03-29* gdb.arch/powerpc-prologue.exp: Update for disassemble-next-line.Andreas Schwab2-7/+11
2009-03-29* observer.sh: Set LANG/LC_ALL to C, not c.Andreas Schwab2-19/+23
2009-03-29merge from gccDJ Delorie23-1611/+1971
2009-03-29*** empty log message ***gdbadmin1-1/+1
2009-03-29daily updateAlan Modra1-1/+1
2009-03-28 * coff-arm.c (coff_arm_merge_private_bfd_data): Use "error:", notMark Mitchell5-29/+39
"ERROR:", in error messages. * cpu-arm.c (bfd_arm_merge_machines): Likewise. * elf-attrs.c (_bfd_elf_merge_object_attributes): Likewise. * elf32-arm.c (tag_cpu_arch_combine): Likewise. (elf32_arm_merge_eabi_attributes): Likewise. (elf32_arm_merge_private_bfd_data): Likewise.
2009-03-28 * ffsll.c: New file.Ian Lance Taylor10-5/+72
* configure.ac: Call AC_REPLACE_FUNCS on ffsll. * gold.h (ffsll): Declare if HAVE_FFSLL is not defined. * ftruncate.c (ftruncate): Declare before definition. * mremap.c (mremap): Likewise. * pread.c (pread): Likewise. * configure, Makefile.in, config.in: Rebuild.
2009-03-28 * mn10300-tdep.c (mn10300_gdbarch_init): For mn10300, by default,Kevin Buettner2-0/+8
`char' is unsigned.
2009-03-28 * remote.c (remote_stop_ns): If multi-process extensions are off,Pedro Alves2-2/+8
and GDB is requesting the whole process to stop, sent "vCont;t", not "vCont;t:-1"
2009-03-28 * inf-loop.c (inferior_event_handler): Avoid calling is_running onPedro Alves2-1/+9
null inferior_ptid.
2009-03-28daily updateAlan Modra1-1/+1
2009-03-28*** empty log message ***gdbadmin1-1/+1
2009-03-27 * mremap.c: New file.Ian Lance Taylor7-3/+78
* configure.ac: Call AC_REPLACE_FUNCS on mremap. * gold.h (MREMAP_MAYMOVE): Define if HAVE_MREMAP is not defined. (mremap): Declare if HAVE_MREMAP is not defined. * configure, Makefile.in, config.in: Rebuild.
2009-03-27merge from gccDJ Delorie7-8/+109
2009-03-27 * powerpc.cc (Target_powerpc::check_non_pic): Assert that output isCary Coutant4-1/+11
position independent. * sparc.cc (Target_sparc::check_non_pic): Likewise. * x86_64.cc (Target_x86_64::check_non_pic): Likewise.
2009-03-27 * dwarf.c (display_debug_ranges): Add the base address to theNick Clifton2-3/+10
displayed values for 'Begin' and 'End'.
2009-03-27Add one more tweak for readline/examples.Eli Zaretskii1-0/+1
2009-03-27 * config/djgpp/fnchange.lst: Update to fix ARI-reported problems.Eli Zaretskii2-2/+166
2009-03-27 * djunpack.bat: Use ".." quoting in Sed command, for the sake ofEli Zaretskii2-1/+6
Windows builds of Sed.
2009-03-27 * section.c (bfd_get_section_contents): Detect and handle the caseNick Clifton2-0/+16
where a section has the SEC_IN_MEMORY flag set but no actual contents allocated.
2009-03-27Remove merge markersNick Clifton1-19/+10
2009-03-27 * thread.c (do_restore_current_thread_cleanup): Redo test forDoug Evans5-4/+173
whether to restore old->inferior_ptid. * gdb.mi/mi-nonstop-exit.exp: New file. * gdb.mi/non-stop-exit.c: New file.
2009-03-272009-03-26 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-2/+5
* i386-dis.c (get_valid_dis386): Abort on unhandled table.
2009-03-27*** empty log message ***gdbadmin1-1/+1
2009-03-27daily updateAlan Modra1-1/+1
2009-03-26gdbTom Tromey8-11/+30
* breakpoint.c (resolve_sal_pc): Preserve original line number when skipping prologue. gdb/testsuite Update for change to prologue skipping: * gdb.mi/mi2-simplerun.exp: Update. * gdb.mi/mi2-break.exp: Update. * gdb.mi/mi-simplerun.exp: Update. * gdb.mi/mi-break.exp: Update. * gdb.base/ending-run.exp: Update.
2009-03-26 * thread.c (inferior_thread) Remove "extern" in definition.Doug Evans2-1/+5
2009-03-26gdb/Thiago Jung Bauermann6-6/+57
Add gdb.Value.is_optimized_out attribute. * python/python-value.c (valpy_get_is_optimized_out): New function. (value_object_getset): New variable. (value_object_type): Initialize tp_getset element. gdb/doc/ * gdb.texinfo (Values From Inferior): Document is_optimized_out attribute. gdb/testsuite/ * gdb.python/python-value.exp (test_value_in_inferior): Test gdb.Value.is_optimized_out attribute.
2009-03-26gdb/Jan Kratochvil6-119/+374
Recognize missing DW_AT_location as <value optimized out>. * dwarf2read.c (new_symbol <DW_TAG_variable> <!DW_AT_location> <!DW_AT_external>): Call add_symbol_to_list. gdb/testsuite/ * gdb.dwarf2/dw2-noloc-main.c: New file. * gdb.dwarf2/dw2-noloc.S: New symbols matrix. (.text): Remove. (.data): New. (DW_AT_stmt_list, .debug_line, DW_AT_frame_base): Remove. (DW_AT_low_pc, DW_AT_high_pc): Reference `dw2-noloc-main.c'. (DW_TAG_subprogram func_cu1, noloc): Remove. (main): New. * gdb.dwarf2/dw2-noloc.exp: Use prepare_for_testing, compile also `dw2-noloc-main.c'. Test the new DIEs from `dw2-noloc.S'. (file_symbols): New procedure.
2009-03-262009-03-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>Ramana Radhakrishnan2-36/+40
* gas/arm/wince_inst.d: Convert to unified syntax.
2009-03-26 PR 6494Alan Modra2-6/+11
* elf.c (copy_elf_program_header): Do not check that PT_GNU_RELRO p_filesz and p_memsz are equal. Use p_memsz as the segment size. (assign_file_positions_for_non_load_sections): Zap PT_GNU_RELRO if we don't find matching PT_LOAD when copying.
2009-03-26 PR 10005Alan Modra2-2/+7
* config/tc-i386.c (reloc): Don't abort on lack of required reloc type.
2009-03-26 * gdbtypes.h (CHECK_TYPEDEF): Don't yield a value.Tom Tromey3-3/+11
* stack.c (print_this_frame_argument_p): Use check_typedef.
2009-03-26 * configure: Rebuild.Tom Tromey3-7/+51
* acinclude.m4 (AM_ICONV): Set am_cv_use_build_libiconv. Rearrange flags setting. Add comments.
2009-03-26 * config/i386/nm-i386.h: Remove code withinPierre Muller8-62/+15
I386_WATCHPOINTS_IN_TARGET_VECTOR conditional. * config/i386/nm-cygwin.h: Remove I386_WATCHPOINTS_IN_TARGET_VECTOR macro. * config/i386/nm-cygwin64.h: Ditto. * config/i386/nm-fbsd.h: Ditto. * config/i386/nm-go32.h: Ditto. * config/i386/nm-linux.h: Ditto. * config/i386/nm-linux64.h: Ditto.