44eaa19d90ce0ae6c8a3be8f5430b68bf105d915
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2012-06-28  Doug Evans  <dje@google.com>
2
3         * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4
5 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
6
7         * common/buffer.c: Include inttypes.h and stdint.h.
8         (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
9
10 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
11             Pedro Alves  <palves@redhat.com>
12
13         * gdbthread.h (ALL_THREADS): New macro.
14         (thread_list): Declare.
15         * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
16         going, but instead fall through to the stepping handling.
17         * linux-nat.c (resume_lwp): New parameter 'signo'.  Resume with
18         the passed in signal.  Adjust debug output.
19         (resume_callback): Rename to ...
20         (linux_nat_resume_callback): ... this.  Pass the thread's last
21         stop signal, if in "pass" state.
22         (linux_nat_resume): Adjust to rename.
23         (stop_wait_callback): New assertion.  Don't respawn signals;
24         instead let the LWP remain with SIGNALLED set.
25         (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
26         * remote.c (append_pending_thread_resumptions): New.
27         (remote_vcont_resume): Call it.
28         * target.h (target_resume): Extend comment.
29
30 2012-06-28  Iain Sandoe  <iain@codesourcery.com>
31
32         * auxv.c (fprint_target_auxv): Handle extended cache data tags.
33
34 2012-06-27  Doug Evans  <dje@google.com>
35
36         * dwarf2read.c (dwarf2_cu): Add ranges_base.
37         Delete have_addr_base, unused.  All uses updated.
38         (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
39         (dwarf2_get_pc_bounds): Add ranges_base.
40         (dwarf2_record_block_ranges): Ditto.
41
42 2012-06-27  Tom Tromey  <tromey@redhat.com>
43
44         PR macros/7961:
45         * varobj.c (varobj_create): Update.
46         (varobj_set_value): Update.
47         * tracepoint.c (validate_actionline): Update.
48         (encode_actions_1): Update.
49         * parse.c (parse_exp_1): Add 'pc' argument.
50         (parse_exp_in_context): Add 'pc' argument.  Change how
51         expression_context_pc is set.
52         (parse_expression): Update.
53         (parse_field_expression): Update.
54         * expression.h (parse_exp_1): Update.
55         * eval.c (parse_to_comma_and_eval): Update.
56         * breakpoint.c (set_breakpoint_condition): Update.
57         (update_watchpoint): Update.
58         (init_breakpoint_sal): Update
59         (find_condition_and_thread): Update.
60         (watch_command_1): Update.
61         (update_breakpoint_locations): Update.
62         * ada-lang.c (ada_read_renaming_var_value): Update.
63         (create_excep_cond_exprs): Update.
64
65 2012-06-27  Doug Evans  <dje@google.com>
66
67         * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
68         type units.
69
70 2012-06-26  Doug Evans  <dje@google.com>
71
72         * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
73         prototype.
74         (error_check_comp_unit_head): New arg abbrev_section.  All callers
75         updated.
76         (read_and_check_comp_unit_head): Ditto.
77         (read_and_check_type_unit_head): Ditto.
78
79 2012-06-26  Siva Chandra Reddy  <sivachandra@google.com>
80
81         New attribute 'last' for gdb.Symtab_and_line.
82         * NEWS (Python Scripting): Add entry about the new attribute.
83         * python/py-symtab.c (salpy_get_last): New function which
84         implements the get method for the 'last' attribute of
85         gdb.Symtab_and_line.
86         (sal_object_getset): Add entry for the 'last' attribute.
87
88 2012-06-26  Doug Evans  <dje@google.com>
89
90         * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
91         (dwo_sections): Add macinfo, macro.
92         (dwarf2_locate_dwo_sections): Watch for macro sections.
93         (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
94         All callers updated.  Handle DWO files.
95
96         * NEWS: Mention new options "set debug dwarf2-read" and
97         "set debug symtab-create".
98         * dwarf2read.c (dwarf2_read_debug): New static global.
99         (dwarf2_build_psymtabs_hard): Add debugging printfs.
100         (process_queue): Ditto.
101         (process_full_comp_unit): Ditto.
102         (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
103         * elfread.c (elf_symfile_read): Add debugging printf.
104         * minsyms.c (install_minimal_symbols): Ditto.
105         * psymtab.c (allocate_psymtab): Ditto.
106         * symfile.c (allocate_symtab): Ditto.
107         * symtab.c (symtab_create_debug): New global.
108         (_initialize_symtab): Add new option "set debug symtab-create".
109         * symtab.h (symtab_create_debug): Declare.
110
111         * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
112         (lookup_dwo_type_unit): Ditto.
113
114 2012-06-26  Roland McGrath  <roland@hack.frob.com>
115             H.J. Lu  <hongjiu.lu@intel.com>
116
117         * amd64-linux-nat.c: Include <sys/user.h>.
118         (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
119         if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
120         HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
121
122         * configure.ac: Check if the fs_base and gs_base members of
123         `struct user_regs_struct' exist.
124         * config.in: Regenerated.
125         * configure: Likewise.
126
127 2012-06-25  Michael Eager  <eager@eagercon.com>
128
129         PR python/14291
130         * python/python.c (gdbpy_write): Check for interrupted output. 
131
132 2012-06-25  Greta Yorsh  <greta.yorsh@arm.com>
133
134         * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
135         register as a stack alignment in ARM mode.
136
137 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
138
139         Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
140         * gnulib/config.in: Regenerate.
141         * gnulib/configure: Likewise.
142         * gnulib/import/m4/extensions.m4: Update it.
143         * gnulib/import/m4/gnulib-common.m4: Likewise.
144         * gnulib/import/m4/memmem.m4: Likewise.
145         * gnulib/import/m4/mmap-anon.m4: Likewise.
146         * gnulib/import/m4/multiarch.m4: Likewise.
147         * gnulib/import/stdint.in.h: Likewise.
148
149 2012-06-24  Yao Qi  <yao@codesourcery.com>
150
151         * corefile.c (write_memory_with_notification): New.
152         * gdbcore.h: Declare write_memory_with_notification.
153         * ada-lang.c (ada_value_assign): Replace 'write_memory' and
154         'observer_notify_memory_changed' with 'write_memory_with_notification'.
155         * valops.c (value_assign): Likewise.
156         * python/py-inferior.c (infpy_write_memory): Call
157         'write_memory_with_notification'.
158
159 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
160
161         * cc-with-index.sh: Use also -ex "set auto-load no".
162
163 2012-06-23  Doug Evans  <dje@google.com>
164
165         PR 14125
166         * NEWS: Document additions to .gdb_index.
167         * dwarf2read.c: #include "gdb/gdb-index.h".
168         (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
169         (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
170         (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
171         (dwarf2_read_index): Recognize version 7.
172         (dw2_do_expand_symtabs_matching): New args want_specific_block,
173         block_kind, domain): All callers updated.
174         (dw2_find_symbol_file): Handle new index CU values.
175         (dw2_expand_symtabs_matching): Match symbol kind if requested.
176         (add_index_entry): New args is_static, kind.  All callers updated.
177         (offset_type_compare, uniquify_cu_indices): New functions
178         (symbol_kind): New function.
179         (write_psymtabs_to_index): Remove duplicate CU values.
180         (write_psymtabs_to_index): Write .gdb_index version 7.
181
182 2012-06-22  Joel Brobecker  <brobecker@adacore.com>
183
184         * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
185         * configure: Regenerate.
186
187 2012-06-20  Yao Qi  <yao@codesourcery.com>
188
189         * python/py-inferior.c: Update comments of infpy_read_memory
190         and infpy_write_memory.
191
192 2012-06-19  Tom Tromey  <tromey@redhat.com>
193
194         PR exp/9514:
195         * parser-defs.h (insert_type, insert_type_address_space): Declare.
196         (push_type_address_space): Remove.
197         * parse.c (insert_into_type_stack): New function.
198         (insert_type): Likewise.
199         (insert_type_address_space): Rename from push_type_address_space.
200         Insert tp_space_identifier.
201         * c-exp.y (ptr_operator): New production.
202         (abs_decl): Use ptr_operator.
203         (space_identifier): Call insert_type_address_space.
204         (ptype): Don't use const_or_volatile_or_space_identifier.
205         (const_or_volatile_noopt): Call insert_type.
206         (conversion_type_id, conversion_declarator): New productions.
207         (operator): Use conversion_type_id.
208
209 2012-06-18  Doug Evans  <dje@google.com>
210
211         * symtab.h (minimal_symbol): New member created_by_gdb.
212         * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
213         created by gdb.
214         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
215         (search_symbols): Call it instead of lookup_symbol.
216         Skip symbols created by gdb.  Only scan minsyms if nfiles == 0.
217
218         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
219         Adjust address for DW_OP_GNU_addr_index.
220         * dwarf2expr.h (dwarf_expr_context): Update comment.
221         * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
222         all callers updated.  Handle TLS vars described with
223         DW_OP_GNU_const_index.
224         (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
225         and DW_OP_GNU_const_index.
226         * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
227
228         * block.c (find_block_in_blockvector): Make explicit the fact that we
229         ignore GLOBAL_BLOCK.
230
231 2012-06-18  Tom Tromey  <tromey@redhat.com>
232
233         * c-exp.y (operator): Remove trailing space after "delete" and
234         "delete[]".
235
236 2012-06-18  Mark Kettenis  <kettenis@gnu.org>
237             Jan Kratochvil  <jan.kratochvil@redhat.com>
238
239         Switch i386 and derived targets to ON_STACK.
240         * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
241         (amd64_dicos_init_abi): Remove its installment.
242         * dicos-tdep.c (dicos_init_abi): Remove the
243         set_gdbarch_call_dummy_location call.  Update the comment here.
244         * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
245         (i386_dicos_init_abi): Remove its installment.
246         * i386-tdep.c (i386_push_dummy_code): New function.
247         (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
248         i386_push_dummy_code.
249
250 2012-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
251
252         Remove stale dummy frames.
253         * breakpoint.c: Include dummy-frame.h.
254         (longjmp_breakpoint_ops): New variable.
255         (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
256         bp_longjmp_call_dummy.
257         (bpstat_what, bptype_string, print_one_breakpoint_location)
258         (init_bp_location): Support bp_longjmp_call_dummy.
259         (set_longjmp_breakpoint): Use longjmp_breakpoint_ops.  Comment why.
260         (set_longjmp_breakpoint_for_call_dummy)
261         (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
262         functions.
263         (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
264         * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy.  Delete
265         FIXME comment and extend the other comment for bp_call_dummy.
266         (set_longjmp_breakpoint_for_call_dummy)
267         (check_longjmp_breakpoint_for_call_dummy): New declarations.
268         * dummy-frame.c: Include gdbthread.h.
269         (pop_dummy_frame_bpt): New function.
270         (pop_dummy_frame): Call pop_dummy_frame_bpt.
271         (dummy_frame_discard): New function.
272         (cleanup_dummy_frames): Update the comment about longjmps.
273         * dummy-frame.h (dummy_frame_discard): New declaration.
274         * gdbthread.h (struct thread_info): Extend initiating_frame comment.
275         * infcall.c (call_function_by_hand): New variable longjmp_b.  Call
276         set_longjmp_breakpoint_for_call_dummy.  Chain its breakpoints with BPT.
277         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
278         Add case 4 comment.  Call check_longjmp_breakpoint_for_call_dummy and
279         keep_going if IS_LONGJMP and there is no other reason to stop.
280
281 2012-06-18  Greta Yorsh  <Greta.Yorsh@arm.com>
282
283         * remote-sim.c (sim_command_completer): Initialize
284         variable 'result'.
285
286 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
287
288         * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
289         * dwarf2loc.c (call_site_parameter_matches): Support
290         CALL_SITE_PARAMETER_PARAM_OFFSET.
291         (needs_dwarf_reg_entry_value): Push stub value.
292         * dwarf2read.c (read_call_site_scope): New variable origin.  Support
293         CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
294         * gdbtypes.h (enum call_site_parameter_kind): New item
295         CALL_SITE_PARAMETER_PARAM_OFFSET.
296         (struct call_site.parameter.u): New field param_offset.
297
298 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
299
300         Code cleanup: Generalize call_site.parameter key.
301         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
302         variable dwarf_reg.  New variable kind_u.  Update parameters to
303         push_dwarf_reg_entry_value.
304         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
305         * dwarf2expr.h (enum call_site_parameter_kind)
306         (union call_site_parameter_u): Forward declarations.
307         (struct dwarf_expr_context_funcs): Update parameters and their
308         description for push_dwarf_reg_entry_value.
309         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
310         * dwarf2loc.c (call_site_parameter_matches): New function.
311         (dwarf_expr_reg_to_entry_parameter): Update parameters and their
312         description.  Use call_site_parameter_matches.
313         (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
314         Update parameters and their description.
315         (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
316         New variable kind_u.  Adjust the caller for updated parameters.
317         (needs_dwarf_reg_entry_value): Update parameters.
318         * dwarf2read.c (read_call_site_scope): New variable loc.  Use it
319         instead of attr.  Update for the changed fields of struct
320         call_site_parameter.
321         * gdbtypes.h: Include dwarf2expr.h.
322         (enum call_site_parameter_kind): New.
323         (struct call_site.parameter): New field kind.  Wrap dwarf_reg and
324         fb_offset into new union u.
325
326 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
327
328         * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
329         (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
330         for x32.
331
332 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
333
334         * amd64-linux-nat.c (compat_x32_clock_t): New.
335         (compat_x32_siginfo_t): Likewise.
336         (compat_x32_siginfo_from_siginfo): Likewise.
337         (siginfo_from_compat_x32_siginfo): Likewise.
338         (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
339         and siginfo_from_compat_x32_siginfo for x32.
340
341 2012-06-15  Hui Zhu  <hui_zhu@mentor.com>
342
343         * tracepoint.c (tfile_xfer_partial): Add a lseek.
344
345 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
346
347         * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
348         instead of gdbarch_ptr_bit.
349         * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
350         (amd64_supply_native_gregset): Likewise.
351         (amd64_collect_native_gregset): Likewise.
352         * amd64-tdep.c (amd64_supply_fxsave): Likewise.
353         (amd64_supply_xsave): Likewise.
354         (amd64_collect_fxsave): Likewise.
355         (amd64_collect_xsave): Likewise.
356
357 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
358
359         * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
360         (amd64_linux_read_description): Check DS segment register for
361         x32 process.
362
363 2012-06-15  Tom Tromey  <tromey@redhat.com>
364
365         * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
366         init_cutu_and_read_dies.
367
368 2012-06-15  Iain Sandoe <iain@codesourcery.com>
369
370         * MAINTAINERS (Write After Approval): Add myself to the list.
371
372 2012-06-15  Tom Tromey  <tromey@redhat.com>
373
374         * valops.c (value_find_oload_method_list): Now static.
375         * value.h (value_find_oload_method_list): Don't declare.
376
377 2012-06-15  Tom Tromey  <tromey@redhat.com>
378
379         * valops.c (find_overload_match): Use value_ind.
380
381 2012-06-15  Maciej W. Rozycki  <macro@codesourcery.com>
382
383         * infrun.c (handle_inferior_event): Correct indentation.
384
385 2012-06-14  Doug Evans  <dje@google.com>
386
387         * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
388         (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
389         All uses updated.
390         (decode_debug_loc_dwo_addresses): New arg "byte_order".  All callers
391         updated.  Handle DEBUG_LOC_START_LENGTH.
392         (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
393         (loclist_describe_location): Ditto.
394
395 2012-06-14  Maciej W. Rozycki  <macro@codesourcery.com>
396
397         PR backtrace/13866
398         * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
399         after hiding inline functions.
400
401 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
402
403         * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
404         _initialize_inf_ttrace.
405
406 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
407
408         * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
409         _initialize_hppa_hpux_nat.
410
411 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
412
413         * remote-sim.c (sim_command_completer): Change type of return
414         value to "VEC (char_ptr) *".  Adjust implementation accordingly.
415
416 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
417             Jan Kratochvil  <jan.kratochvil@redhat.com>
418
419         PR tdep/14222
420         * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
421         stack on a 16-byte boundary.
422
423 2012-06-13  Kaushik Srenevasan  <kaushik@twitter.com>
424
425         * jit.c (finalize_symtab): Set function's return type to 'void' by
426         default.
427
428 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
429             H.J. Lu  <hongjiu.lu@intel.com>
430
431         * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
432         Move bits common to both the classic LP64 and the new x32 ILP32
433         ABI here.
434         (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
435         (amd64_x32_linux_init_abi): New function.
436         (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
437         subtype.
438
439         * i386-tdep.h (i386_pseudo_register_name): New prototype.
440         * i386-tdep.c (i386_pseudo_register_name): Make public.
441         * amd64-tdep.h (amd64_x32_init_abi): New prototype.
442         * amd64-tdep.c (amd64_dword_names): Add "eip".
443         (amd64_x32_pseudo_register_type): New function
444         (amd64_x32_init_abi): New function.
445
446 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
447
448         PR build/14003
449         * inferior.h (struct inferior_suspend_state): Comment out.
450         (struct inferior): Comment out the field suspend.
451         * infrun.c (struct infcall_suspend_state): Comment out the field
452         inferior_suspend.
453         (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
454         out its assignment.
455
456 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
457
458         PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
459         * c-exp.y (classify_inner_name): Remove caller assumptions in the
460         function comment.  Return ERROR for unresolved cases.  Implement
461         returning proper NAME.
462         (yylex): Accept also NAME from classify_inner_name.
463         * cp-namespace.c (cp_lookup_nested_type): Rename to ...
464         (cp_lookup_nested_symbol): ... here.  Return any found symbol, not just
465         LOC_TYPEDEF type.
466         * cp-support.h (cp_lookup_nested_type): Update its declaration.
467
468 2012-06-13  Tom Tromey  <tromey@redhat.com>
469
470         * breakpoint.c (condition_completer): New function.
471         (_initialize_breakpoint): Use it.
472         * value.c (complete_internalvar): New function.
473         * value.h (complete_internalvar): Declare.
474
475 2012-06-13  Tom Tromey  <tromey@redhat.com>
476
477         * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
478         * breakpoint.c (catch_syscall_completer): Return a VEC.
479         * cli/cli-cmds.c (complete_command): Update.
480         * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
481         (complete_on_enum): Likewise.
482         * command.h: Include gdb_vecs.h.
483         (completer_ftype): Change return type.
484         (complete_on_cmdlist, complete_on_enum): Likewise.
485         * completer.c (noop_completer, filename_completer)
486         (location_completer): Return a VEC.
487         (add_struct_fields): Remove 'nextp' argument.  Change 'output'
488         to a VEC.
489         (expression_completer, complete_line_internal, complete_line)
490         (command_completer): Return a VEC.
491         (gdb_completion_word_break_characters, line_completion_function):
492         Update.
493         * completer.h: Include gdb_vecs.h.
494         (complete_line, noop_completer, filename_completer)
495         (expression_completer, location_completer, command_completer):
496         Update.
497         * f-lang.c (f_word_break_characters): Return a VEC.
498         * interps.c (interpreter_completer): Return a VEC.
499         * language.h (struct language_defn)
500         <la_make_symbol_completion_list>: Return a VEC.
501         * python/py-cmd.c (cmdpy_completer): Return a VEC.
502         * symtab.c (free_completion_list): Take a VEC.
503         (return_val_size, return_val_index): Remove.
504         (return_val): Now a VEC.
505         (completion_list_add_name): Update.
506         (default_make_symbol_completion_list_break_on)
507         (default_make_symbol_completion_list, make_symbol_completion_list)
508         (make_symbol_completion_list_fn, make_file_symbol_completion_list):
509         Return a VEC.
510         (add_filename_to_list): Update.
511         (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
512         <list>: Now a VEC.
513         (maybe_add_partial_symtab_filename): Update.
514         (make_source_files_completion_list): Return a VEC.
515         * symtab.h (default_make_symbol_completion_list_break_on)
516         (default_make_symbol_completion_list, make_symbol_completion_list)
517         (make_symbol_completion_list_fn, make_file_symbol_completion_list)
518         (make_source_files_completion_list): Update.
519
520 2012-06-13  Tom Tromey  <tromey@redhat.com>
521
522         * breakpoint.c (add_catch_command): Use completer_ftype.
523         * breakpoint.h: Include command.h.
524         (add_catch_command): Use completer_ftype.
525         * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
526         * cli/cli-decode.h (struct cmd_list_element) <completer>:
527         Use completer_ftype.
528         * command.h (completer_ftype): New typedef.
529         (set_cmd_completer): Use it.
530         * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
531         completer_ftype.
532
533 2012-06-13  Pedro Alves  <palves@redhat.com>
534
535         Partial revert of previous change.
536
537         * serial.c (scb_base): New global.
538         (serial_for_fd): New.
539         (serial_open, serial_fdopen_ops): Link new serial in open serials
540         chain.
541         (do_serial_close): Unlink serial from the open serials chain.
542
543 2012-06-12  Pedro Alves  <palves@redhat.com>
544
545         * infrun.c (infrun_thread_stop_requested_callback): Don't switch
546         threads here.
547         (prepare_for_detach): No longer context switch here in non-stop
548         mode.
549         (fetch_inferior_event): Ditto.
550         (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
551         to the event thread before removing breakpoints.  Switch to the
552         event thread before inserting breakpoints and resuming.
553         (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
554         event thread before resuming.
555         (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
556         Switch to the event thread before removing breakpoints.
557
558 2012-06-12  Eli Zaretskii  <eliz@gnu.org>
559
560         * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
561         special characters correctly for the Windows shells.  See
562         http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
563         report.
564         [!__MINGW32__]: Remove extra double quote character from special
565         characters.
566
567 2012-06-11  Stan Shebs  <stan@codesourcery.com>
568
569         * ui-out.h: Remove #if 0 declarations.
570         * ui-out.c: Remove #if 0 functions.
571
572 2012-06-11  Pedro Alves  <palves@redhat.com>
573
574         * ser-base.c (run_async_handler_and_reschedule): New.
575         (fd_event, push_event): Use it.
576         * serial.c (serial_open, serial_fdopen_ops): Set the initial
577         reference count to 1.
578         (do_serial_close): Set the bufp field to NULL.  Use serial_unref
579         instead of xfree.
580         (serial_is_open, serial_ref, serial_unref): New.
581         * serial.h (serial_open): Adjust comment.
582         (serial_is_open): Declare.
583         (serial_close): Adjust comment.
584         (serial_ref, serial_unref) Declare.
585         (struct serial): New field 'refcnt'.
586
587 2012-06-11  Pedro Alves  <palves@redhat.com>
588
589         Remove #if 0'd "connect" command, and unnecessary associated
590         refcounting and serial reuse bits.
591
592         * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
593         * serial.c (last_serial_opened): Delete.
594         (scb_base): Delete.
595         (serial_open): Adjust.
596         (serial_for_fd): Delete.
597         (serial_fdopen_ops, do_serial_close): Adjust.
598         (serial_fdopen_ops): Adjust.
599
600 2012-06-11  Pedro Alves  <palves@redhat.com>
601
602         * serial.c (do_serial_close): Remove early return when SCB is
603         null.
604
605 2012-06-11  Tom Tromey  <tromey@redhat.com>
606
607         * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
608
609 2012-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
610
611         Fix regression by the "ambiguous linespec" series.
612         * breakpoint.c (parse_breakpoint_sals): New variable cursal.  Use
613         get_last_displayed_symtab and get_last_displayed_line and depending
614         on CURSAL.
615
616 2012-06-11  Tom Tromey  <tromey@redhat.com>
617
618         * dwarf2read.c (dw2_get_primary_filename_reader): New function.
619         (dw2_find_symbol_file): Use it.
620
621 2012-06-11  Michael Eager  <eager@eagercon.com>
622
623         * mips-linux-tdep.c (mips_gdb_signal_from_target): New
624         * mips-linux-tdep.h (mips_signals): New
625
626 2012-06-11  Tom Tromey  <tromey@redhat.com>
627
628         * infrun.c (handle_inferior_event)
629         <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
630         breakpoint.
631         <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
632         exception logic in all cases.  Update comments.
633         (insert_longjmp_resume_breakpoint): Set the exception resume
634         breakpoint.
635
636 2012-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
637
638         * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
639
640 2012-06-09  Siva Chandra Reddy  <sivachandra@google.com>
641
642         * valarith.c (binop_types_user_defined_p): Fix a typo.
643
644 2012-06-08  Yao Qi  <yao@codesourcery.com>
645             Chung-Lin Tang <cltang@codesourcery.com>
646
647         * arch-utils.c (default_return_in_first_hidden_param_p): New.
648         * arch-utils.h: Declare.
649         * gdbarch.sh: Add return_in_first_hidden_param_p.
650         * gdbarch.c, gdbarch.h: Regenerated.
651         * infcall.c (call_function_by_hand): Call
652         gdbarch_return_in_first_hidden_param_p instead of
653         language_pass_by_reference.
654
655         * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
656         (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
657         * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
658         (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
659         * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
660         `cplus_return_struct_by_reference'.
661         (tic6x_return_value): Handle language cplusplus.
662         (tic6x_return_in_first_hidden_param_p): New.
663         (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
664
665 2012-06-07  Doug Evans  <dje@google.com>
666
667         * dwarf2read.c (dwarf2_cu): Add comment.
668
669 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
670
671         * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
672         variable.
673         (mips_eabi_push_dummy_call): Likewise.
674         (mips_n32n64_push_dummy_call): Likewise.
675         (mips_o32_push_dummy_call): Likewise.
676         (mips_o64_push_dummy_call): Likewise.
677
678 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
679
680         * mips-tdep.c (mips_convert_register_p): Correct coding style.
681
682 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
683
684         * mips-tdep.c (mips_pseudo_register_type): Use
685         mips_float_register_p.
686
687 2012-06-06  Pedro Alves  <palves@redhat.com>
688
689         * infrun.c (handle_inferior_event): Remove calls to
690         reinit_frame_cache that follow a context_switch call.
691
692 2012-06-06  Pedro Alves  <palves@redhat.com>
693
694         * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
695         context_switch and remove stale comment.
696
697 2012-06-06  Pedro Alves  <palves@redhat.com>
698
699         * infrun.c (struct execution_control_state): Remove
700         `new_thread_event' field.
701         (handle_inferior_event): Simplify new threads handling; don't
702         resume the inferior if we find a new thread.
703
704 2012-06-06  Thomas Schwinge  <thomas@codesourcery.com>
705
706         * NEWS: Document the deprecation of SH's 'regs' command.
707         * inferior.h (all_registers_info): Add function declaration.
708         * sh-tdep.c (sh_show_regs): Remove variable.
709         (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
710         (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
711         (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
712         (sh_show_regs_command): Remove functions.
713         (sh_gdbarch_init): Don't set sh_show_regs.
714         (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
715         'info all-registers'.
716         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
717         (sh64_show_regs): Remove functions.
718         * sh64-tdep.h (sh64_show_regs): Remove function declaration.
719
720 2012-06-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
721
722         * configure.ac: Move development=true below AC_INIT.
723         * configure: Regenerate.
724
725 2012-06-05  Stan Shebs  <stan@codesourcery.com>
726
727         * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
728         gdb_stdout.
729
730 2012-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
731
732         * corefile.c (read_memory, read_stack, write_memory): Accept LEN
733         argument as ssize_t.
734         * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
735         * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
736         * target.c (target_read_stack, target_write_memory)
737         (target_write_raw_memory): Likewise.
738         * target.h (target_read_stack, target_write_memory)
739         (target_write_raw_memory): Likewise.
740
741 2012-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
742
743         * symfile-mem.c: Change gdb_static_assert to ssize_t.
744         (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
745         * target.c (target_read_memory): Change LEN to ssize_t.
746         * target.h (target_read_memory): Change LEN to ssize_t.
747
748 2012-06-05  Pedro Alves  <palves@redhat.com>
749
750         PR backtrace/13866
751
752         * breakpoint.c (until_break_command): Only fetch the selected
753         frame after decode_line_1.
754
755 2012-06-05  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
756
757         * solib-svr4.c (enable_break): Don't fallback to setting the solib
758         event breakpoint at _start, __start or main if a program
759         interpreter is not found.
760
761 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
762
763         * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
764         Add declaration.
765         * windows-tdep.c: #include "objfiles.h".
766         (windows_iterate_over_objfiles_in_search_order): New function.
767         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
768         iterate_over_objfiles_in_search_order gdbarch method to
769         windows_iterate_over_objfiles_in_search_order.
770         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
771
772 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
773
774         * gdbarch.sh: Add generation of
775         "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
776         gdbarch.h.  Add include of "objfiles.h" in gdbarch.c.
777         (iterate_over_objfiles_in_search_order): New gdbarch method.
778         * gdbarch.h, gdbarch.c: Regenerate.
779         * objfiles.h (default_iterate_over_objfiles_in_search_order):
780         Add declaration.
781         * objfiles.c (default_iterate_over_objfiles_in_search_order):
782         New function.
783         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
784         out of lookup_symbol_aux_symtabs.
785         (lookup_symbol_aux_symtabs): Replace extracted-out code by
786         call to lookup_symbol_aux_objfile.
787         (struct global_sym_lookup_data): New type.
788         (lookup_symbol_global_iterator_cb): New function.
789         (lookup_symbol_global): Search for symbol using
790         gdbarch_iterate_over_objfiles_in_search_order and
791         lookup_symbol_global_iterator_cb.
792         * findvar.c (struct minsym_lookup_data): New type.
793         (minsym_lookup_iterator_cb): New function.
794         (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
795         symbol's address via gdbarch_iterate_over_objfiles_in_search_order
796         and minsym_lookup_iterator_cb.
797
798 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
799
800         Revert the following patch:
801         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
802         try locating the symbol in the symbol's own objfile first, before
803         extending the search to all objfiles.
804         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
805         out of lookup_symbol_aux_symtabs.
806         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
807         Replace extracted-out code by call to lookup_symbol_aux_objfile.
808         Do not search EXCLUDE_OBJFILE.
809         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
810         (lookup_symbol_global): Search for matches in the block's objfile
811         first, before searching all other objfiles.
812
813 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
814
815         * breakpoint.c (find_condition_and_thread): Stop parsing
816         as soon as the first invalid keyword is found.
817
818 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
819
820         * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
821
822 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
823
824         * config/djgpp/djcheck.sh: Add copyright header.
825
826 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
827
828         * copyright.py (update_files, main): Fix path to update-copyright
829         script.
830
831 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
832
833         * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
834         (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
835         for which a reminder to update by hand is printed.
836
837 2012-06-04  Doug Evans  <dje@google.com>
838
839         * buildsym.c (make_blockvector): Add comment.
840
841 2012-06-04  Pedro Alves  <palves@redhat.com>
842
843         * arch-utils.c (default_gdb_signal_from_target): Delete.
844         * arch-utils.h (default_gdb_signal_from_target): Delete.
845         * corelow.c (core_open) <signal mapping>: Extended comment.  Check
846         gdbarch_gdb_signal_from_target_p.
847         * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
848         predicate).
849         * gdbarch.h: Regenerate.
850         * gdbarch.c: Regenerate.
851
852 2012-06-04  Pedro Alves  <palves@redhat.com>
853
854         * gdbarch.sh (gdb_signal_from_target): Mention that the
855         implementation of the method must be host independent.
856         * gdbarch.h: Regenerate.
857
858 2012-06-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
859
860         * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
861         parameters.
862         (target_read_memory_bfd): New function.
863         (symbol_file_add_from_memory): Use it.
864
865 2012-06-03  Doug Evans  <dje@google.com>
866
867         * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
868         of primary symtab.
869         (basic_lookup_transparent_type): Ditto.
870
871         * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
872         (ALL_PRIMARY_SYMTABS): Use it.
873         (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
874         * dwarf2read.c (dw2_find_symbol_file): Ditto.
875         * linespec.c (iterate_over_all_matching_symtabs): Ditto.
876         * symtab.c (lookup_symbol_aux_objfile): Ditto.
877         (basic_lookup_transparent_type): Ditto.
878
879 2012-06-02  Sergio Durigan Junior  <sergiodj@redhat.com>
880
881         * symtab.c (symbol_demangled_name): New variable `dem_name'.  Use
882         it to optimize resolution of demangled name.
883
884 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
885
886         * configure.ac (development): Define new variable.
887         Call AC_CHECK_LIB for mcheck if $development.
888         (ERROR_ON_WARNING): Enable it by default only if $development.
889         * config.in: Regenerate.
890         * configure: Regenerate.
891
892 2012-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
893
894         * target.c (target_read_memory): Make LEN argument as size_t.
895         * target.h (target_read_memory): Likewise.
896
897 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
898
899         * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
900
901 2012-05-31  Edjunior Machado  <emachado@linux.vnet.ibm.com>
902
903         * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
904         BookE interface for PowerPC server processors if not available
905         in the Linux Kernel.
906
907 2012-05-31  Keith Seitz  <keiths@redhat.com>
908
909         * linespec.c (decode_objc): Add cleanup to free
910         INFO.FILE_SYMTABS.
911         (find_linespec_symbols): Add cleanup to free CLASSES.
912         * symfile.c (find_separate_debug_file_by_debuglink): Add
913         cleanup to free DEBUGLINK.
914         * ui-out.c (clear_header_list): No need to check if
915         HEADER_NEXT.COLHDR is NULL.
916         Free HEADER_NEXT.COL_NAME.
917
918 2012-05-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
919
920         * ada-lang.c (standard_lookup): Prevent uninitialized variable
921         warning.
922
923 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
924
925         * configure.host (gdb_host_cpu): Handle tilegx*.
926         (gdb_host): Handle tilegx-*-linux*.
927         * tilegx-linux-nat.c: New file.
928         * config/tilegx/linux.mh: New file.
929
930 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
931
932         * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
933         tilegx-linux-tdep.o.
934         (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
935         tilegx-linux-tdep.c.
936         * configure.tgt: Handle tilegx-*-linux*.
937         * tilegx-tdep.h: New file.
938         * tilegx-tdep.c: New file.
939         * tilegx-linux-tdep.c: New file.
940         * regformats/reg-tilegx.dat: New file.
941
942 2012-05-30  Edjunior Machado  <emachado@linux.vnet.ibm.com>
943
944         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
945         accounting of hw watchpoints on ppc.
946
947 2012-05-30  Thiago Jung Bauermann  <thiago.bauermann@linaro.org>
948
949         * source.c (openp): Expand tilde in path entries.
950
951 2012-05-29  Doug Evans  <dje@google.com>
952
953         * buildsym.c (block_compar): Fix comment.
954         (end_symtab): Fix and clarify some comments.
955
956         * stabsread.h (cleanup_undefined_stabs_types): Renamed from
957         cleanup_undefined_types.
958         * stabsread.c (cleanup_undefined_stabs_types): Ditto.
959         All callers updated.
960
961 2012-05-29  Tom Tromey  <tromey@redhat.com>
962
963         * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
964         fails.
965         * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
966         * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
967         fails.
968         * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
969         fails.
970
971 2012-05-29  Tristan Gingold  <gingold@adacore.com>
972
973         * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
974         (struct darwin_info): ... New struct.
975         (solib_darwin_pspace_data): New variable.
976         (darwin_pspace_data_cleanup): New function.
977         (get_darwin_info): Likewise.
978         (darwin_dyld_version_ok, darwin_load_image_infos)
979         (darwin_solib_get_all_image_info_addr_at_init)
980         (darwin_solib_read_all_image_info_addr): Add info argument.
981         Adjust code.
982         (darwin_current_sos): Use per pspace structure.
983         (darwin_solib_create_inferior_hook): Likewise.
984         (darwin_clear_solib): Likewise.
985         (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
986
987 2012-05-28  Pedro Alves  <palves@redhat.com>
988
989         * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
990         block that uses them.  Clear ecss before handling each event.
991
992 2012-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
993
994         * solib-svr4.c (svr4_current_sos): New comment on
995         svr4_current_sos_via_xfer_libraries fall back.
996
997 2012-05-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
998
999         * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best.  Use
1000         it as a fallback for TYPE_IS_OPAQUE.
1001         * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
1002         symbols for lookup_symbol.
1003
1004 2012-05-24  John Steele Scott  <toojays@toojays.net>
1005
1006         PR symtab/13277: Resolving opaque structures in ICC generated binaries.
1007         * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
1008         (producer_is_gxx_lt_4_6): Move the checking and caching to...
1009         (check_producer): ... this new function, which also checks for ICC
1010         and caches the result.
1011         (producer_is_icc): New function.
1012         (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
1013         producer was ICC.
1014
1015 2012-05-24  Pedro Alves  <palves@redhat.com>
1016
1017         PR gdb/7205
1018
1019         * arch-utils.c (default_gdb_signal_to_host): Rename to ...
1020         (default_gdb_signal_to_target): ... this.  Add comment.
1021         (default_gdb_signal_from_host): Rename to ...
1022         (default_gdb_signal_from_target): ... this.  Add comment.
1023         * arch-utils.h (default_gdb_signal_to_host): Rename to ...
1024         (default_gdb_signal_to_target): ... this.
1025         (default_gdb_signal_from_host): Rename to ...
1026         (default_gdb_signal_from_target): ... this.
1027         * corelow.c (core_open): Adjust to naming change.  Replace comment.
1028         * gdbarch.sh (gdb_signal_from_host): Rename to ...
1029         (gdb_signal_from_target): ... this.  Adjust to
1030         default_gdb_signal_from_host naming change.  Extend comment.
1031         (gdb_signal_to_host): Rename to ...
1032         (gdb_signal_to_target): ... this.  Adjust to
1033         default_gdb_signal_to_host naming change.
1034         * gdbarch.h, gdbarch.c: Renegerate.
1035
1036 2012-05-24  Pedro Alves  <palves@redhat.com>
1037
1038         PR gdb/7205
1039
1040         Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
1041
1042 2012-05-24  Pedro Alves  <palves@redhat.com>
1043
1044         PR gdb/7205
1045
1046         Replace target_signal with gdb_signal throughout.
1047
1048 2012-05-24  Pedro Alves  <palves@redhat.com>
1049
1050         PR tui/14159
1051
1052         * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
1053         string, instead of reusing the va_list argument.
1054
1055 2012-05-24  Tom Tromey  <tromey@redhat.com>
1056
1057         * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
1058         Remove.
1059
1060 2012-05-23  Doug Evans  <dje@google.com>
1061
1062         * symtab.c (search_symbols): Formatting fixes.
1063         (print_symbol_info): Formatting fixes.
1064
1065         * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
1066         int64_t change to leb128 API.
1067         (read_encoded_value, decode_frame_entry_1): Ditto.
1068         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
1069         (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
1070         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
1071         (execute_stack_op): Ditto.
1072         * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
1073         (safe_read_uleb128, safe_read_sleb128): Ditto.
1074         * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
1075         (dwarf2_compile_expr_to_ax): Ditto.
1076         (locexpr_describe_location_piece): Ditto.
1077         (disassemble_dwarf_expression): Ditto.
1078         (locexpr_describe_location_1): Ditto.
1079
1080 2012-05-23  Stan Shebs  <stan@codesourcery.com>
1081             Kwok Cheung Yeung  <kcy@codesourcery.com>
1082
1083         * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
1084         (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
1085         (mi-cmd-info.o): New rule.
1086         * osdata.h (info_osdata_command): New declaration.
1087         * osdata.c (info_osdata_command): Change to non-static.
1088         * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
1089         * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
1090         * mi/mi-cmd-info.c: New file.
1091
1092 2012-05-23  Doug Evans  <dje@google.com>
1093
1094         * symtab.c (search_symbols): Pass NULL for file_matcher to
1095         expand_symtabs_matching if there are no files to match.
1096
1097         * gdbtypes.c (lookup_typename): Simplify.
1098
1099 2012-05-23  Pedro Alves  <palves@redhat.com>
1100
1101         * arch-utils.h (default_target_signal_to_host): Delete.
1102         * arch-utils.c (default_target_signal_to_host): Delete.
1103         * gdbarch.sh (target_signal_to_host): Remove.
1104         * gdbarch.h, gdbarch.c: Regenerate.
1105
1106 2012-05-22  Doug Evans  <dje@google.com>
1107
1108         * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
1109         "const gdb_byte *".
1110         (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
1111         (execute_cfa_program): Update to match API of leb128 functions.
1112         (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
1113         "const gdb_byte *".
1114         (read_unsigned_leb128, read_signed_leb128): Delete.
1115         (read_initial_length): Change type of buf argument to
1116         "const gdb_byte *".
1117         (read_encoded_value): Update to match API of leb128 functions.
1118         (decode_frame_entry): Change result to "const gdb_byte *", and
1119         similarly for "start" parameter.
1120         (decode_frame_entry_1): Ditto.  Use new leb128 reader functions.
1121         (dwarf2_build_frame_info): Change local frame_ptr to
1122         "const gdb_byte *".
1123         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
1124         read_uleb128, read_sleb128.  All callers updated.
1125         (safe_skip_leb128): New function.
1126         (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
1127         Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
1128         (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
1129         functions.  Call gdb_read_uleb128, gdb_read_sleb128 instead of
1130         read_uleb128, read_sleb128.
1131         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
1132         (execute_stack_op): Update to match API of leb128 functions.
1133         * dwarf2expr.h: #include "leb128.h".
1134         (read_uleb128, read_sleb128): Delete.
1135         (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
1136         (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
1137         * dwarf2loc.c (debug_loc_kind): New enum.
1138         (decode_debug_loc_addresses): New function.
1139         (decode_debug_loc_dwo_addresses): New function.
1140         (dwarf2_find_location_expression): Rewrite.
1141         (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
1142         (locexpr_describe_location_piece): Ditto.
1143         (disassemble_dwarf_expression): Ditto.
1144         (locexpr_describe_location_1): Ditto.
1145         (loclist_describe_location): Rewrite.
1146         * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
1147         * dwarf2read.c (die_reader_specs): New member "buffer_end".
1148         (dwarf2_section_buffer_overflow_complaint): Renamed from
1149         dwarf2_macros_too_long_complaint.  All callers updated.
1150         (skip_leb128): Delete.
1151         (init_cu_die_reader): Initialize reader->buffer_end.
1152         (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
1153         (skip_form_bytes): New arg buffer_end.  All callers updated.
1154         Replace call to skip_leb128 with gdb_skip_leb128.
1155         (skip_unknown_opcode): New arg mac_end.  All callers updated.
1156         (fill_in_loclist_baton): Initialize baton->from_dwo.
1157
1158 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
1159
1160         * mips-linux-nat.c (mips_linux_read_description): Use a more
1161         verbose error message.
1162
1163 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
1164
1165         * NEWS: Add MIPS/Linux DSP support.
1166         * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
1167         (SIGCONTEXT_DSPCTL): New macro.
1168         (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
1169         (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
1170         (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
1171         (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
1172         (N64_SIGCONTEXT_HI3): Likewise.
1173         (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
1174         (N64_SIGCONTEXT_LO3): Likewise.
1175         (N64_SIGCONTEXT_DSPCTL): Likewise.
1176         (N64_SIGCONTEXT_FPCSR): Clarify definition.
1177         (mips_linux_o32_sigframe_init): Handle DSP registers.
1178         (mips_linux_n32n64_sigframe_init): Likewise.
1179
1180 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
1181
1182         * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
1183         call to abort.
1184
1185 2012-05-22  Pedro Alves  <palves@redhat.com>
1186
1187         * target.h (store_waitstatus): Move declaration ...
1188         * inf-child.h (store_waitstatus): ... here.
1189         * target.c: Move inclusion of gdb_wait.h, and ...
1190         (store_waitstatus): ... this ...
1191         * inf-child.c: ... here.
1192         * linux-nat.c: Include inf-child.h.
1193         * rs6000-nat.c: Include inf-child.h.
1194         * spu-linux-nat.c: Include inf-child.h.
1195
1196 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
1197
1198         * tracepoint.c (start_tracing): Add missing i18n markup.
1199         (stop_tracing, set_trace_user): Ditto.
1200         (set_trace_notes, set_trace_stop_notes): Ditto.
1201
1202 2012-05-21  Tom Tromey  <tromey@redhat.com>
1203
1204         PR c++/7173:
1205         * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
1206         types.
1207         * value.h (value_cast_pointers): Update.
1208         * valops.c (value_cast_pointers): Add 'subclass_check' argument.
1209         (value_cast): Update.
1210         (update_search_result): New function.
1211         (do_search_struct_field): New, from search_struct_field.  Check
1212         for ambiguous results.
1213         (search_struct_field): Rewrite.
1214         * infcall.c (value_arg_coerce): Update.
1215         * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
1216         value_cast_pointers.
1217         * ada-lang.c (ada_convert_actual): Update.
1218
1219 2012-05-21  Tom Tromey  <tromey@redhat.com>
1220
1221         * macroexp.c (macro_stringify): Terminate the string.
1222
1223 2012-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
1224
1225         * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
1226         Describe it.
1227         * auto-load.c (auto_load_expand_dir_vars): New function.
1228         (auto_load_safe_path_vec_update): Use it, remove the
1229         substitute_path_component call thanks to it.
1230         (auto_load_objfile_script): Remove the debug_file_directory processing.
1231         Use auto_load_expand_dir_vars, remove the substitute_path_component
1232         call thanks to it.
1233         * configure: Regenerate.
1234         * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
1235         path.  Escape $ also for $debugdir.
1236         (--with_auto_load_safe_path): Escape $ also for $debugdir.
1237         * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
1238
1239 2012-05-20  Doug Evans  <dje@google.com>
1240
1241         * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
1242         before use.  Check for symtab->includes == NULL before scanning it.
1243
1244 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
1245
1246         * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
1247
1248 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
1249
1250         * NEWS: Add microMIPS support and "set mips compression",
1251         "show mips compression" commands.
1252         * mips-tdep.h (mips_isa): New enum.
1253         (gdbarch_tdep): Add mips_isa.
1254         (mips_pc_is_mips16): Update prototype.
1255         (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
1256         * mips-tdep.c (mips_compression_mips16): New variable.
1257         (mips_compression_micromips): Likewise.
1258         (mips_compression_strings): Likewise.
1259         (mips_compression_string): Likewise.
1260         (is_mips16_isa, is_micromips_isa): New functions.
1261         (is_mips16_addr): Rename to...
1262         (is_compact_addr): ... this.
1263         (unmake_mips16_addr): Likewise to...
1264         (unmake_compact_addr): ... this.
1265         (make_mips16_addr): Likewise to...
1266         (make_compact_addr): ... this.
1267         (is_mips_addr, is_mips16_addr, is_micromips_addr): New
1268         functions.
1269         (mips_elf_make_msymbol_special): Handle microMIPS code.
1270         (msymbol_is_special): Rename to...
1271         (msymbol_is_mips16): ... this.
1272         (mips_make_symbol_special, mips_pc_is_mips16): Update
1273         accordingly.
1274         (msymbol_is_mips, msymbol_is_micromips): New functions.
1275         (mips16_to_32_reg): Rename to...
1276         (mips_reg3_to_reg): ... this.
1277         (mips_pc_is_mips, mips_pc_is_micromips): New functions.
1278         (mips_pc_isa): Likewise.
1279         (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
1280         code.
1281         (mips_fetch_instruction): Pass return status instead of printing
1282         an error message if requested.  Handle microMIPS code.  Bail out
1283         on an invalid ISA.
1284         (micromips_op): New macro.
1285         (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
1286         (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
1287         (b6s4_op, b7s3_reg): Likewise.
1288         (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
1289         (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
1290         (mips_insn_size): New function.
1291         (mips32_next_pc): Update mips_fetch_instruction call.
1292         (micromips_relative_offset7): New function.
1293         (micromips_relative_offset10): Likewise.
1294         (micromips_relative_offset16): Likewise.
1295         (micromips_pc_insn_size): Likewise.
1296         (micromips_bc1_pc): Likewise.
1297         (micromips_next_pc): Likewise.
1298         (unpack_mips16): Update mips_fetch_instruction call.
1299         (extended_mips16_next_pc): Update according to change to
1300         mips16_to_32_reg.
1301         (mips_next_pc): Update mips_pc_is_mips16 call.  Handle microMIPS
1302         code.
1303         (mips16_scan_prologue): Update mips_fetch_instruction call.
1304         Update according to change to mips16_to_32_reg.
1305         (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
1306         (mips_insn16_frame_base_sniffer): Likewise.
1307         (micromips_decode_imm9): New function.
1308         (micromips_scan_prologue): Likewise.
1309         (mips_micro_frame_cache): Likewise.
1310         (mips_micro_frame_this_id): Likewise.
1311         (mips_micro_frame_prev_register): Likewise.
1312         (mips_micro_frame_sniffer): Likewise.
1313         (mips_micro_frame_unwind): New variable.
1314         (mips_micro_frame_base_address): New function.
1315         (mips_micro_frame_base): New variable.
1316         (mips_micro_frame_base_sniffer): New function.
1317         (mips32_scan_prologue): Update mips_fetch_instruction call.
1318         (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
1319         rather than for MIPS16.
1320         (mips_insn32_frame_base_sniffer): Likewise.
1321         (mips_addr_bits_remove): Handle microMIPS code.
1322         (deal_with_atomic_sequence): Rename to...
1323         (mips_deal_with_atomic_sequence): ... this.  Update the type
1324         of the variable used to hold an instruction.  Remove the ISA bit
1325         check.  Update mips_fetch_instruction call.
1326         (micromips_deal_with_atomic_sequence): New function.
1327         (deal_with_atomic_sequence): Likewise.
1328         (mips_about_to_return): Handle microMIPS code.  Update
1329         mips_fetch_instruction call.
1330         (heuristic_proc_start): Check for the standard MIPS ISA rather
1331         than for MIPS16.  Update mips_pc_is_mips16 and
1332         mips_fetch_instruction calls.  Handle microMIPS code.
1333         (mips_push_dummy_code): Handle microMIPS code.
1334         (mips_eabi_push_dummy_call): Likewise.
1335         (mips_o32_return_value): Update mips_pc_is_mips16 call.
1336         (mips_o64_push_dummy_call): Handle microMIPS code.
1337         (mips_o64_return_value): Update mips_pc_is_mips16 call.
1338         (is_delayed): Remove function.
1339         (mips_single_step_through_delay): Replace the call to is_delayed
1340         with mips32_instruction_has_delay_slot.  Correct MIPS16 handling.
1341         Handle microMIPS code.
1342         (mips_skip_prologue): Update mips_pc_is_mips16 call.  Handle
1343         microMIPS code.
1344         (mips32_in_function_epilogue_p): Update mips_fetch_instruction
1345         call.
1346         (micromips_in_function_epilogue_p): New function.
1347         (mips16_in_function_epilogue_p): Update mips_fetch_instruction
1348         call.
1349         (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
1350         Handle microMIPS.
1351         (gdb_print_insn_mips): Likewise.
1352         (mips_breakpoint_from_pc): Likewise.
1353         (mips_remote_breakpoint_from_pc): New function.
1354         (mips32_instruction_has_delay_slot): Simplify making use of the
1355         updated mips_fetch_instruction interface.
1356         (micromips_instruction_has_delay_slot): New function.
1357         (mips16_instruction_has_delay_slot): Simplify making use of the
1358         updated mips_fetch_instruction interface.
1359         (mips_adjust_breakpoint_address): Check for the standard MIPS
1360         ISA rather than for MIPS16 ISA.  Update for unmake_compact_addr 
1361         calls.  Handle microMIPS code.
1362         (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
1363         (mips_skip_trampoline_code): Handle microMIPS code.
1364         (global_mips_compression): New function.
1365         (mips_gdbarch_init): Handle the compressed ISA setting from ELF
1366         file flags.  Register the microMIPS remote breakpoint handler
1367         and heuristic frame unwinder.
1368         (show_mips_compression): New function.
1369         (_initialize_mips_tdep): Add the "set mips compression" and
1370         "show mips compression" commands.
1371
1372 2012-05-18  Sergio Durigan Junior  <sergiodj@redhat.com>
1373
1374         * ada-lang.c:
1375         * ada-tasks.c:
1376         * ada-varobj.c:
1377         * amd64-darwin-tdep.c:
1378         * arm-symbian-tdep.c:
1379         * arm-tdep.c:
1380         * avr-tdep.c:
1381         * ax-gdb.c:
1382         * bfin-linux-tdep.c:
1383         * breakpoint.c:
1384         * c-valprint.c:
1385         * cli/cli-cmds.c:
1386         * coffread.c:
1387         * cp-support.c:
1388         * cris-tdep.c:
1389         * dwarf2-frame-tailcall.c:
1390         * dwarf2-frame.c:
1391         * dwarf2expr.c:
1392         * dwarf2loc.c:
1393         * dwarf2read.c:
1394         * elfread.c:
1395         * eval.c:
1396         * expprint.c:
1397         * f-valprint.c:
1398         * frv-tdep.c:
1399         * h8300-tdep.c:
1400         * hppa-hpux-tdep.c:
1401         * hppa-tdep.c:
1402         * hppanbsd-tdep.c:
1403         * i386-nto-tdep.c:
1404         * i386-tdep.c:
1405         * i387-tdep.c:
1406         * ia64-tdep.c:
1407         * jit.c:
1408         * linespec.c:
1409         * linux-tdep.c:
1410         * lm32-tdep.c:
1411         * m2-valprint.c:
1412         * m32c-tdep.c:
1413         * m32r-rom.c:
1414         * m32r-tdep.c:
1415         * m68k-tdep.c:
1416         * m68klinux-tdep.c:
1417         * mi/mi-main.c:
1418         * microblaze-tdep.c:
1419         * mips-linux-tdep.c:
1420         * mips-tdep.c:
1421         * mn10300-tdep.c:
1422         * p-valprint.c:
1423         * parse.c:
1424         * ppc-linux-tdep.c:
1425         * ppc-sysv-tdep.c:
1426         * printcmd.c:
1427         * python/py-finishbreakpoint.c:
1428         * python/py-inferior.c:
1429         * python/py-infthread.c:
1430         * python/py-type.c:
1431         * python/python.c:
1432         * remote-fileio.c:
1433         * remote-m32r-sdi.c:
1434         * remote-mips.c:
1435         * reverse.c:
1436         * rl78-tdep.c:
1437         * rs6000-aix-tdep.c:
1438         * rs6000-tdep.c:
1439         * s390-tdep.c:
1440         * score-tdep.c:
1441         * sh64-tdep.c:
1442         * skip.c:
1443         * solib-darwin.c:
1444         * solib-dsbt.c:
1445         * solib-frv.c:
1446         * sparc-tdep.c:
1447         * spu-multiarch.c:
1448         * spu-tdep.c:
1449         * stack.c:
1450         * symfile.c:
1451         * symtab.c:
1452         * tic6x-tdep.c:
1453         * tracepoint.c:
1454         * v850-tdep.c:
1455         * valarith.c:
1456         * valprint.c:
1457         * value.c:
1458         * xcoffread.c:
1459         * xtensa-tdep.c:
1460         * ada-lang.c:
1461         * ada-tasks.c:
1462         * ada-varobj.c:
1463         * amd64-darwin-tdep.c:
1464         * arm-symbian-tdep.c:
1465         * arm-tdep.c: Delete unused variables.
1466
1467 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
1468
1469         Rename $ddir to $datadir.
1470         * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
1471         * auto-load.c (auto_load_safe_path_vec_update)
1472         (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
1473         * configure: Regenerate.
1474         * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
1475         Likewise.  Remove the 'use $ddir' help string.
1476
1477 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
1478
1479         * auto-load.c (show_auto_load_safe_path): Accept any combination of
1480         DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
1481
1482 2012-05-18  Tom Tromey  <tromey@redhat.com>
1483
1484         PR exp/13907:
1485         * valprint.h (struct value_print_options) <symbol_print>: New
1486         field.
1487         * valprint.c (user_print_options): Add default for symbol_print.
1488         (show_symbol_print): New function.
1489         (generic_val_print): Respect symbol_print.
1490         (_initialize_valprint): Add "print symbol" setting.
1491         * f-valprint.c (f_val_print): Respect symbol_print.
1492         * c-valprint.c (c_val_print): Respect symbol_print.
1493         * NEWS: Update.
1494         * printcmd.c (print_address_symbolic): Return int.  Ignore some
1495         zero-size symbols.
1496         (print_address_demangle): Return int.
1497         * defs.h: (print_address_symbolic): Return int.
1498         * value.h (print_address_demangle): Return int.
1499
1500 2012-05-18  Tom Tromey  <tromey@redhat.com>
1501
1502         * valprint.c (val_print_string): Don't print leading space.
1503         * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
1504         print space before string or vtbl.
1505         * m2-valprint.c (print_unpacked_pointer): Optionally print space
1506         before string.
1507         * jv-valprint.c (java_value_print): Print space before string.
1508         * go-valprint.c (print_go_string): Print space before string.
1509         * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
1510         space before string.
1511         * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
1512         space before string or vtbl.
1513         * auxv.c (fprint_target_auxv): Print space after address.
1514
1515 2012-05-18  Tom Tromey  <tromey@redhat.com>
1516
1517         * printcmd.c (print_address_demangle): Remove special case for 0.
1518
1519 2012-05-18  Tom Tromey  <tromey@redhat.com>
1520
1521         * printcmd.c (print_address_demangle): Add 'opts' argument.
1522         * p-valprint.c (pascal_val_print): Update.
1523         * jv-valprint.c (java_val_print): Update.
1524         * value.h: Update.
1525         * valprint.c (generic_val_print): Update.
1526         (print_function_pointer_address): Add 'options' argument.  Remove
1527         'addressprint' argument.  Update.
1528         * m2-valprint.c (print_unpacked_pointer): Update.
1529         * gnu-v3-abi.c (print_one_vtable): Update.
1530         (gnuv3_print_method_ptr): Update.
1531         * f-valprint.c (f_val_print): Update.
1532         * cp-valprint.c (cp_print_value_fields): Update.
1533         * valprint.h (print_function_pointer_address): Update.
1534         * c-valprint.c (c_val_print): Update.
1535
1536 2012-05-18  Tom Tromey  <tromey@redhat.com>
1537
1538         * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
1539         directly corresponding to the found psymtab.
1540         * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
1541         (dw2_find_pc_sect_symtab): Use it.
1542         * block.h (blockvector_contains_pc): Declare.
1543         * block.c (find_block_in_blockvector): New function.
1544         (blockvector_for_pc_sect): Use it.
1545         (blockvector_contains_pc): New function.
1546
1547 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
1548
1549         * mips-tdep.h (mips_write_pc): New prototype.
1550         * mips-tdep.c (mips_write_pc): Make external, add description.
1551         * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
1552         add description.
1553
1554 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
1555
1556         * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
1557         mips_regnum->pc.
1558         (mips_unwind_pc, mips_write_pc): Likewise.
1559         (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
1560         gdbarch_read_pc.
1561
1562 2012-05-17  Joel Brobecker  <brobecker@adacore.com>
1563
1564         * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
1565         proc_warn, proc_error, proc_get_status, proc_flags,
1566         proc_why, proc_what, proc_nsysarg, proc_sysargs,
1567         proc_set_run_on_last_close, proc_unset_run_on_last_close,
1568         proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
1569         proc_stop_process, proc_wait_for_stop, proc_run_process,
1570         proc_set_traced_signals, proc_set_traced_faults,
1571         proc_set_traced_sysentry, proc_set_traced_sysexit,
1572         proc_set_held_signals, proc_get_held_signals,
1573         proc_get_traced_signals, proc_get_traced_faults,
1574         proc_get_traced_sysentry, proc_get_traced_sysexit,
1575         proc_clear_current_fault, proc_set_current_signal,
1576         proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
1577         proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
1578         proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
1579         proc_get_current_thread, proc_get_current_thread,
1580         proc_get_current_thread, proc_update_threads,
1581         proc_update_threads, proc_update_threads, proc_update_threads,
1582         proc_iterate_over_threads, procfs_find_new_threads,
1583         procfs_pid_to_str): Make static.  Remove advance declaration.
1584         (proc_cursig): Make static.  Conditionalized defintion on
1585         PROCFS_DONT_PIOCSSIG_CURSIG being defined.
1586         (proc_syscall, proc_set_kill_on_last_close,
1587         proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
1588         proc_get_pending_signals, proc_get_signal_actions,
1589         proc_trace_signal, proc_ignore_signal): Delete.
1590
1591 2012-05-16  Sergio Durigan Junior  <sergiodj@redhat.com>
1592
1593         * coffread.c (cs_section_address): Passing proper argument for
1594         `bfd_get_section_vma'.
1595         * dwarf2read.c (dwarf2_locate_sections): Likewise, for
1596         `bfd_get_section_flags'.
1597         * remote.c (remote_trace_set_readonly_regions): Likewise, for
1598         `bfd_get_section_vma'.
1599
1600 2012-05-16  Tom Tromey  <tromey@redhat.com>
1601
1602         PR macros/13205:
1603         * macrotab.h: (macro_define_special): Declare.
1604         (enum macro_special_kind): New.
1605         (struct macro_definition) <argc, replacement>: Update comments.
1606         * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
1607         (macro_define_object_internal): New function.
1608         (macro_define_object): Use it.
1609         (macro_define_special): New function.
1610         (fixup_definition): New function.
1611         (macro_lookup_definition, foreach_macro_in_scope)
1612         (foreach_macro): Use fixup_definition.
1613         * macroexp.h (macro_stringify): Declare.
1614         * macroexp.c (free_buffer_return_text): New function.
1615         (stringify): Constify "arg".
1616         (macro_stringify): New function.
1617         * dwarf2read.c (macro_start_file): Call macro_define_special.
1618
1619 2012-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
1620             Maciej W. Rozycki  <macro@mips.com>
1621
1622         * breakpoint.h (bp_location): Add related_address member.
1623         * inferior.h (get_return_value): Take a pointer to struct value
1624         instead of struct type for the function requested.
1625         * value.h (using_struct_return): Likewise.
1626         * gdbarch.sh (return_value): Take a pointer to struct value
1627         instead of struct type for the function requested.
1628         * breakpoint.c (set_breakpoint_location_function): Initialize
1629         related_address for bp_gnu_ifunc_resolver breakpoints.
1630         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
1631         requested function's address to gdbarch_return_value.
1632         * eval.c (evaluate_subexp_standard): Pass the requested
1633         function's address to using_struct_return.
1634         * infcall.c (call_function_by_hand): Pass the requested
1635         function's address to using_struct_return and
1636         gdbarch_return_value.
1637         * infcmd.c (get_return_value): Take a pointer to struct value
1638         instead of struct type for the function requested.
1639         (print_return_value): Update accordingly.
1640         (finish_command_continuation): Likewise.
1641         * stack.c (return_command): Pass the requested function's
1642         address to using_struct_return and gdbarch_return_value.
1643         * value.c (using_struct_return): Take a pointer to struct value
1644         instead of struct type for the function requested.  Pass the
1645         requested function's address to gdbarch_return_value.
1646         * python/py-finishbreakpoint.c (finish_breakpoint_object):
1647         New function_value member, replacing function_type.
1648         (bpfinishpy_dealloc): Update accordingly.
1649         (bpfinishpy_pre_stop_hook): Likewise.
1650         (bpfinishpy_init): Likewise.  Record the requested function's
1651         address.
1652         * mips-tdep.c (mips_fval_reg): New enum.
1653         (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
1654         words put in GP registers.
1655         (mips_o64_push_dummy_call): Update a comment.
1656         (mips_o32_return_value): Take a pointer to struct value instead
1657         of struct type for the function requested and use it to check if
1658         using the MIPS16 calling convention.  Return the designated
1659         general purpose registers for floating-point values returned in
1660         MIPS16 mode.
1661         (mips_o64_return_value): Likewise.
1662         * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
1663         (ppc_sysv_abi_broken_return_value): Likewise.
1664         (ppc64_sysv_abi_return_value): Likewise.
1665         * alpha-tdep.c (alpha_return_value): Take a pointer to struct
1666         value instead of struct type for the function requested.
1667         * amd64-tdep.c (amd64_return_value): Likewise.
1668         * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
1669         * arm-tdep.c (arm_return_value): Likewise.
1670         * avr-tdep.c (avr_return_value): Likewise.
1671         * bfin-tdep.c (bfin_return_value): Likewise.
1672         * cris-tdep.c (cris_return_value): Likewise.
1673         * frv-tdep.c (frv_return_value): Likewise.
1674         * h8300-tdep.c (h8300_return_value): Likewise.
1675         (h8300h_return_value): Likewise.
1676         * hppa-tdep.c (hppa32_return_value): Likewise.
1677         (hppa64_return_value): Likewise.
1678         * i386-tdep.c (i386_return_value): Likewise.
1679         * ia64-tdep.c (ia64_return_value): Likewise.
1680         * iq2000-tdep.c (iq2000_return_value): Likewise.
1681         * lm32-tdep.c (lm32_return_value): Likewise.
1682         * m32c-tdep.c (m32c_return_value): Likewise.
1683         * m32r-tdep.c (m32r_return_value): Likewise.
1684         * m68hc11-tdep.c (m68hc11_return_value): Likewise.
1685         * m68k-tdep.c (m68k_return_value): Likewise.
1686         (m68k_svr4_return_value): Likewise.
1687         * m88k-tdep.c (m88k_return_value): Likewise.
1688         * mep-tdep.c (mep_return_value): Likewise.
1689         * microblaze-tdep.c (microblaze_return_value): Likewise.
1690         * mn10300-tdep.c (mn10300_return_value): Likewise.
1691         * moxie-tdep.c (moxie_return_value): Likewise.
1692         * mt-tdep.c (mt_return_value): Likewise.
1693         * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
1694         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
1695         (ppc_sysv_abi_broken_return_value): Likewise.
1696         (ppc64_sysv_abi_return_value): Likewise.
1697         * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
1698         * rl78-tdep.c (rl78_return_value): Likewise.
1699         * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
1700         * rx-tdep.c (rx_return_value): Likewise.
1701         * s390-tdep.c (s390_return_value): Likewise.
1702         * score-tdep.c (score_return_value): Likewise.
1703         * sh-tdep.c (sh_return_value_nofpu): Likewise.
1704         (sh_return_value_fpu): Likewise.
1705         * sh64-tdep.c (sh64_return_value): Likewise.
1706         * sparc-tdep.c (sparc32_return_value): Likewise.
1707         * sparc64-tdep.c (sparc64_return_value): Likewise.
1708         * spu-tdep.c (spu_return_value): Likewise.
1709         * tic6x-tdep.c (tic6x_return_value): Likewise.
1710         * v850-tdep.c (v850_return_value): Likewise.
1711         * vax-tdep.c (vax_return_value): Likewise.
1712         * xstormy16-tdep.c (xstormy16_return_value): Likewise.
1713         * xtensa-tdep.c (xtensa_return_value): Likewise.
1714         * gdbarch.c: Regenerate.
1715         * gdbarch.h: Regenerate.
1716
1717 2012-05-15  Tom Tromey  <tromey@redhat.com>
1718
1719         * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
1720
1721 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
1722
1723         * breakpoint.c (init_breakpoint_sal): Add quotes around part
1724         of command in two error message.
1725
1726 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
1727
1728         * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
1729
1730 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
1731
1732         * breakpoint.c (find_condition_and_thread): Minor reformatting.
1733
1734 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
1735
1736         * NEWS (show auto-load scripts-directory): Add forgotten command.
1737
1738 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
1739
1740         * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
1741         parameters.
1742
1743 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1744
1745         * amd64-tdep.c: Include features/i386/x32.c and
1746         features/i386/x32-avx.c.
1747         (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
1748         initialize_tdesc_x32_avx.
1749
1750 2012-05-14  Stan Shebs  <stan@codesourcery.com>
1751
1752         Add dynamic printf.
1753         * breakpoint.h (enum bptype): New type bp_dprintf.
1754         (struct breakpoint): New field extra_string.
1755         (struct breakpoint_ops): Add arg to create_breakpoints_sal.
1756         (create_breakpoint): Add extra_string arg.
1757         * breakpoint.c (dprintf_breakpoint_ops): New.
1758         (is_breakpoint): Add bp_dprintf.
1759         (bpstat_what): Add dprintf case.
1760         (bptype_string): Ditto.
1761         (print_one_breakpoint_location): Ditto.
1762         (init_bp_location): Ditto.
1763         (bkpt_print_mention): Ditto.
1764         (dprintf_style_enums): New array.
1765         (dprintf_style): New global.
1766         (dprintf_function): New global.
1767         (dprintf_channel): New global.
1768         (update_dprintf_command_list): New function.
1769         (update_dprintf_commands): New function.
1770         (init_breakpoint_sal): Add extra_string argument, handle it.
1771         (create_breakpoint_sal): Add extra_string argument.
1772         (create_breakpoints_sal): Add extra_string argument, update callers.
1773         (find_condition_and_thread): Add extra argument.
1774         (create_breakpoint): Add extra_string argument, record it.
1775         (dprintf_command): New function.
1776         (break_command_1): Add arg to create_breakpoint call.
1777         (handle_gnu_v3_exceptions): Ditto.
1778         (trace_command): Ditto.
1779         (ftrace_command): Ditto.
1780         (strace_command): Ditto.
1781         (bkpt_print_mention): Add dprintf case.
1782         (create_breakpoint_sal_default): Add extra_string argument.
1783         (_initialize_breakpoint): Add new commands.
1784         * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
1785         * python/py-breakpoint.c (bppy_init): Ditto.
1786         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
1787
1788 2012-05-14  Maciej W. Rozycki  <macro@codesourcery.com>
1789
1790         * mips-tdep.c (mips_push_dummy_code): Correct description typo.
1791
1792 2012-05-14  Siva Chandra Reddy  <sivachandra@google.com>
1793
1794         * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
1795         unsigned long long.
1796
1797 2012-05-13  Siva Chandra Reddy  <sivachandra@google.com>
1798
1799         Add a new function gdb.find_pc_line to the Python API.
1800         * NEWS (Python Scripting): Add entry about the new function.
1801         * python/python.c (gdbpy_find_pc_line): New function which
1802         implements gdb.find_pc_line.
1803         (GdbMethods): Add entry for the new function.
1804
1805 2012-05-12  Pedro Alves  <palves@redhat.com>
1806
1807         * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
1808         initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
1809
1810 2012-05-12  Eli Zaretskii  <eliz@gnu.org>
1811
1812         * inferior.c: Include completer.h
1813         (initialize_inferiors): Set completer of add-inferior to
1814         filename_completer.
1815
1816 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
1817
1818         * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
1819         gdbarch_ptr_bit for x32 core dump.
1820
1821 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
1822
1823         * amd64-linux-tdep.c: Include features/i386/x32-linux.c
1824         and features/i386/x32-avx-linux.c.
1825
1826 2012-05-11  Stan Shebs  <stan@codesourcery.com>
1827             Kwok Cheung Yeung  <kcy@codesourcery.com>
1828
1829         * NEWS: Describe new info os commands.
1830         * common/linux-osdata.c (PID_T, TIME_T): Define.
1831         (MAX_PID_T_STRLEN): New.
1832         (linux_common_core_of_thread): Add comment.  Change to use PID_T and
1833         MAX_PID_T_STRLEN.
1834         (command_from_pid): Add comment.  Change to use PID_T.
1835         (commandline_from_pid):  Change to use PID_T.
1836         (user_from_pid): Add comment.
1837         (get_process_owner): Add comment. Change to use PID_T and
1838         MAX_PID_T_STRLEN.
1839         (get_number_of_cpu_cores): Add comment.
1840         (get_cores_used_by_process): Add comment.  Change to use PID_T and
1841         MAX_PID_T_STRLEN.
1842         (linux_xfer_osdata_processes): Change to use PID_T and
1843         MAX_PID_T_STRLEN.
1844         (compare_processes): New function.
1845         (linux_xfer_osdata_processgroups): New function.
1846         (linux_xfer_osdata_threads): Change to use PID_T.
1847         (linux_xfer_osdata_fds): New function.
1848         (format_socket_state, print_sockets): New functions.
1849         (union socket_addr): New union.
1850         (linux_xfer_osdata_isockets): New function.
1851         (time_from_time_t, group_from_gid): New functions.
1852         (linux_xfer_osdata_shm): New function.
1853         (linux_xfer_osdata_sem): New function.
1854         (linux_xfer_osdata_msg): New function.
1855         (linux_xfer_osdata_modules): New function.
1856         (osdata_table): Add new entries.
1857         * common/buffer.c (buffer_xml_printf): Add support for long and
1858         long long format specifiers.
1859
1860 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
1861
1862         * amd64-linux-tdep.h (tdesc_x32_linux): New.
1863         (tdesc_x32_avx_linux): Likewise.
1864
1865 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
1866
1867         Implement multi-component --with-auto-load-dir.
1868         * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
1869         entries.
1870         (--with-auto-load-safe-path): Update the default value description.
1871         * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
1872         New.
1873         (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output.  Remove
1874         GDB_DATADIR NULL check.  Replace GDB_DATADIR/auto-load by
1875         AUTO_LOAD_DIR.  Support $ddir and multiple components in it.
1876         (_initialize_auto_load): Initialize also auto_load_dir.  Install new
1877         "set auto-load scripts-directory".
1878         * config.in: Regenerate.
1879         * configure: Regenerate.
1880         * configure.ac (--with-auto-load-dir): New configure option.
1881         (--auto-load-safe-path): Change the default to --with-auto-load-dir.
1882
1883 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
1884
1885         Provide $ddir substitution for --with-auto-load-safe-path.
1886         * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
1887         entries.
1888         * auto-load.c: Include observer.h.
1889         (auto_load_safe_path_vec_update): Call substitute_path_component for
1890         each component.  New variable ddir_subst.
1891         (auto_load_gdb_datadir_changed): New function.
1892         (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1893         AUTO_LOAD_SAFE_PATH.  New comment.
1894         (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1895         AUTO_LOAD_SAFE_PATH.  Install auto_load_gdb_datadir_changed.
1896         * config.in: Regenerate.
1897         * configure: Regenerate.
1898         * configure.ac (--auto-load-safe-path): Rename
1899         DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH.  Default to
1900         GDB_DATADIR/auto-load.
1901         * defs.h (substitute_path_component): New declaration.
1902         * top.c: Include observer.h.
1903         (set_gdb_datadir): New function.
1904         (init_main): Install it for "set data-directory".
1905         * utils.c (substitute_path_component): New function.
1906
1907 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
1908
1909         Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
1910         * auto-load.c (auto_load_objfile_script): Remove check for NULL
1911         DEBUG_FILE_DIRECTORY.  Handle multiple components of
1912         DEBUG_FILE_DIRECTORY.
1913
1914 2012-05-10  Tom Tromey  <tromey@redhat.com>
1915
1916         * dwarf2read.c (recursively_write_psymbols): New function.
1917         (write_psymtabs_to_index): Use it.
1918
1919         * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
1920         field.
1921         (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
1922         (load_partial_comp_unit): Update.
1923         (queue_comp_unit): Add argument 'pretend_language'.
1924         (process_queue): Update.
1925         (psymtab_to_symtab_1): Skip dependencies that have a user.
1926         (load_partial_comp_unit_reader): Give meaning to the 'data'
1927         argument.
1928         (load_full_comp_unit): Add 'pretend_language' argument.
1929         (process_full_comp_unit): Add 'pretend_language' argument.  Set
1930         language on CU.
1931         (process_imported_unit_die, read_file_scope, read_type_unit_scope):
1932         Update.
1933         (maybe_queue_comp_unit): Add 'pretend_language' argument.
1934         (follow_die_offset, follow_die_sig, read_signatured_type_reader):
1935         Update.
1936         (prepare_one_comp_unit): Add 'pretend_language' argument.
1937
1938         * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
1939         (struct dwarf2_per_objfile) <just_read_cus>: New field.
1940         (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
1941         (dw2_do_instantiate_symtab): Check whether symtab was read in
1942         before queueing.
1943         (dw2_instantiate_symtab): Add assertion.  Call
1944         process_cu_includes.
1945         (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
1946         (partial_symtab_p): New typedef.
1947         (set_partial_user): New function.
1948         (dwarf2_build_psymtabs_hard): Use set_partial_user.
1949         (scan_partial_symbols): Add imported CU to imported_symtabs.
1950         (dwarf2_psymtab_to_symtab): Call process_cu_includes.
1951         (psymtab_to_symtab_1): Do nothing if psymtab is readin.
1952         (get_symtab, recursively_compute_inclusions)
1953         (compute_symtab_includes, process_cu_includes)
1954         (process_imported_unit_die): New functions.
1955         (process_die) <DW_TAG_imported_unit>: New case.
1956         (dwarf2_per_objfile_free): Free 'imported_symtabs'.
1957
1958         * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
1959         comment.
1960         (struct partial_die_info) <locdesc>: Remove.
1961         <d>: New field.
1962         (process_psymtab_comp_unit): Add 'read_partial' argument.
1963         Update.
1964         (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
1965         (scan_partial_symbols): Handle DW_TAG_imported_unit.
1966         (add_partial_symbol): Update.
1967         (process_die): Handle DW_TAG_partial_unit.
1968         (read_file_scope): Update comment.
1969         (load_partial_dies): Handle DW_TAG_imported_unit.
1970         (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
1971         (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
1972
1973 2012-05-10  Tom Tromey  <tromey@redhat.com>
1974
1975         * cc-with-dwz.sh: New file.
1976
1977 2012-05-10  Tom Tromey  <tromey@redhat.com>
1978
1979         * symtab.h (struct symtab) <includes, user>: New fields.
1980         * block.h (struct block_iterator) <d, idx, which>: New fields.
1981         * block.c (initialize_block_iterator, find_iterator_symtab)
1982         (block_iterator_step, block_iter_name_step)
1983         (block_iter_match_step): New functions.
1984         (block_iterator_first, block_iterator_next)
1985         (block_iter_name_first, block_iter_name_next)
1986         (block_iter_match_first, block_iter_match_next): Rewrite.
1987         (get_block_symtab): New function.
1988
1989 2012-05-10  Tom Tromey  <tromey@redhat.com>
1990
1991         * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
1992         set_block_symtab.
1993         * jit.c (finalize_symtab): Use allocate_global_block,
1994         set_block_symtab.
1995         * buildsym.c (finish_block_internal): New function, from old
1996         finish_block.
1997         (finish_block): Rewrite.
1998         (end_symtab): Use finish_block_internal, set_block_symtab.
1999         * block.h (struct global_block): New.
2000         (allocate_global_block, set_block_symtab): Declare.
2001         * block.c (allocate_global_block, set_block_symtab): New
2002         functions.
2003
2004 2012-05-10  Tom Tromey  <tromey@redhat.com>
2005
2006         * psymtab.c (partial_map_expand_apply): Add assertion.
2007         (partial_map_symtabs_matching_filename): Skip included psymtabs.
2008         (psymtab_to_symtab): Find unshared psymtab.
2009         (dump_psymtab): Print including psymtabs.
2010         (recursively_search_psymtabs): New function.
2011         (expand_symtabs_matching_via_partial): Use it.
2012         * psympriv.h (struct partial_symtab) <user, searched_flag>: New
2013         fields.
2014         (enum psymtab_search_status): New.
2015
2016 2012-05-10  Tom Tromey  <tromey@redhat.com>
2017
2018         * tracepoint.c (scope_info): Update.
2019         * symtab.c (lookup_block_symbol, iterate_over_symbols)
2020         (find_pc_sect_symtab, search_symbols)
2021         (default_make_symbol_completion_list_break_on)
2022         (make_file_symbol_completion_list): Update.
2023         * symmisc.c (dump_symtab_1): Update.
2024         * stack.c (print_frame_args, iterate_over_block_locals)
2025         (print_frame_labels, iterate_over_block_arg_vars): Update.
2026         * python/py-block.c (block_object) <dict>: Remove.
2027         <block>: New field.
2028         <iter>: Change type.
2029         (blpy_iter): Update.
2030         (blpy_block_syms_iternext): Update.
2031         * psymtab.c (map_block): Use block iterators.
2032         * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
2033         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2034         * mdebugread.c (parse_symbol, mylookup_symbol): Update.
2035         * infrun.c (check_exception_resume): Update.
2036         * cp-support.c (make_symbol_overload_list_block): Update.
2037         * coffread.c (patch_opaque_types): Update.
2038         * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
2039         * block.h (struct block_iterator): New.
2040         (block_iterator_first, block_iterator_next, block_iter_name_first)
2041         (block_iter_name_next, block_iter_match_first)
2042         (block_iter_match_next): Declare.
2043         (ALL_BLOCK_SYMBOLS): Redefine.
2044         * block.c (block_iterator_first, block_iterator_next)
2045         (block_iter_name_first, block_iter_name_next)
2046         (block_iter_match_first, block_iter_match_next): New functions.
2047         * ada-lang.c (ada_add_block_symbols)
2048         (ada_make_symbol_completion_list): Use block iterator.
2049
2050 2012-05-10  Tom Tromey  <tromey@redhat.com>
2051
2052         * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
2053         (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
2054         (lookup_partial_symbol, find_last_source_symtab_from_partial)
2055         (read_psymtabs_with_filename, map_matching_symbols_psymtab)
2056         (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
2057         Update.
2058
2059 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
2060
2061         * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
2062         print-file-var-lib2.c, print-file-var-main.c and
2063         print-file-var.exp (located in gdb/testsuite/gdb.base).
2064
2065 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
2066
2067         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
2068         try locating the symbol in the symbol's own objfile first, before
2069         extending the search to all objfiles.
2070         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2071         out of lookup_symbol_aux_symtabs.
2072         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
2073         Replace extracted-out code by call to lookup_symbol_aux_objfile.
2074         Do not search EXCLUDE_OBJFILE.
2075         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
2076         (lookup_symbol_global): Search for matches in the block's objfile
2077         first, before searching all other objfiles.
2078
2079 2012-05-10  Tristan Gingold  <gingold@adacore.com>
2080
2081         * printcmd.c (set_command): Add pre/post inc/dec.
2082
2083 2012-05-09  Frank Ch. Eigler  <fche@redhat.com>
2084
2085         * gdb.1: Document -ex option.
2086
2087 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
2088
2089         * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
2090         * inferior.h (AT_SYMBOL): Delete.
2091
2092 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
2093
2094         * mips-tdep.c (mips_push_dummy_code): New function.
2095         (mips_gdbarch_init): Set the gdbarch call_dummy_location to
2096         ON_STACK and install mips_push_dummy_code as our gdbarch
2097         push_dummy_code routine.
2098
2099 2012-05-09  Pedro Alves  <palves@redhat.com>
2100
2101         * target.c (set_maintenance_target_async_permitted): Rename to ...
2102         (set_target_async_command): ... this.
2103         (show_maintenance_target_async_permitted): Rename to ...
2104         (show_target_async_command): ... this.
2105         (initialize_targets): Adjust.
2106
2107 2012-05-08  Doug Evans  <dje@google.com>
2108
2109         * go-exp.y (classify_name): Add missing assignment of fields of
2110         yylval.ssym.
2111
2112 2012-05-08  Eli Zaretskii  <eliz@gnu.org>
2113
2114         Display the ">" prompt in interactive mode while reading canned
2115         commands, even when the current interpreter is MI.
2116
2117         * interps.c (interp_set_temp): New function.
2118
2119         * interps.h (interp_set_temp): Add prototype.
2120
2121         * cli/cli-script.c (restore_interp): New cleanup function.
2122         (read_command_lines): Temporarily override the current interpreter
2123         with CLI and arrange for restoring the original one.
2124
2125 2012-05-12  Joel Sherrill <joel.sherrill@oarcorp.com>
2126
2127         * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
2128
2129 2012-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
2130
2131         * probe.c (parse_probes): Move conditional to check for
2132         debuginfo files from here...
2133         * stap-probe.c (stap_get_probes): ... to here.
2134
2135 2012-05-07  Mark Kettenis  <kettenis@gnu.org>
2136             H.J. Lu  <hongjiu.lu@intel.com>
2137
2138         * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
2139         `movl %esp, %ebp' for the X32 ABI.
2140
2141 2012-05-07  Tom Tromey  <tromey@redhat.com>
2142
2143         * dwarf2read.c (dwarf_tag_name): Return const char *.  Use
2144         get_DW_TAG_name.
2145         (dwarf_attr_name): Return const char *.  Use get_DW_AT_name.
2146         (dwarf_form_name): Return const char *.  Use get_DW_FORM_name.
2147         (dwarf_stack_op_name): Remove.
2148         (dwarf_cfi_name): Return const char *.  Use get_DW_ATE_name.
2149         (decode_locdesc): Use get_DW_OP_name.
2150         * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
2151         (dwarf2_compile_expr_to_ax): Likewise.
2152         (disassemble_dwarf_expression): Likewise.
2153         * dwarf2expr.h: (dwarf_stack_op_name): Remove.
2154
2155 2012-05-07  Chung-Lin Tang  <cltang@codesourcery.com>
2156
2157         * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
2158         (sh_linux_sigtramp_cache): New function.
2159         (sh_linux_sigreturn_init): New function.
2160         (sh_linux_rt_sigreturn_init): New function.
2161         (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
2162         patterns.
2163         (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
2164         syscall codes.
2165         (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
2166         (sh_linux_rt_sigreturn_tramp_frame): Likewise.
2167         (sh_linux_init_abi): Add init calls to register new tramp_frame
2168         definitions under 32-bit SH, update comments.
2169
2170 2012-05-07  Pedro Alves  <palves@redhat.com>
2171
2172         PR gdb/10952
2173
2174         * amd64-linux-tdep.c: Include glibc-tdep.h.
2175         (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
2176         gdbarch_skip_solib_resolver callback.
2177
2178 2012-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
2179
2180         * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
2181         back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
2182         (show_auto_load_safe_path): Check any-directory by comparison with "/".
2183         (add_auto_load_safe_path): Change the error message.
2184         (_initialize_auto_load): Change the "safe-path" help text.
2185         * configure: Regenerate
2186         * configure.ac (--without-auto-load-safe-path): Set
2187         WITH_AUTO_LOAD_SAFE_PATH to /.
2188
2189 2012-05-05  Sergio Durigan Junior  <sergiodj@redhat.com>
2190
2191         * stap-probe.h: Do not include unecessary `probe.h'.
2192
2193 2012-05-05  Alan Modra  <amodra@gmail.com>
2194
2195         * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
2196         bfd_und_section_ptr.
2197         * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
2198         and bfd_com_section_ptr.
2199
2200 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
2201
2202         * MAINTAINERS (Past Maintainers): Add Chris Faylor.
2203
2204 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
2205
2206         * windows-nat.h (segment_register_p_ftype): New typedef.
2207         (windows_set_segment_register_p): Add declaration.
2208         * windows-nat.c (segment_register_p): New static global.
2209         (windows_set_segment_register_p): New function.
2210         (do_windows_fetch_inferior_registers): Add special handling
2211         for segment registers.
2212         * amd64-windows-nat.c: #include "amd64-tdep.h".
2213         (amd64_windows_segment_register_p): New function.
2214         (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
2215         * i386-windows-nat.c: #include "i386-tdep.h".
2216         (i386_windows_segment_register_p): New function.
2217         (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
2218
2219 2012-05-04  Tristan Gingold  <gingold@adacore.com>
2220
2221         * printcmd.c (set_command): Emit a warning if the expression is not
2222         an assignment.
2223
2224 2012-05-03  Joel Brobecker  <brobecker@adacore.com>
2225
2226         * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
2227         Make static.
2228
2229 2012-05-03  Sergio Durigan Junior  <sergiodj@redhat.com>
2230
2231         * stap-probe.c (stap_is_operator): Change declaration.
2232         (stap_get_opcode): Change return value.
2233         (stap_parse_argument_1): Update calls to `stap_get_opcode' and
2234         `stap_parse_argument_1'.
2235
2236 2012-05-03  Pedro Alves  <pedro@codesourcery.com>
2237
2238         * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
2239         debug log.
2240
2241 2012-05-03  Siva Chandra Reddy  <sivachandra@google.com>
2242
2243         Add two new methods global_block and static_block to gdb.Symtab
2244         objects.
2245         * NEWS (Python scripting): Add entry about the new methods.
2246         * python/py-symtab.c (stpy_global_block): New function which
2247         implements the gdb.Symtab.global_block() method.
2248         (stpy_static_block): New function which implements the
2249         gdb.Symtab.static_block() method.
2250         (symtab_object_methods): Add entries for the two new methods.
2251
2252 2012-05-03  Doug Evans  <dje@google.com>
2253
2254         * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
2255         files.
2256
2257 2012-05-03  Yao Qi  <yao@codesourcery.com>
2258
2259         * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
2260         space.
2261         (i386_process_record): Ditto.
2262
2263 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
2264
2265         * infcall.c (unwind_on_signal_p): Make static.
2266
2267 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
2268
2269         * sol-thread.c (solaris_pid_to_str): Make static.
2270         (_initialize_sol_thread): Add prototype.
2271
2272 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
2273
2274         * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
2275
2276 2012-05-02  Christopher Faylor  <me.cygwin2012@cgf.cx>
2277
2278         * MAINTAINERS: Remove myself.
2279
2280 2012-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
2281
2282         Fix --without-auto-load-safe-path for MS-Windows host platform.
2283         * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
2284
2285 2012-05-02  Eli Zaretskii  <eliz@gnu.org>
2286
2287         * gdb_curses.h: Undefine KEY_EVENT before including curses
2288         headers.  Move "#undef MOUSE_MOVED" before any curses header
2289         inclusion.
2290
2291 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
2292
2293         * features/i386/i386-mmx-linux.c: Regenerate.
2294         * features/rs6000/powerpc-32.c: Likewise.
2295         * features/rs6000/powerpc-32l.c: Likewise.
2296         * features/rs6000/powerpc-403.c: Likewise.
2297         * features/rs6000/powerpc-403gc.c: Likewise.
2298         * features/rs6000/powerpc-405.c: Likewise.
2299         * features/rs6000/powerpc-505.c: Likewise.
2300         * features/rs6000/powerpc-601.c: Likewise.
2301         * features/rs6000/powerpc-602.c: Likewise.
2302         * features/rs6000/powerpc-603.c: Likewise.
2303         * features/rs6000/powerpc-604.c: Likewise.
2304         * features/rs6000/powerpc-64.c: Likewise.
2305         * features/rs6000/powerpc-64l.c: Likewise.
2306         * features/rs6000/powerpc-750.c: Likewise.
2307         * features/rs6000/powerpc-860.c: Likewise.
2308         * features/rs6000/powerpc-e500.c: Likewise.
2309         * features/rs6000/powerpc-e500l.c: Likewise.
2310         * features/rs6000/powerpc-isa205-32l.c: Likewise.
2311         * features/rs6000/powerpc-isa205-64l.c: Likewise.
2312         * features/rs6000/rs6000.c: Likewise.
2313
2314 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
2315
2316         * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
2317         variable.
2318         * stap-probe.c (stap_parse_single_operand) <reg_suffix,
2319         reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
2320         (stap_parse_argument) <e>: Likewise.
2321         (handle_stap_probe) <byte_order>: Likewise.
2322
2323 2012-04-30  Doug Evans  <dje@google.com>
2324
2325         * dwarf2read.c (init_cutu_and_read_dies): Renamed from
2326         init_and_read_dies_worker.  All callers updated.
2327         (init_cu_and_read_dies, init_tu_and_read_dies): Delete.  All calls
2328         replaced with init_cutu_and_read_dies.
2329         (load_partial_comp_unit): Pass 1 for use_existing_cu.
2330         (find_partial_die): Remove FIXME.  Don't free current CU.
2331
2332 2012-04-30  Sterling Augustine  <saugustine@google.com>
2333
2334         * contrib: New directory.
2335         * contrib/test_pubnames_and_indexes.py: New file.
2336
2337 2012-04-30  Doug Evans  <dje@google.com>
2338
2339         * dwarf2read.c (dwarf_decode_macros): New arg section_name.
2340         All callers updated.
2341         (init_cu_die_reader): Verify the section is non-empty.
2342         (dwarf_decode_line_header): Don't dereference section->asection
2343         until we know the section is present.
2344
2345 2012-04-29  Sergio Durigan Junior  <sergiodj@redhat.com>
2346
2347         * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
2348         probes.
2349
2350 2012-04-29  Yao Qi  <yao@codesourcery.com>
2351
2352         * gdb-code-style.el: New hook gdb-markup-hook
2353         and gdb-comment-hook.
2354
2355 2012-04-28  Doug Evans  <dje@google.com>
2356
2357         Initial support for Fission.  http://gcc.gnu.org/wiki/DebugFission
2358         * symfile.c (default_symfile_relocate): Use sectp->owner instead of
2359         objfile->obfd.
2360         * symfile.h (dwarf2_debug_sections): New member addr.
2361         * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
2362         (ctx_no_get_addr_index): New function.
2363         * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
2364         (ctx_no_get_addr_index): Declare.
2365         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
2366         * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
2367         (dwarf_expr_ctx_funcs): Update.
2368         (needs_get_addr_index): New function.
2369         (needs_frame_ctx_funcs): Update.
2370         * dwarf2loc.h (dwarf2_read_addr_index): Declare.
2371         * dwarf2read.c: #include "gdbcore.h".
2372         (dwarf2_per_objfile): New members addr, dwo_files.
2373         (dwarf2_elf_names): Add entry for addr.
2374         (struct dwo_section_names): New type.
2375         (dwo_section_names): New static global.
2376         (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
2377         (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
2378         old debug_types_section member updated to use this.
2379         Rename member debug_types_section to info_or_types_section,
2380         all uses updated.
2381         (signatured_type): Rename member type_offset to type_offset_in_tu,
2382         all uses updated.  New member type_offset_in_section.
2383         (struct dwo_sections): New type.
2384         (struct dwo_unit): New type.
2385         (struct dwo_file): New type.
2386         (die_reader_specs): New member dwo_file.
2387         (dwarf2_locate_sections): Watch for .debug_addr.
2388         (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
2389         (dwarf2_read_section): Get bfd of section from bfd's asection,
2390         instead of objfile.
2391         (create_cus_from_index): Initialize the_cu->info_or_types_section.
2392         (create_signatured_type_table_from_index): Initialize
2393         sig_type->info_or_types_section.
2394         (dw2_get_file_names): Statement lists for type units with DWO files
2395         live in the DWO file.
2396         (create_debug_types_hash_table): New function.
2397         (create_all_type_units): Rewrite.
2398         (init_cu_die_reader): New arg dwo_file, all callers updated.
2399         (init_and_read_dies_worker): Get section from
2400         this_cu->info_or_types_section.  Set sig_type->type_offset_in_section.
2401         Watch for DW_AT_GNU_dwo_name and if present lookup the file and
2402         continue reading the CU/TU from there.
2403         (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
2404         updated.  Get section from this_cu->info_or_types_section.
2405         (create_all_comp_units): Initialize this_cu->info_or_types_section.
2406         (skip_one_die): New cases DW_FORM_GNU_addr_index,
2407         DW_FORM_GNU_str_index.
2408         (hash_dwo_file, eq_dwo_file): New functions.
2409         (allocate_dwo_file_hash_table): New function.
2410         (hash_dwo_unit, eq_dwo_unit): New functions.
2411         (allocate_dwo_unit_table): New function.
2412         (dwarf2_locate_dwo_sections): New function.
2413         (struct create_dwo_info_table_data): New type.
2414         (create_debug_info_hash_table_reader): New function.
2415         (create_debug_info_hash_table): New function.
2416         (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
2417         (lookup_dwo_file): New function.
2418         (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
2419         (free_dwo_file, free_dwo_file_cleanup): New functions.
2420         (free_dwo_file_from_slot, free_dwo_files): New functions.
2421         (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
2422         (dwarf2_record_block_ranges): Ditto.
2423         (read_partial_die): Ditto.
2424         (process_enumeration_scope): Update to use type_offset_in_section.
2425         (read_full_die_1): New function.
2426         (read_full_die): Rewrite.
2427         (read_attribute_value): New cases DW_FORM_GNU_addr_index,
2428         DW_FORM_GNU_str_index.
2429         (read_addr_index_1, read_addr_index): New functions.
2430         (read_addr_index_from_leb128): New function.
2431         (struct dwarf2_read_addr_index_data): New type.
2432         (dwarf2_read_addr_index_reader): New function.
2433         (dwarf2_read_addr_index): New function.
2434         (read_str_index): New function.
2435         (leb128_size): New function.
2436         (dwarf_decode_line_header): Delete arg abfd, all callers updated.
2437         If processing a type unit from a DWO file, get the line section
2438         from the DWO file.
2439         (var_decode_location): Watch for DW_OP_GNU_addr_index.
2440         (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
2441         DW_FORM_GNU_str_index.
2442         (lookup_die_type): Check whether section offset of type's die is
2443         known before looking it up.  Remove assert.  Condition can
2444         legimately happen for inter-cu type references.
2445         (dwarf_attr_name): Handle Fission attributes.
2446         (dwarf_form_name): Handle Fission forms.
2447         (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
2448         DW_FORM_GNU_str_index.
2449         (follow_die_sig): Update to use type_offset_in_section.
2450         (decode_locdesc): New case DW_OP_GNU_addr_index.
2451         (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
2452         DW_FORM_GNU_str_index.
2453         (cu_debug_loc_section): New function.
2454         (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
2455         (dwarf2_per_objfile_free): Unmap .debug_addr section.
2456         Free DWO files if present.
2457         * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
2458
2459         Refactor DIE reading.
2460         * dwarf2read.c (dwarf2_per_objfile): Replace members
2461         debug_info_type_hash and debug_types_type_hash with die_type_hash.
2462         (die_reader_specs): New member "die_section".  Temporarily make
2463         member "buffer" non-const, pending constifying all info_ptr uses.
2464         (die_reader_func_ftype): New typedef.
2465         (dw2_get_file_names_reader): New function.
2466         (dw2_get_file_names): Rewrite.
2467         (read_and_check_type_unit_head): Rename arg type_offset to
2468         type_offset_in_tu.
2469         (create_all_type_units): Improve debugging message.
2470         Improve dummy type unit check.
2471         (init_cu_die_reader): New arg "section".  All callers updated.
2472         (init_and_read_dies_worker): New function.
2473         (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
2474         (init_cutu_and_read_dies_no_follow): New function.
2475         (init_cutu_and_read_dies_simple): New function.
2476         (process_psymtab_comp_unit_reader): New function.
2477         (process_psymtab_comp_unit): Delete args section,
2478         is_debug_types_section.  Rewrite.  All callers updated.
2479         (process_psymtab_type_unit): Renamed from process_type_comp_unit.
2480         All callers updated.  Rewrite.
2481         (load_partial_comp_unit_reader): New function.
2482         (load_partial_comp_unit): Rewrite.
2483         (skip_children): New arg reader.  Delete args buffer, cu.
2484         All callers updated.
2485         (skip_one_die): New arg reader.  Delete args buffer, cu.
2486         All callers updated.
2487         (locate_pdi_sibling): New arg reader.  Delete args buffer, abfd, cu.
2488         All callers updated.
2489         (load_full_comp_unit_reader): New function.
2490         (load_full_comp_unit): Rewrite.
2491         (read_comp_unit): Delete.
2492         (read_die_and_children_1): Delete, contents moved ...
2493         (read_die_and_children): ... here.
2494         (dwarf2_read_abbrevs): New arg abbrev_section.  All callers updated.
2495         (load_partial_dies): New arg reader.  Delete args abfd, buffer, cu.
2496         All callers updated.
2497         (read_partial_die): New arg reader.  Delete args abfd, buffer, cu.
2498         All callers updated.
2499         (find_partial_die): Rewrite load_all_dies support.
2500         (read_attribute_value): New arg reader.  Delete args abfd, cu.
2501         All callers updated.
2502         (read_attribute): New arg reader.  Delete args abfd, cu.
2503         All callers updated.
2504         (load_full_type_unit): Add assert.
2505         (read_signatured_type_reader): New function.
2506         (read_signatured_type): Rewrite.
2507         (free_stack_comp_unit): Remove call to age_cached_comp_units.
2508         (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
2509         All callers updated.  Set per_cu->cu = NULL after freeing it.
2510         (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
2511         (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
2512         (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
2513         (set_die_type): Update.
2514         (get_die_type_at_offset): Update.
2515         (read_file_scope): Call prepare_one_comp_unit.
2516         (read_type_unit_scope): Ditto.
2517         (prepare_one_comp_unit): Set producer if present.
2518
2519 2012-04-28  Sergio Durigan Junior  <sergiodj@redhat.com>
2520
2521         * probe.c (compile_rx_or_error): Silence ARI warning about missing
2522          gettext function on `error'.
2523
2524 2012-04-27  Doug Evans  <dje@google.com>
2525
2526         * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
2527         is empty.
2528
2529 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
2530             Tom Tromey  <tromey@redhat.com>
2531
2532         * breakpoint.c (struct breakpoint_objfile_data)
2533         <longjmp_searched>,<longjmp_probes>,<exception_searched>,
2534         <exception_probes>: New fields.
2535         (free_breakpoint_probes): New function.
2536         (create_longjmp_master_breakpoint): Prefer SystemTap probe over
2537         `_Unwind_DebugHook'.
2538         (create_exception_master_breakpoint): Likewise.
2539         (_initialize_breakpoint): Registering cleanup for SystemTap probes.
2540         * infrun.c: Including necessary header files for handling SystemTap
2541         probes.
2542         (handle_inferior_event): Handling longjmp breakpoint and exceptions
2543         via SystemTap probes.
2544         (check_exception_resume): Remove `func' argument.  Handle exception
2545         unwinding breakpoint set via a SystemTap probe.
2546         (insert_exception_resume_from_probe): New function.
2547
2548 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
2549             Tom Tromey  <tromey@redhat.com>
2550             Jan Kratochvil  <jan.kratochvil@redhat.com>
2551
2552         * Makefile.in (SFILES): Add `probe' and `stap-probe'.
2553         (COMMON_OBS): Likewise.
2554         (HFILES_NO_SRCDIR): Add `probe'.
2555         * NEWS: Mention support for static and SystemTap probes.
2556         * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
2557         SystemTap probes' arguments parser.
2558         * arm-linux-tdep.c: Including headers needed to perform the parsing
2559         of SystemTap probes' arguments.
2560         (arm_stap_is_single_operand): New function.
2561         (arm_stap_parse_special_token): Likewise.
2562         (arm_linux_init_abi): Initializing proper fields used by SystemTap
2563         probes' arguments parser.
2564         * ax-gdb.c (require_rvalue): Removing static declaration.
2565         (gen_expr): Likewise.
2566         * ax-gdb.h (gen_expr): Declaring function.
2567         (require_rvalue): Likewise.
2568         * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
2569         (bkpt_probe_breakpoint_ops): New variable.
2570         (momentary_breakpoint_from_master): Set the `probe' value.
2571         (add_location_to_breakpoint): Likewise.
2572         (break_command_1): Using proper breakpoint_ops according to the
2573         argument passed by the user in the command line.
2574         (bkpt_probe_insert_location): New function.
2575         (bkpt_probe_remove_location): Likewise.
2576         (bkpt_probe_create_sals_from_address): Likewise.
2577         (bkpt_probe_decode_linespec): Likewise.
2578         (tracepoint_probe_create_sals_from_address): Likewise.
2579         (tracepoint_probe_decode_linespec): Likewise.
2580         (tracepoint_probe_breakpoint_ops): New variable.
2581         (trace_command): Using proper breakpoint_ops according to the
2582         argument passed by the user in the command line.
2583         (initialize_breakpoint_ops): Initializing breakpoint_ops for
2584         static probes on breakpoints and tracepoints.
2585         * breakpoint.h (struct bp_location) <probe>: New field.
2586         * cli-utils.c (skip_spaces_const): New function.
2587         (extract_arg): Likewise.
2588         * cli-utils.h (skip_spaces_const): Likewise.
2589         (extract_arg): Likewise.
2590         * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
2591         * configure.ac: Append `stap-probe.o' to be generated when ELF
2592         support is present.
2593         * configure: Regenerate.
2594         * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
2595         * elfread.c: Include `probe.h' and `arch-utils.h'.
2596         (probe_key): New variable.
2597         (elf_get_probes): New function.
2598         (elf_get_probe_argument_count): Likewise.
2599         (elf_evaluate_probe_argument): Likewise.
2600         (elf_compile_to_ax): Likewise.
2601         (elf_symfile_relocate_probe): Likewise.
2602         (stap_probe_key_free): Likewise.
2603         (elf_probe_fns): New variable.
2604         (elf_sym_fns): Add `sym_probe_fns' value.
2605         (elf_sym_fns_lazy_psyms): Likewise.
2606         (elf_sym_fns_gdb_index): Likewise.
2607         (_initialize_elfread): Initialize objfile cache for static
2608         probes.
2609         * gdb_vecs.h (struct probe): New forward declaration.
2610         (probe_p): New VEC declaration.
2611         * gdbarch.c: Regenerate.
2612         * gdbarch.h: Regenerate.
2613         * gdbarch.sh (stap_integer_prefix): New variable.
2614         (stap_integer_suffix): Likewise.
2615         (stap_register_prefix): Likewise.
2616         (stap_register_suffix): Likewise.
2617         (stap_register_indirection_prefix): Likewise.
2618         (stap_register_indirection_suffix): Likewise.
2619         (stap_gdb_register_prefix): Likewise.
2620         (stap_gdb_register_suffix): Likewise.
2621         (stap_is_single_operand): New function.
2622         (stap_parse_special_token): Likewise.
2623         (struct stap_parse_info): Forward declaration.
2624         * i386-tdep.c: Including headers needed to perform the parsing
2625         of SystemTap probes' arguments.
2626         (i386_stap_is_single_operand): New function.
2627         (i386_stap_parse_special_token): Likewise.
2628         (i386_elf_init_abi): Initializing proper fields used by SystemTap
2629         probes' arguments parser.
2630         * i386-tdep.h (i386_stap_is_single_operand): New function.
2631         (i386_stap_parse_special_token): Likewise.
2632         * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
2633         * mipsread.c (ecoff_sym_fns): Likewise.
2634         * objfiles.c (objfile_relocate1): Support relocation for static
2635         probes.
2636         * parse.c (prefixify_expression): Remove static declaration.
2637         (initialize_expout): Likewise.
2638         (reallocate_expout): Likewise.
2639         * parser-defs.h (initialize_expout): Declare function.
2640         (reallocate_expout): Likewise.
2641         (prefixify_expression): Likewise.
2642         * ppc-linux-tdep.c: Including headers needed to perform the parsing
2643         of SystemTap probes' arguments.
2644         (ppc_stap_is_single_operand): New function.
2645         (ppc_stap_parse_special_token): Likewise.
2646         (ppc_linux_init_abi): Initializing proper fields used by SystemTap
2647         probes' arguments parser.
2648         * probe.c: New file, for generic statically defined probe support.
2649         * probe.h: Likewise.
2650         * s390-tdep.c: Including headers needed to perform the parsing of
2651         SystemTap probes' arguments.
2652         (s390_stap_is_single_operand): New function.
2653         (s390_gdbarch_init): Initializing proper fields used by SystemTap
2654         probes' arguments parser.
2655         * somread.c (som_sym_fns): Add `sym_probe_fns' value.
2656         * stap-probe.c: New file, for SystemTap probe support.
2657         * stap-probe.h: Likewise.
2658         * symfile.h: Include `gdb_vecs.h'.
2659         (struct sym_probe_fns): New struct.
2660         (struct sym_fns) <sym_probe_fns>: New field.
2661         * symtab.c (init_sal): Initialize `probe' field.
2662         * symtab.h (struct probe): Forward declaration.
2663         (struct symtab_and_line) <probe>: New field.
2664         * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
2665         locations.
2666         (stop_tracing): Likewise.
2667         * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
2668
2669 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
2670             Tom Tromey  <tromey@redhat.com>
2671
2672         * ax-gdb.c (gen_expr): Clean up code to handle internal variables
2673         and to compile agent expressions.
2674         * infrun.c (siginfo_make_value): New argument `ignore'.
2675         (siginfo_funcs): New struct.
2676         (_initialize_infrun): New argument when calling
2677         `create_internalvar_type_lazy'.
2678         * thread.c (thread_id_make_value): New argument `ignore'.
2679         (thread_funcs): New struct.
2680         (_initialize_thread): New argument when calling
2681         `create_internalvar_type_lazy'.
2682         * tracepoint.c (sdata_make_value): New argument `ignore'.
2683         (sdata_funcs): New struct.
2684         (_initialize_tracepoint): New argument when calling
2685         `create_internalvar_type_lazy'.
2686         * value.c (make_value): New struct.
2687         (create_internalvar_type_lazy): New argument `data'.
2688         (compile_internalvar_to_ax): New function.
2689         (value_of_internalvar): Properly handling `make_value' case.
2690         (clear_internalvar): Likewise.
2691         (show_convenience): Adding `TRY_CATCH' block.
2692         * value.h (internalvar_make_value): Delete, replace by...
2693         (struct internalvar_funcs): ... this.
2694         (create_internalvar_type_lazy) <fun>: Delete argument.
2695         (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
2696         (compile_internalvar_to_ax): New function.
2697         * windows-tdep.c (tlb_make_value): New argument `ignore'.
2698         (tlb_funcs): New struct.
2699         (_initialize_windows_tdep): New argument when calling
2700         `create_internalvar_type_lazy'.
2701
2702 2012-04-27  Mark Wielaard  <mjw@redhat.com>
2703
2704         * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
2705         see whether it is an address or a constant offset from DW_AT_low_pc.
2706         (dwarf2_record_block_ranges): Likewise.
2707         (read_partial_die): Likewise.
2708
2709 2012-04-26  Mark Wielaard  <mjw@redhat.com>
2710
2711         * MAINTAINERS (Write After Approval): Add myself to the list.
2712
2713 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
2714
2715         * proc-utils.h (proc_prettyprint_signalset): New prototype.
2716         (proc_prettyprint_signal): Likewise.
2717         (proc_prettyprint_faultset): Likewise.
2718         (proc_prettyprint_fault): Likewise.
2719         (proc_prettyprint_actionset): Likewise.
2720         (proc_prettyprint_flags): Move to new proc-flags.c section.
2721         (proc_prettyfprint_flags): New prototype.
2722         * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
2723         (proc_syscall, proc_cursig): Likewise.
2724         (proc_set_kill_on_last_close): Likewise.
2725         (proc_unset_kill_on_last_close): Likewise.
2726         (proc_set_watchpoint): Make static.
2727         (proc_delete_dead_threads): Likewise.
2728         (procfs_set_watchpoint): Likewise.
2729         (_initialize_procfs): Add prototype.
2730         * proc-events.c: Include proc-utils.h.
2731         (init_syscall_table): Make static.
2732         * proc-api.c (_initialize_proc_api): Add prototype.
2733         * proc-flags.c: Include proc-utils.h.
2734
2735 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
2736
2737         * configure.ac: Add AC_ARG_PROGRAM.
2738         * configure: Regenerate.
2739
2740 2012-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
2741
2742         Fix DW_AT_lower_bound defaults for DWARF-4+.
2743         * dwarf2read.c (read_subrange_type): Remove initialization of low and
2744         high.  New variable low_default_is_valid.  Implement DWARF-4+
2745         DW_AT_lower_bound defaults.  Print complaint for DW_AT_lower_bound with
2746         no default by the DWARF standard.
2747
2748 2012-04-26  Maciej W. Rozycki  <macro@mips.com>
2749             Maciej W. Rozycki  <macro@codesourcery.com>
2750
2751         * infrun.c (handle_inferior_event): Move the check for return
2752         trampolines ahead of the check for function trampolines.
2753         * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
2754         * mips-tdep.c (mips_str_mips16_call_stub): New variable.
2755         (mips_str_mips16_ret_stub): Likewise.
2756         (mips_str_call_fp_stub): Likewise.
2757         (mips_str_call_stub): Likewise.
2758         (mips_str_fn_stub): Likewise.
2759         (mips_str_pic): Likewise.
2760         (mips_in_frame_stub): New function.
2761         (mips_unwind_pc): Return the return address rather than the PC
2762         if the PC of an intermediate frame is inside a call thunk.
2763         (mips_is_stub_suffix): New function.
2764         (mips_is_stub_mode): Likewise.
2765         (mips_get_mips16_fn_stub_pc): Likewise.
2766         (mips_skip_mips16_trampoline_code): Update to handle all the
2767         currently generated stub types.  Don't recurse into __fn_stub
2768         thunks.  Remove heuristics to handle stubs beyond etext/_etext.
2769         Use cooked register accesses.
2770         (mips_in_return_stub): Reintroduce function.
2771         (mips_skip_trampoline_code): Traverse trampolines recursively.
2772         (mips_gdbarch_init): Handle MIPS16 return trampolines.
2773
2774 2012-04-26  Joel Brobecker  <brobecker@adacore.com>
2775
2776         GDB 7.4.1 released.
2777
2778 2012-04-26  Jonathan Larmour  <jifl@eCosCentric.com>
2779
2780         * arm-tdep.h (VFP_REGISTER_SIZE): Define.
2781         * features/arm-with-m-vfp-d16.xml: New file. Describes
2782         Cortex-M with VFPv4-sp-d16 FPU register layout.
2783         * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
2784         * features/arm-with-m-vfp-d16.c: New. Generated from above.
2785         * arm-tdep.c: Include arm-with-m-vfp-d16.c.
2786         (arm-register_g_packet_guesses): Add vfp-d16 guess.
2787         (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
2788
2789 2012-04-25  Doug Evans  <dje@google.com>
2790
2791         * cli/cli-decode.c (print_doc_line): Use stream instead of
2792         current_uiout.
2793
2794 2012-04-25  Sergio Durigan Junior  <sergiodj@redhat.com>
2795
2796         * features/arm-with-iwmmxt.c: Regenerate.
2797         * features/arm-with-m-fpa-layout.c: Likewise.
2798         * features/arm-with-m.c: Likewise.
2799         * features/arm-with-neon.c: Likewise.
2800         * features/arm-with-vfpv2.c: Likewise.
2801         * features/arm-with-vfpv3.c: Likewise.
2802         * features/mips-dsp-linux.c: Likewise.
2803         * features/mips-linux.c: Likewise.
2804         * features/mips64-dsp-linux.c: Likewise.
2805         * features/mips64-linux.c: Likewise.
2806         * features/s390-linux32.c: Likewise.
2807         * features/s390-linux32v1.c: Likewise.
2808         * features/s390-linux32v2.c: Likewise.
2809         * features/s390-linux64.c: Likewise.
2810         * features/s390-linux64v1.c: Likewise.
2811         * features/s390-linux64v2.c: Likewise.
2812         * features/s390x-linux64.c: Likewise.
2813         * features/s390x-linux64v1.c: Likewise.
2814         * features/s390x-linux64v2.c: Likewise.
2815         * features/tic6x-c62x-linux.c: Likewise.
2816         * features/tic6x-c62x.c: Likewise.
2817         * features/tic6x-c64x-linux.c: Likewise.
2818         * features/tic6x-c64x.c: Likewise.
2819         * features/tic6x-c64xp-linux.c: Likewise.
2820         * features/tic6x-c64xp.c: Likewise.
2821         * target-descriptions.c: Only generate `field_type' and `type'
2822         variables when needed.
2823
2824 2012-04-25  Fredrik Hederstierna  <fredrikh.hederstierna@securitas-direct.com>
2825
2826         * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
2827
2828 2012-04-25  Doug Evans  <dje@google.com>
2829
2830         Initial pass at Go language support.
2831         * NEWS: Mention Go.
2832         * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
2833         go-valprint.c.
2834         (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
2835         (YYFILES): Add go-exp.c.
2836         (YYOBJ): Add go-exp.o.
2837         (local-maintainer-clean): Delete go-exp.c.
2838         * defs.h (enum language): Add language_go.
2839         * dwarf2read.c: #include "go-lang.h".
2840         (fixup_go_packaging): New function.
2841         (process_full_comp_unit): Call it when processing Go CUs.
2842         (dwarf2_physname): Add Go support.
2843         (read_file_scope): Handle missing language spec for GNU Go.
2844         (set_cu_language): Handle DW_LANG_Go.
2845         * go-exp.y: New file.
2846         * go-lang.h: New file.
2847         * go-lang.c: New file.
2848         * go-typeprint.c: New file.
2849         * go-valprint.c: New file.
2850         * symtab.c: #include "go-lang.h".
2851         (symbol_set_language): Handle language_go.
2852         (symbol_find_demangled_name, symbol_set_names): Ditto.
2853         (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
2854
2855 2012-04-24  Jim Meyering  <meyering@redhat.com>
2856
2857         avoid a few strncpy-induced buffer overruns
2858         * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
2859         fname and psargs before trying to concatenate.
2860         * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
2861         "name" before applying strchr.
2862
2863 2012-04-25  Siva Chandra Reddy  <sivachandra@google.com>
2864
2865         * CONTRIBUTE: Use unified diff instead of context diff when
2866         generating patches.
2867
2868 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
2869
2870         * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
2871         code.  Handle JR.HB correctly.
2872
2873 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
2874
2875         * mips-tdep.c
2876         (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
2877         with the other MIPS16 helpers.
2878
2879 2012-04-24  Sergio Durigan Junior  <sergiodj@redhat.com>
2880
2881         * observer.sh: Conditionally declare `args', thus cleaning up
2882         unused instances of this variable.
2883
2884 2012-04-24  Yao Qi  <yao@codesourcery.com>
2885
2886         Revert this patch to allow breakpoint always-inserted
2887         in record target.
2888         2011-12-05  Pedro Alves  <pedro@codesourcery.com>
2889         * breakpoint.c: Include record.h.
2890         (breakpoints_always_inserted_mode): Return false when the record
2891         target is in use.
2892
2893         * breakpoint.c (iterate_over_bp_locations): New.
2894         * breakpoint.h: Declare.
2895         New typedef walk_bp_location_callback.
2896         * record.c (record_open): Call record_init_record_breakpoints.
2897         (record_sync_record_breakpoints): New.
2898         (record_init_record_breakpoints): New.
2899         * NEWS: Mention supporting breakpoint always-inserted mode in
2900         record target.
2901
2902 2012-04-24  Marc Khouzam  <marc.khouzam@ericsson.com>
2903
2904         * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
2905         any thread.
2906
2907 2012-04-24  Yao Qi  <yao@codesourcery.com>
2908
2909         * breakpoint.c (ep_is_catchpoint): Renamed to ...
2910         (is_catchpoint): ... it.
2911         (print_one_breakpoint_location): Caller update.
2912         * breakpoint.h: Update declaration.
2913
2914 2012-04-23  David S. Miller  <davem@davemloft.net>
2915
2916         * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
2917
2918 2012-04-23  Tom Tromey  <tromey@redhat.com>
2919
2920         * buildsym.c (add_free_pendings): Remove.
2921         * buildsym.h (add_free_pendings): Remove.
2922
2923 2012-04-23  Doug Evans  <dje@google.com>
2924
2925         * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
2926         attr.u.unsnd instead of attr.u.addr.
2927         (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
2928         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
2929         DW_FORM_ref_udata.
2930         (dump_die_shallow): Update cases DW_FORM_ref_addr,
2931         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4.  Add cases DW_FORM_ref8,
2932         DW_FORM_ref_udata.
2933         (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
2934
2935 2012-04-23  Maciej W. Rozycki  <macro@codesourcery.com>
2936
2937         * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
2938         (mips_o32_return_value): Likewise.
2939         (mips_o64_return_value): Likewise.
2940
2941 2012-04-21  Paul Hilfinger  <hilfinger@adacore.com>
2942
2943         * ada-lang.c (ada_evaluate_subexp): Add cases for
2944         TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
2945         their treatment in eval.c.
2946
2947 2012-04-21  David S. Miller  <davem@davemloft.net>
2948
2949         * sparc-tdep.c (X_DISP10): Define.
2950         (sparc_analyze_control_transfer): Handle compare-and-branch.
2951
2952 2012-04-21  Jonathan Larmour  <jifl@eCosCentric.com>
2953
2954         * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
2955         * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
2956
2957 2012-04-20  Nigel Stephens  <nigel@mips.com>
2958             Maciej W. Rozycki  <macro@codesourcery.com>
2959
2960         * mips-tdep.c (mips_float_register_p): New function.
2961         (mips_convert_register_float_case_p): Use mips_float_register_p.
2962         (mips_register_type): Likewise.
2963         (mips_print_register): Likewise.
2964         (print_gp_register_row): Likewise.
2965         (mips_print_registers_info): Likewise.
2966
2967 2012-04-20  Shun-Yen Lu  <dark.asparagus@gmail.com>
2968
2969         * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
2970         of mips16 symbols.
2971
2972 2012-04-20  Andrew Pinski  <apinski@cavium.com>
2973
2974         * MAINTAINERS (Write After Approval): Add myself to the list.
2975
2976 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
2977
2978         * MAINTAINERS: Update my e-mail address.
2979
2980 2012-04-20  Pedro Alves  <palves@redhat.com>
2981
2982         * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
2983         $srcdir.
2984         * configure: Regenerate.
2985
2986 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
2987
2988         * cp-support.h: Include `gdb_vecs.h'.  Delete `const_char_ptr' VEC
2989         declaration.
2990         * gdb_vecs.h: Declare `const_char_ptr' VEC.
2991
2992 2012-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
2993
2994         Fix compilation compatibility with python-2.4
2995         * python/py-type.c (convert_field): Cast ADDRSTRING for
2996         PyObject_SetAttrString as non-const.  New comment.
2997
2998 2012-04-19  Tom Tromey  <tromey@redhat.com>
2999
3000         * top.c (quit_target): Use all_cleanups.
3001         * main.c (captured_command_loop): Use all_cleanups.
3002         * exceptions.c (throw_exception): Use all_cleanups.
3003
3004 2012-04-19  Pedro Alves  <palves@redhat.com>
3005
3006         * Makefile.in (GNULIB_BUILDDIR): New.
3007         (LIBGNU, INCGNU, GNULIB_H): Adjust.
3008         (SUBDIRS): Add $(GNULIB_BUILDDIR).
3009         (CLEANDIRS). Remove gnulib/import.
3010         (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
3011         (all-lib): Ditto.
3012         (distclean): Remove the $(GNULIB_BUILDDIR) directory.
3013         (gnulib/import/Makefile): Replace gnulib/import with
3014         $(GNULIB_BUILDDIR).  Set CONFIG_FILES to just Makefile.
3015         (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
3016         (aclocal_m4_deps): Remove the gnulib dependencies.  Add
3017         acx_configure_dir.m4.
3018         * acinclude.m4: Include acx_configure_dir.m4.
3019         * acx_configure_dir.m4: New file.
3020         * aclocal.m4: Regenerate.
3021         * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
3022         calls.  Configure gnulib using ACX_CONFIGURE_DIR.
3023         (GNULIB): New variable.
3024         (GNULIB_STDINT_H): Adjust.
3025         (AC_OUTPUT): Don't output gnulib/Makefile.
3026         * gdb/defs.h: Include build-gnulib/config.h.
3027         * aclocal.m4: Regenerate.
3028         * config.in: Regenerate.
3029         * configure: Regenerate.
3030
3031         * gnulib/Makefile.in: New file.
3032         * gnulib/configure.ac: New file.
3033         * gnulib/aclocal.m4: New file.
3034         * gnulib/config.in: New file.
3035         * gnulib/configure: New file.
3036         * gnulib/: Re-run gnulib-tool to adjust.
3037
3038 2012-04-19  Doug Evans  <dje@google.com>
3039
3040         * cleanups.h (struct cleanup): Move to cleanups.c.
3041         (make_cleanup_dtor_ftype): New typedef.
3042         (make_cleanup_dtor): Use it.
3043         (ALL_CLEANUPS): Replace with ...
3044         (all_cleanups): ... this.  Declare.  All uses updated.
3045         * cleanups.c: #include "gdb_assert.h".
3046         (sentinel_cleanup): New static global.
3047         (SENTINEL_CLEANUP): Define.
3048         (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
3049         (make_my_cleanup2): Assert result is non-NULL.
3050         (all_cleanups): New function.
3051         (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
3052         of NULL.
3053
3054 2012-04-19  Pedro Alves  <palves@redhat.com>
3055
3056         * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
3057         Adjust paths to gnulib imported files.
3058
3059 2012-04-19  Pedro Alves  <palves@redhat.com>
3060
3061         * gnulib/: Move whole directory ...
3062         * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
3063         * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
3064         (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
3065         (aclocal_m4_deps): Adjust.
3066         * aclocal.m4: Regenerate.
3067         * configure: Regenerate.
3068         * configure.ac: Adjust AC_OUTPUT output.
3069
3070 2012-04-19  Yao Qi  <yao@codesourcery.com>
3071
3072         * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
3073         (vec.o): New rule.
3074         * vec.c: Move it ...
3075         * common/vec.c: ... here.
3076         * vec.h: Move it ...
3077         * common/vec.h: ... here.
3078
3079 2012-04-19  Yao Qi  <yao@codesourcery.com>
3080
3081         * gdb-code-style.el: New.
3082
3083 2012-04-18  Pedro Alves  <palves@redhat.com>
3084
3085         Update gnulib from latest git.
3086         (639ea5ae15e39fe48d43e04864b2997301e4b969)
3087
3088         * gnulib/Makefile.am: Update.
3089         * gnulib/dummy.c: Update.
3090         * gnulib/extra/arg-nonnull.h: Update.
3091         * gnulib/extra/c++defs.h: Update.
3092         * gnulib/extra/update-copyright: Update.
3093         * gnulib/extra/warn-on-use.h: Update.
3094         * gnulib/inttypes.in.h: Update.
3095         * gnulib/m4/00gnulib.m4: Update.
3096         * gnulib/m4/extensions.m4: Update.
3097         * gnulib/m4/gnulib-cache.m4: Update.
3098         * gnulib/m4/gnulib-common.m4: Update.
3099         * gnulib/m4/gnulib-comp.m4: Update.
3100         * gnulib/m4/gnulib-tool.m4: Update.
3101         * gnulib/m4/include_next.m4: Update.
3102         * gnulib/m4/inttypes-pri.m4: Update.
3103         * gnulib/m4/inttypes.m4: Update.
3104         * gnulib/m4/longlong.m4: Update.
3105         * gnulib/m4/memchr.m4: Update.
3106         * gnulib/m4/memmem.m4: Update.
3107         * gnulib/m4/mmap-anon.m4: Update.
3108         * gnulib/m4/multiarch.m4: Update.
3109         * gnulib/m4/onceonly.m4: Update.
3110         * gnulib/m4/stddef_h.m4: Update.
3111         * gnulib/m4/stdint.m4: Update.
3112         * gnulib/m4/string_h.m4: Update.
3113         * gnulib/m4/warn-on-use.m4: Update.
3114         * gnulib/m4/wchar_h.m4: Update.
3115         * gnulib/m4/wchar_t.m4: Update.
3116         * gnulib/m4/wint_t.m4: Update.
3117         * gnulib/memchr.c: Update.
3118         * gnulib/memmem.c: Update.
3119         * gnulib/stddef.in.h: Update.
3120         * gnulib/stdint.in.h: Update.
3121         * gnulib/str-two-way.h: Update.
3122         * gnulib/string.in.h: Update.
3123         * gnulib/wchar.in.h: Update.
3124
3125         * gnulib/extra/arg-nonnull.h: Delete.
3126         * gnulib/extra/c++defs.h: Delete.
3127         * gnulib/extra/warn-on-use.h: Delete.
3128         * gnulib/m4/wchar_h.m4: Delete.
3129         * gnulib/m4/wint_t.m4: Delete.
3130         * gnulib/wchar.in.h: Delete.
3131
3132         * gnulib/extra/snippets/arg-nonnull.h: New.
3133         * gnulib/extra/snippets/c++defs.h: New.
3134         * gnulib/extra/snippets/warn-on-use.h: New.
3135
3136         * aclocal.m4: Regenerate.
3137         * config.in: Regenerate.
3138         * configure: Regenerate.
3139         * gnulib/Makefile.in: Regenerate.
3140
3141 2012-04-18  Pedro Alves  <palves@redhat.com>
3142
3143         Reimport the update-copyright module from gnulib
3144         (250b80067c1e1d8faa0c42fb572f721975b929c5).
3145
3146         * configure: Regenerate.
3147         * gnulib/Makefile.am: Update.
3148         * gnulib/Makefile.in: Regenerate.
3149         * gnulib/extra/update-copyright: Update.
3150         * gnulib/m4/gnulib-cache.m4: Update.
3151         * gnulib/m4/gnulib-comp.m4: Update.
3152
3153 2012-04-18  Tristan Gingold  <gingold@adacore.com>
3154
3155         * configure.ac (aix): Put -lpthread into libs.
3156         * configure: Regenerate.
3157
3158 2012-04-18  Tom Tromey  <tromey@redhat.com>
3159
3160         * linespec.c (convert_linespec_to_sals): Don't use
3161         SYMBOL_OBJ_SECTION.
3162         (compare_msymbols): Arguments are minsym_and_objfile, not
3163         minimal_symbol*.  Don't use SYMBOL_OBJ_SECTION.
3164
3165 2012-04-18  Pedro Alves  <palves@redhat.com>
3166
3167         Revert gnulib/ part of:
3168         2011-01-01  Joel Brobecker  <brobecker@adacore.com>
3169         Copyright year update in most files (performed by copyright.sh).
3170
3171 2012-04-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
3172
3173         Fix 64-bit constants on 32-bit hosts.
3174         * dwarf2read.c (read_unsigned_leb128): Change declaration return type
3175         from unsigned long to ULONGEST.
3176         (read_signed_leb128): Change declaration return type from long to
3177         LONGEST.
3178         (dwarf2_const_value_attr): Change declaration parameter value from long
3179         to LONGEST.
3180         (dwarf2_compute_name): Change variable value from long to LONGEST.
3181         (read_unsigned_leb128): Change return type, variable result and some
3182         casts from unsigned long to ULONGEST.
3183         (read_signed_leb128): Change return type, variable result and some
3184         casts from long to LONGEST.
3185         (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
3186         value from long to LONGEST.
3187         (dwarf2_const_value): Change variable value from long to LONGEST.
3188         * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
3189         plongest and hex_string.
3190         * symtab.h (struct general_symbol_info): Change ivalue from long to
3191         LONGEST, remove the comment.
3192         * tracepoint.c (validate_actionline, collect_symbol, scope_info):
3193         Change SYMBOL_VALUE format strings to use plongest and hex_string.
3194
3195 2012-04-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
3196
3197         PR symtab/7259:
3198         * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
3199         * ada-lang.c (ada_discrete_type_high_bound)
3200         (ada_discrete_type_low_bound): Fix function comment.  Use
3201         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3202         (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
3203         (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3204         * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
3205         Use TYPE_FIELD_ENUMVAL.
3206         * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
3207         (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3208         * c-typeprint.c (c_type_print_base): Move variable lastval to inner
3209         block, change it to LONGEST.  Use TYPE_FIELD_ENUMVAL for
3210         TYPE_CODE_ENUM.
3211         * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
3212         * dwarf2read.c (process_enumeration_scope): Likewise.
3213         * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
3214         field.bitpos.
3215         (class StructMainTypePrettyPrinter): Support also
3216         FIELD_LOC_KIND_ENUMVAL.
3217         * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
3218         TYPE_CODE_ENUM.
3219         (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3220         (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
3221         * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
3222         (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment.  New
3223         field enumval.
3224         (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
3225         accommodate enumval.
3226         (struct call_site): Adjust loc_kind to accommodate enumval.
3227         (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
3228         (TYPE_FIELD_ENUMVAL): New macros.
3229         * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
3230         * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
3231         TYPE_CODE_ENUM.
3232         * p-typeprint.c (pascal_type_print_base): Likewise.
3233         * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
3234         enumval.
3235         * python/lib/gdb/types.py (make_enum_dict): Likewise.
3236         * python/py-type.c (convert_field): New variable addrstring.  Use
3237         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3238         (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
3239         * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
3240         * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
3241         TYPE_CODE_ENUM.
3242         * valprint.c (generic_val_print): Likewise.
3243
3244 2012-04-17  Doug Evans  <dje@google.com>
3245
3246         * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
3247
3248         * dwarf2read.c: Whitespace fixes.
3249         (lookup_signatured_type): Tweak comment.
3250         (get_die_type_at_offset): Fix comment.
3251
3252 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
3253
3254         * xcoffread.c (xcoff_secnum_to_sections): New function.
3255         (secnum_to_section, secnum_to_bfd_section): Reimplement
3256         using xcoff_secnum_to_sections.  Rename "secnum" parameter
3257         into "n_scnum".
3258         (RECORD_MINIMAL_SYMBOL): Delete.
3259         (record_minimal_symbol): New function.
3260         (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
3261         by call to record_minimal_symbol and set misc_func_recorded
3262         to 1.  Set last_csect_sec to the XCOFF section index instead
3263         of GDB's section_offset index.  Update calls to
3264         prim_record_minimal_symbol_and_info to pass the BFD section
3265         as well.
3266
3267 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
3268
3269         * xcoffread.c (read_xcoff_symtab): Delete variables
3270         last_csect_val and last_csect_sec and associated code.
3271
3272 2012-04-17  Doug Evans  <dje@google.com>
3273
3274         * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
3275         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3276         * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
3277         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
3278
3279         * cleanups.h: New file.
3280         * cleanups.c: New file.
3281         * Makefile.in (SFILES): Add cleanups.c.
3282         (HFILES_NO_SRCDIR): Add cleanups.h.
3283         (COMMON_OBS): Add cleanups.o.
3284         * defs.h (struct cleanup): Moved to cleanups.h.
3285         (do_cleanups,do_final_cleanups): Ditto.
3286         (discard_cleanups,discard_final_cleanups): Ditto
3287         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
3288         (save_cleanups,save_final_cleanups): Ditto.
3289         (restore_cleanups,restore_final_cleanups): Ditto.
3290         (null_cleanup): Ditto.
3291         (make_my_cleanup,make_my_cleanup2): Ditto.
3292         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3293         * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
3294         (do_cleanups,do_final_cleanups): Ditto.
3295         (discard_cleanups,discard_final_cleanups): Ditto
3296         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
3297         (save_cleanups,save_final_cleanups): Ditto.
3298         (restore_cleanups,restore_final_cleanups): Ditto.
3299         (null_cleanup): Ditto.
3300         (make_my_cleanup,make_my_cleanup2): Ditto.
3301         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3302
3303         * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
3304         make_my_cleanup.
3305         (make_cleanup_dyn_string_delete): Ditto.
3306         (make_cleanup_ui_file_delete): Ditto.
3307         (make_cleanup_ui_out_redirect_pop): Ditto.
3308         (make_cleanup_free_section_addr_info): Ditto.
3309         (make_cleanup_restore_integer): Ditto.
3310         (make_cleanup_unpush_target): Ditto.
3311         (make_cleanup_value_free_to_mark): Ditto.
3312         (make_cleanup_value_free): Ditto.
3313         (make_cleanup_free_so): Ditto.
3314
3315 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3316
3317         New option "set debug auto-load".
3318         * NEWS: New commands "set debug auto-load" and "show debug auto-load".
3319         * auto-load.c (debug_auto_load, show_debug_auto_load: New.
3320         (auto_load_safe_path_vec_update)
3321         (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
3322         if DEBUG_AUTO_LOAD.
3323         (file_is_auto_load_safe): New parameters debug_fmt and ....
3324         Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
3325         (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
3326         caller by explanatory string.
3327         (_initialize_auto_load): Register "set debug auto-load".
3328         * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
3329         and ....
3330         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
3331         (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
3332         by explanatory string.
3333         * main.c (captured_main): Likewise.
3334         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3335         (source_section_scripts): Likewise.
3336
3337 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3338
3339         New option "set auto-load safe-path".
3340         * NEWS: New commands "set auto-load safe-path"
3341         and "show auto-load safe-path".
3342         * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
3343         (auto_load_safe_path, auto_load_safe_path_vec)
3344         (auto_load_safe_path_vec_update, set_auto_load_safe_path)
3345         (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
3346         (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
3347         (source_gdb_script_for_objfile): New variable is_safe.  Call
3348         file_is_auto_load_safe.  Return if it is not.
3349         (struct loaded_script): New field loaded.
3350         (maybe_add_script): Add parameter loaded.  Initialize SLOT with it.
3351         (print_script): Use LOADED indicator instead of FULL_PATH.  Change
3352         output "Missing" to "No".
3353         (_initialize_auto_load): New variable cmd.  Initialize
3354         auto_load_safe_path.  Register "set auto-load safe-path",
3355         "show auto-load safe-path" and "add-auto-load-safe-path".
3356         * auto-load.h (maybe_add_script): Add parameter loaded.
3357         (file_is_auto_load_safe): New declaration.
3358         * config.in: Regenerate.
3359         * configure: Regenerate.
3360         * configure.ac: New parameters --with-auto-load-safe-path
3361         and --without-auto-load-safe-path.
3362         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
3363         (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
3364         * main.c (captured_main): Check file_is_auto_load_safe for
3365         LOCAL_GDBINIT.
3366         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
3367         variable is_safe.  Call file_is_auto_load_safe.  Return if it is not.
3368         (source_section_scripts): Call file_is_auto_load_safe.  Return if it is
3369         not.
3370
3371 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3372
3373         auto-load: Implementation.
3374         * NEWS: New descriptions for "info auto-load",
3375         "info auto-load gdb-scripts", "info auto-load python-scripts",
3376         "info auto-load local-gdbinit" and "info auto-load libthread-db".
3377         Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
3378         and "show auto-load-scripts".  New description for "set auto-load",
3379         "show auto-load", "set auto-load gdb-scripts",
3380         "show auto-load gdb-scripts", "set auto-load python-scripts",
3381         "show auto-load python-scripts", "set auto-load local-gdbinit",
3382         "show auto-load local-gdbinit", "set auto-load libthread-db" and
3383         "show auto-load libthread-db".
3384         * auto-load.c: Remove include python/python-internal.h.  Add includes
3385         exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
3386         cli/cli-setshow.h.
3387         (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
3388         (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
3389         (gdbpy_global_auto_load): Rename to ...
3390         (global_auto_load): ... here.
3391         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3392         (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
3393         (script_language_gdb, source_gdb_script_for_objfile): New.
3394         (struct loaded_script): New field language.
3395         (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
3396         LANGUAGE.
3397         (maybe_add_script): Add parameter language.  Drop redundant
3398         entry.full_path initialization.  Initialize entry.language and
3399         (*slot)->language.
3400         (auto_load_objfile_script): Change parameter suffix to language.
3401         Remove the call of maybe_add_script.
3402         Call language->source_script_for_objfile.
3403         (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
3404         New.
3405         (collect_matching_scripts): Adjust it for
3406         struct collect_matching_scripts_data.
3407         (auto_load_info_scripts_pattern_nl): New variable.
3408         (info_auto_load_scripts): Rename to ...
3409         (auto_load_info_scripts): ... here, add parameter language.  Adjust it
3410         for struct collect_matching_scripts_data.
3411         (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
3412         (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
3413         (auto_load_show_cmdlist_get, info_auto_load_cmd)
3414         (auto_load_info_cmdlist_get): New.
3415         (_initialize_auto_load): Move add_info of "auto-load-scripts" to
3416         python/py-auto-load.c.  New installment for "set auto-load gdb-scripts",
3417         "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
3418         "info auto-load local-gdbinit".
3419         * auto-load.h (struct script_language): New.
3420         (gdbpy_global_auto_load): Rename to ...
3421         (global_auto_load): ... here.
3422         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3423         (auto_load_local_gdbinit_loaded): New declarations.
3424         (maybe_add_script): New parameter language.
3425         (auto_load_objfile_script): Change parameter suffix to language.
3426         (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
3427         (auto_load_info_scripts, auto_load_set_cmdlist_get)
3428         (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
3429         declarations.
3430         * linux-thread-db.c: Include auto-load.h and ctype.h.
3431         (auto_load_thread_db, show_auto_load_thread_db): New.
3432         (struct thread_db_info): New field filename.
3433         (delete_thread_db_info): Call xfree for FILENAME.
3434         (try_thread_db_load): Initialize FILENAME.
3435         (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
3436         if !AUTO_LOAD_THREAD_DB.
3437         (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
3438         (_initialize_thread_db): Install auto_load_thread_db
3439         as "set auto-load libthread-db" and install info_auto_load_libthread_db
3440         as "info auto-load libthread-db".
3441         * main.c (captured_main): Rename gdbpy_global_auto_load to
3442         global_auto_load.  Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
3443         AUTO_LOAD_LOCAL_GDBINIT_LOADED.
3444         (print_gdb_help): Extend the help for 'local init file'.
3445         * python/py-auto-load.c: Remove a comment about gdb scripts extension.
3446         (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
3447         (auto_load_scripts): Rename to ...
3448         (auto_load_python_scripts): ... here, update the comment.
3449         (gdbpy_load_auto_script_for_objfile): New declaration.
3450         (show_auto_load_python_scripts, script_language_python)
3451         (gdbpy_load_auto_script_for_objfile): New.
3452         (source_section_scripts): Refactor the code.
3453         (load_auto_scripts_for_objfile): Rename to ...
3454         (gdbpy_load_auto_scripts_for_objfile): ... here, update the
3455         auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
3456         (info_auto_load_python_scripts): New.
3457         (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
3458         Rename "set auto-load-scripts" to "set auto-load python-scripts".
3459         Register "set auto-load-scripts" as its deprecated alias.  Register
3460         "info auto-load python-scripts".  Register "info auto-load-scripts" as
3461         its deprecated alias.
3462         (load_auto_scripts_for_objfile): Rename to ...
3463         (gdbpy_load_auto_scripts_for_objfile): ... here.
3464         * python/python.h (load_auto_scripts_for_objfile): Rename to ...
3465         (gdbpy_load_auto_scripts_for_objfile): ... here.
3466
3467 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3468
3469         auto-load: Move files.
3470         * Makefile.in (SFILES): Add auto-load.c.
3471         (HFILES_NO_SRCDIR): Add auto-load.h.
3472         (COMMON_OBS): Add auto-load.o.
3473         (distclean): Change .gdbinit for gdb-gdb.gdb.
3474         * auto-load.c: New file, with parts from python/py-auto-load.c.
3475         * auto-load.h: New file, with parts from python/python.h.
3476         * configure: Regenerate.
3477         * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
3478         * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
3479         * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
3480         * main.c: Include auto-load.h.
3481         * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
3482         command.h, observer.h and progspace.h to auto-load.c.  Add include
3483         auto-load.h.
3484         (gdbpy_global_auto_load, struct auto_load_pspace_info)
3485         (struct loaded_script, auto_load_pspace_data)
3486         (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
3487         (hash_loaded_script_entry, eq_loaded_script_entry)
3488         (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
3489         (maybe_add_script): Move to auto-load.c.
3490         (source_section_scripts): Change maybe_add_script parameters passing,
3491         use script_not_found_warning_print.
3492         (clear_section_scripts, auto_load_objfile_script)
3493         (auto_load_new_objfile, loaded_script_ptr)
3494         (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
3495         (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
3496         (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
3497         auto_load_new_objfile and info_auto_load_scripts initizations to
3498         auto-load.c.
3499         * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
3500
3501 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3502
3503         Code cleanup.
3504         * charset.c (find_charset_names): Remove variables ix and elt.
3505         Use free_char_ptr_vec.
3506         * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
3507         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
3508         debugdir_end.  New variable debugdir_len.
3509         * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
3510         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
3511         declarations.
3512         * progspace.c (clear_program_space_solib_cache): Remove variables ix
3513         and elt.  Use free_char_ptr_vec.
3514         * source.c (add_path): Remove variables argv, arg and argv_index.
3515         New variables dir_vec, back_to, ix and name.
3516         Use dirnames_to_char_ptr_vec_append.  Use freeargv instead of
3517         make_cleanup_freeargv.  Remove variable separator.  Simplify the code
3518         no longer expecting DIRNAME_SEPARATOR.
3519         (openp): Remove variable p, p1 and len.  New variables dir_vec,
3520         back_to, ix and dir.  Use dirnames_to_char_ptr_vec.  Simplify the code
3521         no longer expecting DIRNAME_SEPARATOR.
3522         * symfile.c (find_separate_debug_file): New variables debugdir_vec,
3523         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
3524         debugdir_end.
3525         * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
3526         (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
3527         (dirnames_to_char_ptr_vec): New functions.
3528
3529 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3530
3531         Code cleanup.
3532         * source.c (add_path): Remove always true conditional 'p == 0' and
3533         unindent its code block.
3534
3535 2012-04-17  Pedro Alves  <palves@redhat.com>
3536
3537         * gdbtypes.h (FIELD_BITPOS): Rename to ...
3538         (FIELD_BITPOS_LVAL): ... this.
3539         (FIELD_BITPOS): New.
3540         (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
3541         * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
3542         * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
3543         SET_FIELD_BITPOS.
3544         * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
3545         SET_FIELD_BITPOS.
3546         * stabsread.c (read_cpp_abbrev, read_one_struct_field)
3547         (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
3548         * target-descriptions.c (tdesc_gdb_type): Adjust to use
3549         SET_FIELD_BITPOS.
3550
3551 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
3552
3553         Do not rely on FIELD_LOC_KIND_BITPOS being zero.
3554         * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
3555         TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
3556         * gdbtypes.c (append_flags_type_flag): Likewise, twice.
3557         * jv-lang.c (java_link_class_type): Likewise, once.
3558         * stabsread.c (read_enum_type): Likewise.
3559
3560 2012-04-16  Yao Qi  <yao@codesourcery.com>
3561
3562         * common/agent.c (agent_run_command): Add one more parameter `len'.
3563         Update callers.
3564         * common/agent.h: Update declaration.
3565         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3566         Update.
3567         (linux_child_static_tracepoint_markers_by_strid): Ditto.
3568
3569 2012-04-14  Anton Gorenkov <xgsa@yandex.ru>
3570
3571         PR mi/13393
3572         * value.c (value_actual_type): New function.
3573         * value.h (value_actual_type): New declaration.
3574         * varobj.c (update_type_if_necessary): New function.
3575         (varobj_create): Call value_actual_type instead of
3576         value_type.
3577         (install_dynamic_child): distinct changed and type changed MI variable
3578         objects.
3579         (update_dynamic_varobj_children): Updated for install_dynamic_child
3580         change.  All callers updated.
3581         (varobj_update): Support for MI variable object type change if
3582         the value changed and RTTI is used to determine the type.
3583         (create_child_with_value): Call value_actual_type instead of
3584         value_type.
3585         (adjust_value_for_child_access): Extended with a new parameter which
3586         specify whether the given value should be casted to enclosing type.
3587         All callers updated.
3588
3589 2012-04-14  Yao Qi  <yao@codesourcery.com>
3590
3591         Import gnulib module inttypes from git
3592         (250b80067c1e1d8faa0c42fb572f721975b929c5)
3593         * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
3594         (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
3595         gnulib/m4/inttypes-pri.m4
3596         * aclocal.m4, config.in, configure: Regenerated.
3597         * gnulib/Makefile.am: Update.
3598         * gnulib/Makefile.in: Update.
3599         * gnulib/m4/gnulib-cache.m4: Update.
3600         * gnulib/m4/gnulib-comp.m4: Update.
3601         * gnulib/inttypes.in.h: New.
3602         * gnulib/m4/inttypes-pri.m4: New.
3603         * gnulib/m4/inttypes.m4: New.
3604
3605 2012-04-13  Luis Machado  <lgustavo@codesourcery.com>
3606
3607         * infrun.c (resume): Update PC address to the real PC after
3608         preparing to do displaced stepping.
3609
3610 2012-04-12  Doug Evans  <dje@google.com>
3611
3612         * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
3613         All callers updated.
3614
3615 2012-04-12  Mark Kettenis  <kettenis@gnu.org>
3616
3617         * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
3618
3619 2012-04-12  Doug Evans  <dje@google.com>
3620
3621         * dwarf2read.c (create_all_type_units): Renamed from
3622         create_debug_types_hash_table.  All callers updated.
3623
3624         * dwarf2read.c (create_signatured_type_table_from_index): Rename
3625         local type_sig to sig_type, type_offset to type_offset_in_tu.
3626         (hash_signatured_type): Renamed from hash_type_signature,
3627         all callers updated.
3628         (eq_signatured_type): Renamed from eq_type_signature,
3629         all callers updated.
3630         (create_debug_types_hash_table): Rename local type_sig to sig_type.
3631         (process_enumeration_scope): Ditto.
3632         (lookup_signatured_type_at_offset): Ditto.
3633         (load_full_type_unit, read_signatured_type): Ditto.
3634
3635 2012-04-12  Yao Qi  <yao@codesourcery.com>
3636
3637         * remote.c (async_remote_interrupt): Correct function name in
3638         debug message.
3639         (async_remote_interrupt_twice): Ditto.
3640
3641 2012-04-11  Yuanhui Zhang  <asmwarrior@gmail.com>
3642
3643         * source.c (find_and_open_source): Consistently pass resulting
3644         full path through xfullpath.
3645
3646 2012-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3647
3648         Provide more specific displaced-stepping memory error message.
3649         * infrun.c (displaced_step_prepare): New variable status.  Call
3650         target_read_memory instead of read_memory, provide more specific
3651         error message.
3652
3653 2012-04-11  Tristan Gingold  <gingold@adacore.com>
3654
3655         PR gdb/13901
3656         * darwin-nat.c (darwin_execvp): Revert previous patch.
3657
3658 2012-04-11  Tristan Gingold  <gingold@adacore.com>
3659
3660         PR gdb/13901
3661         * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
3662         in case of change.
3663
3664 2012-04-11  Tristan Gingold  <gingold@adacore.com>
3665
3666         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3667         warning.
3668
3669 2012-04-11  Siva Chandra Reddy  <sivachandra@google.com>
3670
3671         New command 'explore' which helps explore values and types in
3672         scope.
3673         * NEWS: Add an entry about the new 'explore' command.
3674         * data-directory/Makefile.in: Add gdb/command/explore.py
3675         * python/lib/gdb/command/explore.py: Implemention of the 'explore'
3676         command using the GDB Python API.
3677
3678 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
3679
3680         * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
3681         extension in jump target calculation.
3682
3683 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
3684
3685         * mips-tdep.c (mips32_next_pc): Handle JALX.
3686
3687 2012-04-10  Yao Qi  <yao@codesourcery.com>
3688
3689         * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
3690
3691 2012-04-10  Yao Qi  <yao@codesourcery.com>
3692
3693         * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
3694         and gnulib/m4/gnulib-tool.m4.
3695
3696 2012-04-10  Doug Evans  <dje@google.com>
3697
3698         * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
3699         (load_partial_dies): Clarify comment.
3700         (find_partial_die): Support rereading type units.
3701         Clarify CU handling, if we know offset is in CU, don't search for the
3702         containing CU.  Add comment regarding memory waste.
3703
3704 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
3705
3706         * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
3707         i386/x32-avx and i386/x32-avx-linux.
3708         (i386/x32-expedite): New.
3709         (i386/x32-linux-expedite): Likewise.
3710         (i386/x32-avx-expedite): Likewise.
3711         (i386/x32-avx-linux-expedite): Likewise.
3712         ($(outdir)/i386/x32.dat): Likewise.
3713         ($(outdir)/i386/x32-linux.dat): Likewise.
3714         ($(outdir)/i386/x32-avx.dat): Likewise.
3715         ($(outdir)/i386/x32-avx-linux.dat): Likewise.
3716
3717         * features/i386/x32-avx-linux.xml: New file.
3718         * features/i386/x32-avx.xml: Likewise.
3719         * features/i386/x32-core.xml: Likewise.
3720         * features/i386/x32-linux.xml: Likewise.
3721         * features/i386/x32.xml: Likewise.
3722
3723         * features/i386/x32-avx-linux.c: New.  Generated.
3724         * features/i386/x32-avx.c: Likewise.
3725         * features/i386/x32-linux.c: Likewise.
3726         * features/i386/x32.c: Likewise.
3727         * regformats/i386/x32-avx-linux.dat: Likewise.
3728         * regformats/i386/x32-avx.dat: Likewise.
3729         * regformats/i386/x32-linux.dat: Likewise.
3730         * regformats/i386/x32.dat: Likewise.
3731
3732 2012-04-10  Tristan Gingold  <gingold@adacore.com>
3733
3734         * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
3735         code to kill the inferior.
3736
3737 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
3738
3739         * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3740         defines.
3741         * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3742         defines.
3743         * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
3744         (yyvsp): New defines.
3745         * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3746         defines.
3747         * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3748         defines.
3749         * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3750         defines.
3751         * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3752         defines.
3753         * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3754         defines.
3755
3756 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
3757
3758         * sparc64-tdep.c (sparc64_store_arguments)
3759         (sparc64_store_arguments): Fix coding style.
3760
3761 2012-04-07  Mark Kettenis  <kettenis@gnu.org>
3762
3763         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
3764         complex floats, adjust some related comments and tighten a related
3765         assertion.
3766         (sparc64_extract_return_value): Handle complex floats.
3767
3768 2012-04-07  Doug Evans  <dje@google.com>
3769
3770         * dwarf2read.c (load_partial_dies): Change condition to assert.
3771
3772 2012-04-06  Doug Evans  <dje@google.com>
3773
3774         * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
3775         "mov %rsp,%rbp".
3776
3777 2012-04-05  Kevin Buettner  <kevinb@redhat.com>
3778
3779         * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
3780         fencepost error.
3781         (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
3782         (v850_gdbarch_init): Set `num_regs' as appropriate for the
3783         architecture.
3784
3785 2012-04-05  Keith Seitz  <keiths@redhat.com>
3786
3787         * linespec.c (decode_compound): Remove.
3788         (enum offset_relative_sign): New enum.
3789         (struct line_offset): New struct.
3790         (struct linespec): New struct.
3791         (struct linespec_state): Move file_symtabs,
3792         user_filename, and user_function into struct linespec.
3793         Make result an anonymous struct holding vectors of
3794         symbolp and minsym_and_objfile_d.
3795         Add language member.
3796         (enum ls_token_type): New enum.
3797         (linespec_keywords): New array.
3798         (struct ls_token): New struct.
3799         (struct ls_parser): New struct.
3800         (linespec_lexer_lex_number): New function.
3801         (linespec_lexer_lex_keyword): New function.
3802         (is_ada_operator): New function.
3803         (skip_quote_char): New function.
3804         (copy_token_string): New function.
3805         (is_closing_quote_enclosed): New function.
3806         (find_parameter_list_end): New function.
3807         (linespec_lexer_lex_string): New function.
3808         (linespec_lexer_lex_one): New function.
3809         (linespec_lexer_consume_token): New function.
3810         (linespec_lexer_peek_token): New function.
3811         (cplusplus_error): Remove unused function.
3812         (find_methods): Update comment.
3813         (find_toplevel_char): Return const.
3814         (is_objc_method_format): Remove unused function.
3815         (find_toplevel_string): New function.
3816         (is_linespec_boundary): Remove.
3817         (symbol_not_found_error): New function.
3818         (find_method_overload_end): Remove function.
3819         (unexpected_linespec_error): New function.
3820         (keep_name_info): Remove.
3821         (linespec_parse_line_offset): New function.
3822         (linespec_parse_basic): New function.
3823         (canonicalize_linespec): New function.
3824         (decode_line_internal): Remove.
3825         (create_sals_line_offset): New function adapted from
3826         decode_all_digits.
3827         (convert_linespec_to_sals): New function.
3828         (parse_linespec): New function.
3829         (linespec_parser_new): New function.
3830         (linespec_state_destructor): Change parameter type to
3831         struct linespec_state *.
3832         Add language parameter.
3833         Remove freeing of moved members.
3834         (linespec_parser_delete): New function.
3835         (decode_line_full): Use parse_linespec and linespec_parser_new.
3836         (decode_line_1): Likewise.
3837         (decode_indirect): Rename to ...
3838         (linespec_expression_to_pc): ... this and rewrite
3839         to simply find CORE_ADDR, storing this result for later
3840         conversion to SALs.
3841         (locate_first_half): Remove.
3842         (deocde_objc): Add parameter LS.
3843         Initialize new struct collect_info members.
3844         Handle minimal symbols, too.
3845         (decode_compound): Delete.
3846         (lookup_prefix_sym): Rewrite.
3847         (compare_msymbols): New function.
3848         (find_method): Rewrite.
3849         Do not call cplusplus_error.
3850         (symtabs_from_filename): Rewrite.
3851         (collect_function_symbols): Delete.
3852         (find_function_symbols): Rewrite without ARGPTR-style
3853         processing.
3854         (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
3855         (decode_dollar): Adapted and renamed to ...
3856         (linespec_parse_variable): ... this.
3857         (find_linespec_symbols): New function.
3858         (decode_label): Adapted and renamed to ...
3859         (find_label_symbols): ... this.
3860         (decode_digits_list_mode): Add and use LS argument.
3861         (decode_digits_ordinary): Likewise.
3862         (collect_symbols): Do not collect SALs, just symbols and msymbols.
3863         If in list mode, allow any symbol class.  Otherwise, only
3864         permit LOC_BLOCK symbols.
3865         (minsym_found): Update comments.
3866         (search_minsyms_for_name): Do not convert the matching symbol
3867         into a SAL.  Simply push the symbol and objfile into the
3868         result vector.
3869         (decode_variable): Delete. Contents adapted into
3870         find_linespec_symbols.
3871
3872         * cp-support.c (SKIP_SPACE): Remove.
3873         (operator_tokens): Remove unused global.
3874         (cp_validate_operator): Remove.
3875         * cp-support.h (cp_validate_operator): Remove declaration.
3876
3877 2012-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3878
3879         * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
3880         for TYPE_VPTR_FIELDNO.
3881         * valprint.c (valprint_check_validity): Make it global, move the
3882         function comment ...
3883         * value.h (valprint_check_validity): ... to this new declaration.
3884
3885 2012-04-02  Tristan Gingold  <gingold@adacore.com>
3886
3887         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
3888         the STATE32 api for i386 state.
3889         (i386_darwin_store_inferior_registers): Likewise.
3890
3891 2012-04-02  Tristan Gingold  <gingold@adacore.com>
3892
3893         * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
3894         SS offset.
3895         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3896         format_string.
3897
3898 2012-04-02  Tristan Gingold  <gingold@adacore.com>
3899
3900         PR gdb/13901
3901         * darwin-nat.c (darwin_execvp): Set binary preference.
3902
3903 2012-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3904
3905         * NEWS (set breakpoint condition-evaluation): Use imperative mood.
3906
3907 2012-03-30  Tom Tromey  <tromey@redhat.com>
3908
3909         * python/python.c (gdbpy_decode_line): Move cleanup creation out
3910         of TRY_CATCH.  Fix error handling.
3911         * python/py-value.c (convert_value_from_python): Move 'old'
3912         declaration to innermost scope.
3913
3914 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
3915             Andrey Smirnov  <andrew.smirnov@gmail.com>
3916
3917         -Wshadow warning fix.
3918         * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
3919         "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
3920         Adjust code accordingly.
3921
3922 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
3923
3924         * ada-lang.c (symbol_completion_add): Rename parameter
3925         "encoded" into "encoded_p".  Ajust code and documentation
3926         accordingly.
3927
3928 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
3929             Andrey Smirnov  <andrew.smirnov@gmail.com>
3930
3931         -Wshadow warning fix.
3932         * ada-lang.c (symbol_completion_add): Rename parameter
3933         "wild_match" into wild_match_p.  Update code and documentation
3934         accordingly.
3935
3936 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
3937
3938         * ada-lang.c (symbol_completion_match): Rename parameter
3939         "encoded" into "encoded_p".  Ajust code and documentation
3940         accordingly.
3941
3942 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
3943             Andrey Smirnov  <andrew.smirnov@gmail.com>
3944
3945         -Wshadow warning fix.
3946         * ada-lang.c (symbol_completion_match): Rename parameter
3947         "wild_match" into "wild_match_p".  Adjust code and function
3948         documentation accordingly.
3949
3950 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
3951             Andrey Smirnov  <andrew.smirnov@gmail.com>
3952
3953         -Wshadow warning fix.
3954         * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
3955         "symbol_info" into "info".  Adjust code accordingly.
3956         (ada_lookup_symbol): Likewise.
3957
3958 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
3959
3960         * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
3961         of this function's documentation.
3962
3963 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
3964             Andrey Smirnov  <andrew.smirnov@gmail.com>
3965
3966         -Wshadow warning fix.
3967         * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
3968         variable into "wild_match_p".  Adjust code accordingly.
3969
3970 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
3971             Andrey Smirnov  <andrew.smirnov@gmail.com>
3972
3973         -Wshadow warning fix.
3974         * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
3975         parameter into "wild_match_p".  Adjust code accordingly.
3976         Document this parameter in the function description.
3977
3978 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
3979             Andrey Smirnov  <andrew.smirnov@gmail.com>
3980
3981         -Wshadow warning fix.
3982         * ada-lang.c (add_symbols_from_enclosing_procs): Rename
3983         "wild_match" parameter to "wild_match_p" (-Wshadow).
3984
3985 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
3986
3987         * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
3988         in function documentation.
3989
3990 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
3991             Andrey Smirnov  <andrew.smirnov@gmail.com>
3992
3993         -Wshadow warning fix.
3994         * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
3995         variable into wild_match_p.  Adjust code accordingly.
3996
3997 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
3998             Andrey Smirnov  <andrew.smirnov@gmail.com>
3999
4000         * ada-valprint.c (ada_val_print_1): Move the code handling
4001         TYPE_CODE_ENUM inside its own lexical block.  Declare
4002         variables len and val there, instead of in the function's
4003         top level block.  Avoid declaring deref_val again in a way
4004         that shadows another variable of the same name declared
4005         in one of the up-level blocks.  Just re-use the up-level
4006         variable instead.
4007
4008 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
4009
4010         * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
4011         Replace block_found argument by symbol_info.  Adjust
4012         implementation accordingly.  Add function documentation.
4013         (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
4014         Fix documentation.
4015         * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
4016         * ada-exp.y (write_object_renaming): Adjust to new
4017         ada_lookup_encoded_symbol API.
4018
4019 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
4020
4021         * ada-lang.h (struct ada_symbol_info): Reformat.  Improve
4022         documentation.
4023
4024 2012-03-28  Rathish C  <rathish.c@kpitcummins.com>
4025
4026         * v850-tdep.c: Add the enum values for mpu and fpu registers.
4027         (v850_register_name): Add the mpu and fpu register names.
4028         (v850e_register_name): Add the mpu and fpu register names.
4029         (v850e2_register_name): New function.
4030         (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
4031         bfd_mach_v850e2v3.
4032
4033 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
4034
4035         * NEWS: Add entry for Ada varobj support.
4036
4037 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
4038
4039         * varobj.c (default_value_is_changeable_p): New function,
4040         extracted from varobj_value_is_changeable_p.  Add declaration.
4041         (ada_value_is_changeable_p): New function, extracted from
4042         varobj_value_is_changeable_p.  Add declaration.
4043         (struct language_specific): New field "value_is_changeable_p".
4044         (languages): Add entries for new field.
4045         (varobj_create): Set language before calling install_new_value.
4046         (varobj_value_is_changeable_p): Reimplement to call the varobj's
4047         "value_is_changeable_p" language callback.
4048
4049 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
4050
4051         * ada-varobj.h, ada-varobj.c: New files.
4052         * Makefile.in (SFILES): Add ada-varobj.c.
4053         (HFILES_NO_SRCDIR): Add ada-varobj.h.
4054         (COMMON_OBS): Add ada-varobj.o.
4055
4056 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
4057
4058         * varobj.c (ada_value_has_mutated): Add declaration.  New function.
4059         (struct language_specific): New field "value_has_mutated".
4060         (languages): Set field "value_has_mutated" in each entry of array.
4061         (varobj_value_has_mutated): New function.
4062         (varobj_udpdate): Add handling of type mutation.
4063         (value_of_root): Add handling of type mutation.
4064         (ada_value_has_mutated): New function.
4065
4066 2012-03-28  Pedro Alves  <palves@redhat.com>
4067
4068         * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
4069         Always supply $fr0 as 0.0 and $fr1 as 1.0.
4070
4071 2012-03-28  Tom Tromey  <tromey@redhat.com>
4072
4073         * python/py-inferior.c (infpy_read_memory): Remove cleanups and
4074         explicitly free 'buffer' on exit paths.  Decref 'membuf_object'
4075         before returning.
4076
4077 2012-03-28  Tom Tromey  <tromey@redhat.com>
4078
4079         * .dir-locals.el: New file.
4080
4081 2012-03-28  Pedro Alves  <palves@redhat.com>
4082
4083         * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
4084
4085 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
4086
4087         * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
4088         handling for r0.
4089
4090 2012-03-27  Pedro Alves  <palves@redhat.com>
4091
4092         Eliminate struct ui_stream.
4093
4094         * ui-out.h (struct ui_stream): Delete.
4095         (ui_out_field_stream): Adjust prototype.
4096         (ui_out_stream_new, ui_out_stream_delete)
4097         (make_cleanup_ui_out_stream_delete): Delete declarations.
4098         * ui-out.c (ui_out_field_stream): Change prototype to take a
4099         ui_file instead of a ui_stream.  Adjust.
4100         (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
4101         (make_cleanup_ui_out_stream_delete): Delete.
4102         * breakpoint.c (print_breakpoint_location)
4103         (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
4104         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
4105         * disasm.c (dump_insns): Ditto.
4106         (do_mixed_source_and_assembly, do_assembly_only): Adjust
4107         prototype.
4108         (gdb_disassembly): Use ui_file/mem_fileopen instead of
4109         ui_stream/ui_out_stream_new.
4110         * infcmd.c (print_return_value): Ditto.
4111         * osdata.c (info_osdata_command): Don't allocate a local
4112         ui_stream.
4113         * stack.c (print_frame_arg, print_frame_args, print_frame): Use
4114         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
4115         * tracepoint.c (print_one_static_tracepoint_marker): Don't
4116         allocate a local ui_stream.
4117         * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
4118         instead of ui_stream/ui_out_stream_new.
4119         (list_args_or_locals): Don't allocate a local ui_stream.
4120         * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
4121         (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
4122         ui_stream/ui_out_stream_new.
4123         * cli/cli-setshow.c (do_setshow_command): Ditto.
4124
4125 2012-03-27  Oza Pawandeep  <oza.pawandeep@gmail.com>
4126
4127         * arm-linux-tdep.c (arm_linux_init_abi): Call
4128         set_gdbarch_process_record.  Initialize `arm_swi_record' field.
4129         * arm-tdep.c (arm_process_record): New function.
4130         (deallocate_reg_mem): New function.
4131         (decode_insn): New function.
4132         (thumb_record_branch): New function.
4133         (thumb_record_ldm_stm_swi(): New function.
4134         (thumb_record_misc): New function.
4135         (thumb_record_ld_st_stack): New function.
4136         (thumb_record_ld_st_imm_offset): New function.
4137         (thumb_record_ld_st_reg_offset(): New function.
4138         (thumb_record_add_sub_cmp_mov): New function.
4139         (thumb_record_shift_add_sub): New function.
4140         (arm_record_coproc_data_proc): New function.
4141         (arm_record_coproc): New function.
4142         (arm_record_b_bl): New function.
4143         (arm_record_ld_st_multiple): New function.
4144         (arm_record_ld_st_reg_offset): New function.
4145         (arm_record_ld_st_imm_offset): New function.
4146         (arm_record_data_proc_imm): New function.
4147         (arm_record_data_proc_misc_ld_str): New function.
4148         (arm_record_extension_space): New function.
4149         (arm_record_strx): New function.
4150         (sbo_sbz): New function.
4151         (struct insn_decode_record): New structure for arm insn record.
4152         (REG_ALLOC): New macro for reg allocations.
4153         (MEM_ALLOC): New macro for memory allocations.
4154         * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
4155
4156 2012-03-27  Andreas Schwab  <schwab@linux-m68k.org>
4157
4158         * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
4159         (store_register): Likewise.
4160
4161 2012-03-26  Oza Pawandeep  <oza.pawandeep@gmail.com>
4162
4163         * MAINTAINERS (Write After Approval): Add myself to the list.
4164
4165 2012-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
4166
4167         * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
4168         Describe also the option "auto".
4169
4170 2012-03-22  Richard Henderson  <rth@redhat.com>
4171
4172         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
4173         * sparc-nat.c (sparc_xfer_wcookie): Make static.
4174
4175 2012-03-22  Richard Henderson  <rth@redhat.com>
4176
4177         * jit.c (jit_read_code_entry): Compute alignment and offset of
4178         int64_t member before computing entry_size.
4179
4180 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
4181
4182         Python scripting: Add new method Value.referenced_value to
4183         gdb.Value which can dereference pointer as well as reference
4184         values.
4185         * NEWS: Add entry under 'Python scripting' about the new method
4186         Value.referenced_value on gdb.Value objects.
4187         * python/py-value.c (valpy_referenced_value): New function
4188         defining a new method on gdb.Value objects which can dereference
4189         pointer and reference values.
4190
4191 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
4192
4193         * MAINTAINERS (Write After Approval): Add myself to the list.
4194
4195 2012-03-21  Kevin Buettner  <kevinb@redhat.com>
4196
4197         * symtab.c (skip_prologue_sal): Change test to check for "main()"
4198         in addition to "main".
4199
4200 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
4201
4202         * expression.h (op_name): Add declaration.
4203         * expprint.c (op_name): Remove declaration.  Make non-static.
4204         * ax-gdb.c (gen_expr): Use op_name instead of op_string.
4205
4206 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
4207
4208         * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
4209         of struct siginfo.
4210         * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
4211         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4212         * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
4213         (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
4214         (linux_nat_get_siginfo): Likewise.
4215         * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
4216         (linux_nat_get_siginfo): Likewise.
4217         * linux-tdep.c (linux_get_siginfo_type): Likewise.
4218         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
4219         * procfs.c (gdb_siginfo_t): Likewise.
4220
4221 2012-03-21  Mike Frysinger  <vapier@gentoo.org>
4222
4223         * .gitignore: Ignore more files.
4224
4225 2012-03-20  Pedro Alves  <palves@redhat.com>
4226
4227         * remote.c (remote_start_remote): Clear `rs->starting_up' on early
4228         returns.
4229
4230 2012-03-20  Yao Qi  <yao@codesourcery.com>
4231
4232         * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
4233         comment.
4234
4235 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
4236
4237         Code cleanupp: Use cu_offset and sect_offset compile time type checking.
4238         * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
4239         (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
4240         sect_offset.
4241         * dwarf2expr.h (cu_offset, sect_offset): New types.
4242         (struct dwarf_expr_context_funcs) <dwarf_call>
4243         (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
4244         sect_offset.
4245         (struct dwarf_expr_context) <len>: Improve the comment.
4246         (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
4247         cu_offset and sect_offset.
4248         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
4249         (dwarf_expr_get_base_type, needs_frame_dwarf_call)
4250         (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
4251         * dwarf2loc.h: Include dwarf2expr.h.
4252         (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
4253         and sect_offset.
4254         * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
4255         Improve the comment.
4256         (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
4257         (struct signatured_type, struct line_header, struct partial_die_info)
4258         (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
4259         (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
4260         (get_die_type_at_offset, create_cus_from_index)
4261         (create_signatured_type_table_from_index, dw2_get_file_names)
4262         (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
4263         (read_and_check_comp_unit_head, read_and_check_type_unit_head)
4264         (create_debug_types_hash_table, process_psymtab_comp_unit)
4265         (load_partial_comp_unit, create_all_comp_units)
4266         (partial_die_parent_scope, partial_die_full_name, skip_one_die)
4267         (load_full_comp_unit, dwarf2_physname, read_import_statement)
4268         (inherit_abstract_dies, read_func_scope, read_call_site_scope)
4269         (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
4270         (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
4271         (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
4272         (find_partial_die, read_attribute_value, lookup_die_type)
4273         (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
4274         (is_ref_attr): New function comment.
4275         (dwarf2_get_ref_die_offset): New function comment, new variable retval.
4276         Use cu_offset and sect_offset.
4277         (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
4278         (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
4279         (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
4280         (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
4281         (offset_and_type_hash, offset_and_type_eq, set_die_type)
4282         (get_die_type_at_offset, partial_die_hash, partial_die_eq)
4283         (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
4284         sect_offset.
4285
4286 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
4287
4288         Code cleanup.
4289         * python/py-auto-load.c (source_section_scripts): New variable back_to.
4290         Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
4291         with xfree.
4292         (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
4293
4294 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
4295
4296         * NEWS: Describe new options --init-command=FILE, -ix and
4297         --init-eval-command=COMMAND, -iex.
4298         * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
4299         CMDARG_INIT_COMMAND.
4300         (captured_main): New enum items OPT_IX and OPT_IEX.  Add
4301         "init-command", "init-eval-command", "ix" and "iex" to the variable
4302         long_options.  Handle OPT_IX and OPT_IEX.  Process them from CMDARG_VEC.
4303         New comment for CMDARG_FILE and CMDARG_COMMAND processing.
4304         (print_gdb_help): Describe --init-command=FILE, -ix and
4305         --init-eval-command=COMMAND, -iex.
4306
4307 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
4308
4309         Code cleanup.
4310         * main.c (struct cmdarg): Move it here from main.  Add more comments.
4311         (cmdarg_s, VEC (cmdarg_s)): New.
4312         (main): Move struct cmdarg from here.  New variables cmdarg_vec and
4313         cmdarg_p.  Remove variables cmdsize and ncmd and their initialization.
4314         Install cleanup for cmdarg_vec.  Update filling for options 'x' and
4315         'X'.  Replace cmdarg processing by cmdarg_vec processing.  Remove xfree
4316         of CMDARG.
4317
4318 2012-03-19  Tom Tromey  <tromey@redhat.com>
4319
4320         * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
4321
4322 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
4323
4324         PR symtab/13777
4325         * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
4326         GCC >=4.5.
4327
4328 2012-03-16  Chris January  <chris.january@allinea.com>
4329
4330         * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
4331         of clear.
4332
4333 2012-03-16  Chris January  <chris.january@allinea.com>
4334
4335         * source.c (add_path): Use memmove instead of strcpy because the
4336         strings overlap.
4337
4338 2012-03-16  Joel Brobecker  <brobecker@adacore.com>
4339
4340         * value.h (set_value_parent): Add declaration.
4341         * value.c (set_value_parent): New function.
4342         (value_address): If VALUE->PARENT is not NULL, then use it as
4343         the base address instead of VALUE->LOCATION.address.
4344         * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
4345         the same as OBJ's address.  Adjust V's offset accordingly.
4346         Set V's parent.
4347
4348 2012-03-16  Gary Benson  <gbenson@redhat.com>
4349
4350         PR breakpoints/10738
4351         * dwarf2read.c (use_deprecated_index_sections): New global.
4352         (struct partial_die_info): New member may_be_inlined.
4353         (read_partial_die): Set may_be_inlined where appropriate.
4354         (add_partial_subprogram): Add partial symbols for partial
4355         DIEs that may be inlined.
4356         (new_symbol_full): Add inlined subroutines to the current
4357         scope.
4358         (write_psymtabs_to_index): Bump version number.
4359         (dwarf2_read_index): Read only version 6 indices unless
4360         use_deprecated_index_sections is set.
4361         * linespec.c (symbol_and_data_callback): New structure.
4362         (iterate_inline_only): New function.
4363         (iterate_over_all_matching_symtabs): New argument
4364         "include_inline".  If nonzero, also call the callback for
4365         symbols representing inlined subroutines.
4366         (lookup_prefix_sym): Pass extra argument to the above.
4367         (find_function_symbols): Likewise.
4368         (add_matching_symbols_to_info): Likewise.
4369         * NEWS: Mention that GDB can now set breakpoints on inlined
4370         functions.
4371
4372 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
4373
4374         * p-typeprint.c (pascal_type_print_method_args):
4375         Fix display of parameter of methods.
4376
4377 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
4378
4379         * amd64-windows-nat.c (_initialize_amd64_windows_nat):
4380         Add missing prototype.
4381
4382 2012-03-16  Yao Qi  <yao@codesourcery.com>
4383             Jan Kratochvil  <jan.kratochvil@redhat.com>
4384
4385         Fix false compilation warning.
4386         * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
4387
4388 2012-03-15  Jonathan Larmour  <jifl@eCosCentric.com>
4389             Pedro Alves  <pedro@codesourcery.com>
4390
4391         * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
4392         (arm_register_g_packet_guesses): New function.
4393         (arm_gdbarch_init): Don't force a target description with
4394         registers when the executable is detected as M-profile.  Instead
4395         set gdbarch->tdep->is_m.  Register `g' packet guesses.
4396         (_initialize_arm_tdep): Initialize the new target description.
4397         * features/arm-with-m-fpa-layout.xml: New description.
4398         * features/arm-with-m-fpa-layout.c: New, generated.
4399
4400 2012-03-15  Joel Brobecker  <brobecker@adacore.com>
4401
4402         * breakpoint.c (breakpoint_xfer_memory): Add assertion.
4403         Update function description.
4404         (insert_bp_location): Do not wipe bl->target_info out.
4405         * mem-break.c: #include "gdb_string.h".
4406         (default_memory_insert_breakpoint): Do not call target_read_memory
4407         with a pointer to the breakpoint's shadow_contents buffer.  Use
4408         a local buffer instead.
4409         * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
4410
4411 2012-03-15  Tom Tromey  <tromey@redhat.com>
4412
4413         * NEWS: Mention "info vtbl", not "info vtable".
4414         * cp-support.c (info_vtbl_command): Fix comment.
4415         (_initialize_cp_support): Fix text.
4416
4417 2012-03-15  Tom Tromey  <tromey@redhat.com>
4418
4419         * cp-valprint.c (cp_print_value_fields): Use
4420         print_function_pointer_address for vtable slot.
4421
4422 2012-03-15  Tom Tromey  <tromey@redhat.com>
4423
4424         * gnu-v3-abi.c (struct value_and_voffset): New.
4425         (hash_value_and_voffset, eq_value_and_voffset)
4426         (compare_value_and_voffset, compute_vtable_size)
4427         (print_one_vtable, gnuv3_print_vtable): New functions.
4428         (init_gnuv3_ops): Initialize 'print_vtable' field.
4429         * cp-support.c (info_vtbl_command): New function.
4430         (_initialize_cp_support): Add "info vtbl".
4431         * cp-abi.h (cplus_print_vtable): Declare.
4432         (struct cp_abi_ops) <print_vtable>: New field.
4433         * cp-abi.c (cplus_print_vtable): New function.
4434         * NEWS: Update.
4435
4436 2012-03-15  Tom Tromey  <tromey@redhat.com>
4437
4438         * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
4439         iterate_over_symbols.
4440
4441 2012-03-14  Doug Evans  <dje@google.com>
4442
4443         * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
4444         DW_OP_GNU_parameter_ref.
4445
4446 2012-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
4447
4448         Fix double prompt of 'interpreter-exec mi'.
4449         * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
4450         (mi_interpreter_resume): use it.
4451         (mi_execute_command_input_handler): New function.
4452         * mi/mi-main.c (mi_execute_command): Move prompt printing to
4453         mi_execute_command_input_handler.
4454
4455 2012-03-13  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
4456
4457         * darwin-nat-info.c (_initialize_darwin_info_commands): Add
4458         prototype.
4459         (darwin_debug_port_info): Make static.
4460         * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
4461         * machoread.c (_initialize_machoread): Add prototype.
4462         * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
4463         (i386_darwin_set_control, i386_darwin_get_control)
4464         i386_darwin_dr_set_addr, i386_darwin_get_addr)
4465         i386_darwin_get_status, i386_darwin_get_control):
4466         Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
4467
4468 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
4469
4470         * ax-gdb.c (gen_usual_unary): Remove special handling of
4471         enum and bool types.
4472
4473 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
4474
4475         * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
4476
4477 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
4478
4479         * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
4480
4481 2012-03-13  Chris January  <chris.january@allinea.com>
4482
4483         * aix-thread.c (fill_sprs): Store the floating point registers
4484         at the correct offsets into vals.
4485
4486 2012-03-13  Doug Evans  <dje@google.com>
4487
4488         * NEWS: Mention symbol-reloading has been deleted.
4489         * symfile.c (symbol_reloading): Delete.
4490         (show_symbol_reloading): Delete.
4491         (_initialize_symfile): Delete set/show symbol-reloading.
4492
4493         * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
4494         read_in_chain until we have successfully read it in.
4495         (load_full_comp_unit): Ditto.
4496         (read_signatured_type): Add comment.
4497
4498 2012-03-13  Chris January  <chris.january@allinea.com>
4499
4500         * stabsread.c (fix_common_block): Change type of valu argument
4501         to CORE_ADDR.
4502
4503 2012-03-13  Chris January  <chris.january@allinea.com>
4504
4505         * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
4506         instruction.
4507
4508 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4509
4510         * common/linux-procfs.c (linux_proc_get_int): New, from
4511         linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
4512         field.
4513         (linux_proc_get_tgid): Only call linux_proc_get_int.
4514         (linux_proc_get_tracerpid): New.
4515         (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
4516         (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
4517         linux_proc_pid_has_state.
4518         * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
4519         * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
4520         (linux_ptrace_attach_warnings): New.
4521         * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
4522         New declaration.
4523         * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
4524         (linux_nat_attach): New variables ex, buffer, message and message_s.
4525         Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
4526
4527 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4528
4529         * Makefile.in (linux-ptrace.o): New.
4530         * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
4531         from linux-nat.c.
4532         * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
4533         * common/linux-ptrace.c: New file.
4534         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
4535         * config/arm/linux.mh: Likewise.
4536         * config/i386/linux.mh: Likewise.
4537         * config/i386/linux64.mh: Likewise.
4538         * config/ia64/linux.mh: Likewise.
4539         * config/m32r/linux.mh: Likewise.
4540         * config/m68k/linux.mh: Likewise.
4541         * config/mips/linux.mh: Likewise.
4542         * config/pa/linux.mh: Likewise.
4543         * config/powerpc/linux.mh: Likewise.
4544         * config/powerpc/ppc64-linux.mh: Likewise.
4545         * config/powerpc/spu-linux.mh: Likewise.
4546         * config/s390/s390.mh: Likewise.
4547         * config/sparc/linux.mh: Likewise.
4548         * config/sparc/linux64.mh: Likewise.
4549         * config/xtensa/linux.mh: Likewise.
4550         * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
4551         common/linux-procfs.c.
4552         (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
4553
4554 2012-03-13  Hui Zhu  <teawater@gmail.com>
4555             Pedro Alves  <palves@redhat.com>
4556
4557         * breakpoint.c (init_breakpoint_sal): New flags parameter.  Handle
4558         CREATE_BREAKPOINT_FLAGS_INSERTED.
4559         (create_breakpoint_sal, create_breakpoints_sal)
4560         (base_breakpoint_create_breakpoints_sal)
4561         (tracepoint_create_breakpoints_sal)
4562         (strace_marker_create_breakpoints_sal): New flags parameter.  Pass
4563         down.
4564         (break_command_1, handle_gnu_v3_exceptions, trace_command)
4565         (ftrace_command, strace_command): Adjust.
4566         (create_tracepoint_from_upload): Pass
4567         CREATE_BREAKPOINT_FLAGS_INSERTED.
4568         * breakpoint.h (enum breakpoint_create_flags): New.
4569         (create_breakpoint): New flags parameter.
4570         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
4571         * python/py-breakpoint.c (bppy_init): Adjust.
4572         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
4573         * spu-tdep.c (spu_catch_start): Adjust.
4574
4575 2012-03-13  Pedro Alves  <palves@redhat.com>
4576             Hui Zhu  <teawater@gmail.com>
4577             Yao Qi  <yao@codesourcery.com>
4578
4579         * remote.c (struct remote_state): New field `starting_up'.
4580         (remote_start_remote): Set and clear it.
4581         (remote_can_download_tracepoint): If starting up, return false.
4582
4583 2012-03-13  Yao Qi  <yao@codesourcery.com>
4584
4585         * inferior.h (struct inferior): Remove fields any_syscall_count,
4586         syscalls_counts and total_syscalls_count.  Move them to new
4587         struct catch_syscall_inferior_data in breakpoint.c.
4588         * breakpoint.c: Call DEF_VEC_I(int).
4589         (struct catch_syscall_inferior_data): New.
4590         (get_catch_syscall_inferior_data): New.
4591         (catch_syscall_inferior_data_cleanup): New.
4592         (insert_catch_syscall): Update to access data in
4593         struct catch_syscall_inferior_data.
4594         (insert_catch_syscall): Likewise.
4595         (remove_catch_syscall): Likewise.
4596         (remove_catch_syscall): Likewise.
4597         (is_syscall_catchpoint_enabled): Likewise.
4598         (add_catch_command): Likewise.
4599         (_initialize_breakpoint): Register cleanup.
4600         * breakpoint.h: Removed DEF_VEC_I(int).
4601         * dwarf2loc.c: Call DEF_VEC_I(int).
4602         * mi/mi-main.c: Likewise.
4603
4604 2012-03-12  Mark Kettenis  <kettenis@gnu.org>
4605
4606         * inf-ptrace.c (inf_ptrace_post_attach): Make static.
4607
4608 2012-03-12  Chris January  <chris.january@allinea.com>
4609
4610         * aix-thread.c (_initialize_aix_thread): Add prototype.
4611         * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
4612         * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
4613
4614 2012-03-12  Joel Brobecker  <brobecker@adacore.com>
4615
4616         * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
4617         include of "amd64-nat.h".
4618
4619 2012-03-12  Tom Tromey  <tromey@redhat.com>
4620
4621         * buildsym.c (record_pending_block): Now static.
4622         * buildsym.h: (record_pending_block): Remove.
4623
4624 2012-03-12  Andreas Tobler  <andreast@fgznet.ch>
4625
4626         * amd64bsd-nat.c: Include amd64bsd-nat.h.
4627
4628 2012-03-09  Tom Tromey  <tromey@redhat.com>
4629
4630         * dwarf2read.c (struct dwarf2_cu) <checked_producer,
4631         producer_is_gxx_lt_4_6>: New fields.
4632         (producer_is_gxx_lt_4_6): Use and update producer cache fields.
4633
4634 2012-03-09  Tom Tromey  <tromey@redhat.com>
4635
4636         * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
4637
4638 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
4639
4640         * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
4641         prototype.
4642
4643 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
4644
4645         * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
4646
4647 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
4648
4649         Fix -Wmissing-prototypes build.
4650         * arm-linux-nat.c (get_thread_id): Make it static.
4651         * xtensa-linux-nat.c (get_thread_id): Likewise.
4652
4653 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
4654
4655         * server.c (process_point_options): If a conditional expression
4656         is found, only print a message if remote_debug is nonzero.
4657
4658 2012-03-08  Luis Machado  <lgustavo@codesourcery.com>
4659
4660         * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
4661         of internal error for unknown/unsupported types.
4662
4663 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
4664
4665         Fix CU relative vs. absolute DIE offsets.
4666         * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
4667         offset to offset_in_cu.
4668         * dwarf2read.c (process_enumeration_scope): Add CU offset to
4669         TYPE_OFFSET.
4670         (dwarf2_fetch_die_location_block): Rename parameter offset to
4671         offset_in_cu.  New variable offset, add CU offset to OFFSET_IN_CU.
4672
4673 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
4674
4675         * libunwind-frame.c: Rename to ...
4676         * ia64-libunwind-tdep.c: ... here.
4677         * libunwind-frame.h: Rename to ...
4678         * ia64-libunwind-tdep.h: ... here.
4679         * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
4680         ia64-libunwind-tdep.h.
4681         (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
4682         * README (--with-libunwind): Rename to ...
4683         (--with-libunwind-ia64): ... here, note it is ia64 specific now.
4684         * config.in: Regenerate.
4685         * configure: Regenerate.
4686         * configure.ac: New option --with-libunwind-ia64, make the
4687         AS_HELP_STRING ia64 specific.  Deprecate option --with-libunwind.
4688         Remove AC_DEFINE for HAVE_LIBUNWIND.
4689         * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
4690         Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
4691         Rename libunwind-frame in the general comment.
4692         * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
4693         Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
4694         Move forward declarations inside #ifndef.  Rename libunwind-frame in
4695         the general comment.
4696         * ia64-tdep.c: Rename libunwind-frame.h #include to
4697         ia64-libunwind-tdep.h.
4698         (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
4699         (ia64_libunwind_descr): Rename libunwind-frame to
4700         ia64-libunwind-tdep in these function comments.
4701         * ia64-tdep.h: Rename libunwind-frame.h #include to
4702         ia64-libunwind-tdep.h.
4703         * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
4704         ia64-libunwind-tdep in that data comment.
4705
4706 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
4707
4708         * libunwind-frame.h (struct frame_unwind): New declaration.
4709
4710 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
4711
4712         * breakpoint.c (_initialize_breakpoint): Fix error in help of
4713         "set breakpoint condition-evaluation" command.
4714
4715 2012-03-08  Tristan Gingold  <gingold@adacore.com>
4716
4717         * sparc-stub.c: Move to stubs/
4718         * sh-stub.c: Likewise.
4719         * m68k-stub.c: Likewise.
4720         * m32r-stub.c: Likewise.
4721         * i386-stub.c: Likewise.
4722
4723 2012-03-08  Andreas Schwab  <schwab@linux-m68k.org>
4724
4725         * m68klinux-tdep.c (m68k_linux_init_abi): Register
4726         linux_get_siginfo_type.
4727
4728         * m68klinux-nat.c: Include "gdb_proc_service.h".
4729         (PTRACE_GET_THREAD_AREA): Define.
4730         (ps_get_thread_area): New function.
4731
4732 2012-03-08  Yao Qi  <yao@codesourcery.com>
4733
4734         * remote.c (remote_get_noisy_reply): Replace `sprintf' with
4735         `xsnprintf'.
4736         (remote_query_attached): Likewise.
4737         (remote_static_tracepoint_marker_at): Likewise.
4738         (remote_set_permissions): Likewise.
4739         (remote_detach_1, extended_remote_attach_1): Likewise.
4740         (send_g_packet, remote_vkill): Likewise.
4741         (extended_remote_disable_randomization): Likewise.
4742         (remote_add_target_side_condition): Likewise.
4743         (remote_insert_breakpoint): Likewise.
4744         (remote_remove_breakpoint): Likewise.
4745         (remote_insert_watchpoint): Likewise.
4746         (remote_remove_watchpoint): Likewise.
4747         (remote_insert_hw_breakpoint): Likewise.
4748         (remote_insert_hw_breakpoint): Likewise.
4749         (remote_remove_hw_breakpoint): Likewise.
4750         (remote_download_command_source): Likewise.
4751         (remote_download_tracepoint): Likewise.
4752         (remote_download_trace_state_variable): Likewise.
4753         (remote_disable_tracepoint): Likewise.
4754         (remote_trace_set_readonly_regions): Likewise.
4755         (remote_get_tracepoint_status): Likewise.
4756         (remote_trace_find): Likewise.
4757         (remote_get_trace_state_variable_value): Likewise.
4758         (remote_set_disconnected_tracing): Likewise.
4759         (remote_set_circular_trace_buffer): Likewise.
4760         (remote_get_min_fast_tracepoint_insn_len): Likewise.
4761         (remote_use_agent): Likewise.
4762         (remote_add_target_side_condition): Add one parameter BUF_SIZE.
4763         Update callers.
4764
4765 2012-03-07  Pedro Alves  <palves@redhat.com>
4766
4767         * NEWS: Mention QProgramSignals.
4768         * inferior.h (update_signals_program_target): Declare.
4769         * infrun.c: (update_signals_program_target): New.
4770         (handle_command): Update the target of the new program signals
4771         array changes.
4772         * remote.c (PACKET_QProgramSignals): New enum.
4773         (last_program_signals_packet): New global.
4774         (remote_program_signals): New.
4775         (remote_start_remote): Update the target with the program signals
4776         list.
4777         (remote_protocol_features): Add entry for QPassSignals.
4778         (remote_open_1): Free anc clear last_program_signals_packet.
4779         (init_remote_ops): Install remote_program_signals.
4780         * target.c (update_current_target): Adjust.
4781         (target_program_signals): New.
4782         * target.h (struct target_ops) <to_program_signals>: New field.
4783         (target_program_signals): Declare.
4784
4785 2012-03-07  Pedro Alves  <palves@redhat.com>
4786
4787         * NEWS: Add subtitle for new z0/z1 conditional breakpoint
4788         extensions.
4789
4790 2012-03-07  Andreas Schwab  <schwab@linux-m68k.org>
4791
4792         * m68klinux-nat.c (getregs_supplies): Make static.
4793         (getfpregs_supplies): Likewise.
4794         (have_ptrace_getregs): Likewise.
4795
4796 2012-03-06  Joel Brobecker  <brobecker@adacore.com>
4797
4798         * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
4799         in call to get_die_type_at_offset.
4800
4801 2012-03-06  Stan Shebs  <stan@codesourcery.com>
4802
4803         * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
4804         * mi/mi-cmd-disas.c: Ditto.
4805         * mi/mi-cmd-env.c: Ditto.
4806         * mi/mi-cmd-file.c: Ditto.
4807         * mi/mi-cmd-stack.c: Ditto.
4808         * mi/mi-cmd-target.c: Ditto.
4809         * mi/mi-cmd-var.c: Ditto.
4810         * mi/mi-cmds.c: Ditto.
4811         * mi/mi-cmds.h: Ditto.
4812         * mi/mi-console.c: Ditto.
4813         * mi/mi-getopt.c: Ditto.
4814         * mi/mi-getopt.h: Ditto.
4815         * mi/mi-interp.c: Ditto.
4816         * mi/mi-main.c: Ditto.
4817         * mi/mi-out.c: Ditto.
4818         * mi/mi-parse.c: Ditto.
4819         * mi/mi-parse.h: Ditto.
4820         * mi/mi-symbol-cmds.c: Ditto.
4821
4822         * mi/mi-getopt.h: Move mi_opt struct up.
4823         * mi/mi-main.c (captured_mi_execute_command): Remove redundant
4824         return.
4825         * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
4826
4827 2012-03-06  Tom Tromey  <tromey@redhat.com>
4828
4829         * proc-service.c (ps_pglobal_lookup): Set the current program
4830         space.
4831
4832 2012-03-06  Pedro Alves  <palves@redhat.com>
4833
4834         * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
4835
4836 2012-03-05  Joel Brobecker  <brobecker@adacore.com>
4837
4838         * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
4839
4840 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
4841
4842         Code cleanup.
4843         * common/linux-osdata.c (linux_common_core_of_thread): New function
4844         comment.
4845         * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
4846         call by linux_common_core_of_thread.
4847         (linux_nat_core_of_thread_1): Remove.
4848         * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
4849         * linux-thread-db.c: Include linux-osdata.h.
4850         (update_thread_core): Replace linux_nat_core_of_thread_1 call by
4851         linux_common_core_of_thread.
4852
4853 2012-03-05  Tom Tromey  <tromey@redhat.com>
4854
4855         * value.c (value_primitive_field): Don't fetch contents for
4856         non-virtual bases.
4857
4858 2012-03-05  Tom Tromey  <tromey@redhat.com>
4859
4860         * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
4861
4862 2012-03-05  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4863
4864         * s390-nat.c: Include "gregset.h".
4865
4866 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
4867
4868         * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
4869         [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
4870         (libunwind_load): New variable so_error, use it for dlerror.  Try to
4871         load also LIBUNWIND_SO_7.
4872
4873 2012-03-05  Pedro Alves  <palves@redhat.com>
4874
4875         * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
4876         is not NULL, and remove resulting dead code.
4877
4878 2012-03-05  Thomas Schwinge  <thomas@codesourcery.com>
4879
4880         * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
4881         prologue to sh_analyze_prologue.
4882         (sh_analyze_prologue): Make better use of such an upper limit, and
4883         generally be more cautious about accessing memory.
4884
4885 2012-03-05  Tom Tromey  <tromey@redhat.com>
4886
4887         * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
4888         _initialize_ia64_hpux_tdep.
4889
4890 2012-03-05  Pedro Alves  <palves@redhat.com>
4891
4892         PR gdb/13766
4893
4894         * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
4895         the register state is clear, supply explicit zero, instead of
4896         marking the register unavailable.
4897
4898 2012-03-05  Tristan Gingold  <gingold@adacore.com>
4899
4900         * NEWS: Mention OpenVMS ia64 new target.
4901
4902 2012-03-05  Tristan Gingold  <gingold@adacore.com>
4903
4904         * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
4905         (ia64_unw_accessors, ia64_unw_rse_accessors)
4906         (ia64_libunwind_descr): Declare.
4907         * ia64-vms-tdep.c: New file.
4908         * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
4909         (ia64_libunwind_descr): Make them public.
4910         * configure.tgt: Add ia64-*-*vms*.
4911         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
4912         (ALLDEPFILES): Add ia64-vms-tdep.c
4913
4914 2012-03-05  Tristan Gingold  <gingold@adacore.com>
4915
4916         * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
4917         * remote.c (PACKET_qXfer_uib): New enum value.
4918         (remote_protocol_features): Add entry for PACKET_qXfer_uib.
4919         (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
4920         (_initialize_remote): Call add_packet_config_cmd for
4921         xfer:uib packet.
4922
4923 2012-03-05  Tristan Gingold  <gingold@adacore.com>
4924
4925         * osabi.c (gdb_osabi_names): Add OpenVMS.
4926         (generic_elf_osabi_sniffer): Likewise.
4927         * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
4928
4929 2012-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4930
4931         Removed unused code.
4932         * libunwind-frame.c (libunwind_frame_unwind)
4933         (libunwind_frame_base_address): Remove.
4934         * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
4935
4936 2012-03-04  Yao Qi  <yao@codesourcery.com>
4937
4938         * common/agent.c (gdb_connect_sync_socket): Add _ markup and
4939         remove trailing new line.
4940         (agent_run_command, agent_run_command): Add _ markup.
4941         (agent_capability_check): Likewise.
4942
4943 2012-03-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
4944
4945         * breakpoint.c (set_condition_evaluation_mode): Set
4946         CONDITION_EVALUATION_MODE unconditionally.
4947
4948 2012-03-03  Yao Qi  <yao@codesourcery.com>
4949
4950         * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
4951         * common/agent.h: Update declaration.
4952         * inf-child.c (inf_child_use_agent): New.
4953         (inf_child_can_use_agent): New.
4954         (inf_child_target): Initialize fields `to_use_agent'
4955         and `to_can_use_agent'.
4956         * agent.c (agent_new_objfile): New.
4957         (_initialize_agent): Add agent_new_objfile to new_objfile
4958         observer.
4959
4960         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4961         New.
4962         (linux_target_install_ops): Initialize field
4963         `to_static_tracepoint_markers_by_strid'.
4964         * remote.c (free_current_marker): Move it to ...
4965         * tracepoint.c (free_current_marker): ... here.  New.
4966         (cleanup_target_stop): New.
4967         * tracepoint.h: Declare free_current_marker.
4968         * NEWS: Add one entry about `info static-tracepoint-marker'.
4969
4970 2012-03-03  Yao Qi  <yao@codesourcery.com>
4971
4972         * common/agent.c (agent_loaded_p): New.
4973         (agent_look_up_symbols): New global.
4974         * common/agent.h: Declare agent_loaded_p.
4975
4976 2012-03-03  Yao Qi  <yao@codesourcery.com>
4977
4978         * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
4979         (agent_capability_check, agent_capability_invalidate): New.
4980         (symbol_list): New array element.
4981         * common/agent.h (enum agent_capa): New.
4982         * target.c (target_pre_inferior): Call agent_capability_invalidate.
4983
4984 2012-03-03  Yao Qi  <yao@codesourcery.com>
4985
4986         * target.h (struct target_ops) <to_use_agent>: New field.
4987         (struct target_ops) <to_can_use_agent>: New field.
4988         (target_use_agent, target_can_use_agent): New macro.
4989         * target.c (update_current_target): Update.
4990         * remote.c: New enum `PACKET_QAgent'.
4991         (remote_protocol_features): Add a new element.
4992         (remote_use_agent, remote_can_use_agent): New.
4993         (init_remote_ops): Initialize field `can_use_agent' with
4994         remote_can_use_agent.  Intiailize field `use_agent' with
4995         remote_use_agent.
4996         * common/agent.c (use_agent): New global.
4997         * common/agent.h: Declare it.
4998         * tracepoint.c (info_static_tracepoint_markers_command): Add
4999         comment.
5000         * Makefile.in (SFILES): Add common/agent.c and agent.c.
5001         (COMMON_OBS): Add common/agent.o and agent.o
5002         (common-agent.o): New rule.
5003         * agent.c: New.
5004
5005 2012-03-03  Yao Qi  <yao@codesourcery.com>
5006
5007         * common/agent.c: New.
5008         * common/agent.h: New.
5009         * configure.ac: Add `sys/socket.h' and `sys/un.h' to
5010         AC_CHECK_HEADERS.
5011         * configure, configh.in: Regenerated.
5012
5013 2012-03-02  Kevin Buettner  <kevinb@redhat.com>
5014
5015         * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
5016         unless it exists for this architecture.
5017
5018 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
5019
5020         * language.h (struct language_defn): New "method" la_read_var_value.
5021         * findvar.c: #include "language.h".
5022         (default_read_var_value): Renames read_var_value.  Rewrite
5023         function description.
5024         (read_var_value): New function.
5025         * value.h (default_read_var_value): Add prototype.
5026         * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
5027         New functions.
5028         (ada_language_defn): Add entry for la_read_var_value.
5029         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
5030         * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
5031         language_defn structures to add entry for new la_read_var_value
5032         field.
5033
5034 2012-03-02  Tom Tromey  <tromey@redhat.com>
5035             Pedro Alves  <palves@redhat.com>
5036
5037         PR breakpoints/13776:
5038         * breakpoint.c (breakpoint_init_inferior): Delete step-resume
5039         breakpoints.
5040         (delete_longjmp_breakpoint_at_next_stop): New.
5041         * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
5042         * target.c (generic_mourn_inferior): Call mark_breakpoints_out
5043         before deleting the inferior.  Add comments.
5044         * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
5045         breakpoints immediately, but only on next stop.  Move that code
5046         next to where we mark other breakpoints for deletion.
5047
5048 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
5049
5050         * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
5051         marker.
5052         * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
5053         violation.
5054
5055 2012-03-02  Pedro Alves  <palves@redhat.com>
5056
5057         * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
5058
5059 2012-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
5060
5061         Fix -Wmissing-prototypes build.
5062         * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
5063         * remote-sim.c (gdbsim_has_all_memory): Likewise.
5064         (gdbsim_has_memory): Likewise.
5065
5066 2012-03-02  Yao Qi  <yao@codesourcery.com>
5067
5068         Fix -Wmissing-prototypes build.
5069         * charset.c (phony_iconv_open): Make static.
5070         (phony_iconv_close, phony_iconv): Likewise.
5071         * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
5072         * i386-windows-nat.c (_initialize_i386_windows_nat): New
5073         prototype.
5074         * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
5075         * ser-mingw.c (create_select_thread): Make static.
5076         * windows-termcap.c (tgetent): New prototype.
5077         (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
5078
5079 2012-03-02  Zhang Yuanhui  <asmwarrior@gmail.com>
5080
5081         Fix -Wmissing-prototypes build.
5082         * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
5083         (_initialize_windows_nat, _initialize_check_for_gdb_ini)
5084         (_initialize_loadable): New prototypes.
5085
5086 2012-03-02  Doug Evans  <dje@google.com>
5087
5088         * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
5089         abbrev table, read_comp_unit will do it.
5090
5091 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5092
5093         Fix -Wmissing-prototypes build.
5094         * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
5095         * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
5096         * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
5097         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
5098         (_initialize_arm_symbian_tdep): New prototype.
5099         * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
5100         * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
5101         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
5102         static.
5103         * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
5104         * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
5105         prototype.
5106         * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
5107         (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
5108         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
5109         static.
5110         * moxie-tdep.c (moxie_process_record): Likewise.
5111         * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
5112         (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
5113         * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
5114         (_initialize_rl78_tdep): New prototype.
5115         * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
5116         (_initialize_rx_tdep): New prototype.
5117         * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
5118         (_initialize_darwin_solib): New prototype.
5119         * solib-spu.c: Include solib-spu.h.
5120         (_initialize_spu_solib): New prototype.
5121         * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
5122         * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
5123         (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
5124         (tic6x_software_single_step): Make it static.
5125         (_initialize_tic6x_tdep): New prototype.
5126
5127 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
5128
5129         Fix -Wmissing-prototypes build.
5130         * cris-tdep.c (cris_can_use_hardware_watchpoint)
5131         (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
5132
5133 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5134
5135         Fix -Wmissing-prototypes build.
5136         * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
5137         (frv_have_stopped_data_address): Remove.
5138
5139 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5140
5141         Fix -Wmissing-prototypes build.
5142         * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
5143         * sh-tdep.c: Include sh64-tdep.h.
5144         * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
5145         * sh64-tdep.c: Include sh64-tdep.h.
5146         * sh64-tdep.h: New file.
5147
5148 2012-03-01  Maciej W. Rozycki <macro@codesourcery.com>
5149
5150         * mips-tdep.c (mips32_scan_prologue): Correct indentation.
5151
5152 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
5153
5154         * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
5155         sp_regnum once the gdbarch_init_osabi hook has been called.
5156
5157 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
5158
5159         * mips-tdep.c (mips32_bc1_pc): New function.
5160         (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
5161         BPOSGE32 and BPOSGE64 instructions.
5162         (deal_with_atomic_sequence): Likewise.
5163         (mips32_instruction_has_delay_slot): Likewise.
5164
5165 2012-03-01  Maciej W. Rozycki  <macro@mips.com>
5166             Chris Dearman  <chris@mips.com>
5167             Maciej W. Rozycki  <macro@codesourcery.com>
5168             Joseph Myers  <joseph@codesourcery.com>
5169
5170         * features/mips-dsp.xml: New file.
5171         * features/mips64-dsp.xml: New file.
5172         * features/mips-dsp-linux.xml: New file.
5173         * features/mips64-dsp-linux.xml: New file.
5174         * features/Makefile (WHICH): Add mips-dsp-linux and
5175         mips64-dsp-linux.
5176         (mips-dsp-expedite, mips64-dsp-expedite): New variables.
5177         * features/mips-dsp-linux.c: New file.
5178         * features/mips64-dsp-linux.c: New file.
5179         * regformats/mips-dsp-linux.dat: New file.
5180         * regformats/mips64-dsp-linux.dat: New file.
5181         * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
5182         registers.
5183         (mips64_linux_register_addr): Likewise.
5184         (mips64_linux_regsets_fetch_registers): Likewise.
5185         (mips64_linux_regsets_store_registers): Likewise.
5186         (mips64_linux_fetch_registers): Update call to
5187         mips64_linux_regsets_fetch_registers.
5188         (mips64_linux_store_registers): Update call to
5189         mips64_linux_regsets_store_registers.
5190         (mips_linux_read_description): Probe for DSP registers.
5191         (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
5192         and initialize_tdesc_mips64_dsp_linux.
5193         * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
5194         Remove padding of no longer used embedded register slots.
5195         * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
5196         (MIPS_RESTART_REGNUM): Redefine enum value.
5197         * mips-tdep.c (mips_generic_reg_names): Remove trailing null
5198         strings.
5199         (mips_tx39_reg_names): Likewise.
5200         (mips_linux_reg_names): New array of register names for Linux
5201         targets.
5202         (mips_register_name): Check for a null pointer in
5203         mips_processor_reg_names and return an empty string.
5204         (mips_register_type): Exclude embedded registers for the IRIX
5205         and Linux ABIs.
5206         (mips_pseudo_register_type): Likewise.  Use dynamic numbers to
5207         refer to FP registers, LO, HI, BadVAddr, Cause and PC.  Handle
5208         DSP registers.
5209         (mips_stab_reg_to_regnum): Handle DSP accumulators.
5210         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
5211         (mips_gdbarch_init): Likewise.  Initialize internal register
5212         indices for the Linux ABI.  Use dynamic numbers to refer to
5213         registers, as applicable, while parsing the target description.
5214         * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
5215
5216 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
5217
5218         * frame.h (read_frame_register_unsigned): Fix typo in function
5219         description.
5220
5221 2012-03-01  Pedro Alves  <palves@redhat.com>
5222
5223         * jit-reader.in [!__cplusplus]
5224         (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
5225
5226 2012-03-01  Pedro Alves  <palves@redhat.com>
5227
5228         * configure.ac (build_warnings): Add -Wmissing-prototypes.
5229         * configure: Regenerate.
5230
5231 2012-03-01  Pedro Alves  <palves@redhat.com>
5232
5233         * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
5234         * breakpoint.c (create_exception_master_breakpoint, trace_command)
5235         (ftrace_command, strace_command): Make static.
5236         * d-lang.c (_initialize_d_language): Declare.
5237         * dwarf2expr.c (_initialize_dwarf2expr): Declare.
5238         * dwarf2loc.c (_initialize_dwarf2loc):
5239         * dwarf2read.c (process_psymtab_comp_unit): Make static.
5240         * exec.c (exec_get_section_table): Make static.
5241         * i386-linux-tdep.c (i386_linux_record_signal): Make static.
5242         * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
5243         * inferior.c (remove_inferior_command, add_inferior_command)
5244         (clone_inferior_command): Make static.
5245         * linux-nat.c (linux_nat_thread_address_space)
5246         (linux_nat_core_of_thread): Make static.
5247         * linux-tdep.c (_initialize_linux_tdep): Declare.
5248         * objc-lang.c (_initialize_objc_lang): Declare.
5249         * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
5250         Make static.
5251         (_initialize_opencl_language): Declare.
5252         * record.c (_initialize_record): Declare.
5253         * remote.c (demand_private_info, remote_get_tib_address)
5254         (remote_supports_cond_tracepoints)
5255         (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
5256         Make static.
5257         * skip.c (_initialize_step_skip): Declare.
5258         * symtab.c (skip_prologue_using_lineinfo): Make static.
5259         * tracepoint.c (delete_trace_state_variable)
5260         (trace_variable_command, delete_trace_variable_command)
5261         (get_uploaded_tsv, find_matching_tracepoint_location)
5262         (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
5263         Make static.
5264         * value.c (pack_unsigned_long): Make static.
5265         * varobj.c (varobj_ensure_python_env): Make static.
5266         * windows-tdep.c (_initialize_windows_tdep): Declare.
5267         * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
5268
5269 2012-03-01  Pedro Alves  <palves@redhat.com>
5270
5271         * linux-tdep.c (linux_has_shared_address_space): Make static.  Add
5272         gdbarch parameter.
5273         (linux_init_abi): Install it as has_shared_address_space gdbarch
5274         callback.
5275
5276 2012-03-01  Pedro Alves  <palves@redhat.com>
5277
5278         * observer.c (observer_test_first_notification_function)
5279         (observer_test_second_notification_function)
5280         (observer_test_third_notification_function): Add declarations.
5281
5282 2012-03-01  Pedro Alves  <palves@redhat.com>
5283
5284         * common/signals.c (default_target_signal_to_host)
5285         (default_target_signal_from_host): Move ...
5286         * arch-utils.c: ... here.
5287         * arch-utils.h (default_target_signal_to_host)
5288         (default_target_signal_from_host): Declare.
5289
5290         * common/signals.c (target_signal_from_command): Move ...
5291         * infrun.c: ... here.
5292         * inferior.h (target_signal_from_command): Declare.
5293         * target.h (target_signal_from_command)
5294         (default_target_signal_from_host, default_target_signal_to_host):
5295         Delete declarations.
5296
5297         * common/signals.c (_initialize_signals): Delete.
5298
5299 2012-03-01  Pedro Alves  <palves@redhat.com>
5300
5301         * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
5302         both __cplusplus and !__cplusplus.
5303
5304 2012-03-01  Pedro Alves  <palves@redhat.com>
5305
5306         * psymtab.c (find_and_open_source): Delete declaration.
5307         * source.c (find_and_open_source): Move comment ...
5308         * source.h (find_and_open_source): ... to this new declaration.
5309
5310 2012-03-01  Pedro Alves  <palves@redhat.com>
5311
5312         * inline-frame.c: Include inline-frame.h.
5313
5314 2012-03-01  Pedro Alves  <palves@redhat.com>
5315
5316         * tui/tui-data.c (set_gen_win_origin): Delete.
5317         * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
5318         * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
5319
5320 2012-03-01  Pedro Alves  <palves@redhat.com>
5321
5322         * remote.c (encode_actions): Delete declaration.
5323         * tracepoint.c (encode_actions): Make extern.
5324         * tracepoint.h (encode_actions): Declare.
5325
5326 2012-03-01  Pedro Alves  <palves@redhat.com>
5327
5328         * python/py-breakpoint.c: Include python.h.
5329         * python/py-continueevent.c (create_continue_event_object): Make
5330         static.
5331         * python/py-lazy-string.c (stpy_get_type): Make static.
5332         * python/py-newobjfileevent.c (create_new_objfile_event_object):
5333         Make static.
5334         * python/py-utils.c (unicode_to_target_python_string): Make
5335         static.
5336         * python/py-value.c: Include python.h.
5337
5338 2012-03-01  Pedro Alves  <palves@redhat.com>
5339
5340         * inferior.c (delete_threads_of_inferior): Delete.
5341
5342 2012-03-01  Pedro Alves  <palves@redhat.com>
5343
5344         Import fallback definitions from glibc.
5345
5346         * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
5347         ps_prochandle): Forward declare.
5348         (ps_err_e): Use glibc's comments.
5349         [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
5350         (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5351         (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
5352         (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
5353         (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
5354         (struct ps_prochandle): Adjust comment.
5355
5356 2012-03-01  Pedro Alves  <palves@redhat.com>
5357
5358         * ada-lang.c (ada_modulus_from_name): Delete.
5359         * ada-lex.l (lexer_init): Make static.
5360
5361 2012-03-01  Pedro Alves  <palves@redhat.com>
5362
5363         PR gdb/13767
5364
5365         * frame.c (read_frame_register_unsigned): New.
5366         * frame.h (read_frame_register_unsigned): Declare.
5367         * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
5368         Handle it.
5369         (print_i387_control_word): New parameter `control_p'.  Handle it.
5370         (i387_print_float_info): Handle unavailable float registers.
5371
5372 2012-03-01  Keith Seitz  <keiths@redhat.com>
5373
5374         * linespec.c (decode_line_2): Sort the list of methods
5375         alphabetically before presenting the user with a selection
5376         menu.
5377
5378 2012-03-01  Doug Evans  <dje@google.com>
5379
5380         * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
5381         has_namespace_info.
5382         (dwarf2_read_abbrevs): Remove corresponding initialization.
5383
5384 2012-03-01  Scott J. Goldman <scottjg@vmware.com>
5385
5386         * NEWS: Mention new python command class gdb.COMMAND_USER.
5387         * cli/cli-cmds.c (show_user): Print error when used on a python
5388         command.
5389         (init_cli_cmds): Update documentation strings for "show user" and
5390         "set/show max-user-call-depth" to clarify that it does not apply to
5391         python commands.
5392         * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
5393         error check.
5394         (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
5395         gdb python api.
5396         * top.c (execute_command): Only execute a user-defined command as a
5397         legacy macro if c->user_commands is set.
5398
5399 2012-03-01  Tom Tromey  <tromey@redhat.com>
5400
5401         * valprint.h (struct generic_val_print_decorations): New.
5402         (generic_val_print): Declare.
5403         * valprint.c (generic_val_print): New function.
5404         * p-valprint.c (p_decorations): New global.
5405         (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
5406         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
5407         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
5408         TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
5409         * m2-valprint.c (m2_decorations): New global.
5410         (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
5411         TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
5412         TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
5413         TYPE_CODE_ERROR>: Call generic_val_print.
5414         * f-valprint.c (f_decorations): New global.
5415         (f_val_print): Use print_function_pointer_address.
5416         <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
5417         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
5418         TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
5419         generic_val_print.
5420         * c-valprint.c (c_decorations): New global.
5421         (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
5422         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
5423         TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
5424         TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
5425         TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
5426         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
5427         case.
5428
5429 2012-03-01  Tom Tromey  <tromey@redhat.com>
5430
5431         * valprint.c (val_print): Update.
5432         * p-valprint (pascal_val_print): Return void.
5433         * p-lang.h (pascal_val_print): Return void.
5434         * m2-valprint.c (m2_val_print): Return void.
5435         * m2-lang.h (m2_val_print): Return void.
5436         * language.h (struct language_defn) <la_val_print>: Return void.
5437         * language.c (unk_lang_val_print): Return void.
5438         * jv-valprint.c (java_val_print): Return void.
5439         * jv-lang.h (java_val_print): Return void.
5440         * f-valprint.c (f_val_print): Return void.
5441         * f-lang.h (f_val_print): Return void.
5442         * d-valprint.c (d_val_print): Return void.
5443         (dynamic_array_type): Update.
5444         * d-lang.h (d_val_print): Return void.
5445         * c-valprint.c (c_val_print): Return void.
5446         * c-lang.h (c_val_print): Return void.
5447         * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
5448         void.
5449         * ada-lang.h (ada_val_print): Return void.
5450
5451 2012-03-01  Tom Tromey  <tromey@redhat.com>
5452
5453         * value.h (val_print): Return void.
5454         * valprint.c (val_print): Return void.
5455
5456 2012-03-01  Tom Tromey  <tromey@redhat.com>
5457
5458         * value.h (common_val_print): Return void.
5459         * valprint.c (common_val_print): Return void.
5460
5461 2012-03-01  Tom Tromey  <tromey@redhat.com>
5462
5463         * value.h (value_print): Return void.
5464         * valprint.c (value_print): Return void.
5465         * p-valprint.c (pascal_value_print): Return void.
5466         * p-lang.h (pascal_value_print): Return void.
5467         * language.h (struct language_defn) <la_value_print>: Return
5468         void.
5469         * language.c (unk_lang_value_print): Return void.
5470         * jv-valprint.c (java_value_print): Return void.
5471         * jv-lang.h (java_value_print): Return void.
5472         * f-valprint.c (c_value_print): Don't declare.
5473         Include c-lang.h.
5474         * c-valprint.c (c_value_print): Return void.
5475         * c-lang.h (c_value_print): Return void.
5476         * ada-valprint.c (ada_value_print): Return void.
5477         * ada-lang.h (ada_value_print): Return void.
5478
5479 2012-03-01  Tom Tromey  <tromey@redhat.com>
5480
5481         * value.c (value_primitive_field): Handle virtual base classes.
5482
5483 2012-03-01  Tom Tromey  <tromey@redhat.com>
5484
5485         * gdbtypes.h (struct vbase): Remove.
5486
5487 2012-03-01  Tom Tromey  <tromey@redhat.com>
5488
5489         * c-valprint.c (print_function_pointer_address): Move...
5490         * valprint.c: ... here.  Make non-static.
5491         * m2-valprint.c (print_function_pointer_address): Remove.
5492         * valprint.h (print_function_pointer_address): Declare.
5493
5494 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
5495
5496         * NEWS: Document the fact that one can provide a condition when
5497         creating an Ada exception catchpoint.
5498
5499 2012-03-01  Tom Tromey  <tromey@redhat.com>
5500
5501         * valprint.c (val_print_type_code_flags): Fix placement of
5502         trailing brace.
5503
5504 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
5505
5506         * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
5507         (update_files): Do not set MULTILINE_COMMENT_PREFIXES
5508         environment variable before calling update-copyright.
5509
5510 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
5511
5512         * gnulib/extra/update-copyright: Update to the latest from
5513         gnulib's git repository.
5514         * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
5515         variable to 2 instead of 1.
5516
5517 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
5518
5519         * varobj.c (c_value_of_variable): Remove dead code.
5520
5521 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
5522
5523         * ada-lex.p (processId): Do not modify already encoded IDs.
5524         Update function documentation.
5525
5526 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
5527
5528         * ada-lang.h (ada_find_renaming_symbol): Replace parameter
5529         "name" with "struct symbol *name_sym".
5530         * ada-exp.y (write_var_or_type): Update call to
5531         ada_find_renaming_symbol.
5532         "name" with "struct symbol *name_sym". Adjust Implementation
5533         accordingly.  Adjust the function documentation.
5534
5535 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
5536
5537         * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
5538         * ada-lang.c (ada_find_any_type): Add advance declaration.
5539         Make static.  Replace ada_find_any_symbol by
5540         ada_find_any_type_symbol.
5541         (ada_find_any_type_symbol): Renames ada_find_any_symbol.
5542         Improve function description.  Make static.
5543         (ada_find_renaming_symbol, find_old_style_renaming_symbol):
5544         Replace ada_find_any_symbol by ada_find_any_type_symbol.
5545
5546 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
5547
5548         * ada-lang.c (struct tag_args): Delete.
5549         (ada_get_tsd_type): Function body moved up in source file.
5550         (ada_tag_name_1, ada_tag_name_2): Delete.
5551         (ada_get_tsd_from_tag): New function.
5552         (ada_tag_name_from_tsd): New function.
5553         (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
5554         to determine the tag name.
5555
5556 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
5557
5558         * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
5559         declaration.
5560         * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
5561         function.
5562
5563 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
5564
5565         * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
5566
5567 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
5568
5569         * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
5570         full searches.
5571
5572 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
5573
5574         * ada-lang.c (constrained_packed_array_type): If there is a
5575         parallel XA type, use it to determine the array index type.
5576
5577 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
5578
5579         * ada-valprint.c (ada_val_print_1): If our value is a reference
5580         to an array descriptor, dereference it before converting it
5581         to a simple array.
5582
5583 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
5584
5585         * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
5586         creating fixed value.
5587         (ada_value_ind, ada_coerce_ref, assign_component)
5588         (ada_evaluate_subexp): Remove call to unwrap_value before
5589         call to ada_to_fixed_value.
5590
5591 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
5592
5593         * ada-lang.c (to_fixed_array_type): Set result's type name.
5594
5595 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
5596
5597         * ada-lang.c (catch_ada_exception_command_split): Add new
5598         argument cond_string.  Add support for condition at end of
5599         "catch exception" commands.
5600         (ada_decode_exception_location): Add new argument cond_string.
5601         Update call to catch_ada_exception_command_split.
5602         (create_ada_exception_catchpoint): Add new argument cond_string.
5603         Set the breakpoint condition if needed.
5604         (catch_ada_exception_command): Update call to
5605         ada_decode_exception_location.
5606         (ada_decode_assert_location): Add function documentation.
5607         Add support for condition at end of "catch assert" command.
5608         (catch_assert_command): Update calls to ada_decode_assert_location
5609         and create_ada_exception_catchpoint.
5610
5611 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
5612
5613         Fix disp-step-syscall.exp: fork: single step over fork.
5614         * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
5615         (i386_linux_get_syscall_number_from_regcache): ... here, new function
5616         comment, change parameters gdbarch and ptid to regcache.  Remove
5617         parameter regcache, initialize gdbarch from regcache here.
5618         (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
5619         New functions.
5620         (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
5621         instead.
5622         * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
5623         'syscall'.  Make the 'int' check more strict.
5624
5625 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
5626
5627         Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
5628         * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
5629         (i386_linux_intx80_sysenter_syscall_record): ... here.
5630         (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
5631         Use the renamed function name.
5632
5633 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
5634
5635         * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
5636         * breakpoint.c (until_break_command): Likewise.
5637         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
5638         * infcall.c (call_function_by_hand): Likewise.
5639         * infcmd.c (finish_forward): Likewise.
5640         * infrun.c (insert_exception_resume_breakpoint): Likewise.
5641
5642 2012-02-28  Tristan Gingold  <gingold@adacore.com>
5643
5644         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
5645         avoid variable assignments inside condition.
5646
5647 2012-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
5648
5649         Fix static analysis issue found by cppcheck.
5650         * microblaze-tdep.c (microblaze_extract_return_value): Fix
5651         uninitialized BUF for size 2.
5652
5653 2012-02-27  Chris Dearman  <chris@mips.com>
5654             Nathan Froyd  <froydnj@codesourcery.com>
5655             Maciej W. Rozycki  <macro@codesourcery.com>
5656
5657         * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
5658         (mips16_instruction_has_delay_slot): Likewise.
5659         (mips_segment_boundary): Likewise.
5660         (mips_adjust_breakpoint_address): Likewise.
5661         (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
5662
5663 2012-02-27  Maciej W. Rozycki  <macro@mips.com>
5664             Maciej W. Rozycki  <macro@codesourcery.com>
5665
5666         * infrun.c (handle_inferior_event): Don't proceed through
5667         shared library trampolines if stepping at the machine
5668         instruction level.
5669
5670 2012-02-27  Maciej W. Rozycki  <macro@codesourcery.com>
5671
5672         * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
5673         too.
5674
5675 2012-02-27  Thomas Schwinge  <thomas@codesourcery.com>
5676
5677         * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
5678         (sh_stub_unwind_sniffer): New functions.
5679         (sh_stub_unwind): New variable.
5680         (sh_gdbarch_init): Wire everything.
5681
5682 2012-02-27  Pedro Alves  <palves@redhat.com>
5683
5684         * linux-nat.c (pid_is_stopped): Delete, moved to common/.
5685         (linux_nat_post_attach_wait): Adjust to use
5686         linux_proc_pid_is_stopped.
5687         * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
5688         * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
5689         based on pid_is_stopped from both linux-nat.c and
5690         gdbserver/linux-low.c, and renamed.
5691
5692 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
5693
5694         * remote.c (remote_watchpoint_addr_within_range): New function.
5695         (init_remote_ops): Use it.
5696
5697 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
5698
5699         * target.h (target_watchpoint_addr_within_range): Document macro.
5700
5701 2012-02-24  Pedro Alves  <palves@redhat.com>
5702
5703         * stack.c (set_last_displayed_sal): Issue internal_error instead
5704         of warning, and issue it after clearing the last displayed sal.
5705
5706 2012-02-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
5707             Pedro Alves  <palves@redhat.com>
5708
5709         * breakpoint.c (until_break_command): Install breakpoints after
5710         all frame manipulations.
5711
5712 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
5713
5714         * remote.c (remote_supports_cond_breakpoints): New forward
5715         declaration.
5716         (remote_add_target_side_condition): New function.
5717         (remote_insert_breakpoint): Add target-side breakpoint
5718         conditional if supported.
5719         (remote_insert_hw_breakpoint): Likewise.
5720         (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
5721         hook.
5722
5723         * target.c (update_current_target): Inherit
5724         to_supports_evaluation_of_breakpoint_conditions.
5725         Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
5726
5727         * target.h (struct target_ops)
5728         <to_supports_evaluation_of_breakpoint_conditions>: New field.
5729         (target_supports_evaluation_of_breakpoint_conditions): New #define.
5730
5731         * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
5732         (condition_evaluation_both, condition_evaluation_auto,
5733         condition_evaluation_host, condition_evaluation_target,
5734         condition_evaluation_enums, condition_evaluation_mode_1,
5735         condition_evaluation_mode): New static globals.
5736         (translate_condition_evaluation_mode): New function.
5737         (breakpoint_condition_evaluation_mode): New function.
5738         (gdb_evaluates_breakpoint_condition_p): New function.
5739         (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
5740         (mark_breakpoint_modified): New function.
5741         (mark_breakpoint_location_modified): New function.
5742         (set_condition_evaluation_mode): New function.
5743         (show_condition_evaluation_mode): New function.
5744         (bp_location_compare_addrs): New function.
5745         (get_first_location_gte_addr): New helper function.
5746         (set_breakpoint_condition): Free condition bytecode if locations
5747         has become unconditional.  Call mark_breakpoint_modified (...).
5748         (condition_command): Call update_global_location_list (1) for
5749         breakpoints.
5750         (breakpoint_xfer_memory): Use is_breakpoint (...).
5751         (is_breakpoint): New function.
5752         (parse_cond_to_aexpr): New function.
5753         (build_target_condition_list): New function.
5754         (insert_bp_location): Handle target-side conditional
5755         breakpoints and call build_target_condition_list (...).
5756         (update_inserted_breakpoint_locations): New function.
5757         (insert_breakpoint_locations): Handle target-side conditional
5758         breakpoints.
5759         (bpstat_check_breakpoint_conditions): Add comment.
5760         (bp_condition_evaluator): New function.
5761         (bp_location_condition_evaluator): New function.
5762         (print_breakpoint_location): Print information on where the condition
5763         will be evaluated.
5764         (print_one_breakpoint_location): Likewise.
5765         (init_bp_location): Call mark_breakpoint_location_modified (...) for
5766         breakpoint location.
5767         (force_breakpoint_reinsertion): New functions.
5768         (update_global_location_list): Handle target-side breakpoint
5769         conditions.
5770         Reinsert locations that are already inserted if conditions have
5771         changed.
5772         (bp_location_dtor): Free agent expression bytecode.
5773         (disable_breakpoint): Call mark_breakpoint_modified (...).
5774         Call update_global_location_list (...) with parameter 1 for breakpoints.
5775         (disable_command): Call mark_breakpoint_location_modified (...).
5776         Call update_global_location_list (...) with parameter 1 for breakpoints.
5777         (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
5778         (enable_command): mark_breakpoint_location_modified (...).
5779         (_initialize_breakpoint): Update documentation and add
5780         condition-evaluation breakpoint subcommand.
5781
5782         * breakpoint.h: Include ax.h.
5783         (condition_list): New data structure.
5784         (condition_status): New enum.
5785         (bp_target_info) <cond_list>: New field.
5786         (bp_location) <condition_changed, cond_bytecode>: New fields.
5787         (is_breakpoint): New prototype.
5788
5789 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
5790
5791         * remote.c (remote_state) <cond_breakpoints>: New field.
5792         (PACKET_ConditionalBreakpoints): New enum.
5793         (remote_cond_breakpoint_feature): New function.
5794         (remote_protocol_features): Add new ConditionalBreakpoints entry.
5795         (remote_supports_cond_breakpoints): New function.
5796         (_initialize_remote): Add new packet configuration for
5797         target-side conditional breakpoints.
5798
5799 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
5800
5801         * NEWS: Mention target-side conditional breakpoint support,
5802         new condition-evaluation breakpoint subcommand and remote
5803         packet extensions.
5804
5805 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
5806
5807         * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
5808         number.
5809
5810 2012-02-24  Thomas Schwinge  <thomas@codesourcery.com>
5811
5812         * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
5813         (after_prologue): Remove.
5814
5815 2012-02-23  Tom Tromey  <tromey@redhat.com>
5816
5817         * jv-valprint.c (java_val_print): Remove dead code.
5818
5819 2012-02-23  Tristan Gingold  <gingold@adacore.com>
5820
5821         * ada-tasks.c (struct ada_tasks_inferior_data): Add
5822         known_tasks_element and known_tasks_length fields.
5823         (read_known_tasks_array): Change argument type.  Use pointer type
5824         and number of elements from DATA.  Adjust.
5825         (read_known_tasks_list): Likewise.
5826         (get_known_tasks_addr): Remove.
5827         (ada_set_current_inferior_known_tasks_addr): Renamed to ...
5828         (ada_tasks_inferior_data_sniffer): ... this.  Use symtab for element
5829         type and array length.  Merge former get_known_tasks_addr code.
5830
5831 2012-02-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
5832
5833         PR backtrace/13716
5834         * infcmd.c (finish_forward): New variable frame_id, initialize it, use
5835         it after set_momentary_breakpoint.
5836
5837 2012-02-22  Sterling Augustine  <saugustine@google.com>
5838
5839         PR 13689:
5840         * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
5841
5842 2012-02-22  Gary Benson  <gbenson@redhat.com>
5843
5844         * dwarf2read.c (dwarf2_read_index): Correct misspelling.
5845         (find_slot_in_mapped_hash): Likewise.
5846
5847 2012-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
5848
5849         PR build/13638
5850         * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
5851         (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
5852         * configure: Regenerate.
5853
5854 2012-02-21  Tristan Gingold  <gingold@adacore.com>
5855             Pedro Alves  <palves@redhat.com>
5856
5857         * ia64-tdep.c: Do not include libunwind-ia64.h.
5858         * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
5859         Include libunwind-ia64.h instead of libunwind.h.
5860         * configure.ac (--with-libunwind, $enable_libunwind): Don't check
5861         for libunwind.h existence.
5862         * configure, config.in: Regenerate.
5863
5864 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
5865
5866         * c-valprint.c (c_value_print): Use value_rtti_indirect_type
5867         instead of value_rtti_target_type.
5868         * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
5869         instead of value_rtti_target_type.
5870         * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
5871         value_rtti_target_type.
5872         * valops.c (value_ind): Extract function readjust_indirect_value_type.
5873         (value_rtti_target_type): Rename to ...
5874         (value_rtti_indirect_type): ... here and make it indirect.  Update
5875         function comment.
5876         * value.c (readjust_indirect_value_type): New function.
5877         (coerce_ref): Support for enclosing type setting for references
5878         with readjust_indirect_value_type.
5879         * value.h (readjust_value_type): New declaration.
5880         (value_rtti_target_type): Rename to ...
5881         (value_rtti_indirect_type): ... here.
5882
5883 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
5884
5885         * MAINTAINERS (Write After Approval): Add myself to the list.
5886
5887 2012-02-20  Doug Evans  <dje@google.com>
5888
5889         * objfiles.c (add_to_objfile_sections): Remove outdated comments.
5890         Rename objfile_p_char parameter to objfilep.
5891         (build_objfile_section_table): Result is now void.  All callers
5892         updated.
5893         * objfiles.h (struct objfile): Tweak comments, whitespace.
5894         (build_objfile_section_table): Update.
5895
5896         * elfread.c (elf_symfile_segments): Fix warning text.
5897
5898 2012-02-20  Tom Tromey  <tromey@redhat.com>
5899
5900         PR gdb/13498:
5901         * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
5902         particular set of file names once.
5903         (dw2_map_symbol_filenames): Likewise.
5904
5905 2012-02-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
5906
5907         Code cleanup.
5908         * main.c (write_files): Remove the declaration.
5909         (external_editor_command): Move the declaration ...
5910         [GDBTK] (external_editor_command): ... here.  Fix the comment.
5911
5912 2012-02-20  Tom Tromey  <tromey@redhat.com>
5913
5914         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
5915         extraneous block.
5916
5917 2012-02-20  Tristan Gingold  <gingold@adacore.com>
5918
5919         * darwin-nat.h (enum darwin_msg_state): Add comments.
5920
5921 2012-02-20  Tristan Gingold  <gingold@adacore.com>
5922
5923         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
5924         value.
5925
5926 2012-20-18  Joel Brobecker  <brobecker@adacore.com>
5927
5928         * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
5929         between function description and implementation.
5930
5931 2012-02-17  Tom Tromey  <tromey@redhat.com>
5932
5933         PR python/12070:
5934         * python/py-event.c (event_object_getset): New global.
5935         (event_object_type): Reference it.
5936         * python/py-type.c (field_object_getset): New global.
5937         (field_object_type): Reference it.
5938         * python/python-internal.h (gdb_py_generic_dict): Declare.
5939         * python/py-utils.c (gdb_py_generic_dict): New function.
5940
5941 2012-02-17  Tristan Gingold  <gingold@adacore.com>
5942
5943         * solib-darwin.c (darwin_current_sos): Check magic and filetype
5944
5945 2012-02-17  Thomas Schwinge  <thomas@codesourcery.com>
5946
5947         * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
5948         TYPE_CALLING_CONVENTION annotation.
5949
5950 2012-02-16  Kevin Buettner  <kevinb@redhat.com>
5951
5952         * MAINTAINERS: Add rx to target ISA section.
5953         * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
5954         (ALLDEPFILES): Add rx-tdep.c.
5955
5956 2012-02-16  Tom Tromey  <tromey@redhat.com>
5957
5958         * symfile.c (symbol_file_add_main_1): Use inferior's
5959         symfile_flags.
5960         * solib.c (solib_read_symbols): Use inferior's symfile_flags.
5961         * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
5962         inferior.
5963         * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
5964         inferior.
5965         (follow_exec): Use inferior's symfile_flags.
5966         * inferior.h (struct inferior) <symfile_flags>: New field.
5967
5968 2012-02-16  Mike Frysinger  <vapier@gentoo.org>
5969
5970         PR gdb/9734:
5971         * remote-sim.c (gdbsim_create_inferior): Call error() when
5972         sim_create_inferior() fails.
5973
5974 2012-02-16  Josh Matthews  <josh@joshmatthews.net>
5975
5976         * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
5977
5978 2012-02-16  Tom Tromey  <tromey@redhat.com>
5979
5980         PR c++/13653:
5981         * thread.c (struct current_thread_cleanup) <was_removable>: New
5982         field.
5983         (restore_current_thread_cleanup_dtor): Restore 'removable' field.
5984         (make_cleanup_restore_current_thread): Initialize new field.
5985
5986 2012-02-15  Kevin Buettner  <kevinb@redhat.com>
5987
5988         * MAINTAINERS: Add rl78 to target ISA section.
5989         * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
5990         (ALLDEPFILES): Add rl78-tdep.c.
5991         * NEWS: Mention rl78 as a new target.
5992
5993 2012-02-15  Aleksandar Ristovski  <aristovski@qnx.com>
5994
5995         * frame.c (find_frame_sal): Initialize sal->pspace field from frame
5996         data.
5997         * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
5998
5999 2012-02-15  Tom Tromey  <tromey@redhat.com>
6000
6001         PR gdb/12659:
6002         * infcmd.c (registers_info): Print just the current register's
6003         name.
6004
6005 2012-02-15  Tom Tromey  <tromey@redhat.com>
6006
6007         * python/py-symbol.c (sympy_value): Use _().
6008
6009 2012-02-15  Pedro Alves  <palves@redhat.com>
6010
6011         * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
6012         output to be like native targets'.
6013         (remote_pid_to_str): Special case the null ptid.
6014
6015 2012-02-14  Stan Shebs  <stan@codesourcery.com>
6016
6017         * NEWS: Mention enable count command.
6018         * breakpoint.h (struct breakpoint): New field enable_count.
6019         * breakpoint.c (enable_breakpoint_disp): Add count argument.
6020         (enable_breakpoint): Add arg to call.
6021         (struct disp_data): New struct.
6022         (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
6023         (do_map_enable_once_breakpoint): Create a struct and pass it.
6024         (do_map_enable_delete_breakpoint): Ditto.
6025         (do_map_enable_count_breakpoint): New function.
6026         (enable_count_command): New function.
6027         (bpstat_stop_status): Decrement enable_count.
6028         (print_one_breakpoint_location): Report enable count.
6029         (_initialize_breakpoint): Add enable count command.
6030
6031 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
6032
6033         * rl78-tdep.c (reggroups.h): Include.
6034         (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
6035         (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
6036         (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
6037         (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
6038         (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
6039         (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
6040         (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
6041         (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
6042         (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
6043         (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
6044         (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
6045         (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
6046         (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
6047         (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
6048         (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
6049         (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
6050         beginning of register list.
6051         (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
6052         (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
6053         (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
6054         (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
6055         (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
6056         (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
6057         (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
6058         (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
6059         (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
6060         (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
6061         (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
6062         the pseudo registers.  Rearrange other pseudo registers too so
6063         that the bank registers appear at the end.
6064         (rl78_register_type): Account for the fact that the byte sized
6065         bank registers are now pseudo-registers.
6066         (rl78_register_name): Rearrange the register name array.  Make
6067         initial set of raw banked registers inaccessible.
6068         (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
6069         (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
6070         case for copying bytes back and forth between raw and pseudo
6071         versions of the banked registers.  Update other cases to reflect
6072         the changed names.
6073         (rl78_return_value): Update to account for changed names of
6074         raw registers.
6075         (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
6076         rl78_register_sim_regno().
6077
6078 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
6079
6080         * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
6081         the name parameter being passed to find_pc_partial_function().
6082
6083 2012-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
6084
6085         * MAINTAINERS: Step down from being ia64 target maintainer.
6086
6087 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
6088
6089         * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
6090         compilation warning.
6091
6092 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
6093
6094         Fix crash on loaded shlibs without loaded exec_bfd.
6095         * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
6096         (set_section_command): Replace exec_bfd by p->bfd.
6097
6098 2012-02-10  Tom Tromey  <tromey@redhat.com>
6099
6100         * linespec.c (decode_line_internal): Skip symtabs_from_filename
6101         when we have a C++ qualified name.
6102
6103 2012-02-10  Pedro Alves  <palves@redhat.com>
6104
6105         * inferior.c (inferior_pid_to_str): New.
6106         (print_inferior, inferior_command): Use it.
6107
6108 2012-02-10  Pedro Alves  <palves@redhat.com>
6109
6110         * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
6111         the test CFLAGS.
6112         * configure: Regenerate.
6113
6114 2012-02-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
6115
6116         * linespec.c (decode_line_internal): Fix comment correctness.
6117
6118 2012-02-09  Valery Khromov  <valery.khromov@gmail.com>
6119
6120         PR gdb/12953
6121         * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
6122         * amd64bsd-nat.c: Add support for debug registers (adapted from
6123         i386bsd-nat.c).
6124         [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
6125         (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
6126         (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
6127         (amd64bsd_dr_get_control): New functions.
6128         * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
6129         * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
6130         [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
6131         watchpoints initialization.
6132         * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
6133
6134 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
6135
6136         * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
6137         flds_bnds.fields.
6138         (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
6139
6140 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
6141
6142         * breakpoint.c (bp_location_compare): Fix comment.  Reindent the code.
6143
6144 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
6145
6146         * language.h (symbol_name_cmp_ftype): Renames
6147         symbol_name_match_p_ftype.
6148         (struct language_defn)[la_get_symbol_name_cmp]: Renames
6149         la_get_symbol_name_match_p.
6150         * ada-lang.c (ada_get_symbol_name_cmp): Renames
6151         ada_get_symbol_name_match_p.  Update comment.
6152         (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
6153         * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
6154         Renames symbol_name_match_p.  Update field type.
6155         (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
6156         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6157         opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
6158         "la_get_symbol_name_cmp" in comments.
6159         * language.c: Likewise.
6160
6161 2012-02-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6162
6163         * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
6164         %eflags offset.
6165         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
6166         (amd64_sol2_gregset32_reg_offs): Likewise.
6167
6168 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
6169
6170         * solib-darwin.c (darwin_bfd_open): Make sure that the filename
6171         of the returned BFD is allocated by GDB.
6172
6173 2012-02-07  Tom Tromey  <tromey@redhat.com>
6174
6175         PR python/12027:
6176         * python/python-internal.h (frame_object_type): Declare.
6177         * python/py-symbol.c (sympy_needs_frame): New function.
6178         (sympy_value): New function.
6179         (symbol_object_getset): Add "needs_frame".
6180         (symbol_object_methods): Add "value".
6181         * python/py-frame.c (frame_object_type): No longer static.
6182
6183 2012-02-07  Tom Tromey  <tromey@redhat.com>
6184
6185         PR python/13599:
6186         * python/py-symbol.c (sympy_line): New function.
6187         (symbol_object_getset): Add "line".
6188
6189 2012-02-07  Tom Tromey  <tromey@redhat.com>
6190
6191         * charset.c (find_charset_names): Check 'in' against NULL.
6192
6193 2012-02-06  Doug Evans  <dje@google.com>
6194
6195         * gdbtypes.h (struct main_type): Change type of name,tag_name,
6196         and fields.name members from char * to const char *.  All uses updated.
6197         (struct cplus_struct_type): Change type of fn_fieldlists.name member
6198         from char * to const char *.  All uses updated.
6199         (type_name_no_tag): Update.
6200         (lookup_unsigned_typename, lookup_signed_typename): Update.
6201         * gdbtypes.c (type_name_no_tag): Change result type
6202         from char * to const char *.  All callers updated.
6203         (lookup_unsigned_typename, lookup_signed_typename): Change type of
6204         name parameter from char * to const char *.
6205         * symtab.h (struct cplus_specific): Change type of demangled_name
6206         member from char * to const char *.  All uses updated.
6207         (struct general_symbol_info): Change type of name and
6208         mangled_lang.demangled_name members from char * to const char *.
6209         All uses updated.
6210         (symbol_get_demangled_name, symbol_natural_name): Update.
6211         (symbol_demangled_name, symbol_search_name): Update.
6212         * symtab.c (symbol_get_demangled_name): Change result type
6213         from char * to const char *.  All callers updated.
6214         (symbol_natural_name, symbol_demangled_name): Ditto.
6215         (symbol_search_name): Ditto.
6216         (completion_list_add_name): Change type of symname,sym_text,
6217         text,word parameters from char * to const char *.
6218         (completion_list_objc_symbol): Change type of sym_text,
6219         text,word parameters from char * to const char *.
6220         * ada-lang.c (find_struct_field): Change type of name parameter
6221         from char * to const char *.
6222         (encoded_ordered_before): Similarly for N0,N1 parameters.
6223         (old_renaming_is_invisible): Similarly for function_name parameter.
6224         (ada_type_name): Change result type from char * to const char *.
6225         All callers updated.
6226         * ada-lang.h (ada_type_name): Update.
6227         * buildsym.c (hashname): Change type of name parameter
6228         from char * to const char *.
6229         * buildsym.h (hashname): Update.
6230         * dbxread.c (end_psymtab): Change type of include_list parameter
6231         from char ** to const char **.
6232         * dwarf2read.c (determine_prefix): Change result type
6233         from char * to const char *.  All callers updated.
6234         * f-lang.c (find_common_for_function): Change type of name, funcname
6235         parameters from char * to const char *.
6236         * f-lang.c (find_common_for_function): Update.
6237         * f-valprint.c (list_all_visible_commons): Change type of funcname
6238         parameters from char * to const char *.
6239         * gdbarch.sh (static_transform_name): Change type of name parameter
6240         and result from char * to const char *.
6241         * gdbarch.c: Regenerate.
6242         * gdbarch.h: Regenerate.
6243         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
6244         of name parameter from char * to const char *.
6245         * jv-lang.c (java_primitive_type_from_name): Ditto.
6246         (java_demangled_signature_length): Similarly for signature parameter.
6247         (java_demangled_signature_copy): Ditto.
6248         (java_demangle_type_signature): Ditto.
6249         * jv-lang.h (java_primitive_type_from_name): Update.
6250         (java_demangle_type_signature): Update.
6251         * objc-lang.c (specialcmp): Change type of a,b parameters
6252         from char * to const char *.
6253         * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
6254         from char * to const char *.  All callers updated.
6255         * p-lang.h (is_pascal_string_type): Update.
6256         * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
6257         of name parameter from char * to const char *.
6258         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
6259         * utils.c (fprintf_symbol_filtered): Ditto.
6260         * defs.h (fprintf_symbol_filtered): Update.
6261         * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
6262         * stabsread.h (end_psymtab): Update.
6263         * stack.c (find_frame_funname): Change type of funname parameter
6264         from char ** to const char **.
6265         * stack.h (find_frame_funname): Update.
6266         * typeprint.c (type_print): Change type of varstring parameter
6267         from char * to const char *.
6268         * value.h (type_print): Update.
6269         * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
6270         from char * to const char *.  All callers updated.
6271         (xcoff_end_psymtab): Change type of include_list parameter
6272         from char ** to const char **.  All callers updated.
6273         (swap_sym): Similarly for name parameter.  All callers updated.
6274         * coffread.c (patch_type): Add (char*) cast to xfree parameter.
6275         Use xstrdup.
6276         (process_coff_symbol): Use xstrdup.
6277         * stabsread.c (stabs_method_name_from_physname): Renamed from
6278         update_method_name_from_physname.  Change result type from void
6279         to char *.  All callers updated.
6280         (read_member_functions): In has_destructor case, store name in objfile
6281         obstack instead of malloc space.  In !has_stub case, fix mem leak.
6282
6283 2012-02-06  Luca Pizzamiglio  <luca.pizzamiglio@gmail.com>
6284
6285         * configure: Rebuild.
6286         * configure.ac: Put -L../bfd and -L../libiberty at the front of
6287         LDFLAGS.
6288
6289 2012-02-03  Kevin Buettner  <kevinb@redhat.com>
6290
6291         * configure.tgt (rl78-*-elf): New target.
6292         * rl78-tdep.c: New file.
6293
6294 2012-02-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
6295
6296         * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
6297         and continue the loop.  Add QUIT statement.
6298
6299 2012-02-03  Tom Tromey  <tromey@redhat.com>
6300
6301         PR gdb/13596:
6302         * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
6303         bfd_lookup_symbol_from_symtab.
6304         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
6305         gdb_bfd_lookup_symbol_from_symtab.
6306
6307 2012-02-03  Joel Brobecker  <brobecker@adacore.com>
6308
6309         * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
6310         use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
6311         symbol.  Add assertion that sym2 is never NULL.
6312
6313 2012-02-02  Doug Evans  <dje@google.com>
6314
6315         * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
6316         "name" parameter to const char ** from char **.  All callers updated.
6317         (find_pc_partial_function): Ditto.
6318         (cache_pc_function_name): Change type to const char * from char *.
6319         * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
6320         (find_pc_partial_function): Update.
6321         * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
6322         type of "name" parameter to const char * from char *.
6323         All uses updated.
6324         * arch-utils.c (generic_in_solib_return_trampoline): Change
6325         type of "name" parameter to const char * from char *.
6326         * arch-utils.h (generic_in_solib_return_trampoline): Update.
6327         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
6328         type of "name" parameter to const char * from char *.
6329         * gdbarch.sh (in_solib_return_trampoline): Ditto.
6330         * gdbarch.c: Regenerate.
6331         * gdbarch.h: Regenerate.
6332         * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
6333         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
6334         * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
6335         type of "name" parameter to const char * from char *.
6336         * skip.c (skip_function_pc): Ditto.
6337         * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
6338         * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
6339         * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
6340         * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
6341         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
6342         * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
6343         * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
6344         * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
6345         * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
6346
6347 2012-02-02  Pedro Alves  <palves@redhat.com>
6348
6349         * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
6350         the current inferior has no execution.  Make sure the current
6351         remote process matches gdb's current inferior.
6352
6353 2012-02-02  Tom Tromey  <tromey@redhat.com>
6354
6355         PR gdb/13405:
6356         * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
6357         read-only memory.
6358
6359 2012-02-02  Tom Tromey  <tromey@redhat.com>
6360
6361         PR gdb/9307:
6362         * symtab.c (lookup_language_this): Set block_found.
6363
6364 2012-02-01  Tom Tromey  <tromey@redhat.com>
6365
6366         PR gdb/13431:
6367         * jit.c (struct jit_inferior_data): Rewrite.
6368         (struct jit_objfile_data): New.
6369         (get_jit_objfile_data): New function.
6370         (add_objfile_entry): Update.
6371         (jit_read_descriptor): Return int.  Replace descriptor_addr
6372         argument with inf_data.  Update.  Don't call error.
6373         (jit_breakpoint_re_set_internal): Reorder logic.  Update.  Look up
6374         descriptor here.
6375         (jit_inferior_init): Don't look up descriptor.  Don't call error.
6376         (jit_reset_inferior_data_and_breakpoints)
6377         (jit_inferior_created_observer): Remove.
6378         (jit_inferior_exit_hook): Update.
6379         (jit_executable_changed_observer): Remove.
6380         (jit_event_handler): Update.
6381         (free_objfile_data): Reset inferior data if needed.
6382         (_initialize_jit): Update.
6383
6384 2012-02-01  Tom Tromey  <tromey@redhat.com>
6385
6386         * jit.c (bfd_open_from_target_memory): Move higher in file.
6387
6388 2012-02-01  Tristan Gingold  <gingold@adacore.com>
6389
6390         * libunwind-frame.c (libunwind_load): Display message if dlopen
6391         failed.
6392
6393 2012-02-01  Gary Benson  <gbenson@redhat.com>
6394
6395         * symtab.h (symbol_found_callback_ftype): New typedef.
6396         (iterate_over_symbols): Use the above.
6397         * symtab.c (iterate_over_symbols): Likewise.
6398         * language.h (language_defn->la_iterate_over_symbols): Likewise.
6399         * ada-lang.c (ada_iterate_over_symbols): Likewise.
6400         * linespec.c (iterate_over_all_matching_symtabs): Likewise.
6401         (iterate_name_matcher): Document return values.
6402         (collect_one_symbol): Likewise.
6403         (collect_function_symbols): Likewise.
6404         (collect_symbols): Likewise.
6405
6406 2012-02-01  Tom Tromey  <tromey@redhat.com>
6407
6408         * ada-lang.c (resolve_subexp): Update.
6409         (ada_lookup_symbol_list): Add 'full_search' argument.
6410         (ada_iterate_over_symbols): Pass 0 as full_search argument to
6411         ada_lookup_symbol_list.
6412         (ada_lookup_encoded_symbol): Update.
6413         (get_var_value): Update.
6414         * ada-exp.y (block_lookup): Update.
6415         (write_var_or_type): Update.
6416         (write_name_assoc): Update.
6417         * ada-lang.h (ada_lookup_symbol_list): Update.
6418
6419 2012-01-31  Tom Tromey  <tromey@redhat.com>
6420
6421         * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
6422         comment.
6423
6424 2012-01-31  Doug Evans  <dje@google.com>
6425
6426         * symtab.h: Remove outdated comment.
6427         (SYMBOL_MATCHES_NATURAL_NAME): Delete.
6428
6429 2012-02-01  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
6430
6431         Fix build error in Darwin port.
6432         * i386-darwin-nat.c: Include i386-nat.h.
6433
6434 2012-01-30  Tom Tromey  <tromey@redhat.com>
6435
6436         PR breakpoints/13568:
6437         * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
6438         argument.  Check for recursive includes.
6439         (dwarf_decode_macros): Create an include hash.
6440
6441 2012-01-30  Michael Eager  <eager@eagercon.com>
6442
6443         * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
6444         * ppc-linux-tdep.c: Include glibc-tdep.h.
6445         (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
6446         (powerpc_linux_in_plt_stub): New function.
6447         (powerpc_linux_in_dynsym_resolve_code): New function.
6448         (ppc_skip_trampoline_code): New function.
6449         (ppc_linux_init_abi): Use PPC specific functions rather than generic.
6450         Use glibc_skip_solib_resolver.
6451
6452 2012-01-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
6453
6454         Code cleanup: Make 1440 bytes of data segment read-only.
6455         * arch-utils.c (endian_enum): Make it const char *const [].
6456         * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
6457         Likewise.
6458         * breakpoint.c (always_inserted_enums): Likewise.
6459         * cli/cli-cmds.c (script_ext_enums): Likewise.
6460         * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
6461         enumlist parameter const char *const *.
6462         * cli/cli-decode.h (struct cmd_list_element): Make the enums field
6463         const char *const *.
6464         * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
6465         parameter const char *const *.
6466         * cris-tdep.c (cris_modes): Make it const char *const [].
6467         * filesystem.c (target_file_system_kinds): Likewise.
6468         * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
6469         * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
6470         (can_use_displaced_stepping_enum, scheduler_enums)
6471         (exec_direction_names): Likewise.
6472         * language.c (_initialize_language): Make the type_or_range_names and
6473         case_sensitive_names variables const char *const [].
6474         * mips-tdep.c (mips_abi_strings): Make it const char *const [].
6475         * python/python.c (python_excp_enums): Likewise.
6476         * remote.c (interrupt_sequence_modes): Likewise.
6477         * rs6000-tdep.c (powerpc_vector_strings): Likewise.
6478         * serial.c (logbase_enums): Likewise.
6479         * sh-tdep.c (sh_cc_enum): Likewise.
6480         * stack.c (print_frame_arguments_choices, print_entry_values_choices):
6481         Likewise.
6482         * symtab.c (multiple_symbols_modes): Likewise.
6483         * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
6484         Likewise.
6485         * utils.c (internal_problem_modes): Likewise.
6486
6487 2012-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
6488
6489         Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
6490         * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
6491         result.
6492
6493 2012-01-27  Doug Evans  <dje@google.com>
6494
6495         * configure.ac (with_python): Fix absolute path handling for win32.
6496         * configure: Regenerate.
6497
6498 2012-01-26  Doug Evans  <dje@google.com>
6499
6500         * symtab.c: Whitespace cleanup, no code changes.
6501
6502         * symtab.c (lookup_symbol_in_language): Improve comment.
6503         (lookup_symbol_aux): Fix comment.
6504
6505         * psymtab.c (add_psymbol_to_list): Result is now "void".
6506         * psympriv.h (add_psymbol_to_list): Update.
6507
6508         * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
6509
6510 2012-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6511
6512         Do not open script filenames twice.
6513         * cli/cli-cmds.c (source_script_from_stream): Pass to
6514         source_python_script also STREAM.
6515         * python/py-auto-load.c (source_section_scripts): Pass to
6516         source_python_script_for_objfile also STREAM.
6517         (auto_load_objfile_script): Pass to source_python_script_for_objfile
6518         also INPUT.
6519         * python/python-internal.h (source_python_script_for_objfile): New
6520         parameter file, rename parameter file to filename.
6521         * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
6522         instead if !_WIN32.  Update the function comment.
6523         (source_python_script, source_python_script_for_objfile)
6524         (source_python_script): New parameter file, rename parameter file to
6525         filename.  Pass FILENAME to python_run_simple_file.
6526         * python/python.h (source_python_script): New parameter file, rename
6527         parameter file to filename.
6528
6529 2012-01-26  Pedro Alves  <palves@redhat.com>
6530
6531         * corelow.c (core_has_fake_pid): Delete.
6532         (core_close): Delete references to `core_has_fake_pid'.
6533         (add_to_thread_list): Adjust to mark the inferior's pid as fake.
6534         (core_open): Delete references to `core_has_fake_pid'.
6535         (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
6536         the removed global.
6537
6538 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
6539
6540         * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
6541         Remove language parameter from name_matcher.  Adjust the comment.
6542         * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
6543         Remove language parameter.
6544         * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
6545         * linespec.c (iterate_name_matcher): Likewise.
6546         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
6547         name_matcher.  Adjust call accordingly.
6548         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
6549         (maintenance_check_symtabs): Adjust type of parameter "fun".
6550         * psymtab.h (maintenance_check_symtabs): Likewise.
6551
6552 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
6553
6554         * language.h (symbol_name_match_p_ftype): New typedef.
6555         (struct language_defn): Replace field la_symbol_name_compare
6556         by la_get_symbol_name_match_p.
6557         * ada-lang.c (ada_get_symbol_name_match_p): New function.
6558         (ada_language_defn): Use it.
6559         * linespec.c (struct symbol_matcher_data): New type.
6560         (iterate_name_matcher): Rewrite.
6561         (iterate_over_all_matching_symtabs): Pass a pointer to
6562         a symbol_matcher_data struct to expand_symtabs_matching
6563         instead of just the lookup name.
6564         * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6565         opencl-lang.c, p-lang.c, language.c: Delete field
6566         la_symbol_name_compare, and replace by NULL for new field
6567         la_get_symbol_name_match_p.
6568         * symfile.h (struct quick_symbol_functions): Update comment.
6569
6570 2012-01-25  Tom Tromey  <tromey@redhat.com>
6571
6572         * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
6573         dereferencing.
6574
6575 2012-01-24  Tom Tromey  <tromey@redhat.com>
6576
6577         PR symtab/12406:
6578         * solib.c (update_solib_list): Update the program space's
6579         added_solibs and deleted_solibs fields.
6580         * progspace.h (struct program_space) <added_solibs,
6581         deleted_solibs>: New fields.
6582         (clear_program_space_solib_cache): Declare.
6583         * progspace.c (release_program_space): Call
6584         clear_program_space_solib_cache.
6585         (clear_program_space_solib_cache): New function.
6586         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
6587         bpstat_stop_status.  Use handle_solib_event.
6588         * breakpoint.c: Include gdb_regex.h.
6589         (print_solib_event): New function.
6590         (bpstat_print): Use print_solib_event.
6591         (bpstat_stop_status): Add special case for bp_shlib_event.
6592         (handle_solib_event): New function.
6593         (bpstat_what): Use handle_solib_event.
6594         (struct solib_catchpoint): New.
6595         (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
6596         (breakpoint_hit_catch_solib, check_status_catch_solib)
6597         (print_it_catch_solib, print_one_catch_solib)
6598         (print_mention_catch_solib, print_recreate_catch_solib): New
6599         functions.
6600         (catch_solib_breakpoint_ops): New global.
6601         (catch_load_or_unload, catch_load_command_1)
6602         (catch_unload_command_1): New functions.
6603         (internal_bkpt_check_status): Add special case for
6604         bp_shlib_event.
6605         (internal_bkpt_print_it): Use print_solib_event.
6606         (initialize_breakpoint_ops): Initialize
6607         catch_solib_breakpoint_ops.
6608         (_initialize_breakpoint): Register "catch load" and "catch
6609         unload".
6610         * breakpoint.h (handle_solib_event): Declare.
6611         * NEWS: Add entry for "catch load" and "catch unload".
6612
6613 2012-01-24  Tom Tromey  <tromey@redhat.com>
6614
6615         * ada-lang.c: Include gdb_vecs.h.
6616         * charset.c: Include gdb_vecs.h.
6617         * tracepoint.h: Include gdb_vecs.h.
6618         * gdb_vecs.h: New file.
6619
6620 2012-01-24  Pedro Alves  <pedro@codesourcery.com>
6621
6622         * breakpoint.c (breakpoint_hit_catch_fork)
6623         (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
6624         (breakpoint_hit_catch_exec): Make use of the `ws' argument.
6625         * infrun.c (inferior_has_forked, inferior_has_vforked)
6626         (inferior_has_execd, inferior_has_called_syscall): Delete.
6627         (handle_syscall_event): Get syscall_number from the execution
6628         control state's wait status.
6629         (wait_for_inferior): Don't clear syscall_number.
6630
6631 2012-01-24  Pedro Alves  <palves@redhat.com>
6632
6633         * breakpoint.c (bpstat_check_location, bpstat_stop_status,
6634         pc_at_non_inline_function): Add `ws' parameter, and pass it down.
6635         (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
6636         (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
6637         `ws' parameter.
6638         (breakpoint_hit_ranged_breakpoint): Add `ws' parameter.  Return
6639         false for events other than TARGET_SIGNAL_TRAP.
6640         (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
6641         Add `ws' parameter.
6642         (bkpt_breakpoint_hit): Add `ws' parameter.  Return false for
6643         events other than TARGET_SIGNAL_TRAP.
6644         (tracepoint_breakpoint_hit): Add `ws' parameter.
6645         * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
6646         parameter.
6647         (bpstat_stop_status): Same.
6648         (pc_at_non_inline_function): Same.
6649         * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
6650         to pass the current event's waitstatus to bpstat_stop_status
6651         and pc_at_non_inline_function.
6652
6653 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
6654
6655         Code cleanup.
6656         * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
6657         Update the function comment for it.
6658         (source_script_with_search): Call make_cleanup_fclose for STREAM.
6659         * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
6660         for STREAM.
6661
6662 2012-01-24  Pedro Alves  <palves@redhat.com>
6663
6664         * breakpoint.c (bpstat_stop_status): Moving clearing print_it
6665         outside `bs->stop' block.
6666         (bpstat_what): Rework bp_shlib_event handling.
6667         (internal_bkpt_check_status): If the breakpoint is a
6668         bp_shlib_event, then set bs->stop and bs->print if
6669         stop_on_solib_events is set.
6670
6671 2012-01-24  Gary Benson  <gbenson@redhat.com>
6672
6673         Delete #if 0'd out code.
6674         * stack.c (print_frame_label_vars): Remove.
6675         (catch_info): Likewise.
6676         (_initialize_stack): Remove "info catch" command.
6677         * NEWS: Mention the above.
6678
6679 2012-01-24  Pedro Alves  <palves@redhat.com>
6680
6681         * remote.c (remote_add_inferior): New `fake_pid_p' parameter.  Use
6682         it.
6683         (remote_notice_new_inferior): If the remote end doesn't support
6684         the multiprocess extensions, then the PID is fake.
6685         (add_current_inferior_and_thread): New.
6686         (remote_start_remote): Use it.
6687         (extended_remote_attach_1): Adjust.
6688         (extended_remote_create_inferior_1): Use
6689         add_current_inferior_and_thread.
6690
6691 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
6692
6693         Fix watchpoints to be specific for each inferior.
6694         * breakpoint.c (watchpoint_in_thread_scope): Verify also
6695         current_program_space.
6696         * i386-nat.c (i386_inferior_data_cleanup): New.
6697         (i386_inferior_data_get): Replace variable inf_data_local by an
6698         inferior_data call.
6699         (i386_use_watchpoints): Initialize i386_inferior_data.
6700         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
6701         specific iterate_over_lwps.
6702
6703 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
6704
6705         Fix watchpoints across inferior fork.
6706         * amd64-linux-nat.c (update_debug_registers_callback): Update the
6707         comment for linux_nat_iterate_watchpoint_lwps.
6708         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
6709         linux_nat_iterate_watchpoint_lwps.
6710         (amd64_linux_prepare_to_resume): New comment on Linux kernel.
6711         * i386-linux-nat.c (update_debug_registers_callback): Update the
6712         comment for linux_nat_iterate_watchpoint_lwps.
6713         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
6714         linux_nat_iterate_watchpoint_lwps.
6715         (i386_linux_prepare_to_resume): New comment on Linux kernel.
6716         * i386-nat.c: Include inferior.h.
6717         (dr_mirror): Remove.
6718         (i386_inferior_data, struct i386_inferior_data)
6719         (i386_inferior_data_get): New.
6720         (i386_debug_reg_state): Use i386_inferior_data_get.
6721         (i386_cleanup_dregs, i386_update_inferior_debug_regs)
6722         (i386_insert_watchpoint, i386_remove_watchpoint)
6723         (i386_stopped_data_address, i386_insert_hw_breakpoint)
6724         (i386_remove_hw_breakpoint): New variable state, use
6725         i386_debug_reg_state instead of DR_MIRROR.
6726         * linux-nat.c (delete_lwp): New declaration.
6727         (num_lwps): Move here from downwards.
6728         (delete_lwp_cleanup): New.
6729         (linux_child_follow_fork): Create new child_lp, call
6730         linux_nat_new_thread and linux_nat_prepare_to_resume before calling
6731         PTRACE_DETACH.
6732         (num_lwps): Move upwards.
6733         (linux_nat_iterate_watchpoint_lwps): New.
6734         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
6735         (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
6736
6737 2012-01-24  Joel Brobecker  <brobecker@adacore.com>
6738
6739         GDB 7.4 released.
6740
6741 2012-01-23  Pedro Alves  <palves@redhat.com>
6742
6743         * top.c (caution): Rename to ...
6744         (confirm): ... this.
6745         (show_caution): Rename to ...
6746         (show_confirm): ... this.
6747         (quit_cover): Adjust.
6748         (init_main): Adjust.
6749         * top.h (caution): Rename to ...
6750         (confirm): ... this.
6751         * utils.c (internal_vproblem, defaulted_query): Adjust.
6752
6753 2012-01-23  Pedro Alves  <palves@redhat.com>
6754
6755         * top.c (caution): Update comment.
6756         (execute_command): Don't consider the current value of `caution'.
6757
6758 2012-01-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
6759
6760         * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
6761
6762 2012-01-23  Ulrich Weigand  <ulrich.weigand@linaro.org>
6763
6764         * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
6765         * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
6766         * target.c (target_fileio_pwrite): Remove buffer address from
6767         debug output.
6768         (target_fileio_pread): Likewise.
6769
6770 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
6771
6772         * NEWS: Document remote "info proc" and "generate-core-file".
6773
6774 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
6775
6776         * gdbarch.sh (find_memory_regions): New callback.
6777         * gdbarch.c, gdbarch.h: Regenerate.
6778
6779         * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
6780         callback before falling back to target method.
6781
6782         * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
6783         (linux_target_install_ops): No longer install it.
6784
6785         * linux-tdep.c (linux_find_memory_regions): New function.
6786         (linux_init_abi): Install it.
6787
6788 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
6789
6790         * gdbarch.sh (make_corefile_notes): New architecture callback.
6791         * gdbarch.c: Regenerate.
6792         * gdbarch.h: Likewise.
6793
6794         * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
6795         before target_make_corefile_notes.  If NULL is returned, the
6796         target does not support core file generation.
6797
6798         * linux-nat.c: Include "linux-tdep.h".
6799         (find_signalled_thread, find_stop_signal): Remove.
6800         (linux_nat_do_thread_registers): Likewise.
6801         (struct linux_nat_corefile_thread_data): Likewise.
6802         (linux_nat_corefile_thread_callback): Likewise.
6803         (iterate_over_spus): Likewise.
6804         (struct linux_spu_corefile_data): Likewise.
6805         (linux_spu_corefile_callback): Likewise.
6806         (linux_spu_make_corefile_notes): Likewise.
6807         (linux_nat_collect_thread_registers): New function.
6808         (linux_nat_make_corefile_notes): Replace contents by call to
6809         linux_make_corefile_notes passing linux_nat_collect_thread_registers
6810         as native-only callback.
6811
6812         * linux-tdep.h: Include "bfd.h".
6813         (struct regcache): Add forward declaration.
6814         (linux_collect_thread_registers_ftype): New typedef.
6815         (linux_make_corefile_notes): Add prototype.
6816         * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
6817         "regset.h", and "elf-bfd.h".
6818         (find_signalled_thread, find_stop_signal): New functions.
6819         (linux_spu_make_corefile_notes): Likewise.
6820         (linux_collect_thread_registers): Likewise.
6821         (struct linux_corefile_thread_data): New data structure.
6822         (linux_corefile_thread_callback): New funcion.
6823         (linux_make_corefile_notes): Likewise.
6824         (linux_make_corefile_notes_1): Likewise.
6825         (linux_init_abi): Install it.
6826
6827 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
6828
6829         * gdbarch.sh (info_proc): New callback.
6830         * gdbarch.c, gdbarch.h: Regenerate.
6831
6832         * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
6833         before falling back to the target info_proc callback.
6834
6835         * linux-nat.c: Do not include "cli/cli-utils.h".
6836         (linux_nat_info_proc): Remove.
6837         (linux_target_install_ops): No longer install it.
6838
6839         * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
6840         (read_mapping): New function.
6841         (linux_info_proc): Likewise.
6842         (linux_init_abi): Install it.
6843
6844 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
6845
6846         * defs.h (enum info_proc_what): Moved here from linux-nat.c
6847         * infcmd.c: (info_proc_cmd_1): New function.
6848         (info_proc_cmd): New function, moved here from equivalent routine
6849         orignally in linux-nat.c.
6850         (info_proc_cmd_mappings): Likewise.
6851         (info_proc_cmd_stat): Likewise.
6852         (info_proc_cmd_status): Likewise.
6853         (info_proc_cmd_cwd): Likewise.
6854         (info_proc_cmd_cmdline): Likewise.
6855         (info_proc_cmd_exe): Likewise.
6856         (info_proc_cmd_all): Likewise.
6857         (_initialize_infcmd): Install "info proc" command and subcommands.
6858
6859         * target.h (struct target_ops): Add to_info_proc.
6860         (target_info_proc): Add prototype.
6861         * target.c (target_info_proc): New function.
6862
6863         * procfs.c (procfs_info_proc): Add prototype.
6864         (info_proc_cmd): Rename into ...
6865         (procfs_info_proc): ... this.  Update argument types as appropriate
6866         for a to_info_proc implementation.  Handle "what" argument.
6867         (procfs_target): Install procfs_info_proc.
6868         (_initialize_procfs): No longer install "info proc" command.
6869
6870         * linux-nat.c: (enum info_proc_what): Remove.
6871         (linux_nat_info_proc_cmd_1): Rename into ...
6872         (linux_nat_info_proc): ... this.  Update argument types as appropriate
6873         for a to_info_proc implementation.
6874         (linux_nat_info_proc_cmd): Remove.
6875         (linux_nat_info_proc_cmd_mappings): Likewise.
6876         (linux_nat_info_proc_cmd_stat): Likewise.
6877         (linux_nat_info_proc_cmd_status): Likewise.
6878         (linux_nat_info_proc_cmd_cwd): Likewise.
6879         (linux_nat_info_proc_cmd_cmdline): Likewise.
6880         (linux_nat_info_proc_cmd_exe): Likewise.
6881         (linux_nat_info_proc_cmd_all): Likewise.
6882         (linux_target_install_ops): Install linux_nat_info_proc.
6883         (_initialize_linux_nat): No longer install "info proc" command
6884         and subcommands.
6885
6886 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
6887
6888         * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
6889         * config.in, configure: Regenerate.
6890
6891         * target.h (struct target_ops): Add to_fileio_readlink.
6892         (target_fileio_readlink): Add prototype.
6893         * target.c (target_fileio_readlink): New function.
6894
6895         * inf-child.c: Conditionally include <sys/param.h>.
6896         (inf_child_fileio_readlink): New function.
6897         (inf_child_target): Install it.
6898
6899         * remote.c (PACKET_vFile_readlink): New enum value.
6900         (remote_hostio_readlink): New function.
6901         (init_remote_ops): Install it.
6902         (_initialize_remote): Handle vFile:readlink packet type.
6903
6904 2012-01-20  Pedro Alves  <palves@redhat.com>
6905             Ulrich Weigand  <ulrich.weigand@linaro.org>
6906
6907         * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
6908         * config.in, configure: Regenerate.
6909
6910         * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
6911         to_fileio_pread, to_fileio_close, to_fileio_unlink.
6912         (target_fileio_open): Add prototype.
6913         (target_fileio_pwrite): Likewise.
6914         (target_fileio_pread): Likewise.
6915         (target_fileio_close): Likewise.
6916         (target_fileio_unlink): Likewise.
6917         (target_fileio_read_alloc): Likewise.
6918         (target_fileio_read_stralloc): Likewise.
6919
6920         * target.c: Include "gdb/fileio.h".
6921         (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
6922         (default_fileio_target): New function.
6923         (target_fileio_open): Likewise.
6924         (target_fileio_pwrite): Likewise.
6925         (target_fileio_pread): Likewise.
6926         (target_fileio_close): Likewise.
6927         (target_fileio_unlink): Likewise.
6928         (target_fileio_close_cleanup): Likewise.
6929         (target_fileio_read_alloc_1): Likewise.
6930         (target_fileio_read_alloc): Likewise.
6931         (target_fileio_read_stralloc): Likewise.
6932
6933         * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
6934         <fcntl.h>, and <unistd.h>.
6935         (inf_child_fileio_open_flags_to_host): New function.
6936         (inf_child_errno_to_fileio_error): Likewise.
6937         (inf_child_fileio_open): Likewise.
6938         (inf_child_fileio_pwrite): Likewise.
6939         (inf_child_fileio_pread): Likewise.
6940         (inf_child_fileio_close): Likewise.
6941         (inf_child_fileio_unlink): Likewise.
6942         (inf_child_target): Install to_fileio routines.
6943
6944         * remote.c (init_remote_ops): Install to_fileio routines.
6945
6946 2012-01-20  Pedro Alves  <palves@redhat.com>
6947             Ulrich Weigand  <ulrich.weigand@linaro.org>
6948
6949         * remote.c (remote_multi_process_p): Only check for multi-process
6950         protocol feature, do not check for extended protocol.
6951         (remote_supports_multi_process): Check for extended protocol here.
6952         (set_general_process): Likewise.
6953         (extended_remote_kill): Likewise.
6954         (remote_pid_to_str): Likewise.
6955         (remote_query_supported): Always query multiprocess mode.
6956
6957 2012-01-20  Pedro Alves  <palves@redhat.com>
6958             Ulrich Weigand  <ulrich.weigand@linaro.org>
6959
6960         * inferior.h (struct inferior): Add fake_pid_p.
6961         * inferior.c (exit_inferior_1): Clear fake_pid_p.
6962         * remote.c (remote_start_remote): Set fake_pid_p if we have to use
6963         magic_null_ptid since the remote side doesn't provide a real PID.
6964
6965 2012-01-19  Tom Tromey  <tromey@redhat.com>
6966
6967         * NEWS: Combine the two Python sections.
6968
6969 2012-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
6970
6971         * target.h (target_close): Update comment on the target's unpush state.
6972
6973 2012-01-19  Pedro Alves  <palves@redhat.com>
6974
6975         * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
6976         linux_nat_async directly instead of going through the target
6977         vector.
6978         * target.c (unpush_target): Close target after unpushing it, not
6979         before.
6980
6981 2012-01-19  Gary Benson  <gbenson@redhat.com>
6982
6983         * mdebugread.c (sort_blocks): Replace integer constants with ones
6984         derived from FIRST_LOCAL_BLOCK.
6985
6986 2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
6987             Jan Kratochvil  <jan.kratochvil@redhat.com>
6988
6989         PR gdb/9538
6990         * symfile.c (find_separate_debug_file): New function.
6991         (terminate_after_last_dir_separator): Likewise.
6992         (find_separate_debug_file_by_debuglink): Also try realpath.
6993         * configure.ac (AC_CHECK_FUNCS): Add lstat.
6994         * configure: Regenerate.
6995         * config.in: Regenerate.
6996
6997 2012-01-18  Doug Evans  <dje@google.com>
6998
6999         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
7000         (main.o): Remove rule.
7001         * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
7002         (--with-sysroot): Rewrite.
7003         * configure: Regenerate.
7004         * config.in: Regenerate.
7005
7006 2012-01-18  Sergio Durigan Junior  <sergiodj@redhat.com>
7007
7008         * parse.c (initialize_expout): New function.
7009         (reallocate_expout): Likewise.
7010         (parse_exp_in_context): Use `initialize_expout' and
7011         `reallocate_expout' when appropriate.
7012
7013 2012-01-18  Pedro Alves  <palves@redhat.com>
7014
7015         * record.c (struct record_breakpoint, record_breakpoint_p)
7016         (record_breakpoints): New.
7017         (record_insert_breakpoint, record_remove_breakpoint): Manage
7018         record breakpoints list.  Only remove breakpoints from the
7019         inferior if they had been inserted there in the first place.
7020
7021 2012-01-17  Doug Evans  <dje@google.com>
7022
7023         * linespec.c (decode_line_internal): Don't call symtabs_from_filename
7024         if we know we don't have a file name to look for.
7025
7026 2012-01-17  Pedro Alves  <palves@redhat.com>
7027
7028         * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
7029         the frame's stop reason is UNWIND_UNAVAILABLE.
7030
7031 2012-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7032
7033         Fix compilation error.
7034         * m2-exp.y (yyerror): Use ANSI C prototype.
7035
7036 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
7037
7038         * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
7039         (growbuf_by_size): Likewise.
7040         (yyerror): Likewise.
7041         * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
7042         (modblock): Remove variable (was #if 0'ed).
7043         (parse_number): Convert prototype from K&R to ANSI C.
7044         (yyerror): Likewise.
7045         * objc-exp.y (parse_number): Likewise.
7046         (yyerror): Likewise.
7047         (yylex): Remove #if 0'ed code.
7048         * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
7049         (yyerror): Likewise.
7050
7051 2012-01-16  Tom Tromey  <tromey@redhat.com>
7052
7053         * NEWS: Add item.
7054         * symtab.h (compare_filenames_for_search): Declare.
7055         * symtab.c (compare_filenames_for_search): New function.
7056         (iterate_over_some_symtabs): Use it.
7057         * symfile.h (struct quick_symbol_functions)
7058         <map_symtabs_matching_filename>: Change spec.
7059         * psymtab.c (partial_map_symtabs_matching_filename): Use
7060         compare_filenames_for_search.  Update for new spec.
7061         * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
7062         compare_filenames_for_search.  Update for new spec.
7063         * breakpoint.c (clear_command): Use compare_filenames_for_search.
7064
7065 2012-01-16  Tom Tromey  <tromey@redhat.com>
7066
7067         PR python/13281:
7068         * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
7069         (struct main_type) <flag_flag_enum>: New field.
7070         * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
7071         * NEWS: Add entries.
7072         * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
7073         enums.
7074         * python/lib/gdb/printing.py (_EnumInstance): New class.
7075         (FlagEnumerationPrinter): Likewise.
7076
7077 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
7078
7079         * breakpoint.c (create_sals_from_address_default): New function.
7080         (create_breakpoints_sal_default): Likewise.
7081         (decode_linespec_default): Likewise.
7082         (is_marker_spec): Removed.
7083         (strace_marker_p): New function.
7084         (init_breakpoint_sal): Using `strace_marker_p' instead of
7085         `is_marker_spec'.
7086         (create_breakpoint): Call method `create_sals_from_address' from
7087         breakpoint_ops, replacing code that created SALs conditionally
7088         on the type of the breakpoint.  Call method `create_breakpoints_sal',
7089         replacing code that created breakpoints conditionally on the type
7090         wanted.
7091         (base_breakpoint_create_sals_from_address): New function.
7092         (base_breakpoint_create_breakpoints_sal): Likewise.
7093         (base_breakpoint_decode_linespec): Likewise.
7094         (base_breakpoint_ops): Add methods
7095         `base_breakpoint_create_sals_from_address',
7096         `base_breakpoint_create_breakpoints_sal' and
7097         `base_breakpoint_decode_linespec'.
7098         (bkpt_create_sals_from_address): New function.
7099         (bkpt_create_breakpoints_sal): Likewise.
7100         (bkpt_decode_linespec): Likewise.
7101         (tracepoint_create_sals_from_address): Likewise.
7102         (tracepoint_create_breakpoints_sal): Likewise.
7103         (tracepoint_decode_linespec): Likewise.
7104         (strace_marker_create_sals_from_address): Likewise.
7105         (strace_marker_create_breakpoints_sal): Likewise.
7106         (strace_marker_decode_linespec): Likewise.
7107         (strace_marker_breakpoint_ops): New variable.
7108         (addr_string_to_sals): Remove `marker_spec'.  Call method
7109         `decode_linespec' from breakpoint_ops, replacing code that decoded
7110         an address string into a SAL.  Use `strace_marker_p' instead of
7111         `marker_spec'.
7112         (strace_command): Decide whether we are dealing with a static
7113         tracepoint with marker or not.  Use the appropriate breakpoint_ops.
7114         (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
7115         * breakpoint.h (linespec_result, linespec_sals): New forward
7116         declarations.
7117         (breakpoint_ops) <create_sals_from_address>,
7118         <create_breakpoints_sal>, <decode_linespec>: New methods.
7119
7120 2012-01-14  Doug Evans  <dje@google.com>
7121
7122         * NEWS: Update text for "maint set python print-stack".
7123         It is deprecated in gdb 7.4 and deleted in 7.5.
7124
7125 2012-01-13  Eli Zaretskii  <eliz@gnu.org>
7126
7127         * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
7128         including curses.h.
7129
7130 2012-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
7131
7132         * configure: Regenerate.
7133         * config.in: Regenerate.
7134
7135 2012-01-12  Keith Seitz  <keiths@redhat.com>
7136
7137         PR mi/10586
7138         * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
7139         (ANONYMOUS_UNION_NAME): Define.
7140         (is_path_expr_parent): New function.
7141         (get_path_expr_parent): New function.
7142         (is_anonymous_child): New function.
7143         (create_child_with_value): If the child is anonymous and without
7144         a name, assign an object name to it.
7145         (c_describe_child): Use get_path_expr_parent to determine
7146         the parent expression.
7147         If there field represents an anonymous struct or union and
7148         has no name, set an appropriate display name and expression.
7149         (cplus_describe_child): Likewise.
7150
7151 2012-01-12  Pedro Alves  <palves@redhat.com>
7152
7153         * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
7154         available when %ebp is found to be zero (outermost).
7155
7156 2012-01-11  Andreas Tobler  <andreast@fgznet.ch>
7157
7158         * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
7159         an internal gdb_static_assert.
7160         * mi/mi-common.c: Rename static_assert to gdb_static_assert.
7161
7162 2012-01-11  Tom Tromey  <tromey@redhat.com>
7163
7164         PR gdb/9598:
7165         * breakpoint.c (_initialize_breakpoint): Fix help for "catch
7166         catch" and "catch throw".
7167
7168 2012-01-11  Paul Hilfinger  <hilfingr@adacore.com>
7169
7170         * blockframe.c (block_innermost_frame): Start search from selected
7171         frame, if present, or otherwise the current frame.
7172
7173         * c-exp.y (variable): Update innermost_block for
7174         'block COLONCOLON NAME' clause.
7175         * m2-exp.y (variable): Ditto.
7176         * objc-exp.y (variable): Ditto.
7177
7178 2012-01-10  Tom Tromey  <tromey@redhat.com>
7179
7180         PR python/13199:
7181         * python/python.c (finish_python_initialization): Set sys.argv.
7182
7183 2012-01-10  Doug Evans  <dje@google.com>
7184
7185         * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd".  New arg
7186         "want_line_info".  All callers updated.
7187         (dwarf_decode_lines_1): New function.
7188         (handle_DW_AT_stmt_list): Add function comment.
7189         New arg "want_line_info".  All callers updated.
7190         (read_file_scope,read_type_unit_scope): Move comment from
7191         handle_DW_AT_stmt_list to here.
7192
7193 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7194
7195         Fix regression after libiberty/ update for GCC PR 6057 and others.
7196         * c-exp.y (operator) <OPERATOR DELETE>
7197         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
7198         * cp-name-parser.y (fill_comp, make_operator, make_dtor)
7199         (make_builtin_type, make_name): New variable i, add gdb_assert.
7200         (operator) <OPERATOR NEW>: Update ARGS to 3.
7201         (operator) <OPERATOR DELETE>: Add trailing space.
7202         (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
7203         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
7204         * cp-support.c (cp_canonicalize_string): Check NULL from
7205         cp_comp_to_string, call warning and return.
7206
7207 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
7208
7209         Fix duplicate .o files after omitting libbfd.a.
7210         * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
7211         (SFILES): Add corelow.c.
7212         (COMMON_OBS): Add corelow.o.
7213         (ALLDEPFILES): Remove corelow.c.
7214         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
7215         * config/alpha/alpha-osf3.mh: Likewise.
7216         * config/alpha/fbsd.mh: Likewise.
7217         * config/arm/nbsdaout.mh: Likewise.
7218         * config/arm/nbsdelf.mh: Likewise.
7219         * config/i386/i386gnu.mh: Likewise.
7220         * config/ia64/hpux.mh: Likewise.
7221         * config/ia64/linux.mh: Likewise.
7222         * config/m32r/linux.mh: Likewise.
7223         * config/m68k/linux.mh: Likewise.
7224         * config/mips/irix5.mh: Likewise.
7225         * config/mips/irix6.mh: Likewise.
7226         * config/pa/hpux.mh: Likewise.
7227         * config/pa/linux.mh: Likewise.
7228         * config/powerpc/aix.mh: Likewise.
7229         * config/sparc/linux.mh: Likewise.
7230         * config/sparc/linux64.mh: Likewise.
7231         * config/sparc/sol2.mh: Likewise.
7232         * config/vax/vax.mh: Likewise.
7233         * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
7234         (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
7235         (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
7236         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
7237         (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
7238         (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
7239         (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
7240         (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
7241         (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
7242         (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
7243         (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
7244         (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
7245         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7246         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
7247         (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
7248         (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7249         (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
7250         (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
7251         (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
7252         (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
7253         (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
7254         (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
7255         corelow.o from gdb_target_obs.
7256         * corefile.c (core_target): Update the comment on NULL value.
7257         (core_file_command): Replace error by gdb_assert on CORE_TARGET.
7258         * corelow.c (sniff_core_bfd): Call error instead of warning on zero
7259         MATCHES.  Drop YUMMY set on NULL.
7260         (core_close): Do not call exit_inferior_silent on zero PID.  Do not
7261         reclaim CORE_DATA if it is already NULL.
7262
7263 2012-01-09  Doug Evans  <dje@google.com>
7264
7265         * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
7266         * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
7267
7268 2012-01-09  Keith Seitz  <keiths@redhat.com>
7269
7270         * breakpoint.c (wrapper.h): Don't include.
7271
7272 2012-01-09  Keith Seitz  <keiths@redhat.com>
7273
7274         * Makefile.in (SFILES): Remove wrapper.c.
7275         (HFILES_NO_SRCDIR): Remove wrapper.h.
7276         (COMMON_OBS): Remove wrapper.o.
7277         * cli/cli-interp.c: Don't inlude wrapper.h.
7278         * corelow.c: Likewise.
7279         (core_open): Replace gdb_target_find_new_threads with
7280         TRY_CATCH around target_find_new_threads.
7281         * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
7282         * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
7283         * varobj.c (varobj_create): Likewise for parse_exp_1 and
7284         evaluate_expression.
7285         (varobj_set_value): Likewise for evaluate_expression and
7286         value_assign.
7287         (install_new_variable): Likewise for value_fetch_lazy.
7288         (adjust_value_for_child_access): Likewise for value_ind.
7289         (c_describe_child): Likewise for value_subscript and
7290         value_ind.
7291         (c_value_of_root): Likewise for evaluate_expression.
7292         * wrapper.c: Remove.
7293         * wrapper.h: Remove.
7294
7295 2012-01-09  Doug Evans  <dje@google.com>
7296
7297         * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
7298         partial_read_comp_unit_head.  Replace "buffer", "buffer_size" and
7299         "abfd" args with "section".  All callers updated.
7300         Error checking code moved ...
7301         (error_check_comp_unit_head): ... here.  New function.
7302         (read_and_check_type_unit_head): Renamed from read_type_unit_head.
7303         Delete arg "abfd".  New arg "type_offset".  All callers updated.
7304         (create_debug_types_hash_table): Simplify by using
7305         read_and_check_type_unit_head.
7306
7307         * parser-defs.h (namecopy): Delete.
7308         * parse.c (namecopy, namecopy_size): Move into copy_name.
7309
7310 2012-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
7311
7312         Partially fix duplicate .o files after omitting libbfd.a.
7313         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
7314         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7315         * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
7316         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7317         * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
7318         * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
7319         * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7320
7321 2012-01-09  Pedro Alves  <palves@redhat.com>
7322
7323         * MAINTAINERS: Update my email address.
7324
7325 2012-01-08  Doug Evans  <dje@google.com>
7326
7327         * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
7328         n_type_units.  Rename type_comp_units to all_type_units.
7329         All uses updated.
7330         (add_signatured_type_cu_to_table): Renamed from
7331         add_signatured_type_cu_to_list.  All callers updated.
7332
7333         * gdbtypes.h (struct cplus_struct_type): Delete member
7334         nfn_fields_total.  All uses removed.
7335
7336 2012-01-06  Doug Evans  <dje@google.com>
7337
7338         * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
7339         to top of file.
7340         (dwarf2_find_comp_unit): Delete.
7341         (process_psymtab_comp_unit): Make result "void".
7342         Delete args buffer, info_ptr, buffer_size, and replace with
7343         "section".  All callers updated.
7344         (dwarf2_build_psymtabs_hard): Simplify.
7345
7346 2012-01-06  Sergio Durigan Junior  <sergiodj@redhat.com>
7347             Thiago Jung Bauermann  <bauerman@br.ibm.com>
7348
7349         * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
7350         before `struct gdb_exception'.
7351         * breakpoint.c (update_global_location_list_nothrow)
7352         (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
7353         * cp-abi.c (value_rtti_type): Likewise.
7354         * cp-support.c (cp_validate_operator): Likewise.
7355         * infrun.c (insert_exception_resume_breakpoint)
7356         (check_exception_resume, keep_going): Likewise.
7357         * mi-interp.c (mi_breakpoint_created)
7358         (mi_breakpoint_modified): Likewise.
7359         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
7360         * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
7361         (ia64_hpux_handle_dld_breakpoint_1): Likewise.
7362
7363 2012-01-05  Doug Evans  <dje@google.com>
7364
7365         * dwarf2read.c (statement_prologue): Delete, unused.
7366
7367         * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
7368         * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
7369
7370         * dwarf2read.c (comp_unit_header): Delete, unused.
7371
7372 2012-01-05  Ulrich Weigand  <uweigand@de.ibm.com>
7373
7374         * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
7375         * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
7376
7377 2012-01-05  Khoo Yit Phang  <khooyp@cs.umd.edu>
7378
7379         * infrun.c (normal_stop): Don't skip calling the normal_stop
7380         observers if the thread was doing a multi-step, but stopped for
7381         some reason other than stepping.
7382
7383 2012-01-05  Pedro Alves  <alves.ped@gmail.com>
7384
7385         * cli/cli-decode.h: Add comments.
7386         (CMD_LIST_AMBIGUOUS): Moved to command.h
7387         (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
7388         (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
7389         (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
7390         (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
7391         (add_com, add_com_alias, add_info, add_info_alias)
7392         (complete_on_cmdlist, complete_on_enum, help_list): Remove
7393         declarations.
7394         * command.h: Add and adjust comments.
7395         (CMD_LIST_AMBIGUOUS): Moved here.
7396         (help_cmd, help_cmd_list): Delete declarations.
7397
7398 2012-01-04  Doug Evans  <dje@google.com>
7399
7400         * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
7401         All callers updated.
7402         (load_full_type_unit): Renamed from read_signatured_type_at_offset.
7403         Replace all arguments with "per_cu".  All callers updated.
7404
7405         * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
7406
7407         * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
7408         New arg "per_cu".  All callers updated.
7409
7410         Delete #if 0'd out code.
7411         * language.c (binop_result_type): Delete.
7412         (simple_type, ordered_type, same_type, integral_type): Delete.
7413         (numeric_type, character_type, string_type, boolean_type): Delete.
7414         (float_type, structured_type): Delete.
7415         * language.h: Update.
7416
7417 2012-01-04  Tom Tromey  <tromey@redhat.com>
7418
7419         * python/py-value.c (valpy_binop): Initialize 'res_val'.
7420
7421 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
7422
7423         * corefile.c (close_exec_file): Delete.
7424         (reopen_exec_file): Remove commented out code that seems related
7425         to close_exec_file, which is being deleted here.
7426         * inferior.h (close_exec_file): Delete.
7427         * fork-child.c (fork_inferior): Remove call to fork_inferior.
7428
7429 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
7430
7431         * ada-lang.c: #include "cli/cli-utils.h".
7432         (get_selections): Use skip_spaces.
7433         (ada_get_next_arg): Use skip_spaces and skip_to_space.
7434         (catch_ada_exception_command_split): Use skip_spaces.
7435         (ada_decode_assert_location): Likewise.
7436
7437 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
7438
7439         * linespec.c (decode_line_internal): Check for C++ or Java
7440         compound constructs only if the current language is C, C++
7441         or Java.
7442
7443 2012-01-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
7444
7445         Revert:
7446         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7447                     Joel Brobecker  <brobecker@adacore.com>
7448         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7449         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7450         3 times.
7451         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7452         fall through into AT_ENTRY_POINT.
7453         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
7454         DUMMY_ADDR with it.
7455         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7456         PPC_INSN_SIZE skip to 3 times.
7457
7458 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
7459
7460         * linespec.c (add_minsym): Preserve function descriptors.
7461
7462 2012-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
7463
7464         * breakpoint.c (all_locations_are_pending): Consider locations
7465         in program spaces executing during startup pending as well.
7466
7467 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
7468
7469         Copyright year update in most files of the GDB Project.
7470
7471 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
7472
7473         * copyright.sh: Delete.
7474         * copyright.py: Rewrite.
7475
7476 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
7477
7478         * gnulib/extra/update-copyright: New file, imported from gnulib.
7479
7480 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
7481
7482         * README (Copyright and License Notices): New section.
7483
7484 2012-01-03  Tom Tromey  <tromey@redhat.com>
7485
7486         PR python/12533:
7487         * python/py-value.c (valpy_dereference, valpy_get_address
7488         valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
7489         (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
7490         (valpy_absolute, valpy_richcompare): Free intermediate values.
7491
7492 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
7493
7494         * ada-lang.c: Reformat the copyright notice.
7495
7496 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7497
7498         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
7499         * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
7500         (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
7501         (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
7502         Revert this part of:
7503         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7504         Build gdb directly from *.o files not using libgdb.a.
7505         * Makefile.in (COMMON_OBS): Remove solib-target.o.
7506
7507 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
7508
7509         * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
7510         gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
7511         Reformat the copyright header.
7512
7513 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7514
7515         Revert this part of:
7516         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7517         Remove the gdbtui binary.
7518         * gdb.c (main): Remove args.interpreter_p initialization.
7519         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7520         * main.h (struct captured_main_args): Remove interpreter_p.
7521
7522 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
7523
7524         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
7525
7526 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
7527
7528         * top.c (print_gdb_version): Update copyright year.
7529
7530 2012-01-02  Yao Qi  <yao@codesourcery.com>
7531
7532         * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
7533
7534 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7535             Joel Brobecker  <brobecker@adacore.com>
7536
7537         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7538         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7539         3 times.
7540         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7541         fall through into AT_ENTRY_POINT.
7542         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
7543         DUMMY_ADDR with it.
7544         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7545         PPC_INSN_SIZE skip to 3 times.
7546
7547 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7548
7549         * amd64-linux-nat.c (update_debug_registers_callback): New comment on
7550         the return value.
7551         * i386-linux-nat.c (update_debug_registers_callback): Likewise.
7552
7553 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7554
7555         Build gdb directly from *.o files not using libgdb.a.
7556         * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
7557         (COMMON_OBS): Remove solib-target.o.
7558         (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
7559         (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
7560         (LIBGDB_OBS, libgdb.a): Move it above.
7561         * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
7562         (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
7563         (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
7564         (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
7565         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
7566         (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
7567         (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
7568         (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
7569         (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
7570         (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
7571         (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
7572         (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
7573         (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
7574         (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
7575         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7576         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
7577         (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
7578         (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7579         (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
7580         (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
7581         (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
7582         (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
7583         (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
7584         (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
7585         (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
7586         (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
7587         (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
7588
7589 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7590
7591         Remove the gdbtui binary.
7592         * .gitignore (/gdbtui): Remove.
7593         * Makefile.in (TUI): Remove.
7594         (SUBDIR_TUI_OBS): Remove tui-main.o.
7595         (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
7596         (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
7597         (tui-main.o): Remove.
7598         (all_object_files): Remove tui-main.o.
7599         * NEWS: New note for the gdbtui removal.
7600         * configure: Rebuilt.
7601         * configure.ac: No longer add all-tui, clean-tui, install-tui and
7602         uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
7603         CONFIG_UNINSTALL respectively.
7604         * gdb.c (main): Remove args.interpreter_p initialization.
7605         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7606         * main.h (struct captured_main_args): Remove interpreter_p.
7607         * tui/tui-main.c: Remove.
7608
7609 2012-01-01  Doug Evans  <dje@google.com>
7610
7611         * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
7612         (dwarf2_physname, read_import_statement): Ditto.
7613         (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
7614         (process_structure_scope read_subroutine_type): Ditto.
7615         (read_typedef, load_partial_dies, read_partial_die): Ditto.
7616         (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
7617         (dwarf2_fetch_die_location_block): Ditto.
7618         (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
7619
7620         * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
7621         All callers updated.
7622         (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
7623         (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
7624         (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
7625
7626         * dwarf2read.c (load_cu): Move assert to more useful location.
7627
7628         * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
7629         All callers updated.
7630
7631         * dwarf2read.c (dwarf2_per_objfile): Add comment.
7632         (dwarf2_elf_names): Minor reformat.
7633         (dwarf2_per_cu_data): Tweak comment.
7634         (dwarf2_read_section): Fix comment.
7635         (create_all_comp_units): Fix comment.
7636         (load_full_comp_unit): Fix comment.
7637         (process_full_comp_unit): Fix comment.
7638         (read_signatured_type): Fix comment.
7639
7640 For older changes see ChangeLog-2011.
7641 \f
7642 Local Variables:
7643 mode: change-log
7644 left-margin: 8
7645 fill-column: 74
7646 version-control: never
7647 coding: utf-8
7648 End: