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