1 2010-10-18 Doug Evans <dje@google.com>
3 * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
4 assumptions of when this case happens. Print "<unnamed typedef>".
6 2010-10-18 Tom Tromey <tromey@redhat.com>
8 * valprint.c (val_print_string): Pass 'encoding' to
11 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
13 Fix the `stopped language detection' testcase for gcc-4.5.
14 * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
15 * symfile.c (set_initial_language): Move variable filename to a more
16 inner block. Prefer LANGUAGE_OF_MAIN.
17 * symtab.c (language_of_main): New variable.
18 (set_main_name): Always reset LANGUAGE_OF_MAIN.
19 * symtab.h (language_of_main): New declaration.
21 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
22 Pedro Alves <pedro@codesourcery.com>
24 * gdbthread.h (currently_stepping): New declaration.
25 * infrun.c (currently_stepping): Remove the forward declaration.
26 (currently_stepping): Make it global.
27 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
28 variables tp and step, initialized them. Pass STEP to to_resume.
29 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
30 * remote.c (currently_stepping_callback): New.
32 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
33 New variable tp. Call currently_stepping_callback and step such
36 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
38 * infrun.c (follow_exec): Replace symbol_file_add_main by
39 symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
41 * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
43 * objfiles.c (free_all_objfiles): Likewise.
44 * remote-m32r-sdi.c (m32r_load): Likewise.
45 * solib-som.c (som_solib_create_inferior_hook): Likewise.
46 * symfile.c (new_symfile_objfile): New comment for add_flags. Call
47 clear_symtab_users with ADD_FLAGS.
48 (reread_symbols): Use parameter 0 for clear_symtab_users.
49 (clear_symtab_users): New parameter add_flags. Do not call
50 breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
51 (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
52 * symtab.h (clear_symtab_users): New parameter add_flags.
54 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
56 Fix GCC false warning.
57 * varobj.c (value_get_print_value) <str_addr>: Initialize it.
59 2010-10-16 Pierre Muller <muller@ics.u-strasbg.fr>
61 * p-typeprint.c (pascal_type_print_method_args): Fix problem in
62 display of type of method arguments.
64 2010-10-15 Tom Tromey <tromey@redhat.com>
67 * varobj.c (value_get_print_value): Use val_print_string to print
69 * python/py-prettyprint.c (print_string_repr): Use
70 val_print_string to print lazy strings. Fix cleanup logic.
71 (print_children): Likewise.
72 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
73 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
74 Change return type to 'void', add 'addr' argument.
75 * value.h (val_print_string): Update.
76 * valprint.c (val_print_string): Add 'encoding' argument.
77 * printcmd.c (print_formatted): Update.
78 * p-valprint.c (pascal_val_print): Update.
79 * m2-valprint.c (print_unpacked_pointer): Update.
80 (m2_print_array_contents): Likewise.
81 * jv-valprint.c (java_value_print): Update.
82 * f-valprint.c (f_val_print): Update.
83 * c-valprint.c (c_val_print): Update.
84 * auxv.c (fprint_target_auxv): Update.
86 2010-10-15 Doug Evans <dje@google.com>
87 Jan Kratochvil <jan.kratochvil@redhat.com>
90 * gdbtypes.c (check_typedef): Clean up function comment.
91 Keep track of instance flags as we strip typedefs and create a new
92 type to preserve them if necessary.
93 * gdbtypes.h (type) <instance_flags>: Extend the comment.
95 2010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
97 * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
99 2010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
101 * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
102 * gdbtypes.c (rank_one_type): Move type comparison code out of here
104 (types_equal): ...here. And changed it as follows:
105 Outside of typedefs type must be of the same TYPE_CODE.
106 When compairing two pointers or references they are equal if their
108 Correct pointer conversions.
110 2010-10-14 Pierre Muller <muller@ics.u-strasbg.fr>
112 * p-lang.c (is_pascal_string_type): Avoid crashes on structures
113 having fields without names.
115 2010-10-13 Tom Tromey <tromey@redhat.com>
117 * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
119 2010-10-13 Doug Evans <dje@google.com>
121 New python module gdb.types.
123 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
124 * python/lib/gdb/types.py: New file.
126 * c-typeprint.c: Whitespace cleanup.
127 (cp_type_print_method_args): Remove unnecessary forward decl.
128 (cp_type_print_derivation_info): Ditto.
129 (c_type_print_varspec_prefix): Mark as static at definition.
130 (c_type_print_modifier): Fix arg descriptions.
132 2010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
134 * python/py-breakpoint.c (bppy_set_condition): New comment.
135 * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
136 failed PyUnicode_Decode.
137 (cmdpy_completer): Skip element for failed
138 python_string_to_host_string.
139 (cmdpy_init): Return -1 on failed python_string_to_host_string.
140 * python/py-frame.c (frapy_read_var): Extend the function comment.
141 * python/py-function.c (fnpy_init): Return -1 on failed
142 python_string_to_host_string.
143 * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
144 the function comment.
145 (infpy_search_memory): Extend the function comment. Remove the
146 PyErr_SetString call on already set error state.
147 * python/py-param.c (set_parameter_value): Extend the function
148 comment. Return -1 on failed python_string_to_host_string, twice.
149 (set_attr): Extend the function comment.
150 (compute_enum_values): Extend the function comment. New variable
151 back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
152 failed python_string_to_host_string.
153 (get_doc_string): Call gdbpy_print_stack on failed
154 python_string_to_host_string.
155 (parmpy_init): Extend the function comment.
156 * python/py-prettyprint.c (pretty_print_one_value): Likewise.
157 (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
158 failed python_string_to_host_string.
159 * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
160 (valpy_binop, valpy_richcompare): Extend the function comment.
162 (struct python_env) <error_type, error_value, error_traceback>: New
164 (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
165 (ensure_python_env): Call PyErr_Fetch.
166 * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
167 failed convert_value_from_python.
168 (value_get_print_value): Call gdbpy_print_stack on failed
169 python_string_to_target_python_string.
171 2010-10-12 Tom Tromey <tromey@redhat.com>
173 * python/py-prettyprint.c (search_pp_list): Fix error checking.
175 2010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
177 * gdbtypes.c (do_is_ancestor): New function.
178 (is_ancestor): Use do_is_ancestor.
179 (is_public_ancestor): Use do_is_ancestor.
181 2010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
183 * ser-go32.c (struct dos_ops): Add missing fdopen field.
185 2010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
187 * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
189 2010-10-11 Doug Evans <dje@google.com>
191 * c-typeprint.c (c_type_print_modifier): Add note that this prints
192 the address space id too.
194 2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
196 Fix attaching to re-prelinked executables on ppc64.
197 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
198 initialize it, try to adjust FILESZ field by it.
200 2010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
202 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
203 messages if info_verbose.
205 2010-10-08 Ken Werner <ken.werner@de.ibm.com>
207 * valops.c (value_cast): Handle vector types.
208 * valarith.c (value_binop): Widen scalar to vector if appropriate.
210 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
212 * arm-tdep.c (thumb_expand_immediate): New function.
213 (thumb_instruction_changes_pc): Likewise.
214 (thumb2_instruction_changes_pc): Likewise.
215 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
216 prologue parsing. Improved support for optimized code.
217 (thumb_scan_prologue): Do not reply on line-number information,
218 use same heuristics as arm_scan_prologue insead.
219 (skip_prologue_function): Accept functions
220 "__tls_get_addr" and "__aeabi_read_tp".
222 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
223 Daniel Jacobowitz <dan@codesourcery.com>
225 * arm-tdep.c (thumb_in_function_epilogue_p)
226 (arm_in_function_epilogue_p): New.
227 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
228 gdbarch_in_function_epilogue_p callback.
230 2010-10-07 Doug Evans <dje@google.com>
232 * cc-with-index.sh (output_file): Default to a.out.
234 * dwarf2read.c (mapped_index): Rename member index_table to
235 symbol_table and index_table_slots to symbol_table_slots.
237 (create_symbol_hash_table): Renamed from create_index_table.
239 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
240 (write_hash_table): Rename local index_table to symbol_hash_table.
242 * addrmap.h (addrmap_foreach_fn): New typedef.
243 (addrmap_foreach): Declare.
244 * addrmap.c (struct addrmap_funcs): New member foreach.
245 (addrmap_foreach): New function.
246 (addrmap_fixed_foreach): New function.
247 (addrmap_fixed_funcs): Update.
248 (struct mutable_foreach_data): New struct.
249 (addrmap_mutable_foreach_worker): New function.
250 (addrmap_mutable_foreach): New function.
251 (addrmap_mutable_funcs): Update.
253 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
255 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
258 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
260 * ada-lang.c (full_match): Declare.
261 (ada_match_name): Rename to match_name (we should avoid prefixing static
262 symbols with "ada_").
263 (match_name): New name for ada_match_name.
264 (struct ada_psym_data): Remove and replace with...
265 (struct match_data): User data for map_matching_symbols.
266 (ada_add_psyms): Remove.
267 (aux_add_nonlocal_symbols): New function, used as callback for
268 map_matching_symbols.
269 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
271 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
272 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
273 Rework to use map_matching_symbols instead of map_ada_symtabs.
274 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
275 * psymtab.c: Include dependency on dictionary.h.
276 (match_partial_symbol): New function.
277 (ada_lookup_partial_symbol): Remove.
278 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
279 (map_matching_symbols_psymtab): New function.
280 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
281 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
283 2010-10-06 Paul Hilfinger <hilfinger@adacore.com>
285 * ada-lang.c (ada_match_name): Use new API for wild_match.
286 (wild_match): Change API to be consistent with that of strcmp_iw;
287 return 0 for a match, and switch operand order.
288 (full_match): New function.
289 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
290 matching to allow use of hashing.
291 * dictionary.c (struct dict_vector): Generalize iter_name_first,
292 iter_name_next ot iter_match_first, iter_match_next.
293 (iter_name_first_hashed): Replace with iter_match_first_hashed.
294 (iter_name_next_hashed): Replace with iter_match_next_hashed.
295 (iter_name_first_linear): Replace with iter_match_first_linear.
296 (iter_name_next_linear): Replace with iter_match_next_linear.
297 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
298 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
299 (dict_iter_match_first): New function.
300 (dict_iter_match_next): New function.
301 (dict_hash): New function.
302 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
303 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
305 2010-10-06 Doug Evans <dje@google.com>
307 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
309 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
311 * dwarf2read.c (read_tag_const_type): Handle const arrays.
313 2010-10-06 Doug Evans <dje@google.com>
315 * Makefile.in (REQUIRED_SUBDIRS): New var.
316 (subdir_do): Verify required subdir Makefiles exist.
318 Create subdir data-directory.
319 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
320 data-directory/Makefile.in.
321 (SUBDIRS): Add data-directory.
322 (all): Remove xml-syscall-copy dependency.
323 (xml-syscall-copy): Moved to data-directory/Makefile.in as
325 (xml-syscall-install): Moved to data-directory/Makefile.in as
327 (install-only): Remove xml-syscall-install dependency.
328 (all-data-directory): New rule.
329 (data-directory/Makefile): New rule.
330 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
331 * configure: Regenerate.
332 * data-directory/Makefile.in: New file.
333 * python/lib/gdb/__init__.py: New file.
335 2010-10-06 Joel Brobecker <brobecker@adacore.com>
337 Fix ARI warnings in advance_wild_match.
338 * ada-lang.c (advance_wild_match): Delete local variable t2.
339 Adjust code accordingly. Minor reformatting.
341 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
343 * gdbtypes.h (struct main_type): Remove flag_nottext.
344 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
345 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
346 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
347 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
348 of TYPE_FLAG_NOTTEXT.
349 (init_type): Remove the initialization of the flag_nottext field.
350 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
352 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
354 2010-10-04 Doug Evans <dje@google.com>
356 * cc-with-index.sh: New file.
358 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
360 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
361 (create_cus_from_index, create_addrmap_from_index): Ditto.
362 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
363 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
364 (dw2_do_expand_symtabs_matching): Ditto.
365 (eq_strtab_entry, create_strtab, add_string): Ditto.
366 (hash_strtab_entry): Ditto.
367 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
368 (create_index_table, create_mapped_symtab, find_slot): Ditto.
369 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
370 (write_hash_table, add_address_entry, write_psymbols): Ditto.
371 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
372 (write_psymtabs_to_index): Ditto.
374 2010-10-04 Joel Brobecker <brobecker@adacore.com>
376 * ada-lang.c: #include "value.h".
377 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
378 arguments. Implement using value_allocate_space_in_inferior
379 instead of allocating memory from the stack.
380 (make_array_descriptor): Remove gdbarch and sp parameters. Update
381 calls to ensure_lval.
382 (ada_convert_actual): Remove gdbarch and sp parameters. Update
383 calls to make_array_descriptor and ensure_lval.
384 * ada-lang.h (ada_convert_actual): Update declaration.
385 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
387 2010-10-04 Doug Evans <dje@google.com>
389 * python/python.c (_initialize_python): Define new function
390 GdbSetPythonDirectory in python. Use it to update sys.path and
393 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
395 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
396 incorporating and generalizing print_record_field_types.
397 (print_record_field_types): Change return value and update comment.
398 Re-implement using print_selected_record_field_types.
399 (print_choices): Print "=>" here.
400 Handle case of unencoded variant branch.
401 (print_variant_clauses): Reformat comment.
402 Special-case unencoded variant branch.
404 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
406 * ada-lang.c (wild_match): Reimplement.
407 Change API to eliminate unused length argument, reverse arguments and
408 make 0 the 'true' return value.
409 (advance_wild_match): New auxiliary function for wild_match to improve
411 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
412 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
414 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
416 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
418 2010-10-01 Doug Evans <dje@google.com>
420 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
421 for `save gdb-index' command.
423 2010-10-01 Tom Tromey <tromey@redhat.com>
425 * symfile.h (allocate_symtab): Update.
426 * symfile.c (allocate_symtab): Make 'filename' const.
427 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
428 (add_psymbol_to_list): Likewise.
429 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
431 (add_psymbol_to_list): Update.
432 * mdebugread.c (new_symtab): Make 'name' const.
433 (psymtab_to_symtab_1): Make 'filename' const.
434 * elfread.c (elfstab_offset_sections): Update.
435 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
436 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
437 (psymtab_include_file_name): Update.
438 * dbxread.c (find_stab_function_addr): Make 'filename' const.
439 * buildsym.h (start_subfile): Update.
440 * buildsym.c (start_subfile): Make arguments const.
442 2010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
444 * fork-child.c (breakup_args): Fix crash if shell forking is
445 disabled at compile time.
447 2010-10-01 Joel Brobecker <brobecker@adacore.com>
449 * ada-lang.c (desc_bounds): Add handling of the case where
450 the P_BOUNDS field is a pointer to a stub.
451 (desc_data_target_type): Same for P_ARRAY field.
452 (ada_check_typedef): Strip the typedef layers from the type
453 found by ada_find_any_type.
455 2010-10-01 Joel Brobecker <brobecker@adacore.com>
457 * sparc-tdep.c (sparc32_frame_align): New function.
458 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
459 * sparc64-tdep.c (sparc64_frame_align): New function.
460 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
462 2010-09-30 H.J. Lu <hongjiu.lu@intel.com>
464 * defs.h (MAX_REGISTER_SIZE): Set to 64.
466 2010-09-30 Tom Tromey <tromey@redhat.com>
468 * symfile.h (struct sym_fns) <next>: Remove.
469 (add_symtab_fns): Update.
470 * symfile.c (sym_fns_ptr): New typedef.
471 (symtab_fns): Now a VEC.
472 (add_symtab_fns): Update. Change argument type.
473 (find_sym_fns): Update. Change return type.
474 (get_symfile_segment_data): Update.
475 * objfiles.h (struct objfile) <sf>: Now const.
476 * somread.c (som_sym_fns): Now const. Update.
477 * xcoffread.c (xcoff_sym_fns): Now const. Update.
478 * mipsread.c (ecoff_sym_fns): Now const. Update.
479 * machoread.c (macho_sym_fns): Now const. Update.
480 * elfread.c (elf_sym_fns): Now const. Update.
481 (elf_sym_fns_gdb_index): Likewise.
482 * dbxread.c (aout_sym_fns): Now const. Update.
483 * coffread.c (coff_sym_fns): Now const. Update.
485 2010-09-30 Tom Tromey <tromey@redhat.com>
487 * value.c (value_primitive_field): Take 'offset' into account for
490 2010-09-30 Tom Tromey <tromey@redhat.com>
492 * completer.c (count_struct_fields): Handle anonymous structs and
494 (add_struct_fields): Likewise.
496 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
498 Fix printing parameters of inlined functions.
499 * ada-lang.c (is_known_support_routine)
500 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
501 for find_frame_funname.
502 * python/py-frame.c (frapy_name): Likewise.
503 * stack.c (find_frame_funname): New parameter funcp. Update the
504 function comment. Fill it in.
505 (print_frame): New variable func. Initialize it by
506 find_frame_funname. Print arguments only if FUNC is not NULL. Use
507 FUNC as the parameter of print_args_stub.
508 * stack.h (find_frame_funname): New parameter funcp. Remove the
509 function declaration comment.
511 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
514 * inferior.c (have_live_inferiors): New variables old_chain, inf and
515 tp. Iterate INFERIOR_LIST and call target_has_execution.
517 2010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
519 Fix GDB crash on inferior calls with self-referencing classes.
520 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
523 2010-09-29 Doug Evans <dje@google.com>
525 Workaround for gcc/45682.
526 * dwarf2read.c (partial_die_info): New fields fixup_called,
528 (guess_partial_die_structure_name): Renamed from guess_structure_name.
529 Move definition next to use. Use linkage_name to determine if class
530 is in a namespace. All callers updated.
531 (fixup_partial_die): Return early if already called.
532 Set fixup_called when done.
533 (guess_full_die_structure_name): New function.
534 (determine_prefix): Call it for class/struct/union dies if c++ and
535 .debug_types section is present and parent is DW_TAG_compile_unit.
537 2010-09-28 Joel Brobecker <brobecker@adacore.com>
539 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
540 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
542 2010-09-28 Joel Brobecker <brobecker@adacore.com>
544 * NEWS: Announce Ravenscar Profile support.
546 2010-09-28 Joel Brobecker <brobecker@adacore.com>
547 Jerome Guitton <guitton@adacore.com>
549 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
551 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
552 ravenscar-sparc-thread.o to gdb_target_obs.
554 2010-09-28 Joel Brobecker <brobecker@adacore.com>
556 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
557 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
559 2010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
561 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
562 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
563 skip_main_prologue method.
565 2010-09-27 Tom Tromey <tromey@redhat.com>
567 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
568 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
569 Only emit a given psymbol once.
570 (struct signatured_type_index_data) <psyms_seen>: New field.
571 (write_one_signatured_type): Update.
572 (cleanup_htab): New function.
573 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
575 (save_gdb_index_command): Update index documentation.
577 2010-09-27 Tom Tromey <tromey@redhat.com>
579 * bcache.c (expand_hash_table): Use hash_function, not hash.
581 2010-09-27 Tom Tromey <tromey@redhat.com>
583 * gdb_wchar.h: Change minimum libiconv to 0x108.
585 2010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
587 Fix lost siginfo_t for inferior calls.
589 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
590 (save_inferior_thread_state): New variables regcache, gdbarch and
591 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
592 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
594 (restore_inferior_thread_state): New variables regcache and gdbarch.
595 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
596 REGCACHE. Free also SIGINFO_DATA.
598 2010-09-24 Tom Tromey <tromey@redhat.com>
600 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
602 (dw2_map_symbol_names): Likewise.
604 2010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
606 * valops.c (find_oload_champ_namespace_loop): replace incorrect
607 discard_cleanups do_cleanups.
609 2010-09-24 Pedro Alves <pedro@codesourcery.com>
613 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
614 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
615 si_code is < 0. Check for si_code == SI_TIMER before checking for
618 2010-09-24 Pedro Alves <pedro@codesourcery.com>
620 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
622 2010-09-22 Joel Brobecker <brobecker@adacore.com>
624 * ada-tasks.c (read_atcb): Do not compute the task ptid when
625 debugging a core file.
627 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
630 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
631 (free_objfile) <objfile->name != NULL>: Remove the conditional around
633 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
634 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
636 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
637 Remove the conditional.
638 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
640 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
642 * main.c: Include objfiles.h.
643 (captured_main): New variable objfile. Call
644 load_auto_scripts_for_objfile for ALL_OBJFILES.
646 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
648 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
651 2010-09-22 Joel Brobecker <brobecker@adacore.com>
653 * dwarf2read.c (scan_partial_symbols): Add handling of
654 DW_TAG_constant DIEs.
655 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
657 2010-09-22 Joel Brobecker <brobecker@adacore.com>
659 * configure.ac: Add support for --enable-gdbserver.
660 * configure: Regenerate.
662 2010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
665 * valops.c (find_oload_champ_namespace_loop): removed incorrect
666 'old_cleanups' reassignment.
668 2010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
670 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
673 2010-09-16 Phil Muldoon <pmuldoon@redhat.com>
676 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
677 read_var_value and common_val_print and print a warning.
679 2010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
681 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
682 keep the list in alphabetical order. Use longer e-mail address.
684 2010-09-15 Tom Tromey <tromey@redhat.com>
686 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
688 2010-09-15 Tom Tromey <tromey@redhat.com>
690 * charset.c (iconv_open): New define.
692 (iconv_close): Likewise.
693 (phony_iconv_open): Add "phony_" prefix.
694 (phony_iconv_close): Likewise.
695 (phony_iconv): Likewise.
696 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
697 Change how INTERMEDIATE_ENCODING is defined.
699 2010-09-15 Doug Evans <dje@google.com>
701 * dwarf2read.c (struct die_info): Fix comment.
703 2010-09-15 Alan Modra <amodra@gmail.com>
706 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
707 than setting SEC_NEVER_LOAD on sections that need not be copied.
709 2010-09-14 Tom Tromey <tromey@redhat.com>
711 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
712 (start_psymtab_common, allocate_psymtab, discard_psymtab):
714 * symfile.h (extend_psymbol_list): Remove.
715 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
716 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
717 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
719 2010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
721 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
724 2010-09-14 Tom Tromey <tromey@redhat.com>
727 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
728 for unrecognized frame base expression.
730 2010-09-14 Tom Tromey <tromey@redhat.com>
733 * value.c (value_static_field): Use value_of_variable.
735 2010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
737 * m32r-rom.c: Replace winsock.h with winsock2.h header.
738 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
740 2010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
743 * c-exp.y (classify_name): Check is_a_member_of_this before returning
746 2010-09-13 Joel Brobecker <brobecker@adacore.com>
748 * NEWS: Add x86-lynxos to the list of platforms supported by
751 2010-09-13 Joel Brobecker <brobecker@adacore.com>
753 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
755 2010-09-13 Tom Tromey <tromey@redhat.com>
757 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
759 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
761 * i386-tdep.c (i386_ymm_type): Set type name to
762 builtin_type_vec256i.
764 2010-09-12 Michael Snyder <msnyder@vmware.com>
766 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
768 2010-09-12 H.J. Lu <hongjiu.lu@intel.com>
770 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
772 2010-09-11 H.J. Lu <hongjiu.lu@intel.com>
774 * amd64-tdep.c (amd64_register_name): Removed.
775 (amd64_init_abi): Don't call set_gdbarch_register_name.
777 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
779 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
781 2010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
782 Paul Bolle <pebolle@tiscali.nl>
784 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
785 * cli-logging.c (struct saved_output_files) <targerr>: New.
786 (set_logging_redirect, pop_output_files, handle_redirections):
787 Redirect also gdb_stdtargerr.
788 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
790 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
792 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
793 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
794 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
795 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
796 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
799 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
801 * hppa-tdep.c (unwind_command): Use host_address_to_string function
802 to display a host address.
803 * monitor.c (monitor_read_memory): Likewise.
804 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
806 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
808 * coffread.c (struct coff_symbol): Change c_value type from `long' to
809 `CORE_ADDRESS' as it might contain target addresses.
811 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
813 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
814 before cast to pointer to avoid warning.
816 2010-09-09 Kevin Buettner <kevinb@redhat.com>
818 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
821 2010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
823 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
824 anonymous class partial DIEs.
826 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
828 * dwarf2read.c (dwarf2_compute_name): Check that the first
829 argument is a pointer.
831 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
833 * dwarf2read.c (read_func_scope, read_structure_type)
834 (read_common_block): Check for a NULL return from new_symbol.
836 2010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
838 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
840 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
842 * dwarf2read.c (read_structure_type): Move processing of
843 fields and member functions from here...
844 (process_structure_scope): ... to here.
846 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
848 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
850 (gnuv3_make_method_ptr): Likewise.
852 2010-09-08 Tom Tromey <tromey@redhat.com>
854 * breakpoint.c (create_breakpoint): Add missing _().
856 2010-09-08 Doug Evans <dje@google.com>
858 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
860 2010-09-08 Tom Tromey <tromey@redhat.com>
863 2010-09-01 Tom Tromey <tromey@redhat.com>
864 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
865 symtab.h: Revert earlier change.
867 2010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
869 * psymtab.c (add_psymbol_to_bcache): Initialize
871 memset psymbol.ginfo.value to 0.
873 2010-09-06 Pedro Alves <pedro@codesourcery.com>
875 * infrun.c (resume): Extend comment on ignoring single-step
876 requests on vfork parents waiting for a vfork-done.
878 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
879 Pedro Alves <pedro@codesourcery.com>
881 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
883 * fork-child.c (startup_inferior) <resume_signal>: Use enum
885 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
886 calling strsignal. Use enum target_signal type for saved_signo.
887 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
888 (linux_nat_wait_1): Use enum target_signal type for signo. Use
889 target_signal_to_host before calling strsignal.
890 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
893 2010-09-06 Pedro Alves <pedro@codesourcery.com>
894 Jan Kratochvil <jan.kratochvil@redhat.com>
896 * common/signals.c (ANY): Remove.
897 (SET): No longer use ANY.
899 2010-09-06 Yao Qi <yao@codesourcery.com>
901 * infrunc(resume): When inferior is waiting_for_vfork_done,
902 clear step and don't use displaced stepping.
904 2010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
906 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
909 2010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
911 Code cleanup - split print_stop_reason.
912 * infrun.c (enum inferior_stop_reason): Remove.
913 (print_stop_reason): Remove by splitting into ...
914 (print_exited_reason, print_signal_exited_reason)
915 (print_no_history_reason, print_signal_received_reason)
916 (print_end_stepping_range_reason): ... these new functions. Update
917 the preceding comment.
918 (handle_inferior_event): Change the calls to print_exited_reason,
919 print_signal_exited_reason, print_no_history_reason,
920 print_signal_received_reason, print_end_stepping_range_reason.
921 (handle_step_into_function, handle_step_into_function_backward):
922 Change the calls to print_end_stepping_range_reason.
924 2010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
926 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
927 * cli-out.c: Include vec.h.
928 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
929 variable stream, initialize it, use it.
930 (cli_redirect): New function comment. Replace the stream and
931 original_stream fields by the new streams field. Remove the
932 original_stream != NULL conditional, assert error on NULL instead.
933 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
934 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
935 original_stream fields by the new streams field.
936 (cli_out_set_stream): Replace the stream field by the new streams
938 * cli-out.h: Include vec.h.
939 (ui_filep): New typedef, call DEF_VEC_P for it.
940 (struct cli_ui_out_data): Replace the stream and original_stream
941 fields by the new streams field.
942 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
943 NULL first. Extend the comment.
944 (handle_redirections): Call ui_out_redirect with output.
945 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
946 calls outside of the TRY_CATCH block.
948 2010-09-03 Joel Brobecker <brobecker@adacore.com>
952 2010-09-02 Joel Brobecker <brobecker@adacore.com>
954 Back out the following change:
955 | 2010-06-29 Hui Zhu <teawater@gmail.com>
956 | * record.c (set_record_pic_cmdlist,
957 | show_record_pic_cmdlist): New variables.
958 | (set_record_pic_command,
959 | show_record_pic_command): New functions.
960 | (record_pic_function, record_pic_line, record_pic_enum,
961 | set_record_pic_type, record_pic_hide_nofunction,
962 | record_pic_hide_nosource, record_pic_hide_same): New variables.
963 | (record_pic_fputs): New function.
964 | (function_list, node_list, edge_list): New struct.
965 | (function_list, node_list, edge_list): New variables.
966 | (record_pic_cleanups, record_pic_node,
967 | record_pic_edge, cmd_record_pic): New functions.
968 | (_initialize_record): Add new commands for record pic.
970 2010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
972 * config.in, configure: Regenerated.
973 * configure.ac: Check for waitpid.
974 * ser-pipe.c (pipe_close): Wait for the program to exit.
976 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
978 * cli/cli-logging.c: Include gdb_assert.h.
979 (set_logging_overwrite): New function.
980 (logging_redirect): New comment.
981 (logging_no_redirect_file, set_logging_redirect)
982 (pop_output_files) <logging_no_redirect_file>: New.
983 (handle_redirections) <!logging_redirect>: New variable
984 no_redirect_file. Remove file autoclose for tee_file_new. No longer
985 discard cleanup for the close of former OUTPUT. Set
986 LOGGING_NO_REDIRECT_FILE.
987 (handle_redirections) <logging_redirect>: gdb_assert
988 LOGGING_NO_REDIRECT_FILE.
989 (show_logging_command) <logging_redirect handling>: Adjust messages
990 for SAVED_FILENAME not NULL.
991 (_initialize_cli_logging): Install set_logging_overwrite and
992 set_logging_redirect.
994 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
996 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
998 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1000 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
1001 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
1002 add $(GDB_WARN_CFLAGS_NO_FORMAT).
1003 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
1005 2010-09-02 Yao Qi <yao@codesourcery.com>
1007 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
1008 number from a WIFSIGNALED status.
1010 2010-09-01 Tom Tromey <tromey@redhat.com>
1012 * symtab.h (lookup_type_symbol): Declare.
1013 * symtab.c (lookup_symbol_in_language_full): Rename from
1014 lookup_symbol_in_language. Add 'for_type' argument.
1015 (lookup_symbol_in_language): New function.
1016 (lookup_type_symbol): Likewise.
1017 (lookup_symbol_aux): Add 'for_type' argument.
1018 (match_symbol_aux): New function.
1019 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
1020 (match_transparent_type): New function.
1021 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
1022 * symfile.h (struct quick_symbol_functions)
1023 <pre_expand_symtabs_matching>: Remove.
1024 <expand_one_symtab_matching>: New field.
1025 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
1026 (pre_expand_symtabs_matching_psymtabs): Remove.
1027 (psym_functions): Update.
1028 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
1029 * dwarf2read.c (dw2_lookup_symbol): Update comment.
1030 (dw2_pre_expand_symtabs_matching): Remove.
1031 (dw2_expand_one_symtab_matching): New function.
1032 (dwarf2_gdb_index_functions): Update.
1034 2010-09-01 Joel Brobecker <brobecker@adacore.com>
1036 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
1038 2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
1040 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
1041 as a feature reported by -list-target-features.
1043 2010-09-01 Joel Brobecker <brobecker@adacore.com>
1045 * features/Makefile (WHICH): Add rs6000/powerpc-32.
1046 (powerpc-32.o, powerpc-32.c): New rules.
1047 (clean): Also remove powerpc-32.c.
1048 * regformats/rs6000/powerpc-32.dat: Generate.
1050 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
1052 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
1053 psymbol_bcache_init.
1054 * psymtab.h (psymbol_bcache_init): New function prototype.
1055 (psymbol_bcache_free): New function prototype.
1056 (psymbol_bcache_get_bcache): New function prototype.
1057 * psymtab.c (psymbol_bcache_init): New function.
1058 (psymbol_bcache_free): New function.
1059 (psymbol_bcache_full): New function.
1060 (psymbol_bcache_get_bcache): New function.
1061 (add_psymbol_to_bcache): use psymbol_bcache_full.
1062 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
1064 * symmisc.c (print_symbol_bcache_statistics): Updated.
1065 (print_objfile_statistics): Updated.
1066 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
1068 (free_objfile): Use psymbol_bcache_free.
1070 2010-08-31 Tom Tromey <tromey@redhat.com>
1073 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
1074 Don't set TYPE_NAME on the type.
1076 2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
1078 * infrun.c (set_exec_direction_func): Error out if target does not
1079 support reverse execution.
1081 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1083 Make linux_get_siginfo_type `type *' unique.
1084 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
1085 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
1086 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
1087 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
1088 (_initialize_linux_tdep): New.
1090 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1093 * defs.h (find_memory_region_ftype): New typedef.
1094 (exec_set_find_memory_regions): Use it.
1095 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
1096 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
1097 * gcore.c (objfile_find_memory_regions): Likewise.
1098 * gnu-nat.c (gnu_find_memory_regions): Likewise.
1099 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
1100 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
1101 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
1102 find_memory_region_ftype.
1103 (insert_dbx_link_bpt_in_region): Likewise.
1104 (iterate_over_mappings): Likewise. Drop the comment part about the
1106 (find_memory_regions_callback): Use find_memory_region_ftype.
1107 (proc_find_memory_regions): Likewise.
1108 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
1109 find_memory_region_ftype.
1110 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
1111 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
1113 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
1115 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
1116 'static partial_symbol psymbol'.
1117 (psymbol_hash): New function.
1118 (psymbol_compare): New function.
1119 * bcache.c (hash_continue): New.
1120 (hash): Use hash_continue.
1121 * bcache.c: Add hash_function and compare_function
1122 pointers to bcache struct.
1123 (bcache_full): Use bcache->hash_function, and
1124 bcache->compare_function.
1125 (bcache_compare): New function.
1126 (bcache_xmalloc): Take hash_function and
1127 compare_function arguments and initialize the
1130 * objfiles.c (allocate_objfile): Updated.
1131 * symfile.c (reread_symbols): Updated.
1132 * python/py-type.c (typy_richcompare): Updated.
1134 2010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
1135 Tom Tromey <tromey@redhat.com>
1138 * python/py-value.c (valpy_get_dynamic_type): New function.
1139 (value_object_getset): Add "dynamic_type".
1140 (valpy_get_type): Fail on error.
1142 2010-08-30 Yao Qi <yao@codesourcery.com>
1144 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
1145 (arm_linux_syscall_next_pc): New.
1146 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
1147 (arm_linux_init_abi): Initialize syscall_next_pc.
1148 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
1149 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
1150 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
1151 Declare arm_frame_is_thumb.
1153 2010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1156 * breakpoint.c (bpstat_alloc): Remove unused prototype.
1157 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
1159 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
1160 calls of bpstat_alloc. Remove explicit bs chain termination.
1162 2010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1165 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
1166 (my_waitpid): Likewise.
1168 2010-08-27 Doug Evans <dje@google.com>
1170 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
1173 2010-08-27 Tom Tromey <tromey@redhat.com>
1175 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
1176 TYPE_FIELD_IGNORE_BITS.
1178 2010-08-27 Doug Evans <dje@google.com>
1180 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
1181 the order they're defined in. munmap .debug_types buffer.
1183 2010-08-26 Doug Evans <dje@google.com>
1185 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
1186 (dw2_forget_cached_source_info): Rename local cu to per_cu.
1187 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
1188 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
1189 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
1190 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
1191 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
1192 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
1193 (write_psymtabs_to_index): Ditto.
1195 2010-08-26 Pedro Alves <pedro@codesourcery.com>
1197 * NEWS: Mention libthread_db debugging with core files.
1199 2010-08-26 Doug Evans <dje@google.com>
1201 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
1202 forward decl. Pass pst->dirname to dwarf_decode_lines.
1203 (psymtab_include_file_name): New function.
1204 (dwarf_decode_lines): Call it. Update comments.
1206 2010-08-25 Pedro Alves <pedro@codesourcery.com>
1208 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
1209 compilation unit being different from target die's.
1211 2010-08-24 Doug Evans <dje@google.com>
1214 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
1215 debug_types_type_hash.
1216 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
1218 (lookup_die_type): Renamed from tag_type_to_tag. First look in
1219 appropriate type_hash table. All callers updated.
1220 (allocate_signatured_type_table): Renamed from
1221 allocate_signatured_type_hash_table. All callers updated.
1222 (create_signatured_type_table_from_index): Renamed from
1223 create_signatured_type_hash_from_index. All callers updated.
1224 (read_die_type): Add comment. Move actual reading to ...
1225 (read_die_type_1): ... here. New function.
1226 (follow_die_ref_or_sig): Tweak comment.
1227 (set_die_type): Rewrite to use appropriate choice of
1228 debug_info_type_hash or debug_types_type_hash.
1229 (get_die_type_at_offset): New function.
1230 (get_die_type): Call it.
1232 2010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1234 * python/py-type.c (typy_richcompare): Initialize worklist.
1236 2010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
1237 Kazu Hirata <kazu@codesourcery.com>
1238 Jonathan Larmour <jifl@eCosCentric.com>
1240 * arm-tdep.c: Include features/arm-with-m.c.
1241 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
1243 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
1244 Check is_m after force-mode.
1245 (arm_gdbarch_init): Check the binary before the target description.
1246 Add check for M profile attribute. If we have an M-profile device,
1247 but no target register description, use arm-with-m. Recognize the
1248 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
1249 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
1250 * arm-tdep.h (XPSR_T): Define.
1251 (struct gdbarch_tdep): Add is_m member.
1252 * features/arm-m-profile.xml, features/arm-with-m.c,
1253 features/arm-with-m.xml: New files.
1255 2010-08-23 Doug Evans <dje@google.com>
1257 * dwarf2read.c (read_structure_type): Add comment.
1258 (read_enumeration_type): Add comment.
1259 (process_enumeration_scope): Move definition of some locals
1260 closer to their use.
1261 (read_namespace_type): Add comment.
1262 (set_die_type): Fix typo in comment.
1264 2010-08-23 Tom Tromey <tromey@redhat.com>
1267 * python/py-value.c: Include expression.h.
1268 (valpy_do_cast): New function.
1269 (valpy_cast): Use it.
1270 (valpy_dynamic_cast): New function.
1271 (valpy_reinterpret_cast): Likewise.
1272 (value_object_methods): Add dynamic_cast, reinterpret_cast.
1274 2010-08-23 Tom Tromey <tromey@redhat.com>
1277 * python/py-value.c (valpy_nonzero): Don't throw error for other
1280 2010-08-23 Tom Tromey <tromey@redhat.com>
1283 * python/py-type.c: Include bcache.h, vec.h.
1284 (struct type_equality_entry): New.
1285 (compare_strings): New function.
1286 (check_types_equal): Likewise.
1287 (check_types_worklist): Likewise.
1288 (typy_richcompare): Likewise.
1289 (type_object_type): Set tp_richcompare field.
1291 2010-08-23 Tom Tromey <tromey@redhat.com>
1294 * python/py-type.c (typy_fields): Call check_typedef.
1295 (typy_template_argument): Add TRY_CATCH.
1297 2010-08-23 Tom Tromey <tromey@redhat.com>
1300 * python/py-type.c (typy_array): New function.
1301 (type_object_methods): Add "array".
1303 2010-08-20 Pedro Alves <pedro@codesourcery.com>
1305 * python/python.c: Include "serial.h".
1306 (gdbpy_event_fds): Change type to `struct serial *' a array from
1308 (gdbpy_run_events): Change parameters. Use serial_readchar in
1310 (gdbpy_post_event): Use serial_write in place of write.
1311 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
1312 serial_async in place of add_file_handler.
1314 2010-08-20 Pedro Alves <pedro@codesourcery.com>
1316 * serial.h (gdb_pipe, serial_pipe): Declare.
1317 * serial.c (serial_interface_lookup): Take a const char pointer.
1318 (serial_fdopen): Rename to ...
1319 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
1320 Call the OPS' fdopen function if there is one.
1321 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
1323 (struct serial_ops) <fdopen>: New field.
1325 * ser-mingw.c (free_pipe_state):
1326 (free_pipe_state): Close output on non-pex pipes.
1327 (pipe_windows_fdopen): New.
1329 (_initialize_ser_windows): Register pipe_windows_fdopen.
1330 * ser-go32.c (gdb_pipe): New.
1331 * ser-pipe.c (pipe_close): Close file descriptor even if there's
1336 2010-08-20 Keith Seitz <keiths@redhat.com>
1339 * dwarf2read.c (struct delayed_method_info): New struct.
1340 (struct dwarf2_cu): Add vector method_list.
1341 (scan_partial_symbols): Count methods for union, class, structure,
1342 and interface types.
1343 (add_to_method_list): New function.
1344 (free_delayed_list): New function.
1345 (compute_delayed_physnames): New function.
1346 (process_full_comp_unit): Make a cleanup for the CU's delayed
1347 physname list, compute the delayed physnames, and free the
1349 (dwarf2_add_member_fn): For C++ and Java, delay the computation
1350 of the physname until after the CU is read.
1352 * dwarf2read.c (read_structure_type): Check if the current
1353 DIE's type was already completed after dwarf2_full_name
1356 2010-08-19 Stan Shebs <stan@codesourcery.com>
1358 * NEWS: Mention some additional changes.
1360 2010-08-19 Tom Tromey <tromey@redhat.com>
1362 * Makefile.in (install-python): Add DESTDIR.
1364 2010-08-19 Doug Evans <dje@google.com>
1367 * parser-defs.h (parse_float, parse_c_float): Declare.
1368 * parse.c (parse_float, parse_c_float): New function.
1369 * c-exp.y (parse_number): Call parse_c_float.
1370 * objc-exp.y (parse_number): Ditto.
1371 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
1372 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
1374 2010-08-19 Joel Brobecker <brobecker@adacore.com>
1376 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
1377 the arguments in the correct order.
1378 * symtab.c (maybe_add_partial_symtab_filename): Declare
1379 the arguments in the correct order.
1381 2010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1383 * varobj.c (varobj_create): Replace variable old_fi with old_id,
1384 initialize it by null_frame_id, wrap its usage by get_frame_id,
1385 frame_id_p and frame_find_by_id.
1387 2010-08-18 Tom Tromey <tromey@redhat.com>
1390 * configure: Rebuild.
1391 * configure.ac: Add install-python to CONFIG_INSTALL.
1392 * Makefile.in (install-python): New.
1394 2010-08-18 Doug Evans <dje@google.com>
1396 * gdb_assert.h (gdb_assert_not_reached): New macro.
1397 (gdb_assert_fail): Fix typo in comment.
1398 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
1400 * darwin-nat.c (darwin_check_new_threads): Ditto.
1401 * dwarf2read.c (dwarf2_get_section_info): Ditto.
1402 (munmap_section_buffer): Ditto.
1403 * m32c-tdep.c (make_types): Ditto.
1404 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
1405 * macroexp.c (get_character_constant): Ditto.
1406 (get_string_literal): Ditto.
1407 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
1408 (mep_pseudo_cr_index, mep_register_type): Ditto.
1409 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
1410 (mep_get_insn, mep_analyze_prologue): Ditto.
1411 * objfiles.c (qsort_cmp): Ditto.
1412 * prologue-value.c (pv_is_identical): Ditto.
1413 * record.c (record_get_loc): Ditto.
1414 * value.c (value_static_field): Ditto.
1415 * xtensa-tdep.c (call0_track_op): Ditto.
1417 2010-08-18 Tom Tromey <tromey@redhat.com>
1420 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
1421 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
1422 name-copying lower. Document exception behavior.
1423 * completer.c (expression_completer): Catch exceptions from
1424 parse_field_expression.
1426 2010-08-18 Pedro Alves <pedro@codesourcery.com>
1430 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
1431 workaround on core files.
1432 (try_thread_db_load_1): Don't try enabling thread event reporting
1434 (thread_db_load): Allow thread_db on core files.
1435 (attach_thread): Don't check thread signals on core files, nor try
1436 really attaching to the thread, nor enabling thread event event
1438 (thread_db_detach): Don't try disabing thread event reporting or
1439 removing thread event breakpoints when debugging a core file.
1440 (find_new_threads_callback): Don't try enabling thread event
1441 reporting on core files.
1442 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
1443 debugging a core file.
1444 (thread_db_find_new_threads): Don't update thread
1445 cores (processors) when debugging a core (dump).
1447 2010-08-18 Pedro Alves <pedro@codesourcery.com>
1451 * corelow.c (add_to_thread_list): Don't use
1452 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
1453 (get_core_register_section): Don't use
1454 gdbarch_core_reg_section_encodes_pid.
1456 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
1457 * gdbarch.h, gdbarch.c: Regenerate.
1458 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
1459 gdbarch_core_reg_section_encodes_pid.
1460 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
1461 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
1462 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1464 2010-08-18 Yao Qi <yao@codesourcery.com>
1466 * MAINTAINERS : Add myself under Write After Approval.
1468 2010-08-17 Tom Tromey <tromey@redhat.com>
1470 * NEWS: Mention template parameter support.
1472 2010-08-17 Pedro Alves <pedro@codesourcery.com>
1474 PR breakpoints/11371
1476 * breakpoint.c (decref_bp_location): Assert the reference count is
1479 2010-08-17 Pedro Alves <pedro@codesourcery.com>
1481 PR breakpoints/11371
1483 * breakpoint.c (breakpoint_init_inferior): Decrement the
1484 location's reference count instead of deleting right away.
1485 (bpstat_free): Decrement the location's reference count. Make
1487 (bpstat_copy): Increment the location's reference count.
1488 (bpstat_find_breakpoint): Adjust.
1489 (bpstat_num): Adjust.
1490 (print_it_typical): Adjust. Use the breakpoint pointer in the
1491 bpstat instead of the location's owner.
1492 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
1493 Adjust to record the location's owner in the bpstat.
1494 (watchpoint_check): Use the breakpoint pointer in the bpstat
1495 instead of the location's owner.
1496 (bpstat_check_breakpoint_conditions): Don't handle
1497 bp_watchpoint_scope here. Use the breakpoint pointer in the
1498 bpstat instead of the location's owner.
1499 (bpstat_stop_status): Defer inferior function calls to after
1500 building the bpstat list. Handle bp_watchpoint_scope here. Use
1501 the breakpoint pointer in the bpstat instead of the location's
1503 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
1504 the location's owner.
1505 (free_bp_location): Don't walk bpstats clearing locations.
1506 (incref_bp_location): New.
1507 (decref_bp_location): New.
1508 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
1509 instead of the location's owner.
1510 (update_global_location_list): Clear the location's owner, and
1511 decrement the location's reference count instead of deleting it
1513 (breakpoint_retire_moribund): Decrement the location's reference
1514 count instead of deleting it right away.
1515 (bpstat_remove_bp_location): Delete.
1516 (bpstat_remove_breakpoint): New.
1517 (bpstat_remove_bp_location_callback): Delete.
1518 (bpstat_remove_breakpoint_callback): New.
1519 (delete_breakpoint): Iterate over all threads' stop_bpstat's
1520 clearing references to the breakpoint that is being deleted.
1522 * breakpoint.h (struct bp_location) <refc>: New field.
1523 <owner>: Update comments.
1524 (bpstat_free): Delete declaration.
1525 (struct bpstats): Change the type of the breakpoint_at field to
1526 struct breakpoint point, from struct bp_location pointer. Add new
1527 field bp_location_at.
1529 2010-08-16 Tom Tromey <tromey@redhat.com>
1533 2010-08-16 Tom Tromey <tromey@redhat.com>
1535 * NEWS: Mention watch -location.
1537 2010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1539 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
1540 EXP_STRING_REPARSE to EXP_STRING.
1541 (watch_command_1): Set also EXP_STRING_REPARSE.
1542 (delete_breakpoint): Free also EXP_STRING_REPARSE.
1543 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
1544 Update comment for exp_string.
1546 2010-08-16 Tom Tromey <tromey@redhat.com>
1548 * value.c (release_value): Clear 'next' pointer.
1549 * breakpoint.c (watch_command_1): Add 'just_location' argument.
1550 (watch_command_wrapper): Update.
1551 (watch_maybe_just_location): New function.
1552 (watch_command): Update.
1553 (rwatch_command_wrapper): Update.
1554 (rwatch_command): Update.
1555 (awatch_command_wrapper): Update.
1556 (awatch_command): Update.
1557 (check_for_argument): New function.
1558 (_initialize_breakpoint): Update help text.
1560 2010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
1562 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
1563 typedef'ed function types correctly.
1565 2010-08-13 Tom Tromey <tromey@redhat.com>
1567 * python/python-internal.h (gdbpy_get_hook_function): Don't
1570 2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1572 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
1575 2010-08-13 Ken Werner <ken.werner@de.ibm.com>
1577 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
1578 the format strings to be compatible with Python 2.4.
1580 2010-08-13 Vladimir Prus <vladimir@codesourcery.com>
1582 Easier and more stubborn MI memory read commands.
1584 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
1585 and data-write-memory-bytes.
1586 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
1587 (mi_cmd_data_write_memory_bytes): New.
1588 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
1589 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
1591 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
1592 * target.c (target_read_until_error): Remove.
1593 (read_whatever_is_readable, free_memory_read_result_vector)
1594 (read_memory_robust): New.
1595 * target.h (target_read_until_error): Remove.
1596 (struct memory_read_result, free_memory_read_result_vector)
1597 (read_memory_robust): New.
1599 2010-08-13 Hui Zhu <teawater@gmail.com>
1601 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
1602 (read_comp_unit): Initialize back_to.
1604 2010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
1605 Pedro Alves <pedro@codesourcery.com>
1607 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
1608 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
1609 (struct partial_die_info) <has_template_arguments>: New field.
1610 <num_attrs>: Change type to unsigned char.
1611 <building_fullname>: New field.
1612 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
1613 allocate a CU if we don't have one already. Add a cleanup for the
1615 (partial_die_full_name): Handle template arguments not in
1617 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
1618 (load_full_comp_unit): Only allocate a CU if we don't have one
1620 (do_ui_file_peek_last): New.
1621 (dwarf2_compute_name): Handle template parameters not in
1623 (read_comp_unit): Read and free abbrevs if not read yet.
1624 (load_partial_dies): Handle template arguments not in DW_AT_name.
1625 (find_partial_die): If we have a CU, but no a partial dies yet,
1626 also read in the CU.
1627 (dwarf2_const_value_attr): New, abstracted out from
1629 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
1630 dwarf2_const_value_attr.
1631 (determine_prefix): Detect and break loops created by RCVT's debug
1633 (maybe_queue_comp_unit): Bail out early if reading partial
1635 (follow_die_offset): Load full CU if we have no dies.
1636 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
1637 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
1639 2010-08-11 Tom Tromey <tromey@redhat.com>
1640 Phil Muldoon <pmuldoon@redhat.com>
1642 * python/python.c (gdbpy_run_events): New function.
1643 (gdbpy_post_event): Likewise.
1644 (gdbpy_initialize_events): Likewise.
1645 (_initialize_python): Call gdbpy_initialize_events.
1647 2010-08-11 Ken Werner <ken.werner@de.ibm.com>
1649 * gdb/valarith.c (vector_binop): New function.
1650 (scalar_binop): Likewise.
1651 (value_binop): Call scalar_binop or vector_binop depending on the types.
1652 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
1653 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
1655 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
1657 2010-08-11 Brad Roberts <braddr@puremagic.com>
1659 * d-lang.c (extract_identifiers): Handle multiple digits.
1661 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1664 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
1665 Rename to dummy_frame_unwind.
1666 (dummy_frame_unwind): Remove.
1667 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
1668 * frame-unwind.c (frame_unwind_init): Use address of
1669 dummy_frame_unwind and inline_frame_unwind.
1670 * frame.c (create_sentinel_frame): Use address of
1671 sentinel_frame_unwind.
1672 * inline-frame.c (inline_frame_unwinder): Rename to
1673 inline_frame_unwind.
1674 (inline_frame_unwind): Remove.
1675 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
1676 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
1677 sentinel_frame_unwind.
1678 (sentinel_frame_unwind): Remove.
1679 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
1682 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1685 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
1686 and returned value. New comment from frame-unwind.h.
1687 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
1689 * frame.c (get_frame_id, frame_unwind_register_value)
1690 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
1691 (get_frame_type, frame_unwind_arch): Do not use the return value of
1692 frame_unwind_find_by_frame.
1694 2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
1695 Thiago Jung Bauermann <bauerman@br.ibm.com>
1696 Tom Tromey <tromey@redhat.com>
1698 * python/python.c (gdbpy_solib_address): New function.
1699 (gdbpy_decode_line): Likewise.
1701 2010-08-10 Tom Tromey <tromey@redhat.com>
1703 Revert gdb-add-index addition:
1704 * Makefile.in (install-only): Don't install gdb-add-index.
1705 * gdb-add-index.sh: Remove.
1707 2010-08-09 Kevin Buettner <kevinb@redhat.com>
1709 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
1710 `target_has_execution' check with `to_has_memory' check.
1711 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
1712 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
1713 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
1715 2010-08-09 Kevin Buettner <kevinb@redhat.com>
1717 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
1718 (resume_siggnal, resume_step): Move these static globals...
1719 (struct sim_inferior_data): ...into this new struct.
1720 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
1722 (gdb_callback, callbacks_initialized): Move these globals to
1723 a point earlier in the file.
1724 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
1725 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
1726 (gdbsim_close_inferior, gdbsim_resume_inferior)
1727 (gdbsim_stop_inferior): New functions.
1728 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
1730 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
1731 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
1732 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
1733 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
1734 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
1735 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
1736 new local variable `sim_data' in each of these functions. Use
1737 `sim_data' to reference former globals `program_loaded',
1738 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
1740 (gdbsim_open): Remove local variable `argv'. Put results of call
1741 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
1742 make a cleanup for it. Free it though when a sim instance cannot
1744 (gdbsim_close): Free sim_argv and null it out as appropriate.
1745 Close sim instances in all inferiors.
1746 (gdbsim_cntrl_c): Stop all inferiors.
1748 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
1750 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
1752 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
1753 function after symbol construction is complete.
1754 Do the same for template symbol addition to template_symbols list.
1756 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
1758 * symtab.c (symbol_get_demangled_name): Remove assertion and
1759 return NULL when language_specific.cplus_specific is not initialized.
1760 * stabsread.c (define_symbol): Set the name before calling
1761 cp_scan_for_anonymous_namespaces.
1763 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
1765 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
1766 SYMBOL_SET_LANGUAGE.
1767 (symbol_init_language_specific): Renamed to symbol_set_language.
1768 * symtab.c (symbol_init_language_specific): Removed redundant check
1770 Renamed to symbol_set_language.
1771 * stabsread.c (define_symbol): Updated.
1772 (read_enum_type): Updated
1773 * psymtab.c (add_psymbol_to_bcache): Updated.
1774 * minsyms.c (install_minimal_symbols): Updated.
1775 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
1776 SYMBOL_LANGUAGE to set the language.
1777 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
1778 * mdebugread.c (new_symbol): Ditto.
1779 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
1780 * dwarf2read.c (new_symbol_full): Ditto.
1781 * jv-lang.c (add_class_symbol): Ditto.
1783 2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1785 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
1786 (make_cleanup_restore_page_info)
1787 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
1788 * gdbcmd.h (execute_command_to_string): New declaration.
1789 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
1790 (make_cleanup_restore_ui_file): Move to utils.c
1791 (execute_gdb_command) <to_string>: Move ...
1792 * top.c (execute_command_to_string): ... here. Call
1793 set_batch_flag_and_make_cleanup_restore_page_info.
1794 * utils.c (make_cleanup_restore_integer): New source file blank line.
1795 (make_cleanup_restore_uinteger): New.
1796 (struct restore_ui_file_closure, do_restore_ui_file)
1797 (make_cleanup_restore_ui_file): Move here from python/python.c.
1798 (init_page_info) <batch_flag>
1799 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
1800 (set_batch_flag_and_make_cleanup_restore_page_info): New.
1802 2010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
1804 * thread.c (add_thread_silent): Use null_ptid instead of
1805 minus_one_ptid while getting rid of stale inferior_ptid.
1807 2010-08-06 Corinna Vinschen <vinschen@redhat.com>
1809 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
1810 Throughout, call read_encoded_value with ptr_size rather than addr_size.
1811 (decode_frame_entry_1): Remove redundant setting of
1812 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
1813 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
1814 on examined frame section. Add comment to explain why.
1815 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
1816 comment to explain usage.
1817 * gdbarch.c: Regenerate.
1818 * gdbarch.h: Regenerate.
1820 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
1822 2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1825 * varobj.c (varobj_create): Move variables fi, old_fi and block to
1828 2010-08-05 Pedro Alves <pedro@codesourcery.com>
1830 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
1831 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
1832 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
1833 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
1834 linux-tdep.o to gdb_target_obs.
1836 2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
1838 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
1841 2010-08-05 Hui Zhu <teawater@gmail.com>
1843 * mips-linux-tdep.c(regset.h): New include.
1844 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
1845 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
1846 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
1847 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
1848 mips_linux_regset_from_core_section): New functions.
1849 (fetch_core_registers, regset_core_fns): Deleted.
1850 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
1851 Deleted regset_core_fns.
1852 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
1853 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
1854 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
1857 2010-08-04 Pedro Alves <pedro@codesourcery.com>
1859 * s390-tdep.c: Include linux-tdep.h.
1860 (s390_gdbarch_init): Call linux_init_abi.
1862 2010-08-04 Pedro Alves <pedro@codesourcery.com>
1864 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
1865 instead of printing "Thread" here.
1866 * linux-tdep.c: Include inferior.h.
1867 (linux_core_pid_to_str): New.
1868 (linux_init_abi): New.
1869 * linux-tdep.h (linux_init_abi): Declare.
1870 * alpha-linux-tdep.c: Include linux-tdep.h.
1871 (alpha_linux_init_abi): Call linux_init_abi.
1872 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
1873 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
1874 * frv-linux-tdep.c: Include linux-tdep.h
1875 (frv_linux_init_abi): Call linux_init_abi.
1876 * hppa-linux-tdep.c: Include linux-tdep.h
1877 (hppa_linux_init_abi): Call linux_init_abi.
1878 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
1879 * ia64-linux-tdep.c: Include linux-tdep.h.
1880 (ia64_linux_init_abi): Call linux_init_abi.
1881 * m32r-linux-tdep.c: Include linux-tdep.h.
1882 (m32r_linux_init_abi): Call linux_init_abi.
1883 * m68klinux-tdep.c: Include linux-tdep.h.
1884 (m68k_linux_init_abi): Call linux_init_abi.
1885 * microblaze-linux-tdep.c: Include linux-tdep.h.
1886 (microblaze_linux_init_abi): Call linux_init_abi.
1887 * mips-linux-tdep.c: Include linux-tdep.h.
1888 (mips_linux_init_abi): Call linux_init_abi.
1889 * mn10300-linux-tdep.c: Include linux-tdep.h.
1890 (am33_linux_init_osabi): Call linux_init_abi. Rename the
1891 'gdbinfo' parameter to 'info'.
1892 * ppc-linux-tdep.c: Include linux-tdep.h.
1893 (ppc_linux_init_abi): Call linux_init_abi.
1894 * sh-linux-tdep.c: Include linux-tdep.h.
1895 (sh_linux_init_abi): Call linux_init_abi.
1896 * sparc-linux-tdep.c: Include linux-tdep.h.
1897 (sparc32_linux_init_abi): Call linux_init_abi.
1898 * sparc64-linux-tdep.c: Include linux-tdep.h.
1899 (sparc64_linux_init_abi): Call linux_init_abi.
1900 * xtensa-linux-tdep.c: Include linux-tdep.h.
1901 (xtensa_linux_init_abi): Call linux_init_abi.
1902 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
1903 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
1906 2010-08-03 Doug Evans <dje@google.com>
1908 * breakpoint.c (bpdisp_text): Constify bpdisps.
1909 * solib-svr4.c (solib_break_names): Constify.
1910 (bkpt_names, main_name_list): Constify.
1911 (match_main): Constify soname arg.
1912 (bfd_lookup_symbol): Remove unnecessary forward decl.
1913 Constify symname arg.
1914 (enable_break): Constify bkpt_namep.
1915 * symtab.c (search_symbols): Constify types, types2, types3, types4.
1916 (symtab_symbol_info): Constify classnames.
1918 2010-08-03 Phil Muldoon <pmuldoon@redhat.com>
1920 * NEWS: Document Python value inferior function calls.
1922 2010-08-02 Doug Evans <dje@google.com>
1924 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
1926 2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1928 * linux-thread-db.c (libthread_db_debug): New variable.
1929 (thread_db_find_new_threads_silently): Control verbosity with it.
1930 (try_thread_db_load_1, try_thread_db_load): Likewise.
1931 (find_new_threads_once): Likewise.
1932 (_initialize_thread_db): Set/show it.
1934 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1936 * common/signals.c (signals): Move the content to signals.def.
1937 Include it. Remove the INDENT comments.
1939 2010-07-30 Tom Tromey <tromey@redhat.com>
1941 * Makefile.in (install-only): Install gdb-add-index.
1942 * gdb-add-index.sh: New file.
1944 2010-07-31 Renquan Cheng <crq@gcc.gnu.org>
1946 * MAINTAINERS: Add myself for write after approval privileges.
1948 2010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1950 * symfile.c (addr_section_name): New function.
1951 (addrs_section_compar): Use it.
1952 (addr_info_make_relative): Use it. Move variable sect_name into a more
1953 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
1955 2010-07-30 Tom Tromey <tromey@redhat.com>
1957 * configure: Rebuild.
1958 * configure.ac: Add missing case for Python 2.7.
1960 2010-07-29 DJ Delorie <dj@redhat.com>
1962 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
1965 2010-07-29 Pedro Alves <pedro@codesourcery.com>
1967 * PROBLEMS: Remove mention of all problems.
1969 2010-07-28 Pedro Alves <pedro@codesourcery.com>
1972 * configure.ac: Check for wresize.
1973 * configure, config.in: Regenerate.
1974 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
1977 2010-07-28 Tom Tromey <tromey@redhat.com>
1980 * python/py-type.c (typy_legacy_template_argument): New function,
1981 extracted from typy_template_argument.
1982 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
1985 2010-07-28 Oleg Nesterov <oleg@redhat.com>
1987 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
1989 2010-07-27 Tom Tromey <tromey@redhat.com>
1991 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
1993 2010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
1995 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
1996 handling DW_AT_object_pointer, and workaround GCC PR 43053.
1998 2010-07-28 Tom Tromey <tromey@redhat.com>
2000 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
2002 2010-07-28 Joel Brobecker <brobecker@adacore.com>
2004 * remote.c (remote_download_tracepoint): Add missing gettext markup.
2005 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
2007 2010-07-28 Joel Brobecker <brobecker@adacore.com>
2009 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
2010 down, just before the block that parse the breakpoint addr_string.
2012 2010-07-28 Tom Tromey <tromey@redhat.com>
2015 * symfile.c (reread_symbols): Clear template_symbols.
2016 * symtab.h (struct symbol) <is_cplus_template_function>: New
2018 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
2019 (struct template_symbol): New.
2020 * symtab.c (lookup_symbol_aux_local): Use
2021 cp_lookup_symbol_imports_or_template.
2022 * objfiles.h (struct objfile) <template_symbols>: New field.
2023 * objfiles.c (relocate_one_symbol): New function.
2024 (objfile_relocate1): Use it. Relocate isolated symbols.
2025 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
2026 template_arguments>: New fields.
2027 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
2028 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
2029 (TYPE_TEMPLATE_ARGUMENT): Likewise.
2030 (lookup_typename): Update.
2031 * gdbtypes.c (lookup_typename): Constify "block" argument.
2032 * dwarf2read.c: Include vec.h.
2033 (symbolp): New typedef.
2034 (read_func_scope): Read template arguments. Allocate a
2035 template_symbol when needed.
2036 (read_structure_type): Read template arguments.
2037 (new_symbol_full): New function, from new_symbol. Handle
2038 DW_TAG_template_type_param and DW_TAG_template_value_param.
2039 (new_symbol): Rewrite as wrapper.
2040 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
2041 * cp-namespace.c: Include language.h.
2042 (search_symbol_list): New function.
2043 (cp_lookup_symbol_imports_or_template): Likewise.
2045 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
2047 * tui/tui-win.c (make_visible_with_new_height): Resize and move
2048 the command window to the new size and position.
2050 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
2052 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
2055 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
2057 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
2058 after a detecting a resize.
2059 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
2062 2010-07-28 Pedro Alves <pedro@codesourcery.com>
2064 * configure.ac: Check for resize_term.
2065 * configure, config.in: Regenerate.
2067 2010-07-27 Joel Brobecker <brobecker@adacore.com>
2069 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
2071 2010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
2073 * dwarf2read.c (read_string): Rename to ...
2074 (read_direct_string): ... this.
2075 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
2076 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
2078 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2080 * linux-nat.c (linux_nat_lp_status_is_event): New function.
2081 (count_events_callback, select_event_lwp_callback)
2082 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
2084 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2086 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
2087 (_initialize_ia64_linux_nat): Install it.
2088 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
2089 (linux_nat_set_status_is_event): New.
2090 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
2091 cancel_breakpoints_callback, linux_nat_filter_event)
2092 (linux_nat_wait_1): Use linux_nat_status_is_event.
2093 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
2095 2010-07-27 Tom Tromey <tromey@redhat.com>
2097 * NEWS: Mention labels, .gdb_index.
2099 2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
2101 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
2102 "start,+length" form of arguments.
2103 * NEWS: Add "Changed commands" (disassemble) section for "Changes
2104 since GDB 7.1"; and merge two separated paragraphs of disassemble
2105 description in "Changes in GDB 7.0".
2107 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2109 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
2110 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
2111 (fputs_maybe_filtered): Do not do filtering also on
2112 ! INPUT_FROM_TERMINAL_P.
2114 2010-07-27 Joel Brobecker <brobecker@adacore.com>
2116 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
2119 2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
2121 * python/py-value.c (valpy_call): New Function.
2123 2010-07-27 Ken Werner <ken.werner@de.ibm.com>
2125 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
2126 types_list_elements variables.
2128 2010-07-26 Tom Tromey <tromey@redhat.com>
2130 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
2131 TLS with DW_OP_const4u or DW_OP_const8u.
2133 2010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
2135 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
2136 VSX registers contents.
2138 2010-07-26 Jerome Guitton <guitton@adacore.com>
2140 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
2141 its adress is null. Add comment to explain why.
2142 (new_symbol): Ditto.
2144 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2146 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
2147 the host signal first.
2149 2010-07-23 Tom Tromey <tromey@redhat.com>
2151 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
2152 type_comp_units>: New fields.
2153 (dw2_get_cu): New function.
2154 (create_cus_from_index): Remove unused argument.
2155 (create_signatured_type_hash_from_index): New function.
2156 (create_addrmap_from_index): Update.
2157 (dwarf2_read_index): Handle version 2.
2158 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
2159 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
2160 (dw2_print_stats, dw2_expand_all_symtabs)
2161 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
2162 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
2163 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
2164 (allocate_signatured_type_hash_table): New function.
2165 (add_signatured_type_cu_to_list): Likewise.
2166 (create_debug_types_hash_table): Use them. Set type_comp_units.
2167 (read_signatured_type): Ensure section data is available.
2168 (add_address_entry): Don't record empty ranges.
2169 (struct signatured_type_index_data): New.
2170 (write_one_signatured_type): New function.
2171 (write_psymtabs_to_index): Write type CUs.
2172 (save_gdb_index_command): Update comment.
2173 (process_type_comp_unit): Move inititalization of
2175 (create_debug_types_hash_table): ... here.
2177 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2179 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
2180 cleanup and generating of gdb script to it.
2181 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
2182 and terminal size. Convert $tmpfile to a series of -ex-es.
2184 2010-07-23 Keith Seitz <keiths@redhat.com>
2186 * symtab.c (basic_lookup_transparent_type): Call pre-expand
2187 hook for STATIC_BLOCK types, too.
2189 2010-07-23 Keith Seitz <keiths@redhat.com>
2191 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
2192 and vector definition.
2194 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2196 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
2198 2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2200 * dwarf2read.c: Include completer.h.
2201 (save_gdb_index_command): Use matching usage command name.
2202 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
2203 Set filename_completer for it.
2205 2010-07-22 Tom Tromey <tromey@redhat.com>
2207 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
2208 type signature's per-CU data.
2210 2010-07-22 Pedro Alves <pedro@codesourcery.com>
2212 * NEWS: Mention target reported shared libraries support by
2215 2010-07-21 Pedro Alves <pedro@codesourcery.com>
2220 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2221 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
2222 and DW_TAG_volatile_type.
2223 (new_symbol): Likewise.
2225 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
2227 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
2228 function symbols before overload resolution.
2230 2010-07-21 Pedro Alves <pedro@codesourcery.com>
2232 * breakpoint.c (bptype_string): New, abstracted out from
2233 print_one_breakpoint_location.
2234 (print_one_breakpoint_location): Adjust.
2235 (breakpoint_1): Adjust the type column width dynamically.
2237 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2239 * symfile.c (find_separate_debug_file_by_debuglink): Remove
2240 a gdb_assert call, new comment.
2242 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2244 * linux-nat.c (linux_handle_extended_wait): Handle case when
2245 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
2247 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2250 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
2251 linux_nat_wait_1. Use always LP->STATUS afterwards.
2253 2010-07-20 Hui Zhu <teawater@gmail.com>
2255 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
2256 (inf_ptrace_attach): Ditto.
2258 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2260 Make core files the process_stratum.
2261 * corefile.c (core_target): New variable.
2262 (core_file_command): Remove variable t, use core_target.
2263 * corelow.c (core_ops): Make it static.
2264 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
2265 * defs.h (make_cleanup_unpush_target): New prototype.
2266 * gdbarch.h: Regenerate.
2267 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
2268 * gdbcore.h (core_target): New declaration.
2269 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
2270 variables ops_already_pushed and back_to. Use push_target,
2271 make_cleanup_unpush_target and discard_cleanups calls.
2272 * record.c (record_open): Replace core_stratum by a core_bfd check.
2273 * target.c (target_is_pushed): New function.
2274 (find_core_target): Remove.
2275 * target.h (enum strata) <core_stratum>: Remove.
2276 (target_is_pushed): New declaration.
2277 (find_core_target): Remove declaration.
2278 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
2279 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
2281 2010-07-19 Hui Zhu <teawater@gmail.com>
2283 * breakpoint.c (single_step_breakpoints_inserted): New
2285 * breakpoint.h (single_step_breakpoints_inserted): Extern.
2286 * infrun.c (maybe_software_singlestep): Add check code.
2287 * record.c (record_resume): Add code for software single step.
2288 (record_wait): Ditto.
2290 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2292 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
2293 a more inner block. Remove its unused declaration initializer.
2295 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
2297 * NEWS: Mention support for the new ptrace interface and hardware
2298 accelerated watchpoint conditions on powerpc-linux.
2300 2010-07-16 Ozkan Sezer <sezeroz@gmail.com>
2302 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
2303 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
2304 and host_address_to_string() and %s for pointers.
2305 (debug_to_remove_breakpoint): Likewise.
2306 (debug_to_region_ok_for_hw_watchpoint): Likewise.
2307 (debug_to_can_accel_watchpoint_condition): Likewise.
2308 (debug_to_stopped_data_address): Likewise.
2309 (debug_to_watchpoint_addr_within_range): Likewise.
2310 (debug_to_insert_hw_breakpoint): Likewise.
2311 (debug_to_remove_hw_breakpoint): Likewise.
2312 (debug_to_insert_watchpoint): Likewise.
2313 (debug_to_remove_watchpoint): Likewise.
2315 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2317 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
2319 (cplus_specific): New struct.
2320 * symtab.c (symbol_set_demangled_name): Updated.
2321 Use cplus_specific for cplus symbols.
2322 (symbol_get_demangled_name): Retrive the name from the cplus_specific
2323 struct for cplus symbols.
2324 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
2325 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
2326 * symtab.c (symbol_init_cplus_specific): New function.
2328 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2330 * symtab.h (symbol_set_demangled_name): New function.
2331 (symbol_get_demangled_name): New function.
2332 * symtab.c (symbol_set_demangled_name): New function.
2333 (symbol_get_demangled_name): New function.
2334 (symbol_init_language_specific): Use demangled_name setter and getter.
2335 (symbol_set_names): Ditto.
2336 (symbol_natural_name): Ditto.
2337 (symbol_demangled_name): Ditto.
2338 * dwarf2read.c (new_symbol): Ditto.
2340 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2342 * symtab.h: Renamed cplus_specific to mangled_lang.
2343 * symtab.c (symbol_init_language_specific): Updated.
2344 (symbol_set_names): Updated.
2345 (symbol_natural_name): Updated.
2346 (symbol_demangled_name): Updated.
2347 * ada-lang.c (ada_decode_symbol): Updated.
2348 * dwarf2read.c (new_symbol): Updated.
2350 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
2352 * valops.c (value_assign): Do not call to value_coerce_to_target.
2353 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
2355 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
2357 * MAINTAINERS: Add myself for write after approval privileges.
2359 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
2361 * c-valprint.c (c_val_print): Add embedded_offset to address in
2362 call to val_print_array_elements.
2364 2010-07-13 Tom Tromey <tromey@redhat.com>
2366 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
2368 2010-07-13 Tom Tromey <tromey@redhat.com>
2370 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
2373 2010-07-13 Tom Tromey <tromey@redhat.com>
2375 * symfile.c (set_initial_language): Update.
2376 (deduce_language_from_filename): Argument type now const.
2377 * symtab.h (find_main_filename): Update.
2378 (deduce_language_from_filename): Update.
2379 * symtab.c (find_main_filename): Make result const.
2380 * dwarf2read.c (dw2_find_symbol_file): Change return type.
2381 * psymtab.c (find_symbol_file_from_partial): Change return type.
2382 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2385 2010-07-13 Tom Tromey <tromey@redhat.com>
2387 * breakpoint.c (save_cmdlist): No longer static.
2388 * gdbcmd.h (save_cmdlist): Declare.
2389 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
2390 OBJF_READNOW on objfile if readnow_symbol_files.
2391 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
2392 (elf_sym_fns_gdb_index): New global.
2393 * dwarf2read.c: Include exceptions.h.
2395 (struct mapped_index): New.
2396 (dwarf2_per_cu_data_ptr): New typedef.
2397 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
2399 (GDB_INDEX_SECTION): New define.
2400 (struct dwarf2_per_cu_quick_data): New.
2401 (struct dwarf2_per_cu_data) <objfile>: New field.
2404 (byte_swap): New function.
2405 (MAYBE_SWAP): New macro.
2406 (INDEX_SUFFIX): New macro.
2407 (dw2_do_instantiate_symtab): New function.
2408 (dw2_instantiate_symtab): Likewise.
2409 (create_cus_from_index): Likewise.
2410 (create_addrmap_from_index): Likewise.
2411 (mapped_index_string_hash): Likewise.
2412 (find_slot_in_mapped_hash): Likewise.
2413 (dwarf2_read_index): Likewise.
2414 (dw2_setup): Likewise.
2415 (dw2_require_line_header): Likewise.
2416 (dw2_require_full_path): Likewise.
2417 (dw2_find_last_source_symtab): Likewise.
2418 (dw2_forget_cached_source_info): Likewise.
2419 (dw2_lookup_symtab): Likewise.
2420 (dw2_lookup_symbol): Likewise.
2421 (dw2_do_expand_symtabs_matching): Likewise.
2422 (dw2_pre_expand_symtabs_matching): Likewise.
2423 (dw2_print_stats): Likewise.
2424 (dw2_dump): Likewise.
2425 (dw2_relocate): Likewise.
2426 (dw2_expand_symtabs_for_function): Likewise.
2427 (dw2_expand_all_symtabs): Likewise.
2428 (dw2_expand_symtabs_with_filename): Likewise.
2429 (dw2_find_symbol_file): Likewise.
2430 (dw2_map_ada_symtabs): Likewise.
2431 (dw2_expand_symtabs_matching): Likewise.
2432 (dw2_find_pc_sect_symtab): Likewise.
2433 (dw2_map_symbol_names): Likewise.
2434 (dw2_map_symbol_filenames): Likewise.
2435 (dw2_has_symbols): Likewise.
2436 (dwarf2_gdb_index_functions): New global.
2437 (dwarf2_initialize_objfile): New function.
2438 (process_psymtab_comp_unit): Update.
2439 (add_partial_subprogram): Likewise.
2440 (dwarf2_psymtab_to_symtab): Likewise.
2441 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
2442 (process_full_comp_unit): Update.
2443 (find_file_and_directory): New function.
2444 (read_file_scope): Use find_file_and_directory.
2445 (dwarf2_per_cu_objfile): Update.
2446 (dwarf2_per_cu_addr_size): Update.
2447 (dwarf2_per_cu_offset_size): Update.
2448 (dwarf2_free_objfile): Free the index, if needed.
2449 (dwarf2_per_objfile_free): Unmap the index, if needed.
2450 (struct strtab_entry): New.
2451 (hash_strtab_entry): New function.
2452 (eq_strtab_entry): Likewise.
2453 (create_strtab): Likewise.
2454 (add_string): Likewise.
2455 (struct symtab_index_entry): New.
2456 (struct mapped_symtab): New.
2457 (hash_symtab_entry): New function.
2458 (eq_symtab_entry): Likewise.
2459 (delete_symtab_entry): Likewise.
2460 (create_index_table): Likewise.
2461 (create_mapped_symtab): Likewise.
2462 (cleanup_mapped_symtab): Likewise.
2463 (find_slot): Likewise.
2464 (hash_expand): Likewise.
2465 (add_index_entry): Likewise.
2466 (add_indices_to_cpool): Likewise.
2467 (write_hash_table): Likewise.
2468 (add_address_entry): Likewise.
2469 (write_psymbols): Likewise.
2470 (write_obstack): Likewise.
2471 (unlink_if_set): Likewise.
2472 (write_psymtabs_to_index): Likewise.
2473 (save_gdb_index_command): Likewise.
2474 (_initialize_dwarf2_read): Install "save gdb-index"
2476 (create_all_comp_units): Initialize 'objfile' field of CU.
2477 (dwarf2_locate_sections): Check for .gdb_index.
2478 * psymtab.h (dwarf2_gdb_index_functions): Declare.
2479 * symfile.h (dwarf2_initialize_objfile): Declare.
2481 2010-07-13 Tom Tromey <tromey@redhat.com>
2483 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
2484 (basic_lookup_transparent_type): Likewise.
2485 * symfile.h (struct quick_symbol_functions)
2486 <pre_expand_symtabs_matching>: New field.
2487 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
2488 (psym_functions): Update.
2490 2010-07-13 Tom Tromey <tromey@redhat.com>
2492 PR breakpoints/8357:
2493 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
2494 * linespec.c (decode_line_1): Update comment. Call decode_label.
2495 (decode_label): New function.
2496 (symbol_found): Handle LOC_LABEL.
2497 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
2498 domain. Call add_symbol_to_list.
2500 2010-07-13 Tom Tromey <tromey@redhat.com>
2502 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
2503 * dwarf2loc.c (find_location_expression): Use
2504 dwarf2_per_cu_text_offset.
2505 (dwarf2_evaluate_loc_desc): Likewise.
2506 (dwarf2_loc_desc_needs_frame): Likewise.
2507 (compile_dwarf_to_ax): Likewise.
2508 (loclist_describe_location): Likewise.
2509 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
2510 (dwarf2_per_cu_objfile): Update comment.
2512 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2514 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
2515 * p-lang.c (pascal_printstr): Likewise.
2517 2010-07-09 Tom Tromey <tromey@redhat.com>
2519 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
2520 'hint' if it is NULL.
2522 2010-07-09 Hui Zhu <teawater@gmail.com>
2524 * source.c (print_source_lines_base): Add check for noprint.
2526 2010-07-08 Joel Brobecker <brobecker@adacore.com>
2528 * python/python-config.py: Resync with Python 2.7 version of this
2531 2010-07-08 Joel Brobecker <brobecker@adacore.com>
2533 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
2535 2010-07-07 Joel Brobecker <brobecker@adacore.com>
2537 * NEWS: Create a new section for the next release branch.
2538 Rename the section of the current branch, now that it has
2541 2010-07-07 Joel Brobecker <brobecker@adacore.com>
2543 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
2544 * version.in: Bump version to 7.2.50.20100707-cvs.
2546 2010-07-07 Tom Tromey <tromey@redhat.com>
2548 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
2549 LOC_COMPUTED symbol.
2550 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
2551 (dwarf2_loc_desc_needs_frame): Likewise.
2552 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
2553 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
2554 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
2555 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
2557 (struct dwarf2_frame_cache) <text_offset>: New field.
2558 (dwarf2_frame_cache): Set new field.
2559 (dwarf2_frame_prev_register): Update.
2560 (dwarf2_frame_sniffer): Update.
2561 (dwarf2_frame_base_sniffer): Update.
2562 (dwarf2_frame_find_fde): Add 'out_offset' argument.
2564 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2565 Thiago Jung Bauermann <bauerman@br.ibm.com>
2567 Support for hw accelerated condition watchpoints in booke powerpc.
2569 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
2570 and move to eval.c. Change callers.
2571 (insert_bp_location): Pass watchpoint condition in
2572 target_insert_watchpoint.
2573 (remove_breakpoint_1) Pass watchpoint condition in
2574 target_remove_watchpoint.
2575 (watchpoint_locations_match): Call
2576 target_can_accel_watchpoint_condition.
2577 * eval.c: Include wrapper.h.
2578 (fetch_subexp_value): Moved from breakpoint.c.
2579 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
2581 (can_use_watchpoint_cond_accel): New function.
2582 (calculate_dvc): Likewise.
2583 (num_memory_accesses): Likewise.
2584 (check_condition): Likewise.
2585 (ppc_linux_can_accel_watchpoint_condition): Likewise
2586 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
2587 check_condition and calculate_dvc.
2588 (ppc_linux_remove_watchpoint): Likewise.
2589 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
2590 ppc_linux_can_accel_watchpoint_condition
2591 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
2593 (debug_to_remove_watchpoint): Likewise.
2594 (debug_to_can_accel_watchpoint_condition): New function.
2595 (update_current_target): Set to_can_accel_watchpoint_condition.
2596 (setup_target_debug): Set to_can_accel_watchpoint_condition.
2597 * target.h: Add opaque declaration for struct expression.
2598 (struct target_ops) <to_insert_watchpoint>,
2599 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
2600 <to_can_accel_watchpoint_condition>: New member.
2601 condition. Update all callers and implementations.
2602 (target_can_accel_watchpoint_condition): New macro.
2603 * value.c (free_value_chain): New function.
2604 * value.h (fetch_subexp_value): New prototype.
2605 (free_value_chain): Likewise.
2607 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
2609 * linux-nat.c (linux_nat_do_thread_registers): Use section size
2610 from gdbarch_core_regset_sections also for .reg if present.
2612 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
2613 section size for .reg.
2614 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
2615 (ppc_linux_vmx_regset_sections): Likewise.
2616 (ppc_linux_fp_regset_sections): Likewise.
2617 (ppc64_linux_vsx_regset_sections): New variable.
2618 (ppc64_linux_vmx_regset_sections): Likewise.
2619 (ppc64_linux_fp_regset_sections): Likewise.
2620 (ppc_linux_init_abi): Install core_regset_section lists appropriate
2621 for current word size.
2623 2010-07-06 Joel Brobecker <brobecker@adacore.com>
2625 * server.c (myresume): Make static.
2627 2010-07-06 Tom Tromey <tromey@redhat.com>
2629 * configure, config.in: Rebuild.
2630 * configure.ac (HAVE_LIBPYTHON2_7): New define.
2631 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
2633 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
2635 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
2638 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
2640 * gdbtypes.h (floatformats_ieee_half): Add declaration.
2641 * gdbtypes.c (floatformats_ieee_half): New variable.
2642 * doublest.c (floatformat_from_length): Set format to
2643 gdbarch_half_format if length matches.
2644 * gdbarch.sh (half_bit): New architecture method.
2645 (half_format): Likewise.
2646 * gdbarch.h: Regenerate.
2647 * gdbarch.c: Likewise.
2649 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2650 Joel Brobecker <brobecker@adacore.com>
2652 Fix re-run of PIE executable, PR shlibs/11776.
2653 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
2654 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
2656 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2657 Joel Brobecker <brobecker@adacore.com>
2659 * auxv.c (memory_xfer_auxv): Update attach comment.
2660 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
2661 svr4_relocate_main_executable.
2662 (svr4_solib_create_inferior_hook): Make the call to
2663 svr4_relocate_main_executable unconditional.
2665 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2666 Joel Brobecker <brobecker@adacore.com>
2668 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
2670 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2671 Joel Brobecker <brobecker@adacore.com>
2673 Fix attaching to PIEs prelinked on the disk after the process was
2675 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
2676 Verify it against bfd_get_arch_size. Try to match arbitrary
2677 displacement for the phdrs comparison.
2679 2010-07-02 Tom Tromey <tromey@redhat.com>
2682 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
2683 value as optimized-out.
2685 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
2686 Thiago Jung Bauermann <bauerman@br.ibm.com>
2688 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
2689 represent?" question in comment. Change comment to a proper sentence.
2691 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
2693 * c-valprint.c (c_val_print): Fix printing of character vectors.
2695 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2697 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
2698 create_breakpoint prototype.
2700 2010-07-01 Pedro Alves <pedro@codesourcery.com>
2702 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
2703 usefulness suggestion of multiple breakpoints at same location.
2705 2010-07-01 Pedro Alves <pedro@codesourcery.com>
2707 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
2709 2010-07-01 Pedro Alves <pedro@codesourcery.com>
2711 * dwarf2loc.c (locexpr_tracepoint_var_ref)
2712 (loclist_tracepoint_var_ref): Handle optimized out values.
2714 2010-07-01 Pedro Alves <pedro@codesourcery.com>
2716 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
2717 unnecessary space in string.
2718 * filesystem.c (_initialize_filesystem): Ditto.
2719 * frame.c (_initialize_frame): Ditto.
2720 * infcmd.c (step_once): Ditto.
2721 * infrun.c (_initialize_infrun): Ditto.
2722 * linux-nat.c (linux_child_follow_fork): Ditto.
2723 * maint.c (maintenance_deprecate): Ditto.
2724 * memattr.c (_initialize_mem): Ditto.
2725 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2726 * monitor.c (monitor_open): Ditto.
2727 * procfs.c (procfs_xfer_memory): Ditto.
2728 * reverse.c (bookmarks_info): Ditto.
2729 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
2730 * stack.c (_initialize_stack): Ditto.
2731 * tracepoint.c (_initialize_tracepoint): Ditto.
2732 * xtensa-tdep.c (xtensa_supply_gregset,
2733 xtensa_regset_from_core_section): Ditto.
2735 2010-07-01 Tom Tromey <tromey@redhat.com>
2737 * value.h (struct lval_funcs) <check_any_valid>: Rename from
2739 * value.c (value_entirely_optimized_out): Invert result. Update
2740 for new function name.
2742 2010-07-01 Pedro Alves <pedro@codesourcery.com>
2744 Static tracepoints support.
2746 * NEWS: Mention new support for static tracepoints.
2747 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
2748 qXfer:statictrace:read.
2749 (New features in the GDB remote stub, GDBserver): Mention static
2750 tracepoints support using an UST based backend.
2751 (New commands): Mention "info static-tracepoint-markers" and
2753 * breakpoint.c (is_marker_spec): New.
2754 (is_tracepoint): Handle static tracepoints.
2755 (validate_commands_for_breakpoint): Static tracepoints can't do
2757 (static_tracepoints_here): New.
2758 (bpstat_what): Handle static tracepoints.
2759 (print_one_breakpoint_location, allocate_bp_location, mention):
2761 (create_breakpoint_sal): Ditto.
2762 (decode_static_tracepoint_spec): New.
2763 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
2764 `type_wanted'. Adjust. Handle static tracepoint marker
2766 (break_command_1): Adjust.
2767 (update_static_tracepoint): New.
2768 (update_breakpoint_locations): Handle static tracepoints.
2769 (breakpoint_re_set_one): Handle static tracepoint marker
2771 (disable_command, enable_command): Handle static tracepoints.
2772 (trace_command, ftrace_command): Adjust.
2773 (strace_command): New.
2774 (create_tracepoint_from_upload): Adjust.
2775 (save_breakpoints): Handle static tracepoints.
2776 (_initialize_breakpoint): Install the "strace" command.
2777 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
2778 (struct breakpoint): New fields static_trace_marker_id and
2779 static_trace_marker_id_idx.
2780 (breakpoints_here_p): Declare.
2781 (create_breakpoint): Adjust.
2782 (static_tracepoints_here): Declare.
2783 * remote.c (struct remote_state) <static_tracepoints>: New field.
2784 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
2785 (remote_static_tracepoint_marker_at): New.
2786 (remote_static_tracepoint_markers_by_strid): New.
2787 (remote_static_tracepoint_feature): New.
2788 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
2789 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
2790 (remote_supports_static_tracepoints): New.
2791 (remote_download_tracepoint): Download static tracepoints.
2792 (init_remote_ops): Install remote_static_tracepoint_marker_at and
2793 remote_static_tracepoint_markers_by_strid.
2794 (_initialize_remote): Install set|show remote static-tracepoints,
2795 and set|show remote read-sdata-object commands.
2796 * target.c (update_current_target): Inherit and default
2797 to_static_tracepoint_marker_at, and
2798 to_static_tracepoint_markers_by_strid.
2799 * target.h (static_tracepoint_marker): Forward declare.
2800 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
2801 (static_tracepoint_marker_p): New typedef.
2802 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
2803 (struct target_ops): New fields to_static_tracepoint_marker_at and
2804 to_static_tracepoint_markers_by_strid.
2805 (target_static_tracepoint_marker_at)
2806 (target_static_tracepoint_markers_by_strid): New.
2807 * tracepoint.c: Include source.h.
2808 (validate_actionline): Handle $_sdata.
2809 (struct collection_list): New field strace_data.
2810 (add_static_trace_data): New.
2811 (clear_collection_list): Clear strace_data.
2812 (stringify_collection_list): Account for a possible static trace
2814 (encode_actions_1): Encode an $_sdata collection.
2815 (parse_tracepoint_definition): Handle static tracepoints.
2816 (parse_static_tracepoint_marker_definition): New.
2817 (release_static_tracepoint_marker): New.
2818 (print_one_static_tracepoint_marker): New.
2819 (info_static_tracepoint_markers_command): New.
2820 (sdata_make_value): New.
2821 (_initialize_tracepoint): Create the $_sdata convenience variable.
2822 Add the "info static-tracepoint-markers" command.
2823 Mention $_sdata in the "collect" command's help output.
2824 * tracepoint.h (struct static_tracepoint_marker): New.
2825 (parse_static_tracepoint_marker_definition)
2826 (release_static_tracepoint_marker): Declare.
2827 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
2828 * python/py-breakpoint.c (bppy_new): Adjust.
2830 2010-06-30 Joel Brobecker <brobecker@adacore.com>
2832 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
2835 2010-06-29 Doug Evans <dje@google.com>
2838 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
2839 DW_AT_external is present.
2843 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
2844 create a symbol for the field and record the value.
2845 (new_symbol): Handle DW_TAG_member.
2846 * gdbtypes.c (field_is_static): Remove FIXME.
2847 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
2848 only ignore LOC_CONST symbols that are enums.
2850 * dwarf2read.c: Remove trailing whitespace.
2852 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
2853 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
2854 (struct main_type, field loc): Delete dwarf_block.
2855 (FIELD_DWARF_BLOCK): Delete.
2856 (SET_FIELD_DWARF_BLOCK): Delete.
2857 (TYPE_FIELD_DWARF_BLOCK): Delete.
2858 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
2861 2010-06-29 Hui Zhu <teawater@gmail.com>
2863 * record.c (set_record_pic_cmdlist,
2864 show_record_pic_cmdlist): New variables.
2865 (set_record_pic_command,
2866 show_record_pic_command): New functions.
2867 (record_pic_function, record_pic_line, record_pic_enum,
2868 set_record_pic_type, record_pic_hide_nofunction,
2869 record_pic_hide_nosource, record_pic_hide_same): New variables.
2870 (record_pic_fputs): New function.
2871 (function_list, node_list, edge_list): New struct.
2872 (function_list, node_list, edge_list): New variables.
2873 (record_pic_cleanups, record_pic_node,
2874 record_pic_edge, cmd_record_pic): New functions.
2875 (_initialize_record): Add new commands for record pic.
2877 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2879 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
2880 ALLOCATE_CPLUS_STRUCT_TYPE.
2882 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
2883 Tom Tromey <tromey@redhat.com>
2884 Thiago Jung Bauermann <bauerman@br.ibm.com>
2886 * value.c (pack_unsigned_long): New function.
2887 (value_from_ulongest): New function.
2888 * value.h (value_from_ulongest): Declare.
2889 * python/python.c (_initialize_python): Call
2890 gdbpy_initialize_thread and gdbpy_initialize_inferior.
2891 * python/python-internal.h: Define thread_object.
2892 (gdbpy_inferiors, gdbpy_selected_thread)
2893 (frame_info_to_frame_object, create_thread_object)
2894 (find_thread_object, find_inferior_object)
2895 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
2896 (gdbpy_is_value_object, get_addr_from_python): Declare.
2897 * python/py-value.c (builtin_type_upylong): Define.
2898 (convert_value_from_python): Add logic for ulongest.
2899 (gdbpy_is_value_object): New function.
2900 * python/py-utils.c (get_addr_from_python): New function.
2901 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
2902 (gdbpy_selected_frame): Use PyObject over frame_info.
2903 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
2905 (SUBDIR_PYTHON_SRCS): Likewise.
2906 (py-inferior.o): New Rule.
2907 (py-infthread.o): New Rule.
2908 * python/py-inferior.c: New File.
2909 * python/py-infthread.c: New File.
2911 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2913 * c-typeprint.c (c_type_print_base): For no fields check include also
2914 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
2915 * dwarf2read.c (struct typedef_field_list)
2916 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
2917 (dwarf2_add_typedef): New.
2918 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
2919 Copy also FI.TYPEDEF_FIELD_LIST.
2920 * gdbtypes.h (struct typedef_field)
2921 (struct cplus_struct_type) <typedef_field, typedef_field_count>
2922 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
2923 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
2925 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2927 * cp-namespace.c (cp_lookup_nested_type): New variable
2928 concatenated_name. Turn the current return condition into a reverse
2929 one. Call also lookup_static_symbol_aux on the constructed qualified
2931 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
2932 other files into a called ...
2933 (lookup_static_symbol_aux): ... new function here.
2934 * symtab.h (lookup_static_symbol_aux): New prototype.
2935 * valops.c (value_maybe_namespace_elt): Call also
2936 lookup_static_symbol_aux if we failed otherwise.
2938 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2940 Fix PR c++/11703 and PR gdb/1448.
2941 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
2944 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2946 Fix modification of cplus_struct_default.
2947 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
2948 Call ALLOCATE_CPLUS_STRUCT_TYPE.
2949 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
2951 2010-06-28 Joel Brobecker <brobecker@adacore.com>
2953 * NEWS: Add entry announcing the python directory.
2955 2010-06-28 Tom Tromey <tromey@redhat.com>
2957 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
2959 2010-06-28 Doug Evans <dje@google.com>
2961 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
2962 All callers updated.
2964 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2966 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
2967 obstack_begin after each obstack_free.
2969 2010-06-27 Doug Evans <dje@google.com>
2971 * value.c (value_static_field): Use `switch' instead of `if'.
2972 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
2974 * valops.c (search_struct_field): Fix typo in error message.
2976 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
2978 * dwarf2expr.c (execute_stack_op): Place preprocessor
2979 directives at the start of the source line.
2981 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
2983 * defs.h (make_command_stats_cleanup): Declare.
2984 (set_display_time): Declare.
2985 (set_display_space): Declare.
2986 * event-top.c (command_handler): Use make_command_stats_cleanup.
2987 * main.c (display_time, display_space): Move definitions to utils.c.
2988 (captured_main): Use make_command_stats_cleanup to get start-up
2990 Use set_display_time and set_display_space for processing OPT_STATISTICS
2992 * maint.c (maintenance_time_display): Use set_display_time.
2993 (maintenance_space_display): Use set_display_space.
2994 * top.c (execute_command): Remove obsolete 'maint time' code.
2995 (command_loop): Use make_command_stats_cleanup.
2996 * utils.c (struct cmd_stats): Structure for storing initial time
2998 (display_time, display_space): Move definitions here from utils.c.
2999 (set_display_time): New function.
3000 (set_display_space): New function.
3001 (make_command_stats_cleanup): New function.
3002 (report_command_stats): New auxiliary function for
3003 make_command_stats_cleanup.
3005 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3007 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
3008 hosts where CORE_ADDR is long long.
3010 2010-06-25 Tom Tromey <tromey@redhat.com>
3013 * python/python.c (execute_gdb_command): Add keywords. Accept
3014 "to_string" argument.
3015 (struct restore_ui_file_closure): New.
3016 (restore_ui_file): New function.
3017 (make_cleanup_restore_ui_file): Likewise.
3018 (GdbMethods) <execute>: Update.
3020 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3022 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
3023 during inferior call stack frame setup.
3025 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
3027 * solib-spu.c: Include "exception.h".
3028 (ocl_program_data_key): New variable.
3029 (append_ocl_sos): New function.
3030 (ocl_enable_break): Likewise.
3031 (spu_current_sos): Call append_ocl_sos.
3032 (spu_solib_loaded): Call ocl_enable_break.
3033 (_initialize_spu_solib): Register ocl_program_data_key.
3035 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3037 * cp-support.c (reset_directive_searched): New function.
3038 (make_symbol_overload_list_using): Prevent recursive calls.
3040 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
3042 * printcmd.c (print_variable_and_value): Print error message on
3045 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3047 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
3049 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
3051 (dwarf_expr_push): Change input type to ULONGEST.
3052 (dwarf_expr_fetch): Change return type to ULONGEST.
3053 (dwarf_expr_fetch_address): Add prototype.
3054 (dwarf2_read_address): Remove prototype.
3055 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
3056 Truncate stack values to ctx->addr_size bytes.
3057 (dwarf_expr_fetch): Change return value to ULONGEST.
3058 (dwarf_expr_fetch_address): New function.
3059 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
3060 when appropriate. Update for struct dwarf_expr_piece changes.
3061 (dwarf2_read_address): Remove.
3062 (unsigned_address_type): Remove.
3063 (signed_address_type): Remove.
3064 (execute_stack_op): Use dwarf_expr_fetch_address instead of
3065 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
3066 values. Perform operations on ULONGEST instead of on GDB values,
3067 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
3068 values and DW_OP_deref results as unsigned integers.
3069 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
3071 (write_pieced_value): Likewise.
3072 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
3073 dwarf_expr_fetch when appropriate.
3074 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
3075 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
3076 instead of dwarf_expr_fetch when appropriate.
3078 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
3080 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
3082 2010-06-24 Joel Brobecker <brobecker@adacore.com>
3084 * python/python.c (_initialize_python): Add new "constant"
3085 PYTHONDIR in gdb module. Insert this path at the head of
3086 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
3087 exec its __init__.py script if it exists in that directory.
3089 2010-06-24 Kevin Buettner <kevinb@redhat.com>
3091 * rx-tdep.c (RX_ACC_REGNUM): Define.
3092 (RX_NUM_REGS): Redefine to 26.
3093 (rx_register_name): Add register "acc". Change order of several
3094 registers. Change name of "vct" register to "fintv" to match RX
3096 (rx_register_type): Add case for RX_ACC_REGNUM.
3098 2010-06-24 Tom Tromey <tromey@redhat.com>
3100 * psymtab.c (lookup_partial_symbol): Mark definition as static.
3102 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3103 Tom Tromey <tromey@redhat.com>
3105 Fix GDB startup on readonly filesystem.
3106 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
3108 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3109 Pedro Alves <pedro@codesourcery.com>
3112 * breakpoint.c (handle_jit_event): New function.
3113 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
3114 jit, err, table and bs_class. New variables shlib_event, jit_event,
3115 this_action and bptype. Change bs_class assignments to this_action
3116 assignments. new unhandled bptype internal error. Move here
3117 shlib_event and jit_event handling from handle_inferior_event.
3118 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
3119 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
3120 BPSTAT_WHAT_CHECK_JIT.
3121 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
3122 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
3123 (handle_inferior_event): Reinitialize frame and gdbarch after
3124 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
3125 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
3126 gdbarch when frame gets reinitialized.
3128 2010-06-24 Hui Zhu <teawater@gmail.com>
3130 * printcmd.c (ui_printf): New function.
3131 (printf_command): Call ui_printf.
3132 (_initialize_printcmd): New command "eval".
3134 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
3136 * infrun.c (handle_inferior_event): Handle presence of single-step
3137 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
3138 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
3139 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
3140 * breakpoint.c (detach_single_step_breakpoints): New function.
3141 (detach_breakpoints): Call it.
3142 (cancel_single_step_breakpoints): New function.
3143 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
3145 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
3146 (spu_gdbarch_init): Install it.
3148 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3150 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
3151 * configure: Regenerate.
3153 2010-06-22 Hui Zhu <teawater@gmail.com>
3155 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
3156 (i386_process_record): Ditto.
3157 * record.c (record_memory_query): New variable.
3158 (_initialize_record): New command "set record memory-query".
3159 * record.h (record_memory_query): New extern.
3161 2010-06-21 Doug Evans <dje@google.com>
3163 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
3164 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
3165 (i386_syscall_p): Change type of lengthp to int.
3166 (i386_displaced_step_fixup): Handle kernels that run one past a
3168 * i386-linux-tdep.c (i386_linux_init_abi): Use
3169 i386_displaced_step_copy_insn instead of
3170 simple_displaced_step_copy_insn.
3172 2010-06-21 Tom Tromey <tromey@redhat.com>
3174 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
3175 (dwarf_type_encoding_name): Likewise.
3177 2010-06-21 Tom Tromey <tromey@redhat.com>
3179 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
3180 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
3181 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
3182 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
3183 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
3184 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
3185 * dwarf2read.c (tag_type_to_type): Create a new error type on
3187 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
3188 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
3190 2010-06-21 Michael Snyder <msnyder@vmware.com>
3192 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
3193 not add_abbrev_prefix_cmd, for "enable breakpoints".
3195 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
3197 * dwarf2loc.c (find_location_expression): Add relocation offset
3198 to base-address-selection entry base addresses. Read addresses
3199 (and offsets) as signed/unsigned integers, depending on the
3200 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
3201 (loclist_describe_location): Likewise.
3202 (disassemble_dwarf_expression): Read DW_OP_addr operand as
3203 unsigned integer. Do not call dwarf2_read_address.
3204 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
3206 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
3208 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
3209 value instead of hard-coded SPU_LS_SIZE.
3210 (spu_software_single_step): Likewise.
3211 * spu-tdep.h (SPU_LS_SIZE): Remove.
3213 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
3215 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
3216 limit on local store memory accesses.
3217 * spu-linux-nat.c (spu_xfer_partial): Likewise.
3218 * spu-tdep.c (spu_lslr): Remove.
3219 (spu_pointer_to_address): Do not truncate addresses.
3220 (spu_integer_to_address): Likewise.
3221 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
3222 * spu-tdep.h: Add comments.
3223 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
3224 (SPU_OVERLAY_LMA): Define.
3226 2010-06-18 Stan Shebs <stan@codesourcery.com>
3228 * osdata.c (get_osdata): Warn separately if target does not report
3230 (info_osdata_command): Allow empty type, report error if target
3231 does not return available types of OS data.
3232 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
3233 types if no annex supplied.
3235 * thread.c (thread_id_make_value): Make a value representing the
3237 (_initialize_thread): Create $_thread.
3239 2010-06-17 Joel Brobecker <brobecker@adacore.com>
3241 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
3242 last local variable declaration. No real code change.
3244 2010-06-17 Tom Tromey <tromey@redhat.com>
3246 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
3247 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
3250 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
3251 Jan Kratochvil <jan.kratochvil@redhat.com>
3253 * breakpoint.c: Include parser-defs.h.
3254 (watchpoint_exp_is_const): New function.
3255 (watch_command_1): Call watchpoint_exp_is_const to check
3256 if the expression is constant.
3258 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
3260 * configure.ac: Check for RDYNAMIC also for cross builds.
3261 * configure: Regenerate.
3263 2010-06-15 Pedro Alves <pedro@codesourcery.com>
3265 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
3266 (SFILES): Remove solib-null.c, add solib-target.c.
3267 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
3268 (ALLDEPFILES): Remove solib-target.c.
3269 * solib-target.c (_initialize_solib_target): Set
3270 current_target_so_ops to solib_target_so_ops if not already set.
3271 * solib-null.c: Delete.
3273 2010-06-14 Pedro Alves <pedro@codesourcery.com>
3275 * NEWS: Mention GDBserver's JIT compilation of tracepoint
3278 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3280 * cp-valprint.c (cp_print_static_field): Members of
3281 dont_print_stat_array_obstack are of type "struct type *".
3282 (_initialize_cp_valprint): Likewise.
3284 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3286 * frame.c (frame_register_unwind): Do not access contents
3287 of "optimized out" unwound register value.
3289 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3291 * ada-lang.h (ada_print_type): Make varstring const.
3292 * ada-typeprint.c (print_func_type): Make name const.
3293 (ada_print_type): Make varstring const.
3294 * c-lang.h (c_print_type): Make varstring const.
3295 * c-typeprint.c (c_print_type): Likewise.
3296 * f-lang.h (f_print_type): Likewise.
3297 * f-typeprint.c (f_print_type): Likewise.
3298 * jv-lang.h (java_print_type): Likewise.
3299 * jv-typeprint.c (java_print_type): Likewise.
3300 * language.c (unk_lang_print_type): Likewise.
3301 * language.h (struct language_defn) <la_print_type>: Likewise.
3302 * m2-lang.h (m2_print_type): Likewise.
3303 * m2-typeprint.c (m2_print_type): Likewise.
3304 * p-lang.h (pascal_print_type): Likewise.
3305 * p-typeprint.c (pascal_print_type): Likewise.
3307 2010-06-11 Stan Shebs <stan@codesourcery.com>
3309 Add per-operation permission flags.
3311 * target.h (struct target_ops): New method to_set_permissions.
3312 (target_set_permissions): New macro.
3313 (target_insert_breakpoint): Change macro to function.
3314 (target_remove_breakpoint): Ditto.
3315 (target_stop): Ditto.
3316 (may_write_registers): Declare.
3317 (may_write_memory): Declare.
3318 (may_insert_breakpoints): Declare.
3319 (may_insert_tracepoints): Declare.
3320 (may_insert_fast_tracepoints): Declare.
3321 (may_stop): Declare.
3322 * target.c (may_write_registers, may_write_registers_1): New globals.
3323 (may_write_memory, may_write_memory_1): New globals.
3324 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
3325 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
3326 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
3328 (may_stop, may_stop_1): New global.
3329 (target_xfer_partial): Test for write permission.
3330 (target_store_registers): Ditto.
3331 (target_insert_breakpoint): New function.
3332 (target_remove_breakpoint): New function.
3333 (target_stop): New function.
3334 (_initialize_targets): Add new set/show variables.
3335 (set_write_memory_permission): New function.
3336 (update_target_permissions): New function.
3337 (set_target_permissions): New function.
3338 (update_current_target): Default to_set_permissions.
3339 (_initialize_targets): Use new globals and setter function.
3340 * tracepoint.c (start_tracing): Test for permission.
3341 * inferior.h (update_observer_mode): Declare.
3342 * infrun.c (non_stop_1): Define earlier.
3343 (observer_mode, observer_mode_1): New globals.
3344 (set_observer_mode, show_observer_mode): New functions.
3345 (update_observer_mode): New function.
3346 (_initialize_infrun): Define "set observer" command.
3347 * remote.c (PACKET_QAllow): New optional packet.
3348 (remote_protocol_features): Add QAllow.
3349 (remote_set_permissions): New function.
3350 (remote_start_remote): Call it.
3351 (init_remote_ops): Add it to target vector.
3352 (_initialize_remote): Add config command for QAllow.
3354 2010-06-11 Tom Tromey <tromey@redhat.com>
3356 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
3357 DW_AT_vtable_elem_location even when GCC extension is seen.
3359 2010-06-11 Tom Tromey <tromey@redhat.com>
3361 PR gdb/9977, PR exp/11636:
3362 * value.h (value_offset): Update.
3363 (struct lval_funcs) <check_validity>: New field.
3364 <copy_closure>: Make argument const.
3365 (value_computed_closure): Update.
3366 (value_contents_for_printing): Declare.
3367 (value_bits_valid): Likewise.
3368 (val_print): Likewise.
3369 (set_value_component_location): Update.
3370 (value_entirely_optimized_out): Declare.
3371 * value.c (value_offset): Argument now const.
3372 (require_not_optimized_out): New function.
3373 (value_contents_for_printing): New function.
3374 (value_contents_all): Call require_not_optimized_out.
3375 (value_contents): Likewise.
3376 (value_bits_valid): New function.
3377 (value_computed_closure): Argument now const.
3378 (set_value_component_location): Make 'whole' argument const.
3379 (value_entirely_optimized_out): New function.
3380 (value_bitsize): Argument now 'const'.
3381 (value_bitpos): Likewise.
3382 (value_type): Likewise.
3383 * valprint.h (val_print_array_elements): Update.
3384 * valprint.c (val_print): Add 'val' argument. Use
3385 valprint_check_validity.
3386 (valprint_check_validity): New function.
3387 (value_check_printable): Use value_entirely_optimized_out.
3388 (common_val_print): Update.
3389 (value_print): Likewise.
3390 (val_print_array_elements): Add 'val' argument.
3391 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
3392 value_bits_valid. Reinit frame cache for lval_computed.
3393 * sh64-tdep.c (sh64_do_register): Update.
3394 * scm-valprint.c (scm_val_print): Add 'val' argument.
3395 * scm-lang.h (scm_val_print): Update.
3396 * python/python.h (apply_val_pretty_printer): Update.
3397 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
3398 argument. Call set_value_component_location.
3399 * printcmd.c (print_scalar_formatted): Update.
3400 * p-valprint.c (pascal_val_print): Add 'val' argument.
3401 (pascal_object_print_value_fields): Likewise.
3402 (pascal_object_print_value): Likewise.
3403 (pascal_object_print_static_field): Update.
3404 * p-lang.h (pascal_val_print): Update.
3405 (pascal_object_print_value_fields): Update.
3406 * mt-tdep.c (mt_registers_info): Update.
3407 * mi/mi-main.c (get_register): Update.
3408 (mi_cmd_data_evaluate_expression): Use common_val_print.
3409 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
3410 (m2_print_unbounded_array): Likewise.
3411 (m2_val_print): Likewise.
3412 * m2-lang.h (m2_val_print): Update.
3413 * language.h (struct language_defn) <la_val_print>: Add 'val'
3415 (LA_VAL_PRINT): Likewise.
3416 * language.c (unk_lang_val_print): Add 'val' argument.
3417 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
3418 (java_val_print): Likewise.
3419 * jv-lang.h (java_val_print): Add 'val' argument.
3420 * infcmd.c (default_print_registers_info): Update.
3421 * f-valprint.c (f77_print_array_1): Add 'val' argument.
3422 (f77_print_array): Likewise.
3423 (f_val_print): Likewise.
3424 * f-lang.h (f_val_print): Add 'val' argument.
3425 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
3427 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
3428 set_value_optimized_out.
3429 (write_pieced_value): Use value_bitsize and value_bitpos.
3430 <default>: Don't exit loop.
3431 (check_pieced_value_validity): New function.
3432 (pieced_value_funcs): Reference check_pieced_value_validity,
3433 check_pieced_value_invalid.
3434 (copy_pieced_value_closure): Update.
3435 (check_pieced_value_bits): New function.
3436 (check_pieced_value_invalid): New function.
3437 * d-valprint.c (dynamic_array_type): Add 'val' argument.
3438 (d_val_print): Likewise.
3439 * d-lang.h (d_val_print): Update.
3440 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
3441 (cp_print_value_fields_rtti): Likewise.
3442 (cp_print_value): Likewise.
3443 (cp_print_static_field): Update.
3444 * c-valprint.c (c_val_print): Add 'val' argument.
3445 (c_value_print): Update.
3446 * c-lang.h (c_val_print): Update.
3447 (cp_print_value_fields): Likewise.
3448 (cp_print_value_fields_rtti): Likewise.
3449 * ada-valprint.c (struct ada_val_print_args): Remove.
3450 (val_print_packed_array_elements): Add 'val' argument.
3451 (ada_val_print): Likewise. Rewrite.
3452 (ada_val_print_stub): Remove.
3453 (ada_val_print_array): Add 'val' argument.
3454 (ada_val_print_1): Likewise.
3455 (print_variant_part): Likewise.
3456 (ada_value_print): Update.
3457 (print_record): Add 'val' argument.
3458 (print_field_values): Likewise.
3459 * ada-lang.h (ada_val_print): Update.
3461 2010-06-11 Tom Tromey <tromey@redhat.com>
3463 * vec.h (VEC_cleanup): New macro.
3464 (DEF_VEC_ALLOC_FUNC_I): Update.
3465 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3466 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3467 * dwarf2loc.c (struct axs_var_loc): Remove.
3468 (unimplemented): New function.
3469 (translate_register): Likewise.
3470 (access_memory): Likewise.
3471 (compile_dwarf_to_ax): Likewise.
3472 (dwarf2_tracepoint_var_loc): Remove.
3473 (dwarf2_tracepoint_var_access): Likewise.
3474 (dwarf2_tracepoint_var_ref): Likewise.
3475 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
3476 (loclist_tracepoint_var_ref): Likewise.
3477 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
3478 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
3479 require_composition. No longer static.
3480 (execute_stack_op): Update.
3481 * ax-gdb.h (trace_kludge): Declare.
3483 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3485 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
3486 (should_be_inserted): Return zero also on NULL OWNER.
3487 (breakpoint_program_space_exit): New OWNER comment.
3488 (insert_breakpoint_locations): Extend comment for OWNER.
3489 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
3490 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
3492 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
3493 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
3494 (bpstat_check_location): New assert on OWNER.
3495 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
3496 and B initializations to the code block. New assert on them.
3497 (print_one_breakpoint_location): New OWNER comment.
3498 (watchpoint_locations_match): Assert on OWNER.
3499 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
3500 initializations to the code block. New assert on OWNER.
3501 (set_breakpoint_location_function): New assert on OWNER.
3502 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
3503 (bp_location_compare, update_global_location_list)
3504 (update_global_location_list): New OWNER comment.
3506 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3508 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
3510 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3512 * config/nm-linux.h (struct target_ops): Remove forward declaration.
3513 (lin_thread_get_thread_signals): Remove prototype.
3514 (GET_THREAD_SIGNALS): Remove.
3515 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
3516 * linux-thread-db.c (check_thread_signals): Directly call
3517 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
3519 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3521 * gregset.h (GDB_FPXREGSET_T): Remove.
3522 (gdb_fpxregset_t): Likewise.
3523 (supply_fpxregset): Remove prototype.
3524 (fill_fpxregset): Likewise.
3525 * i386-linux-nat.c (supply_fpxregset): Remove.
3526 (fill_fpxregset): Likewise.
3527 (fetch_fpxregs): Inline supply_fpxregset call.
3528 (store_fpxregs): Inline fill_fpxregset call.
3530 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
3531 * config/i386/nm-linux.h: Remove file.
3533 2010-06-09 Michael Snyder <msnyder@vmware.com>
3535 * target.c (update_current_target): Fix spelling error in comment.
3536 (target_mourn_inferior): Fix spelling error in error message.
3538 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
3540 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
3541 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
3543 2010-06-08 Michael Snyder <msnyder@vmware.com>
3545 * remote.c (remote_close): Set inferior_ptid to null_ptid.
3547 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3549 * configure.ac <"${have_libpython}" != no>: New workaround of
3551 * configure: Regenerate.
3553 2010-06-08 Hui Zhu <teawater@gmail.com>
3555 * record.c (record_wait): Move signal out of replay code.
3557 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3560 * dwarf2-frame.c (no_dwarf_call): New function.
3561 (execute_stack_op): Set CTX->DWARF_CALL.
3562 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
3563 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
3564 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
3565 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
3566 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
3567 (needs_frame_dwarf_call): New function.
3568 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
3569 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
3570 Update the comment. Move variables die, offset and error call to ...
3571 (follow_die_ref): ... a new function.
3572 (dwarf2_fetch_die_location_block): New function.
3573 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
3575 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3577 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
3578 (dwarf_expr_tls_address): Use per_cu instead of objfile.
3579 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
3580 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
3582 (struct needs_frame_baton): New field per_cu.
3583 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
3584 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
3586 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
3588 * cp-support.c (make_symbol_overload_list_namespace): Only search
3589 static and global blocks.
3590 (make_symbol_overload_list_block): New function.
3591 (make_symbol_overload_list): Separate namespace search from block
3593 (make_symbol_overload_list_qualified): Use
3594 make_symbol_overload_list_block.
3596 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
3598 * value.h: Created oload_search_type enum.
3599 (find_overload_match): Use oload_search_type enum.
3600 * valops.c (find_overload_match): Support combined member and
3602 * eval.c (evaluate_subexp_standard): Calls to
3603 find_overload_match now use oload_search_type enum.
3604 (oload_method_static): Verify index is a proper value.
3605 * valarith.c (value_user_defined_cpp_op): Search for and handle
3606 both member and non-member operators.
3607 (value_user_defined_cpp_op): New function.
3608 (value_user_defined_op): New function.
3609 (value_x_unop): Use value_user_defined_op.
3610 (value_x_binop): Ditto.
3611 * cp-support.c (make_symbol_overload_list_using): Added block
3613 Add check for namespace aliases and imported declarations.
3615 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3617 * breakpoint.h (owner): Extend the comment.
3619 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3621 Clear stale specific bp_location from former whole breakpoint.
3622 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
3624 (free_bp_location): ... here. Rename there the called function to
3625 bpstat_remove_bp_location_callback.
3626 (bpstat_remove_breakpoint_callback): Rename to ...
3627 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
3628 to struct bp_location. Change the called function to
3629 bpstat_remove_bp_location. Create new declaration for the function.
3630 (bpstat_remove_breakpoint): Rename to ...
3631 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
3632 code for the new parameter type.
3634 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
3636 * README: Make version-agnostic.
3638 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3640 Fix duplicate types for single DIE.
3641 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
3643 (read_array_type): Remove type initialization. Recheck get_die_type
3644 after initial die_type. Move set_die_type before set_descriptive_type.
3645 (read_set_type): New variable domain_type. Recheck get_die_type after
3646 initial die_type. Move attr initialization later.
3647 (read_tag_pointer_type, read_tag_reference_type): New variable
3648 target_type. Recheck get_die_type after initial die_type.
3649 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
3650 die_type and die_containing_type.
3651 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
3652 Recheck get_die_type after initial die_type.
3653 (read_subrange_type): Recheck get_die_type after initial die_type.
3654 Move set_die_type before set_descriptive_type.
3655 (set_die_type): Extend the function comment. Call complaint if DIE has
3656 some type already set.
3658 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
3660 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
3661 for current naming of thread groups (iN, not N).
3663 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
3665 * ada-lang.c (ada_operator_length): Constify `struct expression'.
3666 * parse.c (operator_length): Likewise.
3667 (operator_length_standard): Likewise.
3668 * parser-defs.h (operator_length): Likewise.
3669 (operator_length_standard): Likewise.
3670 (struct exp_descriptor <operator_length>): Likewise.
3672 2010-06-04 Doug Evans <dje@google.com>
3674 Add support for enabling/disabling individual pretty-printers.
3675 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
3676 * python/python-internal.h (gdbpy_enabled_cst): Declare.
3677 * python/python.c (gdbpy_enabled_cst): Define.
3678 (_initialize_python): Initialize gdbpy_enabled_cst.
3681 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3683 * breakpoint.c (update_global_location_list): Fix comment typo.
3685 2010-06-04 Hui Zhu <teawater@gmail.com>
3687 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
3689 2010-06-03 Doug Evans <dje@google.com>
3691 * configure.ac: Don't fail if python is unusable when
3692 configured with --with-python=auto.
3693 * configure: Regenerate.
3695 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
3697 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
3699 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
3701 * valprint.h (get_array_bounds): Change low and high parameter types
3703 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
3705 (val_print_array_elements): Adapt to change above.
3706 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
3707 * p-valprint.c (pascal_val_print): Likewise.
3709 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3711 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
3712 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
3715 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3717 Support DW_TAG_module as separate namespaces.
3718 * dwarf2read.c (typename_concat): New parameter physname.
3719 (read_module_type): New function and declaration.
3720 (scan_partial_symbols): Scan also DW_TAG_module children.
3721 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
3722 to typename_concat backward compatible physname value 0.
3723 (partial_die_full_name, read_namespace_type): Pass to typename_concat
3724 backward compatible physname value 0.
3725 (add_partial_module, read_module): Remove FIXME comment.
3726 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
3727 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
3728 DIEs under DW_TAG_module.
3729 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
3730 DW_AT_MIPS_linkage_name first, extend it for language_fortran
3731 && physname and return there instead of just setting NAME. Extend
3732 the main block for language_fortran. Pass physname parameter to the
3733 typename_concat call.
3734 (read_import_statement, read_func_scope, get_scope_pc_bounds)
3735 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
3736 (new_symbol): Fill in cplus_specific.demangled_name if it is still
3737 missing from SYMBOL_SET_NAMES in the language_fortran case.
3738 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
3740 (read_type_die) <DW_TAG_module>: New.
3741 (MAX_SEP_LEN): Increase to 7.
3742 (typename_concat): New parameter physname. New variable lead. Support
3743 also language_fortran.
3744 * f-exp.y (yylex): Consider : also as a symbol name character class.
3745 * f-lang.c: Include cp-support.h.
3746 (f_word_break_characters, f_make_symbol_completion_list): New functions.
3747 (f_language_defn): Use cp_lookup_symbol_nonlocal,
3748 f_word_break_characters and f_make_symbol_completion_list.
3749 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
3750 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
3751 * symtab.c (symbol_init_language_specific): Support language_fortran.
3752 (symbol_find_demangled_name): New comment on language_fortran.
3753 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
3754 for language_fortran.
3755 (lookup_symbol_aux_local): Check imports also for language_fortran.
3756 (default_make_symbol_completion_list): Rename to ...
3757 (default_make_symbol_completion_list_break_on): ... this name. New
3758 parameter break_on, use it.
3759 (default_make_symbol_completion_list): New stub.
3760 * symtab.h (default_make_symbol_completion_list_break_on): New
3763 2010-06-02 Joel Brobecker <brobecker@adacore.com>
3765 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
3768 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3770 * dwarf2read.c (typename_concat): Add const to the variable sep.
3772 2010-06-02 Tom Tromey <tromey@redhat.com>
3774 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
3775 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
3776 type is const. Add 'def' argument. Add missing operators, remove
3778 (decode_locdesc): Update.
3779 (dwarf2_always_disassemble): New global.
3780 (show_dwarf2_always_disassemble): New function.
3781 (_initialize_dwarf2_read): Add always-disassemble.
3782 (dwarf2_per_cu_offset_size): New function.
3783 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
3784 (piece_end_p): New function.
3785 (locexpr_describe_location_piece): Replace 'size' argument with
3786 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
3787 some constants. Remove errors.
3788 (disassemble_dwarf_expression): New function.
3789 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
3790 Add 'offset_size' argument.
3791 (loclist_describe_location): Change output formatting.
3792 * dwarf2expr.h (dwarf_stack_op_name): Declare.
3794 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
3796 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
3797 anonymous type case.
3799 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
3801 * dwarf2read.c (read_subrange_type): Handle missing base type
3802 according to Dwarf-2 specifications.
3804 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
3806 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
3808 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
3809 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
3810 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
3811 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
3812 UNOP_CHMAX, UNOP_CHMIN.
3813 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
3814 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
3815 UNOP_CHMIN>: Remove opcodes.
3817 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
3819 * dwarf2read.c (read_func_scope): Do not complain for
3820 external function if bounds are not found.
3822 2010-06-01 Pedro Alves <pedro@codesourcery.com>
3824 * NEWS: Mention gdbserver fast tracepoints support.
3826 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
3828 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
3830 (windows_set_console_info): New function.
3831 (windows_create_inferior): Call windows_set_console_info
3832 if NEW_CONSOLE is true.
3833 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
3834 (_initialize_loadable): Initialize GetConsoleFontSize and
3835 GetCurrentConsoleFont.
3837 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3839 * Makefile.in (RDYNAMIC): New.
3840 (SFILES): Add proc-service.list.
3841 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
3842 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
3843 * config/arm/linux.mh: Likewise.
3844 * config/i386/linux.mh: Likewise.
3845 * config/i386/linux64.mh: Likewise.
3846 * config/ia64/linux.mh: Likewise.
3847 * config/m32r/linux.mh: Likewise.
3848 * config/m68k/linux.mh: Likewise.
3849 * config/mips/linux.mh: Likewise.
3850 * config/pa/linux.mh: Likewise.
3851 * config/powerpc/linux.mh: Likewise.
3852 * config/powerpc/ppc64-linux.mh: Likewise.
3853 * config/s390/s390.mh: Likewise.
3854 * config/sparc/linux.mh: Likewise.
3855 * config/sparc/linux64.mh: Likewise.
3856 * config/xtensa/linux.mh: Likewise.
3857 * configure.ac: New RDYNAMIC on native host and GCC.
3858 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
3859 * configure: Regenerate.
3860 * proc-service.list: New.
3862 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3864 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
3867 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3869 * linux-nat.c (linux_nat_wait_1): Do not call
3870 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
3871 TARGET_WAITKIND_SIGNALLED.
3873 2010-05-27 Joel Brobecker <brobecker@adacore.com>
3875 * ada-lang.c (ada_inferior_data): New struct.
3876 (ada_inferior_data): New static global.
3877 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
3878 (ada_get_tsd_type): New functions.
3879 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
3880 to look the tsd type up.
3881 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
3882 event. Set ada_inferior_data.
3884 2010-05-27 Pedro Alves <pedro@codesourcery.com>
3886 * remote.c (unpack_varlen_hex): Remove forward declaration.
3887 (remote_console_output): Make static, and add forward declaration.
3888 * remote.h: Drop FIXME comment.
3889 (unpack_varlen_hex): Declare.
3890 (remote_console_output, remote_cisco_objfile_relocate)
3891 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
3892 Delete declarations.
3893 * tracepoint.c: Include "remote.h".
3894 (unpack_varlen_hex): Delete declaration.
3896 2010-05-27 Tom Tromey <tromey@redhat.com>
3898 * dwarf2loc.c (struct piece_closure) <refc>: New field.
3899 (allocate_piece_closure): Initialize refc.
3900 (copy_pieced_value_closure): Use refc.
3901 (free_pieced_value_closure): Likewise.
3903 2010-05-27 Tom Tromey <tromey@redhat.com>
3905 * arm-tdep.c (push_stack_item): 'contents' now const.
3906 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
3907 value_contents_writeable. Introduce new temporary.
3909 2010-05-27 Tom Tromey <tromey@redhat.com>
3911 * findcmd.c (parse_find_args): Use value_contents, not
3914 2010-05-27 Tom Tromey <tromey@redhat.com>
3916 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
3917 const. Use value_contents, not value_contents_writeable.
3919 2010-05-27 Joel Brobecker <brobecker@adacore.com>
3921 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
3922 by call to value_contents.
3924 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
3926 * MAINTAINERS: Add myself for write after approval privileges.
3928 2010-05-26 Doug Evans <dje@google.com>
3930 Allow python to find its files if moved from original location.
3931 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
3932 (GDB_AC_WITH_DIR): Call it.
3933 * configure.ac: Define WITH_PYTHON_PATH if we can find the
3934 python installation directory.
3935 * config.in: Regenerate.
3936 * configure: Regenerate.
3937 * defs.h (python_libdir): Declare.
3938 * main.c (python_libdir): Define.
3939 (captured_main): Initialize python_libdir.
3940 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
3941 call Py_SetProgramName to make sure python can find its libraries
3944 * configure.ac: Try to use python's distutils to fetch compilation
3946 * configure: Regenerate.
3947 * python/python-config.py: New file.
3949 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
3951 * ser-tcp.c (net_open): Check error return from socket() call by its
3952 equality to -1 not by it being negative.
3953 (net_close): Likewise.
3955 2010-05-26 Pedro Alves <pedro@codesourcery.com>
3957 * NEWS: Mention the `qRelocInsn' feature.
3958 * gdbarch.sh (relocate_instruction): New.
3959 * amd64-tdep.c (rip_relative_offset): New.
3960 (append_insns): New.
3961 (amd64_relocate_instruction): New.
3962 (amd64_init_abi): Install it.
3963 * i386-tdep.c (append_insns): New.
3964 (i386_relocate_instruction): New.
3965 (i386_gdbarch_init): Install it.
3966 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
3967 * gdbarch.h, gdbarch.c: Regenerate.
3969 2010-05-26 Tom Tromey <tromey@redhat.com>
3971 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
3972 (struct dwarf2_loclist_baton) <data>: Likewise.
3973 * dwarf2loc.c (find_location_expression): Constify return type.
3974 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
3975 (dwarf2_loc_desc_needs_frame): Likewise.
3976 (loclist_read_variable): Constify.
3977 (loclist_describe_location): Likewise.
3978 (loclist_tracepoint_var_ref): Likewise.
3980 2010-05-25 Tom Tromey <tromey@redhat.com>
3982 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
3983 (dwarf_expr_frame_base_1): Likewise.
3984 (read_pieced_value): Update.
3985 (needs_frame_frame_base): Constify.
3986 (dwarf2_tracepoint_var_loc): Likewise.
3987 (dwarf2_tracepoint_var_access): Likewise.
3988 (locexpr_describe_location_piece): Likewise.
3989 (locexpr_describe_location_1): Likewise.
3990 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
3993 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
3994 (dwarf_expr_eval, read_uleb128, read_sleb128)
3995 (dwarf2_read_address): Update.
3996 * dwarf2expr.c (dwarf_expr_eval): Constify.
3997 (read_uleb128): Likewise.
3998 (read_sleb128): Likewise.
3999 (dwarf2_read_address): Likewise.
4000 (require_composition): Likewise.
4001 (execute_stack_op): Likewise.
4002 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
4004 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
4006 (no_get_frame_base): Constify.
4007 (execute_stack_op): Likewise.
4008 (execute_cfa_program): Likewise.
4009 (read_encoded_value): Likewise.
4011 2010-05-25 Doug Evans <dje@google.com>
4013 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
4015 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
4016 * event-loop.c: ... here.
4017 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
4018 `error' for clarity.
4019 (tui_getc): Pass correct value for `error' parameter to
4020 tui_readline_output.
4022 Add python gdb.GdbError and gdb.string_to_argv.
4023 * NEWS: Document them.
4024 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
4025 the exception is gdb.GdbError. Print a second traceback if there's
4026 an error computing the error message.
4027 (gdbpy_string_to_argv): New function.
4028 * python/py-utils.c (gdbpy_obj_to_string): New function.
4029 (gdbpy_exception_to_string): New function.
4030 * python/python-internal.h (gdbpy_string_to_argv): Declare.
4031 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
4032 (gdbpy_gdberror_exc): Declare.
4033 * python/python.c (gdbpy_gdberror_exc): New global.
4034 (_initialize_python): Initialize gdbpy_gdberror_exc and create
4036 (GdbMethods): Add string_to_argv.
4038 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4040 * windows-nat.c (display_selector): Call GetLastError to give better
4041 failure explanation.
4043 2010-05-24 Pedro Alves <pedro@codesourcery.com>
4045 * config.in: Regenerate.
4047 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4050 * target.c (push_target): Return only void. Remove the return value
4052 * target.h (push_target): Return only void.
4054 2010-05-23 Pedro Alves <pedro@codesourcery.com>
4056 Update gnulib from latest git.
4057 (250b80067c1e1d8faa0c42fb572f721975b929c5)
4059 * gnulib/memcmp.c: Removed.
4060 * gnulib/memchr.valgrind: New.
4061 * gnulib/stddef.in.h: New.
4062 * gnulib/Makefile.am: Updated.
4063 * gnulib/memchr.c: Updated.
4064 * gnulib/memmem.c: Updated.
4065 * gnulib/stdint.in.h: Updated.
4066 * gnulib/str-two-way.h: Updated.
4067 * gnulib/string.in.h: Updated.
4068 * gnulib/wchar.in.h: Updated.
4070 * gnulib/extra/link-warning.h: Removed.
4071 * gnulib/extra/c++defs.h: New.
4072 * gnulib/extra/warn-on-use.h: New.
4073 * gnulib/extra/arg-nonnull.h: Updated.
4075 * gnulib/m4/extensions.m4: Updated.
4076 * gnulib/m4/gnulib-cache.m4: Updated.
4077 * gnulib/m4/gnulib-common.m4: Updated.
4078 * gnulib/m4/gnulib-comp.m4: Updated.
4079 * gnulib/m4/gnulib-tool.m4: Updated.
4080 * gnulib/m4/include_next.m4: Updated.
4081 * gnulib/m4/longlong.m4: Updated.
4082 * gnulib/m4/memchr.m4: Updated.
4083 * gnulib/m4/memmem.m4: Updated.
4084 * gnulib/m4/stdint.m4: Updated.
4085 * gnulib/m4/string_h.m4: Updated.
4086 * gnulib/m4/memcmp.m4: Removed.
4087 * gnulib/m4/onceonly_2_57.m4: Removed.
4088 * gnulib/m4/00gnulib.m4: New.
4089 * gnulib/m4/mmap-anon.m4: New.
4090 * gnulib/m4/multiarch.m4: New.
4091 * gnulib/m4/onceonly.m4: New.
4092 * gnulib/m4/stddef_h.m4: New.
4093 * gnulib/m4/warn-on-use.m4: New.
4094 * gnulib/m4/wchar.m4: Removed.
4095 * gnulib/m4/wchar_h.m4: New.
4096 * gnulib/m4/wchar_t.m4: New.
4097 * gnulib/m4/wint_t.m4: New.
4099 * aclocal.m4: Regenerate.
4100 * config.in: Likewise.
4101 * configure: Likewise.
4102 * gnulib/Makefile.in: Likewise.
4104 2010-05-21 Tom Tromey <tromey@redhat.com>
4106 * dwarf2loc.c (extract_bits_primitive): New function.
4107 (extract_bits): Likewise.
4108 (insert_bits): Likewise.
4109 (copy_bitwise): Likewise.
4110 (read_pieced_value): Do all operations in bits.
4111 (write_pieced_value): Likewise.
4112 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
4113 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
4114 Always use xrealloc to resize piece array.
4115 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
4116 <DW_OP_piece>: Update.
4117 <DW_OP_bit_piece>: New case.
4119 2010-05-21 Tom Tromey <tromey@redhat.com>
4121 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
4122 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
4123 * dwarf2expr.h (enum dwarf_value_location)
4124 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
4125 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
4126 (add_piece): Handle empty piece.
4127 (execute_stack_op) <DW_OP_piece>: Handle
4128 DWARF_VALUE_OPTIMIZED_OUT.
4130 2010-05-21 Tom Tromey <tromey@redhat.com>
4132 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
4133 evaluate_subexp, not evaluate_subexp_with_coercion.
4135 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4137 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
4140 2010-05-21 Tom Tromey <tromey@redhat.com>
4142 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
4144 (write_pieced_value): Likewise.
4146 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4148 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
4149 and DW_TAG_volatile_type.
4150 (new_symbol): Likewise.
4152 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
4154 * p-valprint.c (pascal_val_print): Call get_array_bounds
4155 to obtain the number of elements in an array.
4157 2010-05-19 Doug Evans <dje@google.com>
4159 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
4161 * python.c (source_python_script): Add comment.
4162 (source_python_script_for_objfile): Remove unnecessary call to
4165 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4166 Sergio Durigan Junior <sergiodj@redhat.com>
4169 * parse.c (exp_iterate): Use operator_length wrapper function.
4171 2010-05-18 Michael Snyder <msnyder@vmware.com>
4173 * ada-lang.c: White space.
4174 * ada-typeprint.c: White space.
4175 * ada-valprint.c: White space.
4176 * addrmap.c: White space.
4177 * auxv.c: White space.
4178 * ax-gdb.c: White space.
4180 2010-05-18 Hui Zhu <teawater@gmail.com>
4182 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
4184 (inferior_call_waitpid): Move make_cleanup out of check.
4185 Check the return of waitpid.
4186 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
4188 2010-05-17 Michael Snyder <msnyder@vmware.com>
4190 * tui/tui.c: White space.
4191 * tui/tui-data.c: White space.
4192 * tui/tui-disasm.c: White space.
4193 * tui/tui-file.c: White space.
4194 * tui/tui-interp.c: White space.
4195 * tui/tui-main.c: White space.
4196 * tui/tui-out.c: White space.
4197 * tui/tui-regs.c: White space.
4198 * tui/tui-source.c: White space.
4199 * tui/tui-stack.c: White space.
4200 * tui/tui-win.c: White space.
4201 * tui/tui-winsource.c: White space.
4203 * procfs.c: White space.
4205 * python/py-auto-load.c: White space.
4206 * python/py-block.c: White space.
4207 * python/py-breakpoint.c: White space.
4208 * python/py-cmd.c: White space.
4209 * python/py-function.c: White space.
4210 * python/py-lazy-string.c: White space.
4211 * python/py-objfile.c: White space.
4212 * python/py-param.c: White space.
4213 * python/py-prettyprint.c: White space.
4214 * python/py-progspace.c: White space.
4215 * python/py-symtab.c: White space.
4216 * python/python.c: White space.
4217 * python/py-type.c: White space.
4218 * python/py-utils.c: White space.
4219 * python/py-value.c: White space.
4221 * mi/mi-cmd-break.c: White space.
4222 * mi/mi-cmd-env.c: White space.
4223 * mi/mi-cmds.c: White space.
4224 * mi/mi-cmd-stack.c: White space.
4225 * mi/mi-cmd-var.c: White space.
4226 * mi/mi-console.c: White space.
4227 * mi/mi-getopt.c: White space.
4228 * mi/mi-interp.c: White space.
4229 * mi/mi-main.c: White space.
4230 * mi/mi-out.c: White space.
4231 * mi/mi-parse.c: White space.
4233 * cli/cli-cmds.c: White space.
4234 * cli/cli-decode.c: White space.
4235 * cli/cli-dump.c: White space.
4236 * cli/cli-interp.c: White space.
4237 * cli/cli-logging.c: White space.
4238 * cli/cli-script.c: White space.
4239 * cli/cli-setshow.c: White space.
4241 * valarith.c: White space.
4242 * valops.c: White space.
4243 * valprint.c: White space.
4244 * value.c: White space.
4245 * varobj.c: White space.
4246 * xcoffread.c: White space.
4247 * xml-support.c: White space.
4248 * xml-tdesc.c: White space.
4250 2010-05-17 Andreas Schwab <schwab@redhat.com>
4253 * c-lang.c (c_printstr): Compute real length of NUL terminated
4256 2010-05-17 Joel Brobecker <brobecker@adacore.com>
4258 * parse.c (parse_exp_in_context): When block is not NULL, use
4259 its associated language to parse the expression instead of
4260 the current_language.
4262 2010-05-17 Joel Brobecker <brobecker@adacore.com>
4264 * jv-lang.c (java_lookup_class): Remove commented out code.
4265 (type_from_class): Likewise.
4266 (java_op_print_tab): Remove commented-out elements.
4268 2010-05-17 Joel Brobecker <brobecker@adacore.com>
4270 * ada-lang.c (to_fixed_range_type): The the raw index type as
4271 argument instead of the raw type name. Remove orig_type parameter.
4272 Update calls throughout.
4273 (ada_fixup_array_indexes_type): New function.
4274 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
4275 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
4276 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
4277 Remove name parameter.
4278 (print_array_type): Add call to ada_fixup_array_indexes_type.
4279 Update calls to print_range_type.
4280 (ada_print_type): Update calls to print_range_type.
4282 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
4284 * dwarf2read.c (read_set_type): Set type length if
4285 DW_AT_byte_size attribute is present.
4287 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
4289 * p-valprint.c (pascal_val_print): Handle set type if range limits
4290 are undefined but size is known.
4292 2010-05-17 Pedro Alves <pedro@codesourcery.com>
4294 * procfs.c: Reformat.
4296 2010-05-16 Michael Snyder <msnyder@vmware.com>
4298 * target.c: White space.
4299 * target-descriptions.c: White space.
4300 * target-memory.c: White space.
4301 * thread.c: White space.
4302 * top.c: White space.
4303 * tracepoint.c: White space.
4304 * trad-frame.c: White space.
4305 * tramp-frame.c: White space.
4306 * ui-file.c: White space.
4307 * ui-out.c: White space.
4308 * user-regs.c: White space.
4309 * utils.c: White space.
4311 * scm-exp.c: White space.
4312 * scm-lang.c: White space.
4313 * scm-valprint.c: White space.
4314 * sentinel-frame.c: White space.
4315 * ser-base.c: White space.
4316 * ser-go32.c: White space.
4317 * serial.c: White space.
4318 * ser-mingw.c: White space.
4319 * ser-pipe.c: White space.
4320 * ser-tcp.c: White space.
4321 * ser-unix.c: White space.
4322 * solib.c: White space.
4323 * solib-darwin.c: White space.
4324 * solib-frv.c: White space.
4325 * solib-irix.c: White space.
4326 * solib-osf.c: White space.
4327 * solib-pa64.c: White space.
4328 * solib-som.c: White space.
4329 * solib-spu.c: White space.
4330 * solib-svr4.c: White space.
4331 * solib-target.c: White space.
4332 * source.c: White space.
4333 * stabsread.c: White space.
4334 * stack.c: White space.
4335 * std-regs.c: White space.
4336 * symfile.c: White space.
4337 * symmisc.c: White space.
4338 * symtab.c: White space.
4340 2010-05-16 Michael Snyder <msnyder@vmware.com>
4342 * source.c (_initialize_source): Add "rev" as an abbreviation
4343 for the "reverse-search" command.
4345 2010-05-16 Michael Snyder <msnyder@vmware.com>
4347 * record.c: White space.
4348 * regcache.c: White space.
4349 * reggroups.c: White space.
4350 * remote-fileio.c: White space.
4351 * remote-m32r-sdi.c: White space.
4352 * remote-mips.c: White space.
4353 * remote-sim.c: White space.
4354 * remote.c: White space.
4355 (process_g_packet): Remove orphan braces.
4357 2010-05-15 Michael Snyder <msnyder@vmware.com>
4359 * parse.c: White space.
4360 * p-lang.c: White space.
4361 * posix-hdep.c: White space.
4362 * printcmd.c: White space.
4363 * progspace.c: White space.
4364 * prologue-value.c: White space.
4365 * psymtab.c: White space.
4366 * p-typeprint.c: White space.
4367 * p-valprint.c: White space.
4369 * objc-lang.c: White space.
4370 * objfiles.c: White space.
4371 * observer.c: White space.
4372 * osabi.c: White space.
4373 * osdata.c: White space.
4375 * m2-lang.c: White space.
4376 * m2-valprint.c: White space.
4377 * macrocmd.c: White space.
4378 * macroexp.c: White space.
4379 * macroscope.c: White space.
4380 * macrotab.c: White space.
4381 * main.c: White space.
4382 * maint.c: White space.
4383 * mdebugread.c: White space.
4384 * memattr.c: White space.
4385 * minsyms.c: White space.
4386 * monitor.c: White space.
4388 2010-05-14 Michael Snyder <msnyder@vmware.com>
4390 * jv-lang.c: White space.
4391 * jv-typeprint.c: White space.
4392 * jv-valprint.c: White space.
4393 * language.c: White space.
4394 * libunwind-frame.c: White space.
4395 * linespec.c: White space.
4396 * linux-nat.c: White space.
4397 * linux-record.c: White space.
4398 * linux-thread-db.c: White space.
4400 * infcall.c: White space.
4401 * inf-child.c: White space.
4402 * infcmd.c: White space.
4403 * inferior.c: White space.
4404 * inf-loop.c: White space.
4405 * inflow.c: White space.
4406 * inline-frame.c: White space.
4407 * interps.c: White space.
4409 * gcore.c: White space.
4410 * gdb.c: White space.
4411 * gdbtypes.c: White space.
4412 * gnu-nat.c: White space.
4413 * gnu-v2-abi.c: White space.
4414 * gnu-v3-abi.c: White space.
4416 * findcmd.c: White space.
4417 * findvar.c: White space.
4418 * fork-child.c: White space.
4419 * frame-base.c: White space.
4420 * frame.c: White space.
4421 * frame-unwind.c: White space.
4422 * f-valprint.c: White space.
4424 * elfread.c: White space.
4425 * environ.c: White space.
4426 * eval.c: White space.
4427 * event-loop.c: White space.
4428 * event-top.c: White space.
4429 * exceptions.c: White space.
4430 * exec.c: White space.
4431 * expprint.c: White space.
4433 * dbxread.c: White space.
4434 * dcache.c: White space.
4435 * disasm.c: White space.
4436 * doublest.c: White space.
4437 * dsrec.c: White space.
4438 * dummy-frame.c: White space.
4439 * dwarf2expr.c: White space.
4440 * dwarf2-frame.c: White space.
4441 * dwarf2loc.c: White space.
4442 * dwarf2read.c: White space.
4444 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
4448 * python/py-value.c (valpy_hash): New function.
4449 (value_object_type): Register valpy_hash.
4451 2010-05-14 Hui Zhu <teawater@gmail.com>
4452 Michael Snyder <msnyder@vmware.com>
4454 * linux-fork.c (gdbthread.h): New include.
4455 (fork_info): Add parent_ptid.
4456 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
4458 (delete_checkpoint_command): Call inferior_call_waitpid.
4459 (checkpoint_command): Set parent_ptid.
4461 2010-05-13 Michael Snyder <msnyder@vmware.com>
4463 * dictionary.c: Re-indent to GNU coding standard.
4465 * charset.c: White space.
4466 * c-lang.c: White space.
4467 * cli-out.c: White space.
4468 * coffread.c: White space.
4469 * complaints.c: White space.
4470 * completer.c: White space.
4471 * corefile.c: White space.
4472 * corelow.c: White space.
4473 * cp-abi.c: White space.
4474 * cp-namespace.c: White space.
4475 * cp-support.c: White space.
4476 * cp-valprint.c: White space.
4477 * c-typeprint.c: White space.
4478 * c-valprint.c: White space.
4479 * blockframe.c: White space.
4480 * breakpoint.c: White space.
4481 * buildsym.c: White space.
4482 * blockframe.c: White space.
4483 * bcache.c: White space.
4484 * gdbarch.sh: White space, add blank lines.
4485 * arch-utils.c: Ditto.
4486 * gdbarch.c: Regenerate.
4487 * frame.c: White space, add blank lines.
4488 * stack.c: White space, add blank lines.
4489 (initialize_stack): Remove long-dead code.
4491 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4494 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
4495 (locexpr_read_variable, loclist_read_variable): Update the callers.
4497 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4500 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
4501 Remove check of NULL returned by tag_type_to_type.
4502 (die_containing_type): Remove variable type. Remove type_die variable
4503 initialization. Remove check of NULL returned by tag_type_to_type.
4505 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
4508 * gdbtypes.c (lookup_struct_elt_type): Also lookup
4509 names of unnamed structures or unions.
4511 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
4513 * procfs.c (proc_watchpoint_address): New function.
4514 (procfs_stopped_by_watchpoint): Remove useless check after
4515 find_procinfo_or_die call.
4516 (procfs_stopped_data_address): New function.
4517 (procfs_use_watchpoints): Register new watchpoint related function.
4519 2010-05-11 Tom Tromey <tromey@redhat.com>
4521 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
4523 2010-05-10 Michael Snyder <msnyder@vmware.com>
4525 * utils.c: White space cleanup.
4527 2010-05-10 Tom Tromey <tromey@redhat.com>
4529 * eval.c (ptrmath_type_p): Add 'lang' argument.
4530 (evaluate_subexp_standard): Update.
4531 (evaluate_subexp_with_coercion): Update.
4532 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
4534 2010-05-10 Michael Snyder <msnyder@vmware.com>
4536 * utils.c (do_fclose_cleanup) Restore local variable.
4538 2010-05-09 Doug Evans <dje@google.com>
4540 * record.c (init_record_core_ops): Rename record_core to record-core.
4542 2010-05-08 Joel Brobecker <brobecker@adacore.com>
4544 Implement task switching on pa-hpux.
4545 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
4546 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
4548 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
4550 * valops.c (find_overload_match): Add missing i18n markup.
4552 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
4554 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
4556 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4558 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
4559 list for the obconcat call.
4560 * mdebugread.c (parse_symbol): Likewise.
4561 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
4563 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
4564 New variable ap. Remove variables len and val.
4565 * symfile.h (obconcat): Likewise for the prototype.
4567 2010-05-07 Michael Snyder <msnyder@vmware.com>
4569 * python/python.c (execute_gdb_command): Remove unused variables.
4570 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
4571 * python/py-breakpoint.c (gdbpy_breakpoint_created):
4572 Remove unused variable.
4573 * python/py-cmd.c (cmdpy_function): Remove unused variable.
4574 (cmdpy_completer): Remove unused variable.
4575 * python/py-frame.c (frapy_find_sal): Remove unused variable.
4576 * python/py-function.c (fnpy_call): Remove unused variable.
4577 * python/py-objfile.c (objfile_to_objfile_object):
4578 Remove unused variable.
4579 * python/py-param.c (parmpy_init): Remove unused variable.
4580 * python/py-prettyprint.c (apply_varobj_pretty_printer):
4581 Remove unused variable.
4582 (gdbpy_default_visualizer): Remove unused variable.
4583 * python/py-progspace.c (pspace_to_pspace_object):
4584 Remove unused variable.
4585 * python/py-symtab.c (symtab_and_line_to_sal_object):
4586 Remove unused variable.
4587 * python/py-type.c (typy_template_argument):
4588 Remove unused variable.
4589 * python/py-value.c (valpy_string): Remove unused variable.
4590 (convert_value_from_python): Remove unused variables.
4592 2010-05-07 Michael Snyder <msnyder@vmware.com>
4594 * valops.c (value_cast_pointers): Restore unused variable 'type1',
4595 and use it to compute variable 't1'.
4597 2010-05-07 Joel Brobecker <brobecker@adacore.com>
4599 * ada-lang.c (assign_aggregate): Remove unused variable.
4601 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
4604 * valops.c (find_overload_match): Handle fsym == NULL case.
4605 Add int no_adl argument.
4606 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
4608 Add int no_adl argument.
4609 (find_oload_champ_namespace): Add int no_adl argument.
4610 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
4612 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
4613 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
4614 Evaluate arguments and use them to perform ADL lookup.
4615 Pass no_adl argument to find_overload_match.
4616 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
4617 * cp-support.h: Added prototype for
4618 make_symbol_overload_list_namespace.
4619 * cp-support.c (make_symbol_overload_list_namespace): New function.
4620 (make_symbol_overload_list_adl_namespace): New function.
4621 (make_symbol_overload_list_adl): New function.
4622 (make_symbol_overload_list_using): Moved code to add function to
4623 overload set to make_symbol_overload_list_namespace.
4624 * c-exp.y: create UNKNOWN_CPP_NAME token.
4625 Add parse rule for ADL functions.
4626 (classify_name): Recognize an UNKNOWN_CPP_NAME.
4628 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4630 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
4633 2010-05-07 Joel Brobecker <brobecker@adacore.com>
4635 Implement task switching on solaris targets.
4636 * sol-thread.c (thread_db_find_thread_from_tid)
4637 (sol_get_ada_task_ptid): New functions.
4638 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
4640 2010-05-07 Pedro Alves <pedro@codesourcery.com>
4642 * remote.c (remote_query_supported_append): Use reconcat.
4643 (remote_query_supported): Install a cleanup. Use reconcat.
4645 2010-05-07 Pedro Alves <pedro@codesourcery.com>
4647 * gdbarch.sh (qsupported): Delete.
4648 * gdbarch.h, gdbarch.c: Regenerate.
4649 * remote.c (remote_query_supported): Remove use of
4652 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
4654 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
4657 2010-05-06 Michael Snyder <msnyder@vmware.com>
4659 * xml-support.c (xinclude_start_include): Delete unused variable.
4660 (xml_process_xincludes): Delete unused variable.
4661 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
4662 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
4663 (tdesc_find_arch_register): Delete unused variable.
4664 (tdesc_use_registers): Delete unused variable.
4665 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
4666 * inferior.c (print_inferior): Delete unused variable.
4667 * record.c (record_open_1): Delete unused variable.
4668 (record_restore): Delete unused variable.
4669 (cmd_record_save): Delete unused variable.
4670 * gcore.c (derive_heap_segment): Delete unused variable.
4671 (objfile_find_memory_regions): Use unused variable.
4672 * jit.c (jit_inferior_init): Delete unused variable.
4673 * progspace.c (clone_program_space): Delete unused variable.
4674 (pspace_empty_p): Delete unused variable.
4676 * frame-unwind.c (frame_unwind_find_by_frame):
4677 Delete unused variable.
4678 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
4679 * cp-support.c (mangled_name_to_comp): Delete unused variable.
4680 (method_name_from_physname): Delete unused variable.
4681 (cp_func_name): Delete unused variable.
4682 (cp_validate_operator): Delete unused variable.
4683 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
4684 Delete unused variable.
4685 * trad-frame.c (trad_frame_get_prev_register):
4686 Delete unused variable.
4687 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
4689 * serial.c (serial_for_fd): Delete unused variable.
4690 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
4691 * top.c (execute_command): Delete unused variable.
4692 (init_main): Delete unused variable.
4693 * utils.c (do_fclose_cleanup): Delete unused variable.
4694 (do_all_inferior_continuations): Delete unused variable.
4695 (initialize_utils): Delete unused variable.
4696 (internal_problem_mode): Delete unused global.
4697 * frame.c (get_prev_frame): Delete unused global.
4698 (get_frame_locals_address): Delete unused global.
4699 (get_frame_args_address): Delete unused global.
4701 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
4702 (pascal_type_print_varspec_prefix): Delete unused variable.
4703 * f-typeprint.c (f_type_print_base): Delete unused variable.
4704 (f_type_print_varspec_suffix): Delete unused variable.
4705 * m2-typeprint.c (m2_print_type): Delete unused variable.
4706 (m2_long_set): Delete unused variable.
4707 * ada-valprint.c (ada_val_print_1): Delete unused variable.
4708 * d-valprint.c (dynamic_array_type): Delete unused variable.
4709 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
4710 Delete unused variable.
4711 (f77_create_arrayprint_offset_tbl): Delete unused variable.
4712 * m2-valprint.c (m2_val_print): Delete unused variable.
4714 * ui-out.c (ui_out_field_int): Delete unused variable.
4715 (ui_out_field_fmt_int): Delete unused variable.
4716 * varobj.c (varobj_list_children): Delete unused variable.
4717 (varobj_set_value): Delete unused variable.
4718 (install_new_value_visualizer): Delete unused variable.
4719 (varobj_set_visualizer): Delete unused variable.
4720 (varobj_update): Delete unused variable.
4721 (varobj_editable_p): Delete unused variable.
4722 (c_value_of_root): Delete unused variable.
4723 (cplus_describe_child): Delete unused variable.
4725 * ada-lang.c (add_defn_to_vec): Delete unused variable.
4726 (decode_constrained_packed_array_type): Delete unused variable.
4727 (add_defn_to_vec): Delete unused variable.
4728 (symbol_completion_match): Delete unused variable.
4729 (value_tag_from_contents_and_address): Delete unused variable.
4730 (ada_evaluate_subexp): Delete unused variable.
4731 * c-lang.c (classify_type): Delete unused variable.
4732 * f-lang.c (f_printstr): Delete unused variable.
4733 * objc-lang.c (objc_printstr): Delete unused variable.
4734 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
4735 * jv-lang.c (type_from_class): ifdef unused variable.
4736 (java_class_name_from_physname): Delete unused variable.
4737 * m2-lang.c (m2_printstr): Delete unused variable.
4739 * objfiles.c (objfile_relocate): Delete unused variable.
4740 * maint.c (_initialize_maint_cmds): Delete unused variable.
4741 * demangle.c (_initialize_demangler): Delete unused variable.
4742 * corefile.c (reopen_exec_file): Delete unused variable.
4743 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
4744 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
4746 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
4747 * memattr.c (mem_delete): Delete unused variable.
4748 (invalidate_target_mem_regions): Delete unused variable.
4749 * mem-break.c (default_memory_insert_breakpoint):
4750 Delete unused variable.
4751 * target.c (target_get_osdata): Delete unused variable.
4752 * parse.c (length_of_subexp): Delete unused variable.
4753 (prefixify_subexp): Delete unused variable.
4754 (exp_iterate): Delete unused variable.
4755 * reverse.c (delete_bookmark_command): Delete unused variable.
4757 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
4758 * macroexp.c (gather_arguments): Delete unused variable.
4759 (substitute_args): Delete unused variable.
4760 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
4761 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
4762 (_initialize_gdbarch): Delete unused variable.
4763 * gdbarch.c, gdbarch.h: Regenerate.
4764 * arch-utils.c (initialize_current_architecture):
4765 Delete unused variable.
4766 (_initialize_gdbarch_utils): Delete unused variable.
4767 * gdbtypes.c (make_cv_type): Delete unused variable.
4768 (make_type_with_address_space): Delete unused variable.
4770 * linespec.c (decode_compound): Delete unused variable.
4771 * dictionary.c (iterator_next_hashed): Delete unused variable.
4772 * infcall.c (call_function_by_hand): Delete unused variable.
4773 * infcmd.c (step_1): Delete unused variable.
4774 (registers_info): Delete unused variable.
4775 (attach_command): Delete unused variable.
4776 * infrun.c (follow_exec): Delete unused variable.
4777 (handle_step_into_function_backwards): Delete unused variable.
4778 (_initialize_infrun): Delete unused variable.
4779 * stack.c (parse_frame_specification_1): Delete unused variable.
4780 (frame_info): Delete unused variable.
4781 (backtrace_command_1): Delete unused variable.
4782 (catch_info): Delete unused variable.
4784 * eval.c (evaluate_subexp_standard): Delete unused variable.
4785 * valops.c (value_cast_pointers): Delete unused variable.
4786 (value_dynamic_cast): Delete unused variable.
4787 (value_array): Delete unused variable.
4788 (find_overload_match): Delete unused variable.
4789 * valarith.c (value_subscript): Delete unused variable.
4790 (value_binop): Delete unused variable.
4791 * valprint.c (_initialize_valprint): Delete unused variable.
4792 * printcmd.c (print_command_1): Delete unused variable.
4793 (address_info): Delete unused variable.
4794 (printf_command): Delete unused variable.
4796 * auxv.c (target_auxv_search): Delete unused variable.
4797 * blockframe.c (get_frame_block): Delete unused variable.
4798 * regcache.c (regcache_cpy): Delete unused variable.
4799 (regcache_cpy_no_passthrough): Delete unused variable.
4800 * charset.c (wchar_iterate): Delete unused variable.
4801 (find_charset_names): Delete unused variable.
4802 (_initialize_charset): Delete unused variable.
4803 * disasm.c (do_mixed_source_and_assembly):
4804 Delete unused variable.
4805 * source.c (set_default_source_symtab_and_line):
4806 Delete unused variable.
4807 (set_substitute_path_command): Delete unused variable.
4808 * value.c (preserve_values): Delete unused variable.
4809 (value_from_double): Delete unused variable.
4811 2010-05-05 Michael Snyder <msnyder@vmware.com>
4813 * psymtab.c (lookup_partial_symbol): Delete unused variable.
4814 (find_last_source_symtab_from_partial): Delete unused variable.
4815 * symfile.c (place_section): Delete unused variable.
4816 (default_symfile_offsets): Delete unused variable.
4817 (get_debug_link_info): Delete unused variable.
4818 (find_separate_debug_file_by_debuglink): Delete unused variable.
4819 (add_symbol_file_command): Delete unused variable.
4820 (symfile_find_segment_sections): Delete unused variable.
4821 * symmisc.c (free_symtab): Delete unused variable.
4822 (dump_symtab_1): Delete unused variable.
4823 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
4824 (find_pc_sect_symtab): Delete unused variable.
4825 (skip_prologue_using_lineinfo): Delete unused variable.
4826 (sources_info): Delete unused variable.
4827 (completion_list_add_name): Delete unused variable.
4828 (expand_line_sal): Delete unused variable.
4830 * breakpoint.c (validate_commands_for_breakpoint):
4831 Delete unused variables.
4832 (insert_catchpoint): Delete unused variable.
4833 (update_watchpoint): Delete unused variable.
4834 (insert_bp_location): Delete unused variable.
4835 (insert_breakpoint_locations): Delete unused variable.
4836 (remove_breakpoint_1): Delete unused variable.
4837 (software_breakpoint_inserted_here_p): Delete unused variable.
4838 (watchpoints_triggered): Delete unused variable.
4839 (bpstat_check_watchpoint): Delete unused variable.
4840 (bpstat_stop_status): Delete unused variable.
4841 (print_one_breakpoint_location): Delete unused variable.
4842 (allocate_bp_location): Delete unused variable.
4843 (create_breakpoint): Delete unused variable.
4844 (watch_command_1): Delete unused variable.
4845 (catch_exception_command_1): Delete unused variable.
4846 (catch_ada_exception_command): Delete unused variable.
4847 (delete_breakpoint): Delete unused variable.
4848 (breakpoint_re_set_one): Delete unused variable.
4849 (do_enable_breakpoint): Delete unused variable.
4851 2010-05-06 Pedro Alves <pedro@codesourcery.com>
4853 * amd64-tdep.c: Include disasm.h.
4854 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
4855 (amd64_insn_length): Moved to disasm.c and renamed.
4856 (fixup_riprel): Adjust.
4857 * disasm.c (do_ui_file_delete): New.
4858 (gdb_insn_length): New.
4859 (gdb_buffered_insn_length_fprintf)
4860 (gdb_buffered_insn_length_init_dis)
4861 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
4863 * disasm.h (gdb_insn_length): Declare.
4864 (gdb_buffered_insn_length): Declare.
4866 2010-05-06 Pedro Alves <pedro@codesourcery.com>
4868 * remote.c (clear_threads_parsing_context): New.
4869 (remote_threads_info): Delete unused null_cleanup. Install a
4870 cleanup to clear the threads_parsing_context in case parsing
4873 2010-05-05 Michael Snyder <msnyder@vmware.com>
4875 * c-exp.y (parse_string_or_char): Delete unused variable.
4876 (c_lex): Delete unused variable.
4877 * cp-name-parser.y (cpname_lex): Delete unused variable.
4878 * ada-exp.y (find_primitive_type): Delete unused variable.
4879 (write_var_or_type): Delete unused variable.
4880 * jv-exp.y (java_parse): Delete unused variable.
4881 (push_expression_name): Delete unused variable.
4882 * p-exp.y (pascal_lex): Delete unused variable.
4884 2010-05-05 Pedro Alves <pedro@codesourcery.com>
4886 * remote.c (remote_threads_info): Really revert previous previous
4889 2010-05-05 Michael Snyder <msnyder@vmware.com>
4891 * elfread.c (elf_symtab_read): Delete unused variable.
4892 (find_separate_debug_file_by_buildid): Delete unused variables.
4893 (elf_symfile_read): Delete unused variable.
4895 * coffread.c (coff_symfile_read): Delete unused variables.
4897 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
4898 (read_pe_exported_syms): Delete unused variable.
4900 * stabsread.c (define_symbol): Delete unused variable.
4902 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
4903 (process_psymtab_comp_unit): Delete unused variable.
4904 (dwarf2_build_psymtabs_hard): Delete unused variable.
4905 (load_partial_comp_unit): Delete unused variable.
4906 (create_all_comp_units): Delete unused variable.
4907 (scan_partial_symbols): Delete unused variable.
4908 (add_partial_symbol): Delete unused variable.
4909 (add_partial_namespace): Delete unused variable.
4910 (add_partial_enumeration): Delete unused variable.
4911 (load_full_comp_unit): Delete unused variable.
4912 (process_full_comp_unit): Delete unused variable.
4913 (read_file_scope): Delete unused variable.
4914 (read_type_unit_scope): Delete unused variable.
4915 (process_structure_scope): Delete unused variable.
4916 (process_enumeration_scope): Delete unused variable.
4917 (read_tag_ptr_to_member_type): Delete unused variable.
4918 (read_typedef): Delete unused variable.
4919 (read_partial_die): Delete unused variable.
4920 (decode_locdesc): Delete unused variable.
4921 (zeroed_partial_die): Delete unused global variable.
4923 * tui/tui-interp.c (_initialize_tui_interp):
4924 Delete unused variable.
4925 * tui/tui-regs.c tui_display_registers_from):
4926 Delete unused variable.
4927 (tui_check_register_values): Delete unused variable.
4928 (tui_register_format): Delete unused variable.
4929 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
4930 * tui/tui-windata.c (tui_display_data_from_line):
4931 Delete unused variables.
4932 (tui_vertical_data_scroll): Delete unused variables.
4934 2010-05-05 Michael Snyder <msnyder@vmware.com>
4936 * remote.c (remote_threads_info): Revert questionable part of
4937 the previous change.
4939 2010-05-05 Michael Snyder <msnyder@vmware.com>
4941 * mi/mi-out.c (mi_table_begin): Delete unused variable.
4942 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
4943 (mi_cmd_var_list_children): Delete unused variable.
4944 (varobj_update_one): Delete unused variable.
4945 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
4946 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
4947 Delete unused variable.
4948 (mi_cmd_stack_list_variables): Delete unused variable.
4949 (list_args_or_locals): Delete unused variable.
4950 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
4951 Delete unused variables.
4952 (mi_cmd_file_list_exec_source_files): Delete unused variable.
4953 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
4954 Delete unused variable.
4955 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
4956 (mi_cmd_interpreter_exec): Delete unused variable.
4957 (mi_on_normal_stop): Delete unused variable.
4958 * mi/mi-main.c (run_one_inferior): Delete unused variable.
4959 (print_one_inferior): Delete unused variables.
4960 (mi_execute_command): Delete unused variable.
4961 (mi_cmd_execute): Delete unused variable.
4962 (timestamp): Delete unused variable.
4964 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
4965 (restore_binary_file): Delete unused variable.
4966 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
4967 * cli/cli-script.c (define_command): Delete unused variables.
4968 (recurse_read_control_structure): Delete unused variable.
4969 (script_from_file): Delete unused variable.
4970 * cli/cli-cmds.c (complete_command): Delete unused variable.
4971 (disassemble_command): Delete unused variable.
4973 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
4974 * tracepoint.c (delete_trace_variable_command):
4975 Delete unused variables.
4976 (encode_actions_1): Delete unused variables.
4977 (start_tracing): Delete unused variable.
4978 (trace_status_mi): Delete unused variable.
4979 (tfind_1): Delete unused variable.
4980 (trace_find_pc_command): Delete unused variable.
4981 (trace_find_line_command): Delete unused variables.
4982 (trace_find_range_command): Delete unused variables.
4983 (trace_find_outside_command): Delete unused variables.
4984 (parse_tracepoint_definition): Delete unused variables.
4985 (tfile_fetch_registers): Delete unused variable.
4987 * dcache.c (dcache_init): Delete unused variable.
4988 (dcache_info): Delete unused variable.
4990 * remote.c (remote_threads_info): Delete unused variable.
4991 (process_stop_reply) :Delete unused variable.
4992 (remote_get_trace_status): Delete unused variables.
4994 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
4995 (thread_from_lwp): Delete unused variable.
4996 (enable_thread_event_reporting): Delete unused variable.
4997 (check_for_thread_db): Delete unused variables.
4998 (thread_db_find_new_threads_2): Delete unused variable.
5000 * linux-fork.c (info_checkpoints_command): Delete unused variables.
5001 (checkpoint_command): Delete unused variable.
5002 (linux_fork_context): Delete unused variables.
5004 * linux-nat.c (linux_parent_pid): Delete unused global variable.
5005 (linux_tracefork_child): Delete unused variable.
5006 (linux_child_follow_fork): Delete unused variable.
5007 (linux_nat_detach): Delete unused variable.
5008 (linux_handle_extended_wait): Delete unused variable.
5009 (linux_nat_has_pending_sigint): Delete unused variable.
5010 (linux_nat_find_memory_regions): Delete unused variable.
5011 (linux_nat_make_corefile_notes): Delete unused variables.
5012 (linux_nat_info_proc_cmd): Delete unused variable.
5013 (linux_proc_pending_signals): Delete unused variable.
5014 (linux_nat_stop_lwp): Delete unused variables.
5015 (_initialize_linux_nat): Delete unused variable.
5017 * ser-pipe.c (pipe_ops): Delete unused global variable.
5019 * linux-record.c (record_linux_system_call):
5020 Delete unused variables.
5022 * corelow.c (core_xfer_partial): Delete unused variables.
5024 * solib-svr4.c (find_program_interpreter): Delete unused variable.
5025 (svr4_solib_create_inferior_hook): Add ifdef around
5026 conditionally-used variable declarations.
5028 * solib.c (solib_find): Delete unused variable.
5029 (free_so_symbols): Delete unused variable.
5030 (info_sharedlibrary_command): Delete unused variable.
5031 (reload_shared_libraries_1): Delete unused variable.
5032 (_initialize_solib): Delete unused variable.
5034 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
5035 (i386_collect_xstateregset): Delete unused variable.
5036 * i387-tdep.c (i387_print_float_info): Delete unused variable.
5038 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
5039 Delete unused variable 'type'.
5041 2010-05-05 Joel Brobecker <brobecker@adacore.com>
5043 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
5044 ada-lang.c: Remove comment mentioning these macros.
5045 * m2-exp.y: Delete commented out code.
5047 2010-05-05 Joel Brobecker <brobecker@adacore.com>
5049 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
5051 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
5053 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
5055 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
5056 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
5058 (cleanup_kernel_helper_return): Likewise.
5059 * arm-tdep.c (copy_unmodified): Likewise.
5060 (copy_preload): Likewise.
5061 (copy_copro_load_store): Likewise.
5062 (cleanup_branch): Likewise.
5063 (copy_b_bl_blx): Likewise.
5064 (copy_bx_blx_reg): Likewise.
5065 (copy_alu_imm): Likewise.
5066 (copy_alu_reg): Likewise.
5067 (copy_alu_shifted_reg): Likewise.
5068 (cleanup_load): Likewise.
5069 (cleanup_store): Likewise.
5070 (cleanup_block_load_pc): Likewise.
5071 (cleanup_svc): Likewise.
5072 (copy_undef): Likewise.
5073 (copy_unpred): Likewise.
5074 * remote.c (register_remote_support_xml): Likewise.
5076 2010-05-05 Hui Zhu <teawater@gmail.com>
5078 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
5080 2010-05-04 Mark Kettenis <kettenis@gnu.org>
5082 * remote.c (register_remote_support_xml)
5083 (remote_query_supported_append, remote_query_supported): Add cast
5084 to NULL used as sentinel.
5085 * tracepoint.c (tvariables_info_1): Likewise.
5086 * utils.c (add_internal_problem_command): Likewise.
5088 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5090 * dwarf2loc.c (read_pieced_value, write_pieced_value,
5091 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
5092 registers gracefully.
5094 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5096 * exec.c (print_section_info): Display entry point without arch
5099 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
5102 * printcmd.c (x_command): Only dereference once implicitly for
5105 2010-05-03 Doug Evans <dje@google.com>
5107 * event-loop.c (gdb_timer): Delete unused global.
5108 (create_timer): Update.
5110 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5112 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
5113 CURRENT->DECLARATION case.
5114 * cp-support.h (struct using_direct): Provide extended comment.
5116 2010-05-03 Mark Kettenis <kettenis@gnu.org>
5118 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
5119 HPPABSD_SIZEOF_GREGS.
5120 (HPPAOBSD_SIZEOF_FPREGS): New define.
5121 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
5122 (hppaobsd_supply_fpregset): New function.
5123 (hppaobsd_gregset): Renamed from hppabsd_gregset.
5124 (hppaobsd_fpregset): New variable.
5125 (hppaobsd_regset_from_core_section): Handle floating-point registers.
5126 (_initialize_hppabsd_tdep): Remove spurious blank line.
5128 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5131 * p-valprint.c (pascal_value_print): Always dereference a value with
5132 type code TYPE_CODE_REF.
5134 2010-05-03 Pedro Alves <pedro@codesourcery.com>
5136 * remote.c (remote_notice_signals): New.
5137 (remote_start_remote): In non-stop mode, update the remote end on
5138 which signals it can silently pass.
5139 (init_remote_ops): Install remote_notice_signals.
5141 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5143 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
5144 * command.h (error_no_arg): ... here. Remove NORETURN, change
5145 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5146 * defs.h (NORETURN, ATTR_NORETURN): Remove.
5147 (perror_with_name, verror, error, error_stream, vfatal, fatal)
5148 (internal_verror, internal_error, nomem): Remove NORETURN, change
5149 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5150 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
5151 (throw_vfatal, throw_error): Remove NORETURN.
5152 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
5153 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
5154 (throw_error, deprecated_throw_reason): Remove NORETURN, change
5155 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5156 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
5157 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
5159 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
5160 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
5162 * target.c (tcomplain): Likewise.
5163 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
5165 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
5166 (internal_error, perror_with_name, nomem): Remove NORETURN.
5167 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
5170 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5172 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5173 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
5174 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
5175 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5176 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
5177 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5178 * complaints.h (complaint, internal_complaint): Likewise.
5179 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
5180 (ATTR_FORMAT): Remove.
5181 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
5182 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
5183 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
5184 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
5185 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
5186 (internal_error, internal_vwarning, internal_warning, warning)
5187 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5188 * disasm.c (fprintf_disasm): Likewise.
5189 * exceptions.c (throw_it): Likewise.
5190 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
5191 (throw_error): Likewise.
5192 * language.h (type_error, range_error): Likewise.
5193 * linespec.c (cplusplus_error): Likewise.
5194 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
5195 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
5196 * monitor.c (monitor_debug): Likewise.
5197 * parser-defs.h (parser_fprintf): Likewise.
5198 * serial.h (serial_printf): Likewise.
5199 * tui/tui-hooks.c (tui_query_hook): Likewise.
5200 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
5201 (uo_message): Likewise.
5202 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
5203 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
5205 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
5207 2010-05-02 Pedro Alves <pedro@codesourcery.com>
5209 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
5210 (cli_table_header, cli_begin, cli_end, cli_field_int)
5211 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
5212 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
5213 Delete forward declarations.
5214 (cli_ui_out_impl): Move below the callbacks.
5215 (_initialize_cli_out): Delete.
5217 2010-05-02 Pedro Alves <pedro@codesourcery.com>
5219 * README: Use consistent `GDB' and `GDBserver' spellings.
5221 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5223 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
5225 2010-05-01 Pedro Alves <pedro@codesourcery.com>
5227 * infrun.c (prepare_for_detach): In non-stop, context switch to
5228 the thread that got the event before handling the event.
5230 2010-04-30 Tom Tromey <tromey@redhat.com>
5232 * symtab.c (symbol_set_names): Fix typo.
5234 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5236 * python/py-param.c (parm_constants): Avoid ARI warning
5237 by adding ARI comment.
5238 (parmpy_init): Likewise.
5240 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5242 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
5243 and created type for re-use.
5245 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5247 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
5249 2010-04-29 Doug Evans <dje@google.com>
5251 * ser-base.h (reschedule): Delete prototype.
5252 * ser-base.c (reschedule): Make static.
5254 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5256 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
5257 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
5258 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
5260 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
5263 2010-04-29 Pedro Alves <pedro@codesourcery.com>
5267 * regcache.c (registers_changed): Rename to ...
5268 (registers_changed_ptid): ... this, and only delete register cache
5269 entries matching the ptid filter argument.
5270 (registers_changed): Reimplement on top of registers_changed_ptid.
5271 * regcache.h (registers_changed_ptid): Declare.
5272 * target.c (target_resume): Flush register caches.
5274 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
5275 Tom Tromey <tromey@redhat.com>
5276 Thiago Jung Bauermann <bauerman@br.ibm.com>
5278 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
5279 (SUBDIR_PYTHON_SRCS): Likewise.
5280 (py-parameter.o): New rule.
5281 * python/py-parameter.c: New file.
5282 * python/python-internal.h (gdbpy_initialize_parameter)
5283 (gdbpy_parameter, gdbpy_parameter_value)
5284 (gdbpy_parse_command_name): Declare.
5285 * python/py-cmd.c (parse_command_name): Rename to
5286 gdbpy_parse_command_name.
5287 (gdbpy_parse_command_name): Accept a starting list parameter and
5289 (cmdpy_init): Use gdbpy_parse_command_name.
5290 * python/python.c (parameter_to_python): Rename to
5291 gdbpy_parameter_to_python. Accept enum var_types and value.
5292 (gdbpy_parameter): Use gdbpy_parameter_value.
5293 (_initialize_python): Call gdbpy_initialize_parameters.
5295 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5297 * MAINTAINERS: Add myself for write after approval privileges.
5299 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
5302 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
5303 (COMMON_OBS): Add d-lang.o d-valprint.o.
5304 (HFILES_NO_SRCDIR): Add d-lang.h.
5305 * NEWS: Mention D language support.
5306 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
5307 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
5308 * d-lang.c: New file.
5309 * d-lang.h: New file.
5310 * d-valprint.c: New file.
5311 * defs.h (enum language): Add language_d.
5312 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
5313 * language.c (binop_result_type, integral_type, character_type)
5314 (string_type, boolean_type, structured_type): Add language_d.
5315 * symfile.c (init_filename_language_table): Add language_d.
5316 * symtab.c: Include d-lang.h.
5317 (symbol_init_language_specific, symbol_find_demangled_name)
5318 (symbol_natural_name, lookup_symbol_in_language)
5319 (symbol_demangled_name, symbol_matches_domain): Add language_d.
5321 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5323 * solib-svr4.c (solib_svr4_r_map): Expand function description.
5325 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5327 * symfile.c (init_filename_language_table): Register .dg files
5330 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5332 * gdbtypes.h (struct main_type): Expand comment about target_type
5335 2010-04-27 Pedro Alves <pedro@codesourcery.com>
5336 Tristan Gingold <gingold@adacore.com>
5338 * symfile.c (reread_symbols): Also search for file in libraries.
5341 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5343 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
5344 in terms of configuration.
5346 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5348 * objfiles.c: Include solist.h.
5349 (free_all_objfiles): New variable so. Check stale solist objfiles.
5350 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
5351 and no_shared_libraries.
5353 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5356 * python/py-auto-load.c (source_section_scripts): Remove trailing
5357 new-line in i18n string.
5359 2010-04-26 Doug Evans <dje@google.com>
5361 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
5363 2010-04-26 Tom Tromey <tromey@redhat.com>
5365 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
5368 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
5370 Removal of config/i386/nm-i386sol2.h native configuration file.
5371 * config/i386/nm-i386sol2.h: Remove file.
5372 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
5373 * config/i386/sol2-64.mh: Idem.
5374 * config/djgpp/fnchange.lst: Remove reference to that file.
5375 * Makefile.in (HFILES_NO_SRCDIR): Idem.
5377 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
5379 PR breakpoints/11531.
5380 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
5381 macro definition and related comment.
5382 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
5383 (resume): Remove code and comment related to this macro.
5385 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5387 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
5390 2010-04-24 Pedro Alves <pedro@codesourcery.com>
5392 * defs.h: Adjust comment.
5393 * filesystem.h, filesystem.c: New files.
5394 * Makefile.in (SFILES): Add filesystem.c.
5395 (COMMON_OBS): Add filesystem.o.
5396 * solib.c (solib_find): Handle DOS-based filesystems. Handle
5397 different target and host path flavours.
5398 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
5399 has_dos_based_file_system on the gdbarch.
5400 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
5401 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
5402 * i386-tdep.c (i386_go32_init_abi): Ditto.
5403 * gdbarch.sh (has_dos_based_file_system): New.
5404 * gdbarch.h, gdbarch.c: Regenerate.
5405 * NEWS: Mention improved support for remote targets with DOS-based
5406 filesystems. Mention new `set/show target-file-system-kind'
5409 2010-04-23 Stan Shebs <stan@codesourcery.com>
5411 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
5413 (struct agent_reqs): Remove.
5414 (ax_reg_mask): Declare.
5415 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
5416 (free_agent_expr): Free reg_mask.
5417 (ax_print): Add scope and register mask info.
5418 (ax_reqs): Remove agent_reqs argument, use agent expression
5419 fields, and move part of register mask computation to...
5420 (ax_reg_mask): New function.
5421 * ax-gdb.c (gen_trace_static_fields): Call it.
5422 (gen_traced_pop): Ditto.
5423 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
5424 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
5425 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
5426 (gen_eval_for_expr): Ditto, and require an rvalue.
5427 (agent_command): Call ax_reqs.
5428 (agent_eval_command): Ditto.
5429 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
5430 (validate_action_line): Ditto.
5431 (collect_symbol): Ditto.
5432 (encode_actions_1): Ditto.
5434 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
5435 Paul Pluzhnikov <ppluzhnikov@google.com>
5436 Jan Kratochvil <jan.kratochvil@redhat.com>
5438 Fix deadlock on looped list of loaded shared objects.
5439 * solib-svr4.c (LM_PREV): New function.
5440 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
5441 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
5442 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
5443 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
5445 2010-04-23 Doug Evans <dje@google.com>
5447 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
5449 * configure: Regenerate.
5450 * main.c: #include "python/python.h".
5451 (captured_main): Defer loading auto-loaded scripts until after
5452 local_gdbinit has been sourced.
5453 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
5454 (load_auto_scripts_for_objfile): New function.
5455 (auto_load_new_objfile): Call it.
5456 * python/python.h (gdbpy_global_auto_load): Declare.
5457 (load_auto_scripts_for_objfile): Declare.
5459 Add support for auto-loading scripts from .debug_gdb_scripts section.
5460 * NEWS: Add entry for .debug_gdb_scripts.
5461 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
5462 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
5463 (py-auto-load.o): New rule.
5464 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
5465 * cli/cli-cmds.h (find_and_open_script): Update prototype.
5466 * python/py-auto-load.c: New file.
5467 * python/python-internal.h: #include <stdio.h>.
5468 (set_python_list, show_python_list): Declare.
5469 (gdbpy_initialize_auto_load): Declare.
5470 (source_python_script_for_objfile): Declare.
5471 * python/python.c: Remove #include of observer.h.
5472 (gdbpy_auto_load): Moved to py-auto-load.c.
5473 (GDBPY_AUTO_FILENAME): Ditto.
5474 (gdbpy_new_objfile): Delete.
5475 (source_python_script_for_objfile): New function.
5476 (set_python_list, show_python_list): Make externally visible.
5477 (_initialize_python): Move "auto-load" command to py-auto-load.c
5478 and observer_attach_new_objfile to py-auto-load.c.
5480 2010-04-23 Jerome Guitton <guitton@adacore.com>
5482 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
5483 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
5484 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
5486 (alpha_heuristic_analyze_probing_loop): New function.
5487 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
5488 and handle cases when a stack probe loop is generated.
5489 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
5490 (alpha_mdebug_max_frame_size_exceeded): New function.
5491 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
5492 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
5493 Return 0 when the maximum debuggable frame size has been exceeded.
5495 2010-04-23 Joel Brobecker <brobecker@adacore.com>
5498 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
5500 2010-04-20 Chris Moller <cmoller@redhat.com>
5504 * symtab.c (rbreak_command): Added code to include a filename
5505 specification in the rbreak argument.
5506 * NEWS: Added a brief description of filename-qualified rbreak.
5508 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5510 Fix crashes on dangling display expressions.
5511 * ada-lang.c (ada_operator_check): New function.
5512 (ada_exp_descriptor): Fill-in the field operator_check.
5513 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
5514 * jv-lang.c (exp_descriptor_java): Likewise.
5515 * m2-lang.c (exp_descriptor_modula2): Likewise.
5516 * scm-lang.c (exp_descriptor_scm): Likewise.
5517 * parse.c (exp_descriptor_standard): Likewise.
5518 (operator_check_standard): New function.
5519 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
5520 * parser-defs.h (struct exp_descriptor): New field operator_check.
5521 (operator_check_standard, exp_uses_objfile): New declarations.
5522 * printcmd.c: Remove the inclusion of solib.h.
5523 (display_uses_solib_p): Remove the function.
5524 (clear_dangling_display_expressions): Call lookup_objfile_from_block
5525 and exp_uses_objfile instead of display_uses_solib_p.
5526 * solist.h (struct so_list) <objfile>: New comment.
5527 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
5528 * symtab.h (lookup_objfile_from_block): New declaration.
5529 (struct general_symbol_info) <obj_section>: Extend the comment.
5531 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5532 Thiago Jung Bauermann <bauerman@br.ibm.com>
5534 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
5535 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
5536 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
5537 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
5538 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
5539 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
5540 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
5541 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
5542 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
5543 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
5544 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
5545 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
5546 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
5547 Define, in case <ptrace.h> doesn't provide it.
5548 (booke_debug_info): New variable.
5549 (max_slots_number): Ditto.
5550 (hw_break_tuple): New struct.
5551 (thread_points): Ditto.
5552 (ppc_threads): New variable.
5553 (PPC_DEBUG_CURRENT_VERSION): New define.
5554 (have_ptrace_new_debug_booke): New function.
5555 (ppc_linux_check_watch_resources): Renamed to ...
5556 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
5557 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
5558 (booke_cmp_hw_point): New function.
5559 (booke_find_thread_points_by_tid): Ditto.
5560 (booke_insert_point): Ditto.
5561 (booke_remove_point): Ditto.
5562 (ppc_linux_insert_hw_breakpoint): Ditto.
5563 (ppc_linux_remove_hw_breakpoint): Ditto.
5564 (get_trigger_type): Ditto.
5565 (ppc_linux_insert_watchpoint): Handle BookE processors.
5566 (ppc_linux_remove_watchpoint): Ditto.
5567 (ppc_linux_new_thread): Ditto.
5568 (ppc_linux_thread_exit): New function..
5569 (ppc_linux_stopped_data_address): Handle BookE processors.
5570 (ppc_linux_watchpoint_addr_within_range): Ditto.
5571 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
5572 to_remove_hw_breakpoint fields of the target operations struct.
5573 Add observe for the thread_exit event.
5575 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
5577 * i386-linux-nat.c (regmap): Removed.
5578 (fetch_register): Replace regmap with
5579 i386_linux_gregset_reg_offset.
5580 (store_register): Likewise.
5581 (supply_gregset): Likewise.
5582 (fill_gregset): Likewise.
5584 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
5587 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
5589 2010-04-22 Chris Moller <cmoller@redhat.com>
5591 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
5592 method of popping recursion-detection stack with a method based on
5593 obstack_object_size(). (Similar to the PR9167 patch below, but for
5594 the static array obstack rather than the static member obstack.)
5596 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
5598 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
5599 (_initialize_amd64_linux_nat): Replace
5600 amd64_linux_gregset64_reg_offset with
5601 amd64_linux_gregset_reg_offset.
5603 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
5606 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
5608 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
5611 * stabsread.c (set_length_in_type_chain): New function.
5612 (read_struct_type): Call set_length_in_type_chain function.
5613 (read_enum_type): Idem.
5615 2010-04-21 Stan Shebs <stan@codesourcery.com>
5616 Nathan Sidwell <nathan@codesourcery.com>
5618 * tracepoint.c (trace_save): Open in binary mode.
5620 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
5622 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
5624 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
5625 builtin_char32 fields.
5626 * printcmd.c (decode_format): Set char size to '\0'
5627 for strings unless explicit size is given.
5628 (print_formatted): Correct calculation of NEXT_ADDRESS
5629 for 16 or 32 bit strings.
5630 (do_examine): Do not force byte size for strings.
5631 Use builtin_char16 and builtin_char32 types to display
5632 16 or 32 bit-wide strings.
5633 (x_command): Set LAST_SIZE to 'b' for string type.
5635 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
5638 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5641 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
5642 there is no .reg-xstate section.
5643 (i386_linux_core_read_description): Check XCR0 first.
5645 2010-04-21 Mike Frysinger <vapier@gentoo.org>
5647 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
5650 2010-04-21 Chris Moller <cmoller@redhat.com>
5653 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
5654 method of popping recursion-detection stack with a method based on
5655 obstack_object_size().
5657 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5660 * p-valprint.c (pascal_val_print): Fix default printing of integer
5663 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5665 Fix compilation warning on gcc-4.1.2.
5666 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
5667 local variable`pc' to zero.
5669 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5671 Implement thread support with core files on alpha-tru64.
5672 * dec-thread.c (dec_thread_find_new_threads): New function,
5673 extracted from resync_thread_list.
5674 (resync_thread_list): Add OPS parameter. Replace extracted-out
5675 code by call to dec_thread_find_new_threads.
5676 (dec_thread_wait): Update call to resync_thread_list.
5677 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
5679 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5681 * ada-lang.c (value_pointer): New function.
5682 (make_array_descriptor): Call value_pointer to convert addresses to
5685 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5687 * rs6000-aix-tdep.c: #include exceptions.h.
5688 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
5689 while reading the memory at ADDR, then ADDR cannot be a function
5692 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5694 * ada-typeprint.c (ada_print_typedef): New function.
5695 * ada-lang.h (ada_print_typedef): Add declaration.
5696 * ada-lang.c (ada_language_defn): set la_print_typdef field
5697 to ada_print_typedef.
5699 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5701 * procfs.c (procfs_address_to_host_pointer): Only define when used.
5703 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5705 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
5706 (iterate_over_mappings): Adjust function profile. Add declaration.
5707 (insert_dbx_link_bpt_in_region, info_mappings_callback):
5710 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5712 * procfs.c (solib_mappings_callback): Move function up to avoid
5715 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5717 * procfs.c (find_signalled_thread, find_stop_signal): Move
5718 these functions down to define them only when used.
5720 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5722 * valprint.c (common_val_print): Fix the value before extracting
5724 * ada-lang.c (ada_to_fixed_value): Make this function extern.
5725 * ada-lang.h (ada_to_fixed_value): New function declaration.
5726 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
5727 to avoid code duplication and fix a bug in the handling of
5728 fixed types contents.
5730 2010-04-20 Tom Tromey <tromey@redhat.com>
5732 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
5733 (read_partial_die): Likewise.
5734 (dwarf_attr_name): Likewise.
5736 2010-04-20 Chris Moller <cmoller@redhat.com>
5740 * cp-valprint.c (global): Adding new static array recursion
5742 (cp_print_value_fields, cp_print_static_field): Added new static
5743 array recursion detection code.
5745 2010-04-20 Mark Kettenis <kettenis@gnu.org>
5747 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
5748 general-purpose register set should be 68 instead of 144.
5749 (i386_linux_sse_regset_sections): Likewise.
5750 (i386_linux_avx_regset_sections): Likewise.
5752 2010-04-20 Stan Shebs <stan@codesourcery.com>
5753 Nathan Sidwell <nathan@codesourcery.com>
5755 * dwarf2loc.c (struct axs_var_loc): New struct.
5756 (dwarf2_tracepoint_var_loc): New function.
5757 (dwarf2_tracepoint_var_access): New function.
5758 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
5760 (locexpr_describe_location_piece): New function.
5761 (locexpr_describe_location_1): New function.
5762 (locexpr_describe_location): Call it, update signature.
5763 (loclist_describe_location): Rewrite to loop over locations,
5765 * symtab.h (struct symbol_computed_ops): Add address to
5766 describe_location arguments, return void.
5767 * printcmd.c (address_info): Get context PC, pass to computed
5768 location description.
5769 * tracepoint.c (scope_info): Ditto.
5770 * ax-gdb.c (trace_kludge): Export.
5772 2010-04-20 Tom Tromey <tromey@redhat.com>
5774 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
5775 (struct dwarf2_cie) <segment_size>: New field.
5776 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
5777 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
5779 (read_attribute_value): Handle DW_FORM_flag_present,
5780 DW_FORM_sec_offset, DW_FORM_exprloc.
5781 (dump_die_shallow): Likewise.
5782 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
5783 (dwarf2_const_value): Handle DW_FORM_exprloc.
5784 (attr_form_is_block): Likewise.
5785 (struct line_header) <maximum_ops_per_instruction>: New field.
5786 (dwarf_decode_line_header): Set new field.
5787 (dwarf_decode_lines): Handle new field.
5789 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5791 * f-exp.y: Add new production to recognize the `logical*8' type.
5792 (LOGICAL_S8_KEYWORD): New token.
5793 * f-lang.c (enum f_primitive_types)
5794 <f_primitive_type_logical_s8>: New field.
5795 (f_language_arch_info): Handling `logical*8' type.
5796 (build_fortran_types): Building `logical*8' type.
5797 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
5799 2010-04-19 Doug Evans <dje@google.com>
5801 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
5802 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
5803 (pipe_close): Ditto.
5805 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5807 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
5809 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5811 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
5812 type to void function.
5814 2010-04-19 Stan Shebs <stan@codesourcery.com>
5815 Vladimir Prus <vladimir@codesourcery.com>
5817 * tracepoint.c (tfind_1): Add missing newline, report exit from
5819 * target.c (update_current_target): Make default
5820 to_trace_find return -1.
5822 2010-04-19 Mike Frysinger <vapier@gentoo.org>
5824 * objc-lang.c (find_methods): Move symname check up.
5826 2010-04-19 Pedro Alves <pedro@codesourcery.com>
5828 * ada-lang.c (print_recreate_exception)
5829 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
5830 not "catch unhandled".
5832 2010-04-19 Pedro Alves <pedro@codesourcery.com>
5834 PR breakpoints/8554.
5836 Implement `save-breakpoints'.
5838 * breakpoint.c (save_cmdlist): New.
5839 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
5841 (print_recreate_catch_fork): New.
5842 (catch_fork_breakpoint_ops): Install it.
5843 (print_recreate_catch_vfork): New.
5844 (catch_vfork_breakpoint_ops): Install it.
5845 (print_recreate_catch_syscall): New.
5846 (catch_syscall_breakpoint_ops): Install it.
5847 (print_recreate_catch_exec): New.
5848 (catch_exec_breakpoint_ops): Install it.
5849 (print_recreate_exception_catchpoint): New.
5850 (gnu_v3_exception_catchpoint_ops): Install it.
5851 (save_breakpoints): New, based on tracepoint_save_command, but
5852 handle all breakpoint types.
5853 (save_breakpoints_command): New.
5854 (tracepoint_save_command): Rename to...
5855 (save_tracepoints_command): ... this, and reimplement using
5857 (save_command): New.
5858 (_initialize_breakpoints): Install the "save" command prefix.
5859 Install the "save breakpoints" command. Make "save-tracepoints" a
5860 deprecated alias for "save tracepoints".
5861 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
5862 * ada-lang.c (print_recreate_exception): New.
5863 (print_recreate_catch_exception): New.
5864 (catch_exception_breakpoint_ops): Install it.
5865 (print_recreate_catch_exception_unhandled): New.
5866 (catch_exception_unhandled_breakpoint_ops): Install it.
5867 (print_recreate_catch_assert): New.
5868 (catch_assert_breakpoint_ops): Install it.
5870 * NEWS: Mention the new `save breakpoints' command. Mention the
5871 new `save tracepoints' alias and that `save-tracepoints' is now
5874 2010-04-18 Pedro Alves <pedro@codesourcery.com>
5878 * tui/tui-out.c: Include cli-out.h.
5879 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
5880 (tui_begin, tui_end, tui_field_int, tui_field_skip)
5881 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
5882 (tui_message, tui_wrap_hint, tui_flush): Delete forward
5884 (struct ui_out_data): Rename to...
5885 (struct tui_ui_out_data): ... this. Remove `stream' and
5886 `suppress_output' fields, and inherit cli_ui_out_data.
5887 (tui_out_data): New typedef.
5888 (tui_ui_out_impl): Don't initialize fields staticaly.
5889 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
5890 (tui_begin, tui_end): Delete.
5891 (tui_field_int): Adjust to delegate most work to the base type.
5892 (tui_field_skip): Delete.
5893 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
5894 delegate most work to the base type.
5895 (tui_spaces): Delete.
5896 (tui_text): Adjust to delegate most work to the base type.
5897 (tui_message): Delete.
5898 (tui_wrap_hint): Delete.
5899 (tui_flush): Delete.
5900 (out_field_fmt): Delete.
5901 (field_separator): Delete.
5902 (tui_out_new): Adjust to initialize the base type.
5903 (_initialize_tui_out): Initialize tui_ui_out_impl.
5904 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
5906 (cli_out_data): Adjust.
5907 (cli_ui_out_impl): Make extern.
5908 (cli_table_header, cli_field_int, cli_field_skip): Use
5909 uo_field_string instead of cli_field_string.
5910 (cli_redirect): Adjust to use cli_out_data.
5911 (cli_out_data_ctor): New.
5912 (cli_out_new): Use it.
5913 * cli-out.h (struct ui_file): Remove forward declaration.
5914 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
5915 (cli_ui_out_impl): Declare.
5916 (cli_out_data_ctor): Declare.
5917 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
5918 (uo_field_string): No longer static.
5919 (ui_out_data): Change return type to void pointer.
5920 (ui_out_new): Change `data' parameter type to void pointer.
5921 * ui-out.h (struct ui_out_data): Don't forward declare.
5922 (ui_out_data): Change return type to void pointer.
5923 (ui_out_new): Change `data' parameter type to void pointer.
5924 (uo_field_string): Declare.
5926 2010-04-17 Pedro Alves <pedro@codesourcery.com>
5928 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
5929 instead of always false.
5931 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
5934 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
5937 2010-04-17 Pedro Alves <pedro@codesourcery.com>
5939 * breakpoint.c (watchpoints_triggered): Use
5940 is_hardware_watchpoint.
5941 (watchpoints_triggered): Ditto.
5942 (bpstat_check_location): Use is_watchpoint and
5943 is_hardware_watchpoint.
5944 (bpstat_check_watchpoint): Use is_watchpoint and
5945 is_hardware_watchpoint.
5946 (bpstat_stop_status): Fix comment.
5947 (user_settable_breakpoint): Use is_watchpoint.
5948 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
5949 (disable_watchpoints_before_interactive_call_start): Use
5951 (enable_watchpoints_after_interactive_call_stop): Use
5953 (clear_command): Use is_watchpoint.
5954 (do_enable_breakpoint): Use is_watchpoint.
5956 2010-04-16 Mike Frysinger <vapier@gentoo.org>
5958 * solib-frv.c (enable_break1_done): Delete.
5959 (enable_break2): Do not check enable_break1_done. Move the
5960 enable_break2_done setting and call to
5961 remove_solib_event_breakpoints() to the end. Return without
5962 warning when the contents of _dl_debug_addr are 0.
5963 (enable_break): Do not set enable_break1_done.
5964 (frv_clear_solib): Likewise.
5966 2010-04-16 Kevin Buettner <kevinb@redhat.com>
5968 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
5969 instead of an error if no PLT entry is found. Return a
5970 potentially useful result.
5971 (m32c_m16c_pointer_to_address): Add code to search for function
5972 address when no .plt entry is found.
5974 2010-04-16 Stan Shebs <stan@codesourcery.com>
5976 * tracepoint.c (trace_variable_command): Run a cleanup.
5978 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
5980 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
5982 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
5984 Support for Windows OS Thread Information Block.
5985 * NEWS: Document new feature.
5986 * remote.c (PACKET_qGetTIBAddr): New enum element.
5987 (remote_get_tib_address): New function.
5988 (init_remote_ops): Set to_get_tib_address field
5989 to remote_get_tib_address.
5990 (_initialize_remote): Add add_packet_config_cmd
5991 for PACKET_qGetTIBAddr.
5992 * target.c (update_current_target): Set default value for
5993 new to_get_tib_address field.
5994 * target.h (target_ops): New field to_get_tib_address.
5995 (target_get_tib_address): New macro.
5996 * windows-nat.c (thread_info): Add thread_local_base field.
5997 (windows_add_thread): Add tlb argument of type 'void *'.
5998 (fake_create_process): Adapt windows_add_thread call.
5999 (get_windows_debug_event): Idem.
6000 (windows_get_tib_address): New function.
6001 (init_windows_ops): Set to_get_tib_address field
6002 to remote_get_tib_address.
6003 (_initialize_windows_nat): Replace info_w32_cmdlist
6004 initialization by a call to init_w32_command_list.
6005 (info_w32_command, info_w32_cmdlist): Removed from here...
6006 to windows-tdep.c file.
6007 * windows-tdep.h (info_w32_cmdlist): Declare.
6008 (init_w32_command_list): New external function
6010 * windows-tdep.c: Add several headers.
6011 (info_w32_cmdlist): to here, made global.
6012 (thread_information_32): New struct.
6013 (thread_information_64): New struct.
6014 (TIB_NAME): New char array.
6015 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
6016 (maint_display_all_tib): New static variable.
6017 (windows_get_tlb_type): New function.
6018 (tlb_value_read, tlb_value_write): New functions.
6019 (tlb_value_funcs): New static struct.
6020 (tlb_make_value): New function.
6021 (display_one_tib): New function.
6022 (display_tib): New function.
6023 (show_maint_show_all_tib):New function.
6024 (info_w32_command): Moved from windows-nat.c.
6025 (init_w32_command_list): New function.
6026 (_initialize_windows_tdep): New function.
6027 New "maint set/show show-all-tib" command
6028 New "$_tlb" internal variable.
6030 2010-04-16 Joel Brobecker <brobecker@adacore.com>
6032 * tui/tui-regs.c (tui_display_register): Add comment about
6034 * tui/tui-stack.c (tui_show_locator_content): Ditto.
6036 2010-04-15 Stan Shebs <stan@codesourcery.com>
6038 * frame.c: Include tracepoint.h.
6039 (get_current_frame): Allow a trace frame to be an alternate source
6040 of stack frame data.
6041 * tracepoint.c (tfind_1): Don't try to get current stack frame if
6044 2010-04-15 Pedro Alves <pedro@codesourcery.com>
6046 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
6048 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
6050 2010-04-15 Doug Evans <dje@google.com>
6052 * NEWS: Add entry for python program space support.
6053 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
6054 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
6055 (py-progspace.o): New rule.
6056 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
6058 (find_pretty_printer_from_progspace): New function.
6059 (find_pretty_printer_from_gdb): New function.
6060 (find_pretty_printer): Rewrite.
6061 * python/py-progspace.c: New file.
6062 * python/python-internal.h (program_space): Add forward decl.
6063 (pspace_to_pspace_object, pspy_get_printers): Declare.
6064 (gdbpy_initialize_pspace): Declare.
6065 * python/python.c: #include "progspace.h".
6066 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
6067 (_initialize_python): Call gdbpy_initialize_pspace.
6068 (GdbMethods): Add current_progspace, progspaces.
6070 Add -s option to source command.
6071 * NEWS: Document new option.
6072 * cli/cli-cmds.c (find_and_open_script): Add function comment.
6073 Delete from_tty and cleanupp args. Split filep arg into file and
6074 full_pathp. New arg search_path.
6075 (source_script_from_stream): New function.
6076 (source_script_with_search): New function.
6077 (source_script): Rewrite.
6078 (source_command): Parse "-s" option.
6079 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
6080 * python/python.c (source_python_script): Make file arg a const char *.
6081 Don't call fclose, leave for caller.
6082 * python/python.h (source_python_script): Update.
6084 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6085 Pedro Alves <pedro@codesourcery.com>
6087 Avoid rereading shared libraries that haven't changed.
6089 * solib.c (free_so_symbols): New function, from ...
6090 (free_so): ... here. Call it.
6091 (solib_read_symbols): Don't warn here if symbols have already been
6093 (solib_add): Warn here instead, if a pattern was specified.
6094 (reload_shared_libraries_1): New.
6095 (reload_shared_libraries): Rewrite to not fetch the library list.
6097 2010-04-14 Doug Evans <dje@google.com>
6099 * source.c (openp): Strip DOS drive letter if present before
6100 concatenating string to search path.
6102 2010-04-14 Pedro Alves <pedro@codesourcery.com>
6104 * objfiles.h (gdb_bfd_close_or_warn): Declare.
6105 * objfiles.c (gdb_bfd_close_or_warn): New.
6106 * corelow.c: Include objfiles.h
6107 (core_close): Use gdb_bfd_close_or_warn.
6108 * elfread.c (build_id_verify): Ditto.
6109 * exec.c (exec_close, exec_close_1): Ditto.
6111 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6112 Pedro Alves <pedro@codesourcery.com>
6114 Group errors for many missing shared libraries.
6116 * solist.h (struct so_list): Remove from_tty.
6117 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
6118 (solib_map_sections): Take so_list argument. Return 0 if we
6119 failed to open a BFD. Add target sections here.
6120 (symbol_add_stub): Delete.
6121 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
6122 not from_tty copied from the so_list. Don't warn a second time
6123 for a missing library.
6124 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
6125 add to the section table here. Print out a single warning for all
6127 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
6130 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
6132 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
6133 error/warning messages. Capitalize and use complete sentences.
6134 (blpy_block_syms_iternext): Likewise.
6135 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
6136 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
6137 (frame_info_to_frame_object, frapy_read_var)
6138 (gdbpy_frame_stop_reason_string): Likewise.
6139 * python/py-lazy-string.c (stpy_convert_to_value)
6140 (gdbpy_create_lazy_string_object): Likewise.
6141 * python/py-objfile.c (objfpy_set_printers): Likewise.
6142 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
6143 * python/python.c (parameter_to_python): Likewise.
6144 * python/py-type.c (typy_range, typy_target): Likewise.
6145 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
6146 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
6149 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
6153 * python/py-prettyprint.c (pretty_print_one_value): Test for
6155 (print_string_repr): Test for Py_None. Set flags accordingly.
6156 Return value depending on return type.
6157 (print_children): Take a value indicating whether data was printed
6158 before this function was called. Alter output accordingly.
6159 (apply_val_pretty_printer): Capture return value from
6160 print_string_repr and pass to print_children.
6162 2010-04-13 Mark Kettenis <kettenis@gnu.org>
6165 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
6166 register note sections.
6167 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
6169 (i386_linux_init_abi): Install list of supported register note
6170 sections that matches the target description.
6172 2010-04-13 Pedro Alves <pedro@codesourcery.com>
6174 * remote.c (remote_get_noisy_reply): Don't error out on empty
6176 (remote_start_remote): Update and merge tracepoints and trace
6177 state variables as long as the target supports tracepoints.
6178 (remote_trace_init): Fix prototype.
6179 (remote_download_trace_state_variable): Validate reply.
6180 (remote_trace_set_readonly_regions): Fix prototype.
6181 (remote_trace_start): Fix prototype. Check for empty reply.
6182 (remote_get_trace_status): Small cleanup.
6183 (remote_trace_stop): Fix prototype. Check for empty reply.
6184 (remote_trace_find): Check for empty reply.
6185 (remote_save_trace_data): Validate reply.
6186 (remote_set_disconnected_tracing): Check for empty reply, and
6188 (remote_set_circular_trace_buffer): Ditto.
6190 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
6192 Suppress unused value warning during compilation.
6193 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
6195 * tui/tui-stack.c (tui_show_locator_content): Likewise.
6197 2010-04-12 Stan Shebs <stan@codesourcery.com>
6199 * tracepoint.c (tfile_xfer_partial): Check read result.
6201 2010-04-12 Mike Frysinger <vapier@gentoo.org>
6203 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
6204 * remote-sim.c (gdbsim_files_info): Likewise.
6206 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6208 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
6209 * arm-linux-nat.c (arm_linux_vfp_register_count): New
6211 (fetch_vfp_registers): New function to fetch VFP registers.
6212 (store_vfp_registers): New function to store VFP registers.
6213 (arm_linux_fetch_inferior_registers): Add support for VFP
6215 (arm_linux_store_inferior_registers): Likewise.
6216 (arm_linux_read_description): Likewise.
6217 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
6220 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
6222 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
6224 (amd64_collect_xstateregset): Likewise.
6226 2010-04-09 Stan Shebs <stan@codesourcery.com>
6228 * tracepoint.c (trace_status_mi): Report frames created.
6230 * tracepoint.c (trace_dump_command): Include default-collect
6233 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
6235 * symtab.c (find_function_start_sal): Never return SAL pointing
6236 before function start address, even if line info is missing.
6238 2010-04-09 Pedro Alves <pedro@codesourcery.com>
6240 * NEWS: Mention tracepoints support.
6242 2010-04-09 Pedro Alves <pedro@codesourcery.com>
6244 * tracepoint.c (trace_status_mi): Report disconnected tracing and
6245 circular trace buffer statuses.
6247 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6249 * config/djgpp/fnchange.lst: Fix typo in translations for
6250 symbol-without-target_section.exp and symbol-without-target_section.c.
6252 2010-04-09 Pedro Alves <pedro@codesourcery.com>
6254 * breakpoint.c (condition_command): Pass condition expression to
6255 set_breakpoint_condition stripped from breakpoint number.
6257 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
6258 Thiago Jung Bauermann <bauerman@br.ibm.com>
6259 Tom Tromey <tromey@redhat.com>
6261 * breakpoint.c (condition_command): Simplify. Move condition
6263 (set_breakpoint_condition): ... here. New function.
6264 * breakpoint.h (set_breakpoint_condition): Declare.
6265 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
6266 (SUBDIR_PYTHON_SRCS): Likewise.
6267 (py-breakpoint.o): New rule.
6268 * python/py-breakpoint.c: New file.
6269 * python/python-internal.h (gdbpy_breakpoints)
6270 (gdbpy_initialize_breakpoints): Declare.
6271 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
6273 2010-04-09 Pedro Alves <pedro@codesourcery.com>
6275 * regformats/regdat.sh: Include server.h. Don't include
6278 2010-04-08 Stan Shebs <stan@codesourcery.com>
6279 Pedro Alves <pedro@codesourcery.com>
6281 * tracepoint.h (struct trace_status): New fields disconnected_tracing
6282 and circular_buffer.
6283 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
6284 * tracepoint.c (trace_status_command): Display target's status for
6285 disconnected tracing and circular buffer.
6286 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
6287 query for non-disconnected-tracing case, remove the stop_tracing
6289 (tfile_open): Clear disconnected and circular buffer status.
6290 (trace_save): Save disconnected and circular buffer status.
6291 (parse_trace_status): Parse disconnected and circular buffer status,
6292 also recognize disconnected as a stop reason.
6293 * remote.c (remote_set_disconnected_tracing): Only set
6294 QTDisconnected if the remote end supports disconnected tracing.
6295 Warn otherwise, if trying to enable disconnected tracing.
6296 * infcmd.c (detach_command): Update disconnect_tracing call.
6297 * cli/cli-cmds.c (quit_command): Ditto.
6299 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6301 * i387-tdep.c (i387_collect_xsave): Replace abort with
6304 2010-04-08 Stan Shebs <stan@codesourcery.com>
6306 * breakpoint.c (default_collect_info): New function.
6307 (breakpoints_info): Call it.
6308 (maintenance_info_breakpoints): Ditto.
6309 (tracepoints_info): Ditto.
6311 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6313 * i387-tdep.c (i387_collect_xsave): Re-indent.
6315 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6317 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
6318 if HAVE_PTRACE_GETFPXREGS is defined.
6319 (i386_linux_read_description): Set have_ptrace_getfpxregs and
6320 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
6322 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
6323 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
6324 if .reg-xfp section doesn't exist.
6325 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
6327 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
6329 * i386-tdep.c: Include "features/i386/i386-mmx.c".
6330 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
6331 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
6332 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
6333 (i386_gdbarch_init): Update comments.
6334 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
6336 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
6338 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
6340 * features/Makefile (i386/i386-mmx-expedite): New.
6341 (i386/i386-mmx-linux-expedite): Likewise.
6342 ($(outdir)/i386/i386-mmx.dat): Likewise.
6343 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
6345 * features/i386/i386-mmx-linux.c: New.
6346 * features/i386/i386-mmx-linux.xml: Likewise.
6347 * features/i386/i386-mmx.c: Likewise.
6348 * features/i386/i386-mmx.xml: Likewise.
6349 * regformats/i386/i386-mmx-linux.dat: Likewise.
6350 * regformats/i386/i386-mmx.dat: Likewise.
6352 * features/Makefile (WHICH): Add i386/i386-mmx and
6353 i386/i386-mmx-linux.
6355 2010-04-08 Doug Evans <dje@google.com>
6357 * source.c (openp): Skip $cdir in PATH.
6359 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
6362 * python/py-lazy-string.c (stpy_convert_to_value): Check for
6364 (gdbpy_create_lazy_string_object): Allow strings with a NULL
6365 address and a zero length.
6367 2010-04-08 Hui Zhu <teawater@gmail.com>
6369 * i386-tdep.c (i386_process_record): Add support for insn
6372 2010-04-07 Doug Evans <dje@google.com>
6374 * python/python.c (source_python_script): Use ensure_python_env
6375 to prepare environment for script.
6377 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6379 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
6380 <sys/uio.h> and "i386-xstate.h".
6381 (PTRACE_GETREGSET): New.
6382 (PTRACE_SETREGSET): Likewise.
6383 (have_ptrace_getregset): Likewise.
6384 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
6386 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
6388 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
6389 (amd64_linux_store_inferior_registers): Likewise.
6390 (amd64_linux_read_description): Check and enable AVX target
6393 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
6394 and "features/i386/amd64-avx-linux.c".
6395 (amd64_linux_regset_sections): New.
6396 (amd64_linux_core_read_description): Check and enable AVX
6398 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
6399 set_gdbarch_core_regset_sections.
6400 (_initialize_amd64_linux_tdep): Call
6401 initialize_tdesc_amd64_avx_linux.
6403 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
6404 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
6405 (tdesc_amd64_avx_linux): New.
6406 (amd64_linux_update_xstateregset): Likewise.
6408 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
6409 (amd64_ymm_names): New.
6410 (amd64_ymmh_names): Likewise.
6411 (amd64_register_name): Likewise.
6412 (amd64_supply_xstateregset): Likewise.
6413 (amd64_collect_xstateregset): Likewise.
6414 (amd64_supply_xsave): Likewise.
6415 (amd64_collect_xsave): Likewise.
6416 (AMD64_NUM_REGS): Removed.
6417 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
6418 %xmmN if AVX is available.
6419 (amd64_pseudo_register_name): Support pseudo YMM registers.
6420 (amd64_regset_from_core_section): Support .reg-xstate section.
6421 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
6422 and ymm0h_regnum. Call set_gdbarch_register_name.
6423 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
6425 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
6426 AMD64_YMM15H_REGNUM.
6427 (AMD64_NUM_REGS): New.
6428 (amd64_supply_xsave): Likewise.
6429 (amd64_collect_xsave): Likewise.
6430 (amd64_register_name): Removed.
6431 (amd64_register_type): Likewise.
6433 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6435 * i387-tdep.c: Include "i386-xstate.h".
6436 (XSAVE_XSTATE_BV_ADDR): New.
6437 (xsave_avxh_offset): Likewise.
6438 (XSAVE_AVXH_ADDR): Likewise.
6439 (i387_supply_xsave): Likewise.
6440 (i387_collect_xsave): Likewise.
6442 * i387-tdep.h (I387_NUM_YMM_REGS): New.
6443 (I387_YMM0H_REGNUM): Likewise.
6444 (I387_YMMENDH_REGNUM): Likewise.
6445 (i387_supply_xsave): Likewise.
6446 (i387_collect_xsave): Likewise.
6448 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6450 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
6451 <sys/uio.h> and "i386-xstate.h".
6452 (PTRACE_GETREGSET): New.
6453 (PTRACE_SETREGSET): Likewise.
6454 (fetch_xstateregs): Likewise.
6455 (store_xstateregs): Likewise.
6456 (GETXSTATEREGS_SUPPLIES): Likewise.
6457 (regmap): Include 8 upper YMM registers.
6458 (i386_linux_fetch_inferior_registers): Support XSAVE extended
6460 (i386_linux_store_inferior_registers): Likewise.
6461 (i386_linux_read_description): Check and enable AVX target
6464 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
6465 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
6466 (i386_linux_regset_sections): Add ".reg-xstate".
6467 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
6468 (i386_linux_core_read_xcr0): New.
6469 (i386_linux_core_read_description): Check and enable AVX target
6471 (i386_linux_init_abi): Set xsave_xcr0_offset.
6472 (_initialize_i386_linux_tdep): Call
6473 initialize_tdesc_i386_avx_linux.
6475 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
6476 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
6477 (i386_linux_core_read_xcr0): New.
6478 (tdesc_i386_avx_linux): Likewise.
6479 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
6481 * i386-tdep.c: Include "i386-xstate.h" and
6482 "features/i386/i386-avx.c".
6483 (i386_ymm_names): New.
6484 (i386_ymmh_names): Likewise.
6485 (i386_ymmh_regnum_p): Likewise.
6486 (i386_ymm_regnum_p): Likewise.
6487 (i386_xmm_regnum_p): Likewise.
6488 (i386_register_name): Likewise.
6489 (i386_ymm_type): Likewise.
6490 (i386_supply_xstateregset): Likewise.
6491 (i386_collect_xstateregset): Likewise.
6492 (i386_sse_regnum_p): Removed.
6493 (i386_pseudo_register_name): Support pseudo YMM registers.
6494 (i386_pseudo_register_type): Likewise.
6495 (i386_pseudo_register_read): Likewise.
6496 (i386_pseudo_register_write): Likewise.
6497 (i386_dbx_reg_to_regnum): Return %ymmN register number for
6498 %xmmN if AVX is available.
6499 (i386_regset_from_core_section): Support .reg-xstate section.
6500 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
6501 (i386_process_record): Replace i386_sse_regnum_p with
6503 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
6504 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
6505 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
6506 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
6507 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
6508 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
6510 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
6512 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
6513 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
6515 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
6516 (I386_AVX_NUM_REGS): New.
6517 (i386_xmm_regnum_p): Likewise.
6518 (i386_ymm_regnum_p): Likewise.
6519 (i386_ymmh_regnum_p): Likewise.
6521 * common/i386-xstate.h: New.
6523 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6525 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
6527 * features/Makefile (WHICH): Add i386/i386-avx,
6528 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
6529 (i386/i386-avx-expedite): New.
6530 (i386/i386-avx-linux-expedite): Likewise.
6531 (i386/x86-64-avx-expedite):Likewise.
6532 (i386/x86-64-avx-linux-expedite): Likewise.
6533 ($(outdir)/i386/i386-avx.dat): New dependency.
6534 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
6535 ($(outdir)/i386/x86-avx-64.dat): Likewise.
6536 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
6538 * features/i386/32bit-avx.xml: New.
6539 * features/i386/64bit-avx.xml: Likewise.
6540 * features/i386/i386-avx-linux.c: Likewise.
6541 * features/i386/i386-avx-linux.xml: Likewise.
6542 * features/i386/i386-avx.c: Likewise.
6543 * features/i386/i386-avx.xml: Likewise.
6544 * features/i386/x86-64-avx-linux.c: Likewise.
6545 * features/i386/x86-64-avx-linux.xml: Likewise.
6546 * features/i386/x86-64-avx.c: Likewise.
6547 * features/i386/x86-64-avx.xml: Likewise.
6548 * regformats/i386/i386-avx-linux.dat: Likewise.
6549 * regformats/i386/i386-avx.dat: Likewise.
6550 * regformats/i386/x86-64-avx-linux.dat: Likewise.
6551 * regformats/i386/x86-64-avx.dat: Likewise.
6553 2010-04-07 Doug Evans <dje@google.com>
6555 * top.c (source_file_name): Make const char *.
6556 * top.h (source_file_name): Update.
6557 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
6559 (script_from_file): Change `file' arg to const char *.
6560 * cli/cli-script.h (script_from_file): Update.
6562 2010-04-06 Doug Evans <dje@google.com>
6564 * cli/cli-cmds.c (source_command): Run cleanups.
6566 2010-04-06 Stan Shebs <stan@codesourcery.com>
6568 * defs.h (char_ptr): Move typedef here from...
6569 * ada-lang.c (char_ptr): Remove.
6570 * charset.c (char_ptr): Remove.
6571 * tracepoint.h (struct uploaded_string): Remove.
6572 (struct uploaded_tp): Use vectors for string arrays.
6573 * tracepoint.c (trace_save): Use vectors of actions.
6574 (parse_tracepoint_definition): Ditto.
6575 (get_uploaded_tp): Clear vectors.
6576 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
6577 (next_cmd): Change to an int.
6578 (read_next_cmd): Use vector of command strings.
6580 2010-04-06 Doug Evans <dje@google.com>
6582 * top.h (source_script, cd_command): Delete.
6583 * main.c: #include "cli/cli-cmds.h"
6585 2010-04-06 Kevin Buettner <kevinb@redhat.com>
6587 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
6588 type in bytes, not bits.
6590 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
6592 * stabsread.c (define_symbol): Add support for char
6593 and string constants.
6595 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
6597 Remove remaining "%ll" uses.
6598 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
6600 * rs6000-nat.c (rs6000_ptrace64): Idem.
6601 * solib-pa64.c (pa64_current_sos): Idem.
6602 * solib-spu.c (spu_current_sos): Idem.
6603 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
6605 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
6607 * sh64-tdep.c (sh64_show_media_regs): Idem.
6609 2010-04-05 Stan Shebs <stan@codesourcery.com>
6611 * tracepoint.c: Include gdbcore.h.
6612 (tfile_xfer_partial): Return partial results, also try reading
6614 (tfile_has_all_memory): New function.
6615 (init_tfile_ops): Use it.
6617 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
6620 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
6621 the changes in data-directory.
6622 (init_sysinfo): Reload the syscall XML file if the data-directory
6625 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6628 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
6630 2010-04-04 Stan Shebs <stan@codesourcery.com>
6631 Nathan Sidwell <nathan@codesourcery.com>
6633 * breakpoint.c (breakpoint_1): Add filter argument, return number of
6634 breakpoints printed.
6635 (is_hardware_watchpoint): Make argument const.
6636 (is_watchpoint): Ditto.
6637 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
6639 (breakpoints_info): Pass NULL to breakpoint_1.
6640 (maintenance_info_breakpoints): Ditto.
6641 (watchpoints_info): New function.
6642 (tracepoints_info): Use breakpoint_1 filter.
6643 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
6644 (_initialize_breakpoint): Make "info watchpoints" its own command.
6645 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
6646 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
6648 2010-04-04 Stan Shebs <stan@codesourcery.com>
6650 * tracepoint.c (tfile_fetch_registers): Add fallback case.
6652 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6654 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
6655 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
6657 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6659 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
6660 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
6662 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6664 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
6667 2010-04-02 Hui Zhu <teawater@gmail.com>
6669 * i386-tdep.c (OT_DQUAD): New enum.
6670 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
6671 SSE3, SSSE3 and SSE4.
6673 2010-04-02 Hui Zhu <teawater@gmail.com>
6675 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
6678 2010-04-02 Pedro Alves <pedro@codesourcery.com>
6680 * tracepoint.c (trace_dump_actions): New, factored out from
6681 trace_dump_command, and adjusted to recurse into while-stepping's
6683 (trace_dump_command): Use it.
6685 2010-04-02 Pedro Alves <pedro@codesourcery.com>
6687 * breakpoint.h (struct counted_command_line): Moved definition to
6688 breakpoint.c, and forward declare.
6689 (breakpoint_commands): Declare.
6690 * breakpoint.c (struct counted_command_line): Moved here.
6691 (breakpoint_commands): New.
6692 * tracepoint.c (encode_actions): Use breakpoint_commands.
6693 * remote.c (remote_download_tracepoint): Ditto.
6695 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
6697 * remote.c (remote_parse_stop_reply): Use hex_string instead
6698 of phex_nz for error.
6700 2010-04-01 Stan Shebs <stan@codesourcery.com>
6701 Nathan Sidwell <nathan@codesourcery.com>
6703 * tracepoint.h (enum actionline_type): Remove.
6704 (validate_actionline): Change return to void.
6705 * tracepoint.c (report_agent_reqs_errors): New function.
6706 (validate_actionline): Call it, change return to void, report errors
6708 (collect_symbol): Call report_agent_reqs_errors.
6709 (encode_actions_1): Ditto.
6710 (encode_actions): Don't expect a result from validate_actionline.
6712 2010-04-01 Stan Shebs <stan@codesourcery.com>
6714 * tracepoint.c (trace_start_command): Confirm if trace is running.
6715 (trace_stop_command): Error if trace not running.
6717 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
6719 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
6720 (AMD64_NUM_LOWER_BYTE_REGS): New.
6721 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
6722 (amd64_pseudo_register_write): Likewise.
6723 (amd64_init_abi): Set num_byte_regs to 20.
6725 2010-04-01 Pedro Alves <pedro@codesourcery.com>
6727 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
6728 (prev_breakpoint_count): New.
6729 (set_breakpoint_count): Adjust.
6730 (rbreak_start_breakpoint_count): New.
6731 (start_rbreak_breakpoints): Adjust.
6732 (end_rbreak_breakpoints): Adjust.
6733 (struct commands_info) <arg>: New field.
6734 (do_map_commands_command): Tweak output to include breakpoint spec
6736 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
6737 ARG was empty on entry. Set INFO's arg.
6738 (create_breakpoint): Adjust.
6740 * NEWS: Clarify `commands' changes.
6742 2010-04-01 Pedro Alves <pedro@codesourcery.com>
6744 * tracepoint.c: Include stack.h.
6745 (struct add_local_symbols_data): New.
6746 (do_collect_symbol): New.
6747 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
6748 iterate_over_block_local_vars.
6749 * stack.c (print_block_frame_locals): Rewrite as ...
6750 (iterate_over_block_locals): ... this. Take a callback function
6751 pointer and generic data pointer, and call that instead of
6752 print_variable_and_value.
6753 (struct print_variable_and_value_data): New.
6754 (do_print_variable_and_value): New.
6755 (iterate_over_block_local_vars): New, abstracted out from
6756 print_frame_local_vars.
6757 (print_frame_local_vars): Rewrite using
6758 iterate_over_block_local_vars.
6759 (iterate_over_block_arg_vars): New, abstracted out from
6760 print_frame_arg_vars.
6761 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
6762 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
6763 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
6765 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
6767 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
6768 instructions. Use the PC+4 if the base of the TBB or TBH is the
6771 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6773 Fix crash on reading wrong function declaration DWARF.
6774 * dwarf2read.c (read_subroutine_type): New variable void_type.
6775 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
6776 more close to their use.
6778 2010-03-31 Stan Shebs <stan@codesourcery.com>
6780 * breakpoint.c (tracepoint_save_command): Include variables,
6781 conditionals, tracepoint types, and default-collect.
6782 * tracepoint.c (save_trace_state_variables): New function.
6783 * tracepoint.h (save_trace_state_variables): Declare it.
6785 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
6787 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
6789 2010-03-30 Keith Seitz <keiths@redhat.com>
6791 * c-typeprint.c (c_type_print_args): Don't print "void"
6792 for java, regardless of whether it is TYPE_PROTOTYPED.
6793 Use the passed-in language instead of current_language.
6794 (c_type_print_varspec_suffix): Use current_language instead
6795 of assuming language_c.
6796 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
6797 any return type specifier from the physname.
6799 2010-03-30 Pedro Alves <pedro@codesourcery.com>
6801 * tui/tui-interp.c (tui_is_toplevel): New.
6803 (tui_allowed_p): New.
6804 * tui/tui.c (tui_enable): Check if the TUI is allowed before
6806 * tui/tui.h (tui_allowed_p): Declare.
6808 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
6810 * serial.h: Include winsock2.h before windows.h.
6812 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
6814 * NEWS: Mention xmlRegisters= in qSupported packet.
6816 * i386-tdep.c: Include "remote.h".
6817 (_initialize_i386_tdep): Call register_remote_support_xml.
6819 * remote.c (remote_support_xml): New.
6820 (register_remote_support_xml): Likewise.
6821 (remote_query_supported_append): Likewise.
6822 (remote_query_supported): Support remote_support_xml.
6824 * remote.h (register_remote_support_xml): New.
6826 2010-03-29 Stan Shebs <stan@codesourcery.com>
6828 * tracepoint.c (trace_find_line_command): Remove dead code.
6830 * tracepoint.h (struct uploaded_string): New struct.
6831 (struct uploaded_tp): New fields for source strings.
6832 * breakpoint.c (this_utp, next_cmd): New globals.
6833 (read_uploaded_action): New function.
6834 (create_tracepoint_from_upload): Fill in more parts
6836 * tracepoint.c (encode_source_string): New function.
6837 (trace_save): Write out source strings, fix error checks.
6838 (parse_tracepoint_definition): Add source string parsing.
6839 * remote.c (PACKET_TracepointSource): New packet type.
6840 (remote_download_command_source): New function.
6841 (remote_download_tracepoint): Download source pieces also.
6842 (_initialize_remote): Add packet config command.
6844 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
6847 * tracepoint.c (start_tracing): Check tracepoints before sending
6848 commands to target, don't start if all tracepoints disabled.
6850 2010-03-28 Pedro Alves <pedro@codesourcery.com>
6852 * cli/cli-script.c (process_next_line): Handle 'stepping'.
6854 2010-03-26 Stan Shebs <stan@codesourcery.com>
6856 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
6858 2010-03-26 Tom Tromey <tromey@redhat.com>
6860 * breakpoint.c (commands_command_1): Duplicate 'arg'.
6862 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6864 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
6865 (skip_prologue_sal): Remove local definition.
6866 (resolve_sal_pc): Remove now unnecessary code.
6867 * linespec.c (minsym_found): Call skip_prologue_sal.
6868 * symtab.c (find_function_start_pc): Remove.
6869 (find_function_start_sal): Extract prologue skipping into ...
6870 (skip_prologue_sal): ... this new function. Handle code both
6871 with and without debug info. Respect SAL's explicit_pc and
6872 explicit_line flags. Inline old find_function_start_pc.
6873 * symtab.h (find_function_start_pc): Remove.
6874 (skip_prologue_sal): Add prototype.
6876 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6878 * dwarf2read.c (read_func_scope): Also scan specification DIEs
6879 for DW_TAG_imported_module children.
6881 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6883 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
6884 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
6885 * completer.c (add_struct_fields): Fix inverted logic.
6887 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6889 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
6891 2010-03-26 Pedro Alves <pedro@codesourcery.com>
6893 * tracepoint.c (current_trace_status): Don't make sure error_desc
6895 (parse_trace_status): Release a previous error_desc string, and
6896 set it to NULL by default. If stop reason is tracepoint_error,
6897 make sure error_desc is not left NULL.
6899 2010-03-26 Pedro Alves <pedro@codesourcery.com>
6901 * tracepoint.c (trace_save): Remove X from tracepoint error
6904 2010-03-26 Pedro Alves <pedro@codesourcery.com>
6906 * tracepoint.c (parse_trace_status): Don't allow plain strings in
6907 the terror description. Don't expect an X prefix.
6909 2010-03-25 Stan Shebs <stan@codesourcery.com>
6911 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
6912 (struct trace_status): New field error_desc.
6913 * tracepoint.c (stop_reason_names): Add terror.
6914 (current_trace_status): Ensure non-NULL error description.
6915 (trace_status_command): Add error report.
6916 (trace_status_mi): Ditto.
6917 (trace_save): Add special case for error description.
6918 (parse_trace_status): Add case for errors.
6920 2010-03-25 Keith Seitz <keiths@redhat.com>
6922 * dwarf2read.c (read_subroutine_type): If the compilation unit
6923 language is Java, mark any formal parameter named "this" as
6924 artificial (GCC/43521).
6925 (dwarf2_name): Add special handling for Java constructors.
6927 2010-03-25 Tom Tromey <tromey@redhat.com>
6929 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
6930 * infrun.c (handle_inferior_event): Change initialization of
6932 (handle_inferior_event): Change assignment to stop_stack_dummy.
6933 (normal_stop): Update use of stop_stack_dummy.
6934 (struct inferior_status) <stop_stack_dummy>: Change type.
6935 * inferior.h (stop_stack_dummy): Update.
6936 * infcmd.c (stop_stack_dummy): Change type.
6937 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
6939 (call_function_by_hand): Call set_std_terminate_breakpoint.
6940 Rewrite std::terminate handling.
6941 * breakpoint.h (enum bptype) <bp_std_terminate,
6942 bp_std_terminate_master>: New.
6943 (enum stop_stack_kind): New.
6944 (struct bpstat_what) <call_dummy>: Change type.
6945 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
6947 * breakpoint.c (create_std_terminate_master_breakpoint): New
6949 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
6950 Call create_std_terminate_master_breakpoint.
6951 (print_it_typical): Handle new breakpoint kinds.
6952 (bpstat_stop_status): Handle bp_std_terminate_master.
6953 (bpstat_what): Correctly set call_dummy field. Handle
6954 bp_std_terminate_master and bp_std_terminate.
6955 (print_one_breakpoint_location): Update.
6956 (allocate_bp_location): Update.
6957 (set_std_terminate_breakpoint): New function.
6958 (delete_std_terminate_breakpoint): Likewise.
6959 (create_thread_event_breakpoint): Update.
6960 (delete_command): Update.
6961 (breakpoint_re_set_one): Update.
6962 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
6964 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6966 * symfile.c (build_section_addr_info_from_bfd): New.
6967 (build_section_addr_info_from_objfile): Base it on
6968 build_section_addr_info_from_bfd.
6969 (addrs_section_compar, addrs_section_sort): New.
6970 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
6971 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
6972 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
6974 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
6976 * elfread.c (find_separate_debug_file_by_buildid):
6977 Remove unused local variable.
6979 2010-03-24 Tom Tromey <tromey@redhat.com>
6981 PR breakpoints/9352:
6982 * NEWS: Mention changes to `commands' and `rbreak'.
6983 * symtab.c (do_end_rbreak_breakpoints): New function.
6984 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
6985 end_rbreak_breakpoints.
6986 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
6987 (set_breakpoint_count): Likewise. Clear last_was_multi.
6988 (multi_start, multi_end, last_was_multi): New globals.
6989 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
6991 (struct commands_info): New
6992 (do_map_commands_command): New function.
6993 (commands_command_1): New function.
6994 (commands_command): Use it.
6995 (commands_from_control_command): Likewise.
6996 (do_delete_breakpoint): New function.
6997 (delete_command): Use it.
6998 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
6999 (do_map_disable_breakpoint): New function.
7000 (disable_command): Use it.
7001 (do_map_enable_breakpoint): New function.
7002 (enable_command): Use it.
7003 (enable_once_breakpoint): Add argument.
7004 (enable_once_command): Update.
7005 (enable_delete_breakpoint): Add argument.
7006 (enable_delete_command): Update.
7007 (break_command_really): Set last_was_multi when needed.
7008 (check_tracepoint_command): Fix formatting.
7009 (validate_commands_for_breakpoint): New function.
7010 (breakpoint_set_commands): Use it.
7011 (tracepoint_save_command): Update.
7012 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
7015 2010-03-24 Tom Tromey <tromey@redhat.com>
7017 * breakpoint.h (struct counted_command_line): New struct.
7018 (struct breakpoint) <commands>: Change type.
7019 (struct bpstats) <commands>: Change type.
7020 <commands_left>: New field.
7021 * breakpoint.c (alloc_counted_command_line): New function.
7022 (incref_counted_command_line): Likewise.
7023 (decref_counted_command_line): Likewise.
7024 (do_cleanup_counted_command_line): Likewise.
7025 (make_cleanup_decref_counted_command_line): Likewise.
7026 (breakpoint_set_commands): Use decref_counted_command_line and
7027 alloc_counted_command_line.
7028 (commands_command): Don't error if breakpoint commands are
7030 (commands_from_control_command): Likewise.
7031 (bpstat_free): Update.
7032 (bpstat_copy): Likewise.
7033 (bpstat_clear_actions): Likewise.
7034 (bpstat_do_actions_1): Likewise.
7035 (bpstat_stop_status): Likewise.
7036 (print_one_breakpoint_location): Likewise.
7037 (delete_breakpoint): Likewise.
7038 (bpstat_alloc): Initialize new field.
7039 (tracepoint_save_command): Update.
7040 * tracepoint.c (encode_actions): Update.
7041 (trace_dump_command): Update.
7043 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
7045 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
7046 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
7047 (read_structure_type): For RealView, set TYPE_STUB on structures with
7048 no byte size and no children.
7049 (read_subroutine_type): Mark functions as prototyped by default.
7050 * symtab.c (producer_is_realview): New function.
7051 * symtab.h (expand_line_sal): Fix declaration formatting.
7052 (producer_is_realview): Declare.
7054 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
7056 * arm-tdep.c (skip_prologue_function): New function.
7057 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
7058 (thumb_analyze_prologue): Document return value. Recognize more
7059 Thumb instructions, skippable calls, and some Thumb-2 instructions.
7061 (arm_skip_prologue): Remove call dummy check. Check the prologue
7062 for non-GNU compilers.
7063 (arm_instruction_changes_pc): New function.
7064 (arm_analyze_prologue): New function, broken out from
7065 arm_scan_prologue. Recognize more ARM instructions and skippable
7066 calls. Update comments. Handle NULL cache. Return the address
7067 of the first unrecognized instruction. Do not skip past other
7068 instructions which change control flow. Add debug output.
7069 (arm_scan_prologue): Use arm_analyze_prologue.
7070 (ARM_PC_32): Delete.
7071 (shifted_reg_val): Simplify ARM_PC_32 check.
7073 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7075 * tracepoint.c (tvariables_info_1): Actually compute
7076 the number of rows in the result.
7078 2010-03-24 Pedro Alves <pedro@codesourcery.com>
7080 * remote.c (crc32): Constify `buf' parameter.
7081 (remote_verify_memory): New, abstracted out from...
7082 (compare_sections_command): ... this. Remove hardcoded target
7084 (init_remote_ops): Install remote_verify_memory.
7085 * target.c (target_verify_memory): New.
7086 * target.h (struct target_ops) <to_verify_memory>: New field.
7087 (target_verify_memory): Declare.
7089 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7091 Implement -trace-save.
7093 * mi-cmds.h (mi_cmds_trace_save): Declare.
7094 * mi-cmds.c (mi_cmds): Register -trace-save.
7095 * mi/mi-main.c (mi_cmd_trace_save): New.
7096 * remote.c (remote_save_trace_data): Take const parameter.
7097 * target.h (struct target_ops::to_save_trace_data): Take
7099 * target.c (update_current_target): Adjust to the above.
7100 * tracepoint.c (trave_save): New, extracted from
7101 (trace_save_command): ...this.
7102 (tfile_trace_find): Remove message that is unnecessary now
7103 that 'tfind' reports found frame.
7104 * tracepoint.h (trace_save): Declare.
7106 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7108 Implement -trace-find.
7110 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
7111 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
7112 * mi/mi-main.c (mi_cmd_trace_find): New.
7113 * target.h (struct target_ops): Document to_trace_find.
7114 * tracepoint.h (tfind_1): Declare.
7115 * tracepoint.c (finish_tfind_command): Rename to...
7117 * remote.c (remote_trace_find): Return -1 if target say
7118 there's no frame. Improve error diagnostics.
7120 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7122 -trace-define-variable and -trace-list-variables.
7124 * tracepoint.c (create_trace_state_variable): Make
7125 private copy of name, as opposed to assuming the
7126 pointer lives forever.
7127 (tvariables_info_1): New.
7128 (tvariables_info): Use the above.
7129 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
7131 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
7132 and -trace-list-variables.
7133 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
7134 (mi_cmd_trace_list_variables): New.
7135 * mi/mi-main.c (mi_cmd_trace_define_variable)
7136 (mi_cmd_trace_list_variables): New.
7138 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7140 Implement -break-passcount.
7142 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
7143 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
7144 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
7146 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7148 -trace-start/-trace-end/-trace-status.
7150 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
7152 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
7153 (mi_cmd_trace_stop): Declare.
7154 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
7155 (mi_cmd_trace_stop): New.
7156 * tracepoint.c (start_tracing): New, extracted from...
7157 (trace_start_command): ...this.
7158 (trace_status_mi): New.
7159 * tracepoint.h (struct trace_status): Document
7160 stopping_tracepoint.
7161 (start_tracing, stop_tracing, trace_status_mi): Declare.
7163 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7165 Implement creating tracepoints with -break-insert.
7167 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
7168 to mean that tracepoint should be created.
7170 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7172 * breakpoint.c (check_no_tracepoint_commands): Use
7173 current spelling of 'teval'.
7175 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7177 Unify actions and commands
7179 * defs.h (read_command_lines, read_command_lines_1): New
7180 parameters validator and closure.
7181 * tracepoint.h (struct action_line): Remove.
7182 * breakpoint.h (struct breakpoint): Remove the 'actions'
7184 * defs.h (enum command_control_type): New value
7185 while_stepping_control.
7186 (struct command_line): Add comments.
7187 * breakpoint.c (breakoint_is_tracepoint): New.
7188 (breakpoint_set_commands): For tracepoints,
7189 verify the commands are permissible.
7190 (check_tracepoint_commands): New.
7191 (commands_command): Require that each new line is validated using
7192 check_tracepoint_command, if we set commands for a tracepoint.
7193 (create_tracepoint_from_upload): Likewise.
7194 (print_one_breakpoint_location): Remove the code to print
7195 actions specifically.
7196 (tracepoint_save_command): Relay to print_command_lines.
7197 * cli/cli-script.c (process_next_line): New parameters validator
7198 and closure. Handle 'while-stepping'. Call validator if not null.
7199 (read_command_lines, read_command_lines1): Likewise.
7200 (recurse_read_control_structure): New parameters validator and
7201 closure. Handle while_stepping_control.
7202 (print_command_lines): Handle while-stepping.
7203 (get_command_line, define_command, document_command): Adjust.
7204 * remote.c (remote_download_tracepoint): Adjust.
7205 * tracepoint.c (make_cleanup_free_actions, read_actions)
7206 (free_actions, do_free_actions_cleanup): Remove.
7207 (trace_actions_command): Use read_command_lines.
7208 (validate_actionline): Use error in one place.
7209 (encode_actions_1): New, extracted from...
7210 (encode_actions): ...this. Also use cleanups for exception
7212 (trace_dump_command): Adjust.
7213 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
7216 2010-03-23 Mike Frysinger <vapier@gentoo.org>
7218 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
7220 2010-03-22 Stan Shebs <stan@codesourcery.com>
7222 * value.c (value_static_field): Be lazy about the field's value.
7224 2010-03-22 Reid Kleckner <reid@kleckner.net>
7227 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
7229 (disable_breakpoints_in_shlibs): Likewise.
7231 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
7233 * dwarf2read.c (partial_die_parent_scope): Work around buggy
7234 GCC 4.1 debug info generation (GCC PR c++/28460).
7235 (determine_prefix): Likewise.
7237 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
7239 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
7241 * tui/tui-layout.c (extract_display_start_addr): Likewise.
7243 2010-03-19 Stan Shebs <stan@codesourcery.com>
7245 * ax-gdb.c (gen_fetch): Handle bool.
7246 (gen_usual_unary): Ditto.
7248 (gen_equal): New function.
7249 (gen_less): New function.
7250 (gen_expr_binop_rest): Call them, also return integer type from
7254 2010-03-19 Tom Tromey <tromey@redhat.com>
7256 * jv-lang.c (jv_dynamics_objfile_data_key)
7257 (jv_type_objfile_data_key): New globals.
7258 (class_symtab): Move earlier.
7259 (jv_per_objfile_free): New function.
7260 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
7262 Remove ancient #if 1.
7263 (add_class_symbol): Remove redundant declaration.
7264 (java_lookup_class): Use alloc_type, not alloc_type_arch.
7265 (java_link_class_type): Mark as static. Update.
7266 (jv_clear_object_type): New function.
7267 (set_java_object_type): Likewise.
7268 (get_java_object_type): Use set_java_object_type.
7269 (is_object_type): Likewise.
7270 (_initialize_java_language): Register new objfile keys.
7271 (get_java_class_symtab): Add 'gdbarch' parameter.
7272 (add_class_symtab_symbol): Update.
7273 (type_from_class): Update.
7275 2010-03-19 Stan Shebs <stan@codesourcery.com>
7277 * ax-general.c (ax_const_l): Fix a sizing bug.
7279 2010-03-18 Joel Brobecker <brobecker@adacore.com>
7283 2010-03-18 Stan Shebs <stan@codesourcery.com>
7284 Pedro Alves <pedro@codesourcery.com>
7286 * target.h (struct target_ops): New method
7287 to_set_circular_trace_buffer.
7288 (target_set_circular_trace_buffer): New macro.
7289 * target.c (update_current_target): Add
7290 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
7292 * remote.c (remote_set_circular_trace_buffer): New function.
7293 (init_remote_ops): Add it to vector.
7294 * tracepoint.h (struct trace_status): New field traceframes_created,
7295 change buffer_size and buffer_free to int.
7296 * tracepoint.c (circular_trace_buffer): New global.
7297 (start_tracing): Send values of disconnected tracing and circular
7298 trace buffer settings.
7299 (set_circular_trace_buffer): New function.
7300 (parse_trace_state): Handle total space and frames created.
7301 (trace_status_command): Display total space and total frames
7303 (trace_save): Write out new status values.
7304 (parse_trace_status): Set traceframe_count, traceframes_created,
7305 buffer_free and buffer_size to -1 by default.
7306 (_initialize_tracepoint): New setshow for circular-trace-buffer.
7307 * NEWS: Mention the circular trace buffer option.
7309 2010-03-18 Tom Tromey <tromey@redhat.com>
7311 * infcmd.c (finish_command_continuation): Wrap print_return_value
7314 2010-03-18 Joel Brobecker <brobecker@adacore.com>
7316 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
7317 DIE has a name before creating the associated partial symbol.
7318 (read_func_scope): Emit a complaint if the subprogram does not
7319 have a name or when we can't extract the subprogram PC bounds.
7321 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
7323 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
7324 instead of selected frame architecture.
7326 2010-03-18 Pedro Alves <pedro@codesourcery.com>
7328 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
7329 a valid selected thread, and that it is not running.
7330 (advance_command): Ditto.
7331 (finish_command): Ditto.
7333 2010-03-17 Stan Shebs <stan@codesourcery.com>
7335 * ax-gdb.c (require_rvalue): Disallow non-scalars.
7337 * infcall.c: Include tracepoint.h.
7338 (call_function_by_hand): Disallow calls in tfind mode.
7339 * infcmd.c: Include tracepoint.h.
7340 (ensure_not_tfind_mode): New function.
7341 (continue_1): Call it.
7343 (jump_command): Ditto.
7344 (signal_command): Ditto.
7345 (advance_command): Ditto.
7346 (until_command): Ditto.
7347 (finish_command): Ditto.
7348 * tracepoint.h (disconnect_or_stop_tracing): Declare.
7350 * ax-gdb.h (struct axs_value): New field optimized_out.
7351 (gen_trace_for_var): Add gdbarch argument.
7352 * ax-gdb.c (gen_trace_static_fields): New function.
7353 (gen_traced_pop): Call it, add gdbarch argument.
7354 (gen_trace_for_expr): Update call to it.
7355 (gen_trace_for_var): Ditto, and report optimized-out variables.
7356 (gen_struct_ref_recursive): Check for optimized-out value.
7357 (gen_struct_elt_for_reference): Ditto.
7358 (gen_static_field): Pass gdbarch instead of expression, assume
7359 optimization if field not found.
7360 (gen_var_ref): Set the optimized_out flag.
7361 (gen_expr): Error on optimized-out variable.
7362 * tracepoint.c (collect_symbol): Handle struct-valued vars as
7363 expressions, skip optimized-out variables with computed locations.
7364 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
7365 erroring out if location expression missing.
7366 (loclist_tracepoint_var_ref): Don't error out here.
7368 2010-03-17 Tom Tromey <tromey@redhat.com>
7370 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
7371 DWARF data is available.
7373 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
7375 * symfile.c (generic_load): Reset breakpoints after loading.
7377 2010-03-17 Tom Tromey <tromey@redhat.com>
7379 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
7381 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7383 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
7384 create_breakpoint call, adjust the parameters.
7386 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7387 Chandru <chandru@in.ibm.com>
7389 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
7390 * valarith.c (value_subscripted_rvalue): Suppress error if
7391 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
7393 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
7395 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
7397 2010-03-16 Joel Brobecker <brobecker@adacore.com>
7399 * ada-tasks.c (task_command_1): Check that the task ptid is valid
7400 before doing the associated thread switch.
7402 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
7404 * MAINTAINERS: Update my email address.
7406 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
7408 Simplify MI breakpoint setting.
7410 * breakpoint.c (break_command_really): Make nonstatic and
7412 (create_breakpoint): ...this. Rename prior function by this name
7414 (create_breakpoint_sal): ...this.
7415 (create_breakpoints): Rename to...
7416 (create_breakpoints_sal): ...this.
7417 (set_breakpoint): Remove.
7418 * breakpoint.h: Adjust to above changes.
7419 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
7421 2010-03-15 Stan Shebs <stan@codesourcery.com>
7423 * ax-gdb.c: Include cp-support.h.
7424 (find_field): Remove.
7425 (gen_primitive_field): New function.
7426 (gen_struct_ref_recursive): New function.
7427 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
7429 (gen_static_field): New function.
7430 (gen_struct_elt_for_reference): New.
7431 (gen_namespace_elt): New.
7432 (gen_maybe_namespace_elt): New.
7433 (gen_aggregate_elt_ref): New.
7434 (gen_expr): Add OP_SCOPE, display opcode name in error message.
7436 2010-03-15 Tom Tromey <tromey@redhat.com>
7438 * dwarf2read.c (die_needs_namespace): Also return 0 for
7441 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
7444 * cp-support.h: Added char *declaration element to using_direct
7446 (cp_add_using): Added char *declaration argument.
7447 (cp_add_using_directive): Ditto.
7448 (cp_lookup_symbol_imports): made extern.
7449 * cp-namespace.c: Updated with the above changes.
7450 * dwarf2read.c (read_import_statement): Ditto.
7451 (read_namespace): Ditto.
7452 (read_import_statement): Support import declarations.
7453 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
7455 Added support for 'declaration_only' search.
7456 (cp_lookup_symbol_namespace): Attempt to search for the name as
7457 is before consideration of imports.
7458 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
7459 search at every block level search.
7460 Now takes language argument.
7461 (lookup_symbol_aux): Updated.
7463 2010-03-15 Tom Tromey <tromey@redhat.com>
7465 * c-exp.y (name_not_typename): Add 'operator' clause.
7467 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
7469 * configure.ac: Exit if ${gdb_target_obs}" is not set.
7470 * configure: Regenerate.
7472 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7474 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
7475 and ".sdynbss". Update the comment.
7477 2010-03-15 Jie Zhang <jie@codesourcery.com>
7479 * MAINTAINERS: Update my email address.
7481 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
7483 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
7485 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
7487 * charset.c [USE_WIN32API]: Include <windows.h>.
7488 (_initialize_charset): Correct type of w32_host_default_charset.
7490 2010-03-14 Pedro Alves <pedro@codesourcery.com>
7492 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
7494 2010-03-12 Tom Tromey <tromey@redhat.com>
7497 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
7498 in a lexical block does not need a namespace.
7499 (new_symbol) <DW_TAG_variable>: Put extern variables on
7500 list_in_scope in all cases.
7502 2010-03-12 Stan Shebs <stan@codesourcery.com>
7504 * ax-gdb.c (gen_expr): Add shift expressions.
7505 (gen_expr_binop_rest): Ditto.
7507 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
7509 * buildsym.c (finish_block): Reset using_directives pointer
7510 after block initialization.
7512 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
7514 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
7515 * i386-tdep.c (i386_word_names): Likewise.
7517 2010-03-12 Pedro Alves <pedro@codesourcery.com>
7519 * target.c (memory_xfer_partial): Don't use the stack cache if
7520 inspecting trace frames.
7521 * tracepoint.c (finish_tfind_command): Invalidate the target
7524 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7526 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
7527 for the PIC displacement, print also the displacement value.
7528 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
7530 2010-03-10 Kevin Buettner <kevinb@redhat.com>
7532 * remote-mips.c (close_ports, mips_initialize_cleanups)
7533 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
7534 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
7535 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
7536 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
7537 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
7538 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
7539 comments describing each of these functions.
7540 (mips_enter_debug, mips_exit_debug, common_open)
7541 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
7542 blank line after the comment describing the function.
7544 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7546 * solib-svr4.c (svr4_exec_displacement): Return now success, new
7547 parameter displacementp. Update comment.
7548 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
7549 element exists. Return if svr4_exec_displacement was not successful.
7552 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7553 Daniel Jacobowitz <dan@codesourcery.com>
7555 * solib-svr4.c (read_program_header): Support type == -1 to read
7556 all program headers.
7557 (read_program_headers_from_bfd): New function.
7558 (svr4_static_exec_displacement): Remove and move the comment ...
7559 (svr4_exec_displacement): ... here. Remove variable found. New
7560 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
7561 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
7562 targets using read_program_headers_from_bfd. Remove the call of
7563 svr4_static_exec_displacement.
7565 2010-03-10 Tom Tromey <tromey@redhat.com>
7567 * dwarf2read.c (struct pubnames_header): Remove.
7568 (_PUBNAMES_HEADER): Remove.
7569 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
7570 (struct aranges_header): Remove.
7571 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
7572 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
7573 (PUBNAMES_SECTION): Remove.
7574 (ARANGES_SECTION): Remove.
7575 (dwarf2_locate_sections): Don't handle pubnames or aranges.
7576 (dwarf2_build_psymtabs): Remove dead code.
7577 (dwarf2_build_psymtabs_easy): Remove.
7579 2010-03-10 Tom Tromey <tromey@redhat.com>
7581 * elfread.c (elf_symfile_read): Don't call
7582 dwarf2_build_frame_info.
7583 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
7584 (struct dwarf2_per_objfile) <objfile>: New field.
7585 (dwarf2_has_info): Now idempotent. Set objfile field.
7586 (dwarf2_read_section): Check and set readin field. Call
7588 (dwarf2_build_psymtabs): Don't read all sections.
7589 (read_type_comp_unit_head): Read types section.
7590 (create_debug_types_hash_table): Likewise.
7591 (init_cu_die_reader): Add asserts.
7592 (process_type_comp_unit): Add assert.
7593 (dwarf2_build_psymtabs_hard): Read info section.
7594 (load_partial_comp_unit): Add assert.
7595 (create_all_comp_units): Read info section.
7596 (load_full_comp_unit): Likewise.
7597 (dwarf2_ranges_read): Read ranges section.
7598 (dwarf2_record_block_ranges): Add assert.
7599 (dwarf2_read_abbrevs): Read abbrev section.
7600 (read_indirect_string): Read str section.
7601 (dwarf_decode_line_header): Read line section.
7602 (read_signatured_type_at_offset): Read types section.
7603 (dwarf_decode_macros): Read macinfo section.
7604 (dwarf2_symbol_mark_computed): Read loc section.
7605 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
7606 dwarf2_build_frame_info.
7607 (dwarf2_build_frame_info): Unconditionally set
7608 dwarf2_frame_objfile_data on the objfile.
7609 * configure.ac: Check for posix_madvise.
7610 * config.in, configure: Rebuild.
7612 2010-03-10 Tom Tromey <tromey@redhat.com>
7614 * xcoffread.c (xcoff_start_psymtab): Update.
7615 (xcoff_end_psymtab): Update.
7616 * psymtab.c (allocate_psymtab): Remove dead code.
7617 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
7619 * mdebugread.c (parse_partial_symbols): Update.
7620 (new_psymtab): Likewise.
7621 * dwarf2read.c (process_psymtab_comp_unit): Update.
7622 (psymtab_to_symtab_1): Update.
7623 * dbxread.c (start_psymtab): Update.
7624 (end_psymtab): Likewise.
7626 2010-03-10 Tom Tromey <tromey@redhat.com>
7628 * xcoffread.c: Include psymtab.h.
7629 (xcoff_sym_fns): Update.
7630 * symtab.h (struct partial_symbol): Remove.
7631 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
7632 (struct partial_symtab): Remove.
7633 (PSYMTAB_TO_SYMTAB): Remove.
7634 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
7635 (find_pc_sect_psymtab): Remove.
7636 (find_pc_sect_symtab_via_partial): Declare.
7637 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
7638 (find_main_psymtab): Remove.
7639 (find_main_filename): Declare.
7640 (fixup_psymbol_section): Remove.
7641 (fixup_section): Declare.
7642 * symtab.c: Include psymtab.h.
7643 (lookup_symtab): Use lookup_symtab method.
7644 (lookup_partial_symtab): Remove.
7645 (find_pc_sect_psymtab_closer): Remove.
7646 (find_pc_sect_psymtab): Remove.
7647 (find_pc_sect_symtab_via_partial): New function.
7648 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
7649 (fixup_section): No longer static.
7650 (fixup_psymbol_section): Remove.
7651 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
7652 (lookup_global_symbol_from_objfile): Likewise.
7653 (lookup_symbol_aux_psymtabs): Remove.
7654 (lookup_symbol_aux_quick): New function.
7655 (lookup_symbol_global): Use lookup_symbol_aux_quick.
7656 (lookup_partial_symbol): Remove.
7657 (basic_lookup_transparent_type_quick): New function.
7658 (basic_lookup_transparent_type): Use it.
7659 (find_main_psymtab): Remove.
7660 (find_main_filename): New function.
7661 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
7662 (find_line_symtab): Use expand_symtabs_with_filename method.
7663 (output_partial_symbol_filename): New function.
7664 (sources_info): Use map_partial_symbol_filenames.
7665 (struct search_symbols_data): New type.
7666 (search_symbols_file_matches): New function.
7667 (search_symbols_name_matches): Likewise.
7668 (search_symbols): Use expand_symtabs_matching method.
7669 (struct add_name_data): Rename from add_macro_name_data.
7670 (add_macro_name): Update.
7671 (add_partial_symbol_name): New function.
7672 (default_make_symbol_completion_list): Use
7673 map_partial_symbol_names.
7674 (struct add_partial_symbol_name): New type.
7675 (maybe_add_partial_symtab_filename): New function.
7676 (make_source_files_completion_list): Use
7677 map_partial_symbol_filenames.
7678 (expand_line_sal): Use expand_symtabs_with_filename method.
7679 * symmisc.c: Include psymtab.h.
7680 (print_objfile_statistics): Use print_stats method.
7681 (dump_objfile): Use dump method.
7682 (dump_psymtab, maintenance_print_psymbols)
7683 (maintenance_info_psymtabs, maintenance_check_symtabs)
7684 (extend_psymbol_list): Remove.
7685 * symfile.h (struct quick_symbol_functions): New struct.
7686 (struct sym_fns) <qf>: New field.
7687 (sort_pst_symbols): Remove.
7688 (increment_reading_symtab): Declare.
7689 * symfile.c: Include psymtab.h.
7690 (compare_psymbols, sort_pst_symbols): Remove.
7691 (psymtab_to_symtab): Remove.
7692 (increment_reading_symtab): New function.
7693 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
7695 (set_initial_language): Use find_main_filename.
7696 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
7697 (free_named_symtabs): Remove unused code.
7698 (start_psymtab_common, add_psymbol_to_bcache)
7699 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
7701 * stack.c: Include psymtab.h, symfile.h.
7702 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
7703 * source.h (psymtab_to_fullname): Don't declare.
7704 * source.c: Include psymtab.h.
7705 (select_source_symtab): Use find_last_source_symtab method.
7706 (forget_cached_source_info): Use forget_cached_source_info
7708 (find_and_open_source): No longer static.
7709 (psymtab_to_fullname): Remove.
7710 * somread.c: Include psymtab.h.
7711 (som_sym_fns): Update.
7712 * psympriv.h: New file.
7713 * psymtab.h: New file.
7714 * psymtab.c: New file.
7715 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
7716 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
7717 * objfiles.c: Include psymtab.h.
7718 (objfile_relocate1): Use relocate method.
7719 (objfile_has_partial_symbols): Use has_symbols method.
7720 * mipsread.c: Include psymtab.h.
7721 (ecoff_sym_fns): Update.
7722 * mi/mi-cmd-file.c: Include psymtab.h.
7723 (print_partial_file_name): New function.
7724 (mi_cmd_file_list_exec_source_files): Use
7725 map_partial_symbol_filenames.
7726 * mdebugread.c: Include psympriv.h.
7727 * machoread.c: Include psympriv.h.
7728 (macho_sym_fns): Update.
7729 * m2-exp.y (yylex): Use lookup_symtab.
7730 * elfread.c: Include psympriv.h.
7731 (elf_sym_fns): Update.
7732 * dwarf2read.c: Include psympriv.h.
7733 * dbxread.c: Include psympriv.h.
7734 (aout_sym_fns): Update.
7735 * cp-support.c: Include psymtab.h.
7736 (read_in_psymtabs): Remove.
7737 (make_symbol_overload_list_qualified): Use
7738 expand_symtabs_for_function method.
7739 * coffread.c: Include psympriv.h.
7740 (coff_sym_fns): Update.
7741 * blockframe.c: Include psymtab.h.
7742 (find_pc_partial_function): Use find_pc_sect_symtab method.
7743 * ada-lang.h (ada_update_initial_language): Update.
7744 * ada-lang.c: Include psymtab.h.
7745 (ada_update_initial_language): Remove 'main_pst' argument.
7746 (ada_lookup_partial_symbol): Remove.
7747 (struct ada_psym_data): New type.
7748 (ada_add_psyms): New function.
7749 (ada_add_non_local_symbols): Use map_ada_symtabs method.
7750 (struct add_partial_datum): New type.
7751 (ada_add_partial_symbol_completions): New function.
7752 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
7753 (ada_exception_support_info_sniffer): Update.
7754 * Makefile.in (SFILES): Add psymtab.c.
7755 (COMMON_OBS): Add psymtab.o.
7756 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
7758 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
7760 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
7762 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
7765 * cp-namespace.c (cp_add_using): Deleted.
7766 (cp_add_using_directive): Use obstack allocations.
7767 Merged the function cp_add_using into this one.
7768 Added 'struct obstack *' argument.
7769 (cp_scan_for_anonymous_namespaces): Updated.
7770 * cp-support.h: Updated.
7771 * dwarf2read.c (read_import_statement): Updated.
7772 (read_namespace): Updated.
7774 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
7776 * windows-nat.c (cygwin_conv_path): Remove old macro.
7778 2010-03-10 Pedro Alves <pedro@codesourcery.com>
7780 * breakpoint.c (condition_command): Handle watchpoint conditions.
7781 (is_hardware_watchpoint): Add comment.
7782 (is_watchpoint): New.
7783 (update_watchpoint): Don't reparse the watchpoint's condition
7786 (watchpoint_check): Use it.
7787 (bpstat_check_watchpoint): Handle it.
7788 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
7789 conditions in a frame where it makes sense.
7790 (watch_command_1): Store the innermost block of the condition
7792 (delete_breakpoint): Delete the watchpoint condition expression.
7793 * breakpoint.h (struct bp_location) <cond>: Update comment.
7794 (struct breakpoint): New field `cond_exp_valid_block'.
7796 2010-03-09 Joel Brobecker <brobecker@adacore.com>
7798 Adjust handling of Ada DIEs after dwarf2_physname patch.
7799 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
7801 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
7802 Pierre Muller <muller@ics.u-strasbg.fr>
7804 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
7805 from/to posix/win32.
7806 (windows_make_so): Use non-Cygwin 1.7 specific function.
7807 (windows_create_inferior): Make sure that cygallargs points to
7808 original args in non Cygwin 1.7. case.
7810 2010-03-09 Michael Snyder <msnyder@vmware.com>
7812 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
7813 after target_read_memory to get host byte order.
7814 (i386_process_record): Ditto.
7816 2010-03-09 Keith Seitz <keiths@redhat.com>
7818 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
7819 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
7820 print out const or volatile qualifiers, too.
7821 (c_type_print_args): Add parameters show_artificial and language.
7822 Skip artificial parameters when requested.
7823 Use the appropriate language printer.
7824 (c_type_print_varspec): Tell c_type_print_args to skip artificial
7825 parameters and pass language_c.
7826 * dwarf2read.c (die_list): New file global.
7827 (struct partial_die_info): Update comments for name field.
7828 (pdi_needs_namespace): Renamed to ...
7829 (die_needs_namespace): ... this. Rewrite.
7830 (dwarf2_linkage_name): Remove.
7831 (add_partial_symbol): Do not predicate the call to
7832 partial_die_full_name based on pdi_needs_namespace.
7833 Remove call to cp_check_possible_namespace_symbols and associated
7835 (guess_structure_name): Do not inspect child subprogram DIEs.
7836 (dwarf2_fullname): Update comments.
7837 Use die_needs_namespace to assist in computing the name.
7838 (read_func_scope): Use dwarf2_name to get the DIE's name.
7839 Use dwarf2_physname to get the "linkage name" of the DIE.
7840 (dwarf2_add_member_field): Use dwarf2_physname instead of
7841 dwarf2_linkage_name.
7842 (read_structure_type): For structs and classes, set TYPE_NAME, too.
7843 (determine_class): Remove.
7844 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
7846 (new_symbol): Unconditionally call dwarf2_name.
7847 Compute the "linkage name" using dwarf2_physname.
7848 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
7849 When determining to scan for anonymous C++ namespaces, ignore
7851 (dwarf2_physname): New function.
7852 (dwarf2_full_name): Move content to new function and call
7854 (dwarf2_compute_name): "New" function.
7855 (_initialize_dwarf2_read): Initialize die_list.
7856 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
7858 (gnu_v3_print_method_ptr): Use the physname for virtual methods
7859 without a demangled name.
7860 Print out type information for non-virtual methods.
7861 * linespec.c (decode_line_1): Force ANY string using "::" (or
7862 "." for java) to use decode_compound, and clean up any stray quoting.
7863 If we found a file symtab, re-evaluate whether the remainder is_quoted.
7864 (decode_compound): Stop consuming at an open parenthesis.
7865 Keep template parameters.
7866 Keep any overload information.
7867 Keep keywords like "const".
7868 Remove paren_pointer.
7869 Move is_quoted check from set_flags to here.
7870 Remove #if 0 code from 2000. Ten years is long enough.
7871 (find_method): Before comparing symbol names, canonicalize the string
7873 If a specific overload is requested, find it. Otherwise throw an error.
7874 (find_method_overload_end): New function.
7875 (set_flags): Remove.
7876 (decode_compound): Assume that parentheses are matched.
7878 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
7880 * linespec.c (decode_line_1): Keep important keywords like
7881 "const" and "volatile".
7882 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
7883 * typeprint.h (c_type_print_args): Add declaration.
7884 * ui-file.c (do_ui_file_obsavestring): New function.
7885 (ui_file_obsavestring): New function.
7886 * ui-file.h (ui_file_obsavestring): Add declaration.
7887 * valops.c (find_overload_match): Resolve the object to
7889 If the object is a data member, search the object for the member
7890 and return with staticp set.
7891 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
7892 Do not attempt to extract a function name from non-function types.
7893 If the extracted function name and the original name are the same,
7894 we don't have a C++ method.
7896 From Jan Kratochvil <jan.kratochvil@redhat.com>:
7897 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
7899 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
7900 and arguments from symbol lookups.
7901 * ax-gdb.c (gen_expr): Likewise.
7902 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
7903 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
7904 lookup_possible_namespace_symbol): Likewise.
7905 * cp-support.c (read_in_psymtabs): Likewise.
7906 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
7907 * language.h (la_lookup_symbol_nonlocal): Likewise.
7908 * scm-valprint.c (scm_inferior_print): Likewise.
7909 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
7910 * solib-svr.c (elf_lookup_lib): Likewise.
7911 * solib.c (show_auto_solib_add): Likewise.
7912 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
7913 * symmisc.c (maintenance_check_symtabs): Likewise.
7914 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
7915 lookup_symbol_aux_local, lookup_symbol_aux_block,
7916 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
7917 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
7918 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
7919 basic_lookup_transparent_type, find_main_psymtab,
7920 lookup_block_symbol): Likewise.
7921 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
7922 lookup_symbol_global, lookup_symbol_aux_block,
7923 lookup_symbol_partial_symbol, lookup_block_symbol,
7924 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
7926 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
7928 * python/python-internal.h: Include symtab.h.
7930 2010-03-09 Joel Brobecker <brobecker@adacore.com>
7931 Pierre Muller <muller@ics.u-strasbg.fr>
7933 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
7934 * p-valprint.c (pascal_val_print): Remove undeed block and fix
7937 2010-03-08 Tom Tromey <tromey@redhat.com>
7939 * breakpoint.c (breakpoint_1): Add "QUIT".
7941 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
7942 Pedro Alves <pedro@codesourcery.com>
7944 * solib.c (solib_find): Replace extension if
7945 solib_symbols_extension is set in the target gdbarch.
7946 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
7947 solib_symbols_extension to "sym".
7948 * gdbarch.sh (solib_symbols_extension): New variable.
7949 (pstring): New function.
7950 * gdbarch.h, gdbarch.c: Regenerate.
7952 2010-03-08 Tom Tromey <tromey@redhat.com>
7956 * utils.c: Include main.h.
7957 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
7958 (defaulted_query): Use default answer if `batch_flag'.
7959 * main.h (batch_flag): Declare.
7960 * main.c (batch_flag): New global.
7961 (captured_main): Remove 'batch'. Update.
7963 2010-03-08 Kevin Buettner <kevinb@redhat.com>
7965 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
7968 * remote-mips.c (rockhopper_ops): New target_ops struct.
7969 (MON_ROCKHOPPER): New mips_monitor_type.
7970 (read_hex_value): New function.
7971 (mips_request): Send 8-byte values with a 'T' packet. Read the
7972 packet argument as a string and use read_hex_value to parse it.
7973 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
7974 (rockhopper_open): New function.
7975 (mips_wait): Read the PC, FP and SP fields as strings. Use
7976 read_hex_value to parse them and mips_set_register to commit them.
7977 (mips_set_register): New function.
7978 (mips_fetch_registers): Do not cast register value to "unsigned"
7979 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
7980 (mips_store_registers): Use a 'T' packet to set registers when
7981 using MON_ROCKHOPPER.
7982 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
7983 and expect the total to be printed before the entry address.
7984 (_initialize_remote_mips): Initialize and add rockhopper_ops.
7986 2010-03-08 Kevin Buettner <kevinb@redhat.com>
7988 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
7989 Change return value to int. Store value fetched in location
7990 addressed by `val'. Use function's return value as success
7991 or failure indicator. Adjust all callers.
7993 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
7995 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
7997 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7998 Hui Zhu <teawater@gmail.com>
8000 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
8001 tmp_to_stopped_data_address.
8002 (record_open): Reset tmp_to_stopped_by_watchpoint and
8003 tmp_to_stopped_data_address.
8004 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
8005 to_stopped_data_address.
8007 2010-03-08 Hui Zhu <teawater@gmail.com>
8009 * i386-tdep.c (i386_process_record): Initialize regnum.
8011 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8013 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
8014 Do not warn on ".gnu.liblist" and ".gnu.conflict".
8016 2010-03-08 Joel Brobecker <brobecker@adacore.com>
8018 Memory error when reading wrong core file.
8019 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
8020 errors while reading the inferior memory, and return zero if
8021 an exception was raised.
8023 2010-03-07 Michael Snyder <msnyder@vmware.com>
8025 * record.c (record_restore): Rename tmpu8 to rectype.
8027 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
8028 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
8030 (i386_record_push): Rename local tmpulongest to addr.
8032 (i386_process_record): Rename local tmpulongest to addr.
8034 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
8037 Rename local variable tmpu8 to opcode8 and regnum.
8039 2010-03-07 Joel Brobecker <brobecker@adacore.com>
8041 * remote.c (remote_get_ada_task_ptid): New function.
8042 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
8044 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
8046 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
8047 block. Define helper macros to reduce ifdefs in code.
8048 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
8049 size. Call unadorned GetModuleFileNameEx rather than
8050 GetModuleFileNameEx*.
8051 (windows_make_so): Use __PMAX to denote maximum buffer size and
8052 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
8054 (get_image_name): Use __PMAX to denote maximum buffer size.
8055 (handle_load_dll): Likewise.
8056 (windows_pid_to_exec_file): Likewise.
8057 (windows_create_inferior): Add many accommodations for older Cygwin and
8059 (bad_GetModuleFileNameExW): Control inclusion of this function based on
8060 __USEWIDE conditional.
8061 (bad_GetModuleFileNameExA): Likewise.
8062 (_initialize_loadable): Just use real function names without the dyn_
8063 part since they are defined earlier.
8065 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
8066 Tom Tromey <tromey@redhat.com>
8068 * utils.c (host_char_to_target): Add 'gdbarch' argument.
8069 (parse_escape): Likewise.
8070 * python/py-utils.c (unicode_to_target_string): Update.
8071 (unicode_to_target_python_string): Update.
8072 (target_string_to_unicode): Update.
8073 * printcmd.c (printf_command): Update.
8074 * p-exp.y (yylex): Update.
8075 * objc-exp.y (yylex): Update.
8076 * mi/mi-parse.c: Include charset.h.
8077 (mi_parse_escape): New function.
8078 (mi_parse_argv): Use it.
8079 * jv-exp.y (yylex): Update.
8080 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
8082 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
8083 * gdbarch.sh (auto_charset, auto_wide_charset): New.
8084 * gdbarch.c: Rebuild.
8085 * gdbarch.h: Rebuild.
8086 * defs.h (parse_escape): Update.
8087 * cli/cli-setshow.c: Include arch-utils.h.
8088 (do_setshow_command): Update.
8089 * cli/cli-cmds.c (echo_command): Update.
8090 * charset.h (target_charset, target_wide_charset): Update.
8091 * charset.c: Include arch-utils.h.
8092 (target_charset_name): Default to "auto".
8093 (target_wide_charset_name): Likewise.
8094 (show_target_charset_name): Handle "auto".
8095 (show_target_wide_charset_name): Likewise.
8096 (be_le_arch): New global.
8097 (set_be_le_names): Add 'gdbarch' argument.
8098 (validate): Likewise. Don't call set_be_le_names.
8099 (set_charset_sfunc, set_host_charset_sfunc)
8100 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
8102 (target_charset): Add 'gdbarch' argument.
8103 (target_wide_charset): Likewise. Remove 'byte_order' argument.
8104 (auto_target_charset_name): New global.
8105 (default_auto_charset, default_auto_wide_charset): New functions.
8106 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
8107 for target charsets. Copy result of nl_langinfo. Use GetACP if
8109 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
8110 remove 'byte_order' argument. Update.
8111 (classify_type): Likewise.
8112 (c_emit_char): Update.
8113 (c_printchar): Update.
8114 (c_printstr): Update.
8115 (c_get_string): Update.
8116 (evaluate_subexp_c): Update.
8117 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
8119 * python/python.c (gdbpy_target_charset): New function.
8120 (gdbpy_target_wide_charset): Likewise.
8121 (GdbMethods): Update.
8124 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
8126 * symfile.c (build_section_addr_info_from_objfile): Do not mask
8127 off high address bits.
8129 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
8131 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
8132 address as UnsignedLongLong, not LongLong.
8134 2010-03-05 Kevin Buettner <kevinb@redhat.com>
8135 Pedro Alves <pedro@codesourcery.com>
8137 * remote-mips.c (gdbthread.h): Include.
8138 (remote_mips_ptid): Declare.
8139 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
8140 (common_open): Set inferior_ptid, add it as an inferior, and
8141 as a thread too. Delete FIXME comment regarding start_remote().
8142 (mips_close): Invoke generic_mourn_inferior().
8143 (mips_kill): Make sure that target_mourn_inferior is invoked.
8144 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
8145 it's now invoked from mips_close().
8146 (mips_load): Don't null out inferior_ptid. Don't call
8147 clear_symtab_users().
8148 (mips_thread_alive, mips_pid_to_str): New functions.
8149 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
8150 to_thread_alive and to_pid_to_str operations.
8152 2010-03-04 Tom Tromey <tromey@redhat.com>
8154 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
8155 in DWARF 3 and later.
8156 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
8158 2010-03-04 Keith Seitz <keiths@redhat.com>
8160 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
8161 If the filename portion of the linespec was quoted, recheck the
8162 remainder for additional quoting.
8163 (locate_first_half): Skip over completer chars, too.
8165 2010-03-04 Tom Tromey <tromey@redhat.com>
8167 * printcmd.c (printf_command): Pass dummy argument to
8170 2010-03-04 Doug Evans <dje@google.com>
8172 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
8175 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
8177 2010-03-04 Pedro Alves <pedro@codesourcery.com>
8179 * breakpoint.c (update_watchpoint): Create a sentinel location if
8180 the software watchpoint isn't watching any memory.
8181 (breakpoint_address_bits): Skip dummy software watchpoint locations.
8183 2010-03-04 Pedro Alves <pedro@codesourcery.com>
8185 * utils.c (fputs_maybe_filtered): Check if there's already a top
8186 level interpreter before dereferencing it. If there isn't one,
8187 don't paginate either.
8189 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8191 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
8192 the state right when single stepping.
8193 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
8194 Get the next PC along with the instruction state.
8195 (thumb_get_next_pc): Remove.
8196 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
8198 2010-03-04 Hui Zhu <teawater@gmail.com>
8200 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
8202 2010-03-03 Pedro Alves <pedro@codesourcery.com>
8204 * utils.c (fputs_maybe_filtered): Always disable pagination if the
8205 top level interpreter is MI.
8207 2010-03-03 Stan Shebs <stan@codesourcery.com>
8209 * remote.c (remote_download_tracepoint): Iterate over locations.
8210 * tracepoint.c (validate_actionline): Ditto.
8211 (encode_actions): Add location argument.
8212 (trace_dump_command): Check all locations to see if stepping
8215 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
8216 Eli Zaretskii <eliz@gnu.org>
8218 * NEWS: Add X86 general purpose registers section.
8220 2010-03-03 Tom Tromey <tromey@redhat.com>
8223 * varobj.c (install_new_value): Handle case where new print_value
8226 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
8229 * printcmd.c (printf_command): Print end of format string using
8232 2010-03-02 Tom Tromey <tromey@redhat.com>
8234 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
8235 * defs.h (read_command_lines_1): Add missing 'void'.
8236 * cli/cli-script.c (recurse_read_control_structure): Add missing
8238 (read_next_line): Likewise.
8239 (read_command_lines_1): Likewise.
8241 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8243 * spu-tdep.c (spu_analyze_prologue): Track instruction to
8244 store backchain as part of prologue.
8246 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
8248 * progspace.c (update_address_spaces): Update inferior address spaces
8251 2010-03-02 Doug Evans <dje@google.com>
8253 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
8254 lowpc,highpc args to addrmap_set_empty.
8256 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
8258 * amd64-tdep.c (amd64_byte_names): New.
8259 (amd64_word_names): Likewise.
8260 (amd64_dword_names): Likewise.
8261 (amd64_pseudo_register_name): Likewise.
8262 (amd64_pseudo_register_read): Likewise.
8263 (amd64_pseudo_register_write): Likewise.
8264 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
8265 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
8266 set_gdbarch_pseudo_register_write and
8267 set_tdesc_pseudo_register_name. Don't call
8268 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
8270 * i386-tdep.c (i386_num_mmx_regs): Removed.
8271 (i386_num_pseudo_regs): Likewise.
8272 (i386_byte_names): New.
8273 (i386_word_names): Likewise.
8274 (i386_byte_regnum_p): Likewise.
8275 (i386_word_regnum_p): Likewise.
8276 (i386_mmx_regnum_p): Updated.
8277 (i386_pseudo_register_name): Make it global. Handle byte and
8278 word pseudo-registers.
8279 (i386_pseudo_register_read): Likewise.
8280 (i386_pseudo_register_write): Likewise.
8281 (i386_pseudo_register_type): Handle byte, word and dword
8283 (i386_register_reggroup_p): Don't include pseudo
8284 registers, except for MXX, in any register groups. Don't
8285 include pseudo byte, word, dword registers in general_reggroup.
8286 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
8287 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
8288 pseudo-registers after word pseudo-registers. Call
8289 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
8291 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
8292 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
8294 (i386_byte_regnum_p): New.
8295 (i386_word_regnum_p): Likewise.
8296 (i386_dword_regnum_p): Likewise.
8297 (i386_pseudo_register_name): Likewise.
8298 (i386_pseudo_register_read): Likewise.
8299 (i386_pseudo_register_write): Likewise.
8301 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
8303 * target-descriptions.c (tdesc_type): Remove
8304 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8305 (tdesc_predefined_types): Likewise.
8306 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
8307 if flag name is empty.
8308 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
8310 * features/i386/32bit-core.xml: Define i386_eflags.
8311 * features/i386/64bit-core.xml: Likewise.
8313 * features/i386/32bit-sse.xml: Define i386_mxcsr.
8314 * features/i386/64bit-sse.xml: Likewise.
8316 * features/i386/amd64-linux.c: Regenerated.
8317 * features/i386/amd64.c: Likewise.
8318 * features/i386/i386-linux.c: Likewise.
8319 * features/i386/i386.c: Likewise.
8321 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
8323 * gdbtypes.c (append_composite_type_field_raw): New.
8324 (append_composite_type_field_aligned): Use the new function.
8325 * gdbtypes.h (append_composite_type_field_raw): Declare.
8326 * target-descriptions.c (struct tdesc_type_field): Add start and end.
8327 (struct tdesc_type_flag): New type.
8328 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
8329 kind. Add size to u.u. Add u.f for flags.
8330 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
8331 (tdesc_free_type): Likewise.
8332 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
8333 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
8334 (tdesc_add_bitfield, tdesc_add_flag): New.
8335 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
8336 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
8337 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
8338 current_type. Add current_type_size and current_type_is_flags.
8339 (tdesc_start_union): Clear the new fields.
8340 (tdesc_start_struct, tdesc_start_flags): New.
8341 (tdesc_start_field): Handle struct fields, including bitfields.
8342 (field_attributes): Make type optional. Add start and end.
8343 (union_children): Rename to struct_union_children.
8344 (union_attributes): Rename to struct_union_attributes. Add optional
8346 (flags_attributes): New.
8347 (feature_children): Add struct and flags.
8348 * features/gdb-target.dtd: Add flags and struct to features.
8349 Make field type optional. Add field start and end.
8351 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
8353 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
8354 (amd64_linux_read_description): Likewise.
8355 (_initialize_amd64_linux_nat): Set to_read_description to
8356 amd64_linux_read_description.
8358 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
8359 (amd64_linux_register_name): Removed.
8360 (amd64_linux_register_type): Likewise.
8361 (amd64_linux_core_read_description): New.
8362 (amd64_linux_init_abi): Set target description to
8363 tdesc_amd64_linux if needed. Support orig_rax in target
8364 description. Don't call set_gdbarch_register_name nor
8365 set_gdbarch_register_type. Call
8366 set_gdbarch_core_read_description.
8367 (_initialize_amd64_linux_tdep): Call
8368 initialize_tdesc_amd64_linux.
8370 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
8372 * amd64-tdep.c: Include "features/i386/amd64.c".
8373 (amd64_register_names): Removed.
8374 (amd64_register_name): Likewise.
8375 (amd64_register_type): Likewise.
8376 (amd64_init_abi): Set num_core_regs and register_names. Set
8377 target description to tdesc_amd64 if needed. Don't call
8378 set_gdbarch_register_name nor set_gdbarch_register_type.
8379 (_initialize_amd64_tdep): New.
8381 * i386-linux-nat.c (i386_linux_read_description): New.
8382 (_initialize_i386_linux_nat): Set to_read_description to
8383 i386_linux_read_description.
8385 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
8386 (i386_linux_register_name): Removed.
8387 (i386_linux_core_read_description): New.
8388 (i386_linux_read_description): Likewise.
8389 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
8390 Set target description to tdesc_i386_linux if needed. Support
8391 orig_eax. Set register_reggroup_p. Call
8392 set_gdbarch_core_read_description.
8393 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
8395 * i386-linux-tdep.h (tdesc_i386_linux): New.
8397 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
8400 * i386-tdep.c: Include "features/i386/i386.c".
8401 (i386_register_names): Make it const.
8402 (i386_mmx_names): Likewise.
8403 (i386_num_register_names): Removed.
8404 (i386_register_name): Likewise.
8405 (i386_eflags_type): Likewise.
8406 (i386_mxcsr_type): Likewise.
8407 (i386_sse_type): Likewise.
8408 (i386_register_type): Likewise.
8409 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
8410 (i386_pseudo_register_name): New.
8411 (i386_pseudo_register_type): Likewise.
8412 (i386_mmx_type): Make it static.
8413 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
8414 I387_NUM_REGS. Set num_core_regs and register_names. Don't
8415 call set_gdbarch_register_name nor set_gdbarch_register_type.
8416 Set register_reggroup_p. Set target description to tdesc_i386
8417 if needed. Call set_tdesc_pseudo_register_type,
8418 set_tdesc_pseudo_register_name and tdesc_use_registers.
8419 (_initialize_i386_tdep): Call initialize_tdesc_i386.
8420 initialize_tdesc_x86_64.
8422 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
8423 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
8424 register_names, tdesc and register_reggroup_p.
8425 (I386_NUM_FREGS): Removed.
8426 (i386_eflags_type): Likewise.
8427 (i386_mxcsr_type): Likewise.
8428 (i386_mmx_type): Likewise.
8429 (i386_sse_type): Likewise.
8430 (i386_register_name): Likewise.
8431 (i386_regnum): Add I386_MXCSR_REGNUM.
8432 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
8434 * i387-tdep.h (I387_NUM_REGS): New.
8436 * regformats/i386/i386-linux.dat: Generated.
8437 * regformats/i386/i386.dat: Likewise.
8438 * regformats/i386/amd64-linux.dat: Likewise.
8439 * regformats/i386/amd64.dat: Likewise.
8441 * regformats/reg-i386-linux.dat: Removed.
8442 * regformats/reg-i386.dat: Likewise.
8443 * regformats/reg-x86-64-linux.dat: Likewise.
8444 * regformats/reg-x86-64.dat: Likewise.
8446 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
8448 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
8449 cygwin_conv_path API rather than the deprecated
8450 cygwin_conv_to_full_posix_path.
8452 (GetModuleFileNameExA): Undefine for Cygwin.
8453 (GetModuleFileNameExW): Define for Cygwin.
8454 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
8455 Call GetModuleFileNameExW and convert path to POSIX using
8457 (windows_make_so): Always define p. Drop unused variable m.
8458 Don't use Win32 functions to check file existance, rather use
8459 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
8460 Use canonicalize_file_name to get full path.
8461 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
8462 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
8463 use correct target buffer size in call to WideCharToMultiByte.
8464 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
8465 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
8466 (windows_create_inferior): Convert all paths and arguments to wchar_t
8467 and use CreateProcessW on Cygwin.
8468 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
8469 (bad_GetModuleFileNameExA): Undefine for Cygwin.
8470 (bad_GetModuleFileNameExW): Define for Cygwin.
8471 (_initialize_loadable): Load GetModuleFileNameExW into
8472 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
8474 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
8477 * python/py-frame.c (frapy_read_var): Add block argument and logic
8478 to cope with user provided blocks.
8480 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8482 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
8485 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
8487 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
8488 (COMMON_OBS): ... to here since it's used unconditionally.
8489 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
8492 2010-02-26 David Daney <ddaney@caviumnetworks.com>
8494 * mips-linux-tdep.c: Update struct sigframe comments.
8495 (SIGFRAME_CODE_OFFSET): Delete macro.
8496 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
8498 (mips_linux_n32n64_sigframe_init): Same.
8500 2010-02-26 Kevin Buettner <kevinb@redhat.com>
8502 * remote-mips.c (mips_load): Don't use pseudo-register when
8503 invalidating regcache.
8505 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8507 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
8509 2010-02-26 Pedro Alves <pedro@codesourcery.com>
8511 * NEWS: Add "New targets" section, and mention ARM Symbian
8514 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
8516 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
8517 add ADDR_SIZE member.
8518 (allocate_piece_closure): Update.
8519 (copy_pieced_value_closure): Likewise.
8520 (dwarf2_evaluate_loc_desc): Likewise.
8521 (read_pieced_value): Use DWARF address size instead of
8522 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
8524 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
8525 Tom Tromey <tromey@redhat.com>
8527 * python/py-type.c (typy_lookup_typename): Add in block argument.
8528 If provided restrict lookup to specified blocks.
8529 (gdbpy_lookup_type): Likewise.
8530 (typy_lookup_type): Likewise.
8532 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8537 * arm-symbian-tdep.c: New.
8538 * configure.tgt (arm*-*-symbianelf*): New target.
8539 (*-*-symbianelf*): New OS.
8540 * osabi.c (gdb_osabi_names): Add Symbian.
8541 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
8542 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
8543 (ALLDEPFILES): Add arm-symbian-tdep.c.
8545 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8547 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
8549 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8551 * mi/mi-main.c (mi_cmd_execute): Fix typo.
8553 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
8554 Tom Tromey <tromey@redhat.com>
8555 Thiago Jung Bauermann <bauerman@br.ibm.com>
8557 * python/python.c (_initialize_python): Call
8558 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
8559 gdbpy_initialize_blocks.
8560 * python/python-internal.h: Declare struct symbol, block and
8561 symtab_and_line. Declare block_object_type and
8563 (gdbpy_lookup_symbol gdbpy_block_for_pc)
8564 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
8565 (symbol_to_symbol_object, block_to_block_object)
8566 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
8567 (gdbpy_initialize_blocks ): Declare.
8568 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
8569 (frapy_select): Add methods.
8570 (frapy_read_var): Add symbol branch.
8571 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
8573 (SUBDIR_PYTHON_SRCS): Likewise.
8574 (py-symbol.o): New rule.
8575 (py-symtab.o): Likewise.
8576 (py-block.o): Likewise.
8577 * python/py-symbol.c: New file.
8578 * python/py-symtab.c: Likewise.
8579 * python/py-block.c: Likewise.
8581 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8585 * inferior.h (prepare_for_detach): Declare.
8586 (struct inferior) <detaching>: New field.
8587 * infrun.c (prepare_for_detach): New.
8588 (handle_inferior_event) <random signal>: Don't stop if detaching.
8589 * target.c (target_detach): Call prepare_for_detach.
8591 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8593 Per-process displaced stepping queue.
8595 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
8596 (displaced_step_gdbarch, displaced_step_closure,
8597 (displaced_step_original, displaced_step_copy): Move globals to
8599 (struct displaced_step_inferior_state): ... new structure.
8600 (displaced_step_inferior_states): New global.
8601 (get_displaced_stepping_state, add_displaced_stepping_state)
8602 (remove_displaced_stepping_state, infrun_inferior_exit): New
8604 (displaced_step_clear): Add displaced_step_inferior_state
8605 parameter, and adjust to handle it.
8606 (displaced_step_clear_cleanup): Parameter is now a
8607 displaced_step_inferior_state. Adjust.
8608 (displaced_step_prepare): Adjust.
8609 (displaced_step_fixup, displaced_step_fixup)
8610 (infrun_thread_ptid_changed, resume): Adjust.
8611 (init_wait_for_inferior): Don't call displaced_step_clear.
8612 (infrun_thread_stop_requested): Rewrite.
8613 (_initialize_infrun): Install infrun_inferior_exit as
8614 inferior_exit observer.
8616 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8618 * inferior.h (ptid_match): Declare.
8619 * infrun.c (ptid_match): New.
8620 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
8621 (handle_notification): Add debug output.
8622 * linux-nat.c (ptid_match): Delete.
8624 2010-02-24 David S. Miller <davem@davemloft.net>
8626 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
8627 * syscalls/sparc-linux.xml: New.
8628 * syscalls/sparc64-linux.xml: New.
8629 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
8630 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
8631 (sparc32_linux_get_syscall_number): New function.
8632 (sparc32_linux_init_abi): Set syscall XML file name and hook up
8633 syscall number fetcher.
8634 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
8635 (sparc64_linux_get_syscall_number): New function.
8636 (sparc64_linux_init_abi): Set syscall XML file name and hook up
8637 syscall number fetcher.
8639 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
8643 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
8644 * inferior.c (add_inferior_silent): Notify inferior_added
8646 (delete_inferior_1): Notify inferior_removed observer.
8647 (exit_inferior_1): Pass inferior, not pid, to observer.
8648 (inferior_appeared): Likewise.
8649 (add_inferior_with_spaces): New.
8650 (add_inferior_command): Use the above.
8651 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
8654 * inflow.c (inflow_inferior_exit): Likewise.
8655 * jit.c (jit_inferior_exit_hook): Likewise.
8657 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
8659 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
8660 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
8661 (report_initial_inferior): New.
8662 (mi_inferior_removed): Register the above. Make sure
8663 inferior_added observer is called on the first inferior.
8664 (mi_new_thread, mi_thread_exit): Thread group is now identified by
8665 inferior number, not pid.
8666 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
8668 * mi/mi-main.c (current_context): New.
8669 (proceed_thread_callback): Use typed closure.
8670 Proceed everything if pid is 0. Most implementation split into
8671 (proceed_thread): ... this.
8672 (run_one_inferior): New.
8673 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
8674 Adjust for multiexec behaviour.
8675 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
8676 (mi_cmd_execute): Handle the 'thread-group' option here.
8677 Do some extra checks.
8678 * mi-parse.c (mi_parse): Handle the --all and --thread-group
8680 * mi-parse.h (struct mi_parse): New fields all and thread_group.
8682 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
8684 Make -exec-run a proper MI commands.
8686 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
8687 * mi/mi-cmds.c (mi_cmds): Adjust.
8688 * mi/mi-main.c (mi_cmd_exec_run): New.
8690 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8691 Stan Shebs <stan@codesourcery.com>
8693 * tracepoint.h (set_traceframe_number)
8694 (cleanup_restore_current_traceframe): Declare.
8695 * tracepoint.c (set_traceframe_number): New.
8696 (struct current_traceframe_cleanup): New.
8697 (do_restore_current_traceframe_cleanup)
8698 (restore_current_traceframe_cleanup_dtor)
8699 (make_cleanup_restore_current_traceframe): New.
8700 * infrun.c: Include tracepoint.h.
8701 (fetch_inferior_event): Switch out and in of tfind mode.
8703 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8705 * breakpoint.c (breakpoint_init_inferior): Also delete
8706 bp_shlib_event breakpoints.
8707 * solib-frv.c (enable_break): Remove call to
8708 remove_solib_event_breakpoints.
8709 * solib-svr4.c (enable_break): Ditto.
8710 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
8711 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
8712 * solib-som.c (som_solib_create_inferior_hook): Ditto.
8713 * solib-spu.c (spu_enable_break): Ditto.
8715 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
8717 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
8719 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
8721 * varobj.c (varobj_update): Avoid non-constants in initializers.
8723 2010-02-23 Tom Tromey <tromey@redhat.com>
8725 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
8726 handle big-endian values.
8727 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
8729 2010-02-22 Pedro Alves <pedro@codesourcery.com>
8734 * breakpoint.c (insert_bp_location): If inserting the read
8735 watchpoint failed, fallback to an access watchpoint.
8736 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
8737 if the value changed, if not watching the same memory for writes.
8738 (watchpoint_locations_match): Add comment.
8739 (update_global_location_list): Copy the location's watchpoint type.
8740 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
8741 handle read watchpoints here.
8742 (i386_insert_watchpoint): Read watchpoints aren't supported.
8743 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
8745 * target.h (target_insert_watchpoint): Update description.
8747 2010-02-19 Tom Tromey <tromey@redhat.com>
8749 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
8750 * m2-typeprint.c (m2_print_type): Update.
8751 * gdbtypes.c (recursive_dump_type): Update.
8752 (copy_type_recursive): Update.
8753 * c-typeprint.c (c_type_print_varspec_prefix): Update.
8754 (c_type_print_base): Update.
8755 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
8757 (struct cplus_struct_type) <ntemplate_args>: Remove.
8758 <struct template_arg>: Remove.
8759 <is_dynamic>: Move earlier.
8760 (TYPE_TEMPLATE_ARGS): Remove.
8761 (TYPE_NTEMPLATE_ARGS): Remove.
8762 (TYPE_TEMPLATE_ARG): Remove.
8764 2010-02-19 Tom Tromey <tromey@redhat.com>
8766 PR c++/8693, PR c++/9496:
8767 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
8768 * c-exp.y (lex_one_token): Rename from yylex. Don't call
8769 write_dollar_variable. Don't try to classify NAME tokens.
8770 (token_and_value): New type.
8771 (token_fifo, popping, name_obstack): New globals.
8772 (classify_name): New function.
8773 (classify_inner_name): Likewise.
8775 (VARIABLE): Now has type sval.
8776 (exp : VARIABLE): Call write_dollar_variable.
8777 (qualified_name): Use TYPENAME, not typebase. Add production for
8778 multiple "::" instances.
8779 (variable): Use name_not_typename.
8780 (qualified_type): Remove.
8783 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8785 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
8786 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
8787 found by bfd_get_section_by_name.
8788 * symfile.h (struct section_addr_info) <sectindex>: New comment.
8790 2010-02-19 Joel Brobecker <brobecker@adacore.com>
8792 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
8793 7.0 section" into "Changes in 7.1".
8795 2010-02-19 Joel Brobecker <brobecker@adacore.com>
8797 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
8798 * version.in: Bump version to 7.1.50.20100219-cvs.
8800 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
8802 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
8803 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
8805 2010-02-17 Tom Tromey <tromey@redhat.com>
8807 * NEWS: Add Python API Improvements section.
8809 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
8811 * NEWS: Correct typo.
8813 2010-02-17 Tom Tromey <tromey@redhat.com>
8815 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
8817 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8819 * symfile.c (build_section_addr_info_from_objfile): Include sections
8820 only if they are SEC_ALLOC or SEC_LOAD.
8822 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
8825 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
8826 of ULONGEST for address size.
8828 2010-02-17 Tom Tromey <tromey@redhat.com>
8830 * NEWS: Add C++ improvements section.
8832 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
8834 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
8835 PyThreadState_Swap): Avoid "statement with no effect" warning.
8837 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8839 * solib-svr4.c (enable_break <target_auxv_search>): New variable
8840 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
8842 2010-02-17 Tristan Gingold <gingold@adacore.com>
8843 Petr Hluzin <petr.hluzin@gmail.com>
8845 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
8846 gdb_assert. Fix info->size for SIG prologue.
8848 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8850 * infcmd.c (show_inferior_tty_command): Check for NULL.
8851 Correct output message.
8853 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8855 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
8856 FUNCTION contains parentheses. Improve removal of a trailing
8859 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8861 * gcore.c (do_bfd_delete_cleanup): New function.
8862 (gcore_command): Use it. Discard the cleanup after success.
8863 (gcore_copy_callback): Delete dead code.
8865 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8867 * symfile.c (addr_info_make_relative): Always use
8868 find_lowest_section.
8870 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
8872 * NEWS: Added entry for namespace fixes.
8874 2010-02-15 Tom Tromey <tromey@redhat.com>
8876 * dwarf2read.c (guess_structure_name): Allocate name on the
8879 2010-02-15 Tom Tromey <tromey@redhat.com>
8881 * c-typeprint.c (c_type_print_base): Reverse order of test.
8883 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8885 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
8886 initialize it from ELF BFD. Extend the prelink condition by it.
8888 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8890 * defs.h (parse_pid_to_attach): New.
8891 * utils.c (parse_pid_to_attach): New.
8892 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
8893 * gnu-nat.c (gnu_attach): Likewise.
8894 * nto-procfs.c (procfs_attach): Likewise.
8895 * procfs.c (procfs_attach): Likewise.
8896 * windows-nat.c (windows_attach): Likewise.
8897 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
8898 * inf-ttrace.c (inf_ttrace_attach): Likewise.
8899 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
8902 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
8904 * MAINTAINERS: Add myself for write after approval privileges.
8906 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8908 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
8911 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8913 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
8914 only if INFO_VERBOSE.
8916 2010-02-12 Tomas Holmberg <th@virtutech.com>
8918 * mi/mi-main.c: Added the --reverse flag to the following MI
8919 commands: exec-continue, exec-finish, exec-next, exec-step,
8920 exec-next-instruction, exec-step-instruction. This is to
8921 support reverse execution over the MI interface to gdb.
8923 2010-02-12 Pedro Alves <pedro@codesourcery.com>
8925 * tracepoint.c (_initialize_tracepoint): Specify that the address
8926 range of `tfind outsize' is exclusive, and that the address range
8927 of `tfind range' is inclusive, in the commands' help strings.
8929 2010-02-12 Joel Brobecker <brobecker@adacore.com>
8931 Spurious "dll not found" error messages on x64-windows.
8932 * windows-nat.c: Add include of complaints.h.
8933 (handle_unload_dll): Change dll-not-found error into a complaint.
8935 2010-02-12 Pedro Alves <pedro@codesourcery.com>
8937 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
8938 bp_tracepoint and bp_fast_tracepoint, not
8939 bp_loc_software_breakpoint.
8940 (update_global_location_list): Tracepoints are never duplicates of
8943 2010-02-12 Pedro Alves <pedro@codesourcery.com>
8945 * breakpoint.c (break_command_really): Change return type to int.
8946 Return false if no breakpoint was created, true otherwise.
8947 (trace_command): Don't set the tracepoint count if no tracepoint
8949 (ftrace_command): Ditto.
8950 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
8951 created in the breakpoints table.
8953 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8954 Ulrich Weigand <uweigand@de.ibm.com>
8956 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
8958 2010-02-11 Pedro Alves <pedro@codesourcery.com>
8960 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
8961 the offset value isn't of integral type.
8963 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8965 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
8968 2010-02-11 Pedro Alves <pedro@codesourcery.com>
8970 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
8971 non-subscriptable types.
8972 * valarith.c (binop_types_user_defined_p): New, abstracted out
8974 (binop_user_defined_p): ... this.
8975 * value.h (binop_types_user_defined_p): Declare.
8977 2010-02-11 Pedro Alves <pedro@codesourcery.com>
8979 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
8980 Merge uploaded TSVs before merging uploaded tracepoints.
8982 2010-02-11 Pedro Alves <pedro@codesourcery.com>
8984 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
8986 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
8988 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
8989 whitespace character after a dot in comment.
8990 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
8992 (list_args_or_locals): For the 'all' (that is
8993 -stack-list-variables) case, always output list of tuples.
8994 Output 'arg' field if variable is argument.
8996 2010-02-10 Tom Tromey <tromey@redhat.com>
8998 * parser-defs.h (parser_debug): Declare.
8999 * parse.c (_initialize_parse): Install "debug parser" set/show
9001 (parser_debug): New global.
9002 (show_parserdebug): New function.
9003 * c-exp.y (c_parse): Set yydebug.
9005 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
9007 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
9008 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9009 (tdesc_predefined_types): Add i387_ext, i386_eflags and
9011 (tdesc_find_type): New.
9012 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
9013 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9015 * target-descriptions.h (tdesc_find_type): New.
9017 2010-02-10 Michael Snyder <msnyder@vmware.com>
9019 * gdb-gdb.py: Comment fix.
9021 2010-02-09 Tristan Gingold <gingold@adacore.com>
9023 * machoread.c (macho_symfile_relocate): New function.
9024 (macho_sym_fns): Use macho_symfile_relocate instead of
9025 default_symfile_relocate.
9026 (macho_oso_data): New type.
9027 (current_oso): New variable.
9028 (macho_add_oso_symfile): Do not compute section_addr_info, but
9029 instead set vma of sections.
9030 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
9031 Set and clear current_oso.
9033 2010-02-09 Joel Brobecker <brobecker@adacore.com>
9035 Wrong type description for tagged type parameter.
9036 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
9037 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
9038 reference to a tagged type.
9040 2010-02-09 Tristan Gingold <gingold@adacore.com>
9042 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
9043 brothers of the parent.
9045 2010-02-08 Tom Tromey <tromey@redhat.com>
9049 * valops.c (search_struct_field): Make 'name' const.
9050 (search_struct_method): Likewise.
9051 (find_method_list): Make 'method' const.
9052 (value_struct_elt): Make 'name' and 'err' const.
9053 (value_find_oload_method_list): Make 'method' const.
9054 (find_overload_match): Make 'name' const.
9055 * eval.c (evaluate_subexp_standard): New locals function,
9057 <OP_FUNCALL>: Handle OP_SCOPE specially.
9059 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9061 * infrun.c (handle_inferior_event): Do not look up regcache
9062 for exited processes.
9064 2010-02-08 Chris Moller <moller@mollerware.com>
9067 * valarith.c (value_ptrdiff): Added a test for a zero type length,
9068 warn if found, and assume length = 1.
9070 2010-02-08 Chris Moller <cmoller@redhat.com>
9073 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
9074 (cp_print_static_field) Fix use of obstacks.
9076 2010-02-08 Pedro Alves <pedro@codesourcery.com>
9078 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
9079 resumed LWPs as resumed.
9080 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
9081 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
9082 of throwing an internal error. If an LWP of a process we're not
9083 waiting for reports a signal, don't force collecting a SIGSTOP,
9084 and if it was breakpoint hit in non-stop mode, cancel it. Don't
9085 go through all LWPs cancelling breakpoints in non-stop mode.
9086 (resume_stopped_resumed_lwps): New.
9087 (linux_nat_wait): Use it.
9089 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
9091 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
9092 i386/amd64 and i386/amd64-linux.
9093 (i386/i386-expedite): New.
9094 (i386/i386-linux-expedite): Likewise.
9095 (i386/amd64-expedite):Likewise.
9096 (i386/amd64-linux-expedite): Likewise.
9097 ($(outdir)/i386/i386-linux.dat): Likewise.
9098 ($(outdir)/i386/amd64.dat): Likewise.
9099 ($(outdir)/i386/amd64-linux.dat): Likewise.
9101 * features/i386/32bit-core.xml: New.
9102 * features/i386/32bit-linux.xml: Likewise.
9103 * features/i386/32bit-sse.xml: Likewise.
9104 * features/i386/64bit-core.xml: Likewise.
9105 * features/i386/64bit-linux.xml: Likewise.
9106 * features/i386/64bit-sse.xml: Likewise.
9107 * features/i386/i386-linux.xml: Likewise.
9108 * features/i386/i386.xml: Likewise.
9109 * features/i386/amd64-linux.xml: Likewise.
9110 * features/i386/amd64.xml: Likewise.
9111 * features/i386/i386-linux.c: Likewise.
9112 * features/i386/i386.c: Likewise.
9113 * features/i386/amd64-linux.c: Likewise.
9114 * features/i386/amd64.c: Likewise.
9116 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
9119 * cp-support.h: Added char* alias element to using_direct data
9121 (cp_add_using): Added char* alias argument.
9122 (cp_add_using_directive): Ditto.
9123 * cp-namespace.c: Updated with the above changes.
9124 (cp_lookup_symbol_imports): Check for aliases.
9125 * dwarf2read.c (read_import_statement): Figure out local alias
9126 for the import and pass it on to cp_add_using.
9127 (read_namespace): Pass alias argument to cp_add_using.
9129 2010-02-05 Hui Zhu <teawater@gmail.com>
9131 * defs.h (gdb_bfd_errmsg): New extern.
9132 * exec.c (exec_file_attach): Change bfd_errmsg to
9134 * utils.c (AMBIGUOUS_MESS1): New macro.
9135 (AMBIGUOUS_MESS2): New macro.
9136 (gdb_bfd_errmsg): New function.
9138 2010-02-04 Doug Evans <dje@google.com>
9140 * solib-svr4.c (enable_break): Add comment.
9142 2010-02-04 Anthony Green <green@moxielogic.com>
9144 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
9147 2010-02-04 Tom Tromey <tromey@redhat.com>
9149 * valops.c (search_struct_field): Account for
9150 value_embedded_offset. Fix check for virtual base past the end of
9151 the object. Use value_copy when making a slice of the value.
9153 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
9156 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
9157 only if gdb_stdout is a tty.
9159 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
9161 * target-descriptions.c: Include "osabi.h".
9162 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
9165 2010-02-04 Tristan Gingold <gingold@adacore.com>
9167 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
9168 (macho_symtab_read): Adjust calls to macho_add_oso.
9169 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
9170 (macho_symfile_read): Adjust call to macho_oso_symfile.
9171 (macho_new_init): Move this function after declarations.
9172 (macho_symfile_init): Ditto.
9173 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
9174 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
9176 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
9178 Include MI command in remotelog.
9180 * mi/mi-main.c (mi_execute_command): Call target_log_command.
9182 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9184 * remote.c (remote_state): Remove gdbarch.
9185 (init_remote_state): Don't set gdbarch.
9186 (remote_query_supported): Pass target_gdbarch instead of
9187 rs->gdbarch to gdbarch_qsupported.
9189 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9191 * gdbarch.sh: Add qsupported.
9193 * gdbarch.c: Regenerated.
9194 * gdbarch.h: Likewise.
9196 * remote.c (remote_state): Add gdbarch.
9197 (init_remote_state): Set gdbarch.
9198 (remote_query_supported): Support gdbarch_qsupported.
9200 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
9202 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
9203 __FreeBSD_kernel_version.
9205 2010-02-03 Tristan Gingold <gingold@adacore.com>
9207 * symfile.h (struct sym_fns): Add sym_relocate field.
9208 (default_symfile_relocate): New prototype.
9209 (symfile_relocate_debug_section): First argument is now an objfile.
9210 * symfile.c (default_symfile_relocate): Rename from
9211 symfile_relocate_debug_section, first argument is now an objfile.
9212 (symfile_relocate_debug_section): New function.
9213 * coffread.c (coff_sym_fns): Set sym_relocate field.
9214 * somread.c (som_sym_fns): Ditto.
9215 * mipsread.c (ecoff_sym_fns): Ditto.
9216 * machoread.c (macho_sym_fns): Ditto.
9217 * elfread.c (elf_sym_fns): Ditto.
9218 * dwarf2read.c (dwarf2_read_section): Ditto.
9219 * xcoffread.c (xcoff_sym_fns): Ditto.
9220 * dbxread.c (aout_sym_fns): Ditto.
9221 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
9222 (elfstab_build_psymtabs): Ditto.
9224 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9226 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
9228 2010-02-02 Tom Tromey <tromey@redhat.com>
9230 * valops.c (value_cast_structs): Try downcasting using the RTTI
9233 2010-02-02 Tom Tromey <tromey@redhat.com>
9235 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
9236 (gnuv2_baseclass_offset): Now static.
9237 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
9238 * gnu-v2-abi.h: Remove.
9240 2010-02-02 Tom Tromey <tromey@redhat.com>
9242 * m2-typeprint.c (m2_record_fields): Don't use
9244 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
9245 (struct main_type) <flag_declared_class>: New field.
9246 (struct cplus_struct_type) <declared_type>: Remove.
9247 <ntemplate_args>: Move earlier.
9248 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
9249 (DECLARED_TYPE_TEMPLATE): Remove.
9250 (TYPE_DECLARED_TYPE): Remove.
9251 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
9252 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
9253 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
9256 2010-02-02 Tom Tromey <tromey@redhat.com>
9258 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
9259 * valops.c (search_struct_field): Compute nbases after calling
9261 (check_field): Call CHECK_TYPEDEF.
9262 * cp-valprint.c (cp_print_value): Pass correct address to
9263 baseclass_offset. Fix check for virtual base past the end of the
9264 object. Don't offset address passed to cp_print_value_fields or
9265 apply_val_pretty_printer.
9266 (cp_print_value_fields): Fix call to val_print.
9267 (cp_print_value_fields_rtti): New function.
9268 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
9269 * p-valprint.c (pascal_object_print_value_fields): Fix call to
9271 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
9273 * language.h (struct language_defn) <la_val_print>: Document.
9274 * c-lang.h (cp_print_value_fields_rtti): Declare.
9276 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9279 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9280 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
9281 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9283 2010-02-01 Michael Matz <matz@suse.de>
9284 Daniel Jacobowitz <dan@codesourcery.com>
9286 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
9287 functions use a frame pointer.
9289 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9291 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
9292 by a conditional setting DYN_ADDR. Use DYN_ADDR.
9293 * config/djgpp/fnchange.lst: Add translations for
9294 symbol-without-target_section.exp and symbol-without-target_section.c.
9296 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9298 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
9299 (remote_breakpoint_for_pc): Correct invalid_p check.
9300 * gdbarch.c: Regenerated.
9302 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9304 * arm-tdep.c (arm_find_mapping_symbol): New function, from
9306 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
9307 (extend_buffer_earlier): New function.
9308 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
9309 (arm_adjust_breakpoint_address): New function.
9310 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
9312 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9314 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
9315 (arm_linux_thumb2_le_breakpoint): New constants.
9316 (arm_linux_init_abi): Set thumb2_breakpoint and
9317 thumb2_breakpoint_size.
9318 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
9319 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
9320 Implement support for single stepping through IT blocks if
9321 a 32-bit Thumb breakpoint instruction is available.
9322 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
9323 is available, use it when needed.
9324 (arm_remote_breakpoint_from_pc): New function.
9325 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
9326 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
9327 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
9329 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9331 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
9332 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
9333 * gdbarch.c, gdbarch.h: Regenerated.
9334 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
9335 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
9336 gdbarch_remote_breakpoint_from_pc.
9338 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9340 * infrun.c (prepare_to_proceed): Handle other signals which might
9342 (handle_inferior_event): Move the check for unusual breakpoint
9345 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
9347 amd64 - function returning record with field straddling 2 registers.
9348 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
9349 a record of length <= 16 in which a field straddles the two
9352 2010-01-29 Joel Brobecker <brobecker@adacore.com>
9354 Implement return values on amd64-windows.
9355 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
9356 (amd64_windows_return_value): New function.
9357 (amd64_windows_init_abi): Call set_gdbarch_return_value with
9358 amd64_windows_return_value.
9360 2010-01-29 Joel Brobecker <brobecker@adacore.com>
9362 amd64-windows: 32 bytes allocated on stack by caller for integer
9363 parameter registers.
9364 * i386-tdep.h (struct gdbarch_tdep): Add new field
9365 integer_param_regs_saved_in_caller_frame.
9366 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
9367 tdep->integer_param_regs_saved_in_caller_frame to 1.
9368 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
9369 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
9371 2010-01-29 Joel Brobecker <brobecker@adacore.com>
9373 amd64-windows: memory args passed by pointer during function calls.
9374 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
9375 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
9376 where tdep->memory_args_by_pointer is non-zero.
9377 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
9378 tdep->memory_args_by_pointer to 1.
9380 2010-01-29 Joel Brobecker <brobecker@adacore.com>
9382 amd64-windows: Integer parameters in function calls.
9383 * i386-tdep.h (enum amd64_reg_class): New, moved here from
9385 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
9386 call_dummy_integer_regs, and classify.
9387 * amd64-tdep.h (amd64_classify): Add declaration.
9388 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
9389 (amd64_reg_class): Delete, moved to i386-tdep.h.
9390 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
9391 Replace call to amd64_classify by call to tdep->classify.
9392 (amd64_push_arguments): Get the list of registers to use for
9393 passing integer parameters from the gdbarch tdep structure,
9394 rather than using a hardcoded one. Replace calls to amd64_classify
9395 by calls to tdep->classify.
9396 (amd64_push_dummy_call): Get the register number used for
9397 the "hidden" argument from tdep->call_dummy_integer_regs.
9398 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
9399 and tdep->call_dummy_integer_regs. Set tdep->classify.
9400 * amd64-windows-tdep.c: Add include of gdbtypes.h.
9401 (amd64_windows_dummy_call_integer_regs): New static global.
9402 (amd64_windows_classify): New function.
9403 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
9404 tdep->call_dummy_integer_regs and tdep->classify.
9406 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
9408 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
9409 for the new regcache. All callers updated.
9410 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
9411 (get_thread_arch_regcache): Do not set aspace here.
9412 * regcache.h (regcache_xmalloc): Update declaration.
9414 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
9415 regcache_xmalloc updated.
9417 2010-01-28 Joel Brobecker <brobecker@adacore.com>
9419 Another -Wunused-function error in procfs.c (sparc-solaris)
9420 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
9421 Only define if SYS_syssgi is defined.
9422 (remove_dbx_link_breakpoint): Delete declaration. Move up.
9423 (dbx_link_addr, insert_dbx_link_bpt_in_file)
9424 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
9427 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
9429 * windows-nat.c (windows_initialization_done): New variable.
9430 (get_windows_debug_event): Issue error when process dies before
9431 completely initializing.
9432 (do_initial_windows_stuff): Set flag to indicate when we are done with
9433 the initial steps of attaching to the child.
9435 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9437 * symtab.h (struct symbol <symtab>): New comment on NULL values.
9439 2010-01-27 Doug Evans <dje@google.com>
9441 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
9443 * breakpoint.c (bpstat_stop_status): Delete useless code.
9445 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9447 * printcmd.c (display_uses_solib_p): Remove variable section. Access
9448 objfile via SYMBOL_SYMTAB.
9450 2010-01-26 Tom Tromey <tromey@redhat.com>
9453 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
9454 coerce_array on result.
9456 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
9458 * cp-namespace.c (cp_lookup_symbol_namespace): Added
9459 search_parent argument.
9460 (cp_add_using): Initialize 'searched' field.
9461 (reset_directive_searched): New function.
9462 * cp-support.h: Add 'searched' field to using_direct struct.
9463 (cp_lookup_symbol_imports): Ditto.
9464 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
9465 Perform recursive search.
9466 Implement non parent search.
9467 * valops.c (value_maybe_namespace_elt): Updated.
9469 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
9472 * dwarf2read.c (read_lexical_block_scope): Create blocks for
9473 scopes which contain using directives even if they contain no
9475 * symtab.c (lookup_symbol_aux): Pass lowest level block to
9476 la_lookup_symbol_nonlocal.
9477 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
9478 cp_lookup_symbol_namespace.
9479 (cp_lookup_symbol_namespace): Perform an import lookup at every
9481 (cp_lookup_symbol_imports): New function.
9482 (cp_lookup_symbol_in_namespace): New function.
9484 2010-01-25 Tom Tromey <tromey@redhat.com>
9487 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
9490 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9492 * configure.ac: Only use host_os part when disabling TUI on osf.
9493 Use test to check variables, prefix strings with x.
9494 * configure: Regenerate.
9496 * solib-osf.c (osf_current_sos): Initialize tail.
9498 2010-01-25 gingold <gingold@adacore.com>
9500 * windows-nat.c (windows_continue): Use %x to print thread id.
9501 (get_windows_debug_event): Ditto.
9503 2010-01-22 Tom Tromey <tromey@redhat.com>
9506 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
9507 type and arguments. Use smash_to_methodptr_type.
9508 (read_structure_type): Call quirk_gcc_member_function_pointer
9510 * gdbtypes.h (smash_to_methodptr_type): Declare.
9511 * gdbtypes.c (smash_to_methodptr_type): New function.
9512 (lookup_methodptr_type): Use it.
9514 2010-01-21 Tom Tromey <tromey@redhat.com>
9517 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
9518 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
9519 * glibc-tdep.c (find_minsym_and_objfile): Remove.
9520 (glibc_skip_solib_resolver): Use
9521 lookup_minimal_symbol_and_objfile.
9523 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
9525 * inflow.c (check_syscall): Guard by #if clause for GO32 and
9528 2010-01-20 Tom Tromey <tromey@redhat.com>
9531 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
9532 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
9533 * dwarf2expr.c (new_dwarf_expr_context): Allocate
9534 dwarf_stack_values, not CORE_ADDRs.
9535 (execute_stack_op): Change DW_OP_div and comparison operators to
9536 use signed operands.
9538 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
9540 Per-inferior args and tty and environment.
9542 * infcmd.c (inferior_args): Rename to ...
9543 (inferior_args_scratch): ... this.
9544 (inferior_io_terminal): Rename to ...
9545 (inferior_io_terminal_scratch): ... this.
9546 (inferior_argc, inferior_argv): Remove.
9547 (set_inferior_io_terminal, get_inferior_io_terminal): Store
9548 inside current_inferior().
9549 (set_inferior_tty_command, show_inferior_tty_command): New.
9550 (get_inferior_args, set_inferior_args): Store inside
9552 (notice_args_set): Likewise and rename to...
9553 (set_args_command): ... this.
9554 (set_inferior_args_vector): Likewise.
9555 (notice_args_read): Rename to...
9556 (show_args_command): ...new.
9557 (tty_command): Remove.
9558 (run_command_1): Don't free old args, as they are freed by
9559 set_inferior_arg now.
9560 (run_no_args_command): Likewise.
9561 (inferior_environ): Remove.
9562 (run_command_1): Use environment of the current inferior.
9563 (environment_info, set_environment_command)
9564 (unset_environment_command, path_info, path_command): Likewise.
9565 (_initialize_infcmd): Adjust for function and variable renames.
9566 Do not init inferior_environ.
9567 * inferior.h (set_inferior_arg): Adjust prototype.
9568 (struct inferior): New fields args, argc, argv, terminal, environment.
9569 (inferior_environ): Remove declaration.
9570 * inferior.c (free_inferior): Free new fields.
9571 (add_inferior_silent): Initialize 'environment' field.
9572 * main.c (captured_main): Set arguments only after the initial
9573 inferior has been created. Set set_inferior_io_terminal,
9575 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
9577 (_initialize_mi_cmd_env): Adjust for disappearance of global
9579 * solib.c (solib_find): Use environment of the current inferior.
9581 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9583 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
9585 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
9587 2010-01-20 Joel Brobecker <brobecker@adacore.com>
9589 Get rid of ada-lang.c:function_name_from_pc.
9590 * ada-lang.c: Add "stack.h" #include.
9591 (function_name_from_pc): Delete.
9592 (is_known_support_routine): Replace call to function_name_from_pc
9593 by call to find_frame_funname.
9594 (ada_unhandled_exception_name_addr_from_raise): Likewise.
9596 2010-01-19 Tom Tromey <tromey@redhat.com>
9599 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
9602 2010-01-19 Tom Tromey <tromey@redhat.com>
9604 * top.c (stop_sig, float_handler, do_nothing): Remove.
9606 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9608 * breakpoint.c (watchpoint_check): Check the call
9609 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
9611 * config/djgpp/fnchange.lst: Add translations for
9612 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
9613 watchpoint-cond-gone-stripped.c.
9615 2010-01-19 Tom Tromey <tromey@redhat.com>
9618 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
9619 into parent scope, and enumerator into grandparent scope.
9621 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9623 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
9625 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9627 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
9628 i[34567]86-*-solaris2.1[0-9]*.
9629 * configure.tgt: Likewise.
9631 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9633 * NEWS: Document the source command enhancement allowing it
9634 to load Python scripts. Document the "set/show script-extension"
9637 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9639 Add -Wunused-function to compile flags.
9640 * configure.ac: Add -Wunused-function to build_warnings.
9641 * configure: Regenerate.
9643 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9645 "delete" ada-lex.c:input function, not used.
9646 * ada-lex.l: #define YY_NO_INPUT.
9648 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9650 Delete free_named_symtabs and associated cleanup.
9651 * symfile.h (free_named_symtabs): Delete declaration.
9652 * symfile.c: Remove some commented out code (clear_symtab_users_once).
9653 (cashier_psymtab): Comment function out.
9655 (free_named_symtabs): Delete.
9656 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
9657 * dbxread.c (end_psymtab): Likewise.
9658 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
9659 * exec.c (exec_close_1): Ditto.
9660 * xcoffread.c (xcoff_end_psymtab): Likewise.
9662 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9664 * stack.c (print_block_frame_labels): Comment function out.
9666 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9668 Delete unused or undefined functions.
9669 * breakpoint.c (ep_parse_optional_filename): Delete.
9670 * dcache.c (dcache_write_line): Remove declaration.
9671 * infrun.c (build_infrun): Remove declaration.
9672 * tracepoint.c (tracepoint_save_command): Remove declaration.
9673 * linux-nat.c (init_lwp_list): Delete. No longer used.
9674 * event-loop.c (check_async_signal_handlers): Delete declaration.
9675 * infrun.c (init_execution_control_state): Delete.
9676 (proceed): Update comment to avoid mentioning
9677 init_execution_control_state.
9678 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
9679 * ada-lang.c (ada_to_static_fixed_value): Delete.
9680 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
9681 * cp-namespace.c (cp_copy_usings): Delete.
9682 * xml-syscall.c (xml_number_of_syscalls): Delete.
9683 * progspace.c (find_program_space_by_num): Delete.
9684 * inflow.c (handle_sigio): Delete declaration.
9685 * hppa-tdep.c (hppa_alignof): Delete.
9686 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
9687 (mipsnbsd_core_osabi_sniffer): Delete.
9689 2010-01-18 Tom Tromey <tromey@redhat.com>
9692 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
9693 (CONST_CAST): New tokens.
9694 (exp): Add new productions.
9695 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
9697 (is_cast_operator): New function.
9698 (yylex): Handle cast operators specially.
9699 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
9700 UNOP_REINTERPRET_CAST>: New cases.
9701 * expprint.c (print_subexp_standard): Likewise.
9702 (op_name_standard): Likewise.
9703 (dump_subexp_body_standard): Likewise.
9704 * parse.c (operator_length_standard): Likewise.
9705 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
9706 UNOP_REINTERPRET_CAST.
9707 * gdbtypes.c (class_types_same_p): New function.
9708 (is_ancestor): Use it.
9709 (is_public_ancestor): New function.
9710 (is_unique_ancestor_worker): Likewise.
9711 (is_unique_ancestor): Likewise.
9712 * gdbtypes.h (class_types_same_p, is_public_ancestor)
9713 (is_unique_ancestor): Declare.
9714 * valops.c (value_reinterpret_cast): New function.
9715 (dynamic_cast_check_1): Likewise.
9716 (dynamic_cast_check_2): Likewise.
9717 (value_dynamic_cast): Likewise.
9718 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
9720 2010-01-18 Joel Brobecker <brobecker@adacore.com>
9722 Fix build failure when building without Python support.
9723 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
9726 2010-01-18 Joel Brobecker <brobecker@adacore.com>
9728 Use XVS field type instead of doing a parallel lookup.
9729 * ada-lang.c (ada_get_base_type): Follow the XVS field type
9730 if it is a reference type instead of doing a type lookup using
9733 2010-01-18 Joel Brobecker <brobecker@adacore.com>
9735 Trust PAD types instead of using PAD___XVS.
9736 * ada-lang.c (trust_pad_over_xvs): New static variable.
9737 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
9738 parallel XVS type, follow the XVS type instead of the PAD type.
9739 (unwrap_value): Make sure that there is no parallel XVE type
9740 before returning the value as is.
9741 (set_ada_list, show_ada_list): New static variables.
9742 (set_ada_command, show_ada_command): New functions.
9743 (_initialize_ada_language): Add new "set/show ada" prefix commands.
9744 Add new "set/show ada trust-PAD-over-XVS" setting.
9746 2010-01-18 Tom Tromey <tromey@redhat.com>
9747 Thiago Jung Bauermann <bauerman@br.ibm.com>
9749 Allow "source" to load python scripts.
9750 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
9751 * python/python.c (source_python_script): New function.
9752 * python/python.h (source_python_script): Add declaration.
9753 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
9754 (script_ext_off, script_ext_soft, script_ext_strict)
9755 (script_ext_enums, script_ext_mode): New static constants.
9756 (show_script_ext_mode, find_and_open_script): New functions.
9757 (source_script): Enhance to handle Python scripts.
9758 (init_cli_cmds): Add set/show script-extension commands.
9760 2010-01-16 Stan Shebs <stan@codesourcery.com>
9762 * tracepoint.h (struct trace_status): Use unsigned long long
9764 * tracepoint.c (trace_status_command): Fix printf directive.
9765 (trace_save_command): Check fwrite returns, fix printf directive.
9766 (trace_filename): New global.
9767 (tfile_open): Set it, check read returns.
9768 (tfile_close): Free trace_filename.
9769 (tfile_get_traceframe_address): Check read returns.
9770 (tfile_trace_find): Ditto.
9771 (tfile_fetch_registers): Ditto.
9772 (tfile_xfer_partial): Ditto.
9773 (tfile_get_trace_state_variable_value): Ditto.
9775 2010-01-15 Stan Shebs <stan@codesourcery.com>
9777 Add trace file support.
9778 * tracepoint.h (enum trace_stop_reason): New enum.
9779 (struct trace_status): New struct.
9780 (parse_trace_status): Declare.
9781 (struct uploaded_tp): Move here from remote.c,
9782 add fields for actions.
9783 (struct uploaded_tsv): New struct.
9784 * tracepoint.c (tfile_ops): New target vector.
9785 (trace_fd): New global.
9786 (tfile_open): New function.
9787 (tfile_close): New function.
9788 (tfile_files_info): New function.
9789 (tfile_get_trace_status): New function.
9790 (tfile_get_traceframe_address): New function.
9791 (tfile_trace_find): New function.
9792 (tfile_fetch_registers): New function.
9793 (tfile_xfer_partial): New function.
9794 (tfile_get_trace_state_variable_value): New function.
9795 (init_tfile_ops): New function.
9796 (_initialize_tracepoint): Call it, add tfile target.
9797 (trace_status): New global.
9798 (current_trace_status): New function.
9799 (trace_running_p): Remove, change all users to get from
9800 current_trace_status()->running.
9801 (get_trace_status): Remove.
9802 (trace_status_command): Call target_get_trace_status directly,
9803 report more detail including tracing stop reasons.
9804 (trace_find_command): Always allow tfind on a file.
9805 (trace_find_pc_command): Ditto.
9806 (trace_find_tracepoint_command): Ditto.
9807 (trace_find_line_command): Ditto.
9808 (trace_find_range_command): Ditto.
9809 (trace_find_outside_command): Ditto.
9810 (trace_frames_offset, cur_offset): Declare as off_t.
9811 (trace_regblock_size): Rename from reg_size, update users.
9812 (parse_trace_status): New function.
9813 (tfile_interp_line): New function.
9814 (disconnect_or_stop_tracing): Ensure current trace
9815 status before asking what to do.
9816 (stop_reason_names): New global.
9817 (trace_save_command): New command.
9818 (get_uploaded_tp): Move here from remote.c.
9819 (find_matching_tracepoint): Ditto.
9820 (merge_uploaded_tracepoints): New function.
9821 (parse_trace_status): Use stop_reason_names.
9822 (_initialize_tracepoint): Define tsave command.
9823 * target.h (target_ops): New fields to_save_trace_data,
9824 to_upload_tracepoints, to_upload_trace_state_variables,
9825 to_get_raw_trace_data, change to_get_trace_status
9826 to take a pointer to a status struct.
9827 (target_save_trace_data): New macro.
9828 (target_upload_tracepoints): New macro.
9829 (target_upload_trace_state_variables): New macro.
9830 (target_get_raw_trace_data): New macro.
9831 * target.c (update_current_target): Add new methods, change
9832 signature of to_get_trace_status.
9833 * remote.c (hex2bin): Make globally visible.
9835 (remote_download_trace_state_variable): Download name also.
9836 (remote_get_trace_status): Update parameter, use
9838 (remote_save_trace_data): New function.
9839 (remote_upload_tracepoints): New function.
9840 (remote_upload_trace_state_variables): New function.
9841 (remote_get_raw_trace_data): New function.
9842 (remote_start_remote): Use them.
9843 (_initialize_remote_ops): Add operations.
9844 * ax-gdb.c: Include breakpoint.h.
9845 * breakpoint.c (create_tracepoint_from_upload): Use
9846 break_command_really, return tracepoint, warn about unimplemented
9848 * NEWS: Mention trace file addition.
9850 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9852 Fix compilation warning on gcc-3.4.
9853 * exec.c (print_section_info): Move the `displacement' variable
9854 initialization to its declaration.
9856 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9858 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
9861 2010-01-15 Eric Botcazou <botcazou@adacore.com>
9863 "info tasks" broken by typedefs in ATCB type definitions.
9864 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
9865 ada_check_typedef before retrieving the length of the type for
9868 2010-01-15 Joel Brobecker <brobecker@adacore.com>
9870 Do not use name-based lookup for unconstrained packed arrays.
9871 * ada-lang.c (find_parallel_type_by_descriptive_type):
9872 Limit the fallback to name-based lookups to the case where
9873 the type is a constrained packed array.
9875 2010-01-15 Joel Brobecker <brobecker@adacore.com>
9877 Enhance gdb-gdb.py to handle main_type.type_specific.
9878 * gdb-gdb.py: Print the type-specific part of struct main_type.
9880 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9882 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
9883 * configure: Regenerate.
9884 * config.in: Regenerate.
9885 * utils.c: Include sys/resource.h.
9886 (dump_core, can_dump_core): New.
9887 (internal_vproblem): Update the comment. Check can_dump_core while
9888 setting dump_core_p. Replace two abort calls by dump_core calls.
9890 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9891 Eli Zaretskii <eliz@gnu.org>
9893 * NEWS: Document the PIE support.
9895 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9897 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
9898 (check_is_pie_binary, _initialize_linux_tdep): Remove.
9900 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9902 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
9903 Replace exec_entry_point call by bfd_get_start_address.
9905 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9907 Support Valgrind attachments broken by the PIE support.
9908 * auxv.c: Include gdbcore.h.
9909 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
9910 parameters ops, object and annex. Remove their assertions.
9911 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
9912 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
9913 (memory_xfer_auxv): ... here.
9914 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
9916 * procfs.c (procfs_xfer_partial): Likewise.
9917 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
9918 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
9919 (svr4_solib_create_inferior_hook): Conditionalize the
9920 svr4_relocate_main_executable call.
9922 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9924 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
9925 target_section. Find SECT in current_target_sections, gdb_assert it.
9926 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
9928 * symtab.c (lookup_objfile_from_block): Return the binary file instead
9929 of separate debug info file.
9931 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9933 Support PIEs with no symfile_objfile.
9934 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
9935 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
9937 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9939 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
9941 (svr4_static_exec_displacement): ... a new function.
9942 (svr4_exec_displacement): New function.
9943 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
9944 new_offsets using alloca now. Remove variable old_chain and changed.
9945 Call objfile_relocate unconditionally now.
9947 2010-01-14 Doug Evans <dje@google.com>
9949 * gdbtypes.c (arch_flags_type): Fix comment.
9950 * gdbtypes.h (arch_composite_type): Fix comment.
9952 2009-01-14 Tristan Gingold <gingold@adacore.com>
9954 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
9955 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
9956 to symbol_file_add_from_bfd. Add OSO as separate objfile.
9957 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
9958 macho_add_oso_symfile.
9959 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
9961 2010-01-14 Joel Brobecker <brobecker@adacore.com>
9963 Tru64: Dead threads are never deleted.
9964 * dec-thread.c (dec_thread_ptid_is_alive): New function.
9965 (dec_thread_count_gdb_threads): Fix counter increment.
9966 (dec_thread_add_gdb_thread): Fix *listp increment.
9967 (resync_thread_list): Fix bug in deletion of dead threads that
9968 caused all threads to be deleted, instead of just the dead ones.
9970 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
9974 * python/python-internal.h: Add lazy_string_object_type
9976 (create_lazy_string_object, gdbpy_initialize_lazy_string)
9977 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
9978 * python/py-value.c (valpy_lazy_string): New function.
9979 (convert_value_from_python): Add lazy string conversion.
9980 * python/py-prettyprint.c (pretty_print_one_value): Check if
9981 return is also a lazy string.
9982 (print_string_repr): Add lazy string printing branch.
9983 (print_children): Likewise.
9984 * python/py-lazy-string.c: New file. Implement lazy strings.
9985 * python/python.c (_initialize_python): Call
9986 gdbpy_initialize_lazy_string.
9987 * varobj.c (value_get_print_value): Add lazy string printing
9988 branch. Account for encoding.
9989 * c-lang.c (c_printstr): Account for new encoding argument. If
9990 encoding is NULL, find encoding suited for type, otherwise use
9992 * language.h (language_defn): Add encoding argument.
9993 (LA_PRINT_STRING): Likewise.
9994 * language.c (unk_lang_printstr): Update to reflect new encoding
9995 argument to language_defn.
9996 * ada-lang.h (ada_printstr): Likewise.
9997 * c-lang.h (c_printstr): Likewise.
9998 * p-lang.h (pascal_printstr);
9999 * f-lang.c (f_printstr): Likewise.
10000 * m2-lang.c (m2_printstr): Likewise.
10001 * objc-lang.c (objc_printstr): Likewise.
10002 * p-lang.c (pascal_printstr): Likewise.
10003 * scm-lang.c (scm_printstr): Likewise.
10004 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
10006 * ada-valprint.c (ada_printstr): Likewise.
10007 * f-valprint.c (f_val_print): Likewise
10008 * m2-valprint.c (m2_val_print): Likewise.
10009 * p-valprint.c (pascal_val_print): Likewise.
10010 * expprint.c (print_subexp_standard): Likewise.
10011 * valprint.c (val_print_string): Likewise.
10012 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
10013 (SUBDIR_PYTHON_SRCS): Likewise.
10014 (py-lazy-string.o): New rule.
10016 2010-01-13 Doug Evans <dje@google.com>
10018 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
10019 uninitialized" warning from gcc on local `tree'.
10021 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
10023 Implement core awareness.
10025 * bcache.c (compare_ints): Remove
10026 (print_percentage): Use compare_positive_ints.
10027 * defs.h (compare_positive_ints): Declare.
10028 * linux-nat.h (struct lin_lwp): New field core.
10029 (linux_nat_core_of_thread_1): Declare.
10030 * linux-nat.c (add_lwp): Init the 'core' field.
10031 (linux_nat_wait_1): Record the core.
10032 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
10033 (linux_nat_add_target): Register the above.
10034 * linux-thread-db.c (update_thread_core): New.
10035 (thread_db_find_new_threads): Update core information for
10037 * remote.c (struct private_thread_info): New.
10038 (free_private_thread_info, demand_private_info): New.
10039 (PACKET_qXfer_threads, use_osdata_threads): New.
10040 (struct thread_item, threads_parsing_context
10041 (start_thread, end_thread, thread_attributes)
10042 (thread_children, threads_children, threads_elements): New.
10043 (remote_threads_info): Try qXfer:threads before anything
10045 (remote_protocol_packets): Register qXfer:threads.
10046 (remote_open_1): Init use_osdata_threads.
10047 (struct stop_reply): New field 'core'.
10048 (remote_parse_stop_reply): Parse core number.
10049 (process_stop_reply): Record core number.
10050 (remote_xfer_partial): Handle qXfer:threads.
10051 (remote_core_of_thread): New.
10052 (init_remote_ops): Register remote_core_of_thread.
10053 (_initialize_remote): Register qXfer:read.
10054 * target.c (target_core_of_thread): New
10055 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
10056 (struct target_ops): New field to_core_of_threads.
10057 (target_core_of_thread): Declare.
10058 * gdbthread.h (struct thread_info): New field private_dtor.
10059 * thread.c (print_thread_info): Report the core.
10060 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
10061 * utils.c (compare_positive_ints): New.
10062 * features/threads.dtd: New.
10063 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
10064 * mi/mi-main.c (struct collect_cores_data, collect_cores)
10065 (do_nothing, free_vector_of_osdata_items)
10066 (splay_tree_int_comparator, free_splay_tree): New.
10067 (print_one_inferior_data): Implemented printing of selected
10068 inferiors. Collect and print cores.
10069 (output_cores): New.
10070 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
10071 thread groups together with --available.
10073 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10075 * configure: Regenerate (for _STRUCTURED_PROC).
10077 2010-01-12 Joel Brobecker <brobecker@adacore.com>
10079 Delete dead function.
10080 * ada-lang.c (extract_string): Delete. No longer used.
10082 2010-01-12 Joel Brobecker <brobecker@adacore.com>
10084 Fix -Wunused warning in dec-thread.c.
10085 * dec-thread.c (dec_thread_count_gdb_threads)
10086 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
10088 2010-01-12 Joel Brobecker <brobecker@adacore.com>
10090 * ada-valprint.c (ada_print_floating): Remove trailing space.
10092 2010-01-12 Joel Brobecker <brobecker@adacore.com>
10094 Add support for DW_AT_GNAT_descriptive_type.
10095 * gdbtypes.h (enum type_specific_kind): New enum.
10096 (struct main_type) [type_specific_field]: New component.
10097 [type_specific]: Add new component "gnat_stuff".
10098 (struct gnat_aux_type): New type.
10099 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
10100 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
10101 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
10102 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
10103 (TYPE_SPECIFIC_FIELD): New macros.
10104 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
10105 type does not hold any cplus-specific data.
10106 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
10107 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
10108 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
10109 cplus-specific data.
10110 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
10111 Set new component TYPE_SPECIFIC_FIELD (type).
10112 (gnat_aux_default): New constant.
10113 (allocate_gnat_aux_type): New function.
10114 (init_type): Add initialization the type-specific stuff for
10115 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
10116 (print_gnat_stuff): New function.
10117 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
10118 specific data. Adjust code that prints the contents of the
10119 type-specific union using the TYPE_SPECIFIC_FIELD value.
10120 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
10121 the type cplus stuff for Ada types.
10122 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
10123 Error out if these routines are called with an Ada type.
10124 (read_structure_type, read_array_type, read_subrange_type):
10125 Add call to set_descriptive_type.
10126 (set_die_type): Initialize the gnat-specific data if necessary.
10127 (need_gnat_info, die_descriptive_type, set_descriptive_type):
10129 * ada-lang.c (decode_constrained_packed_array_type): Use
10130 decode_constrained_packed_array_type instead of doing a standard
10131 lookup to locate a parallel type.
10132 (find_parallel_type_by_descriptive_type): New function.
10133 (ada_find_parallel_type_with_name): New function.
10134 (ada_find_parallel_type): Reimplement using
10135 ada_find_parallel_type_with_name.
10136 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
10137 to check if type has a cplus stuff.
10138 * linespec.c (total_number_of_methods): Likewise.
10139 * mdebugread.c (new_type): Likewise.
10141 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10143 * NEWS: Document the 0b binary number prefix parsing.
10145 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10147 * objfiles.c (objfile_relocate1): Change the return type to int.
10148 Describe the new return value. Return non-zero if data changed.
10149 (objfile_relocate): New variable changed. Set it. Call
10150 breakpoint_re_set depending on CHANGED.
10152 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10154 Implement binary numbers parsing.
10155 * c-exp.y (parse_number): New case 'b' and 'B'.
10157 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10158 Tristan Gingold <gingold@adacore.com>
10160 * solib.c (info_sharedlibrary_command): Replace
10161 objfile_has_partial_symbols and objfile_has_full_symbols calls by
10162 objfile_has_symbols.
10164 2010-01-10 Joel Brobecker <brobecker@adacore.com>
10166 * NEWS: Document the improvements made to the mips-irix port.
10168 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10170 Fix the documentation of valprint.c:value_print.
10171 * valprint.c (value_print): Update the function description to
10172 mention that the syntax of the output follows the current_language,
10175 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10177 Fix displacement of separate debug info files.
10178 * objfiles.c (objfile_relocate): Rename to ...
10179 (objfile_relocate1): ... here and make it static. Extend the comment.
10180 (objfile_relocate): New function.
10181 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
10182 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
10183 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
10184 allocated using alloca.
10185 * symfile.c (copy_section_addr_info): Remove.
10186 (build_section_addr_info_from_objfile): Make it global. New variables
10187 addr_bit and mask, use them.
10188 * symfile.h (build_section_addr_info_from_objfile): New prototype.
10189 (copy_section_addr_info): Remove.
10191 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10193 Signal unwinder for mips-irix N32.
10194 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
10196 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
10197 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
10198 (SIGCONTEXT_LO_OFF): New macros.
10199 (mips_irix_n32_tramp_frame_init): New function.
10200 (mips_irix_n32_tramp_frame): New static constant.
10201 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
10203 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10205 Breakpoint in shared library does not work on mips-irix.
10206 * procfs.c: #include "observer.h".
10207 (procfs_inferior_created): New function, moving here the code
10208 which unsets the syssgi syscall-exit notifications.
10209 (procfs_create_inferior): Remove the code which unsets the syssgi
10210 syscall-exit notifications. It is too early to do this here.
10211 (_initialize_procfs): Attach the procfs_inferior_created observer.
10213 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10215 Wrong return convention for arrays (mips-irix).
10216 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
10217 128 bits or smaller are returned the same way as structs
10218 and unions of the the same size.
10220 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10222 Cannot set the PC on mips-irix.
10223 * irix5-nat.c (fill_gregset): Check regno against the raw PC
10224 register number, no the cooked one.
10226 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10228 Error while loading core file on mips-irix.
10229 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
10230 if debugging from a core file.
10232 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10234 GDB hangs when attaching to process on mips-irix.
10235 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
10236 attaching to a process.
10238 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10240 Use the correct breakpoint instruction on mips-irix.
10241 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
10242 containing the correct breakpoint instruction to use on mips-irix.
10243 Use it when the osabi is GDB_OSABI_IRIX.
10245 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10247 -Wunused warning in procfs.c (mips-irix only).
10248 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
10249 throughout instead of using praddset and prdelset respectively.
10251 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10253 GDB crash while stepping into function.
10254 * infrun.c (handle_inferior_event): Refetch the current frame
10255 after handling what.main_action, in case that pointer became
10258 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10260 Fix build failure of solaris-hosted cross debuggers.
10261 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
10263 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
10265 Fix build failure on sparc-solaris.
10266 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
10268 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10270 Move some symfile code into subroutines.
10271 * symfile.h (relative_addr_info_to_section_offsets)
10272 (addr_info_make_relative): New prototypes.
10273 * symfile.c (default_symfile_offsets): Move a part to ...
10274 (relative_addr_info_to_section_offsets): ... this new function.
10275 (default_symfile_offsets): Call it.
10276 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
10278 (addr_info_make_relative): ... this new function.
10280 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10282 Add from_tty to solib_create_inferior_hook.
10283 * infcmd.c (post_create_inferior): Move solib_add after
10284 solib_create_inferior_hook. Pass from_tty to
10285 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
10286 0 from_tty and comment why.
10287 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
10288 * linux-nat.c (linux_child_follow_fork): Likewise.
10289 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
10290 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
10292 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
10293 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
10294 * solib-null.c (null_solib_create_inferior_hook): Likewise.
10295 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
10296 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
10297 * solib-som.c (som_solib_create_inferior_hook): Likewise.
10298 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
10299 Pass it to svr4_so_ops.solib_create_inferior_hook.
10300 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
10302 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
10304 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
10306 * solib-target.c (solib_target_solib_create_inferior_hook): New
10307 parameter from_tty.
10308 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
10309 it to ops->solib_create_inferior_hook.
10310 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
10311 Move solib_add after solib_create_inferior_hook, call it now with
10312 from_tty as 0. New comment there.
10313 * solib.h (solib_create_inferior_hook): New parameter from_tty.
10314 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
10317 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
10319 Fix multiexec race.
10320 * infrun.c (handle_inferior_event): Use get_thread_regcache
10321 with events ptid, not get_current_regcache.
10323 2009-01-08 Joel Brobecker <brobecker@adacore.com>
10325 GDB crash with empty executable name (MinGW).
10326 * source.c (openp): Add assert that parameter string is not NULL.
10327 if parameter string is an empty string, then return with a failure
10330 2009-01-08 Joel Brobecker <brobecker@adacore.com>
10332 Get rid of support for VAX Floats.
10333 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
10334 (ada_vax_float_print_function): Delete.
10335 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
10336 (ada_vax_float_print_function): Delete.
10337 * ada-typeprint.c (print_vax_floating_point_type): Delete.
10338 (ada_print_type): Remove support for VAX floats.
10339 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
10341 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10343 * stabsread.c (read_args): Handle zero arguments.
10345 2009-01-08 Joel Brobecker <brobecker@adacore.com>
10347 Cannot find in-tree libiconv.a after reconfigure.
10348 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
10349 that we can use, then cache the path to this archive.
10350 * configure: Regenerate.
10352 2010-01-07 Stan Shebs <stan@codesourcery.com>
10354 Make tracepoint operations go through target vector.
10355 * target.h (enum trace_find_type): New enum.
10356 (struct target_ops): New fields to_trace_init,
10357 to_download_tracepoint, to_download_trace_state_variable,
10358 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
10359 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
10360 to_set_disconnected_tracing.
10361 (target_trace_init): New macro.
10362 (target_download_tracepoint): New macro.
10363 (target_download_trace_state_variable): New macro.
10364 (target_trace_start): New macro.
10365 (target_trace_set_readonly_regions): New macro.
10366 (target_get_trace_status): New macro.
10367 (target_trace_stop): New macro.
10368 (target_trace_find): New macro.
10369 (target_get_trace_state_variable_value): New macro.
10370 (target_set_disconnected_tracing): New macro.
10371 * target.c (update_current_target): Inherit and set defaults for
10372 tracepoint operations.
10373 * tracepoint.c (default_collect): Make globally visible.
10374 (target_is_remote): Remove, along with all calls.
10375 (tvariables_info): Call target_get_trace_state_variable_value.
10376 (remote_set_transparent_ranges): Remove.
10377 (trace_start_command): Call target_trace_init,
10378 target_download_tracepoint, etc.
10379 (download_tracepoint): Remove.
10380 (trace_stop_command): Simplify.
10381 (stop_tracing): Call target_trace_stop.
10382 (get_trace_status): Call target_get_trace_status.
10383 (trace_status_command): Add case for targets that cannot trace.
10384 (finish_tfind_command): Change to take numerical arguments, call
10386 (trace_find_command): Update call to finish_tfind_command.
10387 (trace_find_pc_command): Ditto.
10388 (trace_find_tracepoint_command): Ditto.
10389 (trace_find_line_command): Ditto.
10390 (trace_find_range_command): Ditto.
10391 (trace_find_outside_command): Ditto.
10392 (set_disconnected_tracing_value): Call
10393 target_set_disconnected_tracing.
10394 * remote.c: Add protocol encoding bits from tracepoint.c.
10395 (trace_error): Move from tracepoint.c.
10396 (remote_get_noisy_reply): Ditto.
10397 (free_actions_list_cleanup_wrapper): Ditto.
10398 (free_actions_list): Ditto.
10399 (remote_trace_init): New function.
10400 (remote_download_tracepoint): New function.
10401 (remote_download_trace_state_variable): New function.
10402 (remote_trace_set_readonly_regions): New function.
10403 (remote_trace_start): New function.
10404 (remote_get_trace_status): New function.
10405 (remote_trace_stop): New function.
10406 (remote_trace_find): New function.
10407 (remote_download_trace_state_variable): New function.
10408 (remote_set_disconnected_tracing): New function.
10409 (init_remote_ops): Add tracepoint operations.
10411 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
10413 2010-01-07 Tristan Gingold <gingold@adacore.com>
10415 * symfile.c (build_section_addr_info_from_objfile): New function.
10416 (symbol_file_add_separate): Don't use offsets from objfile but
10417 built an addr info.
10419 2010-01-06 Stan Shebs <stan@codesourcery.com>
10421 Support disconnected tracing.
10422 * infcmd.c (detach_command): Ask whether to stop tracing.
10423 * cli/cli-cmds.c (quit_command): Ditto.
10424 * breakpoint.h (struct breakpoint): New field number_on_target.
10425 * breakpoint.c (create_tracepoint_from_upload): New function.
10426 (get_tracepoint_by_number_on_target): New function.
10427 * remote.c (struct remote): New field disconnected_tracing.
10428 (remote_disconnected_tracing_feature): New function.
10429 (remote_protocol_features): Add DisconnectedTracing.
10430 (struct uploaded_tp): New struct.
10431 (uploaded_tps): New global.
10432 (get_uploaded_tp): New function.
10433 (find_matching_tracepoint): New function.
10434 (remote_get_tracing_state): New function.
10435 (remote_start_remote): Call it.
10436 * tracepoint.c (disconnected_tracing): New global.
10437 (trace_start_command): Initialize number_on_target.
10438 (stop_tracing): New function, split out from...
10439 (trace_stop_command): Call stop_tracing.
10440 (get_trace_status): New function, split out from...
10441 (trace_status_command): Call get_trace_status, add info on
10442 disconnection behavior.
10443 (disconnect_or_stop_tracing): New function.
10444 (finish_tfind_command): Translate from number on target.
10445 (trace_find_tracepoint_command): Translate to number on target.
10446 (send_disconnected_tracing_value): New function.
10447 (set_disconnected_tracing): New function.
10448 (_initialize_tracepoint): Add disconnected-tracing variable.
10449 * NEWS: Mention disconnected tracing.
10451 2010-01-06 Tristan Gingold <gingold@adacore.com>
10453 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
10454 parameter to main_objfile. Iterate on all separate debug objfiles.
10455 * symfile.h (symbol_file_add_separate)
10456 (find_separate_debug_file_by_debuglink): Remove parameter names.
10457 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
10458 (reread_symbols): Use free_objfile_separate_debug.
10459 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
10461 (objfile_separate_debug_iterate, add_separate_debug_objfile)
10462 (free_objfile_separate_debug): New prototypes.
10463 * objfiles.c (objfile_separate_debug_iterate): New function.
10464 (add_separate_debug_objfile, free_objfile_separate_debug): New
10466 (free_objfile): Use free_objfile_separate_debug. Adjust for
10467 multiple separate debug objfile.
10468 (objfile_has_symbols): Adjust comment. Iterate on all separate
10470 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
10472 (lookup_minimal_symbol_text): Ditto.
10473 (lookup_minimal_symbol_by_pc_name): Ditto.
10474 (lookup_minimal_symbol_solib_trampoline): Ditto.
10475 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
10478 2010-01-05 Stan Shebs <stan@codesourcery.com>
10480 Add fast tracepoints.
10481 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
10482 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
10483 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
10484 * breakpoint.c (tracepoint_type): New function.
10485 (ALL_TRACEPOINTS): Use it.
10486 (should_be_inserted): Ditto.
10487 (bpstat_check_location): Ditto.
10488 (print_one_breakpoint_location): Ditto.
10489 (user_settable_breakpoint): Ditto.
10490 (set_breakpoint_location_function): Ditto.
10491 (disable_breakpoints_in_shlibs): Ditto.
10492 (delete_trace_command): Ditto.
10493 (print_it_typical): Add bp_fast_tracepoint case.
10494 (bpstat_what): Ditto.
10495 (print_one_breakpoint_location): Ditto.
10496 (allocate_bp_location): Ditto.
10498 (breakpoint_re_set_one): Ditto.
10499 (disable_command): Ditto.
10500 (enable_command): Ditto.
10501 (check_fast_tracepoint_sals): New function.
10502 (break_command_really): Call it.
10503 (ftrace_command): New function.
10504 (_initialize_breakpoint): Add ftrace command.
10505 * gdbarch.sh (fast_tracepoint_valid_at): New.
10506 * gdbarch.h, gdbarch.c: Regenerate.
10507 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
10508 (i386_gdbarch_init): Use it.
10509 * remote.c (struct remote_state): New field fast_tracepoints.
10510 (PACKET_FastTracepoints): New packet config type.
10511 (remote_fast_tracepoint_feature): New function.
10512 (remote_protocol_features): Add FastTracepoints.
10513 (remote_supports_fast_tracepoints): New function.
10514 (_initialize_remote): Add FastTracepoints.
10515 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
10516 * NEWS: Mention fast tracepoints.
10518 2010-01-06 Joel Brobecker <brobecker@adacore.com>
10520 * gdb-gdb.py: New file.
10522 2010-01-05 Michael Snyder <msnyder@vmware.com>
10524 * infrun.c (handle_inferior_event): Fix typo in comment.
10526 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10528 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
10530 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10532 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
10534 (s390-linux32-expedite): Define.
10535 (s390-linux64-expedite): Define.
10536 (s390x-linux64-expedite): Define.
10537 * features/s390-acr.xml: New file.
10538 * features/s390-fpr.xml: New file.
10539 * features/s390-core32.xml: New file.
10540 * features/s390-core64.xml: New file.
10541 * features/s390x-core64.xml: New file.
10542 * features/s390-linux32.xml: New file.
10543 * features/s390-linux64.xml: New file.
10544 * features/s390x-linux64.xml: New file.
10545 * features/s390-linux32.c: New generated file.
10546 * features/s390-linux64.c: New generated file.
10547 * features/s390x-linux64.c: New generated file.
10549 * regformats/s390-linux32.dat: New generated file.
10550 * regformats/s390-linux64.dat: New generated file.
10551 * regformats/s390x-linux64.dat: New generated file.
10552 * regformats/reg-s390.dat: Remove.
10553 * regformats/reg-s390x.dat: Remove.
10555 * s390-nat.c: Include "auxv.h" and <elf.h>.
10556 (HWCAP_S390_HIGH_GPRS): Define if undefined.
10557 (s390_target_wordsize): New function.
10558 (s390_auxv_parse): Likewise.
10559 (s390_get_hwcap): Likewise.
10560 (s390_read_description): Likewise.
10561 (_initialize_s390_nat): Install s390_auxv_parse and
10562 s390_read_description.
10564 * s390-tdep.c: Include "features/s390-linux32.c",
10565 "features/s390-linux64.c", and "features/s390x-linux64.c".
10566 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
10567 (s390_register_call_saved): New function.
10568 (s390_register_name): Remove.
10569 (s390_register_type): Remove.
10570 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
10571 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
10572 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
10573 (s390_pseudo_register_name): New function.
10574 (s390_pseudo_register_type): New function.
10575 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
10576 Handle full GPR pesudos and varying pseudo register numbers.
10577 (s390_pseudo_register_write): Likewise
10578 (s390x_pseudo_register_read): Remove.
10579 (s390x_pseudo_register_write): Likewise.
10580 (s390_register_group): Remove.
10581 (s390_pseudo_register_group): New function.
10582 (s390_regmap_gregset): Add GPR upper halves.
10583 (s390x_regmap_gregset): Likewise.
10584 (s390_regmap_fpregset): Likewise.
10585 (s390_regmap_upper): New global variable.
10586 (s390_upper_regset): New global variable.
10587 (s390_upper_regset_sections): New global variable.
10588 (s390_regset_from_core_section): Handle GPR upper halves.
10589 (s390_core_read_description): New function.
10590 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
10591 register information. Handle varying pseudo register numbers.
10592 (s390_backchain_frame_unwind_cache): Likewise.
10593 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
10594 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
10595 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
10596 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
10597 Handle varying pseudo register numbers.
10598 (s390_unwind_pc): Handle varying pseudo register numbers.
10599 (s390_dwarf2_prev_register): New function.
10600 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
10601 register information. Handle varying pseudo register numbers.
10602 Install s390_dwarf2_prev_register to unwind full GPRs.
10603 (s390_gdbarch_init): Handle target descriptions. Assign varying
10604 pseudo register numbers. Install s390_adjust_frame_regnum.
10605 (_initialize_s390_tdep): Initialize target descriptions.
10607 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
10608 (S390_NUM_REGS): Redefine to include upper half registers.
10609 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
10610 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
10611 (tdesc_s390_linux32): Add declaration.
10612 (tdesc_s390_linux64): Likewise.
10613 (tdesc_s390x_linux64): Likewise.
10615 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10617 * regset.h (struct core_regset_section): Add HUMAN_NAME.
10618 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
10619 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
10620 (ppc_linux_vmx_regset_sections): Likewise.
10621 (ppc_linux_fp_regset_sections): Likewise.
10623 * corelow.c (get_core_register_section): Constify arguments.
10624 (get_core_registers): Use gdbarch_core_regset_sections instead
10625 of hard-coded platform-specific register section names.
10627 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10629 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
10630 a register, assume the least-significant part is used.
10631 (write_pieced_value): Likewise.
10633 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10635 * printcmd.c: Include "arch-utils.h".
10636 (do_one_display): Re-parse expression if current architecture changed.
10638 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10639 Joel Brobecker <brobecker@adacore.com>
10641 * gdbtypes.c (check_typedef): New comment on type length.
10642 * value.c (allocate_value_lazy): Remove the unused atype variable. New
10643 comment on type length.
10644 (value_primitive_field): Keep the original TYPE value, new comment.
10646 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10648 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
10649 p_start. Change != comparisons to > and < comparisons.
10651 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10653 * cli/cli-script.c (process_next_line): Check P2 overrun.
10655 2009-01-01 Joel Brobecker <brobecker@adacore.com>
10657 Update the copyright hearder to add year 2010 for most GDB files.
10659 2009-01-01 Joel Brobecker <brobecker@adacore.com>
10661 Fix build failure in inf-ptrace.c.
10662 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
10664 2010-01-01 Joel Brobecker <brobecker@adacore.com>
10666 * top.c (print_gdb_version): Update copyright year.
10668 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
10670 Fix break *FUN'address thread NUM.
10671 * ada-lex.l (task): Expand rule to also match the thread keyword.
10673 2010-01-01 Joel Brobecker <brobecker@adacore.com>
10675 Fix break *FUN'address task NUM.
10676 * ada-lex.l (task): New rule.
10677 * ada-lang.c (valid_task_id): Make sure the Ada task list has
10678 been built before using it.
10680 For older changes see ChangeLog-2009.
10686 version-control: never