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