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