1 2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3 Fix attaching to re-prelinked executables on ppc64.
4 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
5 initialize it, try to adjust FILESZ field by it.
7 2010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
9 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
10 messages if info_verbose.
12 2010-10-08 Ken Werner <ken.werner@de.ibm.com>
14 * valops.c (value_cast): Handle vector types.
15 * valarith.c (value_binop): Widen scalar to vector if appropriate.
17 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
19 * arm-tdep.c (thumb_expand_immediate): New function.
20 (thumb_instruction_changes_pc): Likewise.
21 (thumb2_instruction_changes_pc): Likewise.
22 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
23 prologue parsing. Improved support for optimized code.
24 (thumb_scan_prologue): Do not reply on line-number information,
25 use same heuristics as arm_scan_prologue insead.
26 (skip_prologue_function): Accept functions
27 "__tls_get_addr" and "__aeabi_read_tp".
29 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
30 Daniel Jacobowitz <dan@codesourcery.com>
32 * arm-tdep.c (thumb_in_function_epilogue_p)
33 (arm_in_function_epilogue_p): New.
34 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
35 gdbarch_in_function_epilogue_p callback.
37 2010-10-07 Doug Evans <dje@google.com>
39 * cc-with-index.sh (output_file): Default to a.out.
41 * dwarf2read.c (mapped_index): Rename member index_table to
42 symbol_table and index_table_slots to symbol_table_slots.
44 (create_symbol_hash_table): Renamed from create_index_table.
46 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
47 (write_hash_table): Rename local index_table to symbol_hash_table.
49 * addrmap.h (addrmap_foreach_fn): New typedef.
50 (addrmap_foreach): Declare.
51 * addrmap.c (struct addrmap_funcs): New member foreach.
52 (addrmap_foreach): New function.
53 (addrmap_fixed_foreach): New function.
54 (addrmap_fixed_funcs): Update.
55 (struct mutable_foreach_data): New struct.
56 (addrmap_mutable_foreach_worker): New function.
57 (addrmap_mutable_foreach): New function.
58 (addrmap_mutable_funcs): Update.
60 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
62 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
65 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
67 * ada-lang.c (full_match): Declare.
68 (ada_match_name): Rename to match_name (we should avoid prefixing static
70 (match_name): New name for ada_match_name.
71 (struct ada_psym_data): Remove and replace with...
72 (struct match_data): User data for map_matching_symbols.
73 (ada_add_psyms): Remove.
74 (aux_add_nonlocal_symbols): New function, used as callback for
76 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
78 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
79 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
80 Rework to use map_matching_symbols instead of map_ada_symtabs.
81 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
82 * psymtab.c: Include dependency on dictionary.h.
83 (match_partial_symbol): New function.
84 (ada_lookup_partial_symbol): Remove.
85 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
86 (map_matching_symbols_psymtab): New function.
87 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
88 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
90 2010-10-06 Paul Hilfinger <hilfinger@adacore.com>
92 * ada-lang.c (ada_match_name): Use new API for wild_match.
93 (wild_match): Change API to be consistent with that of strcmp_iw;
94 return 0 for a match, and switch operand order.
95 (full_match): New function.
96 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
97 matching to allow use of hashing.
98 * dictionary.c (struct dict_vector): Generalize iter_name_first,
99 iter_name_next ot iter_match_first, iter_match_next.
100 (iter_name_first_hashed): Replace with iter_match_first_hashed.
101 (iter_name_next_hashed): Replace with iter_match_next_hashed.
102 (iter_name_first_linear): Replace with iter_match_first_linear.
103 (iter_name_next_linear): Replace with iter_match_next_linear.
104 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
105 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
106 (dict_iter_match_first): New function.
107 (dict_iter_match_next): New function.
108 (dict_hash): New function.
109 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
110 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
112 2010-10-06 Doug Evans <dje@google.com>
114 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
116 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
118 * dwarf2read.c (read_tag_const_type): Handle const arrays.
120 2010-10-06 Doug Evans <dje@google.com>
122 * Makefile.in (REQUIRED_SUBDIRS): New var.
123 (subdir_do): Verify required subdir Makefiles exist.
125 Create subdir data-directory.
126 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
127 data-directory/Makefile.in.
128 (SUBDIRS): Add data-directory.
129 (all): Remove xml-syscall-copy dependency.
130 (xml-syscall-copy): Moved to data-directory/Makefile.in as
132 (xml-syscall-install): Moved to data-directory/Makefile.in as
134 (install-only): Remove xml-syscall-install dependency.
135 (all-data-directory): New rule.
136 (data-directory/Makefile): New rule.
137 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
138 * configure: Regenerate.
139 * data-directory/Makefile.in: New file.
140 * python/lib/gdb/__init__.py: New file.
142 2010-10-06 Joel Brobecker <brobecker@adacore.com>
144 Fix ARI warnings in advance_wild_match.
145 * ada-lang.c (advance_wild_match): Delete local variable t2.
146 Adjust code accordingly. Minor reformatting.
148 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
150 * gdbtypes.h (struct main_type): Remove flag_nottext.
151 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
152 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
153 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
154 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
155 of TYPE_FLAG_NOTTEXT.
156 (init_type): Remove the initialization of the flag_nottext field.
157 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
159 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
161 2010-10-04 Doug Evans <dje@google.com>
163 * cc-with-index.sh: New file.
165 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
167 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
168 (create_cus_from_index, create_addrmap_from_index): Ditto.
169 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
170 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
171 (dw2_do_expand_symtabs_matching): Ditto.
172 (eq_strtab_entry, create_strtab, add_string): Ditto.
173 (hash_strtab_entry): Ditto.
174 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
175 (create_index_table, create_mapped_symtab, find_slot): Ditto.
176 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
177 (write_hash_table, add_address_entry, write_psymbols): Ditto.
178 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
179 (write_psymtabs_to_index): Ditto.
181 2010-10-04 Joel Brobecker <brobecker@adacore.com>
183 * ada-lang.c: #include "value.h".
184 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
185 arguments. Implement using value_allocate_space_in_inferior
186 instead of allocating memory from the stack.
187 (make_array_descriptor): Remove gdbarch and sp parameters. Update
188 calls to ensure_lval.
189 (ada_convert_actual): Remove gdbarch and sp parameters. Update
190 calls to make_array_descriptor and ensure_lval.
191 * ada-lang.h (ada_convert_actual): Update declaration.
192 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
194 2010-10-04 Doug Evans <dje@google.com>
196 * python/python.c (_initialize_python): Define new function
197 GdbSetPythonDirectory in python. Use it to update sys.path and
200 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
202 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
203 incorporating and generalizing print_record_field_types.
204 (print_record_field_types): Change return value and update comment.
205 Re-implement using print_selected_record_field_types.
206 (print_choices): Print "=>" here.
207 Handle case of unencoded variant branch.
208 (print_variant_clauses): Reformat comment.
209 Special-case unencoded variant branch.
211 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
213 * ada-lang.c (wild_match): Reimplement.
214 Change API to eliminate unused length argument, reverse arguments and
215 make 0 the 'true' return value.
216 (advance_wild_match): New auxiliary function for wild_match to improve
218 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
219 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
221 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
223 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
225 2010-10-01 Doug Evans <dje@google.com>
227 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
228 for `save gdb-index' command.
230 2010-10-01 Tom Tromey <tromey@redhat.com>
232 * symfile.h (allocate_symtab): Update.
233 * symfile.c (allocate_symtab): Make 'filename' const.
234 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
235 (add_psymbol_to_list): Likewise.
236 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
238 (add_psymbol_to_list): Update.
239 * mdebugread.c (new_symtab): Make 'name' const.
240 (psymtab_to_symtab_1): Make 'filename' const.
241 * elfread.c (elfstab_offset_sections): Update.
242 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
243 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
244 (psymtab_include_file_name): Update.
245 * dbxread.c (find_stab_function_addr): Make 'filename' const.
246 * buildsym.h (start_subfile): Update.
247 * buildsym.c (start_subfile): Make arguments const.
249 2010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
251 * fork-child.c (breakup_args): Fix crash if shell forking is
252 disabled at compile time.
254 2010-10-01 Joel Brobecker <brobecker@adacore.com>
256 * ada-lang.c (desc_bounds): Add handling of the case where
257 the P_BOUNDS field is a pointer to a stub.
258 (desc_data_target_type): Same for P_ARRAY field.
259 (ada_check_typedef): Strip the typedef layers from the type
260 found by ada_find_any_type.
262 2010-10-01 Joel Brobecker <brobecker@adacore.com>
264 * sparc-tdep.c (sparc32_frame_align): New function.
265 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
266 * sparc64-tdep.c (sparc64_frame_align): New function.
267 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
269 2010-09-30 H.J. Lu <hongjiu.lu@intel.com>
271 * defs.h (MAX_REGISTER_SIZE): Set to 64.
273 2010-09-30 Tom Tromey <tromey@redhat.com>
275 * symfile.h (struct sym_fns) <next>: Remove.
276 (add_symtab_fns): Update.
277 * symfile.c (sym_fns_ptr): New typedef.
278 (symtab_fns): Now a VEC.
279 (add_symtab_fns): Update. Change argument type.
280 (find_sym_fns): Update. Change return type.
281 (get_symfile_segment_data): Update.
282 * objfiles.h (struct objfile) <sf>: Now const.
283 * somread.c (som_sym_fns): Now const. Update.
284 * xcoffread.c (xcoff_sym_fns): Now const. Update.
285 * mipsread.c (ecoff_sym_fns): Now const. Update.
286 * machoread.c (macho_sym_fns): Now const. Update.
287 * elfread.c (elf_sym_fns): Now const. Update.
288 (elf_sym_fns_gdb_index): Likewise.
289 * dbxread.c (aout_sym_fns): Now const. Update.
290 * coffread.c (coff_sym_fns): Now const. Update.
292 2010-09-30 Tom Tromey <tromey@redhat.com>
294 * value.c (value_primitive_field): Take 'offset' into account for
297 2010-09-30 Tom Tromey <tromey@redhat.com>
299 * completer.c (count_struct_fields): Handle anonymous structs and
301 (add_struct_fields): Likewise.
303 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
305 Fix printing parameters of inlined functions.
306 * ada-lang.c (is_known_support_routine)
307 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
308 for find_frame_funname.
309 * python/py-frame.c (frapy_name): Likewise.
310 * stack.c (find_frame_funname): New parameter funcp. Update the
311 function comment. Fill it in.
312 (print_frame): New variable func. Initialize it by
313 find_frame_funname. Print arguments only if FUNC is not NULL. Use
314 FUNC as the parameter of print_args_stub.
315 * stack.h (find_frame_funname): New parameter funcp. Remove the
316 function declaration comment.
318 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
321 * inferior.c (have_live_inferiors): New variables old_chain, inf and
322 tp. Iterate INFERIOR_LIST and call target_has_execution.
324 2010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
326 Fix GDB crash on inferior calls with self-referencing classes.
327 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
330 2010-09-29 Doug Evans <dje@google.com>
332 Workaround for gcc/45682.
333 * dwarf2read.c (partial_die_info): New fields fixup_called,
335 (guess_partial_die_structure_name): Renamed from guess_structure_name.
336 Move definition next to use. Use linkage_name to determine if class
337 is in a namespace. All callers updated.
338 (fixup_partial_die): Return early if already called.
339 Set fixup_called when done.
340 (guess_full_die_structure_name): New function.
341 (determine_prefix): Call it for class/struct/union dies if c++ and
342 .debug_types section is present and parent is DW_TAG_compile_unit.
344 2010-09-28 Joel Brobecker <brobecker@adacore.com>
346 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
347 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
349 2010-09-28 Joel Brobecker <brobecker@adacore.com>
351 * NEWS: Announce Ravenscar Profile support.
353 2010-09-28 Joel Brobecker <brobecker@adacore.com>
354 Jerome Guitton <guitton@adacore.com>
356 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
358 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
359 ravenscar-sparc-thread.o to gdb_target_obs.
361 2010-09-28 Joel Brobecker <brobecker@adacore.com>
363 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
364 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
366 2010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
368 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
369 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
370 skip_main_prologue method.
372 2010-09-27 Tom Tromey <tromey@redhat.com>
374 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
375 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
376 Only emit a given psymbol once.
377 (struct signatured_type_index_data) <psyms_seen>: New field.
378 (write_one_signatured_type): Update.
379 (cleanup_htab): New function.
380 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
382 (save_gdb_index_command): Update index documentation.
384 2010-09-27 Tom Tromey <tromey@redhat.com>
386 * bcache.c (expand_hash_table): Use hash_function, not hash.
388 2010-09-27 Tom Tromey <tromey@redhat.com>
390 * gdb_wchar.h: Change minimum libiconv to 0x108.
392 2010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
394 Fix lost siginfo_t for inferior calls.
396 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
397 (save_inferior_thread_state): New variables regcache, gdbarch and
398 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
399 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
401 (restore_inferior_thread_state): New variables regcache and gdbarch.
402 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
403 REGCACHE. Free also SIGINFO_DATA.
405 2010-09-24 Tom Tromey <tromey@redhat.com>
407 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
409 (dw2_map_symbol_names): Likewise.
411 2010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
413 * valops.c (find_oload_champ_namespace_loop): replace incorrect
414 discard_cleanups do_cleanups.
416 2010-09-24 Pedro Alves <pedro@codesourcery.com>
420 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
421 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
422 si_code is < 0. Check for si_code == SI_TIMER before checking for
425 2010-09-24 Pedro Alves <pedro@codesourcery.com>
427 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
429 2010-09-22 Joel Brobecker <brobecker@adacore.com>
431 * ada-tasks.c (read_atcb): Do not compute the task ptid when
432 debugging a core file.
434 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
437 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
438 (free_objfile) <objfile->name != NULL>: Remove the conditional around
440 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
441 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
443 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
444 Remove the conditional.
445 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
447 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
449 * main.c: Include objfiles.h.
450 (captured_main): New variable objfile. Call
451 load_auto_scripts_for_objfile for ALL_OBJFILES.
453 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
455 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
458 2010-09-22 Joel Brobecker <brobecker@adacore.com>
460 * dwarf2read.c (scan_partial_symbols): Add handling of
461 DW_TAG_constant DIEs.
462 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
464 2010-09-22 Joel Brobecker <brobecker@adacore.com>
466 * configure.ac: Add support for --enable-gdbserver.
467 * configure: Regenerate.
469 2010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
472 * valops.c (find_oload_champ_namespace_loop): removed incorrect
473 'old_cleanups' reassignment.
475 2010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
477 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
480 2010-09-16 Phil Muldoon <pmuldoon@redhat.com>
483 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
484 read_var_value and common_val_print and print a warning.
486 2010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
488 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
489 keep the list in alphabetical order. Use longer e-mail address.
491 2010-09-15 Tom Tromey <tromey@redhat.com>
493 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
495 2010-09-15 Tom Tromey <tromey@redhat.com>
497 * charset.c (iconv_open): New define.
499 (iconv_close): Likewise.
500 (phony_iconv_open): Add "phony_" prefix.
501 (phony_iconv_close): Likewise.
502 (phony_iconv): Likewise.
503 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
504 Change how INTERMEDIATE_ENCODING is defined.
506 2010-09-15 Doug Evans <dje@google.com>
508 * dwarf2read.c (struct die_info): Fix comment.
510 2010-09-15 Alan Modra <amodra@gmail.com>
513 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
514 than setting SEC_NEVER_LOAD on sections that need not be copied.
516 2010-09-14 Tom Tromey <tromey@redhat.com>
518 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
519 (start_psymtab_common, allocate_psymtab, discard_psymtab):
521 * symfile.h (extend_psymbol_list): Remove.
522 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
523 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
524 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
526 2010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
528 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
531 2010-09-14 Tom Tromey <tromey@redhat.com>
534 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
535 for unrecognized frame base expression.
537 2010-09-14 Tom Tromey <tromey@redhat.com>
540 * value.c (value_static_field): Use value_of_variable.
542 2010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
544 * m32r-rom.c: Replace winsock.h with winsock2.h header.
545 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
547 2010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
550 * c-exp.y (classify_name): Check is_a_member_of_this before returning
553 2010-09-13 Joel Brobecker <brobecker@adacore.com>
555 * NEWS: Add x86-lynxos to the list of platforms supported by
558 2010-09-13 Joel Brobecker <brobecker@adacore.com>
560 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
562 2010-09-13 Tom Tromey <tromey@redhat.com>
564 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
566 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
568 * i386-tdep.c (i386_ymm_type): Set type name to
569 builtin_type_vec256i.
571 2010-09-12 Michael Snyder <msnyder@vmware.com>
573 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
575 2010-09-12 H.J. Lu <hongjiu.lu@intel.com>
577 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
579 2010-09-11 H.J. Lu <hongjiu.lu@intel.com>
581 * amd64-tdep.c (amd64_register_name): Removed.
582 (amd64_init_abi): Don't call set_gdbarch_register_name.
584 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
586 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
588 2010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
589 Paul Bolle <pebolle@tiscali.nl>
591 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
592 * cli-logging.c (struct saved_output_files) <targerr>: New.
593 (set_logging_redirect, pop_output_files, handle_redirections):
594 Redirect also gdb_stdtargerr.
595 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
597 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
599 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
600 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
601 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
602 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
603 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
606 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
608 * hppa-tdep.c (unwind_command): Use host_address_to_string function
609 to display a host address.
610 * monitor.c (monitor_read_memory): Likewise.
611 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
613 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
615 * coffread.c (struct coff_symbol): Change c_value type from `long' to
616 `CORE_ADDRESS' as it might contain target addresses.
618 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
620 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
621 before cast to pointer to avoid warning.
623 2010-09-09 Kevin Buettner <kevinb@redhat.com>
625 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
628 2010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
630 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
631 anonymous class partial DIEs.
633 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
635 * dwarf2read.c (dwarf2_compute_name): Check that the first
636 argument is a pointer.
638 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
640 * dwarf2read.c (read_func_scope, read_structure_type)
641 (read_common_block): Check for a NULL return from new_symbol.
643 2010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
645 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
647 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
649 * dwarf2read.c (read_structure_type): Move processing of
650 fields and member functions from here...
651 (process_structure_scope): ... to here.
653 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
655 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
657 (gnuv3_make_method_ptr): Likewise.
659 2010-09-08 Tom Tromey <tromey@redhat.com>
661 * breakpoint.c (create_breakpoint): Add missing _().
663 2010-09-08 Doug Evans <dje@google.com>
665 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
667 2010-09-08 Tom Tromey <tromey@redhat.com>
670 2010-09-01 Tom Tromey <tromey@redhat.com>
671 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
672 symtab.h: Revert earlier change.
674 2010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
676 * psymtab.c (add_psymbol_to_bcache): Initialize
678 memset psymbol.ginfo.value to 0.
680 2010-09-06 Pedro Alves <pedro@codesourcery.com>
682 * infrun.c (resume): Extend comment on ignoring single-step
683 requests on vfork parents waiting for a vfork-done.
685 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
686 Pedro Alves <pedro@codesourcery.com>
688 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
690 * fork-child.c (startup_inferior) <resume_signal>: Use enum
692 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
693 calling strsignal. Use enum target_signal type for saved_signo.
694 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
695 (linux_nat_wait_1): Use enum target_signal type for signo. Use
696 target_signal_to_host before calling strsignal.
697 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
700 2010-09-06 Pedro Alves <pedro@codesourcery.com>
701 Jan Kratochvil <jan.kratochvil@redhat.com>
703 * common/signals.c (ANY): Remove.
704 (SET): No longer use ANY.
706 2010-09-06 Yao Qi <yao@codesourcery.com>
708 * infrunc(resume): When inferior is waiting_for_vfork_done,
709 clear step and don't use displaced stepping.
711 2010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
713 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
716 2010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
718 Code cleanup - split print_stop_reason.
719 * infrun.c (enum inferior_stop_reason): Remove.
720 (print_stop_reason): Remove by splitting into ...
721 (print_exited_reason, print_signal_exited_reason)
722 (print_no_history_reason, print_signal_received_reason)
723 (print_end_stepping_range_reason): ... these new functions. Update
724 the preceding comment.
725 (handle_inferior_event): Change the calls to print_exited_reason,
726 print_signal_exited_reason, print_no_history_reason,
727 print_signal_received_reason, print_end_stepping_range_reason.
728 (handle_step_into_function, handle_step_into_function_backward):
729 Change the calls to print_end_stepping_range_reason.
731 2010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
733 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
734 * cli-out.c: Include vec.h.
735 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
736 variable stream, initialize it, use it.
737 (cli_redirect): New function comment. Replace the stream and
738 original_stream fields by the new streams field. Remove the
739 original_stream != NULL conditional, assert error on NULL instead.
740 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
741 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
742 original_stream fields by the new streams field.
743 (cli_out_set_stream): Replace the stream field by the new streams
745 * cli-out.h: Include vec.h.
746 (ui_filep): New typedef, call DEF_VEC_P for it.
747 (struct cli_ui_out_data): Replace the stream and original_stream
748 fields by the new streams field.
749 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
750 NULL first. Extend the comment.
751 (handle_redirections): Call ui_out_redirect with output.
752 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
753 calls outside of the TRY_CATCH block.
755 2010-09-03 Joel Brobecker <brobecker@adacore.com>
759 2010-09-02 Joel Brobecker <brobecker@adacore.com>
761 Back out the following change:
762 | 2010-06-29 Hui Zhu <teawater@gmail.com>
763 | * record.c (set_record_pic_cmdlist,
764 | show_record_pic_cmdlist): New variables.
765 | (set_record_pic_command,
766 | show_record_pic_command): New functions.
767 | (record_pic_function, record_pic_line, record_pic_enum,
768 | set_record_pic_type, record_pic_hide_nofunction,
769 | record_pic_hide_nosource, record_pic_hide_same): New variables.
770 | (record_pic_fputs): New function.
771 | (function_list, node_list, edge_list): New struct.
772 | (function_list, node_list, edge_list): New variables.
773 | (record_pic_cleanups, record_pic_node,
774 | record_pic_edge, cmd_record_pic): New functions.
775 | (_initialize_record): Add new commands for record pic.
777 2010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
779 * config.in, configure: Regenerated.
780 * configure.ac: Check for waitpid.
781 * ser-pipe.c (pipe_close): Wait for the program to exit.
783 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
785 * cli/cli-logging.c: Include gdb_assert.h.
786 (set_logging_overwrite): New function.
787 (logging_redirect): New comment.
788 (logging_no_redirect_file, set_logging_redirect)
789 (pop_output_files) <logging_no_redirect_file>: New.
790 (handle_redirections) <!logging_redirect>: New variable
791 no_redirect_file. Remove file autoclose for tee_file_new. No longer
792 discard cleanup for the close of former OUTPUT. Set
793 LOGGING_NO_REDIRECT_FILE.
794 (handle_redirections) <logging_redirect>: gdb_assert
795 LOGGING_NO_REDIRECT_FILE.
796 (show_logging_command) <logging_redirect handling>: Adjust messages
797 for SAVED_FILENAME not NULL.
798 (_initialize_cli_logging): Install set_logging_overwrite and
799 set_logging_redirect.
801 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
803 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
805 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
807 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
808 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
809 add $(GDB_WARN_CFLAGS_NO_FORMAT).
810 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
812 2010-09-02 Yao Qi <yao@codesourcery.com>
814 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
815 number from a WIFSIGNALED status.
817 2010-09-01 Tom Tromey <tromey@redhat.com>
819 * symtab.h (lookup_type_symbol): Declare.
820 * symtab.c (lookup_symbol_in_language_full): Rename from
821 lookup_symbol_in_language. Add 'for_type' argument.
822 (lookup_symbol_in_language): New function.
823 (lookup_type_symbol): Likewise.
824 (lookup_symbol_aux): Add 'for_type' argument.
825 (match_symbol_aux): New function.
826 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
827 (match_transparent_type): New function.
828 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
829 * symfile.h (struct quick_symbol_functions)
830 <pre_expand_symtabs_matching>: Remove.
831 <expand_one_symtab_matching>: New field.
832 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
833 (pre_expand_symtabs_matching_psymtabs): Remove.
834 (psym_functions): Update.
835 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
836 * dwarf2read.c (dw2_lookup_symbol): Update comment.
837 (dw2_pre_expand_symtabs_matching): Remove.
838 (dw2_expand_one_symtab_matching): New function.
839 (dwarf2_gdb_index_functions): Update.
841 2010-09-01 Joel Brobecker <brobecker@adacore.com>
843 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
845 2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
847 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
848 as a feature reported by -list-target-features.
850 2010-09-01 Joel Brobecker <brobecker@adacore.com>
852 * features/Makefile (WHICH): Add rs6000/powerpc-32.
853 (powerpc-32.o, powerpc-32.c): New rules.
854 (clean): Also remove powerpc-32.c.
855 * regformats/rs6000/powerpc-32.dat: Generate.
857 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
859 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
861 * psymtab.h (psymbol_bcache_init): New function prototype.
862 (psymbol_bcache_free): New function prototype.
863 (psymbol_bcache_get_bcache): New function prototype.
864 * psymtab.c (psymbol_bcache_init): New function.
865 (psymbol_bcache_free): New function.
866 (psymbol_bcache_full): New function.
867 (psymbol_bcache_get_bcache): New function.
868 (add_psymbol_to_bcache): use psymbol_bcache_full.
869 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
871 * symmisc.c (print_symbol_bcache_statistics): Updated.
872 (print_objfile_statistics): Updated.
873 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
875 (free_objfile): Use psymbol_bcache_free.
877 2010-08-31 Tom Tromey <tromey@redhat.com>
880 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
881 Don't set TYPE_NAME on the type.
883 2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
885 * infrun.c (set_exec_direction_func): Error out if target does not
886 support reverse execution.
888 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
890 Make linux_get_siginfo_type `type *' unique.
891 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
892 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
893 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
894 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
895 (_initialize_linux_tdep): New.
897 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
900 * defs.h (find_memory_region_ftype): New typedef.
901 (exec_set_find_memory_regions): Use it.
902 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
903 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
904 * gcore.c (objfile_find_memory_regions): Likewise.
905 * gnu-nat.c (gnu_find_memory_regions): Likewise.
906 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
907 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
908 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
909 find_memory_region_ftype.
910 (insert_dbx_link_bpt_in_region): Likewise.
911 (iterate_over_mappings): Likewise. Drop the comment part about the
913 (find_memory_regions_callback): Use find_memory_region_ftype.
914 (proc_find_memory_regions): Likewise.
915 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
916 find_memory_region_ftype.
917 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
918 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
920 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
922 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
923 'static partial_symbol psymbol'.
924 (psymbol_hash): New function.
925 (psymbol_compare): New function.
926 * bcache.c (hash_continue): New.
927 (hash): Use hash_continue.
928 * bcache.c: Add hash_function and compare_function
929 pointers to bcache struct.
930 (bcache_full): Use bcache->hash_function, and
931 bcache->compare_function.
932 (bcache_compare): New function.
933 (bcache_xmalloc): Take hash_function and
934 compare_function arguments and initialize the
937 * objfiles.c (allocate_objfile): Updated.
938 * symfile.c (reread_symbols): Updated.
939 * python/py-type.c (typy_richcompare): Updated.
941 2010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
942 Tom Tromey <tromey@redhat.com>
945 * python/py-value.c (valpy_get_dynamic_type): New function.
946 (value_object_getset): Add "dynamic_type".
947 (valpy_get_type): Fail on error.
949 2010-08-30 Yao Qi <yao@codesourcery.com>
951 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
952 (arm_linux_syscall_next_pc): New.
953 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
954 (arm_linux_init_abi): Initialize syscall_next_pc.
955 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
956 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
957 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
958 Declare arm_frame_is_thumb.
960 2010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
963 * breakpoint.c (bpstat_alloc): Remove unused prototype.
964 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
966 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
967 calls of bpstat_alloc. Remove explicit bs chain termination.
969 2010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
972 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
973 (my_waitpid): Likewise.
975 2010-08-27 Doug Evans <dje@google.com>
977 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
980 2010-08-27 Tom Tromey <tromey@redhat.com>
982 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
983 TYPE_FIELD_IGNORE_BITS.
985 2010-08-27 Doug Evans <dje@google.com>
987 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
988 the order they're defined in. munmap .debug_types buffer.
990 2010-08-26 Doug Evans <dje@google.com>
992 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
993 (dw2_forget_cached_source_info): Rename local cu to per_cu.
994 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
995 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
996 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
997 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
998 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
999 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
1000 (write_psymtabs_to_index): Ditto.
1002 2010-08-26 Pedro Alves <pedro@codesourcery.com>
1004 * NEWS: Mention libthread_db debugging with core files.
1006 2010-08-26 Doug Evans <dje@google.com>
1008 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
1009 forward decl. Pass pst->dirname to dwarf_decode_lines.
1010 (psymtab_include_file_name): New function.
1011 (dwarf_decode_lines): Call it. Update comments.
1013 2010-08-25 Pedro Alves <pedro@codesourcery.com>
1015 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
1016 compilation unit being different from target die's.
1018 2010-08-24 Doug Evans <dje@google.com>
1021 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
1022 debug_types_type_hash.
1023 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
1025 (lookup_die_type): Renamed from tag_type_to_tag. First look in
1026 appropriate type_hash table. All callers updated.
1027 (allocate_signatured_type_table): Renamed from
1028 allocate_signatured_type_hash_table. All callers updated.
1029 (create_signatured_type_table_from_index): Renamed from
1030 create_signatured_type_hash_from_index. All callers updated.
1031 (read_die_type): Add comment. Move actual reading to ...
1032 (read_die_type_1): ... here. New function.
1033 (follow_die_ref_or_sig): Tweak comment.
1034 (set_die_type): Rewrite to use appropriate choice of
1035 debug_info_type_hash or debug_types_type_hash.
1036 (get_die_type_at_offset): New function.
1037 (get_die_type): Call it.
1039 2010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1041 * python/py-type.c (typy_richcompare): Initialize worklist.
1043 2010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
1044 Kazu Hirata <kazu@codesourcery.com>
1045 Jonathan Larmour <jifl@eCosCentric.com>
1047 * arm-tdep.c: Include features/arm-with-m.c.
1048 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
1050 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
1051 Check is_m after force-mode.
1052 (arm_gdbarch_init): Check the binary before the target description.
1053 Add check for M profile attribute. If we have an M-profile device,
1054 but no target register description, use arm-with-m. Recognize the
1055 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
1056 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
1057 * arm-tdep.h (XPSR_T): Define.
1058 (struct gdbarch_tdep): Add is_m member.
1059 * features/arm-m-profile.xml, features/arm-with-m.c,
1060 features/arm-with-m.xml: New files.
1062 2010-08-23 Doug Evans <dje@google.com>
1064 * dwarf2read.c (read_structure_type): Add comment.
1065 (read_enumeration_type): Add comment.
1066 (process_enumeration_scope): Move definition of some locals
1067 closer to their use.
1068 (read_namespace_type): Add comment.
1069 (set_die_type): Fix typo in comment.
1071 2010-08-23 Tom Tromey <tromey@redhat.com>
1074 * python/py-value.c: Include expression.h.
1075 (valpy_do_cast): New function.
1076 (valpy_cast): Use it.
1077 (valpy_dynamic_cast): New function.
1078 (valpy_reinterpret_cast): Likewise.
1079 (value_object_methods): Add dynamic_cast, reinterpret_cast.
1081 2010-08-23 Tom Tromey <tromey@redhat.com>
1084 * python/py-value.c (valpy_nonzero): Don't throw error for other
1087 2010-08-23 Tom Tromey <tromey@redhat.com>
1090 * python/py-type.c: Include bcache.h, vec.h.
1091 (struct type_equality_entry): New.
1092 (compare_strings): New function.
1093 (check_types_equal): Likewise.
1094 (check_types_worklist): Likewise.
1095 (typy_richcompare): Likewise.
1096 (type_object_type): Set tp_richcompare field.
1098 2010-08-23 Tom Tromey <tromey@redhat.com>
1101 * python/py-type.c (typy_fields): Call check_typedef.
1102 (typy_template_argument): Add TRY_CATCH.
1104 2010-08-23 Tom Tromey <tromey@redhat.com>
1107 * python/py-type.c (typy_array): New function.
1108 (type_object_methods): Add "array".
1110 2010-08-20 Pedro Alves <pedro@codesourcery.com>
1112 * python/python.c: Include "serial.h".
1113 (gdbpy_event_fds): Change type to `struct serial *' a array from
1115 (gdbpy_run_events): Change parameters. Use serial_readchar in
1117 (gdbpy_post_event): Use serial_write in place of write.
1118 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
1119 serial_async in place of add_file_handler.
1121 2010-08-20 Pedro Alves <pedro@codesourcery.com>
1123 * serial.h (gdb_pipe, serial_pipe): Declare.
1124 * serial.c (serial_interface_lookup): Take a const char pointer.
1125 (serial_fdopen): Rename to ...
1126 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
1127 Call the OPS' fdopen function if there is one.
1128 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
1130 (struct serial_ops) <fdopen>: New field.
1132 * ser-mingw.c (free_pipe_state):
1133 (free_pipe_state): Close output on non-pex pipes.
1134 (pipe_windows_fdopen): New.
1136 (_initialize_ser_windows): Register pipe_windows_fdopen.
1137 * ser-go32.c (gdb_pipe): New.
1138 * ser-pipe.c (pipe_close): Close file descriptor even if there's
1143 2010-08-20 Keith Seitz <keiths@redhat.com>
1146 * dwarf2read.c (struct delayed_method_info): New struct.
1147 (struct dwarf2_cu): Add vector method_list.
1148 (scan_partial_symbols): Count methods for union, class, structure,
1149 and interface types.
1150 (add_to_method_list): New function.
1151 (free_delayed_list): New function.
1152 (compute_delayed_physnames): New function.
1153 (process_full_comp_unit): Make a cleanup for the CU's delayed
1154 physname list, compute the delayed physnames, and free the
1156 (dwarf2_add_member_fn): For C++ and Java, delay the computation
1157 of the physname until after the CU is read.
1159 * dwarf2read.c (read_structure_type): Check if the current
1160 DIE's type was already completed after dwarf2_full_name
1163 2010-08-19 Stan Shebs <stan@codesourcery.com>
1165 * NEWS: Mention some additional changes.
1167 2010-08-19 Tom Tromey <tromey@redhat.com>
1169 * Makefile.in (install-python): Add DESTDIR.
1171 2010-08-19 Doug Evans <dje@google.com>
1174 * parser-defs.h (parse_float, parse_c_float): Declare.
1175 * parse.c (parse_float, parse_c_float): New function.
1176 * c-exp.y (parse_number): Call parse_c_float.
1177 * objc-exp.y (parse_number): Ditto.
1178 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
1179 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
1181 2010-08-19 Joel Brobecker <brobecker@adacore.com>
1183 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
1184 the arguments in the correct order.
1185 * symtab.c (maybe_add_partial_symtab_filename): Declare
1186 the arguments in the correct order.
1188 2010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1190 * varobj.c (varobj_create): Replace variable old_fi with old_id,
1191 initialize it by null_frame_id, wrap its usage by get_frame_id,
1192 frame_id_p and frame_find_by_id.
1194 2010-08-18 Tom Tromey <tromey@redhat.com>
1197 * configure: Rebuild.
1198 * configure.ac: Add install-python to CONFIG_INSTALL.
1199 * Makefile.in (install-python): New.
1201 2010-08-18 Doug Evans <dje@google.com>
1203 * gdb_assert.h (gdb_assert_not_reached): New macro.
1204 (gdb_assert_fail): Fix typo in comment.
1205 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
1207 * darwin-nat.c (darwin_check_new_threads): Ditto.
1208 * dwarf2read.c (dwarf2_get_section_info): Ditto.
1209 (munmap_section_buffer): Ditto.
1210 * m32c-tdep.c (make_types): Ditto.
1211 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
1212 * macroexp.c (get_character_constant): Ditto.
1213 (get_string_literal): Ditto.
1214 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
1215 (mep_pseudo_cr_index, mep_register_type): Ditto.
1216 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
1217 (mep_get_insn, mep_analyze_prologue): Ditto.
1218 * objfiles.c (qsort_cmp): Ditto.
1219 * prologue-value.c (pv_is_identical): Ditto.
1220 * record.c (record_get_loc): Ditto.
1221 * value.c (value_static_field): Ditto.
1222 * xtensa-tdep.c (call0_track_op): Ditto.
1224 2010-08-18 Tom Tromey <tromey@redhat.com>
1227 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
1228 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
1229 name-copying lower. Document exception behavior.
1230 * completer.c (expression_completer): Catch exceptions from
1231 parse_field_expression.
1233 2010-08-18 Pedro Alves <pedro@codesourcery.com>
1237 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
1238 workaround on core files.
1239 (try_thread_db_load_1): Don't try enabling thread event reporting
1241 (thread_db_load): Allow thread_db on core files.
1242 (attach_thread): Don't check thread signals on core files, nor try
1243 really attaching to the thread, nor enabling thread event event
1245 (thread_db_detach): Don't try disabing thread event reporting or
1246 removing thread event breakpoints when debugging a core file.
1247 (find_new_threads_callback): Don't try enabling thread event
1248 reporting on core files.
1249 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
1250 debugging a core file.
1251 (thread_db_find_new_threads): Don't update thread
1252 cores (processors) when debugging a core (dump).
1254 2010-08-18 Pedro Alves <pedro@codesourcery.com>
1258 * corelow.c (add_to_thread_list): Don't use
1259 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
1260 (get_core_register_section): Don't use
1261 gdbarch_core_reg_section_encodes_pid.
1263 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
1264 * gdbarch.h, gdbarch.c: Regenerate.
1265 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
1266 gdbarch_core_reg_section_encodes_pid.
1267 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
1268 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
1269 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1271 2010-08-18 Yao Qi <yao@codesourcery.com>
1273 * MAINTAINERS : Add myself under Write After Approval.
1275 2010-08-17 Tom Tromey <tromey@redhat.com>
1277 * NEWS: Mention template parameter support.
1279 2010-08-17 Pedro Alves <pedro@codesourcery.com>
1281 PR breakpoints/11371
1283 * breakpoint.c (decref_bp_location): Assert the reference count is
1286 2010-08-17 Pedro Alves <pedro@codesourcery.com>
1288 PR breakpoints/11371
1290 * breakpoint.c (breakpoint_init_inferior): Decrement the
1291 location's reference count instead of deleting right away.
1292 (bpstat_free): Decrement the location's reference count. Make
1294 (bpstat_copy): Increment the location's reference count.
1295 (bpstat_find_breakpoint): Adjust.
1296 (bpstat_num): Adjust.
1297 (print_it_typical): Adjust. Use the breakpoint pointer in the
1298 bpstat instead of the location's owner.
1299 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
1300 Adjust to record the location's owner in the bpstat.
1301 (watchpoint_check): Use the breakpoint pointer in the bpstat
1302 instead of the location's owner.
1303 (bpstat_check_breakpoint_conditions): Don't handle
1304 bp_watchpoint_scope here. Use the breakpoint pointer in the
1305 bpstat instead of the location's owner.
1306 (bpstat_stop_status): Defer inferior function calls to after
1307 building the bpstat list. Handle bp_watchpoint_scope here. Use
1308 the breakpoint pointer in the bpstat instead of the location's
1310 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
1311 the location's owner.
1312 (free_bp_location): Don't walk bpstats clearing locations.
1313 (incref_bp_location): New.
1314 (decref_bp_location): New.
1315 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
1316 instead of the location's owner.
1317 (update_global_location_list): Clear the location's owner, and
1318 decrement the location's reference count instead of deleting it
1320 (breakpoint_retire_moribund): Decrement the location's reference
1321 count instead of deleting it right away.
1322 (bpstat_remove_bp_location): Delete.
1323 (bpstat_remove_breakpoint): New.
1324 (bpstat_remove_bp_location_callback): Delete.
1325 (bpstat_remove_breakpoint_callback): New.
1326 (delete_breakpoint): Iterate over all threads' stop_bpstat's
1327 clearing references to the breakpoint that is being deleted.
1329 * breakpoint.h (struct bp_location) <refc>: New field.
1330 <owner>: Update comments.
1331 (bpstat_free): Delete declaration.
1332 (struct bpstats): Change the type of the breakpoint_at field to
1333 struct breakpoint point, from struct bp_location pointer. Add new
1334 field bp_location_at.
1336 2010-08-16 Tom Tromey <tromey@redhat.com>
1340 2010-08-16 Tom Tromey <tromey@redhat.com>
1342 * NEWS: Mention watch -location.
1344 2010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1346 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
1347 EXP_STRING_REPARSE to EXP_STRING.
1348 (watch_command_1): Set also EXP_STRING_REPARSE.
1349 (delete_breakpoint): Free also EXP_STRING_REPARSE.
1350 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
1351 Update comment for exp_string.
1353 2010-08-16 Tom Tromey <tromey@redhat.com>
1355 * value.c (release_value): Clear 'next' pointer.
1356 * breakpoint.c (watch_command_1): Add 'just_location' argument.
1357 (watch_command_wrapper): Update.
1358 (watch_maybe_just_location): New function.
1359 (watch_command): Update.
1360 (rwatch_command_wrapper): Update.
1361 (rwatch_command): Update.
1362 (awatch_command_wrapper): Update.
1363 (awatch_command): Update.
1364 (check_for_argument): New function.
1365 (_initialize_breakpoint): Update help text.
1367 2010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
1369 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
1370 typedef'ed function types correctly.
1372 2010-08-13 Tom Tromey <tromey@redhat.com>
1374 * python/python-internal.h (gdbpy_get_hook_function): Don't
1377 2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1379 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
1382 2010-08-13 Ken Werner <ken.werner@de.ibm.com>
1384 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
1385 the format strings to be compatible with Python 2.4.
1387 2010-08-13 Vladimir Prus <vladimir@codesourcery.com>
1389 Easier and more stubborn MI memory read commands.
1391 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
1392 and data-write-memory-bytes.
1393 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
1394 (mi_cmd_data_write_memory_bytes): New.
1395 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
1396 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
1398 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
1399 * target.c (target_read_until_error): Remove.
1400 (read_whatever_is_readable, free_memory_read_result_vector)
1401 (read_memory_robust): New.
1402 * target.h (target_read_until_error): Remove.
1403 (struct memory_read_result, free_memory_read_result_vector)
1404 (read_memory_robust): New.
1406 2010-08-13 Hui Zhu <teawater@gmail.com>
1408 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
1409 (read_comp_unit): Initialize back_to.
1411 2010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
1412 Pedro Alves <pedro@codesourcery.com>
1414 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
1415 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
1416 (struct partial_die_info) <has_template_arguments>: New field.
1417 <num_attrs>: Change type to unsigned char.
1418 <building_fullname>: New field.
1419 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
1420 allocate a CU if we don't have one already. Add a cleanup for the
1422 (partial_die_full_name): Handle template arguments not in
1424 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
1425 (load_full_comp_unit): Only allocate a CU if we don't have one
1427 (do_ui_file_peek_last): New.
1428 (dwarf2_compute_name): Handle template parameters not in
1430 (read_comp_unit): Read and free abbrevs if not read yet.
1431 (load_partial_dies): Handle template arguments not in DW_AT_name.
1432 (find_partial_die): If we have a CU, but no a partial dies yet,
1433 also read in the CU.
1434 (dwarf2_const_value_attr): New, abstracted out from
1436 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
1437 dwarf2_const_value_attr.
1438 (determine_prefix): Detect and break loops created by RCVT's debug
1440 (maybe_queue_comp_unit): Bail out early if reading partial
1442 (follow_die_offset): Load full CU if we have no dies.
1443 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
1444 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
1446 2010-08-11 Tom Tromey <tromey@redhat.com>
1447 Phil Muldoon <pmuldoon@redhat.com>
1449 * python/python.c (gdbpy_run_events): New function.
1450 (gdbpy_post_event): Likewise.
1451 (gdbpy_initialize_events): Likewise.
1452 (_initialize_python): Call gdbpy_initialize_events.
1454 2010-08-11 Ken Werner <ken.werner@de.ibm.com>
1456 * gdb/valarith.c (vector_binop): New function.
1457 (scalar_binop): Likewise.
1458 (value_binop): Call scalar_binop or vector_binop depending on the types.
1459 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
1460 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
1462 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
1464 2010-08-11 Brad Roberts <braddr@puremagic.com>
1466 * d-lang.c (extract_identifiers): Handle multiple digits.
1468 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1471 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
1472 Rename to dummy_frame_unwind.
1473 (dummy_frame_unwind): Remove.
1474 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
1475 * frame-unwind.c (frame_unwind_init): Use address of
1476 dummy_frame_unwind and inline_frame_unwind.
1477 * frame.c (create_sentinel_frame): Use address of
1478 sentinel_frame_unwind.
1479 * inline-frame.c (inline_frame_unwinder): Rename to
1480 inline_frame_unwind.
1481 (inline_frame_unwind): Remove.
1482 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
1483 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
1484 sentinel_frame_unwind.
1485 (sentinel_frame_unwind): Remove.
1486 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
1489 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1492 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
1493 and returned value. New comment from frame-unwind.h.
1494 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
1496 * frame.c (get_frame_id, frame_unwind_register_value)
1497 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
1498 (get_frame_type, frame_unwind_arch): Do not use the return value of
1499 frame_unwind_find_by_frame.
1501 2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
1502 Thiago Jung Bauermann <bauerman@br.ibm.com>
1503 Tom Tromey <tromey@redhat.com>
1505 * python/python.c (gdbpy_solib_address): New function.
1506 (gdbpy_decode_line): Likewise.
1508 2010-08-10 Tom Tromey <tromey@redhat.com>
1510 Revert gdb-add-index addition:
1511 * Makefile.in (install-only): Don't install gdb-add-index.
1512 * gdb-add-index.sh: Remove.
1514 2010-08-09 Kevin Buettner <kevinb@redhat.com>
1516 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
1517 `target_has_execution' check with `to_has_memory' check.
1518 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
1519 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
1520 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
1522 2010-08-09 Kevin Buettner <kevinb@redhat.com>
1524 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
1525 (resume_siggnal, resume_step): Move these static globals...
1526 (struct sim_inferior_data): ...into this new struct.
1527 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
1529 (gdb_callback, callbacks_initialized): Move these globals to
1530 a point earlier in the file.
1531 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
1532 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
1533 (gdbsim_close_inferior, gdbsim_resume_inferior)
1534 (gdbsim_stop_inferior): New functions.
1535 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
1537 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
1538 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
1539 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
1540 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
1541 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
1542 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
1543 new local variable `sim_data' in each of these functions. Use
1544 `sim_data' to reference former globals `program_loaded',
1545 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
1547 (gdbsim_open): Remove local variable `argv'. Put results of call
1548 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
1549 make a cleanup for it. Free it though when a sim instance cannot
1551 (gdbsim_close): Free sim_argv and null it out as appropriate.
1552 Close sim instances in all inferiors.
1553 (gdbsim_cntrl_c): Stop all inferiors.
1555 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
1557 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
1559 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
1560 function after symbol construction is complete.
1561 Do the same for template symbol addition to template_symbols list.
1563 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
1565 * symtab.c (symbol_get_demangled_name): Remove assertion and
1566 return NULL when language_specific.cplus_specific is not initialized.
1567 * stabsread.c (define_symbol): Set the name before calling
1568 cp_scan_for_anonymous_namespaces.
1570 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
1572 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
1573 SYMBOL_SET_LANGUAGE.
1574 (symbol_init_language_specific): Renamed to symbol_set_language.
1575 * symtab.c (symbol_init_language_specific): Removed redundant check
1577 Renamed to symbol_set_language.
1578 * stabsread.c (define_symbol): Updated.
1579 (read_enum_type): Updated
1580 * psymtab.c (add_psymbol_to_bcache): Updated.
1581 * minsyms.c (install_minimal_symbols): Updated.
1582 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
1583 SYMBOL_LANGUAGE to set the language.
1584 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
1585 * mdebugread.c (new_symbol): Ditto.
1586 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
1587 * dwarf2read.c (new_symbol_full): Ditto.
1588 * jv-lang.c (add_class_symbol): Ditto.
1590 2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1592 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
1593 (make_cleanup_restore_page_info)
1594 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
1595 * gdbcmd.h (execute_command_to_string): New declaration.
1596 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
1597 (make_cleanup_restore_ui_file): Move to utils.c
1598 (execute_gdb_command) <to_string>: Move ...
1599 * top.c (execute_command_to_string): ... here. Call
1600 set_batch_flag_and_make_cleanup_restore_page_info.
1601 * utils.c (make_cleanup_restore_integer): New source file blank line.
1602 (make_cleanup_restore_uinteger): New.
1603 (struct restore_ui_file_closure, do_restore_ui_file)
1604 (make_cleanup_restore_ui_file): Move here from python/python.c.
1605 (init_page_info) <batch_flag>
1606 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
1607 (set_batch_flag_and_make_cleanup_restore_page_info): New.
1609 2010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
1611 * thread.c (add_thread_silent): Use null_ptid instead of
1612 minus_one_ptid while getting rid of stale inferior_ptid.
1614 2010-08-06 Corinna Vinschen <vinschen@redhat.com>
1616 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
1617 Throughout, call read_encoded_value with ptr_size rather than addr_size.
1618 (decode_frame_entry_1): Remove redundant setting of
1619 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
1620 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
1621 on examined frame section. Add comment to explain why.
1622 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
1623 comment to explain usage.
1624 * gdbarch.c: Regenerate.
1625 * gdbarch.h: Regenerate.
1627 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
1629 2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1632 * varobj.c (varobj_create): Move variables fi, old_fi and block to
1635 2010-08-05 Pedro Alves <pedro@codesourcery.com>
1637 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
1638 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
1639 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
1640 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
1641 linux-tdep.o to gdb_target_obs.
1643 2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
1645 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
1648 2010-08-05 Hui Zhu <teawater@gmail.com>
1650 * mips-linux-tdep.c(regset.h): New include.
1651 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
1652 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
1653 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
1654 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
1655 mips_linux_regset_from_core_section): New functions.
1656 (fetch_core_registers, regset_core_fns): Deleted.
1657 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
1658 Deleted regset_core_fns.
1659 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
1660 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
1661 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
1664 2010-08-04 Pedro Alves <pedro@codesourcery.com>
1666 * s390-tdep.c: Include linux-tdep.h.
1667 (s390_gdbarch_init): Call linux_init_abi.
1669 2010-08-04 Pedro Alves <pedro@codesourcery.com>
1671 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
1672 instead of printing "Thread" here.
1673 * linux-tdep.c: Include inferior.h.
1674 (linux_core_pid_to_str): New.
1675 (linux_init_abi): New.
1676 * linux-tdep.h (linux_init_abi): Declare.
1677 * alpha-linux-tdep.c: Include linux-tdep.h.
1678 (alpha_linux_init_abi): Call linux_init_abi.
1679 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
1680 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
1681 * frv-linux-tdep.c: Include linux-tdep.h
1682 (frv_linux_init_abi): Call linux_init_abi.
1683 * hppa-linux-tdep.c: Include linux-tdep.h
1684 (hppa_linux_init_abi): Call linux_init_abi.
1685 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
1686 * ia64-linux-tdep.c: Include linux-tdep.h.
1687 (ia64_linux_init_abi): Call linux_init_abi.
1688 * m32r-linux-tdep.c: Include linux-tdep.h.
1689 (m32r_linux_init_abi): Call linux_init_abi.
1690 * m68klinux-tdep.c: Include linux-tdep.h.
1691 (m68k_linux_init_abi): Call linux_init_abi.
1692 * microblaze-linux-tdep.c: Include linux-tdep.h.
1693 (microblaze_linux_init_abi): Call linux_init_abi.
1694 * mips-linux-tdep.c: Include linux-tdep.h.
1695 (mips_linux_init_abi): Call linux_init_abi.
1696 * mn10300-linux-tdep.c: Include linux-tdep.h.
1697 (am33_linux_init_osabi): Call linux_init_abi. Rename the
1698 'gdbinfo' parameter to 'info'.
1699 * ppc-linux-tdep.c: Include linux-tdep.h.
1700 (ppc_linux_init_abi): Call linux_init_abi.
1701 * sh-linux-tdep.c: Include linux-tdep.h.
1702 (sh_linux_init_abi): Call linux_init_abi.
1703 * sparc-linux-tdep.c: Include linux-tdep.h.
1704 (sparc32_linux_init_abi): Call linux_init_abi.
1705 * sparc64-linux-tdep.c: Include linux-tdep.h.
1706 (sparc64_linux_init_abi): Call linux_init_abi.
1707 * xtensa-linux-tdep.c: Include linux-tdep.h.
1708 (xtensa_linux_init_abi): Call linux_init_abi.
1709 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
1710 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
1713 2010-08-03 Doug Evans <dje@google.com>
1715 * breakpoint.c (bpdisp_text): Constify bpdisps.
1716 * solib-svr4.c (solib_break_names): Constify.
1717 (bkpt_names, main_name_list): Constify.
1718 (match_main): Constify soname arg.
1719 (bfd_lookup_symbol): Remove unnecessary forward decl.
1720 Constify symname arg.
1721 (enable_break): Constify bkpt_namep.
1722 * symtab.c (search_symbols): Constify types, types2, types3, types4.
1723 (symtab_symbol_info): Constify classnames.
1725 2010-08-03 Phil Muldoon <pmuldoon@redhat.com>
1727 * NEWS: Document Python value inferior function calls.
1729 2010-08-02 Doug Evans <dje@google.com>
1731 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
1733 2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1735 * linux-thread-db.c (libthread_db_debug): New variable.
1736 (thread_db_find_new_threads_silently): Control verbosity with it.
1737 (try_thread_db_load_1, try_thread_db_load): Likewise.
1738 (find_new_threads_once): Likewise.
1739 (_initialize_thread_db): Set/show it.
1741 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1743 * common/signals.c (signals): Move the content to signals.def.
1744 Include it. Remove the INDENT comments.
1746 2010-07-30 Tom Tromey <tromey@redhat.com>
1748 * Makefile.in (install-only): Install gdb-add-index.
1749 * gdb-add-index.sh: New file.
1751 2010-07-31 Renquan Cheng <crq@gcc.gnu.org>
1753 * MAINTAINERS: Add myself for write after approval privileges.
1755 2010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1757 * symfile.c (addr_section_name): New function.
1758 (addrs_section_compar): Use it.
1759 (addr_info_make_relative): Use it. Move variable sect_name into a more
1760 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
1762 2010-07-30 Tom Tromey <tromey@redhat.com>
1764 * configure: Rebuild.
1765 * configure.ac: Add missing case for Python 2.7.
1767 2010-07-29 DJ Delorie <dj@redhat.com>
1769 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
1772 2010-07-29 Pedro Alves <pedro@codesourcery.com>
1774 * PROBLEMS: Remove mention of all problems.
1776 2010-07-28 Pedro Alves <pedro@codesourcery.com>
1779 * configure.ac: Check for wresize.
1780 * configure, config.in: Regenerate.
1781 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
1784 2010-07-28 Tom Tromey <tromey@redhat.com>
1787 * python/py-type.c (typy_legacy_template_argument): New function,
1788 extracted from typy_template_argument.
1789 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
1792 2010-07-28 Oleg Nesterov <oleg@redhat.com>
1794 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
1796 2010-07-27 Tom Tromey <tromey@redhat.com>
1798 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
1800 2010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
1802 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
1803 handling DW_AT_object_pointer, and workaround GCC PR 43053.
1805 2010-07-28 Tom Tromey <tromey@redhat.com>
1807 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
1809 2010-07-28 Joel Brobecker <brobecker@adacore.com>
1811 * remote.c (remote_download_tracepoint): Add missing gettext markup.
1812 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
1814 2010-07-28 Joel Brobecker <brobecker@adacore.com>
1816 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
1817 down, just before the block that parse the breakpoint addr_string.
1819 2010-07-28 Tom Tromey <tromey@redhat.com>
1822 * symfile.c (reread_symbols): Clear template_symbols.
1823 * symtab.h (struct symbol) <is_cplus_template_function>: New
1825 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
1826 (struct template_symbol): New.
1827 * symtab.c (lookup_symbol_aux_local): Use
1828 cp_lookup_symbol_imports_or_template.
1829 * objfiles.h (struct objfile) <template_symbols>: New field.
1830 * objfiles.c (relocate_one_symbol): New function.
1831 (objfile_relocate1): Use it. Relocate isolated symbols.
1832 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
1833 template_arguments>: New fields.
1834 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
1835 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
1836 (TYPE_TEMPLATE_ARGUMENT): Likewise.
1837 (lookup_typename): Update.
1838 * gdbtypes.c (lookup_typename): Constify "block" argument.
1839 * dwarf2read.c: Include vec.h.
1840 (symbolp): New typedef.
1841 (read_func_scope): Read template arguments. Allocate a
1842 template_symbol when needed.
1843 (read_structure_type): Read template arguments.
1844 (new_symbol_full): New function, from new_symbol. Handle
1845 DW_TAG_template_type_param and DW_TAG_template_value_param.
1846 (new_symbol): Rewrite as wrapper.
1847 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
1848 * cp-namespace.c: Include language.h.
1849 (search_symbol_list): New function.
1850 (cp_lookup_symbol_imports_or_template): Likewise.
1852 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
1854 * tui/tui-win.c (make_visible_with_new_height): Resize and move
1855 the command window to the new size and position.
1857 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
1859 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
1862 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
1864 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
1865 after a detecting a resize.
1866 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
1869 2010-07-28 Pedro Alves <pedro@codesourcery.com>
1871 * configure.ac: Check for resize_term.
1872 * configure, config.in: Regenerate.
1874 2010-07-27 Joel Brobecker <brobecker@adacore.com>
1876 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
1878 2010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
1880 * dwarf2read.c (read_string): Rename to ...
1881 (read_direct_string): ... this.
1882 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
1883 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
1885 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1887 * linux-nat.c (linux_nat_lp_status_is_event): New function.
1888 (count_events_callback, select_event_lwp_callback)
1889 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
1891 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1893 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
1894 (_initialize_ia64_linux_nat): Install it.
1895 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
1896 (linux_nat_set_status_is_event): New.
1897 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
1898 cancel_breakpoints_callback, linux_nat_filter_event)
1899 (linux_nat_wait_1): Use linux_nat_status_is_event.
1900 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
1902 2010-07-27 Tom Tromey <tromey@redhat.com>
1904 * NEWS: Mention labels, .gdb_index.
1906 2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
1908 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
1909 "start,+length" form of arguments.
1910 * NEWS: Add "Changed commands" (disassemble) section for "Changes
1911 since GDB 7.1"; and merge two separated paragraphs of disassemble
1912 description in "Changes in GDB 7.0".
1914 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1916 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
1917 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
1918 (fputs_maybe_filtered): Do not do filtering also on
1919 ! INPUT_FROM_TERMINAL_P.
1921 2010-07-27 Joel Brobecker <brobecker@adacore.com>
1923 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
1926 2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
1928 * python/py-value.c (valpy_call): New Function.
1930 2010-07-27 Ken Werner <ken.werner@de.ibm.com>
1932 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
1933 types_list_elements variables.
1935 2010-07-26 Tom Tromey <tromey@redhat.com>
1937 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
1938 TLS with DW_OP_const4u or DW_OP_const8u.
1940 2010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
1942 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
1943 VSX registers contents.
1945 2010-07-26 Jerome Guitton <guitton@adacore.com>
1947 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
1948 its adress is null. Add comment to explain why.
1949 (new_symbol): Ditto.
1951 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1953 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
1954 the host signal first.
1956 2010-07-23 Tom Tromey <tromey@redhat.com>
1958 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
1959 type_comp_units>: New fields.
1960 (dw2_get_cu): New function.
1961 (create_cus_from_index): Remove unused argument.
1962 (create_signatured_type_hash_from_index): New function.
1963 (create_addrmap_from_index): Update.
1964 (dwarf2_read_index): Handle version 2.
1965 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
1966 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
1967 (dw2_print_stats, dw2_expand_all_symtabs)
1968 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
1969 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
1970 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
1971 (allocate_signatured_type_hash_table): New function.
1972 (add_signatured_type_cu_to_list): Likewise.
1973 (create_debug_types_hash_table): Use them. Set type_comp_units.
1974 (read_signatured_type): Ensure section data is available.
1975 (add_address_entry): Don't record empty ranges.
1976 (struct signatured_type_index_data): New.
1977 (write_one_signatured_type): New function.
1978 (write_psymtabs_to_index): Write type CUs.
1979 (save_gdb_index_command): Update comment.
1980 (process_type_comp_unit): Move inititalization of
1982 (create_debug_types_hash_table): ... here.
1984 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1986 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
1987 cleanup and generating of gdb script to it.
1988 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
1989 and terminal size. Convert $tmpfile to a series of -ex-es.
1991 2010-07-23 Keith Seitz <keiths@redhat.com>
1993 * symtab.c (basic_lookup_transparent_type): Call pre-expand
1994 hook for STATIC_BLOCK types, too.
1996 2010-07-23 Keith Seitz <keiths@redhat.com>
1998 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
1999 and vector definition.
2001 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2003 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
2005 2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2007 * dwarf2read.c: Include completer.h.
2008 (save_gdb_index_command): Use matching usage command name.
2009 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
2010 Set filename_completer for it.
2012 2010-07-22 Tom Tromey <tromey@redhat.com>
2014 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
2015 type signature's per-CU data.
2017 2010-07-22 Pedro Alves <pedro@codesourcery.com>
2019 * NEWS: Mention target reported shared libraries support by
2022 2010-07-21 Pedro Alves <pedro@codesourcery.com>
2027 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2028 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
2029 and DW_TAG_volatile_type.
2030 (new_symbol): Likewise.
2032 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
2034 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
2035 function symbols before overload resolution.
2037 2010-07-21 Pedro Alves <pedro@codesourcery.com>
2039 * breakpoint.c (bptype_string): New, abstracted out from
2040 print_one_breakpoint_location.
2041 (print_one_breakpoint_location): Adjust.
2042 (breakpoint_1): Adjust the type column width dynamically.
2044 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2046 * symfile.c (find_separate_debug_file_by_debuglink): Remove
2047 a gdb_assert call, new comment.
2049 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2051 * linux-nat.c (linux_handle_extended_wait): Handle case when
2052 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
2054 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2057 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
2058 linux_nat_wait_1. Use always LP->STATUS afterwards.
2060 2010-07-20 Hui Zhu <teawater@gmail.com>
2062 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
2063 (inf_ptrace_attach): Ditto.
2065 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2067 Make core files the process_stratum.
2068 * corefile.c (core_target): New variable.
2069 (core_file_command): Remove variable t, use core_target.
2070 * corelow.c (core_ops): Make it static.
2071 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
2072 * defs.h (make_cleanup_unpush_target): New prototype.
2073 * gdbarch.h: Regenerate.
2074 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
2075 * gdbcore.h (core_target): New declaration.
2076 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
2077 variables ops_already_pushed and back_to. Use push_target,
2078 make_cleanup_unpush_target and discard_cleanups calls.
2079 * record.c (record_open): Replace core_stratum by a core_bfd check.
2080 * target.c (target_is_pushed): New function.
2081 (find_core_target): Remove.
2082 * target.h (enum strata) <core_stratum>: Remove.
2083 (target_is_pushed): New declaration.
2084 (find_core_target): Remove declaration.
2085 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
2086 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
2088 2010-07-19 Hui Zhu <teawater@gmail.com>
2090 * breakpoint.c (single_step_breakpoints_inserted): New
2092 * breakpoint.h (single_step_breakpoints_inserted): Extern.
2093 * infrun.c (maybe_software_singlestep): Add check code.
2094 * record.c (record_resume): Add code for software single step.
2095 (record_wait): Ditto.
2097 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2099 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
2100 a more inner block. Remove its unused declaration initializer.
2102 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
2104 * NEWS: Mention support for the new ptrace interface and hardware
2105 accelerated watchpoint conditions on powerpc-linux.
2107 2010-07-16 Ozkan Sezer <sezeroz@gmail.com>
2109 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
2110 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
2111 and host_address_to_string() and %s for pointers.
2112 (debug_to_remove_breakpoint): Likewise.
2113 (debug_to_region_ok_for_hw_watchpoint): Likewise.
2114 (debug_to_can_accel_watchpoint_condition): Likewise.
2115 (debug_to_stopped_data_address): Likewise.
2116 (debug_to_watchpoint_addr_within_range): Likewise.
2117 (debug_to_insert_hw_breakpoint): Likewise.
2118 (debug_to_remove_hw_breakpoint): Likewise.
2119 (debug_to_insert_watchpoint): Likewise.
2120 (debug_to_remove_watchpoint): Likewise.
2122 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2124 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
2126 (cplus_specific): New struct.
2127 * symtab.c (symbol_set_demangled_name): Updated.
2128 Use cplus_specific for cplus symbols.
2129 (symbol_get_demangled_name): Retrive the name from the cplus_specific
2130 struct for cplus symbols.
2131 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
2132 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
2133 * symtab.c (symbol_init_cplus_specific): New function.
2135 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2137 * symtab.h (symbol_set_demangled_name): New function.
2138 (symbol_get_demangled_name): New function.
2139 * symtab.c (symbol_set_demangled_name): New function.
2140 (symbol_get_demangled_name): New function.
2141 (symbol_init_language_specific): Use demangled_name setter and getter.
2142 (symbol_set_names): Ditto.
2143 (symbol_natural_name): Ditto.
2144 (symbol_demangled_name): Ditto.
2145 * dwarf2read.c (new_symbol): Ditto.
2147 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2149 * symtab.h: Renamed cplus_specific to mangled_lang.
2150 * symtab.c (symbol_init_language_specific): Updated.
2151 (symbol_set_names): Updated.
2152 (symbol_natural_name): Updated.
2153 (symbol_demangled_name): Updated.
2154 * ada-lang.c (ada_decode_symbol): Updated.
2155 * dwarf2read.c (new_symbol): Updated.
2157 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
2159 * valops.c (value_assign): Do not call to value_coerce_to_target.
2160 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
2162 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
2164 * MAINTAINERS: Add myself for write after approval privileges.
2166 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
2168 * c-valprint.c (c_val_print): Add embedded_offset to address in
2169 call to val_print_array_elements.
2171 2010-07-13 Tom Tromey <tromey@redhat.com>
2173 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
2175 2010-07-13 Tom Tromey <tromey@redhat.com>
2177 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
2180 2010-07-13 Tom Tromey <tromey@redhat.com>
2182 * symfile.c (set_initial_language): Update.
2183 (deduce_language_from_filename): Argument type now const.
2184 * symtab.h (find_main_filename): Update.
2185 (deduce_language_from_filename): Update.
2186 * symtab.c (find_main_filename): Make result const.
2187 * dwarf2read.c (dw2_find_symbol_file): Change return type.
2188 * psymtab.c (find_symbol_file_from_partial): Change return type.
2189 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2192 2010-07-13 Tom Tromey <tromey@redhat.com>
2194 * breakpoint.c (save_cmdlist): No longer static.
2195 * gdbcmd.h (save_cmdlist): Declare.
2196 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
2197 OBJF_READNOW on objfile if readnow_symbol_files.
2198 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
2199 (elf_sym_fns_gdb_index): New global.
2200 * dwarf2read.c: Include exceptions.h.
2202 (struct mapped_index): New.
2203 (dwarf2_per_cu_data_ptr): New typedef.
2204 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
2206 (GDB_INDEX_SECTION): New define.
2207 (struct dwarf2_per_cu_quick_data): New.
2208 (struct dwarf2_per_cu_data) <objfile>: New field.
2211 (byte_swap): New function.
2212 (MAYBE_SWAP): New macro.
2213 (INDEX_SUFFIX): New macro.
2214 (dw2_do_instantiate_symtab): New function.
2215 (dw2_instantiate_symtab): Likewise.
2216 (create_cus_from_index): Likewise.
2217 (create_addrmap_from_index): Likewise.
2218 (mapped_index_string_hash): Likewise.
2219 (find_slot_in_mapped_hash): Likewise.
2220 (dwarf2_read_index): Likewise.
2221 (dw2_setup): Likewise.
2222 (dw2_require_line_header): Likewise.
2223 (dw2_require_full_path): Likewise.
2224 (dw2_find_last_source_symtab): Likewise.
2225 (dw2_forget_cached_source_info): Likewise.
2226 (dw2_lookup_symtab): Likewise.
2227 (dw2_lookup_symbol): Likewise.
2228 (dw2_do_expand_symtabs_matching): Likewise.
2229 (dw2_pre_expand_symtabs_matching): Likewise.
2230 (dw2_print_stats): Likewise.
2231 (dw2_dump): Likewise.
2232 (dw2_relocate): Likewise.
2233 (dw2_expand_symtabs_for_function): Likewise.
2234 (dw2_expand_all_symtabs): Likewise.
2235 (dw2_expand_symtabs_with_filename): Likewise.
2236 (dw2_find_symbol_file): Likewise.
2237 (dw2_map_ada_symtabs): Likewise.
2238 (dw2_expand_symtabs_matching): Likewise.
2239 (dw2_find_pc_sect_symtab): Likewise.
2240 (dw2_map_symbol_names): Likewise.
2241 (dw2_map_symbol_filenames): Likewise.
2242 (dw2_has_symbols): Likewise.
2243 (dwarf2_gdb_index_functions): New global.
2244 (dwarf2_initialize_objfile): New function.
2245 (process_psymtab_comp_unit): Update.
2246 (add_partial_subprogram): Likewise.
2247 (dwarf2_psymtab_to_symtab): Likewise.
2248 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
2249 (process_full_comp_unit): Update.
2250 (find_file_and_directory): New function.
2251 (read_file_scope): Use find_file_and_directory.
2252 (dwarf2_per_cu_objfile): Update.
2253 (dwarf2_per_cu_addr_size): Update.
2254 (dwarf2_per_cu_offset_size): Update.
2255 (dwarf2_free_objfile): Free the index, if needed.
2256 (dwarf2_per_objfile_free): Unmap the index, if needed.
2257 (struct strtab_entry): New.
2258 (hash_strtab_entry): New function.
2259 (eq_strtab_entry): Likewise.
2260 (create_strtab): Likewise.
2261 (add_string): Likewise.
2262 (struct symtab_index_entry): New.
2263 (struct mapped_symtab): New.
2264 (hash_symtab_entry): New function.
2265 (eq_symtab_entry): Likewise.
2266 (delete_symtab_entry): Likewise.
2267 (create_index_table): Likewise.
2268 (create_mapped_symtab): Likewise.
2269 (cleanup_mapped_symtab): Likewise.
2270 (find_slot): Likewise.
2271 (hash_expand): Likewise.
2272 (add_index_entry): Likewise.
2273 (add_indices_to_cpool): Likewise.
2274 (write_hash_table): Likewise.
2275 (add_address_entry): Likewise.
2276 (write_psymbols): Likewise.
2277 (write_obstack): Likewise.
2278 (unlink_if_set): Likewise.
2279 (write_psymtabs_to_index): Likewise.
2280 (save_gdb_index_command): Likewise.
2281 (_initialize_dwarf2_read): Install "save gdb-index"
2283 (create_all_comp_units): Initialize 'objfile' field of CU.
2284 (dwarf2_locate_sections): Check for .gdb_index.
2285 * psymtab.h (dwarf2_gdb_index_functions): Declare.
2286 * symfile.h (dwarf2_initialize_objfile): Declare.
2288 2010-07-13 Tom Tromey <tromey@redhat.com>
2290 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
2291 (basic_lookup_transparent_type): Likewise.
2292 * symfile.h (struct quick_symbol_functions)
2293 <pre_expand_symtabs_matching>: New field.
2294 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
2295 (psym_functions): Update.
2297 2010-07-13 Tom Tromey <tromey@redhat.com>
2299 PR breakpoints/8357:
2300 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
2301 * linespec.c (decode_line_1): Update comment. Call decode_label.
2302 (decode_label): New function.
2303 (symbol_found): Handle LOC_LABEL.
2304 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
2305 domain. Call add_symbol_to_list.
2307 2010-07-13 Tom Tromey <tromey@redhat.com>
2309 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
2310 * dwarf2loc.c (find_location_expression): Use
2311 dwarf2_per_cu_text_offset.
2312 (dwarf2_evaluate_loc_desc): Likewise.
2313 (dwarf2_loc_desc_needs_frame): Likewise.
2314 (compile_dwarf_to_ax): Likewise.
2315 (loclist_describe_location): Likewise.
2316 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
2317 (dwarf2_per_cu_objfile): Update comment.
2319 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2321 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
2322 * p-lang.c (pascal_printstr): Likewise.
2324 2010-07-09 Tom Tromey <tromey@redhat.com>
2326 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
2327 'hint' if it is NULL.
2329 2010-07-09 Hui Zhu <teawater@gmail.com>
2331 * source.c (print_source_lines_base): Add check for noprint.
2333 2010-07-08 Joel Brobecker <brobecker@adacore.com>
2335 * python/python-config.py: Resync with Python 2.7 version of this
2338 2010-07-08 Joel Brobecker <brobecker@adacore.com>
2340 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
2342 2010-07-07 Joel Brobecker <brobecker@adacore.com>
2344 * NEWS: Create a new section for the next release branch.
2345 Rename the section of the current branch, now that it has
2348 2010-07-07 Joel Brobecker <brobecker@adacore.com>
2350 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
2351 * version.in: Bump version to 7.2.50.20100707-cvs.
2353 2010-07-07 Tom Tromey <tromey@redhat.com>
2355 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
2356 LOC_COMPUTED symbol.
2357 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
2358 (dwarf2_loc_desc_needs_frame): Likewise.
2359 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
2360 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
2361 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
2362 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
2364 (struct dwarf2_frame_cache) <text_offset>: New field.
2365 (dwarf2_frame_cache): Set new field.
2366 (dwarf2_frame_prev_register): Update.
2367 (dwarf2_frame_sniffer): Update.
2368 (dwarf2_frame_base_sniffer): Update.
2369 (dwarf2_frame_find_fde): Add 'out_offset' argument.
2371 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2372 Thiago Jung Bauermann <bauerman@br.ibm.com>
2374 Support for hw accelerated condition watchpoints in booke powerpc.
2376 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
2377 and move to eval.c. Change callers.
2378 (insert_bp_location): Pass watchpoint condition in
2379 target_insert_watchpoint.
2380 (remove_breakpoint_1) Pass watchpoint condition in
2381 target_remove_watchpoint.
2382 (watchpoint_locations_match): Call
2383 target_can_accel_watchpoint_condition.
2384 * eval.c: Include wrapper.h.
2385 (fetch_subexp_value): Moved from breakpoint.c.
2386 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
2388 (can_use_watchpoint_cond_accel): New function.
2389 (calculate_dvc): Likewise.
2390 (num_memory_accesses): Likewise.
2391 (check_condition): Likewise.
2392 (ppc_linux_can_accel_watchpoint_condition): Likewise
2393 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
2394 check_condition and calculate_dvc.
2395 (ppc_linux_remove_watchpoint): Likewise.
2396 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
2397 ppc_linux_can_accel_watchpoint_condition
2398 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
2400 (debug_to_remove_watchpoint): Likewise.
2401 (debug_to_can_accel_watchpoint_condition): New function.
2402 (update_current_target): Set to_can_accel_watchpoint_condition.
2403 (setup_target_debug): Set to_can_accel_watchpoint_condition.
2404 * target.h: Add opaque declaration for struct expression.
2405 (struct target_ops) <to_insert_watchpoint>,
2406 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
2407 <to_can_accel_watchpoint_condition>: New member.
2408 condition. Update all callers and implementations.
2409 (target_can_accel_watchpoint_condition): New macro.
2410 * value.c (free_value_chain): New function.
2411 * value.h (fetch_subexp_value): New prototype.
2412 (free_value_chain): Likewise.
2414 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
2416 * linux-nat.c (linux_nat_do_thread_registers): Use section size
2417 from gdbarch_core_regset_sections also for .reg if present.
2419 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
2420 section size for .reg.
2421 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
2422 (ppc_linux_vmx_regset_sections): Likewise.
2423 (ppc_linux_fp_regset_sections): Likewise.
2424 (ppc64_linux_vsx_regset_sections): New variable.
2425 (ppc64_linux_vmx_regset_sections): Likewise.
2426 (ppc64_linux_fp_regset_sections): Likewise.
2427 (ppc_linux_init_abi): Install core_regset_section lists appropriate
2428 for current word size.
2430 2010-07-06 Joel Brobecker <brobecker@adacore.com>
2432 * server.c (myresume): Make static.
2434 2010-07-06 Tom Tromey <tromey@redhat.com>
2436 * configure, config.in: Rebuild.
2437 * configure.ac (HAVE_LIBPYTHON2_7): New define.
2438 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
2440 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
2442 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
2445 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
2447 * gdbtypes.h (floatformats_ieee_half): Add declaration.
2448 * gdbtypes.c (floatformats_ieee_half): New variable.
2449 * doublest.c (floatformat_from_length): Set format to
2450 gdbarch_half_format if length matches.
2451 * gdbarch.sh (half_bit): New architecture method.
2452 (half_format): Likewise.
2453 * gdbarch.h: Regenerate.
2454 * gdbarch.c: Likewise.
2456 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2457 Joel Brobecker <brobecker@adacore.com>
2459 Fix re-run of PIE executable, PR shlibs/11776.
2460 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
2461 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
2463 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2464 Joel Brobecker <brobecker@adacore.com>
2466 * auxv.c (memory_xfer_auxv): Update attach comment.
2467 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
2468 svr4_relocate_main_executable.
2469 (svr4_solib_create_inferior_hook): Make the call to
2470 svr4_relocate_main_executable unconditional.
2472 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2473 Joel Brobecker <brobecker@adacore.com>
2475 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
2477 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2478 Joel Brobecker <brobecker@adacore.com>
2480 Fix attaching to PIEs prelinked on the disk after the process was
2482 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
2483 Verify it against bfd_get_arch_size. Try to match arbitrary
2484 displacement for the phdrs comparison.
2486 2010-07-02 Tom Tromey <tromey@redhat.com>
2489 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
2490 value as optimized-out.
2492 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
2493 Thiago Jung Bauermann <bauerman@br.ibm.com>
2495 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
2496 represent?" question in comment. Change comment to a proper sentence.
2498 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
2500 * c-valprint.c (c_val_print): Fix printing of character vectors.
2502 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2504 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
2505 create_breakpoint prototype.
2507 2010-07-01 Pedro Alves <pedro@codesourcery.com>
2509 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
2510 usefulness suggestion of multiple breakpoints at same location.
2512 2010-07-01 Pedro Alves <pedro@codesourcery.com>
2514 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
2516 2010-07-01 Pedro Alves <pedro@codesourcery.com>
2518 * dwarf2loc.c (locexpr_tracepoint_var_ref)
2519 (loclist_tracepoint_var_ref): Handle optimized out values.
2521 2010-07-01 Pedro Alves <pedro@codesourcery.com>
2523 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
2524 unnecessary space in string.
2525 * filesystem.c (_initialize_filesystem): Ditto.
2526 * frame.c (_initialize_frame): Ditto.
2527 * infcmd.c (step_once): Ditto.
2528 * infrun.c (_initialize_infrun): Ditto.
2529 * linux-nat.c (linux_child_follow_fork): Ditto.
2530 * maint.c (maintenance_deprecate): Ditto.
2531 * memattr.c (_initialize_mem): Ditto.
2532 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2533 * monitor.c (monitor_open): Ditto.
2534 * procfs.c (procfs_xfer_memory): Ditto.
2535 * reverse.c (bookmarks_info): Ditto.
2536 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
2537 * stack.c (_initialize_stack): Ditto.
2538 * tracepoint.c (_initialize_tracepoint): Ditto.
2539 * xtensa-tdep.c (xtensa_supply_gregset,
2540 xtensa_regset_from_core_section): Ditto.
2542 2010-07-01 Tom Tromey <tromey@redhat.com>
2544 * value.h (struct lval_funcs) <check_any_valid>: Rename from
2546 * value.c (value_entirely_optimized_out): Invert result. Update
2547 for new function name.
2549 2010-07-01 Pedro Alves <pedro@codesourcery.com>
2551 Static tracepoints support.
2553 * NEWS: Mention new support for static tracepoints.
2554 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
2555 qXfer:statictrace:read.
2556 (New features in the GDB remote stub, GDBserver): Mention static
2557 tracepoints support using an UST based backend.
2558 (New commands): Mention "info static-tracepoint-markers" and
2560 * breakpoint.c (is_marker_spec): New.
2561 (is_tracepoint): Handle static tracepoints.
2562 (validate_commands_for_breakpoint): Static tracepoints can't do
2564 (static_tracepoints_here): New.
2565 (bpstat_what): Handle static tracepoints.
2566 (print_one_breakpoint_location, allocate_bp_location, mention):
2568 (create_breakpoint_sal): Ditto.
2569 (decode_static_tracepoint_spec): New.
2570 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
2571 `type_wanted'. Adjust. Handle static tracepoint marker
2573 (break_command_1): Adjust.
2574 (update_static_tracepoint): New.
2575 (update_breakpoint_locations): Handle static tracepoints.
2576 (breakpoint_re_set_one): Handle static tracepoint marker
2578 (disable_command, enable_command): Handle static tracepoints.
2579 (trace_command, ftrace_command): Adjust.
2580 (strace_command): New.
2581 (create_tracepoint_from_upload): Adjust.
2582 (save_breakpoints): Handle static tracepoints.
2583 (_initialize_breakpoint): Install the "strace" command.
2584 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
2585 (struct breakpoint): New fields static_trace_marker_id and
2586 static_trace_marker_id_idx.
2587 (breakpoints_here_p): Declare.
2588 (create_breakpoint): Adjust.
2589 (static_tracepoints_here): Declare.
2590 * remote.c (struct remote_state) <static_tracepoints>: New field.
2591 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
2592 (remote_static_tracepoint_marker_at): New.
2593 (remote_static_tracepoint_markers_by_strid): New.
2594 (remote_static_tracepoint_feature): New.
2595 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
2596 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
2597 (remote_supports_static_tracepoints): New.
2598 (remote_download_tracepoint): Download static tracepoints.
2599 (init_remote_ops): Install remote_static_tracepoint_marker_at and
2600 remote_static_tracepoint_markers_by_strid.
2601 (_initialize_remote): Install set|show remote static-tracepoints,
2602 and set|show remote read-sdata-object commands.
2603 * target.c (update_current_target): Inherit and default
2604 to_static_tracepoint_marker_at, and
2605 to_static_tracepoint_markers_by_strid.
2606 * target.h (static_tracepoint_marker): Forward declare.
2607 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
2608 (static_tracepoint_marker_p): New typedef.
2609 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
2610 (struct target_ops): New fields to_static_tracepoint_marker_at and
2611 to_static_tracepoint_markers_by_strid.
2612 (target_static_tracepoint_marker_at)
2613 (target_static_tracepoint_markers_by_strid): New.
2614 * tracepoint.c: Include source.h.
2615 (validate_actionline): Handle $_sdata.
2616 (struct collection_list): New field strace_data.
2617 (add_static_trace_data): New.
2618 (clear_collection_list): Clear strace_data.
2619 (stringify_collection_list): Account for a possible static trace
2621 (encode_actions_1): Encode an $_sdata collection.
2622 (parse_tracepoint_definition): Handle static tracepoints.
2623 (parse_static_tracepoint_marker_definition): New.
2624 (release_static_tracepoint_marker): New.
2625 (print_one_static_tracepoint_marker): New.
2626 (info_static_tracepoint_markers_command): New.
2627 (sdata_make_value): New.
2628 (_initialize_tracepoint): Create the $_sdata convenience variable.
2629 Add the "info static-tracepoint-markers" command.
2630 Mention $_sdata in the "collect" command's help output.
2631 * tracepoint.h (struct static_tracepoint_marker): New.
2632 (parse_static_tracepoint_marker_definition)
2633 (release_static_tracepoint_marker): Declare.
2634 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
2635 * python/py-breakpoint.c (bppy_new): Adjust.
2637 2010-06-30 Joel Brobecker <brobecker@adacore.com>
2639 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
2642 2010-06-29 Doug Evans <dje@google.com>
2645 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
2646 DW_AT_external is present.
2650 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
2651 create a symbol for the field and record the value.
2652 (new_symbol): Handle DW_TAG_member.
2653 * gdbtypes.c (field_is_static): Remove FIXME.
2654 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
2655 only ignore LOC_CONST symbols that are enums.
2657 * dwarf2read.c: Remove trailing whitespace.
2659 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
2660 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
2661 (struct main_type, field loc): Delete dwarf_block.
2662 (FIELD_DWARF_BLOCK): Delete.
2663 (SET_FIELD_DWARF_BLOCK): Delete.
2664 (TYPE_FIELD_DWARF_BLOCK): Delete.
2665 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
2668 2010-06-29 Hui Zhu <teawater@gmail.com>
2670 * record.c (set_record_pic_cmdlist,
2671 show_record_pic_cmdlist): New variables.
2672 (set_record_pic_command,
2673 show_record_pic_command): New functions.
2674 (record_pic_function, record_pic_line, record_pic_enum,
2675 set_record_pic_type, record_pic_hide_nofunction,
2676 record_pic_hide_nosource, record_pic_hide_same): New variables.
2677 (record_pic_fputs): New function.
2678 (function_list, node_list, edge_list): New struct.
2679 (function_list, node_list, edge_list): New variables.
2680 (record_pic_cleanups, record_pic_node,
2681 record_pic_edge, cmd_record_pic): New functions.
2682 (_initialize_record): Add new commands for record pic.
2684 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2686 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
2687 ALLOCATE_CPLUS_STRUCT_TYPE.
2689 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
2690 Tom Tromey <tromey@redhat.com>
2691 Thiago Jung Bauermann <bauerman@br.ibm.com>
2693 * value.c (pack_unsigned_long): New function.
2694 (value_from_ulongest): New function.
2695 * value.h (value_from_ulongest): Declare.
2696 * python/python.c (_initialize_python): Call
2697 gdbpy_initialize_thread and gdbpy_initialize_inferior.
2698 * python/python-internal.h: Define thread_object.
2699 (gdbpy_inferiors, gdbpy_selected_thread)
2700 (frame_info_to_frame_object, create_thread_object)
2701 (find_thread_object, find_inferior_object)
2702 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
2703 (gdbpy_is_value_object, get_addr_from_python): Declare.
2704 * python/py-value.c (builtin_type_upylong): Define.
2705 (convert_value_from_python): Add logic for ulongest.
2706 (gdbpy_is_value_object): New function.
2707 * python/py-utils.c (get_addr_from_python): New function.
2708 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
2709 (gdbpy_selected_frame): Use PyObject over frame_info.
2710 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
2712 (SUBDIR_PYTHON_SRCS): Likewise.
2713 (py-inferior.o): New Rule.
2714 (py-infthread.o): New Rule.
2715 * python/py-inferior.c: New File.
2716 * python/py-infthread.c: New File.
2718 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2720 * c-typeprint.c (c_type_print_base): For no fields check include also
2721 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
2722 * dwarf2read.c (struct typedef_field_list)
2723 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
2724 (dwarf2_add_typedef): New.
2725 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
2726 Copy also FI.TYPEDEF_FIELD_LIST.
2727 * gdbtypes.h (struct typedef_field)
2728 (struct cplus_struct_type) <typedef_field, typedef_field_count>
2729 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
2730 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
2732 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2734 * cp-namespace.c (cp_lookup_nested_type): New variable
2735 concatenated_name. Turn the current return condition into a reverse
2736 one. Call also lookup_static_symbol_aux on the constructed qualified
2738 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
2739 other files into a called ...
2740 (lookup_static_symbol_aux): ... new function here.
2741 * symtab.h (lookup_static_symbol_aux): New prototype.
2742 * valops.c (value_maybe_namespace_elt): Call also
2743 lookup_static_symbol_aux if we failed otherwise.
2745 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2747 Fix PR c++/11703 and PR gdb/1448.
2748 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
2751 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2753 Fix modification of cplus_struct_default.
2754 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
2755 Call ALLOCATE_CPLUS_STRUCT_TYPE.
2756 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
2758 2010-06-28 Joel Brobecker <brobecker@adacore.com>
2760 * NEWS: Add entry announcing the python directory.
2762 2010-06-28 Tom Tromey <tromey@redhat.com>
2764 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
2766 2010-06-28 Doug Evans <dje@google.com>
2768 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
2769 All callers updated.
2771 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2773 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
2774 obstack_begin after each obstack_free.
2776 2010-06-27 Doug Evans <dje@google.com>
2778 * value.c (value_static_field): Use `switch' instead of `if'.
2779 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
2781 * valops.c (search_struct_field): Fix typo in error message.
2783 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
2785 * dwarf2expr.c (execute_stack_op): Place preprocessor
2786 directives at the start of the source line.
2788 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
2790 * defs.h (make_command_stats_cleanup): Declare.
2791 (set_display_time): Declare.
2792 (set_display_space): Declare.
2793 * event-top.c (command_handler): Use make_command_stats_cleanup.
2794 * main.c (display_time, display_space): Move definitions to utils.c.
2795 (captured_main): Use make_command_stats_cleanup to get start-up
2797 Use set_display_time and set_display_space for processing OPT_STATISTICS
2799 * maint.c (maintenance_time_display): Use set_display_time.
2800 (maintenance_space_display): Use set_display_space.
2801 * top.c (execute_command): Remove obsolete 'maint time' code.
2802 (command_loop): Use make_command_stats_cleanup.
2803 * utils.c (struct cmd_stats): Structure for storing initial time
2805 (display_time, display_space): Move definitions here from utils.c.
2806 (set_display_time): New function.
2807 (set_display_space): New function.
2808 (make_command_stats_cleanup): New function.
2809 (report_command_stats): New auxiliary function for
2810 make_command_stats_cleanup.
2812 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2814 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
2815 hosts where CORE_ADDR is long long.
2817 2010-06-25 Tom Tromey <tromey@redhat.com>
2820 * python/python.c (execute_gdb_command): Add keywords. Accept
2821 "to_string" argument.
2822 (struct restore_ui_file_closure): New.
2823 (restore_ui_file): New function.
2824 (make_cleanup_restore_ui_file): Likewise.
2825 (GdbMethods) <execute>: Update.
2827 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2829 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
2830 during inferior call stack frame setup.
2832 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
2834 * solib-spu.c: Include "exception.h".
2835 (ocl_program_data_key): New variable.
2836 (append_ocl_sos): New function.
2837 (ocl_enable_break): Likewise.
2838 (spu_current_sos): Call append_ocl_sos.
2839 (spu_solib_loaded): Call ocl_enable_break.
2840 (_initialize_spu_solib): Register ocl_program_data_key.
2842 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2844 * cp-support.c (reset_directive_searched): New function.
2845 (make_symbol_overload_list_using): Prevent recursive calls.
2847 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
2849 * printcmd.c (print_variable_and_value): Print error message on
2852 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2854 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
2856 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
2858 (dwarf_expr_push): Change input type to ULONGEST.
2859 (dwarf_expr_fetch): Change return type to ULONGEST.
2860 (dwarf_expr_fetch_address): Add prototype.
2861 (dwarf2_read_address): Remove prototype.
2862 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
2863 Truncate stack values to ctx->addr_size bytes.
2864 (dwarf_expr_fetch): Change return value to ULONGEST.
2865 (dwarf_expr_fetch_address): New function.
2866 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
2867 when appropriate. Update for struct dwarf_expr_piece changes.
2868 (dwarf2_read_address): Remove.
2869 (unsigned_address_type): Remove.
2870 (signed_address_type): Remove.
2871 (execute_stack_op): Use dwarf_expr_fetch_address instead of
2872 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
2873 values. Perform operations on ULONGEST instead of on GDB values,
2874 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
2875 values and DW_OP_deref results as unsigned integers.
2876 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
2878 (write_pieced_value): Likewise.
2879 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
2880 dwarf_expr_fetch when appropriate.
2881 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
2882 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
2883 instead of dwarf_expr_fetch when appropriate.
2885 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
2887 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
2889 2010-06-24 Joel Brobecker <brobecker@adacore.com>
2891 * python/python.c (_initialize_python): Add new "constant"
2892 PYTHONDIR in gdb module. Insert this path at the head of
2893 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
2894 exec its __init__.py script if it exists in that directory.
2896 2010-06-24 Kevin Buettner <kevinb@redhat.com>
2898 * rx-tdep.c (RX_ACC_REGNUM): Define.
2899 (RX_NUM_REGS): Redefine to 26.
2900 (rx_register_name): Add register "acc". Change order of several
2901 registers. Change name of "vct" register to "fintv" to match RX
2903 (rx_register_type): Add case for RX_ACC_REGNUM.
2905 2010-06-24 Tom Tromey <tromey@redhat.com>
2907 * psymtab.c (lookup_partial_symbol): Mark definition as static.
2909 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2910 Tom Tromey <tromey@redhat.com>
2912 Fix GDB startup on readonly filesystem.
2913 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
2915 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2916 Pedro Alves <pedro@codesourcery.com>
2919 * breakpoint.c (handle_jit_event): New function.
2920 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
2921 jit, err, table and bs_class. New variables shlib_event, jit_event,
2922 this_action and bptype. Change bs_class assignments to this_action
2923 assignments. new unhandled bptype internal error. Move here
2924 shlib_event and jit_event handling from handle_inferior_event.
2925 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
2926 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
2927 BPSTAT_WHAT_CHECK_JIT.
2928 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
2929 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
2930 (handle_inferior_event): Reinitialize frame and gdbarch after
2931 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
2932 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
2933 gdbarch when frame gets reinitialized.
2935 2010-06-24 Hui Zhu <teawater@gmail.com>
2937 * printcmd.c (ui_printf): New function.
2938 (printf_command): Call ui_printf.
2939 (_initialize_printcmd): New command "eval".
2941 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
2943 * infrun.c (handle_inferior_event): Handle presence of single-step
2944 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
2945 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
2946 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
2947 * breakpoint.c (detach_single_step_breakpoints): New function.
2948 (detach_breakpoints): Call it.
2949 (cancel_single_step_breakpoints): New function.
2950 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
2952 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
2953 (spu_gdbarch_init): Install it.
2955 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2957 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
2958 * configure: Regenerate.
2960 2010-06-22 Hui Zhu <teawater@gmail.com>
2962 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
2963 (i386_process_record): Ditto.
2964 * record.c (record_memory_query): New variable.
2965 (_initialize_record): New command "set record memory-query".
2966 * record.h (record_memory_query): New extern.
2968 2010-06-21 Doug Evans <dje@google.com>
2970 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
2971 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
2972 (i386_syscall_p): Change type of lengthp to int.
2973 (i386_displaced_step_fixup): Handle kernels that run one past a
2975 * i386-linux-tdep.c (i386_linux_init_abi): Use
2976 i386_displaced_step_copy_insn instead of
2977 simple_displaced_step_copy_insn.
2979 2010-06-21 Tom Tromey <tromey@redhat.com>
2981 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
2982 (dwarf_type_encoding_name): Likewise.
2984 2010-06-21 Tom Tromey <tromey@redhat.com>
2986 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
2987 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
2988 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
2989 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
2990 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
2991 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
2992 * dwarf2read.c (tag_type_to_type): Create a new error type on
2994 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
2995 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
2997 2010-06-21 Michael Snyder <msnyder@vmware.com>
2999 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
3000 not add_abbrev_prefix_cmd, for "enable breakpoints".
3002 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
3004 * dwarf2loc.c (find_location_expression): Add relocation offset
3005 to base-address-selection entry base addresses. Read addresses
3006 (and offsets) as signed/unsigned integers, depending on the
3007 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
3008 (loclist_describe_location): Likewise.
3009 (disassemble_dwarf_expression): Read DW_OP_addr operand as
3010 unsigned integer. Do not call dwarf2_read_address.
3011 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
3013 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
3015 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
3016 value instead of hard-coded SPU_LS_SIZE.
3017 (spu_software_single_step): Likewise.
3018 * spu-tdep.h (SPU_LS_SIZE): Remove.
3020 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
3022 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
3023 limit on local store memory accesses.
3024 * spu-linux-nat.c (spu_xfer_partial): Likewise.
3025 * spu-tdep.c (spu_lslr): Remove.
3026 (spu_pointer_to_address): Do not truncate addresses.
3027 (spu_integer_to_address): Likewise.
3028 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
3029 * spu-tdep.h: Add comments.
3030 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
3031 (SPU_OVERLAY_LMA): Define.
3033 2010-06-18 Stan Shebs <stan@codesourcery.com>
3035 * osdata.c (get_osdata): Warn separately if target does not report
3037 (info_osdata_command): Allow empty type, report error if target
3038 does not return available types of OS data.
3039 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
3040 types if no annex supplied.
3042 * thread.c (thread_id_make_value): Make a value representing the
3044 (_initialize_thread): Create $_thread.
3046 2010-06-17 Joel Brobecker <brobecker@adacore.com>
3048 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
3049 last local variable declaration. No real code change.
3051 2010-06-17 Tom Tromey <tromey@redhat.com>
3053 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
3054 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
3057 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
3058 Jan Kratochvil <jan.kratochvil@redhat.com>
3060 * breakpoint.c: Include parser-defs.h.
3061 (watchpoint_exp_is_const): New function.
3062 (watch_command_1): Call watchpoint_exp_is_const to check
3063 if the expression is constant.
3065 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
3067 * configure.ac: Check for RDYNAMIC also for cross builds.
3068 * configure: Regenerate.
3070 2010-06-15 Pedro Alves <pedro@codesourcery.com>
3072 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
3073 (SFILES): Remove solib-null.c, add solib-target.c.
3074 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
3075 (ALLDEPFILES): Remove solib-target.c.
3076 * solib-target.c (_initialize_solib_target): Set
3077 current_target_so_ops to solib_target_so_ops if not already set.
3078 * solib-null.c: Delete.
3080 2010-06-14 Pedro Alves <pedro@codesourcery.com>
3082 * NEWS: Mention GDBserver's JIT compilation of tracepoint
3085 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3087 * cp-valprint.c (cp_print_static_field): Members of
3088 dont_print_stat_array_obstack are of type "struct type *".
3089 (_initialize_cp_valprint): Likewise.
3091 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3093 * frame.c (frame_register_unwind): Do not access contents
3094 of "optimized out" unwound register value.
3096 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3098 * ada-lang.h (ada_print_type): Make varstring const.
3099 * ada-typeprint.c (print_func_type): Make name const.
3100 (ada_print_type): Make varstring const.
3101 * c-lang.h (c_print_type): Make varstring const.
3102 * c-typeprint.c (c_print_type): Likewise.
3103 * f-lang.h (f_print_type): Likewise.
3104 * f-typeprint.c (f_print_type): Likewise.
3105 * jv-lang.h (java_print_type): Likewise.
3106 * jv-typeprint.c (java_print_type): Likewise.
3107 * language.c (unk_lang_print_type): Likewise.
3108 * language.h (struct language_defn) <la_print_type>: Likewise.
3109 * m2-lang.h (m2_print_type): Likewise.
3110 * m2-typeprint.c (m2_print_type): Likewise.
3111 * p-lang.h (pascal_print_type): Likewise.
3112 * p-typeprint.c (pascal_print_type): Likewise.
3114 2010-06-11 Stan Shebs <stan@codesourcery.com>
3116 Add per-operation permission flags.
3118 * target.h (struct target_ops): New method to_set_permissions.
3119 (target_set_permissions): New macro.
3120 (target_insert_breakpoint): Change macro to function.
3121 (target_remove_breakpoint): Ditto.
3122 (target_stop): Ditto.
3123 (may_write_registers): Declare.
3124 (may_write_memory): Declare.
3125 (may_insert_breakpoints): Declare.
3126 (may_insert_tracepoints): Declare.
3127 (may_insert_fast_tracepoints): Declare.
3128 (may_stop): Declare.
3129 * target.c (may_write_registers, may_write_registers_1): New globals.
3130 (may_write_memory, may_write_memory_1): New globals.
3131 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
3132 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
3133 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
3135 (may_stop, may_stop_1): New global.
3136 (target_xfer_partial): Test for write permission.
3137 (target_store_registers): Ditto.
3138 (target_insert_breakpoint): New function.
3139 (target_remove_breakpoint): New function.
3140 (target_stop): New function.
3141 (_initialize_targets): Add new set/show variables.
3142 (set_write_memory_permission): New function.
3143 (update_target_permissions): New function.
3144 (set_target_permissions): New function.
3145 (update_current_target): Default to_set_permissions.
3146 (_initialize_targets): Use new globals and setter function.
3147 * tracepoint.c (start_tracing): Test for permission.
3148 * inferior.h (update_observer_mode): Declare.
3149 * infrun.c (non_stop_1): Define earlier.
3150 (observer_mode, observer_mode_1): New globals.
3151 (set_observer_mode, show_observer_mode): New functions.
3152 (update_observer_mode): New function.
3153 (_initialize_infrun): Define "set observer" command.
3154 * remote.c (PACKET_QAllow): New optional packet.
3155 (remote_protocol_features): Add QAllow.
3156 (remote_set_permissions): New function.
3157 (remote_start_remote): Call it.
3158 (init_remote_ops): Add it to target vector.
3159 (_initialize_remote): Add config command for QAllow.
3161 2010-06-11 Tom Tromey <tromey@redhat.com>
3163 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
3164 DW_AT_vtable_elem_location even when GCC extension is seen.
3166 2010-06-11 Tom Tromey <tromey@redhat.com>
3168 PR gdb/9977, PR exp/11636:
3169 * value.h (value_offset): Update.
3170 (struct lval_funcs) <check_validity>: New field.
3171 <copy_closure>: Make argument const.
3172 (value_computed_closure): Update.
3173 (value_contents_for_printing): Declare.
3174 (value_bits_valid): Likewise.
3175 (val_print): Likewise.
3176 (set_value_component_location): Update.
3177 (value_entirely_optimized_out): Declare.
3178 * value.c (value_offset): Argument now const.
3179 (require_not_optimized_out): New function.
3180 (value_contents_for_printing): New function.
3181 (value_contents_all): Call require_not_optimized_out.
3182 (value_contents): Likewise.
3183 (value_bits_valid): New function.
3184 (value_computed_closure): Argument now const.
3185 (set_value_component_location): Make 'whole' argument const.
3186 (value_entirely_optimized_out): New function.
3187 (value_bitsize): Argument now 'const'.
3188 (value_bitpos): Likewise.
3189 (value_type): Likewise.
3190 * valprint.h (val_print_array_elements): Update.
3191 * valprint.c (val_print): Add 'val' argument. Use
3192 valprint_check_validity.
3193 (valprint_check_validity): New function.
3194 (value_check_printable): Use value_entirely_optimized_out.
3195 (common_val_print): Update.
3196 (value_print): Likewise.
3197 (val_print_array_elements): Add 'val' argument.
3198 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
3199 value_bits_valid. Reinit frame cache for lval_computed.
3200 * sh64-tdep.c (sh64_do_register): Update.
3201 * scm-valprint.c (scm_val_print): Add 'val' argument.
3202 * scm-lang.h (scm_val_print): Update.
3203 * python/python.h (apply_val_pretty_printer): Update.
3204 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
3205 argument. Call set_value_component_location.
3206 * printcmd.c (print_scalar_formatted): Update.
3207 * p-valprint.c (pascal_val_print): Add 'val' argument.
3208 (pascal_object_print_value_fields): Likewise.
3209 (pascal_object_print_value): Likewise.
3210 (pascal_object_print_static_field): Update.
3211 * p-lang.h (pascal_val_print): Update.
3212 (pascal_object_print_value_fields): Update.
3213 * mt-tdep.c (mt_registers_info): Update.
3214 * mi/mi-main.c (get_register): Update.
3215 (mi_cmd_data_evaluate_expression): Use common_val_print.
3216 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
3217 (m2_print_unbounded_array): Likewise.
3218 (m2_val_print): Likewise.
3219 * m2-lang.h (m2_val_print): Update.
3220 * language.h (struct language_defn) <la_val_print>: Add 'val'
3222 (LA_VAL_PRINT): Likewise.
3223 * language.c (unk_lang_val_print): Add 'val' argument.
3224 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
3225 (java_val_print): Likewise.
3226 * jv-lang.h (java_val_print): Add 'val' argument.
3227 * infcmd.c (default_print_registers_info): Update.
3228 * f-valprint.c (f77_print_array_1): Add 'val' argument.
3229 (f77_print_array): Likewise.
3230 (f_val_print): Likewise.
3231 * f-lang.h (f_val_print): Add 'val' argument.
3232 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
3234 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
3235 set_value_optimized_out.
3236 (write_pieced_value): Use value_bitsize and value_bitpos.
3237 <default>: Don't exit loop.
3238 (check_pieced_value_validity): New function.
3239 (pieced_value_funcs): Reference check_pieced_value_validity,
3240 check_pieced_value_invalid.
3241 (copy_pieced_value_closure): Update.
3242 (check_pieced_value_bits): New function.
3243 (check_pieced_value_invalid): New function.
3244 * d-valprint.c (dynamic_array_type): Add 'val' argument.
3245 (d_val_print): Likewise.
3246 * d-lang.h (d_val_print): Update.
3247 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
3248 (cp_print_value_fields_rtti): Likewise.
3249 (cp_print_value): Likewise.
3250 (cp_print_static_field): Update.
3251 * c-valprint.c (c_val_print): Add 'val' argument.
3252 (c_value_print): Update.
3253 * c-lang.h (c_val_print): Update.
3254 (cp_print_value_fields): Likewise.
3255 (cp_print_value_fields_rtti): Likewise.
3256 * ada-valprint.c (struct ada_val_print_args): Remove.
3257 (val_print_packed_array_elements): Add 'val' argument.
3258 (ada_val_print): Likewise. Rewrite.
3259 (ada_val_print_stub): Remove.
3260 (ada_val_print_array): Add 'val' argument.
3261 (ada_val_print_1): Likewise.
3262 (print_variant_part): Likewise.
3263 (ada_value_print): Update.
3264 (print_record): Add 'val' argument.
3265 (print_field_values): Likewise.
3266 * ada-lang.h (ada_val_print): Update.
3268 2010-06-11 Tom Tromey <tromey@redhat.com>
3270 * vec.h (VEC_cleanup): New macro.
3271 (DEF_VEC_ALLOC_FUNC_I): Update.
3272 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3273 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3274 * dwarf2loc.c (struct axs_var_loc): Remove.
3275 (unimplemented): New function.
3276 (translate_register): Likewise.
3277 (access_memory): Likewise.
3278 (compile_dwarf_to_ax): Likewise.
3279 (dwarf2_tracepoint_var_loc): Remove.
3280 (dwarf2_tracepoint_var_access): Likewise.
3281 (dwarf2_tracepoint_var_ref): Likewise.
3282 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
3283 (loclist_tracepoint_var_ref): Likewise.
3284 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
3285 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
3286 require_composition. No longer static.
3287 (execute_stack_op): Update.
3288 * ax-gdb.h (trace_kludge): Declare.
3290 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3292 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
3293 (should_be_inserted): Return zero also on NULL OWNER.
3294 (breakpoint_program_space_exit): New OWNER comment.
3295 (insert_breakpoint_locations): Extend comment for OWNER.
3296 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
3297 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
3299 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
3300 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
3301 (bpstat_check_location): New assert on OWNER.
3302 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
3303 and B initializations to the code block. New assert on them.
3304 (print_one_breakpoint_location): New OWNER comment.
3305 (watchpoint_locations_match): Assert on OWNER.
3306 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
3307 initializations to the code block. New assert on OWNER.
3308 (set_breakpoint_location_function): New assert on OWNER.
3309 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
3310 (bp_location_compare, update_global_location_list)
3311 (update_global_location_list): New OWNER comment.
3313 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3315 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
3317 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3319 * config/nm-linux.h (struct target_ops): Remove forward declaration.
3320 (lin_thread_get_thread_signals): Remove prototype.
3321 (GET_THREAD_SIGNALS): Remove.
3322 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
3323 * linux-thread-db.c (check_thread_signals): Directly call
3324 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
3326 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3328 * gregset.h (GDB_FPXREGSET_T): Remove.
3329 (gdb_fpxregset_t): Likewise.
3330 (supply_fpxregset): Remove prototype.
3331 (fill_fpxregset): Likewise.
3332 * i386-linux-nat.c (supply_fpxregset): Remove.
3333 (fill_fpxregset): Likewise.
3334 (fetch_fpxregs): Inline supply_fpxregset call.
3335 (store_fpxregs): Inline fill_fpxregset call.
3337 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
3338 * config/i386/nm-linux.h: Remove file.
3340 2010-06-09 Michael Snyder <msnyder@vmware.com>
3342 * target.c (update_current_target): Fix spelling error in comment.
3343 (target_mourn_inferior): Fix spelling error in error message.
3345 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
3347 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
3348 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
3350 2010-06-08 Michael Snyder <msnyder@vmware.com>
3352 * remote.c (remote_close): Set inferior_ptid to null_ptid.
3354 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3356 * configure.ac <"${have_libpython}" != no>: New workaround of
3358 * configure: Regenerate.
3360 2010-06-08 Hui Zhu <teawater@gmail.com>
3362 * record.c (record_wait): Move signal out of replay code.
3364 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3367 * dwarf2-frame.c (no_dwarf_call): New function.
3368 (execute_stack_op): Set CTX->DWARF_CALL.
3369 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
3370 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
3371 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
3372 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
3373 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
3374 (needs_frame_dwarf_call): New function.
3375 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
3376 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
3377 Update the comment. Move variables die, offset and error call to ...
3378 (follow_die_ref): ... a new function.
3379 (dwarf2_fetch_die_location_block): New function.
3380 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
3382 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3384 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
3385 (dwarf_expr_tls_address): Use per_cu instead of objfile.
3386 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
3387 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
3389 (struct needs_frame_baton): New field per_cu.
3390 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
3391 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
3393 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
3395 * cp-support.c (make_symbol_overload_list_namespace): Only search
3396 static and global blocks.
3397 (make_symbol_overload_list_block): New function.
3398 (make_symbol_overload_list): Separate namespace search from block
3400 (make_symbol_overload_list_qualified): Use
3401 make_symbol_overload_list_block.
3403 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
3405 * value.h: Created oload_search_type enum.
3406 (find_overload_match): Use oload_search_type enum.
3407 * valops.c (find_overload_match): Support combined member and
3409 * eval.c (evaluate_subexp_standard): Calls to
3410 find_overload_match now use oload_search_type enum.
3411 (oload_method_static): Verify index is a proper value.
3412 * valarith.c (value_user_defined_cpp_op): Search for and handle
3413 both member and non-member operators.
3414 (value_user_defined_cpp_op): New function.
3415 (value_user_defined_op): New function.
3416 (value_x_unop): Use value_user_defined_op.
3417 (value_x_binop): Ditto.
3418 * cp-support.c (make_symbol_overload_list_using): Added block
3420 Add check for namespace aliases and imported declarations.
3422 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3424 * breakpoint.h (owner): Extend the comment.
3426 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3428 Clear stale specific bp_location from former whole breakpoint.
3429 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
3431 (free_bp_location): ... here. Rename there the called function to
3432 bpstat_remove_bp_location_callback.
3433 (bpstat_remove_breakpoint_callback): Rename to ...
3434 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
3435 to struct bp_location. Change the called function to
3436 bpstat_remove_bp_location. Create new declaration for the function.
3437 (bpstat_remove_breakpoint): Rename to ...
3438 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
3439 code for the new parameter type.
3441 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
3443 * README: Make version-agnostic.
3445 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3447 Fix duplicate types for single DIE.
3448 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
3450 (read_array_type): Remove type initialization. Recheck get_die_type
3451 after initial die_type. Move set_die_type before set_descriptive_type.
3452 (read_set_type): New variable domain_type. Recheck get_die_type after
3453 initial die_type. Move attr initialization later.
3454 (read_tag_pointer_type, read_tag_reference_type): New variable
3455 target_type. Recheck get_die_type after initial die_type.
3456 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
3457 die_type and die_containing_type.
3458 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
3459 Recheck get_die_type after initial die_type.
3460 (read_subrange_type): Recheck get_die_type after initial die_type.
3461 Move set_die_type before set_descriptive_type.
3462 (set_die_type): Extend the function comment. Call complaint if DIE has
3463 some type already set.
3465 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
3467 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
3468 for current naming of thread groups (iN, not N).
3470 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
3472 * ada-lang.c (ada_operator_length): Constify `struct expression'.
3473 * parse.c (operator_length): Likewise.
3474 (operator_length_standard): Likewise.
3475 * parser-defs.h (operator_length): Likewise.
3476 (operator_length_standard): Likewise.
3477 (struct exp_descriptor <operator_length>): Likewise.
3479 2010-06-04 Doug Evans <dje@google.com>
3481 Add support for enabling/disabling individual pretty-printers.
3482 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
3483 * python/python-internal.h (gdbpy_enabled_cst): Declare.
3484 * python/python.c (gdbpy_enabled_cst): Define.
3485 (_initialize_python): Initialize gdbpy_enabled_cst.
3488 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3490 * breakpoint.c (update_global_location_list): Fix comment typo.
3492 2010-06-04 Hui Zhu <teawater@gmail.com>
3494 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
3496 2010-06-03 Doug Evans <dje@google.com>
3498 * configure.ac: Don't fail if python is unusable when
3499 configured with --with-python=auto.
3500 * configure: Regenerate.
3502 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
3504 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
3506 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
3508 * valprint.h (get_array_bounds): Change low and high parameter types
3510 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
3512 (val_print_array_elements): Adapt to change above.
3513 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
3514 * p-valprint.c (pascal_val_print): Likewise.
3516 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3518 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
3519 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
3522 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3524 Support DW_TAG_module as separate namespaces.
3525 * dwarf2read.c (typename_concat): New parameter physname.
3526 (read_module_type): New function and declaration.
3527 (scan_partial_symbols): Scan also DW_TAG_module children.
3528 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
3529 to typename_concat backward compatible physname value 0.
3530 (partial_die_full_name, read_namespace_type): Pass to typename_concat
3531 backward compatible physname value 0.
3532 (add_partial_module, read_module): Remove FIXME comment.
3533 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
3534 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
3535 DIEs under DW_TAG_module.
3536 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
3537 DW_AT_MIPS_linkage_name first, extend it for language_fortran
3538 && physname and return there instead of just setting NAME. Extend
3539 the main block for language_fortran. Pass physname parameter to the
3540 typename_concat call.
3541 (read_import_statement, read_func_scope, get_scope_pc_bounds)
3542 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
3543 (new_symbol): Fill in cplus_specific.demangled_name if it is still
3544 missing from SYMBOL_SET_NAMES in the language_fortran case.
3545 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
3547 (read_type_die) <DW_TAG_module>: New.
3548 (MAX_SEP_LEN): Increase to 7.
3549 (typename_concat): New parameter physname. New variable lead. Support
3550 also language_fortran.
3551 * f-exp.y (yylex): Consider : also as a symbol name character class.
3552 * f-lang.c: Include cp-support.h.
3553 (f_word_break_characters, f_make_symbol_completion_list): New functions.
3554 (f_language_defn): Use cp_lookup_symbol_nonlocal,
3555 f_word_break_characters and f_make_symbol_completion_list.
3556 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
3557 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
3558 * symtab.c (symbol_init_language_specific): Support language_fortran.
3559 (symbol_find_demangled_name): New comment on language_fortran.
3560 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
3561 for language_fortran.
3562 (lookup_symbol_aux_local): Check imports also for language_fortran.
3563 (default_make_symbol_completion_list): Rename to ...
3564 (default_make_symbol_completion_list_break_on): ... this name. New
3565 parameter break_on, use it.
3566 (default_make_symbol_completion_list): New stub.
3567 * symtab.h (default_make_symbol_completion_list_break_on): New
3570 2010-06-02 Joel Brobecker <brobecker@adacore.com>
3572 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
3575 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3577 * dwarf2read.c (typename_concat): Add const to the variable sep.
3579 2010-06-02 Tom Tromey <tromey@redhat.com>
3581 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
3582 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
3583 type is const. Add 'def' argument. Add missing operators, remove
3585 (decode_locdesc): Update.
3586 (dwarf2_always_disassemble): New global.
3587 (show_dwarf2_always_disassemble): New function.
3588 (_initialize_dwarf2_read): Add always-disassemble.
3589 (dwarf2_per_cu_offset_size): New function.
3590 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
3591 (piece_end_p): New function.
3592 (locexpr_describe_location_piece): Replace 'size' argument with
3593 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
3594 some constants. Remove errors.
3595 (disassemble_dwarf_expression): New function.
3596 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
3597 Add 'offset_size' argument.
3598 (loclist_describe_location): Change output formatting.
3599 * dwarf2expr.h (dwarf_stack_op_name): Declare.
3601 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
3603 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
3604 anonymous type case.
3606 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
3608 * dwarf2read.c (read_subrange_type): Handle missing base type
3609 according to Dwarf-2 specifications.
3611 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
3613 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
3615 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
3616 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
3617 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
3618 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
3619 UNOP_CHMAX, UNOP_CHMIN.
3620 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
3621 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
3622 UNOP_CHMIN>: Remove opcodes.
3624 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
3626 * dwarf2read.c (read_func_scope): Do not complain for
3627 external function if bounds are not found.
3629 2010-06-01 Pedro Alves <pedro@codesourcery.com>
3631 * NEWS: Mention gdbserver fast tracepoints support.
3633 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
3635 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
3637 (windows_set_console_info): New function.
3638 (windows_create_inferior): Call windows_set_console_info
3639 if NEW_CONSOLE is true.
3640 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
3641 (_initialize_loadable): Initialize GetConsoleFontSize and
3642 GetCurrentConsoleFont.
3644 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3646 * Makefile.in (RDYNAMIC): New.
3647 (SFILES): Add proc-service.list.
3648 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
3649 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
3650 * config/arm/linux.mh: Likewise.
3651 * config/i386/linux.mh: Likewise.
3652 * config/i386/linux64.mh: Likewise.
3653 * config/ia64/linux.mh: Likewise.
3654 * config/m32r/linux.mh: Likewise.
3655 * config/m68k/linux.mh: Likewise.
3656 * config/mips/linux.mh: Likewise.
3657 * config/pa/linux.mh: Likewise.
3658 * config/powerpc/linux.mh: Likewise.
3659 * config/powerpc/ppc64-linux.mh: Likewise.
3660 * config/s390/s390.mh: Likewise.
3661 * config/sparc/linux.mh: Likewise.
3662 * config/sparc/linux64.mh: Likewise.
3663 * config/xtensa/linux.mh: Likewise.
3664 * configure.ac: New RDYNAMIC on native host and GCC.
3665 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
3666 * configure: Regenerate.
3667 * proc-service.list: New.
3669 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3671 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
3674 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3676 * linux-nat.c (linux_nat_wait_1): Do not call
3677 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
3678 TARGET_WAITKIND_SIGNALLED.
3680 2010-05-27 Joel Brobecker <brobecker@adacore.com>
3682 * ada-lang.c (ada_inferior_data): New struct.
3683 (ada_inferior_data): New static global.
3684 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
3685 (ada_get_tsd_type): New functions.
3686 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
3687 to look the tsd type up.
3688 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
3689 event. Set ada_inferior_data.
3691 2010-05-27 Pedro Alves <pedro@codesourcery.com>
3693 * remote.c (unpack_varlen_hex): Remove forward declaration.
3694 (remote_console_output): Make static, and add forward declaration.
3695 * remote.h: Drop FIXME comment.
3696 (unpack_varlen_hex): Declare.
3697 (remote_console_output, remote_cisco_objfile_relocate)
3698 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
3699 Delete declarations.
3700 * tracepoint.c: Include "remote.h".
3701 (unpack_varlen_hex): Delete declaration.
3703 2010-05-27 Tom Tromey <tromey@redhat.com>
3705 * dwarf2loc.c (struct piece_closure) <refc>: New field.
3706 (allocate_piece_closure): Initialize refc.
3707 (copy_pieced_value_closure): Use refc.
3708 (free_pieced_value_closure): Likewise.
3710 2010-05-27 Tom Tromey <tromey@redhat.com>
3712 * arm-tdep.c (push_stack_item): 'contents' now const.
3713 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
3714 value_contents_writeable. Introduce new temporary.
3716 2010-05-27 Tom Tromey <tromey@redhat.com>
3718 * findcmd.c (parse_find_args): Use value_contents, not
3721 2010-05-27 Tom Tromey <tromey@redhat.com>
3723 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
3724 const. Use value_contents, not value_contents_writeable.
3726 2010-05-27 Joel Brobecker <brobecker@adacore.com>
3728 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
3729 by call to value_contents.
3731 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
3733 * MAINTAINERS: Add myself for write after approval privileges.
3735 2010-05-26 Doug Evans <dje@google.com>
3737 Allow python to find its files if moved from original location.
3738 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
3739 (GDB_AC_WITH_DIR): Call it.
3740 * configure.ac: Define WITH_PYTHON_PATH if we can find the
3741 python installation directory.
3742 * config.in: Regenerate.
3743 * configure: Regenerate.
3744 * defs.h (python_libdir): Declare.
3745 * main.c (python_libdir): Define.
3746 (captured_main): Initialize python_libdir.
3747 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
3748 call Py_SetProgramName to make sure python can find its libraries
3751 * configure.ac: Try to use python's distutils to fetch compilation
3753 * configure: Regenerate.
3754 * python/python-config.py: New file.
3756 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
3758 * ser-tcp.c (net_open): Check error return from socket() call by its
3759 equality to -1 not by it being negative.
3760 (net_close): Likewise.
3762 2010-05-26 Pedro Alves <pedro@codesourcery.com>
3764 * NEWS: Mention the `qRelocInsn' feature.
3765 * gdbarch.sh (relocate_instruction): New.
3766 * amd64-tdep.c (rip_relative_offset): New.
3767 (append_insns): New.
3768 (amd64_relocate_instruction): New.
3769 (amd64_init_abi): Install it.
3770 * i386-tdep.c (append_insns): New.
3771 (i386_relocate_instruction): New.
3772 (i386_gdbarch_init): Install it.
3773 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
3774 * gdbarch.h, gdbarch.c: Regenerate.
3776 2010-05-26 Tom Tromey <tromey@redhat.com>
3778 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
3779 (struct dwarf2_loclist_baton) <data>: Likewise.
3780 * dwarf2loc.c (find_location_expression): Constify return type.
3781 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
3782 (dwarf2_loc_desc_needs_frame): Likewise.
3783 (loclist_read_variable): Constify.
3784 (loclist_describe_location): Likewise.
3785 (loclist_tracepoint_var_ref): Likewise.
3787 2010-05-25 Tom Tromey <tromey@redhat.com>
3789 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
3790 (dwarf_expr_frame_base_1): Likewise.
3791 (read_pieced_value): Update.
3792 (needs_frame_frame_base): Constify.
3793 (dwarf2_tracepoint_var_loc): Likewise.
3794 (dwarf2_tracepoint_var_access): Likewise.
3795 (locexpr_describe_location_piece): Likewise.
3796 (locexpr_describe_location_1): Likewise.
3797 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
3800 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
3801 (dwarf_expr_eval, read_uleb128, read_sleb128)
3802 (dwarf2_read_address): Update.
3803 * dwarf2expr.c (dwarf_expr_eval): Constify.
3804 (read_uleb128): Likewise.
3805 (read_sleb128): Likewise.
3806 (dwarf2_read_address): Likewise.
3807 (require_composition): Likewise.
3808 (execute_stack_op): Likewise.
3809 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
3811 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
3813 (no_get_frame_base): Constify.
3814 (execute_stack_op): Likewise.
3815 (execute_cfa_program): Likewise.
3816 (read_encoded_value): Likewise.
3818 2010-05-25 Doug Evans <dje@google.com>
3820 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
3822 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
3823 * event-loop.c: ... here.
3824 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
3825 `error' for clarity.
3826 (tui_getc): Pass correct value for `error' parameter to
3827 tui_readline_output.
3829 Add python gdb.GdbError and gdb.string_to_argv.
3830 * NEWS: Document them.
3831 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
3832 the exception is gdb.GdbError. Print a second traceback if there's
3833 an error computing the error message.
3834 (gdbpy_string_to_argv): New function.
3835 * python/py-utils.c (gdbpy_obj_to_string): New function.
3836 (gdbpy_exception_to_string): New function.
3837 * python/python-internal.h (gdbpy_string_to_argv): Declare.
3838 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
3839 (gdbpy_gdberror_exc): Declare.
3840 * python/python.c (gdbpy_gdberror_exc): New global.
3841 (_initialize_python): Initialize gdbpy_gdberror_exc and create
3843 (GdbMethods): Add string_to_argv.
3845 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3847 * windows-nat.c (display_selector): Call GetLastError to give better
3848 failure explanation.
3850 2010-05-24 Pedro Alves <pedro@codesourcery.com>
3852 * config.in: Regenerate.
3854 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3857 * target.c (push_target): Return only void. Remove the return value
3859 * target.h (push_target): Return only void.
3861 2010-05-23 Pedro Alves <pedro@codesourcery.com>
3863 Update gnulib from latest git.
3864 (250b80067c1e1d8faa0c42fb572f721975b929c5)
3866 * gnulib/memcmp.c: Removed.
3867 * gnulib/memchr.valgrind: New.
3868 * gnulib/stddef.in.h: New.
3869 * gnulib/Makefile.am: Updated.
3870 * gnulib/memchr.c: Updated.
3871 * gnulib/memmem.c: Updated.
3872 * gnulib/stdint.in.h: Updated.
3873 * gnulib/str-two-way.h: Updated.
3874 * gnulib/string.in.h: Updated.
3875 * gnulib/wchar.in.h: Updated.
3877 * gnulib/extra/link-warning.h: Removed.
3878 * gnulib/extra/c++defs.h: New.
3879 * gnulib/extra/warn-on-use.h: New.
3880 * gnulib/extra/arg-nonnull.h: Updated.
3882 * gnulib/m4/extensions.m4: Updated.
3883 * gnulib/m4/gnulib-cache.m4: Updated.
3884 * gnulib/m4/gnulib-common.m4: Updated.
3885 * gnulib/m4/gnulib-comp.m4: Updated.
3886 * gnulib/m4/gnulib-tool.m4: Updated.
3887 * gnulib/m4/include_next.m4: Updated.
3888 * gnulib/m4/longlong.m4: Updated.
3889 * gnulib/m4/memchr.m4: Updated.
3890 * gnulib/m4/memmem.m4: Updated.
3891 * gnulib/m4/stdint.m4: Updated.
3892 * gnulib/m4/string_h.m4: Updated.
3893 * gnulib/m4/memcmp.m4: Removed.
3894 * gnulib/m4/onceonly_2_57.m4: Removed.
3895 * gnulib/m4/00gnulib.m4: New.
3896 * gnulib/m4/mmap-anon.m4: New.
3897 * gnulib/m4/multiarch.m4: New.
3898 * gnulib/m4/onceonly.m4: New.
3899 * gnulib/m4/stddef_h.m4: New.
3900 * gnulib/m4/warn-on-use.m4: New.
3901 * gnulib/m4/wchar.m4: Removed.
3902 * gnulib/m4/wchar_h.m4: New.
3903 * gnulib/m4/wchar_t.m4: New.
3904 * gnulib/m4/wint_t.m4: New.
3906 * aclocal.m4: Regenerate.
3907 * config.in: Likewise.
3908 * configure: Likewise.
3909 * gnulib/Makefile.in: Likewise.
3911 2010-05-21 Tom Tromey <tromey@redhat.com>
3913 * dwarf2loc.c (extract_bits_primitive): New function.
3914 (extract_bits): Likewise.
3915 (insert_bits): Likewise.
3916 (copy_bitwise): Likewise.
3917 (read_pieced_value): Do all operations in bits.
3918 (write_pieced_value): Likewise.
3919 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
3920 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
3921 Always use xrealloc to resize piece array.
3922 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
3923 <DW_OP_piece>: Update.
3924 <DW_OP_bit_piece>: New case.
3926 2010-05-21 Tom Tromey <tromey@redhat.com>
3928 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
3929 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
3930 * dwarf2expr.h (enum dwarf_value_location)
3931 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
3932 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
3933 (add_piece): Handle empty piece.
3934 (execute_stack_op) <DW_OP_piece>: Handle
3935 DWARF_VALUE_OPTIMIZED_OUT.
3937 2010-05-21 Tom Tromey <tromey@redhat.com>
3939 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
3940 evaluate_subexp, not evaluate_subexp_with_coercion.
3942 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3944 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3947 2010-05-21 Tom Tromey <tromey@redhat.com>
3949 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
3951 (write_pieced_value): Likewise.
3953 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3955 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
3956 and DW_TAG_volatile_type.
3957 (new_symbol): Likewise.
3959 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
3961 * p-valprint.c (pascal_val_print): Call get_array_bounds
3962 to obtain the number of elements in an array.
3964 2010-05-19 Doug Evans <dje@google.com>
3966 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
3968 * python.c (source_python_script): Add comment.
3969 (source_python_script_for_objfile): Remove unnecessary call to
3972 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3973 Sergio Durigan Junior <sergiodj@redhat.com>
3976 * parse.c (exp_iterate): Use operator_length wrapper function.
3978 2010-05-18 Michael Snyder <msnyder@vmware.com>
3980 * ada-lang.c: White space.
3981 * ada-typeprint.c: White space.
3982 * ada-valprint.c: White space.
3983 * addrmap.c: White space.
3984 * auxv.c: White space.
3985 * ax-gdb.c: White space.
3987 2010-05-18 Hui Zhu <teawater@gmail.com>
3989 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
3991 (inferior_call_waitpid): Move make_cleanup out of check.
3992 Check the return of waitpid.
3993 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
3995 2010-05-17 Michael Snyder <msnyder@vmware.com>
3997 * tui/tui.c: White space.
3998 * tui/tui-data.c: White space.
3999 * tui/tui-disasm.c: White space.
4000 * tui/tui-file.c: White space.
4001 * tui/tui-interp.c: White space.
4002 * tui/tui-main.c: White space.
4003 * tui/tui-out.c: White space.
4004 * tui/tui-regs.c: White space.
4005 * tui/tui-source.c: White space.
4006 * tui/tui-stack.c: White space.
4007 * tui/tui-win.c: White space.
4008 * tui/tui-winsource.c: White space.
4010 * procfs.c: White space.
4012 * python/py-auto-load.c: White space.
4013 * python/py-block.c: White space.
4014 * python/py-breakpoint.c: White space.
4015 * python/py-cmd.c: White space.
4016 * python/py-function.c: White space.
4017 * python/py-lazy-string.c: White space.
4018 * python/py-objfile.c: White space.
4019 * python/py-param.c: White space.
4020 * python/py-prettyprint.c: White space.
4021 * python/py-progspace.c: White space.
4022 * python/py-symtab.c: White space.
4023 * python/python.c: White space.
4024 * python/py-type.c: White space.
4025 * python/py-utils.c: White space.
4026 * python/py-value.c: White space.
4028 * mi/mi-cmd-break.c: White space.
4029 * mi/mi-cmd-env.c: White space.
4030 * mi/mi-cmds.c: White space.
4031 * mi/mi-cmd-stack.c: White space.
4032 * mi/mi-cmd-var.c: White space.
4033 * mi/mi-console.c: White space.
4034 * mi/mi-getopt.c: White space.
4035 * mi/mi-interp.c: White space.
4036 * mi/mi-main.c: White space.
4037 * mi/mi-out.c: White space.
4038 * mi/mi-parse.c: White space.
4040 * cli/cli-cmds.c: White space.
4041 * cli/cli-decode.c: White space.
4042 * cli/cli-dump.c: White space.
4043 * cli/cli-interp.c: White space.
4044 * cli/cli-logging.c: White space.
4045 * cli/cli-script.c: White space.
4046 * cli/cli-setshow.c: White space.
4048 * valarith.c: White space.
4049 * valops.c: White space.
4050 * valprint.c: White space.
4051 * value.c: White space.
4052 * varobj.c: White space.
4053 * xcoffread.c: White space.
4054 * xml-support.c: White space.
4055 * xml-tdesc.c: White space.
4057 2010-05-17 Andreas Schwab <schwab@redhat.com>
4060 * c-lang.c (c_printstr): Compute real length of NUL terminated
4063 2010-05-17 Joel Brobecker <brobecker@adacore.com>
4065 * parse.c (parse_exp_in_context): When block is not NULL, use
4066 its associated language to parse the expression instead of
4067 the current_language.
4069 2010-05-17 Joel Brobecker <brobecker@adacore.com>
4071 * jv-lang.c (java_lookup_class): Remove commented out code.
4072 (type_from_class): Likewise.
4073 (java_op_print_tab): Remove commented-out elements.
4075 2010-05-17 Joel Brobecker <brobecker@adacore.com>
4077 * ada-lang.c (to_fixed_range_type): The the raw index type as
4078 argument instead of the raw type name. Remove orig_type parameter.
4079 Update calls throughout.
4080 (ada_fixup_array_indexes_type): New function.
4081 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
4082 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
4083 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
4084 Remove name parameter.
4085 (print_array_type): Add call to ada_fixup_array_indexes_type.
4086 Update calls to print_range_type.
4087 (ada_print_type): Update calls to print_range_type.
4089 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
4091 * dwarf2read.c (read_set_type): Set type length if
4092 DW_AT_byte_size attribute is present.
4094 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
4096 * p-valprint.c (pascal_val_print): Handle set type if range limits
4097 are undefined but size is known.
4099 2010-05-17 Pedro Alves <pedro@codesourcery.com>
4101 * procfs.c: Reformat.
4103 2010-05-16 Michael Snyder <msnyder@vmware.com>
4105 * target.c: White space.
4106 * target-descriptions.c: White space.
4107 * target-memory.c: White space.
4108 * thread.c: White space.
4109 * top.c: White space.
4110 * tracepoint.c: White space.
4111 * trad-frame.c: White space.
4112 * tramp-frame.c: White space.
4113 * ui-file.c: White space.
4114 * ui-out.c: White space.
4115 * user-regs.c: White space.
4116 * utils.c: White space.
4118 * scm-exp.c: White space.
4119 * scm-lang.c: White space.
4120 * scm-valprint.c: White space.
4121 * sentinel-frame.c: White space.
4122 * ser-base.c: White space.
4123 * ser-go32.c: White space.
4124 * serial.c: White space.
4125 * ser-mingw.c: White space.
4126 * ser-pipe.c: White space.
4127 * ser-tcp.c: White space.
4128 * ser-unix.c: White space.
4129 * solib.c: White space.
4130 * solib-darwin.c: White space.
4131 * solib-frv.c: White space.
4132 * solib-irix.c: White space.
4133 * solib-osf.c: White space.
4134 * solib-pa64.c: White space.
4135 * solib-som.c: White space.
4136 * solib-spu.c: White space.
4137 * solib-svr4.c: White space.
4138 * solib-target.c: White space.
4139 * source.c: White space.
4140 * stabsread.c: White space.
4141 * stack.c: White space.
4142 * std-regs.c: White space.
4143 * symfile.c: White space.
4144 * symmisc.c: White space.
4145 * symtab.c: White space.
4147 2010-05-16 Michael Snyder <msnyder@vmware.com>
4149 * source.c (_initialize_source): Add "rev" as an abbreviation
4150 for the "reverse-search" command.
4152 2010-05-16 Michael Snyder <msnyder@vmware.com>
4154 * record.c: White space.
4155 * regcache.c: White space.
4156 * reggroups.c: White space.
4157 * remote-fileio.c: White space.
4158 * remote-m32r-sdi.c: White space.
4159 * remote-mips.c: White space.
4160 * remote-sim.c: White space.
4161 * remote.c: White space.
4162 (process_g_packet): Remove orphan braces.
4164 2010-05-15 Michael Snyder <msnyder@vmware.com>
4166 * parse.c: White space.
4167 * p-lang.c: White space.
4168 * posix-hdep.c: White space.
4169 * printcmd.c: White space.
4170 * progspace.c: White space.
4171 * prologue-value.c: White space.
4172 * psymtab.c: White space.
4173 * p-typeprint.c: White space.
4174 * p-valprint.c: White space.
4176 * objc-lang.c: White space.
4177 * objfiles.c: White space.
4178 * observer.c: White space.
4179 * osabi.c: White space.
4180 * osdata.c: White space.
4182 * m2-lang.c: White space.
4183 * m2-valprint.c: White space.
4184 * macrocmd.c: White space.
4185 * macroexp.c: White space.
4186 * macroscope.c: White space.
4187 * macrotab.c: White space.
4188 * main.c: White space.
4189 * maint.c: White space.
4190 * mdebugread.c: White space.
4191 * memattr.c: White space.
4192 * minsyms.c: White space.
4193 * monitor.c: White space.
4195 2010-05-14 Michael Snyder <msnyder@vmware.com>
4197 * jv-lang.c: White space.
4198 * jv-typeprint.c: White space.
4199 * jv-valprint.c: White space.
4200 * language.c: White space.
4201 * libunwind-frame.c: White space.
4202 * linespec.c: White space.
4203 * linux-nat.c: White space.
4204 * linux-record.c: White space.
4205 * linux-thread-db.c: White space.
4207 * infcall.c: White space.
4208 * inf-child.c: White space.
4209 * infcmd.c: White space.
4210 * inferior.c: White space.
4211 * inf-loop.c: White space.
4212 * inflow.c: White space.
4213 * inline-frame.c: White space.
4214 * interps.c: White space.
4216 * gcore.c: White space.
4217 * gdb.c: White space.
4218 * gdbtypes.c: White space.
4219 * gnu-nat.c: White space.
4220 * gnu-v2-abi.c: White space.
4221 * gnu-v3-abi.c: White space.
4223 * findcmd.c: White space.
4224 * findvar.c: White space.
4225 * fork-child.c: White space.
4226 * frame-base.c: White space.
4227 * frame.c: White space.
4228 * frame-unwind.c: White space.
4229 * f-valprint.c: White space.
4231 * elfread.c: White space.
4232 * environ.c: White space.
4233 * eval.c: White space.
4234 * event-loop.c: White space.
4235 * event-top.c: White space.
4236 * exceptions.c: White space.
4237 * exec.c: White space.
4238 * expprint.c: White space.
4240 * dbxread.c: White space.
4241 * dcache.c: White space.
4242 * disasm.c: White space.
4243 * doublest.c: White space.
4244 * dsrec.c: White space.
4245 * dummy-frame.c: White space.
4246 * dwarf2expr.c: White space.
4247 * dwarf2-frame.c: White space.
4248 * dwarf2loc.c: White space.
4249 * dwarf2read.c: White space.
4251 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
4255 * python/py-value.c (valpy_hash): New function.
4256 (value_object_type): Register valpy_hash.
4258 2010-05-14 Hui Zhu <teawater@gmail.com>
4259 Michael Snyder <msnyder@vmware.com>
4261 * linux-fork.c (gdbthread.h): New include.
4262 (fork_info): Add parent_ptid.
4263 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
4265 (delete_checkpoint_command): Call inferior_call_waitpid.
4266 (checkpoint_command): Set parent_ptid.
4268 2010-05-13 Michael Snyder <msnyder@vmware.com>
4270 * dictionary.c: Re-indent to GNU coding standard.
4272 * charset.c: White space.
4273 * c-lang.c: White space.
4274 * cli-out.c: White space.
4275 * coffread.c: White space.
4276 * complaints.c: White space.
4277 * completer.c: White space.
4278 * corefile.c: White space.
4279 * corelow.c: White space.
4280 * cp-abi.c: White space.
4281 * cp-namespace.c: White space.
4282 * cp-support.c: White space.
4283 * cp-valprint.c: White space.
4284 * c-typeprint.c: White space.
4285 * c-valprint.c: White space.
4286 * blockframe.c: White space.
4287 * breakpoint.c: White space.
4288 * buildsym.c: White space.
4289 * blockframe.c: White space.
4290 * bcache.c: White space.
4291 * gdbarch.sh: White space, add blank lines.
4292 * arch-utils.c: Ditto.
4293 * gdbarch.c: Regenerate.
4294 * frame.c: White space, add blank lines.
4295 * stack.c: White space, add blank lines.
4296 (initialize_stack): Remove long-dead code.
4298 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4301 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
4302 (locexpr_read_variable, loclist_read_variable): Update the callers.
4304 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4307 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
4308 Remove check of NULL returned by tag_type_to_type.
4309 (die_containing_type): Remove variable type. Remove type_die variable
4310 initialization. Remove check of NULL returned by tag_type_to_type.
4312 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
4315 * gdbtypes.c (lookup_struct_elt_type): Also lookup
4316 names of unnamed structures or unions.
4318 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
4320 * procfs.c (proc_watchpoint_address): New function.
4321 (procfs_stopped_by_watchpoint): Remove useless check after
4322 find_procinfo_or_die call.
4323 (procfs_stopped_data_address): New function.
4324 (procfs_use_watchpoints): Register new watchpoint related function.
4326 2010-05-11 Tom Tromey <tromey@redhat.com>
4328 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
4330 2010-05-10 Michael Snyder <msnyder@vmware.com>
4332 * utils.c: White space cleanup.
4334 2010-05-10 Tom Tromey <tromey@redhat.com>
4336 * eval.c (ptrmath_type_p): Add 'lang' argument.
4337 (evaluate_subexp_standard): Update.
4338 (evaluate_subexp_with_coercion): Update.
4339 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
4341 2010-05-10 Michael Snyder <msnyder@vmware.com>
4343 * utils.c (do_fclose_cleanup) Restore local variable.
4345 2010-05-09 Doug Evans <dje@google.com>
4347 * record.c (init_record_core_ops): Rename record_core to record-core.
4349 2010-05-08 Joel Brobecker <brobecker@adacore.com>
4351 Implement task switching on pa-hpux.
4352 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
4353 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
4355 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
4357 * valops.c (find_overload_match): Add missing i18n markup.
4359 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
4361 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
4363 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4365 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
4366 list for the obconcat call.
4367 * mdebugread.c (parse_symbol): Likewise.
4368 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
4370 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
4371 New variable ap. Remove variables len and val.
4372 * symfile.h (obconcat): Likewise for the prototype.
4374 2010-05-07 Michael Snyder <msnyder@vmware.com>
4376 * python/python.c (execute_gdb_command): Remove unused variables.
4377 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
4378 * python/py-breakpoint.c (gdbpy_breakpoint_created):
4379 Remove unused variable.
4380 * python/py-cmd.c (cmdpy_function): Remove unused variable.
4381 (cmdpy_completer): Remove unused variable.
4382 * python/py-frame.c (frapy_find_sal): Remove unused variable.
4383 * python/py-function.c (fnpy_call): Remove unused variable.
4384 * python/py-objfile.c (objfile_to_objfile_object):
4385 Remove unused variable.
4386 * python/py-param.c (parmpy_init): Remove unused variable.
4387 * python/py-prettyprint.c (apply_varobj_pretty_printer):
4388 Remove unused variable.
4389 (gdbpy_default_visualizer): Remove unused variable.
4390 * python/py-progspace.c (pspace_to_pspace_object):
4391 Remove unused variable.
4392 * python/py-symtab.c (symtab_and_line_to_sal_object):
4393 Remove unused variable.
4394 * python/py-type.c (typy_template_argument):
4395 Remove unused variable.
4396 * python/py-value.c (valpy_string): Remove unused variable.
4397 (convert_value_from_python): Remove unused variables.
4399 2010-05-07 Michael Snyder <msnyder@vmware.com>
4401 * valops.c (value_cast_pointers): Restore unused variable 'type1',
4402 and use it to compute variable 't1'.
4404 2010-05-07 Joel Brobecker <brobecker@adacore.com>
4406 * ada-lang.c (assign_aggregate): Remove unused variable.
4408 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
4411 * valops.c (find_overload_match): Handle fsym == NULL case.
4412 Add int no_adl argument.
4413 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
4415 Add int no_adl argument.
4416 (find_oload_champ_namespace): Add int no_adl argument.
4417 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
4419 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
4420 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
4421 Evaluate arguments and use them to perform ADL lookup.
4422 Pass no_adl argument to find_overload_match.
4423 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
4424 * cp-support.h: Added prototype for
4425 make_symbol_overload_list_namespace.
4426 * cp-support.c (make_symbol_overload_list_namespace): New function.
4427 (make_symbol_overload_list_adl_namespace): New function.
4428 (make_symbol_overload_list_adl): New function.
4429 (make_symbol_overload_list_using): Moved code to add function to
4430 overload set to make_symbol_overload_list_namespace.
4431 * c-exp.y: create UNKNOWN_CPP_NAME token.
4432 Add parse rule for ADL functions.
4433 (classify_name): Recognize an UNKNOWN_CPP_NAME.
4435 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4437 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
4440 2010-05-07 Joel Brobecker <brobecker@adacore.com>
4442 Implement task switching on solaris targets.
4443 * sol-thread.c (thread_db_find_thread_from_tid)
4444 (sol_get_ada_task_ptid): New functions.
4445 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
4447 2010-05-07 Pedro Alves <pedro@codesourcery.com>
4449 * remote.c (remote_query_supported_append): Use reconcat.
4450 (remote_query_supported): Install a cleanup. Use reconcat.
4452 2010-05-07 Pedro Alves <pedro@codesourcery.com>
4454 * gdbarch.sh (qsupported): Delete.
4455 * gdbarch.h, gdbarch.c: Regenerate.
4456 * remote.c (remote_query_supported): Remove use of
4459 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
4461 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
4464 2010-05-06 Michael Snyder <msnyder@vmware.com>
4466 * xml-support.c (xinclude_start_include): Delete unused variable.
4467 (xml_process_xincludes): Delete unused variable.
4468 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
4469 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
4470 (tdesc_find_arch_register): Delete unused variable.
4471 (tdesc_use_registers): Delete unused variable.
4472 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
4473 * inferior.c (print_inferior): Delete unused variable.
4474 * record.c (record_open_1): Delete unused variable.
4475 (record_restore): Delete unused variable.
4476 (cmd_record_save): Delete unused variable.
4477 * gcore.c (derive_heap_segment): Delete unused variable.
4478 (objfile_find_memory_regions): Use unused variable.
4479 * jit.c (jit_inferior_init): Delete unused variable.
4480 * progspace.c (clone_program_space): Delete unused variable.
4481 (pspace_empty_p): Delete unused variable.
4483 * frame-unwind.c (frame_unwind_find_by_frame):
4484 Delete unused variable.
4485 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
4486 * cp-support.c (mangled_name_to_comp): Delete unused variable.
4487 (method_name_from_physname): Delete unused variable.
4488 (cp_func_name): Delete unused variable.
4489 (cp_validate_operator): Delete unused variable.
4490 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
4491 Delete unused variable.
4492 * trad-frame.c (trad_frame_get_prev_register):
4493 Delete unused variable.
4494 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
4496 * serial.c (serial_for_fd): Delete unused variable.
4497 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
4498 * top.c (execute_command): Delete unused variable.
4499 (init_main): Delete unused variable.
4500 * utils.c (do_fclose_cleanup): Delete unused variable.
4501 (do_all_inferior_continuations): Delete unused variable.
4502 (initialize_utils): Delete unused variable.
4503 (internal_problem_mode): Delete unused global.
4504 * frame.c (get_prev_frame): Delete unused global.
4505 (get_frame_locals_address): Delete unused global.
4506 (get_frame_args_address): Delete unused global.
4508 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
4509 (pascal_type_print_varspec_prefix): Delete unused variable.
4510 * f-typeprint.c (f_type_print_base): Delete unused variable.
4511 (f_type_print_varspec_suffix): Delete unused variable.
4512 * m2-typeprint.c (m2_print_type): Delete unused variable.
4513 (m2_long_set): Delete unused variable.
4514 * ada-valprint.c (ada_val_print_1): Delete unused variable.
4515 * d-valprint.c (dynamic_array_type): Delete unused variable.
4516 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
4517 Delete unused variable.
4518 (f77_create_arrayprint_offset_tbl): Delete unused variable.
4519 * m2-valprint.c (m2_val_print): Delete unused variable.
4521 * ui-out.c (ui_out_field_int): Delete unused variable.
4522 (ui_out_field_fmt_int): Delete unused variable.
4523 * varobj.c (varobj_list_children): Delete unused variable.
4524 (varobj_set_value): Delete unused variable.
4525 (install_new_value_visualizer): Delete unused variable.
4526 (varobj_set_visualizer): Delete unused variable.
4527 (varobj_update): Delete unused variable.
4528 (varobj_editable_p): Delete unused variable.
4529 (c_value_of_root): Delete unused variable.
4530 (cplus_describe_child): Delete unused variable.
4532 * ada-lang.c (add_defn_to_vec): Delete unused variable.
4533 (decode_constrained_packed_array_type): Delete unused variable.
4534 (add_defn_to_vec): Delete unused variable.
4535 (symbol_completion_match): Delete unused variable.
4536 (value_tag_from_contents_and_address): Delete unused variable.
4537 (ada_evaluate_subexp): Delete unused variable.
4538 * c-lang.c (classify_type): Delete unused variable.
4539 * f-lang.c (f_printstr): Delete unused variable.
4540 * objc-lang.c (objc_printstr): Delete unused variable.
4541 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
4542 * jv-lang.c (type_from_class): ifdef unused variable.
4543 (java_class_name_from_physname): Delete unused variable.
4544 * m2-lang.c (m2_printstr): Delete unused variable.
4546 * objfiles.c (objfile_relocate): Delete unused variable.
4547 * maint.c (_initialize_maint_cmds): Delete unused variable.
4548 * demangle.c (_initialize_demangler): Delete unused variable.
4549 * corefile.c (reopen_exec_file): Delete unused variable.
4550 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
4551 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
4553 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
4554 * memattr.c (mem_delete): Delete unused variable.
4555 (invalidate_target_mem_regions): Delete unused variable.
4556 * mem-break.c (default_memory_insert_breakpoint):
4557 Delete unused variable.
4558 * target.c (target_get_osdata): Delete unused variable.
4559 * parse.c (length_of_subexp): Delete unused variable.
4560 (prefixify_subexp): Delete unused variable.
4561 (exp_iterate): Delete unused variable.
4562 * reverse.c (delete_bookmark_command): Delete unused variable.
4564 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
4565 * macroexp.c (gather_arguments): Delete unused variable.
4566 (substitute_args): Delete unused variable.
4567 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
4568 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
4569 (_initialize_gdbarch): Delete unused variable.
4570 * gdbarch.c, gdbarch.h: Regenerate.
4571 * arch-utils.c (initialize_current_architecture):
4572 Delete unused variable.
4573 (_initialize_gdbarch_utils): Delete unused variable.
4574 * gdbtypes.c (make_cv_type): Delete unused variable.
4575 (make_type_with_address_space): Delete unused variable.
4577 * linespec.c (decode_compound): Delete unused variable.
4578 * dictionary.c (iterator_next_hashed): Delete unused variable.
4579 * infcall.c (call_function_by_hand): Delete unused variable.
4580 * infcmd.c (step_1): Delete unused variable.
4581 (registers_info): Delete unused variable.
4582 (attach_command): Delete unused variable.
4583 * infrun.c (follow_exec): Delete unused variable.
4584 (handle_step_into_function_backwards): Delete unused variable.
4585 (_initialize_infrun): Delete unused variable.
4586 * stack.c (parse_frame_specification_1): Delete unused variable.
4587 (frame_info): Delete unused variable.
4588 (backtrace_command_1): Delete unused variable.
4589 (catch_info): Delete unused variable.
4591 * eval.c (evaluate_subexp_standard): Delete unused variable.
4592 * valops.c (value_cast_pointers): Delete unused variable.
4593 (value_dynamic_cast): Delete unused variable.
4594 (value_array): Delete unused variable.
4595 (find_overload_match): Delete unused variable.
4596 * valarith.c (value_subscript): Delete unused variable.
4597 (value_binop): Delete unused variable.
4598 * valprint.c (_initialize_valprint): Delete unused variable.
4599 * printcmd.c (print_command_1): Delete unused variable.
4600 (address_info): Delete unused variable.
4601 (printf_command): Delete unused variable.
4603 * auxv.c (target_auxv_search): Delete unused variable.
4604 * blockframe.c (get_frame_block): Delete unused variable.
4605 * regcache.c (regcache_cpy): Delete unused variable.
4606 (regcache_cpy_no_passthrough): Delete unused variable.
4607 * charset.c (wchar_iterate): Delete unused variable.
4608 (find_charset_names): Delete unused variable.
4609 (_initialize_charset): Delete unused variable.
4610 * disasm.c (do_mixed_source_and_assembly):
4611 Delete unused variable.
4612 * source.c (set_default_source_symtab_and_line):
4613 Delete unused variable.
4614 (set_substitute_path_command): Delete unused variable.
4615 * value.c (preserve_values): Delete unused variable.
4616 (value_from_double): Delete unused variable.
4618 2010-05-05 Michael Snyder <msnyder@vmware.com>
4620 * psymtab.c (lookup_partial_symbol): Delete unused variable.
4621 (find_last_source_symtab_from_partial): Delete unused variable.
4622 * symfile.c (place_section): Delete unused variable.
4623 (default_symfile_offsets): Delete unused variable.
4624 (get_debug_link_info): Delete unused variable.
4625 (find_separate_debug_file_by_debuglink): Delete unused variable.
4626 (add_symbol_file_command): Delete unused variable.
4627 (symfile_find_segment_sections): Delete unused variable.
4628 * symmisc.c (free_symtab): Delete unused variable.
4629 (dump_symtab_1): Delete unused variable.
4630 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
4631 (find_pc_sect_symtab): Delete unused variable.
4632 (skip_prologue_using_lineinfo): Delete unused variable.
4633 (sources_info): Delete unused variable.
4634 (completion_list_add_name): Delete unused variable.
4635 (expand_line_sal): Delete unused variable.
4637 * breakpoint.c (validate_commands_for_breakpoint):
4638 Delete unused variables.
4639 (insert_catchpoint): Delete unused variable.
4640 (update_watchpoint): Delete unused variable.
4641 (insert_bp_location): Delete unused variable.
4642 (insert_breakpoint_locations): Delete unused variable.
4643 (remove_breakpoint_1): Delete unused variable.
4644 (software_breakpoint_inserted_here_p): Delete unused variable.
4645 (watchpoints_triggered): Delete unused variable.
4646 (bpstat_check_watchpoint): Delete unused variable.
4647 (bpstat_stop_status): Delete unused variable.
4648 (print_one_breakpoint_location): Delete unused variable.
4649 (allocate_bp_location): Delete unused variable.
4650 (create_breakpoint): Delete unused variable.
4651 (watch_command_1): Delete unused variable.
4652 (catch_exception_command_1): Delete unused variable.
4653 (catch_ada_exception_command): Delete unused variable.
4654 (delete_breakpoint): Delete unused variable.
4655 (breakpoint_re_set_one): Delete unused variable.
4656 (do_enable_breakpoint): Delete unused variable.
4658 2010-05-06 Pedro Alves <pedro@codesourcery.com>
4660 * amd64-tdep.c: Include disasm.h.
4661 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
4662 (amd64_insn_length): Moved to disasm.c and renamed.
4663 (fixup_riprel): Adjust.
4664 * disasm.c (do_ui_file_delete): New.
4665 (gdb_insn_length): New.
4666 (gdb_buffered_insn_length_fprintf)
4667 (gdb_buffered_insn_length_init_dis)
4668 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
4670 * disasm.h (gdb_insn_length): Declare.
4671 (gdb_buffered_insn_length): Declare.
4673 2010-05-06 Pedro Alves <pedro@codesourcery.com>
4675 * remote.c (clear_threads_parsing_context): New.
4676 (remote_threads_info): Delete unused null_cleanup. Install a
4677 cleanup to clear the threads_parsing_context in case parsing
4680 2010-05-05 Michael Snyder <msnyder@vmware.com>
4682 * c-exp.y (parse_string_or_char): Delete unused variable.
4683 (c_lex): Delete unused variable.
4684 * cp-name-parser.y (cpname_lex): Delete unused variable.
4685 * ada-exp.y (find_primitive_type): Delete unused variable.
4686 (write_var_or_type): Delete unused variable.
4687 * jv-exp.y (java_parse): Delete unused variable.
4688 (push_expression_name): Delete unused variable.
4689 * p-exp.y (pascal_lex): Delete unused variable.
4691 2010-05-05 Pedro Alves <pedro@codesourcery.com>
4693 * remote.c (remote_threads_info): Really revert previous previous
4696 2010-05-05 Michael Snyder <msnyder@vmware.com>
4698 * elfread.c (elf_symtab_read): Delete unused variable.
4699 (find_separate_debug_file_by_buildid): Delete unused variables.
4700 (elf_symfile_read): Delete unused variable.
4702 * coffread.c (coff_symfile_read): Delete unused variables.
4704 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
4705 (read_pe_exported_syms): Delete unused variable.
4707 * stabsread.c (define_symbol): Delete unused variable.
4709 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
4710 (process_psymtab_comp_unit): Delete unused variable.
4711 (dwarf2_build_psymtabs_hard): Delete unused variable.
4712 (load_partial_comp_unit): Delete unused variable.
4713 (create_all_comp_units): Delete unused variable.
4714 (scan_partial_symbols): Delete unused variable.
4715 (add_partial_symbol): Delete unused variable.
4716 (add_partial_namespace): Delete unused variable.
4717 (add_partial_enumeration): Delete unused variable.
4718 (load_full_comp_unit): Delete unused variable.
4719 (process_full_comp_unit): Delete unused variable.
4720 (read_file_scope): Delete unused variable.
4721 (read_type_unit_scope): Delete unused variable.
4722 (process_structure_scope): Delete unused variable.
4723 (process_enumeration_scope): Delete unused variable.
4724 (read_tag_ptr_to_member_type): Delete unused variable.
4725 (read_typedef): Delete unused variable.
4726 (read_partial_die): Delete unused variable.
4727 (decode_locdesc): Delete unused variable.
4728 (zeroed_partial_die): Delete unused global variable.
4730 * tui/tui-interp.c (_initialize_tui_interp):
4731 Delete unused variable.
4732 * tui/tui-regs.c tui_display_registers_from):
4733 Delete unused variable.
4734 (tui_check_register_values): Delete unused variable.
4735 (tui_register_format): Delete unused variable.
4736 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
4737 * tui/tui-windata.c (tui_display_data_from_line):
4738 Delete unused variables.
4739 (tui_vertical_data_scroll): Delete unused variables.
4741 2010-05-05 Michael Snyder <msnyder@vmware.com>
4743 * remote.c (remote_threads_info): Revert questionable part of
4744 the previous change.
4746 2010-05-05 Michael Snyder <msnyder@vmware.com>
4748 * mi/mi-out.c (mi_table_begin): Delete unused variable.
4749 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
4750 (mi_cmd_var_list_children): Delete unused variable.
4751 (varobj_update_one): Delete unused variable.
4752 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
4753 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
4754 Delete unused variable.
4755 (mi_cmd_stack_list_variables): Delete unused variable.
4756 (list_args_or_locals): Delete unused variable.
4757 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
4758 Delete unused variables.
4759 (mi_cmd_file_list_exec_source_files): Delete unused variable.
4760 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
4761 Delete unused variable.
4762 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
4763 (mi_cmd_interpreter_exec): Delete unused variable.
4764 (mi_on_normal_stop): Delete unused variable.
4765 * mi/mi-main.c (run_one_inferior): Delete unused variable.
4766 (print_one_inferior): Delete unused variables.
4767 (mi_execute_command): Delete unused variable.
4768 (mi_cmd_execute): Delete unused variable.
4769 (timestamp): Delete unused variable.
4771 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
4772 (restore_binary_file): Delete unused variable.
4773 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
4774 * cli/cli-script.c (define_command): Delete unused variables.
4775 (recurse_read_control_structure): Delete unused variable.
4776 (script_from_file): Delete unused variable.
4777 * cli/cli-cmds.c (complete_command): Delete unused variable.
4778 (disassemble_command): Delete unused variable.
4780 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
4781 * tracepoint.c (delete_trace_variable_command):
4782 Delete unused variables.
4783 (encode_actions_1): Delete unused variables.
4784 (start_tracing): Delete unused variable.
4785 (trace_status_mi): Delete unused variable.
4786 (tfind_1): Delete unused variable.
4787 (trace_find_pc_command): Delete unused variable.
4788 (trace_find_line_command): Delete unused variables.
4789 (trace_find_range_command): Delete unused variables.
4790 (trace_find_outside_command): Delete unused variables.
4791 (parse_tracepoint_definition): Delete unused variables.
4792 (tfile_fetch_registers): Delete unused variable.
4794 * dcache.c (dcache_init): Delete unused variable.
4795 (dcache_info): Delete unused variable.
4797 * remote.c (remote_threads_info): Delete unused variable.
4798 (process_stop_reply) :Delete unused variable.
4799 (remote_get_trace_status): Delete unused variables.
4801 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
4802 (thread_from_lwp): Delete unused variable.
4803 (enable_thread_event_reporting): Delete unused variable.
4804 (check_for_thread_db): Delete unused variables.
4805 (thread_db_find_new_threads_2): Delete unused variable.
4807 * linux-fork.c (info_checkpoints_command): Delete unused variables.
4808 (checkpoint_command): Delete unused variable.
4809 (linux_fork_context): Delete unused variables.
4811 * linux-nat.c (linux_parent_pid): Delete unused global variable.
4812 (linux_tracefork_child): Delete unused variable.
4813 (linux_child_follow_fork): Delete unused variable.
4814 (linux_nat_detach): Delete unused variable.
4815 (linux_handle_extended_wait): Delete unused variable.
4816 (linux_nat_has_pending_sigint): Delete unused variable.
4817 (linux_nat_find_memory_regions): Delete unused variable.
4818 (linux_nat_make_corefile_notes): Delete unused variables.
4819 (linux_nat_info_proc_cmd): Delete unused variable.
4820 (linux_proc_pending_signals): Delete unused variable.
4821 (linux_nat_stop_lwp): Delete unused variables.
4822 (_initialize_linux_nat): Delete unused variable.
4824 * ser-pipe.c (pipe_ops): Delete unused global variable.
4826 * linux-record.c (record_linux_system_call):
4827 Delete unused variables.
4829 * corelow.c (core_xfer_partial): Delete unused variables.
4831 * solib-svr4.c (find_program_interpreter): Delete unused variable.
4832 (svr4_solib_create_inferior_hook): Add ifdef around
4833 conditionally-used variable declarations.
4835 * solib.c (solib_find): Delete unused variable.
4836 (free_so_symbols): Delete unused variable.
4837 (info_sharedlibrary_command): Delete unused variable.
4838 (reload_shared_libraries_1): Delete unused variable.
4839 (_initialize_solib): Delete unused variable.
4841 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
4842 (i386_collect_xstateregset): Delete unused variable.
4843 * i387-tdep.c (i387_print_float_info): Delete unused variable.
4845 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
4846 Delete unused variable 'type'.
4848 2010-05-05 Joel Brobecker <brobecker@adacore.com>
4850 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
4851 ada-lang.c: Remove comment mentioning these macros.
4852 * m2-exp.y: Delete commented out code.
4854 2010-05-05 Joel Brobecker <brobecker@adacore.com>
4856 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
4858 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
4860 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
4862 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
4863 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
4865 (cleanup_kernel_helper_return): Likewise.
4866 * arm-tdep.c (copy_unmodified): Likewise.
4867 (copy_preload): Likewise.
4868 (copy_copro_load_store): Likewise.
4869 (cleanup_branch): Likewise.
4870 (copy_b_bl_blx): Likewise.
4871 (copy_bx_blx_reg): Likewise.
4872 (copy_alu_imm): Likewise.
4873 (copy_alu_reg): Likewise.
4874 (copy_alu_shifted_reg): Likewise.
4875 (cleanup_load): Likewise.
4876 (cleanup_store): Likewise.
4877 (cleanup_block_load_pc): Likewise.
4878 (cleanup_svc): Likewise.
4879 (copy_undef): Likewise.
4880 (copy_unpred): Likewise.
4881 * remote.c (register_remote_support_xml): Likewise.
4883 2010-05-05 Hui Zhu <teawater@gmail.com>
4885 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
4887 2010-05-04 Mark Kettenis <kettenis@gnu.org>
4889 * remote.c (register_remote_support_xml)
4890 (remote_query_supported_append, remote_query_supported): Add cast
4891 to NULL used as sentinel.
4892 * tracepoint.c (tvariables_info_1): Likewise.
4893 * utils.c (add_internal_problem_command): Likewise.
4895 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4897 * dwarf2loc.c (read_pieced_value, write_pieced_value,
4898 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
4899 registers gracefully.
4901 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4903 * exec.c (print_section_info): Display entry point without arch
4906 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
4909 * printcmd.c (x_command): Only dereference once implicitly for
4912 2010-05-03 Doug Evans <dje@google.com>
4914 * event-loop.c (gdb_timer): Delete unused global.
4915 (create_timer): Update.
4917 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4919 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
4920 CURRENT->DECLARATION case.
4921 * cp-support.h (struct using_direct): Provide extended comment.
4923 2010-05-03 Mark Kettenis <kettenis@gnu.org>
4925 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
4926 HPPABSD_SIZEOF_GREGS.
4927 (HPPAOBSD_SIZEOF_FPREGS): New define.
4928 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
4929 (hppaobsd_supply_fpregset): New function.
4930 (hppaobsd_gregset): Renamed from hppabsd_gregset.
4931 (hppaobsd_fpregset): New variable.
4932 (hppaobsd_regset_from_core_section): Handle floating-point registers.
4933 (_initialize_hppabsd_tdep): Remove spurious blank line.
4935 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
4938 * p-valprint.c (pascal_value_print): Always dereference a value with
4939 type code TYPE_CODE_REF.
4941 2010-05-03 Pedro Alves <pedro@codesourcery.com>
4943 * remote.c (remote_notice_signals): New.
4944 (remote_start_remote): In non-stop mode, update the remote end on
4945 which signals it can silently pass.
4946 (init_remote_ops): Install remote_notice_signals.
4948 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4950 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
4951 * command.h (error_no_arg): ... here. Remove NORETURN, change
4952 ATTR_NORETURN to ATTRIBUTE_NORETURN.
4953 * defs.h (NORETURN, ATTR_NORETURN): Remove.
4954 (perror_with_name, verror, error, error_stream, vfatal, fatal)
4955 (internal_verror, internal_error, nomem): Remove NORETURN, change
4956 ATTR_NORETURN to ATTRIBUTE_NORETURN.
4957 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
4958 (throw_vfatal, throw_error): Remove NORETURN.
4959 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
4960 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
4961 (throw_error, deprecated_throw_reason): Remove NORETURN, change
4962 ATTR_NORETURN to ATTRIBUTE_NORETURN.
4963 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
4964 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
4966 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
4967 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
4969 * target.c (tcomplain): Likewise.
4970 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
4972 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
4973 (internal_error, perror_with_name, nomem): Remove NORETURN.
4974 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
4977 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4979 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4980 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
4981 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
4982 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4983 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
4984 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4985 * complaints.h (complaint, internal_complaint): Likewise.
4986 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
4987 (ATTR_FORMAT): Remove.
4988 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
4989 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
4990 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
4991 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
4992 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
4993 (internal_error, internal_vwarning, internal_warning, warning)
4994 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4995 * disasm.c (fprintf_disasm): Likewise.
4996 * exceptions.c (throw_it): Likewise.
4997 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
4998 (throw_error): Likewise.
4999 * language.h (type_error, range_error): Likewise.
5000 * linespec.c (cplusplus_error): Likewise.
5001 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
5002 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
5003 * monitor.c (monitor_debug): Likewise.
5004 * parser-defs.h (parser_fprintf): Likewise.
5005 * serial.h (serial_printf): Likewise.
5006 * tui/tui-hooks.c (tui_query_hook): Likewise.
5007 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
5008 (uo_message): Likewise.
5009 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
5010 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
5012 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
5014 2010-05-02 Pedro Alves <pedro@codesourcery.com>
5016 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
5017 (cli_table_header, cli_begin, cli_end, cli_field_int)
5018 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
5019 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
5020 Delete forward declarations.
5021 (cli_ui_out_impl): Move below the callbacks.
5022 (_initialize_cli_out): Delete.
5024 2010-05-02 Pedro Alves <pedro@codesourcery.com>
5026 * README: Use consistent `GDB' and `GDBserver' spellings.
5028 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5030 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
5032 2010-05-01 Pedro Alves <pedro@codesourcery.com>
5034 * infrun.c (prepare_for_detach): In non-stop, context switch to
5035 the thread that got the event before handling the event.
5037 2010-04-30 Tom Tromey <tromey@redhat.com>
5039 * symtab.c (symbol_set_names): Fix typo.
5041 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5043 * python/py-param.c (parm_constants): Avoid ARI warning
5044 by adding ARI comment.
5045 (parmpy_init): Likewise.
5047 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5049 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
5050 and created type for re-use.
5052 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5054 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
5056 2010-04-29 Doug Evans <dje@google.com>
5058 * ser-base.h (reschedule): Delete prototype.
5059 * ser-base.c (reschedule): Make static.
5061 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5063 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
5064 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
5065 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
5067 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
5070 2010-04-29 Pedro Alves <pedro@codesourcery.com>
5074 * regcache.c (registers_changed): Rename to ...
5075 (registers_changed_ptid): ... this, and only delete register cache
5076 entries matching the ptid filter argument.
5077 (registers_changed): Reimplement on top of registers_changed_ptid.
5078 * regcache.h (registers_changed_ptid): Declare.
5079 * target.c (target_resume): Flush register caches.
5081 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
5082 Tom Tromey <tromey@redhat.com>
5083 Thiago Jung Bauermann <bauerman@br.ibm.com>
5085 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
5086 (SUBDIR_PYTHON_SRCS): Likewise.
5087 (py-parameter.o): New rule.
5088 * python/py-parameter.c: New file.
5089 * python/python-internal.h (gdbpy_initialize_parameter)
5090 (gdbpy_parameter, gdbpy_parameter_value)
5091 (gdbpy_parse_command_name): Declare.
5092 * python/py-cmd.c (parse_command_name): Rename to
5093 gdbpy_parse_command_name.
5094 (gdbpy_parse_command_name): Accept a starting list parameter and
5096 (cmdpy_init): Use gdbpy_parse_command_name.
5097 * python/python.c (parameter_to_python): Rename to
5098 gdbpy_parameter_to_python. Accept enum var_types and value.
5099 (gdbpy_parameter): Use gdbpy_parameter_value.
5100 (_initialize_python): Call gdbpy_initialize_parameters.
5102 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5104 * MAINTAINERS: Add myself for write after approval privileges.
5106 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
5109 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
5110 (COMMON_OBS): Add d-lang.o d-valprint.o.
5111 (HFILES_NO_SRCDIR): Add d-lang.h.
5112 * NEWS: Mention D language support.
5113 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
5114 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
5115 * d-lang.c: New file.
5116 * d-lang.h: New file.
5117 * d-valprint.c: New file.
5118 * defs.h (enum language): Add language_d.
5119 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
5120 * language.c (binop_result_type, integral_type, character_type)
5121 (string_type, boolean_type, structured_type): Add language_d.
5122 * symfile.c (init_filename_language_table): Add language_d.
5123 * symtab.c: Include d-lang.h.
5124 (symbol_init_language_specific, symbol_find_demangled_name)
5125 (symbol_natural_name, lookup_symbol_in_language)
5126 (symbol_demangled_name, symbol_matches_domain): Add language_d.
5128 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5130 * solib-svr4.c (solib_svr4_r_map): Expand function description.
5132 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5134 * symfile.c (init_filename_language_table): Register .dg files
5137 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5139 * gdbtypes.h (struct main_type): Expand comment about target_type
5142 2010-04-27 Pedro Alves <pedro@codesourcery.com>
5143 Tristan Gingold <gingold@adacore.com>
5145 * symfile.c (reread_symbols): Also search for file in libraries.
5148 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5150 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
5151 in terms of configuration.
5153 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5155 * objfiles.c: Include solist.h.
5156 (free_all_objfiles): New variable so. Check stale solist objfiles.
5157 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
5158 and no_shared_libraries.
5160 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5163 * python/py-auto-load.c (source_section_scripts): Remove trailing
5164 new-line in i18n string.
5166 2010-04-26 Doug Evans <dje@google.com>
5168 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
5170 2010-04-26 Tom Tromey <tromey@redhat.com>
5172 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
5175 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
5177 Removal of config/i386/nm-i386sol2.h native configuration file.
5178 * config/i386/nm-i386sol2.h: Remove file.
5179 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
5180 * config/i386/sol2-64.mh: Idem.
5181 * config/djgpp/fnchange.lst: Remove reference to that file.
5182 * Makefile.in (HFILES_NO_SRCDIR): Idem.
5184 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
5186 PR breakpoints/11531.
5187 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
5188 macro definition and related comment.
5189 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
5190 (resume): Remove code and comment related to this macro.
5192 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5194 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
5197 2010-04-24 Pedro Alves <pedro@codesourcery.com>
5199 * defs.h: Adjust comment.
5200 * filesystem.h, filesystem.c: New files.
5201 * Makefile.in (SFILES): Add filesystem.c.
5202 (COMMON_OBS): Add filesystem.o.
5203 * solib.c (solib_find): Handle DOS-based filesystems. Handle
5204 different target and host path flavours.
5205 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
5206 has_dos_based_file_system on the gdbarch.
5207 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
5208 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
5209 * i386-tdep.c (i386_go32_init_abi): Ditto.
5210 * gdbarch.sh (has_dos_based_file_system): New.
5211 * gdbarch.h, gdbarch.c: Regenerate.
5212 * NEWS: Mention improved support for remote targets with DOS-based
5213 filesystems. Mention new `set/show target-file-system-kind'
5216 2010-04-23 Stan Shebs <stan@codesourcery.com>
5218 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
5220 (struct agent_reqs): Remove.
5221 (ax_reg_mask): Declare.
5222 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
5223 (free_agent_expr): Free reg_mask.
5224 (ax_print): Add scope and register mask info.
5225 (ax_reqs): Remove agent_reqs argument, use agent expression
5226 fields, and move part of register mask computation to...
5227 (ax_reg_mask): New function.
5228 * ax-gdb.c (gen_trace_static_fields): Call it.
5229 (gen_traced_pop): Ditto.
5230 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
5231 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
5232 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
5233 (gen_eval_for_expr): Ditto, and require an rvalue.
5234 (agent_command): Call ax_reqs.
5235 (agent_eval_command): Ditto.
5236 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
5237 (validate_action_line): Ditto.
5238 (collect_symbol): Ditto.
5239 (encode_actions_1): Ditto.
5241 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
5242 Paul Pluzhnikov <ppluzhnikov@google.com>
5243 Jan Kratochvil <jan.kratochvil@redhat.com>
5245 Fix deadlock on looped list of loaded shared objects.
5246 * solib-svr4.c (LM_PREV): New function.
5247 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
5248 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
5249 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
5250 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
5252 2010-04-23 Doug Evans <dje@google.com>
5254 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
5256 * configure: Regenerate.
5257 * main.c: #include "python/python.h".
5258 (captured_main): Defer loading auto-loaded scripts until after
5259 local_gdbinit has been sourced.
5260 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
5261 (load_auto_scripts_for_objfile): New function.
5262 (auto_load_new_objfile): Call it.
5263 * python/python.h (gdbpy_global_auto_load): Declare.
5264 (load_auto_scripts_for_objfile): Declare.
5266 Add support for auto-loading scripts from .debug_gdb_scripts section.
5267 * NEWS: Add entry for .debug_gdb_scripts.
5268 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
5269 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
5270 (py-auto-load.o): New rule.
5271 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
5272 * cli/cli-cmds.h (find_and_open_script): Update prototype.
5273 * python/py-auto-load.c: New file.
5274 * python/python-internal.h: #include <stdio.h>.
5275 (set_python_list, show_python_list): Declare.
5276 (gdbpy_initialize_auto_load): Declare.
5277 (source_python_script_for_objfile): Declare.
5278 * python/python.c: Remove #include of observer.h.
5279 (gdbpy_auto_load): Moved to py-auto-load.c.
5280 (GDBPY_AUTO_FILENAME): Ditto.
5281 (gdbpy_new_objfile): Delete.
5282 (source_python_script_for_objfile): New function.
5283 (set_python_list, show_python_list): Make externally visible.
5284 (_initialize_python): Move "auto-load" command to py-auto-load.c
5285 and observer_attach_new_objfile to py-auto-load.c.
5287 2010-04-23 Jerome Guitton <guitton@adacore.com>
5289 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
5290 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
5291 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
5293 (alpha_heuristic_analyze_probing_loop): New function.
5294 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
5295 and handle cases when a stack probe loop is generated.
5296 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
5297 (alpha_mdebug_max_frame_size_exceeded): New function.
5298 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
5299 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
5300 Return 0 when the maximum debuggable frame size has been exceeded.
5302 2010-04-23 Joel Brobecker <brobecker@adacore.com>
5305 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
5307 2010-04-20 Chris Moller <cmoller@redhat.com>
5311 * symtab.c (rbreak_command): Added code to include a filename
5312 specification in the rbreak argument.
5313 * NEWS: Added a brief description of filename-qualified rbreak.
5315 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5317 Fix crashes on dangling display expressions.
5318 * ada-lang.c (ada_operator_check): New function.
5319 (ada_exp_descriptor): Fill-in the field operator_check.
5320 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
5321 * jv-lang.c (exp_descriptor_java): Likewise.
5322 * m2-lang.c (exp_descriptor_modula2): Likewise.
5323 * scm-lang.c (exp_descriptor_scm): Likewise.
5324 * parse.c (exp_descriptor_standard): Likewise.
5325 (operator_check_standard): New function.
5326 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
5327 * parser-defs.h (struct exp_descriptor): New field operator_check.
5328 (operator_check_standard, exp_uses_objfile): New declarations.
5329 * printcmd.c: Remove the inclusion of solib.h.
5330 (display_uses_solib_p): Remove the function.
5331 (clear_dangling_display_expressions): Call lookup_objfile_from_block
5332 and exp_uses_objfile instead of display_uses_solib_p.
5333 * solist.h (struct so_list) <objfile>: New comment.
5334 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
5335 * symtab.h (lookup_objfile_from_block): New declaration.
5336 (struct general_symbol_info) <obj_section>: Extend the comment.
5338 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5339 Thiago Jung Bauermann <bauerman@br.ibm.com>
5341 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
5342 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
5343 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
5344 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
5345 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
5346 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
5347 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
5348 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
5349 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
5350 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
5351 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
5352 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
5353 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
5354 Define, in case <ptrace.h> doesn't provide it.
5355 (booke_debug_info): New variable.
5356 (max_slots_number): Ditto.
5357 (hw_break_tuple): New struct.
5358 (thread_points): Ditto.
5359 (ppc_threads): New variable.
5360 (PPC_DEBUG_CURRENT_VERSION): New define.
5361 (have_ptrace_new_debug_booke): New function.
5362 (ppc_linux_check_watch_resources): Renamed to ...
5363 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
5364 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
5365 (booke_cmp_hw_point): New function.
5366 (booke_find_thread_points_by_tid): Ditto.
5367 (booke_insert_point): Ditto.
5368 (booke_remove_point): Ditto.
5369 (ppc_linux_insert_hw_breakpoint): Ditto.
5370 (ppc_linux_remove_hw_breakpoint): Ditto.
5371 (get_trigger_type): Ditto.
5372 (ppc_linux_insert_watchpoint): Handle BookE processors.
5373 (ppc_linux_remove_watchpoint): Ditto.
5374 (ppc_linux_new_thread): Ditto.
5375 (ppc_linux_thread_exit): New function..
5376 (ppc_linux_stopped_data_address): Handle BookE processors.
5377 (ppc_linux_watchpoint_addr_within_range): Ditto.
5378 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
5379 to_remove_hw_breakpoint fields of the target operations struct.
5380 Add observe for the thread_exit event.
5382 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
5384 * i386-linux-nat.c (regmap): Removed.
5385 (fetch_register): Replace regmap with
5386 i386_linux_gregset_reg_offset.
5387 (store_register): Likewise.
5388 (supply_gregset): Likewise.
5389 (fill_gregset): Likewise.
5391 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
5394 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
5396 2010-04-22 Chris Moller <cmoller@redhat.com>
5398 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
5399 method of popping recursion-detection stack with a method based on
5400 obstack_object_size(). (Similar to the PR9167 patch below, but for
5401 the static array obstack rather than the static member obstack.)
5403 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
5405 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
5406 (_initialize_amd64_linux_nat): Replace
5407 amd64_linux_gregset64_reg_offset with
5408 amd64_linux_gregset_reg_offset.
5410 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
5413 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
5415 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
5418 * stabsread.c (set_length_in_type_chain): New function.
5419 (read_struct_type): Call set_length_in_type_chain function.
5420 (read_enum_type): Idem.
5422 2010-04-21 Stan Shebs <stan@codesourcery.com>
5423 Nathan Sidwell <nathan@codesourcery.com>
5425 * tracepoint.c (trace_save): Open in binary mode.
5427 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
5429 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
5431 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
5432 builtin_char32 fields.
5433 * printcmd.c (decode_format): Set char size to '\0'
5434 for strings unless explicit size is given.
5435 (print_formatted): Correct calculation of NEXT_ADDRESS
5436 for 16 or 32 bit strings.
5437 (do_examine): Do not force byte size for strings.
5438 Use builtin_char16 and builtin_char32 types to display
5439 16 or 32 bit-wide strings.
5440 (x_command): Set LAST_SIZE to 'b' for string type.
5442 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
5445 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5448 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
5449 there is no .reg-xstate section.
5450 (i386_linux_core_read_description): Check XCR0 first.
5452 2010-04-21 Mike Frysinger <vapier@gentoo.org>
5454 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
5457 2010-04-21 Chris Moller <cmoller@redhat.com>
5460 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
5461 method of popping recursion-detection stack with a method based on
5462 obstack_object_size().
5464 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5467 * p-valprint.c (pascal_val_print): Fix default printing of integer
5470 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5472 Fix compilation warning on gcc-4.1.2.
5473 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
5474 local variable`pc' to zero.
5476 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5478 Implement thread support with core files on alpha-tru64.
5479 * dec-thread.c (dec_thread_find_new_threads): New function,
5480 extracted from resync_thread_list.
5481 (resync_thread_list): Add OPS parameter. Replace extracted-out
5482 code by call to dec_thread_find_new_threads.
5483 (dec_thread_wait): Update call to resync_thread_list.
5484 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
5486 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5488 * ada-lang.c (value_pointer): New function.
5489 (make_array_descriptor): Call value_pointer to convert addresses to
5492 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5494 * rs6000-aix-tdep.c: #include exceptions.h.
5495 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
5496 while reading the memory at ADDR, then ADDR cannot be a function
5499 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5501 * ada-typeprint.c (ada_print_typedef): New function.
5502 * ada-lang.h (ada_print_typedef): Add declaration.
5503 * ada-lang.c (ada_language_defn): set la_print_typdef field
5504 to ada_print_typedef.
5506 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5508 * procfs.c (procfs_address_to_host_pointer): Only define when used.
5510 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5512 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
5513 (iterate_over_mappings): Adjust function profile. Add declaration.
5514 (insert_dbx_link_bpt_in_region, info_mappings_callback):
5517 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5519 * procfs.c (solib_mappings_callback): Move function up to avoid
5522 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5524 * procfs.c (find_signalled_thread, find_stop_signal): Move
5525 these functions down to define them only when used.
5527 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5529 * valprint.c (common_val_print): Fix the value before extracting
5531 * ada-lang.c (ada_to_fixed_value): Make this function extern.
5532 * ada-lang.h (ada_to_fixed_value): New function declaration.
5533 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
5534 to avoid code duplication and fix a bug in the handling of
5535 fixed types contents.
5537 2010-04-20 Tom Tromey <tromey@redhat.com>
5539 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
5540 (read_partial_die): Likewise.
5541 (dwarf_attr_name): Likewise.
5543 2010-04-20 Chris Moller <cmoller@redhat.com>
5547 * cp-valprint.c (global): Adding new static array recursion
5549 (cp_print_value_fields, cp_print_static_field): Added new static
5550 array recursion detection code.
5552 2010-04-20 Mark Kettenis <kettenis@gnu.org>
5554 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
5555 general-purpose register set should be 68 instead of 144.
5556 (i386_linux_sse_regset_sections): Likewise.
5557 (i386_linux_avx_regset_sections): Likewise.
5559 2010-04-20 Stan Shebs <stan@codesourcery.com>
5560 Nathan Sidwell <nathan@codesourcery.com>
5562 * dwarf2loc.c (struct axs_var_loc): New struct.
5563 (dwarf2_tracepoint_var_loc): New function.
5564 (dwarf2_tracepoint_var_access): New function.
5565 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
5567 (locexpr_describe_location_piece): New function.
5568 (locexpr_describe_location_1): New function.
5569 (locexpr_describe_location): Call it, update signature.
5570 (loclist_describe_location): Rewrite to loop over locations,
5572 * symtab.h (struct symbol_computed_ops): Add address to
5573 describe_location arguments, return void.
5574 * printcmd.c (address_info): Get context PC, pass to computed
5575 location description.
5576 * tracepoint.c (scope_info): Ditto.
5577 * ax-gdb.c (trace_kludge): Export.
5579 2010-04-20 Tom Tromey <tromey@redhat.com>
5581 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
5582 (struct dwarf2_cie) <segment_size>: New field.
5583 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
5584 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
5586 (read_attribute_value): Handle DW_FORM_flag_present,
5587 DW_FORM_sec_offset, DW_FORM_exprloc.
5588 (dump_die_shallow): Likewise.
5589 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
5590 (dwarf2_const_value): Handle DW_FORM_exprloc.
5591 (attr_form_is_block): Likewise.
5592 (struct line_header) <maximum_ops_per_instruction>: New field.
5593 (dwarf_decode_line_header): Set new field.
5594 (dwarf_decode_lines): Handle new field.
5596 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5598 * f-exp.y: Add new production to recognize the `logical*8' type.
5599 (LOGICAL_S8_KEYWORD): New token.
5600 * f-lang.c (enum f_primitive_types)
5601 <f_primitive_type_logical_s8>: New field.
5602 (f_language_arch_info): Handling `logical*8' type.
5603 (build_fortran_types): Building `logical*8' type.
5604 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
5606 2010-04-19 Doug Evans <dje@google.com>
5608 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
5609 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
5610 (pipe_close): Ditto.
5612 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5614 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
5616 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5618 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
5619 type to void function.
5621 2010-04-19 Stan Shebs <stan@codesourcery.com>
5622 Vladimir Prus <vladimir@codesourcery.com>
5624 * tracepoint.c (tfind_1): Add missing newline, report exit from
5626 * target.c (update_current_target): Make default
5627 to_trace_find return -1.
5629 2010-04-19 Mike Frysinger <vapier@gentoo.org>
5631 * objc-lang.c (find_methods): Move symname check up.
5633 2010-04-19 Pedro Alves <pedro@codesourcery.com>
5635 * ada-lang.c (print_recreate_exception)
5636 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
5637 not "catch unhandled".
5639 2010-04-19 Pedro Alves <pedro@codesourcery.com>
5641 PR breakpoints/8554.
5643 Implement `save-breakpoints'.
5645 * breakpoint.c (save_cmdlist): New.
5646 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
5648 (print_recreate_catch_fork): New.
5649 (catch_fork_breakpoint_ops): Install it.
5650 (print_recreate_catch_vfork): New.
5651 (catch_vfork_breakpoint_ops): Install it.
5652 (print_recreate_catch_syscall): New.
5653 (catch_syscall_breakpoint_ops): Install it.
5654 (print_recreate_catch_exec): New.
5655 (catch_exec_breakpoint_ops): Install it.
5656 (print_recreate_exception_catchpoint): New.
5657 (gnu_v3_exception_catchpoint_ops): Install it.
5658 (save_breakpoints): New, based on tracepoint_save_command, but
5659 handle all breakpoint types.
5660 (save_breakpoints_command): New.
5661 (tracepoint_save_command): Rename to...
5662 (save_tracepoints_command): ... this, and reimplement using
5664 (save_command): New.
5665 (_initialize_breakpoints): Install the "save" command prefix.
5666 Install the "save breakpoints" command. Make "save-tracepoints" a
5667 deprecated alias for "save tracepoints".
5668 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
5669 * ada-lang.c (print_recreate_exception): New.
5670 (print_recreate_catch_exception): New.
5671 (catch_exception_breakpoint_ops): Install it.
5672 (print_recreate_catch_exception_unhandled): New.
5673 (catch_exception_unhandled_breakpoint_ops): Install it.
5674 (print_recreate_catch_assert): New.
5675 (catch_assert_breakpoint_ops): Install it.
5677 * NEWS: Mention the new `save breakpoints' command. Mention the
5678 new `save tracepoints' alias and that `save-tracepoints' is now
5681 2010-04-18 Pedro Alves <pedro@codesourcery.com>
5685 * tui/tui-out.c: Include cli-out.h.
5686 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
5687 (tui_begin, tui_end, tui_field_int, tui_field_skip)
5688 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
5689 (tui_message, tui_wrap_hint, tui_flush): Delete forward
5691 (struct ui_out_data): Rename to...
5692 (struct tui_ui_out_data): ... this. Remove `stream' and
5693 `suppress_output' fields, and inherit cli_ui_out_data.
5694 (tui_out_data): New typedef.
5695 (tui_ui_out_impl): Don't initialize fields staticaly.
5696 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
5697 (tui_begin, tui_end): Delete.
5698 (tui_field_int): Adjust to delegate most work to the base type.
5699 (tui_field_skip): Delete.
5700 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
5701 delegate most work to the base type.
5702 (tui_spaces): Delete.
5703 (tui_text): Adjust to delegate most work to the base type.
5704 (tui_message): Delete.
5705 (tui_wrap_hint): Delete.
5706 (tui_flush): Delete.
5707 (out_field_fmt): Delete.
5708 (field_separator): Delete.
5709 (tui_out_new): Adjust to initialize the base type.
5710 (_initialize_tui_out): Initialize tui_ui_out_impl.
5711 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
5713 (cli_out_data): Adjust.
5714 (cli_ui_out_impl): Make extern.
5715 (cli_table_header, cli_field_int, cli_field_skip): Use
5716 uo_field_string instead of cli_field_string.
5717 (cli_redirect): Adjust to use cli_out_data.
5718 (cli_out_data_ctor): New.
5719 (cli_out_new): Use it.
5720 * cli-out.h (struct ui_file): Remove forward declaration.
5721 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
5722 (cli_ui_out_impl): Declare.
5723 (cli_out_data_ctor): Declare.
5724 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
5725 (uo_field_string): No longer static.
5726 (ui_out_data): Change return type to void pointer.
5727 (ui_out_new): Change `data' parameter type to void pointer.
5728 * ui-out.h (struct ui_out_data): Don't forward declare.
5729 (ui_out_data): Change return type to void pointer.
5730 (ui_out_new): Change `data' parameter type to void pointer.
5731 (uo_field_string): Declare.
5733 2010-04-17 Pedro Alves <pedro@codesourcery.com>
5735 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
5736 instead of always false.
5738 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
5741 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
5744 2010-04-17 Pedro Alves <pedro@codesourcery.com>
5746 * breakpoint.c (watchpoints_triggered): Use
5747 is_hardware_watchpoint.
5748 (watchpoints_triggered): Ditto.
5749 (bpstat_check_location): Use is_watchpoint and
5750 is_hardware_watchpoint.
5751 (bpstat_check_watchpoint): Use is_watchpoint and
5752 is_hardware_watchpoint.
5753 (bpstat_stop_status): Fix comment.
5754 (user_settable_breakpoint): Use is_watchpoint.
5755 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
5756 (disable_watchpoints_before_interactive_call_start): Use
5758 (enable_watchpoints_after_interactive_call_stop): Use
5760 (clear_command): Use is_watchpoint.
5761 (do_enable_breakpoint): Use is_watchpoint.
5763 2010-04-16 Mike Frysinger <vapier@gentoo.org>
5765 * solib-frv.c (enable_break1_done): Delete.
5766 (enable_break2): Do not check enable_break1_done. Move the
5767 enable_break2_done setting and call to
5768 remove_solib_event_breakpoints() to the end. Return without
5769 warning when the contents of _dl_debug_addr are 0.
5770 (enable_break): Do not set enable_break1_done.
5771 (frv_clear_solib): Likewise.
5773 2010-04-16 Kevin Buettner <kevinb@redhat.com>
5775 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
5776 instead of an error if no PLT entry is found. Return a
5777 potentially useful result.
5778 (m32c_m16c_pointer_to_address): Add code to search for function
5779 address when no .plt entry is found.
5781 2010-04-16 Stan Shebs <stan@codesourcery.com>
5783 * tracepoint.c (trace_variable_command): Run a cleanup.
5785 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
5787 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
5789 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
5791 Support for Windows OS Thread Information Block.
5792 * NEWS: Document new feature.
5793 * remote.c (PACKET_qGetTIBAddr): New enum element.
5794 (remote_get_tib_address): New function.
5795 (init_remote_ops): Set to_get_tib_address field
5796 to remote_get_tib_address.
5797 (_initialize_remote): Add add_packet_config_cmd
5798 for PACKET_qGetTIBAddr.
5799 * target.c (update_current_target): Set default value for
5800 new to_get_tib_address field.
5801 * target.h (target_ops): New field to_get_tib_address.
5802 (target_get_tib_address): New macro.
5803 * windows-nat.c (thread_info): Add thread_local_base field.
5804 (windows_add_thread): Add tlb argument of type 'void *'.
5805 (fake_create_process): Adapt windows_add_thread call.
5806 (get_windows_debug_event): Idem.
5807 (windows_get_tib_address): New function.
5808 (init_windows_ops): Set to_get_tib_address field
5809 to remote_get_tib_address.
5810 (_initialize_windows_nat): Replace info_w32_cmdlist
5811 initialization by a call to init_w32_command_list.
5812 (info_w32_command, info_w32_cmdlist): Removed from here...
5813 to windows-tdep.c file.
5814 * windows-tdep.h (info_w32_cmdlist): Declare.
5815 (init_w32_command_list): New external function
5817 * windows-tdep.c: Add several headers.
5818 (info_w32_cmdlist): to here, made global.
5819 (thread_information_32): New struct.
5820 (thread_information_64): New struct.
5821 (TIB_NAME): New char array.
5822 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
5823 (maint_display_all_tib): New static variable.
5824 (windows_get_tlb_type): New function.
5825 (tlb_value_read, tlb_value_write): New functions.
5826 (tlb_value_funcs): New static struct.
5827 (tlb_make_value): New function.
5828 (display_one_tib): New function.
5829 (display_tib): New function.
5830 (show_maint_show_all_tib):New function.
5831 (info_w32_command): Moved from windows-nat.c.
5832 (init_w32_command_list): New function.
5833 (_initialize_windows_tdep): New function.
5834 New "maint set/show show-all-tib" command
5835 New "$_tlb" internal variable.
5837 2010-04-16 Joel Brobecker <brobecker@adacore.com>
5839 * tui/tui-regs.c (tui_display_register): Add comment about
5841 * tui/tui-stack.c (tui_show_locator_content): Ditto.
5843 2010-04-15 Stan Shebs <stan@codesourcery.com>
5845 * frame.c: Include tracepoint.h.
5846 (get_current_frame): Allow a trace frame to be an alternate source
5847 of stack frame data.
5848 * tracepoint.c (tfind_1): Don't try to get current stack frame if
5851 2010-04-15 Pedro Alves <pedro@codesourcery.com>
5853 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
5855 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
5857 2010-04-15 Doug Evans <dje@google.com>
5859 * NEWS: Add entry for python program space support.
5860 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
5861 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
5862 (py-progspace.o): New rule.
5863 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
5865 (find_pretty_printer_from_progspace): New function.
5866 (find_pretty_printer_from_gdb): New function.
5867 (find_pretty_printer): Rewrite.
5868 * python/py-progspace.c: New file.
5869 * python/python-internal.h (program_space): Add forward decl.
5870 (pspace_to_pspace_object, pspy_get_printers): Declare.
5871 (gdbpy_initialize_pspace): Declare.
5872 * python/python.c: #include "progspace.h".
5873 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
5874 (_initialize_python): Call gdbpy_initialize_pspace.
5875 (GdbMethods): Add current_progspace, progspaces.
5877 Add -s option to source command.
5878 * NEWS: Document new option.
5879 * cli/cli-cmds.c (find_and_open_script): Add function comment.
5880 Delete from_tty and cleanupp args. Split filep arg into file and
5881 full_pathp. New arg search_path.
5882 (source_script_from_stream): New function.
5883 (source_script_with_search): New function.
5884 (source_script): Rewrite.
5885 (source_command): Parse "-s" option.
5886 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
5887 * python/python.c (source_python_script): Make file arg a const char *.
5888 Don't call fclose, leave for caller.
5889 * python/python.h (source_python_script): Update.
5891 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
5892 Pedro Alves <pedro@codesourcery.com>
5894 Avoid rereading shared libraries that haven't changed.
5896 * solib.c (free_so_symbols): New function, from ...
5897 (free_so): ... here. Call it.
5898 (solib_read_symbols): Don't warn here if symbols have already been
5900 (solib_add): Warn here instead, if a pattern was specified.
5901 (reload_shared_libraries_1): New.
5902 (reload_shared_libraries): Rewrite to not fetch the library list.
5904 2010-04-14 Doug Evans <dje@google.com>
5906 * source.c (openp): Strip DOS drive letter if present before
5907 concatenating string to search path.
5909 2010-04-14 Pedro Alves <pedro@codesourcery.com>
5911 * objfiles.h (gdb_bfd_close_or_warn): Declare.
5912 * objfiles.c (gdb_bfd_close_or_warn): New.
5913 * corelow.c: Include objfiles.h
5914 (core_close): Use gdb_bfd_close_or_warn.
5915 * elfread.c (build_id_verify): Ditto.
5916 * exec.c (exec_close, exec_close_1): Ditto.
5918 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
5919 Pedro Alves <pedro@codesourcery.com>
5921 Group errors for many missing shared libraries.
5923 * solist.h (struct so_list): Remove from_tty.
5924 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
5925 (solib_map_sections): Take so_list argument. Return 0 if we
5926 failed to open a BFD. Add target sections here.
5927 (symbol_add_stub): Delete.
5928 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
5929 not from_tty copied from the so_list. Don't warn a second time
5930 for a missing library.
5931 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
5932 add to the section table here. Print out a single warning for all
5934 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
5937 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
5939 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
5940 error/warning messages. Capitalize and use complete sentences.
5941 (blpy_block_syms_iternext): Likewise.
5942 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
5943 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
5944 (frame_info_to_frame_object, frapy_read_var)
5945 (gdbpy_frame_stop_reason_string): Likewise.
5946 * python/py-lazy-string.c (stpy_convert_to_value)
5947 (gdbpy_create_lazy_string_object): Likewise.
5948 * python/py-objfile.c (objfpy_set_printers): Likewise.
5949 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
5950 * python/python.c (parameter_to_python): Likewise.
5951 * python/py-type.c (typy_range, typy_target): Likewise.
5952 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
5953 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
5956 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
5960 * python/py-prettyprint.c (pretty_print_one_value): Test for
5962 (print_string_repr): Test for Py_None. Set flags accordingly.
5963 Return value depending on return type.
5964 (print_children): Take a value indicating whether data was printed
5965 before this function was called. Alter output accordingly.
5966 (apply_val_pretty_printer): Capture return value from
5967 print_string_repr and pass to print_children.
5969 2010-04-13 Mark Kettenis <kettenis@gnu.org>
5972 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
5973 register note sections.
5974 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
5976 (i386_linux_init_abi): Install list of supported register note
5977 sections that matches the target description.
5979 2010-04-13 Pedro Alves <pedro@codesourcery.com>
5981 * remote.c (remote_get_noisy_reply): Don't error out on empty
5983 (remote_start_remote): Update and merge tracepoints and trace
5984 state variables as long as the target supports tracepoints.
5985 (remote_trace_init): Fix prototype.
5986 (remote_download_trace_state_variable): Validate reply.
5987 (remote_trace_set_readonly_regions): Fix prototype.
5988 (remote_trace_start): Fix prototype. Check for empty reply.
5989 (remote_get_trace_status): Small cleanup.
5990 (remote_trace_stop): Fix prototype. Check for empty reply.
5991 (remote_trace_find): Check for empty reply.
5992 (remote_save_trace_data): Validate reply.
5993 (remote_set_disconnected_tracing): Check for empty reply, and
5995 (remote_set_circular_trace_buffer): Ditto.
5997 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
5999 Suppress unused value warning during compilation.
6000 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
6002 * tui/tui-stack.c (tui_show_locator_content): Likewise.
6004 2010-04-12 Stan Shebs <stan@codesourcery.com>
6006 * tracepoint.c (tfile_xfer_partial): Check read result.
6008 2010-04-12 Mike Frysinger <vapier@gentoo.org>
6010 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
6011 * remote-sim.c (gdbsim_files_info): Likewise.
6013 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6015 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
6016 * arm-linux-nat.c (arm_linux_vfp_register_count): New
6018 (fetch_vfp_registers): New function to fetch VFP registers.
6019 (store_vfp_registers): New function to store VFP registers.
6020 (arm_linux_fetch_inferior_registers): Add support for VFP
6022 (arm_linux_store_inferior_registers): Likewise.
6023 (arm_linux_read_description): Likewise.
6024 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
6027 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
6029 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
6031 (amd64_collect_xstateregset): Likewise.
6033 2010-04-09 Stan Shebs <stan@codesourcery.com>
6035 * tracepoint.c (trace_status_mi): Report frames created.
6037 * tracepoint.c (trace_dump_command): Include default-collect
6040 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
6042 * symtab.c (find_function_start_sal): Never return SAL pointing
6043 before function start address, even if line info is missing.
6045 2010-04-09 Pedro Alves <pedro@codesourcery.com>
6047 * NEWS: Mention tracepoints support.
6049 2010-04-09 Pedro Alves <pedro@codesourcery.com>
6051 * tracepoint.c (trace_status_mi): Report disconnected tracing and
6052 circular trace buffer statuses.
6054 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6056 * config/djgpp/fnchange.lst: Fix typo in translations for
6057 symbol-without-target_section.exp and symbol-without-target_section.c.
6059 2010-04-09 Pedro Alves <pedro@codesourcery.com>
6061 * breakpoint.c (condition_command): Pass condition expression to
6062 set_breakpoint_condition stripped from breakpoint number.
6064 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
6065 Thiago Jung Bauermann <bauerman@br.ibm.com>
6066 Tom Tromey <tromey@redhat.com>
6068 * breakpoint.c (condition_command): Simplify. Move condition
6070 (set_breakpoint_condition): ... here. New function.
6071 * breakpoint.h (set_breakpoint_condition): Declare.
6072 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
6073 (SUBDIR_PYTHON_SRCS): Likewise.
6074 (py-breakpoint.o): New rule.
6075 * python/py-breakpoint.c: New file.
6076 * python/python-internal.h (gdbpy_breakpoints)
6077 (gdbpy_initialize_breakpoints): Declare.
6078 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
6080 2010-04-09 Pedro Alves <pedro@codesourcery.com>
6082 * regformats/regdat.sh: Include server.h. Don't include
6085 2010-04-08 Stan Shebs <stan@codesourcery.com>
6086 Pedro Alves <pedro@codesourcery.com>
6088 * tracepoint.h (struct trace_status): New fields disconnected_tracing
6089 and circular_buffer.
6090 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
6091 * tracepoint.c (trace_status_command): Display target's status for
6092 disconnected tracing and circular buffer.
6093 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
6094 query for non-disconnected-tracing case, remove the stop_tracing
6096 (tfile_open): Clear disconnected and circular buffer status.
6097 (trace_save): Save disconnected and circular buffer status.
6098 (parse_trace_status): Parse disconnected and circular buffer status,
6099 also recognize disconnected as a stop reason.
6100 * remote.c (remote_set_disconnected_tracing): Only set
6101 QTDisconnected if the remote end supports disconnected tracing.
6102 Warn otherwise, if trying to enable disconnected tracing.
6103 * infcmd.c (detach_command): Update disconnect_tracing call.
6104 * cli/cli-cmds.c (quit_command): Ditto.
6106 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6108 * i387-tdep.c (i387_collect_xsave): Replace abort with
6111 2010-04-08 Stan Shebs <stan@codesourcery.com>
6113 * breakpoint.c (default_collect_info): New function.
6114 (breakpoints_info): Call it.
6115 (maintenance_info_breakpoints): Ditto.
6116 (tracepoints_info): Ditto.
6118 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6120 * i387-tdep.c (i387_collect_xsave): Re-indent.
6122 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6124 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
6125 if HAVE_PTRACE_GETFPXREGS is defined.
6126 (i386_linux_read_description): Set have_ptrace_getfpxregs and
6127 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
6129 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
6130 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
6131 if .reg-xfp section doesn't exist.
6132 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
6134 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
6136 * i386-tdep.c: Include "features/i386/i386-mmx.c".
6137 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
6138 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
6139 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
6140 (i386_gdbarch_init): Update comments.
6141 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
6143 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
6145 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
6147 * features/Makefile (i386/i386-mmx-expedite): New.
6148 (i386/i386-mmx-linux-expedite): Likewise.
6149 ($(outdir)/i386/i386-mmx.dat): Likewise.
6150 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
6152 * features/i386/i386-mmx-linux.c: New.
6153 * features/i386/i386-mmx-linux.xml: Likewise.
6154 * features/i386/i386-mmx.c: Likewise.
6155 * features/i386/i386-mmx.xml: Likewise.
6156 * regformats/i386/i386-mmx-linux.dat: Likewise.
6157 * regformats/i386/i386-mmx.dat: Likewise.
6159 * features/Makefile (WHICH): Add i386/i386-mmx and
6160 i386/i386-mmx-linux.
6162 2010-04-08 Doug Evans <dje@google.com>
6164 * source.c (openp): Skip $cdir in PATH.
6166 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
6169 * python/py-lazy-string.c (stpy_convert_to_value): Check for
6171 (gdbpy_create_lazy_string_object): Allow strings with a NULL
6172 address and a zero length.
6174 2010-04-08 Hui Zhu <teawater@gmail.com>
6176 * i386-tdep.c (i386_process_record): Add support for insn
6179 2010-04-07 Doug Evans <dje@google.com>
6181 * python/python.c (source_python_script): Use ensure_python_env
6182 to prepare environment for script.
6184 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6186 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
6187 <sys/uio.h> and "i386-xstate.h".
6188 (PTRACE_GETREGSET): New.
6189 (PTRACE_SETREGSET): Likewise.
6190 (have_ptrace_getregset): Likewise.
6191 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
6193 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
6195 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
6196 (amd64_linux_store_inferior_registers): Likewise.
6197 (amd64_linux_read_description): Check and enable AVX target
6200 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
6201 and "features/i386/amd64-avx-linux.c".
6202 (amd64_linux_regset_sections): New.
6203 (amd64_linux_core_read_description): Check and enable AVX
6205 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
6206 set_gdbarch_core_regset_sections.
6207 (_initialize_amd64_linux_tdep): Call
6208 initialize_tdesc_amd64_avx_linux.
6210 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
6211 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
6212 (tdesc_amd64_avx_linux): New.
6213 (amd64_linux_update_xstateregset): Likewise.
6215 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
6216 (amd64_ymm_names): New.
6217 (amd64_ymmh_names): Likewise.
6218 (amd64_register_name): Likewise.
6219 (amd64_supply_xstateregset): Likewise.
6220 (amd64_collect_xstateregset): Likewise.
6221 (amd64_supply_xsave): Likewise.
6222 (amd64_collect_xsave): Likewise.
6223 (AMD64_NUM_REGS): Removed.
6224 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
6225 %xmmN if AVX is available.
6226 (amd64_pseudo_register_name): Support pseudo YMM registers.
6227 (amd64_regset_from_core_section): Support .reg-xstate section.
6228 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
6229 and ymm0h_regnum. Call set_gdbarch_register_name.
6230 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
6232 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
6233 AMD64_YMM15H_REGNUM.
6234 (AMD64_NUM_REGS): New.
6235 (amd64_supply_xsave): Likewise.
6236 (amd64_collect_xsave): Likewise.
6237 (amd64_register_name): Removed.
6238 (amd64_register_type): Likewise.
6240 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6242 * i387-tdep.c: Include "i386-xstate.h".
6243 (XSAVE_XSTATE_BV_ADDR): New.
6244 (xsave_avxh_offset): Likewise.
6245 (XSAVE_AVXH_ADDR): Likewise.
6246 (i387_supply_xsave): Likewise.
6247 (i387_collect_xsave): Likewise.
6249 * i387-tdep.h (I387_NUM_YMM_REGS): New.
6250 (I387_YMM0H_REGNUM): Likewise.
6251 (I387_YMMENDH_REGNUM): Likewise.
6252 (i387_supply_xsave): Likewise.
6253 (i387_collect_xsave): Likewise.
6255 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6257 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
6258 <sys/uio.h> and "i386-xstate.h".
6259 (PTRACE_GETREGSET): New.
6260 (PTRACE_SETREGSET): Likewise.
6261 (fetch_xstateregs): Likewise.
6262 (store_xstateregs): Likewise.
6263 (GETXSTATEREGS_SUPPLIES): Likewise.
6264 (regmap): Include 8 upper YMM registers.
6265 (i386_linux_fetch_inferior_registers): Support XSAVE extended
6267 (i386_linux_store_inferior_registers): Likewise.
6268 (i386_linux_read_description): Check and enable AVX target
6271 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
6272 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
6273 (i386_linux_regset_sections): Add ".reg-xstate".
6274 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
6275 (i386_linux_core_read_xcr0): New.
6276 (i386_linux_core_read_description): Check and enable AVX target
6278 (i386_linux_init_abi): Set xsave_xcr0_offset.
6279 (_initialize_i386_linux_tdep): Call
6280 initialize_tdesc_i386_avx_linux.
6282 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
6283 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
6284 (i386_linux_core_read_xcr0): New.
6285 (tdesc_i386_avx_linux): Likewise.
6286 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
6288 * i386-tdep.c: Include "i386-xstate.h" and
6289 "features/i386/i386-avx.c".
6290 (i386_ymm_names): New.
6291 (i386_ymmh_names): Likewise.
6292 (i386_ymmh_regnum_p): Likewise.
6293 (i386_ymm_regnum_p): Likewise.
6294 (i386_xmm_regnum_p): Likewise.
6295 (i386_register_name): Likewise.
6296 (i386_ymm_type): Likewise.
6297 (i386_supply_xstateregset): Likewise.
6298 (i386_collect_xstateregset): Likewise.
6299 (i386_sse_regnum_p): Removed.
6300 (i386_pseudo_register_name): Support pseudo YMM registers.
6301 (i386_pseudo_register_type): Likewise.
6302 (i386_pseudo_register_read): Likewise.
6303 (i386_pseudo_register_write): Likewise.
6304 (i386_dbx_reg_to_regnum): Return %ymmN register number for
6305 %xmmN if AVX is available.
6306 (i386_regset_from_core_section): Support .reg-xstate section.
6307 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
6308 (i386_process_record): Replace i386_sse_regnum_p with
6310 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
6311 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
6312 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
6313 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
6314 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
6315 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
6317 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
6319 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
6320 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
6322 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
6323 (I386_AVX_NUM_REGS): New.
6324 (i386_xmm_regnum_p): Likewise.
6325 (i386_ymm_regnum_p): Likewise.
6326 (i386_ymmh_regnum_p): Likewise.
6328 * common/i386-xstate.h: New.
6330 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6332 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
6334 * features/Makefile (WHICH): Add i386/i386-avx,
6335 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
6336 (i386/i386-avx-expedite): New.
6337 (i386/i386-avx-linux-expedite): Likewise.
6338 (i386/x86-64-avx-expedite):Likewise.
6339 (i386/x86-64-avx-linux-expedite): Likewise.
6340 ($(outdir)/i386/i386-avx.dat): New dependency.
6341 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
6342 ($(outdir)/i386/x86-avx-64.dat): Likewise.
6343 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
6345 * features/i386/32bit-avx.xml: New.
6346 * features/i386/64bit-avx.xml: Likewise.
6347 * features/i386/i386-avx-linux.c: Likewise.
6348 * features/i386/i386-avx-linux.xml: Likewise.
6349 * features/i386/i386-avx.c: Likewise.
6350 * features/i386/i386-avx.xml: Likewise.
6351 * features/i386/x86-64-avx-linux.c: Likewise.
6352 * features/i386/x86-64-avx-linux.xml: Likewise.
6353 * features/i386/x86-64-avx.c: Likewise.
6354 * features/i386/x86-64-avx.xml: Likewise.
6355 * regformats/i386/i386-avx-linux.dat: Likewise.
6356 * regformats/i386/i386-avx.dat: Likewise.
6357 * regformats/i386/x86-64-avx-linux.dat: Likewise.
6358 * regformats/i386/x86-64-avx.dat: Likewise.
6360 2010-04-07 Doug Evans <dje@google.com>
6362 * top.c (source_file_name): Make const char *.
6363 * top.h (source_file_name): Update.
6364 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
6366 (script_from_file): Change `file' arg to const char *.
6367 * cli/cli-script.h (script_from_file): Update.
6369 2010-04-06 Doug Evans <dje@google.com>
6371 * cli/cli-cmds.c (source_command): Run cleanups.
6373 2010-04-06 Stan Shebs <stan@codesourcery.com>
6375 * defs.h (char_ptr): Move typedef here from...
6376 * ada-lang.c (char_ptr): Remove.
6377 * charset.c (char_ptr): Remove.
6378 * tracepoint.h (struct uploaded_string): Remove.
6379 (struct uploaded_tp): Use vectors for string arrays.
6380 * tracepoint.c (trace_save): Use vectors of actions.
6381 (parse_tracepoint_definition): Ditto.
6382 (get_uploaded_tp): Clear vectors.
6383 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
6384 (next_cmd): Change to an int.
6385 (read_next_cmd): Use vector of command strings.
6387 2010-04-06 Doug Evans <dje@google.com>
6389 * top.h (source_script, cd_command): Delete.
6390 * main.c: #include "cli/cli-cmds.h"
6392 2010-04-06 Kevin Buettner <kevinb@redhat.com>
6394 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
6395 type in bytes, not bits.
6397 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
6399 * stabsread.c (define_symbol): Add support for char
6400 and string constants.
6402 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
6404 Remove remaining "%ll" uses.
6405 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
6407 * rs6000-nat.c (rs6000_ptrace64): Idem.
6408 * solib-pa64.c (pa64_current_sos): Idem.
6409 * solib-spu.c (spu_current_sos): Idem.
6410 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
6412 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
6414 * sh64-tdep.c (sh64_show_media_regs): Idem.
6416 2010-04-05 Stan Shebs <stan@codesourcery.com>
6418 * tracepoint.c: Include gdbcore.h.
6419 (tfile_xfer_partial): Return partial results, also try reading
6421 (tfile_has_all_memory): New function.
6422 (init_tfile_ops): Use it.
6424 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
6427 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
6428 the changes in data-directory.
6429 (init_sysinfo): Reload the syscall XML file if the data-directory
6432 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6435 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
6437 2010-04-04 Stan Shebs <stan@codesourcery.com>
6438 Nathan Sidwell <nathan@codesourcery.com>
6440 * breakpoint.c (breakpoint_1): Add filter argument, return number of
6441 breakpoints printed.
6442 (is_hardware_watchpoint): Make argument const.
6443 (is_watchpoint): Ditto.
6444 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
6446 (breakpoints_info): Pass NULL to breakpoint_1.
6447 (maintenance_info_breakpoints): Ditto.
6448 (watchpoints_info): New function.
6449 (tracepoints_info): Use breakpoint_1 filter.
6450 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
6451 (_initialize_breakpoint): Make "info watchpoints" its own command.
6452 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
6453 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
6455 2010-04-04 Stan Shebs <stan@codesourcery.com>
6457 * tracepoint.c (tfile_fetch_registers): Add fallback case.
6459 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6461 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
6462 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
6464 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6466 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
6467 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
6469 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6471 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
6474 2010-04-02 Hui Zhu <teawater@gmail.com>
6476 * i386-tdep.c (OT_DQUAD): New enum.
6477 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
6478 SSE3, SSSE3 and SSE4.
6480 2010-04-02 Hui Zhu <teawater@gmail.com>
6482 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
6485 2010-04-02 Pedro Alves <pedro@codesourcery.com>
6487 * tracepoint.c (trace_dump_actions): New, factored out from
6488 trace_dump_command, and adjusted to recurse into while-stepping's
6490 (trace_dump_command): Use it.
6492 2010-04-02 Pedro Alves <pedro@codesourcery.com>
6494 * breakpoint.h (struct counted_command_line): Moved definition to
6495 breakpoint.c, and forward declare.
6496 (breakpoint_commands): Declare.
6497 * breakpoint.c (struct counted_command_line): Moved here.
6498 (breakpoint_commands): New.
6499 * tracepoint.c (encode_actions): Use breakpoint_commands.
6500 * remote.c (remote_download_tracepoint): Ditto.
6502 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
6504 * remote.c (remote_parse_stop_reply): Use hex_string instead
6505 of phex_nz for error.
6507 2010-04-01 Stan Shebs <stan@codesourcery.com>
6508 Nathan Sidwell <nathan@codesourcery.com>
6510 * tracepoint.h (enum actionline_type): Remove.
6511 (validate_actionline): Change return to void.
6512 * tracepoint.c (report_agent_reqs_errors): New function.
6513 (validate_actionline): Call it, change return to void, report errors
6515 (collect_symbol): Call report_agent_reqs_errors.
6516 (encode_actions_1): Ditto.
6517 (encode_actions): Don't expect a result from validate_actionline.
6519 2010-04-01 Stan Shebs <stan@codesourcery.com>
6521 * tracepoint.c (trace_start_command): Confirm if trace is running.
6522 (trace_stop_command): Error if trace not running.
6524 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
6526 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
6527 (AMD64_NUM_LOWER_BYTE_REGS): New.
6528 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
6529 (amd64_pseudo_register_write): Likewise.
6530 (amd64_init_abi): Set num_byte_regs to 20.
6532 2010-04-01 Pedro Alves <pedro@codesourcery.com>
6534 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
6535 (prev_breakpoint_count): New.
6536 (set_breakpoint_count): Adjust.
6537 (rbreak_start_breakpoint_count): New.
6538 (start_rbreak_breakpoints): Adjust.
6539 (end_rbreak_breakpoints): Adjust.
6540 (struct commands_info) <arg>: New field.
6541 (do_map_commands_command): Tweak output to include breakpoint spec
6543 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
6544 ARG was empty on entry. Set INFO's arg.
6545 (create_breakpoint): Adjust.
6547 * NEWS: Clarify `commands' changes.
6549 2010-04-01 Pedro Alves <pedro@codesourcery.com>
6551 * tracepoint.c: Include stack.h.
6552 (struct add_local_symbols_data): New.
6553 (do_collect_symbol): New.
6554 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
6555 iterate_over_block_local_vars.
6556 * stack.c (print_block_frame_locals): Rewrite as ...
6557 (iterate_over_block_locals): ... this. Take a callback function
6558 pointer and generic data pointer, and call that instead of
6559 print_variable_and_value.
6560 (struct print_variable_and_value_data): New.
6561 (do_print_variable_and_value): New.
6562 (iterate_over_block_local_vars): New, abstracted out from
6563 print_frame_local_vars.
6564 (print_frame_local_vars): Rewrite using
6565 iterate_over_block_local_vars.
6566 (iterate_over_block_arg_vars): New, abstracted out from
6567 print_frame_arg_vars.
6568 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
6569 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
6570 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
6572 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
6574 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
6575 instructions. Use the PC+4 if the base of the TBB or TBH is the
6578 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6580 Fix crash on reading wrong function declaration DWARF.
6581 * dwarf2read.c (read_subroutine_type): New variable void_type.
6582 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
6583 more close to their use.
6585 2010-03-31 Stan Shebs <stan@codesourcery.com>
6587 * breakpoint.c (tracepoint_save_command): Include variables,
6588 conditionals, tracepoint types, and default-collect.
6589 * tracepoint.c (save_trace_state_variables): New function.
6590 * tracepoint.h (save_trace_state_variables): Declare it.
6592 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
6594 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
6596 2010-03-30 Keith Seitz <keiths@redhat.com>
6598 * c-typeprint.c (c_type_print_args): Don't print "void"
6599 for java, regardless of whether it is TYPE_PROTOTYPED.
6600 Use the passed-in language instead of current_language.
6601 (c_type_print_varspec_suffix): Use current_language instead
6602 of assuming language_c.
6603 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
6604 any return type specifier from the physname.
6606 2010-03-30 Pedro Alves <pedro@codesourcery.com>
6608 * tui/tui-interp.c (tui_is_toplevel): New.
6610 (tui_allowed_p): New.
6611 * tui/tui.c (tui_enable): Check if the TUI is allowed before
6613 * tui/tui.h (tui_allowed_p): Declare.
6615 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
6617 * serial.h: Include winsock2.h before windows.h.
6619 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
6621 * NEWS: Mention xmlRegisters= in qSupported packet.
6623 * i386-tdep.c: Include "remote.h".
6624 (_initialize_i386_tdep): Call register_remote_support_xml.
6626 * remote.c (remote_support_xml): New.
6627 (register_remote_support_xml): Likewise.
6628 (remote_query_supported_append): Likewise.
6629 (remote_query_supported): Support remote_support_xml.
6631 * remote.h (register_remote_support_xml): New.
6633 2010-03-29 Stan Shebs <stan@codesourcery.com>
6635 * tracepoint.c (trace_find_line_command): Remove dead code.
6637 * tracepoint.h (struct uploaded_string): New struct.
6638 (struct uploaded_tp): New fields for source strings.
6639 * breakpoint.c (this_utp, next_cmd): New globals.
6640 (read_uploaded_action): New function.
6641 (create_tracepoint_from_upload): Fill in more parts
6643 * tracepoint.c (encode_source_string): New function.
6644 (trace_save): Write out source strings, fix error checks.
6645 (parse_tracepoint_definition): Add source string parsing.
6646 * remote.c (PACKET_TracepointSource): New packet type.
6647 (remote_download_command_source): New function.
6648 (remote_download_tracepoint): Download source pieces also.
6649 (_initialize_remote): Add packet config command.
6651 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
6654 * tracepoint.c (start_tracing): Check tracepoints before sending
6655 commands to target, don't start if all tracepoints disabled.
6657 2010-03-28 Pedro Alves <pedro@codesourcery.com>
6659 * cli/cli-script.c (process_next_line): Handle 'stepping'.
6661 2010-03-26 Stan Shebs <stan@codesourcery.com>
6663 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
6665 2010-03-26 Tom Tromey <tromey@redhat.com>
6667 * breakpoint.c (commands_command_1): Duplicate 'arg'.
6669 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6671 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
6672 (skip_prologue_sal): Remove local definition.
6673 (resolve_sal_pc): Remove now unnecessary code.
6674 * linespec.c (minsym_found): Call skip_prologue_sal.
6675 * symtab.c (find_function_start_pc): Remove.
6676 (find_function_start_sal): Extract prologue skipping into ...
6677 (skip_prologue_sal): ... this new function. Handle code both
6678 with and without debug info. Respect SAL's explicit_pc and
6679 explicit_line flags. Inline old find_function_start_pc.
6680 * symtab.h (find_function_start_pc): Remove.
6681 (skip_prologue_sal): Add prototype.
6683 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6685 * dwarf2read.c (read_func_scope): Also scan specification DIEs
6686 for DW_TAG_imported_module children.
6688 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6690 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
6691 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
6692 * completer.c (add_struct_fields): Fix inverted logic.
6694 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6696 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
6698 2010-03-26 Pedro Alves <pedro@codesourcery.com>
6700 * tracepoint.c (current_trace_status): Don't make sure error_desc
6702 (parse_trace_status): Release a previous error_desc string, and
6703 set it to NULL by default. If stop reason is tracepoint_error,
6704 make sure error_desc is not left NULL.
6706 2010-03-26 Pedro Alves <pedro@codesourcery.com>
6708 * tracepoint.c (trace_save): Remove X from tracepoint error
6711 2010-03-26 Pedro Alves <pedro@codesourcery.com>
6713 * tracepoint.c (parse_trace_status): Don't allow plain strings in
6714 the terror description. Don't expect an X prefix.
6716 2010-03-25 Stan Shebs <stan@codesourcery.com>
6718 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
6719 (struct trace_status): New field error_desc.
6720 * tracepoint.c (stop_reason_names): Add terror.
6721 (current_trace_status): Ensure non-NULL error description.
6722 (trace_status_command): Add error report.
6723 (trace_status_mi): Ditto.
6724 (trace_save): Add special case for error description.
6725 (parse_trace_status): Add case for errors.
6727 2010-03-25 Keith Seitz <keiths@redhat.com>
6729 * dwarf2read.c (read_subroutine_type): If the compilation unit
6730 language is Java, mark any formal parameter named "this" as
6731 artificial (GCC/43521).
6732 (dwarf2_name): Add special handling for Java constructors.
6734 2010-03-25 Tom Tromey <tromey@redhat.com>
6736 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
6737 * infrun.c (handle_inferior_event): Change initialization of
6739 (handle_inferior_event): Change assignment to stop_stack_dummy.
6740 (normal_stop): Update use of stop_stack_dummy.
6741 (struct inferior_status) <stop_stack_dummy>: Change type.
6742 * inferior.h (stop_stack_dummy): Update.
6743 * infcmd.c (stop_stack_dummy): Change type.
6744 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
6746 (call_function_by_hand): Call set_std_terminate_breakpoint.
6747 Rewrite std::terminate handling.
6748 * breakpoint.h (enum bptype) <bp_std_terminate,
6749 bp_std_terminate_master>: New.
6750 (enum stop_stack_kind): New.
6751 (struct bpstat_what) <call_dummy>: Change type.
6752 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
6754 * breakpoint.c (create_std_terminate_master_breakpoint): New
6756 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
6757 Call create_std_terminate_master_breakpoint.
6758 (print_it_typical): Handle new breakpoint kinds.
6759 (bpstat_stop_status): Handle bp_std_terminate_master.
6760 (bpstat_what): Correctly set call_dummy field. Handle
6761 bp_std_terminate_master and bp_std_terminate.
6762 (print_one_breakpoint_location): Update.
6763 (allocate_bp_location): Update.
6764 (set_std_terminate_breakpoint): New function.
6765 (delete_std_terminate_breakpoint): Likewise.
6766 (create_thread_event_breakpoint): Update.
6767 (delete_command): Update.
6768 (breakpoint_re_set_one): Update.
6769 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
6771 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6773 * symfile.c (build_section_addr_info_from_bfd): New.
6774 (build_section_addr_info_from_objfile): Base it on
6775 build_section_addr_info_from_bfd.
6776 (addrs_section_compar, addrs_section_sort): New.
6777 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
6778 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
6779 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
6781 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
6783 * elfread.c (find_separate_debug_file_by_buildid):
6784 Remove unused local variable.
6786 2010-03-24 Tom Tromey <tromey@redhat.com>
6788 PR breakpoints/9352:
6789 * NEWS: Mention changes to `commands' and `rbreak'.
6790 * symtab.c (do_end_rbreak_breakpoints): New function.
6791 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
6792 end_rbreak_breakpoints.
6793 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
6794 (set_breakpoint_count): Likewise. Clear last_was_multi.
6795 (multi_start, multi_end, last_was_multi): New globals.
6796 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
6798 (struct commands_info): New
6799 (do_map_commands_command): New function.
6800 (commands_command_1): New function.
6801 (commands_command): Use it.
6802 (commands_from_control_command): Likewise.
6803 (do_delete_breakpoint): New function.
6804 (delete_command): Use it.
6805 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
6806 (do_map_disable_breakpoint): New function.
6807 (disable_command): Use it.
6808 (do_map_enable_breakpoint): New function.
6809 (enable_command): Use it.
6810 (enable_once_breakpoint): Add argument.
6811 (enable_once_command): Update.
6812 (enable_delete_breakpoint): Add argument.
6813 (enable_delete_command): Update.
6814 (break_command_really): Set last_was_multi when needed.
6815 (check_tracepoint_command): Fix formatting.
6816 (validate_commands_for_breakpoint): New function.
6817 (breakpoint_set_commands): Use it.
6818 (tracepoint_save_command): Update.
6819 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
6822 2010-03-24 Tom Tromey <tromey@redhat.com>
6824 * breakpoint.h (struct counted_command_line): New struct.
6825 (struct breakpoint) <commands>: Change type.
6826 (struct bpstats) <commands>: Change type.
6827 <commands_left>: New field.
6828 * breakpoint.c (alloc_counted_command_line): New function.
6829 (incref_counted_command_line): Likewise.
6830 (decref_counted_command_line): Likewise.
6831 (do_cleanup_counted_command_line): Likewise.
6832 (make_cleanup_decref_counted_command_line): Likewise.
6833 (breakpoint_set_commands): Use decref_counted_command_line and
6834 alloc_counted_command_line.
6835 (commands_command): Don't error if breakpoint commands are
6837 (commands_from_control_command): Likewise.
6838 (bpstat_free): Update.
6839 (bpstat_copy): Likewise.
6840 (bpstat_clear_actions): Likewise.
6841 (bpstat_do_actions_1): Likewise.
6842 (bpstat_stop_status): Likewise.
6843 (print_one_breakpoint_location): Likewise.
6844 (delete_breakpoint): Likewise.
6845 (bpstat_alloc): Initialize new field.
6846 (tracepoint_save_command): Update.
6847 * tracepoint.c (encode_actions): Update.
6848 (trace_dump_command): Update.
6850 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
6852 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
6853 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
6854 (read_structure_type): For RealView, set TYPE_STUB on structures with
6855 no byte size and no children.
6856 (read_subroutine_type): Mark functions as prototyped by default.
6857 * symtab.c (producer_is_realview): New function.
6858 * symtab.h (expand_line_sal): Fix declaration formatting.
6859 (producer_is_realview): Declare.
6861 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
6863 * arm-tdep.c (skip_prologue_function): New function.
6864 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
6865 (thumb_analyze_prologue): Document return value. Recognize more
6866 Thumb instructions, skippable calls, and some Thumb-2 instructions.
6868 (arm_skip_prologue): Remove call dummy check. Check the prologue
6869 for non-GNU compilers.
6870 (arm_instruction_changes_pc): New function.
6871 (arm_analyze_prologue): New function, broken out from
6872 arm_scan_prologue. Recognize more ARM instructions and skippable
6873 calls. Update comments. Handle NULL cache. Return the address
6874 of the first unrecognized instruction. Do not skip past other
6875 instructions which change control flow. Add debug output.
6876 (arm_scan_prologue): Use arm_analyze_prologue.
6877 (ARM_PC_32): Delete.
6878 (shifted_reg_val): Simplify ARM_PC_32 check.
6880 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6882 * tracepoint.c (tvariables_info_1): Actually compute
6883 the number of rows in the result.
6885 2010-03-24 Pedro Alves <pedro@codesourcery.com>
6887 * remote.c (crc32): Constify `buf' parameter.
6888 (remote_verify_memory): New, abstracted out from...
6889 (compare_sections_command): ... this. Remove hardcoded target
6891 (init_remote_ops): Install remote_verify_memory.
6892 * target.c (target_verify_memory): New.
6893 * target.h (struct target_ops) <to_verify_memory>: New field.
6894 (target_verify_memory): Declare.
6896 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6898 Implement -trace-save.
6900 * mi-cmds.h (mi_cmds_trace_save): Declare.
6901 * mi-cmds.c (mi_cmds): Register -trace-save.
6902 * mi/mi-main.c (mi_cmd_trace_save): New.
6903 * remote.c (remote_save_trace_data): Take const parameter.
6904 * target.h (struct target_ops::to_save_trace_data): Take
6906 * target.c (update_current_target): Adjust to the above.
6907 * tracepoint.c (trave_save): New, extracted from
6908 (trace_save_command): ...this.
6909 (tfile_trace_find): Remove message that is unnecessary now
6910 that 'tfind' reports found frame.
6911 * tracepoint.h (trace_save): Declare.
6913 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6915 Implement -trace-find.
6917 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
6918 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
6919 * mi/mi-main.c (mi_cmd_trace_find): New.
6920 * target.h (struct target_ops): Document to_trace_find.
6921 * tracepoint.h (tfind_1): Declare.
6922 * tracepoint.c (finish_tfind_command): Rename to...
6924 * remote.c (remote_trace_find): Return -1 if target say
6925 there's no frame. Improve error diagnostics.
6927 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6929 -trace-define-variable and -trace-list-variables.
6931 * tracepoint.c (create_trace_state_variable): Make
6932 private copy of name, as opposed to assuming the
6933 pointer lives forever.
6934 (tvariables_info_1): New.
6935 (tvariables_info): Use the above.
6936 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
6938 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
6939 and -trace-list-variables.
6940 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
6941 (mi_cmd_trace_list_variables): New.
6942 * mi/mi-main.c (mi_cmd_trace_define_variable)
6943 (mi_cmd_trace_list_variables): New.
6945 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6947 Implement -break-passcount.
6949 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
6950 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
6951 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
6953 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6955 -trace-start/-trace-end/-trace-status.
6957 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
6959 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
6960 (mi_cmd_trace_stop): Declare.
6961 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
6962 (mi_cmd_trace_stop): New.
6963 * tracepoint.c (start_tracing): New, extracted from...
6964 (trace_start_command): ...this.
6965 (trace_status_mi): New.
6966 * tracepoint.h (struct trace_status): Document
6967 stopping_tracepoint.
6968 (start_tracing, stop_tracing, trace_status_mi): Declare.
6970 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6972 Implement creating tracepoints with -break-insert.
6974 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
6975 to mean that tracepoint should be created.
6977 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6979 * breakpoint.c (check_no_tracepoint_commands): Use
6980 current spelling of 'teval'.
6982 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6984 Unify actions and commands
6986 * defs.h (read_command_lines, read_command_lines_1): New
6987 parameters validator and closure.
6988 * tracepoint.h (struct action_line): Remove.
6989 * breakpoint.h (struct breakpoint): Remove the 'actions'
6991 * defs.h (enum command_control_type): New value
6992 while_stepping_control.
6993 (struct command_line): Add comments.
6994 * breakpoint.c (breakoint_is_tracepoint): New.
6995 (breakpoint_set_commands): For tracepoints,
6996 verify the commands are permissible.
6997 (check_tracepoint_commands): New.
6998 (commands_command): Require that each new line is validated using
6999 check_tracepoint_command, if we set commands for a tracepoint.
7000 (create_tracepoint_from_upload): Likewise.
7001 (print_one_breakpoint_location): Remove the code to print
7002 actions specifically.
7003 (tracepoint_save_command): Relay to print_command_lines.
7004 * cli/cli-script.c (process_next_line): New parameters validator
7005 and closure. Handle 'while-stepping'. Call validator if not null.
7006 (read_command_lines, read_command_lines1): Likewise.
7007 (recurse_read_control_structure): New parameters validator and
7008 closure. Handle while_stepping_control.
7009 (print_command_lines): Handle while-stepping.
7010 (get_command_line, define_command, document_command): Adjust.
7011 * remote.c (remote_download_tracepoint): Adjust.
7012 * tracepoint.c (make_cleanup_free_actions, read_actions)
7013 (free_actions, do_free_actions_cleanup): Remove.
7014 (trace_actions_command): Use read_command_lines.
7015 (validate_actionline): Use error in one place.
7016 (encode_actions_1): New, extracted from...
7017 (encode_actions): ...this. Also use cleanups for exception
7019 (trace_dump_command): Adjust.
7020 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
7023 2010-03-23 Mike Frysinger <vapier@gentoo.org>
7025 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
7027 2010-03-22 Stan Shebs <stan@codesourcery.com>
7029 * value.c (value_static_field): Be lazy about the field's value.
7031 2010-03-22 Reid Kleckner <reid@kleckner.net>
7034 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
7036 (disable_breakpoints_in_shlibs): Likewise.
7038 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
7040 * dwarf2read.c (partial_die_parent_scope): Work around buggy
7041 GCC 4.1 debug info generation (GCC PR c++/28460).
7042 (determine_prefix): Likewise.
7044 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
7046 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
7048 * tui/tui-layout.c (extract_display_start_addr): Likewise.
7050 2010-03-19 Stan Shebs <stan@codesourcery.com>
7052 * ax-gdb.c (gen_fetch): Handle bool.
7053 (gen_usual_unary): Ditto.
7055 (gen_equal): New function.
7056 (gen_less): New function.
7057 (gen_expr_binop_rest): Call them, also return integer type from
7061 2010-03-19 Tom Tromey <tromey@redhat.com>
7063 * jv-lang.c (jv_dynamics_objfile_data_key)
7064 (jv_type_objfile_data_key): New globals.
7065 (class_symtab): Move earlier.
7066 (jv_per_objfile_free): New function.
7067 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
7069 Remove ancient #if 1.
7070 (add_class_symbol): Remove redundant declaration.
7071 (java_lookup_class): Use alloc_type, not alloc_type_arch.
7072 (java_link_class_type): Mark as static. Update.
7073 (jv_clear_object_type): New function.
7074 (set_java_object_type): Likewise.
7075 (get_java_object_type): Use set_java_object_type.
7076 (is_object_type): Likewise.
7077 (_initialize_java_language): Register new objfile keys.
7078 (get_java_class_symtab): Add 'gdbarch' parameter.
7079 (add_class_symtab_symbol): Update.
7080 (type_from_class): Update.
7082 2010-03-19 Stan Shebs <stan@codesourcery.com>
7084 * ax-general.c (ax_const_l): Fix a sizing bug.
7086 2010-03-18 Joel Brobecker <brobecker@adacore.com>
7090 2010-03-18 Stan Shebs <stan@codesourcery.com>
7091 Pedro Alves <pedro@codesourcery.com>
7093 * target.h (struct target_ops): New method
7094 to_set_circular_trace_buffer.
7095 (target_set_circular_trace_buffer): New macro.
7096 * target.c (update_current_target): Add
7097 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
7099 * remote.c (remote_set_circular_trace_buffer): New function.
7100 (init_remote_ops): Add it to vector.
7101 * tracepoint.h (struct trace_status): New field traceframes_created,
7102 change buffer_size and buffer_free to int.
7103 * tracepoint.c (circular_trace_buffer): New global.
7104 (start_tracing): Send values of disconnected tracing and circular
7105 trace buffer settings.
7106 (set_circular_trace_buffer): New function.
7107 (parse_trace_state): Handle total space and frames created.
7108 (trace_status_command): Display total space and total frames
7110 (trace_save): Write out new status values.
7111 (parse_trace_status): Set traceframe_count, traceframes_created,
7112 buffer_free and buffer_size to -1 by default.
7113 (_initialize_tracepoint): New setshow for circular-trace-buffer.
7114 * NEWS: Mention the circular trace buffer option.
7116 2010-03-18 Tom Tromey <tromey@redhat.com>
7118 * infcmd.c (finish_command_continuation): Wrap print_return_value
7121 2010-03-18 Joel Brobecker <brobecker@adacore.com>
7123 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
7124 DIE has a name before creating the associated partial symbol.
7125 (read_func_scope): Emit a complaint if the subprogram does not
7126 have a name or when we can't extract the subprogram PC bounds.
7128 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
7130 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
7131 instead of selected frame architecture.
7133 2010-03-18 Pedro Alves <pedro@codesourcery.com>
7135 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
7136 a valid selected thread, and that it is not running.
7137 (advance_command): Ditto.
7138 (finish_command): Ditto.
7140 2010-03-17 Stan Shebs <stan@codesourcery.com>
7142 * ax-gdb.c (require_rvalue): Disallow non-scalars.
7144 * infcall.c: Include tracepoint.h.
7145 (call_function_by_hand): Disallow calls in tfind mode.
7146 * infcmd.c: Include tracepoint.h.
7147 (ensure_not_tfind_mode): New function.
7148 (continue_1): Call it.
7150 (jump_command): Ditto.
7151 (signal_command): Ditto.
7152 (advance_command): Ditto.
7153 (until_command): Ditto.
7154 (finish_command): Ditto.
7155 * tracepoint.h (disconnect_or_stop_tracing): Declare.
7157 * ax-gdb.h (struct axs_value): New field optimized_out.
7158 (gen_trace_for_var): Add gdbarch argument.
7159 * ax-gdb.c (gen_trace_static_fields): New function.
7160 (gen_traced_pop): Call it, add gdbarch argument.
7161 (gen_trace_for_expr): Update call to it.
7162 (gen_trace_for_var): Ditto, and report optimized-out variables.
7163 (gen_struct_ref_recursive): Check for optimized-out value.
7164 (gen_struct_elt_for_reference): Ditto.
7165 (gen_static_field): Pass gdbarch instead of expression, assume
7166 optimization if field not found.
7167 (gen_var_ref): Set the optimized_out flag.
7168 (gen_expr): Error on optimized-out variable.
7169 * tracepoint.c (collect_symbol): Handle struct-valued vars as
7170 expressions, skip optimized-out variables with computed locations.
7171 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
7172 erroring out if location expression missing.
7173 (loclist_tracepoint_var_ref): Don't error out here.
7175 2010-03-17 Tom Tromey <tromey@redhat.com>
7177 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
7178 DWARF data is available.
7180 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
7182 * symfile.c (generic_load): Reset breakpoints after loading.
7184 2010-03-17 Tom Tromey <tromey@redhat.com>
7186 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
7188 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7190 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
7191 create_breakpoint call, adjust the parameters.
7193 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7194 Chandru <chandru@in.ibm.com>
7196 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
7197 * valarith.c (value_subscripted_rvalue): Suppress error if
7198 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
7200 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
7202 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
7204 2010-03-16 Joel Brobecker <brobecker@adacore.com>
7206 * ada-tasks.c (task_command_1): Check that the task ptid is valid
7207 before doing the associated thread switch.
7209 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
7211 * MAINTAINERS: Update my email address.
7213 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
7215 Simplify MI breakpoint setting.
7217 * breakpoint.c (break_command_really): Make nonstatic and
7219 (create_breakpoint): ...this. Rename prior function by this name
7221 (create_breakpoint_sal): ...this.
7222 (create_breakpoints): Rename to...
7223 (create_breakpoints_sal): ...this.
7224 (set_breakpoint): Remove.
7225 * breakpoint.h: Adjust to above changes.
7226 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
7228 2010-03-15 Stan Shebs <stan@codesourcery.com>
7230 * ax-gdb.c: Include cp-support.h.
7231 (find_field): Remove.
7232 (gen_primitive_field): New function.
7233 (gen_struct_ref_recursive): New function.
7234 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
7236 (gen_static_field): New function.
7237 (gen_struct_elt_for_reference): New.
7238 (gen_namespace_elt): New.
7239 (gen_maybe_namespace_elt): New.
7240 (gen_aggregate_elt_ref): New.
7241 (gen_expr): Add OP_SCOPE, display opcode name in error message.
7243 2010-03-15 Tom Tromey <tromey@redhat.com>
7245 * dwarf2read.c (die_needs_namespace): Also return 0 for
7248 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
7251 * cp-support.h: Added char *declaration element to using_direct
7253 (cp_add_using): Added char *declaration argument.
7254 (cp_add_using_directive): Ditto.
7255 (cp_lookup_symbol_imports): made extern.
7256 * cp-namespace.c: Updated with the above changes.
7257 * dwarf2read.c (read_import_statement): Ditto.
7258 (read_namespace): Ditto.
7259 (read_import_statement): Support import declarations.
7260 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
7262 Added support for 'declaration_only' search.
7263 (cp_lookup_symbol_namespace): Attempt to search for the name as
7264 is before consideration of imports.
7265 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
7266 search at every block level search.
7267 Now takes language argument.
7268 (lookup_symbol_aux): Updated.
7270 2010-03-15 Tom Tromey <tromey@redhat.com>
7272 * c-exp.y (name_not_typename): Add 'operator' clause.
7274 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
7276 * configure.ac: Exit if ${gdb_target_obs}" is not set.
7277 * configure: Regenerate.
7279 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7281 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
7282 and ".sdynbss". Update the comment.
7284 2010-03-15 Jie Zhang <jie@codesourcery.com>
7286 * MAINTAINERS: Update my email address.
7288 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
7290 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
7292 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
7294 * charset.c [USE_WIN32API]: Include <windows.h>.
7295 (_initialize_charset): Correct type of w32_host_default_charset.
7297 2010-03-14 Pedro Alves <pedro@codesourcery.com>
7299 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
7301 2010-03-12 Tom Tromey <tromey@redhat.com>
7304 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
7305 in a lexical block does not need a namespace.
7306 (new_symbol) <DW_TAG_variable>: Put extern variables on
7307 list_in_scope in all cases.
7309 2010-03-12 Stan Shebs <stan@codesourcery.com>
7311 * ax-gdb.c (gen_expr): Add shift expressions.
7312 (gen_expr_binop_rest): Ditto.
7314 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
7316 * buildsym.c (finish_block): Reset using_directives pointer
7317 after block initialization.
7319 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
7321 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
7322 * i386-tdep.c (i386_word_names): Likewise.
7324 2010-03-12 Pedro Alves <pedro@codesourcery.com>
7326 * target.c (memory_xfer_partial): Don't use the stack cache if
7327 inspecting trace frames.
7328 * tracepoint.c (finish_tfind_command): Invalidate the target
7331 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7333 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
7334 for the PIC displacement, print also the displacement value.
7335 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
7337 2010-03-10 Kevin Buettner <kevinb@redhat.com>
7339 * remote-mips.c (close_ports, mips_initialize_cleanups)
7340 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
7341 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
7342 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
7343 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
7344 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
7345 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
7346 comments describing each of these functions.
7347 (mips_enter_debug, mips_exit_debug, common_open)
7348 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
7349 blank line after the comment describing the function.
7351 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7353 * solib-svr4.c (svr4_exec_displacement): Return now success, new
7354 parameter displacementp. Update comment.
7355 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
7356 element exists. Return if svr4_exec_displacement was not successful.
7359 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7360 Daniel Jacobowitz <dan@codesourcery.com>
7362 * solib-svr4.c (read_program_header): Support type == -1 to read
7363 all program headers.
7364 (read_program_headers_from_bfd): New function.
7365 (svr4_static_exec_displacement): Remove and move the comment ...
7366 (svr4_exec_displacement): ... here. Remove variable found. New
7367 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
7368 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
7369 targets using read_program_headers_from_bfd. Remove the call of
7370 svr4_static_exec_displacement.
7372 2010-03-10 Tom Tromey <tromey@redhat.com>
7374 * dwarf2read.c (struct pubnames_header): Remove.
7375 (_PUBNAMES_HEADER): Remove.
7376 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
7377 (struct aranges_header): Remove.
7378 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
7379 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
7380 (PUBNAMES_SECTION): Remove.
7381 (ARANGES_SECTION): Remove.
7382 (dwarf2_locate_sections): Don't handle pubnames or aranges.
7383 (dwarf2_build_psymtabs): Remove dead code.
7384 (dwarf2_build_psymtabs_easy): Remove.
7386 2010-03-10 Tom Tromey <tromey@redhat.com>
7388 * elfread.c (elf_symfile_read): Don't call
7389 dwarf2_build_frame_info.
7390 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
7391 (struct dwarf2_per_objfile) <objfile>: New field.
7392 (dwarf2_has_info): Now idempotent. Set objfile field.
7393 (dwarf2_read_section): Check and set readin field. Call
7395 (dwarf2_build_psymtabs): Don't read all sections.
7396 (read_type_comp_unit_head): Read types section.
7397 (create_debug_types_hash_table): Likewise.
7398 (init_cu_die_reader): Add asserts.
7399 (process_type_comp_unit): Add assert.
7400 (dwarf2_build_psymtabs_hard): Read info section.
7401 (load_partial_comp_unit): Add assert.
7402 (create_all_comp_units): Read info section.
7403 (load_full_comp_unit): Likewise.
7404 (dwarf2_ranges_read): Read ranges section.
7405 (dwarf2_record_block_ranges): Add assert.
7406 (dwarf2_read_abbrevs): Read abbrev section.
7407 (read_indirect_string): Read str section.
7408 (dwarf_decode_line_header): Read line section.
7409 (read_signatured_type_at_offset): Read types section.
7410 (dwarf_decode_macros): Read macinfo section.
7411 (dwarf2_symbol_mark_computed): Read loc section.
7412 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
7413 dwarf2_build_frame_info.
7414 (dwarf2_build_frame_info): Unconditionally set
7415 dwarf2_frame_objfile_data on the objfile.
7416 * configure.ac: Check for posix_madvise.
7417 * config.in, configure: Rebuild.
7419 2010-03-10 Tom Tromey <tromey@redhat.com>
7421 * xcoffread.c (xcoff_start_psymtab): Update.
7422 (xcoff_end_psymtab): Update.
7423 * psymtab.c (allocate_psymtab): Remove dead code.
7424 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
7426 * mdebugread.c (parse_partial_symbols): Update.
7427 (new_psymtab): Likewise.
7428 * dwarf2read.c (process_psymtab_comp_unit): Update.
7429 (psymtab_to_symtab_1): Update.
7430 * dbxread.c (start_psymtab): Update.
7431 (end_psymtab): Likewise.
7433 2010-03-10 Tom Tromey <tromey@redhat.com>
7435 * xcoffread.c: Include psymtab.h.
7436 (xcoff_sym_fns): Update.
7437 * symtab.h (struct partial_symbol): Remove.
7438 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
7439 (struct partial_symtab): Remove.
7440 (PSYMTAB_TO_SYMTAB): Remove.
7441 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
7442 (find_pc_sect_psymtab): Remove.
7443 (find_pc_sect_symtab_via_partial): Declare.
7444 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
7445 (find_main_psymtab): Remove.
7446 (find_main_filename): Declare.
7447 (fixup_psymbol_section): Remove.
7448 (fixup_section): Declare.
7449 * symtab.c: Include psymtab.h.
7450 (lookup_symtab): Use lookup_symtab method.
7451 (lookup_partial_symtab): Remove.
7452 (find_pc_sect_psymtab_closer): Remove.
7453 (find_pc_sect_psymtab): Remove.
7454 (find_pc_sect_symtab_via_partial): New function.
7455 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
7456 (fixup_section): No longer static.
7457 (fixup_psymbol_section): Remove.
7458 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
7459 (lookup_global_symbol_from_objfile): Likewise.
7460 (lookup_symbol_aux_psymtabs): Remove.
7461 (lookup_symbol_aux_quick): New function.
7462 (lookup_symbol_global): Use lookup_symbol_aux_quick.
7463 (lookup_partial_symbol): Remove.
7464 (basic_lookup_transparent_type_quick): New function.
7465 (basic_lookup_transparent_type): Use it.
7466 (find_main_psymtab): Remove.
7467 (find_main_filename): New function.
7468 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
7469 (find_line_symtab): Use expand_symtabs_with_filename method.
7470 (output_partial_symbol_filename): New function.
7471 (sources_info): Use map_partial_symbol_filenames.
7472 (struct search_symbols_data): New type.
7473 (search_symbols_file_matches): New function.
7474 (search_symbols_name_matches): Likewise.
7475 (search_symbols): Use expand_symtabs_matching method.
7476 (struct add_name_data): Rename from add_macro_name_data.
7477 (add_macro_name): Update.
7478 (add_partial_symbol_name): New function.
7479 (default_make_symbol_completion_list): Use
7480 map_partial_symbol_names.
7481 (struct add_partial_symbol_name): New type.
7482 (maybe_add_partial_symtab_filename): New function.
7483 (make_source_files_completion_list): Use
7484 map_partial_symbol_filenames.
7485 (expand_line_sal): Use expand_symtabs_with_filename method.
7486 * symmisc.c: Include psymtab.h.
7487 (print_objfile_statistics): Use print_stats method.
7488 (dump_objfile): Use dump method.
7489 (dump_psymtab, maintenance_print_psymbols)
7490 (maintenance_info_psymtabs, maintenance_check_symtabs)
7491 (extend_psymbol_list): Remove.
7492 * symfile.h (struct quick_symbol_functions): New struct.
7493 (struct sym_fns) <qf>: New field.
7494 (sort_pst_symbols): Remove.
7495 (increment_reading_symtab): Declare.
7496 * symfile.c: Include psymtab.h.
7497 (compare_psymbols, sort_pst_symbols): Remove.
7498 (psymtab_to_symtab): Remove.
7499 (increment_reading_symtab): New function.
7500 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
7502 (set_initial_language): Use find_main_filename.
7503 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
7504 (free_named_symtabs): Remove unused code.
7505 (start_psymtab_common, add_psymbol_to_bcache)
7506 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
7508 * stack.c: Include psymtab.h, symfile.h.
7509 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
7510 * source.h (psymtab_to_fullname): Don't declare.
7511 * source.c: Include psymtab.h.
7512 (select_source_symtab): Use find_last_source_symtab method.
7513 (forget_cached_source_info): Use forget_cached_source_info
7515 (find_and_open_source): No longer static.
7516 (psymtab_to_fullname): Remove.
7517 * somread.c: Include psymtab.h.
7518 (som_sym_fns): Update.
7519 * psympriv.h: New file.
7520 * psymtab.h: New file.
7521 * psymtab.c: New file.
7522 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
7523 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
7524 * objfiles.c: Include psymtab.h.
7525 (objfile_relocate1): Use relocate method.
7526 (objfile_has_partial_symbols): Use has_symbols method.
7527 * mipsread.c: Include psymtab.h.
7528 (ecoff_sym_fns): Update.
7529 * mi/mi-cmd-file.c: Include psymtab.h.
7530 (print_partial_file_name): New function.
7531 (mi_cmd_file_list_exec_source_files): Use
7532 map_partial_symbol_filenames.
7533 * mdebugread.c: Include psympriv.h.
7534 * machoread.c: Include psympriv.h.
7535 (macho_sym_fns): Update.
7536 * m2-exp.y (yylex): Use lookup_symtab.
7537 * elfread.c: Include psympriv.h.
7538 (elf_sym_fns): Update.
7539 * dwarf2read.c: Include psympriv.h.
7540 * dbxread.c: Include psympriv.h.
7541 (aout_sym_fns): Update.
7542 * cp-support.c: Include psymtab.h.
7543 (read_in_psymtabs): Remove.
7544 (make_symbol_overload_list_qualified): Use
7545 expand_symtabs_for_function method.
7546 * coffread.c: Include psympriv.h.
7547 (coff_sym_fns): Update.
7548 * blockframe.c: Include psymtab.h.
7549 (find_pc_partial_function): Use find_pc_sect_symtab method.
7550 * ada-lang.h (ada_update_initial_language): Update.
7551 * ada-lang.c: Include psymtab.h.
7552 (ada_update_initial_language): Remove 'main_pst' argument.
7553 (ada_lookup_partial_symbol): Remove.
7554 (struct ada_psym_data): New type.
7555 (ada_add_psyms): New function.
7556 (ada_add_non_local_symbols): Use map_ada_symtabs method.
7557 (struct add_partial_datum): New type.
7558 (ada_add_partial_symbol_completions): New function.
7559 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
7560 (ada_exception_support_info_sniffer): Update.
7561 * Makefile.in (SFILES): Add psymtab.c.
7562 (COMMON_OBS): Add psymtab.o.
7563 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
7565 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
7567 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
7569 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
7572 * cp-namespace.c (cp_add_using): Deleted.
7573 (cp_add_using_directive): Use obstack allocations.
7574 Merged the function cp_add_using into this one.
7575 Added 'struct obstack *' argument.
7576 (cp_scan_for_anonymous_namespaces): Updated.
7577 * cp-support.h: Updated.
7578 * dwarf2read.c (read_import_statement): Updated.
7579 (read_namespace): Updated.
7581 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
7583 * windows-nat.c (cygwin_conv_path): Remove old macro.
7585 2010-03-10 Pedro Alves <pedro@codesourcery.com>
7587 * breakpoint.c (condition_command): Handle watchpoint conditions.
7588 (is_hardware_watchpoint): Add comment.
7589 (is_watchpoint): New.
7590 (update_watchpoint): Don't reparse the watchpoint's condition
7593 (watchpoint_check): Use it.
7594 (bpstat_check_watchpoint): Handle it.
7595 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
7596 conditions in a frame where it makes sense.
7597 (watch_command_1): Store the innermost block of the condition
7599 (delete_breakpoint): Delete the watchpoint condition expression.
7600 * breakpoint.h (struct bp_location) <cond>: Update comment.
7601 (struct breakpoint): New field `cond_exp_valid_block'.
7603 2010-03-09 Joel Brobecker <brobecker@adacore.com>
7605 Adjust handling of Ada DIEs after dwarf2_physname patch.
7606 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
7608 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
7609 Pierre Muller <muller@ics.u-strasbg.fr>
7611 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
7612 from/to posix/win32.
7613 (windows_make_so): Use non-Cygwin 1.7 specific function.
7614 (windows_create_inferior): Make sure that cygallargs points to
7615 original args in non Cygwin 1.7. case.
7617 2010-03-09 Michael Snyder <msnyder@vmware.com>
7619 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
7620 after target_read_memory to get host byte order.
7621 (i386_process_record): Ditto.
7623 2010-03-09 Keith Seitz <keiths@redhat.com>
7625 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
7626 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
7627 print out const or volatile qualifiers, too.
7628 (c_type_print_args): Add parameters show_artificial and language.
7629 Skip artificial parameters when requested.
7630 Use the appropriate language printer.
7631 (c_type_print_varspec): Tell c_type_print_args to skip artificial
7632 parameters and pass language_c.
7633 * dwarf2read.c (die_list): New file global.
7634 (struct partial_die_info): Update comments for name field.
7635 (pdi_needs_namespace): Renamed to ...
7636 (die_needs_namespace): ... this. Rewrite.
7637 (dwarf2_linkage_name): Remove.
7638 (add_partial_symbol): Do not predicate the call to
7639 partial_die_full_name based on pdi_needs_namespace.
7640 Remove call to cp_check_possible_namespace_symbols and associated
7642 (guess_structure_name): Do not inspect child subprogram DIEs.
7643 (dwarf2_fullname): Update comments.
7644 Use die_needs_namespace to assist in computing the name.
7645 (read_func_scope): Use dwarf2_name to get the DIE's name.
7646 Use dwarf2_physname to get the "linkage name" of the DIE.
7647 (dwarf2_add_member_field): Use dwarf2_physname instead of
7648 dwarf2_linkage_name.
7649 (read_structure_type): For structs and classes, set TYPE_NAME, too.
7650 (determine_class): Remove.
7651 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
7653 (new_symbol): Unconditionally call dwarf2_name.
7654 Compute the "linkage name" using dwarf2_physname.
7655 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
7656 When determining to scan for anonymous C++ namespaces, ignore
7658 (dwarf2_physname): New function.
7659 (dwarf2_full_name): Move content to new function and call
7661 (dwarf2_compute_name): "New" function.
7662 (_initialize_dwarf2_read): Initialize die_list.
7663 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
7665 (gnu_v3_print_method_ptr): Use the physname for virtual methods
7666 without a demangled name.
7667 Print out type information for non-virtual methods.
7668 * linespec.c (decode_line_1): Force ANY string using "::" (or
7669 "." for java) to use decode_compound, and clean up any stray quoting.
7670 If we found a file symtab, re-evaluate whether the remainder is_quoted.
7671 (decode_compound): Stop consuming at an open parenthesis.
7672 Keep template parameters.
7673 Keep any overload information.
7674 Keep keywords like "const".
7675 Remove paren_pointer.
7676 Move is_quoted check from set_flags to here.
7677 Remove #if 0 code from 2000. Ten years is long enough.
7678 (find_method): Before comparing symbol names, canonicalize the string
7680 If a specific overload is requested, find it. Otherwise throw an error.
7681 (find_method_overload_end): New function.
7682 (set_flags): Remove.
7683 (decode_compound): Assume that parentheses are matched.
7685 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
7687 * linespec.c (decode_line_1): Keep important keywords like
7688 "const" and "volatile".
7689 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
7690 * typeprint.h (c_type_print_args): Add declaration.
7691 * ui-file.c (do_ui_file_obsavestring): New function.
7692 (ui_file_obsavestring): New function.
7693 * ui-file.h (ui_file_obsavestring): Add declaration.
7694 * valops.c (find_overload_match): Resolve the object to
7696 If the object is a data member, search the object for the member
7697 and return with staticp set.
7698 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
7699 Do not attempt to extract a function name from non-function types.
7700 If the extracted function name and the original name are the same,
7701 we don't have a C++ method.
7703 From Jan Kratochvil <jan.kratochvil@redhat.com>:
7704 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
7706 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
7707 and arguments from symbol lookups.
7708 * ax-gdb.c (gen_expr): Likewise.
7709 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
7710 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
7711 lookup_possible_namespace_symbol): Likewise.
7712 * cp-support.c (read_in_psymtabs): Likewise.
7713 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
7714 * language.h (la_lookup_symbol_nonlocal): Likewise.
7715 * scm-valprint.c (scm_inferior_print): Likewise.
7716 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
7717 * solib-svr.c (elf_lookup_lib): Likewise.
7718 * solib.c (show_auto_solib_add): Likewise.
7719 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
7720 * symmisc.c (maintenance_check_symtabs): Likewise.
7721 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
7722 lookup_symbol_aux_local, lookup_symbol_aux_block,
7723 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
7724 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
7725 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
7726 basic_lookup_transparent_type, find_main_psymtab,
7727 lookup_block_symbol): Likewise.
7728 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
7729 lookup_symbol_global, lookup_symbol_aux_block,
7730 lookup_symbol_partial_symbol, lookup_block_symbol,
7731 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
7733 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
7735 * python/python-internal.h: Include symtab.h.
7737 2010-03-09 Joel Brobecker <brobecker@adacore.com>
7738 Pierre Muller <muller@ics.u-strasbg.fr>
7740 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
7741 * p-valprint.c (pascal_val_print): Remove undeed block and fix
7744 2010-03-08 Tom Tromey <tromey@redhat.com>
7746 * breakpoint.c (breakpoint_1): Add "QUIT".
7748 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
7749 Pedro Alves <pedro@codesourcery.com>
7751 * solib.c (solib_find): Replace extension if
7752 solib_symbols_extension is set in the target gdbarch.
7753 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
7754 solib_symbols_extension to "sym".
7755 * gdbarch.sh (solib_symbols_extension): New variable.
7756 (pstring): New function.
7757 * gdbarch.h, gdbarch.c: Regenerate.
7759 2010-03-08 Tom Tromey <tromey@redhat.com>
7763 * utils.c: Include main.h.
7764 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
7765 (defaulted_query): Use default answer if `batch_flag'.
7766 * main.h (batch_flag): Declare.
7767 * main.c (batch_flag): New global.
7768 (captured_main): Remove 'batch'. Update.
7770 2010-03-08 Kevin Buettner <kevinb@redhat.com>
7772 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
7775 * remote-mips.c (rockhopper_ops): New target_ops struct.
7776 (MON_ROCKHOPPER): New mips_monitor_type.
7777 (read_hex_value): New function.
7778 (mips_request): Send 8-byte values with a 'T' packet. Read the
7779 packet argument as a string and use read_hex_value to parse it.
7780 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
7781 (rockhopper_open): New function.
7782 (mips_wait): Read the PC, FP and SP fields as strings. Use
7783 read_hex_value to parse them and mips_set_register to commit them.
7784 (mips_set_register): New function.
7785 (mips_fetch_registers): Do not cast register value to "unsigned"
7786 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
7787 (mips_store_registers): Use a 'T' packet to set registers when
7788 using MON_ROCKHOPPER.
7789 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
7790 and expect the total to be printed before the entry address.
7791 (_initialize_remote_mips): Initialize and add rockhopper_ops.
7793 2010-03-08 Kevin Buettner <kevinb@redhat.com>
7795 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
7796 Change return value to int. Store value fetched in location
7797 addressed by `val'. Use function's return value as success
7798 or failure indicator. Adjust all callers.
7800 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
7802 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
7804 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7805 Hui Zhu <teawater@gmail.com>
7807 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
7808 tmp_to_stopped_data_address.
7809 (record_open): Reset tmp_to_stopped_by_watchpoint and
7810 tmp_to_stopped_data_address.
7811 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
7812 to_stopped_data_address.
7814 2010-03-08 Hui Zhu <teawater@gmail.com>
7816 * i386-tdep.c (i386_process_record): Initialize regnum.
7818 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7820 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
7821 Do not warn on ".gnu.liblist" and ".gnu.conflict".
7823 2010-03-08 Joel Brobecker <brobecker@adacore.com>
7825 Memory error when reading wrong core file.
7826 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
7827 errors while reading the inferior memory, and return zero if
7828 an exception was raised.
7830 2010-03-07 Michael Snyder <msnyder@vmware.com>
7832 * record.c (record_restore): Rename tmpu8 to rectype.
7834 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
7835 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
7837 (i386_record_push): Rename local tmpulongest to addr.
7839 (i386_process_record): Rename local tmpulongest to addr.
7841 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
7844 Rename local variable tmpu8 to opcode8 and regnum.
7846 2010-03-07 Joel Brobecker <brobecker@adacore.com>
7848 * remote.c (remote_get_ada_task_ptid): New function.
7849 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
7851 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
7853 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
7854 block. Define helper macros to reduce ifdefs in code.
7855 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
7856 size. Call unadorned GetModuleFileNameEx rather than
7857 GetModuleFileNameEx*.
7858 (windows_make_so): Use __PMAX to denote maximum buffer size and
7859 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
7861 (get_image_name): Use __PMAX to denote maximum buffer size.
7862 (handle_load_dll): Likewise.
7863 (windows_pid_to_exec_file): Likewise.
7864 (windows_create_inferior): Add many accommodations for older Cygwin and
7866 (bad_GetModuleFileNameExW): Control inclusion of this function based on
7867 __USEWIDE conditional.
7868 (bad_GetModuleFileNameExA): Likewise.
7869 (_initialize_loadable): Just use real function names without the dyn_
7870 part since they are defined earlier.
7872 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
7873 Tom Tromey <tromey@redhat.com>
7875 * utils.c (host_char_to_target): Add 'gdbarch' argument.
7876 (parse_escape): Likewise.
7877 * python/py-utils.c (unicode_to_target_string): Update.
7878 (unicode_to_target_python_string): Update.
7879 (target_string_to_unicode): Update.
7880 * printcmd.c (printf_command): Update.
7881 * p-exp.y (yylex): Update.
7882 * objc-exp.y (yylex): Update.
7883 * mi/mi-parse.c: Include charset.h.
7884 (mi_parse_escape): New function.
7885 (mi_parse_argv): Use it.
7886 * jv-exp.y (yylex): Update.
7887 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
7889 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
7890 * gdbarch.sh (auto_charset, auto_wide_charset): New.
7891 * gdbarch.c: Rebuild.
7892 * gdbarch.h: Rebuild.
7893 * defs.h (parse_escape): Update.
7894 * cli/cli-setshow.c: Include arch-utils.h.
7895 (do_setshow_command): Update.
7896 * cli/cli-cmds.c (echo_command): Update.
7897 * charset.h (target_charset, target_wide_charset): Update.
7898 * charset.c: Include arch-utils.h.
7899 (target_charset_name): Default to "auto".
7900 (target_wide_charset_name): Likewise.
7901 (show_target_charset_name): Handle "auto".
7902 (show_target_wide_charset_name): Likewise.
7903 (be_le_arch): New global.
7904 (set_be_le_names): Add 'gdbarch' argument.
7905 (validate): Likewise. Don't call set_be_le_names.
7906 (set_charset_sfunc, set_host_charset_sfunc)
7907 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
7909 (target_charset): Add 'gdbarch' argument.
7910 (target_wide_charset): Likewise. Remove 'byte_order' argument.
7911 (auto_target_charset_name): New global.
7912 (default_auto_charset, default_auto_wide_charset): New functions.
7913 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
7914 for target charsets. Copy result of nl_langinfo. Use GetACP if
7916 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
7917 remove 'byte_order' argument. Update.
7918 (classify_type): Likewise.
7919 (c_emit_char): Update.
7920 (c_printchar): Update.
7921 (c_printstr): Update.
7922 (c_get_string): Update.
7923 (evaluate_subexp_c): Update.
7924 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
7926 * python/python.c (gdbpy_target_charset): New function.
7927 (gdbpy_target_wide_charset): Likewise.
7928 (GdbMethods): Update.
7931 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
7933 * symfile.c (build_section_addr_info_from_objfile): Do not mask
7934 off high address bits.
7936 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
7938 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
7939 address as UnsignedLongLong, not LongLong.
7941 2010-03-05 Kevin Buettner <kevinb@redhat.com>
7942 Pedro Alves <pedro@codesourcery.com>
7944 * remote-mips.c (gdbthread.h): Include.
7945 (remote_mips_ptid): Declare.
7946 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
7947 (common_open): Set inferior_ptid, add it as an inferior, and
7948 as a thread too. Delete FIXME comment regarding start_remote().
7949 (mips_close): Invoke generic_mourn_inferior().
7950 (mips_kill): Make sure that target_mourn_inferior is invoked.
7951 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
7952 it's now invoked from mips_close().
7953 (mips_load): Don't null out inferior_ptid. Don't call
7954 clear_symtab_users().
7955 (mips_thread_alive, mips_pid_to_str): New functions.
7956 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
7957 to_thread_alive and to_pid_to_str operations.
7959 2010-03-04 Tom Tromey <tromey@redhat.com>
7961 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
7962 in DWARF 3 and later.
7963 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
7965 2010-03-04 Keith Seitz <keiths@redhat.com>
7967 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
7968 If the filename portion of the linespec was quoted, recheck the
7969 remainder for additional quoting.
7970 (locate_first_half): Skip over completer chars, too.
7972 2010-03-04 Tom Tromey <tromey@redhat.com>
7974 * printcmd.c (printf_command): Pass dummy argument to
7977 2010-03-04 Doug Evans <dje@google.com>
7979 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
7982 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
7984 2010-03-04 Pedro Alves <pedro@codesourcery.com>
7986 * breakpoint.c (update_watchpoint): Create a sentinel location if
7987 the software watchpoint isn't watching any memory.
7988 (breakpoint_address_bits): Skip dummy software watchpoint locations.
7990 2010-03-04 Pedro Alves <pedro@codesourcery.com>
7992 * utils.c (fputs_maybe_filtered): Check if there's already a top
7993 level interpreter before dereferencing it. If there isn't one,
7994 don't paginate either.
7996 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7998 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
7999 the state right when single stepping.
8000 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
8001 Get the next PC along with the instruction state.
8002 (thumb_get_next_pc): Remove.
8003 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
8005 2010-03-04 Hui Zhu <teawater@gmail.com>
8007 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
8009 2010-03-03 Pedro Alves <pedro@codesourcery.com>
8011 * utils.c (fputs_maybe_filtered): Always disable pagination if the
8012 top level interpreter is MI.
8014 2010-03-03 Stan Shebs <stan@codesourcery.com>
8016 * remote.c (remote_download_tracepoint): Iterate over locations.
8017 * tracepoint.c (validate_actionline): Ditto.
8018 (encode_actions): Add location argument.
8019 (trace_dump_command): Check all locations to see if stepping
8022 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
8023 Eli Zaretskii <eliz@gnu.org>
8025 * NEWS: Add X86 general purpose registers section.
8027 2010-03-03 Tom Tromey <tromey@redhat.com>
8030 * varobj.c (install_new_value): Handle case where new print_value
8033 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
8036 * printcmd.c (printf_command): Print end of format string using
8039 2010-03-02 Tom Tromey <tromey@redhat.com>
8041 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
8042 * defs.h (read_command_lines_1): Add missing 'void'.
8043 * cli/cli-script.c (recurse_read_control_structure): Add missing
8045 (read_next_line): Likewise.
8046 (read_command_lines_1): Likewise.
8048 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8050 * spu-tdep.c (spu_analyze_prologue): Track instruction to
8051 store backchain as part of prologue.
8053 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
8055 * progspace.c (update_address_spaces): Update inferior address spaces
8058 2010-03-02 Doug Evans <dje@google.com>
8060 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
8061 lowpc,highpc args to addrmap_set_empty.
8063 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
8065 * amd64-tdep.c (amd64_byte_names): New.
8066 (amd64_word_names): Likewise.
8067 (amd64_dword_names): Likewise.
8068 (amd64_pseudo_register_name): Likewise.
8069 (amd64_pseudo_register_read): Likewise.
8070 (amd64_pseudo_register_write): Likewise.
8071 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
8072 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
8073 set_gdbarch_pseudo_register_write and
8074 set_tdesc_pseudo_register_name. Don't call
8075 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
8077 * i386-tdep.c (i386_num_mmx_regs): Removed.
8078 (i386_num_pseudo_regs): Likewise.
8079 (i386_byte_names): New.
8080 (i386_word_names): Likewise.
8081 (i386_byte_regnum_p): Likewise.
8082 (i386_word_regnum_p): Likewise.
8083 (i386_mmx_regnum_p): Updated.
8084 (i386_pseudo_register_name): Make it global. Handle byte and
8085 word pseudo-registers.
8086 (i386_pseudo_register_read): Likewise.
8087 (i386_pseudo_register_write): Likewise.
8088 (i386_pseudo_register_type): Handle byte, word and dword
8090 (i386_register_reggroup_p): Don't include pseudo
8091 registers, except for MXX, in any register groups. Don't
8092 include pseudo byte, word, dword registers in general_reggroup.
8093 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
8094 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
8095 pseudo-registers after word pseudo-registers. Call
8096 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
8098 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
8099 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
8101 (i386_byte_regnum_p): New.
8102 (i386_word_regnum_p): Likewise.
8103 (i386_dword_regnum_p): Likewise.
8104 (i386_pseudo_register_name): Likewise.
8105 (i386_pseudo_register_read): Likewise.
8106 (i386_pseudo_register_write): Likewise.
8108 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
8110 * target-descriptions.c (tdesc_type): Remove
8111 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8112 (tdesc_predefined_types): Likewise.
8113 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
8114 if flag name is empty.
8115 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
8117 * features/i386/32bit-core.xml: Define i386_eflags.
8118 * features/i386/64bit-core.xml: Likewise.
8120 * features/i386/32bit-sse.xml: Define i386_mxcsr.
8121 * features/i386/64bit-sse.xml: Likewise.
8123 * features/i386/amd64-linux.c: Regenerated.
8124 * features/i386/amd64.c: Likewise.
8125 * features/i386/i386-linux.c: Likewise.
8126 * features/i386/i386.c: Likewise.
8128 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
8130 * gdbtypes.c (append_composite_type_field_raw): New.
8131 (append_composite_type_field_aligned): Use the new function.
8132 * gdbtypes.h (append_composite_type_field_raw): Declare.
8133 * target-descriptions.c (struct tdesc_type_field): Add start and end.
8134 (struct tdesc_type_flag): New type.
8135 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
8136 kind. Add size to u.u. Add u.f for flags.
8137 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
8138 (tdesc_free_type): Likewise.
8139 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
8140 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
8141 (tdesc_add_bitfield, tdesc_add_flag): New.
8142 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
8143 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
8144 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
8145 current_type. Add current_type_size and current_type_is_flags.
8146 (tdesc_start_union): Clear the new fields.
8147 (tdesc_start_struct, tdesc_start_flags): New.
8148 (tdesc_start_field): Handle struct fields, including bitfields.
8149 (field_attributes): Make type optional. Add start and end.
8150 (union_children): Rename to struct_union_children.
8151 (union_attributes): Rename to struct_union_attributes. Add optional
8153 (flags_attributes): New.
8154 (feature_children): Add struct and flags.
8155 * features/gdb-target.dtd: Add flags and struct to features.
8156 Make field type optional. Add field start and end.
8158 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
8160 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
8161 (amd64_linux_read_description): Likewise.
8162 (_initialize_amd64_linux_nat): Set to_read_description to
8163 amd64_linux_read_description.
8165 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
8166 (amd64_linux_register_name): Removed.
8167 (amd64_linux_register_type): Likewise.
8168 (amd64_linux_core_read_description): New.
8169 (amd64_linux_init_abi): Set target description to
8170 tdesc_amd64_linux if needed. Support orig_rax in target
8171 description. Don't call set_gdbarch_register_name nor
8172 set_gdbarch_register_type. Call
8173 set_gdbarch_core_read_description.
8174 (_initialize_amd64_linux_tdep): Call
8175 initialize_tdesc_amd64_linux.
8177 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
8179 * amd64-tdep.c: Include "features/i386/amd64.c".
8180 (amd64_register_names): Removed.
8181 (amd64_register_name): Likewise.
8182 (amd64_register_type): Likewise.
8183 (amd64_init_abi): Set num_core_regs and register_names. Set
8184 target description to tdesc_amd64 if needed. Don't call
8185 set_gdbarch_register_name nor set_gdbarch_register_type.
8186 (_initialize_amd64_tdep): New.
8188 * i386-linux-nat.c (i386_linux_read_description): New.
8189 (_initialize_i386_linux_nat): Set to_read_description to
8190 i386_linux_read_description.
8192 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
8193 (i386_linux_register_name): Removed.
8194 (i386_linux_core_read_description): New.
8195 (i386_linux_read_description): Likewise.
8196 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
8197 Set target description to tdesc_i386_linux if needed. Support
8198 orig_eax. Set register_reggroup_p. Call
8199 set_gdbarch_core_read_description.
8200 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
8202 * i386-linux-tdep.h (tdesc_i386_linux): New.
8204 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
8207 * i386-tdep.c: Include "features/i386/i386.c".
8208 (i386_register_names): Make it const.
8209 (i386_mmx_names): Likewise.
8210 (i386_num_register_names): Removed.
8211 (i386_register_name): Likewise.
8212 (i386_eflags_type): Likewise.
8213 (i386_mxcsr_type): Likewise.
8214 (i386_sse_type): Likewise.
8215 (i386_register_type): Likewise.
8216 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
8217 (i386_pseudo_register_name): New.
8218 (i386_pseudo_register_type): Likewise.
8219 (i386_mmx_type): Make it static.
8220 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
8221 I387_NUM_REGS. Set num_core_regs and register_names. Don't
8222 call set_gdbarch_register_name nor set_gdbarch_register_type.
8223 Set register_reggroup_p. Set target description to tdesc_i386
8224 if needed. Call set_tdesc_pseudo_register_type,
8225 set_tdesc_pseudo_register_name and tdesc_use_registers.
8226 (_initialize_i386_tdep): Call initialize_tdesc_i386.
8227 initialize_tdesc_x86_64.
8229 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
8230 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
8231 register_names, tdesc and register_reggroup_p.
8232 (I386_NUM_FREGS): Removed.
8233 (i386_eflags_type): Likewise.
8234 (i386_mxcsr_type): Likewise.
8235 (i386_mmx_type): Likewise.
8236 (i386_sse_type): Likewise.
8237 (i386_register_name): Likewise.
8238 (i386_regnum): Add I386_MXCSR_REGNUM.
8239 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
8241 * i387-tdep.h (I387_NUM_REGS): New.
8243 * regformats/i386/i386-linux.dat: Generated.
8244 * regformats/i386/i386.dat: Likewise.
8245 * regformats/i386/amd64-linux.dat: Likewise.
8246 * regformats/i386/amd64.dat: Likewise.
8248 * regformats/reg-i386-linux.dat: Removed.
8249 * regformats/reg-i386.dat: Likewise.
8250 * regformats/reg-x86-64-linux.dat: Likewise.
8251 * regformats/reg-x86-64.dat: Likewise.
8253 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
8255 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
8256 cygwin_conv_path API rather than the deprecated
8257 cygwin_conv_to_full_posix_path.
8259 (GetModuleFileNameExA): Undefine for Cygwin.
8260 (GetModuleFileNameExW): Define for Cygwin.
8261 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
8262 Call GetModuleFileNameExW and convert path to POSIX using
8264 (windows_make_so): Always define p. Drop unused variable m.
8265 Don't use Win32 functions to check file existance, rather use
8266 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
8267 Use canonicalize_file_name to get full path.
8268 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
8269 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
8270 use correct target buffer size in call to WideCharToMultiByte.
8271 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
8272 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
8273 (windows_create_inferior): Convert all paths and arguments to wchar_t
8274 and use CreateProcessW on Cygwin.
8275 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
8276 (bad_GetModuleFileNameExA): Undefine for Cygwin.
8277 (bad_GetModuleFileNameExW): Define for Cygwin.
8278 (_initialize_loadable): Load GetModuleFileNameExW into
8279 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
8281 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
8284 * python/py-frame.c (frapy_read_var): Add block argument and logic
8285 to cope with user provided blocks.
8287 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8289 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
8292 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
8294 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
8295 (COMMON_OBS): ... to here since it's used unconditionally.
8296 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
8299 2010-02-26 David Daney <ddaney@caviumnetworks.com>
8301 * mips-linux-tdep.c: Update struct sigframe comments.
8302 (SIGFRAME_CODE_OFFSET): Delete macro.
8303 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
8305 (mips_linux_n32n64_sigframe_init): Same.
8307 2010-02-26 Kevin Buettner <kevinb@redhat.com>
8309 * remote-mips.c (mips_load): Don't use pseudo-register when
8310 invalidating regcache.
8312 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8314 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
8316 2010-02-26 Pedro Alves <pedro@codesourcery.com>
8318 * NEWS: Add "New targets" section, and mention ARM Symbian
8321 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
8323 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
8324 add ADDR_SIZE member.
8325 (allocate_piece_closure): Update.
8326 (copy_pieced_value_closure): Likewise.
8327 (dwarf2_evaluate_loc_desc): Likewise.
8328 (read_pieced_value): Use DWARF address size instead of
8329 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
8331 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
8332 Tom Tromey <tromey@redhat.com>
8334 * python/py-type.c (typy_lookup_typename): Add in block argument.
8335 If provided restrict lookup to specified blocks.
8336 (gdbpy_lookup_type): Likewise.
8337 (typy_lookup_type): Likewise.
8339 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8344 * arm-symbian-tdep.c: New.
8345 * configure.tgt (arm*-*-symbianelf*): New target.
8346 (*-*-symbianelf*): New OS.
8347 * osabi.c (gdb_osabi_names): Add Symbian.
8348 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
8349 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
8350 (ALLDEPFILES): Add arm-symbian-tdep.c.
8352 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8354 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
8356 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8358 * mi/mi-main.c (mi_cmd_execute): Fix typo.
8360 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
8361 Tom Tromey <tromey@redhat.com>
8362 Thiago Jung Bauermann <bauerman@br.ibm.com>
8364 * python/python.c (_initialize_python): Call
8365 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
8366 gdbpy_initialize_blocks.
8367 * python/python-internal.h: Declare struct symbol, block and
8368 symtab_and_line. Declare block_object_type and
8370 (gdbpy_lookup_symbol gdbpy_block_for_pc)
8371 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
8372 (symbol_to_symbol_object, block_to_block_object)
8373 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
8374 (gdbpy_initialize_blocks ): Declare.
8375 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
8376 (frapy_select): Add methods.
8377 (frapy_read_var): Add symbol branch.
8378 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
8380 (SUBDIR_PYTHON_SRCS): Likewise.
8381 (py-symbol.o): New rule.
8382 (py-symtab.o): Likewise.
8383 (py-block.o): Likewise.
8384 * python/py-symbol.c: New file.
8385 * python/py-symtab.c: Likewise.
8386 * python/py-block.c: Likewise.
8388 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8392 * inferior.h (prepare_for_detach): Declare.
8393 (struct inferior) <detaching>: New field.
8394 * infrun.c (prepare_for_detach): New.
8395 (handle_inferior_event) <random signal>: Don't stop if detaching.
8396 * target.c (target_detach): Call prepare_for_detach.
8398 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8400 Per-process displaced stepping queue.
8402 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
8403 (displaced_step_gdbarch, displaced_step_closure,
8404 (displaced_step_original, displaced_step_copy): Move globals to
8406 (struct displaced_step_inferior_state): ... new structure.
8407 (displaced_step_inferior_states): New global.
8408 (get_displaced_stepping_state, add_displaced_stepping_state)
8409 (remove_displaced_stepping_state, infrun_inferior_exit): New
8411 (displaced_step_clear): Add displaced_step_inferior_state
8412 parameter, and adjust to handle it.
8413 (displaced_step_clear_cleanup): Parameter is now a
8414 displaced_step_inferior_state. Adjust.
8415 (displaced_step_prepare): Adjust.
8416 (displaced_step_fixup, displaced_step_fixup)
8417 (infrun_thread_ptid_changed, resume): Adjust.
8418 (init_wait_for_inferior): Don't call displaced_step_clear.
8419 (infrun_thread_stop_requested): Rewrite.
8420 (_initialize_infrun): Install infrun_inferior_exit as
8421 inferior_exit observer.
8423 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8425 * inferior.h (ptid_match): Declare.
8426 * infrun.c (ptid_match): New.
8427 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
8428 (handle_notification): Add debug output.
8429 * linux-nat.c (ptid_match): Delete.
8431 2010-02-24 David S. Miller <davem@davemloft.net>
8433 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
8434 * syscalls/sparc-linux.xml: New.
8435 * syscalls/sparc64-linux.xml: New.
8436 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
8437 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
8438 (sparc32_linux_get_syscall_number): New function.
8439 (sparc32_linux_init_abi): Set syscall XML file name and hook up
8440 syscall number fetcher.
8441 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
8442 (sparc64_linux_get_syscall_number): New function.
8443 (sparc64_linux_init_abi): Set syscall XML file name and hook up
8444 syscall number fetcher.
8446 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
8450 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
8451 * inferior.c (add_inferior_silent): Notify inferior_added
8453 (delete_inferior_1): Notify inferior_removed observer.
8454 (exit_inferior_1): Pass inferior, not pid, to observer.
8455 (inferior_appeared): Likewise.
8456 (add_inferior_with_spaces): New.
8457 (add_inferior_command): Use the above.
8458 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
8461 * inflow.c (inflow_inferior_exit): Likewise.
8462 * jit.c (jit_inferior_exit_hook): Likewise.
8464 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
8466 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
8467 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
8468 (report_initial_inferior): New.
8469 (mi_inferior_removed): Register the above. Make sure
8470 inferior_added observer is called on the first inferior.
8471 (mi_new_thread, mi_thread_exit): Thread group is now identified by
8472 inferior number, not pid.
8473 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
8475 * mi/mi-main.c (current_context): New.
8476 (proceed_thread_callback): Use typed closure.
8477 Proceed everything if pid is 0. Most implementation split into
8478 (proceed_thread): ... this.
8479 (run_one_inferior): New.
8480 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
8481 Adjust for multiexec behaviour.
8482 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
8483 (mi_cmd_execute): Handle the 'thread-group' option here.
8484 Do some extra checks.
8485 * mi-parse.c (mi_parse): Handle the --all and --thread-group
8487 * mi-parse.h (struct mi_parse): New fields all and thread_group.
8489 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
8491 Make -exec-run a proper MI commands.
8493 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
8494 * mi/mi-cmds.c (mi_cmds): Adjust.
8495 * mi/mi-main.c (mi_cmd_exec_run): New.
8497 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8498 Stan Shebs <stan@codesourcery.com>
8500 * tracepoint.h (set_traceframe_number)
8501 (cleanup_restore_current_traceframe): Declare.
8502 * tracepoint.c (set_traceframe_number): New.
8503 (struct current_traceframe_cleanup): New.
8504 (do_restore_current_traceframe_cleanup)
8505 (restore_current_traceframe_cleanup_dtor)
8506 (make_cleanup_restore_current_traceframe): New.
8507 * infrun.c: Include tracepoint.h.
8508 (fetch_inferior_event): Switch out and in of tfind mode.
8510 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8512 * breakpoint.c (breakpoint_init_inferior): Also delete
8513 bp_shlib_event breakpoints.
8514 * solib-frv.c (enable_break): Remove call to
8515 remove_solib_event_breakpoints.
8516 * solib-svr4.c (enable_break): Ditto.
8517 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
8518 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
8519 * solib-som.c (som_solib_create_inferior_hook): Ditto.
8520 * solib-spu.c (spu_enable_break): Ditto.
8522 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
8524 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
8526 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
8528 * varobj.c (varobj_update): Avoid non-constants in initializers.
8530 2010-02-23 Tom Tromey <tromey@redhat.com>
8532 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
8533 handle big-endian values.
8534 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
8536 2010-02-22 Pedro Alves <pedro@codesourcery.com>
8541 * breakpoint.c (insert_bp_location): If inserting the read
8542 watchpoint failed, fallback to an access watchpoint.
8543 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
8544 if the value changed, if not watching the same memory for writes.
8545 (watchpoint_locations_match): Add comment.
8546 (update_global_location_list): Copy the location's watchpoint type.
8547 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
8548 handle read watchpoints here.
8549 (i386_insert_watchpoint): Read watchpoints aren't supported.
8550 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
8552 * target.h (target_insert_watchpoint): Update description.
8554 2010-02-19 Tom Tromey <tromey@redhat.com>
8556 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
8557 * m2-typeprint.c (m2_print_type): Update.
8558 * gdbtypes.c (recursive_dump_type): Update.
8559 (copy_type_recursive): Update.
8560 * c-typeprint.c (c_type_print_varspec_prefix): Update.
8561 (c_type_print_base): Update.
8562 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
8564 (struct cplus_struct_type) <ntemplate_args>: Remove.
8565 <struct template_arg>: Remove.
8566 <is_dynamic>: Move earlier.
8567 (TYPE_TEMPLATE_ARGS): Remove.
8568 (TYPE_NTEMPLATE_ARGS): Remove.
8569 (TYPE_TEMPLATE_ARG): Remove.
8571 2010-02-19 Tom Tromey <tromey@redhat.com>
8573 PR c++/8693, PR c++/9496:
8574 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
8575 * c-exp.y (lex_one_token): Rename from yylex. Don't call
8576 write_dollar_variable. Don't try to classify NAME tokens.
8577 (token_and_value): New type.
8578 (token_fifo, popping, name_obstack): New globals.
8579 (classify_name): New function.
8580 (classify_inner_name): Likewise.
8582 (VARIABLE): Now has type sval.
8583 (exp : VARIABLE): Call write_dollar_variable.
8584 (qualified_name): Use TYPENAME, not typebase. Add production for
8585 multiple "::" instances.
8586 (variable): Use name_not_typename.
8587 (qualified_type): Remove.
8590 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8592 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
8593 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
8594 found by bfd_get_section_by_name.
8595 * symfile.h (struct section_addr_info) <sectindex>: New comment.
8597 2010-02-19 Joel Brobecker <brobecker@adacore.com>
8599 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
8600 7.0 section" into "Changes in 7.1".
8602 2010-02-19 Joel Brobecker <brobecker@adacore.com>
8604 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
8605 * version.in: Bump version to 7.1.50.20100219-cvs.
8607 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
8609 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
8610 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
8612 2010-02-17 Tom Tromey <tromey@redhat.com>
8614 * NEWS: Add Python API Improvements section.
8616 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
8618 * NEWS: Correct typo.
8620 2010-02-17 Tom Tromey <tromey@redhat.com>
8622 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
8624 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8626 * symfile.c (build_section_addr_info_from_objfile): Include sections
8627 only if they are SEC_ALLOC or SEC_LOAD.
8629 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
8632 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
8633 of ULONGEST for address size.
8635 2010-02-17 Tom Tromey <tromey@redhat.com>
8637 * NEWS: Add C++ improvements section.
8639 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
8641 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
8642 PyThreadState_Swap): Avoid "statement with no effect" warning.
8644 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8646 * solib-svr4.c (enable_break <target_auxv_search>): New variable
8647 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
8649 2010-02-17 Tristan Gingold <gingold@adacore.com>
8650 Petr Hluzin <petr.hluzin@gmail.com>
8652 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
8653 gdb_assert. Fix info->size for SIG prologue.
8655 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8657 * infcmd.c (show_inferior_tty_command): Check for NULL.
8658 Correct output message.
8660 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8662 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
8663 FUNCTION contains parentheses. Improve removal of a trailing
8666 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8668 * gcore.c (do_bfd_delete_cleanup): New function.
8669 (gcore_command): Use it. Discard the cleanup after success.
8670 (gcore_copy_callback): Delete dead code.
8672 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8674 * symfile.c (addr_info_make_relative): Always use
8675 find_lowest_section.
8677 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
8679 * NEWS: Added entry for namespace fixes.
8681 2010-02-15 Tom Tromey <tromey@redhat.com>
8683 * dwarf2read.c (guess_structure_name): Allocate name on the
8686 2010-02-15 Tom Tromey <tromey@redhat.com>
8688 * c-typeprint.c (c_type_print_base): Reverse order of test.
8690 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8692 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
8693 initialize it from ELF BFD. Extend the prelink condition by it.
8695 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8697 * defs.h (parse_pid_to_attach): New.
8698 * utils.c (parse_pid_to_attach): New.
8699 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
8700 * gnu-nat.c (gnu_attach): Likewise.
8701 * nto-procfs.c (procfs_attach): Likewise.
8702 * procfs.c (procfs_attach): Likewise.
8703 * windows-nat.c (windows_attach): Likewise.
8704 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
8705 * inf-ttrace.c (inf_ttrace_attach): Likewise.
8706 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
8709 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
8711 * MAINTAINERS: Add myself for write after approval privileges.
8713 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8715 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
8718 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8720 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
8721 only if INFO_VERBOSE.
8723 2010-02-12 Tomas Holmberg <th@virtutech.com>
8725 * mi/mi-main.c: Added the --reverse flag to the following MI
8726 commands: exec-continue, exec-finish, exec-next, exec-step,
8727 exec-next-instruction, exec-step-instruction. This is to
8728 support reverse execution over the MI interface to gdb.
8730 2010-02-12 Pedro Alves <pedro@codesourcery.com>
8732 * tracepoint.c (_initialize_tracepoint): Specify that the address
8733 range of `tfind outsize' is exclusive, and that the address range
8734 of `tfind range' is inclusive, in the commands' help strings.
8736 2010-02-12 Joel Brobecker <brobecker@adacore.com>
8738 Spurious "dll not found" error messages on x64-windows.
8739 * windows-nat.c: Add include of complaints.h.
8740 (handle_unload_dll): Change dll-not-found error into a complaint.
8742 2010-02-12 Pedro Alves <pedro@codesourcery.com>
8744 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
8745 bp_tracepoint and bp_fast_tracepoint, not
8746 bp_loc_software_breakpoint.
8747 (update_global_location_list): Tracepoints are never duplicates of
8750 2010-02-12 Pedro Alves <pedro@codesourcery.com>
8752 * breakpoint.c (break_command_really): Change return type to int.
8753 Return false if no breakpoint was created, true otherwise.
8754 (trace_command): Don't set the tracepoint count if no tracepoint
8756 (ftrace_command): Ditto.
8757 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
8758 created in the breakpoints table.
8760 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8761 Ulrich Weigand <uweigand@de.ibm.com>
8763 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
8765 2010-02-11 Pedro Alves <pedro@codesourcery.com>
8767 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
8768 the offset value isn't of integral type.
8770 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8772 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
8775 2010-02-11 Pedro Alves <pedro@codesourcery.com>
8777 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
8778 non-subscriptable types.
8779 * valarith.c (binop_types_user_defined_p): New, abstracted out
8781 (binop_user_defined_p): ... this.
8782 * value.h (binop_types_user_defined_p): Declare.
8784 2010-02-11 Pedro Alves <pedro@codesourcery.com>
8786 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
8787 Merge uploaded TSVs before merging uploaded tracepoints.
8789 2010-02-11 Pedro Alves <pedro@codesourcery.com>
8791 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
8793 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
8795 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
8796 whitespace character after a dot in comment.
8797 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
8799 (list_args_or_locals): For the 'all' (that is
8800 -stack-list-variables) case, always output list of tuples.
8801 Output 'arg' field if variable is argument.
8803 2010-02-10 Tom Tromey <tromey@redhat.com>
8805 * parser-defs.h (parser_debug): Declare.
8806 * parse.c (_initialize_parse): Install "debug parser" set/show
8808 (parser_debug): New global.
8809 (show_parserdebug): New function.
8810 * c-exp.y (c_parse): Set yydebug.
8812 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
8814 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
8815 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8816 (tdesc_predefined_types): Add i387_ext, i386_eflags and
8818 (tdesc_find_type): New.
8819 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
8820 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8822 * target-descriptions.h (tdesc_find_type): New.
8824 2010-02-10 Michael Snyder <msnyder@vmware.com>
8826 * gdb-gdb.py: Comment fix.
8828 2010-02-09 Tristan Gingold <gingold@adacore.com>
8830 * machoread.c (macho_symfile_relocate): New function.
8831 (macho_sym_fns): Use macho_symfile_relocate instead of
8832 default_symfile_relocate.
8833 (macho_oso_data): New type.
8834 (current_oso): New variable.
8835 (macho_add_oso_symfile): Do not compute section_addr_info, but
8836 instead set vma of sections.
8837 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
8838 Set and clear current_oso.
8840 2010-02-09 Joel Brobecker <brobecker@adacore.com>
8842 Wrong type description for tagged type parameter.
8843 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
8844 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
8845 reference to a tagged type.
8847 2010-02-09 Tristan Gingold <gingold@adacore.com>
8849 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
8850 brothers of the parent.
8852 2010-02-08 Tom Tromey <tromey@redhat.com>
8856 * valops.c (search_struct_field): Make 'name' const.
8857 (search_struct_method): Likewise.
8858 (find_method_list): Make 'method' const.
8859 (value_struct_elt): Make 'name' and 'err' const.
8860 (value_find_oload_method_list): Make 'method' const.
8861 (find_overload_match): Make 'name' const.
8862 * eval.c (evaluate_subexp_standard): New locals function,
8864 <OP_FUNCALL>: Handle OP_SCOPE specially.
8866 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
8868 * infrun.c (handle_inferior_event): Do not look up regcache
8869 for exited processes.
8871 2010-02-08 Chris Moller <moller@mollerware.com>
8874 * valarith.c (value_ptrdiff): Added a test for a zero type length,
8875 warn if found, and assume length = 1.
8877 2010-02-08 Chris Moller <cmoller@redhat.com>
8880 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
8881 (cp_print_static_field) Fix use of obstacks.
8883 2010-02-08 Pedro Alves <pedro@codesourcery.com>
8885 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
8886 resumed LWPs as resumed.
8887 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
8888 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
8889 of throwing an internal error. If an LWP of a process we're not
8890 waiting for reports a signal, don't force collecting a SIGSTOP,
8891 and if it was breakpoint hit in non-stop mode, cancel it. Don't
8892 go through all LWPs cancelling breakpoints in non-stop mode.
8893 (resume_stopped_resumed_lwps): New.
8894 (linux_nat_wait): Use it.
8896 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
8898 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
8899 i386/amd64 and i386/amd64-linux.
8900 (i386/i386-expedite): New.
8901 (i386/i386-linux-expedite): Likewise.
8902 (i386/amd64-expedite):Likewise.
8903 (i386/amd64-linux-expedite): Likewise.
8904 ($(outdir)/i386/i386-linux.dat): Likewise.
8905 ($(outdir)/i386/amd64.dat): Likewise.
8906 ($(outdir)/i386/amd64-linux.dat): Likewise.
8908 * features/i386/32bit-core.xml: New.
8909 * features/i386/32bit-linux.xml: Likewise.
8910 * features/i386/32bit-sse.xml: Likewise.
8911 * features/i386/64bit-core.xml: Likewise.
8912 * features/i386/64bit-linux.xml: Likewise.
8913 * features/i386/64bit-sse.xml: Likewise.
8914 * features/i386/i386-linux.xml: Likewise.
8915 * features/i386/i386.xml: Likewise.
8916 * features/i386/amd64-linux.xml: Likewise.
8917 * features/i386/amd64.xml: Likewise.
8918 * features/i386/i386-linux.c: Likewise.
8919 * features/i386/i386.c: Likewise.
8920 * features/i386/amd64-linux.c: Likewise.
8921 * features/i386/amd64.c: Likewise.
8923 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
8926 * cp-support.h: Added char* alias element to using_direct data
8928 (cp_add_using): Added char* alias argument.
8929 (cp_add_using_directive): Ditto.
8930 * cp-namespace.c: Updated with the above changes.
8931 (cp_lookup_symbol_imports): Check for aliases.
8932 * dwarf2read.c (read_import_statement): Figure out local alias
8933 for the import and pass it on to cp_add_using.
8934 (read_namespace): Pass alias argument to cp_add_using.
8936 2010-02-05 Hui Zhu <teawater@gmail.com>
8938 * defs.h (gdb_bfd_errmsg): New extern.
8939 * exec.c (exec_file_attach): Change bfd_errmsg to
8941 * utils.c (AMBIGUOUS_MESS1): New macro.
8942 (AMBIGUOUS_MESS2): New macro.
8943 (gdb_bfd_errmsg): New function.
8945 2010-02-04 Doug Evans <dje@google.com>
8947 * solib-svr4.c (enable_break): Add comment.
8949 2010-02-04 Anthony Green <green@moxielogic.com>
8951 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
8954 2010-02-04 Tom Tromey <tromey@redhat.com>
8956 * valops.c (search_struct_field): Account for
8957 value_embedded_offset. Fix check for virtual base past the end of
8958 the object. Use value_copy when making a slice of the value.
8960 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
8963 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
8964 only if gdb_stdout is a tty.
8966 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
8968 * target-descriptions.c: Include "osabi.h".
8969 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
8972 2010-02-04 Tristan Gingold <gingold@adacore.com>
8974 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
8975 (macho_symtab_read): Adjust calls to macho_add_oso.
8976 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
8977 (macho_symfile_read): Adjust call to macho_oso_symfile.
8978 (macho_new_init): Move this function after declarations.
8979 (macho_symfile_init): Ditto.
8980 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
8981 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
8983 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
8985 Include MI command in remotelog.
8987 * mi/mi-main.c (mi_execute_command): Call target_log_command.
8989 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
8991 * remote.c (remote_state): Remove gdbarch.
8992 (init_remote_state): Don't set gdbarch.
8993 (remote_query_supported): Pass target_gdbarch instead of
8994 rs->gdbarch to gdbarch_qsupported.
8996 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
8998 * gdbarch.sh: Add qsupported.
9000 * gdbarch.c: Regenerated.
9001 * gdbarch.h: Likewise.
9003 * remote.c (remote_state): Add gdbarch.
9004 (init_remote_state): Set gdbarch.
9005 (remote_query_supported): Support gdbarch_qsupported.
9007 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
9009 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
9010 __FreeBSD_kernel_version.
9012 2010-02-03 Tristan Gingold <gingold@adacore.com>
9014 * symfile.h (struct sym_fns): Add sym_relocate field.
9015 (default_symfile_relocate): New prototype.
9016 (symfile_relocate_debug_section): First argument is now an objfile.
9017 * symfile.c (default_symfile_relocate): Rename from
9018 symfile_relocate_debug_section, first argument is now an objfile.
9019 (symfile_relocate_debug_section): New function.
9020 * coffread.c (coff_sym_fns): Set sym_relocate field.
9021 * somread.c (som_sym_fns): Ditto.
9022 * mipsread.c (ecoff_sym_fns): Ditto.
9023 * machoread.c (macho_sym_fns): Ditto.
9024 * elfread.c (elf_sym_fns): Ditto.
9025 * dwarf2read.c (dwarf2_read_section): Ditto.
9026 * xcoffread.c (xcoff_sym_fns): Ditto.
9027 * dbxread.c (aout_sym_fns): Ditto.
9028 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
9029 (elfstab_build_psymtabs): Ditto.
9031 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9033 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
9035 2010-02-02 Tom Tromey <tromey@redhat.com>
9037 * valops.c (value_cast_structs): Try downcasting using the RTTI
9040 2010-02-02 Tom Tromey <tromey@redhat.com>
9042 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
9043 (gnuv2_baseclass_offset): Now static.
9044 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
9045 * gnu-v2-abi.h: Remove.
9047 2010-02-02 Tom Tromey <tromey@redhat.com>
9049 * m2-typeprint.c (m2_record_fields): Don't use
9051 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
9052 (struct main_type) <flag_declared_class>: New field.
9053 (struct cplus_struct_type) <declared_type>: Remove.
9054 <ntemplate_args>: Move earlier.
9055 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
9056 (DECLARED_TYPE_TEMPLATE): Remove.
9057 (TYPE_DECLARED_TYPE): Remove.
9058 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
9059 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
9060 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
9063 2010-02-02 Tom Tromey <tromey@redhat.com>
9065 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
9066 * valops.c (search_struct_field): Compute nbases after calling
9068 (check_field): Call CHECK_TYPEDEF.
9069 * cp-valprint.c (cp_print_value): Pass correct address to
9070 baseclass_offset. Fix check for virtual base past the end of the
9071 object. Don't offset address passed to cp_print_value_fields or
9072 apply_val_pretty_printer.
9073 (cp_print_value_fields): Fix call to val_print.
9074 (cp_print_value_fields_rtti): New function.
9075 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
9076 * p-valprint.c (pascal_object_print_value_fields): Fix call to
9078 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
9080 * language.h (struct language_defn) <la_val_print>: Document.
9081 * c-lang.h (cp_print_value_fields_rtti): Declare.
9083 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9086 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9087 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
9088 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9090 2010-02-01 Michael Matz <matz@suse.de>
9091 Daniel Jacobowitz <dan@codesourcery.com>
9093 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
9094 functions use a frame pointer.
9096 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9098 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
9099 by a conditional setting DYN_ADDR. Use DYN_ADDR.
9100 * config/djgpp/fnchange.lst: Add translations for
9101 symbol-without-target_section.exp and symbol-without-target_section.c.
9103 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9105 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
9106 (remote_breakpoint_for_pc): Correct invalid_p check.
9107 * gdbarch.c: Regenerated.
9109 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9111 * arm-tdep.c (arm_find_mapping_symbol): New function, from
9113 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
9114 (extend_buffer_earlier): New function.
9115 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
9116 (arm_adjust_breakpoint_address): New function.
9117 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
9119 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9121 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
9122 (arm_linux_thumb2_le_breakpoint): New constants.
9123 (arm_linux_init_abi): Set thumb2_breakpoint and
9124 thumb2_breakpoint_size.
9125 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
9126 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
9127 Implement support for single stepping through IT blocks if
9128 a 32-bit Thumb breakpoint instruction is available.
9129 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
9130 is available, use it when needed.
9131 (arm_remote_breakpoint_from_pc): New function.
9132 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
9133 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
9134 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
9136 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9138 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
9139 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
9140 * gdbarch.c, gdbarch.h: Regenerated.
9141 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
9142 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
9143 gdbarch_remote_breakpoint_from_pc.
9145 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9147 * infrun.c (prepare_to_proceed): Handle other signals which might
9149 (handle_inferior_event): Move the check for unusual breakpoint
9152 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
9154 amd64 - function returning record with field straddling 2 registers.
9155 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
9156 a record of length <= 16 in which a field straddles the two
9159 2010-01-29 Joel Brobecker <brobecker@adacore.com>
9161 Implement return values on amd64-windows.
9162 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
9163 (amd64_windows_return_value): New function.
9164 (amd64_windows_init_abi): Call set_gdbarch_return_value with
9165 amd64_windows_return_value.
9167 2010-01-29 Joel Brobecker <brobecker@adacore.com>
9169 amd64-windows: 32 bytes allocated on stack by caller for integer
9170 parameter registers.
9171 * i386-tdep.h (struct gdbarch_tdep): Add new field
9172 integer_param_regs_saved_in_caller_frame.
9173 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
9174 tdep->integer_param_regs_saved_in_caller_frame to 1.
9175 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
9176 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
9178 2010-01-29 Joel Brobecker <brobecker@adacore.com>
9180 amd64-windows: memory args passed by pointer during function calls.
9181 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
9182 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
9183 where tdep->memory_args_by_pointer is non-zero.
9184 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
9185 tdep->memory_args_by_pointer to 1.
9187 2010-01-29 Joel Brobecker <brobecker@adacore.com>
9189 amd64-windows: Integer parameters in function calls.
9190 * i386-tdep.h (enum amd64_reg_class): New, moved here from
9192 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
9193 call_dummy_integer_regs, and classify.
9194 * amd64-tdep.h (amd64_classify): Add declaration.
9195 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
9196 (amd64_reg_class): Delete, moved to i386-tdep.h.
9197 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
9198 Replace call to amd64_classify by call to tdep->classify.
9199 (amd64_push_arguments): Get the list of registers to use for
9200 passing integer parameters from the gdbarch tdep structure,
9201 rather than using a hardcoded one. Replace calls to amd64_classify
9202 by calls to tdep->classify.
9203 (amd64_push_dummy_call): Get the register number used for
9204 the "hidden" argument from tdep->call_dummy_integer_regs.
9205 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
9206 and tdep->call_dummy_integer_regs. Set tdep->classify.
9207 * amd64-windows-tdep.c: Add include of gdbtypes.h.
9208 (amd64_windows_dummy_call_integer_regs): New static global.
9209 (amd64_windows_classify): New function.
9210 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
9211 tdep->call_dummy_integer_regs and tdep->classify.
9213 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
9215 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
9216 for the new regcache. All callers updated.
9217 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
9218 (get_thread_arch_regcache): Do not set aspace here.
9219 * regcache.h (regcache_xmalloc): Update declaration.
9221 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
9222 regcache_xmalloc updated.
9224 2010-01-28 Joel Brobecker <brobecker@adacore.com>
9226 Another -Wunused-function error in procfs.c (sparc-solaris)
9227 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
9228 Only define if SYS_syssgi is defined.
9229 (remove_dbx_link_breakpoint): Delete declaration. Move up.
9230 (dbx_link_addr, insert_dbx_link_bpt_in_file)
9231 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
9234 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
9236 * windows-nat.c (windows_initialization_done): New variable.
9237 (get_windows_debug_event): Issue error when process dies before
9238 completely initializing.
9239 (do_initial_windows_stuff): Set flag to indicate when we are done with
9240 the initial steps of attaching to the child.
9242 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9244 * symtab.h (struct symbol <symtab>): New comment on NULL values.
9246 2010-01-27 Doug Evans <dje@google.com>
9248 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
9250 * breakpoint.c (bpstat_stop_status): Delete useless code.
9252 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9254 * printcmd.c (display_uses_solib_p): Remove variable section. Access
9255 objfile via SYMBOL_SYMTAB.
9257 2010-01-26 Tom Tromey <tromey@redhat.com>
9260 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
9261 coerce_array on result.
9263 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
9265 * cp-namespace.c (cp_lookup_symbol_namespace): Added
9266 search_parent argument.
9267 (cp_add_using): Initialize 'searched' field.
9268 (reset_directive_searched): New function.
9269 * cp-support.h: Add 'searched' field to using_direct struct.
9270 (cp_lookup_symbol_imports): Ditto.
9271 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
9272 Perform recursive search.
9273 Implement non parent search.
9274 * valops.c (value_maybe_namespace_elt): Updated.
9276 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
9279 * dwarf2read.c (read_lexical_block_scope): Create blocks for
9280 scopes which contain using directives even if they contain no
9282 * symtab.c (lookup_symbol_aux): Pass lowest level block to
9283 la_lookup_symbol_nonlocal.
9284 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
9285 cp_lookup_symbol_namespace.
9286 (cp_lookup_symbol_namespace): Perform an import lookup at every
9288 (cp_lookup_symbol_imports): New function.
9289 (cp_lookup_symbol_in_namespace): New function.
9291 2010-01-25 Tom Tromey <tromey@redhat.com>
9294 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
9297 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9299 * configure.ac: Only use host_os part when disabling TUI on osf.
9300 Use test to check variables, prefix strings with x.
9301 * configure: Regenerate.
9303 * solib-osf.c (osf_current_sos): Initialize tail.
9305 2010-01-25 gingold <gingold@adacore.com>
9307 * windows-nat.c (windows_continue): Use %x to print thread id.
9308 (get_windows_debug_event): Ditto.
9310 2010-01-22 Tom Tromey <tromey@redhat.com>
9313 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
9314 type and arguments. Use smash_to_methodptr_type.
9315 (read_structure_type): Call quirk_gcc_member_function_pointer
9317 * gdbtypes.h (smash_to_methodptr_type): Declare.
9318 * gdbtypes.c (smash_to_methodptr_type): New function.
9319 (lookup_methodptr_type): Use it.
9321 2010-01-21 Tom Tromey <tromey@redhat.com>
9324 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
9325 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
9326 * glibc-tdep.c (find_minsym_and_objfile): Remove.
9327 (glibc_skip_solib_resolver): Use
9328 lookup_minimal_symbol_and_objfile.
9330 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
9332 * inflow.c (check_syscall): Guard by #if clause for GO32 and
9335 2010-01-20 Tom Tromey <tromey@redhat.com>
9338 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
9339 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
9340 * dwarf2expr.c (new_dwarf_expr_context): Allocate
9341 dwarf_stack_values, not CORE_ADDRs.
9342 (execute_stack_op): Change DW_OP_div and comparison operators to
9343 use signed operands.
9345 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
9347 Per-inferior args and tty and environment.
9349 * infcmd.c (inferior_args): Rename to ...
9350 (inferior_args_scratch): ... this.
9351 (inferior_io_terminal): Rename to ...
9352 (inferior_io_terminal_scratch): ... this.
9353 (inferior_argc, inferior_argv): Remove.
9354 (set_inferior_io_terminal, get_inferior_io_terminal): Store
9355 inside current_inferior().
9356 (set_inferior_tty_command, show_inferior_tty_command): New.
9357 (get_inferior_args, set_inferior_args): Store inside
9359 (notice_args_set): Likewise and rename to...
9360 (set_args_command): ... this.
9361 (set_inferior_args_vector): Likewise.
9362 (notice_args_read): Rename to...
9363 (show_args_command): ...new.
9364 (tty_command): Remove.
9365 (run_command_1): Don't free old args, as they are freed by
9366 set_inferior_arg now.
9367 (run_no_args_command): Likewise.
9368 (inferior_environ): Remove.
9369 (run_command_1): Use environment of the current inferior.
9370 (environment_info, set_environment_command)
9371 (unset_environment_command, path_info, path_command): Likewise.
9372 (_initialize_infcmd): Adjust for function and variable renames.
9373 Do not init inferior_environ.
9374 * inferior.h (set_inferior_arg): Adjust prototype.
9375 (struct inferior): New fields args, argc, argv, terminal, environment.
9376 (inferior_environ): Remove declaration.
9377 * inferior.c (free_inferior): Free new fields.
9378 (add_inferior_silent): Initialize 'environment' field.
9379 * main.c (captured_main): Set arguments only after the initial
9380 inferior has been created. Set set_inferior_io_terminal,
9382 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
9384 (_initialize_mi_cmd_env): Adjust for disappearance of global
9386 * solib.c (solib_find): Use environment of the current inferior.
9388 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9390 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
9392 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
9394 2010-01-20 Joel Brobecker <brobecker@adacore.com>
9396 Get rid of ada-lang.c:function_name_from_pc.
9397 * ada-lang.c: Add "stack.h" #include.
9398 (function_name_from_pc): Delete.
9399 (is_known_support_routine): Replace call to function_name_from_pc
9400 by call to find_frame_funname.
9401 (ada_unhandled_exception_name_addr_from_raise): Likewise.
9403 2010-01-19 Tom Tromey <tromey@redhat.com>
9406 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
9409 2010-01-19 Tom Tromey <tromey@redhat.com>
9411 * top.c (stop_sig, float_handler, do_nothing): Remove.
9413 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9415 * breakpoint.c (watchpoint_check): Check the call
9416 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
9418 * config/djgpp/fnchange.lst: Add translations for
9419 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
9420 watchpoint-cond-gone-stripped.c.
9422 2010-01-19 Tom Tromey <tromey@redhat.com>
9425 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
9426 into parent scope, and enumerator into grandparent scope.
9428 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9430 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
9432 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9434 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
9435 i[34567]86-*-solaris2.1[0-9]*.
9436 * configure.tgt: Likewise.
9438 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9440 * NEWS: Document the source command enhancement allowing it
9441 to load Python scripts. Document the "set/show script-extension"
9444 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9446 Add -Wunused-function to compile flags.
9447 * configure.ac: Add -Wunused-function to build_warnings.
9448 * configure: Regenerate.
9450 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9452 "delete" ada-lex.c:input function, not used.
9453 * ada-lex.l: #define YY_NO_INPUT.
9455 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9457 Delete free_named_symtabs and associated cleanup.
9458 * symfile.h (free_named_symtabs): Delete declaration.
9459 * symfile.c: Remove some commented out code (clear_symtab_users_once).
9460 (cashier_psymtab): Comment function out.
9462 (free_named_symtabs): Delete.
9463 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
9464 * dbxread.c (end_psymtab): Likewise.
9465 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
9466 * exec.c (exec_close_1): Ditto.
9467 * xcoffread.c (xcoff_end_psymtab): Likewise.
9469 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9471 * stack.c (print_block_frame_labels): Comment function out.
9473 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9475 Delete unused or undefined functions.
9476 * breakpoint.c (ep_parse_optional_filename): Delete.
9477 * dcache.c (dcache_write_line): Remove declaration.
9478 * infrun.c (build_infrun): Remove declaration.
9479 * tracepoint.c (tracepoint_save_command): Remove declaration.
9480 * linux-nat.c (init_lwp_list): Delete. No longer used.
9481 * event-loop.c (check_async_signal_handlers): Delete declaration.
9482 * infrun.c (init_execution_control_state): Delete.
9483 (proceed): Update comment to avoid mentioning
9484 init_execution_control_state.
9485 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
9486 * ada-lang.c (ada_to_static_fixed_value): Delete.
9487 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
9488 * cp-namespace.c (cp_copy_usings): Delete.
9489 * xml-syscall.c (xml_number_of_syscalls): Delete.
9490 * progspace.c (find_program_space_by_num): Delete.
9491 * inflow.c (handle_sigio): Delete declaration.
9492 * hppa-tdep.c (hppa_alignof): Delete.
9493 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
9494 (mipsnbsd_core_osabi_sniffer): Delete.
9496 2010-01-18 Tom Tromey <tromey@redhat.com>
9499 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
9500 (CONST_CAST): New tokens.
9501 (exp): Add new productions.
9502 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
9504 (is_cast_operator): New function.
9505 (yylex): Handle cast operators specially.
9506 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
9507 UNOP_REINTERPRET_CAST>: New cases.
9508 * expprint.c (print_subexp_standard): Likewise.
9509 (op_name_standard): Likewise.
9510 (dump_subexp_body_standard): Likewise.
9511 * parse.c (operator_length_standard): Likewise.
9512 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
9513 UNOP_REINTERPRET_CAST.
9514 * gdbtypes.c (class_types_same_p): New function.
9515 (is_ancestor): Use it.
9516 (is_public_ancestor): New function.
9517 (is_unique_ancestor_worker): Likewise.
9518 (is_unique_ancestor): Likewise.
9519 * gdbtypes.h (class_types_same_p, is_public_ancestor)
9520 (is_unique_ancestor): Declare.
9521 * valops.c (value_reinterpret_cast): New function.
9522 (dynamic_cast_check_1): Likewise.
9523 (dynamic_cast_check_2): Likewise.
9524 (value_dynamic_cast): Likewise.
9525 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
9527 2010-01-18 Joel Brobecker <brobecker@adacore.com>
9529 Fix build failure when building without Python support.
9530 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
9533 2010-01-18 Joel Brobecker <brobecker@adacore.com>
9535 Use XVS field type instead of doing a parallel lookup.
9536 * ada-lang.c (ada_get_base_type): Follow the XVS field type
9537 if it is a reference type instead of doing a type lookup using
9540 2010-01-18 Joel Brobecker <brobecker@adacore.com>
9542 Trust PAD types instead of using PAD___XVS.
9543 * ada-lang.c (trust_pad_over_xvs): New static variable.
9544 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
9545 parallel XVS type, follow the XVS type instead of the PAD type.
9546 (unwrap_value): Make sure that there is no parallel XVE type
9547 before returning the value as is.
9548 (set_ada_list, show_ada_list): New static variables.
9549 (set_ada_command, show_ada_command): New functions.
9550 (_initialize_ada_language): Add new "set/show ada" prefix commands.
9551 Add new "set/show ada trust-PAD-over-XVS" setting.
9553 2010-01-18 Tom Tromey <tromey@redhat.com>
9554 Thiago Jung Bauermann <bauerman@br.ibm.com>
9556 Allow "source" to load python scripts.
9557 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
9558 * python/python.c (source_python_script): New function.
9559 * python/python.h (source_python_script): Add declaration.
9560 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
9561 (script_ext_off, script_ext_soft, script_ext_strict)
9562 (script_ext_enums, script_ext_mode): New static constants.
9563 (show_script_ext_mode, find_and_open_script): New functions.
9564 (source_script): Enhance to handle Python scripts.
9565 (init_cli_cmds): Add set/show script-extension commands.
9567 2010-01-16 Stan Shebs <stan@codesourcery.com>
9569 * tracepoint.h (struct trace_status): Use unsigned long long
9571 * tracepoint.c (trace_status_command): Fix printf directive.
9572 (trace_save_command): Check fwrite returns, fix printf directive.
9573 (trace_filename): New global.
9574 (tfile_open): Set it, check read returns.
9575 (tfile_close): Free trace_filename.
9576 (tfile_get_traceframe_address): Check read returns.
9577 (tfile_trace_find): Ditto.
9578 (tfile_fetch_registers): Ditto.
9579 (tfile_xfer_partial): Ditto.
9580 (tfile_get_trace_state_variable_value): Ditto.
9582 2010-01-15 Stan Shebs <stan@codesourcery.com>
9584 Add trace file support.
9585 * tracepoint.h (enum trace_stop_reason): New enum.
9586 (struct trace_status): New struct.
9587 (parse_trace_status): Declare.
9588 (struct uploaded_tp): Move here from remote.c,
9589 add fields for actions.
9590 (struct uploaded_tsv): New struct.
9591 * tracepoint.c (tfile_ops): New target vector.
9592 (trace_fd): New global.
9593 (tfile_open): New function.
9594 (tfile_close): New function.
9595 (tfile_files_info): New function.
9596 (tfile_get_trace_status): New function.
9597 (tfile_get_traceframe_address): New function.
9598 (tfile_trace_find): New function.
9599 (tfile_fetch_registers): New function.
9600 (tfile_xfer_partial): New function.
9601 (tfile_get_trace_state_variable_value): New function.
9602 (init_tfile_ops): New function.
9603 (_initialize_tracepoint): Call it, add tfile target.
9604 (trace_status): New global.
9605 (current_trace_status): New function.
9606 (trace_running_p): Remove, change all users to get from
9607 current_trace_status()->running.
9608 (get_trace_status): Remove.
9609 (trace_status_command): Call target_get_trace_status directly,
9610 report more detail including tracing stop reasons.
9611 (trace_find_command): Always allow tfind on a file.
9612 (trace_find_pc_command): Ditto.
9613 (trace_find_tracepoint_command): Ditto.
9614 (trace_find_line_command): Ditto.
9615 (trace_find_range_command): Ditto.
9616 (trace_find_outside_command): Ditto.
9617 (trace_frames_offset, cur_offset): Declare as off_t.
9618 (trace_regblock_size): Rename from reg_size, update users.
9619 (parse_trace_status): New function.
9620 (tfile_interp_line): New function.
9621 (disconnect_or_stop_tracing): Ensure current trace
9622 status before asking what to do.
9623 (stop_reason_names): New global.
9624 (trace_save_command): New command.
9625 (get_uploaded_tp): Move here from remote.c.
9626 (find_matching_tracepoint): Ditto.
9627 (merge_uploaded_tracepoints): New function.
9628 (parse_trace_status): Use stop_reason_names.
9629 (_initialize_tracepoint): Define tsave command.
9630 * target.h (target_ops): New fields to_save_trace_data,
9631 to_upload_tracepoints, to_upload_trace_state_variables,
9632 to_get_raw_trace_data, change to_get_trace_status
9633 to take a pointer to a status struct.
9634 (target_save_trace_data): New macro.
9635 (target_upload_tracepoints): New macro.
9636 (target_upload_trace_state_variables): New macro.
9637 (target_get_raw_trace_data): New macro.
9638 * target.c (update_current_target): Add new methods, change
9639 signature of to_get_trace_status.
9640 * remote.c (hex2bin): Make globally visible.
9642 (remote_download_trace_state_variable): Download name also.
9643 (remote_get_trace_status): Update parameter, use
9645 (remote_save_trace_data): New function.
9646 (remote_upload_tracepoints): New function.
9647 (remote_upload_trace_state_variables): New function.
9648 (remote_get_raw_trace_data): New function.
9649 (remote_start_remote): Use them.
9650 (_initialize_remote_ops): Add operations.
9651 * ax-gdb.c: Include breakpoint.h.
9652 * breakpoint.c (create_tracepoint_from_upload): Use
9653 break_command_really, return tracepoint, warn about unimplemented
9655 * NEWS: Mention trace file addition.
9657 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9659 Fix compilation warning on gcc-3.4.
9660 * exec.c (print_section_info): Move the `displacement' variable
9661 initialization to its declaration.
9663 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9665 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
9668 2010-01-15 Eric Botcazou <botcazou@adacore.com>
9670 "info tasks" broken by typedefs in ATCB type definitions.
9671 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
9672 ada_check_typedef before retrieving the length of the type for
9675 2010-01-15 Joel Brobecker <brobecker@adacore.com>
9677 Do not use name-based lookup for unconstrained packed arrays.
9678 * ada-lang.c (find_parallel_type_by_descriptive_type):
9679 Limit the fallback to name-based lookups to the case where
9680 the type is a constrained packed array.
9682 2010-01-15 Joel Brobecker <brobecker@adacore.com>
9684 Enhance gdb-gdb.py to handle main_type.type_specific.
9685 * gdb-gdb.py: Print the type-specific part of struct main_type.
9687 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9689 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
9690 * configure: Regenerate.
9691 * config.in: Regenerate.
9692 * utils.c: Include sys/resource.h.
9693 (dump_core, can_dump_core): New.
9694 (internal_vproblem): Update the comment. Check can_dump_core while
9695 setting dump_core_p. Replace two abort calls by dump_core calls.
9697 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9698 Eli Zaretskii <eliz@gnu.org>
9700 * NEWS: Document the PIE support.
9702 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9704 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
9705 (check_is_pie_binary, _initialize_linux_tdep): Remove.
9707 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9709 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
9710 Replace exec_entry_point call by bfd_get_start_address.
9712 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9714 Support Valgrind attachments broken by the PIE support.
9715 * auxv.c: Include gdbcore.h.
9716 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
9717 parameters ops, object and annex. Remove their assertions.
9718 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
9719 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
9720 (memory_xfer_auxv): ... here.
9721 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
9723 * procfs.c (procfs_xfer_partial): Likewise.
9724 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
9725 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
9726 (svr4_solib_create_inferior_hook): Conditionalize the
9727 svr4_relocate_main_executable call.
9729 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9731 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
9732 target_section. Find SECT in current_target_sections, gdb_assert it.
9733 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
9735 * symtab.c (lookup_objfile_from_block): Return the binary file instead
9736 of separate debug info file.
9738 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9740 Support PIEs with no symfile_objfile.
9741 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
9742 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
9744 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9746 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
9748 (svr4_static_exec_displacement): ... a new function.
9749 (svr4_exec_displacement): New function.
9750 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
9751 new_offsets using alloca now. Remove variable old_chain and changed.
9752 Call objfile_relocate unconditionally now.
9754 2010-01-14 Doug Evans <dje@google.com>
9756 * gdbtypes.c (arch_flags_type): Fix comment.
9757 * gdbtypes.h (arch_composite_type): Fix comment.
9759 2009-01-14 Tristan Gingold <gingold@adacore.com>
9761 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
9762 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
9763 to symbol_file_add_from_bfd. Add OSO as separate objfile.
9764 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
9765 macho_add_oso_symfile.
9766 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
9768 2010-01-14 Joel Brobecker <brobecker@adacore.com>
9770 Tru64: Dead threads are never deleted.
9771 * dec-thread.c (dec_thread_ptid_is_alive): New function.
9772 (dec_thread_count_gdb_threads): Fix counter increment.
9773 (dec_thread_add_gdb_thread): Fix *listp increment.
9774 (resync_thread_list): Fix bug in deletion of dead threads that
9775 caused all threads to be deleted, instead of just the dead ones.
9777 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
9781 * python/python-internal.h: Add lazy_string_object_type
9783 (create_lazy_string_object, gdbpy_initialize_lazy_string)
9784 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
9785 * python/py-value.c (valpy_lazy_string): New function.
9786 (convert_value_from_python): Add lazy string conversion.
9787 * python/py-prettyprint.c (pretty_print_one_value): Check if
9788 return is also a lazy string.
9789 (print_string_repr): Add lazy string printing branch.
9790 (print_children): Likewise.
9791 * python/py-lazy-string.c: New file. Implement lazy strings.
9792 * python/python.c (_initialize_python): Call
9793 gdbpy_initialize_lazy_string.
9794 * varobj.c (value_get_print_value): Add lazy string printing
9795 branch. Account for encoding.
9796 * c-lang.c (c_printstr): Account for new encoding argument. If
9797 encoding is NULL, find encoding suited for type, otherwise use
9799 * language.h (language_defn): Add encoding argument.
9800 (LA_PRINT_STRING): Likewise.
9801 * language.c (unk_lang_printstr): Update to reflect new encoding
9802 argument to language_defn.
9803 * ada-lang.h (ada_printstr): Likewise.
9804 * c-lang.h (c_printstr): Likewise.
9805 * p-lang.h (pascal_printstr);
9806 * f-lang.c (f_printstr): Likewise.
9807 * m2-lang.c (m2_printstr): Likewise.
9808 * objc-lang.c (objc_printstr): Likewise.
9809 * p-lang.c (pascal_printstr): Likewise.
9810 * scm-lang.c (scm_printstr): Likewise.
9811 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
9813 * ada-valprint.c (ada_printstr): Likewise.
9814 * f-valprint.c (f_val_print): Likewise
9815 * m2-valprint.c (m2_val_print): Likewise.
9816 * p-valprint.c (pascal_val_print): Likewise.
9817 * expprint.c (print_subexp_standard): Likewise.
9818 * valprint.c (val_print_string): Likewise.
9819 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
9820 (SUBDIR_PYTHON_SRCS): Likewise.
9821 (py-lazy-string.o): New rule.
9823 2010-01-13 Doug Evans <dje@google.com>
9825 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
9826 uninitialized" warning from gcc on local `tree'.
9828 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
9830 Implement core awareness.
9832 * bcache.c (compare_ints): Remove
9833 (print_percentage): Use compare_positive_ints.
9834 * defs.h (compare_positive_ints): Declare.
9835 * linux-nat.h (struct lin_lwp): New field core.
9836 (linux_nat_core_of_thread_1): Declare.
9837 * linux-nat.c (add_lwp): Init the 'core' field.
9838 (linux_nat_wait_1): Record the core.
9839 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
9840 (linux_nat_add_target): Register the above.
9841 * linux-thread-db.c (update_thread_core): New.
9842 (thread_db_find_new_threads): Update core information for
9844 * remote.c (struct private_thread_info): New.
9845 (free_private_thread_info, demand_private_info): New.
9846 (PACKET_qXfer_threads, use_osdata_threads): New.
9847 (struct thread_item, threads_parsing_context
9848 (start_thread, end_thread, thread_attributes)
9849 (thread_children, threads_children, threads_elements): New.
9850 (remote_threads_info): Try qXfer:threads before anything
9852 (remote_protocol_packets): Register qXfer:threads.
9853 (remote_open_1): Init use_osdata_threads.
9854 (struct stop_reply): New field 'core'.
9855 (remote_parse_stop_reply): Parse core number.
9856 (process_stop_reply): Record core number.
9857 (remote_xfer_partial): Handle qXfer:threads.
9858 (remote_core_of_thread): New.
9859 (init_remote_ops): Register remote_core_of_thread.
9860 (_initialize_remote): Register qXfer:read.
9861 * target.c (target_core_of_thread): New
9862 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
9863 (struct target_ops): New field to_core_of_threads.
9864 (target_core_of_thread): Declare.
9865 * gdbthread.h (struct thread_info): New field private_dtor.
9866 * thread.c (print_thread_info): Report the core.
9867 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
9868 * utils.c (compare_positive_ints): New.
9869 * features/threads.dtd: New.
9870 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
9871 * mi/mi-main.c (struct collect_cores_data, collect_cores)
9872 (do_nothing, free_vector_of_osdata_items)
9873 (splay_tree_int_comparator, free_splay_tree): New.
9874 (print_one_inferior_data): Implemented printing of selected
9875 inferiors. Collect and print cores.
9876 (output_cores): New.
9877 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
9878 thread groups together with --available.
9880 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9882 * configure: Regenerate (for _STRUCTURED_PROC).
9884 2010-01-12 Joel Brobecker <brobecker@adacore.com>
9886 Delete dead function.
9887 * ada-lang.c (extract_string): Delete. No longer used.
9889 2010-01-12 Joel Brobecker <brobecker@adacore.com>
9891 Fix -Wunused warning in dec-thread.c.
9892 * dec-thread.c (dec_thread_count_gdb_threads)
9893 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
9895 2010-01-12 Joel Brobecker <brobecker@adacore.com>
9897 * ada-valprint.c (ada_print_floating): Remove trailing space.
9899 2010-01-12 Joel Brobecker <brobecker@adacore.com>
9901 Add support for DW_AT_GNAT_descriptive_type.
9902 * gdbtypes.h (enum type_specific_kind): New enum.
9903 (struct main_type) [type_specific_field]: New component.
9904 [type_specific]: Add new component "gnat_stuff".
9905 (struct gnat_aux_type): New type.
9906 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
9907 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
9908 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
9909 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
9910 (TYPE_SPECIFIC_FIELD): New macros.
9911 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
9912 type does not hold any cplus-specific data.
9913 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
9914 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
9915 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
9916 cplus-specific data.
9917 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
9918 Set new component TYPE_SPECIFIC_FIELD (type).
9919 (gnat_aux_default): New constant.
9920 (allocate_gnat_aux_type): New function.
9921 (init_type): Add initialization the type-specific stuff for
9922 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
9923 (print_gnat_stuff): New function.
9924 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
9925 specific data. Adjust code that prints the contents of the
9926 type-specific union using the TYPE_SPECIFIC_FIELD value.
9927 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
9928 the type cplus stuff for Ada types.
9929 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
9930 Error out if these routines are called with an Ada type.
9931 (read_structure_type, read_array_type, read_subrange_type):
9932 Add call to set_descriptive_type.
9933 (set_die_type): Initialize the gnat-specific data if necessary.
9934 (need_gnat_info, die_descriptive_type, set_descriptive_type):
9936 * ada-lang.c (decode_constrained_packed_array_type): Use
9937 decode_constrained_packed_array_type instead of doing a standard
9938 lookup to locate a parallel type.
9939 (find_parallel_type_by_descriptive_type): New function.
9940 (ada_find_parallel_type_with_name): New function.
9941 (ada_find_parallel_type): Reimplement using
9942 ada_find_parallel_type_with_name.
9943 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
9944 to check if type has a cplus stuff.
9945 * linespec.c (total_number_of_methods): Likewise.
9946 * mdebugread.c (new_type): Likewise.
9948 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9950 * NEWS: Document the 0b binary number prefix parsing.
9952 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9954 * objfiles.c (objfile_relocate1): Change the return type to int.
9955 Describe the new return value. Return non-zero if data changed.
9956 (objfile_relocate): New variable changed. Set it. Call
9957 breakpoint_re_set depending on CHANGED.
9959 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9961 Implement binary numbers parsing.
9962 * c-exp.y (parse_number): New case 'b' and 'B'.
9964 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9965 Tristan Gingold <gingold@adacore.com>
9967 * solib.c (info_sharedlibrary_command): Replace
9968 objfile_has_partial_symbols and objfile_has_full_symbols calls by
9969 objfile_has_symbols.
9971 2010-01-10 Joel Brobecker <brobecker@adacore.com>
9973 * NEWS: Document the improvements made to the mips-irix port.
9975 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9977 Fix the documentation of valprint.c:value_print.
9978 * valprint.c (value_print): Update the function description to
9979 mention that the syntax of the output follows the current_language,
9982 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9984 Fix displacement of separate debug info files.
9985 * objfiles.c (objfile_relocate): Rename to ...
9986 (objfile_relocate1): ... here and make it static. Extend the comment.
9987 (objfile_relocate): New function.
9988 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
9989 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
9990 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
9991 allocated using alloca.
9992 * symfile.c (copy_section_addr_info): Remove.
9993 (build_section_addr_info_from_objfile): Make it global. New variables
9994 addr_bit and mask, use them.
9995 * symfile.h (build_section_addr_info_from_objfile): New prototype.
9996 (copy_section_addr_info): Remove.
9998 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10000 Signal unwinder for mips-irix N32.
10001 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
10003 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
10004 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
10005 (SIGCONTEXT_LO_OFF): New macros.
10006 (mips_irix_n32_tramp_frame_init): New function.
10007 (mips_irix_n32_tramp_frame): New static constant.
10008 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
10010 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10012 Breakpoint in shared library does not work on mips-irix.
10013 * procfs.c: #include "observer.h".
10014 (procfs_inferior_created): New function, moving here the code
10015 which unsets the syssgi syscall-exit notifications.
10016 (procfs_create_inferior): Remove the code which unsets the syssgi
10017 syscall-exit notifications. It is too early to do this here.
10018 (_initialize_procfs): Attach the procfs_inferior_created observer.
10020 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10022 Wrong return convention for arrays (mips-irix).
10023 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
10024 128 bits or smaller are returned the same way as structs
10025 and unions of the the same size.
10027 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10029 Cannot set the PC on mips-irix.
10030 * irix5-nat.c (fill_gregset): Check regno against the raw PC
10031 register number, no the cooked one.
10033 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10035 Error while loading core file on mips-irix.
10036 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
10037 if debugging from a core file.
10039 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10041 GDB hangs when attaching to process on mips-irix.
10042 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
10043 attaching to a process.
10045 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10047 Use the correct breakpoint instruction on mips-irix.
10048 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
10049 containing the correct breakpoint instruction to use on mips-irix.
10050 Use it when the osabi is GDB_OSABI_IRIX.
10052 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10054 -Wunused warning in procfs.c (mips-irix only).
10055 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
10056 throughout instead of using praddset and prdelset respectively.
10058 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10060 GDB crash while stepping into function.
10061 * infrun.c (handle_inferior_event): Refetch the current frame
10062 after handling what.main_action, in case that pointer became
10065 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10067 Fix build failure of solaris-hosted cross debuggers.
10068 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
10070 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
10072 Fix build failure on sparc-solaris.
10073 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
10075 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10077 Move some symfile code into subroutines.
10078 * symfile.h (relative_addr_info_to_section_offsets)
10079 (addr_info_make_relative): New prototypes.
10080 * symfile.c (default_symfile_offsets): Move a part to ...
10081 (relative_addr_info_to_section_offsets): ... this new function.
10082 (default_symfile_offsets): Call it.
10083 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
10085 (addr_info_make_relative): ... this new function.
10087 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10089 Add from_tty to solib_create_inferior_hook.
10090 * infcmd.c (post_create_inferior): Move solib_add after
10091 solib_create_inferior_hook. Pass from_tty to
10092 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
10093 0 from_tty and comment why.
10094 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
10095 * linux-nat.c (linux_child_follow_fork): Likewise.
10096 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
10097 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
10099 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
10100 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
10101 * solib-null.c (null_solib_create_inferior_hook): Likewise.
10102 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
10103 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
10104 * solib-som.c (som_solib_create_inferior_hook): Likewise.
10105 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
10106 Pass it to svr4_so_ops.solib_create_inferior_hook.
10107 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
10109 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
10111 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
10113 * solib-target.c (solib_target_solib_create_inferior_hook): New
10114 parameter from_tty.
10115 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
10116 it to ops->solib_create_inferior_hook.
10117 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
10118 Move solib_add after solib_create_inferior_hook, call it now with
10119 from_tty as 0. New comment there.
10120 * solib.h (solib_create_inferior_hook): New parameter from_tty.
10121 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
10124 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
10126 Fix multiexec race.
10127 * infrun.c (handle_inferior_event): Use get_thread_regcache
10128 with events ptid, not get_current_regcache.
10130 2009-01-08 Joel Brobecker <brobecker@adacore.com>
10132 GDB crash with empty executable name (MinGW).
10133 * source.c (openp): Add assert that parameter string is not NULL.
10134 if parameter string is an empty string, then return with a failure
10137 2009-01-08 Joel Brobecker <brobecker@adacore.com>
10139 Get rid of support for VAX Floats.
10140 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
10141 (ada_vax_float_print_function): Delete.
10142 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
10143 (ada_vax_float_print_function): Delete.
10144 * ada-typeprint.c (print_vax_floating_point_type): Delete.
10145 (ada_print_type): Remove support for VAX floats.
10146 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
10148 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10150 * stabsread.c (read_args): Handle zero arguments.
10152 2009-01-08 Joel Brobecker <brobecker@adacore.com>
10154 Cannot find in-tree libiconv.a after reconfigure.
10155 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
10156 that we can use, then cache the path to this archive.
10157 * configure: Regenerate.
10159 2010-01-07 Stan Shebs <stan@codesourcery.com>
10161 Make tracepoint operations go through target vector.
10162 * target.h (enum trace_find_type): New enum.
10163 (struct target_ops): New fields to_trace_init,
10164 to_download_tracepoint, to_download_trace_state_variable,
10165 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
10166 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
10167 to_set_disconnected_tracing.
10168 (target_trace_init): New macro.
10169 (target_download_tracepoint): New macro.
10170 (target_download_trace_state_variable): New macro.
10171 (target_trace_start): New macro.
10172 (target_trace_set_readonly_regions): New macro.
10173 (target_get_trace_status): New macro.
10174 (target_trace_stop): New macro.
10175 (target_trace_find): New macro.
10176 (target_get_trace_state_variable_value): New macro.
10177 (target_set_disconnected_tracing): New macro.
10178 * target.c (update_current_target): Inherit and set defaults for
10179 tracepoint operations.
10180 * tracepoint.c (default_collect): Make globally visible.
10181 (target_is_remote): Remove, along with all calls.
10182 (tvariables_info): Call target_get_trace_state_variable_value.
10183 (remote_set_transparent_ranges): Remove.
10184 (trace_start_command): Call target_trace_init,
10185 target_download_tracepoint, etc.
10186 (download_tracepoint): Remove.
10187 (trace_stop_command): Simplify.
10188 (stop_tracing): Call target_trace_stop.
10189 (get_trace_status): Call target_get_trace_status.
10190 (trace_status_command): Add case for targets that cannot trace.
10191 (finish_tfind_command): Change to take numerical arguments, call
10193 (trace_find_command): Update call to finish_tfind_command.
10194 (trace_find_pc_command): Ditto.
10195 (trace_find_tracepoint_command): Ditto.
10196 (trace_find_line_command): Ditto.
10197 (trace_find_range_command): Ditto.
10198 (trace_find_outside_command): Ditto.
10199 (set_disconnected_tracing_value): Call
10200 target_set_disconnected_tracing.
10201 * remote.c: Add protocol encoding bits from tracepoint.c.
10202 (trace_error): Move from tracepoint.c.
10203 (remote_get_noisy_reply): Ditto.
10204 (free_actions_list_cleanup_wrapper): Ditto.
10205 (free_actions_list): Ditto.
10206 (remote_trace_init): New function.
10207 (remote_download_tracepoint): New function.
10208 (remote_download_trace_state_variable): New function.
10209 (remote_trace_set_readonly_regions): New function.
10210 (remote_trace_start): New function.
10211 (remote_get_trace_status): New function.
10212 (remote_trace_stop): New function.
10213 (remote_trace_find): New function.
10214 (remote_download_trace_state_variable): New function.
10215 (remote_set_disconnected_tracing): New function.
10216 (init_remote_ops): Add tracepoint operations.
10218 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
10220 2010-01-07 Tristan Gingold <gingold@adacore.com>
10222 * symfile.c (build_section_addr_info_from_objfile): New function.
10223 (symbol_file_add_separate): Don't use offsets from objfile but
10224 built an addr info.
10226 2010-01-06 Stan Shebs <stan@codesourcery.com>
10228 Support disconnected tracing.
10229 * infcmd.c (detach_command): Ask whether to stop tracing.
10230 * cli/cli-cmds.c (quit_command): Ditto.
10231 * breakpoint.h (struct breakpoint): New field number_on_target.
10232 * breakpoint.c (create_tracepoint_from_upload): New function.
10233 (get_tracepoint_by_number_on_target): New function.
10234 * remote.c (struct remote): New field disconnected_tracing.
10235 (remote_disconnected_tracing_feature): New function.
10236 (remote_protocol_features): Add DisconnectedTracing.
10237 (struct uploaded_tp): New struct.
10238 (uploaded_tps): New global.
10239 (get_uploaded_tp): New function.
10240 (find_matching_tracepoint): New function.
10241 (remote_get_tracing_state): New function.
10242 (remote_start_remote): Call it.
10243 * tracepoint.c (disconnected_tracing): New global.
10244 (trace_start_command): Initialize number_on_target.
10245 (stop_tracing): New function, split out from...
10246 (trace_stop_command): Call stop_tracing.
10247 (get_trace_status): New function, split out from...
10248 (trace_status_command): Call get_trace_status, add info on
10249 disconnection behavior.
10250 (disconnect_or_stop_tracing): New function.
10251 (finish_tfind_command): Translate from number on target.
10252 (trace_find_tracepoint_command): Translate to number on target.
10253 (send_disconnected_tracing_value): New function.
10254 (set_disconnected_tracing): New function.
10255 (_initialize_tracepoint): Add disconnected-tracing variable.
10256 * NEWS: Mention disconnected tracing.
10258 2010-01-06 Tristan Gingold <gingold@adacore.com>
10260 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
10261 parameter to main_objfile. Iterate on all separate debug objfiles.
10262 * symfile.h (symbol_file_add_separate)
10263 (find_separate_debug_file_by_debuglink): Remove parameter names.
10264 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
10265 (reread_symbols): Use free_objfile_separate_debug.
10266 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
10268 (objfile_separate_debug_iterate, add_separate_debug_objfile)
10269 (free_objfile_separate_debug): New prototypes.
10270 * objfiles.c (objfile_separate_debug_iterate): New function.
10271 (add_separate_debug_objfile, free_objfile_separate_debug): New
10273 (free_objfile): Use free_objfile_separate_debug. Adjust for
10274 multiple separate debug objfile.
10275 (objfile_has_symbols): Adjust comment. Iterate on all separate
10277 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
10279 (lookup_minimal_symbol_text): Ditto.
10280 (lookup_minimal_symbol_by_pc_name): Ditto.
10281 (lookup_minimal_symbol_solib_trampoline): Ditto.
10282 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
10285 2010-01-05 Stan Shebs <stan@codesourcery.com>
10287 Add fast tracepoints.
10288 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
10289 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
10290 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
10291 * breakpoint.c (tracepoint_type): New function.
10292 (ALL_TRACEPOINTS): Use it.
10293 (should_be_inserted): Ditto.
10294 (bpstat_check_location): Ditto.
10295 (print_one_breakpoint_location): Ditto.
10296 (user_settable_breakpoint): Ditto.
10297 (set_breakpoint_location_function): Ditto.
10298 (disable_breakpoints_in_shlibs): Ditto.
10299 (delete_trace_command): Ditto.
10300 (print_it_typical): Add bp_fast_tracepoint case.
10301 (bpstat_what): Ditto.
10302 (print_one_breakpoint_location): Ditto.
10303 (allocate_bp_location): Ditto.
10305 (breakpoint_re_set_one): Ditto.
10306 (disable_command): Ditto.
10307 (enable_command): Ditto.
10308 (check_fast_tracepoint_sals): New function.
10309 (break_command_really): Call it.
10310 (ftrace_command): New function.
10311 (_initialize_breakpoint): Add ftrace command.
10312 * gdbarch.sh (fast_tracepoint_valid_at): New.
10313 * gdbarch.h, gdbarch.c: Regenerate.
10314 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
10315 (i386_gdbarch_init): Use it.
10316 * remote.c (struct remote_state): New field fast_tracepoints.
10317 (PACKET_FastTracepoints): New packet config type.
10318 (remote_fast_tracepoint_feature): New function.
10319 (remote_protocol_features): Add FastTracepoints.
10320 (remote_supports_fast_tracepoints): New function.
10321 (_initialize_remote): Add FastTracepoints.
10322 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
10323 * NEWS: Mention fast tracepoints.
10325 2010-01-06 Joel Brobecker <brobecker@adacore.com>
10327 * gdb-gdb.py: New file.
10329 2010-01-05 Michael Snyder <msnyder@vmware.com>
10331 * infrun.c (handle_inferior_event): Fix typo in comment.
10333 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10335 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
10337 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10339 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
10341 (s390-linux32-expedite): Define.
10342 (s390-linux64-expedite): Define.
10343 (s390x-linux64-expedite): Define.
10344 * features/s390-acr.xml: New file.
10345 * features/s390-fpr.xml: New file.
10346 * features/s390-core32.xml: New file.
10347 * features/s390-core64.xml: New file.
10348 * features/s390x-core64.xml: New file.
10349 * features/s390-linux32.xml: New file.
10350 * features/s390-linux64.xml: New file.
10351 * features/s390x-linux64.xml: New file.
10352 * features/s390-linux32.c: New generated file.
10353 * features/s390-linux64.c: New generated file.
10354 * features/s390x-linux64.c: New generated file.
10356 * regformats/s390-linux32.dat: New generated file.
10357 * regformats/s390-linux64.dat: New generated file.
10358 * regformats/s390x-linux64.dat: New generated file.
10359 * regformats/reg-s390.dat: Remove.
10360 * regformats/reg-s390x.dat: Remove.
10362 * s390-nat.c: Include "auxv.h" and <elf.h>.
10363 (HWCAP_S390_HIGH_GPRS): Define if undefined.
10364 (s390_target_wordsize): New function.
10365 (s390_auxv_parse): Likewise.
10366 (s390_get_hwcap): Likewise.
10367 (s390_read_description): Likewise.
10368 (_initialize_s390_nat): Install s390_auxv_parse and
10369 s390_read_description.
10371 * s390-tdep.c: Include "features/s390-linux32.c",
10372 "features/s390-linux64.c", and "features/s390x-linux64.c".
10373 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
10374 (s390_register_call_saved): New function.
10375 (s390_register_name): Remove.
10376 (s390_register_type): Remove.
10377 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
10378 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
10379 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
10380 (s390_pseudo_register_name): New function.
10381 (s390_pseudo_register_type): New function.
10382 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
10383 Handle full GPR pesudos and varying pseudo register numbers.
10384 (s390_pseudo_register_write): Likewise
10385 (s390x_pseudo_register_read): Remove.
10386 (s390x_pseudo_register_write): Likewise.
10387 (s390_register_group): Remove.
10388 (s390_pseudo_register_group): New function.
10389 (s390_regmap_gregset): Add GPR upper halves.
10390 (s390x_regmap_gregset): Likewise.
10391 (s390_regmap_fpregset): Likewise.
10392 (s390_regmap_upper): New global variable.
10393 (s390_upper_regset): New global variable.
10394 (s390_upper_regset_sections): New global variable.
10395 (s390_regset_from_core_section): Handle GPR upper halves.
10396 (s390_core_read_description): New function.
10397 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
10398 register information. Handle varying pseudo register numbers.
10399 (s390_backchain_frame_unwind_cache): Likewise.
10400 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
10401 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
10402 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
10403 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
10404 Handle varying pseudo register numbers.
10405 (s390_unwind_pc): Handle varying pseudo register numbers.
10406 (s390_dwarf2_prev_register): New function.
10407 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
10408 register information. Handle varying pseudo register numbers.
10409 Install s390_dwarf2_prev_register to unwind full GPRs.
10410 (s390_gdbarch_init): Handle target descriptions. Assign varying
10411 pseudo register numbers. Install s390_adjust_frame_regnum.
10412 (_initialize_s390_tdep): Initialize target descriptions.
10414 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
10415 (S390_NUM_REGS): Redefine to include upper half registers.
10416 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
10417 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
10418 (tdesc_s390_linux32): Add declaration.
10419 (tdesc_s390_linux64): Likewise.
10420 (tdesc_s390x_linux64): Likewise.
10422 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10424 * regset.h (struct core_regset_section): Add HUMAN_NAME.
10425 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
10426 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
10427 (ppc_linux_vmx_regset_sections): Likewise.
10428 (ppc_linux_fp_regset_sections): Likewise.
10430 * corelow.c (get_core_register_section): Constify arguments.
10431 (get_core_registers): Use gdbarch_core_regset_sections instead
10432 of hard-coded platform-specific register section names.
10434 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10436 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
10437 a register, assume the least-significant part is used.
10438 (write_pieced_value): Likewise.
10440 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10442 * printcmd.c: Include "arch-utils.h".
10443 (do_one_display): Re-parse expression if current architecture changed.
10445 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10446 Joel Brobecker <brobecker@adacore.com>
10448 * gdbtypes.c (check_typedef): New comment on type length.
10449 * value.c (allocate_value_lazy): Remove the unused atype variable. New
10450 comment on type length.
10451 (value_primitive_field): Keep the original TYPE value, new comment.
10453 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10455 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
10456 p_start. Change != comparisons to > and < comparisons.
10458 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10460 * cli/cli-script.c (process_next_line): Check P2 overrun.
10462 2009-01-01 Joel Brobecker <brobecker@adacore.com>
10464 Update the copyright hearder to add year 2010 for most GDB files.
10466 2009-01-01 Joel Brobecker <brobecker@adacore.com>
10468 Fix build failure in inf-ptrace.c.
10469 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
10471 2010-01-01 Joel Brobecker <brobecker@adacore.com>
10473 * top.c (print_gdb_version): Update copyright year.
10475 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
10477 Fix break *FUN'address thread NUM.
10478 * ada-lex.l (task): Expand rule to also match the thread keyword.
10480 2010-01-01 Joel Brobecker <brobecker@adacore.com>
10482 Fix break *FUN'address task NUM.
10483 * ada-lex.l (task): New rule.
10484 * ada-lang.c (valid_task_id): Make sure the Ada task list has
10485 been built before using it.
10487 For older changes see ChangeLog-2009.
10493 version-control: never