1 2010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
3 * gdbtypes.c (do_is_ancestor): New function.
4 (is_ancestor): Use do_is_ancestor.
5 (is_public_ancestor): Use do_is_ancestor.
7 2010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
9 * ser-go32.c (struct dos_ops): Add missing fdopen field.
11 2010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
13 * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
15 2010-10-11 Doug Evans <dje@google.com>
17 * c-typeprint.c (c_type_print_modifier): Add note that this prints
18 the address space id too.
20 2010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
22 Fix attaching to re-prelinked executables on ppc64.
23 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
24 initialize it, try to adjust FILESZ field by it.
26 2010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
28 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
29 messages if info_verbose.
31 2010-10-08 Ken Werner <ken.werner@de.ibm.com>
33 * valops.c (value_cast): Handle vector types.
34 * valarith.c (value_binop): Widen scalar to vector if appropriate.
36 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
38 * arm-tdep.c (thumb_expand_immediate): New function.
39 (thumb_instruction_changes_pc): Likewise.
40 (thumb2_instruction_changes_pc): Likewise.
41 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
42 prologue parsing. Improved support for optimized code.
43 (thumb_scan_prologue): Do not reply on line-number information,
44 use same heuristics as arm_scan_prologue insead.
45 (skip_prologue_function): Accept functions
46 "__tls_get_addr" and "__aeabi_read_tp".
48 2010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
49 Daniel Jacobowitz <dan@codesourcery.com>
51 * arm-tdep.c (thumb_in_function_epilogue_p)
52 (arm_in_function_epilogue_p): New.
53 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
54 gdbarch_in_function_epilogue_p callback.
56 2010-10-07 Doug Evans <dje@google.com>
58 * cc-with-index.sh (output_file): Default to a.out.
60 * dwarf2read.c (mapped_index): Rename member index_table to
61 symbol_table and index_table_slots to symbol_table_slots.
63 (create_symbol_hash_table): Renamed from create_index_table.
65 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
66 (write_hash_table): Rename local index_table to symbol_hash_table.
68 * addrmap.h (addrmap_foreach_fn): New typedef.
69 (addrmap_foreach): Declare.
70 * addrmap.c (struct addrmap_funcs): New member foreach.
71 (addrmap_foreach): New function.
72 (addrmap_fixed_foreach): New function.
73 (addrmap_fixed_funcs): Update.
74 (struct mutable_foreach_data): New struct.
75 (addrmap_mutable_foreach_worker): New function.
76 (addrmap_mutable_foreach): New function.
77 (addrmap_mutable_funcs): Update.
79 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
81 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
84 2010-10-07 Paul Hilfinger <hilfinger@adacore.com>
86 * ada-lang.c (full_match): Declare.
87 (ada_match_name): Rename to match_name (we should avoid prefixing static
89 (match_name): New name for ada_match_name.
90 (struct ada_psym_data): Remove and replace with...
91 (struct match_data): User data for map_matching_symbols.
92 (ada_add_psyms): Remove.
93 (aux_add_nonlocal_symbols): New function, used as callback for
95 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
97 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
98 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
99 Rework to use map_matching_symbols instead of map_ada_symtabs.
100 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
101 * psymtab.c: Include dependency on dictionary.h.
102 (match_partial_symbol): New function.
103 (ada_lookup_partial_symbol): Remove.
104 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
105 (map_matching_symbols_psymtab): New function.
106 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
107 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
109 2010-10-06 Paul Hilfinger <hilfinger@adacore.com>
111 * ada-lang.c (ada_match_name): Use new API for wild_match.
112 (wild_match): Change API to be consistent with that of strcmp_iw;
113 return 0 for a match, and switch operand order.
114 (full_match): New function.
115 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
116 matching to allow use of hashing.
117 * dictionary.c (struct dict_vector): Generalize iter_name_first,
118 iter_name_next ot iter_match_first, iter_match_next.
119 (iter_name_first_hashed): Replace with iter_match_first_hashed.
120 (iter_name_next_hashed): Replace with iter_match_next_hashed.
121 (iter_name_first_linear): Replace with iter_match_first_linear.
122 (iter_name_next_linear): Replace with iter_match_next_linear.
123 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
124 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
125 (dict_iter_match_first): New function.
126 (dict_iter_match_next): New function.
127 (dict_hash): New function.
128 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
129 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
131 2010-10-06 Doug Evans <dje@google.com>
133 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
135 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
137 * dwarf2read.c (read_tag_const_type): Handle const arrays.
139 2010-10-06 Doug Evans <dje@google.com>
141 * Makefile.in (REQUIRED_SUBDIRS): New var.
142 (subdir_do): Verify required subdir Makefiles exist.
144 Create subdir data-directory.
145 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
146 data-directory/Makefile.in.
147 (SUBDIRS): Add data-directory.
148 (all): Remove xml-syscall-copy dependency.
149 (xml-syscall-copy): Moved to data-directory/Makefile.in as
151 (xml-syscall-install): Moved to data-directory/Makefile.in as
153 (install-only): Remove xml-syscall-install dependency.
154 (all-data-directory): New rule.
155 (data-directory/Makefile): New rule.
156 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
157 * configure: Regenerate.
158 * data-directory/Makefile.in: New file.
159 * python/lib/gdb/__init__.py: New file.
161 2010-10-06 Joel Brobecker <brobecker@adacore.com>
163 Fix ARI warnings in advance_wild_match.
164 * ada-lang.c (advance_wild_match): Delete local variable t2.
165 Adjust code accordingly. Minor reformatting.
167 2010-10-06 Ken Werner <ken.werner@de.ibm.com>
169 * gdbtypes.h (struct main_type): Remove flag_nottext.
170 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
171 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
172 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
173 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
174 of TYPE_FLAG_NOTTEXT.
175 (init_type): Remove the initialization of the flag_nottext field.
176 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
178 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
180 2010-10-04 Doug Evans <dje@google.com>
182 * cc-with-index.sh: New file.
184 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
186 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
187 (create_cus_from_index, create_addrmap_from_index): Ditto.
188 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
189 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
190 (dw2_do_expand_symtabs_matching): Ditto.
191 (eq_strtab_entry, create_strtab, add_string): Ditto.
192 (hash_strtab_entry): Ditto.
193 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
194 (create_index_table, create_mapped_symtab, find_slot): Ditto.
195 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
196 (write_hash_table, add_address_entry, write_psymbols): Ditto.
197 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
198 (write_psymtabs_to_index): Ditto.
200 2010-10-04 Joel Brobecker <brobecker@adacore.com>
202 * ada-lang.c: #include "value.h".
203 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
204 arguments. Implement using value_allocate_space_in_inferior
205 instead of allocating memory from the stack.
206 (make_array_descriptor): Remove gdbarch and sp parameters. Update
207 calls to ensure_lval.
208 (ada_convert_actual): Remove gdbarch and sp parameters. Update
209 calls to make_array_descriptor and ensure_lval.
210 * ada-lang.h (ada_convert_actual): Update declaration.
211 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
213 2010-10-04 Doug Evans <dje@google.com>
215 * python/python.c (_initialize_python): Define new function
216 GdbSetPythonDirectory in python. Use it to update sys.path and
219 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
221 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
222 incorporating and generalizing print_record_field_types.
223 (print_record_field_types): Change return value and update comment.
224 Re-implement using print_selected_record_field_types.
225 (print_choices): Print "=>" here.
226 Handle case of unencoded variant branch.
227 (print_variant_clauses): Reformat comment.
228 Special-case unencoded variant branch.
230 2010-10-03 Paul Hilfinger <hilfinger@adacore.com>
232 * ada-lang.c (wild_match): Reimplement.
233 Change API to eliminate unused length argument, reverse arguments and
234 make 0 the 'true' return value.
235 (advance_wild_match): New auxiliary function for wild_match to improve
237 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
238 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
240 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
242 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
244 2010-10-01 Doug Evans <dje@google.com>
246 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
247 for `save gdb-index' command.
249 2010-10-01 Tom Tromey <tromey@redhat.com>
251 * symfile.h (allocate_symtab): Update.
252 * symfile.c (allocate_symtab): Make 'filename' const.
253 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
254 (add_psymbol_to_list): Likewise.
255 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
257 (add_psymbol_to_list): Update.
258 * mdebugread.c (new_symtab): Make 'name' const.
259 (psymtab_to_symtab_1): Make 'filename' const.
260 * elfread.c (elfstab_offset_sections): Update.
261 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
262 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
263 (psymtab_include_file_name): Update.
264 * dbxread.c (find_stab_function_addr): Make 'filename' const.
265 * buildsym.h (start_subfile): Update.
266 * buildsym.c (start_subfile): Make arguments const.
268 2010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
270 * fork-child.c (breakup_args): Fix crash if shell forking is
271 disabled at compile time.
273 2010-10-01 Joel Brobecker <brobecker@adacore.com>
275 * ada-lang.c (desc_bounds): Add handling of the case where
276 the P_BOUNDS field is a pointer to a stub.
277 (desc_data_target_type): Same for P_ARRAY field.
278 (ada_check_typedef): Strip the typedef layers from the type
279 found by ada_find_any_type.
281 2010-10-01 Joel Brobecker <brobecker@adacore.com>
283 * sparc-tdep.c (sparc32_frame_align): New function.
284 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
285 * sparc64-tdep.c (sparc64_frame_align): New function.
286 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
288 2010-09-30 H.J. Lu <hongjiu.lu@intel.com>
290 * defs.h (MAX_REGISTER_SIZE): Set to 64.
292 2010-09-30 Tom Tromey <tromey@redhat.com>
294 * symfile.h (struct sym_fns) <next>: Remove.
295 (add_symtab_fns): Update.
296 * symfile.c (sym_fns_ptr): New typedef.
297 (symtab_fns): Now a VEC.
298 (add_symtab_fns): Update. Change argument type.
299 (find_sym_fns): Update. Change return type.
300 (get_symfile_segment_data): Update.
301 * objfiles.h (struct objfile) <sf>: Now const.
302 * somread.c (som_sym_fns): Now const. Update.
303 * xcoffread.c (xcoff_sym_fns): Now const. Update.
304 * mipsread.c (ecoff_sym_fns): Now const. Update.
305 * machoread.c (macho_sym_fns): Now const. Update.
306 * elfread.c (elf_sym_fns): Now const. Update.
307 (elf_sym_fns_gdb_index): Likewise.
308 * dbxread.c (aout_sym_fns): Now const. Update.
309 * coffread.c (coff_sym_fns): Now const. Update.
311 2010-09-30 Tom Tromey <tromey@redhat.com>
313 * value.c (value_primitive_field): Take 'offset' into account for
316 2010-09-30 Tom Tromey <tromey@redhat.com>
318 * completer.c (count_struct_fields): Handle anonymous structs and
320 (add_struct_fields): Likewise.
322 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
324 Fix printing parameters of inlined functions.
325 * ada-lang.c (is_known_support_routine)
326 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
327 for find_frame_funname.
328 * python/py-frame.c (frapy_name): Likewise.
329 * stack.c (find_frame_funname): New parameter funcp. Update the
330 function comment. Fill it in.
331 (print_frame): New variable func. Initialize it by
332 find_frame_funname. Print arguments only if FUNC is not NULL. Use
333 FUNC as the parameter of print_args_stub.
334 * stack.h (find_frame_funname): New parameter funcp. Remove the
335 function declaration comment.
337 2010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
340 * inferior.c (have_live_inferiors): New variables old_chain, inf and
341 tp. Iterate INFERIOR_LIST and call target_has_execution.
343 2010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
345 Fix GDB crash on inferior calls with self-referencing classes.
346 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
349 2010-09-29 Doug Evans <dje@google.com>
351 Workaround for gcc/45682.
352 * dwarf2read.c (partial_die_info): New fields fixup_called,
354 (guess_partial_die_structure_name): Renamed from guess_structure_name.
355 Move definition next to use. Use linkage_name to determine if class
356 is in a namespace. All callers updated.
357 (fixup_partial_die): Return early if already called.
358 Set fixup_called when done.
359 (guess_full_die_structure_name): New function.
360 (determine_prefix): Call it for class/struct/union dies if c++ and
361 .debug_types section is present and parent is DW_TAG_compile_unit.
363 2010-09-28 Joel Brobecker <brobecker@adacore.com>
365 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
366 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
368 2010-09-28 Joel Brobecker <brobecker@adacore.com>
370 * NEWS: Announce Ravenscar Profile support.
372 2010-09-28 Joel Brobecker <brobecker@adacore.com>
373 Jerome Guitton <guitton@adacore.com>
375 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
377 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
378 ravenscar-sparc-thread.o to gdb_target_obs.
380 2010-09-28 Joel Brobecker <brobecker@adacore.com>
382 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
383 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
385 2010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
387 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
388 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
389 skip_main_prologue method.
391 2010-09-27 Tom Tromey <tromey@redhat.com>
393 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
394 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
395 Only emit a given psymbol once.
396 (struct signatured_type_index_data) <psyms_seen>: New field.
397 (write_one_signatured_type): Update.
398 (cleanup_htab): New function.
399 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
401 (save_gdb_index_command): Update index documentation.
403 2010-09-27 Tom Tromey <tromey@redhat.com>
405 * bcache.c (expand_hash_table): Use hash_function, not hash.
407 2010-09-27 Tom Tromey <tromey@redhat.com>
409 * gdb_wchar.h: Change minimum libiconv to 0x108.
411 2010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
413 Fix lost siginfo_t for inferior calls.
415 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
416 (save_inferior_thread_state): New variables regcache, gdbarch and
417 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
418 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
420 (restore_inferior_thread_state): New variables regcache and gdbarch.
421 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
422 REGCACHE. Free also SIGINFO_DATA.
424 2010-09-24 Tom Tromey <tromey@redhat.com>
426 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
428 (dw2_map_symbol_names): Likewise.
430 2010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
432 * valops.c (find_oload_champ_namespace_loop): replace incorrect
433 discard_cleanups do_cleanups.
435 2010-09-24 Pedro Alves <pedro@codesourcery.com>
439 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
440 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
441 si_code is < 0. Check for si_code == SI_TIMER before checking for
444 2010-09-24 Pedro Alves <pedro@codesourcery.com>
446 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
448 2010-09-22 Joel Brobecker <brobecker@adacore.com>
450 * ada-tasks.c (read_atcb): Do not compute the task ptid when
451 debugging a core file.
453 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
456 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
457 (free_objfile) <objfile->name != NULL>: Remove the conditional around
459 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
460 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
462 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
463 Remove the conditional.
464 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
466 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
468 * main.c: Include objfiles.h.
469 (captured_main): New variable objfile. Call
470 load_auto_scripts_for_objfile for ALL_OBJFILES.
472 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
474 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
477 2010-09-22 Joel Brobecker <brobecker@adacore.com>
479 * dwarf2read.c (scan_partial_symbols): Add handling of
480 DW_TAG_constant DIEs.
481 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
483 2010-09-22 Joel Brobecker <brobecker@adacore.com>
485 * configure.ac: Add support for --enable-gdbserver.
486 * configure: Regenerate.
488 2010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
491 * valops.c (find_oload_champ_namespace_loop): removed incorrect
492 'old_cleanups' reassignment.
494 2010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
496 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
499 2010-09-16 Phil Muldoon <pmuldoon@redhat.com>
502 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
503 read_var_value and common_val_print and print a warning.
505 2010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
507 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
508 keep the list in alphabetical order. Use longer e-mail address.
510 2010-09-15 Tom Tromey <tromey@redhat.com>
512 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
514 2010-09-15 Tom Tromey <tromey@redhat.com>
516 * charset.c (iconv_open): New define.
518 (iconv_close): Likewise.
519 (phony_iconv_open): Add "phony_" prefix.
520 (phony_iconv_close): Likewise.
521 (phony_iconv): Likewise.
522 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
523 Change how INTERMEDIATE_ENCODING is defined.
525 2010-09-15 Doug Evans <dje@google.com>
527 * dwarf2read.c (struct die_info): Fix comment.
529 2010-09-15 Alan Modra <amodra@gmail.com>
532 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
533 than setting SEC_NEVER_LOAD on sections that need not be copied.
535 2010-09-14 Tom Tromey <tromey@redhat.com>
537 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
538 (start_psymtab_common, allocate_psymtab, discard_psymtab):
540 * symfile.h (extend_psymbol_list): Remove.
541 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
542 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
543 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
545 2010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
547 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
550 2010-09-14 Tom Tromey <tromey@redhat.com>
553 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
554 for unrecognized frame base expression.
556 2010-09-14 Tom Tromey <tromey@redhat.com>
559 * value.c (value_static_field): Use value_of_variable.
561 2010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
563 * m32r-rom.c: Replace winsock.h with winsock2.h header.
564 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
566 2010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
569 * c-exp.y (classify_name): Check is_a_member_of_this before returning
572 2010-09-13 Joel Brobecker <brobecker@adacore.com>
574 * NEWS: Add x86-lynxos to the list of platforms supported by
577 2010-09-13 Joel Brobecker <brobecker@adacore.com>
579 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
581 2010-09-13 Tom Tromey <tromey@redhat.com>
583 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
585 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
587 * i386-tdep.c (i386_ymm_type): Set type name to
588 builtin_type_vec256i.
590 2010-09-12 Michael Snyder <msnyder@vmware.com>
592 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
594 2010-09-12 H.J. Lu <hongjiu.lu@intel.com>
596 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
598 2010-09-11 H.J. Lu <hongjiu.lu@intel.com>
600 * amd64-tdep.c (amd64_register_name): Removed.
601 (amd64_init_abi): Don't call set_gdbarch_register_name.
603 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
605 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
607 2010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
608 Paul Bolle <pebolle@tiscali.nl>
610 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
611 * cli-logging.c (struct saved_output_files) <targerr>: New.
612 (set_logging_redirect, pop_output_files, handle_redirections):
613 Redirect also gdb_stdtargerr.
614 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
616 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
618 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
619 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
620 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
621 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
622 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
625 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
627 * hppa-tdep.c (unwind_command): Use host_address_to_string function
628 to display a host address.
629 * monitor.c (monitor_read_memory): Likewise.
630 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
632 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
634 * coffread.c (struct coff_symbol): Change c_value type from `long' to
635 `CORE_ADDRESS' as it might contain target addresses.
637 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
639 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
640 before cast to pointer to avoid warning.
642 2010-09-09 Kevin Buettner <kevinb@redhat.com>
644 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
647 2010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
649 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
650 anonymous class partial DIEs.
652 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
654 * dwarf2read.c (dwarf2_compute_name): Check that the first
655 argument is a pointer.
657 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
659 * dwarf2read.c (read_func_scope, read_structure_type)
660 (read_common_block): Check for a NULL return from new_symbol.
662 2010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
664 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
666 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
668 * dwarf2read.c (read_structure_type): Move processing of
669 fields and member functions from here...
670 (process_structure_scope): ... to here.
672 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
674 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
676 (gnuv3_make_method_ptr): Likewise.
678 2010-09-08 Tom Tromey <tromey@redhat.com>
680 * breakpoint.c (create_breakpoint): Add missing _().
682 2010-09-08 Doug Evans <dje@google.com>
684 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
686 2010-09-08 Tom Tromey <tromey@redhat.com>
689 2010-09-01 Tom Tromey <tromey@redhat.com>
690 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
691 symtab.h: Revert earlier change.
693 2010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
695 * psymtab.c (add_psymbol_to_bcache): Initialize
697 memset psymbol.ginfo.value to 0.
699 2010-09-06 Pedro Alves <pedro@codesourcery.com>
701 * infrun.c (resume): Extend comment on ignoring single-step
702 requests on vfork parents waiting for a vfork-done.
704 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
705 Pedro Alves <pedro@codesourcery.com>
707 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
709 * fork-child.c (startup_inferior) <resume_signal>: Use enum
711 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
712 calling strsignal. Use enum target_signal type for saved_signo.
713 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
714 (linux_nat_wait_1): Use enum target_signal type for signo. Use
715 target_signal_to_host before calling strsignal.
716 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
719 2010-09-06 Pedro Alves <pedro@codesourcery.com>
720 Jan Kratochvil <jan.kratochvil@redhat.com>
722 * common/signals.c (ANY): Remove.
723 (SET): No longer use ANY.
725 2010-09-06 Yao Qi <yao@codesourcery.com>
727 * infrunc(resume): When inferior is waiting_for_vfork_done,
728 clear step and don't use displaced stepping.
730 2010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
732 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
735 2010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
737 Code cleanup - split print_stop_reason.
738 * infrun.c (enum inferior_stop_reason): Remove.
739 (print_stop_reason): Remove by splitting into ...
740 (print_exited_reason, print_signal_exited_reason)
741 (print_no_history_reason, print_signal_received_reason)
742 (print_end_stepping_range_reason): ... these new functions. Update
743 the preceding comment.
744 (handle_inferior_event): Change the calls to print_exited_reason,
745 print_signal_exited_reason, print_no_history_reason,
746 print_signal_received_reason, print_end_stepping_range_reason.
747 (handle_step_into_function, handle_step_into_function_backward):
748 Change the calls to print_end_stepping_range_reason.
750 2010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
752 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
753 * cli-out.c: Include vec.h.
754 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
755 variable stream, initialize it, use it.
756 (cli_redirect): New function comment. Replace the stream and
757 original_stream fields by the new streams field. Remove the
758 original_stream != NULL conditional, assert error on NULL instead.
759 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
760 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
761 original_stream fields by the new streams field.
762 (cli_out_set_stream): Replace the stream field by the new streams
764 * cli-out.h: Include vec.h.
765 (ui_filep): New typedef, call DEF_VEC_P for it.
766 (struct cli_ui_out_data): Replace the stream and original_stream
767 fields by the new streams field.
768 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
769 NULL first. Extend the comment.
770 (handle_redirections): Call ui_out_redirect with output.
771 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
772 calls outside of the TRY_CATCH block.
774 2010-09-03 Joel Brobecker <brobecker@adacore.com>
778 2010-09-02 Joel Brobecker <brobecker@adacore.com>
780 Back out the following change:
781 | 2010-06-29 Hui Zhu <teawater@gmail.com>
782 | * record.c (set_record_pic_cmdlist,
783 | show_record_pic_cmdlist): New variables.
784 | (set_record_pic_command,
785 | show_record_pic_command): New functions.
786 | (record_pic_function, record_pic_line, record_pic_enum,
787 | set_record_pic_type, record_pic_hide_nofunction,
788 | record_pic_hide_nosource, record_pic_hide_same): New variables.
789 | (record_pic_fputs): New function.
790 | (function_list, node_list, edge_list): New struct.
791 | (function_list, node_list, edge_list): New variables.
792 | (record_pic_cleanups, record_pic_node,
793 | record_pic_edge, cmd_record_pic): New functions.
794 | (_initialize_record): Add new commands for record pic.
796 2010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
798 * config.in, configure: Regenerated.
799 * configure.ac: Check for waitpid.
800 * ser-pipe.c (pipe_close): Wait for the program to exit.
802 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
804 * cli/cli-logging.c: Include gdb_assert.h.
805 (set_logging_overwrite): New function.
806 (logging_redirect): New comment.
807 (logging_no_redirect_file, set_logging_redirect)
808 (pop_output_files) <logging_no_redirect_file>: New.
809 (handle_redirections) <!logging_redirect>: New variable
810 no_redirect_file. Remove file autoclose for tee_file_new. No longer
811 discard cleanup for the close of former OUTPUT. Set
812 LOGGING_NO_REDIRECT_FILE.
813 (handle_redirections) <logging_redirect>: gdb_assert
814 LOGGING_NO_REDIRECT_FILE.
815 (show_logging_command) <logging_redirect handling>: Adjust messages
816 for SAVED_FILENAME not NULL.
817 (_initialize_cli_logging): Install set_logging_overwrite and
818 set_logging_redirect.
820 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
822 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
824 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
826 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
827 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
828 add $(GDB_WARN_CFLAGS_NO_FORMAT).
829 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
831 2010-09-02 Yao Qi <yao@codesourcery.com>
833 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
834 number from a WIFSIGNALED status.
836 2010-09-01 Tom Tromey <tromey@redhat.com>
838 * symtab.h (lookup_type_symbol): Declare.
839 * symtab.c (lookup_symbol_in_language_full): Rename from
840 lookup_symbol_in_language. Add 'for_type' argument.
841 (lookup_symbol_in_language): New function.
842 (lookup_type_symbol): Likewise.
843 (lookup_symbol_aux): Add 'for_type' argument.
844 (match_symbol_aux): New function.
845 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
846 (match_transparent_type): New function.
847 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
848 * symfile.h (struct quick_symbol_functions)
849 <pre_expand_symtabs_matching>: Remove.
850 <expand_one_symtab_matching>: New field.
851 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
852 (pre_expand_symtabs_matching_psymtabs): Remove.
853 (psym_functions): Update.
854 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
855 * dwarf2read.c (dw2_lookup_symbol): Update comment.
856 (dw2_pre_expand_symtabs_matching): Remove.
857 (dw2_expand_one_symtab_matching): New function.
858 (dwarf2_gdb_index_functions): Update.
860 2010-09-01 Joel Brobecker <brobecker@adacore.com>
862 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
864 2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
866 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
867 as a feature reported by -list-target-features.
869 2010-09-01 Joel Brobecker <brobecker@adacore.com>
871 * features/Makefile (WHICH): Add rs6000/powerpc-32.
872 (powerpc-32.o, powerpc-32.c): New rules.
873 (clean): Also remove powerpc-32.c.
874 * regformats/rs6000/powerpc-32.dat: Generate.
876 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
878 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
880 * psymtab.h (psymbol_bcache_init): New function prototype.
881 (psymbol_bcache_free): New function prototype.
882 (psymbol_bcache_get_bcache): New function prototype.
883 * psymtab.c (psymbol_bcache_init): New function.
884 (psymbol_bcache_free): New function.
885 (psymbol_bcache_full): New function.
886 (psymbol_bcache_get_bcache): New function.
887 (add_psymbol_to_bcache): use psymbol_bcache_full.
888 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
890 * symmisc.c (print_symbol_bcache_statistics): Updated.
891 (print_objfile_statistics): Updated.
892 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
894 (free_objfile): Use psymbol_bcache_free.
896 2010-08-31 Tom Tromey <tromey@redhat.com>
899 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
900 Don't set TYPE_NAME on the type.
902 2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
904 * infrun.c (set_exec_direction_func): Error out if target does not
905 support reverse execution.
907 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
909 Make linux_get_siginfo_type `type *' unique.
910 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
911 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
912 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
913 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
914 (_initialize_linux_tdep): New.
916 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
919 * defs.h (find_memory_region_ftype): New typedef.
920 (exec_set_find_memory_regions): Use it.
921 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
922 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
923 * gcore.c (objfile_find_memory_regions): Likewise.
924 * gnu-nat.c (gnu_find_memory_regions): Likewise.
925 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
926 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
927 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
928 find_memory_region_ftype.
929 (insert_dbx_link_bpt_in_region): Likewise.
930 (iterate_over_mappings): Likewise. Drop the comment part about the
932 (find_memory_regions_callback): Use find_memory_region_ftype.
933 (proc_find_memory_regions): Likewise.
934 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
935 find_memory_region_ftype.
936 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
937 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
939 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
941 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
942 'static partial_symbol psymbol'.
943 (psymbol_hash): New function.
944 (psymbol_compare): New function.
945 * bcache.c (hash_continue): New.
946 (hash): Use hash_continue.
947 * bcache.c: Add hash_function and compare_function
948 pointers to bcache struct.
949 (bcache_full): Use bcache->hash_function, and
950 bcache->compare_function.
951 (bcache_compare): New function.
952 (bcache_xmalloc): Take hash_function and
953 compare_function arguments and initialize the
956 * objfiles.c (allocate_objfile): Updated.
957 * symfile.c (reread_symbols): Updated.
958 * python/py-type.c (typy_richcompare): Updated.
960 2010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
961 Tom Tromey <tromey@redhat.com>
964 * python/py-value.c (valpy_get_dynamic_type): New function.
965 (value_object_getset): Add "dynamic_type".
966 (valpy_get_type): Fail on error.
968 2010-08-30 Yao Qi <yao@codesourcery.com>
970 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
971 (arm_linux_syscall_next_pc): New.
972 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
973 (arm_linux_init_abi): Initialize syscall_next_pc.
974 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
975 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
976 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
977 Declare arm_frame_is_thumb.
979 2010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
982 * breakpoint.c (bpstat_alloc): Remove unused prototype.
983 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
985 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
986 calls of bpstat_alloc. Remove explicit bs chain termination.
988 2010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
991 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
992 (my_waitpid): Likewise.
994 2010-08-27 Doug Evans <dje@google.com>
996 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
999 2010-08-27 Tom Tromey <tromey@redhat.com>
1001 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
1002 TYPE_FIELD_IGNORE_BITS.
1004 2010-08-27 Doug Evans <dje@google.com>
1006 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
1007 the order they're defined in. munmap .debug_types buffer.
1009 2010-08-26 Doug Evans <dje@google.com>
1011 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
1012 (dw2_forget_cached_source_info): Rename local cu to per_cu.
1013 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
1014 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
1015 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
1016 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
1017 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
1018 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
1019 (write_psymtabs_to_index): Ditto.
1021 2010-08-26 Pedro Alves <pedro@codesourcery.com>
1023 * NEWS: Mention libthread_db debugging with core files.
1025 2010-08-26 Doug Evans <dje@google.com>
1027 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
1028 forward decl. Pass pst->dirname to dwarf_decode_lines.
1029 (psymtab_include_file_name): New function.
1030 (dwarf_decode_lines): Call it. Update comments.
1032 2010-08-25 Pedro Alves <pedro@codesourcery.com>
1034 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
1035 compilation unit being different from target die's.
1037 2010-08-24 Doug Evans <dje@google.com>
1040 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
1041 debug_types_type_hash.
1042 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
1044 (lookup_die_type): Renamed from tag_type_to_tag. First look in
1045 appropriate type_hash table. All callers updated.
1046 (allocate_signatured_type_table): Renamed from
1047 allocate_signatured_type_hash_table. All callers updated.
1048 (create_signatured_type_table_from_index): Renamed from
1049 create_signatured_type_hash_from_index. All callers updated.
1050 (read_die_type): Add comment. Move actual reading to ...
1051 (read_die_type_1): ... here. New function.
1052 (follow_die_ref_or_sig): Tweak comment.
1053 (set_die_type): Rewrite to use appropriate choice of
1054 debug_info_type_hash or debug_types_type_hash.
1055 (get_die_type_at_offset): New function.
1056 (get_die_type): Call it.
1058 2010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1060 * python/py-type.c (typy_richcompare): Initialize worklist.
1062 2010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
1063 Kazu Hirata <kazu@codesourcery.com>
1064 Jonathan Larmour <jifl@eCosCentric.com>
1066 * arm-tdep.c: Include features/arm-with-m.c.
1067 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
1069 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
1070 Check is_m after force-mode.
1071 (arm_gdbarch_init): Check the binary before the target description.
1072 Add check for M profile attribute. If we have an M-profile device,
1073 but no target register description, use arm-with-m. Recognize the
1074 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
1075 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
1076 * arm-tdep.h (XPSR_T): Define.
1077 (struct gdbarch_tdep): Add is_m member.
1078 * features/arm-m-profile.xml, features/arm-with-m.c,
1079 features/arm-with-m.xml: New files.
1081 2010-08-23 Doug Evans <dje@google.com>
1083 * dwarf2read.c (read_structure_type): Add comment.
1084 (read_enumeration_type): Add comment.
1085 (process_enumeration_scope): Move definition of some locals
1086 closer to their use.
1087 (read_namespace_type): Add comment.
1088 (set_die_type): Fix typo in comment.
1090 2010-08-23 Tom Tromey <tromey@redhat.com>
1093 * python/py-value.c: Include expression.h.
1094 (valpy_do_cast): New function.
1095 (valpy_cast): Use it.
1096 (valpy_dynamic_cast): New function.
1097 (valpy_reinterpret_cast): Likewise.
1098 (value_object_methods): Add dynamic_cast, reinterpret_cast.
1100 2010-08-23 Tom Tromey <tromey@redhat.com>
1103 * python/py-value.c (valpy_nonzero): Don't throw error for other
1106 2010-08-23 Tom Tromey <tromey@redhat.com>
1109 * python/py-type.c: Include bcache.h, vec.h.
1110 (struct type_equality_entry): New.
1111 (compare_strings): New function.
1112 (check_types_equal): Likewise.
1113 (check_types_worklist): Likewise.
1114 (typy_richcompare): Likewise.
1115 (type_object_type): Set tp_richcompare field.
1117 2010-08-23 Tom Tromey <tromey@redhat.com>
1120 * python/py-type.c (typy_fields): Call check_typedef.
1121 (typy_template_argument): Add TRY_CATCH.
1123 2010-08-23 Tom Tromey <tromey@redhat.com>
1126 * python/py-type.c (typy_array): New function.
1127 (type_object_methods): Add "array".
1129 2010-08-20 Pedro Alves <pedro@codesourcery.com>
1131 * python/python.c: Include "serial.h".
1132 (gdbpy_event_fds): Change type to `struct serial *' a array from
1134 (gdbpy_run_events): Change parameters. Use serial_readchar in
1136 (gdbpy_post_event): Use serial_write in place of write.
1137 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
1138 serial_async in place of add_file_handler.
1140 2010-08-20 Pedro Alves <pedro@codesourcery.com>
1142 * serial.h (gdb_pipe, serial_pipe): Declare.
1143 * serial.c (serial_interface_lookup): Take a const char pointer.
1144 (serial_fdopen): Rename to ...
1145 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
1146 Call the OPS' fdopen function if there is one.
1147 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
1149 (struct serial_ops) <fdopen>: New field.
1151 * ser-mingw.c (free_pipe_state):
1152 (free_pipe_state): Close output on non-pex pipes.
1153 (pipe_windows_fdopen): New.
1155 (_initialize_ser_windows): Register pipe_windows_fdopen.
1156 * ser-go32.c (gdb_pipe): New.
1157 * ser-pipe.c (pipe_close): Close file descriptor even if there's
1162 2010-08-20 Keith Seitz <keiths@redhat.com>
1165 * dwarf2read.c (struct delayed_method_info): New struct.
1166 (struct dwarf2_cu): Add vector method_list.
1167 (scan_partial_symbols): Count methods for union, class, structure,
1168 and interface types.
1169 (add_to_method_list): New function.
1170 (free_delayed_list): New function.
1171 (compute_delayed_physnames): New function.
1172 (process_full_comp_unit): Make a cleanup for the CU's delayed
1173 physname list, compute the delayed physnames, and free the
1175 (dwarf2_add_member_fn): For C++ and Java, delay the computation
1176 of the physname until after the CU is read.
1178 * dwarf2read.c (read_structure_type): Check if the current
1179 DIE's type was already completed after dwarf2_full_name
1182 2010-08-19 Stan Shebs <stan@codesourcery.com>
1184 * NEWS: Mention some additional changes.
1186 2010-08-19 Tom Tromey <tromey@redhat.com>
1188 * Makefile.in (install-python): Add DESTDIR.
1190 2010-08-19 Doug Evans <dje@google.com>
1193 * parser-defs.h (parse_float, parse_c_float): Declare.
1194 * parse.c (parse_float, parse_c_float): New function.
1195 * c-exp.y (parse_number): Call parse_c_float.
1196 * objc-exp.y (parse_number): Ditto.
1197 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
1198 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
1200 2010-08-19 Joel Brobecker <brobecker@adacore.com>
1202 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
1203 the arguments in the correct order.
1204 * symtab.c (maybe_add_partial_symtab_filename): Declare
1205 the arguments in the correct order.
1207 2010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1209 * varobj.c (varobj_create): Replace variable old_fi with old_id,
1210 initialize it by null_frame_id, wrap its usage by get_frame_id,
1211 frame_id_p and frame_find_by_id.
1213 2010-08-18 Tom Tromey <tromey@redhat.com>
1216 * configure: Rebuild.
1217 * configure.ac: Add install-python to CONFIG_INSTALL.
1218 * Makefile.in (install-python): New.
1220 2010-08-18 Doug Evans <dje@google.com>
1222 * gdb_assert.h (gdb_assert_not_reached): New macro.
1223 (gdb_assert_fail): Fix typo in comment.
1224 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
1226 * darwin-nat.c (darwin_check_new_threads): Ditto.
1227 * dwarf2read.c (dwarf2_get_section_info): Ditto.
1228 (munmap_section_buffer): Ditto.
1229 * m32c-tdep.c (make_types): Ditto.
1230 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
1231 * macroexp.c (get_character_constant): Ditto.
1232 (get_string_literal): Ditto.
1233 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
1234 (mep_pseudo_cr_index, mep_register_type): Ditto.
1235 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
1236 (mep_get_insn, mep_analyze_prologue): Ditto.
1237 * objfiles.c (qsort_cmp): Ditto.
1238 * prologue-value.c (pv_is_identical): Ditto.
1239 * record.c (record_get_loc): Ditto.
1240 * value.c (value_static_field): Ditto.
1241 * xtensa-tdep.c (call0_track_op): Ditto.
1243 2010-08-18 Tom Tromey <tromey@redhat.com>
1246 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
1247 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
1248 name-copying lower. Document exception behavior.
1249 * completer.c (expression_completer): Catch exceptions from
1250 parse_field_expression.
1252 2010-08-18 Pedro Alves <pedro@codesourcery.com>
1256 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
1257 workaround on core files.
1258 (try_thread_db_load_1): Don't try enabling thread event reporting
1260 (thread_db_load): Allow thread_db on core files.
1261 (attach_thread): Don't check thread signals on core files, nor try
1262 really attaching to the thread, nor enabling thread event event
1264 (thread_db_detach): Don't try disabing thread event reporting or
1265 removing thread event breakpoints when debugging a core file.
1266 (find_new_threads_callback): Don't try enabling thread event
1267 reporting on core files.
1268 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
1269 debugging a core file.
1270 (thread_db_find_new_threads): Don't update thread
1271 cores (processors) when debugging a core (dump).
1273 2010-08-18 Pedro Alves <pedro@codesourcery.com>
1277 * corelow.c (add_to_thread_list): Don't use
1278 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
1279 (get_core_register_section): Don't use
1280 gdbarch_core_reg_section_encodes_pid.
1282 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
1283 * gdbarch.h, gdbarch.c: Regenerate.
1284 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
1285 gdbarch_core_reg_section_encodes_pid.
1286 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
1287 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
1288 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1290 2010-08-18 Yao Qi <yao@codesourcery.com>
1292 * MAINTAINERS : Add myself under Write After Approval.
1294 2010-08-17 Tom Tromey <tromey@redhat.com>
1296 * NEWS: Mention template parameter support.
1298 2010-08-17 Pedro Alves <pedro@codesourcery.com>
1300 PR breakpoints/11371
1302 * breakpoint.c (decref_bp_location): Assert the reference count is
1305 2010-08-17 Pedro Alves <pedro@codesourcery.com>
1307 PR breakpoints/11371
1309 * breakpoint.c (breakpoint_init_inferior): Decrement the
1310 location's reference count instead of deleting right away.
1311 (bpstat_free): Decrement the location's reference count. Make
1313 (bpstat_copy): Increment the location's reference count.
1314 (bpstat_find_breakpoint): Adjust.
1315 (bpstat_num): Adjust.
1316 (print_it_typical): Adjust. Use the breakpoint pointer in the
1317 bpstat instead of the location's owner.
1318 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
1319 Adjust to record the location's owner in the bpstat.
1320 (watchpoint_check): Use the breakpoint pointer in the bpstat
1321 instead of the location's owner.
1322 (bpstat_check_breakpoint_conditions): Don't handle
1323 bp_watchpoint_scope here. Use the breakpoint pointer in the
1324 bpstat instead of the location's owner.
1325 (bpstat_stop_status): Defer inferior function calls to after
1326 building the bpstat list. Handle bp_watchpoint_scope here. Use
1327 the breakpoint pointer in the bpstat instead of the location's
1329 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
1330 the location's owner.
1331 (free_bp_location): Don't walk bpstats clearing locations.
1332 (incref_bp_location): New.
1333 (decref_bp_location): New.
1334 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
1335 instead of the location's owner.
1336 (update_global_location_list): Clear the location's owner, and
1337 decrement the location's reference count instead of deleting it
1339 (breakpoint_retire_moribund): Decrement the location's reference
1340 count instead of deleting it right away.
1341 (bpstat_remove_bp_location): Delete.
1342 (bpstat_remove_breakpoint): New.
1343 (bpstat_remove_bp_location_callback): Delete.
1344 (bpstat_remove_breakpoint_callback): New.
1345 (delete_breakpoint): Iterate over all threads' stop_bpstat's
1346 clearing references to the breakpoint that is being deleted.
1348 * breakpoint.h (struct bp_location) <refc>: New field.
1349 <owner>: Update comments.
1350 (bpstat_free): Delete declaration.
1351 (struct bpstats): Change the type of the breakpoint_at field to
1352 struct breakpoint point, from struct bp_location pointer. Add new
1353 field bp_location_at.
1355 2010-08-16 Tom Tromey <tromey@redhat.com>
1359 2010-08-16 Tom Tromey <tromey@redhat.com>
1361 * NEWS: Mention watch -location.
1363 2010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1365 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
1366 EXP_STRING_REPARSE to EXP_STRING.
1367 (watch_command_1): Set also EXP_STRING_REPARSE.
1368 (delete_breakpoint): Free also EXP_STRING_REPARSE.
1369 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
1370 Update comment for exp_string.
1372 2010-08-16 Tom Tromey <tromey@redhat.com>
1374 * value.c (release_value): Clear 'next' pointer.
1375 * breakpoint.c (watch_command_1): Add 'just_location' argument.
1376 (watch_command_wrapper): Update.
1377 (watch_maybe_just_location): New function.
1378 (watch_command): Update.
1379 (rwatch_command_wrapper): Update.
1380 (rwatch_command): Update.
1381 (awatch_command_wrapper): Update.
1382 (awatch_command): Update.
1383 (check_for_argument): New function.
1384 (_initialize_breakpoint): Update help text.
1386 2010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
1388 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
1389 typedef'ed function types correctly.
1391 2010-08-13 Tom Tromey <tromey@redhat.com>
1393 * python/python-internal.h (gdbpy_get_hook_function): Don't
1396 2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1398 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
1401 2010-08-13 Ken Werner <ken.werner@de.ibm.com>
1403 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
1404 the format strings to be compatible with Python 2.4.
1406 2010-08-13 Vladimir Prus <vladimir@codesourcery.com>
1408 Easier and more stubborn MI memory read commands.
1410 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
1411 and data-write-memory-bytes.
1412 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
1413 (mi_cmd_data_write_memory_bytes): New.
1414 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
1415 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
1417 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
1418 * target.c (target_read_until_error): Remove.
1419 (read_whatever_is_readable, free_memory_read_result_vector)
1420 (read_memory_robust): New.
1421 * target.h (target_read_until_error): Remove.
1422 (struct memory_read_result, free_memory_read_result_vector)
1423 (read_memory_robust): New.
1425 2010-08-13 Hui Zhu <teawater@gmail.com>
1427 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
1428 (read_comp_unit): Initialize back_to.
1430 2010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
1431 Pedro Alves <pedro@codesourcery.com>
1433 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
1434 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
1435 (struct partial_die_info) <has_template_arguments>: New field.
1436 <num_attrs>: Change type to unsigned char.
1437 <building_fullname>: New field.
1438 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
1439 allocate a CU if we don't have one already. Add a cleanup for the
1441 (partial_die_full_name): Handle template arguments not in
1443 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
1444 (load_full_comp_unit): Only allocate a CU if we don't have one
1446 (do_ui_file_peek_last): New.
1447 (dwarf2_compute_name): Handle template parameters not in
1449 (read_comp_unit): Read and free abbrevs if not read yet.
1450 (load_partial_dies): Handle template arguments not in DW_AT_name.
1451 (find_partial_die): If we have a CU, but no a partial dies yet,
1452 also read in the CU.
1453 (dwarf2_const_value_attr): New, abstracted out from
1455 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
1456 dwarf2_const_value_attr.
1457 (determine_prefix): Detect and break loops created by RCVT's debug
1459 (maybe_queue_comp_unit): Bail out early if reading partial
1461 (follow_die_offset): Load full CU if we have no dies.
1462 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
1463 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
1465 2010-08-11 Tom Tromey <tromey@redhat.com>
1466 Phil Muldoon <pmuldoon@redhat.com>
1468 * python/python.c (gdbpy_run_events): New function.
1469 (gdbpy_post_event): Likewise.
1470 (gdbpy_initialize_events): Likewise.
1471 (_initialize_python): Call gdbpy_initialize_events.
1473 2010-08-11 Ken Werner <ken.werner@de.ibm.com>
1475 * gdb/valarith.c (vector_binop): New function.
1476 (scalar_binop): Likewise.
1477 (value_binop): Call scalar_binop or vector_binop depending on the types.
1478 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
1479 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
1481 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
1483 2010-08-11 Brad Roberts <braddr@puremagic.com>
1485 * d-lang.c (extract_identifiers): Handle multiple digits.
1487 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1490 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
1491 Rename to dummy_frame_unwind.
1492 (dummy_frame_unwind): Remove.
1493 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
1494 * frame-unwind.c (frame_unwind_init): Use address of
1495 dummy_frame_unwind and inline_frame_unwind.
1496 * frame.c (create_sentinel_frame): Use address of
1497 sentinel_frame_unwind.
1498 * inline-frame.c (inline_frame_unwinder): Rename to
1499 inline_frame_unwind.
1500 (inline_frame_unwind): Remove.
1501 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
1502 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
1503 sentinel_frame_unwind.
1504 (sentinel_frame_unwind): Remove.
1505 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
1508 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1511 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
1512 and returned value. New comment from frame-unwind.h.
1513 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
1515 * frame.c (get_frame_id, frame_unwind_register_value)
1516 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
1517 (get_frame_type, frame_unwind_arch): Do not use the return value of
1518 frame_unwind_find_by_frame.
1520 2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
1521 Thiago Jung Bauermann <bauerman@br.ibm.com>
1522 Tom Tromey <tromey@redhat.com>
1524 * python/python.c (gdbpy_solib_address): New function.
1525 (gdbpy_decode_line): Likewise.
1527 2010-08-10 Tom Tromey <tromey@redhat.com>
1529 Revert gdb-add-index addition:
1530 * Makefile.in (install-only): Don't install gdb-add-index.
1531 * gdb-add-index.sh: Remove.
1533 2010-08-09 Kevin Buettner <kevinb@redhat.com>
1535 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
1536 `target_has_execution' check with `to_has_memory' check.
1537 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
1538 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
1539 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
1541 2010-08-09 Kevin Buettner <kevinb@redhat.com>
1543 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
1544 (resume_siggnal, resume_step): Move these static globals...
1545 (struct sim_inferior_data): ...into this new struct.
1546 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
1548 (gdb_callback, callbacks_initialized): Move these globals to
1549 a point earlier in the file.
1550 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
1551 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
1552 (gdbsim_close_inferior, gdbsim_resume_inferior)
1553 (gdbsim_stop_inferior): New functions.
1554 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
1556 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
1557 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
1558 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
1559 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
1560 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
1561 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
1562 new local variable `sim_data' in each of these functions. Use
1563 `sim_data' to reference former globals `program_loaded',
1564 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
1566 (gdbsim_open): Remove local variable `argv'. Put results of call
1567 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
1568 make a cleanup for it. Free it though when a sim instance cannot
1570 (gdbsim_close): Free sim_argv and null it out as appropriate.
1571 Close sim instances in all inferiors.
1572 (gdbsim_cntrl_c): Stop all inferiors.
1574 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
1576 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
1578 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
1579 function after symbol construction is complete.
1580 Do the same for template symbol addition to template_symbols list.
1582 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
1584 * symtab.c (symbol_get_demangled_name): Remove assertion and
1585 return NULL when language_specific.cplus_specific is not initialized.
1586 * stabsread.c (define_symbol): Set the name before calling
1587 cp_scan_for_anonymous_namespaces.
1589 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
1591 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
1592 SYMBOL_SET_LANGUAGE.
1593 (symbol_init_language_specific): Renamed to symbol_set_language.
1594 * symtab.c (symbol_init_language_specific): Removed redundant check
1596 Renamed to symbol_set_language.
1597 * stabsread.c (define_symbol): Updated.
1598 (read_enum_type): Updated
1599 * psymtab.c (add_psymbol_to_bcache): Updated.
1600 * minsyms.c (install_minimal_symbols): Updated.
1601 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
1602 SYMBOL_LANGUAGE to set the language.
1603 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
1604 * mdebugread.c (new_symbol): Ditto.
1605 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
1606 * dwarf2read.c (new_symbol_full): Ditto.
1607 * jv-lang.c (add_class_symbol): Ditto.
1609 2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1611 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
1612 (make_cleanup_restore_page_info)
1613 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
1614 * gdbcmd.h (execute_command_to_string): New declaration.
1615 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
1616 (make_cleanup_restore_ui_file): Move to utils.c
1617 (execute_gdb_command) <to_string>: Move ...
1618 * top.c (execute_command_to_string): ... here. Call
1619 set_batch_flag_and_make_cleanup_restore_page_info.
1620 * utils.c (make_cleanup_restore_integer): New source file blank line.
1621 (make_cleanup_restore_uinteger): New.
1622 (struct restore_ui_file_closure, do_restore_ui_file)
1623 (make_cleanup_restore_ui_file): Move here from python/python.c.
1624 (init_page_info) <batch_flag>
1625 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
1626 (set_batch_flag_and_make_cleanup_restore_page_info): New.
1628 2010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
1630 * thread.c (add_thread_silent): Use null_ptid instead of
1631 minus_one_ptid while getting rid of stale inferior_ptid.
1633 2010-08-06 Corinna Vinschen <vinschen@redhat.com>
1635 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
1636 Throughout, call read_encoded_value with ptr_size rather than addr_size.
1637 (decode_frame_entry_1): Remove redundant setting of
1638 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
1639 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
1640 on examined frame section. Add comment to explain why.
1641 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
1642 comment to explain usage.
1643 * gdbarch.c: Regenerate.
1644 * gdbarch.h: Regenerate.
1646 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
1648 2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1651 * varobj.c (varobj_create): Move variables fi, old_fi and block to
1654 2010-08-05 Pedro Alves <pedro@codesourcery.com>
1656 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
1657 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
1658 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
1659 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
1660 linux-tdep.o to gdb_target_obs.
1662 2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
1664 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
1667 2010-08-05 Hui Zhu <teawater@gmail.com>
1669 * mips-linux-tdep.c(regset.h): New include.
1670 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
1671 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
1672 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
1673 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
1674 mips_linux_regset_from_core_section): New functions.
1675 (fetch_core_registers, regset_core_fns): Deleted.
1676 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
1677 Deleted regset_core_fns.
1678 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
1679 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
1680 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
1683 2010-08-04 Pedro Alves <pedro@codesourcery.com>
1685 * s390-tdep.c: Include linux-tdep.h.
1686 (s390_gdbarch_init): Call linux_init_abi.
1688 2010-08-04 Pedro Alves <pedro@codesourcery.com>
1690 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
1691 instead of printing "Thread" here.
1692 * linux-tdep.c: Include inferior.h.
1693 (linux_core_pid_to_str): New.
1694 (linux_init_abi): New.
1695 * linux-tdep.h (linux_init_abi): Declare.
1696 * alpha-linux-tdep.c: Include linux-tdep.h.
1697 (alpha_linux_init_abi): Call linux_init_abi.
1698 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
1699 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
1700 * frv-linux-tdep.c: Include linux-tdep.h
1701 (frv_linux_init_abi): Call linux_init_abi.
1702 * hppa-linux-tdep.c: Include linux-tdep.h
1703 (hppa_linux_init_abi): Call linux_init_abi.
1704 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
1705 * ia64-linux-tdep.c: Include linux-tdep.h.
1706 (ia64_linux_init_abi): Call linux_init_abi.
1707 * m32r-linux-tdep.c: Include linux-tdep.h.
1708 (m32r_linux_init_abi): Call linux_init_abi.
1709 * m68klinux-tdep.c: Include linux-tdep.h.
1710 (m68k_linux_init_abi): Call linux_init_abi.
1711 * microblaze-linux-tdep.c: Include linux-tdep.h.
1712 (microblaze_linux_init_abi): Call linux_init_abi.
1713 * mips-linux-tdep.c: Include linux-tdep.h.
1714 (mips_linux_init_abi): Call linux_init_abi.
1715 * mn10300-linux-tdep.c: Include linux-tdep.h.
1716 (am33_linux_init_osabi): Call linux_init_abi. Rename the
1717 'gdbinfo' parameter to 'info'.
1718 * ppc-linux-tdep.c: Include linux-tdep.h.
1719 (ppc_linux_init_abi): Call linux_init_abi.
1720 * sh-linux-tdep.c: Include linux-tdep.h.
1721 (sh_linux_init_abi): Call linux_init_abi.
1722 * sparc-linux-tdep.c: Include linux-tdep.h.
1723 (sparc32_linux_init_abi): Call linux_init_abi.
1724 * sparc64-linux-tdep.c: Include linux-tdep.h.
1725 (sparc64_linux_init_abi): Call linux_init_abi.
1726 * xtensa-linux-tdep.c: Include linux-tdep.h.
1727 (xtensa_linux_init_abi): Call linux_init_abi.
1728 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
1729 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
1732 2010-08-03 Doug Evans <dje@google.com>
1734 * breakpoint.c (bpdisp_text): Constify bpdisps.
1735 * solib-svr4.c (solib_break_names): Constify.
1736 (bkpt_names, main_name_list): Constify.
1737 (match_main): Constify soname arg.
1738 (bfd_lookup_symbol): Remove unnecessary forward decl.
1739 Constify symname arg.
1740 (enable_break): Constify bkpt_namep.
1741 * symtab.c (search_symbols): Constify types, types2, types3, types4.
1742 (symtab_symbol_info): Constify classnames.
1744 2010-08-03 Phil Muldoon <pmuldoon@redhat.com>
1746 * NEWS: Document Python value inferior function calls.
1748 2010-08-02 Doug Evans <dje@google.com>
1750 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
1752 2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1754 * linux-thread-db.c (libthread_db_debug): New variable.
1755 (thread_db_find_new_threads_silently): Control verbosity with it.
1756 (try_thread_db_load_1, try_thread_db_load): Likewise.
1757 (find_new_threads_once): Likewise.
1758 (_initialize_thread_db): Set/show it.
1760 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1762 * common/signals.c (signals): Move the content to signals.def.
1763 Include it. Remove the INDENT comments.
1765 2010-07-30 Tom Tromey <tromey@redhat.com>
1767 * Makefile.in (install-only): Install gdb-add-index.
1768 * gdb-add-index.sh: New file.
1770 2010-07-31 Renquan Cheng <crq@gcc.gnu.org>
1772 * MAINTAINERS: Add myself for write after approval privileges.
1774 2010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1776 * symfile.c (addr_section_name): New function.
1777 (addrs_section_compar): Use it.
1778 (addr_info_make_relative): Use it. Move variable sect_name into a more
1779 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
1781 2010-07-30 Tom Tromey <tromey@redhat.com>
1783 * configure: Rebuild.
1784 * configure.ac: Add missing case for Python 2.7.
1786 2010-07-29 DJ Delorie <dj@redhat.com>
1788 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
1791 2010-07-29 Pedro Alves <pedro@codesourcery.com>
1793 * PROBLEMS: Remove mention of all problems.
1795 2010-07-28 Pedro Alves <pedro@codesourcery.com>
1798 * configure.ac: Check for wresize.
1799 * configure, config.in: Regenerate.
1800 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
1803 2010-07-28 Tom Tromey <tromey@redhat.com>
1806 * python/py-type.c (typy_legacy_template_argument): New function,
1807 extracted from typy_template_argument.
1808 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
1811 2010-07-28 Oleg Nesterov <oleg@redhat.com>
1813 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
1815 2010-07-27 Tom Tromey <tromey@redhat.com>
1817 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
1819 2010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
1821 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
1822 handling DW_AT_object_pointer, and workaround GCC PR 43053.
1824 2010-07-28 Tom Tromey <tromey@redhat.com>
1826 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
1828 2010-07-28 Joel Brobecker <brobecker@adacore.com>
1830 * remote.c (remote_download_tracepoint): Add missing gettext markup.
1831 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
1833 2010-07-28 Joel Brobecker <brobecker@adacore.com>
1835 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
1836 down, just before the block that parse the breakpoint addr_string.
1838 2010-07-28 Tom Tromey <tromey@redhat.com>
1841 * symfile.c (reread_symbols): Clear template_symbols.
1842 * symtab.h (struct symbol) <is_cplus_template_function>: New
1844 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
1845 (struct template_symbol): New.
1846 * symtab.c (lookup_symbol_aux_local): Use
1847 cp_lookup_symbol_imports_or_template.
1848 * objfiles.h (struct objfile) <template_symbols>: New field.
1849 * objfiles.c (relocate_one_symbol): New function.
1850 (objfile_relocate1): Use it. Relocate isolated symbols.
1851 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
1852 template_arguments>: New fields.
1853 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
1854 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
1855 (TYPE_TEMPLATE_ARGUMENT): Likewise.
1856 (lookup_typename): Update.
1857 * gdbtypes.c (lookup_typename): Constify "block" argument.
1858 * dwarf2read.c: Include vec.h.
1859 (symbolp): New typedef.
1860 (read_func_scope): Read template arguments. Allocate a
1861 template_symbol when needed.
1862 (read_structure_type): Read template arguments.
1863 (new_symbol_full): New function, from new_symbol. Handle
1864 DW_TAG_template_type_param and DW_TAG_template_value_param.
1865 (new_symbol): Rewrite as wrapper.
1866 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
1867 * cp-namespace.c: Include language.h.
1868 (search_symbol_list): New function.
1869 (cp_lookup_symbol_imports_or_template): Likewise.
1871 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
1873 * tui/tui-win.c (make_visible_with_new_height): Resize and move
1874 the command window to the new size and position.
1876 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
1878 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
1881 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
1883 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
1884 after a detecting a resize.
1885 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
1888 2010-07-28 Pedro Alves <pedro@codesourcery.com>
1890 * configure.ac: Check for resize_term.
1891 * configure, config.in: Regenerate.
1893 2010-07-27 Joel Brobecker <brobecker@adacore.com>
1895 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
1897 2010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
1899 * dwarf2read.c (read_string): Rename to ...
1900 (read_direct_string): ... this.
1901 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
1902 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
1904 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1906 * linux-nat.c (linux_nat_lp_status_is_event): New function.
1907 (count_events_callback, select_event_lwp_callback)
1908 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
1910 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1912 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
1913 (_initialize_ia64_linux_nat): Install it.
1914 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
1915 (linux_nat_set_status_is_event): New.
1916 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
1917 cancel_breakpoints_callback, linux_nat_filter_event)
1918 (linux_nat_wait_1): Use linux_nat_status_is_event.
1919 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
1921 2010-07-27 Tom Tromey <tromey@redhat.com>
1923 * NEWS: Mention labels, .gdb_index.
1925 2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
1927 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
1928 "start,+length" form of arguments.
1929 * NEWS: Add "Changed commands" (disassemble) section for "Changes
1930 since GDB 7.1"; and merge two separated paragraphs of disassemble
1931 description in "Changes in GDB 7.0".
1933 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1935 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
1936 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
1937 (fputs_maybe_filtered): Do not do filtering also on
1938 ! INPUT_FROM_TERMINAL_P.
1940 2010-07-27 Joel Brobecker <brobecker@adacore.com>
1942 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
1945 2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
1947 * python/py-value.c (valpy_call): New Function.
1949 2010-07-27 Ken Werner <ken.werner@de.ibm.com>
1951 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
1952 types_list_elements variables.
1954 2010-07-26 Tom Tromey <tromey@redhat.com>
1956 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
1957 TLS with DW_OP_const4u or DW_OP_const8u.
1959 2010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
1961 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
1962 VSX registers contents.
1964 2010-07-26 Jerome Guitton <guitton@adacore.com>
1966 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
1967 its adress is null. Add comment to explain why.
1968 (new_symbol): Ditto.
1970 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1972 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
1973 the host signal first.
1975 2010-07-23 Tom Tromey <tromey@redhat.com>
1977 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
1978 type_comp_units>: New fields.
1979 (dw2_get_cu): New function.
1980 (create_cus_from_index): Remove unused argument.
1981 (create_signatured_type_hash_from_index): New function.
1982 (create_addrmap_from_index): Update.
1983 (dwarf2_read_index): Handle version 2.
1984 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
1985 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
1986 (dw2_print_stats, dw2_expand_all_symtabs)
1987 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
1988 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
1989 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
1990 (allocate_signatured_type_hash_table): New function.
1991 (add_signatured_type_cu_to_list): Likewise.
1992 (create_debug_types_hash_table): Use them. Set type_comp_units.
1993 (read_signatured_type): Ensure section data is available.
1994 (add_address_entry): Don't record empty ranges.
1995 (struct signatured_type_index_data): New.
1996 (write_one_signatured_type): New function.
1997 (write_psymtabs_to_index): Write type CUs.
1998 (save_gdb_index_command): Update comment.
1999 (process_type_comp_unit): Move inititalization of
2001 (create_debug_types_hash_table): ... here.
2003 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2005 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
2006 cleanup and generating of gdb script to it.
2007 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
2008 and terminal size. Convert $tmpfile to a series of -ex-es.
2010 2010-07-23 Keith Seitz <keiths@redhat.com>
2012 * symtab.c (basic_lookup_transparent_type): Call pre-expand
2013 hook for STATIC_BLOCK types, too.
2015 2010-07-23 Keith Seitz <keiths@redhat.com>
2017 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
2018 and vector definition.
2020 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2022 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
2024 2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2026 * dwarf2read.c: Include completer.h.
2027 (save_gdb_index_command): Use matching usage command name.
2028 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
2029 Set filename_completer for it.
2031 2010-07-22 Tom Tromey <tromey@redhat.com>
2033 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
2034 type signature's per-CU data.
2036 2010-07-22 Pedro Alves <pedro@codesourcery.com>
2038 * NEWS: Mention target reported shared libraries support by
2041 2010-07-21 Pedro Alves <pedro@codesourcery.com>
2046 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2047 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
2048 and DW_TAG_volatile_type.
2049 (new_symbol): Likewise.
2051 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
2053 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
2054 function symbols before overload resolution.
2056 2010-07-21 Pedro Alves <pedro@codesourcery.com>
2058 * breakpoint.c (bptype_string): New, abstracted out from
2059 print_one_breakpoint_location.
2060 (print_one_breakpoint_location): Adjust.
2061 (breakpoint_1): Adjust the type column width dynamically.
2063 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2065 * symfile.c (find_separate_debug_file_by_debuglink): Remove
2066 a gdb_assert call, new comment.
2068 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2070 * linux-nat.c (linux_handle_extended_wait): Handle case when
2071 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
2073 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2076 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
2077 linux_nat_wait_1. Use always LP->STATUS afterwards.
2079 2010-07-20 Hui Zhu <teawater@gmail.com>
2081 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
2082 (inf_ptrace_attach): Ditto.
2084 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2086 Make core files the process_stratum.
2087 * corefile.c (core_target): New variable.
2088 (core_file_command): Remove variable t, use core_target.
2089 * corelow.c (core_ops): Make it static.
2090 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
2091 * defs.h (make_cleanup_unpush_target): New prototype.
2092 * gdbarch.h: Regenerate.
2093 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
2094 * gdbcore.h (core_target): New declaration.
2095 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
2096 variables ops_already_pushed and back_to. Use push_target,
2097 make_cleanup_unpush_target and discard_cleanups calls.
2098 * record.c (record_open): Replace core_stratum by a core_bfd check.
2099 * target.c (target_is_pushed): New function.
2100 (find_core_target): Remove.
2101 * target.h (enum strata) <core_stratum>: Remove.
2102 (target_is_pushed): New declaration.
2103 (find_core_target): Remove declaration.
2104 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
2105 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
2107 2010-07-19 Hui Zhu <teawater@gmail.com>
2109 * breakpoint.c (single_step_breakpoints_inserted): New
2111 * breakpoint.h (single_step_breakpoints_inserted): Extern.
2112 * infrun.c (maybe_software_singlestep): Add check code.
2113 * record.c (record_resume): Add code for software single step.
2114 (record_wait): Ditto.
2116 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2118 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
2119 a more inner block. Remove its unused declaration initializer.
2121 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
2123 * NEWS: Mention support for the new ptrace interface and hardware
2124 accelerated watchpoint conditions on powerpc-linux.
2126 2010-07-16 Ozkan Sezer <sezeroz@gmail.com>
2128 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
2129 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
2130 and host_address_to_string() and %s for pointers.
2131 (debug_to_remove_breakpoint): Likewise.
2132 (debug_to_region_ok_for_hw_watchpoint): Likewise.
2133 (debug_to_can_accel_watchpoint_condition): Likewise.
2134 (debug_to_stopped_data_address): Likewise.
2135 (debug_to_watchpoint_addr_within_range): Likewise.
2136 (debug_to_insert_hw_breakpoint): Likewise.
2137 (debug_to_remove_hw_breakpoint): Likewise.
2138 (debug_to_insert_watchpoint): Likewise.
2139 (debug_to_remove_watchpoint): Likewise.
2141 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2143 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
2145 (cplus_specific): New struct.
2146 * symtab.c (symbol_set_demangled_name): Updated.
2147 Use cplus_specific for cplus symbols.
2148 (symbol_get_demangled_name): Retrive the name from the cplus_specific
2149 struct for cplus symbols.
2150 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
2151 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
2152 * symtab.c (symbol_init_cplus_specific): New function.
2154 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2156 * symtab.h (symbol_set_demangled_name): New function.
2157 (symbol_get_demangled_name): New function.
2158 * symtab.c (symbol_set_demangled_name): New function.
2159 (symbol_get_demangled_name): New function.
2160 (symbol_init_language_specific): Use demangled_name setter and getter.
2161 (symbol_set_names): Ditto.
2162 (symbol_natural_name): Ditto.
2163 (symbol_demangled_name): Ditto.
2164 * dwarf2read.c (new_symbol): Ditto.
2166 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2168 * symtab.h: Renamed cplus_specific to mangled_lang.
2169 * symtab.c (symbol_init_language_specific): Updated.
2170 (symbol_set_names): Updated.
2171 (symbol_natural_name): Updated.
2172 (symbol_demangled_name): Updated.
2173 * ada-lang.c (ada_decode_symbol): Updated.
2174 * dwarf2read.c (new_symbol): Updated.
2176 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
2178 * valops.c (value_assign): Do not call to value_coerce_to_target.
2179 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
2181 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
2183 * MAINTAINERS: Add myself for write after approval privileges.
2185 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
2187 * c-valprint.c (c_val_print): Add embedded_offset to address in
2188 call to val_print_array_elements.
2190 2010-07-13 Tom Tromey <tromey@redhat.com>
2192 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
2194 2010-07-13 Tom Tromey <tromey@redhat.com>
2196 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
2199 2010-07-13 Tom Tromey <tromey@redhat.com>
2201 * symfile.c (set_initial_language): Update.
2202 (deduce_language_from_filename): Argument type now const.
2203 * symtab.h (find_main_filename): Update.
2204 (deduce_language_from_filename): Update.
2205 * symtab.c (find_main_filename): Make result const.
2206 * dwarf2read.c (dw2_find_symbol_file): Change return type.
2207 * psymtab.c (find_symbol_file_from_partial): Change return type.
2208 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2211 2010-07-13 Tom Tromey <tromey@redhat.com>
2213 * breakpoint.c (save_cmdlist): No longer static.
2214 * gdbcmd.h (save_cmdlist): Declare.
2215 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
2216 OBJF_READNOW on objfile if readnow_symbol_files.
2217 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
2218 (elf_sym_fns_gdb_index): New global.
2219 * dwarf2read.c: Include exceptions.h.
2221 (struct mapped_index): New.
2222 (dwarf2_per_cu_data_ptr): New typedef.
2223 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
2225 (GDB_INDEX_SECTION): New define.
2226 (struct dwarf2_per_cu_quick_data): New.
2227 (struct dwarf2_per_cu_data) <objfile>: New field.
2230 (byte_swap): New function.
2231 (MAYBE_SWAP): New macro.
2232 (INDEX_SUFFIX): New macro.
2233 (dw2_do_instantiate_symtab): New function.
2234 (dw2_instantiate_symtab): Likewise.
2235 (create_cus_from_index): Likewise.
2236 (create_addrmap_from_index): Likewise.
2237 (mapped_index_string_hash): Likewise.
2238 (find_slot_in_mapped_hash): Likewise.
2239 (dwarf2_read_index): Likewise.
2240 (dw2_setup): Likewise.
2241 (dw2_require_line_header): Likewise.
2242 (dw2_require_full_path): Likewise.
2243 (dw2_find_last_source_symtab): Likewise.
2244 (dw2_forget_cached_source_info): Likewise.
2245 (dw2_lookup_symtab): Likewise.
2246 (dw2_lookup_symbol): Likewise.
2247 (dw2_do_expand_symtabs_matching): Likewise.
2248 (dw2_pre_expand_symtabs_matching): Likewise.
2249 (dw2_print_stats): Likewise.
2250 (dw2_dump): Likewise.
2251 (dw2_relocate): Likewise.
2252 (dw2_expand_symtabs_for_function): Likewise.
2253 (dw2_expand_all_symtabs): Likewise.
2254 (dw2_expand_symtabs_with_filename): Likewise.
2255 (dw2_find_symbol_file): Likewise.
2256 (dw2_map_ada_symtabs): Likewise.
2257 (dw2_expand_symtabs_matching): Likewise.
2258 (dw2_find_pc_sect_symtab): Likewise.
2259 (dw2_map_symbol_names): Likewise.
2260 (dw2_map_symbol_filenames): Likewise.
2261 (dw2_has_symbols): Likewise.
2262 (dwarf2_gdb_index_functions): New global.
2263 (dwarf2_initialize_objfile): New function.
2264 (process_psymtab_comp_unit): Update.
2265 (add_partial_subprogram): Likewise.
2266 (dwarf2_psymtab_to_symtab): Likewise.
2267 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
2268 (process_full_comp_unit): Update.
2269 (find_file_and_directory): New function.
2270 (read_file_scope): Use find_file_and_directory.
2271 (dwarf2_per_cu_objfile): Update.
2272 (dwarf2_per_cu_addr_size): Update.
2273 (dwarf2_per_cu_offset_size): Update.
2274 (dwarf2_free_objfile): Free the index, if needed.
2275 (dwarf2_per_objfile_free): Unmap the index, if needed.
2276 (struct strtab_entry): New.
2277 (hash_strtab_entry): New function.
2278 (eq_strtab_entry): Likewise.
2279 (create_strtab): Likewise.
2280 (add_string): Likewise.
2281 (struct symtab_index_entry): New.
2282 (struct mapped_symtab): New.
2283 (hash_symtab_entry): New function.
2284 (eq_symtab_entry): Likewise.
2285 (delete_symtab_entry): Likewise.
2286 (create_index_table): Likewise.
2287 (create_mapped_symtab): Likewise.
2288 (cleanup_mapped_symtab): Likewise.
2289 (find_slot): Likewise.
2290 (hash_expand): Likewise.
2291 (add_index_entry): Likewise.
2292 (add_indices_to_cpool): Likewise.
2293 (write_hash_table): Likewise.
2294 (add_address_entry): Likewise.
2295 (write_psymbols): Likewise.
2296 (write_obstack): Likewise.
2297 (unlink_if_set): Likewise.
2298 (write_psymtabs_to_index): Likewise.
2299 (save_gdb_index_command): Likewise.
2300 (_initialize_dwarf2_read): Install "save gdb-index"
2302 (create_all_comp_units): Initialize 'objfile' field of CU.
2303 (dwarf2_locate_sections): Check for .gdb_index.
2304 * psymtab.h (dwarf2_gdb_index_functions): Declare.
2305 * symfile.h (dwarf2_initialize_objfile): Declare.
2307 2010-07-13 Tom Tromey <tromey@redhat.com>
2309 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
2310 (basic_lookup_transparent_type): Likewise.
2311 * symfile.h (struct quick_symbol_functions)
2312 <pre_expand_symtabs_matching>: New field.
2313 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
2314 (psym_functions): Update.
2316 2010-07-13 Tom Tromey <tromey@redhat.com>
2318 PR breakpoints/8357:
2319 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
2320 * linespec.c (decode_line_1): Update comment. Call decode_label.
2321 (decode_label): New function.
2322 (symbol_found): Handle LOC_LABEL.
2323 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
2324 domain. Call add_symbol_to_list.
2326 2010-07-13 Tom Tromey <tromey@redhat.com>
2328 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
2329 * dwarf2loc.c (find_location_expression): Use
2330 dwarf2_per_cu_text_offset.
2331 (dwarf2_evaluate_loc_desc): Likewise.
2332 (dwarf2_loc_desc_needs_frame): Likewise.
2333 (compile_dwarf_to_ax): Likewise.
2334 (loclist_describe_location): Likewise.
2335 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
2336 (dwarf2_per_cu_objfile): Update comment.
2338 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2340 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
2341 * p-lang.c (pascal_printstr): Likewise.
2343 2010-07-09 Tom Tromey <tromey@redhat.com>
2345 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
2346 'hint' if it is NULL.
2348 2010-07-09 Hui Zhu <teawater@gmail.com>
2350 * source.c (print_source_lines_base): Add check for noprint.
2352 2010-07-08 Joel Brobecker <brobecker@adacore.com>
2354 * python/python-config.py: Resync with Python 2.7 version of this
2357 2010-07-08 Joel Brobecker <brobecker@adacore.com>
2359 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
2361 2010-07-07 Joel Brobecker <brobecker@adacore.com>
2363 * NEWS: Create a new section for the next release branch.
2364 Rename the section of the current branch, now that it has
2367 2010-07-07 Joel Brobecker <brobecker@adacore.com>
2369 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
2370 * version.in: Bump version to 7.2.50.20100707-cvs.
2372 2010-07-07 Tom Tromey <tromey@redhat.com>
2374 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
2375 LOC_COMPUTED symbol.
2376 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
2377 (dwarf2_loc_desc_needs_frame): Likewise.
2378 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
2379 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
2380 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
2381 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
2383 (struct dwarf2_frame_cache) <text_offset>: New field.
2384 (dwarf2_frame_cache): Set new field.
2385 (dwarf2_frame_prev_register): Update.
2386 (dwarf2_frame_sniffer): Update.
2387 (dwarf2_frame_base_sniffer): Update.
2388 (dwarf2_frame_find_fde): Add 'out_offset' argument.
2390 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2391 Thiago Jung Bauermann <bauerman@br.ibm.com>
2393 Support for hw accelerated condition watchpoints in booke powerpc.
2395 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
2396 and move to eval.c. Change callers.
2397 (insert_bp_location): Pass watchpoint condition in
2398 target_insert_watchpoint.
2399 (remove_breakpoint_1) Pass watchpoint condition in
2400 target_remove_watchpoint.
2401 (watchpoint_locations_match): Call
2402 target_can_accel_watchpoint_condition.
2403 * eval.c: Include wrapper.h.
2404 (fetch_subexp_value): Moved from breakpoint.c.
2405 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
2407 (can_use_watchpoint_cond_accel): New function.
2408 (calculate_dvc): Likewise.
2409 (num_memory_accesses): Likewise.
2410 (check_condition): Likewise.
2411 (ppc_linux_can_accel_watchpoint_condition): Likewise
2412 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
2413 check_condition and calculate_dvc.
2414 (ppc_linux_remove_watchpoint): Likewise.
2415 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
2416 ppc_linux_can_accel_watchpoint_condition
2417 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
2419 (debug_to_remove_watchpoint): Likewise.
2420 (debug_to_can_accel_watchpoint_condition): New function.
2421 (update_current_target): Set to_can_accel_watchpoint_condition.
2422 (setup_target_debug): Set to_can_accel_watchpoint_condition.
2423 * target.h: Add opaque declaration for struct expression.
2424 (struct target_ops) <to_insert_watchpoint>,
2425 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
2426 <to_can_accel_watchpoint_condition>: New member.
2427 condition. Update all callers and implementations.
2428 (target_can_accel_watchpoint_condition): New macro.
2429 * value.c (free_value_chain): New function.
2430 * value.h (fetch_subexp_value): New prototype.
2431 (free_value_chain): Likewise.
2433 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
2435 * linux-nat.c (linux_nat_do_thread_registers): Use section size
2436 from gdbarch_core_regset_sections also for .reg if present.
2438 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
2439 section size for .reg.
2440 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
2441 (ppc_linux_vmx_regset_sections): Likewise.
2442 (ppc_linux_fp_regset_sections): Likewise.
2443 (ppc64_linux_vsx_regset_sections): New variable.
2444 (ppc64_linux_vmx_regset_sections): Likewise.
2445 (ppc64_linux_fp_regset_sections): Likewise.
2446 (ppc_linux_init_abi): Install core_regset_section lists appropriate
2447 for current word size.
2449 2010-07-06 Joel Brobecker <brobecker@adacore.com>
2451 * server.c (myresume): Make static.
2453 2010-07-06 Tom Tromey <tromey@redhat.com>
2455 * configure, config.in: Rebuild.
2456 * configure.ac (HAVE_LIBPYTHON2_7): New define.
2457 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
2459 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
2461 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
2464 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
2466 * gdbtypes.h (floatformats_ieee_half): Add declaration.
2467 * gdbtypes.c (floatformats_ieee_half): New variable.
2468 * doublest.c (floatformat_from_length): Set format to
2469 gdbarch_half_format if length matches.
2470 * gdbarch.sh (half_bit): New architecture method.
2471 (half_format): Likewise.
2472 * gdbarch.h: Regenerate.
2473 * gdbarch.c: Likewise.
2475 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2476 Joel Brobecker <brobecker@adacore.com>
2478 Fix re-run of PIE executable, PR shlibs/11776.
2479 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
2480 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
2482 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2483 Joel Brobecker <brobecker@adacore.com>
2485 * auxv.c (memory_xfer_auxv): Update attach comment.
2486 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
2487 svr4_relocate_main_executable.
2488 (svr4_solib_create_inferior_hook): Make the call to
2489 svr4_relocate_main_executable unconditional.
2491 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2492 Joel Brobecker <brobecker@adacore.com>
2494 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
2496 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2497 Joel Brobecker <brobecker@adacore.com>
2499 Fix attaching to PIEs prelinked on the disk after the process was
2501 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
2502 Verify it against bfd_get_arch_size. Try to match arbitrary
2503 displacement for the phdrs comparison.
2505 2010-07-02 Tom Tromey <tromey@redhat.com>
2508 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
2509 value as optimized-out.
2511 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
2512 Thiago Jung Bauermann <bauerman@br.ibm.com>
2514 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
2515 represent?" question in comment. Change comment to a proper sentence.
2517 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
2519 * c-valprint.c (c_val_print): Fix printing of character vectors.
2521 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2523 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
2524 create_breakpoint prototype.
2526 2010-07-01 Pedro Alves <pedro@codesourcery.com>
2528 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
2529 usefulness suggestion of multiple breakpoints at same location.
2531 2010-07-01 Pedro Alves <pedro@codesourcery.com>
2533 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
2535 2010-07-01 Pedro Alves <pedro@codesourcery.com>
2537 * dwarf2loc.c (locexpr_tracepoint_var_ref)
2538 (loclist_tracepoint_var_ref): Handle optimized out values.
2540 2010-07-01 Pedro Alves <pedro@codesourcery.com>
2542 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
2543 unnecessary space in string.
2544 * filesystem.c (_initialize_filesystem): Ditto.
2545 * frame.c (_initialize_frame): Ditto.
2546 * infcmd.c (step_once): Ditto.
2547 * infrun.c (_initialize_infrun): Ditto.
2548 * linux-nat.c (linux_child_follow_fork): Ditto.
2549 * maint.c (maintenance_deprecate): Ditto.
2550 * memattr.c (_initialize_mem): Ditto.
2551 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2552 * monitor.c (monitor_open): Ditto.
2553 * procfs.c (procfs_xfer_memory): Ditto.
2554 * reverse.c (bookmarks_info): Ditto.
2555 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
2556 * stack.c (_initialize_stack): Ditto.
2557 * tracepoint.c (_initialize_tracepoint): Ditto.
2558 * xtensa-tdep.c (xtensa_supply_gregset,
2559 xtensa_regset_from_core_section): Ditto.
2561 2010-07-01 Tom Tromey <tromey@redhat.com>
2563 * value.h (struct lval_funcs) <check_any_valid>: Rename from
2565 * value.c (value_entirely_optimized_out): Invert result. Update
2566 for new function name.
2568 2010-07-01 Pedro Alves <pedro@codesourcery.com>
2570 Static tracepoints support.
2572 * NEWS: Mention new support for static tracepoints.
2573 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
2574 qXfer:statictrace:read.
2575 (New features in the GDB remote stub, GDBserver): Mention static
2576 tracepoints support using an UST based backend.
2577 (New commands): Mention "info static-tracepoint-markers" and
2579 * breakpoint.c (is_marker_spec): New.
2580 (is_tracepoint): Handle static tracepoints.
2581 (validate_commands_for_breakpoint): Static tracepoints can't do
2583 (static_tracepoints_here): New.
2584 (bpstat_what): Handle static tracepoints.
2585 (print_one_breakpoint_location, allocate_bp_location, mention):
2587 (create_breakpoint_sal): Ditto.
2588 (decode_static_tracepoint_spec): New.
2589 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
2590 `type_wanted'. Adjust. Handle static tracepoint marker
2592 (break_command_1): Adjust.
2593 (update_static_tracepoint): New.
2594 (update_breakpoint_locations): Handle static tracepoints.
2595 (breakpoint_re_set_one): Handle static tracepoint marker
2597 (disable_command, enable_command): Handle static tracepoints.
2598 (trace_command, ftrace_command): Adjust.
2599 (strace_command): New.
2600 (create_tracepoint_from_upload): Adjust.
2601 (save_breakpoints): Handle static tracepoints.
2602 (_initialize_breakpoint): Install the "strace" command.
2603 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
2604 (struct breakpoint): New fields static_trace_marker_id and
2605 static_trace_marker_id_idx.
2606 (breakpoints_here_p): Declare.
2607 (create_breakpoint): Adjust.
2608 (static_tracepoints_here): Declare.
2609 * remote.c (struct remote_state) <static_tracepoints>: New field.
2610 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
2611 (remote_static_tracepoint_marker_at): New.
2612 (remote_static_tracepoint_markers_by_strid): New.
2613 (remote_static_tracepoint_feature): New.
2614 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
2615 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
2616 (remote_supports_static_tracepoints): New.
2617 (remote_download_tracepoint): Download static tracepoints.
2618 (init_remote_ops): Install remote_static_tracepoint_marker_at and
2619 remote_static_tracepoint_markers_by_strid.
2620 (_initialize_remote): Install set|show remote static-tracepoints,
2621 and set|show remote read-sdata-object commands.
2622 * target.c (update_current_target): Inherit and default
2623 to_static_tracepoint_marker_at, and
2624 to_static_tracepoint_markers_by_strid.
2625 * target.h (static_tracepoint_marker): Forward declare.
2626 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
2627 (static_tracepoint_marker_p): New typedef.
2628 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
2629 (struct target_ops): New fields to_static_tracepoint_marker_at and
2630 to_static_tracepoint_markers_by_strid.
2631 (target_static_tracepoint_marker_at)
2632 (target_static_tracepoint_markers_by_strid): New.
2633 * tracepoint.c: Include source.h.
2634 (validate_actionline): Handle $_sdata.
2635 (struct collection_list): New field strace_data.
2636 (add_static_trace_data): New.
2637 (clear_collection_list): Clear strace_data.
2638 (stringify_collection_list): Account for a possible static trace
2640 (encode_actions_1): Encode an $_sdata collection.
2641 (parse_tracepoint_definition): Handle static tracepoints.
2642 (parse_static_tracepoint_marker_definition): New.
2643 (release_static_tracepoint_marker): New.
2644 (print_one_static_tracepoint_marker): New.
2645 (info_static_tracepoint_markers_command): New.
2646 (sdata_make_value): New.
2647 (_initialize_tracepoint): Create the $_sdata convenience variable.
2648 Add the "info static-tracepoint-markers" command.
2649 Mention $_sdata in the "collect" command's help output.
2650 * tracepoint.h (struct static_tracepoint_marker): New.
2651 (parse_static_tracepoint_marker_definition)
2652 (release_static_tracepoint_marker): Declare.
2653 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
2654 * python/py-breakpoint.c (bppy_new): Adjust.
2656 2010-06-30 Joel Brobecker <brobecker@adacore.com>
2658 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
2661 2010-06-29 Doug Evans <dje@google.com>
2664 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
2665 DW_AT_external is present.
2669 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
2670 create a symbol for the field and record the value.
2671 (new_symbol): Handle DW_TAG_member.
2672 * gdbtypes.c (field_is_static): Remove FIXME.
2673 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
2674 only ignore LOC_CONST symbols that are enums.
2676 * dwarf2read.c: Remove trailing whitespace.
2678 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
2679 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
2680 (struct main_type, field loc): Delete dwarf_block.
2681 (FIELD_DWARF_BLOCK): Delete.
2682 (SET_FIELD_DWARF_BLOCK): Delete.
2683 (TYPE_FIELD_DWARF_BLOCK): Delete.
2684 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
2687 2010-06-29 Hui Zhu <teawater@gmail.com>
2689 * record.c (set_record_pic_cmdlist,
2690 show_record_pic_cmdlist): New variables.
2691 (set_record_pic_command,
2692 show_record_pic_command): New functions.
2693 (record_pic_function, record_pic_line, record_pic_enum,
2694 set_record_pic_type, record_pic_hide_nofunction,
2695 record_pic_hide_nosource, record_pic_hide_same): New variables.
2696 (record_pic_fputs): New function.
2697 (function_list, node_list, edge_list): New struct.
2698 (function_list, node_list, edge_list): New variables.
2699 (record_pic_cleanups, record_pic_node,
2700 record_pic_edge, cmd_record_pic): New functions.
2701 (_initialize_record): Add new commands for record pic.
2703 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2705 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
2706 ALLOCATE_CPLUS_STRUCT_TYPE.
2708 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
2709 Tom Tromey <tromey@redhat.com>
2710 Thiago Jung Bauermann <bauerman@br.ibm.com>
2712 * value.c (pack_unsigned_long): New function.
2713 (value_from_ulongest): New function.
2714 * value.h (value_from_ulongest): Declare.
2715 * python/python.c (_initialize_python): Call
2716 gdbpy_initialize_thread and gdbpy_initialize_inferior.
2717 * python/python-internal.h: Define thread_object.
2718 (gdbpy_inferiors, gdbpy_selected_thread)
2719 (frame_info_to_frame_object, create_thread_object)
2720 (find_thread_object, find_inferior_object)
2721 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
2722 (gdbpy_is_value_object, get_addr_from_python): Declare.
2723 * python/py-value.c (builtin_type_upylong): Define.
2724 (convert_value_from_python): Add logic for ulongest.
2725 (gdbpy_is_value_object): New function.
2726 * python/py-utils.c (get_addr_from_python): New function.
2727 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
2728 (gdbpy_selected_frame): Use PyObject over frame_info.
2729 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
2731 (SUBDIR_PYTHON_SRCS): Likewise.
2732 (py-inferior.o): New Rule.
2733 (py-infthread.o): New Rule.
2734 * python/py-inferior.c: New File.
2735 * python/py-infthread.c: New File.
2737 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2739 * c-typeprint.c (c_type_print_base): For no fields check include also
2740 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
2741 * dwarf2read.c (struct typedef_field_list)
2742 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
2743 (dwarf2_add_typedef): New.
2744 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
2745 Copy also FI.TYPEDEF_FIELD_LIST.
2746 * gdbtypes.h (struct typedef_field)
2747 (struct cplus_struct_type) <typedef_field, typedef_field_count>
2748 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
2749 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
2751 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2753 * cp-namespace.c (cp_lookup_nested_type): New variable
2754 concatenated_name. Turn the current return condition into a reverse
2755 one. Call also lookup_static_symbol_aux on the constructed qualified
2757 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
2758 other files into a called ...
2759 (lookup_static_symbol_aux): ... new function here.
2760 * symtab.h (lookup_static_symbol_aux): New prototype.
2761 * valops.c (value_maybe_namespace_elt): Call also
2762 lookup_static_symbol_aux if we failed otherwise.
2764 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2766 Fix PR c++/11703 and PR gdb/1448.
2767 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
2770 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2772 Fix modification of cplus_struct_default.
2773 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
2774 Call ALLOCATE_CPLUS_STRUCT_TYPE.
2775 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
2777 2010-06-28 Joel Brobecker <brobecker@adacore.com>
2779 * NEWS: Add entry announcing the python directory.
2781 2010-06-28 Tom Tromey <tromey@redhat.com>
2783 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
2785 2010-06-28 Doug Evans <dje@google.com>
2787 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
2788 All callers updated.
2790 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2792 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
2793 obstack_begin after each obstack_free.
2795 2010-06-27 Doug Evans <dje@google.com>
2797 * value.c (value_static_field): Use `switch' instead of `if'.
2798 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
2800 * valops.c (search_struct_field): Fix typo in error message.
2802 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
2804 * dwarf2expr.c (execute_stack_op): Place preprocessor
2805 directives at the start of the source line.
2807 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
2809 * defs.h (make_command_stats_cleanup): Declare.
2810 (set_display_time): Declare.
2811 (set_display_space): Declare.
2812 * event-top.c (command_handler): Use make_command_stats_cleanup.
2813 * main.c (display_time, display_space): Move definitions to utils.c.
2814 (captured_main): Use make_command_stats_cleanup to get start-up
2816 Use set_display_time and set_display_space for processing OPT_STATISTICS
2818 * maint.c (maintenance_time_display): Use set_display_time.
2819 (maintenance_space_display): Use set_display_space.
2820 * top.c (execute_command): Remove obsolete 'maint time' code.
2821 (command_loop): Use make_command_stats_cleanup.
2822 * utils.c (struct cmd_stats): Structure for storing initial time
2824 (display_time, display_space): Move definitions here from utils.c.
2825 (set_display_time): New function.
2826 (set_display_space): New function.
2827 (make_command_stats_cleanup): New function.
2828 (report_command_stats): New auxiliary function for
2829 make_command_stats_cleanup.
2831 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2833 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
2834 hosts where CORE_ADDR is long long.
2836 2010-06-25 Tom Tromey <tromey@redhat.com>
2839 * python/python.c (execute_gdb_command): Add keywords. Accept
2840 "to_string" argument.
2841 (struct restore_ui_file_closure): New.
2842 (restore_ui_file): New function.
2843 (make_cleanup_restore_ui_file): Likewise.
2844 (GdbMethods) <execute>: Update.
2846 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2848 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
2849 during inferior call stack frame setup.
2851 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
2853 * solib-spu.c: Include "exception.h".
2854 (ocl_program_data_key): New variable.
2855 (append_ocl_sos): New function.
2856 (ocl_enable_break): Likewise.
2857 (spu_current_sos): Call append_ocl_sos.
2858 (spu_solib_loaded): Call ocl_enable_break.
2859 (_initialize_spu_solib): Register ocl_program_data_key.
2861 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2863 * cp-support.c (reset_directive_searched): New function.
2864 (make_symbol_overload_list_using): Prevent recursive calls.
2866 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
2868 * printcmd.c (print_variable_and_value): Print error message on
2871 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2873 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
2875 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
2877 (dwarf_expr_push): Change input type to ULONGEST.
2878 (dwarf_expr_fetch): Change return type to ULONGEST.
2879 (dwarf_expr_fetch_address): Add prototype.
2880 (dwarf2_read_address): Remove prototype.
2881 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
2882 Truncate stack values to ctx->addr_size bytes.
2883 (dwarf_expr_fetch): Change return value to ULONGEST.
2884 (dwarf_expr_fetch_address): New function.
2885 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
2886 when appropriate. Update for struct dwarf_expr_piece changes.
2887 (dwarf2_read_address): Remove.
2888 (unsigned_address_type): Remove.
2889 (signed_address_type): Remove.
2890 (execute_stack_op): Use dwarf_expr_fetch_address instead of
2891 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
2892 values. Perform operations on ULONGEST instead of on GDB values,
2893 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
2894 values and DW_OP_deref results as unsigned integers.
2895 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
2897 (write_pieced_value): Likewise.
2898 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
2899 dwarf_expr_fetch when appropriate.
2900 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
2901 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
2902 instead of dwarf_expr_fetch when appropriate.
2904 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
2906 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
2908 2010-06-24 Joel Brobecker <brobecker@adacore.com>
2910 * python/python.c (_initialize_python): Add new "constant"
2911 PYTHONDIR in gdb module. Insert this path at the head of
2912 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
2913 exec its __init__.py script if it exists in that directory.
2915 2010-06-24 Kevin Buettner <kevinb@redhat.com>
2917 * rx-tdep.c (RX_ACC_REGNUM): Define.
2918 (RX_NUM_REGS): Redefine to 26.
2919 (rx_register_name): Add register "acc". Change order of several
2920 registers. Change name of "vct" register to "fintv" to match RX
2922 (rx_register_type): Add case for RX_ACC_REGNUM.
2924 2010-06-24 Tom Tromey <tromey@redhat.com>
2926 * psymtab.c (lookup_partial_symbol): Mark definition as static.
2928 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2929 Tom Tromey <tromey@redhat.com>
2931 Fix GDB startup on readonly filesystem.
2932 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
2934 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2935 Pedro Alves <pedro@codesourcery.com>
2938 * breakpoint.c (handle_jit_event): New function.
2939 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
2940 jit, err, table and bs_class. New variables shlib_event, jit_event,
2941 this_action and bptype. Change bs_class assignments to this_action
2942 assignments. new unhandled bptype internal error. Move here
2943 shlib_event and jit_event handling from handle_inferior_event.
2944 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
2945 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
2946 BPSTAT_WHAT_CHECK_JIT.
2947 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
2948 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
2949 (handle_inferior_event): Reinitialize frame and gdbarch after
2950 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
2951 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
2952 gdbarch when frame gets reinitialized.
2954 2010-06-24 Hui Zhu <teawater@gmail.com>
2956 * printcmd.c (ui_printf): New function.
2957 (printf_command): Call ui_printf.
2958 (_initialize_printcmd): New command "eval".
2960 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
2962 * infrun.c (handle_inferior_event): Handle presence of single-step
2963 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
2964 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
2965 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
2966 * breakpoint.c (detach_single_step_breakpoints): New function.
2967 (detach_breakpoints): Call it.
2968 (cancel_single_step_breakpoints): New function.
2969 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
2971 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
2972 (spu_gdbarch_init): Install it.
2974 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2976 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
2977 * configure: Regenerate.
2979 2010-06-22 Hui Zhu <teawater@gmail.com>
2981 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
2982 (i386_process_record): Ditto.
2983 * record.c (record_memory_query): New variable.
2984 (_initialize_record): New command "set record memory-query".
2985 * record.h (record_memory_query): New extern.
2987 2010-06-21 Doug Evans <dje@google.com>
2989 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
2990 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
2991 (i386_syscall_p): Change type of lengthp to int.
2992 (i386_displaced_step_fixup): Handle kernels that run one past a
2994 * i386-linux-tdep.c (i386_linux_init_abi): Use
2995 i386_displaced_step_copy_insn instead of
2996 simple_displaced_step_copy_insn.
2998 2010-06-21 Tom Tromey <tromey@redhat.com>
3000 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
3001 (dwarf_type_encoding_name): Likewise.
3003 2010-06-21 Tom Tromey <tromey@redhat.com>
3005 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
3006 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
3007 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
3008 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
3009 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
3010 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
3011 * dwarf2read.c (tag_type_to_type): Create a new error type on
3013 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
3014 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
3016 2010-06-21 Michael Snyder <msnyder@vmware.com>
3018 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
3019 not add_abbrev_prefix_cmd, for "enable breakpoints".
3021 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
3023 * dwarf2loc.c (find_location_expression): Add relocation offset
3024 to base-address-selection entry base addresses. Read addresses
3025 (and offsets) as signed/unsigned integers, depending on the
3026 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
3027 (loclist_describe_location): Likewise.
3028 (disassemble_dwarf_expression): Read DW_OP_addr operand as
3029 unsigned integer. Do not call dwarf2_read_address.
3030 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
3032 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
3034 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
3035 value instead of hard-coded SPU_LS_SIZE.
3036 (spu_software_single_step): Likewise.
3037 * spu-tdep.h (SPU_LS_SIZE): Remove.
3039 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
3041 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
3042 limit on local store memory accesses.
3043 * spu-linux-nat.c (spu_xfer_partial): Likewise.
3044 * spu-tdep.c (spu_lslr): Remove.
3045 (spu_pointer_to_address): Do not truncate addresses.
3046 (spu_integer_to_address): Likewise.
3047 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
3048 * spu-tdep.h: Add comments.
3049 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
3050 (SPU_OVERLAY_LMA): Define.
3052 2010-06-18 Stan Shebs <stan@codesourcery.com>
3054 * osdata.c (get_osdata): Warn separately if target does not report
3056 (info_osdata_command): Allow empty type, report error if target
3057 does not return available types of OS data.
3058 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
3059 types if no annex supplied.
3061 * thread.c (thread_id_make_value): Make a value representing the
3063 (_initialize_thread): Create $_thread.
3065 2010-06-17 Joel Brobecker <brobecker@adacore.com>
3067 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
3068 last local variable declaration. No real code change.
3070 2010-06-17 Tom Tromey <tromey@redhat.com>
3072 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
3073 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
3076 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
3077 Jan Kratochvil <jan.kratochvil@redhat.com>
3079 * breakpoint.c: Include parser-defs.h.
3080 (watchpoint_exp_is_const): New function.
3081 (watch_command_1): Call watchpoint_exp_is_const to check
3082 if the expression is constant.
3084 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
3086 * configure.ac: Check for RDYNAMIC also for cross builds.
3087 * configure: Regenerate.
3089 2010-06-15 Pedro Alves <pedro@codesourcery.com>
3091 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
3092 (SFILES): Remove solib-null.c, add solib-target.c.
3093 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
3094 (ALLDEPFILES): Remove solib-target.c.
3095 * solib-target.c (_initialize_solib_target): Set
3096 current_target_so_ops to solib_target_so_ops if not already set.
3097 * solib-null.c: Delete.
3099 2010-06-14 Pedro Alves <pedro@codesourcery.com>
3101 * NEWS: Mention GDBserver's JIT compilation of tracepoint
3104 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3106 * cp-valprint.c (cp_print_static_field): Members of
3107 dont_print_stat_array_obstack are of type "struct type *".
3108 (_initialize_cp_valprint): Likewise.
3110 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3112 * frame.c (frame_register_unwind): Do not access contents
3113 of "optimized out" unwound register value.
3115 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3117 * ada-lang.h (ada_print_type): Make varstring const.
3118 * ada-typeprint.c (print_func_type): Make name const.
3119 (ada_print_type): Make varstring const.
3120 * c-lang.h (c_print_type): Make varstring const.
3121 * c-typeprint.c (c_print_type): Likewise.
3122 * f-lang.h (f_print_type): Likewise.
3123 * f-typeprint.c (f_print_type): Likewise.
3124 * jv-lang.h (java_print_type): Likewise.
3125 * jv-typeprint.c (java_print_type): Likewise.
3126 * language.c (unk_lang_print_type): Likewise.
3127 * language.h (struct language_defn) <la_print_type>: Likewise.
3128 * m2-lang.h (m2_print_type): Likewise.
3129 * m2-typeprint.c (m2_print_type): Likewise.
3130 * p-lang.h (pascal_print_type): Likewise.
3131 * p-typeprint.c (pascal_print_type): Likewise.
3133 2010-06-11 Stan Shebs <stan@codesourcery.com>
3135 Add per-operation permission flags.
3137 * target.h (struct target_ops): New method to_set_permissions.
3138 (target_set_permissions): New macro.
3139 (target_insert_breakpoint): Change macro to function.
3140 (target_remove_breakpoint): Ditto.
3141 (target_stop): Ditto.
3142 (may_write_registers): Declare.
3143 (may_write_memory): Declare.
3144 (may_insert_breakpoints): Declare.
3145 (may_insert_tracepoints): Declare.
3146 (may_insert_fast_tracepoints): Declare.
3147 (may_stop): Declare.
3148 * target.c (may_write_registers, may_write_registers_1): New globals.
3149 (may_write_memory, may_write_memory_1): New globals.
3150 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
3151 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
3152 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
3154 (may_stop, may_stop_1): New global.
3155 (target_xfer_partial): Test for write permission.
3156 (target_store_registers): Ditto.
3157 (target_insert_breakpoint): New function.
3158 (target_remove_breakpoint): New function.
3159 (target_stop): New function.
3160 (_initialize_targets): Add new set/show variables.
3161 (set_write_memory_permission): New function.
3162 (update_target_permissions): New function.
3163 (set_target_permissions): New function.
3164 (update_current_target): Default to_set_permissions.
3165 (_initialize_targets): Use new globals and setter function.
3166 * tracepoint.c (start_tracing): Test for permission.
3167 * inferior.h (update_observer_mode): Declare.
3168 * infrun.c (non_stop_1): Define earlier.
3169 (observer_mode, observer_mode_1): New globals.
3170 (set_observer_mode, show_observer_mode): New functions.
3171 (update_observer_mode): New function.
3172 (_initialize_infrun): Define "set observer" command.
3173 * remote.c (PACKET_QAllow): New optional packet.
3174 (remote_protocol_features): Add QAllow.
3175 (remote_set_permissions): New function.
3176 (remote_start_remote): Call it.
3177 (init_remote_ops): Add it to target vector.
3178 (_initialize_remote): Add config command for QAllow.
3180 2010-06-11 Tom Tromey <tromey@redhat.com>
3182 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
3183 DW_AT_vtable_elem_location even when GCC extension is seen.
3185 2010-06-11 Tom Tromey <tromey@redhat.com>
3187 PR gdb/9977, PR exp/11636:
3188 * value.h (value_offset): Update.
3189 (struct lval_funcs) <check_validity>: New field.
3190 <copy_closure>: Make argument const.
3191 (value_computed_closure): Update.
3192 (value_contents_for_printing): Declare.
3193 (value_bits_valid): Likewise.
3194 (val_print): Likewise.
3195 (set_value_component_location): Update.
3196 (value_entirely_optimized_out): Declare.
3197 * value.c (value_offset): Argument now const.
3198 (require_not_optimized_out): New function.
3199 (value_contents_for_printing): New function.
3200 (value_contents_all): Call require_not_optimized_out.
3201 (value_contents): Likewise.
3202 (value_bits_valid): New function.
3203 (value_computed_closure): Argument now const.
3204 (set_value_component_location): Make 'whole' argument const.
3205 (value_entirely_optimized_out): New function.
3206 (value_bitsize): Argument now 'const'.
3207 (value_bitpos): Likewise.
3208 (value_type): Likewise.
3209 * valprint.h (val_print_array_elements): Update.
3210 * valprint.c (val_print): Add 'val' argument. Use
3211 valprint_check_validity.
3212 (valprint_check_validity): New function.
3213 (value_check_printable): Use value_entirely_optimized_out.
3214 (common_val_print): Update.
3215 (value_print): Likewise.
3216 (val_print_array_elements): Add 'val' argument.
3217 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
3218 value_bits_valid. Reinit frame cache for lval_computed.
3219 * sh64-tdep.c (sh64_do_register): Update.
3220 * scm-valprint.c (scm_val_print): Add 'val' argument.
3221 * scm-lang.h (scm_val_print): Update.
3222 * python/python.h (apply_val_pretty_printer): Update.
3223 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
3224 argument. Call set_value_component_location.
3225 * printcmd.c (print_scalar_formatted): Update.
3226 * p-valprint.c (pascal_val_print): Add 'val' argument.
3227 (pascal_object_print_value_fields): Likewise.
3228 (pascal_object_print_value): Likewise.
3229 (pascal_object_print_static_field): Update.
3230 * p-lang.h (pascal_val_print): Update.
3231 (pascal_object_print_value_fields): Update.
3232 * mt-tdep.c (mt_registers_info): Update.
3233 * mi/mi-main.c (get_register): Update.
3234 (mi_cmd_data_evaluate_expression): Use common_val_print.
3235 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
3236 (m2_print_unbounded_array): Likewise.
3237 (m2_val_print): Likewise.
3238 * m2-lang.h (m2_val_print): Update.
3239 * language.h (struct language_defn) <la_val_print>: Add 'val'
3241 (LA_VAL_PRINT): Likewise.
3242 * language.c (unk_lang_val_print): Add 'val' argument.
3243 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
3244 (java_val_print): Likewise.
3245 * jv-lang.h (java_val_print): Add 'val' argument.
3246 * infcmd.c (default_print_registers_info): Update.
3247 * f-valprint.c (f77_print_array_1): Add 'val' argument.
3248 (f77_print_array): Likewise.
3249 (f_val_print): Likewise.
3250 * f-lang.h (f_val_print): Add 'val' argument.
3251 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
3253 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
3254 set_value_optimized_out.
3255 (write_pieced_value): Use value_bitsize and value_bitpos.
3256 <default>: Don't exit loop.
3257 (check_pieced_value_validity): New function.
3258 (pieced_value_funcs): Reference check_pieced_value_validity,
3259 check_pieced_value_invalid.
3260 (copy_pieced_value_closure): Update.
3261 (check_pieced_value_bits): New function.
3262 (check_pieced_value_invalid): New function.
3263 * d-valprint.c (dynamic_array_type): Add 'val' argument.
3264 (d_val_print): Likewise.
3265 * d-lang.h (d_val_print): Update.
3266 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
3267 (cp_print_value_fields_rtti): Likewise.
3268 (cp_print_value): Likewise.
3269 (cp_print_static_field): Update.
3270 * c-valprint.c (c_val_print): Add 'val' argument.
3271 (c_value_print): Update.
3272 * c-lang.h (c_val_print): Update.
3273 (cp_print_value_fields): Likewise.
3274 (cp_print_value_fields_rtti): Likewise.
3275 * ada-valprint.c (struct ada_val_print_args): Remove.
3276 (val_print_packed_array_elements): Add 'val' argument.
3277 (ada_val_print): Likewise. Rewrite.
3278 (ada_val_print_stub): Remove.
3279 (ada_val_print_array): Add 'val' argument.
3280 (ada_val_print_1): Likewise.
3281 (print_variant_part): Likewise.
3282 (ada_value_print): Update.
3283 (print_record): Add 'val' argument.
3284 (print_field_values): Likewise.
3285 * ada-lang.h (ada_val_print): Update.
3287 2010-06-11 Tom Tromey <tromey@redhat.com>
3289 * vec.h (VEC_cleanup): New macro.
3290 (DEF_VEC_ALLOC_FUNC_I): Update.
3291 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3292 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3293 * dwarf2loc.c (struct axs_var_loc): Remove.
3294 (unimplemented): New function.
3295 (translate_register): Likewise.
3296 (access_memory): Likewise.
3297 (compile_dwarf_to_ax): Likewise.
3298 (dwarf2_tracepoint_var_loc): Remove.
3299 (dwarf2_tracepoint_var_access): Likewise.
3300 (dwarf2_tracepoint_var_ref): Likewise.
3301 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
3302 (loclist_tracepoint_var_ref): Likewise.
3303 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
3304 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
3305 require_composition. No longer static.
3306 (execute_stack_op): Update.
3307 * ax-gdb.h (trace_kludge): Declare.
3309 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3311 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
3312 (should_be_inserted): Return zero also on NULL OWNER.
3313 (breakpoint_program_space_exit): New OWNER comment.
3314 (insert_breakpoint_locations): Extend comment for OWNER.
3315 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
3316 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
3318 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
3319 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
3320 (bpstat_check_location): New assert on OWNER.
3321 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
3322 and B initializations to the code block. New assert on them.
3323 (print_one_breakpoint_location): New OWNER comment.
3324 (watchpoint_locations_match): Assert on OWNER.
3325 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
3326 initializations to the code block. New assert on OWNER.
3327 (set_breakpoint_location_function): New assert on OWNER.
3328 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
3329 (bp_location_compare, update_global_location_list)
3330 (update_global_location_list): New OWNER comment.
3332 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3334 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
3336 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3338 * config/nm-linux.h (struct target_ops): Remove forward declaration.
3339 (lin_thread_get_thread_signals): Remove prototype.
3340 (GET_THREAD_SIGNALS): Remove.
3341 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
3342 * linux-thread-db.c (check_thread_signals): Directly call
3343 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
3345 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3347 * gregset.h (GDB_FPXREGSET_T): Remove.
3348 (gdb_fpxregset_t): Likewise.
3349 (supply_fpxregset): Remove prototype.
3350 (fill_fpxregset): Likewise.
3351 * i386-linux-nat.c (supply_fpxregset): Remove.
3352 (fill_fpxregset): Likewise.
3353 (fetch_fpxregs): Inline supply_fpxregset call.
3354 (store_fpxregs): Inline fill_fpxregset call.
3356 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
3357 * config/i386/nm-linux.h: Remove file.
3359 2010-06-09 Michael Snyder <msnyder@vmware.com>
3361 * target.c (update_current_target): Fix spelling error in comment.
3362 (target_mourn_inferior): Fix spelling error in error message.
3364 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
3366 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
3367 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
3369 2010-06-08 Michael Snyder <msnyder@vmware.com>
3371 * remote.c (remote_close): Set inferior_ptid to null_ptid.
3373 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3375 * configure.ac <"${have_libpython}" != no>: New workaround of
3377 * configure: Regenerate.
3379 2010-06-08 Hui Zhu <teawater@gmail.com>
3381 * record.c (record_wait): Move signal out of replay code.
3383 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3386 * dwarf2-frame.c (no_dwarf_call): New function.
3387 (execute_stack_op): Set CTX->DWARF_CALL.
3388 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
3389 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
3390 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
3391 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
3392 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
3393 (needs_frame_dwarf_call): New function.
3394 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
3395 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
3396 Update the comment. Move variables die, offset and error call to ...
3397 (follow_die_ref): ... a new function.
3398 (dwarf2_fetch_die_location_block): New function.
3399 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
3401 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3403 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
3404 (dwarf_expr_tls_address): Use per_cu instead of objfile.
3405 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
3406 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
3408 (struct needs_frame_baton): New field per_cu.
3409 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
3410 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
3412 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
3414 * cp-support.c (make_symbol_overload_list_namespace): Only search
3415 static and global blocks.
3416 (make_symbol_overload_list_block): New function.
3417 (make_symbol_overload_list): Separate namespace search from block
3419 (make_symbol_overload_list_qualified): Use
3420 make_symbol_overload_list_block.
3422 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
3424 * value.h: Created oload_search_type enum.
3425 (find_overload_match): Use oload_search_type enum.
3426 * valops.c (find_overload_match): Support combined member and
3428 * eval.c (evaluate_subexp_standard): Calls to
3429 find_overload_match now use oload_search_type enum.
3430 (oload_method_static): Verify index is a proper value.
3431 * valarith.c (value_user_defined_cpp_op): Search for and handle
3432 both member and non-member operators.
3433 (value_user_defined_cpp_op): New function.
3434 (value_user_defined_op): New function.
3435 (value_x_unop): Use value_user_defined_op.
3436 (value_x_binop): Ditto.
3437 * cp-support.c (make_symbol_overload_list_using): Added block
3439 Add check for namespace aliases and imported declarations.
3441 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3443 * breakpoint.h (owner): Extend the comment.
3445 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3447 Clear stale specific bp_location from former whole breakpoint.
3448 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
3450 (free_bp_location): ... here. Rename there the called function to
3451 bpstat_remove_bp_location_callback.
3452 (bpstat_remove_breakpoint_callback): Rename to ...
3453 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
3454 to struct bp_location. Change the called function to
3455 bpstat_remove_bp_location. Create new declaration for the function.
3456 (bpstat_remove_breakpoint): Rename to ...
3457 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
3458 code for the new parameter type.
3460 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
3462 * README: Make version-agnostic.
3464 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3466 Fix duplicate types for single DIE.
3467 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
3469 (read_array_type): Remove type initialization. Recheck get_die_type
3470 after initial die_type. Move set_die_type before set_descriptive_type.
3471 (read_set_type): New variable domain_type. Recheck get_die_type after
3472 initial die_type. Move attr initialization later.
3473 (read_tag_pointer_type, read_tag_reference_type): New variable
3474 target_type. Recheck get_die_type after initial die_type.
3475 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
3476 die_type and die_containing_type.
3477 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
3478 Recheck get_die_type after initial die_type.
3479 (read_subrange_type): Recheck get_die_type after initial die_type.
3480 Move set_die_type before set_descriptive_type.
3481 (set_die_type): Extend the function comment. Call complaint if DIE has
3482 some type already set.
3484 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
3486 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
3487 for current naming of thread groups (iN, not N).
3489 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
3491 * ada-lang.c (ada_operator_length): Constify `struct expression'.
3492 * parse.c (operator_length): Likewise.
3493 (operator_length_standard): Likewise.
3494 * parser-defs.h (operator_length): Likewise.
3495 (operator_length_standard): Likewise.
3496 (struct exp_descriptor <operator_length>): Likewise.
3498 2010-06-04 Doug Evans <dje@google.com>
3500 Add support for enabling/disabling individual pretty-printers.
3501 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
3502 * python/python-internal.h (gdbpy_enabled_cst): Declare.
3503 * python/python.c (gdbpy_enabled_cst): Define.
3504 (_initialize_python): Initialize gdbpy_enabled_cst.
3507 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3509 * breakpoint.c (update_global_location_list): Fix comment typo.
3511 2010-06-04 Hui Zhu <teawater@gmail.com>
3513 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
3515 2010-06-03 Doug Evans <dje@google.com>
3517 * configure.ac: Don't fail if python is unusable when
3518 configured with --with-python=auto.
3519 * configure: Regenerate.
3521 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
3523 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
3525 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
3527 * valprint.h (get_array_bounds): Change low and high parameter types
3529 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
3531 (val_print_array_elements): Adapt to change above.
3532 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
3533 * p-valprint.c (pascal_val_print): Likewise.
3535 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3537 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
3538 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
3541 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3543 Support DW_TAG_module as separate namespaces.
3544 * dwarf2read.c (typename_concat): New parameter physname.
3545 (read_module_type): New function and declaration.
3546 (scan_partial_symbols): Scan also DW_TAG_module children.
3547 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
3548 to typename_concat backward compatible physname value 0.
3549 (partial_die_full_name, read_namespace_type): Pass to typename_concat
3550 backward compatible physname value 0.
3551 (add_partial_module, read_module): Remove FIXME comment.
3552 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
3553 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
3554 DIEs under DW_TAG_module.
3555 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
3556 DW_AT_MIPS_linkage_name first, extend it for language_fortran
3557 && physname and return there instead of just setting NAME. Extend
3558 the main block for language_fortran. Pass physname parameter to the
3559 typename_concat call.
3560 (read_import_statement, read_func_scope, get_scope_pc_bounds)
3561 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
3562 (new_symbol): Fill in cplus_specific.demangled_name if it is still
3563 missing from SYMBOL_SET_NAMES in the language_fortran case.
3564 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
3566 (read_type_die) <DW_TAG_module>: New.
3567 (MAX_SEP_LEN): Increase to 7.
3568 (typename_concat): New parameter physname. New variable lead. Support
3569 also language_fortran.
3570 * f-exp.y (yylex): Consider : also as a symbol name character class.
3571 * f-lang.c: Include cp-support.h.
3572 (f_word_break_characters, f_make_symbol_completion_list): New functions.
3573 (f_language_defn): Use cp_lookup_symbol_nonlocal,
3574 f_word_break_characters and f_make_symbol_completion_list.
3575 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
3576 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
3577 * symtab.c (symbol_init_language_specific): Support language_fortran.
3578 (symbol_find_demangled_name): New comment on language_fortran.
3579 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
3580 for language_fortran.
3581 (lookup_symbol_aux_local): Check imports also for language_fortran.
3582 (default_make_symbol_completion_list): Rename to ...
3583 (default_make_symbol_completion_list_break_on): ... this name. New
3584 parameter break_on, use it.
3585 (default_make_symbol_completion_list): New stub.
3586 * symtab.h (default_make_symbol_completion_list_break_on): New
3589 2010-06-02 Joel Brobecker <brobecker@adacore.com>
3591 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
3594 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3596 * dwarf2read.c (typename_concat): Add const to the variable sep.
3598 2010-06-02 Tom Tromey <tromey@redhat.com>
3600 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
3601 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
3602 type is const. Add 'def' argument. Add missing operators, remove
3604 (decode_locdesc): Update.
3605 (dwarf2_always_disassemble): New global.
3606 (show_dwarf2_always_disassemble): New function.
3607 (_initialize_dwarf2_read): Add always-disassemble.
3608 (dwarf2_per_cu_offset_size): New function.
3609 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
3610 (piece_end_p): New function.
3611 (locexpr_describe_location_piece): Replace 'size' argument with
3612 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
3613 some constants. Remove errors.
3614 (disassemble_dwarf_expression): New function.
3615 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
3616 Add 'offset_size' argument.
3617 (loclist_describe_location): Change output formatting.
3618 * dwarf2expr.h (dwarf_stack_op_name): Declare.
3620 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
3622 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
3623 anonymous type case.
3625 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
3627 * dwarf2read.c (read_subrange_type): Handle missing base type
3628 according to Dwarf-2 specifications.
3630 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
3632 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
3634 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
3635 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
3636 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
3637 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
3638 UNOP_CHMAX, UNOP_CHMIN.
3639 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
3640 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
3641 UNOP_CHMIN>: Remove opcodes.
3643 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
3645 * dwarf2read.c (read_func_scope): Do not complain for
3646 external function if bounds are not found.
3648 2010-06-01 Pedro Alves <pedro@codesourcery.com>
3650 * NEWS: Mention gdbserver fast tracepoints support.
3652 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
3654 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
3656 (windows_set_console_info): New function.
3657 (windows_create_inferior): Call windows_set_console_info
3658 if NEW_CONSOLE is true.
3659 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
3660 (_initialize_loadable): Initialize GetConsoleFontSize and
3661 GetCurrentConsoleFont.
3663 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3665 * Makefile.in (RDYNAMIC): New.
3666 (SFILES): Add proc-service.list.
3667 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
3668 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
3669 * config/arm/linux.mh: Likewise.
3670 * config/i386/linux.mh: Likewise.
3671 * config/i386/linux64.mh: Likewise.
3672 * config/ia64/linux.mh: Likewise.
3673 * config/m32r/linux.mh: Likewise.
3674 * config/m68k/linux.mh: Likewise.
3675 * config/mips/linux.mh: Likewise.
3676 * config/pa/linux.mh: Likewise.
3677 * config/powerpc/linux.mh: Likewise.
3678 * config/powerpc/ppc64-linux.mh: Likewise.
3679 * config/s390/s390.mh: Likewise.
3680 * config/sparc/linux.mh: Likewise.
3681 * config/sparc/linux64.mh: Likewise.
3682 * config/xtensa/linux.mh: Likewise.
3683 * configure.ac: New RDYNAMIC on native host and GCC.
3684 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
3685 * configure: Regenerate.
3686 * proc-service.list: New.
3688 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3690 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
3693 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3695 * linux-nat.c (linux_nat_wait_1): Do not call
3696 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
3697 TARGET_WAITKIND_SIGNALLED.
3699 2010-05-27 Joel Brobecker <brobecker@adacore.com>
3701 * ada-lang.c (ada_inferior_data): New struct.
3702 (ada_inferior_data): New static global.
3703 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
3704 (ada_get_tsd_type): New functions.
3705 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
3706 to look the tsd type up.
3707 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
3708 event. Set ada_inferior_data.
3710 2010-05-27 Pedro Alves <pedro@codesourcery.com>
3712 * remote.c (unpack_varlen_hex): Remove forward declaration.
3713 (remote_console_output): Make static, and add forward declaration.
3714 * remote.h: Drop FIXME comment.
3715 (unpack_varlen_hex): Declare.
3716 (remote_console_output, remote_cisco_objfile_relocate)
3717 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
3718 Delete declarations.
3719 * tracepoint.c: Include "remote.h".
3720 (unpack_varlen_hex): Delete declaration.
3722 2010-05-27 Tom Tromey <tromey@redhat.com>
3724 * dwarf2loc.c (struct piece_closure) <refc>: New field.
3725 (allocate_piece_closure): Initialize refc.
3726 (copy_pieced_value_closure): Use refc.
3727 (free_pieced_value_closure): Likewise.
3729 2010-05-27 Tom Tromey <tromey@redhat.com>
3731 * arm-tdep.c (push_stack_item): 'contents' now const.
3732 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
3733 value_contents_writeable. Introduce new temporary.
3735 2010-05-27 Tom Tromey <tromey@redhat.com>
3737 * findcmd.c (parse_find_args): Use value_contents, not
3740 2010-05-27 Tom Tromey <tromey@redhat.com>
3742 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
3743 const. Use value_contents, not value_contents_writeable.
3745 2010-05-27 Joel Brobecker <brobecker@adacore.com>
3747 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
3748 by call to value_contents.
3750 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
3752 * MAINTAINERS: Add myself for write after approval privileges.
3754 2010-05-26 Doug Evans <dje@google.com>
3756 Allow python to find its files if moved from original location.
3757 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
3758 (GDB_AC_WITH_DIR): Call it.
3759 * configure.ac: Define WITH_PYTHON_PATH if we can find the
3760 python installation directory.
3761 * config.in: Regenerate.
3762 * configure: Regenerate.
3763 * defs.h (python_libdir): Declare.
3764 * main.c (python_libdir): Define.
3765 (captured_main): Initialize python_libdir.
3766 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
3767 call Py_SetProgramName to make sure python can find its libraries
3770 * configure.ac: Try to use python's distutils to fetch compilation
3772 * configure: Regenerate.
3773 * python/python-config.py: New file.
3775 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
3777 * ser-tcp.c (net_open): Check error return from socket() call by its
3778 equality to -1 not by it being negative.
3779 (net_close): Likewise.
3781 2010-05-26 Pedro Alves <pedro@codesourcery.com>
3783 * NEWS: Mention the `qRelocInsn' feature.
3784 * gdbarch.sh (relocate_instruction): New.
3785 * amd64-tdep.c (rip_relative_offset): New.
3786 (append_insns): New.
3787 (amd64_relocate_instruction): New.
3788 (amd64_init_abi): Install it.
3789 * i386-tdep.c (append_insns): New.
3790 (i386_relocate_instruction): New.
3791 (i386_gdbarch_init): Install it.
3792 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
3793 * gdbarch.h, gdbarch.c: Regenerate.
3795 2010-05-26 Tom Tromey <tromey@redhat.com>
3797 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
3798 (struct dwarf2_loclist_baton) <data>: Likewise.
3799 * dwarf2loc.c (find_location_expression): Constify return type.
3800 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
3801 (dwarf2_loc_desc_needs_frame): Likewise.
3802 (loclist_read_variable): Constify.
3803 (loclist_describe_location): Likewise.
3804 (loclist_tracepoint_var_ref): Likewise.
3806 2010-05-25 Tom Tromey <tromey@redhat.com>
3808 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
3809 (dwarf_expr_frame_base_1): Likewise.
3810 (read_pieced_value): Update.
3811 (needs_frame_frame_base): Constify.
3812 (dwarf2_tracepoint_var_loc): Likewise.
3813 (dwarf2_tracepoint_var_access): Likewise.
3814 (locexpr_describe_location_piece): Likewise.
3815 (locexpr_describe_location_1): Likewise.
3816 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
3819 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
3820 (dwarf_expr_eval, read_uleb128, read_sleb128)
3821 (dwarf2_read_address): Update.
3822 * dwarf2expr.c (dwarf_expr_eval): Constify.
3823 (read_uleb128): Likewise.
3824 (read_sleb128): Likewise.
3825 (dwarf2_read_address): Likewise.
3826 (require_composition): Likewise.
3827 (execute_stack_op): Likewise.
3828 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
3830 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
3832 (no_get_frame_base): Constify.
3833 (execute_stack_op): Likewise.
3834 (execute_cfa_program): Likewise.
3835 (read_encoded_value): Likewise.
3837 2010-05-25 Doug Evans <dje@google.com>
3839 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
3841 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
3842 * event-loop.c: ... here.
3843 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
3844 `error' for clarity.
3845 (tui_getc): Pass correct value for `error' parameter to
3846 tui_readline_output.
3848 Add python gdb.GdbError and gdb.string_to_argv.
3849 * NEWS: Document them.
3850 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
3851 the exception is gdb.GdbError. Print a second traceback if there's
3852 an error computing the error message.
3853 (gdbpy_string_to_argv): New function.
3854 * python/py-utils.c (gdbpy_obj_to_string): New function.
3855 (gdbpy_exception_to_string): New function.
3856 * python/python-internal.h (gdbpy_string_to_argv): Declare.
3857 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
3858 (gdbpy_gdberror_exc): Declare.
3859 * python/python.c (gdbpy_gdberror_exc): New global.
3860 (_initialize_python): Initialize gdbpy_gdberror_exc and create
3862 (GdbMethods): Add string_to_argv.
3864 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3866 * windows-nat.c (display_selector): Call GetLastError to give better
3867 failure explanation.
3869 2010-05-24 Pedro Alves <pedro@codesourcery.com>
3871 * config.in: Regenerate.
3873 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3876 * target.c (push_target): Return only void. Remove the return value
3878 * target.h (push_target): Return only void.
3880 2010-05-23 Pedro Alves <pedro@codesourcery.com>
3882 Update gnulib from latest git.
3883 (250b80067c1e1d8faa0c42fb572f721975b929c5)
3885 * gnulib/memcmp.c: Removed.
3886 * gnulib/memchr.valgrind: New.
3887 * gnulib/stddef.in.h: New.
3888 * gnulib/Makefile.am: Updated.
3889 * gnulib/memchr.c: Updated.
3890 * gnulib/memmem.c: Updated.
3891 * gnulib/stdint.in.h: Updated.
3892 * gnulib/str-two-way.h: Updated.
3893 * gnulib/string.in.h: Updated.
3894 * gnulib/wchar.in.h: Updated.
3896 * gnulib/extra/link-warning.h: Removed.
3897 * gnulib/extra/c++defs.h: New.
3898 * gnulib/extra/warn-on-use.h: New.
3899 * gnulib/extra/arg-nonnull.h: Updated.
3901 * gnulib/m4/extensions.m4: Updated.
3902 * gnulib/m4/gnulib-cache.m4: Updated.
3903 * gnulib/m4/gnulib-common.m4: Updated.
3904 * gnulib/m4/gnulib-comp.m4: Updated.
3905 * gnulib/m4/gnulib-tool.m4: Updated.
3906 * gnulib/m4/include_next.m4: Updated.
3907 * gnulib/m4/longlong.m4: Updated.
3908 * gnulib/m4/memchr.m4: Updated.
3909 * gnulib/m4/memmem.m4: Updated.
3910 * gnulib/m4/stdint.m4: Updated.
3911 * gnulib/m4/string_h.m4: Updated.
3912 * gnulib/m4/memcmp.m4: Removed.
3913 * gnulib/m4/onceonly_2_57.m4: Removed.
3914 * gnulib/m4/00gnulib.m4: New.
3915 * gnulib/m4/mmap-anon.m4: New.
3916 * gnulib/m4/multiarch.m4: New.
3917 * gnulib/m4/onceonly.m4: New.
3918 * gnulib/m4/stddef_h.m4: New.
3919 * gnulib/m4/warn-on-use.m4: New.
3920 * gnulib/m4/wchar.m4: Removed.
3921 * gnulib/m4/wchar_h.m4: New.
3922 * gnulib/m4/wchar_t.m4: New.
3923 * gnulib/m4/wint_t.m4: New.
3925 * aclocal.m4: Regenerate.
3926 * config.in: Likewise.
3927 * configure: Likewise.
3928 * gnulib/Makefile.in: Likewise.
3930 2010-05-21 Tom Tromey <tromey@redhat.com>
3932 * dwarf2loc.c (extract_bits_primitive): New function.
3933 (extract_bits): Likewise.
3934 (insert_bits): Likewise.
3935 (copy_bitwise): Likewise.
3936 (read_pieced_value): Do all operations in bits.
3937 (write_pieced_value): Likewise.
3938 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
3939 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
3940 Always use xrealloc to resize piece array.
3941 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
3942 <DW_OP_piece>: Update.
3943 <DW_OP_bit_piece>: New case.
3945 2010-05-21 Tom Tromey <tromey@redhat.com>
3947 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
3948 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
3949 * dwarf2expr.h (enum dwarf_value_location)
3950 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
3951 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
3952 (add_piece): Handle empty piece.
3953 (execute_stack_op) <DW_OP_piece>: Handle
3954 DWARF_VALUE_OPTIMIZED_OUT.
3956 2010-05-21 Tom Tromey <tromey@redhat.com>
3958 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
3959 evaluate_subexp, not evaluate_subexp_with_coercion.
3961 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3963 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3966 2010-05-21 Tom Tromey <tromey@redhat.com>
3968 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
3970 (write_pieced_value): Likewise.
3972 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3974 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
3975 and DW_TAG_volatile_type.
3976 (new_symbol): Likewise.
3978 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
3980 * p-valprint.c (pascal_val_print): Call get_array_bounds
3981 to obtain the number of elements in an array.
3983 2010-05-19 Doug Evans <dje@google.com>
3985 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
3987 * python.c (source_python_script): Add comment.
3988 (source_python_script_for_objfile): Remove unnecessary call to
3991 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3992 Sergio Durigan Junior <sergiodj@redhat.com>
3995 * parse.c (exp_iterate): Use operator_length wrapper function.
3997 2010-05-18 Michael Snyder <msnyder@vmware.com>
3999 * ada-lang.c: White space.
4000 * ada-typeprint.c: White space.
4001 * ada-valprint.c: White space.
4002 * addrmap.c: White space.
4003 * auxv.c: White space.
4004 * ax-gdb.c: White space.
4006 2010-05-18 Hui Zhu <teawater@gmail.com>
4008 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
4010 (inferior_call_waitpid): Move make_cleanup out of check.
4011 Check the return of waitpid.
4012 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
4014 2010-05-17 Michael Snyder <msnyder@vmware.com>
4016 * tui/tui.c: White space.
4017 * tui/tui-data.c: White space.
4018 * tui/tui-disasm.c: White space.
4019 * tui/tui-file.c: White space.
4020 * tui/tui-interp.c: White space.
4021 * tui/tui-main.c: White space.
4022 * tui/tui-out.c: White space.
4023 * tui/tui-regs.c: White space.
4024 * tui/tui-source.c: White space.
4025 * tui/tui-stack.c: White space.
4026 * tui/tui-win.c: White space.
4027 * tui/tui-winsource.c: White space.
4029 * procfs.c: White space.
4031 * python/py-auto-load.c: White space.
4032 * python/py-block.c: White space.
4033 * python/py-breakpoint.c: White space.
4034 * python/py-cmd.c: White space.
4035 * python/py-function.c: White space.
4036 * python/py-lazy-string.c: White space.
4037 * python/py-objfile.c: White space.
4038 * python/py-param.c: White space.
4039 * python/py-prettyprint.c: White space.
4040 * python/py-progspace.c: White space.
4041 * python/py-symtab.c: White space.
4042 * python/python.c: White space.
4043 * python/py-type.c: White space.
4044 * python/py-utils.c: White space.
4045 * python/py-value.c: White space.
4047 * mi/mi-cmd-break.c: White space.
4048 * mi/mi-cmd-env.c: White space.
4049 * mi/mi-cmds.c: White space.
4050 * mi/mi-cmd-stack.c: White space.
4051 * mi/mi-cmd-var.c: White space.
4052 * mi/mi-console.c: White space.
4053 * mi/mi-getopt.c: White space.
4054 * mi/mi-interp.c: White space.
4055 * mi/mi-main.c: White space.
4056 * mi/mi-out.c: White space.
4057 * mi/mi-parse.c: White space.
4059 * cli/cli-cmds.c: White space.
4060 * cli/cli-decode.c: White space.
4061 * cli/cli-dump.c: White space.
4062 * cli/cli-interp.c: White space.
4063 * cli/cli-logging.c: White space.
4064 * cli/cli-script.c: White space.
4065 * cli/cli-setshow.c: White space.
4067 * valarith.c: White space.
4068 * valops.c: White space.
4069 * valprint.c: White space.
4070 * value.c: White space.
4071 * varobj.c: White space.
4072 * xcoffread.c: White space.
4073 * xml-support.c: White space.
4074 * xml-tdesc.c: White space.
4076 2010-05-17 Andreas Schwab <schwab@redhat.com>
4079 * c-lang.c (c_printstr): Compute real length of NUL terminated
4082 2010-05-17 Joel Brobecker <brobecker@adacore.com>
4084 * parse.c (parse_exp_in_context): When block is not NULL, use
4085 its associated language to parse the expression instead of
4086 the current_language.
4088 2010-05-17 Joel Brobecker <brobecker@adacore.com>
4090 * jv-lang.c (java_lookup_class): Remove commented out code.
4091 (type_from_class): Likewise.
4092 (java_op_print_tab): Remove commented-out elements.
4094 2010-05-17 Joel Brobecker <brobecker@adacore.com>
4096 * ada-lang.c (to_fixed_range_type): The the raw index type as
4097 argument instead of the raw type name. Remove orig_type parameter.
4098 Update calls throughout.
4099 (ada_fixup_array_indexes_type): New function.
4100 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
4101 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
4102 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
4103 Remove name parameter.
4104 (print_array_type): Add call to ada_fixup_array_indexes_type.
4105 Update calls to print_range_type.
4106 (ada_print_type): Update calls to print_range_type.
4108 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
4110 * dwarf2read.c (read_set_type): Set type length if
4111 DW_AT_byte_size attribute is present.
4113 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
4115 * p-valprint.c (pascal_val_print): Handle set type if range limits
4116 are undefined but size is known.
4118 2010-05-17 Pedro Alves <pedro@codesourcery.com>
4120 * procfs.c: Reformat.
4122 2010-05-16 Michael Snyder <msnyder@vmware.com>
4124 * target.c: White space.
4125 * target-descriptions.c: White space.
4126 * target-memory.c: White space.
4127 * thread.c: White space.
4128 * top.c: White space.
4129 * tracepoint.c: White space.
4130 * trad-frame.c: White space.
4131 * tramp-frame.c: White space.
4132 * ui-file.c: White space.
4133 * ui-out.c: White space.
4134 * user-regs.c: White space.
4135 * utils.c: White space.
4137 * scm-exp.c: White space.
4138 * scm-lang.c: White space.
4139 * scm-valprint.c: White space.
4140 * sentinel-frame.c: White space.
4141 * ser-base.c: White space.
4142 * ser-go32.c: White space.
4143 * serial.c: White space.
4144 * ser-mingw.c: White space.
4145 * ser-pipe.c: White space.
4146 * ser-tcp.c: White space.
4147 * ser-unix.c: White space.
4148 * solib.c: White space.
4149 * solib-darwin.c: White space.
4150 * solib-frv.c: White space.
4151 * solib-irix.c: White space.
4152 * solib-osf.c: White space.
4153 * solib-pa64.c: White space.
4154 * solib-som.c: White space.
4155 * solib-spu.c: White space.
4156 * solib-svr4.c: White space.
4157 * solib-target.c: White space.
4158 * source.c: White space.
4159 * stabsread.c: White space.
4160 * stack.c: White space.
4161 * std-regs.c: White space.
4162 * symfile.c: White space.
4163 * symmisc.c: White space.
4164 * symtab.c: White space.
4166 2010-05-16 Michael Snyder <msnyder@vmware.com>
4168 * source.c (_initialize_source): Add "rev" as an abbreviation
4169 for the "reverse-search" command.
4171 2010-05-16 Michael Snyder <msnyder@vmware.com>
4173 * record.c: White space.
4174 * regcache.c: White space.
4175 * reggroups.c: White space.
4176 * remote-fileio.c: White space.
4177 * remote-m32r-sdi.c: White space.
4178 * remote-mips.c: White space.
4179 * remote-sim.c: White space.
4180 * remote.c: White space.
4181 (process_g_packet): Remove orphan braces.
4183 2010-05-15 Michael Snyder <msnyder@vmware.com>
4185 * parse.c: White space.
4186 * p-lang.c: White space.
4187 * posix-hdep.c: White space.
4188 * printcmd.c: White space.
4189 * progspace.c: White space.
4190 * prologue-value.c: White space.
4191 * psymtab.c: White space.
4192 * p-typeprint.c: White space.
4193 * p-valprint.c: White space.
4195 * objc-lang.c: White space.
4196 * objfiles.c: White space.
4197 * observer.c: White space.
4198 * osabi.c: White space.
4199 * osdata.c: White space.
4201 * m2-lang.c: White space.
4202 * m2-valprint.c: White space.
4203 * macrocmd.c: White space.
4204 * macroexp.c: White space.
4205 * macroscope.c: White space.
4206 * macrotab.c: White space.
4207 * main.c: White space.
4208 * maint.c: White space.
4209 * mdebugread.c: White space.
4210 * memattr.c: White space.
4211 * minsyms.c: White space.
4212 * monitor.c: White space.
4214 2010-05-14 Michael Snyder <msnyder@vmware.com>
4216 * jv-lang.c: White space.
4217 * jv-typeprint.c: White space.
4218 * jv-valprint.c: White space.
4219 * language.c: White space.
4220 * libunwind-frame.c: White space.
4221 * linespec.c: White space.
4222 * linux-nat.c: White space.
4223 * linux-record.c: White space.
4224 * linux-thread-db.c: White space.
4226 * infcall.c: White space.
4227 * inf-child.c: White space.
4228 * infcmd.c: White space.
4229 * inferior.c: White space.
4230 * inf-loop.c: White space.
4231 * inflow.c: White space.
4232 * inline-frame.c: White space.
4233 * interps.c: White space.
4235 * gcore.c: White space.
4236 * gdb.c: White space.
4237 * gdbtypes.c: White space.
4238 * gnu-nat.c: White space.
4239 * gnu-v2-abi.c: White space.
4240 * gnu-v3-abi.c: White space.
4242 * findcmd.c: White space.
4243 * findvar.c: White space.
4244 * fork-child.c: White space.
4245 * frame-base.c: White space.
4246 * frame.c: White space.
4247 * frame-unwind.c: White space.
4248 * f-valprint.c: White space.
4250 * elfread.c: White space.
4251 * environ.c: White space.
4252 * eval.c: White space.
4253 * event-loop.c: White space.
4254 * event-top.c: White space.
4255 * exceptions.c: White space.
4256 * exec.c: White space.
4257 * expprint.c: White space.
4259 * dbxread.c: White space.
4260 * dcache.c: White space.
4261 * disasm.c: White space.
4262 * doublest.c: White space.
4263 * dsrec.c: White space.
4264 * dummy-frame.c: White space.
4265 * dwarf2expr.c: White space.
4266 * dwarf2-frame.c: White space.
4267 * dwarf2loc.c: White space.
4268 * dwarf2read.c: White space.
4270 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
4274 * python/py-value.c (valpy_hash): New function.
4275 (value_object_type): Register valpy_hash.
4277 2010-05-14 Hui Zhu <teawater@gmail.com>
4278 Michael Snyder <msnyder@vmware.com>
4280 * linux-fork.c (gdbthread.h): New include.
4281 (fork_info): Add parent_ptid.
4282 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
4284 (delete_checkpoint_command): Call inferior_call_waitpid.
4285 (checkpoint_command): Set parent_ptid.
4287 2010-05-13 Michael Snyder <msnyder@vmware.com>
4289 * dictionary.c: Re-indent to GNU coding standard.
4291 * charset.c: White space.
4292 * c-lang.c: White space.
4293 * cli-out.c: White space.
4294 * coffread.c: White space.
4295 * complaints.c: White space.
4296 * completer.c: White space.
4297 * corefile.c: White space.
4298 * corelow.c: White space.
4299 * cp-abi.c: White space.
4300 * cp-namespace.c: White space.
4301 * cp-support.c: White space.
4302 * cp-valprint.c: White space.
4303 * c-typeprint.c: White space.
4304 * c-valprint.c: White space.
4305 * blockframe.c: White space.
4306 * breakpoint.c: White space.
4307 * buildsym.c: White space.
4308 * blockframe.c: White space.
4309 * bcache.c: White space.
4310 * gdbarch.sh: White space, add blank lines.
4311 * arch-utils.c: Ditto.
4312 * gdbarch.c: Regenerate.
4313 * frame.c: White space, add blank lines.
4314 * stack.c: White space, add blank lines.
4315 (initialize_stack): Remove long-dead code.
4317 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4320 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
4321 (locexpr_read_variable, loclist_read_variable): Update the callers.
4323 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4326 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
4327 Remove check of NULL returned by tag_type_to_type.
4328 (die_containing_type): Remove variable type. Remove type_die variable
4329 initialization. Remove check of NULL returned by tag_type_to_type.
4331 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
4334 * gdbtypes.c (lookup_struct_elt_type): Also lookup
4335 names of unnamed structures or unions.
4337 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
4339 * procfs.c (proc_watchpoint_address): New function.
4340 (procfs_stopped_by_watchpoint): Remove useless check after
4341 find_procinfo_or_die call.
4342 (procfs_stopped_data_address): New function.
4343 (procfs_use_watchpoints): Register new watchpoint related function.
4345 2010-05-11 Tom Tromey <tromey@redhat.com>
4347 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
4349 2010-05-10 Michael Snyder <msnyder@vmware.com>
4351 * utils.c: White space cleanup.
4353 2010-05-10 Tom Tromey <tromey@redhat.com>
4355 * eval.c (ptrmath_type_p): Add 'lang' argument.
4356 (evaluate_subexp_standard): Update.
4357 (evaluate_subexp_with_coercion): Update.
4358 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
4360 2010-05-10 Michael Snyder <msnyder@vmware.com>
4362 * utils.c (do_fclose_cleanup) Restore local variable.
4364 2010-05-09 Doug Evans <dje@google.com>
4366 * record.c (init_record_core_ops): Rename record_core to record-core.
4368 2010-05-08 Joel Brobecker <brobecker@adacore.com>
4370 Implement task switching on pa-hpux.
4371 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
4372 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
4374 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
4376 * valops.c (find_overload_match): Add missing i18n markup.
4378 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
4380 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
4382 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4384 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
4385 list for the obconcat call.
4386 * mdebugread.c (parse_symbol): Likewise.
4387 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
4389 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
4390 New variable ap. Remove variables len and val.
4391 * symfile.h (obconcat): Likewise for the prototype.
4393 2010-05-07 Michael Snyder <msnyder@vmware.com>
4395 * python/python.c (execute_gdb_command): Remove unused variables.
4396 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
4397 * python/py-breakpoint.c (gdbpy_breakpoint_created):
4398 Remove unused variable.
4399 * python/py-cmd.c (cmdpy_function): Remove unused variable.
4400 (cmdpy_completer): Remove unused variable.
4401 * python/py-frame.c (frapy_find_sal): Remove unused variable.
4402 * python/py-function.c (fnpy_call): Remove unused variable.
4403 * python/py-objfile.c (objfile_to_objfile_object):
4404 Remove unused variable.
4405 * python/py-param.c (parmpy_init): Remove unused variable.
4406 * python/py-prettyprint.c (apply_varobj_pretty_printer):
4407 Remove unused variable.
4408 (gdbpy_default_visualizer): Remove unused variable.
4409 * python/py-progspace.c (pspace_to_pspace_object):
4410 Remove unused variable.
4411 * python/py-symtab.c (symtab_and_line_to_sal_object):
4412 Remove unused variable.
4413 * python/py-type.c (typy_template_argument):
4414 Remove unused variable.
4415 * python/py-value.c (valpy_string): Remove unused variable.
4416 (convert_value_from_python): Remove unused variables.
4418 2010-05-07 Michael Snyder <msnyder@vmware.com>
4420 * valops.c (value_cast_pointers): Restore unused variable 'type1',
4421 and use it to compute variable 't1'.
4423 2010-05-07 Joel Brobecker <brobecker@adacore.com>
4425 * ada-lang.c (assign_aggregate): Remove unused variable.
4427 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
4430 * valops.c (find_overload_match): Handle fsym == NULL case.
4431 Add int no_adl argument.
4432 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
4434 Add int no_adl argument.
4435 (find_oload_champ_namespace): Add int no_adl argument.
4436 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
4438 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
4439 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
4440 Evaluate arguments and use them to perform ADL lookup.
4441 Pass no_adl argument to find_overload_match.
4442 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
4443 * cp-support.h: Added prototype for
4444 make_symbol_overload_list_namespace.
4445 * cp-support.c (make_symbol_overload_list_namespace): New function.
4446 (make_symbol_overload_list_adl_namespace): New function.
4447 (make_symbol_overload_list_adl): New function.
4448 (make_symbol_overload_list_using): Moved code to add function to
4449 overload set to make_symbol_overload_list_namespace.
4450 * c-exp.y: create UNKNOWN_CPP_NAME token.
4451 Add parse rule for ADL functions.
4452 (classify_name): Recognize an UNKNOWN_CPP_NAME.
4454 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4456 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
4459 2010-05-07 Joel Brobecker <brobecker@adacore.com>
4461 Implement task switching on solaris targets.
4462 * sol-thread.c (thread_db_find_thread_from_tid)
4463 (sol_get_ada_task_ptid): New functions.
4464 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
4466 2010-05-07 Pedro Alves <pedro@codesourcery.com>
4468 * remote.c (remote_query_supported_append): Use reconcat.
4469 (remote_query_supported): Install a cleanup. Use reconcat.
4471 2010-05-07 Pedro Alves <pedro@codesourcery.com>
4473 * gdbarch.sh (qsupported): Delete.
4474 * gdbarch.h, gdbarch.c: Regenerate.
4475 * remote.c (remote_query_supported): Remove use of
4478 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
4480 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
4483 2010-05-06 Michael Snyder <msnyder@vmware.com>
4485 * xml-support.c (xinclude_start_include): Delete unused variable.
4486 (xml_process_xincludes): Delete unused variable.
4487 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
4488 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
4489 (tdesc_find_arch_register): Delete unused variable.
4490 (tdesc_use_registers): Delete unused variable.
4491 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
4492 * inferior.c (print_inferior): Delete unused variable.
4493 * record.c (record_open_1): Delete unused variable.
4494 (record_restore): Delete unused variable.
4495 (cmd_record_save): Delete unused variable.
4496 * gcore.c (derive_heap_segment): Delete unused variable.
4497 (objfile_find_memory_regions): Use unused variable.
4498 * jit.c (jit_inferior_init): Delete unused variable.
4499 * progspace.c (clone_program_space): Delete unused variable.
4500 (pspace_empty_p): Delete unused variable.
4502 * frame-unwind.c (frame_unwind_find_by_frame):
4503 Delete unused variable.
4504 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
4505 * cp-support.c (mangled_name_to_comp): Delete unused variable.
4506 (method_name_from_physname): Delete unused variable.
4507 (cp_func_name): Delete unused variable.
4508 (cp_validate_operator): Delete unused variable.
4509 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
4510 Delete unused variable.
4511 * trad-frame.c (trad_frame_get_prev_register):
4512 Delete unused variable.
4513 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
4515 * serial.c (serial_for_fd): Delete unused variable.
4516 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
4517 * top.c (execute_command): Delete unused variable.
4518 (init_main): Delete unused variable.
4519 * utils.c (do_fclose_cleanup): Delete unused variable.
4520 (do_all_inferior_continuations): Delete unused variable.
4521 (initialize_utils): Delete unused variable.
4522 (internal_problem_mode): Delete unused global.
4523 * frame.c (get_prev_frame): Delete unused global.
4524 (get_frame_locals_address): Delete unused global.
4525 (get_frame_args_address): Delete unused global.
4527 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
4528 (pascal_type_print_varspec_prefix): Delete unused variable.
4529 * f-typeprint.c (f_type_print_base): Delete unused variable.
4530 (f_type_print_varspec_suffix): Delete unused variable.
4531 * m2-typeprint.c (m2_print_type): Delete unused variable.
4532 (m2_long_set): Delete unused variable.
4533 * ada-valprint.c (ada_val_print_1): Delete unused variable.
4534 * d-valprint.c (dynamic_array_type): Delete unused variable.
4535 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
4536 Delete unused variable.
4537 (f77_create_arrayprint_offset_tbl): Delete unused variable.
4538 * m2-valprint.c (m2_val_print): Delete unused variable.
4540 * ui-out.c (ui_out_field_int): Delete unused variable.
4541 (ui_out_field_fmt_int): Delete unused variable.
4542 * varobj.c (varobj_list_children): Delete unused variable.
4543 (varobj_set_value): Delete unused variable.
4544 (install_new_value_visualizer): Delete unused variable.
4545 (varobj_set_visualizer): Delete unused variable.
4546 (varobj_update): Delete unused variable.
4547 (varobj_editable_p): Delete unused variable.
4548 (c_value_of_root): Delete unused variable.
4549 (cplus_describe_child): Delete unused variable.
4551 * ada-lang.c (add_defn_to_vec): Delete unused variable.
4552 (decode_constrained_packed_array_type): Delete unused variable.
4553 (add_defn_to_vec): Delete unused variable.
4554 (symbol_completion_match): Delete unused variable.
4555 (value_tag_from_contents_and_address): Delete unused variable.
4556 (ada_evaluate_subexp): Delete unused variable.
4557 * c-lang.c (classify_type): Delete unused variable.
4558 * f-lang.c (f_printstr): Delete unused variable.
4559 * objc-lang.c (objc_printstr): Delete unused variable.
4560 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
4561 * jv-lang.c (type_from_class): ifdef unused variable.
4562 (java_class_name_from_physname): Delete unused variable.
4563 * m2-lang.c (m2_printstr): Delete unused variable.
4565 * objfiles.c (objfile_relocate): Delete unused variable.
4566 * maint.c (_initialize_maint_cmds): Delete unused variable.
4567 * demangle.c (_initialize_demangler): Delete unused variable.
4568 * corefile.c (reopen_exec_file): Delete unused variable.
4569 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
4570 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
4572 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
4573 * memattr.c (mem_delete): Delete unused variable.
4574 (invalidate_target_mem_regions): Delete unused variable.
4575 * mem-break.c (default_memory_insert_breakpoint):
4576 Delete unused variable.
4577 * target.c (target_get_osdata): Delete unused variable.
4578 * parse.c (length_of_subexp): Delete unused variable.
4579 (prefixify_subexp): Delete unused variable.
4580 (exp_iterate): Delete unused variable.
4581 * reverse.c (delete_bookmark_command): Delete unused variable.
4583 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
4584 * macroexp.c (gather_arguments): Delete unused variable.
4585 (substitute_args): Delete unused variable.
4586 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
4587 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
4588 (_initialize_gdbarch): Delete unused variable.
4589 * gdbarch.c, gdbarch.h: Regenerate.
4590 * arch-utils.c (initialize_current_architecture):
4591 Delete unused variable.
4592 (_initialize_gdbarch_utils): Delete unused variable.
4593 * gdbtypes.c (make_cv_type): Delete unused variable.
4594 (make_type_with_address_space): Delete unused variable.
4596 * linespec.c (decode_compound): Delete unused variable.
4597 * dictionary.c (iterator_next_hashed): Delete unused variable.
4598 * infcall.c (call_function_by_hand): Delete unused variable.
4599 * infcmd.c (step_1): Delete unused variable.
4600 (registers_info): Delete unused variable.
4601 (attach_command): Delete unused variable.
4602 * infrun.c (follow_exec): Delete unused variable.
4603 (handle_step_into_function_backwards): Delete unused variable.
4604 (_initialize_infrun): Delete unused variable.
4605 * stack.c (parse_frame_specification_1): Delete unused variable.
4606 (frame_info): Delete unused variable.
4607 (backtrace_command_1): Delete unused variable.
4608 (catch_info): Delete unused variable.
4610 * eval.c (evaluate_subexp_standard): Delete unused variable.
4611 * valops.c (value_cast_pointers): Delete unused variable.
4612 (value_dynamic_cast): Delete unused variable.
4613 (value_array): Delete unused variable.
4614 (find_overload_match): Delete unused variable.
4615 * valarith.c (value_subscript): Delete unused variable.
4616 (value_binop): Delete unused variable.
4617 * valprint.c (_initialize_valprint): Delete unused variable.
4618 * printcmd.c (print_command_1): Delete unused variable.
4619 (address_info): Delete unused variable.
4620 (printf_command): Delete unused variable.
4622 * auxv.c (target_auxv_search): Delete unused variable.
4623 * blockframe.c (get_frame_block): Delete unused variable.
4624 * regcache.c (regcache_cpy): Delete unused variable.
4625 (regcache_cpy_no_passthrough): Delete unused variable.
4626 * charset.c (wchar_iterate): Delete unused variable.
4627 (find_charset_names): Delete unused variable.
4628 (_initialize_charset): Delete unused variable.
4629 * disasm.c (do_mixed_source_and_assembly):
4630 Delete unused variable.
4631 * source.c (set_default_source_symtab_and_line):
4632 Delete unused variable.
4633 (set_substitute_path_command): Delete unused variable.
4634 * value.c (preserve_values): Delete unused variable.
4635 (value_from_double): Delete unused variable.
4637 2010-05-05 Michael Snyder <msnyder@vmware.com>
4639 * psymtab.c (lookup_partial_symbol): Delete unused variable.
4640 (find_last_source_symtab_from_partial): Delete unused variable.
4641 * symfile.c (place_section): Delete unused variable.
4642 (default_symfile_offsets): Delete unused variable.
4643 (get_debug_link_info): Delete unused variable.
4644 (find_separate_debug_file_by_debuglink): Delete unused variable.
4645 (add_symbol_file_command): Delete unused variable.
4646 (symfile_find_segment_sections): Delete unused variable.
4647 * symmisc.c (free_symtab): Delete unused variable.
4648 (dump_symtab_1): Delete unused variable.
4649 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
4650 (find_pc_sect_symtab): Delete unused variable.
4651 (skip_prologue_using_lineinfo): Delete unused variable.
4652 (sources_info): Delete unused variable.
4653 (completion_list_add_name): Delete unused variable.
4654 (expand_line_sal): Delete unused variable.
4656 * breakpoint.c (validate_commands_for_breakpoint):
4657 Delete unused variables.
4658 (insert_catchpoint): Delete unused variable.
4659 (update_watchpoint): Delete unused variable.
4660 (insert_bp_location): Delete unused variable.
4661 (insert_breakpoint_locations): Delete unused variable.
4662 (remove_breakpoint_1): Delete unused variable.
4663 (software_breakpoint_inserted_here_p): Delete unused variable.
4664 (watchpoints_triggered): Delete unused variable.
4665 (bpstat_check_watchpoint): Delete unused variable.
4666 (bpstat_stop_status): Delete unused variable.
4667 (print_one_breakpoint_location): Delete unused variable.
4668 (allocate_bp_location): Delete unused variable.
4669 (create_breakpoint): Delete unused variable.
4670 (watch_command_1): Delete unused variable.
4671 (catch_exception_command_1): Delete unused variable.
4672 (catch_ada_exception_command): Delete unused variable.
4673 (delete_breakpoint): Delete unused variable.
4674 (breakpoint_re_set_one): Delete unused variable.
4675 (do_enable_breakpoint): Delete unused variable.
4677 2010-05-06 Pedro Alves <pedro@codesourcery.com>
4679 * amd64-tdep.c: Include disasm.h.
4680 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
4681 (amd64_insn_length): Moved to disasm.c and renamed.
4682 (fixup_riprel): Adjust.
4683 * disasm.c (do_ui_file_delete): New.
4684 (gdb_insn_length): New.
4685 (gdb_buffered_insn_length_fprintf)
4686 (gdb_buffered_insn_length_init_dis)
4687 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
4689 * disasm.h (gdb_insn_length): Declare.
4690 (gdb_buffered_insn_length): Declare.
4692 2010-05-06 Pedro Alves <pedro@codesourcery.com>
4694 * remote.c (clear_threads_parsing_context): New.
4695 (remote_threads_info): Delete unused null_cleanup. Install a
4696 cleanup to clear the threads_parsing_context in case parsing
4699 2010-05-05 Michael Snyder <msnyder@vmware.com>
4701 * c-exp.y (parse_string_or_char): Delete unused variable.
4702 (c_lex): Delete unused variable.
4703 * cp-name-parser.y (cpname_lex): Delete unused variable.
4704 * ada-exp.y (find_primitive_type): Delete unused variable.
4705 (write_var_or_type): Delete unused variable.
4706 * jv-exp.y (java_parse): Delete unused variable.
4707 (push_expression_name): Delete unused variable.
4708 * p-exp.y (pascal_lex): Delete unused variable.
4710 2010-05-05 Pedro Alves <pedro@codesourcery.com>
4712 * remote.c (remote_threads_info): Really revert previous previous
4715 2010-05-05 Michael Snyder <msnyder@vmware.com>
4717 * elfread.c (elf_symtab_read): Delete unused variable.
4718 (find_separate_debug_file_by_buildid): Delete unused variables.
4719 (elf_symfile_read): Delete unused variable.
4721 * coffread.c (coff_symfile_read): Delete unused variables.
4723 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
4724 (read_pe_exported_syms): Delete unused variable.
4726 * stabsread.c (define_symbol): Delete unused variable.
4728 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
4729 (process_psymtab_comp_unit): Delete unused variable.
4730 (dwarf2_build_psymtabs_hard): Delete unused variable.
4731 (load_partial_comp_unit): Delete unused variable.
4732 (create_all_comp_units): Delete unused variable.
4733 (scan_partial_symbols): Delete unused variable.
4734 (add_partial_symbol): Delete unused variable.
4735 (add_partial_namespace): Delete unused variable.
4736 (add_partial_enumeration): Delete unused variable.
4737 (load_full_comp_unit): Delete unused variable.
4738 (process_full_comp_unit): Delete unused variable.
4739 (read_file_scope): Delete unused variable.
4740 (read_type_unit_scope): Delete unused variable.
4741 (process_structure_scope): Delete unused variable.
4742 (process_enumeration_scope): Delete unused variable.
4743 (read_tag_ptr_to_member_type): Delete unused variable.
4744 (read_typedef): Delete unused variable.
4745 (read_partial_die): Delete unused variable.
4746 (decode_locdesc): Delete unused variable.
4747 (zeroed_partial_die): Delete unused global variable.
4749 * tui/tui-interp.c (_initialize_tui_interp):
4750 Delete unused variable.
4751 * tui/tui-regs.c tui_display_registers_from):
4752 Delete unused variable.
4753 (tui_check_register_values): Delete unused variable.
4754 (tui_register_format): Delete unused variable.
4755 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
4756 * tui/tui-windata.c (tui_display_data_from_line):
4757 Delete unused variables.
4758 (tui_vertical_data_scroll): Delete unused variables.
4760 2010-05-05 Michael Snyder <msnyder@vmware.com>
4762 * remote.c (remote_threads_info): Revert questionable part of
4763 the previous change.
4765 2010-05-05 Michael Snyder <msnyder@vmware.com>
4767 * mi/mi-out.c (mi_table_begin): Delete unused variable.
4768 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
4769 (mi_cmd_var_list_children): Delete unused variable.
4770 (varobj_update_one): Delete unused variable.
4771 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
4772 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
4773 Delete unused variable.
4774 (mi_cmd_stack_list_variables): Delete unused variable.
4775 (list_args_or_locals): Delete unused variable.
4776 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
4777 Delete unused variables.
4778 (mi_cmd_file_list_exec_source_files): Delete unused variable.
4779 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
4780 Delete unused variable.
4781 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
4782 (mi_cmd_interpreter_exec): Delete unused variable.
4783 (mi_on_normal_stop): Delete unused variable.
4784 * mi/mi-main.c (run_one_inferior): Delete unused variable.
4785 (print_one_inferior): Delete unused variables.
4786 (mi_execute_command): Delete unused variable.
4787 (mi_cmd_execute): Delete unused variable.
4788 (timestamp): Delete unused variable.
4790 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
4791 (restore_binary_file): Delete unused variable.
4792 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
4793 * cli/cli-script.c (define_command): Delete unused variables.
4794 (recurse_read_control_structure): Delete unused variable.
4795 (script_from_file): Delete unused variable.
4796 * cli/cli-cmds.c (complete_command): Delete unused variable.
4797 (disassemble_command): Delete unused variable.
4799 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
4800 * tracepoint.c (delete_trace_variable_command):
4801 Delete unused variables.
4802 (encode_actions_1): Delete unused variables.
4803 (start_tracing): Delete unused variable.
4804 (trace_status_mi): Delete unused variable.
4805 (tfind_1): Delete unused variable.
4806 (trace_find_pc_command): Delete unused variable.
4807 (trace_find_line_command): Delete unused variables.
4808 (trace_find_range_command): Delete unused variables.
4809 (trace_find_outside_command): Delete unused variables.
4810 (parse_tracepoint_definition): Delete unused variables.
4811 (tfile_fetch_registers): Delete unused variable.
4813 * dcache.c (dcache_init): Delete unused variable.
4814 (dcache_info): Delete unused variable.
4816 * remote.c (remote_threads_info): Delete unused variable.
4817 (process_stop_reply) :Delete unused variable.
4818 (remote_get_trace_status): Delete unused variables.
4820 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
4821 (thread_from_lwp): Delete unused variable.
4822 (enable_thread_event_reporting): Delete unused variable.
4823 (check_for_thread_db): Delete unused variables.
4824 (thread_db_find_new_threads_2): Delete unused variable.
4826 * linux-fork.c (info_checkpoints_command): Delete unused variables.
4827 (checkpoint_command): Delete unused variable.
4828 (linux_fork_context): Delete unused variables.
4830 * linux-nat.c (linux_parent_pid): Delete unused global variable.
4831 (linux_tracefork_child): Delete unused variable.
4832 (linux_child_follow_fork): Delete unused variable.
4833 (linux_nat_detach): Delete unused variable.
4834 (linux_handle_extended_wait): Delete unused variable.
4835 (linux_nat_has_pending_sigint): Delete unused variable.
4836 (linux_nat_find_memory_regions): Delete unused variable.
4837 (linux_nat_make_corefile_notes): Delete unused variables.
4838 (linux_nat_info_proc_cmd): Delete unused variable.
4839 (linux_proc_pending_signals): Delete unused variable.
4840 (linux_nat_stop_lwp): Delete unused variables.
4841 (_initialize_linux_nat): Delete unused variable.
4843 * ser-pipe.c (pipe_ops): Delete unused global variable.
4845 * linux-record.c (record_linux_system_call):
4846 Delete unused variables.
4848 * corelow.c (core_xfer_partial): Delete unused variables.
4850 * solib-svr4.c (find_program_interpreter): Delete unused variable.
4851 (svr4_solib_create_inferior_hook): Add ifdef around
4852 conditionally-used variable declarations.
4854 * solib.c (solib_find): Delete unused variable.
4855 (free_so_symbols): Delete unused variable.
4856 (info_sharedlibrary_command): Delete unused variable.
4857 (reload_shared_libraries_1): Delete unused variable.
4858 (_initialize_solib): Delete unused variable.
4860 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
4861 (i386_collect_xstateregset): Delete unused variable.
4862 * i387-tdep.c (i387_print_float_info): Delete unused variable.
4864 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
4865 Delete unused variable 'type'.
4867 2010-05-05 Joel Brobecker <brobecker@adacore.com>
4869 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
4870 ada-lang.c: Remove comment mentioning these macros.
4871 * m2-exp.y: Delete commented out code.
4873 2010-05-05 Joel Brobecker <brobecker@adacore.com>
4875 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
4877 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
4879 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
4881 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
4882 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
4884 (cleanup_kernel_helper_return): Likewise.
4885 * arm-tdep.c (copy_unmodified): Likewise.
4886 (copy_preload): Likewise.
4887 (copy_copro_load_store): Likewise.
4888 (cleanup_branch): Likewise.
4889 (copy_b_bl_blx): Likewise.
4890 (copy_bx_blx_reg): Likewise.
4891 (copy_alu_imm): Likewise.
4892 (copy_alu_reg): Likewise.
4893 (copy_alu_shifted_reg): Likewise.
4894 (cleanup_load): Likewise.
4895 (cleanup_store): Likewise.
4896 (cleanup_block_load_pc): Likewise.
4897 (cleanup_svc): Likewise.
4898 (copy_undef): Likewise.
4899 (copy_unpred): Likewise.
4900 * remote.c (register_remote_support_xml): Likewise.
4902 2010-05-05 Hui Zhu <teawater@gmail.com>
4904 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
4906 2010-05-04 Mark Kettenis <kettenis@gnu.org>
4908 * remote.c (register_remote_support_xml)
4909 (remote_query_supported_append, remote_query_supported): Add cast
4910 to NULL used as sentinel.
4911 * tracepoint.c (tvariables_info_1): Likewise.
4912 * utils.c (add_internal_problem_command): Likewise.
4914 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4916 * dwarf2loc.c (read_pieced_value, write_pieced_value,
4917 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
4918 registers gracefully.
4920 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4922 * exec.c (print_section_info): Display entry point without arch
4925 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
4928 * printcmd.c (x_command): Only dereference once implicitly for
4931 2010-05-03 Doug Evans <dje@google.com>
4933 * event-loop.c (gdb_timer): Delete unused global.
4934 (create_timer): Update.
4936 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4938 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
4939 CURRENT->DECLARATION case.
4940 * cp-support.h (struct using_direct): Provide extended comment.
4942 2010-05-03 Mark Kettenis <kettenis@gnu.org>
4944 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
4945 HPPABSD_SIZEOF_GREGS.
4946 (HPPAOBSD_SIZEOF_FPREGS): New define.
4947 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
4948 (hppaobsd_supply_fpregset): New function.
4949 (hppaobsd_gregset): Renamed from hppabsd_gregset.
4950 (hppaobsd_fpregset): New variable.
4951 (hppaobsd_regset_from_core_section): Handle floating-point registers.
4952 (_initialize_hppabsd_tdep): Remove spurious blank line.
4954 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
4957 * p-valprint.c (pascal_value_print): Always dereference a value with
4958 type code TYPE_CODE_REF.
4960 2010-05-03 Pedro Alves <pedro@codesourcery.com>
4962 * remote.c (remote_notice_signals): New.
4963 (remote_start_remote): In non-stop mode, update the remote end on
4964 which signals it can silently pass.
4965 (init_remote_ops): Install remote_notice_signals.
4967 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4969 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
4970 * command.h (error_no_arg): ... here. Remove NORETURN, change
4971 ATTR_NORETURN to ATTRIBUTE_NORETURN.
4972 * defs.h (NORETURN, ATTR_NORETURN): Remove.
4973 (perror_with_name, verror, error, error_stream, vfatal, fatal)
4974 (internal_verror, internal_error, nomem): Remove NORETURN, change
4975 ATTR_NORETURN to ATTRIBUTE_NORETURN.
4976 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
4977 (throw_vfatal, throw_error): Remove NORETURN.
4978 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
4979 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
4980 (throw_error, deprecated_throw_reason): Remove NORETURN, change
4981 ATTR_NORETURN to ATTRIBUTE_NORETURN.
4982 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
4983 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
4985 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
4986 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
4988 * target.c (tcomplain): Likewise.
4989 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
4991 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
4992 (internal_error, perror_with_name, nomem): Remove NORETURN.
4993 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
4996 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4998 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4999 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
5000 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
5001 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5002 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
5003 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5004 * complaints.h (complaint, internal_complaint): Likewise.
5005 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
5006 (ATTR_FORMAT): Remove.
5007 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
5008 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
5009 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
5010 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
5011 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
5012 (internal_error, internal_vwarning, internal_warning, warning)
5013 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5014 * disasm.c (fprintf_disasm): Likewise.
5015 * exceptions.c (throw_it): Likewise.
5016 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
5017 (throw_error): Likewise.
5018 * language.h (type_error, range_error): Likewise.
5019 * linespec.c (cplusplus_error): Likewise.
5020 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
5021 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
5022 * monitor.c (monitor_debug): Likewise.
5023 * parser-defs.h (parser_fprintf): Likewise.
5024 * serial.h (serial_printf): Likewise.
5025 * tui/tui-hooks.c (tui_query_hook): Likewise.
5026 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
5027 (uo_message): Likewise.
5028 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
5029 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
5031 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
5033 2010-05-02 Pedro Alves <pedro@codesourcery.com>
5035 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
5036 (cli_table_header, cli_begin, cli_end, cli_field_int)
5037 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
5038 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
5039 Delete forward declarations.
5040 (cli_ui_out_impl): Move below the callbacks.
5041 (_initialize_cli_out): Delete.
5043 2010-05-02 Pedro Alves <pedro@codesourcery.com>
5045 * README: Use consistent `GDB' and `GDBserver' spellings.
5047 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5049 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
5051 2010-05-01 Pedro Alves <pedro@codesourcery.com>
5053 * infrun.c (prepare_for_detach): In non-stop, context switch to
5054 the thread that got the event before handling the event.
5056 2010-04-30 Tom Tromey <tromey@redhat.com>
5058 * symtab.c (symbol_set_names): Fix typo.
5060 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5062 * python/py-param.c (parm_constants): Avoid ARI warning
5063 by adding ARI comment.
5064 (parmpy_init): Likewise.
5066 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5068 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
5069 and created type for re-use.
5071 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5073 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
5075 2010-04-29 Doug Evans <dje@google.com>
5077 * ser-base.h (reschedule): Delete prototype.
5078 * ser-base.c (reschedule): Make static.
5080 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5082 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
5083 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
5084 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
5086 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
5089 2010-04-29 Pedro Alves <pedro@codesourcery.com>
5093 * regcache.c (registers_changed): Rename to ...
5094 (registers_changed_ptid): ... this, and only delete register cache
5095 entries matching the ptid filter argument.
5096 (registers_changed): Reimplement on top of registers_changed_ptid.
5097 * regcache.h (registers_changed_ptid): Declare.
5098 * target.c (target_resume): Flush register caches.
5100 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
5101 Tom Tromey <tromey@redhat.com>
5102 Thiago Jung Bauermann <bauerman@br.ibm.com>
5104 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
5105 (SUBDIR_PYTHON_SRCS): Likewise.
5106 (py-parameter.o): New rule.
5107 * python/py-parameter.c: New file.
5108 * python/python-internal.h (gdbpy_initialize_parameter)
5109 (gdbpy_parameter, gdbpy_parameter_value)
5110 (gdbpy_parse_command_name): Declare.
5111 * python/py-cmd.c (parse_command_name): Rename to
5112 gdbpy_parse_command_name.
5113 (gdbpy_parse_command_name): Accept a starting list parameter and
5115 (cmdpy_init): Use gdbpy_parse_command_name.
5116 * python/python.c (parameter_to_python): Rename to
5117 gdbpy_parameter_to_python. Accept enum var_types and value.
5118 (gdbpy_parameter): Use gdbpy_parameter_value.
5119 (_initialize_python): Call gdbpy_initialize_parameters.
5121 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5123 * MAINTAINERS: Add myself for write after approval privileges.
5125 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
5128 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
5129 (COMMON_OBS): Add d-lang.o d-valprint.o.
5130 (HFILES_NO_SRCDIR): Add d-lang.h.
5131 * NEWS: Mention D language support.
5132 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
5133 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
5134 * d-lang.c: New file.
5135 * d-lang.h: New file.
5136 * d-valprint.c: New file.
5137 * defs.h (enum language): Add language_d.
5138 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
5139 * language.c (binop_result_type, integral_type, character_type)
5140 (string_type, boolean_type, structured_type): Add language_d.
5141 * symfile.c (init_filename_language_table): Add language_d.
5142 * symtab.c: Include d-lang.h.
5143 (symbol_init_language_specific, symbol_find_demangled_name)
5144 (symbol_natural_name, lookup_symbol_in_language)
5145 (symbol_demangled_name, symbol_matches_domain): Add language_d.
5147 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5149 * solib-svr4.c (solib_svr4_r_map): Expand function description.
5151 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5153 * symfile.c (init_filename_language_table): Register .dg files
5156 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5158 * gdbtypes.h (struct main_type): Expand comment about target_type
5161 2010-04-27 Pedro Alves <pedro@codesourcery.com>
5162 Tristan Gingold <gingold@adacore.com>
5164 * symfile.c (reread_symbols): Also search for file in libraries.
5167 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5169 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
5170 in terms of configuration.
5172 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5174 * objfiles.c: Include solist.h.
5175 (free_all_objfiles): New variable so. Check stale solist objfiles.
5176 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
5177 and no_shared_libraries.
5179 2010-04-27 Joel Brobecker <brobecker@adacore.com>
5182 * python/py-auto-load.c (source_section_scripts): Remove trailing
5183 new-line in i18n string.
5185 2010-04-26 Doug Evans <dje@google.com>
5187 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
5189 2010-04-26 Tom Tromey <tromey@redhat.com>
5191 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
5194 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
5196 Removal of config/i386/nm-i386sol2.h native configuration file.
5197 * config/i386/nm-i386sol2.h: Remove file.
5198 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
5199 * config/i386/sol2-64.mh: Idem.
5200 * config/djgpp/fnchange.lst: Remove reference to that file.
5201 * Makefile.in (HFILES_NO_SRCDIR): Idem.
5203 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
5205 PR breakpoints/11531.
5206 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
5207 macro definition and related comment.
5208 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
5209 (resume): Remove code and comment related to this macro.
5211 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5213 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
5216 2010-04-24 Pedro Alves <pedro@codesourcery.com>
5218 * defs.h: Adjust comment.
5219 * filesystem.h, filesystem.c: New files.
5220 * Makefile.in (SFILES): Add filesystem.c.
5221 (COMMON_OBS): Add filesystem.o.
5222 * solib.c (solib_find): Handle DOS-based filesystems. Handle
5223 different target and host path flavours.
5224 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
5225 has_dos_based_file_system on the gdbarch.
5226 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
5227 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
5228 * i386-tdep.c (i386_go32_init_abi): Ditto.
5229 * gdbarch.sh (has_dos_based_file_system): New.
5230 * gdbarch.h, gdbarch.c: Regenerate.
5231 * NEWS: Mention improved support for remote targets with DOS-based
5232 filesystems. Mention new `set/show target-file-system-kind'
5235 2010-04-23 Stan Shebs <stan@codesourcery.com>
5237 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
5239 (struct agent_reqs): Remove.
5240 (ax_reg_mask): Declare.
5241 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
5242 (free_agent_expr): Free reg_mask.
5243 (ax_print): Add scope and register mask info.
5244 (ax_reqs): Remove agent_reqs argument, use agent expression
5245 fields, and move part of register mask computation to...
5246 (ax_reg_mask): New function.
5247 * ax-gdb.c (gen_trace_static_fields): Call it.
5248 (gen_traced_pop): Ditto.
5249 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
5250 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
5251 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
5252 (gen_eval_for_expr): Ditto, and require an rvalue.
5253 (agent_command): Call ax_reqs.
5254 (agent_eval_command): Ditto.
5255 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
5256 (validate_action_line): Ditto.
5257 (collect_symbol): Ditto.
5258 (encode_actions_1): Ditto.
5260 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
5261 Paul Pluzhnikov <ppluzhnikov@google.com>
5262 Jan Kratochvil <jan.kratochvil@redhat.com>
5264 Fix deadlock on looped list of loaded shared objects.
5265 * solib-svr4.c (LM_PREV): New function.
5266 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
5267 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
5268 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
5269 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
5271 2010-04-23 Doug Evans <dje@google.com>
5273 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
5275 * configure: Regenerate.
5276 * main.c: #include "python/python.h".
5277 (captured_main): Defer loading auto-loaded scripts until after
5278 local_gdbinit has been sourced.
5279 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
5280 (load_auto_scripts_for_objfile): New function.
5281 (auto_load_new_objfile): Call it.
5282 * python/python.h (gdbpy_global_auto_load): Declare.
5283 (load_auto_scripts_for_objfile): Declare.
5285 Add support for auto-loading scripts from .debug_gdb_scripts section.
5286 * NEWS: Add entry for .debug_gdb_scripts.
5287 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
5288 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
5289 (py-auto-load.o): New rule.
5290 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
5291 * cli/cli-cmds.h (find_and_open_script): Update prototype.
5292 * python/py-auto-load.c: New file.
5293 * python/python-internal.h: #include <stdio.h>.
5294 (set_python_list, show_python_list): Declare.
5295 (gdbpy_initialize_auto_load): Declare.
5296 (source_python_script_for_objfile): Declare.
5297 * python/python.c: Remove #include of observer.h.
5298 (gdbpy_auto_load): Moved to py-auto-load.c.
5299 (GDBPY_AUTO_FILENAME): Ditto.
5300 (gdbpy_new_objfile): Delete.
5301 (source_python_script_for_objfile): New function.
5302 (set_python_list, show_python_list): Make externally visible.
5303 (_initialize_python): Move "auto-load" command to py-auto-load.c
5304 and observer_attach_new_objfile to py-auto-load.c.
5306 2010-04-23 Jerome Guitton <guitton@adacore.com>
5308 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
5309 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
5310 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
5312 (alpha_heuristic_analyze_probing_loop): New function.
5313 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
5314 and handle cases when a stack probe loop is generated.
5315 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
5316 (alpha_mdebug_max_frame_size_exceeded): New function.
5317 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
5318 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
5319 Return 0 when the maximum debuggable frame size has been exceeded.
5321 2010-04-23 Joel Brobecker <brobecker@adacore.com>
5324 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
5326 2010-04-20 Chris Moller <cmoller@redhat.com>
5330 * symtab.c (rbreak_command): Added code to include a filename
5331 specification in the rbreak argument.
5332 * NEWS: Added a brief description of filename-qualified rbreak.
5334 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5336 Fix crashes on dangling display expressions.
5337 * ada-lang.c (ada_operator_check): New function.
5338 (ada_exp_descriptor): Fill-in the field operator_check.
5339 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
5340 * jv-lang.c (exp_descriptor_java): Likewise.
5341 * m2-lang.c (exp_descriptor_modula2): Likewise.
5342 * scm-lang.c (exp_descriptor_scm): Likewise.
5343 * parse.c (exp_descriptor_standard): Likewise.
5344 (operator_check_standard): New function.
5345 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
5346 * parser-defs.h (struct exp_descriptor): New field operator_check.
5347 (operator_check_standard, exp_uses_objfile): New declarations.
5348 * printcmd.c: Remove the inclusion of solib.h.
5349 (display_uses_solib_p): Remove the function.
5350 (clear_dangling_display_expressions): Call lookup_objfile_from_block
5351 and exp_uses_objfile instead of display_uses_solib_p.
5352 * solist.h (struct so_list) <objfile>: New comment.
5353 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
5354 * symtab.h (lookup_objfile_from_block): New declaration.
5355 (struct general_symbol_info) <obj_section>: Extend the comment.
5357 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5358 Thiago Jung Bauermann <bauerman@br.ibm.com>
5360 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
5361 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
5362 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
5363 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
5364 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
5365 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
5366 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
5367 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
5368 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
5369 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
5370 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
5371 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
5372 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
5373 Define, in case <ptrace.h> doesn't provide it.
5374 (booke_debug_info): New variable.
5375 (max_slots_number): Ditto.
5376 (hw_break_tuple): New struct.
5377 (thread_points): Ditto.
5378 (ppc_threads): New variable.
5379 (PPC_DEBUG_CURRENT_VERSION): New define.
5380 (have_ptrace_new_debug_booke): New function.
5381 (ppc_linux_check_watch_resources): Renamed to ...
5382 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
5383 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
5384 (booke_cmp_hw_point): New function.
5385 (booke_find_thread_points_by_tid): Ditto.
5386 (booke_insert_point): Ditto.
5387 (booke_remove_point): Ditto.
5388 (ppc_linux_insert_hw_breakpoint): Ditto.
5389 (ppc_linux_remove_hw_breakpoint): Ditto.
5390 (get_trigger_type): Ditto.
5391 (ppc_linux_insert_watchpoint): Handle BookE processors.
5392 (ppc_linux_remove_watchpoint): Ditto.
5393 (ppc_linux_new_thread): Ditto.
5394 (ppc_linux_thread_exit): New function..
5395 (ppc_linux_stopped_data_address): Handle BookE processors.
5396 (ppc_linux_watchpoint_addr_within_range): Ditto.
5397 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
5398 to_remove_hw_breakpoint fields of the target operations struct.
5399 Add observe for the thread_exit event.
5401 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
5403 * i386-linux-nat.c (regmap): Removed.
5404 (fetch_register): Replace regmap with
5405 i386_linux_gregset_reg_offset.
5406 (store_register): Likewise.
5407 (supply_gregset): Likewise.
5408 (fill_gregset): Likewise.
5410 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
5413 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
5415 2010-04-22 Chris Moller <cmoller@redhat.com>
5417 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
5418 method of popping recursion-detection stack with a method based on
5419 obstack_object_size(). (Similar to the PR9167 patch below, but for
5420 the static array obstack rather than the static member obstack.)
5422 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
5424 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
5425 (_initialize_amd64_linux_nat): Replace
5426 amd64_linux_gregset64_reg_offset with
5427 amd64_linux_gregset_reg_offset.
5429 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
5432 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
5434 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
5437 * stabsread.c (set_length_in_type_chain): New function.
5438 (read_struct_type): Call set_length_in_type_chain function.
5439 (read_enum_type): Idem.
5441 2010-04-21 Stan Shebs <stan@codesourcery.com>
5442 Nathan Sidwell <nathan@codesourcery.com>
5444 * tracepoint.c (trace_save): Open in binary mode.
5446 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
5448 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
5450 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
5451 builtin_char32 fields.
5452 * printcmd.c (decode_format): Set char size to '\0'
5453 for strings unless explicit size is given.
5454 (print_formatted): Correct calculation of NEXT_ADDRESS
5455 for 16 or 32 bit strings.
5456 (do_examine): Do not force byte size for strings.
5457 Use builtin_char16 and builtin_char32 types to display
5458 16 or 32 bit-wide strings.
5459 (x_command): Set LAST_SIZE to 'b' for string type.
5461 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
5464 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5467 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
5468 there is no .reg-xstate section.
5469 (i386_linux_core_read_description): Check XCR0 first.
5471 2010-04-21 Mike Frysinger <vapier@gentoo.org>
5473 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
5476 2010-04-21 Chris Moller <cmoller@redhat.com>
5479 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
5480 method of popping recursion-detection stack with a method based on
5481 obstack_object_size().
5483 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5486 * p-valprint.c (pascal_val_print): Fix default printing of integer
5489 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
5491 Fix compilation warning on gcc-4.1.2.
5492 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
5493 local variable`pc' to zero.
5495 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5497 Implement thread support with core files on alpha-tru64.
5498 * dec-thread.c (dec_thread_find_new_threads): New function,
5499 extracted from resync_thread_list.
5500 (resync_thread_list): Add OPS parameter. Replace extracted-out
5501 code by call to dec_thread_find_new_threads.
5502 (dec_thread_wait): Update call to resync_thread_list.
5503 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
5505 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5507 * ada-lang.c (value_pointer): New function.
5508 (make_array_descriptor): Call value_pointer to convert addresses to
5511 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5513 * rs6000-aix-tdep.c: #include exceptions.h.
5514 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
5515 while reading the memory at ADDR, then ADDR cannot be a function
5518 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5520 * ada-typeprint.c (ada_print_typedef): New function.
5521 * ada-lang.h (ada_print_typedef): Add declaration.
5522 * ada-lang.c (ada_language_defn): set la_print_typdef field
5523 to ada_print_typedef.
5525 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5527 * procfs.c (procfs_address_to_host_pointer): Only define when used.
5529 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5531 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
5532 (iterate_over_mappings): Adjust function profile. Add declaration.
5533 (insert_dbx_link_bpt_in_region, info_mappings_callback):
5536 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5538 * procfs.c (solib_mappings_callback): Move function up to avoid
5541 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5543 * procfs.c (find_signalled_thread, find_stop_signal): Move
5544 these functions down to define them only when used.
5546 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5548 * valprint.c (common_val_print): Fix the value before extracting
5550 * ada-lang.c (ada_to_fixed_value): Make this function extern.
5551 * ada-lang.h (ada_to_fixed_value): New function declaration.
5552 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
5553 to avoid code duplication and fix a bug in the handling of
5554 fixed types contents.
5556 2010-04-20 Tom Tromey <tromey@redhat.com>
5558 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
5559 (read_partial_die): Likewise.
5560 (dwarf_attr_name): Likewise.
5562 2010-04-20 Chris Moller <cmoller@redhat.com>
5566 * cp-valprint.c (global): Adding new static array recursion
5568 (cp_print_value_fields, cp_print_static_field): Added new static
5569 array recursion detection code.
5571 2010-04-20 Mark Kettenis <kettenis@gnu.org>
5573 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
5574 general-purpose register set should be 68 instead of 144.
5575 (i386_linux_sse_regset_sections): Likewise.
5576 (i386_linux_avx_regset_sections): Likewise.
5578 2010-04-20 Stan Shebs <stan@codesourcery.com>
5579 Nathan Sidwell <nathan@codesourcery.com>
5581 * dwarf2loc.c (struct axs_var_loc): New struct.
5582 (dwarf2_tracepoint_var_loc): New function.
5583 (dwarf2_tracepoint_var_access): New function.
5584 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
5586 (locexpr_describe_location_piece): New function.
5587 (locexpr_describe_location_1): New function.
5588 (locexpr_describe_location): Call it, update signature.
5589 (loclist_describe_location): Rewrite to loop over locations,
5591 * symtab.h (struct symbol_computed_ops): Add address to
5592 describe_location arguments, return void.
5593 * printcmd.c (address_info): Get context PC, pass to computed
5594 location description.
5595 * tracepoint.c (scope_info): Ditto.
5596 * ax-gdb.c (trace_kludge): Export.
5598 2010-04-20 Tom Tromey <tromey@redhat.com>
5600 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
5601 (struct dwarf2_cie) <segment_size>: New field.
5602 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
5603 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
5605 (read_attribute_value): Handle DW_FORM_flag_present,
5606 DW_FORM_sec_offset, DW_FORM_exprloc.
5607 (dump_die_shallow): Likewise.
5608 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
5609 (dwarf2_const_value): Handle DW_FORM_exprloc.
5610 (attr_form_is_block): Likewise.
5611 (struct line_header) <maximum_ops_per_instruction>: New field.
5612 (dwarf_decode_line_header): Set new field.
5613 (dwarf_decode_lines): Handle new field.
5615 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5617 * f-exp.y: Add new production to recognize the `logical*8' type.
5618 (LOGICAL_S8_KEYWORD): New token.
5619 * f-lang.c (enum f_primitive_types)
5620 <f_primitive_type_logical_s8>: New field.
5621 (f_language_arch_info): Handling `logical*8' type.
5622 (build_fortran_types): Building `logical*8' type.
5623 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
5625 2010-04-19 Doug Evans <dje@google.com>
5627 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
5628 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
5629 (pipe_close): Ditto.
5631 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5633 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
5635 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5637 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
5638 type to void function.
5640 2010-04-19 Stan Shebs <stan@codesourcery.com>
5641 Vladimir Prus <vladimir@codesourcery.com>
5643 * tracepoint.c (tfind_1): Add missing newline, report exit from
5645 * target.c (update_current_target): Make default
5646 to_trace_find return -1.
5648 2010-04-19 Mike Frysinger <vapier@gentoo.org>
5650 * objc-lang.c (find_methods): Move symname check up.
5652 2010-04-19 Pedro Alves <pedro@codesourcery.com>
5654 * ada-lang.c (print_recreate_exception)
5655 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
5656 not "catch unhandled".
5658 2010-04-19 Pedro Alves <pedro@codesourcery.com>
5660 PR breakpoints/8554.
5662 Implement `save-breakpoints'.
5664 * breakpoint.c (save_cmdlist): New.
5665 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
5667 (print_recreate_catch_fork): New.
5668 (catch_fork_breakpoint_ops): Install it.
5669 (print_recreate_catch_vfork): New.
5670 (catch_vfork_breakpoint_ops): Install it.
5671 (print_recreate_catch_syscall): New.
5672 (catch_syscall_breakpoint_ops): Install it.
5673 (print_recreate_catch_exec): New.
5674 (catch_exec_breakpoint_ops): Install it.
5675 (print_recreate_exception_catchpoint): New.
5676 (gnu_v3_exception_catchpoint_ops): Install it.
5677 (save_breakpoints): New, based on tracepoint_save_command, but
5678 handle all breakpoint types.
5679 (save_breakpoints_command): New.
5680 (tracepoint_save_command): Rename to...
5681 (save_tracepoints_command): ... this, and reimplement using
5683 (save_command): New.
5684 (_initialize_breakpoints): Install the "save" command prefix.
5685 Install the "save breakpoints" command. Make "save-tracepoints" a
5686 deprecated alias for "save tracepoints".
5687 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
5688 * ada-lang.c (print_recreate_exception): New.
5689 (print_recreate_catch_exception): New.
5690 (catch_exception_breakpoint_ops): Install it.
5691 (print_recreate_catch_exception_unhandled): New.
5692 (catch_exception_unhandled_breakpoint_ops): Install it.
5693 (print_recreate_catch_assert): New.
5694 (catch_assert_breakpoint_ops): Install it.
5696 * NEWS: Mention the new `save breakpoints' command. Mention the
5697 new `save tracepoints' alias and that `save-tracepoints' is now
5700 2010-04-18 Pedro Alves <pedro@codesourcery.com>
5704 * tui/tui-out.c: Include cli-out.h.
5705 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
5706 (tui_begin, tui_end, tui_field_int, tui_field_skip)
5707 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
5708 (tui_message, tui_wrap_hint, tui_flush): Delete forward
5710 (struct ui_out_data): Rename to...
5711 (struct tui_ui_out_data): ... this. Remove `stream' and
5712 `suppress_output' fields, and inherit cli_ui_out_data.
5713 (tui_out_data): New typedef.
5714 (tui_ui_out_impl): Don't initialize fields staticaly.
5715 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
5716 (tui_begin, tui_end): Delete.
5717 (tui_field_int): Adjust to delegate most work to the base type.
5718 (tui_field_skip): Delete.
5719 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
5720 delegate most work to the base type.
5721 (tui_spaces): Delete.
5722 (tui_text): Adjust to delegate most work to the base type.
5723 (tui_message): Delete.
5724 (tui_wrap_hint): Delete.
5725 (tui_flush): Delete.
5726 (out_field_fmt): Delete.
5727 (field_separator): Delete.
5728 (tui_out_new): Adjust to initialize the base type.
5729 (_initialize_tui_out): Initialize tui_ui_out_impl.
5730 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
5732 (cli_out_data): Adjust.
5733 (cli_ui_out_impl): Make extern.
5734 (cli_table_header, cli_field_int, cli_field_skip): Use
5735 uo_field_string instead of cli_field_string.
5736 (cli_redirect): Adjust to use cli_out_data.
5737 (cli_out_data_ctor): New.
5738 (cli_out_new): Use it.
5739 * cli-out.h (struct ui_file): Remove forward declaration.
5740 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
5741 (cli_ui_out_impl): Declare.
5742 (cli_out_data_ctor): Declare.
5743 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
5744 (uo_field_string): No longer static.
5745 (ui_out_data): Change return type to void pointer.
5746 (ui_out_new): Change `data' parameter type to void pointer.
5747 * ui-out.h (struct ui_out_data): Don't forward declare.
5748 (ui_out_data): Change return type to void pointer.
5749 (ui_out_new): Change `data' parameter type to void pointer.
5750 (uo_field_string): Declare.
5752 2010-04-17 Pedro Alves <pedro@codesourcery.com>
5754 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
5755 instead of always false.
5757 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
5760 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
5763 2010-04-17 Pedro Alves <pedro@codesourcery.com>
5765 * breakpoint.c (watchpoints_triggered): Use
5766 is_hardware_watchpoint.
5767 (watchpoints_triggered): Ditto.
5768 (bpstat_check_location): Use is_watchpoint and
5769 is_hardware_watchpoint.
5770 (bpstat_check_watchpoint): Use is_watchpoint and
5771 is_hardware_watchpoint.
5772 (bpstat_stop_status): Fix comment.
5773 (user_settable_breakpoint): Use is_watchpoint.
5774 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
5775 (disable_watchpoints_before_interactive_call_start): Use
5777 (enable_watchpoints_after_interactive_call_stop): Use
5779 (clear_command): Use is_watchpoint.
5780 (do_enable_breakpoint): Use is_watchpoint.
5782 2010-04-16 Mike Frysinger <vapier@gentoo.org>
5784 * solib-frv.c (enable_break1_done): Delete.
5785 (enable_break2): Do not check enable_break1_done. Move the
5786 enable_break2_done setting and call to
5787 remove_solib_event_breakpoints() to the end. Return without
5788 warning when the contents of _dl_debug_addr are 0.
5789 (enable_break): Do not set enable_break1_done.
5790 (frv_clear_solib): Likewise.
5792 2010-04-16 Kevin Buettner <kevinb@redhat.com>
5794 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
5795 instead of an error if no PLT entry is found. Return a
5796 potentially useful result.
5797 (m32c_m16c_pointer_to_address): Add code to search for function
5798 address when no .plt entry is found.
5800 2010-04-16 Stan Shebs <stan@codesourcery.com>
5802 * tracepoint.c (trace_variable_command): Run a cleanup.
5804 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
5806 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
5808 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
5810 Support for Windows OS Thread Information Block.
5811 * NEWS: Document new feature.
5812 * remote.c (PACKET_qGetTIBAddr): New enum element.
5813 (remote_get_tib_address): New function.
5814 (init_remote_ops): Set to_get_tib_address field
5815 to remote_get_tib_address.
5816 (_initialize_remote): Add add_packet_config_cmd
5817 for PACKET_qGetTIBAddr.
5818 * target.c (update_current_target): Set default value for
5819 new to_get_tib_address field.
5820 * target.h (target_ops): New field to_get_tib_address.
5821 (target_get_tib_address): New macro.
5822 * windows-nat.c (thread_info): Add thread_local_base field.
5823 (windows_add_thread): Add tlb argument of type 'void *'.
5824 (fake_create_process): Adapt windows_add_thread call.
5825 (get_windows_debug_event): Idem.
5826 (windows_get_tib_address): New function.
5827 (init_windows_ops): Set to_get_tib_address field
5828 to remote_get_tib_address.
5829 (_initialize_windows_nat): Replace info_w32_cmdlist
5830 initialization by a call to init_w32_command_list.
5831 (info_w32_command, info_w32_cmdlist): Removed from here...
5832 to windows-tdep.c file.
5833 * windows-tdep.h (info_w32_cmdlist): Declare.
5834 (init_w32_command_list): New external function
5836 * windows-tdep.c: Add several headers.
5837 (info_w32_cmdlist): to here, made global.
5838 (thread_information_32): New struct.
5839 (thread_information_64): New struct.
5840 (TIB_NAME): New char array.
5841 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
5842 (maint_display_all_tib): New static variable.
5843 (windows_get_tlb_type): New function.
5844 (tlb_value_read, tlb_value_write): New functions.
5845 (tlb_value_funcs): New static struct.
5846 (tlb_make_value): New function.
5847 (display_one_tib): New function.
5848 (display_tib): New function.
5849 (show_maint_show_all_tib):New function.
5850 (info_w32_command): Moved from windows-nat.c.
5851 (init_w32_command_list): New function.
5852 (_initialize_windows_tdep): New function.
5853 New "maint set/show show-all-tib" command
5854 New "$_tlb" internal variable.
5856 2010-04-16 Joel Brobecker <brobecker@adacore.com>
5858 * tui/tui-regs.c (tui_display_register): Add comment about
5860 * tui/tui-stack.c (tui_show_locator_content): Ditto.
5862 2010-04-15 Stan Shebs <stan@codesourcery.com>
5864 * frame.c: Include tracepoint.h.
5865 (get_current_frame): Allow a trace frame to be an alternate source
5866 of stack frame data.
5867 * tracepoint.c (tfind_1): Don't try to get current stack frame if
5870 2010-04-15 Pedro Alves <pedro@codesourcery.com>
5872 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
5874 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
5876 2010-04-15 Doug Evans <dje@google.com>
5878 * NEWS: Add entry for python program space support.
5879 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
5880 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
5881 (py-progspace.o): New rule.
5882 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
5884 (find_pretty_printer_from_progspace): New function.
5885 (find_pretty_printer_from_gdb): New function.
5886 (find_pretty_printer): Rewrite.
5887 * python/py-progspace.c: New file.
5888 * python/python-internal.h (program_space): Add forward decl.
5889 (pspace_to_pspace_object, pspy_get_printers): Declare.
5890 (gdbpy_initialize_pspace): Declare.
5891 * python/python.c: #include "progspace.h".
5892 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
5893 (_initialize_python): Call gdbpy_initialize_pspace.
5894 (GdbMethods): Add current_progspace, progspaces.
5896 Add -s option to source command.
5897 * NEWS: Document new option.
5898 * cli/cli-cmds.c (find_and_open_script): Add function comment.
5899 Delete from_tty and cleanupp args. Split filep arg into file and
5900 full_pathp. New arg search_path.
5901 (source_script_from_stream): New function.
5902 (source_script_with_search): New function.
5903 (source_script): Rewrite.
5904 (source_command): Parse "-s" option.
5905 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
5906 * python/python.c (source_python_script): Make file arg a const char *.
5907 Don't call fclose, leave for caller.
5908 * python/python.h (source_python_script): Update.
5910 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
5911 Pedro Alves <pedro@codesourcery.com>
5913 Avoid rereading shared libraries that haven't changed.
5915 * solib.c (free_so_symbols): New function, from ...
5916 (free_so): ... here. Call it.
5917 (solib_read_symbols): Don't warn here if symbols have already been
5919 (solib_add): Warn here instead, if a pattern was specified.
5920 (reload_shared_libraries_1): New.
5921 (reload_shared_libraries): Rewrite to not fetch the library list.
5923 2010-04-14 Doug Evans <dje@google.com>
5925 * source.c (openp): Strip DOS drive letter if present before
5926 concatenating string to search path.
5928 2010-04-14 Pedro Alves <pedro@codesourcery.com>
5930 * objfiles.h (gdb_bfd_close_or_warn): Declare.
5931 * objfiles.c (gdb_bfd_close_or_warn): New.
5932 * corelow.c: Include objfiles.h
5933 (core_close): Use gdb_bfd_close_or_warn.
5934 * elfread.c (build_id_verify): Ditto.
5935 * exec.c (exec_close, exec_close_1): Ditto.
5937 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
5938 Pedro Alves <pedro@codesourcery.com>
5940 Group errors for many missing shared libraries.
5942 * solist.h (struct so_list): Remove from_tty.
5943 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
5944 (solib_map_sections): Take so_list argument. Return 0 if we
5945 failed to open a BFD. Add target sections here.
5946 (symbol_add_stub): Delete.
5947 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
5948 not from_tty copied from the so_list. Don't warn a second time
5949 for a missing library.
5950 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
5951 add to the section table here. Print out a single warning for all
5953 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
5956 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
5958 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
5959 error/warning messages. Capitalize and use complete sentences.
5960 (blpy_block_syms_iternext): Likewise.
5961 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
5962 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
5963 (frame_info_to_frame_object, frapy_read_var)
5964 (gdbpy_frame_stop_reason_string): Likewise.
5965 * python/py-lazy-string.c (stpy_convert_to_value)
5966 (gdbpy_create_lazy_string_object): Likewise.
5967 * python/py-objfile.c (objfpy_set_printers): Likewise.
5968 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
5969 * python/python.c (parameter_to_python): Likewise.
5970 * python/py-type.c (typy_range, typy_target): Likewise.
5971 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
5972 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
5975 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
5979 * python/py-prettyprint.c (pretty_print_one_value): Test for
5981 (print_string_repr): Test for Py_None. Set flags accordingly.
5982 Return value depending on return type.
5983 (print_children): Take a value indicating whether data was printed
5984 before this function was called. Alter output accordingly.
5985 (apply_val_pretty_printer): Capture return value from
5986 print_string_repr and pass to print_children.
5988 2010-04-13 Mark Kettenis <kettenis@gnu.org>
5991 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
5992 register note sections.
5993 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
5995 (i386_linux_init_abi): Install list of supported register note
5996 sections that matches the target description.
5998 2010-04-13 Pedro Alves <pedro@codesourcery.com>
6000 * remote.c (remote_get_noisy_reply): Don't error out on empty
6002 (remote_start_remote): Update and merge tracepoints and trace
6003 state variables as long as the target supports tracepoints.
6004 (remote_trace_init): Fix prototype.
6005 (remote_download_trace_state_variable): Validate reply.
6006 (remote_trace_set_readonly_regions): Fix prototype.
6007 (remote_trace_start): Fix prototype. Check for empty reply.
6008 (remote_get_trace_status): Small cleanup.
6009 (remote_trace_stop): Fix prototype. Check for empty reply.
6010 (remote_trace_find): Check for empty reply.
6011 (remote_save_trace_data): Validate reply.
6012 (remote_set_disconnected_tracing): Check for empty reply, and
6014 (remote_set_circular_trace_buffer): Ditto.
6016 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
6018 Suppress unused value warning during compilation.
6019 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
6021 * tui/tui-stack.c (tui_show_locator_content): Likewise.
6023 2010-04-12 Stan Shebs <stan@codesourcery.com>
6025 * tracepoint.c (tfile_xfer_partial): Check read result.
6027 2010-04-12 Mike Frysinger <vapier@gentoo.org>
6029 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
6030 * remote-sim.c (gdbsim_files_info): Likewise.
6032 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6034 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
6035 * arm-linux-nat.c (arm_linux_vfp_register_count): New
6037 (fetch_vfp_registers): New function to fetch VFP registers.
6038 (store_vfp_registers): New function to store VFP registers.
6039 (arm_linux_fetch_inferior_registers): Add support for VFP
6041 (arm_linux_store_inferior_registers): Likewise.
6042 (arm_linux_read_description): Likewise.
6043 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
6046 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
6048 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
6050 (amd64_collect_xstateregset): Likewise.
6052 2010-04-09 Stan Shebs <stan@codesourcery.com>
6054 * tracepoint.c (trace_status_mi): Report frames created.
6056 * tracepoint.c (trace_dump_command): Include default-collect
6059 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
6061 * symtab.c (find_function_start_sal): Never return SAL pointing
6062 before function start address, even if line info is missing.
6064 2010-04-09 Pedro Alves <pedro@codesourcery.com>
6066 * NEWS: Mention tracepoints support.
6068 2010-04-09 Pedro Alves <pedro@codesourcery.com>
6070 * tracepoint.c (trace_status_mi): Report disconnected tracing and
6071 circular trace buffer statuses.
6073 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6075 * config/djgpp/fnchange.lst: Fix typo in translations for
6076 symbol-without-target_section.exp and symbol-without-target_section.c.
6078 2010-04-09 Pedro Alves <pedro@codesourcery.com>
6080 * breakpoint.c (condition_command): Pass condition expression to
6081 set_breakpoint_condition stripped from breakpoint number.
6083 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
6084 Thiago Jung Bauermann <bauerman@br.ibm.com>
6085 Tom Tromey <tromey@redhat.com>
6087 * breakpoint.c (condition_command): Simplify. Move condition
6089 (set_breakpoint_condition): ... here. New function.
6090 * breakpoint.h (set_breakpoint_condition): Declare.
6091 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
6092 (SUBDIR_PYTHON_SRCS): Likewise.
6093 (py-breakpoint.o): New rule.
6094 * python/py-breakpoint.c: New file.
6095 * python/python-internal.h (gdbpy_breakpoints)
6096 (gdbpy_initialize_breakpoints): Declare.
6097 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
6099 2010-04-09 Pedro Alves <pedro@codesourcery.com>
6101 * regformats/regdat.sh: Include server.h. Don't include
6104 2010-04-08 Stan Shebs <stan@codesourcery.com>
6105 Pedro Alves <pedro@codesourcery.com>
6107 * tracepoint.h (struct trace_status): New fields disconnected_tracing
6108 and circular_buffer.
6109 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
6110 * tracepoint.c (trace_status_command): Display target's status for
6111 disconnected tracing and circular buffer.
6112 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
6113 query for non-disconnected-tracing case, remove the stop_tracing
6115 (tfile_open): Clear disconnected and circular buffer status.
6116 (trace_save): Save disconnected and circular buffer status.
6117 (parse_trace_status): Parse disconnected and circular buffer status,
6118 also recognize disconnected as a stop reason.
6119 * remote.c (remote_set_disconnected_tracing): Only set
6120 QTDisconnected if the remote end supports disconnected tracing.
6121 Warn otherwise, if trying to enable disconnected tracing.
6122 * infcmd.c (detach_command): Update disconnect_tracing call.
6123 * cli/cli-cmds.c (quit_command): Ditto.
6125 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6127 * i387-tdep.c (i387_collect_xsave): Replace abort with
6130 2010-04-08 Stan Shebs <stan@codesourcery.com>
6132 * breakpoint.c (default_collect_info): New function.
6133 (breakpoints_info): Call it.
6134 (maintenance_info_breakpoints): Ditto.
6135 (tracepoints_info): Ditto.
6137 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6139 * i387-tdep.c (i387_collect_xsave): Re-indent.
6141 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6143 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
6144 if HAVE_PTRACE_GETFPXREGS is defined.
6145 (i386_linux_read_description): Set have_ptrace_getfpxregs and
6146 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
6148 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
6149 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
6150 if .reg-xfp section doesn't exist.
6151 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
6153 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
6155 * i386-tdep.c: Include "features/i386/i386-mmx.c".
6156 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
6157 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
6158 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
6159 (i386_gdbarch_init): Update comments.
6160 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
6162 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
6164 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
6166 * features/Makefile (i386/i386-mmx-expedite): New.
6167 (i386/i386-mmx-linux-expedite): Likewise.
6168 ($(outdir)/i386/i386-mmx.dat): Likewise.
6169 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
6171 * features/i386/i386-mmx-linux.c: New.
6172 * features/i386/i386-mmx-linux.xml: Likewise.
6173 * features/i386/i386-mmx.c: Likewise.
6174 * features/i386/i386-mmx.xml: Likewise.
6175 * regformats/i386/i386-mmx-linux.dat: Likewise.
6176 * regformats/i386/i386-mmx.dat: Likewise.
6178 * features/Makefile (WHICH): Add i386/i386-mmx and
6179 i386/i386-mmx-linux.
6181 2010-04-08 Doug Evans <dje@google.com>
6183 * source.c (openp): Skip $cdir in PATH.
6185 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
6188 * python/py-lazy-string.c (stpy_convert_to_value): Check for
6190 (gdbpy_create_lazy_string_object): Allow strings with a NULL
6191 address and a zero length.
6193 2010-04-08 Hui Zhu <teawater@gmail.com>
6195 * i386-tdep.c (i386_process_record): Add support for insn
6198 2010-04-07 Doug Evans <dje@google.com>
6200 * python/python.c (source_python_script): Use ensure_python_env
6201 to prepare environment for script.
6203 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6205 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
6206 <sys/uio.h> and "i386-xstate.h".
6207 (PTRACE_GETREGSET): New.
6208 (PTRACE_SETREGSET): Likewise.
6209 (have_ptrace_getregset): Likewise.
6210 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
6212 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
6214 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
6215 (amd64_linux_store_inferior_registers): Likewise.
6216 (amd64_linux_read_description): Check and enable AVX target
6219 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
6220 and "features/i386/amd64-avx-linux.c".
6221 (amd64_linux_regset_sections): New.
6222 (amd64_linux_core_read_description): Check and enable AVX
6224 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
6225 set_gdbarch_core_regset_sections.
6226 (_initialize_amd64_linux_tdep): Call
6227 initialize_tdesc_amd64_avx_linux.
6229 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
6230 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
6231 (tdesc_amd64_avx_linux): New.
6232 (amd64_linux_update_xstateregset): Likewise.
6234 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
6235 (amd64_ymm_names): New.
6236 (amd64_ymmh_names): Likewise.
6237 (amd64_register_name): Likewise.
6238 (amd64_supply_xstateregset): Likewise.
6239 (amd64_collect_xstateregset): Likewise.
6240 (amd64_supply_xsave): Likewise.
6241 (amd64_collect_xsave): Likewise.
6242 (AMD64_NUM_REGS): Removed.
6243 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
6244 %xmmN if AVX is available.
6245 (amd64_pseudo_register_name): Support pseudo YMM registers.
6246 (amd64_regset_from_core_section): Support .reg-xstate section.
6247 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
6248 and ymm0h_regnum. Call set_gdbarch_register_name.
6249 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
6251 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
6252 AMD64_YMM15H_REGNUM.
6253 (AMD64_NUM_REGS): New.
6254 (amd64_supply_xsave): Likewise.
6255 (amd64_collect_xsave): Likewise.
6256 (amd64_register_name): Removed.
6257 (amd64_register_type): Likewise.
6259 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6261 * i387-tdep.c: Include "i386-xstate.h".
6262 (XSAVE_XSTATE_BV_ADDR): New.
6263 (xsave_avxh_offset): Likewise.
6264 (XSAVE_AVXH_ADDR): Likewise.
6265 (i387_supply_xsave): Likewise.
6266 (i387_collect_xsave): Likewise.
6268 * i387-tdep.h (I387_NUM_YMM_REGS): New.
6269 (I387_YMM0H_REGNUM): Likewise.
6270 (I387_YMMENDH_REGNUM): Likewise.
6271 (i387_supply_xsave): Likewise.
6272 (i387_collect_xsave): Likewise.
6274 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6276 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
6277 <sys/uio.h> and "i386-xstate.h".
6278 (PTRACE_GETREGSET): New.
6279 (PTRACE_SETREGSET): Likewise.
6280 (fetch_xstateregs): Likewise.
6281 (store_xstateregs): Likewise.
6282 (GETXSTATEREGS_SUPPLIES): Likewise.
6283 (regmap): Include 8 upper YMM registers.
6284 (i386_linux_fetch_inferior_registers): Support XSAVE extended
6286 (i386_linux_store_inferior_registers): Likewise.
6287 (i386_linux_read_description): Check and enable AVX target
6290 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
6291 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
6292 (i386_linux_regset_sections): Add ".reg-xstate".
6293 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
6294 (i386_linux_core_read_xcr0): New.
6295 (i386_linux_core_read_description): Check and enable AVX target
6297 (i386_linux_init_abi): Set xsave_xcr0_offset.
6298 (_initialize_i386_linux_tdep): Call
6299 initialize_tdesc_i386_avx_linux.
6301 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
6302 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
6303 (i386_linux_core_read_xcr0): New.
6304 (tdesc_i386_avx_linux): Likewise.
6305 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
6307 * i386-tdep.c: Include "i386-xstate.h" and
6308 "features/i386/i386-avx.c".
6309 (i386_ymm_names): New.
6310 (i386_ymmh_names): Likewise.
6311 (i386_ymmh_regnum_p): Likewise.
6312 (i386_ymm_regnum_p): Likewise.
6313 (i386_xmm_regnum_p): Likewise.
6314 (i386_register_name): Likewise.
6315 (i386_ymm_type): Likewise.
6316 (i386_supply_xstateregset): Likewise.
6317 (i386_collect_xstateregset): Likewise.
6318 (i386_sse_regnum_p): Removed.
6319 (i386_pseudo_register_name): Support pseudo YMM registers.
6320 (i386_pseudo_register_type): Likewise.
6321 (i386_pseudo_register_read): Likewise.
6322 (i386_pseudo_register_write): Likewise.
6323 (i386_dbx_reg_to_regnum): Return %ymmN register number for
6324 %xmmN if AVX is available.
6325 (i386_regset_from_core_section): Support .reg-xstate section.
6326 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
6327 (i386_process_record): Replace i386_sse_regnum_p with
6329 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
6330 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
6331 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
6332 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
6333 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
6334 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
6336 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
6338 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
6339 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
6341 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
6342 (I386_AVX_NUM_REGS): New.
6343 (i386_xmm_regnum_p): Likewise.
6344 (i386_ymm_regnum_p): Likewise.
6345 (i386_ymmh_regnum_p): Likewise.
6347 * common/i386-xstate.h: New.
6349 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6351 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
6353 * features/Makefile (WHICH): Add i386/i386-avx,
6354 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
6355 (i386/i386-avx-expedite): New.
6356 (i386/i386-avx-linux-expedite): Likewise.
6357 (i386/x86-64-avx-expedite):Likewise.
6358 (i386/x86-64-avx-linux-expedite): Likewise.
6359 ($(outdir)/i386/i386-avx.dat): New dependency.
6360 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
6361 ($(outdir)/i386/x86-avx-64.dat): Likewise.
6362 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
6364 * features/i386/32bit-avx.xml: New.
6365 * features/i386/64bit-avx.xml: Likewise.
6366 * features/i386/i386-avx-linux.c: Likewise.
6367 * features/i386/i386-avx-linux.xml: Likewise.
6368 * features/i386/i386-avx.c: Likewise.
6369 * features/i386/i386-avx.xml: Likewise.
6370 * features/i386/x86-64-avx-linux.c: Likewise.
6371 * features/i386/x86-64-avx-linux.xml: Likewise.
6372 * features/i386/x86-64-avx.c: Likewise.
6373 * features/i386/x86-64-avx.xml: Likewise.
6374 * regformats/i386/i386-avx-linux.dat: Likewise.
6375 * regformats/i386/i386-avx.dat: Likewise.
6376 * regformats/i386/x86-64-avx-linux.dat: Likewise.
6377 * regformats/i386/x86-64-avx.dat: Likewise.
6379 2010-04-07 Doug Evans <dje@google.com>
6381 * top.c (source_file_name): Make const char *.
6382 * top.h (source_file_name): Update.
6383 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
6385 (script_from_file): Change `file' arg to const char *.
6386 * cli/cli-script.h (script_from_file): Update.
6388 2010-04-06 Doug Evans <dje@google.com>
6390 * cli/cli-cmds.c (source_command): Run cleanups.
6392 2010-04-06 Stan Shebs <stan@codesourcery.com>
6394 * defs.h (char_ptr): Move typedef here from...
6395 * ada-lang.c (char_ptr): Remove.
6396 * charset.c (char_ptr): Remove.
6397 * tracepoint.h (struct uploaded_string): Remove.
6398 (struct uploaded_tp): Use vectors for string arrays.
6399 * tracepoint.c (trace_save): Use vectors of actions.
6400 (parse_tracepoint_definition): Ditto.
6401 (get_uploaded_tp): Clear vectors.
6402 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
6403 (next_cmd): Change to an int.
6404 (read_next_cmd): Use vector of command strings.
6406 2010-04-06 Doug Evans <dje@google.com>
6408 * top.h (source_script, cd_command): Delete.
6409 * main.c: #include "cli/cli-cmds.h"
6411 2010-04-06 Kevin Buettner <kevinb@redhat.com>
6413 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
6414 type in bytes, not bits.
6416 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
6418 * stabsread.c (define_symbol): Add support for char
6419 and string constants.
6421 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
6423 Remove remaining "%ll" uses.
6424 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
6426 * rs6000-nat.c (rs6000_ptrace64): Idem.
6427 * solib-pa64.c (pa64_current_sos): Idem.
6428 * solib-spu.c (spu_current_sos): Idem.
6429 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
6431 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
6433 * sh64-tdep.c (sh64_show_media_regs): Idem.
6435 2010-04-05 Stan Shebs <stan@codesourcery.com>
6437 * tracepoint.c: Include gdbcore.h.
6438 (tfile_xfer_partial): Return partial results, also try reading
6440 (tfile_has_all_memory): New function.
6441 (init_tfile_ops): Use it.
6443 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
6446 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
6447 the changes in data-directory.
6448 (init_sysinfo): Reload the syscall XML file if the data-directory
6451 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6454 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
6456 2010-04-04 Stan Shebs <stan@codesourcery.com>
6457 Nathan Sidwell <nathan@codesourcery.com>
6459 * breakpoint.c (breakpoint_1): Add filter argument, return number of
6460 breakpoints printed.
6461 (is_hardware_watchpoint): Make argument const.
6462 (is_watchpoint): Ditto.
6463 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
6465 (breakpoints_info): Pass NULL to breakpoint_1.
6466 (maintenance_info_breakpoints): Ditto.
6467 (watchpoints_info): New function.
6468 (tracepoints_info): Use breakpoint_1 filter.
6469 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
6470 (_initialize_breakpoint): Make "info watchpoints" its own command.
6471 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
6472 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
6474 2010-04-04 Stan Shebs <stan@codesourcery.com>
6476 * tracepoint.c (tfile_fetch_registers): Add fallback case.
6478 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6480 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
6481 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
6483 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6485 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
6486 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
6488 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6490 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
6493 2010-04-02 Hui Zhu <teawater@gmail.com>
6495 * i386-tdep.c (OT_DQUAD): New enum.
6496 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
6497 SSE3, SSSE3 and SSE4.
6499 2010-04-02 Hui Zhu <teawater@gmail.com>
6501 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
6504 2010-04-02 Pedro Alves <pedro@codesourcery.com>
6506 * tracepoint.c (trace_dump_actions): New, factored out from
6507 trace_dump_command, and adjusted to recurse into while-stepping's
6509 (trace_dump_command): Use it.
6511 2010-04-02 Pedro Alves <pedro@codesourcery.com>
6513 * breakpoint.h (struct counted_command_line): Moved definition to
6514 breakpoint.c, and forward declare.
6515 (breakpoint_commands): Declare.
6516 * breakpoint.c (struct counted_command_line): Moved here.
6517 (breakpoint_commands): New.
6518 * tracepoint.c (encode_actions): Use breakpoint_commands.
6519 * remote.c (remote_download_tracepoint): Ditto.
6521 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
6523 * remote.c (remote_parse_stop_reply): Use hex_string instead
6524 of phex_nz for error.
6526 2010-04-01 Stan Shebs <stan@codesourcery.com>
6527 Nathan Sidwell <nathan@codesourcery.com>
6529 * tracepoint.h (enum actionline_type): Remove.
6530 (validate_actionline): Change return to void.
6531 * tracepoint.c (report_agent_reqs_errors): New function.
6532 (validate_actionline): Call it, change return to void, report errors
6534 (collect_symbol): Call report_agent_reqs_errors.
6535 (encode_actions_1): Ditto.
6536 (encode_actions): Don't expect a result from validate_actionline.
6538 2010-04-01 Stan Shebs <stan@codesourcery.com>
6540 * tracepoint.c (trace_start_command): Confirm if trace is running.
6541 (trace_stop_command): Error if trace not running.
6543 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
6545 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
6546 (AMD64_NUM_LOWER_BYTE_REGS): New.
6547 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
6548 (amd64_pseudo_register_write): Likewise.
6549 (amd64_init_abi): Set num_byte_regs to 20.
6551 2010-04-01 Pedro Alves <pedro@codesourcery.com>
6553 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
6554 (prev_breakpoint_count): New.
6555 (set_breakpoint_count): Adjust.
6556 (rbreak_start_breakpoint_count): New.
6557 (start_rbreak_breakpoints): Adjust.
6558 (end_rbreak_breakpoints): Adjust.
6559 (struct commands_info) <arg>: New field.
6560 (do_map_commands_command): Tweak output to include breakpoint spec
6562 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
6563 ARG was empty on entry. Set INFO's arg.
6564 (create_breakpoint): Adjust.
6566 * NEWS: Clarify `commands' changes.
6568 2010-04-01 Pedro Alves <pedro@codesourcery.com>
6570 * tracepoint.c: Include stack.h.
6571 (struct add_local_symbols_data): New.
6572 (do_collect_symbol): New.
6573 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
6574 iterate_over_block_local_vars.
6575 * stack.c (print_block_frame_locals): Rewrite as ...
6576 (iterate_over_block_locals): ... this. Take a callback function
6577 pointer and generic data pointer, and call that instead of
6578 print_variable_and_value.
6579 (struct print_variable_and_value_data): New.
6580 (do_print_variable_and_value): New.
6581 (iterate_over_block_local_vars): New, abstracted out from
6582 print_frame_local_vars.
6583 (print_frame_local_vars): Rewrite using
6584 iterate_over_block_local_vars.
6585 (iterate_over_block_arg_vars): New, abstracted out from
6586 print_frame_arg_vars.
6587 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
6588 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
6589 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
6591 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
6593 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
6594 instructions. Use the PC+4 if the base of the TBB or TBH is the
6597 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6599 Fix crash on reading wrong function declaration DWARF.
6600 * dwarf2read.c (read_subroutine_type): New variable void_type.
6601 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
6602 more close to their use.
6604 2010-03-31 Stan Shebs <stan@codesourcery.com>
6606 * breakpoint.c (tracepoint_save_command): Include variables,
6607 conditionals, tracepoint types, and default-collect.
6608 * tracepoint.c (save_trace_state_variables): New function.
6609 * tracepoint.h (save_trace_state_variables): Declare it.
6611 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
6613 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
6615 2010-03-30 Keith Seitz <keiths@redhat.com>
6617 * c-typeprint.c (c_type_print_args): Don't print "void"
6618 for java, regardless of whether it is TYPE_PROTOTYPED.
6619 Use the passed-in language instead of current_language.
6620 (c_type_print_varspec_suffix): Use current_language instead
6621 of assuming language_c.
6622 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
6623 any return type specifier from the physname.
6625 2010-03-30 Pedro Alves <pedro@codesourcery.com>
6627 * tui/tui-interp.c (tui_is_toplevel): New.
6629 (tui_allowed_p): New.
6630 * tui/tui.c (tui_enable): Check if the TUI is allowed before
6632 * tui/tui.h (tui_allowed_p): Declare.
6634 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
6636 * serial.h: Include winsock2.h before windows.h.
6638 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
6640 * NEWS: Mention xmlRegisters= in qSupported packet.
6642 * i386-tdep.c: Include "remote.h".
6643 (_initialize_i386_tdep): Call register_remote_support_xml.
6645 * remote.c (remote_support_xml): New.
6646 (register_remote_support_xml): Likewise.
6647 (remote_query_supported_append): Likewise.
6648 (remote_query_supported): Support remote_support_xml.
6650 * remote.h (register_remote_support_xml): New.
6652 2010-03-29 Stan Shebs <stan@codesourcery.com>
6654 * tracepoint.c (trace_find_line_command): Remove dead code.
6656 * tracepoint.h (struct uploaded_string): New struct.
6657 (struct uploaded_tp): New fields for source strings.
6658 * breakpoint.c (this_utp, next_cmd): New globals.
6659 (read_uploaded_action): New function.
6660 (create_tracepoint_from_upload): Fill in more parts
6662 * tracepoint.c (encode_source_string): New function.
6663 (trace_save): Write out source strings, fix error checks.
6664 (parse_tracepoint_definition): Add source string parsing.
6665 * remote.c (PACKET_TracepointSource): New packet type.
6666 (remote_download_command_source): New function.
6667 (remote_download_tracepoint): Download source pieces also.
6668 (_initialize_remote): Add packet config command.
6670 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
6673 * tracepoint.c (start_tracing): Check tracepoints before sending
6674 commands to target, don't start if all tracepoints disabled.
6676 2010-03-28 Pedro Alves <pedro@codesourcery.com>
6678 * cli/cli-script.c (process_next_line): Handle 'stepping'.
6680 2010-03-26 Stan Shebs <stan@codesourcery.com>
6682 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
6684 2010-03-26 Tom Tromey <tromey@redhat.com>
6686 * breakpoint.c (commands_command_1): Duplicate 'arg'.
6688 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6690 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
6691 (skip_prologue_sal): Remove local definition.
6692 (resolve_sal_pc): Remove now unnecessary code.
6693 * linespec.c (minsym_found): Call skip_prologue_sal.
6694 * symtab.c (find_function_start_pc): Remove.
6695 (find_function_start_sal): Extract prologue skipping into ...
6696 (skip_prologue_sal): ... this new function. Handle code both
6697 with and without debug info. Respect SAL's explicit_pc and
6698 explicit_line flags. Inline old find_function_start_pc.
6699 * symtab.h (find_function_start_pc): Remove.
6700 (skip_prologue_sal): Add prototype.
6702 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6704 * dwarf2read.c (read_func_scope): Also scan specification DIEs
6705 for DW_TAG_imported_module children.
6707 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6709 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
6710 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
6711 * completer.c (add_struct_fields): Fix inverted logic.
6713 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6715 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
6717 2010-03-26 Pedro Alves <pedro@codesourcery.com>
6719 * tracepoint.c (current_trace_status): Don't make sure error_desc
6721 (parse_trace_status): Release a previous error_desc string, and
6722 set it to NULL by default. If stop reason is tracepoint_error,
6723 make sure error_desc is not left NULL.
6725 2010-03-26 Pedro Alves <pedro@codesourcery.com>
6727 * tracepoint.c (trace_save): Remove X from tracepoint error
6730 2010-03-26 Pedro Alves <pedro@codesourcery.com>
6732 * tracepoint.c (parse_trace_status): Don't allow plain strings in
6733 the terror description. Don't expect an X prefix.
6735 2010-03-25 Stan Shebs <stan@codesourcery.com>
6737 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
6738 (struct trace_status): New field error_desc.
6739 * tracepoint.c (stop_reason_names): Add terror.
6740 (current_trace_status): Ensure non-NULL error description.
6741 (trace_status_command): Add error report.
6742 (trace_status_mi): Ditto.
6743 (trace_save): Add special case for error description.
6744 (parse_trace_status): Add case for errors.
6746 2010-03-25 Keith Seitz <keiths@redhat.com>
6748 * dwarf2read.c (read_subroutine_type): If the compilation unit
6749 language is Java, mark any formal parameter named "this" as
6750 artificial (GCC/43521).
6751 (dwarf2_name): Add special handling for Java constructors.
6753 2010-03-25 Tom Tromey <tromey@redhat.com>
6755 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
6756 * infrun.c (handle_inferior_event): Change initialization of
6758 (handle_inferior_event): Change assignment to stop_stack_dummy.
6759 (normal_stop): Update use of stop_stack_dummy.
6760 (struct inferior_status) <stop_stack_dummy>: Change type.
6761 * inferior.h (stop_stack_dummy): Update.
6762 * infcmd.c (stop_stack_dummy): Change type.
6763 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
6765 (call_function_by_hand): Call set_std_terminate_breakpoint.
6766 Rewrite std::terminate handling.
6767 * breakpoint.h (enum bptype) <bp_std_terminate,
6768 bp_std_terminate_master>: New.
6769 (enum stop_stack_kind): New.
6770 (struct bpstat_what) <call_dummy>: Change type.
6771 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
6773 * breakpoint.c (create_std_terminate_master_breakpoint): New
6775 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
6776 Call create_std_terminate_master_breakpoint.
6777 (print_it_typical): Handle new breakpoint kinds.
6778 (bpstat_stop_status): Handle bp_std_terminate_master.
6779 (bpstat_what): Correctly set call_dummy field. Handle
6780 bp_std_terminate_master and bp_std_terminate.
6781 (print_one_breakpoint_location): Update.
6782 (allocate_bp_location): Update.
6783 (set_std_terminate_breakpoint): New function.
6784 (delete_std_terminate_breakpoint): Likewise.
6785 (create_thread_event_breakpoint): Update.
6786 (delete_command): Update.
6787 (breakpoint_re_set_one): Update.
6788 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
6790 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6792 * symfile.c (build_section_addr_info_from_bfd): New.
6793 (build_section_addr_info_from_objfile): Base it on
6794 build_section_addr_info_from_bfd.
6795 (addrs_section_compar, addrs_section_sort): New.
6796 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
6797 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
6798 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
6800 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
6802 * elfread.c (find_separate_debug_file_by_buildid):
6803 Remove unused local variable.
6805 2010-03-24 Tom Tromey <tromey@redhat.com>
6807 PR breakpoints/9352:
6808 * NEWS: Mention changes to `commands' and `rbreak'.
6809 * symtab.c (do_end_rbreak_breakpoints): New function.
6810 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
6811 end_rbreak_breakpoints.
6812 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
6813 (set_breakpoint_count): Likewise. Clear last_was_multi.
6814 (multi_start, multi_end, last_was_multi): New globals.
6815 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
6817 (struct commands_info): New
6818 (do_map_commands_command): New function.
6819 (commands_command_1): New function.
6820 (commands_command): Use it.
6821 (commands_from_control_command): Likewise.
6822 (do_delete_breakpoint): New function.
6823 (delete_command): Use it.
6824 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
6825 (do_map_disable_breakpoint): New function.
6826 (disable_command): Use it.
6827 (do_map_enable_breakpoint): New function.
6828 (enable_command): Use it.
6829 (enable_once_breakpoint): Add argument.
6830 (enable_once_command): Update.
6831 (enable_delete_breakpoint): Add argument.
6832 (enable_delete_command): Update.
6833 (break_command_really): Set last_was_multi when needed.
6834 (check_tracepoint_command): Fix formatting.
6835 (validate_commands_for_breakpoint): New function.
6836 (breakpoint_set_commands): Use it.
6837 (tracepoint_save_command): Update.
6838 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
6841 2010-03-24 Tom Tromey <tromey@redhat.com>
6843 * breakpoint.h (struct counted_command_line): New struct.
6844 (struct breakpoint) <commands>: Change type.
6845 (struct bpstats) <commands>: Change type.
6846 <commands_left>: New field.
6847 * breakpoint.c (alloc_counted_command_line): New function.
6848 (incref_counted_command_line): Likewise.
6849 (decref_counted_command_line): Likewise.
6850 (do_cleanup_counted_command_line): Likewise.
6851 (make_cleanup_decref_counted_command_line): Likewise.
6852 (breakpoint_set_commands): Use decref_counted_command_line and
6853 alloc_counted_command_line.
6854 (commands_command): Don't error if breakpoint commands are
6856 (commands_from_control_command): Likewise.
6857 (bpstat_free): Update.
6858 (bpstat_copy): Likewise.
6859 (bpstat_clear_actions): Likewise.
6860 (bpstat_do_actions_1): Likewise.
6861 (bpstat_stop_status): Likewise.
6862 (print_one_breakpoint_location): Likewise.
6863 (delete_breakpoint): Likewise.
6864 (bpstat_alloc): Initialize new field.
6865 (tracepoint_save_command): Update.
6866 * tracepoint.c (encode_actions): Update.
6867 (trace_dump_command): Update.
6869 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
6871 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
6872 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
6873 (read_structure_type): For RealView, set TYPE_STUB on structures with
6874 no byte size and no children.
6875 (read_subroutine_type): Mark functions as prototyped by default.
6876 * symtab.c (producer_is_realview): New function.
6877 * symtab.h (expand_line_sal): Fix declaration formatting.
6878 (producer_is_realview): Declare.
6880 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
6882 * arm-tdep.c (skip_prologue_function): New function.
6883 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
6884 (thumb_analyze_prologue): Document return value. Recognize more
6885 Thumb instructions, skippable calls, and some Thumb-2 instructions.
6887 (arm_skip_prologue): Remove call dummy check. Check the prologue
6888 for non-GNU compilers.
6889 (arm_instruction_changes_pc): New function.
6890 (arm_analyze_prologue): New function, broken out from
6891 arm_scan_prologue. Recognize more ARM instructions and skippable
6892 calls. Update comments. Handle NULL cache. Return the address
6893 of the first unrecognized instruction. Do not skip past other
6894 instructions which change control flow. Add debug output.
6895 (arm_scan_prologue): Use arm_analyze_prologue.
6896 (ARM_PC_32): Delete.
6897 (shifted_reg_val): Simplify ARM_PC_32 check.
6899 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6901 * tracepoint.c (tvariables_info_1): Actually compute
6902 the number of rows in the result.
6904 2010-03-24 Pedro Alves <pedro@codesourcery.com>
6906 * remote.c (crc32): Constify `buf' parameter.
6907 (remote_verify_memory): New, abstracted out from...
6908 (compare_sections_command): ... this. Remove hardcoded target
6910 (init_remote_ops): Install remote_verify_memory.
6911 * target.c (target_verify_memory): New.
6912 * target.h (struct target_ops) <to_verify_memory>: New field.
6913 (target_verify_memory): Declare.
6915 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6917 Implement -trace-save.
6919 * mi-cmds.h (mi_cmds_trace_save): Declare.
6920 * mi-cmds.c (mi_cmds): Register -trace-save.
6921 * mi/mi-main.c (mi_cmd_trace_save): New.
6922 * remote.c (remote_save_trace_data): Take const parameter.
6923 * target.h (struct target_ops::to_save_trace_data): Take
6925 * target.c (update_current_target): Adjust to the above.
6926 * tracepoint.c (trave_save): New, extracted from
6927 (trace_save_command): ...this.
6928 (tfile_trace_find): Remove message that is unnecessary now
6929 that 'tfind' reports found frame.
6930 * tracepoint.h (trace_save): Declare.
6932 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6934 Implement -trace-find.
6936 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
6937 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
6938 * mi/mi-main.c (mi_cmd_trace_find): New.
6939 * target.h (struct target_ops): Document to_trace_find.
6940 * tracepoint.h (tfind_1): Declare.
6941 * tracepoint.c (finish_tfind_command): Rename to...
6943 * remote.c (remote_trace_find): Return -1 if target say
6944 there's no frame. Improve error diagnostics.
6946 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6948 -trace-define-variable and -trace-list-variables.
6950 * tracepoint.c (create_trace_state_variable): Make
6951 private copy of name, as opposed to assuming the
6952 pointer lives forever.
6953 (tvariables_info_1): New.
6954 (tvariables_info): Use the above.
6955 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
6957 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
6958 and -trace-list-variables.
6959 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
6960 (mi_cmd_trace_list_variables): New.
6961 * mi/mi-main.c (mi_cmd_trace_define_variable)
6962 (mi_cmd_trace_list_variables): New.
6964 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6966 Implement -break-passcount.
6968 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
6969 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
6970 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
6972 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6974 -trace-start/-trace-end/-trace-status.
6976 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
6978 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
6979 (mi_cmd_trace_stop): Declare.
6980 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
6981 (mi_cmd_trace_stop): New.
6982 * tracepoint.c (start_tracing): New, extracted from...
6983 (trace_start_command): ...this.
6984 (trace_status_mi): New.
6985 * tracepoint.h (struct trace_status): Document
6986 stopping_tracepoint.
6987 (start_tracing, stop_tracing, trace_status_mi): Declare.
6989 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6991 Implement creating tracepoints with -break-insert.
6993 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
6994 to mean that tracepoint should be created.
6996 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6998 * breakpoint.c (check_no_tracepoint_commands): Use
6999 current spelling of 'teval'.
7001 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7003 Unify actions and commands
7005 * defs.h (read_command_lines, read_command_lines_1): New
7006 parameters validator and closure.
7007 * tracepoint.h (struct action_line): Remove.
7008 * breakpoint.h (struct breakpoint): Remove the 'actions'
7010 * defs.h (enum command_control_type): New value
7011 while_stepping_control.
7012 (struct command_line): Add comments.
7013 * breakpoint.c (breakoint_is_tracepoint): New.
7014 (breakpoint_set_commands): For tracepoints,
7015 verify the commands are permissible.
7016 (check_tracepoint_commands): New.
7017 (commands_command): Require that each new line is validated using
7018 check_tracepoint_command, if we set commands for a tracepoint.
7019 (create_tracepoint_from_upload): Likewise.
7020 (print_one_breakpoint_location): Remove the code to print
7021 actions specifically.
7022 (tracepoint_save_command): Relay to print_command_lines.
7023 * cli/cli-script.c (process_next_line): New parameters validator
7024 and closure. Handle 'while-stepping'. Call validator if not null.
7025 (read_command_lines, read_command_lines1): Likewise.
7026 (recurse_read_control_structure): New parameters validator and
7027 closure. Handle while_stepping_control.
7028 (print_command_lines): Handle while-stepping.
7029 (get_command_line, define_command, document_command): Adjust.
7030 * remote.c (remote_download_tracepoint): Adjust.
7031 * tracepoint.c (make_cleanup_free_actions, read_actions)
7032 (free_actions, do_free_actions_cleanup): Remove.
7033 (trace_actions_command): Use read_command_lines.
7034 (validate_actionline): Use error in one place.
7035 (encode_actions_1): New, extracted from...
7036 (encode_actions): ...this. Also use cleanups for exception
7038 (trace_dump_command): Adjust.
7039 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
7042 2010-03-23 Mike Frysinger <vapier@gentoo.org>
7044 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
7046 2010-03-22 Stan Shebs <stan@codesourcery.com>
7048 * value.c (value_static_field): Be lazy about the field's value.
7050 2010-03-22 Reid Kleckner <reid@kleckner.net>
7053 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
7055 (disable_breakpoints_in_shlibs): Likewise.
7057 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
7059 * dwarf2read.c (partial_die_parent_scope): Work around buggy
7060 GCC 4.1 debug info generation (GCC PR c++/28460).
7061 (determine_prefix): Likewise.
7063 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
7065 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
7067 * tui/tui-layout.c (extract_display_start_addr): Likewise.
7069 2010-03-19 Stan Shebs <stan@codesourcery.com>
7071 * ax-gdb.c (gen_fetch): Handle bool.
7072 (gen_usual_unary): Ditto.
7074 (gen_equal): New function.
7075 (gen_less): New function.
7076 (gen_expr_binop_rest): Call them, also return integer type from
7080 2010-03-19 Tom Tromey <tromey@redhat.com>
7082 * jv-lang.c (jv_dynamics_objfile_data_key)
7083 (jv_type_objfile_data_key): New globals.
7084 (class_symtab): Move earlier.
7085 (jv_per_objfile_free): New function.
7086 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
7088 Remove ancient #if 1.
7089 (add_class_symbol): Remove redundant declaration.
7090 (java_lookup_class): Use alloc_type, not alloc_type_arch.
7091 (java_link_class_type): Mark as static. Update.
7092 (jv_clear_object_type): New function.
7093 (set_java_object_type): Likewise.
7094 (get_java_object_type): Use set_java_object_type.
7095 (is_object_type): Likewise.
7096 (_initialize_java_language): Register new objfile keys.
7097 (get_java_class_symtab): Add 'gdbarch' parameter.
7098 (add_class_symtab_symbol): Update.
7099 (type_from_class): Update.
7101 2010-03-19 Stan Shebs <stan@codesourcery.com>
7103 * ax-general.c (ax_const_l): Fix a sizing bug.
7105 2010-03-18 Joel Brobecker <brobecker@adacore.com>
7109 2010-03-18 Stan Shebs <stan@codesourcery.com>
7110 Pedro Alves <pedro@codesourcery.com>
7112 * target.h (struct target_ops): New method
7113 to_set_circular_trace_buffer.
7114 (target_set_circular_trace_buffer): New macro.
7115 * target.c (update_current_target): Add
7116 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
7118 * remote.c (remote_set_circular_trace_buffer): New function.
7119 (init_remote_ops): Add it to vector.
7120 * tracepoint.h (struct trace_status): New field traceframes_created,
7121 change buffer_size and buffer_free to int.
7122 * tracepoint.c (circular_trace_buffer): New global.
7123 (start_tracing): Send values of disconnected tracing and circular
7124 trace buffer settings.
7125 (set_circular_trace_buffer): New function.
7126 (parse_trace_state): Handle total space and frames created.
7127 (trace_status_command): Display total space and total frames
7129 (trace_save): Write out new status values.
7130 (parse_trace_status): Set traceframe_count, traceframes_created,
7131 buffer_free and buffer_size to -1 by default.
7132 (_initialize_tracepoint): New setshow for circular-trace-buffer.
7133 * NEWS: Mention the circular trace buffer option.
7135 2010-03-18 Tom Tromey <tromey@redhat.com>
7137 * infcmd.c (finish_command_continuation): Wrap print_return_value
7140 2010-03-18 Joel Brobecker <brobecker@adacore.com>
7142 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
7143 DIE has a name before creating the associated partial symbol.
7144 (read_func_scope): Emit a complaint if the subprogram does not
7145 have a name or when we can't extract the subprogram PC bounds.
7147 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
7149 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
7150 instead of selected frame architecture.
7152 2010-03-18 Pedro Alves <pedro@codesourcery.com>
7154 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
7155 a valid selected thread, and that it is not running.
7156 (advance_command): Ditto.
7157 (finish_command): Ditto.
7159 2010-03-17 Stan Shebs <stan@codesourcery.com>
7161 * ax-gdb.c (require_rvalue): Disallow non-scalars.
7163 * infcall.c: Include tracepoint.h.
7164 (call_function_by_hand): Disallow calls in tfind mode.
7165 * infcmd.c: Include tracepoint.h.
7166 (ensure_not_tfind_mode): New function.
7167 (continue_1): Call it.
7169 (jump_command): Ditto.
7170 (signal_command): Ditto.
7171 (advance_command): Ditto.
7172 (until_command): Ditto.
7173 (finish_command): Ditto.
7174 * tracepoint.h (disconnect_or_stop_tracing): Declare.
7176 * ax-gdb.h (struct axs_value): New field optimized_out.
7177 (gen_trace_for_var): Add gdbarch argument.
7178 * ax-gdb.c (gen_trace_static_fields): New function.
7179 (gen_traced_pop): Call it, add gdbarch argument.
7180 (gen_trace_for_expr): Update call to it.
7181 (gen_trace_for_var): Ditto, and report optimized-out variables.
7182 (gen_struct_ref_recursive): Check for optimized-out value.
7183 (gen_struct_elt_for_reference): Ditto.
7184 (gen_static_field): Pass gdbarch instead of expression, assume
7185 optimization if field not found.
7186 (gen_var_ref): Set the optimized_out flag.
7187 (gen_expr): Error on optimized-out variable.
7188 * tracepoint.c (collect_symbol): Handle struct-valued vars as
7189 expressions, skip optimized-out variables with computed locations.
7190 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
7191 erroring out if location expression missing.
7192 (loclist_tracepoint_var_ref): Don't error out here.
7194 2010-03-17 Tom Tromey <tromey@redhat.com>
7196 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
7197 DWARF data is available.
7199 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
7201 * symfile.c (generic_load): Reset breakpoints after loading.
7203 2010-03-17 Tom Tromey <tromey@redhat.com>
7205 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
7207 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7209 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
7210 create_breakpoint call, adjust the parameters.
7212 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7213 Chandru <chandru@in.ibm.com>
7215 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
7216 * valarith.c (value_subscripted_rvalue): Suppress error if
7217 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
7219 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
7221 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
7223 2010-03-16 Joel Brobecker <brobecker@adacore.com>
7225 * ada-tasks.c (task_command_1): Check that the task ptid is valid
7226 before doing the associated thread switch.
7228 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
7230 * MAINTAINERS: Update my email address.
7232 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
7234 Simplify MI breakpoint setting.
7236 * breakpoint.c (break_command_really): Make nonstatic and
7238 (create_breakpoint): ...this. Rename prior function by this name
7240 (create_breakpoint_sal): ...this.
7241 (create_breakpoints): Rename to...
7242 (create_breakpoints_sal): ...this.
7243 (set_breakpoint): Remove.
7244 * breakpoint.h: Adjust to above changes.
7245 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
7247 2010-03-15 Stan Shebs <stan@codesourcery.com>
7249 * ax-gdb.c: Include cp-support.h.
7250 (find_field): Remove.
7251 (gen_primitive_field): New function.
7252 (gen_struct_ref_recursive): New function.
7253 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
7255 (gen_static_field): New function.
7256 (gen_struct_elt_for_reference): New.
7257 (gen_namespace_elt): New.
7258 (gen_maybe_namespace_elt): New.
7259 (gen_aggregate_elt_ref): New.
7260 (gen_expr): Add OP_SCOPE, display opcode name in error message.
7262 2010-03-15 Tom Tromey <tromey@redhat.com>
7264 * dwarf2read.c (die_needs_namespace): Also return 0 for
7267 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
7270 * cp-support.h: Added char *declaration element to using_direct
7272 (cp_add_using): Added char *declaration argument.
7273 (cp_add_using_directive): Ditto.
7274 (cp_lookup_symbol_imports): made extern.
7275 * cp-namespace.c: Updated with the above changes.
7276 * dwarf2read.c (read_import_statement): Ditto.
7277 (read_namespace): Ditto.
7278 (read_import_statement): Support import declarations.
7279 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
7281 Added support for 'declaration_only' search.
7282 (cp_lookup_symbol_namespace): Attempt to search for the name as
7283 is before consideration of imports.
7284 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
7285 search at every block level search.
7286 Now takes language argument.
7287 (lookup_symbol_aux): Updated.
7289 2010-03-15 Tom Tromey <tromey@redhat.com>
7291 * c-exp.y (name_not_typename): Add 'operator' clause.
7293 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
7295 * configure.ac: Exit if ${gdb_target_obs}" is not set.
7296 * configure: Regenerate.
7298 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7300 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
7301 and ".sdynbss". Update the comment.
7303 2010-03-15 Jie Zhang <jie@codesourcery.com>
7305 * MAINTAINERS: Update my email address.
7307 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
7309 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
7311 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
7313 * charset.c [USE_WIN32API]: Include <windows.h>.
7314 (_initialize_charset): Correct type of w32_host_default_charset.
7316 2010-03-14 Pedro Alves <pedro@codesourcery.com>
7318 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
7320 2010-03-12 Tom Tromey <tromey@redhat.com>
7323 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
7324 in a lexical block does not need a namespace.
7325 (new_symbol) <DW_TAG_variable>: Put extern variables on
7326 list_in_scope in all cases.
7328 2010-03-12 Stan Shebs <stan@codesourcery.com>
7330 * ax-gdb.c (gen_expr): Add shift expressions.
7331 (gen_expr_binop_rest): Ditto.
7333 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
7335 * buildsym.c (finish_block): Reset using_directives pointer
7336 after block initialization.
7338 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
7340 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
7341 * i386-tdep.c (i386_word_names): Likewise.
7343 2010-03-12 Pedro Alves <pedro@codesourcery.com>
7345 * target.c (memory_xfer_partial): Don't use the stack cache if
7346 inspecting trace frames.
7347 * tracepoint.c (finish_tfind_command): Invalidate the target
7350 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7352 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
7353 for the PIC displacement, print also the displacement value.
7354 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
7356 2010-03-10 Kevin Buettner <kevinb@redhat.com>
7358 * remote-mips.c (close_ports, mips_initialize_cleanups)
7359 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
7360 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
7361 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
7362 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
7363 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
7364 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
7365 comments describing each of these functions.
7366 (mips_enter_debug, mips_exit_debug, common_open)
7367 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
7368 blank line after the comment describing the function.
7370 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7372 * solib-svr4.c (svr4_exec_displacement): Return now success, new
7373 parameter displacementp. Update comment.
7374 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
7375 element exists. Return if svr4_exec_displacement was not successful.
7378 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7379 Daniel Jacobowitz <dan@codesourcery.com>
7381 * solib-svr4.c (read_program_header): Support type == -1 to read
7382 all program headers.
7383 (read_program_headers_from_bfd): New function.
7384 (svr4_static_exec_displacement): Remove and move the comment ...
7385 (svr4_exec_displacement): ... here. Remove variable found. New
7386 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
7387 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
7388 targets using read_program_headers_from_bfd. Remove the call of
7389 svr4_static_exec_displacement.
7391 2010-03-10 Tom Tromey <tromey@redhat.com>
7393 * dwarf2read.c (struct pubnames_header): Remove.
7394 (_PUBNAMES_HEADER): Remove.
7395 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
7396 (struct aranges_header): Remove.
7397 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
7398 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
7399 (PUBNAMES_SECTION): Remove.
7400 (ARANGES_SECTION): Remove.
7401 (dwarf2_locate_sections): Don't handle pubnames or aranges.
7402 (dwarf2_build_psymtabs): Remove dead code.
7403 (dwarf2_build_psymtabs_easy): Remove.
7405 2010-03-10 Tom Tromey <tromey@redhat.com>
7407 * elfread.c (elf_symfile_read): Don't call
7408 dwarf2_build_frame_info.
7409 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
7410 (struct dwarf2_per_objfile) <objfile>: New field.
7411 (dwarf2_has_info): Now idempotent. Set objfile field.
7412 (dwarf2_read_section): Check and set readin field. Call
7414 (dwarf2_build_psymtabs): Don't read all sections.
7415 (read_type_comp_unit_head): Read types section.
7416 (create_debug_types_hash_table): Likewise.
7417 (init_cu_die_reader): Add asserts.
7418 (process_type_comp_unit): Add assert.
7419 (dwarf2_build_psymtabs_hard): Read info section.
7420 (load_partial_comp_unit): Add assert.
7421 (create_all_comp_units): Read info section.
7422 (load_full_comp_unit): Likewise.
7423 (dwarf2_ranges_read): Read ranges section.
7424 (dwarf2_record_block_ranges): Add assert.
7425 (dwarf2_read_abbrevs): Read abbrev section.
7426 (read_indirect_string): Read str section.
7427 (dwarf_decode_line_header): Read line section.
7428 (read_signatured_type_at_offset): Read types section.
7429 (dwarf_decode_macros): Read macinfo section.
7430 (dwarf2_symbol_mark_computed): Read loc section.
7431 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
7432 dwarf2_build_frame_info.
7433 (dwarf2_build_frame_info): Unconditionally set
7434 dwarf2_frame_objfile_data on the objfile.
7435 * configure.ac: Check for posix_madvise.
7436 * config.in, configure: Rebuild.
7438 2010-03-10 Tom Tromey <tromey@redhat.com>
7440 * xcoffread.c (xcoff_start_psymtab): Update.
7441 (xcoff_end_psymtab): Update.
7442 * psymtab.c (allocate_psymtab): Remove dead code.
7443 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
7445 * mdebugread.c (parse_partial_symbols): Update.
7446 (new_psymtab): Likewise.
7447 * dwarf2read.c (process_psymtab_comp_unit): Update.
7448 (psymtab_to_symtab_1): Update.
7449 * dbxread.c (start_psymtab): Update.
7450 (end_psymtab): Likewise.
7452 2010-03-10 Tom Tromey <tromey@redhat.com>
7454 * xcoffread.c: Include psymtab.h.
7455 (xcoff_sym_fns): Update.
7456 * symtab.h (struct partial_symbol): Remove.
7457 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
7458 (struct partial_symtab): Remove.
7459 (PSYMTAB_TO_SYMTAB): Remove.
7460 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
7461 (find_pc_sect_psymtab): Remove.
7462 (find_pc_sect_symtab_via_partial): Declare.
7463 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
7464 (find_main_psymtab): Remove.
7465 (find_main_filename): Declare.
7466 (fixup_psymbol_section): Remove.
7467 (fixup_section): Declare.
7468 * symtab.c: Include psymtab.h.
7469 (lookup_symtab): Use lookup_symtab method.
7470 (lookup_partial_symtab): Remove.
7471 (find_pc_sect_psymtab_closer): Remove.
7472 (find_pc_sect_psymtab): Remove.
7473 (find_pc_sect_symtab_via_partial): New function.
7474 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
7475 (fixup_section): No longer static.
7476 (fixup_psymbol_section): Remove.
7477 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
7478 (lookup_global_symbol_from_objfile): Likewise.
7479 (lookup_symbol_aux_psymtabs): Remove.
7480 (lookup_symbol_aux_quick): New function.
7481 (lookup_symbol_global): Use lookup_symbol_aux_quick.
7482 (lookup_partial_symbol): Remove.
7483 (basic_lookup_transparent_type_quick): New function.
7484 (basic_lookup_transparent_type): Use it.
7485 (find_main_psymtab): Remove.
7486 (find_main_filename): New function.
7487 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
7488 (find_line_symtab): Use expand_symtabs_with_filename method.
7489 (output_partial_symbol_filename): New function.
7490 (sources_info): Use map_partial_symbol_filenames.
7491 (struct search_symbols_data): New type.
7492 (search_symbols_file_matches): New function.
7493 (search_symbols_name_matches): Likewise.
7494 (search_symbols): Use expand_symtabs_matching method.
7495 (struct add_name_data): Rename from add_macro_name_data.
7496 (add_macro_name): Update.
7497 (add_partial_symbol_name): New function.
7498 (default_make_symbol_completion_list): Use
7499 map_partial_symbol_names.
7500 (struct add_partial_symbol_name): New type.
7501 (maybe_add_partial_symtab_filename): New function.
7502 (make_source_files_completion_list): Use
7503 map_partial_symbol_filenames.
7504 (expand_line_sal): Use expand_symtabs_with_filename method.
7505 * symmisc.c: Include psymtab.h.
7506 (print_objfile_statistics): Use print_stats method.
7507 (dump_objfile): Use dump method.
7508 (dump_psymtab, maintenance_print_psymbols)
7509 (maintenance_info_psymtabs, maintenance_check_symtabs)
7510 (extend_psymbol_list): Remove.
7511 * symfile.h (struct quick_symbol_functions): New struct.
7512 (struct sym_fns) <qf>: New field.
7513 (sort_pst_symbols): Remove.
7514 (increment_reading_symtab): Declare.
7515 * symfile.c: Include psymtab.h.
7516 (compare_psymbols, sort_pst_symbols): Remove.
7517 (psymtab_to_symtab): Remove.
7518 (increment_reading_symtab): New function.
7519 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
7521 (set_initial_language): Use find_main_filename.
7522 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
7523 (free_named_symtabs): Remove unused code.
7524 (start_psymtab_common, add_psymbol_to_bcache)
7525 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
7527 * stack.c: Include psymtab.h, symfile.h.
7528 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
7529 * source.h (psymtab_to_fullname): Don't declare.
7530 * source.c: Include psymtab.h.
7531 (select_source_symtab): Use find_last_source_symtab method.
7532 (forget_cached_source_info): Use forget_cached_source_info
7534 (find_and_open_source): No longer static.
7535 (psymtab_to_fullname): Remove.
7536 * somread.c: Include psymtab.h.
7537 (som_sym_fns): Update.
7538 * psympriv.h: New file.
7539 * psymtab.h: New file.
7540 * psymtab.c: New file.
7541 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
7542 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
7543 * objfiles.c: Include psymtab.h.
7544 (objfile_relocate1): Use relocate method.
7545 (objfile_has_partial_symbols): Use has_symbols method.
7546 * mipsread.c: Include psymtab.h.
7547 (ecoff_sym_fns): Update.
7548 * mi/mi-cmd-file.c: Include psymtab.h.
7549 (print_partial_file_name): New function.
7550 (mi_cmd_file_list_exec_source_files): Use
7551 map_partial_symbol_filenames.
7552 * mdebugread.c: Include psympriv.h.
7553 * machoread.c: Include psympriv.h.
7554 (macho_sym_fns): Update.
7555 * m2-exp.y (yylex): Use lookup_symtab.
7556 * elfread.c: Include psympriv.h.
7557 (elf_sym_fns): Update.
7558 * dwarf2read.c: Include psympriv.h.
7559 * dbxread.c: Include psympriv.h.
7560 (aout_sym_fns): Update.
7561 * cp-support.c: Include psymtab.h.
7562 (read_in_psymtabs): Remove.
7563 (make_symbol_overload_list_qualified): Use
7564 expand_symtabs_for_function method.
7565 * coffread.c: Include psympriv.h.
7566 (coff_sym_fns): Update.
7567 * blockframe.c: Include psymtab.h.
7568 (find_pc_partial_function): Use find_pc_sect_symtab method.
7569 * ada-lang.h (ada_update_initial_language): Update.
7570 * ada-lang.c: Include psymtab.h.
7571 (ada_update_initial_language): Remove 'main_pst' argument.
7572 (ada_lookup_partial_symbol): Remove.
7573 (struct ada_psym_data): New type.
7574 (ada_add_psyms): New function.
7575 (ada_add_non_local_symbols): Use map_ada_symtabs method.
7576 (struct add_partial_datum): New type.
7577 (ada_add_partial_symbol_completions): New function.
7578 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
7579 (ada_exception_support_info_sniffer): Update.
7580 * Makefile.in (SFILES): Add psymtab.c.
7581 (COMMON_OBS): Add psymtab.o.
7582 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
7584 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
7586 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
7588 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
7591 * cp-namespace.c (cp_add_using): Deleted.
7592 (cp_add_using_directive): Use obstack allocations.
7593 Merged the function cp_add_using into this one.
7594 Added 'struct obstack *' argument.
7595 (cp_scan_for_anonymous_namespaces): Updated.
7596 * cp-support.h: Updated.
7597 * dwarf2read.c (read_import_statement): Updated.
7598 (read_namespace): Updated.
7600 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
7602 * windows-nat.c (cygwin_conv_path): Remove old macro.
7604 2010-03-10 Pedro Alves <pedro@codesourcery.com>
7606 * breakpoint.c (condition_command): Handle watchpoint conditions.
7607 (is_hardware_watchpoint): Add comment.
7608 (is_watchpoint): New.
7609 (update_watchpoint): Don't reparse the watchpoint's condition
7612 (watchpoint_check): Use it.
7613 (bpstat_check_watchpoint): Handle it.
7614 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
7615 conditions in a frame where it makes sense.
7616 (watch_command_1): Store the innermost block of the condition
7618 (delete_breakpoint): Delete the watchpoint condition expression.
7619 * breakpoint.h (struct bp_location) <cond>: Update comment.
7620 (struct breakpoint): New field `cond_exp_valid_block'.
7622 2010-03-09 Joel Brobecker <brobecker@adacore.com>
7624 Adjust handling of Ada DIEs after dwarf2_physname patch.
7625 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
7627 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
7628 Pierre Muller <muller@ics.u-strasbg.fr>
7630 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
7631 from/to posix/win32.
7632 (windows_make_so): Use non-Cygwin 1.7 specific function.
7633 (windows_create_inferior): Make sure that cygallargs points to
7634 original args in non Cygwin 1.7. case.
7636 2010-03-09 Michael Snyder <msnyder@vmware.com>
7638 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
7639 after target_read_memory to get host byte order.
7640 (i386_process_record): Ditto.
7642 2010-03-09 Keith Seitz <keiths@redhat.com>
7644 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
7645 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
7646 print out const or volatile qualifiers, too.
7647 (c_type_print_args): Add parameters show_artificial and language.
7648 Skip artificial parameters when requested.
7649 Use the appropriate language printer.
7650 (c_type_print_varspec): Tell c_type_print_args to skip artificial
7651 parameters and pass language_c.
7652 * dwarf2read.c (die_list): New file global.
7653 (struct partial_die_info): Update comments for name field.
7654 (pdi_needs_namespace): Renamed to ...
7655 (die_needs_namespace): ... this. Rewrite.
7656 (dwarf2_linkage_name): Remove.
7657 (add_partial_symbol): Do not predicate the call to
7658 partial_die_full_name based on pdi_needs_namespace.
7659 Remove call to cp_check_possible_namespace_symbols and associated
7661 (guess_structure_name): Do not inspect child subprogram DIEs.
7662 (dwarf2_fullname): Update comments.
7663 Use die_needs_namespace to assist in computing the name.
7664 (read_func_scope): Use dwarf2_name to get the DIE's name.
7665 Use dwarf2_physname to get the "linkage name" of the DIE.
7666 (dwarf2_add_member_field): Use dwarf2_physname instead of
7667 dwarf2_linkage_name.
7668 (read_structure_type): For structs and classes, set TYPE_NAME, too.
7669 (determine_class): Remove.
7670 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
7672 (new_symbol): Unconditionally call dwarf2_name.
7673 Compute the "linkage name" using dwarf2_physname.
7674 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
7675 When determining to scan for anonymous C++ namespaces, ignore
7677 (dwarf2_physname): New function.
7678 (dwarf2_full_name): Move content to new function and call
7680 (dwarf2_compute_name): "New" function.
7681 (_initialize_dwarf2_read): Initialize die_list.
7682 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
7684 (gnu_v3_print_method_ptr): Use the physname for virtual methods
7685 without a demangled name.
7686 Print out type information for non-virtual methods.
7687 * linespec.c (decode_line_1): Force ANY string using "::" (or
7688 "." for java) to use decode_compound, and clean up any stray quoting.
7689 If we found a file symtab, re-evaluate whether the remainder is_quoted.
7690 (decode_compound): Stop consuming at an open parenthesis.
7691 Keep template parameters.
7692 Keep any overload information.
7693 Keep keywords like "const".
7694 Remove paren_pointer.
7695 Move is_quoted check from set_flags to here.
7696 Remove #if 0 code from 2000. Ten years is long enough.
7697 (find_method): Before comparing symbol names, canonicalize the string
7699 If a specific overload is requested, find it. Otherwise throw an error.
7700 (find_method_overload_end): New function.
7701 (set_flags): Remove.
7702 (decode_compound): Assume that parentheses are matched.
7704 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
7706 * linespec.c (decode_line_1): Keep important keywords like
7707 "const" and "volatile".
7708 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
7709 * typeprint.h (c_type_print_args): Add declaration.
7710 * ui-file.c (do_ui_file_obsavestring): New function.
7711 (ui_file_obsavestring): New function.
7712 * ui-file.h (ui_file_obsavestring): Add declaration.
7713 * valops.c (find_overload_match): Resolve the object to
7715 If the object is a data member, search the object for the member
7716 and return with staticp set.
7717 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
7718 Do not attempt to extract a function name from non-function types.
7719 If the extracted function name and the original name are the same,
7720 we don't have a C++ method.
7722 From Jan Kratochvil <jan.kratochvil@redhat.com>:
7723 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
7725 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
7726 and arguments from symbol lookups.
7727 * ax-gdb.c (gen_expr): Likewise.
7728 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
7729 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
7730 lookup_possible_namespace_symbol): Likewise.
7731 * cp-support.c (read_in_psymtabs): Likewise.
7732 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
7733 * language.h (la_lookup_symbol_nonlocal): Likewise.
7734 * scm-valprint.c (scm_inferior_print): Likewise.
7735 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
7736 * solib-svr.c (elf_lookup_lib): Likewise.
7737 * solib.c (show_auto_solib_add): Likewise.
7738 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
7739 * symmisc.c (maintenance_check_symtabs): Likewise.
7740 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
7741 lookup_symbol_aux_local, lookup_symbol_aux_block,
7742 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
7743 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
7744 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
7745 basic_lookup_transparent_type, find_main_psymtab,
7746 lookup_block_symbol): Likewise.
7747 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
7748 lookup_symbol_global, lookup_symbol_aux_block,
7749 lookup_symbol_partial_symbol, lookup_block_symbol,
7750 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
7752 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
7754 * python/python-internal.h: Include symtab.h.
7756 2010-03-09 Joel Brobecker <brobecker@adacore.com>
7757 Pierre Muller <muller@ics.u-strasbg.fr>
7759 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
7760 * p-valprint.c (pascal_val_print): Remove undeed block and fix
7763 2010-03-08 Tom Tromey <tromey@redhat.com>
7765 * breakpoint.c (breakpoint_1): Add "QUIT".
7767 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
7768 Pedro Alves <pedro@codesourcery.com>
7770 * solib.c (solib_find): Replace extension if
7771 solib_symbols_extension is set in the target gdbarch.
7772 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
7773 solib_symbols_extension to "sym".
7774 * gdbarch.sh (solib_symbols_extension): New variable.
7775 (pstring): New function.
7776 * gdbarch.h, gdbarch.c: Regenerate.
7778 2010-03-08 Tom Tromey <tromey@redhat.com>
7782 * utils.c: Include main.h.
7783 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
7784 (defaulted_query): Use default answer if `batch_flag'.
7785 * main.h (batch_flag): Declare.
7786 * main.c (batch_flag): New global.
7787 (captured_main): Remove 'batch'. Update.
7789 2010-03-08 Kevin Buettner <kevinb@redhat.com>
7791 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
7794 * remote-mips.c (rockhopper_ops): New target_ops struct.
7795 (MON_ROCKHOPPER): New mips_monitor_type.
7796 (read_hex_value): New function.
7797 (mips_request): Send 8-byte values with a 'T' packet. Read the
7798 packet argument as a string and use read_hex_value to parse it.
7799 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
7800 (rockhopper_open): New function.
7801 (mips_wait): Read the PC, FP and SP fields as strings. Use
7802 read_hex_value to parse them and mips_set_register to commit them.
7803 (mips_set_register): New function.
7804 (mips_fetch_registers): Do not cast register value to "unsigned"
7805 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
7806 (mips_store_registers): Use a 'T' packet to set registers when
7807 using MON_ROCKHOPPER.
7808 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
7809 and expect the total to be printed before the entry address.
7810 (_initialize_remote_mips): Initialize and add rockhopper_ops.
7812 2010-03-08 Kevin Buettner <kevinb@redhat.com>
7814 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
7815 Change return value to int. Store value fetched in location
7816 addressed by `val'. Use function's return value as success
7817 or failure indicator. Adjust all callers.
7819 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
7821 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
7823 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7824 Hui Zhu <teawater@gmail.com>
7826 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
7827 tmp_to_stopped_data_address.
7828 (record_open): Reset tmp_to_stopped_by_watchpoint and
7829 tmp_to_stopped_data_address.
7830 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
7831 to_stopped_data_address.
7833 2010-03-08 Hui Zhu <teawater@gmail.com>
7835 * i386-tdep.c (i386_process_record): Initialize regnum.
7837 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7839 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
7840 Do not warn on ".gnu.liblist" and ".gnu.conflict".
7842 2010-03-08 Joel Brobecker <brobecker@adacore.com>
7844 Memory error when reading wrong core file.
7845 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
7846 errors while reading the inferior memory, and return zero if
7847 an exception was raised.
7849 2010-03-07 Michael Snyder <msnyder@vmware.com>
7851 * record.c (record_restore): Rename tmpu8 to rectype.
7853 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
7854 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
7856 (i386_record_push): Rename local tmpulongest to addr.
7858 (i386_process_record): Rename local tmpulongest to addr.
7860 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
7863 Rename local variable tmpu8 to opcode8 and regnum.
7865 2010-03-07 Joel Brobecker <brobecker@adacore.com>
7867 * remote.c (remote_get_ada_task_ptid): New function.
7868 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
7870 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
7872 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
7873 block. Define helper macros to reduce ifdefs in code.
7874 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
7875 size. Call unadorned GetModuleFileNameEx rather than
7876 GetModuleFileNameEx*.
7877 (windows_make_so): Use __PMAX to denote maximum buffer size and
7878 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
7880 (get_image_name): Use __PMAX to denote maximum buffer size.
7881 (handle_load_dll): Likewise.
7882 (windows_pid_to_exec_file): Likewise.
7883 (windows_create_inferior): Add many accommodations for older Cygwin and
7885 (bad_GetModuleFileNameExW): Control inclusion of this function based on
7886 __USEWIDE conditional.
7887 (bad_GetModuleFileNameExA): Likewise.
7888 (_initialize_loadable): Just use real function names without the dyn_
7889 part since they are defined earlier.
7891 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
7892 Tom Tromey <tromey@redhat.com>
7894 * utils.c (host_char_to_target): Add 'gdbarch' argument.
7895 (parse_escape): Likewise.
7896 * python/py-utils.c (unicode_to_target_string): Update.
7897 (unicode_to_target_python_string): Update.
7898 (target_string_to_unicode): Update.
7899 * printcmd.c (printf_command): Update.
7900 * p-exp.y (yylex): Update.
7901 * objc-exp.y (yylex): Update.
7902 * mi/mi-parse.c: Include charset.h.
7903 (mi_parse_escape): New function.
7904 (mi_parse_argv): Use it.
7905 * jv-exp.y (yylex): Update.
7906 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
7908 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
7909 * gdbarch.sh (auto_charset, auto_wide_charset): New.
7910 * gdbarch.c: Rebuild.
7911 * gdbarch.h: Rebuild.
7912 * defs.h (parse_escape): Update.
7913 * cli/cli-setshow.c: Include arch-utils.h.
7914 (do_setshow_command): Update.
7915 * cli/cli-cmds.c (echo_command): Update.
7916 * charset.h (target_charset, target_wide_charset): Update.
7917 * charset.c: Include arch-utils.h.
7918 (target_charset_name): Default to "auto".
7919 (target_wide_charset_name): Likewise.
7920 (show_target_charset_name): Handle "auto".
7921 (show_target_wide_charset_name): Likewise.
7922 (be_le_arch): New global.
7923 (set_be_le_names): Add 'gdbarch' argument.
7924 (validate): Likewise. Don't call set_be_le_names.
7925 (set_charset_sfunc, set_host_charset_sfunc)
7926 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
7928 (target_charset): Add 'gdbarch' argument.
7929 (target_wide_charset): Likewise. Remove 'byte_order' argument.
7930 (auto_target_charset_name): New global.
7931 (default_auto_charset, default_auto_wide_charset): New functions.
7932 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
7933 for target charsets. Copy result of nl_langinfo. Use GetACP if
7935 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
7936 remove 'byte_order' argument. Update.
7937 (classify_type): Likewise.
7938 (c_emit_char): Update.
7939 (c_printchar): Update.
7940 (c_printstr): Update.
7941 (c_get_string): Update.
7942 (evaluate_subexp_c): Update.
7943 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
7945 * python/python.c (gdbpy_target_charset): New function.
7946 (gdbpy_target_wide_charset): Likewise.
7947 (GdbMethods): Update.
7950 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
7952 * symfile.c (build_section_addr_info_from_objfile): Do not mask
7953 off high address bits.
7955 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
7957 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
7958 address as UnsignedLongLong, not LongLong.
7960 2010-03-05 Kevin Buettner <kevinb@redhat.com>
7961 Pedro Alves <pedro@codesourcery.com>
7963 * remote-mips.c (gdbthread.h): Include.
7964 (remote_mips_ptid): Declare.
7965 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
7966 (common_open): Set inferior_ptid, add it as an inferior, and
7967 as a thread too. Delete FIXME comment regarding start_remote().
7968 (mips_close): Invoke generic_mourn_inferior().
7969 (mips_kill): Make sure that target_mourn_inferior is invoked.
7970 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
7971 it's now invoked from mips_close().
7972 (mips_load): Don't null out inferior_ptid. Don't call
7973 clear_symtab_users().
7974 (mips_thread_alive, mips_pid_to_str): New functions.
7975 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
7976 to_thread_alive and to_pid_to_str operations.
7978 2010-03-04 Tom Tromey <tromey@redhat.com>
7980 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
7981 in DWARF 3 and later.
7982 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
7984 2010-03-04 Keith Seitz <keiths@redhat.com>
7986 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
7987 If the filename portion of the linespec was quoted, recheck the
7988 remainder for additional quoting.
7989 (locate_first_half): Skip over completer chars, too.
7991 2010-03-04 Tom Tromey <tromey@redhat.com>
7993 * printcmd.c (printf_command): Pass dummy argument to
7996 2010-03-04 Doug Evans <dje@google.com>
7998 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
8001 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
8003 2010-03-04 Pedro Alves <pedro@codesourcery.com>
8005 * breakpoint.c (update_watchpoint): Create a sentinel location if
8006 the software watchpoint isn't watching any memory.
8007 (breakpoint_address_bits): Skip dummy software watchpoint locations.
8009 2010-03-04 Pedro Alves <pedro@codesourcery.com>
8011 * utils.c (fputs_maybe_filtered): Check if there's already a top
8012 level interpreter before dereferencing it. If there isn't one,
8013 don't paginate either.
8015 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8017 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
8018 the state right when single stepping.
8019 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
8020 Get the next PC along with the instruction state.
8021 (thumb_get_next_pc): Remove.
8022 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
8024 2010-03-04 Hui Zhu <teawater@gmail.com>
8026 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
8028 2010-03-03 Pedro Alves <pedro@codesourcery.com>
8030 * utils.c (fputs_maybe_filtered): Always disable pagination if the
8031 top level interpreter is MI.
8033 2010-03-03 Stan Shebs <stan@codesourcery.com>
8035 * remote.c (remote_download_tracepoint): Iterate over locations.
8036 * tracepoint.c (validate_actionline): Ditto.
8037 (encode_actions): Add location argument.
8038 (trace_dump_command): Check all locations to see if stepping
8041 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
8042 Eli Zaretskii <eliz@gnu.org>
8044 * NEWS: Add X86 general purpose registers section.
8046 2010-03-03 Tom Tromey <tromey@redhat.com>
8049 * varobj.c (install_new_value): Handle case where new print_value
8052 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
8055 * printcmd.c (printf_command): Print end of format string using
8058 2010-03-02 Tom Tromey <tromey@redhat.com>
8060 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
8061 * defs.h (read_command_lines_1): Add missing 'void'.
8062 * cli/cli-script.c (recurse_read_control_structure): Add missing
8064 (read_next_line): Likewise.
8065 (read_command_lines_1): Likewise.
8067 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8069 * spu-tdep.c (spu_analyze_prologue): Track instruction to
8070 store backchain as part of prologue.
8072 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
8074 * progspace.c (update_address_spaces): Update inferior address spaces
8077 2010-03-02 Doug Evans <dje@google.com>
8079 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
8080 lowpc,highpc args to addrmap_set_empty.
8082 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
8084 * amd64-tdep.c (amd64_byte_names): New.
8085 (amd64_word_names): Likewise.
8086 (amd64_dword_names): Likewise.
8087 (amd64_pseudo_register_name): Likewise.
8088 (amd64_pseudo_register_read): Likewise.
8089 (amd64_pseudo_register_write): Likewise.
8090 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
8091 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
8092 set_gdbarch_pseudo_register_write and
8093 set_tdesc_pseudo_register_name. Don't call
8094 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
8096 * i386-tdep.c (i386_num_mmx_regs): Removed.
8097 (i386_num_pseudo_regs): Likewise.
8098 (i386_byte_names): New.
8099 (i386_word_names): Likewise.
8100 (i386_byte_regnum_p): Likewise.
8101 (i386_word_regnum_p): Likewise.
8102 (i386_mmx_regnum_p): Updated.
8103 (i386_pseudo_register_name): Make it global. Handle byte and
8104 word pseudo-registers.
8105 (i386_pseudo_register_read): Likewise.
8106 (i386_pseudo_register_write): Likewise.
8107 (i386_pseudo_register_type): Handle byte, word and dword
8109 (i386_register_reggroup_p): Don't include pseudo
8110 registers, except for MXX, in any register groups. Don't
8111 include pseudo byte, word, dword registers in general_reggroup.
8112 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
8113 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
8114 pseudo-registers after word pseudo-registers. Call
8115 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
8117 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
8118 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
8120 (i386_byte_regnum_p): New.
8121 (i386_word_regnum_p): Likewise.
8122 (i386_dword_regnum_p): Likewise.
8123 (i386_pseudo_register_name): Likewise.
8124 (i386_pseudo_register_read): Likewise.
8125 (i386_pseudo_register_write): Likewise.
8127 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
8129 * target-descriptions.c (tdesc_type): Remove
8130 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8131 (tdesc_predefined_types): Likewise.
8132 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
8133 if flag name is empty.
8134 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
8136 * features/i386/32bit-core.xml: Define i386_eflags.
8137 * features/i386/64bit-core.xml: Likewise.
8139 * features/i386/32bit-sse.xml: Define i386_mxcsr.
8140 * features/i386/64bit-sse.xml: Likewise.
8142 * features/i386/amd64-linux.c: Regenerated.
8143 * features/i386/amd64.c: Likewise.
8144 * features/i386/i386-linux.c: Likewise.
8145 * features/i386/i386.c: Likewise.
8147 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
8149 * gdbtypes.c (append_composite_type_field_raw): New.
8150 (append_composite_type_field_aligned): Use the new function.
8151 * gdbtypes.h (append_composite_type_field_raw): Declare.
8152 * target-descriptions.c (struct tdesc_type_field): Add start and end.
8153 (struct tdesc_type_flag): New type.
8154 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
8155 kind. Add size to u.u. Add u.f for flags.
8156 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
8157 (tdesc_free_type): Likewise.
8158 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
8159 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
8160 (tdesc_add_bitfield, tdesc_add_flag): New.
8161 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
8162 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
8163 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
8164 current_type. Add current_type_size and current_type_is_flags.
8165 (tdesc_start_union): Clear the new fields.
8166 (tdesc_start_struct, tdesc_start_flags): New.
8167 (tdesc_start_field): Handle struct fields, including bitfields.
8168 (field_attributes): Make type optional. Add start and end.
8169 (union_children): Rename to struct_union_children.
8170 (union_attributes): Rename to struct_union_attributes. Add optional
8172 (flags_attributes): New.
8173 (feature_children): Add struct and flags.
8174 * features/gdb-target.dtd: Add flags and struct to features.
8175 Make field type optional. Add field start and end.
8177 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
8179 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
8180 (amd64_linux_read_description): Likewise.
8181 (_initialize_amd64_linux_nat): Set to_read_description to
8182 amd64_linux_read_description.
8184 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
8185 (amd64_linux_register_name): Removed.
8186 (amd64_linux_register_type): Likewise.
8187 (amd64_linux_core_read_description): New.
8188 (amd64_linux_init_abi): Set target description to
8189 tdesc_amd64_linux if needed. Support orig_rax in target
8190 description. Don't call set_gdbarch_register_name nor
8191 set_gdbarch_register_type. Call
8192 set_gdbarch_core_read_description.
8193 (_initialize_amd64_linux_tdep): Call
8194 initialize_tdesc_amd64_linux.
8196 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
8198 * amd64-tdep.c: Include "features/i386/amd64.c".
8199 (amd64_register_names): Removed.
8200 (amd64_register_name): Likewise.
8201 (amd64_register_type): Likewise.
8202 (amd64_init_abi): Set num_core_regs and register_names. Set
8203 target description to tdesc_amd64 if needed. Don't call
8204 set_gdbarch_register_name nor set_gdbarch_register_type.
8205 (_initialize_amd64_tdep): New.
8207 * i386-linux-nat.c (i386_linux_read_description): New.
8208 (_initialize_i386_linux_nat): Set to_read_description to
8209 i386_linux_read_description.
8211 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
8212 (i386_linux_register_name): Removed.
8213 (i386_linux_core_read_description): New.
8214 (i386_linux_read_description): Likewise.
8215 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
8216 Set target description to tdesc_i386_linux if needed. Support
8217 orig_eax. Set register_reggroup_p. Call
8218 set_gdbarch_core_read_description.
8219 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
8221 * i386-linux-tdep.h (tdesc_i386_linux): New.
8223 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
8226 * i386-tdep.c: Include "features/i386/i386.c".
8227 (i386_register_names): Make it const.
8228 (i386_mmx_names): Likewise.
8229 (i386_num_register_names): Removed.
8230 (i386_register_name): Likewise.
8231 (i386_eflags_type): Likewise.
8232 (i386_mxcsr_type): Likewise.
8233 (i386_sse_type): Likewise.
8234 (i386_register_type): Likewise.
8235 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
8236 (i386_pseudo_register_name): New.
8237 (i386_pseudo_register_type): Likewise.
8238 (i386_mmx_type): Make it static.
8239 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
8240 I387_NUM_REGS. Set num_core_regs and register_names. Don't
8241 call set_gdbarch_register_name nor set_gdbarch_register_type.
8242 Set register_reggroup_p. Set target description to tdesc_i386
8243 if needed. Call set_tdesc_pseudo_register_type,
8244 set_tdesc_pseudo_register_name and tdesc_use_registers.
8245 (_initialize_i386_tdep): Call initialize_tdesc_i386.
8246 initialize_tdesc_x86_64.
8248 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
8249 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
8250 register_names, tdesc and register_reggroup_p.
8251 (I386_NUM_FREGS): Removed.
8252 (i386_eflags_type): Likewise.
8253 (i386_mxcsr_type): Likewise.
8254 (i386_mmx_type): Likewise.
8255 (i386_sse_type): Likewise.
8256 (i386_register_name): Likewise.
8257 (i386_regnum): Add I386_MXCSR_REGNUM.
8258 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
8260 * i387-tdep.h (I387_NUM_REGS): New.
8262 * regformats/i386/i386-linux.dat: Generated.
8263 * regformats/i386/i386.dat: Likewise.
8264 * regformats/i386/amd64-linux.dat: Likewise.
8265 * regformats/i386/amd64.dat: Likewise.
8267 * regformats/reg-i386-linux.dat: Removed.
8268 * regformats/reg-i386.dat: Likewise.
8269 * regformats/reg-x86-64-linux.dat: Likewise.
8270 * regformats/reg-x86-64.dat: Likewise.
8272 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
8274 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
8275 cygwin_conv_path API rather than the deprecated
8276 cygwin_conv_to_full_posix_path.
8278 (GetModuleFileNameExA): Undefine for Cygwin.
8279 (GetModuleFileNameExW): Define for Cygwin.
8280 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
8281 Call GetModuleFileNameExW and convert path to POSIX using
8283 (windows_make_so): Always define p. Drop unused variable m.
8284 Don't use Win32 functions to check file existance, rather use
8285 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
8286 Use canonicalize_file_name to get full path.
8287 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
8288 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
8289 use correct target buffer size in call to WideCharToMultiByte.
8290 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
8291 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
8292 (windows_create_inferior): Convert all paths and arguments to wchar_t
8293 and use CreateProcessW on Cygwin.
8294 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
8295 (bad_GetModuleFileNameExA): Undefine for Cygwin.
8296 (bad_GetModuleFileNameExW): Define for Cygwin.
8297 (_initialize_loadable): Load GetModuleFileNameExW into
8298 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
8300 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
8303 * python/py-frame.c (frapy_read_var): Add block argument and logic
8304 to cope with user provided blocks.
8306 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8308 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
8311 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
8313 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
8314 (COMMON_OBS): ... to here since it's used unconditionally.
8315 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
8318 2010-02-26 David Daney <ddaney@caviumnetworks.com>
8320 * mips-linux-tdep.c: Update struct sigframe comments.
8321 (SIGFRAME_CODE_OFFSET): Delete macro.
8322 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
8324 (mips_linux_n32n64_sigframe_init): Same.
8326 2010-02-26 Kevin Buettner <kevinb@redhat.com>
8328 * remote-mips.c (mips_load): Don't use pseudo-register when
8329 invalidating regcache.
8331 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8333 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
8335 2010-02-26 Pedro Alves <pedro@codesourcery.com>
8337 * NEWS: Add "New targets" section, and mention ARM Symbian
8340 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
8342 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
8343 add ADDR_SIZE member.
8344 (allocate_piece_closure): Update.
8345 (copy_pieced_value_closure): Likewise.
8346 (dwarf2_evaluate_loc_desc): Likewise.
8347 (read_pieced_value): Use DWARF address size instead of
8348 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
8350 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
8351 Tom Tromey <tromey@redhat.com>
8353 * python/py-type.c (typy_lookup_typename): Add in block argument.
8354 If provided restrict lookup to specified blocks.
8355 (gdbpy_lookup_type): Likewise.
8356 (typy_lookup_type): Likewise.
8358 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8363 * arm-symbian-tdep.c: New.
8364 * configure.tgt (arm*-*-symbianelf*): New target.
8365 (*-*-symbianelf*): New OS.
8366 * osabi.c (gdb_osabi_names): Add Symbian.
8367 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
8368 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
8369 (ALLDEPFILES): Add arm-symbian-tdep.c.
8371 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8373 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
8375 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8377 * mi/mi-main.c (mi_cmd_execute): Fix typo.
8379 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
8380 Tom Tromey <tromey@redhat.com>
8381 Thiago Jung Bauermann <bauerman@br.ibm.com>
8383 * python/python.c (_initialize_python): Call
8384 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
8385 gdbpy_initialize_blocks.
8386 * python/python-internal.h: Declare struct symbol, block and
8387 symtab_and_line. Declare block_object_type and
8389 (gdbpy_lookup_symbol gdbpy_block_for_pc)
8390 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
8391 (symbol_to_symbol_object, block_to_block_object)
8392 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
8393 (gdbpy_initialize_blocks ): Declare.
8394 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
8395 (frapy_select): Add methods.
8396 (frapy_read_var): Add symbol branch.
8397 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
8399 (SUBDIR_PYTHON_SRCS): Likewise.
8400 (py-symbol.o): New rule.
8401 (py-symtab.o): Likewise.
8402 (py-block.o): Likewise.
8403 * python/py-symbol.c: New file.
8404 * python/py-symtab.c: Likewise.
8405 * python/py-block.c: Likewise.
8407 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8411 * inferior.h (prepare_for_detach): Declare.
8412 (struct inferior) <detaching>: New field.
8413 * infrun.c (prepare_for_detach): New.
8414 (handle_inferior_event) <random signal>: Don't stop if detaching.
8415 * target.c (target_detach): Call prepare_for_detach.
8417 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8419 Per-process displaced stepping queue.
8421 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
8422 (displaced_step_gdbarch, displaced_step_closure,
8423 (displaced_step_original, displaced_step_copy): Move globals to
8425 (struct displaced_step_inferior_state): ... new structure.
8426 (displaced_step_inferior_states): New global.
8427 (get_displaced_stepping_state, add_displaced_stepping_state)
8428 (remove_displaced_stepping_state, infrun_inferior_exit): New
8430 (displaced_step_clear): Add displaced_step_inferior_state
8431 parameter, and adjust to handle it.
8432 (displaced_step_clear_cleanup): Parameter is now a
8433 displaced_step_inferior_state. Adjust.
8434 (displaced_step_prepare): Adjust.
8435 (displaced_step_fixup, displaced_step_fixup)
8436 (infrun_thread_ptid_changed, resume): Adjust.
8437 (init_wait_for_inferior): Don't call displaced_step_clear.
8438 (infrun_thread_stop_requested): Rewrite.
8439 (_initialize_infrun): Install infrun_inferior_exit as
8440 inferior_exit observer.
8442 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8444 * inferior.h (ptid_match): Declare.
8445 * infrun.c (ptid_match): New.
8446 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
8447 (handle_notification): Add debug output.
8448 * linux-nat.c (ptid_match): Delete.
8450 2010-02-24 David S. Miller <davem@davemloft.net>
8452 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
8453 * syscalls/sparc-linux.xml: New.
8454 * syscalls/sparc64-linux.xml: New.
8455 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
8456 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
8457 (sparc32_linux_get_syscall_number): New function.
8458 (sparc32_linux_init_abi): Set syscall XML file name and hook up
8459 syscall number fetcher.
8460 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
8461 (sparc64_linux_get_syscall_number): New function.
8462 (sparc64_linux_init_abi): Set syscall XML file name and hook up
8463 syscall number fetcher.
8465 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
8469 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
8470 * inferior.c (add_inferior_silent): Notify inferior_added
8472 (delete_inferior_1): Notify inferior_removed observer.
8473 (exit_inferior_1): Pass inferior, not pid, to observer.
8474 (inferior_appeared): Likewise.
8475 (add_inferior_with_spaces): New.
8476 (add_inferior_command): Use the above.
8477 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
8480 * inflow.c (inflow_inferior_exit): Likewise.
8481 * jit.c (jit_inferior_exit_hook): Likewise.
8483 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
8485 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
8486 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
8487 (report_initial_inferior): New.
8488 (mi_inferior_removed): Register the above. Make sure
8489 inferior_added observer is called on the first inferior.
8490 (mi_new_thread, mi_thread_exit): Thread group is now identified by
8491 inferior number, not pid.
8492 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
8494 * mi/mi-main.c (current_context): New.
8495 (proceed_thread_callback): Use typed closure.
8496 Proceed everything if pid is 0. Most implementation split into
8497 (proceed_thread): ... this.
8498 (run_one_inferior): New.
8499 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
8500 Adjust for multiexec behaviour.
8501 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
8502 (mi_cmd_execute): Handle the 'thread-group' option here.
8503 Do some extra checks.
8504 * mi-parse.c (mi_parse): Handle the --all and --thread-group
8506 * mi-parse.h (struct mi_parse): New fields all and thread_group.
8508 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
8510 Make -exec-run a proper MI commands.
8512 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
8513 * mi/mi-cmds.c (mi_cmds): Adjust.
8514 * mi/mi-main.c (mi_cmd_exec_run): New.
8516 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8517 Stan Shebs <stan@codesourcery.com>
8519 * tracepoint.h (set_traceframe_number)
8520 (cleanup_restore_current_traceframe): Declare.
8521 * tracepoint.c (set_traceframe_number): New.
8522 (struct current_traceframe_cleanup): New.
8523 (do_restore_current_traceframe_cleanup)
8524 (restore_current_traceframe_cleanup_dtor)
8525 (make_cleanup_restore_current_traceframe): New.
8526 * infrun.c: Include tracepoint.h.
8527 (fetch_inferior_event): Switch out and in of tfind mode.
8529 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8531 * breakpoint.c (breakpoint_init_inferior): Also delete
8532 bp_shlib_event breakpoints.
8533 * solib-frv.c (enable_break): Remove call to
8534 remove_solib_event_breakpoints.
8535 * solib-svr4.c (enable_break): Ditto.
8536 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
8537 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
8538 * solib-som.c (som_solib_create_inferior_hook): Ditto.
8539 * solib-spu.c (spu_enable_break): Ditto.
8541 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
8543 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
8545 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
8547 * varobj.c (varobj_update): Avoid non-constants in initializers.
8549 2010-02-23 Tom Tromey <tromey@redhat.com>
8551 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
8552 handle big-endian values.
8553 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
8555 2010-02-22 Pedro Alves <pedro@codesourcery.com>
8560 * breakpoint.c (insert_bp_location): If inserting the read
8561 watchpoint failed, fallback to an access watchpoint.
8562 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
8563 if the value changed, if not watching the same memory for writes.
8564 (watchpoint_locations_match): Add comment.
8565 (update_global_location_list): Copy the location's watchpoint type.
8566 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
8567 handle read watchpoints here.
8568 (i386_insert_watchpoint): Read watchpoints aren't supported.
8569 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
8571 * target.h (target_insert_watchpoint): Update description.
8573 2010-02-19 Tom Tromey <tromey@redhat.com>
8575 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
8576 * m2-typeprint.c (m2_print_type): Update.
8577 * gdbtypes.c (recursive_dump_type): Update.
8578 (copy_type_recursive): Update.
8579 * c-typeprint.c (c_type_print_varspec_prefix): Update.
8580 (c_type_print_base): Update.
8581 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
8583 (struct cplus_struct_type) <ntemplate_args>: Remove.
8584 <struct template_arg>: Remove.
8585 <is_dynamic>: Move earlier.
8586 (TYPE_TEMPLATE_ARGS): Remove.
8587 (TYPE_NTEMPLATE_ARGS): Remove.
8588 (TYPE_TEMPLATE_ARG): Remove.
8590 2010-02-19 Tom Tromey <tromey@redhat.com>
8592 PR c++/8693, PR c++/9496:
8593 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
8594 * c-exp.y (lex_one_token): Rename from yylex. Don't call
8595 write_dollar_variable. Don't try to classify NAME tokens.
8596 (token_and_value): New type.
8597 (token_fifo, popping, name_obstack): New globals.
8598 (classify_name): New function.
8599 (classify_inner_name): Likewise.
8601 (VARIABLE): Now has type sval.
8602 (exp : VARIABLE): Call write_dollar_variable.
8603 (qualified_name): Use TYPENAME, not typebase. Add production for
8604 multiple "::" instances.
8605 (variable): Use name_not_typename.
8606 (qualified_type): Remove.
8609 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8611 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
8612 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
8613 found by bfd_get_section_by_name.
8614 * symfile.h (struct section_addr_info) <sectindex>: New comment.
8616 2010-02-19 Joel Brobecker <brobecker@adacore.com>
8618 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
8619 7.0 section" into "Changes in 7.1".
8621 2010-02-19 Joel Brobecker <brobecker@adacore.com>
8623 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
8624 * version.in: Bump version to 7.1.50.20100219-cvs.
8626 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
8628 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
8629 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
8631 2010-02-17 Tom Tromey <tromey@redhat.com>
8633 * NEWS: Add Python API Improvements section.
8635 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
8637 * NEWS: Correct typo.
8639 2010-02-17 Tom Tromey <tromey@redhat.com>
8641 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
8643 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8645 * symfile.c (build_section_addr_info_from_objfile): Include sections
8646 only if they are SEC_ALLOC or SEC_LOAD.
8648 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
8651 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
8652 of ULONGEST for address size.
8654 2010-02-17 Tom Tromey <tromey@redhat.com>
8656 * NEWS: Add C++ improvements section.
8658 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
8660 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
8661 PyThreadState_Swap): Avoid "statement with no effect" warning.
8663 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8665 * solib-svr4.c (enable_break <target_auxv_search>): New variable
8666 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
8668 2010-02-17 Tristan Gingold <gingold@adacore.com>
8669 Petr Hluzin <petr.hluzin@gmail.com>
8671 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
8672 gdb_assert. Fix info->size for SIG prologue.
8674 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8676 * infcmd.c (show_inferior_tty_command): Check for NULL.
8677 Correct output message.
8679 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8681 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
8682 FUNCTION contains parentheses. Improve removal of a trailing
8685 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8687 * gcore.c (do_bfd_delete_cleanup): New function.
8688 (gcore_command): Use it. Discard the cleanup after success.
8689 (gcore_copy_callback): Delete dead code.
8691 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8693 * symfile.c (addr_info_make_relative): Always use
8694 find_lowest_section.
8696 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
8698 * NEWS: Added entry for namespace fixes.
8700 2010-02-15 Tom Tromey <tromey@redhat.com>
8702 * dwarf2read.c (guess_structure_name): Allocate name on the
8705 2010-02-15 Tom Tromey <tromey@redhat.com>
8707 * c-typeprint.c (c_type_print_base): Reverse order of test.
8709 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8711 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
8712 initialize it from ELF BFD. Extend the prelink condition by it.
8714 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8716 * defs.h (parse_pid_to_attach): New.
8717 * utils.c (parse_pid_to_attach): New.
8718 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
8719 * gnu-nat.c (gnu_attach): Likewise.
8720 * nto-procfs.c (procfs_attach): Likewise.
8721 * procfs.c (procfs_attach): Likewise.
8722 * windows-nat.c (windows_attach): Likewise.
8723 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
8724 * inf-ttrace.c (inf_ttrace_attach): Likewise.
8725 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
8728 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
8730 * MAINTAINERS: Add myself for write after approval privileges.
8732 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8734 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
8737 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8739 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
8740 only if INFO_VERBOSE.
8742 2010-02-12 Tomas Holmberg <th@virtutech.com>
8744 * mi/mi-main.c: Added the --reverse flag to the following MI
8745 commands: exec-continue, exec-finish, exec-next, exec-step,
8746 exec-next-instruction, exec-step-instruction. This is to
8747 support reverse execution over the MI interface to gdb.
8749 2010-02-12 Pedro Alves <pedro@codesourcery.com>
8751 * tracepoint.c (_initialize_tracepoint): Specify that the address
8752 range of `tfind outsize' is exclusive, and that the address range
8753 of `tfind range' is inclusive, in the commands' help strings.
8755 2010-02-12 Joel Brobecker <brobecker@adacore.com>
8757 Spurious "dll not found" error messages on x64-windows.
8758 * windows-nat.c: Add include of complaints.h.
8759 (handle_unload_dll): Change dll-not-found error into a complaint.
8761 2010-02-12 Pedro Alves <pedro@codesourcery.com>
8763 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
8764 bp_tracepoint and bp_fast_tracepoint, not
8765 bp_loc_software_breakpoint.
8766 (update_global_location_list): Tracepoints are never duplicates of
8769 2010-02-12 Pedro Alves <pedro@codesourcery.com>
8771 * breakpoint.c (break_command_really): Change return type to int.
8772 Return false if no breakpoint was created, true otherwise.
8773 (trace_command): Don't set the tracepoint count if no tracepoint
8775 (ftrace_command): Ditto.
8776 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
8777 created in the breakpoints table.
8779 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8780 Ulrich Weigand <uweigand@de.ibm.com>
8782 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
8784 2010-02-11 Pedro Alves <pedro@codesourcery.com>
8786 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
8787 the offset value isn't of integral type.
8789 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8791 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
8794 2010-02-11 Pedro Alves <pedro@codesourcery.com>
8796 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
8797 non-subscriptable types.
8798 * valarith.c (binop_types_user_defined_p): New, abstracted out
8800 (binop_user_defined_p): ... this.
8801 * value.h (binop_types_user_defined_p): Declare.
8803 2010-02-11 Pedro Alves <pedro@codesourcery.com>
8805 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
8806 Merge uploaded TSVs before merging uploaded tracepoints.
8808 2010-02-11 Pedro Alves <pedro@codesourcery.com>
8810 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
8812 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
8814 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
8815 whitespace character after a dot in comment.
8816 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
8818 (list_args_or_locals): For the 'all' (that is
8819 -stack-list-variables) case, always output list of tuples.
8820 Output 'arg' field if variable is argument.
8822 2010-02-10 Tom Tromey <tromey@redhat.com>
8824 * parser-defs.h (parser_debug): Declare.
8825 * parse.c (_initialize_parse): Install "debug parser" set/show
8827 (parser_debug): New global.
8828 (show_parserdebug): New function.
8829 * c-exp.y (c_parse): Set yydebug.
8831 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
8833 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
8834 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8835 (tdesc_predefined_types): Add i387_ext, i386_eflags and
8837 (tdesc_find_type): New.
8838 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
8839 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8841 * target-descriptions.h (tdesc_find_type): New.
8843 2010-02-10 Michael Snyder <msnyder@vmware.com>
8845 * gdb-gdb.py: Comment fix.
8847 2010-02-09 Tristan Gingold <gingold@adacore.com>
8849 * machoread.c (macho_symfile_relocate): New function.
8850 (macho_sym_fns): Use macho_symfile_relocate instead of
8851 default_symfile_relocate.
8852 (macho_oso_data): New type.
8853 (current_oso): New variable.
8854 (macho_add_oso_symfile): Do not compute section_addr_info, but
8855 instead set vma of sections.
8856 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
8857 Set and clear current_oso.
8859 2010-02-09 Joel Brobecker <brobecker@adacore.com>
8861 Wrong type description for tagged type parameter.
8862 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
8863 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
8864 reference to a tagged type.
8866 2010-02-09 Tristan Gingold <gingold@adacore.com>
8868 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
8869 brothers of the parent.
8871 2010-02-08 Tom Tromey <tromey@redhat.com>
8875 * valops.c (search_struct_field): Make 'name' const.
8876 (search_struct_method): Likewise.
8877 (find_method_list): Make 'method' const.
8878 (value_struct_elt): Make 'name' and 'err' const.
8879 (value_find_oload_method_list): Make 'method' const.
8880 (find_overload_match): Make 'name' const.
8881 * eval.c (evaluate_subexp_standard): New locals function,
8883 <OP_FUNCALL>: Handle OP_SCOPE specially.
8885 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
8887 * infrun.c (handle_inferior_event): Do not look up regcache
8888 for exited processes.
8890 2010-02-08 Chris Moller <moller@mollerware.com>
8893 * valarith.c (value_ptrdiff): Added a test for a zero type length,
8894 warn if found, and assume length = 1.
8896 2010-02-08 Chris Moller <cmoller@redhat.com>
8899 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
8900 (cp_print_static_field) Fix use of obstacks.
8902 2010-02-08 Pedro Alves <pedro@codesourcery.com>
8904 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
8905 resumed LWPs as resumed.
8906 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
8907 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
8908 of throwing an internal error. If an LWP of a process we're not
8909 waiting for reports a signal, don't force collecting a SIGSTOP,
8910 and if it was breakpoint hit in non-stop mode, cancel it. Don't
8911 go through all LWPs cancelling breakpoints in non-stop mode.
8912 (resume_stopped_resumed_lwps): New.
8913 (linux_nat_wait): Use it.
8915 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
8917 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
8918 i386/amd64 and i386/amd64-linux.
8919 (i386/i386-expedite): New.
8920 (i386/i386-linux-expedite): Likewise.
8921 (i386/amd64-expedite):Likewise.
8922 (i386/amd64-linux-expedite): Likewise.
8923 ($(outdir)/i386/i386-linux.dat): Likewise.
8924 ($(outdir)/i386/amd64.dat): Likewise.
8925 ($(outdir)/i386/amd64-linux.dat): Likewise.
8927 * features/i386/32bit-core.xml: New.
8928 * features/i386/32bit-linux.xml: Likewise.
8929 * features/i386/32bit-sse.xml: Likewise.
8930 * features/i386/64bit-core.xml: Likewise.
8931 * features/i386/64bit-linux.xml: Likewise.
8932 * features/i386/64bit-sse.xml: Likewise.
8933 * features/i386/i386-linux.xml: Likewise.
8934 * features/i386/i386.xml: Likewise.
8935 * features/i386/amd64-linux.xml: Likewise.
8936 * features/i386/amd64.xml: Likewise.
8937 * features/i386/i386-linux.c: Likewise.
8938 * features/i386/i386.c: Likewise.
8939 * features/i386/amd64-linux.c: Likewise.
8940 * features/i386/amd64.c: Likewise.
8942 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
8945 * cp-support.h: Added char* alias element to using_direct data
8947 (cp_add_using): Added char* alias argument.
8948 (cp_add_using_directive): Ditto.
8949 * cp-namespace.c: Updated with the above changes.
8950 (cp_lookup_symbol_imports): Check for aliases.
8951 * dwarf2read.c (read_import_statement): Figure out local alias
8952 for the import and pass it on to cp_add_using.
8953 (read_namespace): Pass alias argument to cp_add_using.
8955 2010-02-05 Hui Zhu <teawater@gmail.com>
8957 * defs.h (gdb_bfd_errmsg): New extern.
8958 * exec.c (exec_file_attach): Change bfd_errmsg to
8960 * utils.c (AMBIGUOUS_MESS1): New macro.
8961 (AMBIGUOUS_MESS2): New macro.
8962 (gdb_bfd_errmsg): New function.
8964 2010-02-04 Doug Evans <dje@google.com>
8966 * solib-svr4.c (enable_break): Add comment.
8968 2010-02-04 Anthony Green <green@moxielogic.com>
8970 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
8973 2010-02-04 Tom Tromey <tromey@redhat.com>
8975 * valops.c (search_struct_field): Account for
8976 value_embedded_offset. Fix check for virtual base past the end of
8977 the object. Use value_copy when making a slice of the value.
8979 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
8982 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
8983 only if gdb_stdout is a tty.
8985 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
8987 * target-descriptions.c: Include "osabi.h".
8988 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
8991 2010-02-04 Tristan Gingold <gingold@adacore.com>
8993 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
8994 (macho_symtab_read): Adjust calls to macho_add_oso.
8995 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
8996 (macho_symfile_read): Adjust call to macho_oso_symfile.
8997 (macho_new_init): Move this function after declarations.
8998 (macho_symfile_init): Ditto.
8999 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
9000 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
9002 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
9004 Include MI command in remotelog.
9006 * mi/mi-main.c (mi_execute_command): Call target_log_command.
9008 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9010 * remote.c (remote_state): Remove gdbarch.
9011 (init_remote_state): Don't set gdbarch.
9012 (remote_query_supported): Pass target_gdbarch instead of
9013 rs->gdbarch to gdbarch_qsupported.
9015 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9017 * gdbarch.sh: Add qsupported.
9019 * gdbarch.c: Regenerated.
9020 * gdbarch.h: Likewise.
9022 * remote.c (remote_state): Add gdbarch.
9023 (init_remote_state): Set gdbarch.
9024 (remote_query_supported): Support gdbarch_qsupported.
9026 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
9028 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
9029 __FreeBSD_kernel_version.
9031 2010-02-03 Tristan Gingold <gingold@adacore.com>
9033 * symfile.h (struct sym_fns): Add sym_relocate field.
9034 (default_symfile_relocate): New prototype.
9035 (symfile_relocate_debug_section): First argument is now an objfile.
9036 * symfile.c (default_symfile_relocate): Rename from
9037 symfile_relocate_debug_section, first argument is now an objfile.
9038 (symfile_relocate_debug_section): New function.
9039 * coffread.c (coff_sym_fns): Set sym_relocate field.
9040 * somread.c (som_sym_fns): Ditto.
9041 * mipsread.c (ecoff_sym_fns): Ditto.
9042 * machoread.c (macho_sym_fns): Ditto.
9043 * elfread.c (elf_sym_fns): Ditto.
9044 * dwarf2read.c (dwarf2_read_section): Ditto.
9045 * xcoffread.c (xcoff_sym_fns): Ditto.
9046 * dbxread.c (aout_sym_fns): Ditto.
9047 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
9048 (elfstab_build_psymtabs): Ditto.
9050 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9052 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
9054 2010-02-02 Tom Tromey <tromey@redhat.com>
9056 * valops.c (value_cast_structs): Try downcasting using the RTTI
9059 2010-02-02 Tom Tromey <tromey@redhat.com>
9061 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
9062 (gnuv2_baseclass_offset): Now static.
9063 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
9064 * gnu-v2-abi.h: Remove.
9066 2010-02-02 Tom Tromey <tromey@redhat.com>
9068 * m2-typeprint.c (m2_record_fields): Don't use
9070 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
9071 (struct main_type) <flag_declared_class>: New field.
9072 (struct cplus_struct_type) <declared_type>: Remove.
9073 <ntemplate_args>: Move earlier.
9074 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
9075 (DECLARED_TYPE_TEMPLATE): Remove.
9076 (TYPE_DECLARED_TYPE): Remove.
9077 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
9078 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
9079 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
9082 2010-02-02 Tom Tromey <tromey@redhat.com>
9084 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
9085 * valops.c (search_struct_field): Compute nbases after calling
9087 (check_field): Call CHECK_TYPEDEF.
9088 * cp-valprint.c (cp_print_value): Pass correct address to
9089 baseclass_offset. Fix check for virtual base past the end of the
9090 object. Don't offset address passed to cp_print_value_fields or
9091 apply_val_pretty_printer.
9092 (cp_print_value_fields): Fix call to val_print.
9093 (cp_print_value_fields_rtti): New function.
9094 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
9095 * p-valprint.c (pascal_object_print_value_fields): Fix call to
9097 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
9099 * language.h (struct language_defn) <la_val_print>: Document.
9100 * c-lang.h (cp_print_value_fields_rtti): Declare.
9102 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9105 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9106 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
9107 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9109 2010-02-01 Michael Matz <matz@suse.de>
9110 Daniel Jacobowitz <dan@codesourcery.com>
9112 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
9113 functions use a frame pointer.
9115 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9117 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
9118 by a conditional setting DYN_ADDR. Use DYN_ADDR.
9119 * config/djgpp/fnchange.lst: Add translations for
9120 symbol-without-target_section.exp and symbol-without-target_section.c.
9122 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9124 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
9125 (remote_breakpoint_for_pc): Correct invalid_p check.
9126 * gdbarch.c: Regenerated.
9128 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9130 * arm-tdep.c (arm_find_mapping_symbol): New function, from
9132 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
9133 (extend_buffer_earlier): New function.
9134 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
9135 (arm_adjust_breakpoint_address): New function.
9136 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
9138 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9140 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
9141 (arm_linux_thumb2_le_breakpoint): New constants.
9142 (arm_linux_init_abi): Set thumb2_breakpoint and
9143 thumb2_breakpoint_size.
9144 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
9145 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
9146 Implement support for single stepping through IT blocks if
9147 a 32-bit Thumb breakpoint instruction is available.
9148 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
9149 is available, use it when needed.
9150 (arm_remote_breakpoint_from_pc): New function.
9151 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
9152 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
9153 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
9155 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9157 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
9158 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
9159 * gdbarch.c, gdbarch.h: Regenerated.
9160 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
9161 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
9162 gdbarch_remote_breakpoint_from_pc.
9164 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9166 * infrun.c (prepare_to_proceed): Handle other signals which might
9168 (handle_inferior_event): Move the check for unusual breakpoint
9171 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
9173 amd64 - function returning record with field straddling 2 registers.
9174 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
9175 a record of length <= 16 in which a field straddles the two
9178 2010-01-29 Joel Brobecker <brobecker@adacore.com>
9180 Implement return values on amd64-windows.
9181 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
9182 (amd64_windows_return_value): New function.
9183 (amd64_windows_init_abi): Call set_gdbarch_return_value with
9184 amd64_windows_return_value.
9186 2010-01-29 Joel Brobecker <brobecker@adacore.com>
9188 amd64-windows: 32 bytes allocated on stack by caller for integer
9189 parameter registers.
9190 * i386-tdep.h (struct gdbarch_tdep): Add new field
9191 integer_param_regs_saved_in_caller_frame.
9192 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
9193 tdep->integer_param_regs_saved_in_caller_frame to 1.
9194 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
9195 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
9197 2010-01-29 Joel Brobecker <brobecker@adacore.com>
9199 amd64-windows: memory args passed by pointer during function calls.
9200 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
9201 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
9202 where tdep->memory_args_by_pointer is non-zero.
9203 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
9204 tdep->memory_args_by_pointer to 1.
9206 2010-01-29 Joel Brobecker <brobecker@adacore.com>
9208 amd64-windows: Integer parameters in function calls.
9209 * i386-tdep.h (enum amd64_reg_class): New, moved here from
9211 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
9212 call_dummy_integer_regs, and classify.
9213 * amd64-tdep.h (amd64_classify): Add declaration.
9214 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
9215 (amd64_reg_class): Delete, moved to i386-tdep.h.
9216 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
9217 Replace call to amd64_classify by call to tdep->classify.
9218 (amd64_push_arguments): Get the list of registers to use for
9219 passing integer parameters from the gdbarch tdep structure,
9220 rather than using a hardcoded one. Replace calls to amd64_classify
9221 by calls to tdep->classify.
9222 (amd64_push_dummy_call): Get the register number used for
9223 the "hidden" argument from tdep->call_dummy_integer_regs.
9224 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
9225 and tdep->call_dummy_integer_regs. Set tdep->classify.
9226 * amd64-windows-tdep.c: Add include of gdbtypes.h.
9227 (amd64_windows_dummy_call_integer_regs): New static global.
9228 (amd64_windows_classify): New function.
9229 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
9230 tdep->call_dummy_integer_regs and tdep->classify.
9232 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
9234 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
9235 for the new regcache. All callers updated.
9236 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
9237 (get_thread_arch_regcache): Do not set aspace here.
9238 * regcache.h (regcache_xmalloc): Update declaration.
9240 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
9241 regcache_xmalloc updated.
9243 2010-01-28 Joel Brobecker <brobecker@adacore.com>
9245 Another -Wunused-function error in procfs.c (sparc-solaris)
9246 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
9247 Only define if SYS_syssgi is defined.
9248 (remove_dbx_link_breakpoint): Delete declaration. Move up.
9249 (dbx_link_addr, insert_dbx_link_bpt_in_file)
9250 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
9253 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
9255 * windows-nat.c (windows_initialization_done): New variable.
9256 (get_windows_debug_event): Issue error when process dies before
9257 completely initializing.
9258 (do_initial_windows_stuff): Set flag to indicate when we are done with
9259 the initial steps of attaching to the child.
9261 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9263 * symtab.h (struct symbol <symtab>): New comment on NULL values.
9265 2010-01-27 Doug Evans <dje@google.com>
9267 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
9269 * breakpoint.c (bpstat_stop_status): Delete useless code.
9271 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9273 * printcmd.c (display_uses_solib_p): Remove variable section. Access
9274 objfile via SYMBOL_SYMTAB.
9276 2010-01-26 Tom Tromey <tromey@redhat.com>
9279 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
9280 coerce_array on result.
9282 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
9284 * cp-namespace.c (cp_lookup_symbol_namespace): Added
9285 search_parent argument.
9286 (cp_add_using): Initialize 'searched' field.
9287 (reset_directive_searched): New function.
9288 * cp-support.h: Add 'searched' field to using_direct struct.
9289 (cp_lookup_symbol_imports): Ditto.
9290 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
9291 Perform recursive search.
9292 Implement non parent search.
9293 * valops.c (value_maybe_namespace_elt): Updated.
9295 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
9298 * dwarf2read.c (read_lexical_block_scope): Create blocks for
9299 scopes which contain using directives even if they contain no
9301 * symtab.c (lookup_symbol_aux): Pass lowest level block to
9302 la_lookup_symbol_nonlocal.
9303 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
9304 cp_lookup_symbol_namespace.
9305 (cp_lookup_symbol_namespace): Perform an import lookup at every
9307 (cp_lookup_symbol_imports): New function.
9308 (cp_lookup_symbol_in_namespace): New function.
9310 2010-01-25 Tom Tromey <tromey@redhat.com>
9313 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
9316 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9318 * configure.ac: Only use host_os part when disabling TUI on osf.
9319 Use test to check variables, prefix strings with x.
9320 * configure: Regenerate.
9322 * solib-osf.c (osf_current_sos): Initialize tail.
9324 2010-01-25 gingold <gingold@adacore.com>
9326 * windows-nat.c (windows_continue): Use %x to print thread id.
9327 (get_windows_debug_event): Ditto.
9329 2010-01-22 Tom Tromey <tromey@redhat.com>
9332 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
9333 type and arguments. Use smash_to_methodptr_type.
9334 (read_structure_type): Call quirk_gcc_member_function_pointer
9336 * gdbtypes.h (smash_to_methodptr_type): Declare.
9337 * gdbtypes.c (smash_to_methodptr_type): New function.
9338 (lookup_methodptr_type): Use it.
9340 2010-01-21 Tom Tromey <tromey@redhat.com>
9343 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
9344 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
9345 * glibc-tdep.c (find_minsym_and_objfile): Remove.
9346 (glibc_skip_solib_resolver): Use
9347 lookup_minimal_symbol_and_objfile.
9349 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
9351 * inflow.c (check_syscall): Guard by #if clause for GO32 and
9354 2010-01-20 Tom Tromey <tromey@redhat.com>
9357 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
9358 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
9359 * dwarf2expr.c (new_dwarf_expr_context): Allocate
9360 dwarf_stack_values, not CORE_ADDRs.
9361 (execute_stack_op): Change DW_OP_div and comparison operators to
9362 use signed operands.
9364 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
9366 Per-inferior args and tty and environment.
9368 * infcmd.c (inferior_args): Rename to ...
9369 (inferior_args_scratch): ... this.
9370 (inferior_io_terminal): Rename to ...
9371 (inferior_io_terminal_scratch): ... this.
9372 (inferior_argc, inferior_argv): Remove.
9373 (set_inferior_io_terminal, get_inferior_io_terminal): Store
9374 inside current_inferior().
9375 (set_inferior_tty_command, show_inferior_tty_command): New.
9376 (get_inferior_args, set_inferior_args): Store inside
9378 (notice_args_set): Likewise and rename to...
9379 (set_args_command): ... this.
9380 (set_inferior_args_vector): Likewise.
9381 (notice_args_read): Rename to...
9382 (show_args_command): ...new.
9383 (tty_command): Remove.
9384 (run_command_1): Don't free old args, as they are freed by
9385 set_inferior_arg now.
9386 (run_no_args_command): Likewise.
9387 (inferior_environ): Remove.
9388 (run_command_1): Use environment of the current inferior.
9389 (environment_info, set_environment_command)
9390 (unset_environment_command, path_info, path_command): Likewise.
9391 (_initialize_infcmd): Adjust for function and variable renames.
9392 Do not init inferior_environ.
9393 * inferior.h (set_inferior_arg): Adjust prototype.
9394 (struct inferior): New fields args, argc, argv, terminal, environment.
9395 (inferior_environ): Remove declaration.
9396 * inferior.c (free_inferior): Free new fields.
9397 (add_inferior_silent): Initialize 'environment' field.
9398 * main.c (captured_main): Set arguments only after the initial
9399 inferior has been created. Set set_inferior_io_terminal,
9401 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
9403 (_initialize_mi_cmd_env): Adjust for disappearance of global
9405 * solib.c (solib_find): Use environment of the current inferior.
9407 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9409 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
9411 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
9413 2010-01-20 Joel Brobecker <brobecker@adacore.com>
9415 Get rid of ada-lang.c:function_name_from_pc.
9416 * ada-lang.c: Add "stack.h" #include.
9417 (function_name_from_pc): Delete.
9418 (is_known_support_routine): Replace call to function_name_from_pc
9419 by call to find_frame_funname.
9420 (ada_unhandled_exception_name_addr_from_raise): Likewise.
9422 2010-01-19 Tom Tromey <tromey@redhat.com>
9425 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
9428 2010-01-19 Tom Tromey <tromey@redhat.com>
9430 * top.c (stop_sig, float_handler, do_nothing): Remove.
9432 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9434 * breakpoint.c (watchpoint_check): Check the call
9435 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
9437 * config/djgpp/fnchange.lst: Add translations for
9438 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
9439 watchpoint-cond-gone-stripped.c.
9441 2010-01-19 Tom Tromey <tromey@redhat.com>
9444 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
9445 into parent scope, and enumerator into grandparent scope.
9447 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9449 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
9451 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9453 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
9454 i[34567]86-*-solaris2.1[0-9]*.
9455 * configure.tgt: Likewise.
9457 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9459 * NEWS: Document the source command enhancement allowing it
9460 to load Python scripts. Document the "set/show script-extension"
9463 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9465 Add -Wunused-function to compile flags.
9466 * configure.ac: Add -Wunused-function to build_warnings.
9467 * configure: Regenerate.
9469 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9471 "delete" ada-lex.c:input function, not used.
9472 * ada-lex.l: #define YY_NO_INPUT.
9474 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9476 Delete free_named_symtabs and associated cleanup.
9477 * symfile.h (free_named_symtabs): Delete declaration.
9478 * symfile.c: Remove some commented out code (clear_symtab_users_once).
9479 (cashier_psymtab): Comment function out.
9481 (free_named_symtabs): Delete.
9482 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
9483 * dbxread.c (end_psymtab): Likewise.
9484 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
9485 * exec.c (exec_close_1): Ditto.
9486 * xcoffread.c (xcoff_end_psymtab): Likewise.
9488 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9490 * stack.c (print_block_frame_labels): Comment function out.
9492 2010-01-19 Joel Brobecker <brobecker@adacore.com>
9494 Delete unused or undefined functions.
9495 * breakpoint.c (ep_parse_optional_filename): Delete.
9496 * dcache.c (dcache_write_line): Remove declaration.
9497 * infrun.c (build_infrun): Remove declaration.
9498 * tracepoint.c (tracepoint_save_command): Remove declaration.
9499 * linux-nat.c (init_lwp_list): Delete. No longer used.
9500 * event-loop.c (check_async_signal_handlers): Delete declaration.
9501 * infrun.c (init_execution_control_state): Delete.
9502 (proceed): Update comment to avoid mentioning
9503 init_execution_control_state.
9504 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
9505 * ada-lang.c (ada_to_static_fixed_value): Delete.
9506 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
9507 * cp-namespace.c (cp_copy_usings): Delete.
9508 * xml-syscall.c (xml_number_of_syscalls): Delete.
9509 * progspace.c (find_program_space_by_num): Delete.
9510 * inflow.c (handle_sigio): Delete declaration.
9511 * hppa-tdep.c (hppa_alignof): Delete.
9512 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
9513 (mipsnbsd_core_osabi_sniffer): Delete.
9515 2010-01-18 Tom Tromey <tromey@redhat.com>
9518 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
9519 (CONST_CAST): New tokens.
9520 (exp): Add new productions.
9521 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
9523 (is_cast_operator): New function.
9524 (yylex): Handle cast operators specially.
9525 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
9526 UNOP_REINTERPRET_CAST>: New cases.
9527 * expprint.c (print_subexp_standard): Likewise.
9528 (op_name_standard): Likewise.
9529 (dump_subexp_body_standard): Likewise.
9530 * parse.c (operator_length_standard): Likewise.
9531 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
9532 UNOP_REINTERPRET_CAST.
9533 * gdbtypes.c (class_types_same_p): New function.
9534 (is_ancestor): Use it.
9535 (is_public_ancestor): New function.
9536 (is_unique_ancestor_worker): Likewise.
9537 (is_unique_ancestor): Likewise.
9538 * gdbtypes.h (class_types_same_p, is_public_ancestor)
9539 (is_unique_ancestor): Declare.
9540 * valops.c (value_reinterpret_cast): New function.
9541 (dynamic_cast_check_1): Likewise.
9542 (dynamic_cast_check_2): Likewise.
9543 (value_dynamic_cast): Likewise.
9544 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
9546 2010-01-18 Joel Brobecker <brobecker@adacore.com>
9548 Fix build failure when building without Python support.
9549 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
9552 2010-01-18 Joel Brobecker <brobecker@adacore.com>
9554 Use XVS field type instead of doing a parallel lookup.
9555 * ada-lang.c (ada_get_base_type): Follow the XVS field type
9556 if it is a reference type instead of doing a type lookup using
9559 2010-01-18 Joel Brobecker <brobecker@adacore.com>
9561 Trust PAD types instead of using PAD___XVS.
9562 * ada-lang.c (trust_pad_over_xvs): New static variable.
9563 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
9564 parallel XVS type, follow the XVS type instead of the PAD type.
9565 (unwrap_value): Make sure that there is no parallel XVE type
9566 before returning the value as is.
9567 (set_ada_list, show_ada_list): New static variables.
9568 (set_ada_command, show_ada_command): New functions.
9569 (_initialize_ada_language): Add new "set/show ada" prefix commands.
9570 Add new "set/show ada trust-PAD-over-XVS" setting.
9572 2010-01-18 Tom Tromey <tromey@redhat.com>
9573 Thiago Jung Bauermann <bauerman@br.ibm.com>
9575 Allow "source" to load python scripts.
9576 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
9577 * python/python.c (source_python_script): New function.
9578 * python/python.h (source_python_script): Add declaration.
9579 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
9580 (script_ext_off, script_ext_soft, script_ext_strict)
9581 (script_ext_enums, script_ext_mode): New static constants.
9582 (show_script_ext_mode, find_and_open_script): New functions.
9583 (source_script): Enhance to handle Python scripts.
9584 (init_cli_cmds): Add set/show script-extension commands.
9586 2010-01-16 Stan Shebs <stan@codesourcery.com>
9588 * tracepoint.h (struct trace_status): Use unsigned long long
9590 * tracepoint.c (trace_status_command): Fix printf directive.
9591 (trace_save_command): Check fwrite returns, fix printf directive.
9592 (trace_filename): New global.
9593 (tfile_open): Set it, check read returns.
9594 (tfile_close): Free trace_filename.
9595 (tfile_get_traceframe_address): Check read returns.
9596 (tfile_trace_find): Ditto.
9597 (tfile_fetch_registers): Ditto.
9598 (tfile_xfer_partial): Ditto.
9599 (tfile_get_trace_state_variable_value): Ditto.
9601 2010-01-15 Stan Shebs <stan@codesourcery.com>
9603 Add trace file support.
9604 * tracepoint.h (enum trace_stop_reason): New enum.
9605 (struct trace_status): New struct.
9606 (parse_trace_status): Declare.
9607 (struct uploaded_tp): Move here from remote.c,
9608 add fields for actions.
9609 (struct uploaded_tsv): New struct.
9610 * tracepoint.c (tfile_ops): New target vector.
9611 (trace_fd): New global.
9612 (tfile_open): New function.
9613 (tfile_close): New function.
9614 (tfile_files_info): New function.
9615 (tfile_get_trace_status): New function.
9616 (tfile_get_traceframe_address): New function.
9617 (tfile_trace_find): New function.
9618 (tfile_fetch_registers): New function.
9619 (tfile_xfer_partial): New function.
9620 (tfile_get_trace_state_variable_value): New function.
9621 (init_tfile_ops): New function.
9622 (_initialize_tracepoint): Call it, add tfile target.
9623 (trace_status): New global.
9624 (current_trace_status): New function.
9625 (trace_running_p): Remove, change all users to get from
9626 current_trace_status()->running.
9627 (get_trace_status): Remove.
9628 (trace_status_command): Call target_get_trace_status directly,
9629 report more detail including tracing stop reasons.
9630 (trace_find_command): Always allow tfind on a file.
9631 (trace_find_pc_command): Ditto.
9632 (trace_find_tracepoint_command): Ditto.
9633 (trace_find_line_command): Ditto.
9634 (trace_find_range_command): Ditto.
9635 (trace_find_outside_command): Ditto.
9636 (trace_frames_offset, cur_offset): Declare as off_t.
9637 (trace_regblock_size): Rename from reg_size, update users.
9638 (parse_trace_status): New function.
9639 (tfile_interp_line): New function.
9640 (disconnect_or_stop_tracing): Ensure current trace
9641 status before asking what to do.
9642 (stop_reason_names): New global.
9643 (trace_save_command): New command.
9644 (get_uploaded_tp): Move here from remote.c.
9645 (find_matching_tracepoint): Ditto.
9646 (merge_uploaded_tracepoints): New function.
9647 (parse_trace_status): Use stop_reason_names.
9648 (_initialize_tracepoint): Define tsave command.
9649 * target.h (target_ops): New fields to_save_trace_data,
9650 to_upload_tracepoints, to_upload_trace_state_variables,
9651 to_get_raw_trace_data, change to_get_trace_status
9652 to take a pointer to a status struct.
9653 (target_save_trace_data): New macro.
9654 (target_upload_tracepoints): New macro.
9655 (target_upload_trace_state_variables): New macro.
9656 (target_get_raw_trace_data): New macro.
9657 * target.c (update_current_target): Add new methods, change
9658 signature of to_get_trace_status.
9659 * remote.c (hex2bin): Make globally visible.
9661 (remote_download_trace_state_variable): Download name also.
9662 (remote_get_trace_status): Update parameter, use
9664 (remote_save_trace_data): New function.
9665 (remote_upload_tracepoints): New function.
9666 (remote_upload_trace_state_variables): New function.
9667 (remote_get_raw_trace_data): New function.
9668 (remote_start_remote): Use them.
9669 (_initialize_remote_ops): Add operations.
9670 * ax-gdb.c: Include breakpoint.h.
9671 * breakpoint.c (create_tracepoint_from_upload): Use
9672 break_command_really, return tracepoint, warn about unimplemented
9674 * NEWS: Mention trace file addition.
9676 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9678 Fix compilation warning on gcc-3.4.
9679 * exec.c (print_section_info): Move the `displacement' variable
9680 initialization to its declaration.
9682 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9684 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
9687 2010-01-15 Eric Botcazou <botcazou@adacore.com>
9689 "info tasks" broken by typedefs in ATCB type definitions.
9690 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
9691 ada_check_typedef before retrieving the length of the type for
9694 2010-01-15 Joel Brobecker <brobecker@adacore.com>
9696 Do not use name-based lookup for unconstrained packed arrays.
9697 * ada-lang.c (find_parallel_type_by_descriptive_type):
9698 Limit the fallback to name-based lookups to the case where
9699 the type is a constrained packed array.
9701 2010-01-15 Joel Brobecker <brobecker@adacore.com>
9703 Enhance gdb-gdb.py to handle main_type.type_specific.
9704 * gdb-gdb.py: Print the type-specific part of struct main_type.
9706 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9708 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
9709 * configure: Regenerate.
9710 * config.in: Regenerate.
9711 * utils.c: Include sys/resource.h.
9712 (dump_core, can_dump_core): New.
9713 (internal_vproblem): Update the comment. Check can_dump_core while
9714 setting dump_core_p. Replace two abort calls by dump_core calls.
9716 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9717 Eli Zaretskii <eliz@gnu.org>
9719 * NEWS: Document the PIE support.
9721 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9723 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
9724 (check_is_pie_binary, _initialize_linux_tdep): Remove.
9726 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9728 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
9729 Replace exec_entry_point call by bfd_get_start_address.
9731 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9733 Support Valgrind attachments broken by the PIE support.
9734 * auxv.c: Include gdbcore.h.
9735 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
9736 parameters ops, object and annex. Remove their assertions.
9737 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
9738 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
9739 (memory_xfer_auxv): ... here.
9740 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
9742 * procfs.c (procfs_xfer_partial): Likewise.
9743 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
9744 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
9745 (svr4_solib_create_inferior_hook): Conditionalize the
9746 svr4_relocate_main_executable call.
9748 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9750 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
9751 target_section. Find SECT in current_target_sections, gdb_assert it.
9752 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
9754 * symtab.c (lookup_objfile_from_block): Return the binary file instead
9755 of separate debug info file.
9757 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9759 Support PIEs with no symfile_objfile.
9760 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
9761 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
9763 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9765 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
9767 (svr4_static_exec_displacement): ... a new function.
9768 (svr4_exec_displacement): New function.
9769 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
9770 new_offsets using alloca now. Remove variable old_chain and changed.
9771 Call objfile_relocate unconditionally now.
9773 2010-01-14 Doug Evans <dje@google.com>
9775 * gdbtypes.c (arch_flags_type): Fix comment.
9776 * gdbtypes.h (arch_composite_type): Fix comment.
9778 2009-01-14 Tristan Gingold <gingold@adacore.com>
9780 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
9781 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
9782 to symbol_file_add_from_bfd. Add OSO as separate objfile.
9783 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
9784 macho_add_oso_symfile.
9785 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
9787 2010-01-14 Joel Brobecker <brobecker@adacore.com>
9789 Tru64: Dead threads are never deleted.
9790 * dec-thread.c (dec_thread_ptid_is_alive): New function.
9791 (dec_thread_count_gdb_threads): Fix counter increment.
9792 (dec_thread_add_gdb_thread): Fix *listp increment.
9793 (resync_thread_list): Fix bug in deletion of dead threads that
9794 caused all threads to be deleted, instead of just the dead ones.
9796 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
9800 * python/python-internal.h: Add lazy_string_object_type
9802 (create_lazy_string_object, gdbpy_initialize_lazy_string)
9803 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
9804 * python/py-value.c (valpy_lazy_string): New function.
9805 (convert_value_from_python): Add lazy string conversion.
9806 * python/py-prettyprint.c (pretty_print_one_value): Check if
9807 return is also a lazy string.
9808 (print_string_repr): Add lazy string printing branch.
9809 (print_children): Likewise.
9810 * python/py-lazy-string.c: New file. Implement lazy strings.
9811 * python/python.c (_initialize_python): Call
9812 gdbpy_initialize_lazy_string.
9813 * varobj.c (value_get_print_value): Add lazy string printing
9814 branch. Account for encoding.
9815 * c-lang.c (c_printstr): Account for new encoding argument. If
9816 encoding is NULL, find encoding suited for type, otherwise use
9818 * language.h (language_defn): Add encoding argument.
9819 (LA_PRINT_STRING): Likewise.
9820 * language.c (unk_lang_printstr): Update to reflect new encoding
9821 argument to language_defn.
9822 * ada-lang.h (ada_printstr): Likewise.
9823 * c-lang.h (c_printstr): Likewise.
9824 * p-lang.h (pascal_printstr);
9825 * f-lang.c (f_printstr): Likewise.
9826 * m2-lang.c (m2_printstr): Likewise.
9827 * objc-lang.c (objc_printstr): Likewise.
9828 * p-lang.c (pascal_printstr): Likewise.
9829 * scm-lang.c (scm_printstr): Likewise.
9830 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
9832 * ada-valprint.c (ada_printstr): Likewise.
9833 * f-valprint.c (f_val_print): Likewise
9834 * m2-valprint.c (m2_val_print): Likewise.
9835 * p-valprint.c (pascal_val_print): Likewise.
9836 * expprint.c (print_subexp_standard): Likewise.
9837 * valprint.c (val_print_string): Likewise.
9838 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
9839 (SUBDIR_PYTHON_SRCS): Likewise.
9840 (py-lazy-string.o): New rule.
9842 2010-01-13 Doug Evans <dje@google.com>
9844 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
9845 uninitialized" warning from gcc on local `tree'.
9847 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
9849 Implement core awareness.
9851 * bcache.c (compare_ints): Remove
9852 (print_percentage): Use compare_positive_ints.
9853 * defs.h (compare_positive_ints): Declare.
9854 * linux-nat.h (struct lin_lwp): New field core.
9855 (linux_nat_core_of_thread_1): Declare.
9856 * linux-nat.c (add_lwp): Init the 'core' field.
9857 (linux_nat_wait_1): Record the core.
9858 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
9859 (linux_nat_add_target): Register the above.
9860 * linux-thread-db.c (update_thread_core): New.
9861 (thread_db_find_new_threads): Update core information for
9863 * remote.c (struct private_thread_info): New.
9864 (free_private_thread_info, demand_private_info): New.
9865 (PACKET_qXfer_threads, use_osdata_threads): New.
9866 (struct thread_item, threads_parsing_context
9867 (start_thread, end_thread, thread_attributes)
9868 (thread_children, threads_children, threads_elements): New.
9869 (remote_threads_info): Try qXfer:threads before anything
9871 (remote_protocol_packets): Register qXfer:threads.
9872 (remote_open_1): Init use_osdata_threads.
9873 (struct stop_reply): New field 'core'.
9874 (remote_parse_stop_reply): Parse core number.
9875 (process_stop_reply): Record core number.
9876 (remote_xfer_partial): Handle qXfer:threads.
9877 (remote_core_of_thread): New.
9878 (init_remote_ops): Register remote_core_of_thread.
9879 (_initialize_remote): Register qXfer:read.
9880 * target.c (target_core_of_thread): New
9881 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
9882 (struct target_ops): New field to_core_of_threads.
9883 (target_core_of_thread): Declare.
9884 * gdbthread.h (struct thread_info): New field private_dtor.
9885 * thread.c (print_thread_info): Report the core.
9886 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
9887 * utils.c (compare_positive_ints): New.
9888 * features/threads.dtd: New.
9889 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
9890 * mi/mi-main.c (struct collect_cores_data, collect_cores)
9891 (do_nothing, free_vector_of_osdata_items)
9892 (splay_tree_int_comparator, free_splay_tree): New.
9893 (print_one_inferior_data): Implemented printing of selected
9894 inferiors. Collect and print cores.
9895 (output_cores): New.
9896 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
9897 thread groups together with --available.
9899 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9901 * configure: Regenerate (for _STRUCTURED_PROC).
9903 2010-01-12 Joel Brobecker <brobecker@adacore.com>
9905 Delete dead function.
9906 * ada-lang.c (extract_string): Delete. No longer used.
9908 2010-01-12 Joel Brobecker <brobecker@adacore.com>
9910 Fix -Wunused warning in dec-thread.c.
9911 * dec-thread.c (dec_thread_count_gdb_threads)
9912 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
9914 2010-01-12 Joel Brobecker <brobecker@adacore.com>
9916 * ada-valprint.c (ada_print_floating): Remove trailing space.
9918 2010-01-12 Joel Brobecker <brobecker@adacore.com>
9920 Add support for DW_AT_GNAT_descriptive_type.
9921 * gdbtypes.h (enum type_specific_kind): New enum.
9922 (struct main_type) [type_specific_field]: New component.
9923 [type_specific]: Add new component "gnat_stuff".
9924 (struct gnat_aux_type): New type.
9925 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
9926 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
9927 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
9928 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
9929 (TYPE_SPECIFIC_FIELD): New macros.
9930 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
9931 type does not hold any cplus-specific data.
9932 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
9933 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
9934 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
9935 cplus-specific data.
9936 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
9937 Set new component TYPE_SPECIFIC_FIELD (type).
9938 (gnat_aux_default): New constant.
9939 (allocate_gnat_aux_type): New function.
9940 (init_type): Add initialization the type-specific stuff for
9941 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
9942 (print_gnat_stuff): New function.
9943 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
9944 specific data. Adjust code that prints the contents of the
9945 type-specific union using the TYPE_SPECIFIC_FIELD value.
9946 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
9947 the type cplus stuff for Ada types.
9948 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
9949 Error out if these routines are called with an Ada type.
9950 (read_structure_type, read_array_type, read_subrange_type):
9951 Add call to set_descriptive_type.
9952 (set_die_type): Initialize the gnat-specific data if necessary.
9953 (need_gnat_info, die_descriptive_type, set_descriptive_type):
9955 * ada-lang.c (decode_constrained_packed_array_type): Use
9956 decode_constrained_packed_array_type instead of doing a standard
9957 lookup to locate a parallel type.
9958 (find_parallel_type_by_descriptive_type): New function.
9959 (ada_find_parallel_type_with_name): New function.
9960 (ada_find_parallel_type): Reimplement using
9961 ada_find_parallel_type_with_name.
9962 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
9963 to check if type has a cplus stuff.
9964 * linespec.c (total_number_of_methods): Likewise.
9965 * mdebugread.c (new_type): Likewise.
9967 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9969 * NEWS: Document the 0b binary number prefix parsing.
9971 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9973 * objfiles.c (objfile_relocate1): Change the return type to int.
9974 Describe the new return value. Return non-zero if data changed.
9975 (objfile_relocate): New variable changed. Set it. Call
9976 breakpoint_re_set depending on CHANGED.
9978 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9980 Implement binary numbers parsing.
9981 * c-exp.y (parse_number): New case 'b' and 'B'.
9983 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9984 Tristan Gingold <gingold@adacore.com>
9986 * solib.c (info_sharedlibrary_command): Replace
9987 objfile_has_partial_symbols and objfile_has_full_symbols calls by
9988 objfile_has_symbols.
9990 2010-01-10 Joel Brobecker <brobecker@adacore.com>
9992 * NEWS: Document the improvements made to the mips-irix port.
9994 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9996 Fix the documentation of valprint.c:value_print.
9997 * valprint.c (value_print): Update the function description to
9998 mention that the syntax of the output follows the current_language,
10001 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10003 Fix displacement of separate debug info files.
10004 * objfiles.c (objfile_relocate): Rename to ...
10005 (objfile_relocate1): ... here and make it static. Extend the comment.
10006 (objfile_relocate): New function.
10007 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
10008 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
10009 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
10010 allocated using alloca.
10011 * symfile.c (copy_section_addr_info): Remove.
10012 (build_section_addr_info_from_objfile): Make it global. New variables
10013 addr_bit and mask, use them.
10014 * symfile.h (build_section_addr_info_from_objfile): New prototype.
10015 (copy_section_addr_info): Remove.
10017 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10019 Signal unwinder for mips-irix N32.
10020 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
10022 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
10023 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
10024 (SIGCONTEXT_LO_OFF): New macros.
10025 (mips_irix_n32_tramp_frame_init): New function.
10026 (mips_irix_n32_tramp_frame): New static constant.
10027 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
10029 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10031 Breakpoint in shared library does not work on mips-irix.
10032 * procfs.c: #include "observer.h".
10033 (procfs_inferior_created): New function, moving here the code
10034 which unsets the syssgi syscall-exit notifications.
10035 (procfs_create_inferior): Remove the code which unsets the syssgi
10036 syscall-exit notifications. It is too early to do this here.
10037 (_initialize_procfs): Attach the procfs_inferior_created observer.
10039 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10041 Wrong return convention for arrays (mips-irix).
10042 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
10043 128 bits or smaller are returned the same way as structs
10044 and unions of the the same size.
10046 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10048 Cannot set the PC on mips-irix.
10049 * irix5-nat.c (fill_gregset): Check regno against the raw PC
10050 register number, no the cooked one.
10052 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10054 Error while loading core file on mips-irix.
10055 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
10056 if debugging from a core file.
10058 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10060 GDB hangs when attaching to process on mips-irix.
10061 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
10062 attaching to a process.
10064 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10066 Use the correct breakpoint instruction on mips-irix.
10067 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
10068 containing the correct breakpoint instruction to use on mips-irix.
10069 Use it when the osabi is GDB_OSABI_IRIX.
10071 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10073 -Wunused warning in procfs.c (mips-irix only).
10074 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
10075 throughout instead of using praddset and prdelset respectively.
10077 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10079 GDB crash while stepping into function.
10080 * infrun.c (handle_inferior_event): Refetch the current frame
10081 after handling what.main_action, in case that pointer became
10084 2010-01-09 Joel Brobecker <brobecker@adacore.com>
10086 Fix build failure of solaris-hosted cross debuggers.
10087 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
10089 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
10091 Fix build failure on sparc-solaris.
10092 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
10094 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10096 Move some symfile code into subroutines.
10097 * symfile.h (relative_addr_info_to_section_offsets)
10098 (addr_info_make_relative): New prototypes.
10099 * symfile.c (default_symfile_offsets): Move a part to ...
10100 (relative_addr_info_to_section_offsets): ... this new function.
10101 (default_symfile_offsets): Call it.
10102 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
10104 (addr_info_make_relative): ... this new function.
10106 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10108 Add from_tty to solib_create_inferior_hook.
10109 * infcmd.c (post_create_inferior): Move solib_add after
10110 solib_create_inferior_hook. Pass from_tty to
10111 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
10112 0 from_tty and comment why.
10113 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
10114 * linux-nat.c (linux_child_follow_fork): Likewise.
10115 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
10116 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
10118 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
10119 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
10120 * solib-null.c (null_solib_create_inferior_hook): Likewise.
10121 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
10122 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
10123 * solib-som.c (som_solib_create_inferior_hook): Likewise.
10124 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
10125 Pass it to svr4_so_ops.solib_create_inferior_hook.
10126 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
10128 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
10130 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
10132 * solib-target.c (solib_target_solib_create_inferior_hook): New
10133 parameter from_tty.
10134 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
10135 it to ops->solib_create_inferior_hook.
10136 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
10137 Move solib_add after solib_create_inferior_hook, call it now with
10138 from_tty as 0. New comment there.
10139 * solib.h (solib_create_inferior_hook): New parameter from_tty.
10140 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
10143 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
10145 Fix multiexec race.
10146 * infrun.c (handle_inferior_event): Use get_thread_regcache
10147 with events ptid, not get_current_regcache.
10149 2009-01-08 Joel Brobecker <brobecker@adacore.com>
10151 GDB crash with empty executable name (MinGW).
10152 * source.c (openp): Add assert that parameter string is not NULL.
10153 if parameter string is an empty string, then return with a failure
10156 2009-01-08 Joel Brobecker <brobecker@adacore.com>
10158 Get rid of support for VAX Floats.
10159 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
10160 (ada_vax_float_print_function): Delete.
10161 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
10162 (ada_vax_float_print_function): Delete.
10163 * ada-typeprint.c (print_vax_floating_point_type): Delete.
10164 (ada_print_type): Remove support for VAX floats.
10165 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
10167 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10169 * stabsread.c (read_args): Handle zero arguments.
10171 2009-01-08 Joel Brobecker <brobecker@adacore.com>
10173 Cannot find in-tree libiconv.a after reconfigure.
10174 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
10175 that we can use, then cache the path to this archive.
10176 * configure: Regenerate.
10178 2010-01-07 Stan Shebs <stan@codesourcery.com>
10180 Make tracepoint operations go through target vector.
10181 * target.h (enum trace_find_type): New enum.
10182 (struct target_ops): New fields to_trace_init,
10183 to_download_tracepoint, to_download_trace_state_variable,
10184 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
10185 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
10186 to_set_disconnected_tracing.
10187 (target_trace_init): New macro.
10188 (target_download_tracepoint): New macro.
10189 (target_download_trace_state_variable): New macro.
10190 (target_trace_start): New macro.
10191 (target_trace_set_readonly_regions): New macro.
10192 (target_get_trace_status): New macro.
10193 (target_trace_stop): New macro.
10194 (target_trace_find): New macro.
10195 (target_get_trace_state_variable_value): New macro.
10196 (target_set_disconnected_tracing): New macro.
10197 * target.c (update_current_target): Inherit and set defaults for
10198 tracepoint operations.
10199 * tracepoint.c (default_collect): Make globally visible.
10200 (target_is_remote): Remove, along with all calls.
10201 (tvariables_info): Call target_get_trace_state_variable_value.
10202 (remote_set_transparent_ranges): Remove.
10203 (trace_start_command): Call target_trace_init,
10204 target_download_tracepoint, etc.
10205 (download_tracepoint): Remove.
10206 (trace_stop_command): Simplify.
10207 (stop_tracing): Call target_trace_stop.
10208 (get_trace_status): Call target_get_trace_status.
10209 (trace_status_command): Add case for targets that cannot trace.
10210 (finish_tfind_command): Change to take numerical arguments, call
10212 (trace_find_command): Update call to finish_tfind_command.
10213 (trace_find_pc_command): Ditto.
10214 (trace_find_tracepoint_command): Ditto.
10215 (trace_find_line_command): Ditto.
10216 (trace_find_range_command): Ditto.
10217 (trace_find_outside_command): Ditto.
10218 (set_disconnected_tracing_value): Call
10219 target_set_disconnected_tracing.
10220 * remote.c: Add protocol encoding bits from tracepoint.c.
10221 (trace_error): Move from tracepoint.c.
10222 (remote_get_noisy_reply): Ditto.
10223 (free_actions_list_cleanup_wrapper): Ditto.
10224 (free_actions_list): Ditto.
10225 (remote_trace_init): New function.
10226 (remote_download_tracepoint): New function.
10227 (remote_download_trace_state_variable): New function.
10228 (remote_trace_set_readonly_regions): New function.
10229 (remote_trace_start): New function.
10230 (remote_get_trace_status): New function.
10231 (remote_trace_stop): New function.
10232 (remote_trace_find): New function.
10233 (remote_download_trace_state_variable): New function.
10234 (remote_set_disconnected_tracing): New function.
10235 (init_remote_ops): Add tracepoint operations.
10237 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
10239 2010-01-07 Tristan Gingold <gingold@adacore.com>
10241 * symfile.c (build_section_addr_info_from_objfile): New function.
10242 (symbol_file_add_separate): Don't use offsets from objfile but
10243 built an addr info.
10245 2010-01-06 Stan Shebs <stan@codesourcery.com>
10247 Support disconnected tracing.
10248 * infcmd.c (detach_command): Ask whether to stop tracing.
10249 * cli/cli-cmds.c (quit_command): Ditto.
10250 * breakpoint.h (struct breakpoint): New field number_on_target.
10251 * breakpoint.c (create_tracepoint_from_upload): New function.
10252 (get_tracepoint_by_number_on_target): New function.
10253 * remote.c (struct remote): New field disconnected_tracing.
10254 (remote_disconnected_tracing_feature): New function.
10255 (remote_protocol_features): Add DisconnectedTracing.
10256 (struct uploaded_tp): New struct.
10257 (uploaded_tps): New global.
10258 (get_uploaded_tp): New function.
10259 (find_matching_tracepoint): New function.
10260 (remote_get_tracing_state): New function.
10261 (remote_start_remote): Call it.
10262 * tracepoint.c (disconnected_tracing): New global.
10263 (trace_start_command): Initialize number_on_target.
10264 (stop_tracing): New function, split out from...
10265 (trace_stop_command): Call stop_tracing.
10266 (get_trace_status): New function, split out from...
10267 (trace_status_command): Call get_trace_status, add info on
10268 disconnection behavior.
10269 (disconnect_or_stop_tracing): New function.
10270 (finish_tfind_command): Translate from number on target.
10271 (trace_find_tracepoint_command): Translate to number on target.
10272 (send_disconnected_tracing_value): New function.
10273 (set_disconnected_tracing): New function.
10274 (_initialize_tracepoint): Add disconnected-tracing variable.
10275 * NEWS: Mention disconnected tracing.
10277 2010-01-06 Tristan Gingold <gingold@adacore.com>
10279 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
10280 parameter to main_objfile. Iterate on all separate debug objfiles.
10281 * symfile.h (symbol_file_add_separate)
10282 (find_separate_debug_file_by_debuglink): Remove parameter names.
10283 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
10284 (reread_symbols): Use free_objfile_separate_debug.
10285 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
10287 (objfile_separate_debug_iterate, add_separate_debug_objfile)
10288 (free_objfile_separate_debug): New prototypes.
10289 * objfiles.c (objfile_separate_debug_iterate): New function.
10290 (add_separate_debug_objfile, free_objfile_separate_debug): New
10292 (free_objfile): Use free_objfile_separate_debug. Adjust for
10293 multiple separate debug objfile.
10294 (objfile_has_symbols): Adjust comment. Iterate on all separate
10296 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
10298 (lookup_minimal_symbol_text): Ditto.
10299 (lookup_minimal_symbol_by_pc_name): Ditto.
10300 (lookup_minimal_symbol_solib_trampoline): Ditto.
10301 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
10304 2010-01-05 Stan Shebs <stan@codesourcery.com>
10306 Add fast tracepoints.
10307 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
10308 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
10309 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
10310 * breakpoint.c (tracepoint_type): New function.
10311 (ALL_TRACEPOINTS): Use it.
10312 (should_be_inserted): Ditto.
10313 (bpstat_check_location): Ditto.
10314 (print_one_breakpoint_location): Ditto.
10315 (user_settable_breakpoint): Ditto.
10316 (set_breakpoint_location_function): Ditto.
10317 (disable_breakpoints_in_shlibs): Ditto.
10318 (delete_trace_command): Ditto.
10319 (print_it_typical): Add bp_fast_tracepoint case.
10320 (bpstat_what): Ditto.
10321 (print_one_breakpoint_location): Ditto.
10322 (allocate_bp_location): Ditto.
10324 (breakpoint_re_set_one): Ditto.
10325 (disable_command): Ditto.
10326 (enable_command): Ditto.
10327 (check_fast_tracepoint_sals): New function.
10328 (break_command_really): Call it.
10329 (ftrace_command): New function.
10330 (_initialize_breakpoint): Add ftrace command.
10331 * gdbarch.sh (fast_tracepoint_valid_at): New.
10332 * gdbarch.h, gdbarch.c: Regenerate.
10333 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
10334 (i386_gdbarch_init): Use it.
10335 * remote.c (struct remote_state): New field fast_tracepoints.
10336 (PACKET_FastTracepoints): New packet config type.
10337 (remote_fast_tracepoint_feature): New function.
10338 (remote_protocol_features): Add FastTracepoints.
10339 (remote_supports_fast_tracepoints): New function.
10340 (_initialize_remote): Add FastTracepoints.
10341 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
10342 * NEWS: Mention fast tracepoints.
10344 2010-01-06 Joel Brobecker <brobecker@adacore.com>
10346 * gdb-gdb.py: New file.
10348 2010-01-05 Michael Snyder <msnyder@vmware.com>
10350 * infrun.c (handle_inferior_event): Fix typo in comment.
10352 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10354 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
10356 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10358 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
10360 (s390-linux32-expedite): Define.
10361 (s390-linux64-expedite): Define.
10362 (s390x-linux64-expedite): Define.
10363 * features/s390-acr.xml: New file.
10364 * features/s390-fpr.xml: New file.
10365 * features/s390-core32.xml: New file.
10366 * features/s390-core64.xml: New file.
10367 * features/s390x-core64.xml: New file.
10368 * features/s390-linux32.xml: New file.
10369 * features/s390-linux64.xml: New file.
10370 * features/s390x-linux64.xml: New file.
10371 * features/s390-linux32.c: New generated file.
10372 * features/s390-linux64.c: New generated file.
10373 * features/s390x-linux64.c: New generated file.
10375 * regformats/s390-linux32.dat: New generated file.
10376 * regformats/s390-linux64.dat: New generated file.
10377 * regformats/s390x-linux64.dat: New generated file.
10378 * regformats/reg-s390.dat: Remove.
10379 * regformats/reg-s390x.dat: Remove.
10381 * s390-nat.c: Include "auxv.h" and <elf.h>.
10382 (HWCAP_S390_HIGH_GPRS): Define if undefined.
10383 (s390_target_wordsize): New function.
10384 (s390_auxv_parse): Likewise.
10385 (s390_get_hwcap): Likewise.
10386 (s390_read_description): Likewise.
10387 (_initialize_s390_nat): Install s390_auxv_parse and
10388 s390_read_description.
10390 * s390-tdep.c: Include "features/s390-linux32.c",
10391 "features/s390-linux64.c", and "features/s390x-linux64.c".
10392 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
10393 (s390_register_call_saved): New function.
10394 (s390_register_name): Remove.
10395 (s390_register_type): Remove.
10396 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
10397 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
10398 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
10399 (s390_pseudo_register_name): New function.
10400 (s390_pseudo_register_type): New function.
10401 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
10402 Handle full GPR pesudos and varying pseudo register numbers.
10403 (s390_pseudo_register_write): Likewise
10404 (s390x_pseudo_register_read): Remove.
10405 (s390x_pseudo_register_write): Likewise.
10406 (s390_register_group): Remove.
10407 (s390_pseudo_register_group): New function.
10408 (s390_regmap_gregset): Add GPR upper halves.
10409 (s390x_regmap_gregset): Likewise.
10410 (s390_regmap_fpregset): Likewise.
10411 (s390_regmap_upper): New global variable.
10412 (s390_upper_regset): New global variable.
10413 (s390_upper_regset_sections): New global variable.
10414 (s390_regset_from_core_section): Handle GPR upper halves.
10415 (s390_core_read_description): New function.
10416 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
10417 register information. Handle varying pseudo register numbers.
10418 (s390_backchain_frame_unwind_cache): Likewise.
10419 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
10420 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
10421 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
10422 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
10423 Handle varying pseudo register numbers.
10424 (s390_unwind_pc): Handle varying pseudo register numbers.
10425 (s390_dwarf2_prev_register): New function.
10426 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
10427 register information. Handle varying pseudo register numbers.
10428 Install s390_dwarf2_prev_register to unwind full GPRs.
10429 (s390_gdbarch_init): Handle target descriptions. Assign varying
10430 pseudo register numbers. Install s390_adjust_frame_regnum.
10431 (_initialize_s390_tdep): Initialize target descriptions.
10433 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
10434 (S390_NUM_REGS): Redefine to include upper half registers.
10435 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
10436 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
10437 (tdesc_s390_linux32): Add declaration.
10438 (tdesc_s390_linux64): Likewise.
10439 (tdesc_s390x_linux64): Likewise.
10441 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10443 * regset.h (struct core_regset_section): Add HUMAN_NAME.
10444 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
10445 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
10446 (ppc_linux_vmx_regset_sections): Likewise.
10447 (ppc_linux_fp_regset_sections): Likewise.
10449 * corelow.c (get_core_register_section): Constify arguments.
10450 (get_core_registers): Use gdbarch_core_regset_sections instead
10451 of hard-coded platform-specific register section names.
10453 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10455 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
10456 a register, assume the least-significant part is used.
10457 (write_pieced_value): Likewise.
10459 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10461 * printcmd.c: Include "arch-utils.h".
10462 (do_one_display): Re-parse expression if current architecture changed.
10464 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10465 Joel Brobecker <brobecker@adacore.com>
10467 * gdbtypes.c (check_typedef): New comment on type length.
10468 * value.c (allocate_value_lazy): Remove the unused atype variable. New
10469 comment on type length.
10470 (value_primitive_field): Keep the original TYPE value, new comment.
10472 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10474 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
10475 p_start. Change != comparisons to > and < comparisons.
10477 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10479 * cli/cli-script.c (process_next_line): Check P2 overrun.
10481 2009-01-01 Joel Brobecker <brobecker@adacore.com>
10483 Update the copyright hearder to add year 2010 for most GDB files.
10485 2009-01-01 Joel Brobecker <brobecker@adacore.com>
10487 Fix build failure in inf-ptrace.c.
10488 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
10490 2010-01-01 Joel Brobecker <brobecker@adacore.com>
10492 * top.c (print_gdb_version): Update copyright year.
10494 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
10496 Fix break *FUN'address thread NUM.
10497 * ada-lex.l (task): Expand rule to also match the thread keyword.
10499 2010-01-01 Joel Brobecker <brobecker@adacore.com>
10501 Fix break *FUN'address task NUM.
10502 * ada-lex.l (task): New rule.
10503 * ada-lang.c (valid_task_id): Make sure the Ada task list has
10504 been built before using it.
10506 For older changes see ChangeLog-2009.
10512 version-control: never