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