1 2010-10-15 Tom Tromey <tromey@redhat.com>
4 * varobj.c (value_get_print_value): Use val_print_string to print
6 * python/py-prettyprint.c (print_string_repr): Use
7 val_print_string to print lazy strings. Fix cleanup logic.
8 (print_children): Likewise.
9 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
10 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
11 Change return type to 'void', add 'addr' argument.
12 * value.h (val_print_string): Update.
13 * valprint.c (val_print_string): Add 'encoding' argument.
14 * printcmd.c (print_formatted): Update.
15 * p-valprint.c (pascal_val_print): Update.
16 * m2-valprint.c (print_unpacked_pointer): Update.
17 (m2_print_array_contents): Likewise.
18 * jv-valprint.c (java_value_print): Update.
19 * f-valprint.c (f_val_print): Update.
20 * c-valprint.c (c_val_print): Update.
21 * auxv.c (fprint_target_auxv): Update.
23 2010-10-15 Doug Evans <dje@google.com>
24 Jan Kratochvil <jan.kratochvil@redhat.com>
27 * gdbtypes.c (check_typedef): Clean up function comment.
28 Keep track of instance flags as we strip typedefs and create a new
29 type to preserve them if necessary.
30 * gdbtypes.h (type) <instance_flags>: Extend the comment.
32 2010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
34 * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
36 2010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
38 * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
39 * gdbtypes.c (rank_one_type): Move type comparison code out of here
41 (types_equal): ...here. And changed it as follows:
42 Outside of typedefs type must be of the same TYPE_CODE.
43 When compairing two pointers or references they are equal if their
45 Correct pointer conversions.
47 2010-10-14 Pierre Muller <muller@ics.u-strasbg.fr>
49 * p-lang.c (is_pascal_string_type): Avoid crashes on structures
50 having fields without names.
52 2010-10-13 Tom Tromey <tromey@redhat.com>
54 * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
56 2010-10-13 Doug Evans <dje@google.com>
58 New python module gdb.types.
60 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
61 * python/lib/gdb/types.py: New file.
63 * c-typeprint.c: Whitespace cleanup.
64 (cp_type_print_method_args): Remove unnecessary forward decl.
65 (cp_type_print_derivation_info): Ditto.
66 (c_type_print_varspec_prefix): Mark as static at definition.
67 (c_type_print_modifier): Fix arg descriptions.
69 2010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
71 * python/py-breakpoint.c (bppy_set_condition): New comment.
72 * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
73 failed PyUnicode_Decode.
74 (cmdpy_completer): Skip element for failed
75 python_string_to_host_string.
76 (cmdpy_init): Return -1 on failed python_string_to_host_string.
77 * python/py-frame.c (frapy_read_var): Extend the function comment.
78 * python/py-function.c (fnpy_init): Return -1 on failed
79 python_string_to_host_string.
80 * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
82 (infpy_search_memory): Extend the function comment. Remove the
83 PyErr_SetString call on already set error state.
84 * python/py-param.c (set_parameter_value): Extend the function
85 comment. Return -1 on failed python_string_to_host_string, twice.
86 (set_attr): Extend the function comment.
87 (compute_enum_values): Extend the function comment. New variable
88 back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
89 failed python_string_to_host_string.
90 (get_doc_string): Call gdbpy_print_stack on failed
91 python_string_to_host_string.
92 (parmpy_init): Extend the function comment.
93 * python/py-prettyprint.c (pretty_print_one_value): Likewise.
94 (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
95 failed python_string_to_host_string.
96 * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
97 (valpy_binop, valpy_richcompare): Extend the function comment.
99 (struct python_env) <error_type, error_value, error_traceback>: New
101 (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
102 (ensure_python_env): Call PyErr_Fetch.
103 * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
104 failed convert_value_from_python.
105 (value_get_print_value): Call gdbpy_print_stack on failed
106 python_string_to_target_python_string.
108 2010-10-12 Tom Tromey <tromey@redhat.com>
110 * python/py-prettyprint.c (search_pp_list): Fix error checking.
112 2010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
114 * gdbtypes.c (do_is_ancestor): New function.
115 (is_ancestor): Use do_is_ancestor.
116 (is_public_ancestor): Use do_is_ancestor.
118 2010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
120 * ser-go32.c (struct dos_ops): Add missing fdopen field.
122 2010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
124 * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
126 2010-10-11 Doug Evans <dje@google.com>
128 * c-typeprint.c (c_type_print_modifier): Add note that this prints
129 the address space id too.
131 2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
133 Fix attaching to re-prelinked executables on ppc64.
134 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
135 initialize it, try to adjust FILESZ field by it.
137 2010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
139 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
140 messages if info_verbose.
142 2010-10-08 Ken Werner <ken.werner@de.ibm.com>
144 * valops.c (value_cast): Handle vector types.
145 * valarith.c (value_binop): Widen scalar to vector if appropriate.
147 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
149 * arm-tdep.c (thumb_expand_immediate): New function.
150 (thumb_instruction_changes_pc): Likewise.
151 (thumb2_instruction_changes_pc): Likewise.
152 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
153 prologue parsing. Improved support for optimized code.
154 (thumb_scan_prologue): Do not reply on line-number information,
155 use same heuristics as arm_scan_prologue insead.
156 (skip_prologue_function): Accept functions
157 "__tls_get_addr" and "__aeabi_read_tp".
159 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
160 Daniel Jacobowitz <dan@codesourcery.com>
162 * arm-tdep.c (thumb_in_function_epilogue_p)
163 (arm_in_function_epilogue_p): New.
164 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
165 gdbarch_in_function_epilogue_p callback.
167 2010-10-07 Doug Evans <dje@google.com>
169 * cc-with-index.sh (output_file): Default to a.out.
171 * dwarf2read.c (mapped_index): Rename member index_table to
172 symbol_table and index_table_slots to symbol_table_slots.
174 (create_symbol_hash_table): Renamed from create_index_table.
176 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
177 (write_hash_table): Rename local index_table to symbol_hash_table.
179 * addrmap.h (addrmap_foreach_fn): New typedef.
180 (addrmap_foreach): Declare.
181 * addrmap.c (struct addrmap_funcs): New member foreach.
182 (addrmap_foreach): New function.
183 (addrmap_fixed_foreach): New function.
184 (addrmap_fixed_funcs): Update.
185 (struct mutable_foreach_data): New struct.
186 (addrmap_mutable_foreach_worker): New function.
187 (addrmap_mutable_foreach): New function.
188 (addrmap_mutable_funcs): Update.
190 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
192 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
195 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
197 * ada-lang.c (full_match): Declare.
198 (ada_match_name): Rename to match_name (we should avoid prefixing static
199 symbols with "ada_").
200 (match_name): New name for ada_match_name.
201 (struct ada_psym_data): Remove and replace with...
202 (struct match_data): User data for map_matching_symbols.
203 (ada_add_psyms): Remove.
204 (aux_add_nonlocal_symbols): New function, used as callback for
205 map_matching_symbols.
206 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
208 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
209 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
210 Rework to use map_matching_symbols instead of map_ada_symtabs.
211 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
212 * psymtab.c: Include dependency on dictionary.h.
213 (match_partial_symbol): New function.
214 (ada_lookup_partial_symbol): Remove.
215 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
216 (map_matching_symbols_psymtab): New function.
217 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
218 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
220 2010-10-06 Paul Hilfinger <hilfinger@adacore.com>
222 * ada-lang.c (ada_match_name): Use new API for wild_match.
223 (wild_match): Change API to be consistent with that of strcmp_iw;
224 return 0 for a match, and switch operand order.
225 (full_match): New function.
226 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
227 matching to allow use of hashing.
228 * dictionary.c (struct dict_vector): Generalize iter_name_first,
229 iter_name_next ot iter_match_first, iter_match_next.
230 (iter_name_first_hashed): Replace with iter_match_first_hashed.
231 (iter_name_next_hashed): Replace with iter_match_next_hashed.
232 (iter_name_first_linear): Replace with iter_match_first_linear.
233 (iter_name_next_linear): Replace with iter_match_next_linear.
234 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
235 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
236 (dict_iter_match_first): New function.
237 (dict_iter_match_next): New function.
238 (dict_hash): New function.
239 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
240 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
242 2010-10-06 Doug Evans <dje@google.com>
244 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
246 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
248 * dwarf2read.c (read_tag_const_type): Handle const arrays.
250 2010-10-06 Doug Evans <dje@google.com>
252 * Makefile.in (REQUIRED_SUBDIRS): New var.
253 (subdir_do): Verify required subdir Makefiles exist.
255 Create subdir data-directory.
256 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
257 data-directory/Makefile.in.
258 (SUBDIRS): Add data-directory.
259 (all): Remove xml-syscall-copy dependency.
260 (xml-syscall-copy): Moved to data-directory/Makefile.in as
262 (xml-syscall-install): Moved to data-directory/Makefile.in as
264 (install-only): Remove xml-syscall-install dependency.
265 (all-data-directory): New rule.
266 (data-directory/Makefile): New rule.
267 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
268 * configure: Regenerate.
269 * data-directory/Makefile.in: New file.
270 * python/lib/gdb/__init__.py: New file.
272 2010-10-06 Joel Brobecker <brobecker@adacore.com>
274 Fix ARI warnings in advance_wild_match.
275 * ada-lang.c (advance_wild_match): Delete local variable t2.
276 Adjust code accordingly. Minor reformatting.
278 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
280 * gdbtypes.h (struct main_type): Remove flag_nottext.
281 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
282 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
283 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
284 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
285 of TYPE_FLAG_NOTTEXT.
286 (init_type): Remove the initialization of the flag_nottext field.
287 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
289 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
291 2010-10-04 Doug Evans <dje@google.com>
293 * cc-with-index.sh: New file.
295 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
297 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
298 (create_cus_from_index, create_addrmap_from_index): Ditto.
299 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
300 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
301 (dw2_do_expand_symtabs_matching): Ditto.
302 (eq_strtab_entry, create_strtab, add_string): Ditto.
303 (hash_strtab_entry): Ditto.
304 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
305 (create_index_table, create_mapped_symtab, find_slot): Ditto.
306 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
307 (write_hash_table, add_address_entry, write_psymbols): Ditto.
308 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
309 (write_psymtabs_to_index): Ditto.
311 2010-10-04 Joel Brobecker <brobecker@adacore.com>
313 * ada-lang.c: #include "value.h".
314 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
315 arguments. Implement using value_allocate_space_in_inferior
316 instead of allocating memory from the stack.
317 (make_array_descriptor): Remove gdbarch and sp parameters. Update
318 calls to ensure_lval.
319 (ada_convert_actual): Remove gdbarch and sp parameters. Update
320 calls to make_array_descriptor and ensure_lval.
321 * ada-lang.h (ada_convert_actual): Update declaration.
322 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
324 2010-10-04 Doug Evans <dje@google.com>
326 * python/python.c (_initialize_python): Define new function
327 GdbSetPythonDirectory in python. Use it to update sys.path and
330 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
332 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
333 incorporating and generalizing print_record_field_types.
334 (print_record_field_types): Change return value and update comment.
335 Re-implement using print_selected_record_field_types.
336 (print_choices): Print "=>" here.
337 Handle case of unencoded variant branch.
338 (print_variant_clauses): Reformat comment.
339 Special-case unencoded variant branch.
341 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
343 * ada-lang.c (wild_match): Reimplement.
344 Change API to eliminate unused length argument, reverse arguments and
345 make 0 the 'true' return value.
346 (advance_wild_match): New auxiliary function for wild_match to improve
348 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
349 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
351 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
353 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
355 2010-10-01 Doug Evans <dje@google.com>
357 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
358 for `save gdb-index' command.
360 2010-10-01 Tom Tromey <tromey@redhat.com>
362 * symfile.h (allocate_symtab): Update.
363 * symfile.c (allocate_symtab): Make 'filename' const.
364 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
365 (add_psymbol_to_list): Likewise.
366 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
368 (add_psymbol_to_list): Update.
369 * mdebugread.c (new_symtab): Make 'name' const.
370 (psymtab_to_symtab_1): Make 'filename' const.
371 * elfread.c (elfstab_offset_sections): Update.
372 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
373 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
374 (psymtab_include_file_name): Update.
375 * dbxread.c (find_stab_function_addr): Make 'filename' const.
376 * buildsym.h (start_subfile): Update.
377 * buildsym.c (start_subfile): Make arguments const.
379 2010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
381 * fork-child.c (breakup_args): Fix crash if shell forking is
382 disabled at compile time.
384 2010-10-01 Joel Brobecker <brobecker@adacore.com>
386 * ada-lang.c (desc_bounds): Add handling of the case where
387 the P_BOUNDS field is a pointer to a stub.
388 (desc_data_target_type): Same for P_ARRAY field.
389 (ada_check_typedef): Strip the typedef layers from the type
390 found by ada_find_any_type.
392 2010-10-01 Joel Brobecker <brobecker@adacore.com>
394 * sparc-tdep.c (sparc32_frame_align): New function.
395 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
396 * sparc64-tdep.c (sparc64_frame_align): New function.
397 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
399 2010-09-30 H.J. Lu <hongjiu.lu@intel.com>
401 * defs.h (MAX_REGISTER_SIZE): Set to 64.
403 2010-09-30 Tom Tromey <tromey@redhat.com>
405 * symfile.h (struct sym_fns) <next>: Remove.
406 (add_symtab_fns): Update.
407 * symfile.c (sym_fns_ptr): New typedef.
408 (symtab_fns): Now a VEC.
409 (add_symtab_fns): Update. Change argument type.
410 (find_sym_fns): Update. Change return type.
411 (get_symfile_segment_data): Update.
412 * objfiles.h (struct objfile) <sf>: Now const.
413 * somread.c (som_sym_fns): Now const. Update.
414 * xcoffread.c (xcoff_sym_fns): Now const. Update.
415 * mipsread.c (ecoff_sym_fns): Now const. Update.
416 * machoread.c (macho_sym_fns): Now const. Update.
417 * elfread.c (elf_sym_fns): Now const. Update.
418 (elf_sym_fns_gdb_index): Likewise.
419 * dbxread.c (aout_sym_fns): Now const. Update.
420 * coffread.c (coff_sym_fns): Now const. Update.
422 2010-09-30 Tom Tromey <tromey@redhat.com>
424 * value.c (value_primitive_field): Take 'offset' into account for
427 2010-09-30 Tom Tromey <tromey@redhat.com>
429 * completer.c (count_struct_fields): Handle anonymous structs and
431 (add_struct_fields): Likewise.
433 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
435 Fix printing parameters of inlined functions.
436 * ada-lang.c (is_known_support_routine)
437 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
438 for find_frame_funname.
439 * python/py-frame.c (frapy_name): Likewise.
440 * stack.c (find_frame_funname): New parameter funcp. Update the
441 function comment. Fill it in.
442 (print_frame): New variable func. Initialize it by
443 find_frame_funname. Print arguments only if FUNC is not NULL. Use
444 FUNC as the parameter of print_args_stub.
445 * stack.h (find_frame_funname): New parameter funcp. Remove the
446 function declaration comment.
448 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
451 * inferior.c (have_live_inferiors): New variables old_chain, inf and
452 tp. Iterate INFERIOR_LIST and call target_has_execution.
454 2010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
456 Fix GDB crash on inferior calls with self-referencing classes.
457 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
460 2010-09-29 Doug Evans <dje@google.com>
462 Workaround for gcc/45682.
463 * dwarf2read.c (partial_die_info): New fields fixup_called,
465 (guess_partial_die_structure_name): Renamed from guess_structure_name.
466 Move definition next to use. Use linkage_name to determine if class
467 is in a namespace. All callers updated.
468 (fixup_partial_die): Return early if already called.
469 Set fixup_called when done.
470 (guess_full_die_structure_name): New function.
471 (determine_prefix): Call it for class/struct/union dies if c++ and
472 .debug_types section is present and parent is DW_TAG_compile_unit.
474 2010-09-28 Joel Brobecker <brobecker@adacore.com>
476 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
477 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
479 2010-09-28 Joel Brobecker <brobecker@adacore.com>
481 * NEWS: Announce Ravenscar Profile support.
483 2010-09-28 Joel Brobecker <brobecker@adacore.com>
484 Jerome Guitton <guitton@adacore.com>
486 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
488 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
489 ravenscar-sparc-thread.o to gdb_target_obs.
491 2010-09-28 Joel Brobecker <brobecker@adacore.com>
493 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
494 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
496 2010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
498 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
499 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
500 skip_main_prologue method.
502 2010-09-27 Tom Tromey <tromey@redhat.com>
504 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
505 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
506 Only emit a given psymbol once.
507 (struct signatured_type_index_data) <psyms_seen>: New field.
508 (write_one_signatured_type): Update.
509 (cleanup_htab): New function.
510 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
512 (save_gdb_index_command): Update index documentation.
514 2010-09-27 Tom Tromey <tromey@redhat.com>
516 * bcache.c (expand_hash_table): Use hash_function, not hash.
518 2010-09-27 Tom Tromey <tromey@redhat.com>
520 * gdb_wchar.h: Change minimum libiconv to 0x108.
522 2010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
524 Fix lost siginfo_t for inferior calls.
526 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
527 (save_inferior_thread_state): New variables regcache, gdbarch and
528 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
529 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
531 (restore_inferior_thread_state): New variables regcache and gdbarch.
532 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
533 REGCACHE. Free also SIGINFO_DATA.
535 2010-09-24 Tom Tromey <tromey@redhat.com>
537 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
539 (dw2_map_symbol_names): Likewise.
541 2010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
543 * valops.c (find_oload_champ_namespace_loop): replace incorrect
544 discard_cleanups do_cleanups.
546 2010-09-24 Pedro Alves <pedro@codesourcery.com>
550 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
551 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
552 si_code is < 0. Check for si_code == SI_TIMER before checking for
555 2010-09-24 Pedro Alves <pedro@codesourcery.com>
557 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
559 2010-09-22 Joel Brobecker <brobecker@adacore.com>
561 * ada-tasks.c (read_atcb): Do not compute the task ptid when
562 debugging a core file.
564 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
567 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
568 (free_objfile) <objfile->name != NULL>: Remove the conditional around
570 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
571 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
573 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
574 Remove the conditional.
575 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
577 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
579 * main.c: Include objfiles.h.
580 (captured_main): New variable objfile. Call
581 load_auto_scripts_for_objfile for ALL_OBJFILES.
583 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
585 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
588 2010-09-22 Joel Brobecker <brobecker@adacore.com>
590 * dwarf2read.c (scan_partial_symbols): Add handling of
591 DW_TAG_constant DIEs.
592 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
594 2010-09-22 Joel Brobecker <brobecker@adacore.com>
596 * configure.ac: Add support for --enable-gdbserver.
597 * configure: Regenerate.
599 2010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
602 * valops.c (find_oload_champ_namespace_loop): removed incorrect
603 'old_cleanups' reassignment.
605 2010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
607 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
610 2010-09-16 Phil Muldoon <pmuldoon@redhat.com>
613 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
614 read_var_value and common_val_print and print a warning.
616 2010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
618 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
619 keep the list in alphabetical order. Use longer e-mail address.
621 2010-09-15 Tom Tromey <tromey@redhat.com>
623 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
625 2010-09-15 Tom Tromey <tromey@redhat.com>
627 * charset.c (iconv_open): New define.
629 (iconv_close): Likewise.
630 (phony_iconv_open): Add "phony_" prefix.
631 (phony_iconv_close): Likewise.
632 (phony_iconv): Likewise.
633 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
634 Change how INTERMEDIATE_ENCODING is defined.
636 2010-09-15 Doug Evans <dje@google.com>
638 * dwarf2read.c (struct die_info): Fix comment.
640 2010-09-15 Alan Modra <amodra@gmail.com>
643 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
644 than setting SEC_NEVER_LOAD on sections that need not be copied.
646 2010-09-14 Tom Tromey <tromey@redhat.com>
648 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
649 (start_psymtab_common, allocate_psymtab, discard_psymtab):
651 * symfile.h (extend_psymbol_list): Remove.
652 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
653 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
654 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
656 2010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
658 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
661 2010-09-14 Tom Tromey <tromey@redhat.com>
664 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
665 for unrecognized frame base expression.
667 2010-09-14 Tom Tromey <tromey@redhat.com>
670 * value.c (value_static_field): Use value_of_variable.
672 2010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
674 * m32r-rom.c: Replace winsock.h with winsock2.h header.
675 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
677 2010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
680 * c-exp.y (classify_name): Check is_a_member_of_this before returning
683 2010-09-13 Joel Brobecker <brobecker@adacore.com>
685 * NEWS: Add x86-lynxos to the list of platforms supported by
688 2010-09-13 Joel Brobecker <brobecker@adacore.com>
690 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
692 2010-09-13 Tom Tromey <tromey@redhat.com>
694 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
696 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
698 * i386-tdep.c (i386_ymm_type): Set type name to
699 builtin_type_vec256i.
701 2010-09-12 Michael Snyder <msnyder@vmware.com>
703 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
705 2010-09-12 H.J. Lu <hongjiu.lu@intel.com>
707 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
709 2010-09-11 H.J. Lu <hongjiu.lu@intel.com>
711 * amd64-tdep.c (amd64_register_name): Removed.
712 (amd64_init_abi): Don't call set_gdbarch_register_name.
714 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
716 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
718 2010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
719 Paul Bolle <pebolle@tiscali.nl>
721 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
722 * cli-logging.c (struct saved_output_files) <targerr>: New.
723 (set_logging_redirect, pop_output_files, handle_redirections):
724 Redirect also gdb_stdtargerr.
725 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
727 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
729 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
730 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
731 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
732 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
733 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
736 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
738 * hppa-tdep.c (unwind_command): Use host_address_to_string function
739 to display a host address.
740 * monitor.c (monitor_read_memory): Likewise.
741 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
743 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
745 * coffread.c (struct coff_symbol): Change c_value type from `long' to
746 `CORE_ADDRESS' as it might contain target addresses.
748 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
750 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
751 before cast to pointer to avoid warning.
753 2010-09-09 Kevin Buettner <kevinb@redhat.com>
755 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
758 2010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
760 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
761 anonymous class partial DIEs.
763 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
765 * dwarf2read.c (dwarf2_compute_name): Check that the first
766 argument is a pointer.
768 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
770 * dwarf2read.c (read_func_scope, read_structure_type)
771 (read_common_block): Check for a NULL return from new_symbol.
773 2010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
775 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
777 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
779 * dwarf2read.c (read_structure_type): Move processing of
780 fields and member functions from here...
781 (process_structure_scope): ... to here.
783 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
785 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
787 (gnuv3_make_method_ptr): Likewise.
789 2010-09-08 Tom Tromey <tromey@redhat.com>
791 * breakpoint.c (create_breakpoint): Add missing _().
793 2010-09-08 Doug Evans <dje@google.com>
795 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
797 2010-09-08 Tom Tromey <tromey@redhat.com>
800 2010-09-01 Tom Tromey <tromey@redhat.com>
801 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
802 symtab.h: Revert earlier change.
804 2010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
806 * psymtab.c (add_psymbol_to_bcache): Initialize
808 memset psymbol.ginfo.value to 0.
810 2010-09-06 Pedro Alves <pedro@codesourcery.com>
812 * infrun.c (resume): Extend comment on ignoring single-step
813 requests on vfork parents waiting for a vfork-done.
815 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
816 Pedro Alves <pedro@codesourcery.com>
818 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
820 * fork-child.c (startup_inferior) <resume_signal>: Use enum
822 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
823 calling strsignal. Use enum target_signal type for saved_signo.
824 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
825 (linux_nat_wait_1): Use enum target_signal type for signo. Use
826 target_signal_to_host before calling strsignal.
827 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
830 2010-09-06 Pedro Alves <pedro@codesourcery.com>
831 Jan Kratochvil <jan.kratochvil@redhat.com>
833 * common/signals.c (ANY): Remove.
834 (SET): No longer use ANY.
836 2010-09-06 Yao Qi <yao@codesourcery.com>
838 * infrunc(resume): When inferior is waiting_for_vfork_done,
839 clear step and don't use displaced stepping.
841 2010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
843 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
846 2010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
848 Code cleanup - split print_stop_reason.
849 * infrun.c (enum inferior_stop_reason): Remove.
850 (print_stop_reason): Remove by splitting into ...
851 (print_exited_reason, print_signal_exited_reason)
852 (print_no_history_reason, print_signal_received_reason)
853 (print_end_stepping_range_reason): ... these new functions. Update
854 the preceding comment.
855 (handle_inferior_event): Change the calls to print_exited_reason,
856 print_signal_exited_reason, print_no_history_reason,
857 print_signal_received_reason, print_end_stepping_range_reason.
858 (handle_step_into_function, handle_step_into_function_backward):
859 Change the calls to print_end_stepping_range_reason.
861 2010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
863 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
864 * cli-out.c: Include vec.h.
865 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
866 variable stream, initialize it, use it.
867 (cli_redirect): New function comment. Replace the stream and
868 original_stream fields by the new streams field. Remove the
869 original_stream != NULL conditional, assert error on NULL instead.
870 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
871 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
872 original_stream fields by the new streams field.
873 (cli_out_set_stream): Replace the stream field by the new streams
875 * cli-out.h: Include vec.h.
876 (ui_filep): New typedef, call DEF_VEC_P for it.
877 (struct cli_ui_out_data): Replace the stream and original_stream
878 fields by the new streams field.
879 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
880 NULL first. Extend the comment.
881 (handle_redirections): Call ui_out_redirect with output.
882 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
883 calls outside of the TRY_CATCH block.
885 2010-09-03 Joel Brobecker <brobecker@adacore.com>
889 2010-09-02 Joel Brobecker <brobecker@adacore.com>
891 Back out the following change:
892 | 2010-06-29 Hui Zhu <teawater@gmail.com>
893 | * record.c (set_record_pic_cmdlist,
894 | show_record_pic_cmdlist): New variables.
895 | (set_record_pic_command,
896 | show_record_pic_command): New functions.
897 | (record_pic_function, record_pic_line, record_pic_enum,
898 | set_record_pic_type, record_pic_hide_nofunction,
899 | record_pic_hide_nosource, record_pic_hide_same): New variables.
900 | (record_pic_fputs): New function.
901 | (function_list, node_list, edge_list): New struct.
902 | (function_list, node_list, edge_list): New variables.
903 | (record_pic_cleanups, record_pic_node,
904 | record_pic_edge, cmd_record_pic): New functions.
905 | (_initialize_record): Add new commands for record pic.
907 2010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
909 * config.in, configure: Regenerated.
910 * configure.ac: Check for waitpid.
911 * ser-pipe.c (pipe_close): Wait for the program to exit.
913 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
915 * cli/cli-logging.c: Include gdb_assert.h.
916 (set_logging_overwrite): New function.
917 (logging_redirect): New comment.
918 (logging_no_redirect_file, set_logging_redirect)
919 (pop_output_files) <logging_no_redirect_file>: New.
920 (handle_redirections) <!logging_redirect>: New variable
921 no_redirect_file. Remove file autoclose for tee_file_new. No longer
922 discard cleanup for the close of former OUTPUT. Set
923 LOGGING_NO_REDIRECT_FILE.
924 (handle_redirections) <logging_redirect>: gdb_assert
925 LOGGING_NO_REDIRECT_FILE.
926 (show_logging_command) <logging_redirect handling>: Adjust messages
927 for SAVED_FILENAME not NULL.
928 (_initialize_cli_logging): Install set_logging_overwrite and
929 set_logging_redirect.
931 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
933 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
935 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
937 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
938 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
939 add $(GDB_WARN_CFLAGS_NO_FORMAT).
940 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
942 2010-09-02 Yao Qi <yao@codesourcery.com>
944 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
945 number from a WIFSIGNALED status.
947 2010-09-01 Tom Tromey <tromey@redhat.com>
949 * symtab.h (lookup_type_symbol): Declare.
950 * symtab.c (lookup_symbol_in_language_full): Rename from
951 lookup_symbol_in_language. Add 'for_type' argument.
952 (lookup_symbol_in_language): New function.
953 (lookup_type_symbol): Likewise.
954 (lookup_symbol_aux): Add 'for_type' argument.
955 (match_symbol_aux): New function.
956 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
957 (match_transparent_type): New function.
958 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
959 * symfile.h (struct quick_symbol_functions)
960 <pre_expand_symtabs_matching>: Remove.
961 <expand_one_symtab_matching>: New field.
962 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
963 (pre_expand_symtabs_matching_psymtabs): Remove.
964 (psym_functions): Update.
965 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
966 * dwarf2read.c (dw2_lookup_symbol): Update comment.
967 (dw2_pre_expand_symtabs_matching): Remove.
968 (dw2_expand_one_symtab_matching): New function.
969 (dwarf2_gdb_index_functions): Update.
971 2010-09-01 Joel Brobecker <brobecker@adacore.com>
973 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
975 2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
977 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
978 as a feature reported by -list-target-features.
980 2010-09-01 Joel Brobecker <brobecker@adacore.com>
982 * features/Makefile (WHICH): Add rs6000/powerpc-32.
983 (powerpc-32.o, powerpc-32.c): New rules.
984 (clean): Also remove powerpc-32.c.
985 * regformats/rs6000/powerpc-32.dat: Generate.
987 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
989 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
991 * psymtab.h (psymbol_bcache_init): New function prototype.
992 (psymbol_bcache_free): New function prototype.
993 (psymbol_bcache_get_bcache): New function prototype.
994 * psymtab.c (psymbol_bcache_init): New function.
995 (psymbol_bcache_free): New function.
996 (psymbol_bcache_full): New function.
997 (psymbol_bcache_get_bcache): New function.
998 (add_psymbol_to_bcache): use psymbol_bcache_full.
999 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
1001 * symmisc.c (print_symbol_bcache_statistics): Updated.
1002 (print_objfile_statistics): Updated.
1003 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
1005 (free_objfile): Use psymbol_bcache_free.
1007 2010-08-31 Tom Tromey <tromey@redhat.com>
1010 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
1011 Don't set TYPE_NAME on the type.
1013 2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
1015 * infrun.c (set_exec_direction_func): Error out if target does not
1016 support reverse execution.
1018 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1020 Make linux_get_siginfo_type `type *' unique.
1021 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
1022 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
1023 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
1024 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
1025 (_initialize_linux_tdep): New.
1027 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1030 * defs.h (find_memory_region_ftype): New typedef.
1031 (exec_set_find_memory_regions): Use it.
1032 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
1033 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
1034 * gcore.c (objfile_find_memory_regions): Likewise.
1035 * gnu-nat.c (gnu_find_memory_regions): Likewise.
1036 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
1037 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
1038 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
1039 find_memory_region_ftype.
1040 (insert_dbx_link_bpt_in_region): Likewise.
1041 (iterate_over_mappings): Likewise. Drop the comment part about the
1043 (find_memory_regions_callback): Use find_memory_region_ftype.
1044 (proc_find_memory_regions): Likewise.
1045 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
1046 find_memory_region_ftype.
1047 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
1048 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
1050 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
1052 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
1053 'static partial_symbol psymbol'.
1054 (psymbol_hash): New function.
1055 (psymbol_compare): New function.
1056 * bcache.c (hash_continue): New.
1057 (hash): Use hash_continue.
1058 * bcache.c: Add hash_function and compare_function
1059 pointers to bcache struct.
1060 (bcache_full): Use bcache->hash_function, and
1061 bcache->compare_function.
1062 (bcache_compare): New function.
1063 (bcache_xmalloc): Take hash_function and
1064 compare_function arguments and initialize the
1067 * objfiles.c (allocate_objfile): Updated.
1068 * symfile.c (reread_symbols): Updated.
1069 * python/py-type.c (typy_richcompare): Updated.
1071 2010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
1072 Tom Tromey <tromey@redhat.com>
1075 * python/py-value.c (valpy_get_dynamic_type): New function.
1076 (value_object_getset): Add "dynamic_type".
1077 (valpy_get_type): Fail on error.
1079 2010-08-30 Yao Qi <yao@codesourcery.com>
1081 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
1082 (arm_linux_syscall_next_pc): New.
1083 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
1084 (arm_linux_init_abi): Initialize syscall_next_pc.
1085 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
1086 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
1087 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
1088 Declare arm_frame_is_thumb.
1090 2010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1093 * breakpoint.c (bpstat_alloc): Remove unused prototype.
1094 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
1096 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
1097 calls of bpstat_alloc. Remove explicit bs chain termination.
1099 2010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1102 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
1103 (my_waitpid): Likewise.
1105 2010-08-27 Doug Evans <dje@google.com>
1107 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
1110 2010-08-27 Tom Tromey <tromey@redhat.com>
1112 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
1113 TYPE_FIELD_IGNORE_BITS.
1115 2010-08-27 Doug Evans <dje@google.com>
1117 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
1118 the order they're defined in. munmap .debug_types buffer.
1120 2010-08-26 Doug Evans <dje@google.com>
1122 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
1123 (dw2_forget_cached_source_info): Rename local cu to per_cu.
1124 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
1125 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
1126 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
1127 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
1128 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
1129 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
1130 (write_psymtabs_to_index): Ditto.
1132 2010-08-26 Pedro Alves <pedro@codesourcery.com>
1134 * NEWS: Mention libthread_db debugging with core files.
1136 2010-08-26 Doug Evans <dje@google.com>
1138 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
1139 forward decl. Pass pst->dirname to dwarf_decode_lines.
1140 (psymtab_include_file_name): New function.
1141 (dwarf_decode_lines): Call it. Update comments.
1143 2010-08-25 Pedro Alves <pedro@codesourcery.com>
1145 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
1146 compilation unit being different from target die's.
1148 2010-08-24 Doug Evans <dje@google.com>
1151 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
1152 debug_types_type_hash.
1153 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
1155 (lookup_die_type): Renamed from tag_type_to_tag. First look in
1156 appropriate type_hash table. All callers updated.
1157 (allocate_signatured_type_table): Renamed from
1158 allocate_signatured_type_hash_table. All callers updated.
1159 (create_signatured_type_table_from_index): Renamed from
1160 create_signatured_type_hash_from_index. All callers updated.
1161 (read_die_type): Add comment. Move actual reading to ...
1162 (read_die_type_1): ... here. New function.
1163 (follow_die_ref_or_sig): Tweak comment.
1164 (set_die_type): Rewrite to use appropriate choice of
1165 debug_info_type_hash or debug_types_type_hash.
1166 (get_die_type_at_offset): New function.
1167 (get_die_type): Call it.
1169 2010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1171 * python/py-type.c (typy_richcompare): Initialize worklist.
1173 2010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
1174 Kazu Hirata <kazu@codesourcery.com>
1175 Jonathan Larmour <jifl@eCosCentric.com>
1177 * arm-tdep.c: Include features/arm-with-m.c.
1178 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
1180 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
1181 Check is_m after force-mode.
1182 (arm_gdbarch_init): Check the binary before the target description.
1183 Add check for M profile attribute. If we have an M-profile device,
1184 but no target register description, use arm-with-m. Recognize the
1185 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
1186 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
1187 * arm-tdep.h (XPSR_T): Define.
1188 (struct gdbarch_tdep): Add is_m member.
1189 * features/arm-m-profile.xml, features/arm-with-m.c,
1190 features/arm-with-m.xml: New files.
1192 2010-08-23 Doug Evans <dje@google.com>
1194 * dwarf2read.c (read_structure_type): Add comment.
1195 (read_enumeration_type): Add comment.
1196 (process_enumeration_scope): Move definition of some locals
1197 closer to their use.
1198 (read_namespace_type): Add comment.
1199 (set_die_type): Fix typo in comment.
1201 2010-08-23 Tom Tromey <tromey@redhat.com>
1204 * python/py-value.c: Include expression.h.
1205 (valpy_do_cast): New function.
1206 (valpy_cast): Use it.
1207 (valpy_dynamic_cast): New function.
1208 (valpy_reinterpret_cast): Likewise.
1209 (value_object_methods): Add dynamic_cast, reinterpret_cast.
1211 2010-08-23 Tom Tromey <tromey@redhat.com>
1214 * python/py-value.c (valpy_nonzero): Don't throw error for other
1217 2010-08-23 Tom Tromey <tromey@redhat.com>
1220 * python/py-type.c: Include bcache.h, vec.h.
1221 (struct type_equality_entry): New.
1222 (compare_strings): New function.
1223 (check_types_equal): Likewise.
1224 (check_types_worklist): Likewise.
1225 (typy_richcompare): Likewise.
1226 (type_object_type): Set tp_richcompare field.
1228 2010-08-23 Tom Tromey <tromey@redhat.com>
1231 * python/py-type.c (typy_fields): Call check_typedef.
1232 (typy_template_argument): Add TRY_CATCH.
1234 2010-08-23 Tom Tromey <tromey@redhat.com>
1237 * python/py-type.c (typy_array): New function.
1238 (type_object_methods): Add "array".
1240 2010-08-20 Pedro Alves <pedro@codesourcery.com>
1242 * python/python.c: Include "serial.h".
1243 (gdbpy_event_fds): Change type to `struct serial *' a array from
1245 (gdbpy_run_events): Change parameters. Use serial_readchar in
1247 (gdbpy_post_event): Use serial_write in place of write.
1248 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
1249 serial_async in place of add_file_handler.
1251 2010-08-20 Pedro Alves <pedro@codesourcery.com>
1253 * serial.h (gdb_pipe, serial_pipe): Declare.
1254 * serial.c (serial_interface_lookup): Take a const char pointer.
1255 (serial_fdopen): Rename to ...
1256 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
1257 Call the OPS' fdopen function if there is one.
1258 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
1260 (struct serial_ops) <fdopen>: New field.
1262 * ser-mingw.c (free_pipe_state):
1263 (free_pipe_state): Close output on non-pex pipes.
1264 (pipe_windows_fdopen): New.
1266 (_initialize_ser_windows): Register pipe_windows_fdopen.
1267 * ser-go32.c (gdb_pipe): New.
1268 * ser-pipe.c (pipe_close): Close file descriptor even if there's
1273 2010-08-20 Keith Seitz <keiths@redhat.com>
1276 * dwarf2read.c (struct delayed_method_info): New struct.
1277 (struct dwarf2_cu): Add vector method_list.
1278 (scan_partial_symbols): Count methods for union, class, structure,
1279 and interface types.
1280 (add_to_method_list): New function.
1281 (free_delayed_list): New function.
1282 (compute_delayed_physnames): New function.
1283 (process_full_comp_unit): Make a cleanup for the CU's delayed
1284 physname list, compute the delayed physnames, and free the
1286 (dwarf2_add_member_fn): For C++ and Java, delay the computation
1287 of the physname until after the CU is read.
1289 * dwarf2read.c (read_structure_type): Check if the current
1290 DIE's type was already completed after dwarf2_full_name
1293 2010-08-19 Stan Shebs <stan@codesourcery.com>
1295 * NEWS: Mention some additional changes.
1297 2010-08-19 Tom Tromey <tromey@redhat.com>
1299 * Makefile.in (install-python): Add DESTDIR.
1301 2010-08-19 Doug Evans <dje@google.com>
1304 * parser-defs.h (parse_float, parse_c_float): Declare.
1305 * parse.c (parse_float, parse_c_float): New function.
1306 * c-exp.y (parse_number): Call parse_c_float.
1307 * objc-exp.y (parse_number): Ditto.
1308 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
1309 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
1311 2010-08-19 Joel Brobecker <brobecker@adacore.com>
1313 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
1314 the arguments in the correct order.
1315 * symtab.c (maybe_add_partial_symtab_filename): Declare
1316 the arguments in the correct order.
1318 2010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1320 * varobj.c (varobj_create): Replace variable old_fi with old_id,
1321 initialize it by null_frame_id, wrap its usage by get_frame_id,
1322 frame_id_p and frame_find_by_id.
1324 2010-08-18 Tom Tromey <tromey@redhat.com>
1327 * configure: Rebuild.
1328 * configure.ac: Add install-python to CONFIG_INSTALL.
1329 * Makefile.in (install-python): New.
1331 2010-08-18 Doug Evans <dje@google.com>
1333 * gdb_assert.h (gdb_assert_not_reached): New macro.
1334 (gdb_assert_fail): Fix typo in comment.
1335 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
1337 * darwin-nat.c (darwin_check_new_threads): Ditto.
1338 * dwarf2read.c (dwarf2_get_section_info): Ditto.
1339 (munmap_section_buffer): Ditto.
1340 * m32c-tdep.c (make_types): Ditto.
1341 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
1342 * macroexp.c (get_character_constant): Ditto.
1343 (get_string_literal): Ditto.
1344 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
1345 (mep_pseudo_cr_index, mep_register_type): Ditto.
1346 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
1347 (mep_get_insn, mep_analyze_prologue): Ditto.
1348 * objfiles.c (qsort_cmp): Ditto.
1349 * prologue-value.c (pv_is_identical): Ditto.
1350 * record.c (record_get_loc): Ditto.
1351 * value.c (value_static_field): Ditto.
1352 * xtensa-tdep.c (call0_track_op): Ditto.
1354 2010-08-18 Tom Tromey <tromey@redhat.com>
1357 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
1358 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
1359 name-copying lower. Document exception behavior.
1360 * completer.c (expression_completer): Catch exceptions from
1361 parse_field_expression.
1363 2010-08-18 Pedro Alves <pedro@codesourcery.com>
1367 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
1368 workaround on core files.
1369 (try_thread_db_load_1): Don't try enabling thread event reporting
1371 (thread_db_load): Allow thread_db on core files.
1372 (attach_thread): Don't check thread signals on core files, nor try
1373 really attaching to the thread, nor enabling thread event event
1375 (thread_db_detach): Don't try disabing thread event reporting or
1376 removing thread event breakpoints when debugging a core file.
1377 (find_new_threads_callback): Don't try enabling thread event
1378 reporting on core files.
1379 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
1380 debugging a core file.
1381 (thread_db_find_new_threads): Don't update thread
1382 cores (processors) when debugging a core (dump).
1384 2010-08-18 Pedro Alves <pedro@codesourcery.com>
1388 * corelow.c (add_to_thread_list): Don't use
1389 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
1390 (get_core_register_section): Don't use
1391 gdbarch_core_reg_section_encodes_pid.
1393 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
1394 * gdbarch.h, gdbarch.c: Regenerate.
1395 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
1396 gdbarch_core_reg_section_encodes_pid.
1397 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
1398 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
1399 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1401 2010-08-18 Yao Qi <yao@codesourcery.com>
1403 * MAINTAINERS : Add myself under Write After Approval.
1405 2010-08-17 Tom Tromey <tromey@redhat.com>
1407 * NEWS: Mention template parameter support.
1409 2010-08-17 Pedro Alves <pedro@codesourcery.com>
1411 PR breakpoints/11371
1413 * breakpoint.c (decref_bp_location): Assert the reference count is
1416 2010-08-17 Pedro Alves <pedro@codesourcery.com>
1418 PR breakpoints/11371
1420 * breakpoint.c (breakpoint_init_inferior): Decrement the
1421 location's reference count instead of deleting right away.
1422 (bpstat_free): Decrement the location's reference count. Make
1424 (bpstat_copy): Increment the location's reference count.
1425 (bpstat_find_breakpoint): Adjust.
1426 (bpstat_num): Adjust.
1427 (print_it_typical): Adjust. Use the breakpoint pointer in the
1428 bpstat instead of the location's owner.
1429 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
1430 Adjust to record the location's owner in the bpstat.
1431 (watchpoint_check): Use the breakpoint pointer in the bpstat
1432 instead of the location's owner.
1433 (bpstat_check_breakpoint_conditions): Don't handle
1434 bp_watchpoint_scope here. Use the breakpoint pointer in the
1435 bpstat instead of the location's owner.
1436 (bpstat_stop_status): Defer inferior function calls to after
1437 building the bpstat list. Handle bp_watchpoint_scope here. Use
1438 the breakpoint pointer in the bpstat instead of the location's
1440 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
1441 the location's owner.
1442 (free_bp_location): Don't walk bpstats clearing locations.
1443 (incref_bp_location): New.
1444 (decref_bp_location): New.
1445 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
1446 instead of the location's owner.
1447 (update_global_location_list): Clear the location's owner, and
1448 decrement the location's reference count instead of deleting it
1450 (breakpoint_retire_moribund): Decrement the location's reference
1451 count instead of deleting it right away.
1452 (bpstat_remove_bp_location): Delete.
1453 (bpstat_remove_breakpoint): New.
1454 (bpstat_remove_bp_location_callback): Delete.
1455 (bpstat_remove_breakpoint_callback): New.
1456 (delete_breakpoint): Iterate over all threads' stop_bpstat's
1457 clearing references to the breakpoint that is being deleted.
1459 * breakpoint.h (struct bp_location) <refc>: New field.
1460 <owner>: Update comments.
1461 (bpstat_free): Delete declaration.
1462 (struct bpstats): Change the type of the breakpoint_at field to
1463 struct breakpoint point, from struct bp_location pointer. Add new
1464 field bp_location_at.
1466 2010-08-16 Tom Tromey <tromey@redhat.com>
1470 2010-08-16 Tom Tromey <tromey@redhat.com>
1472 * NEWS: Mention watch -location.
1474 2010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1476 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
1477 EXP_STRING_REPARSE to EXP_STRING.
1478 (watch_command_1): Set also EXP_STRING_REPARSE.
1479 (delete_breakpoint): Free also EXP_STRING_REPARSE.
1480 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
1481 Update comment for exp_string.
1483 2010-08-16 Tom Tromey <tromey@redhat.com>
1485 * value.c (release_value): Clear 'next' pointer.
1486 * breakpoint.c (watch_command_1): Add 'just_location' argument.
1487 (watch_command_wrapper): Update.
1488 (watch_maybe_just_location): New function.
1489 (watch_command): Update.
1490 (rwatch_command_wrapper): Update.
1491 (rwatch_command): Update.
1492 (awatch_command_wrapper): Update.
1493 (awatch_command): Update.
1494 (check_for_argument): New function.
1495 (_initialize_breakpoint): Update help text.
1497 2010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
1499 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
1500 typedef'ed function types correctly.
1502 2010-08-13 Tom Tromey <tromey@redhat.com>
1504 * python/python-internal.h (gdbpy_get_hook_function): Don't
1507 2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1509 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
1512 2010-08-13 Ken Werner <ken.werner@de.ibm.com>
1514 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
1515 the format strings to be compatible with Python 2.4.
1517 2010-08-13 Vladimir Prus <vladimir@codesourcery.com>
1519 Easier and more stubborn MI memory read commands.
1521 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
1522 and data-write-memory-bytes.
1523 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
1524 (mi_cmd_data_write_memory_bytes): New.
1525 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
1526 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
1528 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
1529 * target.c (target_read_until_error): Remove.
1530 (read_whatever_is_readable, free_memory_read_result_vector)
1531 (read_memory_robust): New.
1532 * target.h (target_read_until_error): Remove.
1533 (struct memory_read_result, free_memory_read_result_vector)
1534 (read_memory_robust): New.
1536 2010-08-13 Hui Zhu <teawater@gmail.com>
1538 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
1539 (read_comp_unit): Initialize back_to.
1541 2010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
1542 Pedro Alves <pedro@codesourcery.com>
1544 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
1545 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
1546 (struct partial_die_info) <has_template_arguments>: New field.
1547 <num_attrs>: Change type to unsigned char.
1548 <building_fullname>: New field.
1549 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
1550 allocate a CU if we don't have one already. Add a cleanup for the
1552 (partial_die_full_name): Handle template arguments not in
1554 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
1555 (load_full_comp_unit): Only allocate a CU if we don't have one
1557 (do_ui_file_peek_last): New.
1558 (dwarf2_compute_name): Handle template parameters not in
1560 (read_comp_unit): Read and free abbrevs if not read yet.
1561 (load_partial_dies): Handle template arguments not in DW_AT_name.
1562 (find_partial_die): If we have a CU, but no a partial dies yet,
1563 also read in the CU.
1564 (dwarf2_const_value_attr): New, abstracted out from
1566 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
1567 dwarf2_const_value_attr.
1568 (determine_prefix): Detect and break loops created by RCVT's debug
1570 (maybe_queue_comp_unit): Bail out early if reading partial
1572 (follow_die_offset): Load full CU if we have no dies.
1573 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
1574 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
1576 2010-08-11 Tom Tromey <tromey@redhat.com>
1577 Phil Muldoon <pmuldoon@redhat.com>
1579 * python/python.c (gdbpy_run_events): New function.
1580 (gdbpy_post_event): Likewise.
1581 (gdbpy_initialize_events): Likewise.
1582 (_initialize_python): Call gdbpy_initialize_events.
1584 2010-08-11 Ken Werner <ken.werner@de.ibm.com>
1586 * gdb/valarith.c (vector_binop): New function.
1587 (scalar_binop): Likewise.
1588 (value_binop): Call scalar_binop or vector_binop depending on the types.
1589 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
1590 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
1592 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
1594 2010-08-11 Brad Roberts <braddr@puremagic.com>
1596 * d-lang.c (extract_identifiers): Handle multiple digits.
1598 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1601 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
1602 Rename to dummy_frame_unwind.
1603 (dummy_frame_unwind): Remove.
1604 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
1605 * frame-unwind.c (frame_unwind_init): Use address of
1606 dummy_frame_unwind and inline_frame_unwind.
1607 * frame.c (create_sentinel_frame): Use address of
1608 sentinel_frame_unwind.
1609 * inline-frame.c (inline_frame_unwinder): Rename to
1610 inline_frame_unwind.
1611 (inline_frame_unwind): Remove.
1612 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
1613 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
1614 sentinel_frame_unwind.
1615 (sentinel_frame_unwind): Remove.
1616 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
1619 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1622 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
1623 and returned value. New comment from frame-unwind.h.
1624 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
1626 * frame.c (get_frame_id, frame_unwind_register_value)
1627 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
1628 (get_frame_type, frame_unwind_arch): Do not use the return value of
1629 frame_unwind_find_by_frame.
1631 2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
1632 Thiago Jung Bauermann <bauerman@br.ibm.com>
1633 Tom Tromey <tromey@redhat.com>
1635 * python/python.c (gdbpy_solib_address): New function.
1636 (gdbpy_decode_line): Likewise.
1638 2010-08-10 Tom Tromey <tromey@redhat.com>
1640 Revert gdb-add-index addition:
1641 * Makefile.in (install-only): Don't install gdb-add-index.
1642 * gdb-add-index.sh: Remove.
1644 2010-08-09 Kevin Buettner <kevinb@redhat.com>
1646 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
1647 `target_has_execution' check with `to_has_memory' check.
1648 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
1649 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
1650 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
1652 2010-08-09 Kevin Buettner <kevinb@redhat.com>
1654 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
1655 (resume_siggnal, resume_step): Move these static globals...
1656 (struct sim_inferior_data): ...into this new struct.
1657 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
1659 (gdb_callback, callbacks_initialized): Move these globals to
1660 a point earlier in the file.
1661 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
1662 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
1663 (gdbsim_close_inferior, gdbsim_resume_inferior)
1664 (gdbsim_stop_inferior): New functions.
1665 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
1667 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
1668 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
1669 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
1670 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
1671 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
1672 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
1673 new local variable `sim_data' in each of these functions. Use
1674 `sim_data' to reference former globals `program_loaded',
1675 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
1677 (gdbsim_open): Remove local variable `argv'. Put results of call
1678 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
1679 make a cleanup for it. Free it though when a sim instance cannot
1681 (gdbsim_close): Free sim_argv and null it out as appropriate.
1682 Close sim instances in all inferiors.
1683 (gdbsim_cntrl_c): Stop all inferiors.
1685 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
1687 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
1689 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
1690 function after symbol construction is complete.
1691 Do the same for template symbol addition to template_symbols list.
1693 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
1695 * symtab.c (symbol_get_demangled_name): Remove assertion and
1696 return NULL when language_specific.cplus_specific is not initialized.
1697 * stabsread.c (define_symbol): Set the name before calling
1698 cp_scan_for_anonymous_namespaces.
1700 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
1702 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
1703 SYMBOL_SET_LANGUAGE.
1704 (symbol_init_language_specific): Renamed to symbol_set_language.
1705 * symtab.c (symbol_init_language_specific): Removed redundant check
1707 Renamed to symbol_set_language.
1708 * stabsread.c (define_symbol): Updated.
1709 (read_enum_type): Updated
1710 * psymtab.c (add_psymbol_to_bcache): Updated.
1711 * minsyms.c (install_minimal_symbols): Updated.
1712 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
1713 SYMBOL_LANGUAGE to set the language.
1714 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
1715 * mdebugread.c (new_symbol): Ditto.
1716 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
1717 * dwarf2read.c (new_symbol_full): Ditto.
1718 * jv-lang.c (add_class_symbol): Ditto.
1720 2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1722 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
1723 (make_cleanup_restore_page_info)
1724 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
1725 * gdbcmd.h (execute_command_to_string): New declaration.
1726 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
1727 (make_cleanup_restore_ui_file): Move to utils.c
1728 (execute_gdb_command) <to_string>: Move ...
1729 * top.c (execute_command_to_string): ... here. Call
1730 set_batch_flag_and_make_cleanup_restore_page_info.
1731 * utils.c (make_cleanup_restore_integer): New source file blank line.
1732 (make_cleanup_restore_uinteger): New.
1733 (struct restore_ui_file_closure, do_restore_ui_file)
1734 (make_cleanup_restore_ui_file): Move here from python/python.c.
1735 (init_page_info) <batch_flag>
1736 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
1737 (set_batch_flag_and_make_cleanup_restore_page_info): New.
1739 2010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
1741 * thread.c (add_thread_silent): Use null_ptid instead of
1742 minus_one_ptid while getting rid of stale inferior_ptid.
1744 2010-08-06 Corinna Vinschen <vinschen@redhat.com>
1746 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
1747 Throughout, call read_encoded_value with ptr_size rather than addr_size.
1748 (decode_frame_entry_1): Remove redundant setting of
1749 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
1750 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
1751 on examined frame section. Add comment to explain why.
1752 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
1753 comment to explain usage.
1754 * gdbarch.c: Regenerate.
1755 * gdbarch.h: Regenerate.
1757 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
1759 2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1762 * varobj.c (varobj_create): Move variables fi, old_fi and block to
1765 2010-08-05 Pedro Alves <pedro@codesourcery.com>
1767 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
1768 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
1769 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
1770 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
1771 linux-tdep.o to gdb_target_obs.
1773 2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
1775 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
1778 2010-08-05 Hui Zhu <teawater@gmail.com>
1780 * mips-linux-tdep.c(regset.h): New include.
1781 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
1782 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
1783 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
1784 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
1785 mips_linux_regset_from_core_section): New functions.
1786 (fetch_core_registers, regset_core_fns): Deleted.
1787 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
1788 Deleted regset_core_fns.
1789 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
1790 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
1791 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
1794 2010-08-04 Pedro Alves <pedro@codesourcery.com>
1796 * s390-tdep.c: Include linux-tdep.h.
1797 (s390_gdbarch_init): Call linux_init_abi.
1799 2010-08-04 Pedro Alves <pedro@codesourcery.com>
1801 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
1802 instead of printing "Thread" here.
1803 * linux-tdep.c: Include inferior.h.
1804 (linux_core_pid_to_str): New.
1805 (linux_init_abi): New.
1806 * linux-tdep.h (linux_init_abi): Declare.
1807 * alpha-linux-tdep.c: Include linux-tdep.h.
1808 (alpha_linux_init_abi): Call linux_init_abi.
1809 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
1810 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
1811 * frv-linux-tdep.c: Include linux-tdep.h
1812 (frv_linux_init_abi): Call linux_init_abi.
1813 * hppa-linux-tdep.c: Include linux-tdep.h
1814 (hppa_linux_init_abi): Call linux_init_abi.
1815 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
1816 * ia64-linux-tdep.c: Include linux-tdep.h.
1817 (ia64_linux_init_abi): Call linux_init_abi.
1818 * m32r-linux-tdep.c: Include linux-tdep.h.
1819 (m32r_linux_init_abi): Call linux_init_abi.
1820 * m68klinux-tdep.c: Include linux-tdep.h.
1821 (m68k_linux_init_abi): Call linux_init_abi.
1822 * microblaze-linux-tdep.c: Include linux-tdep.h.
1823 (microblaze_linux_init_abi): Call linux_init_abi.
1824 * mips-linux-tdep.c: Include linux-tdep.h.
1825 (mips_linux_init_abi): Call linux_init_abi.
1826 * mn10300-linux-tdep.c: Include linux-tdep.h.
1827 (am33_linux_init_osabi): Call linux_init_abi. Rename the
1828 'gdbinfo' parameter to 'info'.
1829 * ppc-linux-tdep.c: Include linux-tdep.h.
1830 (ppc_linux_init_abi): Call linux_init_abi.
1831 * sh-linux-tdep.c: Include linux-tdep.h.
1832 (sh_linux_init_abi): Call linux_init_abi.
1833 * sparc-linux-tdep.c: Include linux-tdep.h.
1834 (sparc32_linux_init_abi): Call linux_init_abi.
1835 * sparc64-linux-tdep.c: Include linux-tdep.h.
1836 (sparc64_linux_init_abi): Call linux_init_abi.
1837 * xtensa-linux-tdep.c: Include linux-tdep.h.
1838 (xtensa_linux_init_abi): Call linux_init_abi.
1839 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
1840 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
1843 2010-08-03 Doug Evans <dje@google.com>
1845 * breakpoint.c (bpdisp_text): Constify bpdisps.
1846 * solib-svr4.c (solib_break_names): Constify.
1847 (bkpt_names, main_name_list): Constify.
1848 (match_main): Constify soname arg.
1849 (bfd_lookup_symbol): Remove unnecessary forward decl.
1850 Constify symname arg.
1851 (enable_break): Constify bkpt_namep.
1852 * symtab.c (search_symbols): Constify types, types2, types3, types4.
1853 (symtab_symbol_info): Constify classnames.
1855 2010-08-03 Phil Muldoon <pmuldoon@redhat.com>
1857 * NEWS: Document Python value inferior function calls.
1859 2010-08-02 Doug Evans <dje@google.com>
1861 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
1863 2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1865 * linux-thread-db.c (libthread_db_debug): New variable.
1866 (thread_db_find_new_threads_silently): Control verbosity with it.
1867 (try_thread_db_load_1, try_thread_db_load): Likewise.
1868 (find_new_threads_once): Likewise.
1869 (_initialize_thread_db): Set/show it.
1871 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1873 * common/signals.c (signals): Move the content to signals.def.
1874 Include it. Remove the INDENT comments.
1876 2010-07-30 Tom Tromey <tromey@redhat.com>
1878 * Makefile.in (install-only): Install gdb-add-index.
1879 * gdb-add-index.sh: New file.
1881 2010-07-31 Renquan Cheng <crq@gcc.gnu.org>
1883 * MAINTAINERS: Add myself for write after approval privileges.
1885 2010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1887 * symfile.c (addr_section_name): New function.
1888 (addrs_section_compar): Use it.
1889 (addr_info_make_relative): Use it. Move variable sect_name into a more
1890 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
1892 2010-07-30 Tom Tromey <tromey@redhat.com>
1894 * configure: Rebuild.
1895 * configure.ac: Add missing case for Python 2.7.
1897 2010-07-29 DJ Delorie <dj@redhat.com>
1899 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
1902 2010-07-29 Pedro Alves <pedro@codesourcery.com>
1904 * PROBLEMS: Remove mention of all problems.
1906 2010-07-28 Pedro Alves <pedro@codesourcery.com>
1909 * configure.ac: Check for wresize.
1910 * configure, config.in: Regenerate.
1911 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
1914 2010-07-28 Tom Tromey <tromey@redhat.com>
1917 * python/py-type.c (typy_legacy_template_argument): New function,
1918 extracted from typy_template_argument.
1919 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
1922 2010-07-28 Oleg Nesterov <oleg@redhat.com>
1924 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
1926 2010-07-27 Tom Tromey <tromey@redhat.com>
1928 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
1930 2010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
1932 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
1933 handling DW_AT_object_pointer, and workaround GCC PR 43053.
1935 2010-07-28 Tom Tromey <tromey@redhat.com>
1937 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
1939 2010-07-28 Joel Brobecker <brobecker@adacore.com>
1941 * remote.c (remote_download_tracepoint): Add missing gettext markup.
1942 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
1944 2010-07-28 Joel Brobecker <brobecker@adacore.com>
1946 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
1947 down, just before the block that parse the breakpoint addr_string.
1949 2010-07-28 Tom Tromey <tromey@redhat.com>
1952 * symfile.c (reread_symbols): Clear template_symbols.
1953 * symtab.h (struct symbol) <is_cplus_template_function>: New
1955 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
1956 (struct template_symbol): New.
1957 * symtab.c (lookup_symbol_aux_local): Use
1958 cp_lookup_symbol_imports_or_template.
1959 * objfiles.h (struct objfile) <template_symbols>: New field.
1960 * objfiles.c (relocate_one_symbol): New function.
1961 (objfile_relocate1): Use it. Relocate isolated symbols.
1962 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
1963 template_arguments>: New fields.
1964 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
1965 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
1966 (TYPE_TEMPLATE_ARGUMENT): Likewise.
1967 (lookup_typename): Update.
1968 * gdbtypes.c (lookup_typename): Constify "block" argument.
1969 * dwarf2read.c: Include vec.h.
1970 (symbolp): New typedef.
1971 (read_func_scope): Read template arguments. Allocate a
1972 template_symbol when needed.
1973 (read_structure_type): Read template arguments.
1974 (new_symbol_full): New function, from new_symbol. Handle
1975 DW_TAG_template_type_param and DW_TAG_template_value_param.
1976 (new_symbol): Rewrite as wrapper.
1977 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
1978 * cp-namespace.c: Include language.h.
1979 (search_symbol_list): New function.
1980 (cp_lookup_symbol_imports_or_template): Likewise.
1982 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
1984 * tui/tui-win.c (make_visible_with_new_height): Resize and move
1985 the command window to the new size and position.
1987 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
1989 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
1992 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
1994 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
1995 after a detecting a resize.
1996 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
1999 2010-07-28 Pedro Alves <pedro@codesourcery.com>
2001 * configure.ac: Check for resize_term.
2002 * configure, config.in: Regenerate.
2004 2010-07-27 Joel Brobecker <brobecker@adacore.com>
2006 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
2008 2010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
2010 * dwarf2read.c (read_string): Rename to ...
2011 (read_direct_string): ... this.
2012 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
2013 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
2015 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2017 * linux-nat.c (linux_nat_lp_status_is_event): New function.
2018 (count_events_callback, select_event_lwp_callback)
2019 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
2021 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2023 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
2024 (_initialize_ia64_linux_nat): Install it.
2025 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
2026 (linux_nat_set_status_is_event): New.
2027 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
2028 cancel_breakpoints_callback, linux_nat_filter_event)
2029 (linux_nat_wait_1): Use linux_nat_status_is_event.
2030 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
2032 2010-07-27 Tom Tromey <tromey@redhat.com>
2034 * NEWS: Mention labels, .gdb_index.
2036 2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
2038 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
2039 "start,+length" form of arguments.
2040 * NEWS: Add "Changed commands" (disassemble) section for "Changes
2041 since GDB 7.1"; and merge two separated paragraphs of disassemble
2042 description in "Changes in GDB 7.0".
2044 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2046 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
2047 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
2048 (fputs_maybe_filtered): Do not do filtering also on
2049 ! INPUT_FROM_TERMINAL_P.
2051 2010-07-27 Joel Brobecker <brobecker@adacore.com>
2053 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
2056 2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
2058 * python/py-value.c (valpy_call): New Function.
2060 2010-07-27 Ken Werner <ken.werner@de.ibm.com>
2062 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
2063 types_list_elements variables.
2065 2010-07-26 Tom Tromey <tromey@redhat.com>
2067 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
2068 TLS with DW_OP_const4u or DW_OP_const8u.
2070 2010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
2072 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
2073 VSX registers contents.
2075 2010-07-26 Jerome Guitton <guitton@adacore.com>
2077 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
2078 its adress is null. Add comment to explain why.
2079 (new_symbol): Ditto.
2081 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2083 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
2084 the host signal first.
2086 2010-07-23 Tom Tromey <tromey@redhat.com>
2088 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
2089 type_comp_units>: New fields.
2090 (dw2_get_cu): New function.
2091 (create_cus_from_index): Remove unused argument.
2092 (create_signatured_type_hash_from_index): New function.
2093 (create_addrmap_from_index): Update.
2094 (dwarf2_read_index): Handle version 2.
2095 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
2096 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
2097 (dw2_print_stats, dw2_expand_all_symtabs)
2098 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
2099 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
2100 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
2101 (allocate_signatured_type_hash_table): New function.
2102 (add_signatured_type_cu_to_list): Likewise.
2103 (create_debug_types_hash_table): Use them. Set type_comp_units.
2104 (read_signatured_type): Ensure section data is available.
2105 (add_address_entry): Don't record empty ranges.
2106 (struct signatured_type_index_data): New.
2107 (write_one_signatured_type): New function.
2108 (write_psymtabs_to_index): Write type CUs.
2109 (save_gdb_index_command): Update comment.
2110 (process_type_comp_unit): Move inititalization of
2112 (create_debug_types_hash_table): ... here.
2114 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2116 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
2117 cleanup and generating of gdb script to it.
2118 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
2119 and terminal size. Convert $tmpfile to a series of -ex-es.
2121 2010-07-23 Keith Seitz <keiths@redhat.com>
2123 * symtab.c (basic_lookup_transparent_type): Call pre-expand
2124 hook for STATIC_BLOCK types, too.
2126 2010-07-23 Keith Seitz <keiths@redhat.com>
2128 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
2129 and vector definition.
2131 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2133 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
2135 2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2137 * dwarf2read.c: Include completer.h.
2138 (save_gdb_index_command): Use matching usage command name.
2139 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
2140 Set filename_completer for it.
2142 2010-07-22 Tom Tromey <tromey@redhat.com>
2144 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
2145 type signature's per-CU data.
2147 2010-07-22 Pedro Alves <pedro@codesourcery.com>
2149 * NEWS: Mention target reported shared libraries support by
2152 2010-07-21 Pedro Alves <pedro@codesourcery.com>
2157 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2158 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
2159 and DW_TAG_volatile_type.
2160 (new_symbol): Likewise.
2162 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
2164 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
2165 function symbols before overload resolution.
2167 2010-07-21 Pedro Alves <pedro@codesourcery.com>
2169 * breakpoint.c (bptype_string): New, abstracted out from
2170 print_one_breakpoint_location.
2171 (print_one_breakpoint_location): Adjust.
2172 (breakpoint_1): Adjust the type column width dynamically.
2174 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2176 * symfile.c (find_separate_debug_file_by_debuglink): Remove
2177 a gdb_assert call, new comment.
2179 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2181 * linux-nat.c (linux_handle_extended_wait): Handle case when
2182 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
2184 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2187 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
2188 linux_nat_wait_1. Use always LP->STATUS afterwards.
2190 2010-07-20 Hui Zhu <teawater@gmail.com>
2192 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
2193 (inf_ptrace_attach): Ditto.
2195 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2197 Make core files the process_stratum.
2198 * corefile.c (core_target): New variable.
2199 (core_file_command): Remove variable t, use core_target.
2200 * corelow.c (core_ops): Make it static.
2201 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
2202 * defs.h (make_cleanup_unpush_target): New prototype.
2203 * gdbarch.h: Regenerate.
2204 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
2205 * gdbcore.h (core_target): New declaration.
2206 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
2207 variables ops_already_pushed and back_to. Use push_target,
2208 make_cleanup_unpush_target and discard_cleanups calls.
2209 * record.c (record_open): Replace core_stratum by a core_bfd check.
2210 * target.c (target_is_pushed): New function.
2211 (find_core_target): Remove.
2212 * target.h (enum strata) <core_stratum>: Remove.
2213 (target_is_pushed): New declaration.
2214 (find_core_target): Remove declaration.
2215 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
2216 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
2218 2010-07-19 Hui Zhu <teawater@gmail.com>
2220 * breakpoint.c (single_step_breakpoints_inserted): New
2222 * breakpoint.h (single_step_breakpoints_inserted): Extern.
2223 * infrun.c (maybe_software_singlestep): Add check code.
2224 * record.c (record_resume): Add code for software single step.
2225 (record_wait): Ditto.
2227 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2229 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
2230 a more inner block. Remove its unused declaration initializer.
2232 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
2234 * NEWS: Mention support for the new ptrace interface and hardware
2235 accelerated watchpoint conditions on powerpc-linux.
2237 2010-07-16 Ozkan Sezer <sezeroz@gmail.com>
2239 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
2240 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
2241 and host_address_to_string() and %s for pointers.
2242 (debug_to_remove_breakpoint): Likewise.
2243 (debug_to_region_ok_for_hw_watchpoint): Likewise.
2244 (debug_to_can_accel_watchpoint_condition): Likewise.
2245 (debug_to_stopped_data_address): Likewise.
2246 (debug_to_watchpoint_addr_within_range): Likewise.
2247 (debug_to_insert_hw_breakpoint): Likewise.
2248 (debug_to_remove_hw_breakpoint): Likewise.
2249 (debug_to_insert_watchpoint): Likewise.
2250 (debug_to_remove_watchpoint): Likewise.
2252 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2254 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
2256 (cplus_specific): New struct.
2257 * symtab.c (symbol_set_demangled_name): Updated.
2258 Use cplus_specific for cplus symbols.
2259 (symbol_get_demangled_name): Retrive the name from the cplus_specific
2260 struct for cplus symbols.
2261 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
2262 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
2263 * symtab.c (symbol_init_cplus_specific): New function.
2265 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2267 * symtab.h (symbol_set_demangled_name): New function.
2268 (symbol_get_demangled_name): New function.
2269 * symtab.c (symbol_set_demangled_name): New function.
2270 (symbol_get_demangled_name): New function.
2271 (symbol_init_language_specific): Use demangled_name setter and getter.
2272 (symbol_set_names): Ditto.
2273 (symbol_natural_name): Ditto.
2274 (symbol_demangled_name): Ditto.
2275 * dwarf2read.c (new_symbol): Ditto.
2277 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2279 * symtab.h: Renamed cplus_specific to mangled_lang.
2280 * symtab.c (symbol_init_language_specific): Updated.
2281 (symbol_set_names): Updated.
2282 (symbol_natural_name): Updated.
2283 (symbol_demangled_name): Updated.
2284 * ada-lang.c (ada_decode_symbol): Updated.
2285 * dwarf2read.c (new_symbol): Updated.
2287 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
2289 * valops.c (value_assign): Do not call to value_coerce_to_target.
2290 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
2292 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
2294 * MAINTAINERS: Add myself for write after approval privileges.
2296 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
2298 * c-valprint.c (c_val_print): Add embedded_offset to address in
2299 call to val_print_array_elements.
2301 2010-07-13 Tom Tromey <tromey@redhat.com>
2303 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
2305 2010-07-13 Tom Tromey <tromey@redhat.com>
2307 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
2310 2010-07-13 Tom Tromey <tromey@redhat.com>
2312 * symfile.c (set_initial_language): Update.
2313 (deduce_language_from_filename): Argument type now const.
2314 * symtab.h (find_main_filename): Update.
2315 (deduce_language_from_filename): Update.
2316 * symtab.c (find_main_filename): Make result const.
2317 * dwarf2read.c (dw2_find_symbol_file): Change return type.
2318 * psymtab.c (find_symbol_file_from_partial): Change return type.
2319 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2322 2010-07-13 Tom Tromey <tromey@redhat.com>
2324 * breakpoint.c (save_cmdlist): No longer static.
2325 * gdbcmd.h (save_cmdlist): Declare.
2326 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
2327 OBJF_READNOW on objfile if readnow_symbol_files.
2328 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
2329 (elf_sym_fns_gdb_index): New global.
2330 * dwarf2read.c: Include exceptions.h.
2332 (struct mapped_index): New.
2333 (dwarf2_per_cu_data_ptr): New typedef.
2334 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
2336 (GDB_INDEX_SECTION): New define.
2337 (struct dwarf2_per_cu_quick_data): New.
2338 (struct dwarf2_per_cu_data) <objfile>: New field.
2341 (byte_swap): New function.
2342 (MAYBE_SWAP): New macro.
2343 (INDEX_SUFFIX): New macro.
2344 (dw2_do_instantiate_symtab): New function.
2345 (dw2_instantiate_symtab): Likewise.
2346 (create_cus_from_index): Likewise.
2347 (create_addrmap_from_index): Likewise.
2348 (mapped_index_string_hash): Likewise.
2349 (find_slot_in_mapped_hash): Likewise.
2350 (dwarf2_read_index): Likewise.
2351 (dw2_setup): Likewise.
2352 (dw2_require_line_header): Likewise.
2353 (dw2_require_full_path): Likewise.
2354 (dw2_find_last_source_symtab): Likewise.
2355 (dw2_forget_cached_source_info): Likewise.
2356 (dw2_lookup_symtab): Likewise.
2357 (dw2_lookup_symbol): Likewise.
2358 (dw2_do_expand_symtabs_matching): Likewise.
2359 (dw2_pre_expand_symtabs_matching): Likewise.
2360 (dw2_print_stats): Likewise.
2361 (dw2_dump): Likewise.
2362 (dw2_relocate): Likewise.
2363 (dw2_expand_symtabs_for_function): Likewise.
2364 (dw2_expand_all_symtabs): Likewise.
2365 (dw2_expand_symtabs_with_filename): Likewise.
2366 (dw2_find_symbol_file): Likewise.
2367 (dw2_map_ada_symtabs): Likewise.
2368 (dw2_expand_symtabs_matching): Likewise.
2369 (dw2_find_pc_sect_symtab): Likewise.
2370 (dw2_map_symbol_names): Likewise.
2371 (dw2_map_symbol_filenames): Likewise.
2372 (dw2_has_symbols): Likewise.
2373 (dwarf2_gdb_index_functions): New global.
2374 (dwarf2_initialize_objfile): New function.
2375 (process_psymtab_comp_unit): Update.
2376 (add_partial_subprogram): Likewise.
2377 (dwarf2_psymtab_to_symtab): Likewise.
2378 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
2379 (process_full_comp_unit): Update.
2380 (find_file_and_directory): New function.
2381 (read_file_scope): Use find_file_and_directory.
2382 (dwarf2_per_cu_objfile): Update.
2383 (dwarf2_per_cu_addr_size): Update.
2384 (dwarf2_per_cu_offset_size): Update.
2385 (dwarf2_free_objfile): Free the index, if needed.
2386 (dwarf2_per_objfile_free): Unmap the index, if needed.
2387 (struct strtab_entry): New.
2388 (hash_strtab_entry): New function.
2389 (eq_strtab_entry): Likewise.
2390 (create_strtab): Likewise.
2391 (add_string): Likewise.
2392 (struct symtab_index_entry): New.
2393 (struct mapped_symtab): New.
2394 (hash_symtab_entry): New function.
2395 (eq_symtab_entry): Likewise.
2396 (delete_symtab_entry): Likewise.
2397 (create_index_table): Likewise.
2398 (create_mapped_symtab): Likewise.
2399 (cleanup_mapped_symtab): Likewise.
2400 (find_slot): Likewise.
2401 (hash_expand): Likewise.
2402 (add_index_entry): Likewise.
2403 (add_indices_to_cpool): Likewise.
2404 (write_hash_table): Likewise.
2405 (add_address_entry): Likewise.
2406 (write_psymbols): Likewise.
2407 (write_obstack): Likewise.
2408 (unlink_if_set): Likewise.
2409 (write_psymtabs_to_index): Likewise.
2410 (save_gdb_index_command): Likewise.
2411 (_initialize_dwarf2_read): Install "save gdb-index"
2413 (create_all_comp_units): Initialize 'objfile' field of CU.
2414 (dwarf2_locate_sections): Check for .gdb_index.
2415 * psymtab.h (dwarf2_gdb_index_functions): Declare.
2416 * symfile.h (dwarf2_initialize_objfile): Declare.
2418 2010-07-13 Tom Tromey <tromey@redhat.com>
2420 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
2421 (basic_lookup_transparent_type): Likewise.
2422 * symfile.h (struct quick_symbol_functions)
2423 <pre_expand_symtabs_matching>: New field.
2424 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
2425 (psym_functions): Update.
2427 2010-07-13 Tom Tromey <tromey@redhat.com>
2429 PR breakpoints/8357:
2430 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
2431 * linespec.c (decode_line_1): Update comment. Call decode_label.
2432 (decode_label): New function.
2433 (symbol_found): Handle LOC_LABEL.
2434 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
2435 domain. Call add_symbol_to_list.
2437 2010-07-13 Tom Tromey <tromey@redhat.com>
2439 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
2440 * dwarf2loc.c (find_location_expression): Use
2441 dwarf2_per_cu_text_offset.
2442 (dwarf2_evaluate_loc_desc): Likewise.
2443 (dwarf2_loc_desc_needs_frame): Likewise.
2444 (compile_dwarf_to_ax): Likewise.
2445 (loclist_describe_location): Likewise.
2446 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
2447 (dwarf2_per_cu_objfile): Update comment.
2449 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2451 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
2452 * p-lang.c (pascal_printstr): Likewise.
2454 2010-07-09 Tom Tromey <tromey@redhat.com>
2456 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
2457 'hint' if it is NULL.
2459 2010-07-09 Hui Zhu <teawater@gmail.com>
2461 * source.c (print_source_lines_base): Add check for noprint.
2463 2010-07-08 Joel Brobecker <brobecker@adacore.com>
2465 * python/python-config.py: Resync with Python 2.7 version of this
2468 2010-07-08 Joel Brobecker <brobecker@adacore.com>
2470 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
2472 2010-07-07 Joel Brobecker <brobecker@adacore.com>
2474 * NEWS: Create a new section for the next release branch.
2475 Rename the section of the current branch, now that it has
2478 2010-07-07 Joel Brobecker <brobecker@adacore.com>
2480 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
2481 * version.in: Bump version to 7.2.50.20100707-cvs.
2483 2010-07-07 Tom Tromey <tromey@redhat.com>
2485 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
2486 LOC_COMPUTED symbol.
2487 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
2488 (dwarf2_loc_desc_needs_frame): Likewise.
2489 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
2490 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
2491 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
2492 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
2494 (struct dwarf2_frame_cache) <text_offset>: New field.
2495 (dwarf2_frame_cache): Set new field.
2496 (dwarf2_frame_prev_register): Update.
2497 (dwarf2_frame_sniffer): Update.
2498 (dwarf2_frame_base_sniffer): Update.
2499 (dwarf2_frame_find_fde): Add 'out_offset' argument.
2501 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2502 Thiago Jung Bauermann <bauerman@br.ibm.com>
2504 Support for hw accelerated condition watchpoints in booke powerpc.
2506 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
2507 and move to eval.c. Change callers.
2508 (insert_bp_location): Pass watchpoint condition in
2509 target_insert_watchpoint.
2510 (remove_breakpoint_1) Pass watchpoint condition in
2511 target_remove_watchpoint.
2512 (watchpoint_locations_match): Call
2513 target_can_accel_watchpoint_condition.
2514 * eval.c: Include wrapper.h.
2515 (fetch_subexp_value): Moved from breakpoint.c.
2516 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
2518 (can_use_watchpoint_cond_accel): New function.
2519 (calculate_dvc): Likewise.
2520 (num_memory_accesses): Likewise.
2521 (check_condition): Likewise.
2522 (ppc_linux_can_accel_watchpoint_condition): Likewise
2523 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
2524 check_condition and calculate_dvc.
2525 (ppc_linux_remove_watchpoint): Likewise.
2526 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
2527 ppc_linux_can_accel_watchpoint_condition
2528 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
2530 (debug_to_remove_watchpoint): Likewise.
2531 (debug_to_can_accel_watchpoint_condition): New function.
2532 (update_current_target): Set to_can_accel_watchpoint_condition.
2533 (setup_target_debug): Set to_can_accel_watchpoint_condition.
2534 * target.h: Add opaque declaration for struct expression.
2535 (struct target_ops) <to_insert_watchpoint>,
2536 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
2537 <to_can_accel_watchpoint_condition>: New member.
2538 condition. Update all callers and implementations.
2539 (target_can_accel_watchpoint_condition): New macro.
2540 * value.c (free_value_chain): New function.
2541 * value.h (fetch_subexp_value): New prototype.
2542 (free_value_chain): Likewise.
2544 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
2546 * linux-nat.c (linux_nat_do_thread_registers): Use section size
2547 from gdbarch_core_regset_sections also for .reg if present.
2549 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
2550 section size for .reg.
2551 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
2552 (ppc_linux_vmx_regset_sections): Likewise.
2553 (ppc_linux_fp_regset_sections): Likewise.
2554 (ppc64_linux_vsx_regset_sections): New variable.
2555 (ppc64_linux_vmx_regset_sections): Likewise.
2556 (ppc64_linux_fp_regset_sections): Likewise.
2557 (ppc_linux_init_abi): Install core_regset_section lists appropriate
2558 for current word size.
2560 2010-07-06 Joel Brobecker <brobecker@adacore.com>
2562 * server.c (myresume): Make static.
2564 2010-07-06 Tom Tromey <tromey@redhat.com>
2566 * configure, config.in: Rebuild.
2567 * configure.ac (HAVE_LIBPYTHON2_7): New define.
2568 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
2570 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
2572 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
2575 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
2577 * gdbtypes.h (floatformats_ieee_half): Add declaration.
2578 * gdbtypes.c (floatformats_ieee_half): New variable.
2579 * doublest.c (floatformat_from_length): Set format to
2580 gdbarch_half_format if length matches.
2581 * gdbarch.sh (half_bit): New architecture method.
2582 (half_format): Likewise.
2583 * gdbarch.h: Regenerate.
2584 * gdbarch.c: Likewise.
2586 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2587 Joel Brobecker <brobecker@adacore.com>
2589 Fix re-run of PIE executable, PR shlibs/11776.
2590 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
2591 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
2593 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2594 Joel Brobecker <brobecker@adacore.com>
2596 * auxv.c (memory_xfer_auxv): Update attach comment.
2597 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
2598 svr4_relocate_main_executable.
2599 (svr4_solib_create_inferior_hook): Make the call to
2600 svr4_relocate_main_executable unconditional.
2602 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2603 Joel Brobecker <brobecker@adacore.com>
2605 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
2607 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2608 Joel Brobecker <brobecker@adacore.com>
2610 Fix attaching to PIEs prelinked on the disk after the process was
2612 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
2613 Verify it against bfd_get_arch_size. Try to match arbitrary
2614 displacement for the phdrs comparison.
2616 2010-07-02 Tom Tromey <tromey@redhat.com>
2619 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
2620 value as optimized-out.
2622 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
2623 Thiago Jung Bauermann <bauerman@br.ibm.com>
2625 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
2626 represent?" question in comment. Change comment to a proper sentence.
2628 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
2630 * c-valprint.c (c_val_print): Fix printing of character vectors.
2632 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2634 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
2635 create_breakpoint prototype.
2637 2010-07-01 Pedro Alves <pedro@codesourcery.com>
2639 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
2640 usefulness suggestion of multiple breakpoints at same location.
2642 2010-07-01 Pedro Alves <pedro@codesourcery.com>
2644 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
2646 2010-07-01 Pedro Alves <pedro@codesourcery.com>
2648 * dwarf2loc.c (locexpr_tracepoint_var_ref)
2649 (loclist_tracepoint_var_ref): Handle optimized out values.
2651 2010-07-01 Pedro Alves <pedro@codesourcery.com>
2653 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
2654 unnecessary space in string.
2655 * filesystem.c (_initialize_filesystem): Ditto.
2656 * frame.c (_initialize_frame): Ditto.
2657 * infcmd.c (step_once): Ditto.
2658 * infrun.c (_initialize_infrun): Ditto.
2659 * linux-nat.c (linux_child_follow_fork): Ditto.
2660 * maint.c (maintenance_deprecate): Ditto.
2661 * memattr.c (_initialize_mem): Ditto.
2662 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2663 * monitor.c (monitor_open): Ditto.
2664 * procfs.c (procfs_xfer_memory): Ditto.
2665 * reverse.c (bookmarks_info): Ditto.
2666 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
2667 * stack.c (_initialize_stack): Ditto.
2668 * tracepoint.c (_initialize_tracepoint): Ditto.
2669 * xtensa-tdep.c (xtensa_supply_gregset,
2670 xtensa_regset_from_core_section): Ditto.
2672 2010-07-01 Tom Tromey <tromey@redhat.com>
2674 * value.h (struct lval_funcs) <check_any_valid>: Rename from
2676 * value.c (value_entirely_optimized_out): Invert result. Update
2677 for new function name.
2679 2010-07-01 Pedro Alves <pedro@codesourcery.com>
2681 Static tracepoints support.
2683 * NEWS: Mention new support for static tracepoints.
2684 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
2685 qXfer:statictrace:read.
2686 (New features in the GDB remote stub, GDBserver): Mention static
2687 tracepoints support using an UST based backend.
2688 (New commands): Mention "info static-tracepoint-markers" and
2690 * breakpoint.c (is_marker_spec): New.
2691 (is_tracepoint): Handle static tracepoints.
2692 (validate_commands_for_breakpoint): Static tracepoints can't do
2694 (static_tracepoints_here): New.
2695 (bpstat_what): Handle static tracepoints.
2696 (print_one_breakpoint_location, allocate_bp_location, mention):
2698 (create_breakpoint_sal): Ditto.
2699 (decode_static_tracepoint_spec): New.
2700 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
2701 `type_wanted'. Adjust. Handle static tracepoint marker
2703 (break_command_1): Adjust.
2704 (update_static_tracepoint): New.
2705 (update_breakpoint_locations): Handle static tracepoints.
2706 (breakpoint_re_set_one): Handle static tracepoint marker
2708 (disable_command, enable_command): Handle static tracepoints.
2709 (trace_command, ftrace_command): Adjust.
2710 (strace_command): New.
2711 (create_tracepoint_from_upload): Adjust.
2712 (save_breakpoints): Handle static tracepoints.
2713 (_initialize_breakpoint): Install the "strace" command.
2714 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
2715 (struct breakpoint): New fields static_trace_marker_id and
2716 static_trace_marker_id_idx.
2717 (breakpoints_here_p): Declare.
2718 (create_breakpoint): Adjust.
2719 (static_tracepoints_here): Declare.
2720 * remote.c (struct remote_state) <static_tracepoints>: New field.
2721 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
2722 (remote_static_tracepoint_marker_at): New.
2723 (remote_static_tracepoint_markers_by_strid): New.
2724 (remote_static_tracepoint_feature): New.
2725 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
2726 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
2727 (remote_supports_static_tracepoints): New.
2728 (remote_download_tracepoint): Download static tracepoints.
2729 (init_remote_ops): Install remote_static_tracepoint_marker_at and
2730 remote_static_tracepoint_markers_by_strid.
2731 (_initialize_remote): Install set|show remote static-tracepoints,
2732 and set|show remote read-sdata-object commands.
2733 * target.c (update_current_target): Inherit and default
2734 to_static_tracepoint_marker_at, and
2735 to_static_tracepoint_markers_by_strid.
2736 * target.h (static_tracepoint_marker): Forward declare.
2737 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
2738 (static_tracepoint_marker_p): New typedef.
2739 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
2740 (struct target_ops): New fields to_static_tracepoint_marker_at and
2741 to_static_tracepoint_markers_by_strid.
2742 (target_static_tracepoint_marker_at)
2743 (target_static_tracepoint_markers_by_strid): New.
2744 * tracepoint.c: Include source.h.
2745 (validate_actionline): Handle $_sdata.
2746 (struct collection_list): New field strace_data.
2747 (add_static_trace_data): New.
2748 (clear_collection_list): Clear strace_data.
2749 (stringify_collection_list): Account for a possible static trace
2751 (encode_actions_1): Encode an $_sdata collection.
2752 (parse_tracepoint_definition): Handle static tracepoints.
2753 (parse_static_tracepoint_marker_definition): New.
2754 (release_static_tracepoint_marker): New.
2755 (print_one_static_tracepoint_marker): New.
2756 (info_static_tracepoint_markers_command): New.
2757 (sdata_make_value): New.
2758 (_initialize_tracepoint): Create the $_sdata convenience variable.
2759 Add the "info static-tracepoint-markers" command.
2760 Mention $_sdata in the "collect" command's help output.
2761 * tracepoint.h (struct static_tracepoint_marker): New.
2762 (parse_static_tracepoint_marker_definition)
2763 (release_static_tracepoint_marker): Declare.
2764 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
2765 * python/py-breakpoint.c (bppy_new): Adjust.
2767 2010-06-30 Joel Brobecker <brobecker@adacore.com>
2769 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
2772 2010-06-29 Doug Evans <dje@google.com>
2775 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
2776 DW_AT_external is present.
2780 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
2781 create a symbol for the field and record the value.
2782 (new_symbol): Handle DW_TAG_member.
2783 * gdbtypes.c (field_is_static): Remove FIXME.
2784 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
2785 only ignore LOC_CONST symbols that are enums.
2787 * dwarf2read.c: Remove trailing whitespace.
2789 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
2790 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
2791 (struct main_type, field loc): Delete dwarf_block.
2792 (FIELD_DWARF_BLOCK): Delete.
2793 (SET_FIELD_DWARF_BLOCK): Delete.
2794 (TYPE_FIELD_DWARF_BLOCK): Delete.
2795 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
2798 2010-06-29 Hui Zhu <teawater@gmail.com>
2800 * record.c (set_record_pic_cmdlist,
2801 show_record_pic_cmdlist): New variables.
2802 (set_record_pic_command,
2803 show_record_pic_command): New functions.
2804 (record_pic_function, record_pic_line, record_pic_enum,
2805 set_record_pic_type, record_pic_hide_nofunction,
2806 record_pic_hide_nosource, record_pic_hide_same): New variables.
2807 (record_pic_fputs): New function.
2808 (function_list, node_list, edge_list): New struct.
2809 (function_list, node_list, edge_list): New variables.
2810 (record_pic_cleanups, record_pic_node,
2811 record_pic_edge, cmd_record_pic): New functions.
2812 (_initialize_record): Add new commands for record pic.
2814 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2816 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
2817 ALLOCATE_CPLUS_STRUCT_TYPE.
2819 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
2820 Tom Tromey <tromey@redhat.com>
2821 Thiago Jung Bauermann <bauerman@br.ibm.com>
2823 * value.c (pack_unsigned_long): New function.
2824 (value_from_ulongest): New function.
2825 * value.h (value_from_ulongest): Declare.
2826 * python/python.c (_initialize_python): Call
2827 gdbpy_initialize_thread and gdbpy_initialize_inferior.
2828 * python/python-internal.h: Define thread_object.
2829 (gdbpy_inferiors, gdbpy_selected_thread)
2830 (frame_info_to_frame_object, create_thread_object)
2831 (find_thread_object, find_inferior_object)
2832 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
2833 (gdbpy_is_value_object, get_addr_from_python): Declare.
2834 * python/py-value.c (builtin_type_upylong): Define.
2835 (convert_value_from_python): Add logic for ulongest.
2836 (gdbpy_is_value_object): New function.
2837 * python/py-utils.c (get_addr_from_python): New function.
2838 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
2839 (gdbpy_selected_frame): Use PyObject over frame_info.
2840 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
2842 (SUBDIR_PYTHON_SRCS): Likewise.
2843 (py-inferior.o): New Rule.
2844 (py-infthread.o): New Rule.
2845 * python/py-inferior.c: New File.
2846 * python/py-infthread.c: New File.
2848 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2850 * c-typeprint.c (c_type_print_base): For no fields check include also
2851 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
2852 * dwarf2read.c (struct typedef_field_list)
2853 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
2854 (dwarf2_add_typedef): New.
2855 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
2856 Copy also FI.TYPEDEF_FIELD_LIST.
2857 * gdbtypes.h (struct typedef_field)
2858 (struct cplus_struct_type) <typedef_field, typedef_field_count>
2859 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
2860 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
2862 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2864 * cp-namespace.c (cp_lookup_nested_type): New variable
2865 concatenated_name. Turn the current return condition into a reverse
2866 one. Call also lookup_static_symbol_aux on the constructed qualified
2868 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
2869 other files into a called ...
2870 (lookup_static_symbol_aux): ... new function here.
2871 * symtab.h (lookup_static_symbol_aux): New prototype.
2872 * valops.c (value_maybe_namespace_elt): Call also
2873 lookup_static_symbol_aux if we failed otherwise.
2875 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2877 Fix PR c++/11703 and PR gdb/1448.
2878 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
2881 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2883 Fix modification of cplus_struct_default.
2884 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
2885 Call ALLOCATE_CPLUS_STRUCT_TYPE.
2886 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
2888 2010-06-28 Joel Brobecker <brobecker@adacore.com>
2890 * NEWS: Add entry announcing the python directory.
2892 2010-06-28 Tom Tromey <tromey@redhat.com>
2894 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
2896 2010-06-28 Doug Evans <dje@google.com>
2898 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
2899 All callers updated.
2901 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2903 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
2904 obstack_begin after each obstack_free.
2906 2010-06-27 Doug Evans <dje@google.com>
2908 * value.c (value_static_field): Use `switch' instead of `if'.
2909 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
2911 * valops.c (search_struct_field): Fix typo in error message.
2913 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
2915 * dwarf2expr.c (execute_stack_op): Place preprocessor
2916 directives at the start of the source line.
2918 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
2920 * defs.h (make_command_stats_cleanup): Declare.
2921 (set_display_time): Declare.
2922 (set_display_space): Declare.
2923 * event-top.c (command_handler): Use make_command_stats_cleanup.
2924 * main.c (display_time, display_space): Move definitions to utils.c.
2925 (captured_main): Use make_command_stats_cleanup to get start-up
2927 Use set_display_time and set_display_space for processing OPT_STATISTICS
2929 * maint.c (maintenance_time_display): Use set_display_time.
2930 (maintenance_space_display): Use set_display_space.
2931 * top.c (execute_command): Remove obsolete 'maint time' code.
2932 (command_loop): Use make_command_stats_cleanup.
2933 * utils.c (struct cmd_stats): Structure for storing initial time
2935 (display_time, display_space): Move definitions here from utils.c.
2936 (set_display_time): New function.
2937 (set_display_space): New function.
2938 (make_command_stats_cleanup): New function.
2939 (report_command_stats): New auxiliary function for
2940 make_command_stats_cleanup.
2942 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2944 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
2945 hosts where CORE_ADDR is long long.
2947 2010-06-25 Tom Tromey <tromey@redhat.com>
2950 * python/python.c (execute_gdb_command): Add keywords. Accept
2951 "to_string" argument.
2952 (struct restore_ui_file_closure): New.
2953 (restore_ui_file): New function.
2954 (make_cleanup_restore_ui_file): Likewise.
2955 (GdbMethods) <execute>: Update.
2957 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2959 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
2960 during inferior call stack frame setup.
2962 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
2964 * solib-spu.c: Include "exception.h".
2965 (ocl_program_data_key): New variable.
2966 (append_ocl_sos): New function.
2967 (ocl_enable_break): Likewise.
2968 (spu_current_sos): Call append_ocl_sos.
2969 (spu_solib_loaded): Call ocl_enable_break.
2970 (_initialize_spu_solib): Register ocl_program_data_key.
2972 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2974 * cp-support.c (reset_directive_searched): New function.
2975 (make_symbol_overload_list_using): Prevent recursive calls.
2977 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
2979 * printcmd.c (print_variable_and_value): Print error message on
2982 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2984 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
2986 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
2988 (dwarf_expr_push): Change input type to ULONGEST.
2989 (dwarf_expr_fetch): Change return type to ULONGEST.
2990 (dwarf_expr_fetch_address): Add prototype.
2991 (dwarf2_read_address): Remove prototype.
2992 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
2993 Truncate stack values to ctx->addr_size bytes.
2994 (dwarf_expr_fetch): Change return value to ULONGEST.
2995 (dwarf_expr_fetch_address): New function.
2996 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
2997 when appropriate. Update for struct dwarf_expr_piece changes.
2998 (dwarf2_read_address): Remove.
2999 (unsigned_address_type): Remove.
3000 (signed_address_type): Remove.
3001 (execute_stack_op): Use dwarf_expr_fetch_address instead of
3002 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
3003 values. Perform operations on ULONGEST instead of on GDB values,
3004 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
3005 values and DW_OP_deref results as unsigned integers.
3006 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
3008 (write_pieced_value): Likewise.
3009 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
3010 dwarf_expr_fetch when appropriate.
3011 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
3012 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
3013 instead of dwarf_expr_fetch when appropriate.
3015 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
3017 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
3019 2010-06-24 Joel Brobecker <brobecker@adacore.com>
3021 * python/python.c (_initialize_python): Add new "constant"
3022 PYTHONDIR in gdb module. Insert this path at the head of
3023 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
3024 exec its __init__.py script if it exists in that directory.
3026 2010-06-24 Kevin Buettner <kevinb@redhat.com>
3028 * rx-tdep.c (RX_ACC_REGNUM): Define.
3029 (RX_NUM_REGS): Redefine to 26.
3030 (rx_register_name): Add register "acc". Change order of several
3031 registers. Change name of "vct" register to "fintv" to match RX
3033 (rx_register_type): Add case for RX_ACC_REGNUM.
3035 2010-06-24 Tom Tromey <tromey@redhat.com>
3037 * psymtab.c (lookup_partial_symbol): Mark definition as static.
3039 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3040 Tom Tromey <tromey@redhat.com>
3042 Fix GDB startup on readonly filesystem.
3043 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
3045 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3046 Pedro Alves <pedro@codesourcery.com>
3049 * breakpoint.c (handle_jit_event): New function.
3050 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
3051 jit, err, table and bs_class. New variables shlib_event, jit_event,
3052 this_action and bptype. Change bs_class assignments to this_action
3053 assignments. new unhandled bptype internal error. Move here
3054 shlib_event and jit_event handling from handle_inferior_event.
3055 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
3056 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
3057 BPSTAT_WHAT_CHECK_JIT.
3058 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
3059 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
3060 (handle_inferior_event): Reinitialize frame and gdbarch after
3061 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
3062 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
3063 gdbarch when frame gets reinitialized.
3065 2010-06-24 Hui Zhu <teawater@gmail.com>
3067 * printcmd.c (ui_printf): New function.
3068 (printf_command): Call ui_printf.
3069 (_initialize_printcmd): New command "eval".
3071 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
3073 * infrun.c (handle_inferior_event): Handle presence of single-step
3074 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
3075 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
3076 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
3077 * breakpoint.c (detach_single_step_breakpoints): New function.
3078 (detach_breakpoints): Call it.
3079 (cancel_single_step_breakpoints): New function.
3080 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
3082 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
3083 (spu_gdbarch_init): Install it.
3085 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3087 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
3088 * configure: Regenerate.
3090 2010-06-22 Hui Zhu <teawater@gmail.com>
3092 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
3093 (i386_process_record): Ditto.
3094 * record.c (record_memory_query): New variable.
3095 (_initialize_record): New command "set record memory-query".
3096 * record.h (record_memory_query): New extern.
3098 2010-06-21 Doug Evans <dje@google.com>
3100 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
3101 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
3102 (i386_syscall_p): Change type of lengthp to int.
3103 (i386_displaced_step_fixup): Handle kernels that run one past a
3105 * i386-linux-tdep.c (i386_linux_init_abi): Use
3106 i386_displaced_step_copy_insn instead of
3107 simple_displaced_step_copy_insn.
3109 2010-06-21 Tom Tromey <tromey@redhat.com>
3111 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
3112 (dwarf_type_encoding_name): Likewise.
3114 2010-06-21 Tom Tromey <tromey@redhat.com>
3116 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
3117 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
3118 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
3119 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
3120 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
3121 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
3122 * dwarf2read.c (tag_type_to_type): Create a new error type on
3124 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
3125 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
3127 2010-06-21 Michael Snyder <msnyder@vmware.com>
3129 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
3130 not add_abbrev_prefix_cmd, for "enable breakpoints".
3132 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
3134 * dwarf2loc.c (find_location_expression): Add relocation offset
3135 to base-address-selection entry base addresses. Read addresses
3136 (and offsets) as signed/unsigned integers, depending on the
3137 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
3138 (loclist_describe_location): Likewise.
3139 (disassemble_dwarf_expression): Read DW_OP_addr operand as
3140 unsigned integer. Do not call dwarf2_read_address.
3141 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
3143 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
3145 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
3146 value instead of hard-coded SPU_LS_SIZE.
3147 (spu_software_single_step): Likewise.
3148 * spu-tdep.h (SPU_LS_SIZE): Remove.
3150 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
3152 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
3153 limit on local store memory accesses.
3154 * spu-linux-nat.c (spu_xfer_partial): Likewise.
3155 * spu-tdep.c (spu_lslr): Remove.
3156 (spu_pointer_to_address): Do not truncate addresses.
3157 (spu_integer_to_address): Likewise.
3158 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
3159 * spu-tdep.h: Add comments.
3160 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
3161 (SPU_OVERLAY_LMA): Define.
3163 2010-06-18 Stan Shebs <stan@codesourcery.com>
3165 * osdata.c (get_osdata): Warn separately if target does not report
3167 (info_osdata_command): Allow empty type, report error if target
3168 does not return available types of OS data.
3169 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
3170 types if no annex supplied.
3172 * thread.c (thread_id_make_value): Make a value representing the
3174 (_initialize_thread): Create $_thread.
3176 2010-06-17 Joel Brobecker <brobecker@adacore.com>
3178 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
3179 last local variable declaration. No real code change.
3181 2010-06-17 Tom Tromey <tromey@redhat.com>
3183 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
3184 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
3187 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
3188 Jan Kratochvil <jan.kratochvil@redhat.com>
3190 * breakpoint.c: Include parser-defs.h.
3191 (watchpoint_exp_is_const): New function.
3192 (watch_command_1): Call watchpoint_exp_is_const to check
3193 if the expression is constant.
3195 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
3197 * configure.ac: Check for RDYNAMIC also for cross builds.
3198 * configure: Regenerate.
3200 2010-06-15 Pedro Alves <pedro@codesourcery.com>
3202 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
3203 (SFILES): Remove solib-null.c, add solib-target.c.
3204 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
3205 (ALLDEPFILES): Remove solib-target.c.
3206 * solib-target.c (_initialize_solib_target): Set
3207 current_target_so_ops to solib_target_so_ops if not already set.
3208 * solib-null.c: Delete.
3210 2010-06-14 Pedro Alves <pedro@codesourcery.com>
3212 * NEWS: Mention GDBserver's JIT compilation of tracepoint
3215 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3217 * cp-valprint.c (cp_print_static_field): Members of
3218 dont_print_stat_array_obstack are of type "struct type *".
3219 (_initialize_cp_valprint): Likewise.
3221 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3223 * frame.c (frame_register_unwind): Do not access contents
3224 of "optimized out" unwound register value.
3226 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3228 * ada-lang.h (ada_print_type): Make varstring const.
3229 * ada-typeprint.c (print_func_type): Make name const.
3230 (ada_print_type): Make varstring const.
3231 * c-lang.h (c_print_type): Make varstring const.
3232 * c-typeprint.c (c_print_type): Likewise.
3233 * f-lang.h (f_print_type): Likewise.
3234 * f-typeprint.c (f_print_type): Likewise.
3235 * jv-lang.h (java_print_type): Likewise.
3236 * jv-typeprint.c (java_print_type): Likewise.
3237 * language.c (unk_lang_print_type): Likewise.
3238 * language.h (struct language_defn) <la_print_type>: Likewise.
3239 * m2-lang.h (m2_print_type): Likewise.
3240 * m2-typeprint.c (m2_print_type): Likewise.
3241 * p-lang.h (pascal_print_type): Likewise.
3242 * p-typeprint.c (pascal_print_type): Likewise.
3244 2010-06-11 Stan Shebs <stan@codesourcery.com>
3246 Add per-operation permission flags.
3248 * target.h (struct target_ops): New method to_set_permissions.
3249 (target_set_permissions): New macro.
3250 (target_insert_breakpoint): Change macro to function.
3251 (target_remove_breakpoint): Ditto.
3252 (target_stop): Ditto.
3253 (may_write_registers): Declare.
3254 (may_write_memory): Declare.
3255 (may_insert_breakpoints): Declare.
3256 (may_insert_tracepoints): Declare.
3257 (may_insert_fast_tracepoints): Declare.
3258 (may_stop): Declare.
3259 * target.c (may_write_registers, may_write_registers_1): New globals.
3260 (may_write_memory, may_write_memory_1): New globals.
3261 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
3262 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
3263 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
3265 (may_stop, may_stop_1): New global.
3266 (target_xfer_partial): Test for write permission.
3267 (target_store_registers): Ditto.
3268 (target_insert_breakpoint): New function.
3269 (target_remove_breakpoint): New function.
3270 (target_stop): New function.
3271 (_initialize_targets): Add new set/show variables.
3272 (set_write_memory_permission): New function.
3273 (update_target_permissions): New function.
3274 (set_target_permissions): New function.
3275 (update_current_target): Default to_set_permissions.
3276 (_initialize_targets): Use new globals and setter function.
3277 * tracepoint.c (start_tracing): Test for permission.
3278 * inferior.h (update_observer_mode): Declare.
3279 * infrun.c (non_stop_1): Define earlier.
3280 (observer_mode, observer_mode_1): New globals.
3281 (set_observer_mode, show_observer_mode): New functions.
3282 (update_observer_mode): New function.
3283 (_initialize_infrun): Define "set observer" command.
3284 * remote.c (PACKET_QAllow): New optional packet.
3285 (remote_protocol_features): Add QAllow.
3286 (remote_set_permissions): New function.
3287 (remote_start_remote): Call it.
3288 (init_remote_ops): Add it to target vector.
3289 (_initialize_remote): Add config command for QAllow.
3291 2010-06-11 Tom Tromey <tromey@redhat.com>
3293 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
3294 DW_AT_vtable_elem_location even when GCC extension is seen.
3296 2010-06-11 Tom Tromey <tromey@redhat.com>
3298 PR gdb/9977, PR exp/11636:
3299 * value.h (value_offset): Update.
3300 (struct lval_funcs) <check_validity>: New field.
3301 <copy_closure>: Make argument const.
3302 (value_computed_closure): Update.
3303 (value_contents_for_printing): Declare.
3304 (value_bits_valid): Likewise.
3305 (val_print): Likewise.
3306 (set_value_component_location): Update.
3307 (value_entirely_optimized_out): Declare.
3308 * value.c (value_offset): Argument now const.
3309 (require_not_optimized_out): New function.
3310 (value_contents_for_printing): New function.
3311 (value_contents_all): Call require_not_optimized_out.
3312 (value_contents): Likewise.
3313 (value_bits_valid): New function.
3314 (value_computed_closure): Argument now const.
3315 (set_value_component_location): Make 'whole' argument const.
3316 (value_entirely_optimized_out): New function.
3317 (value_bitsize): Argument now 'const'.
3318 (value_bitpos): Likewise.
3319 (value_type): Likewise.
3320 * valprint.h (val_print_array_elements): Update.
3321 * valprint.c (val_print): Add 'val' argument. Use
3322 valprint_check_validity.
3323 (valprint_check_validity): New function.
3324 (value_check_printable): Use value_entirely_optimized_out.
3325 (common_val_print): Update.
3326 (value_print): Likewise.
3327 (val_print_array_elements): Add 'val' argument.
3328 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
3329 value_bits_valid. Reinit frame cache for lval_computed.
3330 * sh64-tdep.c (sh64_do_register): Update.
3331 * scm-valprint.c (scm_val_print): Add 'val' argument.
3332 * scm-lang.h (scm_val_print): Update.
3333 * python/python.h (apply_val_pretty_printer): Update.
3334 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
3335 argument. Call set_value_component_location.
3336 * printcmd.c (print_scalar_formatted): Update.
3337 * p-valprint.c (pascal_val_print): Add 'val' argument.
3338 (pascal_object_print_value_fields): Likewise.
3339 (pascal_object_print_value): Likewise.
3340 (pascal_object_print_static_field): Update.
3341 * p-lang.h (pascal_val_print): Update.
3342 (pascal_object_print_value_fields): Update.
3343 * mt-tdep.c (mt_registers_info): Update.
3344 * mi/mi-main.c (get_register): Update.
3345 (mi_cmd_data_evaluate_expression): Use common_val_print.
3346 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
3347 (m2_print_unbounded_array): Likewise.
3348 (m2_val_print): Likewise.
3349 * m2-lang.h (m2_val_print): Update.
3350 * language.h (struct language_defn) <la_val_print>: Add 'val'
3352 (LA_VAL_PRINT): Likewise.
3353 * language.c (unk_lang_val_print): Add 'val' argument.
3354 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
3355 (java_val_print): Likewise.
3356 * jv-lang.h (java_val_print): Add 'val' argument.
3357 * infcmd.c (default_print_registers_info): Update.
3358 * f-valprint.c (f77_print_array_1): Add 'val' argument.
3359 (f77_print_array): Likewise.
3360 (f_val_print): Likewise.
3361 * f-lang.h (f_val_print): Add 'val' argument.
3362 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
3364 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
3365 set_value_optimized_out.
3366 (write_pieced_value): Use value_bitsize and value_bitpos.
3367 <default>: Don't exit loop.
3368 (check_pieced_value_validity): New function.
3369 (pieced_value_funcs): Reference check_pieced_value_validity,
3370 check_pieced_value_invalid.
3371 (copy_pieced_value_closure): Update.
3372 (check_pieced_value_bits): New function.
3373 (check_pieced_value_invalid): New function.
3374 * d-valprint.c (dynamic_array_type): Add 'val' argument.
3375 (d_val_print): Likewise.
3376 * d-lang.h (d_val_print): Update.
3377 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
3378 (cp_print_value_fields_rtti): Likewise.
3379 (cp_print_value): Likewise.
3380 (cp_print_static_field): Update.
3381 * c-valprint.c (c_val_print): Add 'val' argument.
3382 (c_value_print): Update.
3383 * c-lang.h (c_val_print): Update.
3384 (cp_print_value_fields): Likewise.
3385 (cp_print_value_fields_rtti): Likewise.
3386 * ada-valprint.c (struct ada_val_print_args): Remove.
3387 (val_print_packed_array_elements): Add 'val' argument.
3388 (ada_val_print): Likewise. Rewrite.
3389 (ada_val_print_stub): Remove.
3390 (ada_val_print_array): Add 'val' argument.
3391 (ada_val_print_1): Likewise.
3392 (print_variant_part): Likewise.
3393 (ada_value_print): Update.
3394 (print_record): Add 'val' argument.
3395 (print_field_values): Likewise.
3396 * ada-lang.h (ada_val_print): Update.
3398 2010-06-11 Tom Tromey <tromey@redhat.com>
3400 * vec.h (VEC_cleanup): New macro.
3401 (DEF_VEC_ALLOC_FUNC_I): Update.
3402 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3403 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3404 * dwarf2loc.c (struct axs_var_loc): Remove.
3405 (unimplemented): New function.
3406 (translate_register): Likewise.
3407 (access_memory): Likewise.
3408 (compile_dwarf_to_ax): Likewise.
3409 (dwarf2_tracepoint_var_loc): Remove.
3410 (dwarf2_tracepoint_var_access): Likewise.
3411 (dwarf2_tracepoint_var_ref): Likewise.
3412 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
3413 (loclist_tracepoint_var_ref): Likewise.
3414 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
3415 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
3416 require_composition. No longer static.
3417 (execute_stack_op): Update.
3418 * ax-gdb.h (trace_kludge): Declare.
3420 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3422 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
3423 (should_be_inserted): Return zero also on NULL OWNER.
3424 (breakpoint_program_space_exit): New OWNER comment.
3425 (insert_breakpoint_locations): Extend comment for OWNER.
3426 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
3427 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
3429 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
3430 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
3431 (bpstat_check_location): New assert on OWNER.
3432 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
3433 and B initializations to the code block. New assert on them.
3434 (print_one_breakpoint_location): New OWNER comment.
3435 (watchpoint_locations_match): Assert on OWNER.
3436 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
3437 initializations to the code block. New assert on OWNER.
3438 (set_breakpoint_location_function): New assert on OWNER.
3439 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
3440 (bp_location_compare, update_global_location_list)
3441 (update_global_location_list): New OWNER comment.
3443 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3445 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
3447 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3449 * config/nm-linux.h (struct target_ops): Remove forward declaration.
3450 (lin_thread_get_thread_signals): Remove prototype.
3451 (GET_THREAD_SIGNALS): Remove.
3452 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
3453 * linux-thread-db.c (check_thread_signals): Directly call
3454 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
3456 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3458 * gregset.h (GDB_FPXREGSET_T): Remove.
3459 (gdb_fpxregset_t): Likewise.
3460 (supply_fpxregset): Remove prototype.
3461 (fill_fpxregset): Likewise.
3462 * i386-linux-nat.c (supply_fpxregset): Remove.
3463 (fill_fpxregset): Likewise.
3464 (fetch_fpxregs): Inline supply_fpxregset call.
3465 (store_fpxregs): Inline fill_fpxregset call.
3467 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
3468 * config/i386/nm-linux.h: Remove file.
3470 2010-06-09 Michael Snyder <msnyder@vmware.com>
3472 * target.c (update_current_target): Fix spelling error in comment.
3473 (target_mourn_inferior): Fix spelling error in error message.
3475 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
3477 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
3478 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
3480 2010-06-08 Michael Snyder <msnyder@vmware.com>
3482 * remote.c (remote_close): Set inferior_ptid to null_ptid.
3484 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3486 * configure.ac <"${have_libpython}" != no>: New workaround of
3488 * configure: Regenerate.
3490 2010-06-08 Hui Zhu <teawater@gmail.com>
3492 * record.c (record_wait): Move signal out of replay code.
3494 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3497 * dwarf2-frame.c (no_dwarf_call): New function.
3498 (execute_stack_op): Set CTX->DWARF_CALL.
3499 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
3500 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
3501 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
3502 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
3503 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
3504 (needs_frame_dwarf_call): New function.
3505 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
3506 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
3507 Update the comment. Move variables die, offset and error call to ...
3508 (follow_die_ref): ... a new function.
3509 (dwarf2_fetch_die_location_block): New function.
3510 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
3512 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3514 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
3515 (dwarf_expr_tls_address): Use per_cu instead of objfile.
3516 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
3517 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
3519 (struct needs_frame_baton): New field per_cu.
3520 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
3521 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
3523 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
3525 * cp-support.c (make_symbol_overload_list_namespace): Only search
3526 static and global blocks.
3527 (make_symbol_overload_list_block): New function.
3528 (make_symbol_overload_list): Separate namespace search from block
3530 (make_symbol_overload_list_qualified): Use
3531 make_symbol_overload_list_block.
3533 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
3535 * value.h: Created oload_search_type enum.
3536 (find_overload_match): Use oload_search_type enum.
3537 * valops.c (find_overload_match): Support combined member and
3539 * eval.c (evaluate_subexp_standard): Calls to
3540 find_overload_match now use oload_search_type enum.
3541 (oload_method_static): Verify index is a proper value.
3542 * valarith.c (value_user_defined_cpp_op): Search for and handle
3543 both member and non-member operators.
3544 (value_user_defined_cpp_op): New function.
3545 (value_user_defined_op): New function.
3546 (value_x_unop): Use value_user_defined_op.
3547 (value_x_binop): Ditto.
3548 * cp-support.c (make_symbol_overload_list_using): Added block
3550 Add check for namespace aliases and imported declarations.
3552 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3554 * breakpoint.h (owner): Extend the comment.
3556 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3558 Clear stale specific bp_location from former whole breakpoint.
3559 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
3561 (free_bp_location): ... here. Rename there the called function to
3562 bpstat_remove_bp_location_callback.
3563 (bpstat_remove_breakpoint_callback): Rename to ...
3564 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
3565 to struct bp_location. Change the called function to
3566 bpstat_remove_bp_location. Create new declaration for the function.
3567 (bpstat_remove_breakpoint): Rename to ...
3568 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
3569 code for the new parameter type.
3571 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
3573 * README: Make version-agnostic.
3575 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3577 Fix duplicate types for single DIE.
3578 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
3580 (read_array_type): Remove type initialization. Recheck get_die_type
3581 after initial die_type. Move set_die_type before set_descriptive_type.
3582 (read_set_type): New variable domain_type. Recheck get_die_type after
3583 initial die_type. Move attr initialization later.
3584 (read_tag_pointer_type, read_tag_reference_type): New variable
3585 target_type. Recheck get_die_type after initial die_type.
3586 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
3587 die_type and die_containing_type.
3588 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
3589 Recheck get_die_type after initial die_type.
3590 (read_subrange_type): Recheck get_die_type after initial die_type.
3591 Move set_die_type before set_descriptive_type.
3592 (set_die_type): Extend the function comment. Call complaint if DIE has
3593 some type already set.
3595 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
3597 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
3598 for current naming of thread groups (iN, not N).
3600 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
3602 * ada-lang.c (ada_operator_length): Constify `struct expression'.
3603 * parse.c (operator_length): Likewise.
3604 (operator_length_standard): Likewise.
3605 * parser-defs.h (operator_length): Likewise.
3606 (operator_length_standard): Likewise.
3607 (struct exp_descriptor <operator_length>): Likewise.
3609 2010-06-04 Doug Evans <dje@google.com>
3611 Add support for enabling/disabling individual pretty-printers.
3612 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
3613 * python/python-internal.h (gdbpy_enabled_cst): Declare.
3614 * python/python.c (gdbpy_enabled_cst): Define.
3615 (_initialize_python): Initialize gdbpy_enabled_cst.
3618 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3620 * breakpoint.c (update_global_location_list): Fix comment typo.
3622 2010-06-04 Hui Zhu <teawater@gmail.com>
3624 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
3626 2010-06-03 Doug Evans <dje@google.com>
3628 * configure.ac: Don't fail if python is unusable when
3629 configured with --with-python=auto.
3630 * configure: Regenerate.
3632 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
3634 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
3636 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
3638 * valprint.h (get_array_bounds): Change low and high parameter types
3640 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
3642 (val_print_array_elements): Adapt to change above.
3643 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
3644 * p-valprint.c (pascal_val_print): Likewise.
3646 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3648 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
3649 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
3652 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3654 Support DW_TAG_module as separate namespaces.
3655 * dwarf2read.c (typename_concat): New parameter physname.
3656 (read_module_type): New function and declaration.
3657 (scan_partial_symbols): Scan also DW_TAG_module children.
3658 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
3659 to typename_concat backward compatible physname value 0.
3660 (partial_die_full_name, read_namespace_type): Pass to typename_concat
3661 backward compatible physname value 0.
3662 (add_partial_module, read_module): Remove FIXME comment.
3663 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
3664 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
3665 DIEs under DW_TAG_module.
3666 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
3667 DW_AT_MIPS_linkage_name first, extend it for language_fortran
3668 && physname and return there instead of just setting NAME. Extend
3669 the main block for language_fortran. Pass physname parameter to the
3670 typename_concat call.
3671 (read_import_statement, read_func_scope, get_scope_pc_bounds)
3672 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
3673 (new_symbol): Fill in cplus_specific.demangled_name if it is still
3674 missing from SYMBOL_SET_NAMES in the language_fortran case.
3675 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
3677 (read_type_die) <DW_TAG_module>: New.
3678 (MAX_SEP_LEN): Increase to 7.
3679 (typename_concat): New parameter physname. New variable lead. Support
3680 also language_fortran.
3681 * f-exp.y (yylex): Consider : also as a symbol name character class.
3682 * f-lang.c: Include cp-support.h.
3683 (f_word_break_characters, f_make_symbol_completion_list): New functions.
3684 (f_language_defn): Use cp_lookup_symbol_nonlocal,
3685 f_word_break_characters and f_make_symbol_completion_list.
3686 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
3687 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
3688 * symtab.c (symbol_init_language_specific): Support language_fortran.
3689 (symbol_find_demangled_name): New comment on language_fortran.
3690 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
3691 for language_fortran.
3692 (lookup_symbol_aux_local): Check imports also for language_fortran.
3693 (default_make_symbol_completion_list): Rename to ...
3694 (default_make_symbol_completion_list_break_on): ... this name. New
3695 parameter break_on, use it.
3696 (default_make_symbol_completion_list): New stub.
3697 * symtab.h (default_make_symbol_completion_list_break_on): New
3700 2010-06-02 Joel Brobecker <brobecker@adacore.com>
3702 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
3705 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3707 * dwarf2read.c (typename_concat): Add const to the variable sep.
3709 2010-06-02 Tom Tromey <tromey@redhat.com>
3711 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
3712 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
3713 type is const. Add 'def' argument. Add missing operators, remove
3715 (decode_locdesc): Update.
3716 (dwarf2_always_disassemble): New global.
3717 (show_dwarf2_always_disassemble): New function.
3718 (_initialize_dwarf2_read): Add always-disassemble.
3719 (dwarf2_per_cu_offset_size): New function.
3720 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
3721 (piece_end_p): New function.
3722 (locexpr_describe_location_piece): Replace 'size' argument with
3723 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
3724 some constants. Remove errors.
3725 (disassemble_dwarf_expression): New function.
3726 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
3727 Add 'offset_size' argument.
3728 (loclist_describe_location): Change output formatting.
3729 * dwarf2expr.h (dwarf_stack_op_name): Declare.
3731 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
3733 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
3734 anonymous type case.
3736 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
3738 * dwarf2read.c (read_subrange_type): Handle missing base type
3739 according to Dwarf-2 specifications.
3741 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
3743 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
3745 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
3746 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
3747 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
3748 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
3749 UNOP_CHMAX, UNOP_CHMIN.
3750 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
3751 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
3752 UNOP_CHMIN>: Remove opcodes.
3754 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
3756 * dwarf2read.c (read_func_scope): Do not complain for
3757 external function if bounds are not found.
3759 2010-06-01 Pedro Alves <pedro@codesourcery.com>
3761 * NEWS: Mention gdbserver fast tracepoints support.
3763 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
3765 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
3767 (windows_set_console_info): New function.
3768 (windows_create_inferior): Call windows_set_console_info
3769 if NEW_CONSOLE is true.
3770 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
3771 (_initialize_loadable): Initialize GetConsoleFontSize and
3772 GetCurrentConsoleFont.
3774 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3776 * Makefile.in (RDYNAMIC): New.
3777 (SFILES): Add proc-service.list.
3778 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
3779 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
3780 * config/arm/linux.mh: Likewise.
3781 * config/i386/linux.mh: Likewise.
3782 * config/i386/linux64.mh: Likewise.
3783 * config/ia64/linux.mh: Likewise.
3784 * config/m32r/linux.mh: Likewise.
3785 * config/m68k/linux.mh: Likewise.
3786 * config/mips/linux.mh: Likewise.
3787 * config/pa/linux.mh: Likewise.
3788 * config/powerpc/linux.mh: Likewise.
3789 * config/powerpc/ppc64-linux.mh: Likewise.
3790 * config/s390/s390.mh: Likewise.
3791 * config/sparc/linux.mh: Likewise.
3792 * config/sparc/linux64.mh: Likewise.
3793 * config/xtensa/linux.mh: Likewise.
3794 * configure.ac: New RDYNAMIC on native host and GCC.
3795 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
3796 * configure: Regenerate.
3797 * proc-service.list: New.
3799 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3801 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
3804 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3806 * linux-nat.c (linux_nat_wait_1): Do not call
3807 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
3808 TARGET_WAITKIND_SIGNALLED.
3810 2010-05-27 Joel Brobecker <brobecker@adacore.com>
3812 * ada-lang.c (ada_inferior_data): New struct.
3813 (ada_inferior_data): New static global.
3814 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
3815 (ada_get_tsd_type): New functions.
3816 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
3817 to look the tsd type up.
3818 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
3819 event. Set ada_inferior_data.
3821 2010-05-27 Pedro Alves <pedro@codesourcery.com>
3823 * remote.c (unpack_varlen_hex): Remove forward declaration.
3824 (remote_console_output): Make static, and add forward declaration.
3825 * remote.h: Drop FIXME comment.
3826 (unpack_varlen_hex): Declare.
3827 (remote_console_output, remote_cisco_objfile_relocate)
3828 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
3829 Delete declarations.
3830 * tracepoint.c: Include "remote.h".
3831 (unpack_varlen_hex): Delete declaration.
3833 2010-05-27 Tom Tromey <tromey@redhat.com>
3835 * dwarf2loc.c (struct piece_closure) <refc>: New field.
3836 (allocate_piece_closure): Initialize refc.
3837 (copy_pieced_value_closure): Use refc.
3838 (free_pieced_value_closure): Likewise.
3840 2010-05-27 Tom Tromey <tromey@redhat.com>
3842 * arm-tdep.c (push_stack_item): 'contents' now const.
3843 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
3844 value_contents_writeable. Introduce new temporary.
3846 2010-05-27 Tom Tromey <tromey@redhat.com>
3848 * findcmd.c (parse_find_args): Use value_contents, not
3851 2010-05-27 Tom Tromey <tromey@redhat.com>
3853 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
3854 const. Use value_contents, not value_contents_writeable.
3856 2010-05-27 Joel Brobecker <brobecker@adacore.com>
3858 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
3859 by call to value_contents.
3861 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
3863 * MAINTAINERS: Add myself for write after approval privileges.
3865 2010-05-26 Doug Evans <dje@google.com>
3867 Allow python to find its files if moved from original location.
3868 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
3869 (GDB_AC_WITH_DIR): Call it.
3870 * configure.ac: Define WITH_PYTHON_PATH if we can find the
3871 python installation directory.
3872 * config.in: Regenerate.
3873 * configure: Regenerate.
3874 * defs.h (python_libdir): Declare.
3875 * main.c (python_libdir): Define.
3876 (captured_main): Initialize python_libdir.
3877 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
3878 call Py_SetProgramName to make sure python can find its libraries
3881 * configure.ac: Try to use python's distutils to fetch compilation
3883 * configure: Regenerate.
3884 * python/python-config.py: New file.
3886 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
3888 * ser-tcp.c (net_open): Check error return from socket() call by its
3889 equality to -1 not by it being negative.
3890 (net_close): Likewise.
3892 2010-05-26 Pedro Alves <pedro@codesourcery.com>
3894 * NEWS: Mention the `qRelocInsn' feature.
3895 * gdbarch.sh (relocate_instruction): New.
3896 * amd64-tdep.c (rip_relative_offset): New.
3897 (append_insns): New.
3898 (amd64_relocate_instruction): New.
3899 (amd64_init_abi): Install it.
3900 * i386-tdep.c (append_insns): New.
3901 (i386_relocate_instruction): New.
3902 (i386_gdbarch_init): Install it.
3903 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
3904 * gdbarch.h, gdbarch.c: Regenerate.
3906 2010-05-26 Tom Tromey <tromey@redhat.com>
3908 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
3909 (struct dwarf2_loclist_baton) <data>: Likewise.
3910 * dwarf2loc.c (find_location_expression): Constify return type.
3911 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
3912 (dwarf2_loc_desc_needs_frame): Likewise.
3913 (loclist_read_variable): Constify.
3914 (loclist_describe_location): Likewise.
3915 (loclist_tracepoint_var_ref): Likewise.
3917 2010-05-25 Tom Tromey <tromey@redhat.com>
3919 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
3920 (dwarf_expr_frame_base_1): Likewise.
3921 (read_pieced_value): Update.
3922 (needs_frame_frame_base): Constify.
3923 (dwarf2_tracepoint_var_loc): Likewise.
3924 (dwarf2_tracepoint_var_access): Likewise.
3925 (locexpr_describe_location_piece): Likewise.
3926 (locexpr_describe_location_1): Likewise.
3927 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
3930 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
3931 (dwarf_expr_eval, read_uleb128, read_sleb128)
3932 (dwarf2_read_address): Update.
3933 * dwarf2expr.c (dwarf_expr_eval): Constify.
3934 (read_uleb128): Likewise.
3935 (read_sleb128): Likewise.
3936 (dwarf2_read_address): Likewise.
3937 (require_composition): Likewise.
3938 (execute_stack_op): Likewise.
3939 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
3941 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
3943 (no_get_frame_base): Constify.
3944 (execute_stack_op): Likewise.
3945 (execute_cfa_program): Likewise.
3946 (read_encoded_value): Likewise.
3948 2010-05-25 Doug Evans <dje@google.com>
3950 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
3952 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
3953 * event-loop.c: ... here.
3954 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
3955 `error' for clarity.
3956 (tui_getc): Pass correct value for `error' parameter to
3957 tui_readline_output.
3959 Add python gdb.GdbError and gdb.string_to_argv.
3960 * NEWS: Document them.
3961 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
3962 the exception is gdb.GdbError. Print a second traceback if there's
3963 an error computing the error message.
3964 (gdbpy_string_to_argv): New function.
3965 * python/py-utils.c (gdbpy_obj_to_string): New function.
3966 (gdbpy_exception_to_string): New function.
3967 * python/python-internal.h (gdbpy_string_to_argv): Declare.
3968 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
3969 (gdbpy_gdberror_exc): Declare.
3970 * python/python.c (gdbpy_gdberror_exc): New global.
3971 (_initialize_python): Initialize gdbpy_gdberror_exc and create
3973 (GdbMethods): Add string_to_argv.
3975 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3977 * windows-nat.c (display_selector): Call GetLastError to give better
3978 failure explanation.
3980 2010-05-24 Pedro Alves <pedro@codesourcery.com>
3982 * config.in: Regenerate.
3984 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3987 * target.c (push_target): Return only void. Remove the return value
3989 * target.h (push_target): Return only void.
3991 2010-05-23 Pedro Alves <pedro@codesourcery.com>
3993 Update gnulib from latest git.
3994 (250b80067c1e1d8faa0c42fb572f721975b929c5)
3996 * gnulib/memcmp.c: Removed.
3997 * gnulib/memchr.valgrind: New.
3998 * gnulib/stddef.in.h: New.
3999 * gnulib/Makefile.am: Updated.
4000 * gnulib/memchr.c: Updated.
4001 * gnulib/memmem.c: Updated.
4002 * gnulib/stdint.in.h: Updated.
4003 * gnulib/str-two-way.h: Updated.
4004 * gnulib/string.in.h: Updated.
4005 * gnulib/wchar.in.h: Updated.
4007 * gnulib/extra/link-warning.h: Removed.
4008 * gnulib/extra/c++defs.h: New.
4009 * gnulib/extra/warn-on-use.h: New.
4010 * gnulib/extra/arg-nonnull.h: Updated.
4012 * gnulib/m4/extensions.m4: Updated.
4013 * gnulib/m4/gnulib-cache.m4: Updated.
4014 * gnulib/m4/gnulib-common.m4: Updated.
4015 * gnulib/m4/gnulib-comp.m4: Updated.
4016 * gnulib/m4/gnulib-tool.m4: Updated.
4017 * gnulib/m4/include_next.m4: Updated.
4018 * gnulib/m4/longlong.m4: Updated.
4019 * gnulib/m4/memchr.m4: Updated.
4020 * gnulib/m4/memmem.m4: Updated.
4021 * gnulib/m4/stdint.m4: Updated.
4022 * gnulib/m4/string_h.m4: Updated.
4023 * gnulib/m4/memcmp.m4: Removed.
4024 * gnulib/m4/onceonly_2_57.m4: Removed.
4025 * gnulib/m4/00gnulib.m4: New.
4026 * gnulib/m4/mmap-anon.m4: New.
4027 * gnulib/m4/multiarch.m4: New.
4028 * gnulib/m4/onceonly.m4: New.
4029 * gnulib/m4/stddef_h.m4: New.
4030 * gnulib/m4/warn-on-use.m4: New.
4031 * gnulib/m4/wchar.m4: Removed.
4032 * gnulib/m4/wchar_h.m4: New.
4033 * gnulib/m4/wchar_t.m4: New.
4034 * gnulib/m4/wint_t.m4: New.
4036 * aclocal.m4: Regenerate.
4037 * config.in: Likewise.
4038 * configure: Likewise.
4039 * gnulib/Makefile.in: Likewise.
4041 2010-05-21 Tom Tromey <tromey@redhat.com>
4043 * dwarf2loc.c (extract_bits_primitive): New function.
4044 (extract_bits): Likewise.
4045 (insert_bits): Likewise.
4046 (copy_bitwise): Likewise.
4047 (read_pieced_value): Do all operations in bits.
4048 (write_pieced_value): Likewise.
4049 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
4050 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
4051 Always use xrealloc to resize piece array.
4052 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
4053 <DW_OP_piece>: Update.
4054 <DW_OP_bit_piece>: New case.
4056 2010-05-21 Tom Tromey <tromey@redhat.com>
4058 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
4059 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
4060 * dwarf2expr.h (enum dwarf_value_location)
4061 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
4062 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
4063 (add_piece): Handle empty piece.
4064 (execute_stack_op) <DW_OP_piece>: Handle
4065 DWARF_VALUE_OPTIMIZED_OUT.
4067 2010-05-21 Tom Tromey <tromey@redhat.com>
4069 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
4070 evaluate_subexp, not evaluate_subexp_with_coercion.
4072 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4074 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
4077 2010-05-21 Tom Tromey <tromey@redhat.com>
4079 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
4081 (write_pieced_value): Likewise.
4083 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4085 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
4086 and DW_TAG_volatile_type.
4087 (new_symbol): Likewise.
4089 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
4091 * p-valprint.c (pascal_val_print): Call get_array_bounds
4092 to obtain the number of elements in an array.
4094 2010-05-19 Doug Evans <dje@google.com>
4096 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
4098 * python.c (source_python_script): Add comment.
4099 (source_python_script_for_objfile): Remove unnecessary call to
4102 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4103 Sergio Durigan Junior <sergiodj@redhat.com>
4106 * parse.c (exp_iterate): Use operator_length wrapper function.
4108 2010-05-18 Michael Snyder <msnyder@vmware.com>
4110 * ada-lang.c: White space.
4111 * ada-typeprint.c: White space.
4112 * ada-valprint.c: White space.
4113 * addrmap.c: White space.
4114 * auxv.c: White space.
4115 * ax-gdb.c: White space.
4117 2010-05-18 Hui Zhu <teawater@gmail.com>
4119 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
4121 (inferior_call_waitpid): Move make_cleanup out of check.
4122 Check the return of waitpid.
4123 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
4125 2010-05-17 Michael Snyder <msnyder@vmware.com>
4127 * tui/tui.c: White space.
4128 * tui/tui-data.c: White space.
4129 * tui/tui-disasm.c: White space.
4130 * tui/tui-file.c: White space.
4131 * tui/tui-interp.c: White space.
4132 * tui/tui-main.c: White space.
4133 * tui/tui-out.c: White space.
4134 * tui/tui-regs.c: White space.
4135 * tui/tui-source.c: White space.
4136 * tui/tui-stack.c: White space.
4137 * tui/tui-win.c: White space.
4138 * tui/tui-winsource.c: White space.
4140 * procfs.c: White space.
4142 * python/py-auto-load.c: White space.
4143 * python/py-block.c: White space.
4144 * python/py-breakpoint.c: White space.
4145 * python/py-cmd.c: White space.
4146 * python/py-function.c: White space.
4147 * python/py-lazy-string.c: White space.
4148 * python/py-objfile.c: White space.
4149 * python/py-param.c: White space.
4150 * python/py-prettyprint.c: White space.
4151 * python/py-progspace.c: White space.
4152 * python/py-symtab.c: White space.
4153 * python/python.c: White space.
4154 * python/py-type.c: White space.
4155 * python/py-utils.c: White space.
4156 * python/py-value.c: White space.
4158 * mi/mi-cmd-break.c: White space.
4159 * mi/mi-cmd-env.c: White space.
4160 * mi/mi-cmds.c: White space.
4161 * mi/mi-cmd-stack.c: White space.
4162 * mi/mi-cmd-var.c: White space.
4163 * mi/mi-console.c: White space.
4164 * mi/mi-getopt.c: White space.
4165 * mi/mi-interp.c: White space.
4166 * mi/mi-main.c: White space.
4167 * mi/mi-out.c: White space.
4168 * mi/mi-parse.c: White space.
4170 * cli/cli-cmds.c: White space.
4171 * cli/cli-decode.c: White space.
4172 * cli/cli-dump.c: White space.
4173 * cli/cli-interp.c: White space.
4174 * cli/cli-logging.c: White space.
4175 * cli/cli-script.c: White space.
4176 * cli/cli-setshow.c: White space.
4178 * valarith.c: White space.
4179 * valops.c: White space.
4180 * valprint.c: White space.
4181 * value.c: White space.
4182 * varobj.c: White space.
4183 * xcoffread.c: White space.
4184 * xml-support.c: White space.
4185 * xml-tdesc.c: White space.
4187 2010-05-17 Andreas Schwab <schwab@redhat.com>
4190 * c-lang.c (c_printstr): Compute real length of NUL terminated
4193 2010-05-17 Joel Brobecker <brobecker@adacore.com>
4195 * parse.c (parse_exp_in_context): When block is not NULL, use
4196 its associated language to parse the expression instead of
4197 the current_language.
4199 2010-05-17 Joel Brobecker <brobecker@adacore.com>
4201 * jv-lang.c (java_lookup_class): Remove commented out code.
4202 (type_from_class): Likewise.
4203 (java_op_print_tab): Remove commented-out elements.
4205 2010-05-17 Joel Brobecker <brobecker@adacore.com>
4207 * ada-lang.c (to_fixed_range_type): The the raw index type as
4208 argument instead of the raw type name. Remove orig_type parameter.
4209 Update calls throughout.
4210 (ada_fixup_array_indexes_type): New function.
4211 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
4212 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
4213 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
4214 Remove name parameter.
4215 (print_array_type): Add call to ada_fixup_array_indexes_type.
4216 Update calls to print_range_type.
4217 (ada_print_type): Update calls to print_range_type.
4219 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
4221 * dwarf2read.c (read_set_type): Set type length if
4222 DW_AT_byte_size attribute is present.
4224 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
4226 * p-valprint.c (pascal_val_print): Handle set type if range limits
4227 are undefined but size is known.
4229 2010-05-17 Pedro Alves <pedro@codesourcery.com>
4231 * procfs.c: Reformat.
4233 2010-05-16 Michael Snyder <msnyder@vmware.com>
4235 * target.c: White space.
4236 * target-descriptions.c: White space.
4237 * target-memory.c: White space.
4238 * thread.c: White space.
4239 * top.c: White space.
4240 * tracepoint.c: White space.
4241 * trad-frame.c: White space.
4242 * tramp-frame.c: White space.
4243 * ui-file.c: White space.
4244 * ui-out.c: White space.
4245 * user-regs.c: White space.
4246 * utils.c: White space.
4248 * scm-exp.c: White space.
4249 * scm-lang.c: White space.
4250 * scm-valprint.c: White space.
4251 * sentinel-frame.c: White space.
4252 * ser-base.c: White space.
4253 * ser-go32.c: White space.
4254 * serial.c: White space.
4255 * ser-mingw.c: White space.
4256 * ser-pipe.c: White space.
4257 * ser-tcp.c: White space.
4258 * ser-unix.c: White space.
4259 * solib.c: White space.
4260 * solib-darwin.c: White space.
4261 * solib-frv.c: White space.
4262 * solib-irix.c: White space.
4263 * solib-osf.c: White space.
4264 * solib-pa64.c: White space.
4265 * solib-som.c: White space.
4266 * solib-spu.c: White space.
4267 * solib-svr4.c: White space.
4268 * solib-target.c: White space.
4269 * source.c: White space.
4270 * stabsread.c: White space.
4271 * stack.c: White space.
4272 * std-regs.c: White space.
4273 * symfile.c: White space.
4274 * symmisc.c: White space.
4275 * symtab.c: White space.
4277 2010-05-16 Michael Snyder <msnyder@vmware.com>
4279 * source.c (_initialize_source): Add "rev" as an abbreviation
4280 for the "reverse-search" command.
4282 2010-05-16 Michael Snyder <msnyder@vmware.com>
4284 * record.c: White space.
4285 * regcache.c: White space.
4286 * reggroups.c: White space.
4287 * remote-fileio.c: White space.
4288 * remote-m32r-sdi.c: White space.
4289 * remote-mips.c: White space.
4290 * remote-sim.c: White space.
4291 * remote.c: White space.
4292 (process_g_packet): Remove orphan braces.
4294 2010-05-15 Michael Snyder <msnyder@vmware.com>
4296 * parse.c: White space.
4297 * p-lang.c: White space.
4298 * posix-hdep.c: White space.
4299 * printcmd.c: White space.
4300 * progspace.c: White space.
4301 * prologue-value.c: White space.
4302 * psymtab.c: White space.
4303 * p-typeprint.c: White space.
4304 * p-valprint.c: White space.
4306 * objc-lang.c: White space.
4307 * objfiles.c: White space.
4308 * observer.c: White space.
4309 * osabi.c: White space.
4310 * osdata.c: White space.
4312 * m2-lang.c: White space.
4313 * m2-valprint.c: White space.
4314 * macrocmd.c: White space.
4315 * macroexp.c: White space.
4316 * macroscope.c: White space.
4317 * macrotab.c: White space.
4318 * main.c: White space.
4319 * maint.c: White space.
4320 * mdebugread.c: White space.
4321 * memattr.c: White space.
4322 * minsyms.c: White space.
4323 * monitor.c: White space.
4325 2010-05-14 Michael Snyder <msnyder@vmware.com>
4327 * jv-lang.c: White space.
4328 * jv-typeprint.c: White space.
4329 * jv-valprint.c: White space.
4330 * language.c: White space.
4331 * libunwind-frame.c: White space.
4332 * linespec.c: White space.
4333 * linux-nat.c: White space.
4334 * linux-record.c: White space.
4335 * linux-thread-db.c: White space.
4337 * infcall.c: White space.
4338 * inf-child.c: White space.
4339 * infcmd.c: White space.
4340 * inferior.c: White space.
4341 * inf-loop.c: White space.
4342 * inflow.c: White space.
4343 * inline-frame.c: White space.
4344 * interps.c: White space.
4346 * gcore.c: White space.
4347 * gdb.c: White space.
4348 * gdbtypes.c: White space.
4349 * gnu-nat.c: White space.
4350 * gnu-v2-abi.c: White space.
4351 * gnu-v3-abi.c: White space.
4353 * findcmd.c: White space.
4354 * findvar.c: White space.
4355 * fork-child.c: White space.
4356 * frame-base.c: White space.
4357 * frame.c: White space.
4358 * frame-unwind.c: White space.
4359 * f-valprint.c: White space.
4361 * elfread.c: White space.
4362 * environ.c: White space.
4363 * eval.c: White space.
4364 * event-loop.c: White space.
4365 * event-top.c: White space.
4366 * exceptions.c: White space.
4367 * exec.c: White space.
4368 * expprint.c: White space.
4370 * dbxread.c: White space.
4371 * dcache.c: White space.
4372 * disasm.c: White space.
4373 * doublest.c: White space.
4374 * dsrec.c: White space.
4375 * dummy-frame.c: White space.
4376 * dwarf2expr.c: White space.
4377 * dwarf2-frame.c: White space.
4378 * dwarf2loc.c: White space.
4379 * dwarf2read.c: White space.
4381 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
4385 * python/py-value.c (valpy_hash): New function.
4386 (value_object_type): Register valpy_hash.
4388 2010-05-14 Hui Zhu <teawater@gmail.com>
4389 Michael Snyder <msnyder@vmware.com>
4391 * linux-fork.c (gdbthread.h): New include.
4392 (fork_info): Add parent_ptid.
4393 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
4395 (delete_checkpoint_command): Call inferior_call_waitpid.
4396 (checkpoint_command): Set parent_ptid.
4398 2010-05-13 Michael Snyder <msnyder@vmware.com>
4400 * dictionary.c: Re-indent to GNU coding standard.
4402 * charset.c: White space.
4403 * c-lang.c: White space.
4404 * cli-out.c: White space.
4405 * coffread.c: White space.
4406 * complaints.c: White space.
4407 * completer.c: White space.
4408 * corefile.c: White space.
4409 * corelow.c: White space.
4410 * cp-abi.c: White space.
4411 * cp-namespace.c: White space.
4412 * cp-support.c: White space.
4413 * cp-valprint.c: White space.
4414 * c-typeprint.c: White space.
4415 * c-valprint.c: White space.
4416 * blockframe.c: White space.
4417 * breakpoint.c: White space.
4418 * buildsym.c: White space.
4419 * blockframe.c: White space.
4420 * bcache.c: White space.
4421 * gdbarch.sh: White space, add blank lines.
4422 * arch-utils.c: Ditto.
4423 * gdbarch.c: Regenerate.
4424 * frame.c: White space, add blank lines.
4425 * stack.c: White space, add blank lines.
4426 (initialize_stack): Remove long-dead code.
4428 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4431 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
4432 (locexpr_read_variable, loclist_read_variable): Update the callers.
4434 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4437 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
4438 Remove check of NULL returned by tag_type_to_type.
4439 (die_containing_type): Remove variable type. Remove type_die variable
4440 initialization. Remove check of NULL returned by tag_type_to_type.
4442 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
4445 * gdbtypes.c (lookup_struct_elt_type): Also lookup
4446 names of unnamed structures or unions.
4448 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
4450 * procfs.c (proc_watchpoint_address): New function.
4451 (procfs_stopped_by_watchpoint): Remove useless check after
4452 find_procinfo_or_die call.
4453 (procfs_stopped_data_address): New function.
4454 (procfs_use_watchpoints): Register new watchpoint related function.
4456 2010-05-11 Tom Tromey <tromey@redhat.com>
4458 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
4460 2010-05-10 Michael Snyder <msnyder@vmware.com>
4462 * utils.c: White space cleanup.
4464 2010-05-10 Tom Tromey <tromey@redhat.com>
4466 * eval.c (ptrmath_type_p): Add 'lang' argument.
4467 (evaluate_subexp_standard): Update.
4468 (evaluate_subexp_with_coercion): Update.
4469 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
4471 2010-05-10 Michael Snyder <msnyder@vmware.com>
4473 * utils.c (do_fclose_cleanup) Restore local variable.
4475 2010-05-09 Doug Evans <dje@google.com>
4477 * record.c (init_record_core_ops): Rename record_core to record-core.
4479 2010-05-08 Joel Brobecker <brobecker@adacore.com>
4481 Implement task switching on pa-hpux.
4482 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
4483 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
4485 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
4487 * valops.c (find_overload_match): Add missing i18n markup.
4489 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
4491 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
4493 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4495 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
4496 list for the obconcat call.
4497 * mdebugread.c (parse_symbol): Likewise.
4498 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
4500 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
4501 New variable ap. Remove variables len and val.
4502 * symfile.h (obconcat): Likewise for the prototype.
4504 2010-05-07 Michael Snyder <msnyder@vmware.com>
4506 * python/python.c (execute_gdb_command): Remove unused variables.
4507 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
4508 * python/py-breakpoint.c (gdbpy_breakpoint_created):
4509 Remove unused variable.
4510 * python/py-cmd.c (cmdpy_function): Remove unused variable.
4511 (cmdpy_completer): Remove unused variable.
4512 * python/py-frame.c (frapy_find_sal): Remove unused variable.
4513 * python/py-function.c (fnpy_call): Remove unused variable.
4514 * python/py-objfile.c (objfile_to_objfile_object):
4515 Remove unused variable.
4516 * python/py-param.c (parmpy_init): Remove unused variable.
4517 * python/py-prettyprint.c (apply_varobj_pretty_printer):
4518 Remove unused variable.
4519 (gdbpy_default_visualizer): Remove unused variable.
4520 * python/py-progspace.c (pspace_to_pspace_object):
4521 Remove unused variable.
4522 * python/py-symtab.c (symtab_and_line_to_sal_object):
4523 Remove unused variable.
4524 * python/py-type.c (typy_template_argument):
4525 Remove unused variable.
4526 * python/py-value.c (valpy_string): Remove unused variable.
4527 (convert_value_from_python): Remove unused variables.
4529 2010-05-07 Michael Snyder <msnyder@vmware.com>
4531 * valops.c (value_cast_pointers): Restore unused variable 'type1',
4532 and use it to compute variable 't1'.
4534 2010-05-07 Joel Brobecker <brobecker@adacore.com>
4536 * ada-lang.c (assign_aggregate): Remove unused variable.
4538 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
4541 * valops.c (find_overload_match): Handle fsym == NULL case.
4542 Add int no_adl argument.
4543 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
4545 Add int no_adl argument.
4546 (find_oload_champ_namespace): Add int no_adl argument.
4547 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
4549 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
4550 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
4551 Evaluate arguments and use them to perform ADL lookup.
4552 Pass no_adl argument to find_overload_match.
4553 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
4554 * cp-support.h: Added prototype for
4555 make_symbol_overload_list_namespace.
4556 * cp-support.c (make_symbol_overload_list_namespace): New function.
4557 (make_symbol_overload_list_adl_namespace): New function.
4558 (make_symbol_overload_list_adl): New function.
4559 (make_symbol_overload_list_using): Moved code to add function to
4560 overload set to make_symbol_overload_list_namespace.
4561 * c-exp.y: create UNKNOWN_CPP_NAME token.
4562 Add parse rule for ADL functions.
4563 (classify_name): Recognize an UNKNOWN_CPP_NAME.
4565 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4567 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
4570 2010-05-07 Joel Brobecker <brobecker@adacore.com>
4572 Implement task switching on solaris targets.
4573 * sol-thread.c (thread_db_find_thread_from_tid)
4574 (sol_get_ada_task_ptid): New functions.
4575 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
4577 2010-05-07 Pedro Alves <pedro@codesourcery.com>
4579 * remote.c (remote_query_supported_append): Use reconcat.
4580 (remote_query_supported): Install a cleanup. Use reconcat.
4582 2010-05-07 Pedro Alves <pedro@codesourcery.com>
4584 * gdbarch.sh (qsupported): Delete.
4585 * gdbarch.h, gdbarch.c: Regenerate.
4586 * remote.c (remote_query_supported): Remove use of
4589 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
4591 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
4594 2010-05-06 Michael Snyder <msnyder@vmware.com>
4596 * xml-support.c (xinclude_start_include): Delete unused variable.
4597 (xml_process_xincludes): Delete unused variable.
4598 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
4599 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
4600 (tdesc_find_arch_register): Delete unused variable.
4601 (tdesc_use_registers): Delete unused variable.
4602 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
4603 * inferior.c (print_inferior): Delete unused variable.
4604 * record.c (record_open_1): Delete unused variable.
4605 (record_restore): Delete unused variable.
4606 (cmd_record_save): Delete unused variable.
4607 * gcore.c (derive_heap_segment): Delete unused variable.
4608 (objfile_find_memory_regions): Use unused variable.
4609 * jit.c (jit_inferior_init): Delete unused variable.
4610 * progspace.c (clone_program_space): Delete unused variable.
4611 (pspace_empty_p): Delete unused variable.
4613 * frame-unwind.c (frame_unwind_find_by_frame):
4614 Delete unused variable.
4615 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
4616 * cp-support.c (mangled_name_to_comp): Delete unused variable.
4617 (method_name_from_physname): Delete unused variable.
4618 (cp_func_name): Delete unused variable.
4619 (cp_validate_operator): Delete unused variable.
4620 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
4621 Delete unused variable.
4622 * trad-frame.c (trad_frame_get_prev_register):
4623 Delete unused variable.
4624 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
4626 * serial.c (serial_for_fd): Delete unused variable.
4627 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
4628 * top.c (execute_command): Delete unused variable.
4629 (init_main): Delete unused variable.
4630 * utils.c (do_fclose_cleanup): Delete unused variable.
4631 (do_all_inferior_continuations): Delete unused variable.
4632 (initialize_utils): Delete unused variable.
4633 (internal_problem_mode): Delete unused global.
4634 * frame.c (get_prev_frame): Delete unused global.
4635 (get_frame_locals_address): Delete unused global.
4636 (get_frame_args_address): Delete unused global.
4638 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
4639 (pascal_type_print_varspec_prefix): Delete unused variable.
4640 * f-typeprint.c (f_type_print_base): Delete unused variable.
4641 (f_type_print_varspec_suffix): Delete unused variable.
4642 * m2-typeprint.c (m2_print_type): Delete unused variable.
4643 (m2_long_set): Delete unused variable.
4644 * ada-valprint.c (ada_val_print_1): Delete unused variable.
4645 * d-valprint.c (dynamic_array_type): Delete unused variable.
4646 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
4647 Delete unused variable.
4648 (f77_create_arrayprint_offset_tbl): Delete unused variable.
4649 * m2-valprint.c (m2_val_print): Delete unused variable.
4651 * ui-out.c (ui_out_field_int): Delete unused variable.
4652 (ui_out_field_fmt_int): Delete unused variable.
4653 * varobj.c (varobj_list_children): Delete unused variable.
4654 (varobj_set_value): Delete unused variable.
4655 (install_new_value_visualizer): Delete unused variable.
4656 (varobj_set_visualizer): Delete unused variable.
4657 (varobj_update): Delete unused variable.
4658 (varobj_editable_p): Delete unused variable.
4659 (c_value_of_root): Delete unused variable.
4660 (cplus_describe_child): Delete unused variable.
4662 * ada-lang.c (add_defn_to_vec): Delete unused variable.
4663 (decode_constrained_packed_array_type): Delete unused variable.
4664 (add_defn_to_vec): Delete unused variable.
4665 (symbol_completion_match): Delete unused variable.
4666 (value_tag_from_contents_and_address): Delete unused variable.
4667 (ada_evaluate_subexp): Delete unused variable.
4668 * c-lang.c (classify_type): Delete unused variable.
4669 * f-lang.c (f_printstr): Delete unused variable.
4670 * objc-lang.c (objc_printstr): Delete unused variable.
4671 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
4672 * jv-lang.c (type_from_class): ifdef unused variable.
4673 (java_class_name_from_physname): Delete unused variable.
4674 * m2-lang.c (m2_printstr): Delete unused variable.
4676 * objfiles.c (objfile_relocate): Delete unused variable.
4677 * maint.c (_initialize_maint_cmds): Delete unused variable.
4678 * demangle.c (_initialize_demangler): Delete unused variable.
4679 * corefile.c (reopen_exec_file): Delete unused variable.
4680 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
4681 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
4683 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
4684 * memattr.c (mem_delete): Delete unused variable.
4685 (invalidate_target_mem_regions): Delete unused variable.
4686 * mem-break.c (default_memory_insert_breakpoint):
4687 Delete unused variable.
4688 * target.c (target_get_osdata): Delete unused variable.
4689 * parse.c (length_of_subexp): Delete unused variable.
4690 (prefixify_subexp): Delete unused variable.
4691 (exp_iterate): Delete unused variable.
4692 * reverse.c (delete_bookmark_command): Delete unused variable.
4694 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
4695 * macroexp.c (gather_arguments): Delete unused variable.
4696 (substitute_args): Delete unused variable.
4697 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
4698 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
4699 (_initialize_gdbarch): Delete unused variable.
4700 * gdbarch.c, gdbarch.h: Regenerate.
4701 * arch-utils.c (initialize_current_architecture):
4702 Delete unused variable.
4703 (_initialize_gdbarch_utils): Delete unused variable.
4704 * gdbtypes.c (make_cv_type): Delete unused variable.
4705 (make_type_with_address_space): Delete unused variable.
4707 * linespec.c (decode_compound): Delete unused variable.
4708 * dictionary.c (iterator_next_hashed): Delete unused variable.
4709 * infcall.c (call_function_by_hand): Delete unused variable.
4710 * infcmd.c (step_1): Delete unused variable.
4711 (registers_info): Delete unused variable.
4712 (attach_command): Delete unused variable.
4713 * infrun.c (follow_exec): Delete unused variable.
4714 (handle_step_into_function_backwards): Delete unused variable.
4715 (_initialize_infrun): Delete unused variable.
4716 * stack.c (parse_frame_specification_1): Delete unused variable.
4717 (frame_info): Delete unused variable.
4718 (backtrace_command_1): Delete unused variable.
4719 (catch_info): Delete unused variable.
4721 * eval.c (evaluate_subexp_standard): Delete unused variable.
4722 * valops.c (value_cast_pointers): Delete unused variable.
4723 (value_dynamic_cast): Delete unused variable.
4724 (value_array): Delete unused variable.
4725 (find_overload_match): Delete unused variable.
4726 * valarith.c (value_subscript): Delete unused variable.
4727 (value_binop): Delete unused variable.
4728 * valprint.c (_initialize_valprint): Delete unused variable.
4729 * printcmd.c (print_command_1): Delete unused variable.
4730 (address_info): Delete unused variable.
4731 (printf_command): Delete unused variable.
4733 * auxv.c (target_auxv_search): Delete unused variable.
4734 * blockframe.c (get_frame_block): Delete unused variable.
4735 * regcache.c (regcache_cpy): Delete unused variable.
4736 (regcache_cpy_no_passthrough): Delete unused variable.
4737 * charset.c (wchar_iterate): Delete unused variable.
4738 (find_charset_names): Delete unused variable.
4739 (_initialize_charset): Delete unused variable.
4740 * disasm.c (do_mixed_source_and_assembly):
4741 Delete unused variable.
4742 * source.c (set_default_source_symtab_and_line):
4743 Delete unused variable.
4744 (set_substitute_path_command): Delete unused variable.
4745 * value.c (preserve_values): Delete unused variable.
4746 (value_from_double): Delete unused variable.
4748 2010-05-05 Michael Snyder <msnyder@vmware.com>
4750 * psymtab.c (lookup_partial_symbol): Delete unused variable.
4751 (find_last_source_symtab_from_partial): Delete unused variable.
4752 * symfile.c (place_section): Delete unused variable.
4753 (default_symfile_offsets): Delete unused variable.
4754 (get_debug_link_info): Delete unused variable.
4755 (find_separate_debug_file_by_debuglink): Delete unused variable.
4756 (add_symbol_file_command): Delete unused variable.
4757 (symfile_find_segment_sections): Delete unused variable.
4758 * symmisc.c (free_symtab): Delete unused variable.
4759 (dump_symtab_1): Delete unused variable.
4760 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
4761 (find_pc_sect_symtab): Delete unused variable.
4762 (skip_prologue_using_lineinfo): Delete unused variable.
4763 (sources_info): Delete unused variable.
4764 (completion_list_add_name): Delete unused variable.
4765 (expand_line_sal): Delete unused variable.
4767 * breakpoint.c (validate_commands_for_breakpoint):
4768 Delete unused variables.
4769 (insert_catchpoint): Delete unused variable.
4770 (update_watchpoint): Delete unused variable.
4771 (insert_bp_location): Delete unused variable.
4772 (insert_breakpoint_locations): Delete unused variable.
4773 (remove_breakpoint_1): Delete unused variable.
4774 (software_breakpoint_inserted_here_p): Delete unused variable.
4775 (watchpoints_triggered): Delete unused variable.
4776 (bpstat_check_watchpoint): Delete unused variable.
4777 (bpstat_stop_status): Delete unused variable.
4778 (print_one_breakpoint_location): Delete unused variable.
4779 (allocate_bp_location): Delete unused variable.
4780 (create_breakpoint): Delete unused variable.
4781 (watch_command_1): Delete unused variable.
4782 (catch_exception_command_1): Delete unused variable.
4783 (catch_ada_exception_command): Delete unused variable.
4784 (delete_breakpoint): Delete unused variable.
4785 (breakpoint_re_set_one): Delete unused variable.
4786 (do_enable_breakpoint): Delete unused variable.
4788 2010-05-06 Pedro Alves <pedro@codesourcery.com>
4790 * amd64-tdep.c: Include disasm.h.
4791 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
4792 (amd64_insn_length): Moved to disasm.c and renamed.
4793 (fixup_riprel): Adjust.
4794 * disasm.c (do_ui_file_delete): New.
4795 (gdb_insn_length): New.
4796 (gdb_buffered_insn_length_fprintf)
4797 (gdb_buffered_insn_length_init_dis)
4798 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
4800 * disasm.h (gdb_insn_length): Declare.
4801 (gdb_buffered_insn_length): Declare.
4803 2010-05-06 Pedro Alves <pedro@codesourcery.com>
4805 * remote.c (clear_threads_parsing_context): New.
4806 (remote_threads_info): Delete unused null_cleanup. Install a
4807 cleanup to clear the threads_parsing_context in case parsing
4810 2010-05-05 Michael Snyder <msnyder@vmware.com>
4812 * c-exp.y (parse_string_or_char): Delete unused variable.
4813 (c_lex): Delete unused variable.
4814 * cp-name-parser.y (cpname_lex): Delete unused variable.
4815 * ada-exp.y (find_primitive_type): Delete unused variable.
4816 (write_var_or_type): Delete unused variable.
4817 * jv-exp.y (java_parse): Delete unused variable.
4818 (push_expression_name): Delete unused variable.
4819 * p-exp.y (pascal_lex): Delete unused variable.
4821 2010-05-05 Pedro Alves <pedro@codesourcery.com>
4823 * remote.c (remote_threads_info): Really revert previous previous
4826 2010-05-05 Michael Snyder <msnyder@vmware.com>
4828 * elfread.c (elf_symtab_read): Delete unused variable.
4829 (find_separate_debug_file_by_buildid): Delete unused variables.
4830 (elf_symfile_read): Delete unused variable.
4832 * coffread.c (coff_symfile_read): Delete unused variables.
4834 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
4835 (read_pe_exported_syms): Delete unused variable.
4837 * stabsread.c (define_symbol): Delete unused variable.
4839 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
4840 (process_psymtab_comp_unit): Delete unused variable.
4841 (dwarf2_build_psymtabs_hard): Delete unused variable.
4842 (load_partial_comp_unit): Delete unused variable.
4843 (create_all_comp_units): Delete unused variable.
4844 (scan_partial_symbols): Delete unused variable.
4845 (add_partial_symbol): Delete unused variable.
4846 (add_partial_namespace): Delete unused variable.
4847 (add_partial_enumeration): Delete unused variable.
4848 (load_full_comp_unit): Delete unused variable.
4849 (process_full_comp_unit): Delete unused variable.
4850 (read_file_scope): Delete unused variable.
4851 (read_type_unit_scope): Delete unused variable.
4852 (process_structure_scope): Delete unused variable.
4853 (process_enumeration_scope): Delete unused variable.
4854 (read_tag_ptr_to_member_type): Delete unused variable.
4855 (read_typedef): Delete unused variable.
4856 (read_partial_die): Delete unused variable.
4857 (decode_locdesc): Delete unused variable.
4858 (zeroed_partial_die): Delete unused global variable.
4860 * tui/tui-interp.c (_initialize_tui_interp):
4861 Delete unused variable.
4862 * tui/tui-regs.c tui_display_registers_from):
4863 Delete unused variable.
4864 (tui_check_register_values): Delete unused variable.
4865 (tui_register_format): Delete unused variable.
4866 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
4867 * tui/tui-windata.c (tui_display_data_from_line):
4868 Delete unused variables.
4869 (tui_vertical_data_scroll): Delete unused variables.
4871 2010-05-05 Michael Snyder <msnyder@vmware.com>
4873 * remote.c (remote_threads_info): Revert questionable part of
4874 the previous change.
4876 2010-05-05 Michael Snyder <msnyder@vmware.com>
4878 * mi/mi-out.c (mi_table_begin): Delete unused variable.
4879 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
4880 (mi_cmd_var_list_children): Delete unused variable.
4881 (varobj_update_one): Delete unused variable.
4882 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
4883 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
4884 Delete unused variable.
4885 (mi_cmd_stack_list_variables): Delete unused variable.
4886 (list_args_or_locals): Delete unused variable.
4887 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
4888 Delete unused variables.
4889 (mi_cmd_file_list_exec_source_files): Delete unused variable.
4890 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
4891 Delete unused variable.
4892 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
4893 (mi_cmd_interpreter_exec): Delete unused variable.
4894 (mi_on_normal_stop): Delete unused variable.
4895 * mi/mi-main.c (run_one_inferior): Delete unused variable.
4896 (print_one_inferior): Delete unused variables.
4897 (mi_execute_command): Delete unused variable.
4898 (mi_cmd_execute): Delete unused variable.
4899 (timestamp): Delete unused variable.
4901 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
4902 (restore_binary_file): Delete unused variable.
4903 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
4904 * cli/cli-script.c (define_command): Delete unused variables.
4905 (recurse_read_control_structure): Delete unused variable.
4906 (script_from_file): Delete unused variable.
4907 * cli/cli-cmds.c (complete_command): Delete unused variable.
4908 (disassemble_command): Delete unused variable.
4910 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
4911 * tracepoint.c (delete_trace_variable_command):
4912 Delete unused variables.
4913 (encode_actions_1): Delete unused variables.
4914 (start_tracing): Delete unused variable.
4915 (trace_status_mi): Delete unused variable.
4916 (tfind_1): Delete unused variable.
4917 (trace_find_pc_command): Delete unused variable.
4918 (trace_find_line_command): Delete unused variables.
4919 (trace_find_range_command): Delete unused variables.
4920 (trace_find_outside_command): Delete unused variables.
4921 (parse_tracepoint_definition): Delete unused variables.
4922 (tfile_fetch_registers): Delete unused variable.
4924 * dcache.c (dcache_init): Delete unused variable.
4925 (dcache_info): Delete unused variable.
4927 * remote.c (remote_threads_info): Delete unused variable.
4928 (process_stop_reply) :Delete unused variable.
4929 (remote_get_trace_status): Delete unused variables.
4931 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
4932 (thread_from_lwp): Delete unused variable.
4933 (enable_thread_event_reporting): Delete unused variable.
4934 (check_for_thread_db): Delete unused variables.
4935 (thread_db_find_new_threads_2): Delete unused variable.
4937 * linux-fork.c (info_checkpoints_command): Delete unused variables.
4938 (checkpoint_command): Delete unused variable.
4939 (linux_fork_context): Delete unused variables.
4941 * linux-nat.c (linux_parent_pid): Delete unused global variable.
4942 (linux_tracefork_child): Delete unused variable.
4943 (linux_child_follow_fork): Delete unused variable.
4944 (linux_nat_detach): Delete unused variable.
4945 (linux_handle_extended_wait): Delete unused variable.
4946 (linux_nat_has_pending_sigint): Delete unused variable.
4947 (linux_nat_find_memory_regions): Delete unused variable.
4948 (linux_nat_make_corefile_notes): Delete unused variables.
4949 (linux_nat_info_proc_cmd): Delete unused variable.
4950 (linux_proc_pending_signals): Delete unused variable.
4951 (linux_nat_stop_lwp): Delete unused variables.
4952 (_initialize_linux_nat): Delete unused variable.
4954 * ser-pipe.c (pipe_ops): Delete unused global variable.
4956 * linux-record.c (record_linux_system_call):
4957 Delete unused variables.
4959 * corelow.c (core_xfer_partial): Delete unused variables.
4961 * solib-svr4.c (find_program_interpreter): Delete unused variable.
4962 (svr4_solib_create_inferior_hook): Add ifdef around
4963 conditionally-used variable declarations.
4965 * solib.c (solib_find): Delete unused variable.
4966 (free_so_symbols): Delete unused variable.
4967 (info_sharedlibrary_command): Delete unused variable.
4968 (reload_shared_libraries_1): Delete unused variable.
4969 (_initialize_solib): Delete unused variable.
4971 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
4972 (i386_collect_xstateregset): Delete unused variable.
4973 * i387-tdep.c (i387_print_float_info): Delete unused variable.
4975 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
4976 Delete unused variable 'type'.
4978 2010-05-05 Joel Brobecker <brobecker@adacore.com>
4980 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
4981 ada-lang.c: Remove comment mentioning these macros.
4982 * m2-exp.y: Delete commented out code.
4984 2010-05-05 Joel Brobecker <brobecker@adacore.com>
4986 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
4988 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
4990 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
4992 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
4993 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
4995 (cleanup_kernel_helper_return): Likewise.
4996 * arm-tdep.c (copy_unmodified): Likewise.
4997 (copy_preload): Likewise.
4998 (copy_copro_load_store): Likewise.
4999 (cleanup_branch): Likewise.
5000 (copy_b_bl_blx): Likewise.
5001 (copy_bx_blx_reg): Likewise.
5002 (copy_alu_imm): Likewise.
5003 (copy_alu_reg): Likewise.
5004 (copy_alu_shifted_reg): Likewise.
5005 (cleanup_load): Likewise.
5006 (cleanup_store): Likewise.
5007 (cleanup_block_load_pc): Likewise.
5008 (cleanup_svc): Likewise.
5009 (copy_undef): Likewise.
5010 (copy_unpred): Likewise.
5011 * remote.c (register_remote_support_xml): Likewise.
5013 2010-05-05 Hui Zhu <teawater@gmail.com>
5015 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
5017 2010-05-04 Mark Kettenis <kettenis@gnu.org>
5019 * remote.c (register_remote_support_xml)
5020 (remote_query_supported_append, remote_query_supported): Add cast
5021 to NULL used as sentinel.
5022 * tracepoint.c (tvariables_info_1): Likewise.
5023 * utils.c (add_internal_problem_command): Likewise.
5025 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5027 * dwarf2loc.c (read_pieced_value, write_pieced_value,
5028 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
5029 registers gracefully.
5031 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5033 * exec.c (print_section_info): Display entry point without arch
5036 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
5039 * printcmd.c (x_command): Only dereference once implicitly for
5042 2010-05-03 Doug Evans <dje@google.com>
5044 * event-loop.c (gdb_timer): Delete unused global.
5045 (create_timer): Update.
5047 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5049 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
5050 CURRENT->DECLARATION case.
5051 * cp-support.h (struct using_direct): Provide extended comment.
5053 2010-05-03 Mark Kettenis <kettenis@gnu.org>
5055 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
5056 HPPABSD_SIZEOF_GREGS.
5057 (HPPAOBSD_SIZEOF_FPREGS): New define.
5058 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
5059 (hppaobsd_supply_fpregset): New function.
5060 (hppaobsd_gregset): Renamed from hppabsd_gregset.
5061 (hppaobsd_fpregset): New variable.
5062 (hppaobsd_regset_from_core_section): Handle floating-point registers.
5063 (_initialize_hppabsd_tdep): Remove spurious blank line.
5065 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5068 * p-valprint.c (pascal_value_print): Always dereference a value with
5069 type code TYPE_CODE_REF.
5071 2010-05-03 Pedro Alves <pedro@codesourcery.com>
5073 * remote.c (remote_notice_signals): New.
5074 (remote_start_remote): In non-stop mode, update the remote end on
5075 which signals it can silently pass.
5076 (init_remote_ops): Install remote_notice_signals.
5078 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5080 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
5081 * command.h (error_no_arg): ... here. Remove NORETURN, change
5082 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5083 * defs.h (NORETURN, ATTR_NORETURN): Remove.
5084 (perror_with_name, verror, error, error_stream, vfatal, fatal)
5085 (internal_verror, internal_error, nomem): Remove NORETURN, change
5086 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5087 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
5088 (throw_vfatal, throw_error): Remove NORETURN.
5089 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
5090 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
5091 (throw_error, deprecated_throw_reason): Remove NORETURN, change
5092 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5093 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
5094 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
5096 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
5097 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
5099 * target.c (tcomplain): Likewise.
5100 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
5102 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
5103 (internal_error, perror_with_name, nomem): Remove NORETURN.
5104 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
5107 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5109 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5110 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
5111 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
5112 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5113 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
5114 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5115 * complaints.h (complaint, internal_complaint): Likewise.
5116 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
5117 (ATTR_FORMAT): Remove.
5118 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
5119 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
5120 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
5121 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
5122 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
5123 (internal_error, internal_vwarning, internal_warning, warning)
5124 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5125 * disasm.c (fprintf_disasm): Likewise.
5126 * exceptions.c (throw_it): Likewise.
5127 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
5128 (throw_error): Likewise.
5129 * language.h (type_error, range_error): Likewise.
5130 * linespec.c (cplusplus_error): Likewise.
5131 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
5132 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
5133 * monitor.c (monitor_debug): Likewise.
5134 * parser-defs.h (parser_fprintf): Likewise.
5135 * serial.h (serial_printf): Likewise.
5136 * tui/tui-hooks.c (tui_query_hook): Likewise.
5137 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
5138 (uo_message): Likewise.
5139 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
5140 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
5142 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
5144 2010-05-02 Pedro Alves <pedro@codesourcery.com>
5146 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
5147 (cli_table_header, cli_begin, cli_end, cli_field_int)
5148 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
5149 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
5150 Delete forward declarations.
5151 (cli_ui_out_impl): Move below the callbacks.
5152 (_initialize_cli_out): Delete.
5154 2010-05-02 Pedro Alves <pedro@codesourcery.com>
5156 * README: Use consistent `GDB' and `GDBserver' spellings.
5158 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5160 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
5162 2010-05-01 Pedro Alves <pedro@codesourcery.com>
5164 * infrun.c (prepare_for_detach): In non-stop, context switch to
5165 the thread that got the event before handling the event.
5167 2010-04-30 Tom Tromey <tromey@redhat.com>
5169 * symtab.c (symbol_set_names): Fix typo.
5171 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5173 * python/py-param.c (parm_constants): Avoid ARI warning
5174 by adding ARI comment.
5175 (parmpy_init): Likewise.
5177 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5179 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
5180 and created type for re-use.
5182 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5184 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
5186 2010-04-29 Doug Evans <dje@google.com>
5188 * ser-base.h (reschedule): Delete prototype.
5189 * ser-base.c (reschedule): Make static.
5191 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5193 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
5194 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
5195 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
5197 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
5200 2010-04-29 Pedro Alves <pedro@codesourcery.com>
5204 * regcache.c (registers_changed): Rename to ...
5205 (registers_changed_ptid): ... this, and only delete register cache
5206 entries matching the ptid filter argument.
5207 (registers_changed): Reimplement on top of registers_changed_ptid.
5208 * regcache.h (registers_changed_ptid): Declare.
5209 * target.c (target_resume): Flush register caches.
5211 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
5212 Tom Tromey <tromey@redhat.com>
5213 Thiago Jung Bauermann <bauerman@br.ibm.com>
5215 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
5216 (SUBDIR_PYTHON_SRCS): Likewise.
5217 (py-parameter.o): New rule.
5218 * python/py-parameter.c: New file.
5219 * python/python-internal.h (gdbpy_initialize_parameter)
5220 (gdbpy_parameter, gdbpy_parameter_value)
5221 (gdbpy_parse_command_name): Declare.
5222 * python/py-cmd.c (parse_command_name): Rename to
5223 gdbpy_parse_command_name.
5224 (gdbpy_parse_command_name): Accept a starting list parameter and
5226 (cmdpy_init): Use gdbpy_parse_command_name.
5227 * python/python.c (parameter_to_python): Rename to
5228 gdbpy_parameter_to_python. Accept enum var_types and value.
5229 (gdbpy_parameter): Use gdbpy_parameter_value.
5230 (_initialize_python): Call gdbpy_initialize_parameters.
5232 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5234 * MAINTAINERS: Add myself for write after approval privileges.
5236 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
5239 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
5240 (COMMON_OBS): Add d-lang.o d-valprint.o.
5241 (HFILES_NO_SRCDIR): Add d-lang.h.
5242 * NEWS: Mention D language support.
5243 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
5244 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
5245 * d-lang.c: New file.
5246 * d-lang.h: New file.
5247 * d-valprint.c: New file.
5248 * defs.h (enum language): Add language_d.
5249 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
5250 * language.c (binop_result_type, integral_type, character_type)
5251 (string_type, boolean_type, structured_type): Add language_d.
5252 * symfile.c (init_filename_language_table): Add language_d.
5253 * symtab.c: Include d-lang.h.
5254 (symbol_init_language_specific, symbol_find_demangled_name)
5255 (symbol_natural_name, lookup_symbol_in_language)
5256 (symbol_demangled_name, symbol_matches_domain): Add language_d.
5258 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5260 * solib-svr4.c (solib_svr4_r_map): Expand function description.
5262 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5264 * symfile.c (init_filename_language_table): Register .dg files
5267 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5269 * gdbtypes.h (struct main_type): Expand comment about target_type
5272 2010-04-27 Pedro Alves <pedro@codesourcery.com>
5273 Tristan Gingold <gingold@adacore.com>
5275 * symfile.c (reread_symbols): Also search for file in libraries.
5278 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5280 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
5281 in terms of configuration.
5283 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5285 * objfiles.c: Include solist.h.
5286 (free_all_objfiles): New variable so. Check stale solist objfiles.
5287 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
5288 and no_shared_libraries.
5290 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5293 * python/py-auto-load.c (source_section_scripts): Remove trailing
5294 new-line in i18n string.
5296 2010-04-26 Doug Evans <dje@google.com>
5298 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
5300 2010-04-26 Tom Tromey <tromey@redhat.com>
5302 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
5305 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
5307 Removal of config/i386/nm-i386sol2.h native configuration file.
5308 * config/i386/nm-i386sol2.h: Remove file.
5309 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
5310 * config/i386/sol2-64.mh: Idem.
5311 * config/djgpp/fnchange.lst: Remove reference to that file.
5312 * Makefile.in (HFILES_NO_SRCDIR): Idem.
5314 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
5316 PR breakpoints/11531.
5317 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
5318 macro definition and related comment.
5319 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
5320 (resume): Remove code and comment related to this macro.
5322 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5324 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
5327 2010-04-24 Pedro Alves <pedro@codesourcery.com>
5329 * defs.h: Adjust comment.
5330 * filesystem.h, filesystem.c: New files.
5331 * Makefile.in (SFILES): Add filesystem.c.
5332 (COMMON_OBS): Add filesystem.o.
5333 * solib.c (solib_find): Handle DOS-based filesystems. Handle
5334 different target and host path flavours.
5335 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
5336 has_dos_based_file_system on the gdbarch.
5337 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
5338 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
5339 * i386-tdep.c (i386_go32_init_abi): Ditto.
5340 * gdbarch.sh (has_dos_based_file_system): New.
5341 * gdbarch.h, gdbarch.c: Regenerate.
5342 * NEWS: Mention improved support for remote targets with DOS-based
5343 filesystems. Mention new `set/show target-file-system-kind'
5346 2010-04-23 Stan Shebs <stan@codesourcery.com>
5348 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
5350 (struct agent_reqs): Remove.
5351 (ax_reg_mask): Declare.
5352 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
5353 (free_agent_expr): Free reg_mask.
5354 (ax_print): Add scope and register mask info.
5355 (ax_reqs): Remove agent_reqs argument, use agent expression
5356 fields, and move part of register mask computation to...
5357 (ax_reg_mask): New function.
5358 * ax-gdb.c (gen_trace_static_fields): Call it.
5359 (gen_traced_pop): Ditto.
5360 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
5361 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
5362 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
5363 (gen_eval_for_expr): Ditto, and require an rvalue.
5364 (agent_command): Call ax_reqs.
5365 (agent_eval_command): Ditto.
5366 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
5367 (validate_action_line): Ditto.
5368 (collect_symbol): Ditto.
5369 (encode_actions_1): Ditto.
5371 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
5372 Paul Pluzhnikov <ppluzhnikov@google.com>
5373 Jan Kratochvil <jan.kratochvil@redhat.com>
5375 Fix deadlock on looped list of loaded shared objects.
5376 * solib-svr4.c (LM_PREV): New function.
5377 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
5378 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
5379 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
5380 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
5382 2010-04-23 Doug Evans <dje@google.com>
5384 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
5386 * configure: Regenerate.
5387 * main.c: #include "python/python.h".
5388 (captured_main): Defer loading auto-loaded scripts until after
5389 local_gdbinit has been sourced.
5390 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
5391 (load_auto_scripts_for_objfile): New function.
5392 (auto_load_new_objfile): Call it.
5393 * python/python.h (gdbpy_global_auto_load): Declare.
5394 (load_auto_scripts_for_objfile): Declare.
5396 Add support for auto-loading scripts from .debug_gdb_scripts section.
5397 * NEWS: Add entry for .debug_gdb_scripts.
5398 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
5399 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
5400 (py-auto-load.o): New rule.
5401 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
5402 * cli/cli-cmds.h (find_and_open_script): Update prototype.
5403 * python/py-auto-load.c: New file.
5404 * python/python-internal.h: #include <stdio.h>.
5405 (set_python_list, show_python_list): Declare.
5406 (gdbpy_initialize_auto_load): Declare.
5407 (source_python_script_for_objfile): Declare.
5408 * python/python.c: Remove #include of observer.h.
5409 (gdbpy_auto_load): Moved to py-auto-load.c.
5410 (GDBPY_AUTO_FILENAME): Ditto.
5411 (gdbpy_new_objfile): Delete.
5412 (source_python_script_for_objfile): New function.
5413 (set_python_list, show_python_list): Make externally visible.
5414 (_initialize_python): Move "auto-load" command to py-auto-load.c
5415 and observer_attach_new_objfile to py-auto-load.c.
5417 2010-04-23 Jerome Guitton <guitton@adacore.com>
5419 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
5420 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
5421 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
5423 (alpha_heuristic_analyze_probing_loop): New function.
5424 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
5425 and handle cases when a stack probe loop is generated.
5426 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
5427 (alpha_mdebug_max_frame_size_exceeded): New function.
5428 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
5429 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
5430 Return 0 when the maximum debuggable frame size has been exceeded.
5432 2010-04-23 Joel Brobecker <brobecker@adacore.com>
5435 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
5437 2010-04-20 Chris Moller <cmoller@redhat.com>
5441 * symtab.c (rbreak_command): Added code to include a filename
5442 specification in the rbreak argument.
5443 * NEWS: Added a brief description of filename-qualified rbreak.
5445 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5447 Fix crashes on dangling display expressions.
5448 * ada-lang.c (ada_operator_check): New function.
5449 (ada_exp_descriptor): Fill-in the field operator_check.
5450 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
5451 * jv-lang.c (exp_descriptor_java): Likewise.
5452 * m2-lang.c (exp_descriptor_modula2): Likewise.
5453 * scm-lang.c (exp_descriptor_scm): Likewise.
5454 * parse.c (exp_descriptor_standard): Likewise.
5455 (operator_check_standard): New function.
5456 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
5457 * parser-defs.h (struct exp_descriptor): New field operator_check.
5458 (operator_check_standard, exp_uses_objfile): New declarations.
5459 * printcmd.c: Remove the inclusion of solib.h.
5460 (display_uses_solib_p): Remove the function.
5461 (clear_dangling_display_expressions): Call lookup_objfile_from_block
5462 and exp_uses_objfile instead of display_uses_solib_p.
5463 * solist.h (struct so_list) <objfile>: New comment.
5464 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
5465 * symtab.h (lookup_objfile_from_block): New declaration.
5466 (struct general_symbol_info) <obj_section>: Extend the comment.
5468 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5469 Thiago Jung Bauermann <bauerman@br.ibm.com>
5471 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
5472 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
5473 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
5474 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
5475 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
5476 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
5477 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
5478 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
5479 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
5480 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
5481 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
5482 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
5483 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
5484 Define, in case <ptrace.h> doesn't provide it.
5485 (booke_debug_info): New variable.
5486 (max_slots_number): Ditto.
5487 (hw_break_tuple): New struct.
5488 (thread_points): Ditto.
5489 (ppc_threads): New variable.
5490 (PPC_DEBUG_CURRENT_VERSION): New define.
5491 (have_ptrace_new_debug_booke): New function.
5492 (ppc_linux_check_watch_resources): Renamed to ...
5493 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
5494 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
5495 (booke_cmp_hw_point): New function.
5496 (booke_find_thread_points_by_tid): Ditto.
5497 (booke_insert_point): Ditto.
5498 (booke_remove_point): Ditto.
5499 (ppc_linux_insert_hw_breakpoint): Ditto.
5500 (ppc_linux_remove_hw_breakpoint): Ditto.
5501 (get_trigger_type): Ditto.
5502 (ppc_linux_insert_watchpoint): Handle BookE processors.
5503 (ppc_linux_remove_watchpoint): Ditto.
5504 (ppc_linux_new_thread): Ditto.
5505 (ppc_linux_thread_exit): New function..
5506 (ppc_linux_stopped_data_address): Handle BookE processors.
5507 (ppc_linux_watchpoint_addr_within_range): Ditto.
5508 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
5509 to_remove_hw_breakpoint fields of the target operations struct.
5510 Add observe for the thread_exit event.
5512 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
5514 * i386-linux-nat.c (regmap): Removed.
5515 (fetch_register): Replace regmap with
5516 i386_linux_gregset_reg_offset.
5517 (store_register): Likewise.
5518 (supply_gregset): Likewise.
5519 (fill_gregset): Likewise.
5521 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
5524 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
5526 2010-04-22 Chris Moller <cmoller@redhat.com>
5528 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
5529 method of popping recursion-detection stack with a method based on
5530 obstack_object_size(). (Similar to the PR9167 patch below, but for
5531 the static array obstack rather than the static member obstack.)
5533 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
5535 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
5536 (_initialize_amd64_linux_nat): Replace
5537 amd64_linux_gregset64_reg_offset with
5538 amd64_linux_gregset_reg_offset.
5540 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
5543 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
5545 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
5548 * stabsread.c (set_length_in_type_chain): New function.
5549 (read_struct_type): Call set_length_in_type_chain function.
5550 (read_enum_type): Idem.
5552 2010-04-21 Stan Shebs <stan@codesourcery.com>
5553 Nathan Sidwell <nathan@codesourcery.com>
5555 * tracepoint.c (trace_save): Open in binary mode.
5557 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
5559 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
5561 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
5562 builtin_char32 fields.
5563 * printcmd.c (decode_format): Set char size to '\0'
5564 for strings unless explicit size is given.
5565 (print_formatted): Correct calculation of NEXT_ADDRESS
5566 for 16 or 32 bit strings.
5567 (do_examine): Do not force byte size for strings.
5568 Use builtin_char16 and builtin_char32 types to display
5569 16 or 32 bit-wide strings.
5570 (x_command): Set LAST_SIZE to 'b' for string type.
5572 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
5575 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5578 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
5579 there is no .reg-xstate section.
5580 (i386_linux_core_read_description): Check XCR0 first.
5582 2010-04-21 Mike Frysinger <vapier@gentoo.org>
5584 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
5587 2010-04-21 Chris Moller <cmoller@redhat.com>
5590 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
5591 method of popping recursion-detection stack with a method based on
5592 obstack_object_size().
5594 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5597 * p-valprint.c (pascal_val_print): Fix default printing of integer
5600 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5602 Fix compilation warning on gcc-4.1.2.
5603 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
5604 local variable`pc' to zero.
5606 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5608 Implement thread support with core files on alpha-tru64.
5609 * dec-thread.c (dec_thread_find_new_threads): New function,
5610 extracted from resync_thread_list.
5611 (resync_thread_list): Add OPS parameter. Replace extracted-out
5612 code by call to dec_thread_find_new_threads.
5613 (dec_thread_wait): Update call to resync_thread_list.
5614 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
5616 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5618 * ada-lang.c (value_pointer): New function.
5619 (make_array_descriptor): Call value_pointer to convert addresses to
5622 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5624 * rs6000-aix-tdep.c: #include exceptions.h.
5625 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
5626 while reading the memory at ADDR, then ADDR cannot be a function
5629 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5631 * ada-typeprint.c (ada_print_typedef): New function.
5632 * ada-lang.h (ada_print_typedef): Add declaration.
5633 * ada-lang.c (ada_language_defn): set la_print_typdef field
5634 to ada_print_typedef.
5636 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5638 * procfs.c (procfs_address_to_host_pointer): Only define when used.
5640 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5642 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
5643 (iterate_over_mappings): Adjust function profile. Add declaration.
5644 (insert_dbx_link_bpt_in_region, info_mappings_callback):
5647 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5649 * procfs.c (solib_mappings_callback): Move function up to avoid
5652 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5654 * procfs.c (find_signalled_thread, find_stop_signal): Move
5655 these functions down to define them only when used.
5657 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5659 * valprint.c (common_val_print): Fix the value before extracting
5661 * ada-lang.c (ada_to_fixed_value): Make this function extern.
5662 * ada-lang.h (ada_to_fixed_value): New function declaration.
5663 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
5664 to avoid code duplication and fix a bug in the handling of
5665 fixed types contents.
5667 2010-04-20 Tom Tromey <tromey@redhat.com>
5669 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
5670 (read_partial_die): Likewise.
5671 (dwarf_attr_name): Likewise.
5673 2010-04-20 Chris Moller <cmoller@redhat.com>
5677 * cp-valprint.c (global): Adding new static array recursion
5679 (cp_print_value_fields, cp_print_static_field): Added new static
5680 array recursion detection code.
5682 2010-04-20 Mark Kettenis <kettenis@gnu.org>
5684 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
5685 general-purpose register set should be 68 instead of 144.
5686 (i386_linux_sse_regset_sections): Likewise.
5687 (i386_linux_avx_regset_sections): Likewise.
5689 2010-04-20 Stan Shebs <stan@codesourcery.com>
5690 Nathan Sidwell <nathan@codesourcery.com>
5692 * dwarf2loc.c (struct axs_var_loc): New struct.
5693 (dwarf2_tracepoint_var_loc): New function.
5694 (dwarf2_tracepoint_var_access): New function.
5695 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
5697 (locexpr_describe_location_piece): New function.
5698 (locexpr_describe_location_1): New function.
5699 (locexpr_describe_location): Call it, update signature.
5700 (loclist_describe_location): Rewrite to loop over locations,
5702 * symtab.h (struct symbol_computed_ops): Add address to
5703 describe_location arguments, return void.
5704 * printcmd.c (address_info): Get context PC, pass to computed
5705 location description.
5706 * tracepoint.c (scope_info): Ditto.
5707 * ax-gdb.c (trace_kludge): Export.
5709 2010-04-20 Tom Tromey <tromey@redhat.com>
5711 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
5712 (struct dwarf2_cie) <segment_size>: New field.
5713 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
5714 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
5716 (read_attribute_value): Handle DW_FORM_flag_present,
5717 DW_FORM_sec_offset, DW_FORM_exprloc.
5718 (dump_die_shallow): Likewise.
5719 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
5720 (dwarf2_const_value): Handle DW_FORM_exprloc.
5721 (attr_form_is_block): Likewise.
5722 (struct line_header) <maximum_ops_per_instruction>: New field.
5723 (dwarf_decode_line_header): Set new field.
5724 (dwarf_decode_lines): Handle new field.
5726 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5728 * f-exp.y: Add new production to recognize the `logical*8' type.
5729 (LOGICAL_S8_KEYWORD): New token.
5730 * f-lang.c (enum f_primitive_types)
5731 <f_primitive_type_logical_s8>: New field.
5732 (f_language_arch_info): Handling `logical*8' type.
5733 (build_fortran_types): Building `logical*8' type.
5734 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
5736 2010-04-19 Doug Evans <dje@google.com>
5738 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
5739 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
5740 (pipe_close): Ditto.
5742 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5744 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
5746 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5748 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
5749 type to void function.
5751 2010-04-19 Stan Shebs <stan@codesourcery.com>
5752 Vladimir Prus <vladimir@codesourcery.com>
5754 * tracepoint.c (tfind_1): Add missing newline, report exit from
5756 * target.c (update_current_target): Make default
5757 to_trace_find return -1.
5759 2010-04-19 Mike Frysinger <vapier@gentoo.org>
5761 * objc-lang.c (find_methods): Move symname check up.
5763 2010-04-19 Pedro Alves <pedro@codesourcery.com>
5765 * ada-lang.c (print_recreate_exception)
5766 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
5767 not "catch unhandled".
5769 2010-04-19 Pedro Alves <pedro@codesourcery.com>
5771 PR breakpoints/8554.
5773 Implement `save-breakpoints'.
5775 * breakpoint.c (save_cmdlist): New.
5776 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
5778 (print_recreate_catch_fork): New.
5779 (catch_fork_breakpoint_ops): Install it.
5780 (print_recreate_catch_vfork): New.
5781 (catch_vfork_breakpoint_ops): Install it.
5782 (print_recreate_catch_syscall): New.
5783 (catch_syscall_breakpoint_ops): Install it.
5784 (print_recreate_catch_exec): New.
5785 (catch_exec_breakpoint_ops): Install it.
5786 (print_recreate_exception_catchpoint): New.
5787 (gnu_v3_exception_catchpoint_ops): Install it.
5788 (save_breakpoints): New, based on tracepoint_save_command, but
5789 handle all breakpoint types.
5790 (save_breakpoints_command): New.
5791 (tracepoint_save_command): Rename to...
5792 (save_tracepoints_command): ... this, and reimplement using
5794 (save_command): New.
5795 (_initialize_breakpoints): Install the "save" command prefix.
5796 Install the "save breakpoints" command. Make "save-tracepoints" a
5797 deprecated alias for "save tracepoints".
5798 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
5799 * ada-lang.c (print_recreate_exception): New.
5800 (print_recreate_catch_exception): New.
5801 (catch_exception_breakpoint_ops): Install it.
5802 (print_recreate_catch_exception_unhandled): New.
5803 (catch_exception_unhandled_breakpoint_ops): Install it.
5804 (print_recreate_catch_assert): New.
5805 (catch_assert_breakpoint_ops): Install it.
5807 * NEWS: Mention the new `save breakpoints' command. Mention the
5808 new `save tracepoints' alias and that `save-tracepoints' is now
5811 2010-04-18 Pedro Alves <pedro@codesourcery.com>
5815 * tui/tui-out.c: Include cli-out.h.
5816 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
5817 (tui_begin, tui_end, tui_field_int, tui_field_skip)
5818 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
5819 (tui_message, tui_wrap_hint, tui_flush): Delete forward
5821 (struct ui_out_data): Rename to...
5822 (struct tui_ui_out_data): ... this. Remove `stream' and
5823 `suppress_output' fields, and inherit cli_ui_out_data.
5824 (tui_out_data): New typedef.
5825 (tui_ui_out_impl): Don't initialize fields staticaly.
5826 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
5827 (tui_begin, tui_end): Delete.
5828 (tui_field_int): Adjust to delegate most work to the base type.
5829 (tui_field_skip): Delete.
5830 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
5831 delegate most work to the base type.
5832 (tui_spaces): Delete.
5833 (tui_text): Adjust to delegate most work to the base type.
5834 (tui_message): Delete.
5835 (tui_wrap_hint): Delete.
5836 (tui_flush): Delete.
5837 (out_field_fmt): Delete.
5838 (field_separator): Delete.
5839 (tui_out_new): Adjust to initialize the base type.
5840 (_initialize_tui_out): Initialize tui_ui_out_impl.
5841 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
5843 (cli_out_data): Adjust.
5844 (cli_ui_out_impl): Make extern.
5845 (cli_table_header, cli_field_int, cli_field_skip): Use
5846 uo_field_string instead of cli_field_string.
5847 (cli_redirect): Adjust to use cli_out_data.
5848 (cli_out_data_ctor): New.
5849 (cli_out_new): Use it.
5850 * cli-out.h (struct ui_file): Remove forward declaration.
5851 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
5852 (cli_ui_out_impl): Declare.
5853 (cli_out_data_ctor): Declare.
5854 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
5855 (uo_field_string): No longer static.
5856 (ui_out_data): Change return type to void pointer.
5857 (ui_out_new): Change `data' parameter type to void pointer.
5858 * ui-out.h (struct ui_out_data): Don't forward declare.
5859 (ui_out_data): Change return type to void pointer.
5860 (ui_out_new): Change `data' parameter type to void pointer.
5861 (uo_field_string): Declare.
5863 2010-04-17 Pedro Alves <pedro@codesourcery.com>
5865 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
5866 instead of always false.
5868 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
5871 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
5874 2010-04-17 Pedro Alves <pedro@codesourcery.com>
5876 * breakpoint.c (watchpoints_triggered): Use
5877 is_hardware_watchpoint.
5878 (watchpoints_triggered): Ditto.
5879 (bpstat_check_location): Use is_watchpoint and
5880 is_hardware_watchpoint.
5881 (bpstat_check_watchpoint): Use is_watchpoint and
5882 is_hardware_watchpoint.
5883 (bpstat_stop_status): Fix comment.
5884 (user_settable_breakpoint): Use is_watchpoint.
5885 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
5886 (disable_watchpoints_before_interactive_call_start): Use
5888 (enable_watchpoints_after_interactive_call_stop): Use
5890 (clear_command): Use is_watchpoint.
5891 (do_enable_breakpoint): Use is_watchpoint.
5893 2010-04-16 Mike Frysinger <vapier@gentoo.org>
5895 * solib-frv.c (enable_break1_done): Delete.
5896 (enable_break2): Do not check enable_break1_done. Move the
5897 enable_break2_done setting and call to
5898 remove_solib_event_breakpoints() to the end. Return without
5899 warning when the contents of _dl_debug_addr are 0.
5900 (enable_break): Do not set enable_break1_done.
5901 (frv_clear_solib): Likewise.
5903 2010-04-16 Kevin Buettner <kevinb@redhat.com>
5905 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
5906 instead of an error if no PLT entry is found. Return a
5907 potentially useful result.
5908 (m32c_m16c_pointer_to_address): Add code to search for function
5909 address when no .plt entry is found.
5911 2010-04-16 Stan Shebs <stan@codesourcery.com>
5913 * tracepoint.c (trace_variable_command): Run a cleanup.
5915 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
5917 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
5919 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
5921 Support for Windows OS Thread Information Block.
5922 * NEWS: Document new feature.
5923 * remote.c (PACKET_qGetTIBAddr): New enum element.
5924 (remote_get_tib_address): New function.
5925 (init_remote_ops): Set to_get_tib_address field
5926 to remote_get_tib_address.
5927 (_initialize_remote): Add add_packet_config_cmd
5928 for PACKET_qGetTIBAddr.
5929 * target.c (update_current_target): Set default value for
5930 new to_get_tib_address field.
5931 * target.h (target_ops): New field to_get_tib_address.
5932 (target_get_tib_address): New macro.
5933 * windows-nat.c (thread_info): Add thread_local_base field.
5934 (windows_add_thread): Add tlb argument of type 'void *'.
5935 (fake_create_process): Adapt windows_add_thread call.
5936 (get_windows_debug_event): Idem.
5937 (windows_get_tib_address): New function.
5938 (init_windows_ops): Set to_get_tib_address field
5939 to remote_get_tib_address.
5940 (_initialize_windows_nat): Replace info_w32_cmdlist
5941 initialization by a call to init_w32_command_list.
5942 (info_w32_command, info_w32_cmdlist): Removed from here...
5943 to windows-tdep.c file.
5944 * windows-tdep.h (info_w32_cmdlist): Declare.
5945 (init_w32_command_list): New external function
5947 * windows-tdep.c: Add several headers.
5948 (info_w32_cmdlist): to here, made global.
5949 (thread_information_32): New struct.
5950 (thread_information_64): New struct.
5951 (TIB_NAME): New char array.
5952 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
5953 (maint_display_all_tib): New static variable.
5954 (windows_get_tlb_type): New function.
5955 (tlb_value_read, tlb_value_write): New functions.
5956 (tlb_value_funcs): New static struct.
5957 (tlb_make_value): New function.
5958 (display_one_tib): New function.
5959 (display_tib): New function.
5960 (show_maint_show_all_tib):New function.
5961 (info_w32_command): Moved from windows-nat.c.
5962 (init_w32_command_list): New function.
5963 (_initialize_windows_tdep): New function.
5964 New "maint set/show show-all-tib" command
5965 New "$_tlb" internal variable.
5967 2010-04-16 Joel Brobecker <brobecker@adacore.com>
5969 * tui/tui-regs.c (tui_display_register): Add comment about
5971 * tui/tui-stack.c (tui_show_locator_content): Ditto.
5973 2010-04-15 Stan Shebs <stan@codesourcery.com>
5975 * frame.c: Include tracepoint.h.
5976 (get_current_frame): Allow a trace frame to be an alternate source
5977 of stack frame data.
5978 * tracepoint.c (tfind_1): Don't try to get current stack frame if
5981 2010-04-15 Pedro Alves <pedro@codesourcery.com>
5983 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
5985 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
5987 2010-04-15 Doug Evans <dje@google.com>
5989 * NEWS: Add entry for python program space support.
5990 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
5991 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
5992 (py-progspace.o): New rule.
5993 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
5995 (find_pretty_printer_from_progspace): New function.
5996 (find_pretty_printer_from_gdb): New function.
5997 (find_pretty_printer): Rewrite.
5998 * python/py-progspace.c: New file.
5999 * python/python-internal.h (program_space): Add forward decl.
6000 (pspace_to_pspace_object, pspy_get_printers): Declare.
6001 (gdbpy_initialize_pspace): Declare.
6002 * python/python.c: #include "progspace.h".
6003 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
6004 (_initialize_python): Call gdbpy_initialize_pspace.
6005 (GdbMethods): Add current_progspace, progspaces.
6007 Add -s option to source command.
6008 * NEWS: Document new option.
6009 * cli/cli-cmds.c (find_and_open_script): Add function comment.
6010 Delete from_tty and cleanupp args. Split filep arg into file and
6011 full_pathp. New arg search_path.
6012 (source_script_from_stream): New function.
6013 (source_script_with_search): New function.
6014 (source_script): Rewrite.
6015 (source_command): Parse "-s" option.
6016 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
6017 * python/python.c (source_python_script): Make file arg a const char *.
6018 Don't call fclose, leave for caller.
6019 * python/python.h (source_python_script): Update.
6021 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6022 Pedro Alves <pedro@codesourcery.com>
6024 Avoid rereading shared libraries that haven't changed.
6026 * solib.c (free_so_symbols): New function, from ...
6027 (free_so): ... here. Call it.
6028 (solib_read_symbols): Don't warn here if symbols have already been
6030 (solib_add): Warn here instead, if a pattern was specified.
6031 (reload_shared_libraries_1): New.
6032 (reload_shared_libraries): Rewrite to not fetch the library list.
6034 2010-04-14 Doug Evans <dje@google.com>
6036 * source.c (openp): Strip DOS drive letter if present before
6037 concatenating string to search path.
6039 2010-04-14 Pedro Alves <pedro@codesourcery.com>
6041 * objfiles.h (gdb_bfd_close_or_warn): Declare.
6042 * objfiles.c (gdb_bfd_close_or_warn): New.
6043 * corelow.c: Include objfiles.h
6044 (core_close): Use gdb_bfd_close_or_warn.
6045 * elfread.c (build_id_verify): Ditto.
6046 * exec.c (exec_close, exec_close_1): Ditto.
6048 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6049 Pedro Alves <pedro@codesourcery.com>
6051 Group errors for many missing shared libraries.
6053 * solist.h (struct so_list): Remove from_tty.
6054 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
6055 (solib_map_sections): Take so_list argument. Return 0 if we
6056 failed to open a BFD. Add target sections here.
6057 (symbol_add_stub): Delete.
6058 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
6059 not from_tty copied from the so_list. Don't warn a second time
6060 for a missing library.
6061 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
6062 add to the section table here. Print out a single warning for all
6064 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
6067 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
6069 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
6070 error/warning messages. Capitalize and use complete sentences.
6071 (blpy_block_syms_iternext): Likewise.
6072 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
6073 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
6074 (frame_info_to_frame_object, frapy_read_var)
6075 (gdbpy_frame_stop_reason_string): Likewise.
6076 * python/py-lazy-string.c (stpy_convert_to_value)
6077 (gdbpy_create_lazy_string_object): Likewise.
6078 * python/py-objfile.c (objfpy_set_printers): Likewise.
6079 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
6080 * python/python.c (parameter_to_python): Likewise.
6081 * python/py-type.c (typy_range, typy_target): Likewise.
6082 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
6083 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
6086 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
6090 * python/py-prettyprint.c (pretty_print_one_value): Test for
6092 (print_string_repr): Test for Py_None. Set flags accordingly.
6093 Return value depending on return type.
6094 (print_children): Take a value indicating whether data was printed
6095 before this function was called. Alter output accordingly.
6096 (apply_val_pretty_printer): Capture return value from
6097 print_string_repr and pass to print_children.
6099 2010-04-13 Mark Kettenis <kettenis@gnu.org>
6102 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
6103 register note sections.
6104 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
6106 (i386_linux_init_abi): Install list of supported register note
6107 sections that matches the target description.
6109 2010-04-13 Pedro Alves <pedro@codesourcery.com>
6111 * remote.c (remote_get_noisy_reply): Don't error out on empty
6113 (remote_start_remote): Update and merge tracepoints and trace
6114 state variables as long as the target supports tracepoints.
6115 (remote_trace_init): Fix prototype.
6116 (remote_download_trace_state_variable): Validate reply.
6117 (remote_trace_set_readonly_regions): Fix prototype.
6118 (remote_trace_start): Fix prototype. Check for empty reply.
6119 (remote_get_trace_status): Small cleanup.
6120 (remote_trace_stop): Fix prototype. Check for empty reply.
6121 (remote_trace_find): Check for empty reply.
6122 (remote_save_trace_data): Validate reply.
6123 (remote_set_disconnected_tracing): Check for empty reply, and
6125 (remote_set_circular_trace_buffer): Ditto.
6127 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
6129 Suppress unused value warning during compilation.
6130 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
6132 * tui/tui-stack.c (tui_show_locator_content): Likewise.
6134 2010-04-12 Stan Shebs <stan@codesourcery.com>
6136 * tracepoint.c (tfile_xfer_partial): Check read result.
6138 2010-04-12 Mike Frysinger <vapier@gentoo.org>
6140 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
6141 * remote-sim.c (gdbsim_files_info): Likewise.
6143 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6145 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
6146 * arm-linux-nat.c (arm_linux_vfp_register_count): New
6148 (fetch_vfp_registers): New function to fetch VFP registers.
6149 (store_vfp_registers): New function to store VFP registers.
6150 (arm_linux_fetch_inferior_registers): Add support for VFP
6152 (arm_linux_store_inferior_registers): Likewise.
6153 (arm_linux_read_description): Likewise.
6154 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
6157 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
6159 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
6161 (amd64_collect_xstateregset): Likewise.
6163 2010-04-09 Stan Shebs <stan@codesourcery.com>
6165 * tracepoint.c (trace_status_mi): Report frames created.
6167 * tracepoint.c (trace_dump_command): Include default-collect
6170 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
6172 * symtab.c (find_function_start_sal): Never return SAL pointing
6173 before function start address, even if line info is missing.
6175 2010-04-09 Pedro Alves <pedro@codesourcery.com>
6177 * NEWS: Mention tracepoints support.
6179 2010-04-09 Pedro Alves <pedro@codesourcery.com>
6181 * tracepoint.c (trace_status_mi): Report disconnected tracing and
6182 circular trace buffer statuses.
6184 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6186 * config/djgpp/fnchange.lst: Fix typo in translations for
6187 symbol-without-target_section.exp and symbol-without-target_section.c.
6189 2010-04-09 Pedro Alves <pedro@codesourcery.com>
6191 * breakpoint.c (condition_command): Pass condition expression to
6192 set_breakpoint_condition stripped from breakpoint number.
6194 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
6195 Thiago Jung Bauermann <bauerman@br.ibm.com>
6196 Tom Tromey <tromey@redhat.com>
6198 * breakpoint.c (condition_command): Simplify. Move condition
6200 (set_breakpoint_condition): ... here. New function.
6201 * breakpoint.h (set_breakpoint_condition): Declare.
6202 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
6203 (SUBDIR_PYTHON_SRCS): Likewise.
6204 (py-breakpoint.o): New rule.
6205 * python/py-breakpoint.c: New file.
6206 * python/python-internal.h (gdbpy_breakpoints)
6207 (gdbpy_initialize_breakpoints): Declare.
6208 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
6210 2010-04-09 Pedro Alves <pedro@codesourcery.com>
6212 * regformats/regdat.sh: Include server.h. Don't include
6215 2010-04-08 Stan Shebs <stan@codesourcery.com>
6216 Pedro Alves <pedro@codesourcery.com>
6218 * tracepoint.h (struct trace_status): New fields disconnected_tracing
6219 and circular_buffer.
6220 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
6221 * tracepoint.c (trace_status_command): Display target's status for
6222 disconnected tracing and circular buffer.
6223 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
6224 query for non-disconnected-tracing case, remove the stop_tracing
6226 (tfile_open): Clear disconnected and circular buffer status.
6227 (trace_save): Save disconnected and circular buffer status.
6228 (parse_trace_status): Parse disconnected and circular buffer status,
6229 also recognize disconnected as a stop reason.
6230 * remote.c (remote_set_disconnected_tracing): Only set
6231 QTDisconnected if the remote end supports disconnected tracing.
6232 Warn otherwise, if trying to enable disconnected tracing.
6233 * infcmd.c (detach_command): Update disconnect_tracing call.
6234 * cli/cli-cmds.c (quit_command): Ditto.
6236 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6238 * i387-tdep.c (i387_collect_xsave): Replace abort with
6241 2010-04-08 Stan Shebs <stan@codesourcery.com>
6243 * breakpoint.c (default_collect_info): New function.
6244 (breakpoints_info): Call it.
6245 (maintenance_info_breakpoints): Ditto.
6246 (tracepoints_info): Ditto.
6248 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6250 * i387-tdep.c (i387_collect_xsave): Re-indent.
6252 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6254 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
6255 if HAVE_PTRACE_GETFPXREGS is defined.
6256 (i386_linux_read_description): Set have_ptrace_getfpxregs and
6257 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
6259 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
6260 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
6261 if .reg-xfp section doesn't exist.
6262 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
6264 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
6266 * i386-tdep.c: Include "features/i386/i386-mmx.c".
6267 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
6268 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
6269 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
6270 (i386_gdbarch_init): Update comments.
6271 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
6273 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
6275 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
6277 * features/Makefile (i386/i386-mmx-expedite): New.
6278 (i386/i386-mmx-linux-expedite): Likewise.
6279 ($(outdir)/i386/i386-mmx.dat): Likewise.
6280 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
6282 * features/i386/i386-mmx-linux.c: New.
6283 * features/i386/i386-mmx-linux.xml: Likewise.
6284 * features/i386/i386-mmx.c: Likewise.
6285 * features/i386/i386-mmx.xml: Likewise.
6286 * regformats/i386/i386-mmx-linux.dat: Likewise.
6287 * regformats/i386/i386-mmx.dat: Likewise.
6289 * features/Makefile (WHICH): Add i386/i386-mmx and
6290 i386/i386-mmx-linux.
6292 2010-04-08 Doug Evans <dje@google.com>
6294 * source.c (openp): Skip $cdir in PATH.
6296 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
6299 * python/py-lazy-string.c (stpy_convert_to_value): Check for
6301 (gdbpy_create_lazy_string_object): Allow strings with a NULL
6302 address and a zero length.
6304 2010-04-08 Hui Zhu <teawater@gmail.com>
6306 * i386-tdep.c (i386_process_record): Add support for insn
6309 2010-04-07 Doug Evans <dje@google.com>
6311 * python/python.c (source_python_script): Use ensure_python_env
6312 to prepare environment for script.
6314 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6316 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
6317 <sys/uio.h> and "i386-xstate.h".
6318 (PTRACE_GETREGSET): New.
6319 (PTRACE_SETREGSET): Likewise.
6320 (have_ptrace_getregset): Likewise.
6321 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
6323 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
6325 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
6326 (amd64_linux_store_inferior_registers): Likewise.
6327 (amd64_linux_read_description): Check and enable AVX target
6330 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
6331 and "features/i386/amd64-avx-linux.c".
6332 (amd64_linux_regset_sections): New.
6333 (amd64_linux_core_read_description): Check and enable AVX
6335 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
6336 set_gdbarch_core_regset_sections.
6337 (_initialize_amd64_linux_tdep): Call
6338 initialize_tdesc_amd64_avx_linux.
6340 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
6341 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
6342 (tdesc_amd64_avx_linux): New.
6343 (amd64_linux_update_xstateregset): Likewise.
6345 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
6346 (amd64_ymm_names): New.
6347 (amd64_ymmh_names): Likewise.
6348 (amd64_register_name): Likewise.
6349 (amd64_supply_xstateregset): Likewise.
6350 (amd64_collect_xstateregset): Likewise.
6351 (amd64_supply_xsave): Likewise.
6352 (amd64_collect_xsave): Likewise.
6353 (AMD64_NUM_REGS): Removed.
6354 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
6355 %xmmN if AVX is available.
6356 (amd64_pseudo_register_name): Support pseudo YMM registers.
6357 (amd64_regset_from_core_section): Support .reg-xstate section.
6358 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
6359 and ymm0h_regnum. Call set_gdbarch_register_name.
6360 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
6362 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
6363 AMD64_YMM15H_REGNUM.
6364 (AMD64_NUM_REGS): New.
6365 (amd64_supply_xsave): Likewise.
6366 (amd64_collect_xsave): Likewise.
6367 (amd64_register_name): Removed.
6368 (amd64_register_type): Likewise.
6370 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6372 * i387-tdep.c: Include "i386-xstate.h".
6373 (XSAVE_XSTATE_BV_ADDR): New.
6374 (xsave_avxh_offset): Likewise.
6375 (XSAVE_AVXH_ADDR): Likewise.
6376 (i387_supply_xsave): Likewise.
6377 (i387_collect_xsave): Likewise.
6379 * i387-tdep.h (I387_NUM_YMM_REGS): New.
6380 (I387_YMM0H_REGNUM): Likewise.
6381 (I387_YMMENDH_REGNUM): Likewise.
6382 (i387_supply_xsave): Likewise.
6383 (i387_collect_xsave): Likewise.
6385 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6387 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
6388 <sys/uio.h> and "i386-xstate.h".
6389 (PTRACE_GETREGSET): New.
6390 (PTRACE_SETREGSET): Likewise.
6391 (fetch_xstateregs): Likewise.
6392 (store_xstateregs): Likewise.
6393 (GETXSTATEREGS_SUPPLIES): Likewise.
6394 (regmap): Include 8 upper YMM registers.
6395 (i386_linux_fetch_inferior_registers): Support XSAVE extended
6397 (i386_linux_store_inferior_registers): Likewise.
6398 (i386_linux_read_description): Check and enable AVX target
6401 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
6402 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
6403 (i386_linux_regset_sections): Add ".reg-xstate".
6404 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
6405 (i386_linux_core_read_xcr0): New.
6406 (i386_linux_core_read_description): Check and enable AVX target
6408 (i386_linux_init_abi): Set xsave_xcr0_offset.
6409 (_initialize_i386_linux_tdep): Call
6410 initialize_tdesc_i386_avx_linux.
6412 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
6413 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
6414 (i386_linux_core_read_xcr0): New.
6415 (tdesc_i386_avx_linux): Likewise.
6416 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
6418 * i386-tdep.c: Include "i386-xstate.h" and
6419 "features/i386/i386-avx.c".
6420 (i386_ymm_names): New.
6421 (i386_ymmh_names): Likewise.
6422 (i386_ymmh_regnum_p): Likewise.
6423 (i386_ymm_regnum_p): Likewise.
6424 (i386_xmm_regnum_p): Likewise.
6425 (i386_register_name): Likewise.
6426 (i386_ymm_type): Likewise.
6427 (i386_supply_xstateregset): Likewise.
6428 (i386_collect_xstateregset): Likewise.
6429 (i386_sse_regnum_p): Removed.
6430 (i386_pseudo_register_name): Support pseudo YMM registers.
6431 (i386_pseudo_register_type): Likewise.
6432 (i386_pseudo_register_read): Likewise.
6433 (i386_pseudo_register_write): Likewise.
6434 (i386_dbx_reg_to_regnum): Return %ymmN register number for
6435 %xmmN if AVX is available.
6436 (i386_regset_from_core_section): Support .reg-xstate section.
6437 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
6438 (i386_process_record): Replace i386_sse_regnum_p with
6440 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
6441 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
6442 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
6443 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
6444 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
6445 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
6447 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
6449 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
6450 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
6452 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
6453 (I386_AVX_NUM_REGS): New.
6454 (i386_xmm_regnum_p): Likewise.
6455 (i386_ymm_regnum_p): Likewise.
6456 (i386_ymmh_regnum_p): Likewise.
6458 * common/i386-xstate.h: New.
6460 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6462 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
6464 * features/Makefile (WHICH): Add i386/i386-avx,
6465 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
6466 (i386/i386-avx-expedite): New.
6467 (i386/i386-avx-linux-expedite): Likewise.
6468 (i386/x86-64-avx-expedite):Likewise.
6469 (i386/x86-64-avx-linux-expedite): Likewise.
6470 ($(outdir)/i386/i386-avx.dat): New dependency.
6471 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
6472 ($(outdir)/i386/x86-avx-64.dat): Likewise.
6473 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
6475 * features/i386/32bit-avx.xml: New.
6476 * features/i386/64bit-avx.xml: Likewise.
6477 * features/i386/i386-avx-linux.c: Likewise.
6478 * features/i386/i386-avx-linux.xml: Likewise.
6479 * features/i386/i386-avx.c: Likewise.
6480 * features/i386/i386-avx.xml: Likewise.
6481 * features/i386/x86-64-avx-linux.c: Likewise.
6482 * features/i386/x86-64-avx-linux.xml: Likewise.
6483 * features/i386/x86-64-avx.c: Likewise.
6484 * features/i386/x86-64-avx.xml: Likewise.
6485 * regformats/i386/i386-avx-linux.dat: Likewise.
6486 * regformats/i386/i386-avx.dat: Likewise.
6487 * regformats/i386/x86-64-avx-linux.dat: Likewise.
6488 * regformats/i386/x86-64-avx.dat: Likewise.
6490 2010-04-07 Doug Evans <dje@google.com>
6492 * top.c (source_file_name): Make const char *.
6493 * top.h (source_file_name): Update.
6494 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
6496 (script_from_file): Change `file' arg to const char *.
6497 * cli/cli-script.h (script_from_file): Update.
6499 2010-04-06 Doug Evans <dje@google.com>
6501 * cli/cli-cmds.c (source_command): Run cleanups.
6503 2010-04-06 Stan Shebs <stan@codesourcery.com>
6505 * defs.h (char_ptr): Move typedef here from...
6506 * ada-lang.c (char_ptr): Remove.
6507 * charset.c (char_ptr): Remove.
6508 * tracepoint.h (struct uploaded_string): Remove.
6509 (struct uploaded_tp): Use vectors for string arrays.
6510 * tracepoint.c (trace_save): Use vectors of actions.
6511 (parse_tracepoint_definition): Ditto.
6512 (get_uploaded_tp): Clear vectors.
6513 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
6514 (next_cmd): Change to an int.
6515 (read_next_cmd): Use vector of command strings.
6517 2010-04-06 Doug Evans <dje@google.com>
6519 * top.h (source_script, cd_command): Delete.
6520 * main.c: #include "cli/cli-cmds.h"
6522 2010-04-06 Kevin Buettner <kevinb@redhat.com>
6524 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
6525 type in bytes, not bits.
6527 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
6529 * stabsread.c (define_symbol): Add support for char
6530 and string constants.
6532 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
6534 Remove remaining "%ll" uses.
6535 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
6537 * rs6000-nat.c (rs6000_ptrace64): Idem.
6538 * solib-pa64.c (pa64_current_sos): Idem.
6539 * solib-spu.c (spu_current_sos): Idem.
6540 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
6542 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
6544 * sh64-tdep.c (sh64_show_media_regs): Idem.
6546 2010-04-05 Stan Shebs <stan@codesourcery.com>
6548 * tracepoint.c: Include gdbcore.h.
6549 (tfile_xfer_partial): Return partial results, also try reading
6551 (tfile_has_all_memory): New function.
6552 (init_tfile_ops): Use it.
6554 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
6557 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
6558 the changes in data-directory.
6559 (init_sysinfo): Reload the syscall XML file if the data-directory
6562 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6565 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
6567 2010-04-04 Stan Shebs <stan@codesourcery.com>
6568 Nathan Sidwell <nathan@codesourcery.com>
6570 * breakpoint.c (breakpoint_1): Add filter argument, return number of
6571 breakpoints printed.
6572 (is_hardware_watchpoint): Make argument const.
6573 (is_watchpoint): Ditto.
6574 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
6576 (breakpoints_info): Pass NULL to breakpoint_1.
6577 (maintenance_info_breakpoints): Ditto.
6578 (watchpoints_info): New function.
6579 (tracepoints_info): Use breakpoint_1 filter.
6580 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
6581 (_initialize_breakpoint): Make "info watchpoints" its own command.
6582 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
6583 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
6585 2010-04-04 Stan Shebs <stan@codesourcery.com>
6587 * tracepoint.c (tfile_fetch_registers): Add fallback case.
6589 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6591 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
6592 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
6594 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6596 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
6597 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
6599 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6601 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
6604 2010-04-02 Hui Zhu <teawater@gmail.com>
6606 * i386-tdep.c (OT_DQUAD): New enum.
6607 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
6608 SSE3, SSSE3 and SSE4.
6610 2010-04-02 Hui Zhu <teawater@gmail.com>
6612 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
6615 2010-04-02 Pedro Alves <pedro@codesourcery.com>
6617 * tracepoint.c (trace_dump_actions): New, factored out from
6618 trace_dump_command, and adjusted to recurse into while-stepping's
6620 (trace_dump_command): Use it.
6622 2010-04-02 Pedro Alves <pedro@codesourcery.com>
6624 * breakpoint.h (struct counted_command_line): Moved definition to
6625 breakpoint.c, and forward declare.
6626 (breakpoint_commands): Declare.
6627 * breakpoint.c (struct counted_command_line): Moved here.
6628 (breakpoint_commands): New.
6629 * tracepoint.c (encode_actions): Use breakpoint_commands.
6630 * remote.c (remote_download_tracepoint): Ditto.
6632 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
6634 * remote.c (remote_parse_stop_reply): Use hex_string instead
6635 of phex_nz for error.
6637 2010-04-01 Stan Shebs <stan@codesourcery.com>
6638 Nathan Sidwell <nathan@codesourcery.com>
6640 * tracepoint.h (enum actionline_type): Remove.
6641 (validate_actionline): Change return to void.
6642 * tracepoint.c (report_agent_reqs_errors): New function.
6643 (validate_actionline): Call it, change return to void, report errors
6645 (collect_symbol): Call report_agent_reqs_errors.
6646 (encode_actions_1): Ditto.
6647 (encode_actions): Don't expect a result from validate_actionline.
6649 2010-04-01 Stan Shebs <stan@codesourcery.com>
6651 * tracepoint.c (trace_start_command): Confirm if trace is running.
6652 (trace_stop_command): Error if trace not running.
6654 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
6656 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
6657 (AMD64_NUM_LOWER_BYTE_REGS): New.
6658 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
6659 (amd64_pseudo_register_write): Likewise.
6660 (amd64_init_abi): Set num_byte_regs to 20.
6662 2010-04-01 Pedro Alves <pedro@codesourcery.com>
6664 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
6665 (prev_breakpoint_count): New.
6666 (set_breakpoint_count): Adjust.
6667 (rbreak_start_breakpoint_count): New.
6668 (start_rbreak_breakpoints): Adjust.
6669 (end_rbreak_breakpoints): Adjust.
6670 (struct commands_info) <arg>: New field.
6671 (do_map_commands_command): Tweak output to include breakpoint spec
6673 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
6674 ARG was empty on entry. Set INFO's arg.
6675 (create_breakpoint): Adjust.
6677 * NEWS: Clarify `commands' changes.
6679 2010-04-01 Pedro Alves <pedro@codesourcery.com>
6681 * tracepoint.c: Include stack.h.
6682 (struct add_local_symbols_data): New.
6683 (do_collect_symbol): New.
6684 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
6685 iterate_over_block_local_vars.
6686 * stack.c (print_block_frame_locals): Rewrite as ...
6687 (iterate_over_block_locals): ... this. Take a callback function
6688 pointer and generic data pointer, and call that instead of
6689 print_variable_and_value.
6690 (struct print_variable_and_value_data): New.
6691 (do_print_variable_and_value): New.
6692 (iterate_over_block_local_vars): New, abstracted out from
6693 print_frame_local_vars.
6694 (print_frame_local_vars): Rewrite using
6695 iterate_over_block_local_vars.
6696 (iterate_over_block_arg_vars): New, abstracted out from
6697 print_frame_arg_vars.
6698 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
6699 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
6700 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
6702 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
6704 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
6705 instructions. Use the PC+4 if the base of the TBB or TBH is the
6708 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6710 Fix crash on reading wrong function declaration DWARF.
6711 * dwarf2read.c (read_subroutine_type): New variable void_type.
6712 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
6713 more close to their use.
6715 2010-03-31 Stan Shebs <stan@codesourcery.com>
6717 * breakpoint.c (tracepoint_save_command): Include variables,
6718 conditionals, tracepoint types, and default-collect.
6719 * tracepoint.c (save_trace_state_variables): New function.
6720 * tracepoint.h (save_trace_state_variables): Declare it.
6722 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
6724 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
6726 2010-03-30 Keith Seitz <keiths@redhat.com>
6728 * c-typeprint.c (c_type_print_args): Don't print "void"
6729 for java, regardless of whether it is TYPE_PROTOTYPED.
6730 Use the passed-in language instead of current_language.
6731 (c_type_print_varspec_suffix): Use current_language instead
6732 of assuming language_c.
6733 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
6734 any return type specifier from the physname.
6736 2010-03-30 Pedro Alves <pedro@codesourcery.com>
6738 * tui/tui-interp.c (tui_is_toplevel): New.
6740 (tui_allowed_p): New.
6741 * tui/tui.c (tui_enable): Check if the TUI is allowed before
6743 * tui/tui.h (tui_allowed_p): Declare.
6745 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
6747 * serial.h: Include winsock2.h before windows.h.
6749 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
6751 * NEWS: Mention xmlRegisters= in qSupported packet.
6753 * i386-tdep.c: Include "remote.h".
6754 (_initialize_i386_tdep): Call register_remote_support_xml.
6756 * remote.c (remote_support_xml): New.
6757 (register_remote_support_xml): Likewise.
6758 (remote_query_supported_append): Likewise.
6759 (remote_query_supported): Support remote_support_xml.
6761 * remote.h (register_remote_support_xml): New.
6763 2010-03-29 Stan Shebs <stan@codesourcery.com>
6765 * tracepoint.c (trace_find_line_command): Remove dead code.
6767 * tracepoint.h (struct uploaded_string): New struct.
6768 (struct uploaded_tp): New fields for source strings.
6769 * breakpoint.c (this_utp, next_cmd): New globals.
6770 (read_uploaded_action): New function.
6771 (create_tracepoint_from_upload): Fill in more parts
6773 * tracepoint.c (encode_source_string): New function.
6774 (trace_save): Write out source strings, fix error checks.
6775 (parse_tracepoint_definition): Add source string parsing.
6776 * remote.c (PACKET_TracepointSource): New packet type.
6777 (remote_download_command_source): New function.
6778 (remote_download_tracepoint): Download source pieces also.
6779 (_initialize_remote): Add packet config command.
6781 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
6784 * tracepoint.c (start_tracing): Check tracepoints before sending
6785 commands to target, don't start if all tracepoints disabled.
6787 2010-03-28 Pedro Alves <pedro@codesourcery.com>
6789 * cli/cli-script.c (process_next_line): Handle 'stepping'.
6791 2010-03-26 Stan Shebs <stan@codesourcery.com>
6793 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
6795 2010-03-26 Tom Tromey <tromey@redhat.com>
6797 * breakpoint.c (commands_command_1): Duplicate 'arg'.
6799 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6801 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
6802 (skip_prologue_sal): Remove local definition.
6803 (resolve_sal_pc): Remove now unnecessary code.
6804 * linespec.c (minsym_found): Call skip_prologue_sal.
6805 * symtab.c (find_function_start_pc): Remove.
6806 (find_function_start_sal): Extract prologue skipping into ...
6807 (skip_prologue_sal): ... this new function. Handle code both
6808 with and without debug info. Respect SAL's explicit_pc and
6809 explicit_line flags. Inline old find_function_start_pc.
6810 * symtab.h (find_function_start_pc): Remove.
6811 (skip_prologue_sal): Add prototype.
6813 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6815 * dwarf2read.c (read_func_scope): Also scan specification DIEs
6816 for DW_TAG_imported_module children.
6818 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6820 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
6821 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
6822 * completer.c (add_struct_fields): Fix inverted logic.
6824 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6826 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
6828 2010-03-26 Pedro Alves <pedro@codesourcery.com>
6830 * tracepoint.c (current_trace_status): Don't make sure error_desc
6832 (parse_trace_status): Release a previous error_desc string, and
6833 set it to NULL by default. If stop reason is tracepoint_error,
6834 make sure error_desc is not left NULL.
6836 2010-03-26 Pedro Alves <pedro@codesourcery.com>
6838 * tracepoint.c (trace_save): Remove X from tracepoint error
6841 2010-03-26 Pedro Alves <pedro@codesourcery.com>
6843 * tracepoint.c (parse_trace_status): Don't allow plain strings in
6844 the terror description. Don't expect an X prefix.
6846 2010-03-25 Stan Shebs <stan@codesourcery.com>
6848 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
6849 (struct trace_status): New field error_desc.
6850 * tracepoint.c (stop_reason_names): Add terror.
6851 (current_trace_status): Ensure non-NULL error description.
6852 (trace_status_command): Add error report.
6853 (trace_status_mi): Ditto.
6854 (trace_save): Add special case for error description.
6855 (parse_trace_status): Add case for errors.
6857 2010-03-25 Keith Seitz <keiths@redhat.com>
6859 * dwarf2read.c (read_subroutine_type): If the compilation unit
6860 language is Java, mark any formal parameter named "this" as
6861 artificial (GCC/43521).
6862 (dwarf2_name): Add special handling for Java constructors.
6864 2010-03-25 Tom Tromey <tromey@redhat.com>
6866 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
6867 * infrun.c (handle_inferior_event): Change initialization of
6869 (handle_inferior_event): Change assignment to stop_stack_dummy.
6870 (normal_stop): Update use of stop_stack_dummy.
6871 (struct inferior_status) <stop_stack_dummy>: Change type.
6872 * inferior.h (stop_stack_dummy): Update.
6873 * infcmd.c (stop_stack_dummy): Change type.
6874 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
6876 (call_function_by_hand): Call set_std_terminate_breakpoint.
6877 Rewrite std::terminate handling.
6878 * breakpoint.h (enum bptype) <bp_std_terminate,
6879 bp_std_terminate_master>: New.
6880 (enum stop_stack_kind): New.
6881 (struct bpstat_what) <call_dummy>: Change type.
6882 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
6884 * breakpoint.c (create_std_terminate_master_breakpoint): New
6886 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
6887 Call create_std_terminate_master_breakpoint.
6888 (print_it_typical): Handle new breakpoint kinds.
6889 (bpstat_stop_status): Handle bp_std_terminate_master.
6890 (bpstat_what): Correctly set call_dummy field. Handle
6891 bp_std_terminate_master and bp_std_terminate.
6892 (print_one_breakpoint_location): Update.
6893 (allocate_bp_location): Update.
6894 (set_std_terminate_breakpoint): New function.
6895 (delete_std_terminate_breakpoint): Likewise.
6896 (create_thread_event_breakpoint): Update.
6897 (delete_command): Update.
6898 (breakpoint_re_set_one): Update.
6899 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
6901 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6903 * symfile.c (build_section_addr_info_from_bfd): New.
6904 (build_section_addr_info_from_objfile): Base it on
6905 build_section_addr_info_from_bfd.
6906 (addrs_section_compar, addrs_section_sort): New.
6907 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
6908 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
6909 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
6911 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
6913 * elfread.c (find_separate_debug_file_by_buildid):
6914 Remove unused local variable.
6916 2010-03-24 Tom Tromey <tromey@redhat.com>
6918 PR breakpoints/9352:
6919 * NEWS: Mention changes to `commands' and `rbreak'.
6920 * symtab.c (do_end_rbreak_breakpoints): New function.
6921 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
6922 end_rbreak_breakpoints.
6923 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
6924 (set_breakpoint_count): Likewise. Clear last_was_multi.
6925 (multi_start, multi_end, last_was_multi): New globals.
6926 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
6928 (struct commands_info): New
6929 (do_map_commands_command): New function.
6930 (commands_command_1): New function.
6931 (commands_command): Use it.
6932 (commands_from_control_command): Likewise.
6933 (do_delete_breakpoint): New function.
6934 (delete_command): Use it.
6935 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
6936 (do_map_disable_breakpoint): New function.
6937 (disable_command): Use it.
6938 (do_map_enable_breakpoint): New function.
6939 (enable_command): Use it.
6940 (enable_once_breakpoint): Add argument.
6941 (enable_once_command): Update.
6942 (enable_delete_breakpoint): Add argument.
6943 (enable_delete_command): Update.
6944 (break_command_really): Set last_was_multi when needed.
6945 (check_tracepoint_command): Fix formatting.
6946 (validate_commands_for_breakpoint): New function.
6947 (breakpoint_set_commands): Use it.
6948 (tracepoint_save_command): Update.
6949 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
6952 2010-03-24 Tom Tromey <tromey@redhat.com>
6954 * breakpoint.h (struct counted_command_line): New struct.
6955 (struct breakpoint) <commands>: Change type.
6956 (struct bpstats) <commands>: Change type.
6957 <commands_left>: New field.
6958 * breakpoint.c (alloc_counted_command_line): New function.
6959 (incref_counted_command_line): Likewise.
6960 (decref_counted_command_line): Likewise.
6961 (do_cleanup_counted_command_line): Likewise.
6962 (make_cleanup_decref_counted_command_line): Likewise.
6963 (breakpoint_set_commands): Use decref_counted_command_line and
6964 alloc_counted_command_line.
6965 (commands_command): Don't error if breakpoint commands are
6967 (commands_from_control_command): Likewise.
6968 (bpstat_free): Update.
6969 (bpstat_copy): Likewise.
6970 (bpstat_clear_actions): Likewise.
6971 (bpstat_do_actions_1): Likewise.
6972 (bpstat_stop_status): Likewise.
6973 (print_one_breakpoint_location): Likewise.
6974 (delete_breakpoint): Likewise.
6975 (bpstat_alloc): Initialize new field.
6976 (tracepoint_save_command): Update.
6977 * tracepoint.c (encode_actions): Update.
6978 (trace_dump_command): Update.
6980 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
6982 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
6983 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
6984 (read_structure_type): For RealView, set TYPE_STUB on structures with
6985 no byte size and no children.
6986 (read_subroutine_type): Mark functions as prototyped by default.
6987 * symtab.c (producer_is_realview): New function.
6988 * symtab.h (expand_line_sal): Fix declaration formatting.
6989 (producer_is_realview): Declare.
6991 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
6993 * arm-tdep.c (skip_prologue_function): New function.
6994 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
6995 (thumb_analyze_prologue): Document return value. Recognize more
6996 Thumb instructions, skippable calls, and some Thumb-2 instructions.
6998 (arm_skip_prologue): Remove call dummy check. Check the prologue
6999 for non-GNU compilers.
7000 (arm_instruction_changes_pc): New function.
7001 (arm_analyze_prologue): New function, broken out from
7002 arm_scan_prologue. Recognize more ARM instructions and skippable
7003 calls. Update comments. Handle NULL cache. Return the address
7004 of the first unrecognized instruction. Do not skip past other
7005 instructions which change control flow. Add debug output.
7006 (arm_scan_prologue): Use arm_analyze_prologue.
7007 (ARM_PC_32): Delete.
7008 (shifted_reg_val): Simplify ARM_PC_32 check.
7010 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7012 * tracepoint.c (tvariables_info_1): Actually compute
7013 the number of rows in the result.
7015 2010-03-24 Pedro Alves <pedro@codesourcery.com>
7017 * remote.c (crc32): Constify `buf' parameter.
7018 (remote_verify_memory): New, abstracted out from...
7019 (compare_sections_command): ... this. Remove hardcoded target
7021 (init_remote_ops): Install remote_verify_memory.
7022 * target.c (target_verify_memory): New.
7023 * target.h (struct target_ops) <to_verify_memory>: New field.
7024 (target_verify_memory): Declare.
7026 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7028 Implement -trace-save.
7030 * mi-cmds.h (mi_cmds_trace_save): Declare.
7031 * mi-cmds.c (mi_cmds): Register -trace-save.
7032 * mi/mi-main.c (mi_cmd_trace_save): New.
7033 * remote.c (remote_save_trace_data): Take const parameter.
7034 * target.h (struct target_ops::to_save_trace_data): Take
7036 * target.c (update_current_target): Adjust to the above.
7037 * tracepoint.c (trave_save): New, extracted from
7038 (trace_save_command): ...this.
7039 (tfile_trace_find): Remove message that is unnecessary now
7040 that 'tfind' reports found frame.
7041 * tracepoint.h (trace_save): Declare.
7043 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7045 Implement -trace-find.
7047 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
7048 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
7049 * mi/mi-main.c (mi_cmd_trace_find): New.
7050 * target.h (struct target_ops): Document to_trace_find.
7051 * tracepoint.h (tfind_1): Declare.
7052 * tracepoint.c (finish_tfind_command): Rename to...
7054 * remote.c (remote_trace_find): Return -1 if target say
7055 there's no frame. Improve error diagnostics.
7057 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7059 -trace-define-variable and -trace-list-variables.
7061 * tracepoint.c (create_trace_state_variable): Make
7062 private copy of name, as opposed to assuming the
7063 pointer lives forever.
7064 (tvariables_info_1): New.
7065 (tvariables_info): Use the above.
7066 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
7068 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
7069 and -trace-list-variables.
7070 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
7071 (mi_cmd_trace_list_variables): New.
7072 * mi/mi-main.c (mi_cmd_trace_define_variable)
7073 (mi_cmd_trace_list_variables): New.
7075 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7077 Implement -break-passcount.
7079 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
7080 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
7081 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
7083 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7085 -trace-start/-trace-end/-trace-status.
7087 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
7089 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
7090 (mi_cmd_trace_stop): Declare.
7091 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
7092 (mi_cmd_trace_stop): New.
7093 * tracepoint.c (start_tracing): New, extracted from...
7094 (trace_start_command): ...this.
7095 (trace_status_mi): New.
7096 * tracepoint.h (struct trace_status): Document
7097 stopping_tracepoint.
7098 (start_tracing, stop_tracing, trace_status_mi): Declare.
7100 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7102 Implement creating tracepoints with -break-insert.
7104 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
7105 to mean that tracepoint should be created.
7107 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7109 * breakpoint.c (check_no_tracepoint_commands): Use
7110 current spelling of 'teval'.
7112 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7114 Unify actions and commands
7116 * defs.h (read_command_lines, read_command_lines_1): New
7117 parameters validator and closure.
7118 * tracepoint.h (struct action_line): Remove.
7119 * breakpoint.h (struct breakpoint): Remove the 'actions'
7121 * defs.h (enum command_control_type): New value
7122 while_stepping_control.
7123 (struct command_line): Add comments.
7124 * breakpoint.c (breakoint_is_tracepoint): New.
7125 (breakpoint_set_commands): For tracepoints,
7126 verify the commands are permissible.
7127 (check_tracepoint_commands): New.
7128 (commands_command): Require that each new line is validated using
7129 check_tracepoint_command, if we set commands for a tracepoint.
7130 (create_tracepoint_from_upload): Likewise.
7131 (print_one_breakpoint_location): Remove the code to print
7132 actions specifically.
7133 (tracepoint_save_command): Relay to print_command_lines.
7134 * cli/cli-script.c (process_next_line): New parameters validator
7135 and closure. Handle 'while-stepping'. Call validator if not null.
7136 (read_command_lines, read_command_lines1): Likewise.
7137 (recurse_read_control_structure): New parameters validator and
7138 closure. Handle while_stepping_control.
7139 (print_command_lines): Handle while-stepping.
7140 (get_command_line, define_command, document_command): Adjust.
7141 * remote.c (remote_download_tracepoint): Adjust.
7142 * tracepoint.c (make_cleanup_free_actions, read_actions)
7143 (free_actions, do_free_actions_cleanup): Remove.
7144 (trace_actions_command): Use read_command_lines.
7145 (validate_actionline): Use error in one place.
7146 (encode_actions_1): New, extracted from...
7147 (encode_actions): ...this. Also use cleanups for exception
7149 (trace_dump_command): Adjust.
7150 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
7153 2010-03-23 Mike Frysinger <vapier@gentoo.org>
7155 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
7157 2010-03-22 Stan Shebs <stan@codesourcery.com>
7159 * value.c (value_static_field): Be lazy about the field's value.
7161 2010-03-22 Reid Kleckner <reid@kleckner.net>
7164 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
7166 (disable_breakpoints_in_shlibs): Likewise.
7168 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
7170 * dwarf2read.c (partial_die_parent_scope): Work around buggy
7171 GCC 4.1 debug info generation (GCC PR c++/28460).
7172 (determine_prefix): Likewise.
7174 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
7176 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
7178 * tui/tui-layout.c (extract_display_start_addr): Likewise.
7180 2010-03-19 Stan Shebs <stan@codesourcery.com>
7182 * ax-gdb.c (gen_fetch): Handle bool.
7183 (gen_usual_unary): Ditto.
7185 (gen_equal): New function.
7186 (gen_less): New function.
7187 (gen_expr_binop_rest): Call them, also return integer type from
7191 2010-03-19 Tom Tromey <tromey@redhat.com>
7193 * jv-lang.c (jv_dynamics_objfile_data_key)
7194 (jv_type_objfile_data_key): New globals.
7195 (class_symtab): Move earlier.
7196 (jv_per_objfile_free): New function.
7197 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
7199 Remove ancient #if 1.
7200 (add_class_symbol): Remove redundant declaration.
7201 (java_lookup_class): Use alloc_type, not alloc_type_arch.
7202 (java_link_class_type): Mark as static. Update.
7203 (jv_clear_object_type): New function.
7204 (set_java_object_type): Likewise.
7205 (get_java_object_type): Use set_java_object_type.
7206 (is_object_type): Likewise.
7207 (_initialize_java_language): Register new objfile keys.
7208 (get_java_class_symtab): Add 'gdbarch' parameter.
7209 (add_class_symtab_symbol): Update.
7210 (type_from_class): Update.
7212 2010-03-19 Stan Shebs <stan@codesourcery.com>
7214 * ax-general.c (ax_const_l): Fix a sizing bug.
7216 2010-03-18 Joel Brobecker <brobecker@adacore.com>
7220 2010-03-18 Stan Shebs <stan@codesourcery.com>
7221 Pedro Alves <pedro@codesourcery.com>
7223 * target.h (struct target_ops): New method
7224 to_set_circular_trace_buffer.
7225 (target_set_circular_trace_buffer): New macro.
7226 * target.c (update_current_target): Add
7227 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
7229 * remote.c (remote_set_circular_trace_buffer): New function.
7230 (init_remote_ops): Add it to vector.
7231 * tracepoint.h (struct trace_status): New field traceframes_created,
7232 change buffer_size and buffer_free to int.
7233 * tracepoint.c (circular_trace_buffer): New global.
7234 (start_tracing): Send values of disconnected tracing and circular
7235 trace buffer settings.
7236 (set_circular_trace_buffer): New function.
7237 (parse_trace_state): Handle total space and frames created.
7238 (trace_status_command): Display total space and total frames
7240 (trace_save): Write out new status values.
7241 (parse_trace_status): Set traceframe_count, traceframes_created,
7242 buffer_free and buffer_size to -1 by default.
7243 (_initialize_tracepoint): New setshow for circular-trace-buffer.
7244 * NEWS: Mention the circular trace buffer option.
7246 2010-03-18 Tom Tromey <tromey@redhat.com>
7248 * infcmd.c (finish_command_continuation): Wrap print_return_value
7251 2010-03-18 Joel Brobecker <brobecker@adacore.com>
7253 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
7254 DIE has a name before creating the associated partial symbol.
7255 (read_func_scope): Emit a complaint if the subprogram does not
7256 have a name or when we can't extract the subprogram PC bounds.
7258 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
7260 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
7261 instead of selected frame architecture.
7263 2010-03-18 Pedro Alves <pedro@codesourcery.com>
7265 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
7266 a valid selected thread, and that it is not running.
7267 (advance_command): Ditto.
7268 (finish_command): Ditto.
7270 2010-03-17 Stan Shebs <stan@codesourcery.com>
7272 * ax-gdb.c (require_rvalue): Disallow non-scalars.
7274 * infcall.c: Include tracepoint.h.
7275 (call_function_by_hand): Disallow calls in tfind mode.
7276 * infcmd.c: Include tracepoint.h.
7277 (ensure_not_tfind_mode): New function.
7278 (continue_1): Call it.
7280 (jump_command): Ditto.
7281 (signal_command): Ditto.
7282 (advance_command): Ditto.
7283 (until_command): Ditto.
7284 (finish_command): Ditto.
7285 * tracepoint.h (disconnect_or_stop_tracing): Declare.
7287 * ax-gdb.h (struct axs_value): New field optimized_out.
7288 (gen_trace_for_var): Add gdbarch argument.
7289 * ax-gdb.c (gen_trace_static_fields): New function.
7290 (gen_traced_pop): Call it, add gdbarch argument.
7291 (gen_trace_for_expr): Update call to it.
7292 (gen_trace_for_var): Ditto, and report optimized-out variables.
7293 (gen_struct_ref_recursive): Check for optimized-out value.
7294 (gen_struct_elt_for_reference): Ditto.
7295 (gen_static_field): Pass gdbarch instead of expression, assume
7296 optimization if field not found.
7297 (gen_var_ref): Set the optimized_out flag.
7298 (gen_expr): Error on optimized-out variable.
7299 * tracepoint.c (collect_symbol): Handle struct-valued vars as
7300 expressions, skip optimized-out variables with computed locations.
7301 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
7302 erroring out if location expression missing.
7303 (loclist_tracepoint_var_ref): Don't error out here.
7305 2010-03-17 Tom Tromey <tromey@redhat.com>
7307 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
7308 DWARF data is available.
7310 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
7312 * symfile.c (generic_load): Reset breakpoints after loading.
7314 2010-03-17 Tom Tromey <tromey@redhat.com>
7316 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
7318 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7320 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
7321 create_breakpoint call, adjust the parameters.
7323 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7324 Chandru <chandru@in.ibm.com>
7326 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
7327 * valarith.c (value_subscripted_rvalue): Suppress error if
7328 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
7330 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
7332 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
7334 2010-03-16 Joel Brobecker <brobecker@adacore.com>
7336 * ada-tasks.c (task_command_1): Check that the task ptid is valid
7337 before doing the associated thread switch.
7339 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
7341 * MAINTAINERS: Update my email address.
7343 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
7345 Simplify MI breakpoint setting.
7347 * breakpoint.c (break_command_really): Make nonstatic and
7349 (create_breakpoint): ...this. Rename prior function by this name
7351 (create_breakpoint_sal): ...this.
7352 (create_breakpoints): Rename to...
7353 (create_breakpoints_sal): ...this.
7354 (set_breakpoint): Remove.
7355 * breakpoint.h: Adjust to above changes.
7356 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
7358 2010-03-15 Stan Shebs <stan@codesourcery.com>
7360 * ax-gdb.c: Include cp-support.h.
7361 (find_field): Remove.
7362 (gen_primitive_field): New function.
7363 (gen_struct_ref_recursive): New function.
7364 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
7366 (gen_static_field): New function.
7367 (gen_struct_elt_for_reference): New.
7368 (gen_namespace_elt): New.
7369 (gen_maybe_namespace_elt): New.
7370 (gen_aggregate_elt_ref): New.
7371 (gen_expr): Add OP_SCOPE, display opcode name in error message.
7373 2010-03-15 Tom Tromey <tromey@redhat.com>
7375 * dwarf2read.c (die_needs_namespace): Also return 0 for
7378 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
7381 * cp-support.h: Added char *declaration element to using_direct
7383 (cp_add_using): Added char *declaration argument.
7384 (cp_add_using_directive): Ditto.
7385 (cp_lookup_symbol_imports): made extern.
7386 * cp-namespace.c: Updated with the above changes.
7387 * dwarf2read.c (read_import_statement): Ditto.
7388 (read_namespace): Ditto.
7389 (read_import_statement): Support import declarations.
7390 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
7392 Added support for 'declaration_only' search.
7393 (cp_lookup_symbol_namespace): Attempt to search for the name as
7394 is before consideration of imports.
7395 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
7396 search at every block level search.
7397 Now takes language argument.
7398 (lookup_symbol_aux): Updated.
7400 2010-03-15 Tom Tromey <tromey@redhat.com>
7402 * c-exp.y (name_not_typename): Add 'operator' clause.
7404 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
7406 * configure.ac: Exit if ${gdb_target_obs}" is not set.
7407 * configure: Regenerate.
7409 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7411 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
7412 and ".sdynbss". Update the comment.
7414 2010-03-15 Jie Zhang <jie@codesourcery.com>
7416 * MAINTAINERS: Update my email address.
7418 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
7420 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
7422 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
7424 * charset.c [USE_WIN32API]: Include <windows.h>.
7425 (_initialize_charset): Correct type of w32_host_default_charset.
7427 2010-03-14 Pedro Alves <pedro@codesourcery.com>
7429 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
7431 2010-03-12 Tom Tromey <tromey@redhat.com>
7434 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
7435 in a lexical block does not need a namespace.
7436 (new_symbol) <DW_TAG_variable>: Put extern variables on
7437 list_in_scope in all cases.
7439 2010-03-12 Stan Shebs <stan@codesourcery.com>
7441 * ax-gdb.c (gen_expr): Add shift expressions.
7442 (gen_expr_binop_rest): Ditto.
7444 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
7446 * buildsym.c (finish_block): Reset using_directives pointer
7447 after block initialization.
7449 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
7451 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
7452 * i386-tdep.c (i386_word_names): Likewise.
7454 2010-03-12 Pedro Alves <pedro@codesourcery.com>
7456 * target.c (memory_xfer_partial): Don't use the stack cache if
7457 inspecting trace frames.
7458 * tracepoint.c (finish_tfind_command): Invalidate the target
7461 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7463 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
7464 for the PIC displacement, print also the displacement value.
7465 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
7467 2010-03-10 Kevin Buettner <kevinb@redhat.com>
7469 * remote-mips.c (close_ports, mips_initialize_cleanups)
7470 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
7471 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
7472 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
7473 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
7474 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
7475 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
7476 comments describing each of these functions.
7477 (mips_enter_debug, mips_exit_debug, common_open)
7478 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
7479 blank line after the comment describing the function.
7481 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7483 * solib-svr4.c (svr4_exec_displacement): Return now success, new
7484 parameter displacementp. Update comment.
7485 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
7486 element exists. Return if svr4_exec_displacement was not successful.
7489 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7490 Daniel Jacobowitz <dan@codesourcery.com>
7492 * solib-svr4.c (read_program_header): Support type == -1 to read
7493 all program headers.
7494 (read_program_headers_from_bfd): New function.
7495 (svr4_static_exec_displacement): Remove and move the comment ...
7496 (svr4_exec_displacement): ... here. Remove variable found. New
7497 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
7498 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
7499 targets using read_program_headers_from_bfd. Remove the call of
7500 svr4_static_exec_displacement.
7502 2010-03-10 Tom Tromey <tromey@redhat.com>
7504 * dwarf2read.c (struct pubnames_header): Remove.
7505 (_PUBNAMES_HEADER): Remove.
7506 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
7507 (struct aranges_header): Remove.
7508 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
7509 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
7510 (PUBNAMES_SECTION): Remove.
7511 (ARANGES_SECTION): Remove.
7512 (dwarf2_locate_sections): Don't handle pubnames or aranges.
7513 (dwarf2_build_psymtabs): Remove dead code.
7514 (dwarf2_build_psymtabs_easy): Remove.
7516 2010-03-10 Tom Tromey <tromey@redhat.com>
7518 * elfread.c (elf_symfile_read): Don't call
7519 dwarf2_build_frame_info.
7520 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
7521 (struct dwarf2_per_objfile) <objfile>: New field.
7522 (dwarf2_has_info): Now idempotent. Set objfile field.
7523 (dwarf2_read_section): Check and set readin field. Call
7525 (dwarf2_build_psymtabs): Don't read all sections.
7526 (read_type_comp_unit_head): Read types section.
7527 (create_debug_types_hash_table): Likewise.
7528 (init_cu_die_reader): Add asserts.
7529 (process_type_comp_unit): Add assert.
7530 (dwarf2_build_psymtabs_hard): Read info section.
7531 (load_partial_comp_unit): Add assert.
7532 (create_all_comp_units): Read info section.
7533 (load_full_comp_unit): Likewise.
7534 (dwarf2_ranges_read): Read ranges section.
7535 (dwarf2_record_block_ranges): Add assert.
7536 (dwarf2_read_abbrevs): Read abbrev section.
7537 (read_indirect_string): Read str section.
7538 (dwarf_decode_line_header): Read line section.
7539 (read_signatured_type_at_offset): Read types section.
7540 (dwarf_decode_macros): Read macinfo section.
7541 (dwarf2_symbol_mark_computed): Read loc section.
7542 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
7543 dwarf2_build_frame_info.
7544 (dwarf2_build_frame_info): Unconditionally set
7545 dwarf2_frame_objfile_data on the objfile.
7546 * configure.ac: Check for posix_madvise.
7547 * config.in, configure: Rebuild.
7549 2010-03-10 Tom Tromey <tromey@redhat.com>
7551 * xcoffread.c (xcoff_start_psymtab): Update.
7552 (xcoff_end_psymtab): Update.
7553 * psymtab.c (allocate_psymtab): Remove dead code.
7554 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
7556 * mdebugread.c (parse_partial_symbols): Update.
7557 (new_psymtab): Likewise.
7558 * dwarf2read.c (process_psymtab_comp_unit): Update.
7559 (psymtab_to_symtab_1): Update.
7560 * dbxread.c (start_psymtab): Update.
7561 (end_psymtab): Likewise.
7563 2010-03-10 Tom Tromey <tromey@redhat.com>
7565 * xcoffread.c: Include psymtab.h.
7566 (xcoff_sym_fns): Update.
7567 * symtab.h (struct partial_symbol): Remove.
7568 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
7569 (struct partial_symtab): Remove.
7570 (PSYMTAB_TO_SYMTAB): Remove.
7571 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
7572 (find_pc_sect_psymtab): Remove.
7573 (find_pc_sect_symtab_via_partial): Declare.
7574 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
7575 (find_main_psymtab): Remove.
7576 (find_main_filename): Declare.
7577 (fixup_psymbol_section): Remove.
7578 (fixup_section): Declare.
7579 * symtab.c: Include psymtab.h.
7580 (lookup_symtab): Use lookup_symtab method.
7581 (lookup_partial_symtab): Remove.
7582 (find_pc_sect_psymtab_closer): Remove.
7583 (find_pc_sect_psymtab): Remove.
7584 (find_pc_sect_symtab_via_partial): New function.
7585 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
7586 (fixup_section): No longer static.
7587 (fixup_psymbol_section): Remove.
7588 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
7589 (lookup_global_symbol_from_objfile): Likewise.
7590 (lookup_symbol_aux_psymtabs): Remove.
7591 (lookup_symbol_aux_quick): New function.
7592 (lookup_symbol_global): Use lookup_symbol_aux_quick.
7593 (lookup_partial_symbol): Remove.
7594 (basic_lookup_transparent_type_quick): New function.
7595 (basic_lookup_transparent_type): Use it.
7596 (find_main_psymtab): Remove.
7597 (find_main_filename): New function.
7598 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
7599 (find_line_symtab): Use expand_symtabs_with_filename method.
7600 (output_partial_symbol_filename): New function.
7601 (sources_info): Use map_partial_symbol_filenames.
7602 (struct search_symbols_data): New type.
7603 (search_symbols_file_matches): New function.
7604 (search_symbols_name_matches): Likewise.
7605 (search_symbols): Use expand_symtabs_matching method.
7606 (struct add_name_data): Rename from add_macro_name_data.
7607 (add_macro_name): Update.
7608 (add_partial_symbol_name): New function.
7609 (default_make_symbol_completion_list): Use
7610 map_partial_symbol_names.
7611 (struct add_partial_symbol_name): New type.
7612 (maybe_add_partial_symtab_filename): New function.
7613 (make_source_files_completion_list): Use
7614 map_partial_symbol_filenames.
7615 (expand_line_sal): Use expand_symtabs_with_filename method.
7616 * symmisc.c: Include psymtab.h.
7617 (print_objfile_statistics): Use print_stats method.
7618 (dump_objfile): Use dump method.
7619 (dump_psymtab, maintenance_print_psymbols)
7620 (maintenance_info_psymtabs, maintenance_check_symtabs)
7621 (extend_psymbol_list): Remove.
7622 * symfile.h (struct quick_symbol_functions): New struct.
7623 (struct sym_fns) <qf>: New field.
7624 (sort_pst_symbols): Remove.
7625 (increment_reading_symtab): Declare.
7626 * symfile.c: Include psymtab.h.
7627 (compare_psymbols, sort_pst_symbols): Remove.
7628 (psymtab_to_symtab): Remove.
7629 (increment_reading_symtab): New function.
7630 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
7632 (set_initial_language): Use find_main_filename.
7633 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
7634 (free_named_symtabs): Remove unused code.
7635 (start_psymtab_common, add_psymbol_to_bcache)
7636 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
7638 * stack.c: Include psymtab.h, symfile.h.
7639 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
7640 * source.h (psymtab_to_fullname): Don't declare.
7641 * source.c: Include psymtab.h.
7642 (select_source_symtab): Use find_last_source_symtab method.
7643 (forget_cached_source_info): Use forget_cached_source_info
7645 (find_and_open_source): No longer static.
7646 (psymtab_to_fullname): Remove.
7647 * somread.c: Include psymtab.h.
7648 (som_sym_fns): Update.
7649 * psympriv.h: New file.
7650 * psymtab.h: New file.
7651 * psymtab.c: New file.
7652 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
7653 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
7654 * objfiles.c: Include psymtab.h.
7655 (objfile_relocate1): Use relocate method.
7656 (objfile_has_partial_symbols): Use has_symbols method.
7657 * mipsread.c: Include psymtab.h.
7658 (ecoff_sym_fns): Update.
7659 * mi/mi-cmd-file.c: Include psymtab.h.
7660 (print_partial_file_name): New function.
7661 (mi_cmd_file_list_exec_source_files): Use
7662 map_partial_symbol_filenames.
7663 * mdebugread.c: Include psympriv.h.
7664 * machoread.c: Include psympriv.h.
7665 (macho_sym_fns): Update.
7666 * m2-exp.y (yylex): Use lookup_symtab.
7667 * elfread.c: Include psympriv.h.
7668 (elf_sym_fns): Update.
7669 * dwarf2read.c: Include psympriv.h.
7670 * dbxread.c: Include psympriv.h.
7671 (aout_sym_fns): Update.
7672 * cp-support.c: Include psymtab.h.
7673 (read_in_psymtabs): Remove.
7674 (make_symbol_overload_list_qualified): Use
7675 expand_symtabs_for_function method.
7676 * coffread.c: Include psympriv.h.
7677 (coff_sym_fns): Update.
7678 * blockframe.c: Include psymtab.h.
7679 (find_pc_partial_function): Use find_pc_sect_symtab method.
7680 * ada-lang.h (ada_update_initial_language): Update.
7681 * ada-lang.c: Include psymtab.h.
7682 (ada_update_initial_language): Remove 'main_pst' argument.
7683 (ada_lookup_partial_symbol): Remove.
7684 (struct ada_psym_data): New type.
7685 (ada_add_psyms): New function.
7686 (ada_add_non_local_symbols): Use map_ada_symtabs method.
7687 (struct add_partial_datum): New type.
7688 (ada_add_partial_symbol_completions): New function.
7689 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
7690 (ada_exception_support_info_sniffer): Update.
7691 * Makefile.in (SFILES): Add psymtab.c.
7692 (COMMON_OBS): Add psymtab.o.
7693 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
7695 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
7697 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
7699 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
7702 * cp-namespace.c (cp_add_using): Deleted.
7703 (cp_add_using_directive): Use obstack allocations.
7704 Merged the function cp_add_using into this one.
7705 Added 'struct obstack *' argument.
7706 (cp_scan_for_anonymous_namespaces): Updated.
7707 * cp-support.h: Updated.
7708 * dwarf2read.c (read_import_statement): Updated.
7709 (read_namespace): Updated.
7711 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
7713 * windows-nat.c (cygwin_conv_path): Remove old macro.
7715 2010-03-10 Pedro Alves <pedro@codesourcery.com>
7717 * breakpoint.c (condition_command): Handle watchpoint conditions.
7718 (is_hardware_watchpoint): Add comment.
7719 (is_watchpoint): New.
7720 (update_watchpoint): Don't reparse the watchpoint's condition
7723 (watchpoint_check): Use it.
7724 (bpstat_check_watchpoint): Handle it.
7725 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
7726 conditions in a frame where it makes sense.
7727 (watch_command_1): Store the innermost block of the condition
7729 (delete_breakpoint): Delete the watchpoint condition expression.
7730 * breakpoint.h (struct bp_location) <cond>: Update comment.
7731 (struct breakpoint): New field `cond_exp_valid_block'.
7733 2010-03-09 Joel Brobecker <brobecker@adacore.com>
7735 Adjust handling of Ada DIEs after dwarf2_physname patch.
7736 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
7738 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
7739 Pierre Muller <muller@ics.u-strasbg.fr>
7741 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
7742 from/to posix/win32.
7743 (windows_make_so): Use non-Cygwin 1.7 specific function.
7744 (windows_create_inferior): Make sure that cygallargs points to
7745 original args in non Cygwin 1.7. case.
7747 2010-03-09 Michael Snyder <msnyder@vmware.com>
7749 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
7750 after target_read_memory to get host byte order.
7751 (i386_process_record): Ditto.
7753 2010-03-09 Keith Seitz <keiths@redhat.com>
7755 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
7756 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
7757 print out const or volatile qualifiers, too.
7758 (c_type_print_args): Add parameters show_artificial and language.
7759 Skip artificial parameters when requested.
7760 Use the appropriate language printer.
7761 (c_type_print_varspec): Tell c_type_print_args to skip artificial
7762 parameters and pass language_c.
7763 * dwarf2read.c (die_list): New file global.
7764 (struct partial_die_info): Update comments for name field.
7765 (pdi_needs_namespace): Renamed to ...
7766 (die_needs_namespace): ... this. Rewrite.
7767 (dwarf2_linkage_name): Remove.
7768 (add_partial_symbol): Do not predicate the call to
7769 partial_die_full_name based on pdi_needs_namespace.
7770 Remove call to cp_check_possible_namespace_symbols and associated
7772 (guess_structure_name): Do not inspect child subprogram DIEs.
7773 (dwarf2_fullname): Update comments.
7774 Use die_needs_namespace to assist in computing the name.
7775 (read_func_scope): Use dwarf2_name to get the DIE's name.
7776 Use dwarf2_physname to get the "linkage name" of the DIE.
7777 (dwarf2_add_member_field): Use dwarf2_physname instead of
7778 dwarf2_linkage_name.
7779 (read_structure_type): For structs and classes, set TYPE_NAME, too.
7780 (determine_class): Remove.
7781 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
7783 (new_symbol): Unconditionally call dwarf2_name.
7784 Compute the "linkage name" using dwarf2_physname.
7785 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
7786 When determining to scan for anonymous C++ namespaces, ignore
7788 (dwarf2_physname): New function.
7789 (dwarf2_full_name): Move content to new function and call
7791 (dwarf2_compute_name): "New" function.
7792 (_initialize_dwarf2_read): Initialize die_list.
7793 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
7795 (gnu_v3_print_method_ptr): Use the physname for virtual methods
7796 without a demangled name.
7797 Print out type information for non-virtual methods.
7798 * linespec.c (decode_line_1): Force ANY string using "::" (or
7799 "." for java) to use decode_compound, and clean up any stray quoting.
7800 If we found a file symtab, re-evaluate whether the remainder is_quoted.
7801 (decode_compound): Stop consuming at an open parenthesis.
7802 Keep template parameters.
7803 Keep any overload information.
7804 Keep keywords like "const".
7805 Remove paren_pointer.
7806 Move is_quoted check from set_flags to here.
7807 Remove #if 0 code from 2000. Ten years is long enough.
7808 (find_method): Before comparing symbol names, canonicalize the string
7810 If a specific overload is requested, find it. Otherwise throw an error.
7811 (find_method_overload_end): New function.
7812 (set_flags): Remove.
7813 (decode_compound): Assume that parentheses are matched.
7815 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
7817 * linespec.c (decode_line_1): Keep important keywords like
7818 "const" and "volatile".
7819 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
7820 * typeprint.h (c_type_print_args): Add declaration.
7821 * ui-file.c (do_ui_file_obsavestring): New function.
7822 (ui_file_obsavestring): New function.
7823 * ui-file.h (ui_file_obsavestring): Add declaration.
7824 * valops.c (find_overload_match): Resolve the object to
7826 If the object is a data member, search the object for the member
7827 and return with staticp set.
7828 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
7829 Do not attempt to extract a function name from non-function types.
7830 If the extracted function name and the original name are the same,
7831 we don't have a C++ method.
7833 From Jan Kratochvil <jan.kratochvil@redhat.com>:
7834 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
7836 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
7837 and arguments from symbol lookups.
7838 * ax-gdb.c (gen_expr): Likewise.
7839 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
7840 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
7841 lookup_possible_namespace_symbol): Likewise.
7842 * cp-support.c (read_in_psymtabs): Likewise.
7843 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
7844 * language.h (la_lookup_symbol_nonlocal): Likewise.
7845 * scm-valprint.c (scm_inferior_print): Likewise.
7846 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
7847 * solib-svr.c (elf_lookup_lib): Likewise.
7848 * solib.c (show_auto_solib_add): Likewise.
7849 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
7850 * symmisc.c (maintenance_check_symtabs): Likewise.
7851 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
7852 lookup_symbol_aux_local, lookup_symbol_aux_block,
7853 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
7854 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
7855 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
7856 basic_lookup_transparent_type, find_main_psymtab,
7857 lookup_block_symbol): Likewise.
7858 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
7859 lookup_symbol_global, lookup_symbol_aux_block,
7860 lookup_symbol_partial_symbol, lookup_block_symbol,
7861 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
7863 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
7865 * python/python-internal.h: Include symtab.h.
7867 2010-03-09 Joel Brobecker <brobecker@adacore.com>
7868 Pierre Muller <muller@ics.u-strasbg.fr>
7870 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
7871 * p-valprint.c (pascal_val_print): Remove undeed block and fix
7874 2010-03-08 Tom Tromey <tromey@redhat.com>
7876 * breakpoint.c (breakpoint_1): Add "QUIT".
7878 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
7879 Pedro Alves <pedro@codesourcery.com>
7881 * solib.c (solib_find): Replace extension if
7882 solib_symbols_extension is set in the target gdbarch.
7883 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
7884 solib_symbols_extension to "sym".
7885 * gdbarch.sh (solib_symbols_extension): New variable.
7886 (pstring): New function.
7887 * gdbarch.h, gdbarch.c: Regenerate.
7889 2010-03-08 Tom Tromey <tromey@redhat.com>
7893 * utils.c: Include main.h.
7894 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
7895 (defaulted_query): Use default answer if `batch_flag'.
7896 * main.h (batch_flag): Declare.
7897 * main.c (batch_flag): New global.
7898 (captured_main): Remove 'batch'. Update.
7900 2010-03-08 Kevin Buettner <kevinb@redhat.com>
7902 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
7905 * remote-mips.c (rockhopper_ops): New target_ops struct.
7906 (MON_ROCKHOPPER): New mips_monitor_type.
7907 (read_hex_value): New function.
7908 (mips_request): Send 8-byte values with a 'T' packet. Read the
7909 packet argument as a string and use read_hex_value to parse it.
7910 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
7911 (rockhopper_open): New function.
7912 (mips_wait): Read the PC, FP and SP fields as strings. Use
7913 read_hex_value to parse them and mips_set_register to commit them.
7914 (mips_set_register): New function.
7915 (mips_fetch_registers): Do not cast register value to "unsigned"
7916 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
7917 (mips_store_registers): Use a 'T' packet to set registers when
7918 using MON_ROCKHOPPER.
7919 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
7920 and expect the total to be printed before the entry address.
7921 (_initialize_remote_mips): Initialize and add rockhopper_ops.
7923 2010-03-08 Kevin Buettner <kevinb@redhat.com>
7925 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
7926 Change return value to int. Store value fetched in location
7927 addressed by `val'. Use function's return value as success
7928 or failure indicator. Adjust all callers.
7930 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
7932 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
7934 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7935 Hui Zhu <teawater@gmail.com>
7937 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
7938 tmp_to_stopped_data_address.
7939 (record_open): Reset tmp_to_stopped_by_watchpoint and
7940 tmp_to_stopped_data_address.
7941 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
7942 to_stopped_data_address.
7944 2010-03-08 Hui Zhu <teawater@gmail.com>
7946 * i386-tdep.c (i386_process_record): Initialize regnum.
7948 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7950 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
7951 Do not warn on ".gnu.liblist" and ".gnu.conflict".
7953 2010-03-08 Joel Brobecker <brobecker@adacore.com>
7955 Memory error when reading wrong core file.
7956 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
7957 errors while reading the inferior memory, and return zero if
7958 an exception was raised.
7960 2010-03-07 Michael Snyder <msnyder@vmware.com>
7962 * record.c (record_restore): Rename tmpu8 to rectype.
7964 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
7965 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
7967 (i386_record_push): Rename local tmpulongest to addr.
7969 (i386_process_record): Rename local tmpulongest to addr.
7971 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
7974 Rename local variable tmpu8 to opcode8 and regnum.
7976 2010-03-07 Joel Brobecker <brobecker@adacore.com>
7978 * remote.c (remote_get_ada_task_ptid): New function.
7979 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
7981 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
7983 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
7984 block. Define helper macros to reduce ifdefs in code.
7985 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
7986 size. Call unadorned GetModuleFileNameEx rather than
7987 GetModuleFileNameEx*.
7988 (windows_make_so): Use __PMAX to denote maximum buffer size and
7989 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
7991 (get_image_name): Use __PMAX to denote maximum buffer size.
7992 (handle_load_dll): Likewise.
7993 (windows_pid_to_exec_file): Likewise.
7994 (windows_create_inferior): Add many accommodations for older Cygwin and
7996 (bad_GetModuleFileNameExW): Control inclusion of this function based on
7997 __USEWIDE conditional.
7998 (bad_GetModuleFileNameExA): Likewise.
7999 (_initialize_loadable): Just use real function names without the dyn_
8000 part since they are defined earlier.
8002 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
8003 Tom Tromey <tromey@redhat.com>
8005 * utils.c (host_char_to_target): Add 'gdbarch' argument.
8006 (parse_escape): Likewise.
8007 * python/py-utils.c (unicode_to_target_string): Update.
8008 (unicode_to_target_python_string): Update.
8009 (target_string_to_unicode): Update.
8010 * printcmd.c (printf_command): Update.
8011 * p-exp.y (yylex): Update.
8012 * objc-exp.y (yylex): Update.
8013 * mi/mi-parse.c: Include charset.h.
8014 (mi_parse_escape): New function.
8015 (mi_parse_argv): Use it.
8016 * jv-exp.y (yylex): Update.
8017 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
8019 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
8020 * gdbarch.sh (auto_charset, auto_wide_charset): New.
8021 * gdbarch.c: Rebuild.
8022 * gdbarch.h: Rebuild.
8023 * defs.h (parse_escape): Update.
8024 * cli/cli-setshow.c: Include arch-utils.h.
8025 (do_setshow_command): Update.
8026 * cli/cli-cmds.c (echo_command): Update.
8027 * charset.h (target_charset, target_wide_charset): Update.
8028 * charset.c: Include arch-utils.h.
8029 (target_charset_name): Default to "auto".
8030 (target_wide_charset_name): Likewise.
8031 (show_target_charset_name): Handle "auto".
8032 (show_target_wide_charset_name): Likewise.
8033 (be_le_arch): New global.
8034 (set_be_le_names): Add 'gdbarch' argument.
8035 (validate): Likewise. Don't call set_be_le_names.
8036 (set_charset_sfunc, set_host_charset_sfunc)
8037 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
8039 (target_charset): Add 'gdbarch' argument.
8040 (target_wide_charset): Likewise. Remove 'byte_order' argument.
8041 (auto_target_charset_name): New global.
8042 (default_auto_charset, default_auto_wide_charset): New functions.
8043 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
8044 for target charsets. Copy result of nl_langinfo. Use GetACP if
8046 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
8047 remove 'byte_order' argument. Update.
8048 (classify_type): Likewise.
8049 (c_emit_char): Update.
8050 (c_printchar): Update.
8051 (c_printstr): Update.
8052 (c_get_string): Update.
8053 (evaluate_subexp_c): Update.
8054 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
8056 * python/python.c (gdbpy_target_charset): New function.
8057 (gdbpy_target_wide_charset): Likewise.
8058 (GdbMethods): Update.
8061 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
8063 * symfile.c (build_section_addr_info_from_objfile): Do not mask
8064 off high address bits.
8066 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
8068 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
8069 address as UnsignedLongLong, not LongLong.
8071 2010-03-05 Kevin Buettner <kevinb@redhat.com>
8072 Pedro Alves <pedro@codesourcery.com>
8074 * remote-mips.c (gdbthread.h): Include.
8075 (remote_mips_ptid): Declare.
8076 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
8077 (common_open): Set inferior_ptid, add it as an inferior, and
8078 as a thread too. Delete FIXME comment regarding start_remote().
8079 (mips_close): Invoke generic_mourn_inferior().
8080 (mips_kill): Make sure that target_mourn_inferior is invoked.
8081 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
8082 it's now invoked from mips_close().
8083 (mips_load): Don't null out inferior_ptid. Don't call
8084 clear_symtab_users().
8085 (mips_thread_alive, mips_pid_to_str): New functions.
8086 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
8087 to_thread_alive and to_pid_to_str operations.
8089 2010-03-04 Tom Tromey <tromey@redhat.com>
8091 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
8092 in DWARF 3 and later.
8093 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
8095 2010-03-04 Keith Seitz <keiths@redhat.com>
8097 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
8098 If the filename portion of the linespec was quoted, recheck the
8099 remainder for additional quoting.
8100 (locate_first_half): Skip over completer chars, too.
8102 2010-03-04 Tom Tromey <tromey@redhat.com>
8104 * printcmd.c (printf_command): Pass dummy argument to
8107 2010-03-04 Doug Evans <dje@google.com>
8109 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
8112 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
8114 2010-03-04 Pedro Alves <pedro@codesourcery.com>
8116 * breakpoint.c (update_watchpoint): Create a sentinel location if
8117 the software watchpoint isn't watching any memory.
8118 (breakpoint_address_bits): Skip dummy software watchpoint locations.
8120 2010-03-04 Pedro Alves <pedro@codesourcery.com>
8122 * utils.c (fputs_maybe_filtered): Check if there's already a top
8123 level interpreter before dereferencing it. If there isn't one,
8124 don't paginate either.
8126 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8128 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
8129 the state right when single stepping.
8130 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
8131 Get the next PC along with the instruction state.
8132 (thumb_get_next_pc): Remove.
8133 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
8135 2010-03-04 Hui Zhu <teawater@gmail.com>
8137 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
8139 2010-03-03 Pedro Alves <pedro@codesourcery.com>
8141 * utils.c (fputs_maybe_filtered): Always disable pagination if the
8142 top level interpreter is MI.
8144 2010-03-03 Stan Shebs <stan@codesourcery.com>
8146 * remote.c (remote_download_tracepoint): Iterate over locations.
8147 * tracepoint.c (validate_actionline): Ditto.
8148 (encode_actions): Add location argument.
8149 (trace_dump_command): Check all locations to see if stepping
8152 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
8153 Eli Zaretskii <eliz@gnu.org>
8155 * NEWS: Add X86 general purpose registers section.
8157 2010-03-03 Tom Tromey <tromey@redhat.com>
8160 * varobj.c (install_new_value): Handle case where new print_value
8163 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
8166 * printcmd.c (printf_command): Print end of format string using
8169 2010-03-02 Tom Tromey <tromey@redhat.com>
8171 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
8172 * defs.h (read_command_lines_1): Add missing 'void'.
8173 * cli/cli-script.c (recurse_read_control_structure): Add missing
8175 (read_next_line): Likewise.
8176 (read_command_lines_1): Likewise.
8178 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8180 * spu-tdep.c (spu_analyze_prologue): Track instruction to
8181 store backchain as part of prologue.
8183 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
8185 * progspace.c (update_address_spaces): Update inferior address spaces
8188 2010-03-02 Doug Evans <dje@google.com>
8190 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
8191 lowpc,highpc args to addrmap_set_empty.
8193 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
8195 * amd64-tdep.c (amd64_byte_names): New.
8196 (amd64_word_names): Likewise.
8197 (amd64_dword_names): Likewise.
8198 (amd64_pseudo_register_name): Likewise.
8199 (amd64_pseudo_register_read): Likewise.
8200 (amd64_pseudo_register_write): Likewise.
8201 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
8202 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
8203 set_gdbarch_pseudo_register_write and
8204 set_tdesc_pseudo_register_name. Don't call
8205 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
8207 * i386-tdep.c (i386_num_mmx_regs): Removed.
8208 (i386_num_pseudo_regs): Likewise.
8209 (i386_byte_names): New.
8210 (i386_word_names): Likewise.
8211 (i386_byte_regnum_p): Likewise.
8212 (i386_word_regnum_p): Likewise.
8213 (i386_mmx_regnum_p): Updated.
8214 (i386_pseudo_register_name): Make it global. Handle byte and
8215 word pseudo-registers.
8216 (i386_pseudo_register_read): Likewise.
8217 (i386_pseudo_register_write): Likewise.
8218 (i386_pseudo_register_type): Handle byte, word and dword
8220 (i386_register_reggroup_p): Don't include pseudo
8221 registers, except for MXX, in any register groups. Don't
8222 include pseudo byte, word, dword registers in general_reggroup.
8223 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
8224 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
8225 pseudo-registers after word pseudo-registers. Call
8226 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
8228 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
8229 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
8231 (i386_byte_regnum_p): New.
8232 (i386_word_regnum_p): Likewise.
8233 (i386_dword_regnum_p): Likewise.
8234 (i386_pseudo_register_name): Likewise.
8235 (i386_pseudo_register_read): Likewise.
8236 (i386_pseudo_register_write): Likewise.
8238 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
8240 * target-descriptions.c (tdesc_type): Remove
8241 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8242 (tdesc_predefined_types): Likewise.
8243 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
8244 if flag name is empty.
8245 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
8247 * features/i386/32bit-core.xml: Define i386_eflags.
8248 * features/i386/64bit-core.xml: Likewise.
8250 * features/i386/32bit-sse.xml: Define i386_mxcsr.
8251 * features/i386/64bit-sse.xml: Likewise.
8253 * features/i386/amd64-linux.c: Regenerated.
8254 * features/i386/amd64.c: Likewise.
8255 * features/i386/i386-linux.c: Likewise.
8256 * features/i386/i386.c: Likewise.
8258 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
8260 * gdbtypes.c (append_composite_type_field_raw): New.
8261 (append_composite_type_field_aligned): Use the new function.
8262 * gdbtypes.h (append_composite_type_field_raw): Declare.
8263 * target-descriptions.c (struct tdesc_type_field): Add start and end.
8264 (struct tdesc_type_flag): New type.
8265 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
8266 kind. Add size to u.u. Add u.f for flags.
8267 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
8268 (tdesc_free_type): Likewise.
8269 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
8270 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
8271 (tdesc_add_bitfield, tdesc_add_flag): New.
8272 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
8273 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
8274 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
8275 current_type. Add current_type_size and current_type_is_flags.
8276 (tdesc_start_union): Clear the new fields.
8277 (tdesc_start_struct, tdesc_start_flags): New.
8278 (tdesc_start_field): Handle struct fields, including bitfields.
8279 (field_attributes): Make type optional. Add start and end.
8280 (union_children): Rename to struct_union_children.
8281 (union_attributes): Rename to struct_union_attributes. Add optional
8283 (flags_attributes): New.
8284 (feature_children): Add struct and flags.
8285 * features/gdb-target.dtd: Add flags and struct to features.
8286 Make field type optional. Add field start and end.
8288 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
8290 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
8291 (amd64_linux_read_description): Likewise.
8292 (_initialize_amd64_linux_nat): Set to_read_description to
8293 amd64_linux_read_description.
8295 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
8296 (amd64_linux_register_name): Removed.
8297 (amd64_linux_register_type): Likewise.
8298 (amd64_linux_core_read_description): New.
8299 (amd64_linux_init_abi): Set target description to
8300 tdesc_amd64_linux if needed. Support orig_rax in target
8301 description. Don't call set_gdbarch_register_name nor
8302 set_gdbarch_register_type. Call
8303 set_gdbarch_core_read_description.
8304 (_initialize_amd64_linux_tdep): Call
8305 initialize_tdesc_amd64_linux.
8307 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
8309 * amd64-tdep.c: Include "features/i386/amd64.c".
8310 (amd64_register_names): Removed.
8311 (amd64_register_name): Likewise.
8312 (amd64_register_type): Likewise.
8313 (amd64_init_abi): Set num_core_regs and register_names. Set
8314 target description to tdesc_amd64 if needed. Don't call
8315 set_gdbarch_register_name nor set_gdbarch_register_type.
8316 (_initialize_amd64_tdep): New.
8318 * i386-linux-nat.c (i386_linux_read_description): New.
8319 (_initialize_i386_linux_nat): Set to_read_description to
8320 i386_linux_read_description.
8322 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
8323 (i386_linux_register_name): Removed.
8324 (i386_linux_core_read_description): New.
8325 (i386_linux_read_description): Likewise.
8326 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
8327 Set target description to tdesc_i386_linux if needed. Support
8328 orig_eax. Set register_reggroup_p. Call
8329 set_gdbarch_core_read_description.
8330 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
8332 * i386-linux-tdep.h (tdesc_i386_linux): New.
8334 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
8337 * i386-tdep.c: Include "features/i386/i386.c".
8338 (i386_register_names): Make it const.
8339 (i386_mmx_names): Likewise.
8340 (i386_num_register_names): Removed.
8341 (i386_register_name): Likewise.
8342 (i386_eflags_type): Likewise.
8343 (i386_mxcsr_type): Likewise.
8344 (i386_sse_type): Likewise.
8345 (i386_register_type): Likewise.
8346 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
8347 (i386_pseudo_register_name): New.
8348 (i386_pseudo_register_type): Likewise.
8349 (i386_mmx_type): Make it static.
8350 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
8351 I387_NUM_REGS. Set num_core_regs and register_names. Don't
8352 call set_gdbarch_register_name nor set_gdbarch_register_type.
8353 Set register_reggroup_p. Set target description to tdesc_i386
8354 if needed. Call set_tdesc_pseudo_register_type,
8355 set_tdesc_pseudo_register_name and tdesc_use_registers.
8356 (_initialize_i386_tdep): Call initialize_tdesc_i386.
8357 initialize_tdesc_x86_64.
8359 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
8360 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
8361 register_names, tdesc and register_reggroup_p.
8362 (I386_NUM_FREGS): Removed.
8363 (i386_eflags_type): Likewise.
8364 (i386_mxcsr_type): Likewise.
8365 (i386_mmx_type): Likewise.
8366 (i386_sse_type): Likewise.
8367 (i386_register_name): Likewise.
8368 (i386_regnum): Add I386_MXCSR_REGNUM.
8369 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
8371 * i387-tdep.h (I387_NUM_REGS): New.
8373 * regformats/i386/i386-linux.dat: Generated.
8374 * regformats/i386/i386.dat: Likewise.
8375 * regformats/i386/amd64-linux.dat: Likewise.
8376 * regformats/i386/amd64.dat: Likewise.
8378 * regformats/reg-i386-linux.dat: Removed.
8379 * regformats/reg-i386.dat: Likewise.
8380 * regformats/reg-x86-64-linux.dat: Likewise.
8381 * regformats/reg-x86-64.dat: Likewise.
8383 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
8385 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
8386 cygwin_conv_path API rather than the deprecated
8387 cygwin_conv_to_full_posix_path.
8389 (GetModuleFileNameExA): Undefine for Cygwin.
8390 (GetModuleFileNameExW): Define for Cygwin.
8391 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
8392 Call GetModuleFileNameExW and convert path to POSIX using
8394 (windows_make_so): Always define p. Drop unused variable m.
8395 Don't use Win32 functions to check file existance, rather use
8396 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
8397 Use canonicalize_file_name to get full path.
8398 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
8399 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
8400 use correct target buffer size in call to WideCharToMultiByte.
8401 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
8402 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
8403 (windows_create_inferior): Convert all paths and arguments to wchar_t
8404 and use CreateProcessW on Cygwin.
8405 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
8406 (bad_GetModuleFileNameExA): Undefine for Cygwin.
8407 (bad_GetModuleFileNameExW): Define for Cygwin.
8408 (_initialize_loadable): Load GetModuleFileNameExW into
8409 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
8411 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
8414 * python/py-frame.c (frapy_read_var): Add block argument and logic
8415 to cope with user provided blocks.
8417 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8419 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
8422 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
8424 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
8425 (COMMON_OBS): ... to here since it's used unconditionally.
8426 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
8429 2010-02-26 David Daney <ddaney@caviumnetworks.com>
8431 * mips-linux-tdep.c: Update struct sigframe comments.
8432 (SIGFRAME_CODE_OFFSET): Delete macro.
8433 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
8435 (mips_linux_n32n64_sigframe_init): Same.
8437 2010-02-26 Kevin Buettner <kevinb@redhat.com>
8439 * remote-mips.c (mips_load): Don't use pseudo-register when
8440 invalidating regcache.
8442 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8444 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
8446 2010-02-26 Pedro Alves <pedro@codesourcery.com>
8448 * NEWS: Add "New targets" section, and mention ARM Symbian
8451 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
8453 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
8454 add ADDR_SIZE member.
8455 (allocate_piece_closure): Update.
8456 (copy_pieced_value_closure): Likewise.
8457 (dwarf2_evaluate_loc_desc): Likewise.
8458 (read_pieced_value): Use DWARF address size instead of
8459 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
8461 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
8462 Tom Tromey <tromey@redhat.com>
8464 * python/py-type.c (typy_lookup_typename): Add in block argument.
8465 If provided restrict lookup to specified blocks.
8466 (gdbpy_lookup_type): Likewise.
8467 (typy_lookup_type): Likewise.
8469 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8474 * arm-symbian-tdep.c: New.
8475 * configure.tgt (arm*-*-symbianelf*): New target.
8476 (*-*-symbianelf*): New OS.
8477 * osabi.c (gdb_osabi_names): Add Symbian.
8478 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
8479 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
8480 (ALLDEPFILES): Add arm-symbian-tdep.c.
8482 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8484 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
8486 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8488 * mi/mi-main.c (mi_cmd_execute): Fix typo.
8490 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
8491 Tom Tromey <tromey@redhat.com>
8492 Thiago Jung Bauermann <bauerman@br.ibm.com>
8494 * python/python.c (_initialize_python): Call
8495 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
8496 gdbpy_initialize_blocks.
8497 * python/python-internal.h: Declare struct symbol, block and
8498 symtab_and_line. Declare block_object_type and
8500 (gdbpy_lookup_symbol gdbpy_block_for_pc)
8501 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
8502 (symbol_to_symbol_object, block_to_block_object)
8503 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
8504 (gdbpy_initialize_blocks ): Declare.
8505 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
8506 (frapy_select): Add methods.
8507 (frapy_read_var): Add symbol branch.
8508 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
8510 (SUBDIR_PYTHON_SRCS): Likewise.
8511 (py-symbol.o): New rule.
8512 (py-symtab.o): Likewise.
8513 (py-block.o): Likewise.
8514 * python/py-symbol.c: New file.
8515 * python/py-symtab.c: Likewise.
8516 * python/py-block.c: Likewise.
8518 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8522 * inferior.h (prepare_for_detach): Declare.
8523 (struct inferior) <detaching>: New field.
8524 * infrun.c (prepare_for_detach): New.
8525 (handle_inferior_event) <random signal>: Don't stop if detaching.
8526 * target.c (target_detach): Call prepare_for_detach.
8528 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8530 Per-process displaced stepping queue.
8532 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
8533 (displaced_step_gdbarch, displaced_step_closure,
8534 (displaced_step_original, displaced_step_copy): Move globals to
8536 (struct displaced_step_inferior_state): ... new structure.
8537 (displaced_step_inferior_states): New global.
8538 (get_displaced_stepping_state, add_displaced_stepping_state)
8539 (remove_displaced_stepping_state, infrun_inferior_exit): New
8541 (displaced_step_clear): Add displaced_step_inferior_state
8542 parameter, and adjust to handle it.
8543 (displaced_step_clear_cleanup): Parameter is now a
8544 displaced_step_inferior_state. Adjust.
8545 (displaced_step_prepare): Adjust.
8546 (displaced_step_fixup, displaced_step_fixup)
8547 (infrun_thread_ptid_changed, resume): Adjust.
8548 (init_wait_for_inferior): Don't call displaced_step_clear.
8549 (infrun_thread_stop_requested): Rewrite.
8550 (_initialize_infrun): Install infrun_inferior_exit as
8551 inferior_exit observer.
8553 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8555 * inferior.h (ptid_match): Declare.
8556 * infrun.c (ptid_match): New.
8557 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
8558 (handle_notification): Add debug output.
8559 * linux-nat.c (ptid_match): Delete.
8561 2010-02-24 David S. Miller <davem@davemloft.net>
8563 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
8564 * syscalls/sparc-linux.xml: New.
8565 * syscalls/sparc64-linux.xml: New.
8566 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
8567 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
8568 (sparc32_linux_get_syscall_number): New function.
8569 (sparc32_linux_init_abi): Set syscall XML file name and hook up
8570 syscall number fetcher.
8571 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
8572 (sparc64_linux_get_syscall_number): New function.
8573 (sparc64_linux_init_abi): Set syscall XML file name and hook up
8574 syscall number fetcher.
8576 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
8580 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
8581 * inferior.c (add_inferior_silent): Notify inferior_added
8583 (delete_inferior_1): Notify inferior_removed observer.
8584 (exit_inferior_1): Pass inferior, not pid, to observer.
8585 (inferior_appeared): Likewise.
8586 (add_inferior_with_spaces): New.
8587 (add_inferior_command): Use the above.
8588 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
8591 * inflow.c (inflow_inferior_exit): Likewise.
8592 * jit.c (jit_inferior_exit_hook): Likewise.
8594 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
8596 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
8597 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
8598 (report_initial_inferior): New.
8599 (mi_inferior_removed): Register the above. Make sure
8600 inferior_added observer is called on the first inferior.
8601 (mi_new_thread, mi_thread_exit): Thread group is now identified by
8602 inferior number, not pid.
8603 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
8605 * mi/mi-main.c (current_context): New.
8606 (proceed_thread_callback): Use typed closure.
8607 Proceed everything if pid is 0. Most implementation split into
8608 (proceed_thread): ... this.
8609 (run_one_inferior): New.
8610 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
8611 Adjust for multiexec behaviour.
8612 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
8613 (mi_cmd_execute): Handle the 'thread-group' option here.
8614 Do some extra checks.
8615 * mi-parse.c (mi_parse): Handle the --all and --thread-group
8617 * mi-parse.h (struct mi_parse): New fields all and thread_group.
8619 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
8621 Make -exec-run a proper MI commands.
8623 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
8624 * mi/mi-cmds.c (mi_cmds): Adjust.
8625 * mi/mi-main.c (mi_cmd_exec_run): New.
8627 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8628 Stan Shebs <stan@codesourcery.com>
8630 * tracepoint.h (set_traceframe_number)
8631 (cleanup_restore_current_traceframe): Declare.
8632 * tracepoint.c (set_traceframe_number): New.
8633 (struct current_traceframe_cleanup): New.
8634 (do_restore_current_traceframe_cleanup)
8635 (restore_current_traceframe_cleanup_dtor)
8636 (make_cleanup_restore_current_traceframe): New.
8637 * infrun.c: Include tracepoint.h.
8638 (fetch_inferior_event): Switch out and in of tfind mode.
8640 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8642 * breakpoint.c (breakpoint_init_inferior): Also delete
8643 bp_shlib_event breakpoints.
8644 * solib-frv.c (enable_break): Remove call to
8645 remove_solib_event_breakpoints.
8646 * solib-svr4.c (enable_break): Ditto.
8647 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
8648 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
8649 * solib-som.c (som_solib_create_inferior_hook): Ditto.
8650 * solib-spu.c (spu_enable_break): Ditto.
8652 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
8654 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
8656 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
8658 * varobj.c (varobj_update): Avoid non-constants in initializers.
8660 2010-02-23 Tom Tromey <tromey@redhat.com>
8662 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
8663 handle big-endian values.
8664 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
8666 2010-02-22 Pedro Alves <pedro@codesourcery.com>
8671 * breakpoint.c (insert_bp_location): If inserting the read
8672 watchpoint failed, fallback to an access watchpoint.
8673 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
8674 if the value changed, if not watching the same memory for writes.
8675 (watchpoint_locations_match): Add comment.
8676 (update_global_location_list): Copy the location's watchpoint type.
8677 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
8678 handle read watchpoints here.
8679 (i386_insert_watchpoint): Read watchpoints aren't supported.
8680 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
8682 * target.h (target_insert_watchpoint): Update description.
8684 2010-02-19 Tom Tromey <tromey@redhat.com>
8686 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
8687 * m2-typeprint.c (m2_print_type): Update.
8688 * gdbtypes.c (recursive_dump_type): Update.
8689 (copy_type_recursive): Update.
8690 * c-typeprint.c (c_type_print_varspec_prefix): Update.
8691 (c_type_print_base): Update.
8692 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
8694 (struct cplus_struct_type) <ntemplate_args>: Remove.
8695 <struct template_arg>: Remove.
8696 <is_dynamic>: Move earlier.
8697 (TYPE_TEMPLATE_ARGS): Remove.
8698 (TYPE_NTEMPLATE_ARGS): Remove.
8699 (TYPE_TEMPLATE_ARG): Remove.
8701 2010-02-19 Tom Tromey <tromey@redhat.com>
8703 PR c++/8693, PR c++/9496:
8704 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
8705 * c-exp.y (lex_one_token): Rename from yylex. Don't call
8706 write_dollar_variable. Don't try to classify NAME tokens.
8707 (token_and_value): New type.
8708 (token_fifo, popping, name_obstack): New globals.
8709 (classify_name): New function.
8710 (classify_inner_name): Likewise.
8712 (VARIABLE): Now has type sval.
8713 (exp : VARIABLE): Call write_dollar_variable.
8714 (qualified_name): Use TYPENAME, not typebase. Add production for
8715 multiple "::" instances.
8716 (variable): Use name_not_typename.
8717 (qualified_type): Remove.
8720 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8722 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
8723 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
8724 found by bfd_get_section_by_name.
8725 * symfile.h (struct section_addr_info) <sectindex>: New comment.
8727 2010-02-19 Joel Brobecker <brobecker@adacore.com>
8729 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
8730 7.0 section" into "Changes in 7.1".
8732 2010-02-19 Joel Brobecker <brobecker@adacore.com>
8734 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
8735 * version.in: Bump version to 7.1.50.20100219-cvs.
8737 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
8739 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
8740 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
8742 2010-02-17 Tom Tromey <tromey@redhat.com>
8744 * NEWS: Add Python API Improvements section.
8746 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
8748 * NEWS: Correct typo.
8750 2010-02-17 Tom Tromey <tromey@redhat.com>
8752 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
8754 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8756 * symfile.c (build_section_addr_info_from_objfile): Include sections
8757 only if they are SEC_ALLOC or SEC_LOAD.
8759 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
8762 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
8763 of ULONGEST for address size.
8765 2010-02-17 Tom Tromey <tromey@redhat.com>
8767 * NEWS: Add C++ improvements section.
8769 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
8771 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
8772 PyThreadState_Swap): Avoid "statement with no effect" warning.
8774 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8776 * solib-svr4.c (enable_break <target_auxv_search>): New variable
8777 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
8779 2010-02-17 Tristan Gingold <gingold@adacore.com>
8780 Petr Hluzin <petr.hluzin@gmail.com>
8782 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
8783 gdb_assert. Fix info->size for SIG prologue.
8785 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8787 * infcmd.c (show_inferior_tty_command): Check for NULL.
8788 Correct output message.
8790 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8792 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
8793 FUNCTION contains parentheses. Improve removal of a trailing
8796 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8798 * gcore.c (do_bfd_delete_cleanup): New function.
8799 (gcore_command): Use it. Discard the cleanup after success.
8800 (gcore_copy_callback): Delete dead code.
8802 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8804 * symfile.c (addr_info_make_relative): Always use
8805 find_lowest_section.
8807 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
8809 * NEWS: Added entry for namespace fixes.
8811 2010-02-15 Tom Tromey <tromey@redhat.com>
8813 * dwarf2read.c (guess_structure_name): Allocate name on the
8816 2010-02-15 Tom Tromey <tromey@redhat.com>
8818 * c-typeprint.c (c_type_print_base): Reverse order of test.
8820 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8822 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
8823 initialize it from ELF BFD. Extend the prelink condition by it.
8825 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8827 * defs.h (parse_pid_to_attach): New.
8828 * utils.c (parse_pid_to_attach): New.
8829 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
8830 * gnu-nat.c (gnu_attach): Likewise.
8831 * nto-procfs.c (procfs_attach): Likewise.
8832 * procfs.c (procfs_attach): Likewise.
8833 * windows-nat.c (windows_attach): Likewise.
8834 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
8835 * inf-ttrace.c (inf_ttrace_attach): Likewise.
8836 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
8839 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
8841 * MAINTAINERS: Add myself for write after approval privileges.
8843 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8845 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
8848 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8850 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
8851 only if INFO_VERBOSE.
8853 2010-02-12 Tomas Holmberg <th@virtutech.com>
8855 * mi/mi-main.c: Added the --reverse flag to the following MI
8856 commands: exec-continue, exec-finish, exec-next, exec-step,
8857 exec-next-instruction, exec-step-instruction. This is to
8858 support reverse execution over the MI interface to gdb.
8860 2010-02-12 Pedro Alves <pedro@codesourcery.com>
8862 * tracepoint.c (_initialize_tracepoint): Specify that the address
8863 range of `tfind outsize' is exclusive, and that the address range
8864 of `tfind range' is inclusive, in the commands' help strings.
8866 2010-02-12 Joel Brobecker <brobecker@adacore.com>
8868 Spurious "dll not found" error messages on x64-windows.
8869 * windows-nat.c: Add include of complaints.h.
8870 (handle_unload_dll): Change dll-not-found error into a complaint.
8872 2010-02-12 Pedro Alves <pedro@codesourcery.com>
8874 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
8875 bp_tracepoint and bp_fast_tracepoint, not
8876 bp_loc_software_breakpoint.
8877 (update_global_location_list): Tracepoints are never duplicates of
8880 2010-02-12 Pedro Alves <pedro@codesourcery.com>
8882 * breakpoint.c (break_command_really): Change return type to int.
8883 Return false if no breakpoint was created, true otherwise.
8884 (trace_command): Don't set the tracepoint count if no tracepoint
8886 (ftrace_command): Ditto.
8887 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
8888 created in the breakpoints table.
8890 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8891 Ulrich Weigand <uweigand@de.ibm.com>
8893 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
8895 2010-02-11 Pedro Alves <pedro@codesourcery.com>
8897 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
8898 the offset value isn't of integral type.
8900 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8902 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
8905 2010-02-11 Pedro Alves <pedro@codesourcery.com>
8907 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
8908 non-subscriptable types.
8909 * valarith.c (binop_types_user_defined_p): New, abstracted out
8911 (binop_user_defined_p): ... this.
8912 * value.h (binop_types_user_defined_p): Declare.
8914 2010-02-11 Pedro Alves <pedro@codesourcery.com>
8916 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
8917 Merge uploaded TSVs before merging uploaded tracepoints.
8919 2010-02-11 Pedro Alves <pedro@codesourcery.com>
8921 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
8923 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
8925 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
8926 whitespace character after a dot in comment.
8927 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
8929 (list_args_or_locals): For the 'all' (that is
8930 -stack-list-variables) case, always output list of tuples.
8931 Output 'arg' field if variable is argument.
8933 2010-02-10 Tom Tromey <tromey@redhat.com>
8935 * parser-defs.h (parser_debug): Declare.
8936 * parse.c (_initialize_parse): Install "debug parser" set/show
8938 (parser_debug): New global.
8939 (show_parserdebug): New function.
8940 * c-exp.y (c_parse): Set yydebug.
8942 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
8944 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
8945 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8946 (tdesc_predefined_types): Add i387_ext, i386_eflags and
8948 (tdesc_find_type): New.
8949 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
8950 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8952 * target-descriptions.h (tdesc_find_type): New.
8954 2010-02-10 Michael Snyder <msnyder@vmware.com>
8956 * gdb-gdb.py: Comment fix.
8958 2010-02-09 Tristan Gingold <gingold@adacore.com>
8960 * machoread.c (macho_symfile_relocate): New function.
8961 (macho_sym_fns): Use macho_symfile_relocate instead of
8962 default_symfile_relocate.
8963 (macho_oso_data): New type.
8964 (current_oso): New variable.
8965 (macho_add_oso_symfile): Do not compute section_addr_info, but
8966 instead set vma of sections.
8967 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
8968 Set and clear current_oso.
8970 2010-02-09 Joel Brobecker <brobecker@adacore.com>
8972 Wrong type description for tagged type parameter.
8973 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
8974 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
8975 reference to a tagged type.
8977 2010-02-09 Tristan Gingold <gingold@adacore.com>
8979 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
8980 brothers of the parent.
8982 2010-02-08 Tom Tromey <tromey@redhat.com>
8986 * valops.c (search_struct_field): Make 'name' const.
8987 (search_struct_method): Likewise.
8988 (find_method_list): Make 'method' const.
8989 (value_struct_elt): Make 'name' and 'err' const.
8990 (value_find_oload_method_list): Make 'method' const.
8991 (find_overload_match): Make 'name' const.
8992 * eval.c (evaluate_subexp_standard): New locals function,
8994 <OP_FUNCALL>: Handle OP_SCOPE specially.
8996 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
8998 * infrun.c (handle_inferior_event): Do not look up regcache
8999 for exited processes.
9001 2010-02-08 Chris Moller <moller@mollerware.com>
9004 * valarith.c (value_ptrdiff): Added a test for a zero type length,
9005 warn if found, and assume length = 1.
9007 2010-02-08 Chris Moller <cmoller@redhat.com>
9010 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
9011 (cp_print_static_field) Fix use of obstacks.
9013 2010-02-08 Pedro Alves <pedro@codesourcery.com>
9015 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
9016 resumed LWPs as resumed.
9017 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
9018 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
9019 of throwing an internal error. If an LWP of a process we're not
9020 waiting for reports a signal, don't force collecting a SIGSTOP,
9021 and if it was breakpoint hit in non-stop mode, cancel it. Don't
9022 go through all LWPs cancelling breakpoints in non-stop mode.
9023 (resume_stopped_resumed_lwps): New.
9024 (linux_nat_wait): Use it.
9026 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
9028 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
9029 i386/amd64 and i386/amd64-linux.
9030 (i386/i386-expedite): New.
9031 (i386/i386-linux-expedite): Likewise.
9032 (i386/amd64-expedite):Likewise.
9033 (i386/amd64-linux-expedite): Likewise.
9034 ($(outdir)/i386/i386-linux.dat): Likewise.
9035 ($(outdir)/i386/amd64.dat): Likewise.
9036 ($(outdir)/i386/amd64-linux.dat): Likewise.
9038 * features/i386/32bit-core.xml: New.
9039 * features/i386/32bit-linux.xml: Likewise.
9040 * features/i386/32bit-sse.xml: Likewise.
9041 * features/i386/64bit-core.xml: Likewise.
9042 * features/i386/64bit-linux.xml: Likewise.
9043 * features/i386/64bit-sse.xml: Likewise.
9044 * features/i386/i386-linux.xml: Likewise.
9045 * features/i386/i386.xml: Likewise.
9046 * features/i386/amd64-linux.xml: Likewise.
9047 * features/i386/amd64.xml: Likewise.
9048 * features/i386/i386-linux.c: Likewise.
9049 * features/i386/i386.c: Likewise.
9050 * features/i386/amd64-linux.c: Likewise.
9051 * features/i386/amd64.c: Likewise.
9053 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
9056 * cp-support.h: Added char* alias element to using_direct data
9058 (cp_add_using): Added char* alias argument.
9059 (cp_add_using_directive): Ditto.
9060 * cp-namespace.c: Updated with the above changes.
9061 (cp_lookup_symbol_imports): Check for aliases.
9062 * dwarf2read.c (read_import_statement): Figure out local alias
9063 for the import and pass it on to cp_add_using.
9064 (read_namespace): Pass alias argument to cp_add_using.
9066 2010-02-05 Hui Zhu <teawater@gmail.com>
9068 * defs.h (gdb_bfd_errmsg): New extern.
9069 * exec.c (exec_file_attach): Change bfd_errmsg to
9071 * utils.c (AMBIGUOUS_MESS1): New macro.
9072 (AMBIGUOUS_MESS2): New macro.
9073 (gdb_bfd_errmsg): New function.
9075 2010-02-04 Doug Evans <dje@google.com>
9077 * solib-svr4.c (enable_break): Add comment.
9079 2010-02-04 Anthony Green <green@moxielogic.com>
9081 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
9084 2010-02-04 Tom Tromey <tromey@redhat.com>
9086 * valops.c (search_struct_field): Account for
9087 value_embedded_offset. Fix check for virtual base past the end of
9088 the object. Use value_copy when making a slice of the value.
9090 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
9093 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
9094 only if gdb_stdout is a tty.
9096 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
9098 * target-descriptions.c: Include "osabi.h".
9099 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
9102 2010-02-04 Tristan Gingold <gingold@adacore.com>
9104 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
9105 (macho_symtab_read): Adjust calls to macho_add_oso.
9106 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
9107 (macho_symfile_read): Adjust call to macho_oso_symfile.
9108 (macho_new_init): Move this function after declarations.
9109 (macho_symfile_init): Ditto.
9110 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
9111 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
9113 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
9115 Include MI command in remotelog.
9117 * mi/mi-main.c (mi_execute_command): Call target_log_command.
9119 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9121 * remote.c (remote_state): Remove gdbarch.
9122 (init_remote_state): Don't set gdbarch.
9123 (remote_query_supported): Pass target_gdbarch instead of
9124 rs->gdbarch to gdbarch_qsupported.
9126 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9128 * gdbarch.sh: Add qsupported.
9130 * gdbarch.c: Regenerated.
9131 * gdbarch.h: Likewise.
9133 * remote.c (remote_state): Add gdbarch.
9134 (init_remote_state): Set gdbarch.
9135 (remote_query_supported): Support gdbarch_qsupported.
9137 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
9139 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
9140 __FreeBSD_kernel_version.
9142 2010-02-03 Tristan Gingold <gingold@adacore.com>
9144 * symfile.h (struct sym_fns): Add sym_relocate field.
9145 (default_symfile_relocate): New prototype.
9146 (symfile_relocate_debug_section): First argument is now an objfile.
9147 * symfile.c (default_symfile_relocate): Rename from
9148 symfile_relocate_debug_section, first argument is now an objfile.
9149 (symfile_relocate_debug_section): New function.
9150 * coffread.c (coff_sym_fns): Set sym_relocate field.
9151 * somread.c (som_sym_fns): Ditto.
9152 * mipsread.c (ecoff_sym_fns): Ditto.
9153 * machoread.c (macho_sym_fns): Ditto.
9154 * elfread.c (elf_sym_fns): Ditto.
9155 * dwarf2read.c (dwarf2_read_section): Ditto.
9156 * xcoffread.c (xcoff_sym_fns): Ditto.
9157 * dbxread.c (aout_sym_fns): Ditto.
9158 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
9159 (elfstab_build_psymtabs): Ditto.
9161 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9163 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
9165 2010-02-02 Tom Tromey <tromey@redhat.com>
9167 * valops.c (value_cast_structs): Try downcasting using the RTTI
9170 2010-02-02 Tom Tromey <tromey@redhat.com>
9172 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
9173 (gnuv2_baseclass_offset): Now static.
9174 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
9175 * gnu-v2-abi.h: Remove.
9177 2010-02-02 Tom Tromey <tromey@redhat.com>
9179 * m2-typeprint.c (m2_record_fields): Don't use
9181 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
9182 (struct main_type) <flag_declared_class>: New field.
9183 (struct cplus_struct_type) <declared_type>: Remove.
9184 <ntemplate_args>: Move earlier.
9185 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
9186 (DECLARED_TYPE_TEMPLATE): Remove.
9187 (TYPE_DECLARED_TYPE): Remove.
9188 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
9189 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
9190 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
9193 2010-02-02 Tom Tromey <tromey@redhat.com>
9195 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
9196 * valops.c (search_struct_field): Compute nbases after calling
9198 (check_field): Call CHECK_TYPEDEF.
9199 * cp-valprint.c (cp_print_value): Pass correct address to
9200 baseclass_offset. Fix check for virtual base past the end of the
9201 object. Don't offset address passed to cp_print_value_fields or
9202 apply_val_pretty_printer.
9203 (cp_print_value_fields): Fix call to val_print.
9204 (cp_print_value_fields_rtti): New function.
9205 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
9206 * p-valprint.c (pascal_object_print_value_fields): Fix call to
9208 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
9210 * language.h (struct language_defn) <la_val_print>: Document.
9211 * c-lang.h (cp_print_value_fields_rtti): Declare.
9213 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9216 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9217 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
9218 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9220 2010-02-01 Michael Matz <matz@suse.de>
9221 Daniel Jacobowitz <dan@codesourcery.com>
9223 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
9224 functions use a frame pointer.
9226 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9228 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
9229 by a conditional setting DYN_ADDR. Use DYN_ADDR.
9230 * config/djgpp/fnchange.lst: Add translations for
9231 symbol-without-target_section.exp and symbol-without-target_section.c.
9233 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9235 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
9236 (remote_breakpoint_for_pc): Correct invalid_p check.
9237 * gdbarch.c: Regenerated.
9239 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9241 * arm-tdep.c (arm_find_mapping_symbol): New function, from
9243 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
9244 (extend_buffer_earlier): New function.
9245 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
9246 (arm_adjust_breakpoint_address): New function.
9247 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
9249 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9251 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
9252 (arm_linux_thumb2_le_breakpoint): New constants.
9253 (arm_linux_init_abi): Set thumb2_breakpoint and
9254 thumb2_breakpoint_size.
9255 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
9256 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
9257 Implement support for single stepping through IT blocks if
9258 a 32-bit Thumb breakpoint instruction is available.
9259 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
9260 is available, use it when needed.
9261 (arm_remote_breakpoint_from_pc): New function.
9262 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
9263 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
9264 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
9266 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9268 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
9269 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
9270 * gdbarch.c, gdbarch.h: Regenerated.
9271 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
9272 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
9273 gdbarch_remote_breakpoint_from_pc.
9275 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9277 * infrun.c (prepare_to_proceed): Handle other signals which might
9279 (handle_inferior_event): Move the check for unusual breakpoint
9282 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
9284 amd64 - function returning record with field straddling 2 registers.
9285 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
9286 a record of length <= 16 in which a field straddles the two
9289 2010-01-29 Joel Brobecker <brobecker@adacore.com>
9291 Implement return values on amd64-windows.
9292 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
9293 (amd64_windows_return_value): New function.
9294 (amd64_windows_init_abi): Call set_gdbarch_return_value with
9295 amd64_windows_return_value.
9297 2010-01-29 Joel Brobecker <brobecker@adacore.com>
9299 amd64-windows: 32 bytes allocated on stack by caller for integer
9300 parameter registers.
9301 * i386-tdep.h (struct gdbarch_tdep): Add new field
9302 integer_param_regs_saved_in_caller_frame.
9303 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
9304 tdep->integer_param_regs_saved_in_caller_frame to 1.
9305 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
9306 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
9308 2010-01-29 Joel Brobecker <brobecker@adacore.com>
9310 amd64-windows: memory args passed by pointer during function calls.
9311 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
9312 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
9313 where tdep->memory_args_by_pointer is non-zero.
9314 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
9315 tdep->memory_args_by_pointer to 1.
9317 2010-01-29 Joel Brobecker <brobecker@adacore.com>
9319 amd64-windows: Integer parameters in function calls.
9320 * i386-tdep.h (enum amd64_reg_class): New, moved here from
9322 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
9323 call_dummy_integer_regs, and classify.
9324 * amd64-tdep.h (amd64_classify): Add declaration.
9325 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
9326 (amd64_reg_class): Delete, moved to i386-tdep.h.
9327 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
9328 Replace call to amd64_classify by call to tdep->classify.
9329 (amd64_push_arguments): Get the list of registers to use for
9330 passing integer parameters from the gdbarch tdep structure,
9331 rather than using a hardcoded one. Replace calls to amd64_classify
9332 by calls to tdep->classify.
9333 (amd64_push_dummy_call): Get the register number used for
9334 the "hidden" argument from tdep->call_dummy_integer_regs.
9335 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
9336 and tdep->call_dummy_integer_regs. Set tdep->classify.
9337 * amd64-windows-tdep.c: Add include of gdbtypes.h.
9338 (amd64_windows_dummy_call_integer_regs): New static global.
9339 (amd64_windows_classify): New function.
9340 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
9341 tdep->call_dummy_integer_regs and tdep->classify.
9343 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
9345 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
9346 for the new regcache. All callers updated.
9347 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
9348 (get_thread_arch_regcache): Do not set aspace here.
9349 * regcache.h (regcache_xmalloc): Update declaration.
9351 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
9352 regcache_xmalloc updated.
9354 2010-01-28 Joel Brobecker <brobecker@adacore.com>
9356 Another -Wunused-function error in procfs.c (sparc-solaris)
9357 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
9358 Only define if SYS_syssgi is defined.
9359 (remove_dbx_link_breakpoint): Delete declaration. Move up.
9360 (dbx_link_addr, insert_dbx_link_bpt_in_file)
9361 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
9364 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
9366 * windows-nat.c (windows_initialization_done): New variable.
9367 (get_windows_debug_event): Issue error when process dies before
9368 completely initializing.
9369 (do_initial_windows_stuff): Set flag to indicate when we are done with
9370 the initial steps of attaching to the child.
9372 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9374 * symtab.h (struct symbol <symtab>): New comment on NULL values.
9376 2010-01-27 Doug Evans <dje@google.com>
9378 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
9380 * breakpoint.c (bpstat_stop_status): Delete useless code.
9382 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9384 * printcmd.c (display_uses_solib_p): Remove variable section. Access
9385 objfile via SYMBOL_SYMTAB.
9387 2010-01-26 Tom Tromey <tromey@redhat.com>
9390 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
9391 coerce_array on result.
9393 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
9395 * cp-namespace.c (cp_lookup_symbol_namespace): Added
9396 search_parent argument.
9397 (cp_add_using): Initialize 'searched' field.
9398 (reset_directive_searched): New function.
9399 * cp-support.h: Add 'searched' field to using_direct struct.
9400 (cp_lookup_symbol_imports): Ditto.
9401 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
9402 Perform recursive search.
9403 Implement non parent search.
9404 * valops.c (value_maybe_namespace_elt): Updated.
9406 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
9409 * dwarf2read.c (read_lexical_block_scope): Create blocks for
9410 scopes which contain using directives even if they contain no
9412 * symtab.c (lookup_symbol_aux): Pass lowest level block to
9413 la_lookup_symbol_nonlocal.
9414 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
9415 cp_lookup_symbol_namespace.
9416 (cp_lookup_symbol_namespace): Perform an import lookup at every
9418 (cp_lookup_symbol_imports): New function.
9419 (cp_lookup_symbol_in_namespace): New function.
9421 2010-01-25 Tom Tromey <tromey@redhat.com>
9424 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
9427 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9429 * configure.ac: Only use host_os part when disabling TUI on osf.
9430 Use test to check variables, prefix strings with x.
9431 * configure: Regenerate.
9433 * solib-osf.c (osf_current_sos): Initialize tail.
9435 2010-01-25 gingold <gingold@adacore.com>
9437 * windows-nat.c (windows_continue): Use %x to print thread id.
9438 (get_windows_debug_event): Ditto.
9440 2010-01-22 Tom Tromey <tromey@redhat.com>
9443 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
9444 type and arguments. Use smash_to_methodptr_type.
9445 (read_structure_type): Call quirk_gcc_member_function_pointer
9447 * gdbtypes.h (smash_to_methodptr_type): Declare.
9448 * gdbtypes.c (smash_to_methodptr_type): New function.
9449 (lookup_methodptr_type): Use it.
9451 2010-01-21 Tom Tromey <tromey@redhat.com>
9454 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
9455 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
9456 * glibc-tdep.c (find_minsym_and_objfile): Remove.
9457 (glibc_skip_solib_resolver): Use
9458 lookup_minimal_symbol_and_objfile.
9460 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
9462 * inflow.c (check_syscall): Guard by #if clause for GO32 and
9465 2010-01-20 Tom Tromey <tromey@redhat.com>
9468 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
9469 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
9470 * dwarf2expr.c (new_dwarf_expr_context): Allocate
9471 dwarf_stack_values, not CORE_ADDRs.
9472 (execute_stack_op): Change DW_OP_div and comparison operators to
9473 use signed operands.
9475 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
9477 Per-inferior args and tty and environment.
9479 * infcmd.c (inferior_args): Rename to ...
9480 (inferior_args_scratch): ... this.
9481 (inferior_io_terminal): Rename to ...
9482 (inferior_io_terminal_scratch): ... this.
9483 (inferior_argc, inferior_argv): Remove.
9484 (set_inferior_io_terminal, get_inferior_io_terminal): Store
9485 inside current_inferior().
9486 (set_inferior_tty_command, show_inferior_tty_command): New.
9487 (get_inferior_args, set_inferior_args): Store inside
9489 (notice_args_set): Likewise and rename to...
9490 (set_args_command): ... this.
9491 (set_inferior_args_vector): Likewise.
9492 (notice_args_read): Rename to...
9493 (show_args_command): ...new.
9494 (tty_command): Remove.
9495 (run_command_1): Don't free old args, as they are freed by
9496 set_inferior_arg now.
9497 (run_no_args_command): Likewise.
9498 (inferior_environ): Remove.
9499 (run_command_1): Use environment of the current inferior.
9500 (environment_info, set_environment_command)
9501 (unset_environment_command, path_info, path_command): Likewise.
9502 (_initialize_infcmd): Adjust for function and variable renames.
9503 Do not init inferior_environ.
9504 * inferior.h (set_inferior_arg): Adjust prototype.
9505 (struct inferior): New fields args, argc, argv, terminal, environment.
9506 (inferior_environ): Remove declaration.
9507 * inferior.c (free_inferior): Free new fields.
9508 (add_inferior_silent): Initialize 'environment' field.
9509 * main.c (captured_main): Set arguments only after the initial
9510 inferior has been created. Set set_inferior_io_terminal,
9512 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
9514 (_initialize_mi_cmd_env): Adjust for disappearance of global
9516 * solib.c (solib_find): Use environment of the current inferior.
9518 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9520 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
9522 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
9524 2010-01-20 Joel Brobecker <brobecker@adacore.com>
9526 Get rid of ada-lang.c:function_name_from_pc.
9527 * ada-lang.c: Add "stack.h" #include.
9528 (function_name_from_pc): Delete.
9529 (is_known_support_routine): Replace call to function_name_from_pc
9530 by call to find_frame_funname.
9531 (ada_unhandled_exception_name_addr_from_raise): Likewise.
9533 2010-01-19 Tom Tromey <tromey@redhat.com>
9536 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
9539 2010-01-19 Tom Tromey <tromey@redhat.com>
9541 * top.c (stop_sig, float_handler, do_nothing): Remove.
9543 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9545 * breakpoint.c (watchpoint_check): Check the call
9546 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
9548 * config/djgpp/fnchange.lst: Add translations for
9549 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
9550 watchpoint-cond-gone-stripped.c.
9552 2010-01-19 Tom Tromey <tromey@redhat.com>
9555 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
9556 into parent scope, and enumerator into grandparent scope.
9558 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9560 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
9562 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9564 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
9565 i[34567]86-*-solaris2.1[0-9]*.
9566 * configure.tgt: Likewise.
9568 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9570 * NEWS: Document the source command enhancement allowing it
9571 to load Python scripts. Document the "set/show script-extension"
9574 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9576 Add -Wunused-function to compile flags.
9577 * configure.ac: Add -Wunused-function to build_warnings.
9578 * configure: Regenerate.
9580 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9582 "delete" ada-lex.c:input function, not used.
9583 * ada-lex.l: #define YY_NO_INPUT.
9585 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9587 Delete free_named_symtabs and associated cleanup.
9588 * symfile.h (free_named_symtabs): Delete declaration.
9589 * symfile.c: Remove some commented out code (clear_symtab_users_once).
9590 (cashier_psymtab): Comment function out.
9592 (free_named_symtabs): Delete.
9593 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
9594 * dbxread.c (end_psymtab): Likewise.
9595 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
9596 * exec.c (exec_close_1): Ditto.
9597 * xcoffread.c (xcoff_end_psymtab): Likewise.
9599 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9601 * stack.c (print_block_frame_labels): Comment function out.
9603 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9605 Delete unused or undefined functions.
9606 * breakpoint.c (ep_parse_optional_filename): Delete.
9607 * dcache.c (dcache_write_line): Remove declaration.
9608 * infrun.c (build_infrun): Remove declaration.
9609 * tracepoint.c (tracepoint_save_command): Remove declaration.
9610 * linux-nat.c (init_lwp_list): Delete. No longer used.
9611 * event-loop.c (check_async_signal_handlers): Delete declaration.
9612 * infrun.c (init_execution_control_state): Delete.
9613 (proceed): Update comment to avoid mentioning
9614 init_execution_control_state.
9615 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
9616 * ada-lang.c (ada_to_static_fixed_value): Delete.
9617 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
9618 * cp-namespace.c (cp_copy_usings): Delete.
9619 * xml-syscall.c (xml_number_of_syscalls): Delete.
9620 * progspace.c (find_program_space_by_num): Delete.
9621 * inflow.c (handle_sigio): Delete declaration.
9622 * hppa-tdep.c (hppa_alignof): Delete.
9623 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
9624 (mipsnbsd_core_osabi_sniffer): Delete.
9626 2010-01-18 Tom Tromey <tromey@redhat.com>
9629 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
9630 (CONST_CAST): New tokens.
9631 (exp): Add new productions.
9632 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
9634 (is_cast_operator): New function.
9635 (yylex): Handle cast operators specially.
9636 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
9637 UNOP_REINTERPRET_CAST>: New cases.
9638 * expprint.c (print_subexp_standard): Likewise.
9639 (op_name_standard): Likewise.
9640 (dump_subexp_body_standard): Likewise.
9641 * parse.c (operator_length_standard): Likewise.
9642 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
9643 UNOP_REINTERPRET_CAST.
9644 * gdbtypes.c (class_types_same_p): New function.
9645 (is_ancestor): Use it.
9646 (is_public_ancestor): New function.
9647 (is_unique_ancestor_worker): Likewise.
9648 (is_unique_ancestor): Likewise.
9649 * gdbtypes.h (class_types_same_p, is_public_ancestor)
9650 (is_unique_ancestor): Declare.
9651 * valops.c (value_reinterpret_cast): New function.
9652 (dynamic_cast_check_1): Likewise.
9653 (dynamic_cast_check_2): Likewise.
9654 (value_dynamic_cast): Likewise.
9655 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
9657 2010-01-18 Joel Brobecker <brobecker@adacore.com>
9659 Fix build failure when building without Python support.
9660 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
9663 2010-01-18 Joel Brobecker <brobecker@adacore.com>
9665 Use XVS field type instead of doing a parallel lookup.
9666 * ada-lang.c (ada_get_base_type): Follow the XVS field type
9667 if it is a reference type instead of doing a type lookup using
9670 2010-01-18 Joel Brobecker <brobecker@adacore.com>
9672 Trust PAD types instead of using PAD___XVS.
9673 * ada-lang.c (trust_pad_over_xvs): New static variable.
9674 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
9675 parallel XVS type, follow the XVS type instead of the PAD type.
9676 (unwrap_value): Make sure that there is no parallel XVE type
9677 before returning the value as is.
9678 (set_ada_list, show_ada_list): New static variables.
9679 (set_ada_command, show_ada_command): New functions.
9680 (_initialize_ada_language): Add new "set/show ada" prefix commands.
9681 Add new "set/show ada trust-PAD-over-XVS" setting.
9683 2010-01-18 Tom Tromey <tromey@redhat.com>
9684 Thiago Jung Bauermann <bauerman@br.ibm.com>
9686 Allow "source" to load python scripts.
9687 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
9688 * python/python.c (source_python_script): New function.
9689 * python/python.h (source_python_script): Add declaration.
9690 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
9691 (script_ext_off, script_ext_soft, script_ext_strict)
9692 (script_ext_enums, script_ext_mode): New static constants.
9693 (show_script_ext_mode, find_and_open_script): New functions.
9694 (source_script): Enhance to handle Python scripts.
9695 (init_cli_cmds): Add set/show script-extension commands.
9697 2010-01-16 Stan Shebs <stan@codesourcery.com>
9699 * tracepoint.h (struct trace_status): Use unsigned long long
9701 * tracepoint.c (trace_status_command): Fix printf directive.
9702 (trace_save_command): Check fwrite returns, fix printf directive.
9703 (trace_filename): New global.
9704 (tfile_open): Set it, check read returns.
9705 (tfile_close): Free trace_filename.
9706 (tfile_get_traceframe_address): Check read returns.
9707 (tfile_trace_find): Ditto.
9708 (tfile_fetch_registers): Ditto.
9709 (tfile_xfer_partial): Ditto.
9710 (tfile_get_trace_state_variable_value): Ditto.
9712 2010-01-15 Stan Shebs <stan@codesourcery.com>
9714 Add trace file support.
9715 * tracepoint.h (enum trace_stop_reason): New enum.
9716 (struct trace_status): New struct.
9717 (parse_trace_status): Declare.
9718 (struct uploaded_tp): Move here from remote.c,
9719 add fields for actions.
9720 (struct uploaded_tsv): New struct.
9721 * tracepoint.c (tfile_ops): New target vector.
9722 (trace_fd): New global.
9723 (tfile_open): New function.
9724 (tfile_close): New function.
9725 (tfile_files_info): New function.
9726 (tfile_get_trace_status): New function.
9727 (tfile_get_traceframe_address): New function.
9728 (tfile_trace_find): New function.
9729 (tfile_fetch_registers): New function.
9730 (tfile_xfer_partial): New function.
9731 (tfile_get_trace_state_variable_value): New function.
9732 (init_tfile_ops): New function.
9733 (_initialize_tracepoint): Call it, add tfile target.
9734 (trace_status): New global.
9735 (current_trace_status): New function.
9736 (trace_running_p): Remove, change all users to get from
9737 current_trace_status()->running.
9738 (get_trace_status): Remove.
9739 (trace_status_command): Call target_get_trace_status directly,
9740 report more detail including tracing stop reasons.
9741 (trace_find_command): Always allow tfind on a file.
9742 (trace_find_pc_command): Ditto.
9743 (trace_find_tracepoint_command): Ditto.
9744 (trace_find_line_command): Ditto.
9745 (trace_find_range_command): Ditto.
9746 (trace_find_outside_command): Ditto.
9747 (trace_frames_offset, cur_offset): Declare as off_t.
9748 (trace_regblock_size): Rename from reg_size, update users.
9749 (parse_trace_status): New function.
9750 (tfile_interp_line): New function.
9751 (disconnect_or_stop_tracing): Ensure current trace
9752 status before asking what to do.
9753 (stop_reason_names): New global.
9754 (trace_save_command): New command.
9755 (get_uploaded_tp): Move here from remote.c.
9756 (find_matching_tracepoint): Ditto.
9757 (merge_uploaded_tracepoints): New function.
9758 (parse_trace_status): Use stop_reason_names.
9759 (_initialize_tracepoint): Define tsave command.
9760 * target.h (target_ops): New fields to_save_trace_data,
9761 to_upload_tracepoints, to_upload_trace_state_variables,
9762 to_get_raw_trace_data, change to_get_trace_status
9763 to take a pointer to a status struct.
9764 (target_save_trace_data): New macro.
9765 (target_upload_tracepoints): New macro.
9766 (target_upload_trace_state_variables): New macro.
9767 (target_get_raw_trace_data): New macro.
9768 * target.c (update_current_target): Add new methods, change
9769 signature of to_get_trace_status.
9770 * remote.c (hex2bin): Make globally visible.
9772 (remote_download_trace_state_variable): Download name also.
9773 (remote_get_trace_status): Update parameter, use
9775 (remote_save_trace_data): New function.
9776 (remote_upload_tracepoints): New function.
9777 (remote_upload_trace_state_variables): New function.
9778 (remote_get_raw_trace_data): New function.
9779 (remote_start_remote): Use them.
9780 (_initialize_remote_ops): Add operations.
9781 * ax-gdb.c: Include breakpoint.h.
9782 * breakpoint.c (create_tracepoint_from_upload): Use
9783 break_command_really, return tracepoint, warn about unimplemented
9785 * NEWS: Mention trace file addition.
9787 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9789 Fix compilation warning on gcc-3.4.
9790 * exec.c (print_section_info): Move the `displacement' variable
9791 initialization to its declaration.
9793 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9795 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
9798 2010-01-15 Eric Botcazou <botcazou@adacore.com>
9800 "info tasks" broken by typedefs in ATCB type definitions.
9801 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
9802 ada_check_typedef before retrieving the length of the type for
9805 2010-01-15 Joel Brobecker <brobecker@adacore.com>
9807 Do not use name-based lookup for unconstrained packed arrays.
9808 * ada-lang.c (find_parallel_type_by_descriptive_type):
9809 Limit the fallback to name-based lookups to the case where
9810 the type is a constrained packed array.
9812 2010-01-15 Joel Brobecker <brobecker@adacore.com>
9814 Enhance gdb-gdb.py to handle main_type.type_specific.
9815 * gdb-gdb.py: Print the type-specific part of struct main_type.
9817 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9819 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
9820 * configure: Regenerate.
9821 * config.in: Regenerate.
9822 * utils.c: Include sys/resource.h.
9823 (dump_core, can_dump_core): New.
9824 (internal_vproblem): Update the comment. Check can_dump_core while
9825 setting dump_core_p. Replace two abort calls by dump_core calls.
9827 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9828 Eli Zaretskii <eliz@gnu.org>
9830 * NEWS: Document the PIE support.
9832 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9834 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
9835 (check_is_pie_binary, _initialize_linux_tdep): Remove.
9837 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9839 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
9840 Replace exec_entry_point call by bfd_get_start_address.
9842 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9844 Support Valgrind attachments broken by the PIE support.
9845 * auxv.c: Include gdbcore.h.
9846 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
9847 parameters ops, object and annex. Remove their assertions.
9848 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
9849 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
9850 (memory_xfer_auxv): ... here.
9851 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
9853 * procfs.c (procfs_xfer_partial): Likewise.
9854 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
9855 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
9856 (svr4_solib_create_inferior_hook): Conditionalize the
9857 svr4_relocate_main_executable call.
9859 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9861 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
9862 target_section. Find SECT in current_target_sections, gdb_assert it.
9863 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
9865 * symtab.c (lookup_objfile_from_block): Return the binary file instead
9866 of separate debug info file.
9868 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9870 Support PIEs with no symfile_objfile.
9871 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
9872 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
9874 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9876 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
9878 (svr4_static_exec_displacement): ... a new function.
9879 (svr4_exec_displacement): New function.
9880 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
9881 new_offsets using alloca now. Remove variable old_chain and changed.
9882 Call objfile_relocate unconditionally now.
9884 2010-01-14 Doug Evans <dje@google.com>
9886 * gdbtypes.c (arch_flags_type): Fix comment.
9887 * gdbtypes.h (arch_composite_type): Fix comment.
9889 2009-01-14 Tristan Gingold <gingold@adacore.com>
9891 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
9892 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
9893 to symbol_file_add_from_bfd. Add OSO as separate objfile.
9894 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
9895 macho_add_oso_symfile.
9896 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
9898 2010-01-14 Joel Brobecker <brobecker@adacore.com>
9900 Tru64: Dead threads are never deleted.
9901 * dec-thread.c (dec_thread_ptid_is_alive): New function.
9902 (dec_thread_count_gdb_threads): Fix counter increment.
9903 (dec_thread_add_gdb_thread): Fix *listp increment.
9904 (resync_thread_list): Fix bug in deletion of dead threads that
9905 caused all threads to be deleted, instead of just the dead ones.
9907 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
9911 * python/python-internal.h: Add lazy_string_object_type
9913 (create_lazy_string_object, gdbpy_initialize_lazy_string)
9914 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
9915 * python/py-value.c (valpy_lazy_string): New function.
9916 (convert_value_from_python): Add lazy string conversion.
9917 * python/py-prettyprint.c (pretty_print_one_value): Check if
9918 return is also a lazy string.
9919 (print_string_repr): Add lazy string printing branch.
9920 (print_children): Likewise.
9921 * python/py-lazy-string.c: New file. Implement lazy strings.
9922 * python/python.c (_initialize_python): Call
9923 gdbpy_initialize_lazy_string.
9924 * varobj.c (value_get_print_value): Add lazy string printing
9925 branch. Account for encoding.
9926 * c-lang.c (c_printstr): Account for new encoding argument. If
9927 encoding is NULL, find encoding suited for type, otherwise use
9929 * language.h (language_defn): Add encoding argument.
9930 (LA_PRINT_STRING): Likewise.
9931 * language.c (unk_lang_printstr): Update to reflect new encoding
9932 argument to language_defn.
9933 * ada-lang.h (ada_printstr): Likewise.
9934 * c-lang.h (c_printstr): Likewise.
9935 * p-lang.h (pascal_printstr);
9936 * f-lang.c (f_printstr): Likewise.
9937 * m2-lang.c (m2_printstr): Likewise.
9938 * objc-lang.c (objc_printstr): Likewise.
9939 * p-lang.c (pascal_printstr): Likewise.
9940 * scm-lang.c (scm_printstr): Likewise.
9941 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
9943 * ada-valprint.c (ada_printstr): Likewise.
9944 * f-valprint.c (f_val_print): Likewise
9945 * m2-valprint.c (m2_val_print): Likewise.
9946 * p-valprint.c (pascal_val_print): Likewise.
9947 * expprint.c (print_subexp_standard): Likewise.
9948 * valprint.c (val_print_string): Likewise.
9949 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
9950 (SUBDIR_PYTHON_SRCS): Likewise.
9951 (py-lazy-string.o): New rule.
9953 2010-01-13 Doug Evans <dje@google.com>
9955 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
9956 uninitialized" warning from gcc on local `tree'.
9958 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
9960 Implement core awareness.
9962 * bcache.c (compare_ints): Remove
9963 (print_percentage): Use compare_positive_ints.
9964 * defs.h (compare_positive_ints): Declare.
9965 * linux-nat.h (struct lin_lwp): New field core.
9966 (linux_nat_core_of_thread_1): Declare.
9967 * linux-nat.c (add_lwp): Init the 'core' field.
9968 (linux_nat_wait_1): Record the core.
9969 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
9970 (linux_nat_add_target): Register the above.
9971 * linux-thread-db.c (update_thread_core): New.
9972 (thread_db_find_new_threads): Update core information for
9974 * remote.c (struct private_thread_info): New.
9975 (free_private_thread_info, demand_private_info): New.
9976 (PACKET_qXfer_threads, use_osdata_threads): New.
9977 (struct thread_item, threads_parsing_context
9978 (start_thread, end_thread, thread_attributes)
9979 (thread_children, threads_children, threads_elements): New.
9980 (remote_threads_info): Try qXfer:threads before anything
9982 (remote_protocol_packets): Register qXfer:threads.
9983 (remote_open_1): Init use_osdata_threads.
9984 (struct stop_reply): New field 'core'.
9985 (remote_parse_stop_reply): Parse core number.
9986 (process_stop_reply): Record core number.
9987 (remote_xfer_partial): Handle qXfer:threads.
9988 (remote_core_of_thread): New.
9989 (init_remote_ops): Register remote_core_of_thread.
9990 (_initialize_remote): Register qXfer:read.
9991 * target.c (target_core_of_thread): New
9992 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
9993 (struct target_ops): New field to_core_of_threads.
9994 (target_core_of_thread): Declare.
9995 * gdbthread.h (struct thread_info): New field private_dtor.
9996 * thread.c (print_thread_info): Report the core.
9997 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
9998 * utils.c (compare_positive_ints): New.
9999 * features/threads.dtd: New.
10000 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
10001 * mi/mi-main.c (struct collect_cores_data, collect_cores)
10002 (do_nothing, free_vector_of_osdata_items)
10003 (splay_tree_int_comparator, free_splay_tree): New.
10004 (print_one_inferior_data): Implemented printing of selected
10005 inferiors. Collect and print cores.
10006 (output_cores): New.
10007 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
10008 thread groups together with --available.
10010 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10012 * configure: Regenerate (for _STRUCTURED_PROC).
10014 2010-01-12 Joel Brobecker <brobecker@adacore.com>
10016 Delete dead function.
10017 * ada-lang.c (extract_string): Delete. No longer used.
10019 2010-01-12 Joel Brobecker <brobecker@adacore.com>
10021 Fix -Wunused warning in dec-thread.c.
10022 * dec-thread.c (dec_thread_count_gdb_threads)
10023 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
10025 2010-01-12 Joel Brobecker <brobecker@adacore.com>
10027 * ada-valprint.c (ada_print_floating): Remove trailing space.
10029 2010-01-12 Joel Brobecker <brobecker@adacore.com>
10031 Add support for DW_AT_GNAT_descriptive_type.
10032 * gdbtypes.h (enum type_specific_kind): New enum.
10033 (struct main_type) [type_specific_field]: New component.
10034 [type_specific]: Add new component "gnat_stuff".
10035 (struct gnat_aux_type): New type.
10036 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
10037 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
10038 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
10039 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
10040 (TYPE_SPECIFIC_FIELD): New macros.
10041 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
10042 type does not hold any cplus-specific data.
10043 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
10044 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
10045 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
10046 cplus-specific data.
10047 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
10048 Set new component TYPE_SPECIFIC_FIELD (type).
10049 (gnat_aux_default): New constant.
10050 (allocate_gnat_aux_type): New function.
10051 (init_type): Add initialization the type-specific stuff for
10052 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
10053 (print_gnat_stuff): New function.
10054 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
10055 specific data. Adjust code that prints the contents of the
10056 type-specific union using the TYPE_SPECIFIC_FIELD value.
10057 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
10058 the type cplus stuff for Ada types.
10059 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
10060 Error out if these routines are called with an Ada type.
10061 (read_structure_type, read_array_type, read_subrange_type):
10062 Add call to set_descriptive_type.
10063 (set_die_type): Initialize the gnat-specific data if necessary.
10064 (need_gnat_info, die_descriptive_type, set_descriptive_type):
10066 * ada-lang.c (decode_constrained_packed_array_type): Use
10067 decode_constrained_packed_array_type instead of doing a standard
10068 lookup to locate a parallel type.
10069 (find_parallel_type_by_descriptive_type): New function.
10070 (ada_find_parallel_type_with_name): New function.
10071 (ada_find_parallel_type): Reimplement using
10072 ada_find_parallel_type_with_name.
10073 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
10074 to check if type has a cplus stuff.
10075 * linespec.c (total_number_of_methods): Likewise.
10076 * mdebugread.c (new_type): Likewise.
10078 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10080 * NEWS: Document the 0b binary number prefix parsing.
10082 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10084 * objfiles.c (objfile_relocate1): Change the return type to int.
10085 Describe the new return value. Return non-zero if data changed.
10086 (objfile_relocate): New variable changed. Set it. Call
10087 breakpoint_re_set depending on CHANGED.
10089 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10091 Implement binary numbers parsing.
10092 * c-exp.y (parse_number): New case 'b' and 'B'.
10094 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10095 Tristan Gingold <gingold@adacore.com>
10097 * solib.c (info_sharedlibrary_command): Replace
10098 objfile_has_partial_symbols and objfile_has_full_symbols calls by
10099 objfile_has_symbols.
10101 2010-01-10 Joel Brobecker <brobecker@adacore.com>
10103 * NEWS: Document the improvements made to the mips-irix port.
10105 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10107 Fix the documentation of valprint.c:value_print.
10108 * valprint.c (value_print): Update the function description to
10109 mention that the syntax of the output follows the current_language,
10112 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10114 Fix displacement of separate debug info files.
10115 * objfiles.c (objfile_relocate): Rename to ...
10116 (objfile_relocate1): ... here and make it static. Extend the comment.
10117 (objfile_relocate): New function.
10118 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
10119 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
10120 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
10121 allocated using alloca.
10122 * symfile.c (copy_section_addr_info): Remove.
10123 (build_section_addr_info_from_objfile): Make it global. New variables
10124 addr_bit and mask, use them.
10125 * symfile.h (build_section_addr_info_from_objfile): New prototype.
10126 (copy_section_addr_info): Remove.
10128 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10130 Signal unwinder for mips-irix N32.
10131 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
10133 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
10134 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
10135 (SIGCONTEXT_LO_OFF): New macros.
10136 (mips_irix_n32_tramp_frame_init): New function.
10137 (mips_irix_n32_tramp_frame): New static constant.
10138 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
10140 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10142 Breakpoint in shared library does not work on mips-irix.
10143 * procfs.c: #include "observer.h".
10144 (procfs_inferior_created): New function, moving here the code
10145 which unsets the syssgi syscall-exit notifications.
10146 (procfs_create_inferior): Remove the code which unsets the syssgi
10147 syscall-exit notifications. It is too early to do this here.
10148 (_initialize_procfs): Attach the procfs_inferior_created observer.
10150 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10152 Wrong return convention for arrays (mips-irix).
10153 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
10154 128 bits or smaller are returned the same way as structs
10155 and unions of the the same size.
10157 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10159 Cannot set the PC on mips-irix.
10160 * irix5-nat.c (fill_gregset): Check regno against the raw PC
10161 register number, no the cooked one.
10163 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10165 Error while loading core file on mips-irix.
10166 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
10167 if debugging from a core file.
10169 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10171 GDB hangs when attaching to process on mips-irix.
10172 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
10173 attaching to a process.
10175 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10177 Use the correct breakpoint instruction on mips-irix.
10178 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
10179 containing the correct breakpoint instruction to use on mips-irix.
10180 Use it when the osabi is GDB_OSABI_IRIX.
10182 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10184 -Wunused warning in procfs.c (mips-irix only).
10185 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
10186 throughout instead of using praddset and prdelset respectively.
10188 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10190 GDB crash while stepping into function.
10191 * infrun.c (handle_inferior_event): Refetch the current frame
10192 after handling what.main_action, in case that pointer became
10195 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10197 Fix build failure of solaris-hosted cross debuggers.
10198 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
10200 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
10202 Fix build failure on sparc-solaris.
10203 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
10205 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10207 Move some symfile code into subroutines.
10208 * symfile.h (relative_addr_info_to_section_offsets)
10209 (addr_info_make_relative): New prototypes.
10210 * symfile.c (default_symfile_offsets): Move a part to ...
10211 (relative_addr_info_to_section_offsets): ... this new function.
10212 (default_symfile_offsets): Call it.
10213 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
10215 (addr_info_make_relative): ... this new function.
10217 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10219 Add from_tty to solib_create_inferior_hook.
10220 * infcmd.c (post_create_inferior): Move solib_add after
10221 solib_create_inferior_hook. Pass from_tty to
10222 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
10223 0 from_tty and comment why.
10224 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
10225 * linux-nat.c (linux_child_follow_fork): Likewise.
10226 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
10227 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
10229 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
10230 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
10231 * solib-null.c (null_solib_create_inferior_hook): Likewise.
10232 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
10233 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
10234 * solib-som.c (som_solib_create_inferior_hook): Likewise.
10235 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
10236 Pass it to svr4_so_ops.solib_create_inferior_hook.
10237 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
10239 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
10241 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
10243 * solib-target.c (solib_target_solib_create_inferior_hook): New
10244 parameter from_tty.
10245 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
10246 it to ops->solib_create_inferior_hook.
10247 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
10248 Move solib_add after solib_create_inferior_hook, call it now with
10249 from_tty as 0. New comment there.
10250 * solib.h (solib_create_inferior_hook): New parameter from_tty.
10251 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
10254 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
10256 Fix multiexec race.
10257 * infrun.c (handle_inferior_event): Use get_thread_regcache
10258 with events ptid, not get_current_regcache.
10260 2009-01-08 Joel Brobecker <brobecker@adacore.com>
10262 GDB crash with empty executable name (MinGW).
10263 * source.c (openp): Add assert that parameter string is not NULL.
10264 if parameter string is an empty string, then return with a failure
10267 2009-01-08 Joel Brobecker <brobecker@adacore.com>
10269 Get rid of support for VAX Floats.
10270 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
10271 (ada_vax_float_print_function): Delete.
10272 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
10273 (ada_vax_float_print_function): Delete.
10274 * ada-typeprint.c (print_vax_floating_point_type): Delete.
10275 (ada_print_type): Remove support for VAX floats.
10276 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
10278 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10280 * stabsread.c (read_args): Handle zero arguments.
10282 2009-01-08 Joel Brobecker <brobecker@adacore.com>
10284 Cannot find in-tree libiconv.a after reconfigure.
10285 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
10286 that we can use, then cache the path to this archive.
10287 * configure: Regenerate.
10289 2010-01-07 Stan Shebs <stan@codesourcery.com>
10291 Make tracepoint operations go through target vector.
10292 * target.h (enum trace_find_type): New enum.
10293 (struct target_ops): New fields to_trace_init,
10294 to_download_tracepoint, to_download_trace_state_variable,
10295 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
10296 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
10297 to_set_disconnected_tracing.
10298 (target_trace_init): New macro.
10299 (target_download_tracepoint): New macro.
10300 (target_download_trace_state_variable): New macro.
10301 (target_trace_start): New macro.
10302 (target_trace_set_readonly_regions): New macro.
10303 (target_get_trace_status): New macro.
10304 (target_trace_stop): New macro.
10305 (target_trace_find): New macro.
10306 (target_get_trace_state_variable_value): New macro.
10307 (target_set_disconnected_tracing): New macro.
10308 * target.c (update_current_target): Inherit and set defaults for
10309 tracepoint operations.
10310 * tracepoint.c (default_collect): Make globally visible.
10311 (target_is_remote): Remove, along with all calls.
10312 (tvariables_info): Call target_get_trace_state_variable_value.
10313 (remote_set_transparent_ranges): Remove.
10314 (trace_start_command): Call target_trace_init,
10315 target_download_tracepoint, etc.
10316 (download_tracepoint): Remove.
10317 (trace_stop_command): Simplify.
10318 (stop_tracing): Call target_trace_stop.
10319 (get_trace_status): Call target_get_trace_status.
10320 (trace_status_command): Add case for targets that cannot trace.
10321 (finish_tfind_command): Change to take numerical arguments, call
10323 (trace_find_command): Update call to finish_tfind_command.
10324 (trace_find_pc_command): Ditto.
10325 (trace_find_tracepoint_command): Ditto.
10326 (trace_find_line_command): Ditto.
10327 (trace_find_range_command): Ditto.
10328 (trace_find_outside_command): Ditto.
10329 (set_disconnected_tracing_value): Call
10330 target_set_disconnected_tracing.
10331 * remote.c: Add protocol encoding bits from tracepoint.c.
10332 (trace_error): Move from tracepoint.c.
10333 (remote_get_noisy_reply): Ditto.
10334 (free_actions_list_cleanup_wrapper): Ditto.
10335 (free_actions_list): Ditto.
10336 (remote_trace_init): New function.
10337 (remote_download_tracepoint): New function.
10338 (remote_download_trace_state_variable): New function.
10339 (remote_trace_set_readonly_regions): New function.
10340 (remote_trace_start): New function.
10341 (remote_get_trace_status): New function.
10342 (remote_trace_stop): New function.
10343 (remote_trace_find): New function.
10344 (remote_download_trace_state_variable): New function.
10345 (remote_set_disconnected_tracing): New function.
10346 (init_remote_ops): Add tracepoint operations.
10348 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
10350 2010-01-07 Tristan Gingold <gingold@adacore.com>
10352 * symfile.c (build_section_addr_info_from_objfile): New function.
10353 (symbol_file_add_separate): Don't use offsets from objfile but
10354 built an addr info.
10356 2010-01-06 Stan Shebs <stan@codesourcery.com>
10358 Support disconnected tracing.
10359 * infcmd.c (detach_command): Ask whether to stop tracing.
10360 * cli/cli-cmds.c (quit_command): Ditto.
10361 * breakpoint.h (struct breakpoint): New field number_on_target.
10362 * breakpoint.c (create_tracepoint_from_upload): New function.
10363 (get_tracepoint_by_number_on_target): New function.
10364 * remote.c (struct remote): New field disconnected_tracing.
10365 (remote_disconnected_tracing_feature): New function.
10366 (remote_protocol_features): Add DisconnectedTracing.
10367 (struct uploaded_tp): New struct.
10368 (uploaded_tps): New global.
10369 (get_uploaded_tp): New function.
10370 (find_matching_tracepoint): New function.
10371 (remote_get_tracing_state): New function.
10372 (remote_start_remote): Call it.
10373 * tracepoint.c (disconnected_tracing): New global.
10374 (trace_start_command): Initialize number_on_target.
10375 (stop_tracing): New function, split out from...
10376 (trace_stop_command): Call stop_tracing.
10377 (get_trace_status): New function, split out from...
10378 (trace_status_command): Call get_trace_status, add info on
10379 disconnection behavior.
10380 (disconnect_or_stop_tracing): New function.
10381 (finish_tfind_command): Translate from number on target.
10382 (trace_find_tracepoint_command): Translate to number on target.
10383 (send_disconnected_tracing_value): New function.
10384 (set_disconnected_tracing): New function.
10385 (_initialize_tracepoint): Add disconnected-tracing variable.
10386 * NEWS: Mention disconnected tracing.
10388 2010-01-06 Tristan Gingold <gingold@adacore.com>
10390 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
10391 parameter to main_objfile. Iterate on all separate debug objfiles.
10392 * symfile.h (symbol_file_add_separate)
10393 (find_separate_debug_file_by_debuglink): Remove parameter names.
10394 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
10395 (reread_symbols): Use free_objfile_separate_debug.
10396 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
10398 (objfile_separate_debug_iterate, add_separate_debug_objfile)
10399 (free_objfile_separate_debug): New prototypes.
10400 * objfiles.c (objfile_separate_debug_iterate): New function.
10401 (add_separate_debug_objfile, free_objfile_separate_debug): New
10403 (free_objfile): Use free_objfile_separate_debug. Adjust for
10404 multiple separate debug objfile.
10405 (objfile_has_symbols): Adjust comment. Iterate on all separate
10407 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
10409 (lookup_minimal_symbol_text): Ditto.
10410 (lookup_minimal_symbol_by_pc_name): Ditto.
10411 (lookup_minimal_symbol_solib_trampoline): Ditto.
10412 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
10415 2010-01-05 Stan Shebs <stan@codesourcery.com>
10417 Add fast tracepoints.
10418 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
10419 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
10420 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
10421 * breakpoint.c (tracepoint_type): New function.
10422 (ALL_TRACEPOINTS): Use it.
10423 (should_be_inserted): Ditto.
10424 (bpstat_check_location): Ditto.
10425 (print_one_breakpoint_location): Ditto.
10426 (user_settable_breakpoint): Ditto.
10427 (set_breakpoint_location_function): Ditto.
10428 (disable_breakpoints_in_shlibs): Ditto.
10429 (delete_trace_command): Ditto.
10430 (print_it_typical): Add bp_fast_tracepoint case.
10431 (bpstat_what): Ditto.
10432 (print_one_breakpoint_location): Ditto.
10433 (allocate_bp_location): Ditto.
10435 (breakpoint_re_set_one): Ditto.
10436 (disable_command): Ditto.
10437 (enable_command): Ditto.
10438 (check_fast_tracepoint_sals): New function.
10439 (break_command_really): Call it.
10440 (ftrace_command): New function.
10441 (_initialize_breakpoint): Add ftrace command.
10442 * gdbarch.sh (fast_tracepoint_valid_at): New.
10443 * gdbarch.h, gdbarch.c: Regenerate.
10444 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
10445 (i386_gdbarch_init): Use it.
10446 * remote.c (struct remote_state): New field fast_tracepoints.
10447 (PACKET_FastTracepoints): New packet config type.
10448 (remote_fast_tracepoint_feature): New function.
10449 (remote_protocol_features): Add FastTracepoints.
10450 (remote_supports_fast_tracepoints): New function.
10451 (_initialize_remote): Add FastTracepoints.
10452 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
10453 * NEWS: Mention fast tracepoints.
10455 2010-01-06 Joel Brobecker <brobecker@adacore.com>
10457 * gdb-gdb.py: New file.
10459 2010-01-05 Michael Snyder <msnyder@vmware.com>
10461 * infrun.c (handle_inferior_event): Fix typo in comment.
10463 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10465 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
10467 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10469 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
10471 (s390-linux32-expedite): Define.
10472 (s390-linux64-expedite): Define.
10473 (s390x-linux64-expedite): Define.
10474 * features/s390-acr.xml: New file.
10475 * features/s390-fpr.xml: New file.
10476 * features/s390-core32.xml: New file.
10477 * features/s390-core64.xml: New file.
10478 * features/s390x-core64.xml: New file.
10479 * features/s390-linux32.xml: New file.
10480 * features/s390-linux64.xml: New file.
10481 * features/s390x-linux64.xml: New file.
10482 * features/s390-linux32.c: New generated file.
10483 * features/s390-linux64.c: New generated file.
10484 * features/s390x-linux64.c: New generated file.
10486 * regformats/s390-linux32.dat: New generated file.
10487 * regformats/s390-linux64.dat: New generated file.
10488 * regformats/s390x-linux64.dat: New generated file.
10489 * regformats/reg-s390.dat: Remove.
10490 * regformats/reg-s390x.dat: Remove.
10492 * s390-nat.c: Include "auxv.h" and <elf.h>.
10493 (HWCAP_S390_HIGH_GPRS): Define if undefined.
10494 (s390_target_wordsize): New function.
10495 (s390_auxv_parse): Likewise.
10496 (s390_get_hwcap): Likewise.
10497 (s390_read_description): Likewise.
10498 (_initialize_s390_nat): Install s390_auxv_parse and
10499 s390_read_description.
10501 * s390-tdep.c: Include "features/s390-linux32.c",
10502 "features/s390-linux64.c", and "features/s390x-linux64.c".
10503 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
10504 (s390_register_call_saved): New function.
10505 (s390_register_name): Remove.
10506 (s390_register_type): Remove.
10507 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
10508 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
10509 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
10510 (s390_pseudo_register_name): New function.
10511 (s390_pseudo_register_type): New function.
10512 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
10513 Handle full GPR pesudos and varying pseudo register numbers.
10514 (s390_pseudo_register_write): Likewise
10515 (s390x_pseudo_register_read): Remove.
10516 (s390x_pseudo_register_write): Likewise.
10517 (s390_register_group): Remove.
10518 (s390_pseudo_register_group): New function.
10519 (s390_regmap_gregset): Add GPR upper halves.
10520 (s390x_regmap_gregset): Likewise.
10521 (s390_regmap_fpregset): Likewise.
10522 (s390_regmap_upper): New global variable.
10523 (s390_upper_regset): New global variable.
10524 (s390_upper_regset_sections): New global variable.
10525 (s390_regset_from_core_section): Handle GPR upper halves.
10526 (s390_core_read_description): New function.
10527 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
10528 register information. Handle varying pseudo register numbers.
10529 (s390_backchain_frame_unwind_cache): Likewise.
10530 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
10531 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
10532 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
10533 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
10534 Handle varying pseudo register numbers.
10535 (s390_unwind_pc): Handle varying pseudo register numbers.
10536 (s390_dwarf2_prev_register): New function.
10537 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
10538 register information. Handle varying pseudo register numbers.
10539 Install s390_dwarf2_prev_register to unwind full GPRs.
10540 (s390_gdbarch_init): Handle target descriptions. Assign varying
10541 pseudo register numbers. Install s390_adjust_frame_regnum.
10542 (_initialize_s390_tdep): Initialize target descriptions.
10544 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
10545 (S390_NUM_REGS): Redefine to include upper half registers.
10546 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
10547 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
10548 (tdesc_s390_linux32): Add declaration.
10549 (tdesc_s390_linux64): Likewise.
10550 (tdesc_s390x_linux64): Likewise.
10552 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10554 * regset.h (struct core_regset_section): Add HUMAN_NAME.
10555 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
10556 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
10557 (ppc_linux_vmx_regset_sections): Likewise.
10558 (ppc_linux_fp_regset_sections): Likewise.
10560 * corelow.c (get_core_register_section): Constify arguments.
10561 (get_core_registers): Use gdbarch_core_regset_sections instead
10562 of hard-coded platform-specific register section names.
10564 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10566 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
10567 a register, assume the least-significant part is used.
10568 (write_pieced_value): Likewise.
10570 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10572 * printcmd.c: Include "arch-utils.h".
10573 (do_one_display): Re-parse expression if current architecture changed.
10575 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10576 Joel Brobecker <brobecker@adacore.com>
10578 * gdbtypes.c (check_typedef): New comment on type length.
10579 * value.c (allocate_value_lazy): Remove the unused atype variable. New
10580 comment on type length.
10581 (value_primitive_field): Keep the original TYPE value, new comment.
10583 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10585 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
10586 p_start. Change != comparisons to > and < comparisons.
10588 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10590 * cli/cli-script.c (process_next_line): Check P2 overrun.
10592 2009-01-01 Joel Brobecker <brobecker@adacore.com>
10594 Update the copyright hearder to add year 2010 for most GDB files.
10596 2009-01-01 Joel Brobecker <brobecker@adacore.com>
10598 Fix build failure in inf-ptrace.c.
10599 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
10601 2010-01-01 Joel Brobecker <brobecker@adacore.com>
10603 * top.c (print_gdb_version): Update copyright year.
10605 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
10607 Fix break *FUN'address thread NUM.
10608 * ada-lex.l (task): Expand rule to also match the thread keyword.
10610 2010-01-01 Joel Brobecker <brobecker@adacore.com>
10612 Fix break *FUN'address task NUM.
10613 * ada-lex.l (task): New rule.
10614 * ada-lang.c (valid_task_id): Make sure the Ada task list has
10615 been built before using it.
10617 For older changes see ChangeLog-2009.
10623 version-control: never