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