summaryrefslogtreecommitdiff
path: root/gdb
Commit message (Collapse)AuthorAgeFilesLines
* * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir insideDaniel Jacobowitz2007-01-097-10/+133
| | | | | | | | | | | | | | | exec_prefix. (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being '${prefix}'. * configure, config.in: Regenerate. * defs.h (debug_file_directory): Declare. * main.c (captured_main): Canonicalize gdb_sysroot. Assume TARGET_SYSTEM_ROOT is defined. Initialize debug_file_directory and relocate it if DEBUGDIR_RELOCATABLE. * symfile.c (debug_file_directory): Make non-static. (find_separate_debug_file): Look for debug info for SYSROOT/PATH in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT. (_initialize_symfile): Don't initialize debug_file_directory here.
* * score-tdep.c (score_push_dummy_call): Don't mix declarations andJim Blandy2007-01-092-3/+9
| | | | statements.
* * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): UseDaniel Jacobowitz2007-01-096-14/+43
| | | | | | | | | frame_unwind_register to recurse. * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise. (alpha_heuristic_frame_prev_register): Likewise. * h8300-tdep.c (h8300_frame_prev_register): Likewise. * m32c-tdep.c (m32c_prev_register): Likewise. * frame.c (frame_register_unwind_location): Remove FIXME.
* Copyright updates for 2007.Daniel Jacobowitz2007-01-091251-1594/+1522
|
* * copyright.sh: New file.Daniel Jacobowitz2007-01-092-0/+167
|
* * configure.ac: Check for XML_StopParser.Daniel Jacobowitz2007-01-095-0/+129
| | | | | | | * xml-support.c (gdb_xml_body_text): Check for an error. (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser. (gdb_xml_end_element_wrapper): Likewise. * config.in, configure: Regenerated.
* *** empty log message ***gdbadmin2007-01-091-1/+1
|
* * varobj.c (install_new_value): Always update print_value.Daniel Jacobowitz2007-01-085-12/+51
| | | | | | | | | (value_get_print_value): Immediately return NULL for missing values. * gdb.mi/mi-var-cmd.exp: Expect lpcharacter to update when lcharacter or linteger change. Correct duplicated test name. * gdb.mi/mi2-var-cmd.exp: Likewise.
* * configure.ac: Tighten pattern for extracting value ofJim Blandy2007-01-083-2/+8
| | | | | DEPRECATED_TM_FILE from the target makefile fragment. * configure: Regenerated.
* * linux-nat.c (struct simple_pid_list): Add status.Daniel Jacobowitz2007-01-086-102/+257
| | | | | | | | | | | | | | | (add_to_pid_list): Record the PID's status. (linux_record_stopped_pid): Likewise. Make static. (pull_pid_from_list): Return the saved status. (linux_nat_handle_extended): Deleted. (linux_handle_extended_wait): Combine with linux_nat_handle_extended. Make static. Handle non-SIGSTOP for a new thread's first signal. (flush_callback): Handle unexpected pending signals. (linux_nat_wait): Update calls to changed functions. * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait): Remove prototypes for newly static functions. * gdb.threads/sigthread.c, gdb.threads/sigthread.exp: New.
* * gdbarch.sh (value_from_register): New gdbarch function.Ulrich Weigand2007-01-088-80/+122
| | | | | | | | | | | | | | | | | | | * gdbarch.c, gdbarch.h: Regenerate. * findvar.c (default_value_from_register): New function. (value_from_register): Use gdbarch_value_from_register. * value.h (default_value_from_register): Declare. * spu-tdep.c (spu_convert_register_p, spu_register_to_value, spu_value_to_register): Remove. (spu_value_from_register): New function. (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p, set_gdbarch_register_to_value, set_gdbarch_value_to_register. Call set_gdbarch_value_from_register. * s390-tdep.c (s390_convert_register_p, s390_register_to_value, s390_value_to_register): Remove. (s390_value_from_register): New function. (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p, set_gdbarch_register_to_value, set_gdbarch_value_to_register. Call set_gdbarch_value_from_register.
* * NEWS: Add "set sysroot" and "show sysroot".Daniel Jacobowitz2007-01-085-57/+98
| | | | | | | | | | | | | * solib.c (solib_absolute_prefix): Delete. Replace all uses with gdb_sysroot. (_initialize_solib): Add "set sysroot" and "show sysroot". Make "solib-absolute-prefix" an alias to it. * gdb.texinfo (Commands to specify files): Describe "set sysroot" and "show sysroot". (Using the `gdbserver' program): Lowercase argument to @var. Expand description of setting up GDB on the host.
* * frame.c (get_frame_register_bytes): New function.Ulrich Weigand2007-01-085-147/+146
| | | | | | | | | | (put_frame_register_bytes): Likewise. * frame.h (get_frame_register_bytes): Declare. (put_frame_register_bytes): Likewise. * findvar.c (value_from_register): Always construct lval_register values. Use get_frame_register_bytes. * valops.c (value_assign): Use get_frame_register_bytes and put_frame_register_bytes.
* * MAINTAINERS: Update Stan Shebs' email address.Jim Blandy2007-01-082-3/+7
|
* * ada-lang.c (is_known_support_routine): Improve the implementation.Joel Brobecker2007-01-082-40/+23
|
* * ada-lang.c: Add include of source.h.Joel Brobecker2007-01-083-3/+11
| | | | | | (is_known_support_routine): Improve the check verifying that the file associated to this frame exists. * Makefile.in (ada-lang.o): Add dependency on source.h.
* *** empty log message ***gdbadmin2007-01-081-1/+1
|
* * ax-general.c (ax_const_l): Select proper opcode for the givenJim Blandy2007-01-072-2/+11
| | | | value.
* *** empty log message ***gdbadmin2007-01-071-1/+1
|
* *** empty log message ***gdbadmin2007-01-061-1/+1
|
* (c_value_of_root): Don't select frame if variableNick Roberts2007-01-051-1/+2
| | | | object is out of scope.
* *** empty log message ***Nick Roberts2007-01-051-0/+5
|
* (struct varobj): New member print_value.Nick Roberts2007-01-051-18/+40
| | | | | | | | | | (install_new_value): Compare last printed value with current one instead of contents. (new_variable): Initialize var->print_value to NULL. (free_variable): Free var->print_value. (value_get_print_value): New function derived from c_value_of_variable. (c_value_of_variable): Use value_get_print_value.
* *** empty log message ***Nick Roberts2007-01-051-0/+11
|
* * i386-tdep.c (i386_analyze_stack_align): Add comment.Joel Brobecker2007-01-052-0/+8
|
* * gdb.texinfo (Set Catchpoints): Add documentation for the newJoel Brobecker2007-01-052-0/+20
| | | | | catch exception, catch exception unhandled, and catch assert commands.
* * NEWS: Add entries for new catch commands.Joel Brobecker2007-01-052-0/+11
|
* * gdb.base/nofield.c: New file.Joel Brobecker2007-01-053-0/+97
| | | | * gdb.base/nofield.exp: New testcase.
* * dwarf2read.c (partial_die_info): Add field has_byte_size.Joel Brobecker2007-01-052-7/+28
| | | | | | (add_partial_symbol): Correct identification of external references. (process_structure_scope): Likewise. (read_partial_die): Handle DW_AT_byte_size attribute.
* 2007-01-04 Qinwei <qinwei@sunnorth.com.cn>Qinwei2007-01-051-0/+1
| | | | | | | | | | | | * NEWS: New port to S+core. * MAINTAINERS (Write After Approval, Responsible Maintainers): Add myself. * Makefile.in: Add dependencies for S+core files. * configure.tgt (score*, score-*-*): Add S+core target. * config/score/embed.mt: New file. * score-tdep.c: New file. * score-tdep.h: New file.
* * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.Daniel Jacobowitz2007-01-052-1/+5
|
* *** empty log message ***gdbadmin2007-01-051-1/+1
|
* mi-var-cp.exp: New test for references to pointers.Nick Roberts2007-01-042-0/+25
| | | | mi-var-cp.cc: (reference_to_pointer): New procedure for above test.
* *** empty log message ***Nick Roberts2007-01-042-0/+12
|
* (get_type_deref): Fix variable objects for references toNick Roberts2007-01-041-6/+11
| | | | pointers.
* * symtab.c (find_pc_sect_psymtab): Add comments. Handle psymtabsDaniel Jacobowitz2007-01-042-22/+33
| | | | with no symbols.
* * memory-map.c (struct_memory_map_parsing_data): Remove mostDaniel Jacobowitz2007-01-047-241/+791
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | members. Make property_name an array. (free_memory_map_parsing_data, memory_map_start_element) (memory_map_end_element, memory_map_character_data): Delete. (memory_map_start_memory, memory_map_end_memory) (memory_map_start_property, memory_map_end_property): New functions. (property_attributes, memory_children, memory_type_enum) (memory_attributes, memory_map_children, memory_map_elements): New. (parse_memory_map): Rewrite. * xml-support.c (debug_xml): New. (xml_get_required_attribute, xml_get_integer_attribute) (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser): Delete. (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text) (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup) (gdb_xml_start_element, gdb_xml_start_element_wrapper) (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup) (gdb_xml_create_parser_and_cleanup, gdb_xml_parse) (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest) (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support): New. * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler) (enum gdb_xml_attribute_flag, struct gdb_xml_attribute) (enum gdb_xml_element_flag, struct gdb_xml_element) (gdb_xml_element_start_handler, gdb_xml_element_end_handler) (struct gdb_xml_enum): New. (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug) (gdb_xml_error, gdb_xml_parse_attr_ulongest) (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes. (xml_get_required_attribute, xml_get_integer_attribute) (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes. * Makefile.in (xml_support_h, xml-support.o): Update. * gdb.texinfo (Debugging Output): Document "set debug xml" and "show debug xml".
* * Makefile.in (eval.o): Update dependencies.Daniel Jacobowitz2007-01-046-4/+80
| | | | | | | | | * eval.c: Include "ui-out.h" and "exceptions.h". (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable. Use value_zero if an error occurs when avoiding side effects. * varobj.c (c_value_of_root): Initialize new_val. * gdb.mi/mi-var-cmd.exp: Add tests for unreadable varobjs.
* * varobj.c (varobj_list_children): Stop if the number of children isDaniel Jacobowitz2007-01-044-2/+28
| | | | | | | | unknown. (c_number_of_children): Report no children for zero sized arrays. * lib/mi-support.exp (mi_runto_helper): Expect two prompts when continuing.
* * gdb.base/annota3.exp ($binfile): Append $EXEEXT.Daniel Jacobowitz2007-01-042-2/+7
| | | | Expect ".exe" extension.
* * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.Mark Kettenis2007-01-042-16/+24
| | | | | | | (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start) (alpha_heuristic_frame_unwind_cache, alpha_next_pc) (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and sizeof, instead of hardcoded constants.
* * gdb.base/charset.exp: Add explicit filename to break.Daniel Jacobowitz2007-01-043-3/+8
| | | | * gdb.base/dbx.exp: Add explicit filename to breaks.
* * gdb.mi/mi-file.exp: Use mi_gdb_file_cmd instead of mi_gdb_load.Daniel Jacobowitz2007-01-043-2/+7
| | | | * gdb.mi/mi2-file.exp: Likewise.
* * CONTRIBUTE: Use sourceware.org.Daniel Jacobowitz2007-01-042-1/+5
|
* * buildsym.c (start_subfile): Handle producer.Daniel Jacobowitz2007-01-047-24/+135
| | | | | | | | | | | | | | | | | (record_producer): New function. * buildsym.h (struct subfile): Include producer. (record_producer): New prototype. * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation. (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and armcc_cfa_offsets_reversed. (execute_cfa_program): Handle armcc_cfa_offsets_sf. (dwarf2_frame_find_quirks): New function. (dwarf2_frame_cache): Call it. Handle armcc_cfa_offsets_reversed. (decode_frame_entry_1): Record the CIE version. Record the augmentation. Skip armcc augmentations. * dwarf2read.c (read_file_scope): Save the producer. * symtab.h (struct symtab): Rename unused version member to producer.
* Implement specification of MI tests as commentsVladimir Prus2007-01-044-47/+295
| | | | | | | | | | | | | in C and C++ sources. * lib/mi-support.exp (mi_autotest_data): New variable. (mi_autotest_source): New variable. (count_newlines, mi_prepare_inline_tests) (mi_get_inline_test, mi_continue_to_line) (mi_run_inline_test, mi_tbreak) (mi_send_resuming_command, mi_wait_for_stop): New functions. * gdb.mi/mi-var-cp.exp: Move most content to the C file. Run inline tests. * gdb.mi/mi-var-cp.cc: Define tests here.
* * configure.ac (build_warnings): Use -Wall andDaniel Jacobowitz2007-01-045-106/+53
| | | | | | | -Wdeclaration-after-statement. * configure: Regenerated. * gdbint.texinfo (Compiler Warnings): Update for -Wall use.
* Simplify access to variours properties of childVladimir Prus2007-01-042-118/+129
| | | | | | | | variable objects in C. * varobj.c (value_struct_element_index): New function. (c_describe_child): New function. (c_name_of_child, c_value_of_child) (c_type_of_child): Rewrite to use c_describe_child.
* gdb/Vladimir Prus2007-01-043-205/+88
| | | | | | | | | | | | | | | | | * varobj.c: Include "vec.h". (varobj_p): New typedef, declare vector of those. (struct varobj): Use vector for the 'children' member. (child_exists): Remove. (save_child_in_parent): Remove. (remove_child_from_parent): Remove. (struct varobj_child): Remove. (struct vstack): Remove. (vpush, vpop): Remove. (varobj_list_children): Adjust to work work vector. (varobj_update): Likewise. Use vectors for working stack and result. (delete_variable_1): Likewise. * Makefile.in (varobj.o): Update dependencies.
* Port from Apple's version.Vladimir Prus2007-01-042-13/+28
| | | | | | | gdb/ * varobj.c (type_changeable): Rename to... (varobj_value_is_changeable_p): ...this. Adjust all callers. (is_root_p): New function. Use it everywhere.