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