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