1 2010-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5 Pedro Alves <pedro@codesourcery.com>
6 * gdbthread.h (currently_stepping): New declaration.
7 * infrun.c (currently_stepping): Remove the forward declaration.
8 (currently_stepping): Make it global.
9 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
10 variables tp and step, initialized them. Pass STEP to to_resume.
11 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
12 * remote.c (currently_stepping_callback): New.
14 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
15 New variable tp. Call currently_stepping_callback and step such
18 2010-11-01 Hui Zhu <teawater@gmail.com>
20 * tracepoint.c (tfile_xfer_partial): Change lma to vma.
22 2010-10-28 Hui Zhu <teawater@gmail.com>
24 * tracepoint.c (trace_save): Change utp->actions to
27 2010-10-26 Joel Brobecker <brobecker@adacore.com>
29 * (_FILE_OFFSET_BITS): Fix typo in comment.
31 2010-10-26 Joel Brobecker <brobecker@adacore.com>
33 * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
34 (PyEval_InitThreads): Remove duplicate. Define as nothing.
35 (PyEval_ReleaseLock): Define as nothing.
37 2010-10-26 Joel Brobecker <brobecker@adacore.com>
39 * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
40 by call to FILENAME_CMP.
42 2010-10-26 Joel Brobecker <brobecker@adacore.com>
44 * dictionary.c (dict_hash): Move assignment out of if condition.
46 2010-10-22 Jie Zhang <jie@codesourcery.com>
48 * Makefile.in (install): Remove dependency of install-only and
49 recursively invoke make for install-only.
50 * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
51 (install): Pass FLAGS_TO_PASS when recursively make install-only.
53 2010-10-20 Hui Zhu <teawater@gmail.com>
55 * tracepoint.c (tfile_get_traceframe_address): Call
56 extract_signed_integer.
57 (tfile_trace_find): Call extract_signed_integer and
58 extract_unsigned_integer. Change data_size to unsigned int.
59 (tfile_fetch_registers): Call extract_unsigned_integer.
60 (tfile_xfer_partial): Ditto.
61 (tfile_get_trace_state_variable_value): Call
62 extract_signed_integer and extract_unsigned_integer.
64 2010-10-20 Vladimir Prus <vladimir@codesourcery.com>
66 * remote.c (remote_get_threadlist): If we got empty
67 response, bail out immediately, and don't emit any
70 2010-10-19 Ulrich Weigand <uweigand@de.ibm.com>
72 * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
73 for "mov pc, REG" as well.
74 (thumb_instruction_changes_pc): Likewise.
76 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
79 * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
80 * eval.c (evaluate_subexp_standard): Check for overload of
82 * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
83 (value_x_unop): Ditto.
84 * valops.c: Include "exceptions.h".
85 (find_overload_match): Throw NOT_FOUND_ERROR.
86 (value_struct_elt): Ditto.
88 2010-10-19 Tom Tromey <tromey@redhat.com>
90 * python/py-cmd.c (cmdpy_function): Unreference exception state.
92 2010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
94 * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
95 * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
97 Make all other conversions illegal.
99 2010-10-18 Doug Evans <dje@google.com>
101 * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
102 assumptions of when this case happens. Print "<unnamed typedef>".
104 2010-10-18 Tom Tromey <tromey@redhat.com>
106 * valprint.c (val_print_string): Pass 'encoding' to
109 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
111 Fix the `stopped language detection' testcase for gcc-4.5.
112 * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
113 * symfile.c (set_initial_language): Move variable filename to a more
114 inner block. Prefer LANGUAGE_OF_MAIN.
115 * symtab.c (language_of_main): New variable.
116 (set_main_name): Always reset LANGUAGE_OF_MAIN.
117 * symtab.h (language_of_main): New declaration.
119 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
120 Pedro Alves <pedro@codesourcery.com>
122 * gdbthread.h (currently_stepping): New declaration.
123 * infrun.c (currently_stepping): Remove the forward declaration.
124 (currently_stepping): Make it global.
125 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
126 variables tp and step, initialized them. Pass STEP to to_resume.
127 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
128 * remote.c (currently_stepping_callback): New.
129 (remote_vcont_resume)
130 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
131 New variable tp. Call currently_stepping_callback and step such
134 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
136 * infrun.c (follow_exec): Replace symbol_file_add_main by
137 symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
139 * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
141 * objfiles.c (free_all_objfiles): Likewise.
142 * remote-m32r-sdi.c (m32r_load): Likewise.
143 * solib-som.c (som_solib_create_inferior_hook): Likewise.
144 * symfile.c (new_symfile_objfile): New comment for add_flags. Call
145 clear_symtab_users with ADD_FLAGS.
146 (reread_symbols): Use parameter 0 for clear_symtab_users.
147 (clear_symtab_users): New parameter add_flags. Do not call
148 breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
149 (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
150 * symtab.h (clear_symtab_users): New parameter add_flags.
152 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
154 Fix GCC false warning.
155 * varobj.c (value_get_print_value) <str_addr>: Initialize it.
157 2010-10-16 Pierre Muller <muller@ics.u-strasbg.fr>
159 * p-typeprint.c (pascal_type_print_method_args): Fix problem in
160 display of type of method arguments.
162 2010-10-15 Tom Tromey <tromey@redhat.com>
165 * varobj.c (value_get_print_value): Use val_print_string to print
167 * python/py-prettyprint.c (print_string_repr): Use
168 val_print_string to print lazy strings. Fix cleanup logic.
169 (print_children): Likewise.
170 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
171 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
172 Change return type to 'void', add 'addr' argument.
173 * value.h (val_print_string): Update.
174 * valprint.c (val_print_string): Add 'encoding' argument.
175 * printcmd.c (print_formatted): Update.
176 * p-valprint.c (pascal_val_print): Update.
177 * m2-valprint.c (print_unpacked_pointer): Update.
178 (m2_print_array_contents): Likewise.
179 * jv-valprint.c (java_value_print): Update.
180 * f-valprint.c (f_val_print): Update.
181 * c-valprint.c (c_val_print): Update.
182 * auxv.c (fprint_target_auxv): Update.
184 2010-10-15 Doug Evans <dje@google.com>
185 Jan Kratochvil <jan.kratochvil@redhat.com>
188 * gdbtypes.c (check_typedef): Clean up function comment.
189 Keep track of instance flags as we strip typedefs and create a new
190 type to preserve them if necessary.
191 * gdbtypes.h (type) <instance_flags>: Extend the comment.
193 2010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
195 * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
197 2010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
199 * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
200 * gdbtypes.c (rank_one_type): Move type comparison code out of here
202 (types_equal): ...here. And changed it as follows:
203 Outside of typedefs type must be of the same TYPE_CODE.
204 When compairing two pointers or references they are equal if their
206 Correct pointer conversions.
208 2010-10-14 Pierre Muller <muller@ics.u-strasbg.fr>
210 * p-lang.c (is_pascal_string_type): Avoid crashes on structures
211 having fields without names.
213 2010-10-13 Tom Tromey <tromey@redhat.com>
215 * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
217 2010-10-13 Doug Evans <dje@google.com>
219 New python module gdb.types.
221 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
222 * python/lib/gdb/types.py: New file.
224 * c-typeprint.c: Whitespace cleanup.
225 (cp_type_print_method_args): Remove unnecessary forward decl.
226 (cp_type_print_derivation_info): Ditto.
227 (c_type_print_varspec_prefix): Mark as static at definition.
228 (c_type_print_modifier): Fix arg descriptions.
230 2010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
232 * python/py-breakpoint.c (bppy_set_condition): New comment.
233 * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
234 failed PyUnicode_Decode.
235 (cmdpy_completer): Skip element for failed
236 python_string_to_host_string.
237 (cmdpy_init): Return -1 on failed python_string_to_host_string.
238 * python/py-frame.c (frapy_read_var): Extend the function comment.
239 * python/py-function.c (fnpy_init): Return -1 on failed
240 python_string_to_host_string.
241 * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
242 the function comment.
243 (infpy_search_memory): Extend the function comment. Remove the
244 PyErr_SetString call on already set error state.
245 * python/py-param.c (set_parameter_value): Extend the function
246 comment. Return -1 on failed python_string_to_host_string, twice.
247 (set_attr): Extend the function comment.
248 (compute_enum_values): Extend the function comment. New variable
249 back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
250 failed python_string_to_host_string.
251 (get_doc_string): Call gdbpy_print_stack on failed
252 python_string_to_host_string.
253 (parmpy_init): Extend the function comment.
254 * python/py-prettyprint.c (pretty_print_one_value): Likewise.
255 (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
256 failed python_string_to_host_string.
257 * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
258 (valpy_binop, valpy_richcompare): Extend the function comment.
260 (struct python_env) <error_type, error_value, error_traceback>: New
262 (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
263 (ensure_python_env): Call PyErr_Fetch.
264 * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
265 failed convert_value_from_python.
266 (value_get_print_value): Call gdbpy_print_stack on failed
267 python_string_to_target_python_string.
269 2010-10-12 Tom Tromey <tromey@redhat.com>
271 * python/py-prettyprint.c (search_pp_list): Fix error checking.
273 2010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
275 * gdbtypes.c (do_is_ancestor): New function.
276 (is_ancestor): Use do_is_ancestor.
277 (is_public_ancestor): Use do_is_ancestor.
279 2010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
281 * ser-go32.c (struct dos_ops): Add missing fdopen field.
283 2010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
285 * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
287 2010-10-11 Doug Evans <dje@google.com>
289 * c-typeprint.c (c_type_print_modifier): Add note that this prints
290 the address space id too.
292 2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
294 Fix attaching to re-prelinked executables on ppc64.
295 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
296 initialize it, try to adjust FILESZ field by it.
298 2010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
300 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
301 messages if info_verbose.
303 2010-10-08 Ken Werner <ken.werner@de.ibm.com>
305 * valops.c (value_cast): Handle vector types.
306 * valarith.c (value_binop): Widen scalar to vector if appropriate.
308 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
310 * arm-tdep.c (thumb_expand_immediate): New function.
311 (thumb_instruction_changes_pc): Likewise.
312 (thumb2_instruction_changes_pc): Likewise.
313 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
314 prologue parsing. Improved support for optimized code.
315 (thumb_scan_prologue): Do not reply on line-number information,
316 use same heuristics as arm_scan_prologue insead.
317 (skip_prologue_function): Accept functions
318 "__tls_get_addr" and "__aeabi_read_tp".
320 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
321 Daniel Jacobowitz <dan@codesourcery.com>
323 * arm-tdep.c (thumb_in_function_epilogue_p)
324 (arm_in_function_epilogue_p): New.
325 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
326 gdbarch_in_function_epilogue_p callback.
328 2010-10-07 Doug Evans <dje@google.com>
330 * cc-with-index.sh (output_file): Default to a.out.
332 * dwarf2read.c (mapped_index): Rename member index_table to
333 symbol_table and index_table_slots to symbol_table_slots.
335 (create_symbol_hash_table): Renamed from create_index_table.
337 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
338 (write_hash_table): Rename local index_table to symbol_hash_table.
340 * addrmap.h (addrmap_foreach_fn): New typedef.
341 (addrmap_foreach): Declare.
342 * addrmap.c (struct addrmap_funcs): New member foreach.
343 (addrmap_foreach): New function.
344 (addrmap_fixed_foreach): New function.
345 (addrmap_fixed_funcs): Update.
346 (struct mutable_foreach_data): New struct.
347 (addrmap_mutable_foreach_worker): New function.
348 (addrmap_mutable_foreach): New function.
349 (addrmap_mutable_funcs): Update.
351 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
353 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
356 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
358 * ada-lang.c (full_match): Declare.
359 (ada_match_name): Rename to match_name (we should avoid prefixing static
360 symbols with "ada_").
361 (match_name): New name for ada_match_name.
362 (struct ada_psym_data): Remove and replace with...
363 (struct match_data): User data for map_matching_symbols.
364 (ada_add_psyms): Remove.
365 (aux_add_nonlocal_symbols): New function, used as callback for
366 map_matching_symbols.
367 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
369 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
370 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
371 Rework to use map_matching_symbols instead of map_ada_symtabs.
372 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
373 * psymtab.c: Include dependency on dictionary.h.
374 (match_partial_symbol): New function.
375 (ada_lookup_partial_symbol): Remove.
376 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
377 (map_matching_symbols_psymtab): New function.
378 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
379 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
381 2010-10-06 Paul Hilfinger <hilfinger@adacore.com>
383 * ada-lang.c (ada_match_name): Use new API for wild_match.
384 (wild_match): Change API to be consistent with that of strcmp_iw;
385 return 0 for a match, and switch operand order.
386 (full_match): New function.
387 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
388 matching to allow use of hashing.
389 * dictionary.c (struct dict_vector): Generalize iter_name_first,
390 iter_name_next ot iter_match_first, iter_match_next.
391 (iter_name_first_hashed): Replace with iter_match_first_hashed.
392 (iter_name_next_hashed): Replace with iter_match_next_hashed.
393 (iter_name_first_linear): Replace with iter_match_first_linear.
394 (iter_name_next_linear): Replace with iter_match_next_linear.
395 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
396 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
397 (dict_iter_match_first): New function.
398 (dict_iter_match_next): New function.
399 (dict_hash): New function.
400 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
401 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
403 2010-10-06 Doug Evans <dje@google.com>
405 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
407 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
409 * dwarf2read.c (read_tag_const_type): Handle const arrays.
411 2010-10-06 Doug Evans <dje@google.com>
413 * Makefile.in (REQUIRED_SUBDIRS): New var.
414 (subdir_do): Verify required subdir Makefiles exist.
416 Create subdir data-directory.
417 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
418 data-directory/Makefile.in.
419 (SUBDIRS): Add data-directory.
420 (all): Remove xml-syscall-copy dependency.
421 (xml-syscall-copy): Moved to data-directory/Makefile.in as
423 (xml-syscall-install): Moved to data-directory/Makefile.in as
425 (install-only): Remove xml-syscall-install dependency.
426 (all-data-directory): New rule.
427 (data-directory/Makefile): New rule.
428 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
429 * configure: Regenerate.
430 * data-directory/Makefile.in: New file.
431 * python/lib/gdb/__init__.py: New file.
433 2010-10-06 Joel Brobecker <brobecker@adacore.com>
435 Fix ARI warnings in advance_wild_match.
436 * ada-lang.c (advance_wild_match): Delete local variable t2.
437 Adjust code accordingly. Minor reformatting.
439 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
441 * gdbtypes.h (struct main_type): Remove flag_nottext.
442 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
443 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
444 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
445 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
446 of TYPE_FLAG_NOTTEXT.
447 (init_type): Remove the initialization of the flag_nottext field.
448 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
450 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
452 2010-10-04 Doug Evans <dje@google.com>
454 * cc-with-index.sh: New file.
456 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
458 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
459 (create_cus_from_index, create_addrmap_from_index): Ditto.
460 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
461 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
462 (dw2_do_expand_symtabs_matching): Ditto.
463 (eq_strtab_entry, create_strtab, add_string): Ditto.
464 (hash_strtab_entry): Ditto.
465 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
466 (create_index_table, create_mapped_symtab, find_slot): Ditto.
467 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
468 (write_hash_table, add_address_entry, write_psymbols): Ditto.
469 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
470 (write_psymtabs_to_index): Ditto.
472 2010-10-04 Joel Brobecker <brobecker@adacore.com>
474 * ada-lang.c: #include "value.h".
475 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
476 arguments. Implement using value_allocate_space_in_inferior
477 instead of allocating memory from the stack.
478 (make_array_descriptor): Remove gdbarch and sp parameters. Update
479 calls to ensure_lval.
480 (ada_convert_actual): Remove gdbarch and sp parameters. Update
481 calls to make_array_descriptor and ensure_lval.
482 * ada-lang.h (ada_convert_actual): Update declaration.
483 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
485 2010-10-04 Doug Evans <dje@google.com>
487 * python/python.c (_initialize_python): Define new function
488 GdbSetPythonDirectory in python. Use it to update sys.path and
491 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
493 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
494 incorporating and generalizing print_record_field_types.
495 (print_record_field_types): Change return value and update comment.
496 Re-implement using print_selected_record_field_types.
497 (print_choices): Print "=>" here.
498 Handle case of unencoded variant branch.
499 (print_variant_clauses): Reformat comment.
500 Special-case unencoded variant branch.
502 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
504 * ada-lang.c (wild_match): Reimplement.
505 Change API to eliminate unused length argument, reverse arguments and
506 make 0 the 'true' return value.
507 (advance_wild_match): New auxiliary function for wild_match to improve
509 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
510 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
512 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
514 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
516 2010-10-01 Doug Evans <dje@google.com>
518 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
519 for `save gdb-index' command.
521 2010-10-01 Tom Tromey <tromey@redhat.com>
523 * symfile.h (allocate_symtab): Update.
524 * symfile.c (allocate_symtab): Make 'filename' const.
525 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
526 (add_psymbol_to_list): Likewise.
527 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
529 (add_psymbol_to_list): Update.
530 * mdebugread.c (new_symtab): Make 'name' const.
531 (psymtab_to_symtab_1): Make 'filename' const.
532 * elfread.c (elfstab_offset_sections): Update.
533 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
534 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
535 (psymtab_include_file_name): Update.
536 * dbxread.c (find_stab_function_addr): Make 'filename' const.
537 * buildsym.h (start_subfile): Update.
538 * buildsym.c (start_subfile): Make arguments const.
540 2010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
542 * fork-child.c (breakup_args): Fix crash if shell forking is
543 disabled at compile time.
545 2010-10-01 Joel Brobecker <brobecker@adacore.com>
547 * ada-lang.c (desc_bounds): Add handling of the case where
548 the P_BOUNDS field is a pointer to a stub.
549 (desc_data_target_type): Same for P_ARRAY field.
550 (ada_check_typedef): Strip the typedef layers from the type
551 found by ada_find_any_type.
553 2010-10-01 Joel Brobecker <brobecker@adacore.com>
555 * sparc-tdep.c (sparc32_frame_align): New function.
556 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
557 * sparc64-tdep.c (sparc64_frame_align): New function.
558 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
560 2010-09-30 H.J. Lu <hongjiu.lu@intel.com>
562 * defs.h (MAX_REGISTER_SIZE): Set to 64.
564 2010-09-30 Tom Tromey <tromey@redhat.com>
566 * symfile.h (struct sym_fns) <next>: Remove.
567 (add_symtab_fns): Update.
568 * symfile.c (sym_fns_ptr): New typedef.
569 (symtab_fns): Now a VEC.
570 (add_symtab_fns): Update. Change argument type.
571 (find_sym_fns): Update. Change return type.
572 (get_symfile_segment_data): Update.
573 * objfiles.h (struct objfile) <sf>: Now const.
574 * somread.c (som_sym_fns): Now const. Update.
575 * xcoffread.c (xcoff_sym_fns): Now const. Update.
576 * mipsread.c (ecoff_sym_fns): Now const. Update.
577 * machoread.c (macho_sym_fns): Now const. Update.
578 * elfread.c (elf_sym_fns): Now const. Update.
579 (elf_sym_fns_gdb_index): Likewise.
580 * dbxread.c (aout_sym_fns): Now const. Update.
581 * coffread.c (coff_sym_fns): Now const. Update.
583 2010-09-30 Tom Tromey <tromey@redhat.com>
585 * value.c (value_primitive_field): Take 'offset' into account for
588 2010-09-30 Tom Tromey <tromey@redhat.com>
590 * completer.c (count_struct_fields): Handle anonymous structs and
592 (add_struct_fields): Likewise.
594 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
596 Fix printing parameters of inlined functions.
597 * ada-lang.c (is_known_support_routine)
598 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
599 for find_frame_funname.
600 * python/py-frame.c (frapy_name): Likewise.
601 * stack.c (find_frame_funname): New parameter funcp. Update the
602 function comment. Fill it in.
603 (print_frame): New variable func. Initialize it by
604 find_frame_funname. Print arguments only if FUNC is not NULL. Use
605 FUNC as the parameter of print_args_stub.
606 * stack.h (find_frame_funname): New parameter funcp. Remove the
607 function declaration comment.
609 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
612 * inferior.c (have_live_inferiors): New variables old_chain, inf and
613 tp. Iterate INFERIOR_LIST and call target_has_execution.
615 2010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
617 Fix GDB crash on inferior calls with self-referencing classes.
618 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
621 2010-09-29 Doug Evans <dje@google.com>
623 Workaround for gcc/45682.
624 * dwarf2read.c (partial_die_info): New fields fixup_called,
626 (guess_partial_die_structure_name): Renamed from guess_structure_name.
627 Move definition next to use. Use linkage_name to determine if class
628 is in a namespace. All callers updated.
629 (fixup_partial_die): Return early if already called.
630 Set fixup_called when done.
631 (guess_full_die_structure_name): New function.
632 (determine_prefix): Call it for class/struct/union dies if c++ and
633 .debug_types section is present and parent is DW_TAG_compile_unit.
635 2010-09-28 Joel Brobecker <brobecker@adacore.com>
637 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
638 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
640 2010-09-28 Joel Brobecker <brobecker@adacore.com>
642 * NEWS: Announce Ravenscar Profile support.
644 2010-09-28 Joel Brobecker <brobecker@adacore.com>
645 Jerome Guitton <guitton@adacore.com>
647 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
649 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
650 ravenscar-sparc-thread.o to gdb_target_obs.
652 2010-09-28 Joel Brobecker <brobecker@adacore.com>
654 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
655 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
657 2010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
659 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
660 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
661 skip_main_prologue method.
663 2010-09-27 Tom Tromey <tromey@redhat.com>
665 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
666 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
667 Only emit a given psymbol once.
668 (struct signatured_type_index_data) <psyms_seen>: New field.
669 (write_one_signatured_type): Update.
670 (cleanup_htab): New function.
671 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
673 (save_gdb_index_command): Update index documentation.
675 2010-09-27 Tom Tromey <tromey@redhat.com>
677 * bcache.c (expand_hash_table): Use hash_function, not hash.
679 2010-09-27 Tom Tromey <tromey@redhat.com>
681 * gdb_wchar.h: Change minimum libiconv to 0x108.
683 2010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
685 Fix lost siginfo_t for inferior calls.
687 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
688 (save_inferior_thread_state): New variables regcache, gdbarch and
689 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
690 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
692 (restore_inferior_thread_state): New variables regcache and gdbarch.
693 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
694 REGCACHE. Free also SIGINFO_DATA.
696 2010-09-24 Tom Tromey <tromey@redhat.com>
698 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
700 (dw2_map_symbol_names): Likewise.
702 2010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
704 * valops.c (find_oload_champ_namespace_loop): replace incorrect
705 discard_cleanups do_cleanups.
707 2010-09-24 Pedro Alves <pedro@codesourcery.com>
711 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
712 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
713 si_code is < 0. Check for si_code == SI_TIMER before checking for
716 2010-09-24 Pedro Alves <pedro@codesourcery.com>
718 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
720 2010-09-22 Joel Brobecker <brobecker@adacore.com>
722 * ada-tasks.c (read_atcb): Do not compute the task ptid when
723 debugging a core file.
725 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
728 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
729 (free_objfile) <objfile->name != NULL>: Remove the conditional around
731 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
732 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
734 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
735 Remove the conditional.
736 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
738 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
740 * main.c: Include objfiles.h.
741 (captured_main): New variable objfile. Call
742 load_auto_scripts_for_objfile for ALL_OBJFILES.
744 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
746 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
749 2010-09-22 Joel Brobecker <brobecker@adacore.com>
751 * dwarf2read.c (scan_partial_symbols): Add handling of
752 DW_TAG_constant DIEs.
753 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
755 2010-09-22 Joel Brobecker <brobecker@adacore.com>
757 * configure.ac: Add support for --enable-gdbserver.
758 * configure: Regenerate.
760 2010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
763 * valops.c (find_oload_champ_namespace_loop): removed incorrect
764 'old_cleanups' reassignment.
766 2010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
768 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
771 2010-09-16 Phil Muldoon <pmuldoon@redhat.com>
774 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
775 read_var_value and common_val_print and print a warning.
777 2010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
779 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
780 keep the list in alphabetical order. Use longer e-mail address.
782 2010-09-15 Tom Tromey <tromey@redhat.com>
784 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
786 2010-09-15 Tom Tromey <tromey@redhat.com>
788 * charset.c (iconv_open): New define.
790 (iconv_close): Likewise.
791 (phony_iconv_open): Add "phony_" prefix.
792 (phony_iconv_close): Likewise.
793 (phony_iconv): Likewise.
794 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
795 Change how INTERMEDIATE_ENCODING is defined.
797 2010-09-15 Doug Evans <dje@google.com>
799 * dwarf2read.c (struct die_info): Fix comment.
801 2010-09-15 Alan Modra <amodra@gmail.com>
804 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
805 than setting SEC_NEVER_LOAD on sections that need not be copied.
807 2010-09-14 Tom Tromey <tromey@redhat.com>
809 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
810 (start_psymtab_common, allocate_psymtab, discard_psymtab):
812 * symfile.h (extend_psymbol_list): Remove.
813 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
814 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
815 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
817 2010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
819 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
822 2010-09-14 Tom Tromey <tromey@redhat.com>
825 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
826 for unrecognized frame base expression.
828 2010-09-14 Tom Tromey <tromey@redhat.com>
831 * value.c (value_static_field): Use value_of_variable.
833 2010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
835 * m32r-rom.c: Replace winsock.h with winsock2.h header.
836 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
838 2010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
841 * c-exp.y (classify_name): Check is_a_member_of_this before returning
844 2010-09-13 Joel Brobecker <brobecker@adacore.com>
846 * NEWS: Add x86-lynxos to the list of platforms supported by
849 2010-09-13 Joel Brobecker <brobecker@adacore.com>
851 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
853 2010-09-13 Tom Tromey <tromey@redhat.com>
855 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
857 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
859 * i386-tdep.c (i386_ymm_type): Set type name to
860 builtin_type_vec256i.
862 2010-09-12 Michael Snyder <msnyder@vmware.com>
864 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
866 2010-09-12 H.J. Lu <hongjiu.lu@intel.com>
868 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
870 2010-09-11 H.J. Lu <hongjiu.lu@intel.com>
872 * amd64-tdep.c (amd64_register_name): Removed.
873 (amd64_init_abi): Don't call set_gdbarch_register_name.
875 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
877 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
879 2010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
880 Paul Bolle <pebolle@tiscali.nl>
882 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
883 * cli-logging.c (struct saved_output_files) <targerr>: New.
884 (set_logging_redirect, pop_output_files, handle_redirections):
885 Redirect also gdb_stdtargerr.
886 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
888 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
890 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
891 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
892 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
893 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
894 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
897 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
899 * hppa-tdep.c (unwind_command): Use host_address_to_string function
900 to display a host address.
901 * monitor.c (monitor_read_memory): Likewise.
902 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
904 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
906 * coffread.c (struct coff_symbol): Change c_value type from `long' to
907 `CORE_ADDRESS' as it might contain target addresses.
909 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
911 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
912 before cast to pointer to avoid warning.
914 2010-09-09 Kevin Buettner <kevinb@redhat.com>
916 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
919 2010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
921 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
922 anonymous class partial DIEs.
924 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
926 * dwarf2read.c (dwarf2_compute_name): Check that the first
927 argument is a pointer.
929 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
931 * dwarf2read.c (read_func_scope, read_structure_type)
932 (read_common_block): Check for a NULL return from new_symbol.
934 2010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
936 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
938 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
940 * dwarf2read.c (read_structure_type): Move processing of
941 fields and member functions from here...
942 (process_structure_scope): ... to here.
944 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
946 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
948 (gnuv3_make_method_ptr): Likewise.
950 2010-09-08 Tom Tromey <tromey@redhat.com>
952 * breakpoint.c (create_breakpoint): Add missing _().
954 2010-09-08 Doug Evans <dje@google.com>
956 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
958 2010-09-08 Tom Tromey <tromey@redhat.com>
961 2010-09-01 Tom Tromey <tromey@redhat.com>
962 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
963 symtab.h: Revert earlier change.
965 2010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
967 * psymtab.c (add_psymbol_to_bcache): Initialize
969 memset psymbol.ginfo.value to 0.
971 2010-09-06 Pedro Alves <pedro@codesourcery.com>
973 * infrun.c (resume): Extend comment on ignoring single-step
974 requests on vfork parents waiting for a vfork-done.
976 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
977 Pedro Alves <pedro@codesourcery.com>
979 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
981 * fork-child.c (startup_inferior) <resume_signal>: Use enum
983 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
984 calling strsignal. Use enum target_signal type for saved_signo.
985 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
986 (linux_nat_wait_1): Use enum target_signal type for signo. Use
987 target_signal_to_host before calling strsignal.
988 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
991 2010-09-06 Pedro Alves <pedro@codesourcery.com>
992 Jan Kratochvil <jan.kratochvil@redhat.com>
994 * common/signals.c (ANY): Remove.
995 (SET): No longer use ANY.
997 2010-09-06 Yao Qi <yao@codesourcery.com>
999 * infrunc(resume): When inferior is waiting_for_vfork_done,
1000 clear step and don't use displaced stepping.
1002 2010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1004 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
1007 2010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1009 Code cleanup - split print_stop_reason.
1010 * infrun.c (enum inferior_stop_reason): Remove.
1011 (print_stop_reason): Remove by splitting into ...
1012 (print_exited_reason, print_signal_exited_reason)
1013 (print_no_history_reason, print_signal_received_reason)
1014 (print_end_stepping_range_reason): ... these new functions. Update
1015 the preceding comment.
1016 (handle_inferior_event): Change the calls to print_exited_reason,
1017 print_signal_exited_reason, print_no_history_reason,
1018 print_signal_received_reason, print_end_stepping_range_reason.
1019 (handle_step_into_function, handle_step_into_function_backward):
1020 Change the calls to print_end_stepping_range_reason.
1022 2010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1024 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
1025 * cli-out.c: Include vec.h.
1026 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
1027 variable stream, initialize it, use it.
1028 (cli_redirect): New function comment. Replace the stream and
1029 original_stream fields by the new streams field. Remove the
1030 original_stream != NULL conditional, assert error on NULL instead.
1031 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
1032 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
1033 original_stream fields by the new streams field.
1034 (cli_out_set_stream): Replace the stream field by the new streams
1036 * cli-out.h: Include vec.h.
1037 (ui_filep): New typedef, call DEF_VEC_P for it.
1038 (struct cli_ui_out_data): Replace the stream and original_stream
1039 fields by the new streams field.
1040 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
1041 NULL first. Extend the comment.
1042 (handle_redirections): Call ui_out_redirect with output.
1043 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
1044 calls outside of the TRY_CATCH block.
1046 2010-09-03 Joel Brobecker <brobecker@adacore.com>
1050 2010-09-02 Joel Brobecker <brobecker@adacore.com>
1052 Back out the following change:
1053 | 2010-06-29 Hui Zhu <teawater@gmail.com>
1054 | * record.c (set_record_pic_cmdlist,
1055 | show_record_pic_cmdlist): New variables.
1056 | (set_record_pic_command,
1057 | show_record_pic_command): New functions.
1058 | (record_pic_function, record_pic_line, record_pic_enum,
1059 | set_record_pic_type, record_pic_hide_nofunction,
1060 | record_pic_hide_nosource, record_pic_hide_same): New variables.
1061 | (record_pic_fputs): New function.
1062 | (function_list, node_list, edge_list): New struct.
1063 | (function_list, node_list, edge_list): New variables.
1064 | (record_pic_cleanups, record_pic_node,
1065 | record_pic_edge, cmd_record_pic): New functions.
1066 | (_initialize_record): Add new commands for record pic.
1068 2010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1070 * config.in, configure: Regenerated.
1071 * configure.ac: Check for waitpid.
1072 * ser-pipe.c (pipe_close): Wait for the program to exit.
1074 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1076 * cli/cli-logging.c: Include gdb_assert.h.
1077 (set_logging_overwrite): New function.
1078 (logging_redirect): New comment.
1079 (logging_no_redirect_file, set_logging_redirect)
1080 (pop_output_files) <logging_no_redirect_file>: New.
1081 (handle_redirections) <!logging_redirect>: New variable
1082 no_redirect_file. Remove file autoclose for tee_file_new. No longer
1083 discard cleanup for the close of former OUTPUT. Set
1084 LOGGING_NO_REDIRECT_FILE.
1085 (handle_redirections) <logging_redirect>: gdb_assert
1086 LOGGING_NO_REDIRECT_FILE.
1087 (show_logging_command) <logging_redirect handling>: Adjust messages
1088 for SAVED_FILENAME not NULL.
1089 (_initialize_cli_logging): Install set_logging_overwrite and
1090 set_logging_redirect.
1092 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1094 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
1096 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1098 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
1099 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
1100 add $(GDB_WARN_CFLAGS_NO_FORMAT).
1101 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
1103 2010-09-02 Yao Qi <yao@codesourcery.com>
1105 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
1106 number from a WIFSIGNALED status.
1108 2010-09-01 Tom Tromey <tromey@redhat.com>
1110 * symtab.h (lookup_type_symbol): Declare.
1111 * symtab.c (lookup_symbol_in_language_full): Rename from
1112 lookup_symbol_in_language. Add 'for_type' argument.
1113 (lookup_symbol_in_language): New function.
1114 (lookup_type_symbol): Likewise.
1115 (lookup_symbol_aux): Add 'for_type' argument.
1116 (match_symbol_aux): New function.
1117 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
1118 (match_transparent_type): New function.
1119 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
1120 * symfile.h (struct quick_symbol_functions)
1121 <pre_expand_symtabs_matching>: Remove.
1122 <expand_one_symtab_matching>: New field.
1123 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
1124 (pre_expand_symtabs_matching_psymtabs): Remove.
1125 (psym_functions): Update.
1126 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
1127 * dwarf2read.c (dw2_lookup_symbol): Update comment.
1128 (dw2_pre_expand_symtabs_matching): Remove.
1129 (dw2_expand_one_symtab_matching): New function.
1130 (dwarf2_gdb_index_functions): Update.
1132 2010-09-01 Joel Brobecker <brobecker@adacore.com>
1134 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
1136 2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
1138 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
1139 as a feature reported by -list-target-features.
1141 2010-09-01 Joel Brobecker <brobecker@adacore.com>
1143 * features/Makefile (WHICH): Add rs6000/powerpc-32.
1144 (powerpc-32.o, powerpc-32.c): New rules.
1145 (clean): Also remove powerpc-32.c.
1146 * regformats/rs6000/powerpc-32.dat: Generate.
1148 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
1150 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
1151 psymbol_bcache_init.
1152 * psymtab.h (psymbol_bcache_init): New function prototype.
1153 (psymbol_bcache_free): New function prototype.
1154 (psymbol_bcache_get_bcache): New function prototype.
1155 * psymtab.c (psymbol_bcache_init): New function.
1156 (psymbol_bcache_free): New function.
1157 (psymbol_bcache_full): New function.
1158 (psymbol_bcache_get_bcache): New function.
1159 (add_psymbol_to_bcache): use psymbol_bcache_full.
1160 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
1162 * symmisc.c (print_symbol_bcache_statistics): Updated.
1163 (print_objfile_statistics): Updated.
1164 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
1166 (free_objfile): Use psymbol_bcache_free.
1168 2010-08-31 Tom Tromey <tromey@redhat.com>
1171 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
1172 Don't set TYPE_NAME on the type.
1174 2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
1176 * infrun.c (set_exec_direction_func): Error out if target does not
1177 support reverse execution.
1179 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1181 Make linux_get_siginfo_type `type *' unique.
1182 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
1183 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
1184 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
1185 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
1186 (_initialize_linux_tdep): New.
1188 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1191 * defs.h (find_memory_region_ftype): New typedef.
1192 (exec_set_find_memory_regions): Use it.
1193 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
1194 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
1195 * gcore.c (objfile_find_memory_regions): Likewise.
1196 * gnu-nat.c (gnu_find_memory_regions): Likewise.
1197 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
1198 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
1199 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
1200 find_memory_region_ftype.
1201 (insert_dbx_link_bpt_in_region): Likewise.
1202 (iterate_over_mappings): Likewise. Drop the comment part about the
1204 (find_memory_regions_callback): Use find_memory_region_ftype.
1205 (proc_find_memory_regions): Likewise.
1206 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
1207 find_memory_region_ftype.
1208 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
1209 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
1211 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
1213 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
1214 'static partial_symbol psymbol'.
1215 (psymbol_hash): New function.
1216 (psymbol_compare): New function.
1217 * bcache.c (hash_continue): New.
1218 (hash): Use hash_continue.
1219 * bcache.c: Add hash_function and compare_function
1220 pointers to bcache struct.
1221 (bcache_full): Use bcache->hash_function, and
1222 bcache->compare_function.
1223 (bcache_compare): New function.
1224 (bcache_xmalloc): Take hash_function and
1225 compare_function arguments and initialize the
1228 * objfiles.c (allocate_objfile): Updated.
1229 * symfile.c (reread_symbols): Updated.
1230 * python/py-type.c (typy_richcompare): Updated.
1232 2010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
1233 Tom Tromey <tromey@redhat.com>
1236 * python/py-value.c (valpy_get_dynamic_type): New function.
1237 (value_object_getset): Add "dynamic_type".
1238 (valpy_get_type): Fail on error.
1240 2010-08-30 Yao Qi <yao@codesourcery.com>
1242 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
1243 (arm_linux_syscall_next_pc): New.
1244 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
1245 (arm_linux_init_abi): Initialize syscall_next_pc.
1246 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
1247 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
1248 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
1249 Declare arm_frame_is_thumb.
1251 2010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1254 * breakpoint.c (bpstat_alloc): Remove unused prototype.
1255 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
1257 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
1258 calls of bpstat_alloc. Remove explicit bs chain termination.
1260 2010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1263 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
1264 (my_waitpid): Likewise.
1266 2010-08-27 Doug Evans <dje@google.com>
1268 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
1271 2010-08-27 Tom Tromey <tromey@redhat.com>
1273 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
1274 TYPE_FIELD_IGNORE_BITS.
1276 2010-08-27 Doug Evans <dje@google.com>
1278 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
1279 the order they're defined in. munmap .debug_types buffer.
1281 2010-08-26 Doug Evans <dje@google.com>
1283 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
1284 (dw2_forget_cached_source_info): Rename local cu to per_cu.
1285 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
1286 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
1287 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
1288 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
1289 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
1290 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
1291 (write_psymtabs_to_index): Ditto.
1293 2010-08-26 Pedro Alves <pedro@codesourcery.com>
1295 * NEWS: Mention libthread_db debugging with core files.
1297 2010-08-26 Doug Evans <dje@google.com>
1299 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
1300 forward decl. Pass pst->dirname to dwarf_decode_lines.
1301 (psymtab_include_file_name): New function.
1302 (dwarf_decode_lines): Call it. Update comments.
1304 2010-08-25 Pedro Alves <pedro@codesourcery.com>
1306 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
1307 compilation unit being different from target die's.
1309 2010-08-24 Doug Evans <dje@google.com>
1312 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
1313 debug_types_type_hash.
1314 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
1316 (lookup_die_type): Renamed from tag_type_to_tag. First look in
1317 appropriate type_hash table. All callers updated.
1318 (allocate_signatured_type_table): Renamed from
1319 allocate_signatured_type_hash_table. All callers updated.
1320 (create_signatured_type_table_from_index): Renamed from
1321 create_signatured_type_hash_from_index. All callers updated.
1322 (read_die_type): Add comment. Move actual reading to ...
1323 (read_die_type_1): ... here. New function.
1324 (follow_die_ref_or_sig): Tweak comment.
1325 (set_die_type): Rewrite to use appropriate choice of
1326 debug_info_type_hash or debug_types_type_hash.
1327 (get_die_type_at_offset): New function.
1328 (get_die_type): Call it.
1330 2010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1332 * python/py-type.c (typy_richcompare): Initialize worklist.
1334 2010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
1335 Kazu Hirata <kazu@codesourcery.com>
1336 Jonathan Larmour <jifl@eCosCentric.com>
1338 * arm-tdep.c: Include features/arm-with-m.c.
1339 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
1341 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
1342 Check is_m after force-mode.
1343 (arm_gdbarch_init): Check the binary before the target description.
1344 Add check for M profile attribute. If we have an M-profile device,
1345 but no target register description, use arm-with-m. Recognize the
1346 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
1347 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
1348 * arm-tdep.h (XPSR_T): Define.
1349 (struct gdbarch_tdep): Add is_m member.
1350 * features/arm-m-profile.xml, features/arm-with-m.c,
1351 features/arm-with-m.xml: New files.
1353 2010-08-23 Doug Evans <dje@google.com>
1355 * dwarf2read.c (read_structure_type): Add comment.
1356 (read_enumeration_type): Add comment.
1357 (process_enumeration_scope): Move definition of some locals
1358 closer to their use.
1359 (read_namespace_type): Add comment.
1360 (set_die_type): Fix typo in comment.
1362 2010-08-23 Tom Tromey <tromey@redhat.com>
1365 * python/py-value.c: Include expression.h.
1366 (valpy_do_cast): New function.
1367 (valpy_cast): Use it.
1368 (valpy_dynamic_cast): New function.
1369 (valpy_reinterpret_cast): Likewise.
1370 (value_object_methods): Add dynamic_cast, reinterpret_cast.
1372 2010-08-23 Tom Tromey <tromey@redhat.com>
1375 * python/py-value.c (valpy_nonzero): Don't throw error for other
1378 2010-08-23 Tom Tromey <tromey@redhat.com>
1381 * python/py-type.c: Include bcache.h, vec.h.
1382 (struct type_equality_entry): New.
1383 (compare_strings): New function.
1384 (check_types_equal): Likewise.
1385 (check_types_worklist): Likewise.
1386 (typy_richcompare): Likewise.
1387 (type_object_type): Set tp_richcompare field.
1389 2010-08-23 Tom Tromey <tromey@redhat.com>
1392 * python/py-type.c (typy_fields): Call check_typedef.
1393 (typy_template_argument): Add TRY_CATCH.
1395 2010-08-23 Tom Tromey <tromey@redhat.com>
1398 * python/py-type.c (typy_array): New function.
1399 (type_object_methods): Add "array".
1401 2010-08-20 Pedro Alves <pedro@codesourcery.com>
1403 * python/python.c: Include "serial.h".
1404 (gdbpy_event_fds): Change type to `struct serial *' a array from
1406 (gdbpy_run_events): Change parameters. Use serial_readchar in
1408 (gdbpy_post_event): Use serial_write in place of write.
1409 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
1410 serial_async in place of add_file_handler.
1412 2010-08-20 Pedro Alves <pedro@codesourcery.com>
1414 * serial.h (gdb_pipe, serial_pipe): Declare.
1415 * serial.c (serial_interface_lookup): Take a const char pointer.
1416 (serial_fdopen): Rename to ...
1417 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
1418 Call the OPS' fdopen function if there is one.
1419 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
1421 (struct serial_ops) <fdopen>: New field.
1423 * ser-mingw.c (free_pipe_state):
1424 (free_pipe_state): Close output on non-pex pipes.
1425 (pipe_windows_fdopen): New.
1427 (_initialize_ser_windows): Register pipe_windows_fdopen.
1428 * ser-go32.c (gdb_pipe): New.
1429 * ser-pipe.c (pipe_close): Close file descriptor even if there's
1434 2010-08-20 Keith Seitz <keiths@redhat.com>
1437 * dwarf2read.c (struct delayed_method_info): New struct.
1438 (struct dwarf2_cu): Add vector method_list.
1439 (scan_partial_symbols): Count methods for union, class, structure,
1440 and interface types.
1441 (add_to_method_list): New function.
1442 (free_delayed_list): New function.
1443 (compute_delayed_physnames): New function.
1444 (process_full_comp_unit): Make a cleanup for the CU's delayed
1445 physname list, compute the delayed physnames, and free the
1447 (dwarf2_add_member_fn): For C++ and Java, delay the computation
1448 of the physname until after the CU is read.
1450 * dwarf2read.c (read_structure_type): Check if the current
1451 DIE's type was already completed after dwarf2_full_name
1454 2010-08-19 Stan Shebs <stan@codesourcery.com>
1456 * NEWS: Mention some additional changes.
1458 2010-08-19 Tom Tromey <tromey@redhat.com>
1460 * Makefile.in (install-python): Add DESTDIR.
1462 2010-08-19 Doug Evans <dje@google.com>
1465 * parser-defs.h (parse_float, parse_c_float): Declare.
1466 * parse.c (parse_float, parse_c_float): New function.
1467 * c-exp.y (parse_number): Call parse_c_float.
1468 * objc-exp.y (parse_number): Ditto.
1469 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
1470 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
1472 2010-08-19 Joel Brobecker <brobecker@adacore.com>
1474 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
1475 the arguments in the correct order.
1476 * symtab.c (maybe_add_partial_symtab_filename): Declare
1477 the arguments in the correct order.
1479 2010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1481 * varobj.c (varobj_create): Replace variable old_fi with old_id,
1482 initialize it by null_frame_id, wrap its usage by get_frame_id,
1483 frame_id_p and frame_find_by_id.
1485 2010-08-18 Tom Tromey <tromey@redhat.com>
1488 * configure: Rebuild.
1489 * configure.ac: Add install-python to CONFIG_INSTALL.
1490 * Makefile.in (install-python): New.
1492 2010-08-18 Doug Evans <dje@google.com>
1494 * gdb_assert.h (gdb_assert_not_reached): New macro.
1495 (gdb_assert_fail): Fix typo in comment.
1496 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
1498 * darwin-nat.c (darwin_check_new_threads): Ditto.
1499 * dwarf2read.c (dwarf2_get_section_info): Ditto.
1500 (munmap_section_buffer): Ditto.
1501 * m32c-tdep.c (make_types): Ditto.
1502 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
1503 * macroexp.c (get_character_constant): Ditto.
1504 (get_string_literal): Ditto.
1505 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
1506 (mep_pseudo_cr_index, mep_register_type): Ditto.
1507 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
1508 (mep_get_insn, mep_analyze_prologue): Ditto.
1509 * objfiles.c (qsort_cmp): Ditto.
1510 * prologue-value.c (pv_is_identical): Ditto.
1511 * record.c (record_get_loc): Ditto.
1512 * value.c (value_static_field): Ditto.
1513 * xtensa-tdep.c (call0_track_op): Ditto.
1515 2010-08-18 Tom Tromey <tromey@redhat.com>
1518 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
1519 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
1520 name-copying lower. Document exception behavior.
1521 * completer.c (expression_completer): Catch exceptions from
1522 parse_field_expression.
1524 2010-08-18 Pedro Alves <pedro@codesourcery.com>
1528 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
1529 workaround on core files.
1530 (try_thread_db_load_1): Don't try enabling thread event reporting
1532 (thread_db_load): Allow thread_db on core files.
1533 (attach_thread): Don't check thread signals on core files, nor try
1534 really attaching to the thread, nor enabling thread event event
1536 (thread_db_detach): Don't try disabing thread event reporting or
1537 removing thread event breakpoints when debugging a core file.
1538 (find_new_threads_callback): Don't try enabling thread event
1539 reporting on core files.
1540 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
1541 debugging a core file.
1542 (thread_db_find_new_threads): Don't update thread
1543 cores (processors) when debugging a core (dump).
1545 2010-08-18 Pedro Alves <pedro@codesourcery.com>
1549 * corelow.c (add_to_thread_list): Don't use
1550 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
1551 (get_core_register_section): Don't use
1552 gdbarch_core_reg_section_encodes_pid.
1554 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
1555 * gdbarch.h, gdbarch.c: Regenerate.
1556 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
1557 gdbarch_core_reg_section_encodes_pid.
1558 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
1559 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
1560 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1562 2010-08-18 Yao Qi <yao@codesourcery.com>
1564 * MAINTAINERS : Add myself under Write After Approval.
1566 2010-08-17 Tom Tromey <tromey@redhat.com>
1568 * NEWS: Mention template parameter support.
1570 2010-08-17 Pedro Alves <pedro@codesourcery.com>
1572 PR breakpoints/11371
1574 * breakpoint.c (decref_bp_location): Assert the reference count is
1577 2010-08-17 Pedro Alves <pedro@codesourcery.com>
1579 PR breakpoints/11371
1581 * breakpoint.c (breakpoint_init_inferior): Decrement the
1582 location's reference count instead of deleting right away.
1583 (bpstat_free): Decrement the location's reference count. Make
1585 (bpstat_copy): Increment the location's reference count.
1586 (bpstat_find_breakpoint): Adjust.
1587 (bpstat_num): Adjust.
1588 (print_it_typical): Adjust. Use the breakpoint pointer in the
1589 bpstat instead of the location's owner.
1590 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
1591 Adjust to record the location's owner in the bpstat.
1592 (watchpoint_check): Use the breakpoint pointer in the bpstat
1593 instead of the location's owner.
1594 (bpstat_check_breakpoint_conditions): Don't handle
1595 bp_watchpoint_scope here. Use the breakpoint pointer in the
1596 bpstat instead of the location's owner.
1597 (bpstat_stop_status): Defer inferior function calls to after
1598 building the bpstat list. Handle bp_watchpoint_scope here. Use
1599 the breakpoint pointer in the bpstat instead of the location's
1601 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
1602 the location's owner.
1603 (free_bp_location): Don't walk bpstats clearing locations.
1604 (incref_bp_location): New.
1605 (decref_bp_location): New.
1606 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
1607 instead of the location's owner.
1608 (update_global_location_list): Clear the location's owner, and
1609 decrement the location's reference count instead of deleting it
1611 (breakpoint_retire_moribund): Decrement the location's reference
1612 count instead of deleting it right away.
1613 (bpstat_remove_bp_location): Delete.
1614 (bpstat_remove_breakpoint): New.
1615 (bpstat_remove_bp_location_callback): Delete.
1616 (bpstat_remove_breakpoint_callback): New.
1617 (delete_breakpoint): Iterate over all threads' stop_bpstat's
1618 clearing references to the breakpoint that is being deleted.
1620 * breakpoint.h (struct bp_location) <refc>: New field.
1621 <owner>: Update comments.
1622 (bpstat_free): Delete declaration.
1623 (struct bpstats): Change the type of the breakpoint_at field to
1624 struct breakpoint point, from struct bp_location pointer. Add new
1625 field bp_location_at.
1627 2010-08-16 Tom Tromey <tromey@redhat.com>
1631 2010-08-16 Tom Tromey <tromey@redhat.com>
1633 * NEWS: Mention watch -location.
1635 2010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1637 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
1638 EXP_STRING_REPARSE to EXP_STRING.
1639 (watch_command_1): Set also EXP_STRING_REPARSE.
1640 (delete_breakpoint): Free also EXP_STRING_REPARSE.
1641 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
1642 Update comment for exp_string.
1644 2010-08-16 Tom Tromey <tromey@redhat.com>
1646 * value.c (release_value): Clear 'next' pointer.
1647 * breakpoint.c (watch_command_1): Add 'just_location' argument.
1648 (watch_command_wrapper): Update.
1649 (watch_maybe_just_location): New function.
1650 (watch_command): Update.
1651 (rwatch_command_wrapper): Update.
1652 (rwatch_command): Update.
1653 (awatch_command_wrapper): Update.
1654 (awatch_command): Update.
1655 (check_for_argument): New function.
1656 (_initialize_breakpoint): Update help text.
1658 2010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
1660 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
1661 typedef'ed function types correctly.
1663 2010-08-13 Tom Tromey <tromey@redhat.com>
1665 * python/python-internal.h (gdbpy_get_hook_function): Don't
1668 2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1670 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
1673 2010-08-13 Ken Werner <ken.werner@de.ibm.com>
1675 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
1676 the format strings to be compatible with Python 2.4.
1678 2010-08-13 Vladimir Prus <vladimir@codesourcery.com>
1680 Easier and more stubborn MI memory read commands.
1682 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
1683 and data-write-memory-bytes.
1684 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
1685 (mi_cmd_data_write_memory_bytes): New.
1686 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
1687 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
1689 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
1690 * target.c (target_read_until_error): Remove.
1691 (read_whatever_is_readable, free_memory_read_result_vector)
1692 (read_memory_robust): New.
1693 * target.h (target_read_until_error): Remove.
1694 (struct memory_read_result, free_memory_read_result_vector)
1695 (read_memory_robust): New.
1697 2010-08-13 Hui Zhu <teawater@gmail.com>
1699 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
1700 (read_comp_unit): Initialize back_to.
1702 2010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
1703 Pedro Alves <pedro@codesourcery.com>
1705 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
1706 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
1707 (struct partial_die_info) <has_template_arguments>: New field.
1708 <num_attrs>: Change type to unsigned char.
1709 <building_fullname>: New field.
1710 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
1711 allocate a CU if we don't have one already. Add a cleanup for the
1713 (partial_die_full_name): Handle template arguments not in
1715 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
1716 (load_full_comp_unit): Only allocate a CU if we don't have one
1718 (do_ui_file_peek_last): New.
1719 (dwarf2_compute_name): Handle template parameters not in
1721 (read_comp_unit): Read and free abbrevs if not read yet.
1722 (load_partial_dies): Handle template arguments not in DW_AT_name.
1723 (find_partial_die): If we have a CU, but no a partial dies yet,
1724 also read in the CU.
1725 (dwarf2_const_value_attr): New, abstracted out from
1727 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
1728 dwarf2_const_value_attr.
1729 (determine_prefix): Detect and break loops created by RCVT's debug
1731 (maybe_queue_comp_unit): Bail out early if reading partial
1733 (follow_die_offset): Load full CU if we have no dies.
1734 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
1735 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
1737 2010-08-11 Tom Tromey <tromey@redhat.com>
1738 Phil Muldoon <pmuldoon@redhat.com>
1740 * python/python.c (gdbpy_run_events): New function.
1741 (gdbpy_post_event): Likewise.
1742 (gdbpy_initialize_events): Likewise.
1743 (_initialize_python): Call gdbpy_initialize_events.
1745 2010-08-11 Ken Werner <ken.werner@de.ibm.com>
1747 * gdb/valarith.c (vector_binop): New function.
1748 (scalar_binop): Likewise.
1749 (value_binop): Call scalar_binop or vector_binop depending on the types.
1750 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
1751 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
1753 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
1755 2010-08-11 Brad Roberts <braddr@puremagic.com>
1757 * d-lang.c (extract_identifiers): Handle multiple digits.
1759 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1762 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
1763 Rename to dummy_frame_unwind.
1764 (dummy_frame_unwind): Remove.
1765 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
1766 * frame-unwind.c (frame_unwind_init): Use address of
1767 dummy_frame_unwind and inline_frame_unwind.
1768 * frame.c (create_sentinel_frame): Use address of
1769 sentinel_frame_unwind.
1770 * inline-frame.c (inline_frame_unwinder): Rename to
1771 inline_frame_unwind.
1772 (inline_frame_unwind): Remove.
1773 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
1774 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
1775 sentinel_frame_unwind.
1776 (sentinel_frame_unwind): Remove.
1777 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
1780 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1783 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
1784 and returned value. New comment from frame-unwind.h.
1785 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
1787 * frame.c (get_frame_id, frame_unwind_register_value)
1788 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
1789 (get_frame_type, frame_unwind_arch): Do not use the return value of
1790 frame_unwind_find_by_frame.
1792 2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
1793 Thiago Jung Bauermann <bauerman@br.ibm.com>
1794 Tom Tromey <tromey@redhat.com>
1796 * python/python.c (gdbpy_solib_address): New function.
1797 (gdbpy_decode_line): Likewise.
1799 2010-08-10 Tom Tromey <tromey@redhat.com>
1801 Revert gdb-add-index addition:
1802 * Makefile.in (install-only): Don't install gdb-add-index.
1803 * gdb-add-index.sh: Remove.
1805 2010-08-09 Kevin Buettner <kevinb@redhat.com>
1807 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
1808 `target_has_execution' check with `to_has_memory' check.
1809 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
1810 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
1811 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
1813 2010-08-09 Kevin Buettner <kevinb@redhat.com>
1815 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
1816 (resume_siggnal, resume_step): Move these static globals...
1817 (struct sim_inferior_data): ...into this new struct.
1818 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
1820 (gdb_callback, callbacks_initialized): Move these globals to
1821 a point earlier in the file.
1822 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
1823 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
1824 (gdbsim_close_inferior, gdbsim_resume_inferior)
1825 (gdbsim_stop_inferior): New functions.
1826 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
1828 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
1829 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
1830 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
1831 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
1832 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
1833 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
1834 new local variable `sim_data' in each of these functions. Use
1835 `sim_data' to reference former globals `program_loaded',
1836 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
1838 (gdbsim_open): Remove local variable `argv'. Put results of call
1839 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
1840 make a cleanup for it. Free it though when a sim instance cannot
1842 (gdbsim_close): Free sim_argv and null it out as appropriate.
1843 Close sim instances in all inferiors.
1844 (gdbsim_cntrl_c): Stop all inferiors.
1846 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
1848 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
1850 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
1851 function after symbol construction is complete.
1852 Do the same for template symbol addition to template_symbols list.
1854 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
1856 * symtab.c (symbol_get_demangled_name): Remove assertion and
1857 return NULL when language_specific.cplus_specific is not initialized.
1858 * stabsread.c (define_symbol): Set the name before calling
1859 cp_scan_for_anonymous_namespaces.
1861 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
1863 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
1864 SYMBOL_SET_LANGUAGE.
1865 (symbol_init_language_specific): Renamed to symbol_set_language.
1866 * symtab.c (symbol_init_language_specific): Removed redundant check
1868 Renamed to symbol_set_language.
1869 * stabsread.c (define_symbol): Updated.
1870 (read_enum_type): Updated
1871 * psymtab.c (add_psymbol_to_bcache): Updated.
1872 * minsyms.c (install_minimal_symbols): Updated.
1873 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
1874 SYMBOL_LANGUAGE to set the language.
1875 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
1876 * mdebugread.c (new_symbol): Ditto.
1877 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
1878 * dwarf2read.c (new_symbol_full): Ditto.
1879 * jv-lang.c (add_class_symbol): Ditto.
1881 2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1883 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
1884 (make_cleanup_restore_page_info)
1885 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
1886 * gdbcmd.h (execute_command_to_string): New declaration.
1887 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
1888 (make_cleanup_restore_ui_file): Move to utils.c
1889 (execute_gdb_command) <to_string>: Move ...
1890 * top.c (execute_command_to_string): ... here. Call
1891 set_batch_flag_and_make_cleanup_restore_page_info.
1892 * utils.c (make_cleanup_restore_integer): New source file blank line.
1893 (make_cleanup_restore_uinteger): New.
1894 (struct restore_ui_file_closure, do_restore_ui_file)
1895 (make_cleanup_restore_ui_file): Move here from python/python.c.
1896 (init_page_info) <batch_flag>
1897 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
1898 (set_batch_flag_and_make_cleanup_restore_page_info): New.
1900 2010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
1902 * thread.c (add_thread_silent): Use null_ptid instead of
1903 minus_one_ptid while getting rid of stale inferior_ptid.
1905 2010-08-06 Corinna Vinschen <vinschen@redhat.com>
1907 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
1908 Throughout, call read_encoded_value with ptr_size rather than addr_size.
1909 (decode_frame_entry_1): Remove redundant setting of
1910 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
1911 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
1912 on examined frame section. Add comment to explain why.
1913 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
1914 comment to explain usage.
1915 * gdbarch.c: Regenerate.
1916 * gdbarch.h: Regenerate.
1918 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
1920 2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1923 * varobj.c (varobj_create): Move variables fi, old_fi and block to
1926 2010-08-05 Pedro Alves <pedro@codesourcery.com>
1928 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
1929 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
1930 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
1931 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
1932 linux-tdep.o to gdb_target_obs.
1934 2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
1936 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
1939 2010-08-05 Hui Zhu <teawater@gmail.com>
1941 * mips-linux-tdep.c(regset.h): New include.
1942 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
1943 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
1944 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
1945 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
1946 mips_linux_regset_from_core_section): New functions.
1947 (fetch_core_registers, regset_core_fns): Deleted.
1948 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
1949 Deleted regset_core_fns.
1950 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
1951 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
1952 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
1955 2010-08-04 Pedro Alves <pedro@codesourcery.com>
1957 * s390-tdep.c: Include linux-tdep.h.
1958 (s390_gdbarch_init): Call linux_init_abi.
1960 2010-08-04 Pedro Alves <pedro@codesourcery.com>
1962 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
1963 instead of printing "Thread" here.
1964 * linux-tdep.c: Include inferior.h.
1965 (linux_core_pid_to_str): New.
1966 (linux_init_abi): New.
1967 * linux-tdep.h (linux_init_abi): Declare.
1968 * alpha-linux-tdep.c: Include linux-tdep.h.
1969 (alpha_linux_init_abi): Call linux_init_abi.
1970 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
1971 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
1972 * frv-linux-tdep.c: Include linux-tdep.h
1973 (frv_linux_init_abi): Call linux_init_abi.
1974 * hppa-linux-tdep.c: Include linux-tdep.h
1975 (hppa_linux_init_abi): Call linux_init_abi.
1976 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
1977 * ia64-linux-tdep.c: Include linux-tdep.h.
1978 (ia64_linux_init_abi): Call linux_init_abi.
1979 * m32r-linux-tdep.c: Include linux-tdep.h.
1980 (m32r_linux_init_abi): Call linux_init_abi.
1981 * m68klinux-tdep.c: Include linux-tdep.h.
1982 (m68k_linux_init_abi): Call linux_init_abi.
1983 * microblaze-linux-tdep.c: Include linux-tdep.h.
1984 (microblaze_linux_init_abi): Call linux_init_abi.
1985 * mips-linux-tdep.c: Include linux-tdep.h.
1986 (mips_linux_init_abi): Call linux_init_abi.
1987 * mn10300-linux-tdep.c: Include linux-tdep.h.
1988 (am33_linux_init_osabi): Call linux_init_abi. Rename the
1989 'gdbinfo' parameter to 'info'.
1990 * ppc-linux-tdep.c: Include linux-tdep.h.
1991 (ppc_linux_init_abi): Call linux_init_abi.
1992 * sh-linux-tdep.c: Include linux-tdep.h.
1993 (sh_linux_init_abi): Call linux_init_abi.
1994 * sparc-linux-tdep.c: Include linux-tdep.h.
1995 (sparc32_linux_init_abi): Call linux_init_abi.
1996 * sparc64-linux-tdep.c: Include linux-tdep.h.
1997 (sparc64_linux_init_abi): Call linux_init_abi.
1998 * xtensa-linux-tdep.c: Include linux-tdep.h.
1999 (xtensa_linux_init_abi): Call linux_init_abi.
2000 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
2001 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
2004 2010-08-03 Doug Evans <dje@google.com>
2006 * breakpoint.c (bpdisp_text): Constify bpdisps.
2007 * solib-svr4.c (solib_break_names): Constify.
2008 (bkpt_names, main_name_list): Constify.
2009 (match_main): Constify soname arg.
2010 (bfd_lookup_symbol): Remove unnecessary forward decl.
2011 Constify symname arg.
2012 (enable_break): Constify bkpt_namep.
2013 * symtab.c (search_symbols): Constify types, types2, types3, types4.
2014 (symtab_symbol_info): Constify classnames.
2016 2010-08-03 Phil Muldoon <pmuldoon@redhat.com>
2018 * NEWS: Document Python value inferior function calls.
2020 2010-08-02 Doug Evans <dje@google.com>
2022 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
2024 2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
2026 * linux-thread-db.c (libthread_db_debug): New variable.
2027 (thread_db_find_new_threads_silently): Control verbosity with it.
2028 (try_thread_db_load_1, try_thread_db_load): Likewise.
2029 (find_new_threads_once): Likewise.
2030 (_initialize_thread_db): Set/show it.
2032 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2034 * common/signals.c (signals): Move the content to signals.def.
2035 Include it. Remove the INDENT comments.
2037 2010-07-30 Tom Tromey <tromey@redhat.com>
2039 * Makefile.in (install-only): Install gdb-add-index.
2040 * gdb-add-index.sh: New file.
2042 2010-07-31 Renquan Cheng <crq@gcc.gnu.org>
2044 * MAINTAINERS: Add myself for write after approval privileges.
2046 2010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2048 * symfile.c (addr_section_name): New function.
2049 (addrs_section_compar): Use it.
2050 (addr_info_make_relative): Use it. Move variable sect_name into a more
2051 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
2053 2010-07-30 Tom Tromey <tromey@redhat.com>
2055 * configure: Rebuild.
2056 * configure.ac: Add missing case for Python 2.7.
2058 2010-07-29 DJ Delorie <dj@redhat.com>
2060 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
2063 2010-07-29 Pedro Alves <pedro@codesourcery.com>
2065 * PROBLEMS: Remove mention of all problems.
2067 2010-07-28 Pedro Alves <pedro@codesourcery.com>
2070 * configure.ac: Check for wresize.
2071 * configure, config.in: Regenerate.
2072 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
2075 2010-07-28 Tom Tromey <tromey@redhat.com>
2078 * python/py-type.c (typy_legacy_template_argument): New function,
2079 extracted from typy_template_argument.
2080 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
2083 2010-07-28 Oleg Nesterov <oleg@redhat.com>
2085 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
2087 2010-07-27 Tom Tromey <tromey@redhat.com>
2089 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
2091 2010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
2093 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
2094 handling DW_AT_object_pointer, and workaround GCC PR 43053.
2096 2010-07-28 Tom Tromey <tromey@redhat.com>
2098 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
2100 2010-07-28 Joel Brobecker <brobecker@adacore.com>
2102 * remote.c (remote_download_tracepoint): Add missing gettext markup.
2103 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
2105 2010-07-28 Joel Brobecker <brobecker@adacore.com>
2107 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
2108 down, just before the block that parse the breakpoint addr_string.
2110 2010-07-28 Tom Tromey <tromey@redhat.com>
2113 * symfile.c (reread_symbols): Clear template_symbols.
2114 * symtab.h (struct symbol) <is_cplus_template_function>: New
2116 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
2117 (struct template_symbol): New.
2118 * symtab.c (lookup_symbol_aux_local): Use
2119 cp_lookup_symbol_imports_or_template.
2120 * objfiles.h (struct objfile) <template_symbols>: New field.
2121 * objfiles.c (relocate_one_symbol): New function.
2122 (objfile_relocate1): Use it. Relocate isolated symbols.
2123 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
2124 template_arguments>: New fields.
2125 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
2126 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
2127 (TYPE_TEMPLATE_ARGUMENT): Likewise.
2128 (lookup_typename): Update.
2129 * gdbtypes.c (lookup_typename): Constify "block" argument.
2130 * dwarf2read.c: Include vec.h.
2131 (symbolp): New typedef.
2132 (read_func_scope): Read template arguments. Allocate a
2133 template_symbol when needed.
2134 (read_structure_type): Read template arguments.
2135 (new_symbol_full): New function, from new_symbol. Handle
2136 DW_TAG_template_type_param and DW_TAG_template_value_param.
2137 (new_symbol): Rewrite as wrapper.
2138 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
2139 * cp-namespace.c: Include language.h.
2140 (search_symbol_list): New function.
2141 (cp_lookup_symbol_imports_or_template): Likewise.
2143 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
2145 * tui/tui-win.c (make_visible_with_new_height): Resize and move
2146 the command window to the new size and position.
2148 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
2150 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
2153 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
2155 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
2156 after a detecting a resize.
2157 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
2160 2010-07-28 Pedro Alves <pedro@codesourcery.com>
2162 * configure.ac: Check for resize_term.
2163 * configure, config.in: Regenerate.
2165 2010-07-27 Joel Brobecker <brobecker@adacore.com>
2167 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
2169 2010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
2171 * dwarf2read.c (read_string): Rename to ...
2172 (read_direct_string): ... this.
2173 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
2174 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
2176 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2178 * linux-nat.c (linux_nat_lp_status_is_event): New function.
2179 (count_events_callback, select_event_lwp_callback)
2180 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
2182 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2184 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
2185 (_initialize_ia64_linux_nat): Install it.
2186 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
2187 (linux_nat_set_status_is_event): New.
2188 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
2189 cancel_breakpoints_callback, linux_nat_filter_event)
2190 (linux_nat_wait_1): Use linux_nat_status_is_event.
2191 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
2193 2010-07-27 Tom Tromey <tromey@redhat.com>
2195 * NEWS: Mention labels, .gdb_index.
2197 2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
2199 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
2200 "start,+length" form of arguments.
2201 * NEWS: Add "Changed commands" (disassemble) section for "Changes
2202 since GDB 7.1"; and merge two separated paragraphs of disassemble
2203 description in "Changes in GDB 7.0".
2205 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2207 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
2208 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
2209 (fputs_maybe_filtered): Do not do filtering also on
2210 ! INPUT_FROM_TERMINAL_P.
2212 2010-07-27 Joel Brobecker <brobecker@adacore.com>
2214 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
2217 2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
2219 * python/py-value.c (valpy_call): New Function.
2221 2010-07-27 Ken Werner <ken.werner@de.ibm.com>
2223 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
2224 types_list_elements variables.
2226 2010-07-26 Tom Tromey <tromey@redhat.com>
2228 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
2229 TLS with DW_OP_const4u or DW_OP_const8u.
2231 2010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
2233 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
2234 VSX registers contents.
2236 2010-07-26 Jerome Guitton <guitton@adacore.com>
2238 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
2239 its adress is null. Add comment to explain why.
2240 (new_symbol): Ditto.
2242 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2244 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
2245 the host signal first.
2247 2010-07-23 Tom Tromey <tromey@redhat.com>
2249 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
2250 type_comp_units>: New fields.
2251 (dw2_get_cu): New function.
2252 (create_cus_from_index): Remove unused argument.
2253 (create_signatured_type_hash_from_index): New function.
2254 (create_addrmap_from_index): Update.
2255 (dwarf2_read_index): Handle version 2.
2256 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
2257 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
2258 (dw2_print_stats, dw2_expand_all_symtabs)
2259 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
2260 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
2261 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
2262 (allocate_signatured_type_hash_table): New function.
2263 (add_signatured_type_cu_to_list): Likewise.
2264 (create_debug_types_hash_table): Use them. Set type_comp_units.
2265 (read_signatured_type): Ensure section data is available.
2266 (add_address_entry): Don't record empty ranges.
2267 (struct signatured_type_index_data): New.
2268 (write_one_signatured_type): New function.
2269 (write_psymtabs_to_index): Write type CUs.
2270 (save_gdb_index_command): Update comment.
2271 (process_type_comp_unit): Move inititalization of
2273 (create_debug_types_hash_table): ... here.
2275 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2277 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
2278 cleanup and generating of gdb script to it.
2279 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
2280 and terminal size. Convert $tmpfile to a series of -ex-es.
2282 2010-07-23 Keith Seitz <keiths@redhat.com>
2284 * symtab.c (basic_lookup_transparent_type): Call pre-expand
2285 hook for STATIC_BLOCK types, too.
2287 2010-07-23 Keith Seitz <keiths@redhat.com>
2289 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
2290 and vector definition.
2292 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2294 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
2296 2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2298 * dwarf2read.c: Include completer.h.
2299 (save_gdb_index_command): Use matching usage command name.
2300 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
2301 Set filename_completer for it.
2303 2010-07-22 Tom Tromey <tromey@redhat.com>
2305 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
2306 type signature's per-CU data.
2308 2010-07-22 Pedro Alves <pedro@codesourcery.com>
2310 * NEWS: Mention target reported shared libraries support by
2313 2010-07-21 Pedro Alves <pedro@codesourcery.com>
2318 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2319 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
2320 and DW_TAG_volatile_type.
2321 (new_symbol): Likewise.
2323 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
2325 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
2326 function symbols before overload resolution.
2328 2010-07-21 Pedro Alves <pedro@codesourcery.com>
2330 * breakpoint.c (bptype_string): New, abstracted out from
2331 print_one_breakpoint_location.
2332 (print_one_breakpoint_location): Adjust.
2333 (breakpoint_1): Adjust the type column width dynamically.
2335 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2337 * symfile.c (find_separate_debug_file_by_debuglink): Remove
2338 a gdb_assert call, new comment.
2340 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2342 * linux-nat.c (linux_handle_extended_wait): Handle case when
2343 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
2345 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2348 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
2349 linux_nat_wait_1. Use always LP->STATUS afterwards.
2351 2010-07-20 Hui Zhu <teawater@gmail.com>
2353 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
2354 (inf_ptrace_attach): Ditto.
2356 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2358 Make core files the process_stratum.
2359 * corefile.c (core_target): New variable.
2360 (core_file_command): Remove variable t, use core_target.
2361 * corelow.c (core_ops): Make it static.
2362 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
2363 * defs.h (make_cleanup_unpush_target): New prototype.
2364 * gdbarch.h: Regenerate.
2365 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
2366 * gdbcore.h (core_target): New declaration.
2367 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
2368 variables ops_already_pushed and back_to. Use push_target,
2369 make_cleanup_unpush_target and discard_cleanups calls.
2370 * record.c (record_open): Replace core_stratum by a core_bfd check.
2371 * target.c (target_is_pushed): New function.
2372 (find_core_target): Remove.
2373 * target.h (enum strata) <core_stratum>: Remove.
2374 (target_is_pushed): New declaration.
2375 (find_core_target): Remove declaration.
2376 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
2377 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
2379 2010-07-19 Hui Zhu <teawater@gmail.com>
2381 * breakpoint.c (single_step_breakpoints_inserted): New
2383 * breakpoint.h (single_step_breakpoints_inserted): Extern.
2384 * infrun.c (maybe_software_singlestep): Add check code.
2385 * record.c (record_resume): Add code for software single step.
2386 (record_wait): Ditto.
2388 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2390 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
2391 a more inner block. Remove its unused declaration initializer.
2393 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
2395 * NEWS: Mention support for the new ptrace interface and hardware
2396 accelerated watchpoint conditions on powerpc-linux.
2398 2010-07-16 Ozkan Sezer <sezeroz@gmail.com>
2400 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
2401 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
2402 and host_address_to_string() and %s for pointers.
2403 (debug_to_remove_breakpoint): Likewise.
2404 (debug_to_region_ok_for_hw_watchpoint): Likewise.
2405 (debug_to_can_accel_watchpoint_condition): Likewise.
2406 (debug_to_stopped_data_address): Likewise.
2407 (debug_to_watchpoint_addr_within_range): Likewise.
2408 (debug_to_insert_hw_breakpoint): Likewise.
2409 (debug_to_remove_hw_breakpoint): Likewise.
2410 (debug_to_insert_watchpoint): Likewise.
2411 (debug_to_remove_watchpoint): Likewise.
2413 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2415 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
2417 (cplus_specific): New struct.
2418 * symtab.c (symbol_set_demangled_name): Updated.
2419 Use cplus_specific for cplus symbols.
2420 (symbol_get_demangled_name): Retrive the name from the cplus_specific
2421 struct for cplus symbols.
2422 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
2423 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
2424 * symtab.c (symbol_init_cplus_specific): New function.
2426 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2428 * symtab.h (symbol_set_demangled_name): New function.
2429 (symbol_get_demangled_name): New function.
2430 * symtab.c (symbol_set_demangled_name): New function.
2431 (symbol_get_demangled_name): New function.
2432 (symbol_init_language_specific): Use demangled_name setter and getter.
2433 (symbol_set_names): Ditto.
2434 (symbol_natural_name): Ditto.
2435 (symbol_demangled_name): Ditto.
2436 * dwarf2read.c (new_symbol): Ditto.
2438 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2440 * symtab.h: Renamed cplus_specific to mangled_lang.
2441 * symtab.c (symbol_init_language_specific): Updated.
2442 (symbol_set_names): Updated.
2443 (symbol_natural_name): Updated.
2444 (symbol_demangled_name): Updated.
2445 * ada-lang.c (ada_decode_symbol): Updated.
2446 * dwarf2read.c (new_symbol): Updated.
2448 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
2450 * valops.c (value_assign): Do not call to value_coerce_to_target.
2451 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
2453 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
2455 * MAINTAINERS: Add myself for write after approval privileges.
2457 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
2459 * c-valprint.c (c_val_print): Add embedded_offset to address in
2460 call to val_print_array_elements.
2462 2010-07-13 Tom Tromey <tromey@redhat.com>
2464 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
2466 2010-07-13 Tom Tromey <tromey@redhat.com>
2468 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
2471 2010-07-13 Tom Tromey <tromey@redhat.com>
2473 * symfile.c (set_initial_language): Update.
2474 (deduce_language_from_filename): Argument type now const.
2475 * symtab.h (find_main_filename): Update.
2476 (deduce_language_from_filename): Update.
2477 * symtab.c (find_main_filename): Make result const.
2478 * dwarf2read.c (dw2_find_symbol_file): Change return type.
2479 * psymtab.c (find_symbol_file_from_partial): Change return type.
2480 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2483 2010-07-13 Tom Tromey <tromey@redhat.com>
2485 * breakpoint.c (save_cmdlist): No longer static.
2486 * gdbcmd.h (save_cmdlist): Declare.
2487 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
2488 OBJF_READNOW on objfile if readnow_symbol_files.
2489 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
2490 (elf_sym_fns_gdb_index): New global.
2491 * dwarf2read.c: Include exceptions.h.
2493 (struct mapped_index): New.
2494 (dwarf2_per_cu_data_ptr): New typedef.
2495 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
2497 (GDB_INDEX_SECTION): New define.
2498 (struct dwarf2_per_cu_quick_data): New.
2499 (struct dwarf2_per_cu_data) <objfile>: New field.
2502 (byte_swap): New function.
2503 (MAYBE_SWAP): New macro.
2504 (INDEX_SUFFIX): New macro.
2505 (dw2_do_instantiate_symtab): New function.
2506 (dw2_instantiate_symtab): Likewise.
2507 (create_cus_from_index): Likewise.
2508 (create_addrmap_from_index): Likewise.
2509 (mapped_index_string_hash): Likewise.
2510 (find_slot_in_mapped_hash): Likewise.
2511 (dwarf2_read_index): Likewise.
2512 (dw2_setup): Likewise.
2513 (dw2_require_line_header): Likewise.
2514 (dw2_require_full_path): Likewise.
2515 (dw2_find_last_source_symtab): Likewise.
2516 (dw2_forget_cached_source_info): Likewise.
2517 (dw2_lookup_symtab): Likewise.
2518 (dw2_lookup_symbol): Likewise.
2519 (dw2_do_expand_symtabs_matching): Likewise.
2520 (dw2_pre_expand_symtabs_matching): Likewise.
2521 (dw2_print_stats): Likewise.
2522 (dw2_dump): Likewise.
2523 (dw2_relocate): Likewise.
2524 (dw2_expand_symtabs_for_function): Likewise.
2525 (dw2_expand_all_symtabs): Likewise.
2526 (dw2_expand_symtabs_with_filename): Likewise.
2527 (dw2_find_symbol_file): Likewise.
2528 (dw2_map_ada_symtabs): Likewise.
2529 (dw2_expand_symtabs_matching): Likewise.
2530 (dw2_find_pc_sect_symtab): Likewise.
2531 (dw2_map_symbol_names): Likewise.
2532 (dw2_map_symbol_filenames): Likewise.
2533 (dw2_has_symbols): Likewise.
2534 (dwarf2_gdb_index_functions): New global.
2535 (dwarf2_initialize_objfile): New function.
2536 (process_psymtab_comp_unit): Update.
2537 (add_partial_subprogram): Likewise.
2538 (dwarf2_psymtab_to_symtab): Likewise.
2539 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
2540 (process_full_comp_unit): Update.
2541 (find_file_and_directory): New function.
2542 (read_file_scope): Use find_file_and_directory.
2543 (dwarf2_per_cu_objfile): Update.
2544 (dwarf2_per_cu_addr_size): Update.
2545 (dwarf2_per_cu_offset_size): Update.
2546 (dwarf2_free_objfile): Free the index, if needed.
2547 (dwarf2_per_objfile_free): Unmap the index, if needed.
2548 (struct strtab_entry): New.
2549 (hash_strtab_entry): New function.
2550 (eq_strtab_entry): Likewise.
2551 (create_strtab): Likewise.
2552 (add_string): Likewise.
2553 (struct symtab_index_entry): New.
2554 (struct mapped_symtab): New.
2555 (hash_symtab_entry): New function.
2556 (eq_symtab_entry): Likewise.
2557 (delete_symtab_entry): Likewise.
2558 (create_index_table): Likewise.
2559 (create_mapped_symtab): Likewise.
2560 (cleanup_mapped_symtab): Likewise.
2561 (find_slot): Likewise.
2562 (hash_expand): Likewise.
2563 (add_index_entry): Likewise.
2564 (add_indices_to_cpool): Likewise.
2565 (write_hash_table): Likewise.
2566 (add_address_entry): Likewise.
2567 (write_psymbols): Likewise.
2568 (write_obstack): Likewise.
2569 (unlink_if_set): Likewise.
2570 (write_psymtabs_to_index): Likewise.
2571 (save_gdb_index_command): Likewise.
2572 (_initialize_dwarf2_read): Install "save gdb-index"
2574 (create_all_comp_units): Initialize 'objfile' field of CU.
2575 (dwarf2_locate_sections): Check for .gdb_index.
2576 * psymtab.h (dwarf2_gdb_index_functions): Declare.
2577 * symfile.h (dwarf2_initialize_objfile): Declare.
2579 2010-07-13 Tom Tromey <tromey@redhat.com>
2581 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
2582 (basic_lookup_transparent_type): Likewise.
2583 * symfile.h (struct quick_symbol_functions)
2584 <pre_expand_symtabs_matching>: New field.
2585 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
2586 (psym_functions): Update.
2588 2010-07-13 Tom Tromey <tromey@redhat.com>
2590 PR breakpoints/8357:
2591 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
2592 * linespec.c (decode_line_1): Update comment. Call decode_label.
2593 (decode_label): New function.
2594 (symbol_found): Handle LOC_LABEL.
2595 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
2596 domain. Call add_symbol_to_list.
2598 2010-07-13 Tom Tromey <tromey@redhat.com>
2600 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
2601 * dwarf2loc.c (find_location_expression): Use
2602 dwarf2_per_cu_text_offset.
2603 (dwarf2_evaluate_loc_desc): Likewise.
2604 (dwarf2_loc_desc_needs_frame): Likewise.
2605 (compile_dwarf_to_ax): Likewise.
2606 (loclist_describe_location): Likewise.
2607 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
2608 (dwarf2_per_cu_objfile): Update comment.
2610 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2612 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
2613 * p-lang.c (pascal_printstr): Likewise.
2615 2010-07-09 Tom Tromey <tromey@redhat.com>
2617 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
2618 'hint' if it is NULL.
2620 2010-07-09 Hui Zhu <teawater@gmail.com>
2622 * source.c (print_source_lines_base): Add check for noprint.
2624 2010-07-08 Joel Brobecker <brobecker@adacore.com>
2626 * python/python-config.py: Resync with Python 2.7 version of this
2629 2010-07-08 Joel Brobecker <brobecker@adacore.com>
2631 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
2633 2010-07-07 Joel Brobecker <brobecker@adacore.com>
2635 * NEWS: Create a new section for the next release branch.
2636 Rename the section of the current branch, now that it has
2639 2010-07-07 Joel Brobecker <brobecker@adacore.com>
2641 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
2642 * version.in: Bump version to 7.2.50.20100707-cvs.
2644 2010-07-07 Tom Tromey <tromey@redhat.com>
2646 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
2647 LOC_COMPUTED symbol.
2648 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
2649 (dwarf2_loc_desc_needs_frame): Likewise.
2650 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
2651 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
2652 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
2653 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
2655 (struct dwarf2_frame_cache) <text_offset>: New field.
2656 (dwarf2_frame_cache): Set new field.
2657 (dwarf2_frame_prev_register): Update.
2658 (dwarf2_frame_sniffer): Update.
2659 (dwarf2_frame_base_sniffer): Update.
2660 (dwarf2_frame_find_fde): Add 'out_offset' argument.
2662 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2663 Thiago Jung Bauermann <bauerman@br.ibm.com>
2665 Support for hw accelerated condition watchpoints in booke powerpc.
2667 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
2668 and move to eval.c. Change callers.
2669 (insert_bp_location): Pass watchpoint condition in
2670 target_insert_watchpoint.
2671 (remove_breakpoint_1) Pass watchpoint condition in
2672 target_remove_watchpoint.
2673 (watchpoint_locations_match): Call
2674 target_can_accel_watchpoint_condition.
2675 * eval.c: Include wrapper.h.
2676 (fetch_subexp_value): Moved from breakpoint.c.
2677 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
2679 (can_use_watchpoint_cond_accel): New function.
2680 (calculate_dvc): Likewise.
2681 (num_memory_accesses): Likewise.
2682 (check_condition): Likewise.
2683 (ppc_linux_can_accel_watchpoint_condition): Likewise
2684 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
2685 check_condition and calculate_dvc.
2686 (ppc_linux_remove_watchpoint): Likewise.
2687 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
2688 ppc_linux_can_accel_watchpoint_condition
2689 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
2691 (debug_to_remove_watchpoint): Likewise.
2692 (debug_to_can_accel_watchpoint_condition): New function.
2693 (update_current_target): Set to_can_accel_watchpoint_condition.
2694 (setup_target_debug): Set to_can_accel_watchpoint_condition.
2695 * target.h: Add opaque declaration for struct expression.
2696 (struct target_ops) <to_insert_watchpoint>,
2697 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
2698 <to_can_accel_watchpoint_condition>: New member.
2699 condition. Update all callers and implementations.
2700 (target_can_accel_watchpoint_condition): New macro.
2701 * value.c (free_value_chain): New function.
2702 * value.h (fetch_subexp_value): New prototype.
2703 (free_value_chain): Likewise.
2705 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
2707 * linux-nat.c (linux_nat_do_thread_registers): Use section size
2708 from gdbarch_core_regset_sections also for .reg if present.
2710 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
2711 section size for .reg.
2712 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
2713 (ppc_linux_vmx_regset_sections): Likewise.
2714 (ppc_linux_fp_regset_sections): Likewise.
2715 (ppc64_linux_vsx_regset_sections): New variable.
2716 (ppc64_linux_vmx_regset_sections): Likewise.
2717 (ppc64_linux_fp_regset_sections): Likewise.
2718 (ppc_linux_init_abi): Install core_regset_section lists appropriate
2719 for current word size.
2721 2010-07-06 Joel Brobecker <brobecker@adacore.com>
2723 * server.c (myresume): Make static.
2725 2010-07-06 Tom Tromey <tromey@redhat.com>
2727 * configure, config.in: Rebuild.
2728 * configure.ac (HAVE_LIBPYTHON2_7): New define.
2729 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
2731 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
2733 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
2736 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
2738 * gdbtypes.h (floatformats_ieee_half): Add declaration.
2739 * gdbtypes.c (floatformats_ieee_half): New variable.
2740 * doublest.c (floatformat_from_length): Set format to
2741 gdbarch_half_format if length matches.
2742 * gdbarch.sh (half_bit): New architecture method.
2743 (half_format): Likewise.
2744 * gdbarch.h: Regenerate.
2745 * gdbarch.c: Likewise.
2747 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2748 Joel Brobecker <brobecker@adacore.com>
2750 Fix re-run of PIE executable, PR shlibs/11776.
2751 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
2752 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
2754 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2755 Joel Brobecker <brobecker@adacore.com>
2757 * auxv.c (memory_xfer_auxv): Update attach comment.
2758 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
2759 svr4_relocate_main_executable.
2760 (svr4_solib_create_inferior_hook): Make the call to
2761 svr4_relocate_main_executable unconditional.
2763 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2764 Joel Brobecker <brobecker@adacore.com>
2766 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
2768 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2769 Joel Brobecker <brobecker@adacore.com>
2771 Fix attaching to PIEs prelinked on the disk after the process was
2773 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
2774 Verify it against bfd_get_arch_size. Try to match arbitrary
2775 displacement for the phdrs comparison.
2777 2010-07-02 Tom Tromey <tromey@redhat.com>
2780 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
2781 value as optimized-out.
2783 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
2784 Thiago Jung Bauermann <bauerman@br.ibm.com>
2786 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
2787 represent?" question in comment. Change comment to a proper sentence.
2789 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
2791 * c-valprint.c (c_val_print): Fix printing of character vectors.
2793 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2795 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
2796 create_breakpoint prototype.
2798 2010-07-01 Pedro Alves <pedro@codesourcery.com>
2800 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
2801 usefulness suggestion of multiple breakpoints at same location.
2803 2010-07-01 Pedro Alves <pedro@codesourcery.com>
2805 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
2807 2010-07-01 Pedro Alves <pedro@codesourcery.com>
2809 * dwarf2loc.c (locexpr_tracepoint_var_ref)
2810 (loclist_tracepoint_var_ref): Handle optimized out values.
2812 2010-07-01 Pedro Alves <pedro@codesourcery.com>
2814 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
2815 unnecessary space in string.
2816 * filesystem.c (_initialize_filesystem): Ditto.
2817 * frame.c (_initialize_frame): Ditto.
2818 * infcmd.c (step_once): Ditto.
2819 * infrun.c (_initialize_infrun): Ditto.
2820 * linux-nat.c (linux_child_follow_fork): Ditto.
2821 * maint.c (maintenance_deprecate): Ditto.
2822 * memattr.c (_initialize_mem): Ditto.
2823 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2824 * monitor.c (monitor_open): Ditto.
2825 * procfs.c (procfs_xfer_memory): Ditto.
2826 * reverse.c (bookmarks_info): Ditto.
2827 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
2828 * stack.c (_initialize_stack): Ditto.
2829 * tracepoint.c (_initialize_tracepoint): Ditto.
2830 * xtensa-tdep.c (xtensa_supply_gregset,
2831 xtensa_regset_from_core_section): Ditto.
2833 2010-07-01 Tom Tromey <tromey@redhat.com>
2835 * value.h (struct lval_funcs) <check_any_valid>: Rename from
2837 * value.c (value_entirely_optimized_out): Invert result. Update
2838 for new function name.
2840 2010-07-01 Pedro Alves <pedro@codesourcery.com>
2842 Static tracepoints support.
2844 * NEWS: Mention new support for static tracepoints.
2845 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
2846 qXfer:statictrace:read.
2847 (New features in the GDB remote stub, GDBserver): Mention static
2848 tracepoints support using an UST based backend.
2849 (New commands): Mention "info static-tracepoint-markers" and
2851 * breakpoint.c (is_marker_spec): New.
2852 (is_tracepoint): Handle static tracepoints.
2853 (validate_commands_for_breakpoint): Static tracepoints can't do
2855 (static_tracepoints_here): New.
2856 (bpstat_what): Handle static tracepoints.
2857 (print_one_breakpoint_location, allocate_bp_location, mention):
2859 (create_breakpoint_sal): Ditto.
2860 (decode_static_tracepoint_spec): New.
2861 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
2862 `type_wanted'. Adjust. Handle static tracepoint marker
2864 (break_command_1): Adjust.
2865 (update_static_tracepoint): New.
2866 (update_breakpoint_locations): Handle static tracepoints.
2867 (breakpoint_re_set_one): Handle static tracepoint marker
2869 (disable_command, enable_command): Handle static tracepoints.
2870 (trace_command, ftrace_command): Adjust.
2871 (strace_command): New.
2872 (create_tracepoint_from_upload): Adjust.
2873 (save_breakpoints): Handle static tracepoints.
2874 (_initialize_breakpoint): Install the "strace" command.
2875 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
2876 (struct breakpoint): New fields static_trace_marker_id and
2877 static_trace_marker_id_idx.
2878 (breakpoints_here_p): Declare.
2879 (create_breakpoint): Adjust.
2880 (static_tracepoints_here): Declare.
2881 * remote.c (struct remote_state) <static_tracepoints>: New field.
2882 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
2883 (remote_static_tracepoint_marker_at): New.
2884 (remote_static_tracepoint_markers_by_strid): New.
2885 (remote_static_tracepoint_feature): New.
2886 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
2887 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
2888 (remote_supports_static_tracepoints): New.
2889 (remote_download_tracepoint): Download static tracepoints.
2890 (init_remote_ops): Install remote_static_tracepoint_marker_at and
2891 remote_static_tracepoint_markers_by_strid.
2892 (_initialize_remote): Install set|show remote static-tracepoints,
2893 and set|show remote read-sdata-object commands.
2894 * target.c (update_current_target): Inherit and default
2895 to_static_tracepoint_marker_at, and
2896 to_static_tracepoint_markers_by_strid.
2897 * target.h (static_tracepoint_marker): Forward declare.
2898 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
2899 (static_tracepoint_marker_p): New typedef.
2900 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
2901 (struct target_ops): New fields to_static_tracepoint_marker_at and
2902 to_static_tracepoint_markers_by_strid.
2903 (target_static_tracepoint_marker_at)
2904 (target_static_tracepoint_markers_by_strid): New.
2905 * tracepoint.c: Include source.h.
2906 (validate_actionline): Handle $_sdata.
2907 (struct collection_list): New field strace_data.
2908 (add_static_trace_data): New.
2909 (clear_collection_list): Clear strace_data.
2910 (stringify_collection_list): Account for a possible static trace
2912 (encode_actions_1): Encode an $_sdata collection.
2913 (parse_tracepoint_definition): Handle static tracepoints.
2914 (parse_static_tracepoint_marker_definition): New.
2915 (release_static_tracepoint_marker): New.
2916 (print_one_static_tracepoint_marker): New.
2917 (info_static_tracepoint_markers_command): New.
2918 (sdata_make_value): New.
2919 (_initialize_tracepoint): Create the $_sdata convenience variable.
2920 Add the "info static-tracepoint-markers" command.
2921 Mention $_sdata in the "collect" command's help output.
2922 * tracepoint.h (struct static_tracepoint_marker): New.
2923 (parse_static_tracepoint_marker_definition)
2924 (release_static_tracepoint_marker): Declare.
2925 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
2926 * python/py-breakpoint.c (bppy_new): Adjust.
2928 2010-06-30 Joel Brobecker <brobecker@adacore.com>
2930 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
2933 2010-06-29 Doug Evans <dje@google.com>
2936 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
2937 DW_AT_external is present.
2941 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
2942 create a symbol for the field and record the value.
2943 (new_symbol): Handle DW_TAG_member.
2944 * gdbtypes.c (field_is_static): Remove FIXME.
2945 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
2946 only ignore LOC_CONST symbols that are enums.
2948 * dwarf2read.c: Remove trailing whitespace.
2950 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
2951 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
2952 (struct main_type, field loc): Delete dwarf_block.
2953 (FIELD_DWARF_BLOCK): Delete.
2954 (SET_FIELD_DWARF_BLOCK): Delete.
2955 (TYPE_FIELD_DWARF_BLOCK): Delete.
2956 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
2959 2010-06-29 Hui Zhu <teawater@gmail.com>
2961 * record.c (set_record_pic_cmdlist,
2962 show_record_pic_cmdlist): New variables.
2963 (set_record_pic_command,
2964 show_record_pic_command): New functions.
2965 (record_pic_function, record_pic_line, record_pic_enum,
2966 set_record_pic_type, record_pic_hide_nofunction,
2967 record_pic_hide_nosource, record_pic_hide_same): New variables.
2968 (record_pic_fputs): New function.
2969 (function_list, node_list, edge_list): New struct.
2970 (function_list, node_list, edge_list): New variables.
2971 (record_pic_cleanups, record_pic_node,
2972 record_pic_edge, cmd_record_pic): New functions.
2973 (_initialize_record): Add new commands for record pic.
2975 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2977 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
2978 ALLOCATE_CPLUS_STRUCT_TYPE.
2980 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
2981 Tom Tromey <tromey@redhat.com>
2982 Thiago Jung Bauermann <bauerman@br.ibm.com>
2984 * value.c (pack_unsigned_long): New function.
2985 (value_from_ulongest): New function.
2986 * value.h (value_from_ulongest): Declare.
2987 * python/python.c (_initialize_python): Call
2988 gdbpy_initialize_thread and gdbpy_initialize_inferior.
2989 * python/python-internal.h: Define thread_object.
2990 (gdbpy_inferiors, gdbpy_selected_thread)
2991 (frame_info_to_frame_object, create_thread_object)
2992 (find_thread_object, find_inferior_object)
2993 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
2994 (gdbpy_is_value_object, get_addr_from_python): Declare.
2995 * python/py-value.c (builtin_type_upylong): Define.
2996 (convert_value_from_python): Add logic for ulongest.
2997 (gdbpy_is_value_object): New function.
2998 * python/py-utils.c (get_addr_from_python): New function.
2999 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
3000 (gdbpy_selected_frame): Use PyObject over frame_info.
3001 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
3003 (SUBDIR_PYTHON_SRCS): Likewise.
3004 (py-inferior.o): New Rule.
3005 (py-infthread.o): New Rule.
3006 * python/py-inferior.c: New File.
3007 * python/py-infthread.c: New File.
3009 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3011 * c-typeprint.c (c_type_print_base): For no fields check include also
3012 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
3013 * dwarf2read.c (struct typedef_field_list)
3014 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
3015 (dwarf2_add_typedef): New.
3016 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
3017 Copy also FI.TYPEDEF_FIELD_LIST.
3018 * gdbtypes.h (struct typedef_field)
3019 (struct cplus_struct_type) <typedef_field, typedef_field_count>
3020 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
3021 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
3023 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3025 * cp-namespace.c (cp_lookup_nested_type): New variable
3026 concatenated_name. Turn the current return condition into a reverse
3027 one. Call also lookup_static_symbol_aux on the constructed qualified
3029 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
3030 other files into a called ...
3031 (lookup_static_symbol_aux): ... new function here.
3032 * symtab.h (lookup_static_symbol_aux): New prototype.
3033 * valops.c (value_maybe_namespace_elt): Call also
3034 lookup_static_symbol_aux if we failed otherwise.
3036 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3038 Fix PR c++/11703 and PR gdb/1448.
3039 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
3042 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3044 Fix modification of cplus_struct_default.
3045 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
3046 Call ALLOCATE_CPLUS_STRUCT_TYPE.
3047 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
3049 2010-06-28 Joel Brobecker <brobecker@adacore.com>
3051 * NEWS: Add entry announcing the python directory.
3053 2010-06-28 Tom Tromey <tromey@redhat.com>
3055 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
3057 2010-06-28 Doug Evans <dje@google.com>
3059 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
3060 All callers updated.
3062 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3064 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
3065 obstack_begin after each obstack_free.
3067 2010-06-27 Doug Evans <dje@google.com>
3069 * value.c (value_static_field): Use `switch' instead of `if'.
3070 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
3072 * valops.c (search_struct_field): Fix typo in error message.
3074 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
3076 * dwarf2expr.c (execute_stack_op): Place preprocessor
3077 directives at the start of the source line.
3079 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
3081 * defs.h (make_command_stats_cleanup): Declare.
3082 (set_display_time): Declare.
3083 (set_display_space): Declare.
3084 * event-top.c (command_handler): Use make_command_stats_cleanup.
3085 * main.c (display_time, display_space): Move definitions to utils.c.
3086 (captured_main): Use make_command_stats_cleanup to get start-up
3088 Use set_display_time and set_display_space for processing OPT_STATISTICS
3090 * maint.c (maintenance_time_display): Use set_display_time.
3091 (maintenance_space_display): Use set_display_space.
3092 * top.c (execute_command): Remove obsolete 'maint time' code.
3093 (command_loop): Use make_command_stats_cleanup.
3094 * utils.c (struct cmd_stats): Structure for storing initial time
3096 (display_time, display_space): Move definitions here from utils.c.
3097 (set_display_time): New function.
3098 (set_display_space): New function.
3099 (make_command_stats_cleanup): New function.
3100 (report_command_stats): New auxiliary function for
3101 make_command_stats_cleanup.
3103 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3105 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
3106 hosts where CORE_ADDR is long long.
3108 2010-06-25 Tom Tromey <tromey@redhat.com>
3111 * python/python.c (execute_gdb_command): Add keywords. Accept
3112 "to_string" argument.
3113 (struct restore_ui_file_closure): New.
3114 (restore_ui_file): New function.
3115 (make_cleanup_restore_ui_file): Likewise.
3116 (GdbMethods) <execute>: Update.
3118 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3120 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
3121 during inferior call stack frame setup.
3123 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
3125 * solib-spu.c: Include "exception.h".
3126 (ocl_program_data_key): New variable.
3127 (append_ocl_sos): New function.
3128 (ocl_enable_break): Likewise.
3129 (spu_current_sos): Call append_ocl_sos.
3130 (spu_solib_loaded): Call ocl_enable_break.
3131 (_initialize_spu_solib): Register ocl_program_data_key.
3133 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3135 * cp-support.c (reset_directive_searched): New function.
3136 (make_symbol_overload_list_using): Prevent recursive calls.
3138 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
3140 * printcmd.c (print_variable_and_value): Print error message on
3143 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3145 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
3147 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
3149 (dwarf_expr_push): Change input type to ULONGEST.
3150 (dwarf_expr_fetch): Change return type to ULONGEST.
3151 (dwarf_expr_fetch_address): Add prototype.
3152 (dwarf2_read_address): Remove prototype.
3153 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
3154 Truncate stack values to ctx->addr_size bytes.
3155 (dwarf_expr_fetch): Change return value to ULONGEST.
3156 (dwarf_expr_fetch_address): New function.
3157 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
3158 when appropriate. Update for struct dwarf_expr_piece changes.
3159 (dwarf2_read_address): Remove.
3160 (unsigned_address_type): Remove.
3161 (signed_address_type): Remove.
3162 (execute_stack_op): Use dwarf_expr_fetch_address instead of
3163 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
3164 values. Perform operations on ULONGEST instead of on GDB values,
3165 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
3166 values and DW_OP_deref results as unsigned integers.
3167 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
3169 (write_pieced_value): Likewise.
3170 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
3171 dwarf_expr_fetch when appropriate.
3172 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
3173 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
3174 instead of dwarf_expr_fetch when appropriate.
3176 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
3178 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
3180 2010-06-24 Joel Brobecker <brobecker@adacore.com>
3182 * python/python.c (_initialize_python): Add new "constant"
3183 PYTHONDIR in gdb module. Insert this path at the head of
3184 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
3185 exec its __init__.py script if it exists in that directory.
3187 2010-06-24 Kevin Buettner <kevinb@redhat.com>
3189 * rx-tdep.c (RX_ACC_REGNUM): Define.
3190 (RX_NUM_REGS): Redefine to 26.
3191 (rx_register_name): Add register "acc". Change order of several
3192 registers. Change name of "vct" register to "fintv" to match RX
3194 (rx_register_type): Add case for RX_ACC_REGNUM.
3196 2010-06-24 Tom Tromey <tromey@redhat.com>
3198 * psymtab.c (lookup_partial_symbol): Mark definition as static.
3200 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3201 Tom Tromey <tromey@redhat.com>
3203 Fix GDB startup on readonly filesystem.
3204 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
3206 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3207 Pedro Alves <pedro@codesourcery.com>
3210 * breakpoint.c (handle_jit_event): New function.
3211 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
3212 jit, err, table and bs_class. New variables shlib_event, jit_event,
3213 this_action and bptype. Change bs_class assignments to this_action
3214 assignments. new unhandled bptype internal error. Move here
3215 shlib_event and jit_event handling from handle_inferior_event.
3216 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
3217 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
3218 BPSTAT_WHAT_CHECK_JIT.
3219 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
3220 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
3221 (handle_inferior_event): Reinitialize frame and gdbarch after
3222 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
3223 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
3224 gdbarch when frame gets reinitialized.
3226 2010-06-24 Hui Zhu <teawater@gmail.com>
3228 * printcmd.c (ui_printf): New function.
3229 (printf_command): Call ui_printf.
3230 (_initialize_printcmd): New command "eval".
3232 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
3234 * infrun.c (handle_inferior_event): Handle presence of single-step
3235 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
3236 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
3237 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
3238 * breakpoint.c (detach_single_step_breakpoints): New function.
3239 (detach_breakpoints): Call it.
3240 (cancel_single_step_breakpoints): New function.
3241 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
3243 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
3244 (spu_gdbarch_init): Install it.
3246 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3248 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
3249 * configure: Regenerate.
3251 2010-06-22 Hui Zhu <teawater@gmail.com>
3253 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
3254 (i386_process_record): Ditto.
3255 * record.c (record_memory_query): New variable.
3256 (_initialize_record): New command "set record memory-query".
3257 * record.h (record_memory_query): New extern.
3259 2010-06-21 Doug Evans <dje@google.com>
3261 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
3262 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
3263 (i386_syscall_p): Change type of lengthp to int.
3264 (i386_displaced_step_fixup): Handle kernels that run one past a
3266 * i386-linux-tdep.c (i386_linux_init_abi): Use
3267 i386_displaced_step_copy_insn instead of
3268 simple_displaced_step_copy_insn.
3270 2010-06-21 Tom Tromey <tromey@redhat.com>
3272 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
3273 (dwarf_type_encoding_name): Likewise.
3275 2010-06-21 Tom Tromey <tromey@redhat.com>
3277 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
3278 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
3279 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
3280 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
3281 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
3282 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
3283 * dwarf2read.c (tag_type_to_type): Create a new error type on
3285 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
3286 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
3288 2010-06-21 Michael Snyder <msnyder@vmware.com>
3290 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
3291 not add_abbrev_prefix_cmd, for "enable breakpoints".
3293 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
3295 * dwarf2loc.c (find_location_expression): Add relocation offset
3296 to base-address-selection entry base addresses. Read addresses
3297 (and offsets) as signed/unsigned integers, depending on the
3298 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
3299 (loclist_describe_location): Likewise.
3300 (disassemble_dwarf_expression): Read DW_OP_addr operand as
3301 unsigned integer. Do not call dwarf2_read_address.
3302 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
3304 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
3306 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
3307 value instead of hard-coded SPU_LS_SIZE.
3308 (spu_software_single_step): Likewise.
3309 * spu-tdep.h (SPU_LS_SIZE): Remove.
3311 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
3313 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
3314 limit on local store memory accesses.
3315 * spu-linux-nat.c (spu_xfer_partial): Likewise.
3316 * spu-tdep.c (spu_lslr): Remove.
3317 (spu_pointer_to_address): Do not truncate addresses.
3318 (spu_integer_to_address): Likewise.
3319 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
3320 * spu-tdep.h: Add comments.
3321 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
3322 (SPU_OVERLAY_LMA): Define.
3324 2010-06-18 Stan Shebs <stan@codesourcery.com>
3326 * osdata.c (get_osdata): Warn separately if target does not report
3328 (info_osdata_command): Allow empty type, report error if target
3329 does not return available types of OS data.
3330 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
3331 types if no annex supplied.
3333 * thread.c (thread_id_make_value): Make a value representing the
3335 (_initialize_thread): Create $_thread.
3337 2010-06-17 Joel Brobecker <brobecker@adacore.com>
3339 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
3340 last local variable declaration. No real code change.
3342 2010-06-17 Tom Tromey <tromey@redhat.com>
3344 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
3345 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
3348 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
3349 Jan Kratochvil <jan.kratochvil@redhat.com>
3351 * breakpoint.c: Include parser-defs.h.
3352 (watchpoint_exp_is_const): New function.
3353 (watch_command_1): Call watchpoint_exp_is_const to check
3354 if the expression is constant.
3356 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
3358 * configure.ac: Check for RDYNAMIC also for cross builds.
3359 * configure: Regenerate.
3361 2010-06-15 Pedro Alves <pedro@codesourcery.com>
3363 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
3364 (SFILES): Remove solib-null.c, add solib-target.c.
3365 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
3366 (ALLDEPFILES): Remove solib-target.c.
3367 * solib-target.c (_initialize_solib_target): Set
3368 current_target_so_ops to solib_target_so_ops if not already set.
3369 * solib-null.c: Delete.
3371 2010-06-14 Pedro Alves <pedro@codesourcery.com>
3373 * NEWS: Mention GDBserver's JIT compilation of tracepoint
3376 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3378 * cp-valprint.c (cp_print_static_field): Members of
3379 dont_print_stat_array_obstack are of type "struct type *".
3380 (_initialize_cp_valprint): Likewise.
3382 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3384 * frame.c (frame_register_unwind): Do not access contents
3385 of "optimized out" unwound register value.
3387 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3389 * ada-lang.h (ada_print_type): Make varstring const.
3390 * ada-typeprint.c (print_func_type): Make name const.
3391 (ada_print_type): Make varstring const.
3392 * c-lang.h (c_print_type): Make varstring const.
3393 * c-typeprint.c (c_print_type): Likewise.
3394 * f-lang.h (f_print_type): Likewise.
3395 * f-typeprint.c (f_print_type): Likewise.
3396 * jv-lang.h (java_print_type): Likewise.
3397 * jv-typeprint.c (java_print_type): Likewise.
3398 * language.c (unk_lang_print_type): Likewise.
3399 * language.h (struct language_defn) <la_print_type>: Likewise.
3400 * m2-lang.h (m2_print_type): Likewise.
3401 * m2-typeprint.c (m2_print_type): Likewise.
3402 * p-lang.h (pascal_print_type): Likewise.
3403 * p-typeprint.c (pascal_print_type): Likewise.
3405 2010-06-11 Stan Shebs <stan@codesourcery.com>
3407 Add per-operation permission flags.
3409 * target.h (struct target_ops): New method to_set_permissions.
3410 (target_set_permissions): New macro.
3411 (target_insert_breakpoint): Change macro to function.
3412 (target_remove_breakpoint): Ditto.
3413 (target_stop): Ditto.
3414 (may_write_registers): Declare.
3415 (may_write_memory): Declare.
3416 (may_insert_breakpoints): Declare.
3417 (may_insert_tracepoints): Declare.
3418 (may_insert_fast_tracepoints): Declare.
3419 (may_stop): Declare.
3420 * target.c (may_write_registers, may_write_registers_1): New globals.
3421 (may_write_memory, may_write_memory_1): New globals.
3422 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
3423 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
3424 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
3426 (may_stop, may_stop_1): New global.
3427 (target_xfer_partial): Test for write permission.
3428 (target_store_registers): Ditto.
3429 (target_insert_breakpoint): New function.
3430 (target_remove_breakpoint): New function.
3431 (target_stop): New function.
3432 (_initialize_targets): Add new set/show variables.
3433 (set_write_memory_permission): New function.
3434 (update_target_permissions): New function.
3435 (set_target_permissions): New function.
3436 (update_current_target): Default to_set_permissions.
3437 (_initialize_targets): Use new globals and setter function.
3438 * tracepoint.c (start_tracing): Test for permission.
3439 * inferior.h (update_observer_mode): Declare.
3440 * infrun.c (non_stop_1): Define earlier.
3441 (observer_mode, observer_mode_1): New globals.
3442 (set_observer_mode, show_observer_mode): New functions.
3443 (update_observer_mode): New function.
3444 (_initialize_infrun): Define "set observer" command.
3445 * remote.c (PACKET_QAllow): New optional packet.
3446 (remote_protocol_features): Add QAllow.
3447 (remote_set_permissions): New function.
3448 (remote_start_remote): Call it.
3449 (init_remote_ops): Add it to target vector.
3450 (_initialize_remote): Add config command for QAllow.
3452 2010-06-11 Tom Tromey <tromey@redhat.com>
3454 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
3455 DW_AT_vtable_elem_location even when GCC extension is seen.
3457 2010-06-11 Tom Tromey <tromey@redhat.com>
3459 PR gdb/9977, PR exp/11636:
3460 * value.h (value_offset): Update.
3461 (struct lval_funcs) <check_validity>: New field.
3462 <copy_closure>: Make argument const.
3463 (value_computed_closure): Update.
3464 (value_contents_for_printing): Declare.
3465 (value_bits_valid): Likewise.
3466 (val_print): Likewise.
3467 (set_value_component_location): Update.
3468 (value_entirely_optimized_out): Declare.
3469 * value.c (value_offset): Argument now const.
3470 (require_not_optimized_out): New function.
3471 (value_contents_for_printing): New function.
3472 (value_contents_all): Call require_not_optimized_out.
3473 (value_contents): Likewise.
3474 (value_bits_valid): New function.
3475 (value_computed_closure): Argument now const.
3476 (set_value_component_location): Make 'whole' argument const.
3477 (value_entirely_optimized_out): New function.
3478 (value_bitsize): Argument now 'const'.
3479 (value_bitpos): Likewise.
3480 (value_type): Likewise.
3481 * valprint.h (val_print_array_elements): Update.
3482 * valprint.c (val_print): Add 'val' argument. Use
3483 valprint_check_validity.
3484 (valprint_check_validity): New function.
3485 (value_check_printable): Use value_entirely_optimized_out.
3486 (common_val_print): Update.
3487 (value_print): Likewise.
3488 (val_print_array_elements): Add 'val' argument.
3489 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
3490 value_bits_valid. Reinit frame cache for lval_computed.
3491 * sh64-tdep.c (sh64_do_register): Update.
3492 * scm-valprint.c (scm_val_print): Add 'val' argument.
3493 * scm-lang.h (scm_val_print): Update.
3494 * python/python.h (apply_val_pretty_printer): Update.
3495 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
3496 argument. Call set_value_component_location.
3497 * printcmd.c (print_scalar_formatted): Update.
3498 * p-valprint.c (pascal_val_print): Add 'val' argument.
3499 (pascal_object_print_value_fields): Likewise.
3500 (pascal_object_print_value): Likewise.
3501 (pascal_object_print_static_field): Update.
3502 * p-lang.h (pascal_val_print): Update.
3503 (pascal_object_print_value_fields): Update.
3504 * mt-tdep.c (mt_registers_info): Update.
3505 * mi/mi-main.c (get_register): Update.
3506 (mi_cmd_data_evaluate_expression): Use common_val_print.
3507 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
3508 (m2_print_unbounded_array): Likewise.
3509 (m2_val_print): Likewise.
3510 * m2-lang.h (m2_val_print): Update.
3511 * language.h (struct language_defn) <la_val_print>: Add 'val'
3513 (LA_VAL_PRINT): Likewise.
3514 * language.c (unk_lang_val_print): Add 'val' argument.
3515 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
3516 (java_val_print): Likewise.
3517 * jv-lang.h (java_val_print): Add 'val' argument.
3518 * infcmd.c (default_print_registers_info): Update.
3519 * f-valprint.c (f77_print_array_1): Add 'val' argument.
3520 (f77_print_array): Likewise.
3521 (f_val_print): Likewise.
3522 * f-lang.h (f_val_print): Add 'val' argument.
3523 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
3525 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
3526 set_value_optimized_out.
3527 (write_pieced_value): Use value_bitsize and value_bitpos.
3528 <default>: Don't exit loop.
3529 (check_pieced_value_validity): New function.
3530 (pieced_value_funcs): Reference check_pieced_value_validity,
3531 check_pieced_value_invalid.
3532 (copy_pieced_value_closure): Update.
3533 (check_pieced_value_bits): New function.
3534 (check_pieced_value_invalid): New function.
3535 * d-valprint.c (dynamic_array_type): Add 'val' argument.
3536 (d_val_print): Likewise.
3537 * d-lang.h (d_val_print): Update.
3538 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
3539 (cp_print_value_fields_rtti): Likewise.
3540 (cp_print_value): Likewise.
3541 (cp_print_static_field): Update.
3542 * c-valprint.c (c_val_print): Add 'val' argument.
3543 (c_value_print): Update.
3544 * c-lang.h (c_val_print): Update.
3545 (cp_print_value_fields): Likewise.
3546 (cp_print_value_fields_rtti): Likewise.
3547 * ada-valprint.c (struct ada_val_print_args): Remove.
3548 (val_print_packed_array_elements): Add 'val' argument.
3549 (ada_val_print): Likewise. Rewrite.
3550 (ada_val_print_stub): Remove.
3551 (ada_val_print_array): Add 'val' argument.
3552 (ada_val_print_1): Likewise.
3553 (print_variant_part): Likewise.
3554 (ada_value_print): Update.
3555 (print_record): Add 'val' argument.
3556 (print_field_values): Likewise.
3557 * ada-lang.h (ada_val_print): Update.
3559 2010-06-11 Tom Tromey <tromey@redhat.com>
3561 * vec.h (VEC_cleanup): New macro.
3562 (DEF_VEC_ALLOC_FUNC_I): Update.
3563 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3564 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3565 * dwarf2loc.c (struct axs_var_loc): Remove.
3566 (unimplemented): New function.
3567 (translate_register): Likewise.
3568 (access_memory): Likewise.
3569 (compile_dwarf_to_ax): Likewise.
3570 (dwarf2_tracepoint_var_loc): Remove.
3571 (dwarf2_tracepoint_var_access): Likewise.
3572 (dwarf2_tracepoint_var_ref): Likewise.
3573 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
3574 (loclist_tracepoint_var_ref): Likewise.
3575 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
3576 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
3577 require_composition. No longer static.
3578 (execute_stack_op): Update.
3579 * ax-gdb.h (trace_kludge): Declare.
3581 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3583 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
3584 (should_be_inserted): Return zero also on NULL OWNER.
3585 (breakpoint_program_space_exit): New OWNER comment.
3586 (insert_breakpoint_locations): Extend comment for OWNER.
3587 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
3588 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
3590 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
3591 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
3592 (bpstat_check_location): New assert on OWNER.
3593 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
3594 and B initializations to the code block. New assert on them.
3595 (print_one_breakpoint_location): New OWNER comment.
3596 (watchpoint_locations_match): Assert on OWNER.
3597 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
3598 initializations to the code block. New assert on OWNER.
3599 (set_breakpoint_location_function): New assert on OWNER.
3600 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
3601 (bp_location_compare, update_global_location_list)
3602 (update_global_location_list): New OWNER comment.
3604 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3606 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
3608 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3610 * config/nm-linux.h (struct target_ops): Remove forward declaration.
3611 (lin_thread_get_thread_signals): Remove prototype.
3612 (GET_THREAD_SIGNALS): Remove.
3613 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
3614 * linux-thread-db.c (check_thread_signals): Directly call
3615 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
3617 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3619 * gregset.h (GDB_FPXREGSET_T): Remove.
3620 (gdb_fpxregset_t): Likewise.
3621 (supply_fpxregset): Remove prototype.
3622 (fill_fpxregset): Likewise.
3623 * i386-linux-nat.c (supply_fpxregset): Remove.
3624 (fill_fpxregset): Likewise.
3625 (fetch_fpxregs): Inline supply_fpxregset call.
3626 (store_fpxregs): Inline fill_fpxregset call.
3628 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
3629 * config/i386/nm-linux.h: Remove file.
3631 2010-06-09 Michael Snyder <msnyder@vmware.com>
3633 * target.c (update_current_target): Fix spelling error in comment.
3634 (target_mourn_inferior): Fix spelling error in error message.
3636 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
3638 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
3639 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
3641 2010-06-08 Michael Snyder <msnyder@vmware.com>
3643 * remote.c (remote_close): Set inferior_ptid to null_ptid.
3645 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3647 * configure.ac <"${have_libpython}" != no>: New workaround of
3649 * configure: Regenerate.
3651 2010-06-08 Hui Zhu <teawater@gmail.com>
3653 * record.c (record_wait): Move signal out of replay code.
3655 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3658 * dwarf2-frame.c (no_dwarf_call): New function.
3659 (execute_stack_op): Set CTX->DWARF_CALL.
3660 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
3661 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
3662 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
3663 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
3664 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
3665 (needs_frame_dwarf_call): New function.
3666 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
3667 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
3668 Update the comment. Move variables die, offset and error call to ...
3669 (follow_die_ref): ... a new function.
3670 (dwarf2_fetch_die_location_block): New function.
3671 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
3673 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3675 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
3676 (dwarf_expr_tls_address): Use per_cu instead of objfile.
3677 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
3678 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
3680 (struct needs_frame_baton): New field per_cu.
3681 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
3682 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
3684 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
3686 * cp-support.c (make_symbol_overload_list_namespace): Only search
3687 static and global blocks.
3688 (make_symbol_overload_list_block): New function.
3689 (make_symbol_overload_list): Separate namespace search from block
3691 (make_symbol_overload_list_qualified): Use
3692 make_symbol_overload_list_block.
3694 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
3696 * value.h: Created oload_search_type enum.
3697 (find_overload_match): Use oload_search_type enum.
3698 * valops.c (find_overload_match): Support combined member and
3700 * eval.c (evaluate_subexp_standard): Calls to
3701 find_overload_match now use oload_search_type enum.
3702 (oload_method_static): Verify index is a proper value.
3703 * valarith.c (value_user_defined_cpp_op): Search for and handle
3704 both member and non-member operators.
3705 (value_user_defined_cpp_op): New function.
3706 (value_user_defined_op): New function.
3707 (value_x_unop): Use value_user_defined_op.
3708 (value_x_binop): Ditto.
3709 * cp-support.c (make_symbol_overload_list_using): Added block
3711 Add check for namespace aliases and imported declarations.
3713 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3715 * breakpoint.h (owner): Extend the comment.
3717 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3719 Clear stale specific bp_location from former whole breakpoint.
3720 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
3722 (free_bp_location): ... here. Rename there the called function to
3723 bpstat_remove_bp_location_callback.
3724 (bpstat_remove_breakpoint_callback): Rename to ...
3725 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
3726 to struct bp_location. Change the called function to
3727 bpstat_remove_bp_location. Create new declaration for the function.
3728 (bpstat_remove_breakpoint): Rename to ...
3729 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
3730 code for the new parameter type.
3732 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
3734 * README: Make version-agnostic.
3736 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3738 Fix duplicate types for single DIE.
3739 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
3741 (read_array_type): Remove type initialization. Recheck get_die_type
3742 after initial die_type. Move set_die_type before set_descriptive_type.
3743 (read_set_type): New variable domain_type. Recheck get_die_type after
3744 initial die_type. Move attr initialization later.
3745 (read_tag_pointer_type, read_tag_reference_type): New variable
3746 target_type. Recheck get_die_type after initial die_type.
3747 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
3748 die_type and die_containing_type.
3749 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
3750 Recheck get_die_type after initial die_type.
3751 (read_subrange_type): Recheck get_die_type after initial die_type.
3752 Move set_die_type before set_descriptive_type.
3753 (set_die_type): Extend the function comment. Call complaint if DIE has
3754 some type already set.
3756 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
3758 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
3759 for current naming of thread groups (iN, not N).
3761 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
3763 * ada-lang.c (ada_operator_length): Constify `struct expression'.
3764 * parse.c (operator_length): Likewise.
3765 (operator_length_standard): Likewise.
3766 * parser-defs.h (operator_length): Likewise.
3767 (operator_length_standard): Likewise.
3768 (struct exp_descriptor <operator_length>): Likewise.
3770 2010-06-04 Doug Evans <dje@google.com>
3772 Add support for enabling/disabling individual pretty-printers.
3773 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
3774 * python/python-internal.h (gdbpy_enabled_cst): Declare.
3775 * python/python.c (gdbpy_enabled_cst): Define.
3776 (_initialize_python): Initialize gdbpy_enabled_cst.
3779 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3781 * breakpoint.c (update_global_location_list): Fix comment typo.
3783 2010-06-04 Hui Zhu <teawater@gmail.com>
3785 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
3787 2010-06-03 Doug Evans <dje@google.com>
3789 * configure.ac: Don't fail if python is unusable when
3790 configured with --with-python=auto.
3791 * configure: Regenerate.
3793 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
3795 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
3797 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
3799 * valprint.h (get_array_bounds): Change low and high parameter types
3801 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
3803 (val_print_array_elements): Adapt to change above.
3804 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
3805 * p-valprint.c (pascal_val_print): Likewise.
3807 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3809 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
3810 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
3813 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3815 Support DW_TAG_module as separate namespaces.
3816 * dwarf2read.c (typename_concat): New parameter physname.
3817 (read_module_type): New function and declaration.
3818 (scan_partial_symbols): Scan also DW_TAG_module children.
3819 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
3820 to typename_concat backward compatible physname value 0.
3821 (partial_die_full_name, read_namespace_type): Pass to typename_concat
3822 backward compatible physname value 0.
3823 (add_partial_module, read_module): Remove FIXME comment.
3824 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
3825 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
3826 DIEs under DW_TAG_module.
3827 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
3828 DW_AT_MIPS_linkage_name first, extend it for language_fortran
3829 && physname and return there instead of just setting NAME. Extend
3830 the main block for language_fortran. Pass physname parameter to the
3831 typename_concat call.
3832 (read_import_statement, read_func_scope, get_scope_pc_bounds)
3833 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
3834 (new_symbol): Fill in cplus_specific.demangled_name if it is still
3835 missing from SYMBOL_SET_NAMES in the language_fortran case.
3836 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
3838 (read_type_die) <DW_TAG_module>: New.
3839 (MAX_SEP_LEN): Increase to 7.
3840 (typename_concat): New parameter physname. New variable lead. Support
3841 also language_fortran.
3842 * f-exp.y (yylex): Consider : also as a symbol name character class.
3843 * f-lang.c: Include cp-support.h.
3844 (f_word_break_characters, f_make_symbol_completion_list): New functions.
3845 (f_language_defn): Use cp_lookup_symbol_nonlocal,
3846 f_word_break_characters and f_make_symbol_completion_list.
3847 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
3848 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
3849 * symtab.c (symbol_init_language_specific): Support language_fortran.
3850 (symbol_find_demangled_name): New comment on language_fortran.
3851 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
3852 for language_fortran.
3853 (lookup_symbol_aux_local): Check imports also for language_fortran.
3854 (default_make_symbol_completion_list): Rename to ...
3855 (default_make_symbol_completion_list_break_on): ... this name. New
3856 parameter break_on, use it.
3857 (default_make_symbol_completion_list): New stub.
3858 * symtab.h (default_make_symbol_completion_list_break_on): New
3861 2010-06-02 Joel Brobecker <brobecker@adacore.com>
3863 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
3866 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3868 * dwarf2read.c (typename_concat): Add const to the variable sep.
3870 2010-06-02 Tom Tromey <tromey@redhat.com>
3872 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
3873 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
3874 type is const. Add 'def' argument. Add missing operators, remove
3876 (decode_locdesc): Update.
3877 (dwarf2_always_disassemble): New global.
3878 (show_dwarf2_always_disassemble): New function.
3879 (_initialize_dwarf2_read): Add always-disassemble.
3880 (dwarf2_per_cu_offset_size): New function.
3881 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
3882 (piece_end_p): New function.
3883 (locexpr_describe_location_piece): Replace 'size' argument with
3884 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
3885 some constants. Remove errors.
3886 (disassemble_dwarf_expression): New function.
3887 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
3888 Add 'offset_size' argument.
3889 (loclist_describe_location): Change output formatting.
3890 * dwarf2expr.h (dwarf_stack_op_name): Declare.
3892 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
3894 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
3895 anonymous type case.
3897 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
3899 * dwarf2read.c (read_subrange_type): Handle missing base type
3900 according to Dwarf-2 specifications.
3902 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
3904 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
3906 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
3907 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
3908 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
3909 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
3910 UNOP_CHMAX, UNOP_CHMIN.
3911 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
3912 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
3913 UNOP_CHMIN>: Remove opcodes.
3915 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
3917 * dwarf2read.c (read_func_scope): Do not complain for
3918 external function if bounds are not found.
3920 2010-06-01 Pedro Alves <pedro@codesourcery.com>
3922 * NEWS: Mention gdbserver fast tracepoints support.
3924 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
3926 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
3928 (windows_set_console_info): New function.
3929 (windows_create_inferior): Call windows_set_console_info
3930 if NEW_CONSOLE is true.
3931 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
3932 (_initialize_loadable): Initialize GetConsoleFontSize and
3933 GetCurrentConsoleFont.
3935 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3937 * Makefile.in (RDYNAMIC): New.
3938 (SFILES): Add proc-service.list.
3939 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
3940 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
3941 * config/arm/linux.mh: Likewise.
3942 * config/i386/linux.mh: Likewise.
3943 * config/i386/linux64.mh: Likewise.
3944 * config/ia64/linux.mh: Likewise.
3945 * config/m32r/linux.mh: Likewise.
3946 * config/m68k/linux.mh: Likewise.
3947 * config/mips/linux.mh: Likewise.
3948 * config/pa/linux.mh: Likewise.
3949 * config/powerpc/linux.mh: Likewise.
3950 * config/powerpc/ppc64-linux.mh: Likewise.
3951 * config/s390/s390.mh: Likewise.
3952 * config/sparc/linux.mh: Likewise.
3953 * config/sparc/linux64.mh: Likewise.
3954 * config/xtensa/linux.mh: Likewise.
3955 * configure.ac: New RDYNAMIC on native host and GCC.
3956 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
3957 * configure: Regenerate.
3958 * proc-service.list: New.
3960 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3962 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
3965 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3967 * linux-nat.c (linux_nat_wait_1): Do not call
3968 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
3969 TARGET_WAITKIND_SIGNALLED.
3971 2010-05-27 Joel Brobecker <brobecker@adacore.com>
3973 * ada-lang.c (ada_inferior_data): New struct.
3974 (ada_inferior_data): New static global.
3975 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
3976 (ada_get_tsd_type): New functions.
3977 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
3978 to look the tsd type up.
3979 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
3980 event. Set ada_inferior_data.
3982 2010-05-27 Pedro Alves <pedro@codesourcery.com>
3984 * remote.c (unpack_varlen_hex): Remove forward declaration.
3985 (remote_console_output): Make static, and add forward declaration.
3986 * remote.h: Drop FIXME comment.
3987 (unpack_varlen_hex): Declare.
3988 (remote_console_output, remote_cisco_objfile_relocate)
3989 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
3990 Delete declarations.
3991 * tracepoint.c: Include "remote.h".
3992 (unpack_varlen_hex): Delete declaration.
3994 2010-05-27 Tom Tromey <tromey@redhat.com>
3996 * dwarf2loc.c (struct piece_closure) <refc>: New field.
3997 (allocate_piece_closure): Initialize refc.
3998 (copy_pieced_value_closure): Use refc.
3999 (free_pieced_value_closure): Likewise.
4001 2010-05-27 Tom Tromey <tromey@redhat.com>
4003 * arm-tdep.c (push_stack_item): 'contents' now const.
4004 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
4005 value_contents_writeable. Introduce new temporary.
4007 2010-05-27 Tom Tromey <tromey@redhat.com>
4009 * findcmd.c (parse_find_args): Use value_contents, not
4012 2010-05-27 Tom Tromey <tromey@redhat.com>
4014 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
4015 const. Use value_contents, not value_contents_writeable.
4017 2010-05-27 Joel Brobecker <brobecker@adacore.com>
4019 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
4020 by call to value_contents.
4022 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
4024 * MAINTAINERS: Add myself for write after approval privileges.
4026 2010-05-26 Doug Evans <dje@google.com>
4028 Allow python to find its files if moved from original location.
4029 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
4030 (GDB_AC_WITH_DIR): Call it.
4031 * configure.ac: Define WITH_PYTHON_PATH if we can find the
4032 python installation directory.
4033 * config.in: Regenerate.
4034 * configure: Regenerate.
4035 * defs.h (python_libdir): Declare.
4036 * main.c (python_libdir): Define.
4037 (captured_main): Initialize python_libdir.
4038 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
4039 call Py_SetProgramName to make sure python can find its libraries
4042 * configure.ac: Try to use python's distutils to fetch compilation
4044 * configure: Regenerate.
4045 * python/python-config.py: New file.
4047 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
4049 * ser-tcp.c (net_open): Check error return from socket() call by its
4050 equality to -1 not by it being negative.
4051 (net_close): Likewise.
4053 2010-05-26 Pedro Alves <pedro@codesourcery.com>
4055 * NEWS: Mention the `qRelocInsn' feature.
4056 * gdbarch.sh (relocate_instruction): New.
4057 * amd64-tdep.c (rip_relative_offset): New.
4058 (append_insns): New.
4059 (amd64_relocate_instruction): New.
4060 (amd64_init_abi): Install it.
4061 * i386-tdep.c (append_insns): New.
4062 (i386_relocate_instruction): New.
4063 (i386_gdbarch_init): Install it.
4064 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
4065 * gdbarch.h, gdbarch.c: Regenerate.
4067 2010-05-26 Tom Tromey <tromey@redhat.com>
4069 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
4070 (struct dwarf2_loclist_baton) <data>: Likewise.
4071 * dwarf2loc.c (find_location_expression): Constify return type.
4072 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
4073 (dwarf2_loc_desc_needs_frame): Likewise.
4074 (loclist_read_variable): Constify.
4075 (loclist_describe_location): Likewise.
4076 (loclist_tracepoint_var_ref): Likewise.
4078 2010-05-25 Tom Tromey <tromey@redhat.com>
4080 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
4081 (dwarf_expr_frame_base_1): Likewise.
4082 (read_pieced_value): Update.
4083 (needs_frame_frame_base): Constify.
4084 (dwarf2_tracepoint_var_loc): Likewise.
4085 (dwarf2_tracepoint_var_access): Likewise.
4086 (locexpr_describe_location_piece): Likewise.
4087 (locexpr_describe_location_1): Likewise.
4088 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
4091 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
4092 (dwarf_expr_eval, read_uleb128, read_sleb128)
4093 (dwarf2_read_address): Update.
4094 * dwarf2expr.c (dwarf_expr_eval): Constify.
4095 (read_uleb128): Likewise.
4096 (read_sleb128): Likewise.
4097 (dwarf2_read_address): Likewise.
4098 (require_composition): Likewise.
4099 (execute_stack_op): Likewise.
4100 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
4102 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
4104 (no_get_frame_base): Constify.
4105 (execute_stack_op): Likewise.
4106 (execute_cfa_program): Likewise.
4107 (read_encoded_value): Likewise.
4109 2010-05-25 Doug Evans <dje@google.com>
4111 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
4113 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
4114 * event-loop.c: ... here.
4115 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
4116 `error' for clarity.
4117 (tui_getc): Pass correct value for `error' parameter to
4118 tui_readline_output.
4120 Add python gdb.GdbError and gdb.string_to_argv.
4121 * NEWS: Document them.
4122 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
4123 the exception is gdb.GdbError. Print a second traceback if there's
4124 an error computing the error message.
4125 (gdbpy_string_to_argv): New function.
4126 * python/py-utils.c (gdbpy_obj_to_string): New function.
4127 (gdbpy_exception_to_string): New function.
4128 * python/python-internal.h (gdbpy_string_to_argv): Declare.
4129 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
4130 (gdbpy_gdberror_exc): Declare.
4131 * python/python.c (gdbpy_gdberror_exc): New global.
4132 (_initialize_python): Initialize gdbpy_gdberror_exc and create
4134 (GdbMethods): Add string_to_argv.
4136 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4138 * windows-nat.c (display_selector): Call GetLastError to give better
4139 failure explanation.
4141 2010-05-24 Pedro Alves <pedro@codesourcery.com>
4143 * config.in: Regenerate.
4145 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4148 * target.c (push_target): Return only void. Remove the return value
4150 * target.h (push_target): Return only void.
4152 2010-05-23 Pedro Alves <pedro@codesourcery.com>
4154 Update gnulib from latest git.
4155 (250b80067c1e1d8faa0c42fb572f721975b929c5)
4157 * gnulib/memcmp.c: Removed.
4158 * gnulib/memchr.valgrind: New.
4159 * gnulib/stddef.in.h: New.
4160 * gnulib/Makefile.am: Updated.
4161 * gnulib/memchr.c: Updated.
4162 * gnulib/memmem.c: Updated.
4163 * gnulib/stdint.in.h: Updated.
4164 * gnulib/str-two-way.h: Updated.
4165 * gnulib/string.in.h: Updated.
4166 * gnulib/wchar.in.h: Updated.
4168 * gnulib/extra/link-warning.h: Removed.
4169 * gnulib/extra/c++defs.h: New.
4170 * gnulib/extra/warn-on-use.h: New.
4171 * gnulib/extra/arg-nonnull.h: Updated.
4173 * gnulib/m4/extensions.m4: Updated.
4174 * gnulib/m4/gnulib-cache.m4: Updated.
4175 * gnulib/m4/gnulib-common.m4: Updated.
4176 * gnulib/m4/gnulib-comp.m4: Updated.
4177 * gnulib/m4/gnulib-tool.m4: Updated.
4178 * gnulib/m4/include_next.m4: Updated.
4179 * gnulib/m4/longlong.m4: Updated.
4180 * gnulib/m4/memchr.m4: Updated.
4181 * gnulib/m4/memmem.m4: Updated.
4182 * gnulib/m4/stdint.m4: Updated.
4183 * gnulib/m4/string_h.m4: Updated.
4184 * gnulib/m4/memcmp.m4: Removed.
4185 * gnulib/m4/onceonly_2_57.m4: Removed.
4186 * gnulib/m4/00gnulib.m4: New.
4187 * gnulib/m4/mmap-anon.m4: New.
4188 * gnulib/m4/multiarch.m4: New.
4189 * gnulib/m4/onceonly.m4: New.
4190 * gnulib/m4/stddef_h.m4: New.
4191 * gnulib/m4/warn-on-use.m4: New.
4192 * gnulib/m4/wchar.m4: Removed.
4193 * gnulib/m4/wchar_h.m4: New.
4194 * gnulib/m4/wchar_t.m4: New.
4195 * gnulib/m4/wint_t.m4: New.
4197 * aclocal.m4: Regenerate.
4198 * config.in: Likewise.
4199 * configure: Likewise.
4200 * gnulib/Makefile.in: Likewise.
4202 2010-05-21 Tom Tromey <tromey@redhat.com>
4204 * dwarf2loc.c (extract_bits_primitive): New function.
4205 (extract_bits): Likewise.
4206 (insert_bits): Likewise.
4207 (copy_bitwise): Likewise.
4208 (read_pieced_value): Do all operations in bits.
4209 (write_pieced_value): Likewise.
4210 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
4211 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
4212 Always use xrealloc to resize piece array.
4213 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
4214 <DW_OP_piece>: Update.
4215 <DW_OP_bit_piece>: New case.
4217 2010-05-21 Tom Tromey <tromey@redhat.com>
4219 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
4220 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
4221 * dwarf2expr.h (enum dwarf_value_location)
4222 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
4223 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
4224 (add_piece): Handle empty piece.
4225 (execute_stack_op) <DW_OP_piece>: Handle
4226 DWARF_VALUE_OPTIMIZED_OUT.
4228 2010-05-21 Tom Tromey <tromey@redhat.com>
4230 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
4231 evaluate_subexp, not evaluate_subexp_with_coercion.
4233 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4235 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
4238 2010-05-21 Tom Tromey <tromey@redhat.com>
4240 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
4242 (write_pieced_value): Likewise.
4244 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4246 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
4247 and DW_TAG_volatile_type.
4248 (new_symbol): Likewise.
4250 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
4252 * p-valprint.c (pascal_val_print): Call get_array_bounds
4253 to obtain the number of elements in an array.
4255 2010-05-19 Doug Evans <dje@google.com>
4257 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
4259 * python.c (source_python_script): Add comment.
4260 (source_python_script_for_objfile): Remove unnecessary call to
4263 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4264 Sergio Durigan Junior <sergiodj@redhat.com>
4267 * parse.c (exp_iterate): Use operator_length wrapper function.
4269 2010-05-18 Michael Snyder <msnyder@vmware.com>
4271 * ada-lang.c: White space.
4272 * ada-typeprint.c: White space.
4273 * ada-valprint.c: White space.
4274 * addrmap.c: White space.
4275 * auxv.c: White space.
4276 * ax-gdb.c: White space.
4278 2010-05-18 Hui Zhu <teawater@gmail.com>
4280 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
4282 (inferior_call_waitpid): Move make_cleanup out of check.
4283 Check the return of waitpid.
4284 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
4286 2010-05-17 Michael Snyder <msnyder@vmware.com>
4288 * tui/tui.c: White space.
4289 * tui/tui-data.c: White space.
4290 * tui/tui-disasm.c: White space.
4291 * tui/tui-file.c: White space.
4292 * tui/tui-interp.c: White space.
4293 * tui/tui-main.c: White space.
4294 * tui/tui-out.c: White space.
4295 * tui/tui-regs.c: White space.
4296 * tui/tui-source.c: White space.
4297 * tui/tui-stack.c: White space.
4298 * tui/tui-win.c: White space.
4299 * tui/tui-winsource.c: White space.
4301 * procfs.c: White space.
4303 * python/py-auto-load.c: White space.
4304 * python/py-block.c: White space.
4305 * python/py-breakpoint.c: White space.
4306 * python/py-cmd.c: White space.
4307 * python/py-function.c: White space.
4308 * python/py-lazy-string.c: White space.
4309 * python/py-objfile.c: White space.
4310 * python/py-param.c: White space.
4311 * python/py-prettyprint.c: White space.
4312 * python/py-progspace.c: White space.
4313 * python/py-symtab.c: White space.
4314 * python/python.c: White space.
4315 * python/py-type.c: White space.
4316 * python/py-utils.c: White space.
4317 * python/py-value.c: White space.
4319 * mi/mi-cmd-break.c: White space.
4320 * mi/mi-cmd-env.c: White space.
4321 * mi/mi-cmds.c: White space.
4322 * mi/mi-cmd-stack.c: White space.
4323 * mi/mi-cmd-var.c: White space.
4324 * mi/mi-console.c: White space.
4325 * mi/mi-getopt.c: White space.
4326 * mi/mi-interp.c: White space.
4327 * mi/mi-main.c: White space.
4328 * mi/mi-out.c: White space.
4329 * mi/mi-parse.c: White space.
4331 * cli/cli-cmds.c: White space.
4332 * cli/cli-decode.c: White space.
4333 * cli/cli-dump.c: White space.
4334 * cli/cli-interp.c: White space.
4335 * cli/cli-logging.c: White space.
4336 * cli/cli-script.c: White space.
4337 * cli/cli-setshow.c: White space.
4339 * valarith.c: White space.
4340 * valops.c: White space.
4341 * valprint.c: White space.
4342 * value.c: White space.
4343 * varobj.c: White space.
4344 * xcoffread.c: White space.
4345 * xml-support.c: White space.
4346 * xml-tdesc.c: White space.
4348 2010-05-17 Andreas Schwab <schwab@redhat.com>
4351 * c-lang.c (c_printstr): Compute real length of NUL terminated
4354 2010-05-17 Joel Brobecker <brobecker@adacore.com>
4356 * parse.c (parse_exp_in_context): When block is not NULL, use
4357 its associated language to parse the expression instead of
4358 the current_language.
4360 2010-05-17 Joel Brobecker <brobecker@adacore.com>
4362 * jv-lang.c (java_lookup_class): Remove commented out code.
4363 (type_from_class): Likewise.
4364 (java_op_print_tab): Remove commented-out elements.
4366 2010-05-17 Joel Brobecker <brobecker@adacore.com>
4368 * ada-lang.c (to_fixed_range_type): The the raw index type as
4369 argument instead of the raw type name. Remove orig_type parameter.
4370 Update calls throughout.
4371 (ada_fixup_array_indexes_type): New function.
4372 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
4373 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
4374 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
4375 Remove name parameter.
4376 (print_array_type): Add call to ada_fixup_array_indexes_type.
4377 Update calls to print_range_type.
4378 (ada_print_type): Update calls to print_range_type.
4380 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
4382 * dwarf2read.c (read_set_type): Set type length if
4383 DW_AT_byte_size attribute is present.
4385 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
4387 * p-valprint.c (pascal_val_print): Handle set type if range limits
4388 are undefined but size is known.
4390 2010-05-17 Pedro Alves <pedro@codesourcery.com>
4392 * procfs.c: Reformat.
4394 2010-05-16 Michael Snyder <msnyder@vmware.com>
4396 * target.c: White space.
4397 * target-descriptions.c: White space.
4398 * target-memory.c: White space.
4399 * thread.c: White space.
4400 * top.c: White space.
4401 * tracepoint.c: White space.
4402 * trad-frame.c: White space.
4403 * tramp-frame.c: White space.
4404 * ui-file.c: White space.
4405 * ui-out.c: White space.
4406 * user-regs.c: White space.
4407 * utils.c: White space.
4409 * scm-exp.c: White space.
4410 * scm-lang.c: White space.
4411 * scm-valprint.c: White space.
4412 * sentinel-frame.c: White space.
4413 * ser-base.c: White space.
4414 * ser-go32.c: White space.
4415 * serial.c: White space.
4416 * ser-mingw.c: White space.
4417 * ser-pipe.c: White space.
4418 * ser-tcp.c: White space.
4419 * ser-unix.c: White space.
4420 * solib.c: White space.
4421 * solib-darwin.c: White space.
4422 * solib-frv.c: White space.
4423 * solib-irix.c: White space.
4424 * solib-osf.c: White space.
4425 * solib-pa64.c: White space.
4426 * solib-som.c: White space.
4427 * solib-spu.c: White space.
4428 * solib-svr4.c: White space.
4429 * solib-target.c: White space.
4430 * source.c: White space.
4431 * stabsread.c: White space.
4432 * stack.c: White space.
4433 * std-regs.c: White space.
4434 * symfile.c: White space.
4435 * symmisc.c: White space.
4436 * symtab.c: White space.
4438 2010-05-16 Michael Snyder <msnyder@vmware.com>
4440 * source.c (_initialize_source): Add "rev" as an abbreviation
4441 for the "reverse-search" command.
4443 2010-05-16 Michael Snyder <msnyder@vmware.com>
4445 * record.c: White space.
4446 * regcache.c: White space.
4447 * reggroups.c: White space.
4448 * remote-fileio.c: White space.
4449 * remote-m32r-sdi.c: White space.
4450 * remote-mips.c: White space.
4451 * remote-sim.c: White space.
4452 * remote.c: White space.
4453 (process_g_packet): Remove orphan braces.
4455 2010-05-15 Michael Snyder <msnyder@vmware.com>
4457 * parse.c: White space.
4458 * p-lang.c: White space.
4459 * posix-hdep.c: White space.
4460 * printcmd.c: White space.
4461 * progspace.c: White space.
4462 * prologue-value.c: White space.
4463 * psymtab.c: White space.
4464 * p-typeprint.c: White space.
4465 * p-valprint.c: White space.
4467 * objc-lang.c: White space.
4468 * objfiles.c: White space.
4469 * observer.c: White space.
4470 * osabi.c: White space.
4471 * osdata.c: White space.
4473 * m2-lang.c: White space.
4474 * m2-valprint.c: White space.
4475 * macrocmd.c: White space.
4476 * macroexp.c: White space.
4477 * macroscope.c: White space.
4478 * macrotab.c: White space.
4479 * main.c: White space.
4480 * maint.c: White space.
4481 * mdebugread.c: White space.
4482 * memattr.c: White space.
4483 * minsyms.c: White space.
4484 * monitor.c: White space.
4486 2010-05-14 Michael Snyder <msnyder@vmware.com>
4488 * jv-lang.c: White space.
4489 * jv-typeprint.c: White space.
4490 * jv-valprint.c: White space.
4491 * language.c: White space.
4492 * libunwind-frame.c: White space.
4493 * linespec.c: White space.
4494 * linux-nat.c: White space.
4495 * linux-record.c: White space.
4496 * linux-thread-db.c: White space.
4498 * infcall.c: White space.
4499 * inf-child.c: White space.
4500 * infcmd.c: White space.
4501 * inferior.c: White space.
4502 * inf-loop.c: White space.
4503 * inflow.c: White space.
4504 * inline-frame.c: White space.
4505 * interps.c: White space.
4507 * gcore.c: White space.
4508 * gdb.c: White space.
4509 * gdbtypes.c: White space.
4510 * gnu-nat.c: White space.
4511 * gnu-v2-abi.c: White space.
4512 * gnu-v3-abi.c: White space.
4514 * findcmd.c: White space.
4515 * findvar.c: White space.
4516 * fork-child.c: White space.
4517 * frame-base.c: White space.
4518 * frame.c: White space.
4519 * frame-unwind.c: White space.
4520 * f-valprint.c: White space.
4522 * elfread.c: White space.
4523 * environ.c: White space.
4524 * eval.c: White space.
4525 * event-loop.c: White space.
4526 * event-top.c: White space.
4527 * exceptions.c: White space.
4528 * exec.c: White space.
4529 * expprint.c: White space.
4531 * dbxread.c: White space.
4532 * dcache.c: White space.
4533 * disasm.c: White space.
4534 * doublest.c: White space.
4535 * dsrec.c: White space.
4536 * dummy-frame.c: White space.
4537 * dwarf2expr.c: White space.
4538 * dwarf2-frame.c: White space.
4539 * dwarf2loc.c: White space.
4540 * dwarf2read.c: White space.
4542 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
4546 * python/py-value.c (valpy_hash): New function.
4547 (value_object_type): Register valpy_hash.
4549 2010-05-14 Hui Zhu <teawater@gmail.com>
4550 Michael Snyder <msnyder@vmware.com>
4552 * linux-fork.c (gdbthread.h): New include.
4553 (fork_info): Add parent_ptid.
4554 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
4556 (delete_checkpoint_command): Call inferior_call_waitpid.
4557 (checkpoint_command): Set parent_ptid.
4559 2010-05-13 Michael Snyder <msnyder@vmware.com>
4561 * dictionary.c: Re-indent to GNU coding standard.
4563 * charset.c: White space.
4564 * c-lang.c: White space.
4565 * cli-out.c: White space.
4566 * coffread.c: White space.
4567 * complaints.c: White space.
4568 * completer.c: White space.
4569 * corefile.c: White space.
4570 * corelow.c: White space.
4571 * cp-abi.c: White space.
4572 * cp-namespace.c: White space.
4573 * cp-support.c: White space.
4574 * cp-valprint.c: White space.
4575 * c-typeprint.c: White space.
4576 * c-valprint.c: White space.
4577 * blockframe.c: White space.
4578 * breakpoint.c: White space.
4579 * buildsym.c: White space.
4580 * blockframe.c: White space.
4581 * bcache.c: White space.
4582 * gdbarch.sh: White space, add blank lines.
4583 * arch-utils.c: Ditto.
4584 * gdbarch.c: Regenerate.
4585 * frame.c: White space, add blank lines.
4586 * stack.c: White space, add blank lines.
4587 (initialize_stack): Remove long-dead code.
4589 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4592 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
4593 (locexpr_read_variable, loclist_read_variable): Update the callers.
4595 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4598 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
4599 Remove check of NULL returned by tag_type_to_type.
4600 (die_containing_type): Remove variable type. Remove type_die variable
4601 initialization. Remove check of NULL returned by tag_type_to_type.
4603 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
4606 * gdbtypes.c (lookup_struct_elt_type): Also lookup
4607 names of unnamed structures or unions.
4609 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
4611 * procfs.c (proc_watchpoint_address): New function.
4612 (procfs_stopped_by_watchpoint): Remove useless check after
4613 find_procinfo_or_die call.
4614 (procfs_stopped_data_address): New function.
4615 (procfs_use_watchpoints): Register new watchpoint related function.
4617 2010-05-11 Tom Tromey <tromey@redhat.com>
4619 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
4621 2010-05-10 Michael Snyder <msnyder@vmware.com>
4623 * utils.c: White space cleanup.
4625 2010-05-10 Tom Tromey <tromey@redhat.com>
4627 * eval.c (ptrmath_type_p): Add 'lang' argument.
4628 (evaluate_subexp_standard): Update.
4629 (evaluate_subexp_with_coercion): Update.
4630 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
4632 2010-05-10 Michael Snyder <msnyder@vmware.com>
4634 * utils.c (do_fclose_cleanup) Restore local variable.
4636 2010-05-09 Doug Evans <dje@google.com>
4638 * record.c (init_record_core_ops): Rename record_core to record-core.
4640 2010-05-08 Joel Brobecker <brobecker@adacore.com>
4642 Implement task switching on pa-hpux.
4643 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
4644 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
4646 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
4648 * valops.c (find_overload_match): Add missing i18n markup.
4650 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
4652 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
4654 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4656 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
4657 list for the obconcat call.
4658 * mdebugread.c (parse_symbol): Likewise.
4659 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
4661 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
4662 New variable ap. Remove variables len and val.
4663 * symfile.h (obconcat): Likewise for the prototype.
4665 2010-05-07 Michael Snyder <msnyder@vmware.com>
4667 * python/python.c (execute_gdb_command): Remove unused variables.
4668 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
4669 * python/py-breakpoint.c (gdbpy_breakpoint_created):
4670 Remove unused variable.
4671 * python/py-cmd.c (cmdpy_function): Remove unused variable.
4672 (cmdpy_completer): Remove unused variable.
4673 * python/py-frame.c (frapy_find_sal): Remove unused variable.
4674 * python/py-function.c (fnpy_call): Remove unused variable.
4675 * python/py-objfile.c (objfile_to_objfile_object):
4676 Remove unused variable.
4677 * python/py-param.c (parmpy_init): Remove unused variable.
4678 * python/py-prettyprint.c (apply_varobj_pretty_printer):
4679 Remove unused variable.
4680 (gdbpy_default_visualizer): Remove unused variable.
4681 * python/py-progspace.c (pspace_to_pspace_object):
4682 Remove unused variable.
4683 * python/py-symtab.c (symtab_and_line_to_sal_object):
4684 Remove unused variable.
4685 * python/py-type.c (typy_template_argument):
4686 Remove unused variable.
4687 * python/py-value.c (valpy_string): Remove unused variable.
4688 (convert_value_from_python): Remove unused variables.
4690 2010-05-07 Michael Snyder <msnyder@vmware.com>
4692 * valops.c (value_cast_pointers): Restore unused variable 'type1',
4693 and use it to compute variable 't1'.
4695 2010-05-07 Joel Brobecker <brobecker@adacore.com>
4697 * ada-lang.c (assign_aggregate): Remove unused variable.
4699 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
4702 * valops.c (find_overload_match): Handle fsym == NULL case.
4703 Add int no_adl argument.
4704 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
4706 Add int no_adl argument.
4707 (find_oload_champ_namespace): Add int no_adl argument.
4708 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
4710 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
4711 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
4712 Evaluate arguments and use them to perform ADL lookup.
4713 Pass no_adl argument to find_overload_match.
4714 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
4715 * cp-support.h: Added prototype for
4716 make_symbol_overload_list_namespace.
4717 * cp-support.c (make_symbol_overload_list_namespace): New function.
4718 (make_symbol_overload_list_adl_namespace): New function.
4719 (make_symbol_overload_list_adl): New function.
4720 (make_symbol_overload_list_using): Moved code to add function to
4721 overload set to make_symbol_overload_list_namespace.
4722 * c-exp.y: create UNKNOWN_CPP_NAME token.
4723 Add parse rule for ADL functions.
4724 (classify_name): Recognize an UNKNOWN_CPP_NAME.
4726 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4728 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
4731 2010-05-07 Joel Brobecker <brobecker@adacore.com>
4733 Implement task switching on solaris targets.
4734 * sol-thread.c (thread_db_find_thread_from_tid)
4735 (sol_get_ada_task_ptid): New functions.
4736 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
4738 2010-05-07 Pedro Alves <pedro@codesourcery.com>
4740 * remote.c (remote_query_supported_append): Use reconcat.
4741 (remote_query_supported): Install a cleanup. Use reconcat.
4743 2010-05-07 Pedro Alves <pedro@codesourcery.com>
4745 * gdbarch.sh (qsupported): Delete.
4746 * gdbarch.h, gdbarch.c: Regenerate.
4747 * remote.c (remote_query_supported): Remove use of
4750 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
4752 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
4755 2010-05-06 Michael Snyder <msnyder@vmware.com>
4757 * xml-support.c (xinclude_start_include): Delete unused variable.
4758 (xml_process_xincludes): Delete unused variable.
4759 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
4760 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
4761 (tdesc_find_arch_register): Delete unused variable.
4762 (tdesc_use_registers): Delete unused variable.
4763 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
4764 * inferior.c (print_inferior): Delete unused variable.
4765 * record.c (record_open_1): Delete unused variable.
4766 (record_restore): Delete unused variable.
4767 (cmd_record_save): Delete unused variable.
4768 * gcore.c (derive_heap_segment): Delete unused variable.
4769 (objfile_find_memory_regions): Use unused variable.
4770 * jit.c (jit_inferior_init): Delete unused variable.
4771 * progspace.c (clone_program_space): Delete unused variable.
4772 (pspace_empty_p): Delete unused variable.
4774 * frame-unwind.c (frame_unwind_find_by_frame):
4775 Delete unused variable.
4776 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
4777 * cp-support.c (mangled_name_to_comp): Delete unused variable.
4778 (method_name_from_physname): Delete unused variable.
4779 (cp_func_name): Delete unused variable.
4780 (cp_validate_operator): Delete unused variable.
4781 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
4782 Delete unused variable.
4783 * trad-frame.c (trad_frame_get_prev_register):
4784 Delete unused variable.
4785 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
4787 * serial.c (serial_for_fd): Delete unused variable.
4788 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
4789 * top.c (execute_command): Delete unused variable.
4790 (init_main): Delete unused variable.
4791 * utils.c (do_fclose_cleanup): Delete unused variable.
4792 (do_all_inferior_continuations): Delete unused variable.
4793 (initialize_utils): Delete unused variable.
4794 (internal_problem_mode): Delete unused global.
4795 * frame.c (get_prev_frame): Delete unused global.
4796 (get_frame_locals_address): Delete unused global.
4797 (get_frame_args_address): Delete unused global.
4799 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
4800 (pascal_type_print_varspec_prefix): Delete unused variable.
4801 * f-typeprint.c (f_type_print_base): Delete unused variable.
4802 (f_type_print_varspec_suffix): Delete unused variable.
4803 * m2-typeprint.c (m2_print_type): Delete unused variable.
4804 (m2_long_set): Delete unused variable.
4805 * ada-valprint.c (ada_val_print_1): Delete unused variable.
4806 * d-valprint.c (dynamic_array_type): Delete unused variable.
4807 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
4808 Delete unused variable.
4809 (f77_create_arrayprint_offset_tbl): Delete unused variable.
4810 * m2-valprint.c (m2_val_print): Delete unused variable.
4812 * ui-out.c (ui_out_field_int): Delete unused variable.
4813 (ui_out_field_fmt_int): Delete unused variable.
4814 * varobj.c (varobj_list_children): Delete unused variable.
4815 (varobj_set_value): Delete unused variable.
4816 (install_new_value_visualizer): Delete unused variable.
4817 (varobj_set_visualizer): Delete unused variable.
4818 (varobj_update): Delete unused variable.
4819 (varobj_editable_p): Delete unused variable.
4820 (c_value_of_root): Delete unused variable.
4821 (cplus_describe_child): Delete unused variable.
4823 * ada-lang.c (add_defn_to_vec): Delete unused variable.
4824 (decode_constrained_packed_array_type): Delete unused variable.
4825 (add_defn_to_vec): Delete unused variable.
4826 (symbol_completion_match): Delete unused variable.
4827 (value_tag_from_contents_and_address): Delete unused variable.
4828 (ada_evaluate_subexp): Delete unused variable.
4829 * c-lang.c (classify_type): Delete unused variable.
4830 * f-lang.c (f_printstr): Delete unused variable.
4831 * objc-lang.c (objc_printstr): Delete unused variable.
4832 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
4833 * jv-lang.c (type_from_class): ifdef unused variable.
4834 (java_class_name_from_physname): Delete unused variable.
4835 * m2-lang.c (m2_printstr): Delete unused variable.
4837 * objfiles.c (objfile_relocate): Delete unused variable.
4838 * maint.c (_initialize_maint_cmds): Delete unused variable.
4839 * demangle.c (_initialize_demangler): Delete unused variable.
4840 * corefile.c (reopen_exec_file): Delete unused variable.
4841 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
4842 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
4844 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
4845 * memattr.c (mem_delete): Delete unused variable.
4846 (invalidate_target_mem_regions): Delete unused variable.
4847 * mem-break.c (default_memory_insert_breakpoint):
4848 Delete unused variable.
4849 * target.c (target_get_osdata): Delete unused variable.
4850 * parse.c (length_of_subexp): Delete unused variable.
4851 (prefixify_subexp): Delete unused variable.
4852 (exp_iterate): Delete unused variable.
4853 * reverse.c (delete_bookmark_command): Delete unused variable.
4855 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
4856 * macroexp.c (gather_arguments): Delete unused variable.
4857 (substitute_args): Delete unused variable.
4858 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
4859 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
4860 (_initialize_gdbarch): Delete unused variable.
4861 * gdbarch.c, gdbarch.h: Regenerate.
4862 * arch-utils.c (initialize_current_architecture):
4863 Delete unused variable.
4864 (_initialize_gdbarch_utils): Delete unused variable.
4865 * gdbtypes.c (make_cv_type): Delete unused variable.
4866 (make_type_with_address_space): Delete unused variable.
4868 * linespec.c (decode_compound): Delete unused variable.
4869 * dictionary.c (iterator_next_hashed): Delete unused variable.
4870 * infcall.c (call_function_by_hand): Delete unused variable.
4871 * infcmd.c (step_1): Delete unused variable.
4872 (registers_info): Delete unused variable.
4873 (attach_command): Delete unused variable.
4874 * infrun.c (follow_exec): Delete unused variable.
4875 (handle_step_into_function_backwards): Delete unused variable.
4876 (_initialize_infrun): Delete unused variable.
4877 * stack.c (parse_frame_specification_1): Delete unused variable.
4878 (frame_info): Delete unused variable.
4879 (backtrace_command_1): Delete unused variable.
4880 (catch_info): Delete unused variable.
4882 * eval.c (evaluate_subexp_standard): Delete unused variable.
4883 * valops.c (value_cast_pointers): Delete unused variable.
4884 (value_dynamic_cast): Delete unused variable.
4885 (value_array): Delete unused variable.
4886 (find_overload_match): Delete unused variable.
4887 * valarith.c (value_subscript): Delete unused variable.
4888 (value_binop): Delete unused variable.
4889 * valprint.c (_initialize_valprint): Delete unused variable.
4890 * printcmd.c (print_command_1): Delete unused variable.
4891 (address_info): Delete unused variable.
4892 (printf_command): Delete unused variable.
4894 * auxv.c (target_auxv_search): Delete unused variable.
4895 * blockframe.c (get_frame_block): Delete unused variable.
4896 * regcache.c (regcache_cpy): Delete unused variable.
4897 (regcache_cpy_no_passthrough): Delete unused variable.
4898 * charset.c (wchar_iterate): Delete unused variable.
4899 (find_charset_names): Delete unused variable.
4900 (_initialize_charset): Delete unused variable.
4901 * disasm.c (do_mixed_source_and_assembly):
4902 Delete unused variable.
4903 * source.c (set_default_source_symtab_and_line):
4904 Delete unused variable.
4905 (set_substitute_path_command): Delete unused variable.
4906 * value.c (preserve_values): Delete unused variable.
4907 (value_from_double): Delete unused variable.
4909 2010-05-05 Michael Snyder <msnyder@vmware.com>
4911 * psymtab.c (lookup_partial_symbol): Delete unused variable.
4912 (find_last_source_symtab_from_partial): Delete unused variable.
4913 * symfile.c (place_section): Delete unused variable.
4914 (default_symfile_offsets): Delete unused variable.
4915 (get_debug_link_info): Delete unused variable.
4916 (find_separate_debug_file_by_debuglink): Delete unused variable.
4917 (add_symbol_file_command): Delete unused variable.
4918 (symfile_find_segment_sections): Delete unused variable.
4919 * symmisc.c (free_symtab): Delete unused variable.
4920 (dump_symtab_1): Delete unused variable.
4921 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
4922 (find_pc_sect_symtab): Delete unused variable.
4923 (skip_prologue_using_lineinfo): Delete unused variable.
4924 (sources_info): Delete unused variable.
4925 (completion_list_add_name): Delete unused variable.
4926 (expand_line_sal): Delete unused variable.
4928 * breakpoint.c (validate_commands_for_breakpoint):
4929 Delete unused variables.
4930 (insert_catchpoint): Delete unused variable.
4931 (update_watchpoint): Delete unused variable.
4932 (insert_bp_location): Delete unused variable.
4933 (insert_breakpoint_locations): Delete unused variable.
4934 (remove_breakpoint_1): Delete unused variable.
4935 (software_breakpoint_inserted_here_p): Delete unused variable.
4936 (watchpoints_triggered): Delete unused variable.
4937 (bpstat_check_watchpoint): Delete unused variable.
4938 (bpstat_stop_status): Delete unused variable.
4939 (print_one_breakpoint_location): Delete unused variable.
4940 (allocate_bp_location): Delete unused variable.
4941 (create_breakpoint): Delete unused variable.
4942 (watch_command_1): Delete unused variable.
4943 (catch_exception_command_1): Delete unused variable.
4944 (catch_ada_exception_command): Delete unused variable.
4945 (delete_breakpoint): Delete unused variable.
4946 (breakpoint_re_set_one): Delete unused variable.
4947 (do_enable_breakpoint): Delete unused variable.
4949 2010-05-06 Pedro Alves <pedro@codesourcery.com>
4951 * amd64-tdep.c: Include disasm.h.
4952 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
4953 (amd64_insn_length): Moved to disasm.c and renamed.
4954 (fixup_riprel): Adjust.
4955 * disasm.c (do_ui_file_delete): New.
4956 (gdb_insn_length): New.
4957 (gdb_buffered_insn_length_fprintf)
4958 (gdb_buffered_insn_length_init_dis)
4959 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
4961 * disasm.h (gdb_insn_length): Declare.
4962 (gdb_buffered_insn_length): Declare.
4964 2010-05-06 Pedro Alves <pedro@codesourcery.com>
4966 * remote.c (clear_threads_parsing_context): New.
4967 (remote_threads_info): Delete unused null_cleanup. Install a
4968 cleanup to clear the threads_parsing_context in case parsing
4971 2010-05-05 Michael Snyder <msnyder@vmware.com>
4973 * c-exp.y (parse_string_or_char): Delete unused variable.
4974 (c_lex): Delete unused variable.
4975 * cp-name-parser.y (cpname_lex): Delete unused variable.
4976 * ada-exp.y (find_primitive_type): Delete unused variable.
4977 (write_var_or_type): Delete unused variable.
4978 * jv-exp.y (java_parse): Delete unused variable.
4979 (push_expression_name): Delete unused variable.
4980 * p-exp.y (pascal_lex): Delete unused variable.
4982 2010-05-05 Pedro Alves <pedro@codesourcery.com>
4984 * remote.c (remote_threads_info): Really revert previous previous
4987 2010-05-05 Michael Snyder <msnyder@vmware.com>
4989 * elfread.c (elf_symtab_read): Delete unused variable.
4990 (find_separate_debug_file_by_buildid): Delete unused variables.
4991 (elf_symfile_read): Delete unused variable.
4993 * coffread.c (coff_symfile_read): Delete unused variables.
4995 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
4996 (read_pe_exported_syms): Delete unused variable.
4998 * stabsread.c (define_symbol): Delete unused variable.
5000 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
5001 (process_psymtab_comp_unit): Delete unused variable.
5002 (dwarf2_build_psymtabs_hard): Delete unused variable.
5003 (load_partial_comp_unit): Delete unused variable.
5004 (create_all_comp_units): Delete unused variable.
5005 (scan_partial_symbols): Delete unused variable.
5006 (add_partial_symbol): Delete unused variable.
5007 (add_partial_namespace): Delete unused variable.
5008 (add_partial_enumeration): Delete unused variable.
5009 (load_full_comp_unit): Delete unused variable.
5010 (process_full_comp_unit): Delete unused variable.
5011 (read_file_scope): Delete unused variable.
5012 (read_type_unit_scope): Delete unused variable.
5013 (process_structure_scope): Delete unused variable.
5014 (process_enumeration_scope): Delete unused variable.
5015 (read_tag_ptr_to_member_type): Delete unused variable.
5016 (read_typedef): Delete unused variable.
5017 (read_partial_die): Delete unused variable.
5018 (decode_locdesc): Delete unused variable.
5019 (zeroed_partial_die): Delete unused global variable.
5021 * tui/tui-interp.c (_initialize_tui_interp):
5022 Delete unused variable.
5023 * tui/tui-regs.c tui_display_registers_from):
5024 Delete unused variable.
5025 (tui_check_register_values): Delete unused variable.
5026 (tui_register_format): Delete unused variable.
5027 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
5028 * tui/tui-windata.c (tui_display_data_from_line):
5029 Delete unused variables.
5030 (tui_vertical_data_scroll): Delete unused variables.
5032 2010-05-05 Michael Snyder <msnyder@vmware.com>
5034 * remote.c (remote_threads_info): Revert questionable part of
5035 the previous change.
5037 2010-05-05 Michael Snyder <msnyder@vmware.com>
5039 * mi/mi-out.c (mi_table_begin): Delete unused variable.
5040 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
5041 (mi_cmd_var_list_children): Delete unused variable.
5042 (varobj_update_one): Delete unused variable.
5043 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
5044 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
5045 Delete unused variable.
5046 (mi_cmd_stack_list_variables): Delete unused variable.
5047 (list_args_or_locals): Delete unused variable.
5048 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
5049 Delete unused variables.
5050 (mi_cmd_file_list_exec_source_files): Delete unused variable.
5051 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
5052 Delete unused variable.
5053 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
5054 (mi_cmd_interpreter_exec): Delete unused variable.
5055 (mi_on_normal_stop): Delete unused variable.
5056 * mi/mi-main.c (run_one_inferior): Delete unused variable.
5057 (print_one_inferior): Delete unused variables.
5058 (mi_execute_command): Delete unused variable.
5059 (mi_cmd_execute): Delete unused variable.
5060 (timestamp): Delete unused variable.
5062 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
5063 (restore_binary_file): Delete unused variable.
5064 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
5065 * cli/cli-script.c (define_command): Delete unused variables.
5066 (recurse_read_control_structure): Delete unused variable.
5067 (script_from_file): Delete unused variable.
5068 * cli/cli-cmds.c (complete_command): Delete unused variable.
5069 (disassemble_command): Delete unused variable.
5071 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
5072 * tracepoint.c (delete_trace_variable_command):
5073 Delete unused variables.
5074 (encode_actions_1): Delete unused variables.
5075 (start_tracing): Delete unused variable.
5076 (trace_status_mi): Delete unused variable.
5077 (tfind_1): Delete unused variable.
5078 (trace_find_pc_command): Delete unused variable.
5079 (trace_find_line_command): Delete unused variables.
5080 (trace_find_range_command): Delete unused variables.
5081 (trace_find_outside_command): Delete unused variables.
5082 (parse_tracepoint_definition): Delete unused variables.
5083 (tfile_fetch_registers): Delete unused variable.
5085 * dcache.c (dcache_init): Delete unused variable.
5086 (dcache_info): Delete unused variable.
5088 * remote.c (remote_threads_info): Delete unused variable.
5089 (process_stop_reply) :Delete unused variable.
5090 (remote_get_trace_status): Delete unused variables.
5092 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
5093 (thread_from_lwp): Delete unused variable.
5094 (enable_thread_event_reporting): Delete unused variable.
5095 (check_for_thread_db): Delete unused variables.
5096 (thread_db_find_new_threads_2): Delete unused variable.
5098 * linux-fork.c (info_checkpoints_command): Delete unused variables.
5099 (checkpoint_command): Delete unused variable.
5100 (linux_fork_context): Delete unused variables.
5102 * linux-nat.c (linux_parent_pid): Delete unused global variable.
5103 (linux_tracefork_child): Delete unused variable.
5104 (linux_child_follow_fork): Delete unused variable.
5105 (linux_nat_detach): Delete unused variable.
5106 (linux_handle_extended_wait): Delete unused variable.
5107 (linux_nat_has_pending_sigint): Delete unused variable.
5108 (linux_nat_find_memory_regions): Delete unused variable.
5109 (linux_nat_make_corefile_notes): Delete unused variables.
5110 (linux_nat_info_proc_cmd): Delete unused variable.
5111 (linux_proc_pending_signals): Delete unused variable.
5112 (linux_nat_stop_lwp): Delete unused variables.
5113 (_initialize_linux_nat): Delete unused variable.
5115 * ser-pipe.c (pipe_ops): Delete unused global variable.
5117 * linux-record.c (record_linux_system_call):
5118 Delete unused variables.
5120 * corelow.c (core_xfer_partial): Delete unused variables.
5122 * solib-svr4.c (find_program_interpreter): Delete unused variable.
5123 (svr4_solib_create_inferior_hook): Add ifdef around
5124 conditionally-used variable declarations.
5126 * solib.c (solib_find): Delete unused variable.
5127 (free_so_symbols): Delete unused variable.
5128 (info_sharedlibrary_command): Delete unused variable.
5129 (reload_shared_libraries_1): Delete unused variable.
5130 (_initialize_solib): Delete unused variable.
5132 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
5133 (i386_collect_xstateregset): Delete unused variable.
5134 * i387-tdep.c (i387_print_float_info): Delete unused variable.
5136 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
5137 Delete unused variable 'type'.
5139 2010-05-05 Joel Brobecker <brobecker@adacore.com>
5141 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
5142 ada-lang.c: Remove comment mentioning these macros.
5143 * m2-exp.y: Delete commented out code.
5145 2010-05-05 Joel Brobecker <brobecker@adacore.com>
5147 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
5149 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
5151 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
5153 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
5154 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
5156 (cleanup_kernel_helper_return): Likewise.
5157 * arm-tdep.c (copy_unmodified): Likewise.
5158 (copy_preload): Likewise.
5159 (copy_copro_load_store): Likewise.
5160 (cleanup_branch): Likewise.
5161 (copy_b_bl_blx): Likewise.
5162 (copy_bx_blx_reg): Likewise.
5163 (copy_alu_imm): Likewise.
5164 (copy_alu_reg): Likewise.
5165 (copy_alu_shifted_reg): Likewise.
5166 (cleanup_load): Likewise.
5167 (cleanup_store): Likewise.
5168 (cleanup_block_load_pc): Likewise.
5169 (cleanup_svc): Likewise.
5170 (copy_undef): Likewise.
5171 (copy_unpred): Likewise.
5172 * remote.c (register_remote_support_xml): Likewise.
5174 2010-05-05 Hui Zhu <teawater@gmail.com>
5176 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
5178 2010-05-04 Mark Kettenis <kettenis@gnu.org>
5180 * remote.c (register_remote_support_xml)
5181 (remote_query_supported_append, remote_query_supported): Add cast
5182 to NULL used as sentinel.
5183 * tracepoint.c (tvariables_info_1): Likewise.
5184 * utils.c (add_internal_problem_command): Likewise.
5186 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5188 * dwarf2loc.c (read_pieced_value, write_pieced_value,
5189 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
5190 registers gracefully.
5192 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5194 * exec.c (print_section_info): Display entry point without arch
5197 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
5200 * printcmd.c (x_command): Only dereference once implicitly for
5203 2010-05-03 Doug Evans <dje@google.com>
5205 * event-loop.c (gdb_timer): Delete unused global.
5206 (create_timer): Update.
5208 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5210 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
5211 CURRENT->DECLARATION case.
5212 * cp-support.h (struct using_direct): Provide extended comment.
5214 2010-05-03 Mark Kettenis <kettenis@gnu.org>
5216 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
5217 HPPABSD_SIZEOF_GREGS.
5218 (HPPAOBSD_SIZEOF_FPREGS): New define.
5219 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
5220 (hppaobsd_supply_fpregset): New function.
5221 (hppaobsd_gregset): Renamed from hppabsd_gregset.
5222 (hppaobsd_fpregset): New variable.
5223 (hppaobsd_regset_from_core_section): Handle floating-point registers.
5224 (_initialize_hppabsd_tdep): Remove spurious blank line.
5226 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5229 * p-valprint.c (pascal_value_print): Always dereference a value with
5230 type code TYPE_CODE_REF.
5232 2010-05-03 Pedro Alves <pedro@codesourcery.com>
5234 * remote.c (remote_notice_signals): New.
5235 (remote_start_remote): In non-stop mode, update the remote end on
5236 which signals it can silently pass.
5237 (init_remote_ops): Install remote_notice_signals.
5239 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5241 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
5242 * command.h (error_no_arg): ... here. Remove NORETURN, change
5243 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5244 * defs.h (NORETURN, ATTR_NORETURN): Remove.
5245 (perror_with_name, verror, error, error_stream, vfatal, fatal)
5246 (internal_verror, internal_error, nomem): Remove NORETURN, change
5247 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5248 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
5249 (throw_vfatal, throw_error): Remove NORETURN.
5250 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
5251 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
5252 (throw_error, deprecated_throw_reason): Remove NORETURN, change
5253 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5254 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
5255 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
5257 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
5258 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
5260 * target.c (tcomplain): Likewise.
5261 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
5263 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
5264 (internal_error, perror_with_name, nomem): Remove NORETURN.
5265 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
5268 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5270 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5271 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
5272 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
5273 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5274 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
5275 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5276 * complaints.h (complaint, internal_complaint): Likewise.
5277 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
5278 (ATTR_FORMAT): Remove.
5279 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
5280 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
5281 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
5282 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
5283 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
5284 (internal_error, internal_vwarning, internal_warning, warning)
5285 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5286 * disasm.c (fprintf_disasm): Likewise.
5287 * exceptions.c (throw_it): Likewise.
5288 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
5289 (throw_error): Likewise.
5290 * language.h (type_error, range_error): Likewise.
5291 * linespec.c (cplusplus_error): Likewise.
5292 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
5293 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
5294 * monitor.c (monitor_debug): Likewise.
5295 * parser-defs.h (parser_fprintf): Likewise.
5296 * serial.h (serial_printf): Likewise.
5297 * tui/tui-hooks.c (tui_query_hook): Likewise.
5298 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
5299 (uo_message): Likewise.
5300 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
5301 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
5303 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
5305 2010-05-02 Pedro Alves <pedro@codesourcery.com>
5307 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
5308 (cli_table_header, cli_begin, cli_end, cli_field_int)
5309 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
5310 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
5311 Delete forward declarations.
5312 (cli_ui_out_impl): Move below the callbacks.
5313 (_initialize_cli_out): Delete.
5315 2010-05-02 Pedro Alves <pedro@codesourcery.com>
5317 * README: Use consistent `GDB' and `GDBserver' spellings.
5319 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5321 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
5323 2010-05-01 Pedro Alves <pedro@codesourcery.com>
5325 * infrun.c (prepare_for_detach): In non-stop, context switch to
5326 the thread that got the event before handling the event.
5328 2010-04-30 Tom Tromey <tromey@redhat.com>
5330 * symtab.c (symbol_set_names): Fix typo.
5332 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5334 * python/py-param.c (parm_constants): Avoid ARI warning
5335 by adding ARI comment.
5336 (parmpy_init): Likewise.
5338 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5340 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
5341 and created type for re-use.
5343 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5345 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
5347 2010-04-29 Doug Evans <dje@google.com>
5349 * ser-base.h (reschedule): Delete prototype.
5350 * ser-base.c (reschedule): Make static.
5352 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5354 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
5355 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
5356 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
5358 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
5361 2010-04-29 Pedro Alves <pedro@codesourcery.com>
5365 * regcache.c (registers_changed): Rename to ...
5366 (registers_changed_ptid): ... this, and only delete register cache
5367 entries matching the ptid filter argument.
5368 (registers_changed): Reimplement on top of registers_changed_ptid.
5369 * regcache.h (registers_changed_ptid): Declare.
5370 * target.c (target_resume): Flush register caches.
5372 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
5373 Tom Tromey <tromey@redhat.com>
5374 Thiago Jung Bauermann <bauerman@br.ibm.com>
5376 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
5377 (SUBDIR_PYTHON_SRCS): Likewise.
5378 (py-parameter.o): New rule.
5379 * python/py-parameter.c: New file.
5380 * python/python-internal.h (gdbpy_initialize_parameter)
5381 (gdbpy_parameter, gdbpy_parameter_value)
5382 (gdbpy_parse_command_name): Declare.
5383 * python/py-cmd.c (parse_command_name): Rename to
5384 gdbpy_parse_command_name.
5385 (gdbpy_parse_command_name): Accept a starting list parameter and
5387 (cmdpy_init): Use gdbpy_parse_command_name.
5388 * python/python.c (parameter_to_python): Rename to
5389 gdbpy_parameter_to_python. Accept enum var_types and value.
5390 (gdbpy_parameter): Use gdbpy_parameter_value.
5391 (_initialize_python): Call gdbpy_initialize_parameters.
5393 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5395 * MAINTAINERS: Add myself for write after approval privileges.
5397 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
5400 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
5401 (COMMON_OBS): Add d-lang.o d-valprint.o.
5402 (HFILES_NO_SRCDIR): Add d-lang.h.
5403 * NEWS: Mention D language support.
5404 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
5405 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
5406 * d-lang.c: New file.
5407 * d-lang.h: New file.
5408 * d-valprint.c: New file.
5409 * defs.h (enum language): Add language_d.
5410 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
5411 * language.c (binop_result_type, integral_type, character_type)
5412 (string_type, boolean_type, structured_type): Add language_d.
5413 * symfile.c (init_filename_language_table): Add language_d.
5414 * symtab.c: Include d-lang.h.
5415 (symbol_init_language_specific, symbol_find_demangled_name)
5416 (symbol_natural_name, lookup_symbol_in_language)
5417 (symbol_demangled_name, symbol_matches_domain): Add language_d.
5419 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5421 * solib-svr4.c (solib_svr4_r_map): Expand function description.
5423 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5425 * symfile.c (init_filename_language_table): Register .dg files
5428 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5430 * gdbtypes.h (struct main_type): Expand comment about target_type
5433 2010-04-27 Pedro Alves <pedro@codesourcery.com>
5434 Tristan Gingold <gingold@adacore.com>
5436 * symfile.c (reread_symbols): Also search for file in libraries.
5439 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5441 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
5442 in terms of configuration.
5444 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5446 * objfiles.c: Include solist.h.
5447 (free_all_objfiles): New variable so. Check stale solist objfiles.
5448 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
5449 and no_shared_libraries.
5451 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5454 * python/py-auto-load.c (source_section_scripts): Remove trailing
5455 new-line in i18n string.
5457 2010-04-26 Doug Evans <dje@google.com>
5459 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
5461 2010-04-26 Tom Tromey <tromey@redhat.com>
5463 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
5466 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
5468 Removal of config/i386/nm-i386sol2.h native configuration file.
5469 * config/i386/nm-i386sol2.h: Remove file.
5470 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
5471 * config/i386/sol2-64.mh: Idem.
5472 * config/djgpp/fnchange.lst: Remove reference to that file.
5473 * Makefile.in (HFILES_NO_SRCDIR): Idem.
5475 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
5477 PR breakpoints/11531.
5478 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
5479 macro definition and related comment.
5480 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
5481 (resume): Remove code and comment related to this macro.
5483 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5485 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
5488 2010-04-24 Pedro Alves <pedro@codesourcery.com>
5490 * defs.h: Adjust comment.
5491 * filesystem.h, filesystem.c: New files.
5492 * Makefile.in (SFILES): Add filesystem.c.
5493 (COMMON_OBS): Add filesystem.o.
5494 * solib.c (solib_find): Handle DOS-based filesystems. Handle
5495 different target and host path flavours.
5496 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
5497 has_dos_based_file_system on the gdbarch.
5498 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
5499 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
5500 * i386-tdep.c (i386_go32_init_abi): Ditto.
5501 * gdbarch.sh (has_dos_based_file_system): New.
5502 * gdbarch.h, gdbarch.c: Regenerate.
5503 * NEWS: Mention improved support for remote targets with DOS-based
5504 filesystems. Mention new `set/show target-file-system-kind'
5507 2010-04-23 Stan Shebs <stan@codesourcery.com>
5509 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
5511 (struct agent_reqs): Remove.
5512 (ax_reg_mask): Declare.
5513 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
5514 (free_agent_expr): Free reg_mask.
5515 (ax_print): Add scope and register mask info.
5516 (ax_reqs): Remove agent_reqs argument, use agent expression
5517 fields, and move part of register mask computation to...
5518 (ax_reg_mask): New function.
5519 * ax-gdb.c (gen_trace_static_fields): Call it.
5520 (gen_traced_pop): Ditto.
5521 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
5522 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
5523 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
5524 (gen_eval_for_expr): Ditto, and require an rvalue.
5525 (agent_command): Call ax_reqs.
5526 (agent_eval_command): Ditto.
5527 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
5528 (validate_action_line): Ditto.
5529 (collect_symbol): Ditto.
5530 (encode_actions_1): Ditto.
5532 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
5533 Paul Pluzhnikov <ppluzhnikov@google.com>
5534 Jan Kratochvil <jan.kratochvil@redhat.com>
5536 Fix deadlock on looped list of loaded shared objects.
5537 * solib-svr4.c (LM_PREV): New function.
5538 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
5539 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
5540 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
5541 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
5543 2010-04-23 Doug Evans <dje@google.com>
5545 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
5547 * configure: Regenerate.
5548 * main.c: #include "python/python.h".
5549 (captured_main): Defer loading auto-loaded scripts until after
5550 local_gdbinit has been sourced.
5551 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
5552 (load_auto_scripts_for_objfile): New function.
5553 (auto_load_new_objfile): Call it.
5554 * python/python.h (gdbpy_global_auto_load): Declare.
5555 (load_auto_scripts_for_objfile): Declare.
5557 Add support for auto-loading scripts from .debug_gdb_scripts section.
5558 * NEWS: Add entry for .debug_gdb_scripts.
5559 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
5560 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
5561 (py-auto-load.o): New rule.
5562 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
5563 * cli/cli-cmds.h (find_and_open_script): Update prototype.
5564 * python/py-auto-load.c: New file.
5565 * python/python-internal.h: #include <stdio.h>.
5566 (set_python_list, show_python_list): Declare.
5567 (gdbpy_initialize_auto_load): Declare.
5568 (source_python_script_for_objfile): Declare.
5569 * python/python.c: Remove #include of observer.h.
5570 (gdbpy_auto_load): Moved to py-auto-load.c.
5571 (GDBPY_AUTO_FILENAME): Ditto.
5572 (gdbpy_new_objfile): Delete.
5573 (source_python_script_for_objfile): New function.
5574 (set_python_list, show_python_list): Make externally visible.
5575 (_initialize_python): Move "auto-load" command to py-auto-load.c
5576 and observer_attach_new_objfile to py-auto-load.c.
5578 2010-04-23 Jerome Guitton <guitton@adacore.com>
5580 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
5581 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
5582 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
5584 (alpha_heuristic_analyze_probing_loop): New function.
5585 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
5586 and handle cases when a stack probe loop is generated.
5587 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
5588 (alpha_mdebug_max_frame_size_exceeded): New function.
5589 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
5590 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
5591 Return 0 when the maximum debuggable frame size has been exceeded.
5593 2010-04-23 Joel Brobecker <brobecker@adacore.com>
5596 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
5598 2010-04-20 Chris Moller <cmoller@redhat.com>
5602 * symtab.c (rbreak_command): Added code to include a filename
5603 specification in the rbreak argument.
5604 * NEWS: Added a brief description of filename-qualified rbreak.
5606 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5608 Fix crashes on dangling display expressions.
5609 * ada-lang.c (ada_operator_check): New function.
5610 (ada_exp_descriptor): Fill-in the field operator_check.
5611 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
5612 * jv-lang.c (exp_descriptor_java): Likewise.
5613 * m2-lang.c (exp_descriptor_modula2): Likewise.
5614 * scm-lang.c (exp_descriptor_scm): Likewise.
5615 * parse.c (exp_descriptor_standard): Likewise.
5616 (operator_check_standard): New function.
5617 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
5618 * parser-defs.h (struct exp_descriptor): New field operator_check.
5619 (operator_check_standard, exp_uses_objfile): New declarations.
5620 * printcmd.c: Remove the inclusion of solib.h.
5621 (display_uses_solib_p): Remove the function.
5622 (clear_dangling_display_expressions): Call lookup_objfile_from_block
5623 and exp_uses_objfile instead of display_uses_solib_p.
5624 * solist.h (struct so_list) <objfile>: New comment.
5625 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
5626 * symtab.h (lookup_objfile_from_block): New declaration.
5627 (struct general_symbol_info) <obj_section>: Extend the comment.
5629 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5630 Thiago Jung Bauermann <bauerman@br.ibm.com>
5632 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
5633 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
5634 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
5635 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
5636 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
5637 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
5638 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
5639 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
5640 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
5641 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
5642 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
5643 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
5644 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
5645 Define, in case <ptrace.h> doesn't provide it.
5646 (booke_debug_info): New variable.
5647 (max_slots_number): Ditto.
5648 (hw_break_tuple): New struct.
5649 (thread_points): Ditto.
5650 (ppc_threads): New variable.
5651 (PPC_DEBUG_CURRENT_VERSION): New define.
5652 (have_ptrace_new_debug_booke): New function.
5653 (ppc_linux_check_watch_resources): Renamed to ...
5654 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
5655 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
5656 (booke_cmp_hw_point): New function.
5657 (booke_find_thread_points_by_tid): Ditto.
5658 (booke_insert_point): Ditto.
5659 (booke_remove_point): Ditto.
5660 (ppc_linux_insert_hw_breakpoint): Ditto.
5661 (ppc_linux_remove_hw_breakpoint): Ditto.
5662 (get_trigger_type): Ditto.
5663 (ppc_linux_insert_watchpoint): Handle BookE processors.
5664 (ppc_linux_remove_watchpoint): Ditto.
5665 (ppc_linux_new_thread): Ditto.
5666 (ppc_linux_thread_exit): New function..
5667 (ppc_linux_stopped_data_address): Handle BookE processors.
5668 (ppc_linux_watchpoint_addr_within_range): Ditto.
5669 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
5670 to_remove_hw_breakpoint fields of the target operations struct.
5671 Add observe for the thread_exit event.
5673 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
5675 * i386-linux-nat.c (regmap): Removed.
5676 (fetch_register): Replace regmap with
5677 i386_linux_gregset_reg_offset.
5678 (store_register): Likewise.
5679 (supply_gregset): Likewise.
5680 (fill_gregset): Likewise.
5682 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
5685 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
5687 2010-04-22 Chris Moller <cmoller@redhat.com>
5689 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
5690 method of popping recursion-detection stack with a method based on
5691 obstack_object_size(). (Similar to the PR9167 patch below, but for
5692 the static array obstack rather than the static member obstack.)
5694 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
5696 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
5697 (_initialize_amd64_linux_nat): Replace
5698 amd64_linux_gregset64_reg_offset with
5699 amd64_linux_gregset_reg_offset.
5701 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
5704 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
5706 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
5709 * stabsread.c (set_length_in_type_chain): New function.
5710 (read_struct_type): Call set_length_in_type_chain function.
5711 (read_enum_type): Idem.
5713 2010-04-21 Stan Shebs <stan@codesourcery.com>
5714 Nathan Sidwell <nathan@codesourcery.com>
5716 * tracepoint.c (trace_save): Open in binary mode.
5718 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
5720 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
5722 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
5723 builtin_char32 fields.
5724 * printcmd.c (decode_format): Set char size to '\0'
5725 for strings unless explicit size is given.
5726 (print_formatted): Correct calculation of NEXT_ADDRESS
5727 for 16 or 32 bit strings.
5728 (do_examine): Do not force byte size for strings.
5729 Use builtin_char16 and builtin_char32 types to display
5730 16 or 32 bit-wide strings.
5731 (x_command): Set LAST_SIZE to 'b' for string type.
5733 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
5736 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5739 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
5740 there is no .reg-xstate section.
5741 (i386_linux_core_read_description): Check XCR0 first.
5743 2010-04-21 Mike Frysinger <vapier@gentoo.org>
5745 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
5748 2010-04-21 Chris Moller <cmoller@redhat.com>
5751 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
5752 method of popping recursion-detection stack with a method based on
5753 obstack_object_size().
5755 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5758 * p-valprint.c (pascal_val_print): Fix default printing of integer
5761 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5763 Fix compilation warning on gcc-4.1.2.
5764 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
5765 local variable`pc' to zero.
5767 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5769 Implement thread support with core files on alpha-tru64.
5770 * dec-thread.c (dec_thread_find_new_threads): New function,
5771 extracted from resync_thread_list.
5772 (resync_thread_list): Add OPS parameter. Replace extracted-out
5773 code by call to dec_thread_find_new_threads.
5774 (dec_thread_wait): Update call to resync_thread_list.
5775 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
5777 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5779 * ada-lang.c (value_pointer): New function.
5780 (make_array_descriptor): Call value_pointer to convert addresses to
5783 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5785 * rs6000-aix-tdep.c: #include exceptions.h.
5786 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
5787 while reading the memory at ADDR, then ADDR cannot be a function
5790 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5792 * ada-typeprint.c (ada_print_typedef): New function.
5793 * ada-lang.h (ada_print_typedef): Add declaration.
5794 * ada-lang.c (ada_language_defn): set la_print_typdef field
5795 to ada_print_typedef.
5797 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5799 * procfs.c (procfs_address_to_host_pointer): Only define when used.
5801 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5803 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
5804 (iterate_over_mappings): Adjust function profile. Add declaration.
5805 (insert_dbx_link_bpt_in_region, info_mappings_callback):
5808 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5810 * procfs.c (solib_mappings_callback): Move function up to avoid
5813 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5815 * procfs.c (find_signalled_thread, find_stop_signal): Move
5816 these functions down to define them only when used.
5818 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5820 * valprint.c (common_val_print): Fix the value before extracting
5822 * ada-lang.c (ada_to_fixed_value): Make this function extern.
5823 * ada-lang.h (ada_to_fixed_value): New function declaration.
5824 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
5825 to avoid code duplication and fix a bug in the handling of
5826 fixed types contents.
5828 2010-04-20 Tom Tromey <tromey@redhat.com>
5830 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
5831 (read_partial_die): Likewise.
5832 (dwarf_attr_name): Likewise.
5834 2010-04-20 Chris Moller <cmoller@redhat.com>
5838 * cp-valprint.c (global): Adding new static array recursion
5840 (cp_print_value_fields, cp_print_static_field): Added new static
5841 array recursion detection code.
5843 2010-04-20 Mark Kettenis <kettenis@gnu.org>
5845 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
5846 general-purpose register set should be 68 instead of 144.
5847 (i386_linux_sse_regset_sections): Likewise.
5848 (i386_linux_avx_regset_sections): Likewise.
5850 2010-04-20 Stan Shebs <stan@codesourcery.com>
5851 Nathan Sidwell <nathan@codesourcery.com>
5853 * dwarf2loc.c (struct axs_var_loc): New struct.
5854 (dwarf2_tracepoint_var_loc): New function.
5855 (dwarf2_tracepoint_var_access): New function.
5856 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
5858 (locexpr_describe_location_piece): New function.
5859 (locexpr_describe_location_1): New function.
5860 (locexpr_describe_location): Call it, update signature.
5861 (loclist_describe_location): Rewrite to loop over locations,
5863 * symtab.h (struct symbol_computed_ops): Add address to
5864 describe_location arguments, return void.
5865 * printcmd.c (address_info): Get context PC, pass to computed
5866 location description.
5867 * tracepoint.c (scope_info): Ditto.
5868 * ax-gdb.c (trace_kludge): Export.
5870 2010-04-20 Tom Tromey <tromey@redhat.com>
5872 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
5873 (struct dwarf2_cie) <segment_size>: New field.
5874 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
5875 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
5877 (read_attribute_value): Handle DW_FORM_flag_present,
5878 DW_FORM_sec_offset, DW_FORM_exprloc.
5879 (dump_die_shallow): Likewise.
5880 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
5881 (dwarf2_const_value): Handle DW_FORM_exprloc.
5882 (attr_form_is_block): Likewise.
5883 (struct line_header) <maximum_ops_per_instruction>: New field.
5884 (dwarf_decode_line_header): Set new field.
5885 (dwarf_decode_lines): Handle new field.
5887 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5889 * f-exp.y: Add new production to recognize the `logical*8' type.
5890 (LOGICAL_S8_KEYWORD): New token.
5891 * f-lang.c (enum f_primitive_types)
5892 <f_primitive_type_logical_s8>: New field.
5893 (f_language_arch_info): Handling `logical*8' type.
5894 (build_fortran_types): Building `logical*8' type.
5895 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
5897 2010-04-19 Doug Evans <dje@google.com>
5899 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
5900 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
5901 (pipe_close): Ditto.
5903 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5905 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
5907 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5909 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
5910 type to void function.
5912 2010-04-19 Stan Shebs <stan@codesourcery.com>
5913 Vladimir Prus <vladimir@codesourcery.com>
5915 * tracepoint.c (tfind_1): Add missing newline, report exit from
5917 * target.c (update_current_target): Make default
5918 to_trace_find return -1.
5920 2010-04-19 Mike Frysinger <vapier@gentoo.org>
5922 * objc-lang.c (find_methods): Move symname check up.
5924 2010-04-19 Pedro Alves <pedro@codesourcery.com>
5926 * ada-lang.c (print_recreate_exception)
5927 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
5928 not "catch unhandled".
5930 2010-04-19 Pedro Alves <pedro@codesourcery.com>
5932 PR breakpoints/8554.
5934 Implement `save-breakpoints'.
5936 * breakpoint.c (save_cmdlist): New.
5937 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
5939 (print_recreate_catch_fork): New.
5940 (catch_fork_breakpoint_ops): Install it.
5941 (print_recreate_catch_vfork): New.
5942 (catch_vfork_breakpoint_ops): Install it.
5943 (print_recreate_catch_syscall): New.
5944 (catch_syscall_breakpoint_ops): Install it.
5945 (print_recreate_catch_exec): New.
5946 (catch_exec_breakpoint_ops): Install it.
5947 (print_recreate_exception_catchpoint): New.
5948 (gnu_v3_exception_catchpoint_ops): Install it.
5949 (save_breakpoints): New, based on tracepoint_save_command, but
5950 handle all breakpoint types.
5951 (save_breakpoints_command): New.
5952 (tracepoint_save_command): Rename to...
5953 (save_tracepoints_command): ... this, and reimplement using
5955 (save_command): New.
5956 (_initialize_breakpoints): Install the "save" command prefix.
5957 Install the "save breakpoints" command. Make "save-tracepoints" a
5958 deprecated alias for "save tracepoints".
5959 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
5960 * ada-lang.c (print_recreate_exception): New.
5961 (print_recreate_catch_exception): New.
5962 (catch_exception_breakpoint_ops): Install it.
5963 (print_recreate_catch_exception_unhandled): New.
5964 (catch_exception_unhandled_breakpoint_ops): Install it.
5965 (print_recreate_catch_assert): New.
5966 (catch_assert_breakpoint_ops): Install it.
5968 * NEWS: Mention the new `save breakpoints' command. Mention the
5969 new `save tracepoints' alias and that `save-tracepoints' is now
5972 2010-04-18 Pedro Alves <pedro@codesourcery.com>
5976 * tui/tui-out.c: Include cli-out.h.
5977 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
5978 (tui_begin, tui_end, tui_field_int, tui_field_skip)
5979 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
5980 (tui_message, tui_wrap_hint, tui_flush): Delete forward
5982 (struct ui_out_data): Rename to...
5983 (struct tui_ui_out_data): ... this. Remove `stream' and
5984 `suppress_output' fields, and inherit cli_ui_out_data.
5985 (tui_out_data): New typedef.
5986 (tui_ui_out_impl): Don't initialize fields staticaly.
5987 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
5988 (tui_begin, tui_end): Delete.
5989 (tui_field_int): Adjust to delegate most work to the base type.
5990 (tui_field_skip): Delete.
5991 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
5992 delegate most work to the base type.
5993 (tui_spaces): Delete.
5994 (tui_text): Adjust to delegate most work to the base type.
5995 (tui_message): Delete.
5996 (tui_wrap_hint): Delete.
5997 (tui_flush): Delete.
5998 (out_field_fmt): Delete.
5999 (field_separator): Delete.
6000 (tui_out_new): Adjust to initialize the base type.
6001 (_initialize_tui_out): Initialize tui_ui_out_impl.
6002 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
6004 (cli_out_data): Adjust.
6005 (cli_ui_out_impl): Make extern.
6006 (cli_table_header, cli_field_int, cli_field_skip): Use
6007 uo_field_string instead of cli_field_string.
6008 (cli_redirect): Adjust to use cli_out_data.
6009 (cli_out_data_ctor): New.
6010 (cli_out_new): Use it.
6011 * cli-out.h (struct ui_file): Remove forward declaration.
6012 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
6013 (cli_ui_out_impl): Declare.
6014 (cli_out_data_ctor): Declare.
6015 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
6016 (uo_field_string): No longer static.
6017 (ui_out_data): Change return type to void pointer.
6018 (ui_out_new): Change `data' parameter type to void pointer.
6019 * ui-out.h (struct ui_out_data): Don't forward declare.
6020 (ui_out_data): Change return type to void pointer.
6021 (ui_out_new): Change `data' parameter type to void pointer.
6022 (uo_field_string): Declare.
6024 2010-04-17 Pedro Alves <pedro@codesourcery.com>
6026 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
6027 instead of always false.
6029 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
6032 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
6035 2010-04-17 Pedro Alves <pedro@codesourcery.com>
6037 * breakpoint.c (watchpoints_triggered): Use
6038 is_hardware_watchpoint.
6039 (watchpoints_triggered): Ditto.
6040 (bpstat_check_location): Use is_watchpoint and
6041 is_hardware_watchpoint.
6042 (bpstat_check_watchpoint): Use is_watchpoint and
6043 is_hardware_watchpoint.
6044 (bpstat_stop_status): Fix comment.
6045 (user_settable_breakpoint): Use is_watchpoint.
6046 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
6047 (disable_watchpoints_before_interactive_call_start): Use
6049 (enable_watchpoints_after_interactive_call_stop): Use
6051 (clear_command): Use is_watchpoint.
6052 (do_enable_breakpoint): Use is_watchpoint.
6054 2010-04-16 Mike Frysinger <vapier@gentoo.org>
6056 * solib-frv.c (enable_break1_done): Delete.
6057 (enable_break2): Do not check enable_break1_done. Move the
6058 enable_break2_done setting and call to
6059 remove_solib_event_breakpoints() to the end. Return without
6060 warning when the contents of _dl_debug_addr are 0.
6061 (enable_break): Do not set enable_break1_done.
6062 (frv_clear_solib): Likewise.
6064 2010-04-16 Kevin Buettner <kevinb@redhat.com>
6066 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
6067 instead of an error if no PLT entry is found. Return a
6068 potentially useful result.
6069 (m32c_m16c_pointer_to_address): Add code to search for function
6070 address when no .plt entry is found.
6072 2010-04-16 Stan Shebs <stan@codesourcery.com>
6074 * tracepoint.c (trace_variable_command): Run a cleanup.
6076 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
6078 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
6080 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
6082 Support for Windows OS Thread Information Block.
6083 * NEWS: Document new feature.
6084 * remote.c (PACKET_qGetTIBAddr): New enum element.
6085 (remote_get_tib_address): New function.
6086 (init_remote_ops): Set to_get_tib_address field
6087 to remote_get_tib_address.
6088 (_initialize_remote): Add add_packet_config_cmd
6089 for PACKET_qGetTIBAddr.
6090 * target.c (update_current_target): Set default value for
6091 new to_get_tib_address field.
6092 * target.h (target_ops): New field to_get_tib_address.
6093 (target_get_tib_address): New macro.
6094 * windows-nat.c (thread_info): Add thread_local_base field.
6095 (windows_add_thread): Add tlb argument of type 'void *'.
6096 (fake_create_process): Adapt windows_add_thread call.
6097 (get_windows_debug_event): Idem.
6098 (windows_get_tib_address): New function.
6099 (init_windows_ops): Set to_get_tib_address field
6100 to remote_get_tib_address.
6101 (_initialize_windows_nat): Replace info_w32_cmdlist
6102 initialization by a call to init_w32_command_list.
6103 (info_w32_command, info_w32_cmdlist): Removed from here...
6104 to windows-tdep.c file.
6105 * windows-tdep.h (info_w32_cmdlist): Declare.
6106 (init_w32_command_list): New external function
6108 * windows-tdep.c: Add several headers.
6109 (info_w32_cmdlist): to here, made global.
6110 (thread_information_32): New struct.
6111 (thread_information_64): New struct.
6112 (TIB_NAME): New char array.
6113 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
6114 (maint_display_all_tib): New static variable.
6115 (windows_get_tlb_type): New function.
6116 (tlb_value_read, tlb_value_write): New functions.
6117 (tlb_value_funcs): New static struct.
6118 (tlb_make_value): New function.
6119 (display_one_tib): New function.
6120 (display_tib): New function.
6121 (show_maint_show_all_tib):New function.
6122 (info_w32_command): Moved from windows-nat.c.
6123 (init_w32_command_list): New function.
6124 (_initialize_windows_tdep): New function.
6125 New "maint set/show show-all-tib" command
6126 New "$_tlb" internal variable.
6128 2010-04-16 Joel Brobecker <brobecker@adacore.com>
6130 * tui/tui-regs.c (tui_display_register): Add comment about
6132 * tui/tui-stack.c (tui_show_locator_content): Ditto.
6134 2010-04-15 Stan Shebs <stan@codesourcery.com>
6136 * frame.c: Include tracepoint.h.
6137 (get_current_frame): Allow a trace frame to be an alternate source
6138 of stack frame data.
6139 * tracepoint.c (tfind_1): Don't try to get current stack frame if
6142 2010-04-15 Pedro Alves <pedro@codesourcery.com>
6144 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
6146 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
6148 2010-04-15 Doug Evans <dje@google.com>
6150 * NEWS: Add entry for python program space support.
6151 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
6152 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
6153 (py-progspace.o): New rule.
6154 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
6156 (find_pretty_printer_from_progspace): New function.
6157 (find_pretty_printer_from_gdb): New function.
6158 (find_pretty_printer): Rewrite.
6159 * python/py-progspace.c: New file.
6160 * python/python-internal.h (program_space): Add forward decl.
6161 (pspace_to_pspace_object, pspy_get_printers): Declare.
6162 (gdbpy_initialize_pspace): Declare.
6163 * python/python.c: #include "progspace.h".
6164 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
6165 (_initialize_python): Call gdbpy_initialize_pspace.
6166 (GdbMethods): Add current_progspace, progspaces.
6168 Add -s option to source command.
6169 * NEWS: Document new option.
6170 * cli/cli-cmds.c (find_and_open_script): Add function comment.
6171 Delete from_tty and cleanupp args. Split filep arg into file and
6172 full_pathp. New arg search_path.
6173 (source_script_from_stream): New function.
6174 (source_script_with_search): New function.
6175 (source_script): Rewrite.
6176 (source_command): Parse "-s" option.
6177 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
6178 * python/python.c (source_python_script): Make file arg a const char *.
6179 Don't call fclose, leave for caller.
6180 * python/python.h (source_python_script): Update.
6182 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6183 Pedro Alves <pedro@codesourcery.com>
6185 Avoid rereading shared libraries that haven't changed.
6187 * solib.c (free_so_symbols): New function, from ...
6188 (free_so): ... here. Call it.
6189 (solib_read_symbols): Don't warn here if symbols have already been
6191 (solib_add): Warn here instead, if a pattern was specified.
6192 (reload_shared_libraries_1): New.
6193 (reload_shared_libraries): Rewrite to not fetch the library list.
6195 2010-04-14 Doug Evans <dje@google.com>
6197 * source.c (openp): Strip DOS drive letter if present before
6198 concatenating string to search path.
6200 2010-04-14 Pedro Alves <pedro@codesourcery.com>
6202 * objfiles.h (gdb_bfd_close_or_warn): Declare.
6203 * objfiles.c (gdb_bfd_close_or_warn): New.
6204 * corelow.c: Include objfiles.h
6205 (core_close): Use gdb_bfd_close_or_warn.
6206 * elfread.c (build_id_verify): Ditto.
6207 * exec.c (exec_close, exec_close_1): Ditto.
6209 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6210 Pedro Alves <pedro@codesourcery.com>
6212 Group errors for many missing shared libraries.
6214 * solist.h (struct so_list): Remove from_tty.
6215 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
6216 (solib_map_sections): Take so_list argument. Return 0 if we
6217 failed to open a BFD. Add target sections here.
6218 (symbol_add_stub): Delete.
6219 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
6220 not from_tty copied from the so_list. Don't warn a second time
6221 for a missing library.
6222 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
6223 add to the section table here. Print out a single warning for all
6225 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
6228 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
6230 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
6231 error/warning messages. Capitalize and use complete sentences.
6232 (blpy_block_syms_iternext): Likewise.
6233 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
6234 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
6235 (frame_info_to_frame_object, frapy_read_var)
6236 (gdbpy_frame_stop_reason_string): Likewise.
6237 * python/py-lazy-string.c (stpy_convert_to_value)
6238 (gdbpy_create_lazy_string_object): Likewise.
6239 * python/py-objfile.c (objfpy_set_printers): Likewise.
6240 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
6241 * python/python.c (parameter_to_python): Likewise.
6242 * python/py-type.c (typy_range, typy_target): Likewise.
6243 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
6244 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
6247 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
6251 * python/py-prettyprint.c (pretty_print_one_value): Test for
6253 (print_string_repr): Test for Py_None. Set flags accordingly.
6254 Return value depending on return type.
6255 (print_children): Take a value indicating whether data was printed
6256 before this function was called. Alter output accordingly.
6257 (apply_val_pretty_printer): Capture return value from
6258 print_string_repr and pass to print_children.
6260 2010-04-13 Mark Kettenis <kettenis@gnu.org>
6263 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
6264 register note sections.
6265 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
6267 (i386_linux_init_abi): Install list of supported register note
6268 sections that matches the target description.
6270 2010-04-13 Pedro Alves <pedro@codesourcery.com>
6272 * remote.c (remote_get_noisy_reply): Don't error out on empty
6274 (remote_start_remote): Update and merge tracepoints and trace
6275 state variables as long as the target supports tracepoints.
6276 (remote_trace_init): Fix prototype.
6277 (remote_download_trace_state_variable): Validate reply.
6278 (remote_trace_set_readonly_regions): Fix prototype.
6279 (remote_trace_start): Fix prototype. Check for empty reply.
6280 (remote_get_trace_status): Small cleanup.
6281 (remote_trace_stop): Fix prototype. Check for empty reply.
6282 (remote_trace_find): Check for empty reply.
6283 (remote_save_trace_data): Validate reply.
6284 (remote_set_disconnected_tracing): Check for empty reply, and
6286 (remote_set_circular_trace_buffer): Ditto.
6288 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
6290 Suppress unused value warning during compilation.
6291 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
6293 * tui/tui-stack.c (tui_show_locator_content): Likewise.
6295 2010-04-12 Stan Shebs <stan@codesourcery.com>
6297 * tracepoint.c (tfile_xfer_partial): Check read result.
6299 2010-04-12 Mike Frysinger <vapier@gentoo.org>
6301 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
6302 * remote-sim.c (gdbsim_files_info): Likewise.
6304 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6306 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
6307 * arm-linux-nat.c (arm_linux_vfp_register_count): New
6309 (fetch_vfp_registers): New function to fetch VFP registers.
6310 (store_vfp_registers): New function to store VFP registers.
6311 (arm_linux_fetch_inferior_registers): Add support for VFP
6313 (arm_linux_store_inferior_registers): Likewise.
6314 (arm_linux_read_description): Likewise.
6315 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
6318 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
6320 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
6322 (amd64_collect_xstateregset): Likewise.
6324 2010-04-09 Stan Shebs <stan@codesourcery.com>
6326 * tracepoint.c (trace_status_mi): Report frames created.
6328 * tracepoint.c (trace_dump_command): Include default-collect
6331 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
6333 * symtab.c (find_function_start_sal): Never return SAL pointing
6334 before function start address, even if line info is missing.
6336 2010-04-09 Pedro Alves <pedro@codesourcery.com>
6338 * NEWS: Mention tracepoints support.
6340 2010-04-09 Pedro Alves <pedro@codesourcery.com>
6342 * tracepoint.c (trace_status_mi): Report disconnected tracing and
6343 circular trace buffer statuses.
6345 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6347 * config/djgpp/fnchange.lst: Fix typo in translations for
6348 symbol-without-target_section.exp and symbol-without-target_section.c.
6350 2010-04-09 Pedro Alves <pedro@codesourcery.com>
6352 * breakpoint.c (condition_command): Pass condition expression to
6353 set_breakpoint_condition stripped from breakpoint number.
6355 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
6356 Thiago Jung Bauermann <bauerman@br.ibm.com>
6357 Tom Tromey <tromey@redhat.com>
6359 * breakpoint.c (condition_command): Simplify. Move condition
6361 (set_breakpoint_condition): ... here. New function.
6362 * breakpoint.h (set_breakpoint_condition): Declare.
6363 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
6364 (SUBDIR_PYTHON_SRCS): Likewise.
6365 (py-breakpoint.o): New rule.
6366 * python/py-breakpoint.c: New file.
6367 * python/python-internal.h (gdbpy_breakpoints)
6368 (gdbpy_initialize_breakpoints): Declare.
6369 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
6371 2010-04-09 Pedro Alves <pedro@codesourcery.com>
6373 * regformats/regdat.sh: Include server.h. Don't include
6376 2010-04-08 Stan Shebs <stan@codesourcery.com>
6377 Pedro Alves <pedro@codesourcery.com>
6379 * tracepoint.h (struct trace_status): New fields disconnected_tracing
6380 and circular_buffer.
6381 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
6382 * tracepoint.c (trace_status_command): Display target's status for
6383 disconnected tracing and circular buffer.
6384 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
6385 query for non-disconnected-tracing case, remove the stop_tracing
6387 (tfile_open): Clear disconnected and circular buffer status.
6388 (trace_save): Save disconnected and circular buffer status.
6389 (parse_trace_status): Parse disconnected and circular buffer status,
6390 also recognize disconnected as a stop reason.
6391 * remote.c (remote_set_disconnected_tracing): Only set
6392 QTDisconnected if the remote end supports disconnected tracing.
6393 Warn otherwise, if trying to enable disconnected tracing.
6394 * infcmd.c (detach_command): Update disconnect_tracing call.
6395 * cli/cli-cmds.c (quit_command): Ditto.
6397 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6399 * i387-tdep.c (i387_collect_xsave): Replace abort with
6402 2010-04-08 Stan Shebs <stan@codesourcery.com>
6404 * breakpoint.c (default_collect_info): New function.
6405 (breakpoints_info): Call it.
6406 (maintenance_info_breakpoints): Ditto.
6407 (tracepoints_info): Ditto.
6409 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6411 * i387-tdep.c (i387_collect_xsave): Re-indent.
6413 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6415 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
6416 if HAVE_PTRACE_GETFPXREGS is defined.
6417 (i386_linux_read_description): Set have_ptrace_getfpxregs and
6418 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
6420 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
6421 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
6422 if .reg-xfp section doesn't exist.
6423 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
6425 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
6427 * i386-tdep.c: Include "features/i386/i386-mmx.c".
6428 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
6429 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
6430 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
6431 (i386_gdbarch_init): Update comments.
6432 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
6434 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
6436 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
6438 * features/Makefile (i386/i386-mmx-expedite): New.
6439 (i386/i386-mmx-linux-expedite): Likewise.
6440 ($(outdir)/i386/i386-mmx.dat): Likewise.
6441 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
6443 * features/i386/i386-mmx-linux.c: New.
6444 * features/i386/i386-mmx-linux.xml: Likewise.
6445 * features/i386/i386-mmx.c: Likewise.
6446 * features/i386/i386-mmx.xml: Likewise.
6447 * regformats/i386/i386-mmx-linux.dat: Likewise.
6448 * regformats/i386/i386-mmx.dat: Likewise.
6450 * features/Makefile (WHICH): Add i386/i386-mmx and
6451 i386/i386-mmx-linux.
6453 2010-04-08 Doug Evans <dje@google.com>
6455 * source.c (openp): Skip $cdir in PATH.
6457 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
6460 * python/py-lazy-string.c (stpy_convert_to_value): Check for
6462 (gdbpy_create_lazy_string_object): Allow strings with a NULL
6463 address and a zero length.
6465 2010-04-08 Hui Zhu <teawater@gmail.com>
6467 * i386-tdep.c (i386_process_record): Add support for insn
6470 2010-04-07 Doug Evans <dje@google.com>
6472 * python/python.c (source_python_script): Use ensure_python_env
6473 to prepare environment for script.
6475 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6477 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
6478 <sys/uio.h> and "i386-xstate.h".
6479 (PTRACE_GETREGSET): New.
6480 (PTRACE_SETREGSET): Likewise.
6481 (have_ptrace_getregset): Likewise.
6482 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
6484 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
6486 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
6487 (amd64_linux_store_inferior_registers): Likewise.
6488 (amd64_linux_read_description): Check and enable AVX target
6491 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
6492 and "features/i386/amd64-avx-linux.c".
6493 (amd64_linux_regset_sections): New.
6494 (amd64_linux_core_read_description): Check and enable AVX
6496 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
6497 set_gdbarch_core_regset_sections.
6498 (_initialize_amd64_linux_tdep): Call
6499 initialize_tdesc_amd64_avx_linux.
6501 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
6502 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
6503 (tdesc_amd64_avx_linux): New.
6504 (amd64_linux_update_xstateregset): Likewise.
6506 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
6507 (amd64_ymm_names): New.
6508 (amd64_ymmh_names): Likewise.
6509 (amd64_register_name): Likewise.
6510 (amd64_supply_xstateregset): Likewise.
6511 (amd64_collect_xstateregset): Likewise.
6512 (amd64_supply_xsave): Likewise.
6513 (amd64_collect_xsave): Likewise.
6514 (AMD64_NUM_REGS): Removed.
6515 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
6516 %xmmN if AVX is available.
6517 (amd64_pseudo_register_name): Support pseudo YMM registers.
6518 (amd64_regset_from_core_section): Support .reg-xstate section.
6519 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
6520 and ymm0h_regnum. Call set_gdbarch_register_name.
6521 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
6523 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
6524 AMD64_YMM15H_REGNUM.
6525 (AMD64_NUM_REGS): New.
6526 (amd64_supply_xsave): Likewise.
6527 (amd64_collect_xsave): Likewise.
6528 (amd64_register_name): Removed.
6529 (amd64_register_type): Likewise.
6531 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6533 * i387-tdep.c: Include "i386-xstate.h".
6534 (XSAVE_XSTATE_BV_ADDR): New.
6535 (xsave_avxh_offset): Likewise.
6536 (XSAVE_AVXH_ADDR): Likewise.
6537 (i387_supply_xsave): Likewise.
6538 (i387_collect_xsave): Likewise.
6540 * i387-tdep.h (I387_NUM_YMM_REGS): New.
6541 (I387_YMM0H_REGNUM): Likewise.
6542 (I387_YMMENDH_REGNUM): Likewise.
6543 (i387_supply_xsave): Likewise.
6544 (i387_collect_xsave): Likewise.
6546 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6548 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
6549 <sys/uio.h> and "i386-xstate.h".
6550 (PTRACE_GETREGSET): New.
6551 (PTRACE_SETREGSET): Likewise.
6552 (fetch_xstateregs): Likewise.
6553 (store_xstateregs): Likewise.
6554 (GETXSTATEREGS_SUPPLIES): Likewise.
6555 (regmap): Include 8 upper YMM registers.
6556 (i386_linux_fetch_inferior_registers): Support XSAVE extended
6558 (i386_linux_store_inferior_registers): Likewise.
6559 (i386_linux_read_description): Check and enable AVX target
6562 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
6563 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
6564 (i386_linux_regset_sections): Add ".reg-xstate".
6565 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
6566 (i386_linux_core_read_xcr0): New.
6567 (i386_linux_core_read_description): Check and enable AVX target
6569 (i386_linux_init_abi): Set xsave_xcr0_offset.
6570 (_initialize_i386_linux_tdep): Call
6571 initialize_tdesc_i386_avx_linux.
6573 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
6574 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
6575 (i386_linux_core_read_xcr0): New.
6576 (tdesc_i386_avx_linux): Likewise.
6577 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
6579 * i386-tdep.c: Include "i386-xstate.h" and
6580 "features/i386/i386-avx.c".
6581 (i386_ymm_names): New.
6582 (i386_ymmh_names): Likewise.
6583 (i386_ymmh_regnum_p): Likewise.
6584 (i386_ymm_regnum_p): Likewise.
6585 (i386_xmm_regnum_p): Likewise.
6586 (i386_register_name): Likewise.
6587 (i386_ymm_type): Likewise.
6588 (i386_supply_xstateregset): Likewise.
6589 (i386_collect_xstateregset): Likewise.
6590 (i386_sse_regnum_p): Removed.
6591 (i386_pseudo_register_name): Support pseudo YMM registers.
6592 (i386_pseudo_register_type): Likewise.
6593 (i386_pseudo_register_read): Likewise.
6594 (i386_pseudo_register_write): Likewise.
6595 (i386_dbx_reg_to_regnum): Return %ymmN register number for
6596 %xmmN if AVX is available.
6597 (i386_regset_from_core_section): Support .reg-xstate section.
6598 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
6599 (i386_process_record): Replace i386_sse_regnum_p with
6601 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
6602 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
6603 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
6604 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
6605 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
6606 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
6608 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
6610 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
6611 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
6613 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
6614 (I386_AVX_NUM_REGS): New.
6615 (i386_xmm_regnum_p): Likewise.
6616 (i386_ymm_regnum_p): Likewise.
6617 (i386_ymmh_regnum_p): Likewise.
6619 * common/i386-xstate.h: New.
6621 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6623 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
6625 * features/Makefile (WHICH): Add i386/i386-avx,
6626 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
6627 (i386/i386-avx-expedite): New.
6628 (i386/i386-avx-linux-expedite): Likewise.
6629 (i386/x86-64-avx-expedite):Likewise.
6630 (i386/x86-64-avx-linux-expedite): Likewise.
6631 ($(outdir)/i386/i386-avx.dat): New dependency.
6632 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
6633 ($(outdir)/i386/x86-avx-64.dat): Likewise.
6634 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
6636 * features/i386/32bit-avx.xml: New.
6637 * features/i386/64bit-avx.xml: Likewise.
6638 * features/i386/i386-avx-linux.c: Likewise.
6639 * features/i386/i386-avx-linux.xml: Likewise.
6640 * features/i386/i386-avx.c: Likewise.
6641 * features/i386/i386-avx.xml: Likewise.
6642 * features/i386/x86-64-avx-linux.c: Likewise.
6643 * features/i386/x86-64-avx-linux.xml: Likewise.
6644 * features/i386/x86-64-avx.c: Likewise.
6645 * features/i386/x86-64-avx.xml: Likewise.
6646 * regformats/i386/i386-avx-linux.dat: Likewise.
6647 * regformats/i386/i386-avx.dat: Likewise.
6648 * regformats/i386/x86-64-avx-linux.dat: Likewise.
6649 * regformats/i386/x86-64-avx.dat: Likewise.
6651 2010-04-07 Doug Evans <dje@google.com>
6653 * top.c (source_file_name): Make const char *.
6654 * top.h (source_file_name): Update.
6655 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
6657 (script_from_file): Change `file' arg to const char *.
6658 * cli/cli-script.h (script_from_file): Update.
6660 2010-04-06 Doug Evans <dje@google.com>
6662 * cli/cli-cmds.c (source_command): Run cleanups.
6664 2010-04-06 Stan Shebs <stan@codesourcery.com>
6666 * defs.h (char_ptr): Move typedef here from...
6667 * ada-lang.c (char_ptr): Remove.
6668 * charset.c (char_ptr): Remove.
6669 * tracepoint.h (struct uploaded_string): Remove.
6670 (struct uploaded_tp): Use vectors for string arrays.
6671 * tracepoint.c (trace_save): Use vectors of actions.
6672 (parse_tracepoint_definition): Ditto.
6673 (get_uploaded_tp): Clear vectors.
6674 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
6675 (next_cmd): Change to an int.
6676 (read_next_cmd): Use vector of command strings.
6678 2010-04-06 Doug Evans <dje@google.com>
6680 * top.h (source_script, cd_command): Delete.
6681 * main.c: #include "cli/cli-cmds.h"
6683 2010-04-06 Kevin Buettner <kevinb@redhat.com>
6685 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
6686 type in bytes, not bits.
6688 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
6690 * stabsread.c (define_symbol): Add support for char
6691 and string constants.
6693 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
6695 Remove remaining "%ll" uses.
6696 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
6698 * rs6000-nat.c (rs6000_ptrace64): Idem.
6699 * solib-pa64.c (pa64_current_sos): Idem.
6700 * solib-spu.c (spu_current_sos): Idem.
6701 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
6703 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
6705 * sh64-tdep.c (sh64_show_media_regs): Idem.
6707 2010-04-05 Stan Shebs <stan@codesourcery.com>
6709 * tracepoint.c: Include gdbcore.h.
6710 (tfile_xfer_partial): Return partial results, also try reading
6712 (tfile_has_all_memory): New function.
6713 (init_tfile_ops): Use it.
6715 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
6718 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
6719 the changes in data-directory.
6720 (init_sysinfo): Reload the syscall XML file if the data-directory
6723 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6726 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
6728 2010-04-04 Stan Shebs <stan@codesourcery.com>
6729 Nathan Sidwell <nathan@codesourcery.com>
6731 * breakpoint.c (breakpoint_1): Add filter argument, return number of
6732 breakpoints printed.
6733 (is_hardware_watchpoint): Make argument const.
6734 (is_watchpoint): Ditto.
6735 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
6737 (breakpoints_info): Pass NULL to breakpoint_1.
6738 (maintenance_info_breakpoints): Ditto.
6739 (watchpoints_info): New function.
6740 (tracepoints_info): Use breakpoint_1 filter.
6741 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
6742 (_initialize_breakpoint): Make "info watchpoints" its own command.
6743 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
6744 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
6746 2010-04-04 Stan Shebs <stan@codesourcery.com>
6748 * tracepoint.c (tfile_fetch_registers): Add fallback case.
6750 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6752 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
6753 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
6755 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6757 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
6758 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
6760 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6762 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
6765 2010-04-02 Hui Zhu <teawater@gmail.com>
6767 * i386-tdep.c (OT_DQUAD): New enum.
6768 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
6769 SSE3, SSSE3 and SSE4.
6771 2010-04-02 Hui Zhu <teawater@gmail.com>
6773 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
6776 2010-04-02 Pedro Alves <pedro@codesourcery.com>
6778 * tracepoint.c (trace_dump_actions): New, factored out from
6779 trace_dump_command, and adjusted to recurse into while-stepping's
6781 (trace_dump_command): Use it.
6783 2010-04-02 Pedro Alves <pedro@codesourcery.com>
6785 * breakpoint.h (struct counted_command_line): Moved definition to
6786 breakpoint.c, and forward declare.
6787 (breakpoint_commands): Declare.
6788 * breakpoint.c (struct counted_command_line): Moved here.
6789 (breakpoint_commands): New.
6790 * tracepoint.c (encode_actions): Use breakpoint_commands.
6791 * remote.c (remote_download_tracepoint): Ditto.
6793 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
6795 * remote.c (remote_parse_stop_reply): Use hex_string instead
6796 of phex_nz for error.
6798 2010-04-01 Stan Shebs <stan@codesourcery.com>
6799 Nathan Sidwell <nathan@codesourcery.com>
6801 * tracepoint.h (enum actionline_type): Remove.
6802 (validate_actionline): Change return to void.
6803 * tracepoint.c (report_agent_reqs_errors): New function.
6804 (validate_actionline): Call it, change return to void, report errors
6806 (collect_symbol): Call report_agent_reqs_errors.
6807 (encode_actions_1): Ditto.
6808 (encode_actions): Don't expect a result from validate_actionline.
6810 2010-04-01 Stan Shebs <stan@codesourcery.com>
6812 * tracepoint.c (trace_start_command): Confirm if trace is running.
6813 (trace_stop_command): Error if trace not running.
6815 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
6817 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
6818 (AMD64_NUM_LOWER_BYTE_REGS): New.
6819 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
6820 (amd64_pseudo_register_write): Likewise.
6821 (amd64_init_abi): Set num_byte_regs to 20.
6823 2010-04-01 Pedro Alves <pedro@codesourcery.com>
6825 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
6826 (prev_breakpoint_count): New.
6827 (set_breakpoint_count): Adjust.
6828 (rbreak_start_breakpoint_count): New.
6829 (start_rbreak_breakpoints): Adjust.
6830 (end_rbreak_breakpoints): Adjust.
6831 (struct commands_info) <arg>: New field.
6832 (do_map_commands_command): Tweak output to include breakpoint spec
6834 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
6835 ARG was empty on entry. Set INFO's arg.
6836 (create_breakpoint): Adjust.
6838 * NEWS: Clarify `commands' changes.
6840 2010-04-01 Pedro Alves <pedro@codesourcery.com>
6842 * tracepoint.c: Include stack.h.
6843 (struct add_local_symbols_data): New.
6844 (do_collect_symbol): New.
6845 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
6846 iterate_over_block_local_vars.
6847 * stack.c (print_block_frame_locals): Rewrite as ...
6848 (iterate_over_block_locals): ... this. Take a callback function
6849 pointer and generic data pointer, and call that instead of
6850 print_variable_and_value.
6851 (struct print_variable_and_value_data): New.
6852 (do_print_variable_and_value): New.
6853 (iterate_over_block_local_vars): New, abstracted out from
6854 print_frame_local_vars.
6855 (print_frame_local_vars): Rewrite using
6856 iterate_over_block_local_vars.
6857 (iterate_over_block_arg_vars): New, abstracted out from
6858 print_frame_arg_vars.
6859 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
6860 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
6861 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
6863 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
6865 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
6866 instructions. Use the PC+4 if the base of the TBB or TBH is the
6869 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6871 Fix crash on reading wrong function declaration DWARF.
6872 * dwarf2read.c (read_subroutine_type): New variable void_type.
6873 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
6874 more close to their use.
6876 2010-03-31 Stan Shebs <stan@codesourcery.com>
6878 * breakpoint.c (tracepoint_save_command): Include variables,
6879 conditionals, tracepoint types, and default-collect.
6880 * tracepoint.c (save_trace_state_variables): New function.
6881 * tracepoint.h (save_trace_state_variables): Declare it.
6883 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
6885 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
6887 2010-03-30 Keith Seitz <keiths@redhat.com>
6889 * c-typeprint.c (c_type_print_args): Don't print "void"
6890 for java, regardless of whether it is TYPE_PROTOTYPED.
6891 Use the passed-in language instead of current_language.
6892 (c_type_print_varspec_suffix): Use current_language instead
6893 of assuming language_c.
6894 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
6895 any return type specifier from the physname.
6897 2010-03-30 Pedro Alves <pedro@codesourcery.com>
6899 * tui/tui-interp.c (tui_is_toplevel): New.
6901 (tui_allowed_p): New.
6902 * tui/tui.c (tui_enable): Check if the TUI is allowed before
6904 * tui/tui.h (tui_allowed_p): Declare.
6906 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
6908 * serial.h: Include winsock2.h before windows.h.
6910 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
6912 * NEWS: Mention xmlRegisters= in qSupported packet.
6914 * i386-tdep.c: Include "remote.h".
6915 (_initialize_i386_tdep): Call register_remote_support_xml.
6917 * remote.c (remote_support_xml): New.
6918 (register_remote_support_xml): Likewise.
6919 (remote_query_supported_append): Likewise.
6920 (remote_query_supported): Support remote_support_xml.
6922 * remote.h (register_remote_support_xml): New.
6924 2010-03-29 Stan Shebs <stan@codesourcery.com>
6926 * tracepoint.c (trace_find_line_command): Remove dead code.
6928 * tracepoint.h (struct uploaded_string): New struct.
6929 (struct uploaded_tp): New fields for source strings.
6930 * breakpoint.c (this_utp, next_cmd): New globals.
6931 (read_uploaded_action): New function.
6932 (create_tracepoint_from_upload): Fill in more parts
6934 * tracepoint.c (encode_source_string): New function.
6935 (trace_save): Write out source strings, fix error checks.
6936 (parse_tracepoint_definition): Add source string parsing.
6937 * remote.c (PACKET_TracepointSource): New packet type.
6938 (remote_download_command_source): New function.
6939 (remote_download_tracepoint): Download source pieces also.
6940 (_initialize_remote): Add packet config command.
6942 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
6945 * tracepoint.c (start_tracing): Check tracepoints before sending
6946 commands to target, don't start if all tracepoints disabled.
6948 2010-03-28 Pedro Alves <pedro@codesourcery.com>
6950 * cli/cli-script.c (process_next_line): Handle 'stepping'.
6952 2010-03-26 Stan Shebs <stan@codesourcery.com>
6954 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
6956 2010-03-26 Tom Tromey <tromey@redhat.com>
6958 * breakpoint.c (commands_command_1): Duplicate 'arg'.
6960 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6962 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
6963 (skip_prologue_sal): Remove local definition.
6964 (resolve_sal_pc): Remove now unnecessary code.
6965 * linespec.c (minsym_found): Call skip_prologue_sal.
6966 * symtab.c (find_function_start_pc): Remove.
6967 (find_function_start_sal): Extract prologue skipping into ...
6968 (skip_prologue_sal): ... this new function. Handle code both
6969 with and without debug info. Respect SAL's explicit_pc and
6970 explicit_line flags. Inline old find_function_start_pc.
6971 * symtab.h (find_function_start_pc): Remove.
6972 (skip_prologue_sal): Add prototype.
6974 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6976 * dwarf2read.c (read_func_scope): Also scan specification DIEs
6977 for DW_TAG_imported_module children.
6979 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6981 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
6982 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
6983 * completer.c (add_struct_fields): Fix inverted logic.
6985 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6987 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
6989 2010-03-26 Pedro Alves <pedro@codesourcery.com>
6991 * tracepoint.c (current_trace_status): Don't make sure error_desc
6993 (parse_trace_status): Release a previous error_desc string, and
6994 set it to NULL by default. If stop reason is tracepoint_error,
6995 make sure error_desc is not left NULL.
6997 2010-03-26 Pedro Alves <pedro@codesourcery.com>
6999 * tracepoint.c (trace_save): Remove X from tracepoint error
7002 2010-03-26 Pedro Alves <pedro@codesourcery.com>
7004 * tracepoint.c (parse_trace_status): Don't allow plain strings in
7005 the terror description. Don't expect an X prefix.
7007 2010-03-25 Stan Shebs <stan@codesourcery.com>
7009 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
7010 (struct trace_status): New field error_desc.
7011 * tracepoint.c (stop_reason_names): Add terror.
7012 (current_trace_status): Ensure non-NULL error description.
7013 (trace_status_command): Add error report.
7014 (trace_status_mi): Ditto.
7015 (trace_save): Add special case for error description.
7016 (parse_trace_status): Add case for errors.
7018 2010-03-25 Keith Seitz <keiths@redhat.com>
7020 * dwarf2read.c (read_subroutine_type): If the compilation unit
7021 language is Java, mark any formal parameter named "this" as
7022 artificial (GCC/43521).
7023 (dwarf2_name): Add special handling for Java constructors.
7025 2010-03-25 Tom Tromey <tromey@redhat.com>
7027 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
7028 * infrun.c (handle_inferior_event): Change initialization of
7030 (handle_inferior_event): Change assignment to stop_stack_dummy.
7031 (normal_stop): Update use of stop_stack_dummy.
7032 (struct inferior_status) <stop_stack_dummy>: Change type.
7033 * inferior.h (stop_stack_dummy): Update.
7034 * infcmd.c (stop_stack_dummy): Change type.
7035 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
7037 (call_function_by_hand): Call set_std_terminate_breakpoint.
7038 Rewrite std::terminate handling.
7039 * breakpoint.h (enum bptype) <bp_std_terminate,
7040 bp_std_terminate_master>: New.
7041 (enum stop_stack_kind): New.
7042 (struct bpstat_what) <call_dummy>: Change type.
7043 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
7045 * breakpoint.c (create_std_terminate_master_breakpoint): New
7047 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
7048 Call create_std_terminate_master_breakpoint.
7049 (print_it_typical): Handle new breakpoint kinds.
7050 (bpstat_stop_status): Handle bp_std_terminate_master.
7051 (bpstat_what): Correctly set call_dummy field. Handle
7052 bp_std_terminate_master and bp_std_terminate.
7053 (print_one_breakpoint_location): Update.
7054 (allocate_bp_location): Update.
7055 (set_std_terminate_breakpoint): New function.
7056 (delete_std_terminate_breakpoint): Likewise.
7057 (create_thread_event_breakpoint): Update.
7058 (delete_command): Update.
7059 (breakpoint_re_set_one): Update.
7060 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
7062 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7064 * symfile.c (build_section_addr_info_from_bfd): New.
7065 (build_section_addr_info_from_objfile): Base it on
7066 build_section_addr_info_from_bfd.
7067 (addrs_section_compar, addrs_section_sort): New.
7068 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
7069 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
7070 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
7072 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
7074 * elfread.c (find_separate_debug_file_by_buildid):
7075 Remove unused local variable.
7077 2010-03-24 Tom Tromey <tromey@redhat.com>
7079 PR breakpoints/9352:
7080 * NEWS: Mention changes to `commands' and `rbreak'.
7081 * symtab.c (do_end_rbreak_breakpoints): New function.
7082 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
7083 end_rbreak_breakpoints.
7084 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
7085 (set_breakpoint_count): Likewise. Clear last_was_multi.
7086 (multi_start, multi_end, last_was_multi): New globals.
7087 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
7089 (struct commands_info): New
7090 (do_map_commands_command): New function.
7091 (commands_command_1): New function.
7092 (commands_command): Use it.
7093 (commands_from_control_command): Likewise.
7094 (do_delete_breakpoint): New function.
7095 (delete_command): Use it.
7096 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
7097 (do_map_disable_breakpoint): New function.
7098 (disable_command): Use it.
7099 (do_map_enable_breakpoint): New function.
7100 (enable_command): Use it.
7101 (enable_once_breakpoint): Add argument.
7102 (enable_once_command): Update.
7103 (enable_delete_breakpoint): Add argument.
7104 (enable_delete_command): Update.
7105 (break_command_really): Set last_was_multi when needed.
7106 (check_tracepoint_command): Fix formatting.
7107 (validate_commands_for_breakpoint): New function.
7108 (breakpoint_set_commands): Use it.
7109 (tracepoint_save_command): Update.
7110 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
7113 2010-03-24 Tom Tromey <tromey@redhat.com>
7115 * breakpoint.h (struct counted_command_line): New struct.
7116 (struct breakpoint) <commands>: Change type.
7117 (struct bpstats) <commands>: Change type.
7118 <commands_left>: New field.
7119 * breakpoint.c (alloc_counted_command_line): New function.
7120 (incref_counted_command_line): Likewise.
7121 (decref_counted_command_line): Likewise.
7122 (do_cleanup_counted_command_line): Likewise.
7123 (make_cleanup_decref_counted_command_line): Likewise.
7124 (breakpoint_set_commands): Use decref_counted_command_line and
7125 alloc_counted_command_line.
7126 (commands_command): Don't error if breakpoint commands are
7128 (commands_from_control_command): Likewise.
7129 (bpstat_free): Update.
7130 (bpstat_copy): Likewise.
7131 (bpstat_clear_actions): Likewise.
7132 (bpstat_do_actions_1): Likewise.
7133 (bpstat_stop_status): Likewise.
7134 (print_one_breakpoint_location): Likewise.
7135 (delete_breakpoint): Likewise.
7136 (bpstat_alloc): Initialize new field.
7137 (tracepoint_save_command): Update.
7138 * tracepoint.c (encode_actions): Update.
7139 (trace_dump_command): Update.
7141 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
7143 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
7144 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
7145 (read_structure_type): For RealView, set TYPE_STUB on structures with
7146 no byte size and no children.
7147 (read_subroutine_type): Mark functions as prototyped by default.
7148 * symtab.c (producer_is_realview): New function.
7149 * symtab.h (expand_line_sal): Fix declaration formatting.
7150 (producer_is_realview): Declare.
7152 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
7154 * arm-tdep.c (skip_prologue_function): New function.
7155 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
7156 (thumb_analyze_prologue): Document return value. Recognize more
7157 Thumb instructions, skippable calls, and some Thumb-2 instructions.
7159 (arm_skip_prologue): Remove call dummy check. Check the prologue
7160 for non-GNU compilers.
7161 (arm_instruction_changes_pc): New function.
7162 (arm_analyze_prologue): New function, broken out from
7163 arm_scan_prologue. Recognize more ARM instructions and skippable
7164 calls. Update comments. Handle NULL cache. Return the address
7165 of the first unrecognized instruction. Do not skip past other
7166 instructions which change control flow. Add debug output.
7167 (arm_scan_prologue): Use arm_analyze_prologue.
7168 (ARM_PC_32): Delete.
7169 (shifted_reg_val): Simplify ARM_PC_32 check.
7171 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7173 * tracepoint.c (tvariables_info_1): Actually compute
7174 the number of rows in the result.
7176 2010-03-24 Pedro Alves <pedro@codesourcery.com>
7178 * remote.c (crc32): Constify `buf' parameter.
7179 (remote_verify_memory): New, abstracted out from...
7180 (compare_sections_command): ... this. Remove hardcoded target
7182 (init_remote_ops): Install remote_verify_memory.
7183 * target.c (target_verify_memory): New.
7184 * target.h (struct target_ops) <to_verify_memory>: New field.
7185 (target_verify_memory): Declare.
7187 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7189 Implement -trace-save.
7191 * mi-cmds.h (mi_cmds_trace_save): Declare.
7192 * mi-cmds.c (mi_cmds): Register -trace-save.
7193 * mi/mi-main.c (mi_cmd_trace_save): New.
7194 * remote.c (remote_save_trace_data): Take const parameter.
7195 * target.h (struct target_ops::to_save_trace_data): Take
7197 * target.c (update_current_target): Adjust to the above.
7198 * tracepoint.c (trave_save): New, extracted from
7199 (trace_save_command): ...this.
7200 (tfile_trace_find): Remove message that is unnecessary now
7201 that 'tfind' reports found frame.
7202 * tracepoint.h (trace_save): Declare.
7204 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7206 Implement -trace-find.
7208 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
7209 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
7210 * mi/mi-main.c (mi_cmd_trace_find): New.
7211 * target.h (struct target_ops): Document to_trace_find.
7212 * tracepoint.h (tfind_1): Declare.
7213 * tracepoint.c (finish_tfind_command): Rename to...
7215 * remote.c (remote_trace_find): Return -1 if target say
7216 there's no frame. Improve error diagnostics.
7218 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7220 -trace-define-variable and -trace-list-variables.
7222 * tracepoint.c (create_trace_state_variable): Make
7223 private copy of name, as opposed to assuming the
7224 pointer lives forever.
7225 (tvariables_info_1): New.
7226 (tvariables_info): Use the above.
7227 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
7229 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
7230 and -trace-list-variables.
7231 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
7232 (mi_cmd_trace_list_variables): New.
7233 * mi/mi-main.c (mi_cmd_trace_define_variable)
7234 (mi_cmd_trace_list_variables): New.
7236 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7238 Implement -break-passcount.
7240 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
7241 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
7242 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
7244 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7246 -trace-start/-trace-end/-trace-status.
7248 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
7250 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
7251 (mi_cmd_trace_stop): Declare.
7252 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
7253 (mi_cmd_trace_stop): New.
7254 * tracepoint.c (start_tracing): New, extracted from...
7255 (trace_start_command): ...this.
7256 (trace_status_mi): New.
7257 * tracepoint.h (struct trace_status): Document
7258 stopping_tracepoint.
7259 (start_tracing, stop_tracing, trace_status_mi): Declare.
7261 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7263 Implement creating tracepoints with -break-insert.
7265 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
7266 to mean that tracepoint should be created.
7268 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7270 * breakpoint.c (check_no_tracepoint_commands): Use
7271 current spelling of 'teval'.
7273 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7275 Unify actions and commands
7277 * defs.h (read_command_lines, read_command_lines_1): New
7278 parameters validator and closure.
7279 * tracepoint.h (struct action_line): Remove.
7280 * breakpoint.h (struct breakpoint): Remove the 'actions'
7282 * defs.h (enum command_control_type): New value
7283 while_stepping_control.
7284 (struct command_line): Add comments.
7285 * breakpoint.c (breakoint_is_tracepoint): New.
7286 (breakpoint_set_commands): For tracepoints,
7287 verify the commands are permissible.
7288 (check_tracepoint_commands): New.
7289 (commands_command): Require that each new line is validated using
7290 check_tracepoint_command, if we set commands for a tracepoint.
7291 (create_tracepoint_from_upload): Likewise.
7292 (print_one_breakpoint_location): Remove the code to print
7293 actions specifically.
7294 (tracepoint_save_command): Relay to print_command_lines.
7295 * cli/cli-script.c (process_next_line): New parameters validator
7296 and closure. Handle 'while-stepping'. Call validator if not null.
7297 (read_command_lines, read_command_lines1): Likewise.
7298 (recurse_read_control_structure): New parameters validator and
7299 closure. Handle while_stepping_control.
7300 (print_command_lines): Handle while-stepping.
7301 (get_command_line, define_command, document_command): Adjust.
7302 * remote.c (remote_download_tracepoint): Adjust.
7303 * tracepoint.c (make_cleanup_free_actions, read_actions)
7304 (free_actions, do_free_actions_cleanup): Remove.
7305 (trace_actions_command): Use read_command_lines.
7306 (validate_actionline): Use error in one place.
7307 (encode_actions_1): New, extracted from...
7308 (encode_actions): ...this. Also use cleanups for exception
7310 (trace_dump_command): Adjust.
7311 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
7314 2010-03-23 Mike Frysinger <vapier@gentoo.org>
7316 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
7318 2010-03-22 Stan Shebs <stan@codesourcery.com>
7320 * value.c (value_static_field): Be lazy about the field's value.
7322 2010-03-22 Reid Kleckner <reid@kleckner.net>
7325 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
7327 (disable_breakpoints_in_shlibs): Likewise.
7329 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
7331 * dwarf2read.c (partial_die_parent_scope): Work around buggy
7332 GCC 4.1 debug info generation (GCC PR c++/28460).
7333 (determine_prefix): Likewise.
7335 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
7337 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
7339 * tui/tui-layout.c (extract_display_start_addr): Likewise.
7341 2010-03-19 Stan Shebs <stan@codesourcery.com>
7343 * ax-gdb.c (gen_fetch): Handle bool.
7344 (gen_usual_unary): Ditto.
7346 (gen_equal): New function.
7347 (gen_less): New function.
7348 (gen_expr_binop_rest): Call them, also return integer type from
7352 2010-03-19 Tom Tromey <tromey@redhat.com>
7354 * jv-lang.c (jv_dynamics_objfile_data_key)
7355 (jv_type_objfile_data_key): New globals.
7356 (class_symtab): Move earlier.
7357 (jv_per_objfile_free): New function.
7358 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
7360 Remove ancient #if 1.
7361 (add_class_symbol): Remove redundant declaration.
7362 (java_lookup_class): Use alloc_type, not alloc_type_arch.
7363 (java_link_class_type): Mark as static. Update.
7364 (jv_clear_object_type): New function.
7365 (set_java_object_type): Likewise.
7366 (get_java_object_type): Use set_java_object_type.
7367 (is_object_type): Likewise.
7368 (_initialize_java_language): Register new objfile keys.
7369 (get_java_class_symtab): Add 'gdbarch' parameter.
7370 (add_class_symtab_symbol): Update.
7371 (type_from_class): Update.
7373 2010-03-19 Stan Shebs <stan@codesourcery.com>
7375 * ax-general.c (ax_const_l): Fix a sizing bug.
7377 2010-03-18 Joel Brobecker <brobecker@adacore.com>
7381 2010-03-18 Stan Shebs <stan@codesourcery.com>
7382 Pedro Alves <pedro@codesourcery.com>
7384 * target.h (struct target_ops): New method
7385 to_set_circular_trace_buffer.
7386 (target_set_circular_trace_buffer): New macro.
7387 * target.c (update_current_target): Add
7388 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
7390 * remote.c (remote_set_circular_trace_buffer): New function.
7391 (init_remote_ops): Add it to vector.
7392 * tracepoint.h (struct trace_status): New field traceframes_created,
7393 change buffer_size and buffer_free to int.
7394 * tracepoint.c (circular_trace_buffer): New global.
7395 (start_tracing): Send values of disconnected tracing and circular
7396 trace buffer settings.
7397 (set_circular_trace_buffer): New function.
7398 (parse_trace_state): Handle total space and frames created.
7399 (trace_status_command): Display total space and total frames
7401 (trace_save): Write out new status values.
7402 (parse_trace_status): Set traceframe_count, traceframes_created,
7403 buffer_free and buffer_size to -1 by default.
7404 (_initialize_tracepoint): New setshow for circular-trace-buffer.
7405 * NEWS: Mention the circular trace buffer option.
7407 2010-03-18 Tom Tromey <tromey@redhat.com>
7409 * infcmd.c (finish_command_continuation): Wrap print_return_value
7412 2010-03-18 Joel Brobecker <brobecker@adacore.com>
7414 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
7415 DIE has a name before creating the associated partial symbol.
7416 (read_func_scope): Emit a complaint if the subprogram does not
7417 have a name or when we can't extract the subprogram PC bounds.
7419 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
7421 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
7422 instead of selected frame architecture.
7424 2010-03-18 Pedro Alves <pedro@codesourcery.com>
7426 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
7427 a valid selected thread, and that it is not running.
7428 (advance_command): Ditto.
7429 (finish_command): Ditto.
7431 2010-03-17 Stan Shebs <stan@codesourcery.com>
7433 * ax-gdb.c (require_rvalue): Disallow non-scalars.
7435 * infcall.c: Include tracepoint.h.
7436 (call_function_by_hand): Disallow calls in tfind mode.
7437 * infcmd.c: Include tracepoint.h.
7438 (ensure_not_tfind_mode): New function.
7439 (continue_1): Call it.
7441 (jump_command): Ditto.
7442 (signal_command): Ditto.
7443 (advance_command): Ditto.
7444 (until_command): Ditto.
7445 (finish_command): Ditto.
7446 * tracepoint.h (disconnect_or_stop_tracing): Declare.
7448 * ax-gdb.h (struct axs_value): New field optimized_out.
7449 (gen_trace_for_var): Add gdbarch argument.
7450 * ax-gdb.c (gen_trace_static_fields): New function.
7451 (gen_traced_pop): Call it, add gdbarch argument.
7452 (gen_trace_for_expr): Update call to it.
7453 (gen_trace_for_var): Ditto, and report optimized-out variables.
7454 (gen_struct_ref_recursive): Check for optimized-out value.
7455 (gen_struct_elt_for_reference): Ditto.
7456 (gen_static_field): Pass gdbarch instead of expression, assume
7457 optimization if field not found.
7458 (gen_var_ref): Set the optimized_out flag.
7459 (gen_expr): Error on optimized-out variable.
7460 * tracepoint.c (collect_symbol): Handle struct-valued vars as
7461 expressions, skip optimized-out variables with computed locations.
7462 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
7463 erroring out if location expression missing.
7464 (loclist_tracepoint_var_ref): Don't error out here.
7466 2010-03-17 Tom Tromey <tromey@redhat.com>
7468 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
7469 DWARF data is available.
7471 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
7473 * symfile.c (generic_load): Reset breakpoints after loading.
7475 2010-03-17 Tom Tromey <tromey@redhat.com>
7477 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
7479 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7481 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
7482 create_breakpoint call, adjust the parameters.
7484 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7485 Chandru <chandru@in.ibm.com>
7487 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
7488 * valarith.c (value_subscripted_rvalue): Suppress error if
7489 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
7491 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
7493 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
7495 2010-03-16 Joel Brobecker <brobecker@adacore.com>
7497 * ada-tasks.c (task_command_1): Check that the task ptid is valid
7498 before doing the associated thread switch.
7500 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
7502 * MAINTAINERS: Update my email address.
7504 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
7506 Simplify MI breakpoint setting.
7508 * breakpoint.c (break_command_really): Make nonstatic and
7510 (create_breakpoint): ...this. Rename prior function by this name
7512 (create_breakpoint_sal): ...this.
7513 (create_breakpoints): Rename to...
7514 (create_breakpoints_sal): ...this.
7515 (set_breakpoint): Remove.
7516 * breakpoint.h: Adjust to above changes.
7517 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
7519 2010-03-15 Stan Shebs <stan@codesourcery.com>
7521 * ax-gdb.c: Include cp-support.h.
7522 (find_field): Remove.
7523 (gen_primitive_field): New function.
7524 (gen_struct_ref_recursive): New function.
7525 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
7527 (gen_static_field): New function.
7528 (gen_struct_elt_for_reference): New.
7529 (gen_namespace_elt): New.
7530 (gen_maybe_namespace_elt): New.
7531 (gen_aggregate_elt_ref): New.
7532 (gen_expr): Add OP_SCOPE, display opcode name in error message.
7534 2010-03-15 Tom Tromey <tromey@redhat.com>
7536 * dwarf2read.c (die_needs_namespace): Also return 0 for
7539 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
7542 * cp-support.h: Added char *declaration element to using_direct
7544 (cp_add_using): Added char *declaration argument.
7545 (cp_add_using_directive): Ditto.
7546 (cp_lookup_symbol_imports): made extern.
7547 * cp-namespace.c: Updated with the above changes.
7548 * dwarf2read.c (read_import_statement): Ditto.
7549 (read_namespace): Ditto.
7550 (read_import_statement): Support import declarations.
7551 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
7553 Added support for 'declaration_only' search.
7554 (cp_lookup_symbol_namespace): Attempt to search for the name as
7555 is before consideration of imports.
7556 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
7557 search at every block level search.
7558 Now takes language argument.
7559 (lookup_symbol_aux): Updated.
7561 2010-03-15 Tom Tromey <tromey@redhat.com>
7563 * c-exp.y (name_not_typename): Add 'operator' clause.
7565 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
7567 * configure.ac: Exit if ${gdb_target_obs}" is not set.
7568 * configure: Regenerate.
7570 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7572 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
7573 and ".sdynbss". Update the comment.
7575 2010-03-15 Jie Zhang <jie@codesourcery.com>
7577 * MAINTAINERS: Update my email address.
7579 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
7581 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
7583 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
7585 * charset.c [USE_WIN32API]: Include <windows.h>.
7586 (_initialize_charset): Correct type of w32_host_default_charset.
7588 2010-03-14 Pedro Alves <pedro@codesourcery.com>
7590 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
7592 2010-03-12 Tom Tromey <tromey@redhat.com>
7595 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
7596 in a lexical block does not need a namespace.
7597 (new_symbol) <DW_TAG_variable>: Put extern variables on
7598 list_in_scope in all cases.
7600 2010-03-12 Stan Shebs <stan@codesourcery.com>
7602 * ax-gdb.c (gen_expr): Add shift expressions.
7603 (gen_expr_binop_rest): Ditto.
7605 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
7607 * buildsym.c (finish_block): Reset using_directives pointer
7608 after block initialization.
7610 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
7612 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
7613 * i386-tdep.c (i386_word_names): Likewise.
7615 2010-03-12 Pedro Alves <pedro@codesourcery.com>
7617 * target.c (memory_xfer_partial): Don't use the stack cache if
7618 inspecting trace frames.
7619 * tracepoint.c (finish_tfind_command): Invalidate the target
7622 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7624 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
7625 for the PIC displacement, print also the displacement value.
7626 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
7628 2010-03-10 Kevin Buettner <kevinb@redhat.com>
7630 * remote-mips.c (close_ports, mips_initialize_cleanups)
7631 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
7632 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
7633 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
7634 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
7635 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
7636 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
7637 comments describing each of these functions.
7638 (mips_enter_debug, mips_exit_debug, common_open)
7639 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
7640 blank line after the comment describing the function.
7642 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7644 * solib-svr4.c (svr4_exec_displacement): Return now success, new
7645 parameter displacementp. Update comment.
7646 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
7647 element exists. Return if svr4_exec_displacement was not successful.
7650 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7651 Daniel Jacobowitz <dan@codesourcery.com>
7653 * solib-svr4.c (read_program_header): Support type == -1 to read
7654 all program headers.
7655 (read_program_headers_from_bfd): New function.
7656 (svr4_static_exec_displacement): Remove and move the comment ...
7657 (svr4_exec_displacement): ... here. Remove variable found. New
7658 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
7659 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
7660 targets using read_program_headers_from_bfd. Remove the call of
7661 svr4_static_exec_displacement.
7663 2010-03-10 Tom Tromey <tromey@redhat.com>
7665 * dwarf2read.c (struct pubnames_header): Remove.
7666 (_PUBNAMES_HEADER): Remove.
7667 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
7668 (struct aranges_header): Remove.
7669 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
7670 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
7671 (PUBNAMES_SECTION): Remove.
7672 (ARANGES_SECTION): Remove.
7673 (dwarf2_locate_sections): Don't handle pubnames or aranges.
7674 (dwarf2_build_psymtabs): Remove dead code.
7675 (dwarf2_build_psymtabs_easy): Remove.
7677 2010-03-10 Tom Tromey <tromey@redhat.com>
7679 * elfread.c (elf_symfile_read): Don't call
7680 dwarf2_build_frame_info.
7681 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
7682 (struct dwarf2_per_objfile) <objfile>: New field.
7683 (dwarf2_has_info): Now idempotent. Set objfile field.
7684 (dwarf2_read_section): Check and set readin field. Call
7686 (dwarf2_build_psymtabs): Don't read all sections.
7687 (read_type_comp_unit_head): Read types section.
7688 (create_debug_types_hash_table): Likewise.
7689 (init_cu_die_reader): Add asserts.
7690 (process_type_comp_unit): Add assert.
7691 (dwarf2_build_psymtabs_hard): Read info section.
7692 (load_partial_comp_unit): Add assert.
7693 (create_all_comp_units): Read info section.
7694 (load_full_comp_unit): Likewise.
7695 (dwarf2_ranges_read): Read ranges section.
7696 (dwarf2_record_block_ranges): Add assert.
7697 (dwarf2_read_abbrevs): Read abbrev section.
7698 (read_indirect_string): Read str section.
7699 (dwarf_decode_line_header): Read line section.
7700 (read_signatured_type_at_offset): Read types section.
7701 (dwarf_decode_macros): Read macinfo section.
7702 (dwarf2_symbol_mark_computed): Read loc section.
7703 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
7704 dwarf2_build_frame_info.
7705 (dwarf2_build_frame_info): Unconditionally set
7706 dwarf2_frame_objfile_data on the objfile.
7707 * configure.ac: Check for posix_madvise.
7708 * config.in, configure: Rebuild.
7710 2010-03-10 Tom Tromey <tromey@redhat.com>
7712 * xcoffread.c (xcoff_start_psymtab): Update.
7713 (xcoff_end_psymtab): Update.
7714 * psymtab.c (allocate_psymtab): Remove dead code.
7715 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
7717 * mdebugread.c (parse_partial_symbols): Update.
7718 (new_psymtab): Likewise.
7719 * dwarf2read.c (process_psymtab_comp_unit): Update.
7720 (psymtab_to_symtab_1): Update.
7721 * dbxread.c (start_psymtab): Update.
7722 (end_psymtab): Likewise.
7724 2010-03-10 Tom Tromey <tromey@redhat.com>
7726 * xcoffread.c: Include psymtab.h.
7727 (xcoff_sym_fns): Update.
7728 * symtab.h (struct partial_symbol): Remove.
7729 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
7730 (struct partial_symtab): Remove.
7731 (PSYMTAB_TO_SYMTAB): Remove.
7732 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
7733 (find_pc_sect_psymtab): Remove.
7734 (find_pc_sect_symtab_via_partial): Declare.
7735 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
7736 (find_main_psymtab): Remove.
7737 (find_main_filename): Declare.
7738 (fixup_psymbol_section): Remove.
7739 (fixup_section): Declare.
7740 * symtab.c: Include psymtab.h.
7741 (lookup_symtab): Use lookup_symtab method.
7742 (lookup_partial_symtab): Remove.
7743 (find_pc_sect_psymtab_closer): Remove.
7744 (find_pc_sect_psymtab): Remove.
7745 (find_pc_sect_symtab_via_partial): New function.
7746 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
7747 (fixup_section): No longer static.
7748 (fixup_psymbol_section): Remove.
7749 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
7750 (lookup_global_symbol_from_objfile): Likewise.
7751 (lookup_symbol_aux_psymtabs): Remove.
7752 (lookup_symbol_aux_quick): New function.
7753 (lookup_symbol_global): Use lookup_symbol_aux_quick.
7754 (lookup_partial_symbol): Remove.
7755 (basic_lookup_transparent_type_quick): New function.
7756 (basic_lookup_transparent_type): Use it.
7757 (find_main_psymtab): Remove.
7758 (find_main_filename): New function.
7759 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
7760 (find_line_symtab): Use expand_symtabs_with_filename method.
7761 (output_partial_symbol_filename): New function.
7762 (sources_info): Use map_partial_symbol_filenames.
7763 (struct search_symbols_data): New type.
7764 (search_symbols_file_matches): New function.
7765 (search_symbols_name_matches): Likewise.
7766 (search_symbols): Use expand_symtabs_matching method.
7767 (struct add_name_data): Rename from add_macro_name_data.
7768 (add_macro_name): Update.
7769 (add_partial_symbol_name): New function.
7770 (default_make_symbol_completion_list): Use
7771 map_partial_symbol_names.
7772 (struct add_partial_symbol_name): New type.
7773 (maybe_add_partial_symtab_filename): New function.
7774 (make_source_files_completion_list): Use
7775 map_partial_symbol_filenames.
7776 (expand_line_sal): Use expand_symtabs_with_filename method.
7777 * symmisc.c: Include psymtab.h.
7778 (print_objfile_statistics): Use print_stats method.
7779 (dump_objfile): Use dump method.
7780 (dump_psymtab, maintenance_print_psymbols)
7781 (maintenance_info_psymtabs, maintenance_check_symtabs)
7782 (extend_psymbol_list): Remove.
7783 * symfile.h (struct quick_symbol_functions): New struct.
7784 (struct sym_fns) <qf>: New field.
7785 (sort_pst_symbols): Remove.
7786 (increment_reading_symtab): Declare.
7787 * symfile.c: Include psymtab.h.
7788 (compare_psymbols, sort_pst_symbols): Remove.
7789 (psymtab_to_symtab): Remove.
7790 (increment_reading_symtab): New function.
7791 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
7793 (set_initial_language): Use find_main_filename.
7794 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
7795 (free_named_symtabs): Remove unused code.
7796 (start_psymtab_common, add_psymbol_to_bcache)
7797 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
7799 * stack.c: Include psymtab.h, symfile.h.
7800 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
7801 * source.h (psymtab_to_fullname): Don't declare.
7802 * source.c: Include psymtab.h.
7803 (select_source_symtab): Use find_last_source_symtab method.
7804 (forget_cached_source_info): Use forget_cached_source_info
7806 (find_and_open_source): No longer static.
7807 (psymtab_to_fullname): Remove.
7808 * somread.c: Include psymtab.h.
7809 (som_sym_fns): Update.
7810 * psympriv.h: New file.
7811 * psymtab.h: New file.
7812 * psymtab.c: New file.
7813 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
7814 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
7815 * objfiles.c: Include psymtab.h.
7816 (objfile_relocate1): Use relocate method.
7817 (objfile_has_partial_symbols): Use has_symbols method.
7818 * mipsread.c: Include psymtab.h.
7819 (ecoff_sym_fns): Update.
7820 * mi/mi-cmd-file.c: Include psymtab.h.
7821 (print_partial_file_name): New function.
7822 (mi_cmd_file_list_exec_source_files): Use
7823 map_partial_symbol_filenames.
7824 * mdebugread.c: Include psympriv.h.
7825 * machoread.c: Include psympriv.h.
7826 (macho_sym_fns): Update.
7827 * m2-exp.y (yylex): Use lookup_symtab.
7828 * elfread.c: Include psympriv.h.
7829 (elf_sym_fns): Update.
7830 * dwarf2read.c: Include psympriv.h.
7831 * dbxread.c: Include psympriv.h.
7832 (aout_sym_fns): Update.
7833 * cp-support.c: Include psymtab.h.
7834 (read_in_psymtabs): Remove.
7835 (make_symbol_overload_list_qualified): Use
7836 expand_symtabs_for_function method.
7837 * coffread.c: Include psympriv.h.
7838 (coff_sym_fns): Update.
7839 * blockframe.c: Include psymtab.h.
7840 (find_pc_partial_function): Use find_pc_sect_symtab method.
7841 * ada-lang.h (ada_update_initial_language): Update.
7842 * ada-lang.c: Include psymtab.h.
7843 (ada_update_initial_language): Remove 'main_pst' argument.
7844 (ada_lookup_partial_symbol): Remove.
7845 (struct ada_psym_data): New type.
7846 (ada_add_psyms): New function.
7847 (ada_add_non_local_symbols): Use map_ada_symtabs method.
7848 (struct add_partial_datum): New type.
7849 (ada_add_partial_symbol_completions): New function.
7850 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
7851 (ada_exception_support_info_sniffer): Update.
7852 * Makefile.in (SFILES): Add psymtab.c.
7853 (COMMON_OBS): Add psymtab.o.
7854 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
7856 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
7858 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
7860 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
7863 * cp-namespace.c (cp_add_using): Deleted.
7864 (cp_add_using_directive): Use obstack allocations.
7865 Merged the function cp_add_using into this one.
7866 Added 'struct obstack *' argument.
7867 (cp_scan_for_anonymous_namespaces): Updated.
7868 * cp-support.h: Updated.
7869 * dwarf2read.c (read_import_statement): Updated.
7870 (read_namespace): Updated.
7872 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
7874 * windows-nat.c (cygwin_conv_path): Remove old macro.
7876 2010-03-10 Pedro Alves <pedro@codesourcery.com>
7878 * breakpoint.c (condition_command): Handle watchpoint conditions.
7879 (is_hardware_watchpoint): Add comment.
7880 (is_watchpoint): New.
7881 (update_watchpoint): Don't reparse the watchpoint's condition
7884 (watchpoint_check): Use it.
7885 (bpstat_check_watchpoint): Handle it.
7886 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
7887 conditions in a frame where it makes sense.
7888 (watch_command_1): Store the innermost block of the condition
7890 (delete_breakpoint): Delete the watchpoint condition expression.
7891 * breakpoint.h (struct bp_location) <cond>: Update comment.
7892 (struct breakpoint): New field `cond_exp_valid_block'.
7894 2010-03-09 Joel Brobecker <brobecker@adacore.com>
7896 Adjust handling of Ada DIEs after dwarf2_physname patch.
7897 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
7899 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
7900 Pierre Muller <muller@ics.u-strasbg.fr>
7902 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
7903 from/to posix/win32.
7904 (windows_make_so): Use non-Cygwin 1.7 specific function.
7905 (windows_create_inferior): Make sure that cygallargs points to
7906 original args in non Cygwin 1.7. case.
7908 2010-03-09 Michael Snyder <msnyder@vmware.com>
7910 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
7911 after target_read_memory to get host byte order.
7912 (i386_process_record): Ditto.
7914 2010-03-09 Keith Seitz <keiths@redhat.com>
7916 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
7917 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
7918 print out const or volatile qualifiers, too.
7919 (c_type_print_args): Add parameters show_artificial and language.
7920 Skip artificial parameters when requested.
7921 Use the appropriate language printer.
7922 (c_type_print_varspec): Tell c_type_print_args to skip artificial
7923 parameters and pass language_c.
7924 * dwarf2read.c (die_list): New file global.
7925 (struct partial_die_info): Update comments for name field.
7926 (pdi_needs_namespace): Renamed to ...
7927 (die_needs_namespace): ... this. Rewrite.
7928 (dwarf2_linkage_name): Remove.
7929 (add_partial_symbol): Do not predicate the call to
7930 partial_die_full_name based on pdi_needs_namespace.
7931 Remove call to cp_check_possible_namespace_symbols and associated
7933 (guess_structure_name): Do not inspect child subprogram DIEs.
7934 (dwarf2_fullname): Update comments.
7935 Use die_needs_namespace to assist in computing the name.
7936 (read_func_scope): Use dwarf2_name to get the DIE's name.
7937 Use dwarf2_physname to get the "linkage name" of the DIE.
7938 (dwarf2_add_member_field): Use dwarf2_physname instead of
7939 dwarf2_linkage_name.
7940 (read_structure_type): For structs and classes, set TYPE_NAME, too.
7941 (determine_class): Remove.
7942 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
7944 (new_symbol): Unconditionally call dwarf2_name.
7945 Compute the "linkage name" using dwarf2_physname.
7946 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
7947 When determining to scan for anonymous C++ namespaces, ignore
7949 (dwarf2_physname): New function.
7950 (dwarf2_full_name): Move content to new function and call
7952 (dwarf2_compute_name): "New" function.
7953 (_initialize_dwarf2_read): Initialize die_list.
7954 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
7956 (gnu_v3_print_method_ptr): Use the physname for virtual methods
7957 without a demangled name.
7958 Print out type information for non-virtual methods.
7959 * linespec.c (decode_line_1): Force ANY string using "::" (or
7960 "." for java) to use decode_compound, and clean up any stray quoting.
7961 If we found a file symtab, re-evaluate whether the remainder is_quoted.
7962 (decode_compound): Stop consuming at an open parenthesis.
7963 Keep template parameters.
7964 Keep any overload information.
7965 Keep keywords like "const".
7966 Remove paren_pointer.
7967 Move is_quoted check from set_flags to here.
7968 Remove #if 0 code from 2000. Ten years is long enough.
7969 (find_method): Before comparing symbol names, canonicalize the string
7971 If a specific overload is requested, find it. Otherwise throw an error.
7972 (find_method_overload_end): New function.
7973 (set_flags): Remove.
7974 (decode_compound): Assume that parentheses are matched.
7976 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
7978 * linespec.c (decode_line_1): Keep important keywords like
7979 "const" and "volatile".
7980 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
7981 * typeprint.h (c_type_print_args): Add declaration.
7982 * ui-file.c (do_ui_file_obsavestring): New function.
7983 (ui_file_obsavestring): New function.
7984 * ui-file.h (ui_file_obsavestring): Add declaration.
7985 * valops.c (find_overload_match): Resolve the object to
7987 If the object is a data member, search the object for the member
7988 and return with staticp set.
7989 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
7990 Do not attempt to extract a function name from non-function types.
7991 If the extracted function name and the original name are the same,
7992 we don't have a C++ method.
7994 From Jan Kratochvil <jan.kratochvil@redhat.com>:
7995 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
7997 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
7998 and arguments from symbol lookups.
7999 * ax-gdb.c (gen_expr): Likewise.
8000 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
8001 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
8002 lookup_possible_namespace_symbol): Likewise.
8003 * cp-support.c (read_in_psymtabs): Likewise.
8004 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
8005 * language.h (la_lookup_symbol_nonlocal): Likewise.
8006 * scm-valprint.c (scm_inferior_print): Likewise.
8007 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
8008 * solib-svr.c (elf_lookup_lib): Likewise.
8009 * solib.c (show_auto_solib_add): Likewise.
8010 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
8011 * symmisc.c (maintenance_check_symtabs): Likewise.
8012 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
8013 lookup_symbol_aux_local, lookup_symbol_aux_block,
8014 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
8015 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
8016 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
8017 basic_lookup_transparent_type, find_main_psymtab,
8018 lookup_block_symbol): Likewise.
8019 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
8020 lookup_symbol_global, lookup_symbol_aux_block,
8021 lookup_symbol_partial_symbol, lookup_block_symbol,
8022 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
8024 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
8026 * python/python-internal.h: Include symtab.h.
8028 2010-03-09 Joel Brobecker <brobecker@adacore.com>
8029 Pierre Muller <muller@ics.u-strasbg.fr>
8031 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
8032 * p-valprint.c (pascal_val_print): Remove undeed block and fix
8035 2010-03-08 Tom Tromey <tromey@redhat.com>
8037 * breakpoint.c (breakpoint_1): Add "QUIT".
8039 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
8040 Pedro Alves <pedro@codesourcery.com>
8042 * solib.c (solib_find): Replace extension if
8043 solib_symbols_extension is set in the target gdbarch.
8044 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
8045 solib_symbols_extension to "sym".
8046 * gdbarch.sh (solib_symbols_extension): New variable.
8047 (pstring): New function.
8048 * gdbarch.h, gdbarch.c: Regenerate.
8050 2010-03-08 Tom Tromey <tromey@redhat.com>
8054 * utils.c: Include main.h.
8055 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
8056 (defaulted_query): Use default answer if `batch_flag'.
8057 * main.h (batch_flag): Declare.
8058 * main.c (batch_flag): New global.
8059 (captured_main): Remove 'batch'. Update.
8061 2010-03-08 Kevin Buettner <kevinb@redhat.com>
8063 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
8066 * remote-mips.c (rockhopper_ops): New target_ops struct.
8067 (MON_ROCKHOPPER): New mips_monitor_type.
8068 (read_hex_value): New function.
8069 (mips_request): Send 8-byte values with a 'T' packet. Read the
8070 packet argument as a string and use read_hex_value to parse it.
8071 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
8072 (rockhopper_open): New function.
8073 (mips_wait): Read the PC, FP and SP fields as strings. Use
8074 read_hex_value to parse them and mips_set_register to commit them.
8075 (mips_set_register): New function.
8076 (mips_fetch_registers): Do not cast register value to "unsigned"
8077 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
8078 (mips_store_registers): Use a 'T' packet to set registers when
8079 using MON_ROCKHOPPER.
8080 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
8081 and expect the total to be printed before the entry address.
8082 (_initialize_remote_mips): Initialize and add rockhopper_ops.
8084 2010-03-08 Kevin Buettner <kevinb@redhat.com>
8086 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
8087 Change return value to int. Store value fetched in location
8088 addressed by `val'. Use function's return value as success
8089 or failure indicator. Adjust all callers.
8091 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
8093 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
8095 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8096 Hui Zhu <teawater@gmail.com>
8098 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
8099 tmp_to_stopped_data_address.
8100 (record_open): Reset tmp_to_stopped_by_watchpoint and
8101 tmp_to_stopped_data_address.
8102 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
8103 to_stopped_data_address.
8105 2010-03-08 Hui Zhu <teawater@gmail.com>
8107 * i386-tdep.c (i386_process_record): Initialize regnum.
8109 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8111 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
8112 Do not warn on ".gnu.liblist" and ".gnu.conflict".
8114 2010-03-08 Joel Brobecker <brobecker@adacore.com>
8116 Memory error when reading wrong core file.
8117 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
8118 errors while reading the inferior memory, and return zero if
8119 an exception was raised.
8121 2010-03-07 Michael Snyder <msnyder@vmware.com>
8123 * record.c (record_restore): Rename tmpu8 to rectype.
8125 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
8126 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
8128 (i386_record_push): Rename local tmpulongest to addr.
8130 (i386_process_record): Rename local tmpulongest to addr.
8132 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
8135 Rename local variable tmpu8 to opcode8 and regnum.
8137 2010-03-07 Joel Brobecker <brobecker@adacore.com>
8139 * remote.c (remote_get_ada_task_ptid): New function.
8140 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
8142 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
8144 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
8145 block. Define helper macros to reduce ifdefs in code.
8146 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
8147 size. Call unadorned GetModuleFileNameEx rather than
8148 GetModuleFileNameEx*.
8149 (windows_make_so): Use __PMAX to denote maximum buffer size and
8150 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
8152 (get_image_name): Use __PMAX to denote maximum buffer size.
8153 (handle_load_dll): Likewise.
8154 (windows_pid_to_exec_file): Likewise.
8155 (windows_create_inferior): Add many accommodations for older Cygwin and
8157 (bad_GetModuleFileNameExW): Control inclusion of this function based on
8158 __USEWIDE conditional.
8159 (bad_GetModuleFileNameExA): Likewise.
8160 (_initialize_loadable): Just use real function names without the dyn_
8161 part since they are defined earlier.
8163 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
8164 Tom Tromey <tromey@redhat.com>
8166 * utils.c (host_char_to_target): Add 'gdbarch' argument.
8167 (parse_escape): Likewise.
8168 * python/py-utils.c (unicode_to_target_string): Update.
8169 (unicode_to_target_python_string): Update.
8170 (target_string_to_unicode): Update.
8171 * printcmd.c (printf_command): Update.
8172 * p-exp.y (yylex): Update.
8173 * objc-exp.y (yylex): Update.
8174 * mi/mi-parse.c: Include charset.h.
8175 (mi_parse_escape): New function.
8176 (mi_parse_argv): Use it.
8177 * jv-exp.y (yylex): Update.
8178 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
8180 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
8181 * gdbarch.sh (auto_charset, auto_wide_charset): New.
8182 * gdbarch.c: Rebuild.
8183 * gdbarch.h: Rebuild.
8184 * defs.h (parse_escape): Update.
8185 * cli/cli-setshow.c: Include arch-utils.h.
8186 (do_setshow_command): Update.
8187 * cli/cli-cmds.c (echo_command): Update.
8188 * charset.h (target_charset, target_wide_charset): Update.
8189 * charset.c: Include arch-utils.h.
8190 (target_charset_name): Default to "auto".
8191 (target_wide_charset_name): Likewise.
8192 (show_target_charset_name): Handle "auto".
8193 (show_target_wide_charset_name): Likewise.
8194 (be_le_arch): New global.
8195 (set_be_le_names): Add 'gdbarch' argument.
8196 (validate): Likewise. Don't call set_be_le_names.
8197 (set_charset_sfunc, set_host_charset_sfunc)
8198 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
8200 (target_charset): Add 'gdbarch' argument.
8201 (target_wide_charset): Likewise. Remove 'byte_order' argument.
8202 (auto_target_charset_name): New global.
8203 (default_auto_charset, default_auto_wide_charset): New functions.
8204 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
8205 for target charsets. Copy result of nl_langinfo. Use GetACP if
8207 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
8208 remove 'byte_order' argument. Update.
8209 (classify_type): Likewise.
8210 (c_emit_char): Update.
8211 (c_printchar): Update.
8212 (c_printstr): Update.
8213 (c_get_string): Update.
8214 (evaluate_subexp_c): Update.
8215 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
8217 * python/python.c (gdbpy_target_charset): New function.
8218 (gdbpy_target_wide_charset): Likewise.
8219 (GdbMethods): Update.
8222 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
8224 * symfile.c (build_section_addr_info_from_objfile): Do not mask
8225 off high address bits.
8227 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
8229 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
8230 address as UnsignedLongLong, not LongLong.
8232 2010-03-05 Kevin Buettner <kevinb@redhat.com>
8233 Pedro Alves <pedro@codesourcery.com>
8235 * remote-mips.c (gdbthread.h): Include.
8236 (remote_mips_ptid): Declare.
8237 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
8238 (common_open): Set inferior_ptid, add it as an inferior, and
8239 as a thread too. Delete FIXME comment regarding start_remote().
8240 (mips_close): Invoke generic_mourn_inferior().
8241 (mips_kill): Make sure that target_mourn_inferior is invoked.
8242 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
8243 it's now invoked from mips_close().
8244 (mips_load): Don't null out inferior_ptid. Don't call
8245 clear_symtab_users().
8246 (mips_thread_alive, mips_pid_to_str): New functions.
8247 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
8248 to_thread_alive and to_pid_to_str operations.
8250 2010-03-04 Tom Tromey <tromey@redhat.com>
8252 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
8253 in DWARF 3 and later.
8254 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
8256 2010-03-04 Keith Seitz <keiths@redhat.com>
8258 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
8259 If the filename portion of the linespec was quoted, recheck the
8260 remainder for additional quoting.
8261 (locate_first_half): Skip over completer chars, too.
8263 2010-03-04 Tom Tromey <tromey@redhat.com>
8265 * printcmd.c (printf_command): Pass dummy argument to
8268 2010-03-04 Doug Evans <dje@google.com>
8270 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
8273 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
8275 2010-03-04 Pedro Alves <pedro@codesourcery.com>
8277 * breakpoint.c (update_watchpoint): Create a sentinel location if
8278 the software watchpoint isn't watching any memory.
8279 (breakpoint_address_bits): Skip dummy software watchpoint locations.
8281 2010-03-04 Pedro Alves <pedro@codesourcery.com>
8283 * utils.c (fputs_maybe_filtered): Check if there's already a top
8284 level interpreter before dereferencing it. If there isn't one,
8285 don't paginate either.
8287 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8289 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
8290 the state right when single stepping.
8291 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
8292 Get the next PC along with the instruction state.
8293 (thumb_get_next_pc): Remove.
8294 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
8296 2010-03-04 Hui Zhu <teawater@gmail.com>
8298 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
8300 2010-03-03 Pedro Alves <pedro@codesourcery.com>
8302 * utils.c (fputs_maybe_filtered): Always disable pagination if the
8303 top level interpreter is MI.
8305 2010-03-03 Stan Shebs <stan@codesourcery.com>
8307 * remote.c (remote_download_tracepoint): Iterate over locations.
8308 * tracepoint.c (validate_actionline): Ditto.
8309 (encode_actions): Add location argument.
8310 (trace_dump_command): Check all locations to see if stepping
8313 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
8314 Eli Zaretskii <eliz@gnu.org>
8316 * NEWS: Add X86 general purpose registers section.
8318 2010-03-03 Tom Tromey <tromey@redhat.com>
8321 * varobj.c (install_new_value): Handle case where new print_value
8324 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
8327 * printcmd.c (printf_command): Print end of format string using
8330 2010-03-02 Tom Tromey <tromey@redhat.com>
8332 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
8333 * defs.h (read_command_lines_1): Add missing 'void'.
8334 * cli/cli-script.c (recurse_read_control_structure): Add missing
8336 (read_next_line): Likewise.
8337 (read_command_lines_1): Likewise.
8339 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8341 * spu-tdep.c (spu_analyze_prologue): Track instruction to
8342 store backchain as part of prologue.
8344 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
8346 * progspace.c (update_address_spaces): Update inferior address spaces
8349 2010-03-02 Doug Evans <dje@google.com>
8351 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
8352 lowpc,highpc args to addrmap_set_empty.
8354 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
8356 * amd64-tdep.c (amd64_byte_names): New.
8357 (amd64_word_names): Likewise.
8358 (amd64_dword_names): Likewise.
8359 (amd64_pseudo_register_name): Likewise.
8360 (amd64_pseudo_register_read): Likewise.
8361 (amd64_pseudo_register_write): Likewise.
8362 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
8363 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
8364 set_gdbarch_pseudo_register_write and
8365 set_tdesc_pseudo_register_name. Don't call
8366 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
8368 * i386-tdep.c (i386_num_mmx_regs): Removed.
8369 (i386_num_pseudo_regs): Likewise.
8370 (i386_byte_names): New.
8371 (i386_word_names): Likewise.
8372 (i386_byte_regnum_p): Likewise.
8373 (i386_word_regnum_p): Likewise.
8374 (i386_mmx_regnum_p): Updated.
8375 (i386_pseudo_register_name): Make it global. Handle byte and
8376 word pseudo-registers.
8377 (i386_pseudo_register_read): Likewise.
8378 (i386_pseudo_register_write): Likewise.
8379 (i386_pseudo_register_type): Handle byte, word and dword
8381 (i386_register_reggroup_p): Don't include pseudo
8382 registers, except for MXX, in any register groups. Don't
8383 include pseudo byte, word, dword registers in general_reggroup.
8384 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
8385 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
8386 pseudo-registers after word pseudo-registers. Call
8387 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
8389 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
8390 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
8392 (i386_byte_regnum_p): New.
8393 (i386_word_regnum_p): Likewise.
8394 (i386_dword_regnum_p): Likewise.
8395 (i386_pseudo_register_name): Likewise.
8396 (i386_pseudo_register_read): Likewise.
8397 (i386_pseudo_register_write): Likewise.
8399 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
8401 * target-descriptions.c (tdesc_type): Remove
8402 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8403 (tdesc_predefined_types): Likewise.
8404 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
8405 if flag name is empty.
8406 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
8408 * features/i386/32bit-core.xml: Define i386_eflags.
8409 * features/i386/64bit-core.xml: Likewise.
8411 * features/i386/32bit-sse.xml: Define i386_mxcsr.
8412 * features/i386/64bit-sse.xml: Likewise.
8414 * features/i386/amd64-linux.c: Regenerated.
8415 * features/i386/amd64.c: Likewise.
8416 * features/i386/i386-linux.c: Likewise.
8417 * features/i386/i386.c: Likewise.
8419 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
8421 * gdbtypes.c (append_composite_type_field_raw): New.
8422 (append_composite_type_field_aligned): Use the new function.
8423 * gdbtypes.h (append_composite_type_field_raw): Declare.
8424 * target-descriptions.c (struct tdesc_type_field): Add start and end.
8425 (struct tdesc_type_flag): New type.
8426 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
8427 kind. Add size to u.u. Add u.f for flags.
8428 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
8429 (tdesc_free_type): Likewise.
8430 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
8431 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
8432 (tdesc_add_bitfield, tdesc_add_flag): New.
8433 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
8434 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
8435 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
8436 current_type. Add current_type_size and current_type_is_flags.
8437 (tdesc_start_union): Clear the new fields.
8438 (tdesc_start_struct, tdesc_start_flags): New.
8439 (tdesc_start_field): Handle struct fields, including bitfields.
8440 (field_attributes): Make type optional. Add start and end.
8441 (union_children): Rename to struct_union_children.
8442 (union_attributes): Rename to struct_union_attributes. Add optional
8444 (flags_attributes): New.
8445 (feature_children): Add struct and flags.
8446 * features/gdb-target.dtd: Add flags and struct to features.
8447 Make field type optional. Add field start and end.
8449 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
8451 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
8452 (amd64_linux_read_description): Likewise.
8453 (_initialize_amd64_linux_nat): Set to_read_description to
8454 amd64_linux_read_description.
8456 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
8457 (amd64_linux_register_name): Removed.
8458 (amd64_linux_register_type): Likewise.
8459 (amd64_linux_core_read_description): New.
8460 (amd64_linux_init_abi): Set target description to
8461 tdesc_amd64_linux if needed. Support orig_rax in target
8462 description. Don't call set_gdbarch_register_name nor
8463 set_gdbarch_register_type. Call
8464 set_gdbarch_core_read_description.
8465 (_initialize_amd64_linux_tdep): Call
8466 initialize_tdesc_amd64_linux.
8468 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
8470 * amd64-tdep.c: Include "features/i386/amd64.c".
8471 (amd64_register_names): Removed.
8472 (amd64_register_name): Likewise.
8473 (amd64_register_type): Likewise.
8474 (amd64_init_abi): Set num_core_regs and register_names. Set
8475 target description to tdesc_amd64 if needed. Don't call
8476 set_gdbarch_register_name nor set_gdbarch_register_type.
8477 (_initialize_amd64_tdep): New.
8479 * i386-linux-nat.c (i386_linux_read_description): New.
8480 (_initialize_i386_linux_nat): Set to_read_description to
8481 i386_linux_read_description.
8483 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
8484 (i386_linux_register_name): Removed.
8485 (i386_linux_core_read_description): New.
8486 (i386_linux_read_description): Likewise.
8487 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
8488 Set target description to tdesc_i386_linux if needed. Support
8489 orig_eax. Set register_reggroup_p. Call
8490 set_gdbarch_core_read_description.
8491 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
8493 * i386-linux-tdep.h (tdesc_i386_linux): New.
8495 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
8498 * i386-tdep.c: Include "features/i386/i386.c".
8499 (i386_register_names): Make it const.
8500 (i386_mmx_names): Likewise.
8501 (i386_num_register_names): Removed.
8502 (i386_register_name): Likewise.
8503 (i386_eflags_type): Likewise.
8504 (i386_mxcsr_type): Likewise.
8505 (i386_sse_type): Likewise.
8506 (i386_register_type): Likewise.
8507 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
8508 (i386_pseudo_register_name): New.
8509 (i386_pseudo_register_type): Likewise.
8510 (i386_mmx_type): Make it static.
8511 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
8512 I387_NUM_REGS. Set num_core_regs and register_names. Don't
8513 call set_gdbarch_register_name nor set_gdbarch_register_type.
8514 Set register_reggroup_p. Set target description to tdesc_i386
8515 if needed. Call set_tdesc_pseudo_register_type,
8516 set_tdesc_pseudo_register_name and tdesc_use_registers.
8517 (_initialize_i386_tdep): Call initialize_tdesc_i386.
8518 initialize_tdesc_x86_64.
8520 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
8521 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
8522 register_names, tdesc and register_reggroup_p.
8523 (I386_NUM_FREGS): Removed.
8524 (i386_eflags_type): Likewise.
8525 (i386_mxcsr_type): Likewise.
8526 (i386_mmx_type): Likewise.
8527 (i386_sse_type): Likewise.
8528 (i386_register_name): Likewise.
8529 (i386_regnum): Add I386_MXCSR_REGNUM.
8530 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
8532 * i387-tdep.h (I387_NUM_REGS): New.
8534 * regformats/i386/i386-linux.dat: Generated.
8535 * regformats/i386/i386.dat: Likewise.
8536 * regformats/i386/amd64-linux.dat: Likewise.
8537 * regformats/i386/amd64.dat: Likewise.
8539 * regformats/reg-i386-linux.dat: Removed.
8540 * regformats/reg-i386.dat: Likewise.
8541 * regformats/reg-x86-64-linux.dat: Likewise.
8542 * regformats/reg-x86-64.dat: Likewise.
8544 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
8546 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
8547 cygwin_conv_path API rather than the deprecated
8548 cygwin_conv_to_full_posix_path.
8550 (GetModuleFileNameExA): Undefine for Cygwin.
8551 (GetModuleFileNameExW): Define for Cygwin.
8552 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
8553 Call GetModuleFileNameExW and convert path to POSIX using
8555 (windows_make_so): Always define p. Drop unused variable m.
8556 Don't use Win32 functions to check file existance, rather use
8557 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
8558 Use canonicalize_file_name to get full path.
8559 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
8560 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
8561 use correct target buffer size in call to WideCharToMultiByte.
8562 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
8563 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
8564 (windows_create_inferior): Convert all paths and arguments to wchar_t
8565 and use CreateProcessW on Cygwin.
8566 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
8567 (bad_GetModuleFileNameExA): Undefine for Cygwin.
8568 (bad_GetModuleFileNameExW): Define for Cygwin.
8569 (_initialize_loadable): Load GetModuleFileNameExW into
8570 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
8572 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
8575 * python/py-frame.c (frapy_read_var): Add block argument and logic
8576 to cope with user provided blocks.
8578 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8580 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
8583 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
8585 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
8586 (COMMON_OBS): ... to here since it's used unconditionally.
8587 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
8590 2010-02-26 David Daney <ddaney@caviumnetworks.com>
8592 * mips-linux-tdep.c: Update struct sigframe comments.
8593 (SIGFRAME_CODE_OFFSET): Delete macro.
8594 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
8596 (mips_linux_n32n64_sigframe_init): Same.
8598 2010-02-26 Kevin Buettner <kevinb@redhat.com>
8600 * remote-mips.c (mips_load): Don't use pseudo-register when
8601 invalidating regcache.
8603 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8605 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
8607 2010-02-26 Pedro Alves <pedro@codesourcery.com>
8609 * NEWS: Add "New targets" section, and mention ARM Symbian
8612 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
8614 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
8615 add ADDR_SIZE member.
8616 (allocate_piece_closure): Update.
8617 (copy_pieced_value_closure): Likewise.
8618 (dwarf2_evaluate_loc_desc): Likewise.
8619 (read_pieced_value): Use DWARF address size instead of
8620 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
8622 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
8623 Tom Tromey <tromey@redhat.com>
8625 * python/py-type.c (typy_lookup_typename): Add in block argument.
8626 If provided restrict lookup to specified blocks.
8627 (gdbpy_lookup_type): Likewise.
8628 (typy_lookup_type): Likewise.
8630 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8635 * arm-symbian-tdep.c: New.
8636 * configure.tgt (arm*-*-symbianelf*): New target.
8637 (*-*-symbianelf*): New OS.
8638 * osabi.c (gdb_osabi_names): Add Symbian.
8639 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
8640 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
8641 (ALLDEPFILES): Add arm-symbian-tdep.c.
8643 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8645 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
8647 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8649 * mi/mi-main.c (mi_cmd_execute): Fix typo.
8651 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
8652 Tom Tromey <tromey@redhat.com>
8653 Thiago Jung Bauermann <bauerman@br.ibm.com>
8655 * python/python.c (_initialize_python): Call
8656 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
8657 gdbpy_initialize_blocks.
8658 * python/python-internal.h: Declare struct symbol, block and
8659 symtab_and_line. Declare block_object_type and
8661 (gdbpy_lookup_symbol gdbpy_block_for_pc)
8662 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
8663 (symbol_to_symbol_object, block_to_block_object)
8664 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
8665 (gdbpy_initialize_blocks ): Declare.
8666 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
8667 (frapy_select): Add methods.
8668 (frapy_read_var): Add symbol branch.
8669 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
8671 (SUBDIR_PYTHON_SRCS): Likewise.
8672 (py-symbol.o): New rule.
8673 (py-symtab.o): Likewise.
8674 (py-block.o): Likewise.
8675 * python/py-symbol.c: New file.
8676 * python/py-symtab.c: Likewise.
8677 * python/py-block.c: Likewise.
8679 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8683 * inferior.h (prepare_for_detach): Declare.
8684 (struct inferior) <detaching>: New field.
8685 * infrun.c (prepare_for_detach): New.
8686 (handle_inferior_event) <random signal>: Don't stop if detaching.
8687 * target.c (target_detach): Call prepare_for_detach.
8689 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8691 Per-process displaced stepping queue.
8693 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
8694 (displaced_step_gdbarch, displaced_step_closure,
8695 (displaced_step_original, displaced_step_copy): Move globals to
8697 (struct displaced_step_inferior_state): ... new structure.
8698 (displaced_step_inferior_states): New global.
8699 (get_displaced_stepping_state, add_displaced_stepping_state)
8700 (remove_displaced_stepping_state, infrun_inferior_exit): New
8702 (displaced_step_clear): Add displaced_step_inferior_state
8703 parameter, and adjust to handle it.
8704 (displaced_step_clear_cleanup): Parameter is now a
8705 displaced_step_inferior_state. Adjust.
8706 (displaced_step_prepare): Adjust.
8707 (displaced_step_fixup, displaced_step_fixup)
8708 (infrun_thread_ptid_changed, resume): Adjust.
8709 (init_wait_for_inferior): Don't call displaced_step_clear.
8710 (infrun_thread_stop_requested): Rewrite.
8711 (_initialize_infrun): Install infrun_inferior_exit as
8712 inferior_exit observer.
8714 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8716 * inferior.h (ptid_match): Declare.
8717 * infrun.c (ptid_match): New.
8718 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
8719 (handle_notification): Add debug output.
8720 * linux-nat.c (ptid_match): Delete.
8722 2010-02-24 David S. Miller <davem@davemloft.net>
8724 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
8725 * syscalls/sparc-linux.xml: New.
8726 * syscalls/sparc64-linux.xml: New.
8727 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
8728 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
8729 (sparc32_linux_get_syscall_number): New function.
8730 (sparc32_linux_init_abi): Set syscall XML file name and hook up
8731 syscall number fetcher.
8732 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
8733 (sparc64_linux_get_syscall_number): New function.
8734 (sparc64_linux_init_abi): Set syscall XML file name and hook up
8735 syscall number fetcher.
8737 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
8741 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
8742 * inferior.c (add_inferior_silent): Notify inferior_added
8744 (delete_inferior_1): Notify inferior_removed observer.
8745 (exit_inferior_1): Pass inferior, not pid, to observer.
8746 (inferior_appeared): Likewise.
8747 (add_inferior_with_spaces): New.
8748 (add_inferior_command): Use the above.
8749 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
8752 * inflow.c (inflow_inferior_exit): Likewise.
8753 * jit.c (jit_inferior_exit_hook): Likewise.
8755 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
8757 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
8758 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
8759 (report_initial_inferior): New.
8760 (mi_inferior_removed): Register the above. Make sure
8761 inferior_added observer is called on the first inferior.
8762 (mi_new_thread, mi_thread_exit): Thread group is now identified by
8763 inferior number, not pid.
8764 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
8766 * mi/mi-main.c (current_context): New.
8767 (proceed_thread_callback): Use typed closure.
8768 Proceed everything if pid is 0. Most implementation split into
8769 (proceed_thread): ... this.
8770 (run_one_inferior): New.
8771 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
8772 Adjust for multiexec behaviour.
8773 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
8774 (mi_cmd_execute): Handle the 'thread-group' option here.
8775 Do some extra checks.
8776 * mi-parse.c (mi_parse): Handle the --all and --thread-group
8778 * mi-parse.h (struct mi_parse): New fields all and thread_group.
8780 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
8782 Make -exec-run a proper MI commands.
8784 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
8785 * mi/mi-cmds.c (mi_cmds): Adjust.
8786 * mi/mi-main.c (mi_cmd_exec_run): New.
8788 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8789 Stan Shebs <stan@codesourcery.com>
8791 * tracepoint.h (set_traceframe_number)
8792 (cleanup_restore_current_traceframe): Declare.
8793 * tracepoint.c (set_traceframe_number): New.
8794 (struct current_traceframe_cleanup): New.
8795 (do_restore_current_traceframe_cleanup)
8796 (restore_current_traceframe_cleanup_dtor)
8797 (make_cleanup_restore_current_traceframe): New.
8798 * infrun.c: Include tracepoint.h.
8799 (fetch_inferior_event): Switch out and in of tfind mode.
8801 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8803 * breakpoint.c (breakpoint_init_inferior): Also delete
8804 bp_shlib_event breakpoints.
8805 * solib-frv.c (enable_break): Remove call to
8806 remove_solib_event_breakpoints.
8807 * solib-svr4.c (enable_break): Ditto.
8808 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
8809 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
8810 * solib-som.c (som_solib_create_inferior_hook): Ditto.
8811 * solib-spu.c (spu_enable_break): Ditto.
8813 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
8815 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
8817 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
8819 * varobj.c (varobj_update): Avoid non-constants in initializers.
8821 2010-02-23 Tom Tromey <tromey@redhat.com>
8823 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
8824 handle big-endian values.
8825 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
8827 2010-02-22 Pedro Alves <pedro@codesourcery.com>
8832 * breakpoint.c (insert_bp_location): If inserting the read
8833 watchpoint failed, fallback to an access watchpoint.
8834 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
8835 if the value changed, if not watching the same memory for writes.
8836 (watchpoint_locations_match): Add comment.
8837 (update_global_location_list): Copy the location's watchpoint type.
8838 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
8839 handle read watchpoints here.
8840 (i386_insert_watchpoint): Read watchpoints aren't supported.
8841 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
8843 * target.h (target_insert_watchpoint): Update description.
8845 2010-02-19 Tom Tromey <tromey@redhat.com>
8847 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
8848 * m2-typeprint.c (m2_print_type): Update.
8849 * gdbtypes.c (recursive_dump_type): Update.
8850 (copy_type_recursive): Update.
8851 * c-typeprint.c (c_type_print_varspec_prefix): Update.
8852 (c_type_print_base): Update.
8853 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
8855 (struct cplus_struct_type) <ntemplate_args>: Remove.
8856 <struct template_arg>: Remove.
8857 <is_dynamic>: Move earlier.
8858 (TYPE_TEMPLATE_ARGS): Remove.
8859 (TYPE_NTEMPLATE_ARGS): Remove.
8860 (TYPE_TEMPLATE_ARG): Remove.
8862 2010-02-19 Tom Tromey <tromey@redhat.com>
8864 PR c++/8693, PR c++/9496:
8865 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
8866 * c-exp.y (lex_one_token): Rename from yylex. Don't call
8867 write_dollar_variable. Don't try to classify NAME tokens.
8868 (token_and_value): New type.
8869 (token_fifo, popping, name_obstack): New globals.
8870 (classify_name): New function.
8871 (classify_inner_name): Likewise.
8873 (VARIABLE): Now has type sval.
8874 (exp : VARIABLE): Call write_dollar_variable.
8875 (qualified_name): Use TYPENAME, not typebase. Add production for
8876 multiple "::" instances.
8877 (variable): Use name_not_typename.
8878 (qualified_type): Remove.
8881 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8883 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
8884 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
8885 found by bfd_get_section_by_name.
8886 * symfile.h (struct section_addr_info) <sectindex>: New comment.
8888 2010-02-19 Joel Brobecker <brobecker@adacore.com>
8890 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
8891 7.0 section" into "Changes in 7.1".
8893 2010-02-19 Joel Brobecker <brobecker@adacore.com>
8895 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
8896 * version.in: Bump version to 7.1.50.20100219-cvs.
8898 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
8900 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
8901 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
8903 2010-02-17 Tom Tromey <tromey@redhat.com>
8905 * NEWS: Add Python API Improvements section.
8907 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
8909 * NEWS: Correct typo.
8911 2010-02-17 Tom Tromey <tromey@redhat.com>
8913 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
8915 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8917 * symfile.c (build_section_addr_info_from_objfile): Include sections
8918 only if they are SEC_ALLOC or SEC_LOAD.
8920 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
8923 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
8924 of ULONGEST for address size.
8926 2010-02-17 Tom Tromey <tromey@redhat.com>
8928 * NEWS: Add C++ improvements section.
8930 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
8932 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
8933 PyThreadState_Swap): Avoid "statement with no effect" warning.
8935 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8937 * solib-svr4.c (enable_break <target_auxv_search>): New variable
8938 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
8940 2010-02-17 Tristan Gingold <gingold@adacore.com>
8941 Petr Hluzin <petr.hluzin@gmail.com>
8943 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
8944 gdb_assert. Fix info->size for SIG prologue.
8946 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8948 * infcmd.c (show_inferior_tty_command): Check for NULL.
8949 Correct output message.
8951 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8953 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
8954 FUNCTION contains parentheses. Improve removal of a trailing
8957 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8959 * gcore.c (do_bfd_delete_cleanup): New function.
8960 (gcore_command): Use it. Discard the cleanup after success.
8961 (gcore_copy_callback): Delete dead code.
8963 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8965 * symfile.c (addr_info_make_relative): Always use
8966 find_lowest_section.
8968 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
8970 * NEWS: Added entry for namespace fixes.
8972 2010-02-15 Tom Tromey <tromey@redhat.com>
8974 * dwarf2read.c (guess_structure_name): Allocate name on the
8977 2010-02-15 Tom Tromey <tromey@redhat.com>
8979 * c-typeprint.c (c_type_print_base): Reverse order of test.
8981 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8983 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
8984 initialize it from ELF BFD. Extend the prelink condition by it.
8986 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8988 * defs.h (parse_pid_to_attach): New.
8989 * utils.c (parse_pid_to_attach): New.
8990 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
8991 * gnu-nat.c (gnu_attach): Likewise.
8992 * nto-procfs.c (procfs_attach): Likewise.
8993 * procfs.c (procfs_attach): Likewise.
8994 * windows-nat.c (windows_attach): Likewise.
8995 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
8996 * inf-ttrace.c (inf_ttrace_attach): Likewise.
8997 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
9000 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
9002 * MAINTAINERS: Add myself for write after approval privileges.
9004 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9006 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
9009 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9011 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
9012 only if INFO_VERBOSE.
9014 2010-02-12 Tomas Holmberg <th@virtutech.com>
9016 * mi/mi-main.c: Added the --reverse flag to the following MI
9017 commands: exec-continue, exec-finish, exec-next, exec-step,
9018 exec-next-instruction, exec-step-instruction. This is to
9019 support reverse execution over the MI interface to gdb.
9021 2010-02-12 Pedro Alves <pedro@codesourcery.com>
9023 * tracepoint.c (_initialize_tracepoint): Specify that the address
9024 range of `tfind outsize' is exclusive, and that the address range
9025 of `tfind range' is inclusive, in the commands' help strings.
9027 2010-02-12 Joel Brobecker <brobecker@adacore.com>
9029 Spurious "dll not found" error messages on x64-windows.
9030 * windows-nat.c: Add include of complaints.h.
9031 (handle_unload_dll): Change dll-not-found error into a complaint.
9033 2010-02-12 Pedro Alves <pedro@codesourcery.com>
9035 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
9036 bp_tracepoint and bp_fast_tracepoint, not
9037 bp_loc_software_breakpoint.
9038 (update_global_location_list): Tracepoints are never duplicates of
9041 2010-02-12 Pedro Alves <pedro@codesourcery.com>
9043 * breakpoint.c (break_command_really): Change return type to int.
9044 Return false if no breakpoint was created, true otherwise.
9045 (trace_command): Don't set the tracepoint count if no tracepoint
9047 (ftrace_command): Ditto.
9048 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
9049 created in the breakpoints table.
9051 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9052 Ulrich Weigand <uweigand@de.ibm.com>
9054 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
9056 2010-02-11 Pedro Alves <pedro@codesourcery.com>
9058 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
9059 the offset value isn't of integral type.
9061 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9063 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
9066 2010-02-11 Pedro Alves <pedro@codesourcery.com>
9068 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
9069 non-subscriptable types.
9070 * valarith.c (binop_types_user_defined_p): New, abstracted out
9072 (binop_user_defined_p): ... this.
9073 * value.h (binop_types_user_defined_p): Declare.
9075 2010-02-11 Pedro Alves <pedro@codesourcery.com>
9077 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
9078 Merge uploaded TSVs before merging uploaded tracepoints.
9080 2010-02-11 Pedro Alves <pedro@codesourcery.com>
9082 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
9084 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
9086 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
9087 whitespace character after a dot in comment.
9088 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
9090 (list_args_or_locals): For the 'all' (that is
9091 -stack-list-variables) case, always output list of tuples.
9092 Output 'arg' field if variable is argument.
9094 2010-02-10 Tom Tromey <tromey@redhat.com>
9096 * parser-defs.h (parser_debug): Declare.
9097 * parse.c (_initialize_parse): Install "debug parser" set/show
9099 (parser_debug): New global.
9100 (show_parserdebug): New function.
9101 * c-exp.y (c_parse): Set yydebug.
9103 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
9105 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
9106 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9107 (tdesc_predefined_types): Add i387_ext, i386_eflags and
9109 (tdesc_find_type): New.
9110 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
9111 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9113 * target-descriptions.h (tdesc_find_type): New.
9115 2010-02-10 Michael Snyder <msnyder@vmware.com>
9117 * gdb-gdb.py: Comment fix.
9119 2010-02-09 Tristan Gingold <gingold@adacore.com>
9121 * machoread.c (macho_symfile_relocate): New function.
9122 (macho_sym_fns): Use macho_symfile_relocate instead of
9123 default_symfile_relocate.
9124 (macho_oso_data): New type.
9125 (current_oso): New variable.
9126 (macho_add_oso_symfile): Do not compute section_addr_info, but
9127 instead set vma of sections.
9128 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
9129 Set and clear current_oso.
9131 2010-02-09 Joel Brobecker <brobecker@adacore.com>
9133 Wrong type description for tagged type parameter.
9134 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
9135 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
9136 reference to a tagged type.
9138 2010-02-09 Tristan Gingold <gingold@adacore.com>
9140 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
9141 brothers of the parent.
9143 2010-02-08 Tom Tromey <tromey@redhat.com>
9147 * valops.c (search_struct_field): Make 'name' const.
9148 (search_struct_method): Likewise.
9149 (find_method_list): Make 'method' const.
9150 (value_struct_elt): Make 'name' and 'err' const.
9151 (value_find_oload_method_list): Make 'method' const.
9152 (find_overload_match): Make 'name' const.
9153 * eval.c (evaluate_subexp_standard): New locals function,
9155 <OP_FUNCALL>: Handle OP_SCOPE specially.
9157 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9159 * infrun.c (handle_inferior_event): Do not look up regcache
9160 for exited processes.
9162 2010-02-08 Chris Moller <moller@mollerware.com>
9165 * valarith.c (value_ptrdiff): Added a test for a zero type length,
9166 warn if found, and assume length = 1.
9168 2010-02-08 Chris Moller <cmoller@redhat.com>
9171 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
9172 (cp_print_static_field) Fix use of obstacks.
9174 2010-02-08 Pedro Alves <pedro@codesourcery.com>
9176 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
9177 resumed LWPs as resumed.
9178 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
9179 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
9180 of throwing an internal error. If an LWP of a process we're not
9181 waiting for reports a signal, don't force collecting a SIGSTOP,
9182 and if it was breakpoint hit in non-stop mode, cancel it. Don't
9183 go through all LWPs cancelling breakpoints in non-stop mode.
9184 (resume_stopped_resumed_lwps): New.
9185 (linux_nat_wait): Use it.
9187 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
9189 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
9190 i386/amd64 and i386/amd64-linux.
9191 (i386/i386-expedite): New.
9192 (i386/i386-linux-expedite): Likewise.
9193 (i386/amd64-expedite):Likewise.
9194 (i386/amd64-linux-expedite): Likewise.
9195 ($(outdir)/i386/i386-linux.dat): Likewise.
9196 ($(outdir)/i386/amd64.dat): Likewise.
9197 ($(outdir)/i386/amd64-linux.dat): Likewise.
9199 * features/i386/32bit-core.xml: New.
9200 * features/i386/32bit-linux.xml: Likewise.
9201 * features/i386/32bit-sse.xml: Likewise.
9202 * features/i386/64bit-core.xml: Likewise.
9203 * features/i386/64bit-linux.xml: Likewise.
9204 * features/i386/64bit-sse.xml: Likewise.
9205 * features/i386/i386-linux.xml: Likewise.
9206 * features/i386/i386.xml: Likewise.
9207 * features/i386/amd64-linux.xml: Likewise.
9208 * features/i386/amd64.xml: Likewise.
9209 * features/i386/i386-linux.c: Likewise.
9210 * features/i386/i386.c: Likewise.
9211 * features/i386/amd64-linux.c: Likewise.
9212 * features/i386/amd64.c: Likewise.
9214 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
9217 * cp-support.h: Added char* alias element to using_direct data
9219 (cp_add_using): Added char* alias argument.
9220 (cp_add_using_directive): Ditto.
9221 * cp-namespace.c: Updated with the above changes.
9222 (cp_lookup_symbol_imports): Check for aliases.
9223 * dwarf2read.c (read_import_statement): Figure out local alias
9224 for the import and pass it on to cp_add_using.
9225 (read_namespace): Pass alias argument to cp_add_using.
9227 2010-02-05 Hui Zhu <teawater@gmail.com>
9229 * defs.h (gdb_bfd_errmsg): New extern.
9230 * exec.c (exec_file_attach): Change bfd_errmsg to
9232 * utils.c (AMBIGUOUS_MESS1): New macro.
9233 (AMBIGUOUS_MESS2): New macro.
9234 (gdb_bfd_errmsg): New function.
9236 2010-02-04 Doug Evans <dje@google.com>
9238 * solib-svr4.c (enable_break): Add comment.
9240 2010-02-04 Anthony Green <green@moxielogic.com>
9242 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
9245 2010-02-04 Tom Tromey <tromey@redhat.com>
9247 * valops.c (search_struct_field): Account for
9248 value_embedded_offset. Fix check for virtual base past the end of
9249 the object. Use value_copy when making a slice of the value.
9251 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
9254 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
9255 only if gdb_stdout is a tty.
9257 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
9259 * target-descriptions.c: Include "osabi.h".
9260 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
9263 2010-02-04 Tristan Gingold <gingold@adacore.com>
9265 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
9266 (macho_symtab_read): Adjust calls to macho_add_oso.
9267 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
9268 (macho_symfile_read): Adjust call to macho_oso_symfile.
9269 (macho_new_init): Move this function after declarations.
9270 (macho_symfile_init): Ditto.
9271 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
9272 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
9274 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
9276 Include MI command in remotelog.
9278 * mi/mi-main.c (mi_execute_command): Call target_log_command.
9280 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9282 * remote.c (remote_state): Remove gdbarch.
9283 (init_remote_state): Don't set gdbarch.
9284 (remote_query_supported): Pass target_gdbarch instead of
9285 rs->gdbarch to gdbarch_qsupported.
9287 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9289 * gdbarch.sh: Add qsupported.
9291 * gdbarch.c: Regenerated.
9292 * gdbarch.h: Likewise.
9294 * remote.c (remote_state): Add gdbarch.
9295 (init_remote_state): Set gdbarch.
9296 (remote_query_supported): Support gdbarch_qsupported.
9298 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
9300 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
9301 __FreeBSD_kernel_version.
9303 2010-02-03 Tristan Gingold <gingold@adacore.com>
9305 * symfile.h (struct sym_fns): Add sym_relocate field.
9306 (default_symfile_relocate): New prototype.
9307 (symfile_relocate_debug_section): First argument is now an objfile.
9308 * symfile.c (default_symfile_relocate): Rename from
9309 symfile_relocate_debug_section, first argument is now an objfile.
9310 (symfile_relocate_debug_section): New function.
9311 * coffread.c (coff_sym_fns): Set sym_relocate field.
9312 * somread.c (som_sym_fns): Ditto.
9313 * mipsread.c (ecoff_sym_fns): Ditto.
9314 * machoread.c (macho_sym_fns): Ditto.
9315 * elfread.c (elf_sym_fns): Ditto.
9316 * dwarf2read.c (dwarf2_read_section): Ditto.
9317 * xcoffread.c (xcoff_sym_fns): Ditto.
9318 * dbxread.c (aout_sym_fns): Ditto.
9319 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
9320 (elfstab_build_psymtabs): Ditto.
9322 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9324 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
9326 2010-02-02 Tom Tromey <tromey@redhat.com>
9328 * valops.c (value_cast_structs): Try downcasting using the RTTI
9331 2010-02-02 Tom Tromey <tromey@redhat.com>
9333 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
9334 (gnuv2_baseclass_offset): Now static.
9335 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
9336 * gnu-v2-abi.h: Remove.
9338 2010-02-02 Tom Tromey <tromey@redhat.com>
9340 * m2-typeprint.c (m2_record_fields): Don't use
9342 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
9343 (struct main_type) <flag_declared_class>: New field.
9344 (struct cplus_struct_type) <declared_type>: Remove.
9345 <ntemplate_args>: Move earlier.
9346 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
9347 (DECLARED_TYPE_TEMPLATE): Remove.
9348 (TYPE_DECLARED_TYPE): Remove.
9349 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
9350 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
9351 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
9354 2010-02-02 Tom Tromey <tromey@redhat.com>
9356 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
9357 * valops.c (search_struct_field): Compute nbases after calling
9359 (check_field): Call CHECK_TYPEDEF.
9360 * cp-valprint.c (cp_print_value): Pass correct address to
9361 baseclass_offset. Fix check for virtual base past the end of the
9362 object. Don't offset address passed to cp_print_value_fields or
9363 apply_val_pretty_printer.
9364 (cp_print_value_fields): Fix call to val_print.
9365 (cp_print_value_fields_rtti): New function.
9366 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
9367 * p-valprint.c (pascal_object_print_value_fields): Fix call to
9369 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
9371 * language.h (struct language_defn) <la_val_print>: Document.
9372 * c-lang.h (cp_print_value_fields_rtti): Declare.
9374 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9377 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9378 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
9379 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9381 2010-02-01 Michael Matz <matz@suse.de>
9382 Daniel Jacobowitz <dan@codesourcery.com>
9384 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
9385 functions use a frame pointer.
9387 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9389 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
9390 by a conditional setting DYN_ADDR. Use DYN_ADDR.
9391 * config/djgpp/fnchange.lst: Add translations for
9392 symbol-without-target_section.exp and symbol-without-target_section.c.
9394 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9396 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
9397 (remote_breakpoint_for_pc): Correct invalid_p check.
9398 * gdbarch.c: Regenerated.
9400 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9402 * arm-tdep.c (arm_find_mapping_symbol): New function, from
9404 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
9405 (extend_buffer_earlier): New function.
9406 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
9407 (arm_adjust_breakpoint_address): New function.
9408 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
9410 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9412 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
9413 (arm_linux_thumb2_le_breakpoint): New constants.
9414 (arm_linux_init_abi): Set thumb2_breakpoint and
9415 thumb2_breakpoint_size.
9416 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
9417 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
9418 Implement support for single stepping through IT blocks if
9419 a 32-bit Thumb breakpoint instruction is available.
9420 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
9421 is available, use it when needed.
9422 (arm_remote_breakpoint_from_pc): New function.
9423 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
9424 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
9425 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
9427 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9429 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
9430 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
9431 * gdbarch.c, gdbarch.h: Regenerated.
9432 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
9433 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
9434 gdbarch_remote_breakpoint_from_pc.
9436 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9438 * infrun.c (prepare_to_proceed): Handle other signals which might
9440 (handle_inferior_event): Move the check for unusual breakpoint
9443 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
9445 amd64 - function returning record with field straddling 2 registers.
9446 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
9447 a record of length <= 16 in which a field straddles the two
9450 2010-01-29 Joel Brobecker <brobecker@adacore.com>
9452 Implement return values on amd64-windows.
9453 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
9454 (amd64_windows_return_value): New function.
9455 (amd64_windows_init_abi): Call set_gdbarch_return_value with
9456 amd64_windows_return_value.
9458 2010-01-29 Joel Brobecker <brobecker@adacore.com>
9460 amd64-windows: 32 bytes allocated on stack by caller for integer
9461 parameter registers.
9462 * i386-tdep.h (struct gdbarch_tdep): Add new field
9463 integer_param_regs_saved_in_caller_frame.
9464 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
9465 tdep->integer_param_regs_saved_in_caller_frame to 1.
9466 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
9467 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
9469 2010-01-29 Joel Brobecker <brobecker@adacore.com>
9471 amd64-windows: memory args passed by pointer during function calls.
9472 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
9473 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
9474 where tdep->memory_args_by_pointer is non-zero.
9475 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
9476 tdep->memory_args_by_pointer to 1.
9478 2010-01-29 Joel Brobecker <brobecker@adacore.com>
9480 amd64-windows: Integer parameters in function calls.
9481 * i386-tdep.h (enum amd64_reg_class): New, moved here from
9483 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
9484 call_dummy_integer_regs, and classify.
9485 * amd64-tdep.h (amd64_classify): Add declaration.
9486 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
9487 (amd64_reg_class): Delete, moved to i386-tdep.h.
9488 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
9489 Replace call to amd64_classify by call to tdep->classify.
9490 (amd64_push_arguments): Get the list of registers to use for
9491 passing integer parameters from the gdbarch tdep structure,
9492 rather than using a hardcoded one. Replace calls to amd64_classify
9493 by calls to tdep->classify.
9494 (amd64_push_dummy_call): Get the register number used for
9495 the "hidden" argument from tdep->call_dummy_integer_regs.
9496 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
9497 and tdep->call_dummy_integer_regs. Set tdep->classify.
9498 * amd64-windows-tdep.c: Add include of gdbtypes.h.
9499 (amd64_windows_dummy_call_integer_regs): New static global.
9500 (amd64_windows_classify): New function.
9501 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
9502 tdep->call_dummy_integer_regs and tdep->classify.
9504 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
9506 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
9507 for the new regcache. All callers updated.
9508 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
9509 (get_thread_arch_regcache): Do not set aspace here.
9510 * regcache.h (regcache_xmalloc): Update declaration.
9512 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
9513 regcache_xmalloc updated.
9515 2010-01-28 Joel Brobecker <brobecker@adacore.com>
9517 Another -Wunused-function error in procfs.c (sparc-solaris)
9518 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
9519 Only define if SYS_syssgi is defined.
9520 (remove_dbx_link_breakpoint): Delete declaration. Move up.
9521 (dbx_link_addr, insert_dbx_link_bpt_in_file)
9522 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
9525 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
9527 * windows-nat.c (windows_initialization_done): New variable.
9528 (get_windows_debug_event): Issue error when process dies before
9529 completely initializing.
9530 (do_initial_windows_stuff): Set flag to indicate when we are done with
9531 the initial steps of attaching to the child.
9533 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9535 * symtab.h (struct symbol <symtab>): New comment on NULL values.
9537 2010-01-27 Doug Evans <dje@google.com>
9539 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
9541 * breakpoint.c (bpstat_stop_status): Delete useless code.
9543 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9545 * printcmd.c (display_uses_solib_p): Remove variable section. Access
9546 objfile via SYMBOL_SYMTAB.
9548 2010-01-26 Tom Tromey <tromey@redhat.com>
9551 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
9552 coerce_array on result.
9554 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
9556 * cp-namespace.c (cp_lookup_symbol_namespace): Added
9557 search_parent argument.
9558 (cp_add_using): Initialize 'searched' field.
9559 (reset_directive_searched): New function.
9560 * cp-support.h: Add 'searched' field to using_direct struct.
9561 (cp_lookup_symbol_imports): Ditto.
9562 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
9563 Perform recursive search.
9564 Implement non parent search.
9565 * valops.c (value_maybe_namespace_elt): Updated.
9567 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
9570 * dwarf2read.c (read_lexical_block_scope): Create blocks for
9571 scopes which contain using directives even if they contain no
9573 * symtab.c (lookup_symbol_aux): Pass lowest level block to
9574 la_lookup_symbol_nonlocal.
9575 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
9576 cp_lookup_symbol_namespace.
9577 (cp_lookup_symbol_namespace): Perform an import lookup at every
9579 (cp_lookup_symbol_imports): New function.
9580 (cp_lookup_symbol_in_namespace): New function.
9582 2010-01-25 Tom Tromey <tromey@redhat.com>
9585 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
9588 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9590 * configure.ac: Only use host_os part when disabling TUI on osf.
9591 Use test to check variables, prefix strings with x.
9592 * configure: Regenerate.
9594 * solib-osf.c (osf_current_sos): Initialize tail.
9596 2010-01-25 gingold <gingold@adacore.com>
9598 * windows-nat.c (windows_continue): Use %x to print thread id.
9599 (get_windows_debug_event): Ditto.
9601 2010-01-22 Tom Tromey <tromey@redhat.com>
9604 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
9605 type and arguments. Use smash_to_methodptr_type.
9606 (read_structure_type): Call quirk_gcc_member_function_pointer
9608 * gdbtypes.h (smash_to_methodptr_type): Declare.
9609 * gdbtypes.c (smash_to_methodptr_type): New function.
9610 (lookup_methodptr_type): Use it.
9612 2010-01-21 Tom Tromey <tromey@redhat.com>
9615 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
9616 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
9617 * glibc-tdep.c (find_minsym_and_objfile): Remove.
9618 (glibc_skip_solib_resolver): Use
9619 lookup_minimal_symbol_and_objfile.
9621 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
9623 * inflow.c (check_syscall): Guard by #if clause for GO32 and
9626 2010-01-20 Tom Tromey <tromey@redhat.com>
9629 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
9630 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
9631 * dwarf2expr.c (new_dwarf_expr_context): Allocate
9632 dwarf_stack_values, not CORE_ADDRs.
9633 (execute_stack_op): Change DW_OP_div and comparison operators to
9634 use signed operands.
9636 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
9638 Per-inferior args and tty and environment.
9640 * infcmd.c (inferior_args): Rename to ...
9641 (inferior_args_scratch): ... this.
9642 (inferior_io_terminal): Rename to ...
9643 (inferior_io_terminal_scratch): ... this.
9644 (inferior_argc, inferior_argv): Remove.
9645 (set_inferior_io_terminal, get_inferior_io_terminal): Store
9646 inside current_inferior().
9647 (set_inferior_tty_command, show_inferior_tty_command): New.
9648 (get_inferior_args, set_inferior_args): Store inside
9650 (notice_args_set): Likewise and rename to...
9651 (set_args_command): ... this.
9652 (set_inferior_args_vector): Likewise.
9653 (notice_args_read): Rename to...
9654 (show_args_command): ...new.
9655 (tty_command): Remove.
9656 (run_command_1): Don't free old args, as they are freed by
9657 set_inferior_arg now.
9658 (run_no_args_command): Likewise.
9659 (inferior_environ): Remove.
9660 (run_command_1): Use environment of the current inferior.
9661 (environment_info, set_environment_command)
9662 (unset_environment_command, path_info, path_command): Likewise.
9663 (_initialize_infcmd): Adjust for function and variable renames.
9664 Do not init inferior_environ.
9665 * inferior.h (set_inferior_arg): Adjust prototype.
9666 (struct inferior): New fields args, argc, argv, terminal, environment.
9667 (inferior_environ): Remove declaration.
9668 * inferior.c (free_inferior): Free new fields.
9669 (add_inferior_silent): Initialize 'environment' field.
9670 * main.c (captured_main): Set arguments only after the initial
9671 inferior has been created. Set set_inferior_io_terminal,
9673 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
9675 (_initialize_mi_cmd_env): Adjust for disappearance of global
9677 * solib.c (solib_find): Use environment of the current inferior.
9679 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9681 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
9683 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
9685 2010-01-20 Joel Brobecker <brobecker@adacore.com>
9687 Get rid of ada-lang.c:function_name_from_pc.
9688 * ada-lang.c: Add "stack.h" #include.
9689 (function_name_from_pc): Delete.
9690 (is_known_support_routine): Replace call to function_name_from_pc
9691 by call to find_frame_funname.
9692 (ada_unhandled_exception_name_addr_from_raise): Likewise.
9694 2010-01-19 Tom Tromey <tromey@redhat.com>
9697 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
9700 2010-01-19 Tom Tromey <tromey@redhat.com>
9702 * top.c (stop_sig, float_handler, do_nothing): Remove.
9704 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9706 * breakpoint.c (watchpoint_check): Check the call
9707 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
9709 * config/djgpp/fnchange.lst: Add translations for
9710 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
9711 watchpoint-cond-gone-stripped.c.
9713 2010-01-19 Tom Tromey <tromey@redhat.com>
9716 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
9717 into parent scope, and enumerator into grandparent scope.
9719 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9721 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
9723 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9725 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
9726 i[34567]86-*-solaris2.1[0-9]*.
9727 * configure.tgt: Likewise.
9729 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9731 * NEWS: Document the source command enhancement allowing it
9732 to load Python scripts. Document the "set/show script-extension"
9735 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9737 Add -Wunused-function to compile flags.
9738 * configure.ac: Add -Wunused-function to build_warnings.
9739 * configure: Regenerate.
9741 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9743 "delete" ada-lex.c:input function, not used.
9744 * ada-lex.l: #define YY_NO_INPUT.
9746 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9748 Delete free_named_symtabs and associated cleanup.
9749 * symfile.h (free_named_symtabs): Delete declaration.
9750 * symfile.c: Remove some commented out code (clear_symtab_users_once).
9751 (cashier_psymtab): Comment function out.
9753 (free_named_symtabs): Delete.
9754 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
9755 * dbxread.c (end_psymtab): Likewise.
9756 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
9757 * exec.c (exec_close_1): Ditto.
9758 * xcoffread.c (xcoff_end_psymtab): Likewise.
9760 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9762 * stack.c (print_block_frame_labels): Comment function out.
9764 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9766 Delete unused or undefined functions.
9767 * breakpoint.c (ep_parse_optional_filename): Delete.
9768 * dcache.c (dcache_write_line): Remove declaration.
9769 * infrun.c (build_infrun): Remove declaration.
9770 * tracepoint.c (tracepoint_save_command): Remove declaration.
9771 * linux-nat.c (init_lwp_list): Delete. No longer used.
9772 * event-loop.c (check_async_signal_handlers): Delete declaration.
9773 * infrun.c (init_execution_control_state): Delete.
9774 (proceed): Update comment to avoid mentioning
9775 init_execution_control_state.
9776 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
9777 * ada-lang.c (ada_to_static_fixed_value): Delete.
9778 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
9779 * cp-namespace.c (cp_copy_usings): Delete.
9780 * xml-syscall.c (xml_number_of_syscalls): Delete.
9781 * progspace.c (find_program_space_by_num): Delete.
9782 * inflow.c (handle_sigio): Delete declaration.
9783 * hppa-tdep.c (hppa_alignof): Delete.
9784 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
9785 (mipsnbsd_core_osabi_sniffer): Delete.
9787 2010-01-18 Tom Tromey <tromey@redhat.com>
9790 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
9791 (CONST_CAST): New tokens.
9792 (exp): Add new productions.
9793 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
9795 (is_cast_operator): New function.
9796 (yylex): Handle cast operators specially.
9797 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
9798 UNOP_REINTERPRET_CAST>: New cases.
9799 * expprint.c (print_subexp_standard): Likewise.
9800 (op_name_standard): Likewise.
9801 (dump_subexp_body_standard): Likewise.
9802 * parse.c (operator_length_standard): Likewise.
9803 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
9804 UNOP_REINTERPRET_CAST.
9805 * gdbtypes.c (class_types_same_p): New function.
9806 (is_ancestor): Use it.
9807 (is_public_ancestor): New function.
9808 (is_unique_ancestor_worker): Likewise.
9809 (is_unique_ancestor): Likewise.
9810 * gdbtypes.h (class_types_same_p, is_public_ancestor)
9811 (is_unique_ancestor): Declare.
9812 * valops.c (value_reinterpret_cast): New function.
9813 (dynamic_cast_check_1): Likewise.
9814 (dynamic_cast_check_2): Likewise.
9815 (value_dynamic_cast): Likewise.
9816 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
9818 2010-01-18 Joel Brobecker <brobecker@adacore.com>
9820 Fix build failure when building without Python support.
9821 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
9824 2010-01-18 Joel Brobecker <brobecker@adacore.com>
9826 Use XVS field type instead of doing a parallel lookup.
9827 * ada-lang.c (ada_get_base_type): Follow the XVS field type
9828 if it is a reference type instead of doing a type lookup using
9831 2010-01-18 Joel Brobecker <brobecker@adacore.com>
9833 Trust PAD types instead of using PAD___XVS.
9834 * ada-lang.c (trust_pad_over_xvs): New static variable.
9835 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
9836 parallel XVS type, follow the XVS type instead of the PAD type.
9837 (unwrap_value): Make sure that there is no parallel XVE type
9838 before returning the value as is.
9839 (set_ada_list, show_ada_list): New static variables.
9840 (set_ada_command, show_ada_command): New functions.
9841 (_initialize_ada_language): Add new "set/show ada" prefix commands.
9842 Add new "set/show ada trust-PAD-over-XVS" setting.
9844 2010-01-18 Tom Tromey <tromey@redhat.com>
9845 Thiago Jung Bauermann <bauerman@br.ibm.com>
9847 Allow "source" to load python scripts.
9848 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
9849 * python/python.c (source_python_script): New function.
9850 * python/python.h (source_python_script): Add declaration.
9851 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
9852 (script_ext_off, script_ext_soft, script_ext_strict)
9853 (script_ext_enums, script_ext_mode): New static constants.
9854 (show_script_ext_mode, find_and_open_script): New functions.
9855 (source_script): Enhance to handle Python scripts.
9856 (init_cli_cmds): Add set/show script-extension commands.
9858 2010-01-16 Stan Shebs <stan@codesourcery.com>
9860 * tracepoint.h (struct trace_status): Use unsigned long long
9862 * tracepoint.c (trace_status_command): Fix printf directive.
9863 (trace_save_command): Check fwrite returns, fix printf directive.
9864 (trace_filename): New global.
9865 (tfile_open): Set it, check read returns.
9866 (tfile_close): Free trace_filename.
9867 (tfile_get_traceframe_address): Check read returns.
9868 (tfile_trace_find): Ditto.
9869 (tfile_fetch_registers): Ditto.
9870 (tfile_xfer_partial): Ditto.
9871 (tfile_get_trace_state_variable_value): Ditto.
9873 2010-01-15 Stan Shebs <stan@codesourcery.com>
9875 Add trace file support.
9876 * tracepoint.h (enum trace_stop_reason): New enum.
9877 (struct trace_status): New struct.
9878 (parse_trace_status): Declare.
9879 (struct uploaded_tp): Move here from remote.c,
9880 add fields for actions.
9881 (struct uploaded_tsv): New struct.
9882 * tracepoint.c (tfile_ops): New target vector.
9883 (trace_fd): New global.
9884 (tfile_open): New function.
9885 (tfile_close): New function.
9886 (tfile_files_info): New function.
9887 (tfile_get_trace_status): New function.
9888 (tfile_get_traceframe_address): New function.
9889 (tfile_trace_find): New function.
9890 (tfile_fetch_registers): New function.
9891 (tfile_xfer_partial): New function.
9892 (tfile_get_trace_state_variable_value): New function.
9893 (init_tfile_ops): New function.
9894 (_initialize_tracepoint): Call it, add tfile target.
9895 (trace_status): New global.
9896 (current_trace_status): New function.
9897 (trace_running_p): Remove, change all users to get from
9898 current_trace_status()->running.
9899 (get_trace_status): Remove.
9900 (trace_status_command): Call target_get_trace_status directly,
9901 report more detail including tracing stop reasons.
9902 (trace_find_command): Always allow tfind on a file.
9903 (trace_find_pc_command): Ditto.
9904 (trace_find_tracepoint_command): Ditto.
9905 (trace_find_line_command): Ditto.
9906 (trace_find_range_command): Ditto.
9907 (trace_find_outside_command): Ditto.
9908 (trace_frames_offset, cur_offset): Declare as off_t.
9909 (trace_regblock_size): Rename from reg_size, update users.
9910 (parse_trace_status): New function.
9911 (tfile_interp_line): New function.
9912 (disconnect_or_stop_tracing): Ensure current trace
9913 status before asking what to do.
9914 (stop_reason_names): New global.
9915 (trace_save_command): New command.
9916 (get_uploaded_tp): Move here from remote.c.
9917 (find_matching_tracepoint): Ditto.
9918 (merge_uploaded_tracepoints): New function.
9919 (parse_trace_status): Use stop_reason_names.
9920 (_initialize_tracepoint): Define tsave command.
9921 * target.h (target_ops): New fields to_save_trace_data,
9922 to_upload_tracepoints, to_upload_trace_state_variables,
9923 to_get_raw_trace_data, change to_get_trace_status
9924 to take a pointer to a status struct.
9925 (target_save_trace_data): New macro.
9926 (target_upload_tracepoints): New macro.
9927 (target_upload_trace_state_variables): New macro.
9928 (target_get_raw_trace_data): New macro.
9929 * target.c (update_current_target): Add new methods, change
9930 signature of to_get_trace_status.
9931 * remote.c (hex2bin): Make globally visible.
9933 (remote_download_trace_state_variable): Download name also.
9934 (remote_get_trace_status): Update parameter, use
9936 (remote_save_trace_data): New function.
9937 (remote_upload_tracepoints): New function.
9938 (remote_upload_trace_state_variables): New function.
9939 (remote_get_raw_trace_data): New function.
9940 (remote_start_remote): Use them.
9941 (_initialize_remote_ops): Add operations.
9942 * ax-gdb.c: Include breakpoint.h.
9943 * breakpoint.c (create_tracepoint_from_upload): Use
9944 break_command_really, return tracepoint, warn about unimplemented
9946 * NEWS: Mention trace file addition.
9948 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9950 Fix compilation warning on gcc-3.4.
9951 * exec.c (print_section_info): Move the `displacement' variable
9952 initialization to its declaration.
9954 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9956 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
9959 2010-01-15 Eric Botcazou <botcazou@adacore.com>
9961 "info tasks" broken by typedefs in ATCB type definitions.
9962 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
9963 ada_check_typedef before retrieving the length of the type for
9966 2010-01-15 Joel Brobecker <brobecker@adacore.com>
9968 Do not use name-based lookup for unconstrained packed arrays.
9969 * ada-lang.c (find_parallel_type_by_descriptive_type):
9970 Limit the fallback to name-based lookups to the case where
9971 the type is a constrained packed array.
9973 2010-01-15 Joel Brobecker <brobecker@adacore.com>
9975 Enhance gdb-gdb.py to handle main_type.type_specific.
9976 * gdb-gdb.py: Print the type-specific part of struct main_type.
9978 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9980 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
9981 * configure: Regenerate.
9982 * config.in: Regenerate.
9983 * utils.c: Include sys/resource.h.
9984 (dump_core, can_dump_core): New.
9985 (internal_vproblem): Update the comment. Check can_dump_core while
9986 setting dump_core_p. Replace two abort calls by dump_core calls.
9988 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9989 Eli Zaretskii <eliz@gnu.org>
9991 * NEWS: Document the PIE support.
9993 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9995 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
9996 (check_is_pie_binary, _initialize_linux_tdep): Remove.
9998 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10000 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
10001 Replace exec_entry_point call by bfd_get_start_address.
10003 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10005 Support Valgrind attachments broken by the PIE support.
10006 * auxv.c: Include gdbcore.h.
10007 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
10008 parameters ops, object and annex. Remove their assertions.
10009 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
10010 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
10011 (memory_xfer_auxv): ... here.
10012 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
10014 * procfs.c (procfs_xfer_partial): Likewise.
10015 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
10016 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
10017 (svr4_solib_create_inferior_hook): Conditionalize the
10018 svr4_relocate_main_executable call.
10020 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10022 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
10023 target_section. Find SECT in current_target_sections, gdb_assert it.
10024 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
10026 * symtab.c (lookup_objfile_from_block): Return the binary file instead
10027 of separate debug info file.
10029 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10031 Support PIEs with no symfile_objfile.
10032 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
10033 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
10035 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10037 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
10039 (svr4_static_exec_displacement): ... a new function.
10040 (svr4_exec_displacement): New function.
10041 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
10042 new_offsets using alloca now. Remove variable old_chain and changed.
10043 Call objfile_relocate unconditionally now.
10045 2010-01-14 Doug Evans <dje@google.com>
10047 * gdbtypes.c (arch_flags_type): Fix comment.
10048 * gdbtypes.h (arch_composite_type): Fix comment.
10050 2009-01-14 Tristan Gingold <gingold@adacore.com>
10052 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
10053 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
10054 to symbol_file_add_from_bfd. Add OSO as separate objfile.
10055 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
10056 macho_add_oso_symfile.
10057 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
10059 2010-01-14 Joel Brobecker <brobecker@adacore.com>
10061 Tru64: Dead threads are never deleted.
10062 * dec-thread.c (dec_thread_ptid_is_alive): New function.
10063 (dec_thread_count_gdb_threads): Fix counter increment.
10064 (dec_thread_add_gdb_thread): Fix *listp increment.
10065 (resync_thread_list): Fix bug in deletion of dead threads that
10066 caused all threads to be deleted, instead of just the dead ones.
10068 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
10072 * python/python-internal.h: Add lazy_string_object_type
10074 (create_lazy_string_object, gdbpy_initialize_lazy_string)
10075 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
10076 * python/py-value.c (valpy_lazy_string): New function.
10077 (convert_value_from_python): Add lazy string conversion.
10078 * python/py-prettyprint.c (pretty_print_one_value): Check if
10079 return is also a lazy string.
10080 (print_string_repr): Add lazy string printing branch.
10081 (print_children): Likewise.
10082 * python/py-lazy-string.c: New file. Implement lazy strings.
10083 * python/python.c (_initialize_python): Call
10084 gdbpy_initialize_lazy_string.
10085 * varobj.c (value_get_print_value): Add lazy string printing
10086 branch. Account for encoding.
10087 * c-lang.c (c_printstr): Account for new encoding argument. If
10088 encoding is NULL, find encoding suited for type, otherwise use
10090 * language.h (language_defn): Add encoding argument.
10091 (LA_PRINT_STRING): Likewise.
10092 * language.c (unk_lang_printstr): Update to reflect new encoding
10093 argument to language_defn.
10094 * ada-lang.h (ada_printstr): Likewise.
10095 * c-lang.h (c_printstr): Likewise.
10096 * p-lang.h (pascal_printstr);
10097 * f-lang.c (f_printstr): Likewise.
10098 * m2-lang.c (m2_printstr): Likewise.
10099 * objc-lang.c (objc_printstr): Likewise.
10100 * p-lang.c (pascal_printstr): Likewise.
10101 * scm-lang.c (scm_printstr): Likewise.
10102 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
10104 * ada-valprint.c (ada_printstr): Likewise.
10105 * f-valprint.c (f_val_print): Likewise
10106 * m2-valprint.c (m2_val_print): Likewise.
10107 * p-valprint.c (pascal_val_print): Likewise.
10108 * expprint.c (print_subexp_standard): Likewise.
10109 * valprint.c (val_print_string): Likewise.
10110 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
10111 (SUBDIR_PYTHON_SRCS): Likewise.
10112 (py-lazy-string.o): New rule.
10114 2010-01-13 Doug Evans <dje@google.com>
10116 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
10117 uninitialized" warning from gcc on local `tree'.
10119 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
10121 Implement core awareness.
10123 * bcache.c (compare_ints): Remove
10124 (print_percentage): Use compare_positive_ints.
10125 * defs.h (compare_positive_ints): Declare.
10126 * linux-nat.h (struct lin_lwp): New field core.
10127 (linux_nat_core_of_thread_1): Declare.
10128 * linux-nat.c (add_lwp): Init the 'core' field.
10129 (linux_nat_wait_1): Record the core.
10130 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
10131 (linux_nat_add_target): Register the above.
10132 * linux-thread-db.c (update_thread_core): New.
10133 (thread_db_find_new_threads): Update core information for
10135 * remote.c (struct private_thread_info): New.
10136 (free_private_thread_info, demand_private_info): New.
10137 (PACKET_qXfer_threads, use_osdata_threads): New.
10138 (struct thread_item, threads_parsing_context
10139 (start_thread, end_thread, thread_attributes)
10140 (thread_children, threads_children, threads_elements): New.
10141 (remote_threads_info): Try qXfer:threads before anything
10143 (remote_protocol_packets): Register qXfer:threads.
10144 (remote_open_1): Init use_osdata_threads.
10145 (struct stop_reply): New field 'core'.
10146 (remote_parse_stop_reply): Parse core number.
10147 (process_stop_reply): Record core number.
10148 (remote_xfer_partial): Handle qXfer:threads.
10149 (remote_core_of_thread): New.
10150 (init_remote_ops): Register remote_core_of_thread.
10151 (_initialize_remote): Register qXfer:read.
10152 * target.c (target_core_of_thread): New
10153 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
10154 (struct target_ops): New field to_core_of_threads.
10155 (target_core_of_thread): Declare.
10156 * gdbthread.h (struct thread_info): New field private_dtor.
10157 * thread.c (print_thread_info): Report the core.
10158 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
10159 * utils.c (compare_positive_ints): New.
10160 * features/threads.dtd: New.
10161 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
10162 * mi/mi-main.c (struct collect_cores_data, collect_cores)
10163 (do_nothing, free_vector_of_osdata_items)
10164 (splay_tree_int_comparator, free_splay_tree): New.
10165 (print_one_inferior_data): Implemented printing of selected
10166 inferiors. Collect and print cores.
10167 (output_cores): New.
10168 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
10169 thread groups together with --available.
10171 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10173 * configure: Regenerate (for _STRUCTURED_PROC).
10175 2010-01-12 Joel Brobecker <brobecker@adacore.com>
10177 Delete dead function.
10178 * ada-lang.c (extract_string): Delete. No longer used.
10180 2010-01-12 Joel Brobecker <brobecker@adacore.com>
10182 Fix -Wunused warning in dec-thread.c.
10183 * dec-thread.c (dec_thread_count_gdb_threads)
10184 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
10186 2010-01-12 Joel Brobecker <brobecker@adacore.com>
10188 * ada-valprint.c (ada_print_floating): Remove trailing space.
10190 2010-01-12 Joel Brobecker <brobecker@adacore.com>
10192 Add support for DW_AT_GNAT_descriptive_type.
10193 * gdbtypes.h (enum type_specific_kind): New enum.
10194 (struct main_type) [type_specific_field]: New component.
10195 [type_specific]: Add new component "gnat_stuff".
10196 (struct gnat_aux_type): New type.
10197 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
10198 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
10199 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
10200 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
10201 (TYPE_SPECIFIC_FIELD): New macros.
10202 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
10203 type does not hold any cplus-specific data.
10204 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
10205 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
10206 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
10207 cplus-specific data.
10208 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
10209 Set new component TYPE_SPECIFIC_FIELD (type).
10210 (gnat_aux_default): New constant.
10211 (allocate_gnat_aux_type): New function.
10212 (init_type): Add initialization the type-specific stuff for
10213 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
10214 (print_gnat_stuff): New function.
10215 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
10216 specific data. Adjust code that prints the contents of the
10217 type-specific union using the TYPE_SPECIFIC_FIELD value.
10218 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
10219 the type cplus stuff for Ada types.
10220 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
10221 Error out if these routines are called with an Ada type.
10222 (read_structure_type, read_array_type, read_subrange_type):
10223 Add call to set_descriptive_type.
10224 (set_die_type): Initialize the gnat-specific data if necessary.
10225 (need_gnat_info, die_descriptive_type, set_descriptive_type):
10227 * ada-lang.c (decode_constrained_packed_array_type): Use
10228 decode_constrained_packed_array_type instead of doing a standard
10229 lookup to locate a parallel type.
10230 (find_parallel_type_by_descriptive_type): New function.
10231 (ada_find_parallel_type_with_name): New function.
10232 (ada_find_parallel_type): Reimplement using
10233 ada_find_parallel_type_with_name.
10234 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
10235 to check if type has a cplus stuff.
10236 * linespec.c (total_number_of_methods): Likewise.
10237 * mdebugread.c (new_type): Likewise.
10239 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10241 * NEWS: Document the 0b binary number prefix parsing.
10243 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10245 * objfiles.c (objfile_relocate1): Change the return type to int.
10246 Describe the new return value. Return non-zero if data changed.
10247 (objfile_relocate): New variable changed. Set it. Call
10248 breakpoint_re_set depending on CHANGED.
10250 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10252 Implement binary numbers parsing.
10253 * c-exp.y (parse_number): New case 'b' and 'B'.
10255 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10256 Tristan Gingold <gingold@adacore.com>
10258 * solib.c (info_sharedlibrary_command): Replace
10259 objfile_has_partial_symbols and objfile_has_full_symbols calls by
10260 objfile_has_symbols.
10262 2010-01-10 Joel Brobecker <brobecker@adacore.com>
10264 * NEWS: Document the improvements made to the mips-irix port.
10266 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10268 Fix the documentation of valprint.c:value_print.
10269 * valprint.c (value_print): Update the function description to
10270 mention that the syntax of the output follows the current_language,
10273 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10275 Fix displacement of separate debug info files.
10276 * objfiles.c (objfile_relocate): Rename to ...
10277 (objfile_relocate1): ... here and make it static. Extend the comment.
10278 (objfile_relocate): New function.
10279 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
10280 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
10281 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
10282 allocated using alloca.
10283 * symfile.c (copy_section_addr_info): Remove.
10284 (build_section_addr_info_from_objfile): Make it global. New variables
10285 addr_bit and mask, use them.
10286 * symfile.h (build_section_addr_info_from_objfile): New prototype.
10287 (copy_section_addr_info): Remove.
10289 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10291 Signal unwinder for mips-irix N32.
10292 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
10294 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
10295 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
10296 (SIGCONTEXT_LO_OFF): New macros.
10297 (mips_irix_n32_tramp_frame_init): New function.
10298 (mips_irix_n32_tramp_frame): New static constant.
10299 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
10301 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10303 Breakpoint in shared library does not work on mips-irix.
10304 * procfs.c: #include "observer.h".
10305 (procfs_inferior_created): New function, moving here the code
10306 which unsets the syssgi syscall-exit notifications.
10307 (procfs_create_inferior): Remove the code which unsets the syssgi
10308 syscall-exit notifications. It is too early to do this here.
10309 (_initialize_procfs): Attach the procfs_inferior_created observer.
10311 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10313 Wrong return convention for arrays (mips-irix).
10314 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
10315 128 bits or smaller are returned the same way as structs
10316 and unions of the the same size.
10318 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10320 Cannot set the PC on mips-irix.
10321 * irix5-nat.c (fill_gregset): Check regno against the raw PC
10322 register number, no the cooked one.
10324 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10326 Error while loading core file on mips-irix.
10327 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
10328 if debugging from a core file.
10330 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10332 GDB hangs when attaching to process on mips-irix.
10333 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
10334 attaching to a process.
10336 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10338 Use the correct breakpoint instruction on mips-irix.
10339 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
10340 containing the correct breakpoint instruction to use on mips-irix.
10341 Use it when the osabi is GDB_OSABI_IRIX.
10343 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10345 -Wunused warning in procfs.c (mips-irix only).
10346 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
10347 throughout instead of using praddset and prdelset respectively.
10349 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10351 GDB crash while stepping into function.
10352 * infrun.c (handle_inferior_event): Refetch the current frame
10353 after handling what.main_action, in case that pointer became
10356 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10358 Fix build failure of solaris-hosted cross debuggers.
10359 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
10361 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
10363 Fix build failure on sparc-solaris.
10364 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
10366 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10368 Move some symfile code into subroutines.
10369 * symfile.h (relative_addr_info_to_section_offsets)
10370 (addr_info_make_relative): New prototypes.
10371 * symfile.c (default_symfile_offsets): Move a part to ...
10372 (relative_addr_info_to_section_offsets): ... this new function.
10373 (default_symfile_offsets): Call it.
10374 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
10376 (addr_info_make_relative): ... this new function.
10378 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10380 Add from_tty to solib_create_inferior_hook.
10381 * infcmd.c (post_create_inferior): Move solib_add after
10382 solib_create_inferior_hook. Pass from_tty to
10383 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
10384 0 from_tty and comment why.
10385 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
10386 * linux-nat.c (linux_child_follow_fork): Likewise.
10387 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
10388 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
10390 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
10391 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
10392 * solib-null.c (null_solib_create_inferior_hook): Likewise.
10393 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
10394 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
10395 * solib-som.c (som_solib_create_inferior_hook): Likewise.
10396 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
10397 Pass it to svr4_so_ops.solib_create_inferior_hook.
10398 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
10400 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
10402 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
10404 * solib-target.c (solib_target_solib_create_inferior_hook): New
10405 parameter from_tty.
10406 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
10407 it to ops->solib_create_inferior_hook.
10408 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
10409 Move solib_add after solib_create_inferior_hook, call it now with
10410 from_tty as 0. New comment there.
10411 * solib.h (solib_create_inferior_hook): New parameter from_tty.
10412 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
10415 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
10417 Fix multiexec race.
10418 * infrun.c (handle_inferior_event): Use get_thread_regcache
10419 with events ptid, not get_current_regcache.
10421 2009-01-08 Joel Brobecker <brobecker@adacore.com>
10423 GDB crash with empty executable name (MinGW).
10424 * source.c (openp): Add assert that parameter string is not NULL.
10425 if parameter string is an empty string, then return with a failure
10428 2009-01-08 Joel Brobecker <brobecker@adacore.com>
10430 Get rid of support for VAX Floats.
10431 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
10432 (ada_vax_float_print_function): Delete.
10433 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
10434 (ada_vax_float_print_function): Delete.
10435 * ada-typeprint.c (print_vax_floating_point_type): Delete.
10436 (ada_print_type): Remove support for VAX floats.
10437 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
10439 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10441 * stabsread.c (read_args): Handle zero arguments.
10443 2009-01-08 Joel Brobecker <brobecker@adacore.com>
10445 Cannot find in-tree libiconv.a after reconfigure.
10446 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
10447 that we can use, then cache the path to this archive.
10448 * configure: Regenerate.
10450 2010-01-07 Stan Shebs <stan@codesourcery.com>
10452 Make tracepoint operations go through target vector.
10453 * target.h (enum trace_find_type): New enum.
10454 (struct target_ops): New fields to_trace_init,
10455 to_download_tracepoint, to_download_trace_state_variable,
10456 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
10457 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
10458 to_set_disconnected_tracing.
10459 (target_trace_init): New macro.
10460 (target_download_tracepoint): New macro.
10461 (target_download_trace_state_variable): New macro.
10462 (target_trace_start): New macro.
10463 (target_trace_set_readonly_regions): New macro.
10464 (target_get_trace_status): New macro.
10465 (target_trace_stop): New macro.
10466 (target_trace_find): New macro.
10467 (target_get_trace_state_variable_value): New macro.
10468 (target_set_disconnected_tracing): New macro.
10469 * target.c (update_current_target): Inherit and set defaults for
10470 tracepoint operations.
10471 * tracepoint.c (default_collect): Make globally visible.
10472 (target_is_remote): Remove, along with all calls.
10473 (tvariables_info): Call target_get_trace_state_variable_value.
10474 (remote_set_transparent_ranges): Remove.
10475 (trace_start_command): Call target_trace_init,
10476 target_download_tracepoint, etc.
10477 (download_tracepoint): Remove.
10478 (trace_stop_command): Simplify.
10479 (stop_tracing): Call target_trace_stop.
10480 (get_trace_status): Call target_get_trace_status.
10481 (trace_status_command): Add case for targets that cannot trace.
10482 (finish_tfind_command): Change to take numerical arguments, call
10484 (trace_find_command): Update call to finish_tfind_command.
10485 (trace_find_pc_command): Ditto.
10486 (trace_find_tracepoint_command): Ditto.
10487 (trace_find_line_command): Ditto.
10488 (trace_find_range_command): Ditto.
10489 (trace_find_outside_command): Ditto.
10490 (set_disconnected_tracing_value): Call
10491 target_set_disconnected_tracing.
10492 * remote.c: Add protocol encoding bits from tracepoint.c.
10493 (trace_error): Move from tracepoint.c.
10494 (remote_get_noisy_reply): Ditto.
10495 (free_actions_list_cleanup_wrapper): Ditto.
10496 (free_actions_list): Ditto.
10497 (remote_trace_init): New function.
10498 (remote_download_tracepoint): New function.
10499 (remote_download_trace_state_variable): New function.
10500 (remote_trace_set_readonly_regions): New function.
10501 (remote_trace_start): New function.
10502 (remote_get_trace_status): New function.
10503 (remote_trace_stop): New function.
10504 (remote_trace_find): New function.
10505 (remote_download_trace_state_variable): New function.
10506 (remote_set_disconnected_tracing): New function.
10507 (init_remote_ops): Add tracepoint operations.
10509 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
10511 2010-01-07 Tristan Gingold <gingold@adacore.com>
10513 * symfile.c (build_section_addr_info_from_objfile): New function.
10514 (symbol_file_add_separate): Don't use offsets from objfile but
10515 built an addr info.
10517 2010-01-06 Stan Shebs <stan@codesourcery.com>
10519 Support disconnected tracing.
10520 * infcmd.c (detach_command): Ask whether to stop tracing.
10521 * cli/cli-cmds.c (quit_command): Ditto.
10522 * breakpoint.h (struct breakpoint): New field number_on_target.
10523 * breakpoint.c (create_tracepoint_from_upload): New function.
10524 (get_tracepoint_by_number_on_target): New function.
10525 * remote.c (struct remote): New field disconnected_tracing.
10526 (remote_disconnected_tracing_feature): New function.
10527 (remote_protocol_features): Add DisconnectedTracing.
10528 (struct uploaded_tp): New struct.
10529 (uploaded_tps): New global.
10530 (get_uploaded_tp): New function.
10531 (find_matching_tracepoint): New function.
10532 (remote_get_tracing_state): New function.
10533 (remote_start_remote): Call it.
10534 * tracepoint.c (disconnected_tracing): New global.
10535 (trace_start_command): Initialize number_on_target.
10536 (stop_tracing): New function, split out from...
10537 (trace_stop_command): Call stop_tracing.
10538 (get_trace_status): New function, split out from...
10539 (trace_status_command): Call get_trace_status, add info on
10540 disconnection behavior.
10541 (disconnect_or_stop_tracing): New function.
10542 (finish_tfind_command): Translate from number on target.
10543 (trace_find_tracepoint_command): Translate to number on target.
10544 (send_disconnected_tracing_value): New function.
10545 (set_disconnected_tracing): New function.
10546 (_initialize_tracepoint): Add disconnected-tracing variable.
10547 * NEWS: Mention disconnected tracing.
10549 2010-01-06 Tristan Gingold <gingold@adacore.com>
10551 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
10552 parameter to main_objfile. Iterate on all separate debug objfiles.
10553 * symfile.h (symbol_file_add_separate)
10554 (find_separate_debug_file_by_debuglink): Remove parameter names.
10555 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
10556 (reread_symbols): Use free_objfile_separate_debug.
10557 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
10559 (objfile_separate_debug_iterate, add_separate_debug_objfile)
10560 (free_objfile_separate_debug): New prototypes.
10561 * objfiles.c (objfile_separate_debug_iterate): New function.
10562 (add_separate_debug_objfile, free_objfile_separate_debug): New
10564 (free_objfile): Use free_objfile_separate_debug. Adjust for
10565 multiple separate debug objfile.
10566 (objfile_has_symbols): Adjust comment. Iterate on all separate
10568 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
10570 (lookup_minimal_symbol_text): Ditto.
10571 (lookup_minimal_symbol_by_pc_name): Ditto.
10572 (lookup_minimal_symbol_solib_trampoline): Ditto.
10573 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
10576 2010-01-05 Stan Shebs <stan@codesourcery.com>
10578 Add fast tracepoints.
10579 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
10580 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
10581 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
10582 * breakpoint.c (tracepoint_type): New function.
10583 (ALL_TRACEPOINTS): Use it.
10584 (should_be_inserted): Ditto.
10585 (bpstat_check_location): Ditto.
10586 (print_one_breakpoint_location): Ditto.
10587 (user_settable_breakpoint): Ditto.
10588 (set_breakpoint_location_function): Ditto.
10589 (disable_breakpoints_in_shlibs): Ditto.
10590 (delete_trace_command): Ditto.
10591 (print_it_typical): Add bp_fast_tracepoint case.
10592 (bpstat_what): Ditto.
10593 (print_one_breakpoint_location): Ditto.
10594 (allocate_bp_location): Ditto.
10596 (breakpoint_re_set_one): Ditto.
10597 (disable_command): Ditto.
10598 (enable_command): Ditto.
10599 (check_fast_tracepoint_sals): New function.
10600 (break_command_really): Call it.
10601 (ftrace_command): New function.
10602 (_initialize_breakpoint): Add ftrace command.
10603 * gdbarch.sh (fast_tracepoint_valid_at): New.
10604 * gdbarch.h, gdbarch.c: Regenerate.
10605 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
10606 (i386_gdbarch_init): Use it.
10607 * remote.c (struct remote_state): New field fast_tracepoints.
10608 (PACKET_FastTracepoints): New packet config type.
10609 (remote_fast_tracepoint_feature): New function.
10610 (remote_protocol_features): Add FastTracepoints.
10611 (remote_supports_fast_tracepoints): New function.
10612 (_initialize_remote): Add FastTracepoints.
10613 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
10614 * NEWS: Mention fast tracepoints.
10616 2010-01-06 Joel Brobecker <brobecker@adacore.com>
10618 * gdb-gdb.py: New file.
10620 2010-01-05 Michael Snyder <msnyder@vmware.com>
10622 * infrun.c (handle_inferior_event): Fix typo in comment.
10624 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10626 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
10628 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10630 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
10632 (s390-linux32-expedite): Define.
10633 (s390-linux64-expedite): Define.
10634 (s390x-linux64-expedite): Define.
10635 * features/s390-acr.xml: New file.
10636 * features/s390-fpr.xml: New file.
10637 * features/s390-core32.xml: New file.
10638 * features/s390-core64.xml: New file.
10639 * features/s390x-core64.xml: New file.
10640 * features/s390-linux32.xml: New file.
10641 * features/s390-linux64.xml: New file.
10642 * features/s390x-linux64.xml: New file.
10643 * features/s390-linux32.c: New generated file.
10644 * features/s390-linux64.c: New generated file.
10645 * features/s390x-linux64.c: New generated file.
10647 * regformats/s390-linux32.dat: New generated file.
10648 * regformats/s390-linux64.dat: New generated file.
10649 * regformats/s390x-linux64.dat: New generated file.
10650 * regformats/reg-s390.dat: Remove.
10651 * regformats/reg-s390x.dat: Remove.
10653 * s390-nat.c: Include "auxv.h" and <elf.h>.
10654 (HWCAP_S390_HIGH_GPRS): Define if undefined.
10655 (s390_target_wordsize): New function.
10656 (s390_auxv_parse): Likewise.
10657 (s390_get_hwcap): Likewise.
10658 (s390_read_description): Likewise.
10659 (_initialize_s390_nat): Install s390_auxv_parse and
10660 s390_read_description.
10662 * s390-tdep.c: Include "features/s390-linux32.c",
10663 "features/s390-linux64.c", and "features/s390x-linux64.c".
10664 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
10665 (s390_register_call_saved): New function.
10666 (s390_register_name): Remove.
10667 (s390_register_type): Remove.
10668 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
10669 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
10670 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
10671 (s390_pseudo_register_name): New function.
10672 (s390_pseudo_register_type): New function.
10673 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
10674 Handle full GPR pesudos and varying pseudo register numbers.
10675 (s390_pseudo_register_write): Likewise
10676 (s390x_pseudo_register_read): Remove.
10677 (s390x_pseudo_register_write): Likewise.
10678 (s390_register_group): Remove.
10679 (s390_pseudo_register_group): New function.
10680 (s390_regmap_gregset): Add GPR upper halves.
10681 (s390x_regmap_gregset): Likewise.
10682 (s390_regmap_fpregset): Likewise.
10683 (s390_regmap_upper): New global variable.
10684 (s390_upper_regset): New global variable.
10685 (s390_upper_regset_sections): New global variable.
10686 (s390_regset_from_core_section): Handle GPR upper halves.
10687 (s390_core_read_description): New function.
10688 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
10689 register information. Handle varying pseudo register numbers.
10690 (s390_backchain_frame_unwind_cache): Likewise.
10691 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
10692 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
10693 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
10694 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
10695 Handle varying pseudo register numbers.
10696 (s390_unwind_pc): Handle varying pseudo register numbers.
10697 (s390_dwarf2_prev_register): New function.
10698 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
10699 register information. Handle varying pseudo register numbers.
10700 Install s390_dwarf2_prev_register to unwind full GPRs.
10701 (s390_gdbarch_init): Handle target descriptions. Assign varying
10702 pseudo register numbers. Install s390_adjust_frame_regnum.
10703 (_initialize_s390_tdep): Initialize target descriptions.
10705 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
10706 (S390_NUM_REGS): Redefine to include upper half registers.
10707 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
10708 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
10709 (tdesc_s390_linux32): Add declaration.
10710 (tdesc_s390_linux64): Likewise.
10711 (tdesc_s390x_linux64): Likewise.
10713 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10715 * regset.h (struct core_regset_section): Add HUMAN_NAME.
10716 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
10717 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
10718 (ppc_linux_vmx_regset_sections): Likewise.
10719 (ppc_linux_fp_regset_sections): Likewise.
10721 * corelow.c (get_core_register_section): Constify arguments.
10722 (get_core_registers): Use gdbarch_core_regset_sections instead
10723 of hard-coded platform-specific register section names.
10725 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10727 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
10728 a register, assume the least-significant part is used.
10729 (write_pieced_value): Likewise.
10731 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10733 * printcmd.c: Include "arch-utils.h".
10734 (do_one_display): Re-parse expression if current architecture changed.
10736 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10737 Joel Brobecker <brobecker@adacore.com>
10739 * gdbtypes.c (check_typedef): New comment on type length.
10740 * value.c (allocate_value_lazy): Remove the unused atype variable. New
10741 comment on type length.
10742 (value_primitive_field): Keep the original TYPE value, new comment.
10744 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10746 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
10747 p_start. Change != comparisons to > and < comparisons.
10749 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10751 * cli/cli-script.c (process_next_line): Check P2 overrun.
10753 2009-01-01 Joel Brobecker <brobecker@adacore.com>
10755 Update the copyright hearder to add year 2010 for most GDB files.
10757 2009-01-01 Joel Brobecker <brobecker@adacore.com>
10759 Fix build failure in inf-ptrace.c.
10760 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
10762 2010-01-01 Joel Brobecker <brobecker@adacore.com>
10764 * top.c (print_gdb_version): Update copyright year.
10766 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
10768 Fix break *FUN'address thread NUM.
10769 * ada-lex.l (task): Expand rule to also match the thread keyword.
10771 2010-01-01 Joel Brobecker <brobecker@adacore.com>
10773 Fix break *FUN'address task NUM.
10774 * ada-lex.l (task): New rule.
10775 * ada-lang.c (valid_task_id): Make sure the Ada task list has
10776 been built before using it.
10778 For older changes see ChangeLog-2009.
10784 version-control: never