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