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