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