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