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