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