Do not crash when calling GDB with empty executable name.
[external/binutils.git] / gdb / ChangeLog
1 2012-11-26  Keith Seitz  <keiths@redhat.com>
2
3         * exec.c (exec_file_attach): Move cleanup after verifying that
4         memory has in fact been allocated.
5
6 2012-11-26  Tom Tromey  <tromey@redhat.com>
7
8         * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
9         * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
10         SYMBOL_SYMTAB.
11         * skip.c (skip_info): Use SYMBOL_SYMTAB.
12
13 2012-11-26  Maxime Villard  <rustyBSD@gmx.fr>
14             Pedro Alves  <palves@redhat.com>
15
16         * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
17         size parameter passed to readlink by one byte.
18         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
19         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
20         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
21         * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
22         size by one byte.
23
24 2012-11-26  Yao Qi  <yao@codesourcery.com>
25
26         * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
27         extraneous parentheses.
28
29 2012-11-26  Yao Qi  <yao@codesourcery.com>
30
31         * remote.c (remote_start_remote): Typo fix.
32
33 2012-11-23  David S. Miller  <davem@davemloft.net>
34
35         * sparc-tdep.h (struct sparc_fpregset): New data structure.
36         (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
37         sparc32_sol2_fpregset): Declare new globals.
38         (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
39         'fpregset' argument.
40         * sparc64-tdep.h (sparc64_supply_fpregset,
41         sparc64_collect_fpregset): Likewise.
42         (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
43         globals.
44         * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
45         (sparc_fpregset): Declare new global.
46         (sparc_supply_fpregset, sparc_collect_fpregset): Add new
47         'fpregset' argument.
48         * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
49         into handler.
50         (fill_fpregset): Likewise.
51         (_initialize_sparc_linux_nat): Set sparc_fpregset to
52         sparc32_bsd_fpregset.
53         * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
54         sparc32_bsd_fpregset down into handler.
55         (sparc32_linux_collect_core_fpregset): Likewise.
56         * sparc-nat.c (sparc_fpregset): Define.
57         (sparc_supply_fpregset): Add 'fpregset' argument.
58         (sparc_collect_fpregset): Likewise.
59         (sparc_fetch_inferior_registers): Pass sparc_fpregset down
60         into fpregset handler.
61         (sparc_store_inferior_registers): Likewise.
62         (_initialize_sparc_nat): Set sparc_fpregset to
63         sparc32_sunos4_fpregset if NULL.
64         * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
65         down into handler.
66         (fill_fpregset): Likewise.
67         * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
68         * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
69         use it to compute offsets.
70         (sparc32_collect_fpregset): Likewise.
71         (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
72         * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
73         down into handler.
74         (fill_fpregset): Likewise.
75         * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
76         Likewise.
77         (sparc64_linux_collect_core_fpregset): Likewise.
78         * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
79         * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
80         use it to compute offsets.
81         (sparc64_collect_fpregset): Likewise.
82         (sparc64_bsd_fpregset): Define.
83         * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
84         sparc64_bsd_fpregset down into handler.
85         (sparc64fbsd_collect_fpregset): Likewise.
86         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
87         and pass sparc{32,64}_bsd_fpregset down into handler.
88         (sparc64nbsd_collect_fpregset): Likewise.
89         * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
90         sparc64_bsd_fpregset down into handler.
91         * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
92         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
93         to sparc32_bsd_fpregset.
94         * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
95         sparc32_bsd_fpregset down into sparc32_supply_fpregset.
96         (sparc32nbsd_supply_fpregset): Likewise.
97
98 2012-11-21  Tom Tromey  <tromey@redhat.com>
99
100         * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
101         field.
102         (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
103         Remove.
104         * c-typeprint.c (c_type_print_base): Update.
105
106 2012-11-21  Yao Qi  <yao@codesourcery.com>
107
108         PR tdep/7438
109         * gdbarch.sh (smash_text_address): Remove.
110         * gdbarch.c, gdbarch.h: Regenerate.
111         * arm-tdep.c (arm_smash_text_address): Remove.
112         (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
113         * hppa-tdep.c (hppa_smash_text_address): Remove.
114         (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
115         (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
116         Caller update.
117         * coffread.c (coff_symtab_read): Caller update.
118         * dbxread.c (process_one_symbol): Likewise.
119         * elfread.c (record_minimal_symbol): Likewise.
120         * somread.c (som_symtab_read): Likewise.
121
122 2012-11-20  Pierre Muller  <muller@sourceware.org>
123
124         ARI fixes: sprintf rule.
125         Replace sprintf function calls for char arrays by
126         calls to xsnprintf calls.
127         * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
128         (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
129         (arm_neon_quad_read, arm_pseudo_read): Ditto.
130         (arm_neon_quad_write, arm_pseudo_write): Ditto.
131         * breakpoint.c (condition_completer): Ditto.
132         (create_tracepoint_from_upload): Ditto.
133         * dwarf2read.c (file_full_name): Ditto.
134         * gcore.c (gcore_command): Ditto.
135         * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
136         * go32-nat.c (go32_sysinfo): Ditto.
137         * interps.c (interp_set): Ditto.
138         * m32c-tdep.c (make_types): Ditto.
139         * ppc-linux-nat.c (fetch_register, store_register): Ditto.
140         * remote-m32r-sdi.c (m32r_open): Ditto.
141         * sol-thread.c (td_err_string): Ditto.
142         (td_state_string, solaris_pid_to_str): Ditto.
143         * symtab.c (gdb_mangle_name): Ditto.
144         * cli/cli-script.c (execute_control_command): Ditto.
145         (define_command, document_command): Ditto.
146         * tui/tui-io.c (tui_rl_display_match_list): Ditto.
147         * tui/tui-stack.c (tui_make_status_line): Ditto.
148         * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
149
150 2012-11-20  Mike Frysinger  <vapier@gentoo.org>
151
152         * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
153         it when looking at ptr->func.
154         * command.h (complete_on_cmdlist): Add a fourth arg.
155         * completer.c (complete_line_internal): Add local ignore_help_classes,
156         and set it to 1 when reason is not handle_help.  Pass this down to
157         lookup_cmd_1 and complete_on_cmdlist.
158
159 2012-11-20  Tom Tromey  <tromey@redhat.com>
160
161         * completer.c (count_struct_fields): Remove.
162         (expression_completer): Don't call count_struct_fields.
163
164 2012-11-20  Pedro Alves  <palves@redhat.com>
165
166         * annotate.c (breakpoints_changed): Rename to ...
167         (annotate_breakpoints_changed): ... this.
168         (annotate_stopped, breakpoint_changed): Adjust caller.
169         * annotate.h (breakpoints_changed): Rename to ...
170         (annotate_breakpoints_changed): ... this.
171         * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
172         (do_map_commands_command, init_raw_breakpoint, clear_command)
173         (set_ignore_count, enable_breakpoint_disp): Adjust callers.
174
175 2012-11-20  David S. Miller  <davem@davemloft.net>
176
177         * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
178         (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
179         sysconf.
180         (get_cores_used_by_process): Update comment.
181
182 2012-11-20  Yao Qi  <yao@codesourcery.com>
183
184         * objfiles.c (init_entry_point_info): Remove trailing spaces.
185
186 2012-11-20  Yao Qi  <yao@codesourcery.com>
187
188         * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
189         to deprecated_context_hook.
190
191 2012-11-19  Yao Qi  <yao@codesourcery.com>
192
193         * infrun.c (infwait_state): Add static.
194
195 2012-11-16  Keith Seitz  <keiths@redhat.com>
196
197         PR c++/13615
198         * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
199         parameter and pass it to lookup_symbol_file.
200         (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
201         to search base classes.
202         (cp_lookup_symbol_namespace): Likewise.
203         (lookup_namespace_scope): Likewise.
204         (lookup_symbol_file): Add SEARCH parameter.
205         If SEARCH is non-zero and no symbol is found, lookup the class
206         and call cp_lookup_nested_symbol.
207         (find_symbol_in_baseclass): New function.
208         (cp_lookup_nested_symbol): Do not let
209         cp_lookup_symbol_in_namespace search through base classes.
210         Do that later when there is no global symbol match.
211
212 2012-11-16  Doug Evans  <dje@google.com>
213
214         * main.c (gdb_datadir_provided): New static global.
215         (get_init_files): If --data-directory is provided,
216         and SYSTEM_GDBINIT lives in data-directory, look for it there.
217         * NEWS: Mention it.
218
219 2012-11-15  Pierre Muller  <muller@sourceware.org>
220
221         ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
222         * gdb_stat.h: Delete. Moved to common directory.
223         * common/gdb_stat.h: New file.
224         * gdb_wait.h: Delete. Moved to common directory.
225         * common/gdb_wait.h: New file.
226         * Makefile.in (H_FILES_NO_SRC): Adapt to new header
227         location.
228         * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
229         location.
230         (stat.h rule): Adapt to new gdb_stat.h location.
231         * common/linux-osdata.c: Include "gdb_stat.h" header instead of
232         <sys/stat.h> header.
233         * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
234         <sys/wait.h> header.
235
236 2012-11-15  Pierre Muller  <muller@sourceware.org>
237
238         * configure.ac (AC_HEADER_STAT): Remove.
239         * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
240         and corresponding code.
241         * configure: Regenerate.
242         * config.in: Regenerate.
243
244 2012-11-15  Pierre Muller  <muller@sourceware.org>
245
246         ARI xasprintf rule fixes.
247         * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
248         instead of xasprintf.
249         (open_and_init_dwp_file): Ditto.
250
251 2012-11-14  Luis Machado  <lgustavo@codesourcery.com>
252
253         * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
254         target types.
255
256 2012-11-14  Tom Tromey  <tromey@redhat.com>
257
258         * configure, config.in: Rebuild.
259         * configure.ac: Don't check for ctype.h, time.h.
260         * expprint.c: Don't use HAVE_CTYPE_H.
261
262 2012-11-13  Tom Tromey  <tromey@redhat.com>
263
264         * gdbarch.h, gdbarch.c: Rebuild.
265         * gdbarch.sh (set_target_gdbarch): Rename from
266         deprecated_target_gdbarch_select_hack.
267         * arch-utils.c (gdbarch_update_p): Update.
268         (set_gdbarch_from_file): Update.
269
270 2012-11-14  Pierre Muller  <muller@sourceware.org>
271
272         * MAINTAINERS (Responsible Maintainers/misc): Add myself
273         as responsible of contrib/ari directory.
274
275 2012-11-14  Daniel Jacobowitz  <dan@codesourcery.com>
276             Yao Qi  <yao@codesourcery.com>
277
278         * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
279         bit of EXC_RETURN.
280         (arm_m_exception_cache, arm_m_exception_this_id)
281         (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
282         (arm_m_exception_unwind): New.
283         (arm_gdbarch_init): Register arm_m_exception_unwind.
284
285 2012-11-13  Giuseppe Montalto  <giuseppe.montalto@st.com>
286
287         * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
288         parameter COUNT, for pattern filling of memory regions.
289         * NEWS: Mention it.
290
291 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
292
293         * disasm.h (DISASSEMBLY_FILENAME): New macro.
294         * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
295         to print_source_lines ().
296         * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
297         flag.
298         * source.c (print_source_lines_base): Prefix source line with
299         filename if PRINT_SOURCE_LINES_FILENAME flag is set.
300
301 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
302
303         * symtab.h (print_source_lines_flags): New enum.
304         * source.c (print_source_lines_base): Change noerror to flags.
305         (print_source_lines): Change noerror to flags.
306
307 2012-11-13  Pierre Muller  <muller@sourceware.org>
308
309         ARI fixes: Avoid sprintf function use rule.
310         * charset.c (convert_between_encodings): Use xsnprintf.
311         * cli-out.c (cli_field_int): Likewise.
312         * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
313         * expprint.c (op_name_standard): Likewise.
314         * frv-tdep.c (set_variant_num_gprs): Likewise.
315         (set_variant_num_fprs): Likewise.
316         * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
317         * nto-tdep.c (nto_find_and_open_solib): Likewise.
318         (nto_init_solib_absolute_prefix): Likewise.
319         * source.c (init_source_path): Likewise.
320         (print_source_lines_base): Likewise.
321         * valprint.c (print_wchar): Likewise.
322         * mi/mi-out.c (mi_field_int): Likewise.
323         windows-nat.c (windows_pid_to_exec_file): Likewise.
324         (windows_create_inferior): Likewise.
325         (_initialize_check_for_gdb_ini): Likewise.
326
327 2012-11-12  Joel Brobecker  <brobecker@adacore.com>
328
329         * frame.h (deprecated_frame_register_read): Renames
330         frame_register_read.
331         * frame.c (deprecated_frame_register_read): Renames
332         frame_register_read.  Update all callers.
333         * i386-tdep.c: Update all callers of frame_register_read.
334         * infcmd.c: Likewise.
335         * jit.c: Likewise.
336         * mips-tdep.c: Likewise.
337         * mt-tdep.c: Likewise.
338         * sh64-tdep.c: Likewise.
339
340 2012-11-12  Joel Brobecker  <brobecker@adacore.com>
341
342         * frame.h (frame_register_read): Remove FIXME comment.
343         * frame.c (frame_register_read): Add suggestion explaining
344         which function to use in place of this one.
345
346 2012-11-12  Tom Tromey  <tromey@redhat.com>
347
348         * python/python.c (start_type_printers): Initialize 'result_obj'.
349
350 2012-11-12  Tom Tromey  <tromey@redhat.com>
351
352         * NEWS: Update.
353         * data-directory/Makefile.in (PYTHON_FILES): Add
354         type_printers.py.
355         * python/lib/gdb/command/type_printers.py: New file.
356         * python/lib/gdb/command/types.py (TypePrinter): New class.
357         (_get_some_type_recognizers, get_type_recognizers,
358         apply_type_recognizers, register_type_printer): New
359         functions.
360         * python/py-objfile.c (objfile_object) <type_printers>: New
361         field.
362         (objfpy_dealloc): Decref new field.
363         (objfpy_new): Set new field.
364         (objfpy_get_type_printers, objfpy_set_type_printers): New
365         functions.
366         (objfile_to_objfile_object): Set new field.
367         (objfile_getset): Add "type_printers".
368         * python/py-progspace.c (pspace_object) <type_printers>: New
369         field.
370         (pspy_dealloc): Decref new field.
371         (pspy_new): Set new field.
372         (pspy_get_type_printers, pspy_set_type_printers): New functions.
373         (pspace_to_pspace_object): Set new field.
374         (pspace_getset): Add "type_printers".
375         * python/python.c (start_type_printers, apply_type_printers,
376         free_type_printers): New functions.
377         (_initialize_python): Set gdb.type_printers.
378         * python/python.h (start_type_printers, apply_type_printers,
379         free_type_printers): Declare.
380         * typeprint.c (type_print_raw_options, default_ptype_flags):
381         Update for new fields.
382         (do_free_global_table, create_global_typedef_table,
383         find_global_typedef): New functions.
384         (find_typedef_in_hash): Use find_global_typedef.
385         (whatis_exp): Use create_global_typedef_table.  Change cleanup
386         handling.
387         * typeprint.h (struct type_print_options) <global_typedefs,
388         global_printers>: New fields.
389
390 2012-11-12  Tom Tromey  <tromey@redhat.com>
391
392         * c-typeprint.c (find_typedef_for_canonicalize,
393         print_name_maybe_canonical): New functions.
394         (c_print_type): Look up type name.
395         (cp_type_print_derivation_info): Add flags argument.  Use
396         print_name_maybe_canonical.
397         (cp_type_print_method_args): Add wrapping.
398         (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
399         (c_type_print_template_args): New function.
400         (c_type_print_base): Change wrapping.  Use
401         print_name_maybe_canonical.
402         <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
403         type name lookups.
404         * gdbtypes.c (types_equal): No longer static.
405         * gdbtypes.h (types_equal): Declare.
406         * typeprint.c (type_print_raw_options, default_ptype_flags):
407         Update.
408         (struct typedef_hash_table): New.
409         (hash_typedef_field, eq_typedef_field,
410         recursively_update_typedef_hash, add_template_parameters,
411         create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
412         make_cleanup_free_typedef_hash, copy_typedef_hash_element,
413         copy_typedef_hash, find_typedef_in_hash): New functions.
414         * typeprint.h (struct type_print_options) <local_typedefs>:
415         New field.
416         (recursively_update_typedef_hash, add_template_parameters,
417         create_typedef_hash, free_typedef_hash,
418         make_cleanup_free_typedef_hash, copy_typedef_hash,
419         find_typedef_in_hash): Declare.
420
421 2012-11-12  Tom Tromey  <tromey@redhat.com>
422
423         * cp-support.c (inspect_type,
424         replace_typedefs_qualified_name, replace_typedefs): Add
425         finder, data arguments.  Call as needed.
426         (cp_canonicalize_string_full): New function.
427         (cp_canonicalize_string_no_typedefs): Rewrite.
428         * cp-support.h (canonicalization_ftype): New typedef.
429         (cp_canonicalize_string_full): Declare.
430
431 2012-11-12  Tom Tromey  <tromey@redhat.com>
432
433         * NEWS: Update.
434         * c-typeprint.c (c_type_print_base): Handle print_method and
435         print_typedefs flags.
436         * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
437         * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
438         options.
439         * typeprint.c (type_print_raw_options, default_ptype_flags):
440         Update for new field.s
441         (whatis_exp): Parse flags.  Use LA_PRINT_TYPE.
442         (setprinttypelist, showprinttypelist, print_methods,
443         print_typedefs): New globals.
444         (set_print_type, show_print_type, set_print_type_methods,
445         show_print_type_methods, set_print_type_typedefs,
446         show_print_type_typedefs): New functions.
447         (_initialize_typeprint): Update documentation.  Add "print
448         type methods" and "print type typedefs" parameters.
449         * typeprint.h (struct type_print_options) <print_methods,
450         print_typedefs>: New fields.
451
452 2012-11-12  Tom Tromey  <tromey@redhat.com>
453
454         * c-typeprint.c (cp_type_print_method_args): Add flags
455         argument.  Call c_print_type, not type_print.
456         (c_type_print_base): Call c_print_type, not type_print.
457         Update.
458
459 2012-11-12  Tom Tromey  <tromey@redhat.com>
460
461         * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
462         to type-printing functions.
463         * ada-lang.h (ada_print_type): Add argument.
464         * ada-typeprint.c (print_array_type, print_variant_clauses,
465         print_variant_part, print_selected_record_field_types,
466         print_record_field_types, print_unchecked_union_type,
467         print_func_type, ada_print_type): Add flags argument.
468         (ada_print_typedef): Update.
469         * c-exp.y (OPERATOR conversion_type_id): Update.
470         * c-lang.h (c_print_type, c_type_print_base): Update.
471         * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
472         c_type_print_modifier, c_type_print_args,
473         c_type_print_varspec_suffix, c_type_print_base): Add flags
474         argument.
475         * cp-valprint.c (cp_print_class_member): Update.
476         * dwarf2read.c (dwarf2_compute_name): Update.
477         * f-lang.h (f_print_type): Add argument.
478         * f-typeprint.c (f_print_type): Add flags argument.
479         * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
480         * go-lang.h (go_print_type): Add argument.
481         * go-typeprint.c (go_print_type): Add flags argument.
482         * jv-lang.h (java_print_type): Add argument.
483         * jv-typeprint.c (java_type_print_base, java_print_type): Add
484         flags argument.
485         * language.c (unk_lang_print_type): Add flags argument.
486         * language.h (struct language_defn) <la_print_type>: Add flags
487         argument.
488         (LA_PRINT_TYPE): Likewise.
489         * m2-lang.h (m2_print_type): Add argument.
490         * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
491         m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
492         m2_unbounded_array, m2_record_fields): Add flags argument.
493         * p-lang.h (pascal_print_type, pascal_type_print_base,
494         pascal_type_print_varspec_prefix): Add argument.
495         * p-typeprint.c (pascal_print_type,
496         pascal_type_print_varspec_prefix, pascal_print_func_args,
497         pascal_type_print_varspec_suffix, pascal_type_print_base): Add
498         flags argument.
499         * symmisc.c (print_symbol): Update.
500         * typeprint.c (type_print_raw_options, default_ptype_flags):
501         New globals.
502         (type_print): Update.
503         * typeprint.h (struct type_print_options): New.
504         (type_print_raw_options): Declare.
505         (c_type_print_varspec_suffix, c_type_print_args): Add argument.
506
507 2012-11-10  Keith Seitz  <keiths@redhat.com>
508
509         * breakpoint.c (clear_command): Add cleanup for
510         sals.sals if an argument is given.
511
512         * linespec.c (parse_linespec): Do cleanups after
513         parsing a convenience variable.
514
515 2012-11-10  Keith Seitz  <keiths@redhat.com>
516
517         PR gdb/14288
518         * c-valprint.c (c_val_print): For character arrays
519         with "print null" option on, print ellipses if
520         the output is truncated and the next character is not \000.
521         * valprint.c (MAX_WCHARS): Define.
522         (WCHAR_BUFLEN): Likewise.
523         (WCHAR_BUFLEN_MAX): Likewise.
524         (struct converted_character): New structure.
525         (count_next_character): New function.
526         (print_converted_chars_to_obstack): New function.
527         (generic_printstr): Rewrite using count_next_character
528         and print_converted_chars_to_obstack.
529
530 2012-11-10  Stephane Carrez  <Stephane.Carrez@gmail.com>
531
532         * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
533         while executing the gdb command.
534         (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
535         are called from prompt_for_continue.
536         * tui/tui-io.c (tui_redisplay_readline): Likewise.
537
538 2012-11-10  Stephane Carrez  <Stephane.Carrez@gmail.com>
539
540         PR tui/9584
541
542         * tui/tui.c (tui_rl_command_key): Do not call execute_command
543         but insert the command to execute in readline's buffer.
544
545 2012-11-09  Tom Tromey  <tromey@redhat.com>
546
547         * gdbarch.sh (target_gdbarch): Remove macro.
548         (get_target_gdbarch): Rename to target_gdbarch.
549         * gdbarch.c, gdbarch.h: Rebuild.
550         * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
551         arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
552         darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
553         filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
554         ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
555         linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
556         mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
557         mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
558         nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
559         procfs.c, progspace.c, ravenscar-thread.c, record.c,
560         remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
561         rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
562         solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
563         solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
564         solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
565         spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
566         target-descriptions.c, target.c, target.h, tracepoint.c,
567         windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
568         common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
569         python/py-inferior.c, python/python.c: Update.
570
571 2012-11-09  Andrew Burgess  <aburgess@broadcom.com>
572
573         * source.c (print_source_lines_base): Add fullname field giving
574         full path to file in mi output.
575         * NEWS: Mention the new fullname field.
576
577 2012-11-09  Yao Qi  <yao@codesourcery.com>
578
579         * NEWS: Mention the fix to the ambiguity of 'fo' command.
580
581 2012-11-09  Pedro Alves  <palves@redhat.com>
582
583         PR gdb/14306
584
585         * infrun.c: Include target-descriptions.h.
586         (follow_exec): Fetch new target description.
587
588 2012-11-09  Yao Qi  <yao@codesourcery.com>
589
590         * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
591         0x8d (lea).
592
593 2012-11-09  Yao Qi  <yao@codesourcery.com>
594
595         * breakpoint.c: Declare set_tracepoint_count.
596         (install_breakpoint): Call set_tracepoint_count if B is a
597         tracepoint.
598         (trace_command): Don't call set_tracepoint_count.  Re-indent.
599         (strace_command, ftrace_command):
600         (create_tracepoint_from_upload): Likewise.
601
602 2012-11-09  Pedro Alves  <palves@redhat.com>
603
604         * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
605         (get_target_gdbarch) <gdbarch.h>: New function.
606         (startup_gdbarch) <gdbarch.h>: Declare.
607         <gdbarch.c> (target_gdbarch): Delete.
608         <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
609         current inferior's gdbarch.
610         <gdbarch.c> (get_target_gdbarch): New function.
611         * inferior.c: Include target-descriptions.h.
612         (free_inferior): Free target description info.
613         (add_inferior_with_spaces): Set the inferior's initial
614         architecture.
615         (clone_inferior_command): Copy the original inferior's target
616         description if it was user specified.
617         (initialize_inferiors): Add comment.
618         * inferior.h (struct target_desc_info): Forward declare.
619         (struct inferior) <gdbarch>: New field.
620         * linux-nat.c: Include target-descriptions.h.
621         (linux_child_follow_fork): Copy the parent's architecture and
622         target description to the child.
623         * target-descriptions.c: Include inferior.h.
624         (struct target_desc_info): New structure, holding the equivalents
625         of ...
626         (target_desc_fetched, current_target_desc)
627         (target_description_filename): ... these removed globals.
628         (get_tdesc_info, target_desc_info_from_user_p)
629         (copy_inferior_target_desc_info, target_desc_info_free): New.
630         (target_desc_fetched, current_target_desc)
631         (target_description_filename): Reimplemented as convenience
632         macros.
633         (tdesc_filename_cmd_string): New global.
634         (set_tdesc_filename_cmd): Copy the string manipulated by the "set
635         tdescs filename ..." commands to the per-inferior equivalent.
636         (show_tdesc_filename_cmd): Get the value to show from the
637         per-inferior description filename.
638         (_initilize_target_descriptions): Change the "set/show tdesc
639         filename" commands' variable.
640         * target-descriptions.h (struct target_desc, struct target_desc_info)
641         (struct inferior): Forward declare.
642         (target_find_description, target_clear_description)
643         (target_current_description): Adjust comments.
644         (copy_inferior_target_desc_info, target_desc_info_free)
645         (target_desc_info_from_user_p). Declare.
646
647 2012-11-08  Stephane Carrez  <Stephane.Carrez@gmail.com>
648
649         * tui/tui-hooks.c (tui_about_to_proceed): New function.
650         (tui_target_wait_hook): Remove.
651         (tui_install_hooks): Install the about_to_proceed observer.
652         (tui_remove_hooks): And remove it here.
653
654 2012-11-08  Tom Tromey  <tromey@redhat.com>
655
656         * linux-tdep.c (linux_make_siginfo_note): New function.
657         (linux_make_corefile_notes): Use it.
658         * corelow.c (get_core_siginfo): New function.
659         (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
660
661 2012-11-08  Tom Tromey  <tromey@redhat.com>
662
663         PR gdb/14704:
664         * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
665         (zlib_decompress_section): Remove.
666         (gdb_bfd_map_section): Only check for compressed section
667         in mmap case.  Use bfd_get_full_section_contents.
668         * osabi.c (check_note): Add 'sectsize' argument.  Read
669         section data.
670         (generic_elf_osabi_sniff_abi_tag_sections): Don't read
671         section data.  Update for check_note change.
672         * xcoffread.c (xcoff_initial_scan): Use
673         bfd_get_full_section_contents.
674         * py-auto-load.c (auto_load_section_scripts): Use
675         bfd_get_full_section_contents.
676         * contrib/cc-with-tweaks.sh: Add -Z option.
677
678 2012-11-08  Tom Tromey  <tromey@redhat.com>
679
680         * python/py-bpevent.c: Include defs.h.
681         * python/py-continueevent.c: Include defs.h.
682         * python/py-event.c: Include defs.h.
683         * python/py-event.h: Don't include defs.h.
684         * python/py-events.h: Don't include defs.h.
685         * python/py-evts.c: Include defs.h.
686         * python/py-exitedevent.c: Include defs.h.
687         * python/py-newobjfileevent.c: Include defs.h.
688         * python/py-signalevent.c: Include defs.h.
689         * python/py-stopevent.c: Include defs.h.
690         * python/py-threadevent.c: Include defs.h.
691
692 2012-11-08  Pierre Muller  <muller@sourceware.org>
693
694         * update-web-ari.sh (print_heading): Add number of files
695         checked.
696         (nb_files): New variable counting the number of sources
697         files found by gdb_find.sh script.
698         (debug_awk): New variable to allow extra debug output.
699         (indexes): Add more information if DEBUG_AWK is set.
700
701 2012-11-08  Edjunior Machado  <emachado@linux.vnet.ibm.com>
702
703         * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
704         ppc64_standard_linkage3): Mark ld r11 instructions as optional,
705         following the change in PLT call stubs on linker.
706
707 2012-11-08  Pierre Muller  <muller@sourceware.org>
708
709         * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
710         as default language.
711         (AWK): Use = instead of == for sh test to avoid warning.
712         (Linux rule): Correct [:digit] into [[:digit:]].
713         (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
714         (vasprintf rule): Adapt to common subdirectory moves.
715         (xasprintf rule): Idem.
716         (xvasprintf rule): Idem.
717         (var_boolean rule): Accept occurence in == or != test.
718
719         * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
720
721 2012-11-08  Stephane Carrez  <Stephane.Carrez@gmail.com>
722
723         * tui/tui-hooks.c (tui_inferior_exit): New function.
724         (tui_detach_hook): Remove.
725         (tui_install_hooks): Install the inferior exit observer.
726         (tui_remove_hooks): Remove it.
727
728 2012-11-08  Yao Qi  <yao@codesourcery.com>
729
730         PR gdb/14777.
731         * source.c (_initialize_source): Call add_com_alias to abbreviate
732         'forward-search' as 'fo'.
733
734 2012-11-07  Pedro Alves  <palves@redhat.com>
735
736         * arm-tdep.c: Make defs.h be the first include.
737         * coff-pe-read.c: Ditto.
738         * gnu-nat.c: Ditto.
739         * go32-nat.c: Ditto.
740         * i386-nat.c: Ditto.
741         * ppcnbsd-nat.c: Ditto.
742         * ada-varobj.h: Don't include defs.h.
743         * i386-darwin-tdep.h: Ditto.
744         * i386-nat.h: Ditto.
745
746 2012-11-07  Pedro Alves  <palves@redhat.com>
747
748         * MAINTAINERS: New FSF-appointed maintainers replace the Steering
749         Committee.
750
751 2012-11-07  Pierre Muller  <muller@sourceware.org>
752
753         * common/linux-osdata.c (dirent.h): ARI fix: Remove.
754         File already uses "gdb_dirent.h" header.
755
756 2012-11-07  Yao Qi  <yao@codesourcery.com>
757
758         * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
759         tracepoint_count'.
760
761 2012-11-06  Tom Tromey  <tromey@redhat.com>
762
763         * target.h (inferior_has_forked, inferior_has_vforked)
764         (inferior_has_execd, inferior_has_called_syscall): Remove
765         declarations.
766
767 2012-11-06  Pierre Muller  <muller@sourceware.org>
768
769         * remote.c (remote_insert_hw_breakpoint): ARI fix,
770         add missing internalization markup.
771
772 2012-11-06  Pedro Alves  <palves@redhat.com>
773
774         PR gdb/14810
775
776         * breakpoint.c (bpstat_stop_status): Skip disabled locations.
777
778 2012-11-06  Pierre Muller  <muller@sourceware.org>
779
780         * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
781         is not executable.
782
783 2012-11-05  Joel Brobecker  <brobecker@adacore.com>
784
785         * gnulib/update-gnulib.sh: New script.
786
787 2012-11-05  Stephane Carrez  <Stephane.Carrez@gmail.com>
788
789         * MAINTAINERS: Update my email address.
790
791 2012-11-05  Tom Tromey  <tromey@redhat.com>
792
793         * frame.c (put_frame_register): Don't use temporary buffer.
794
795 2012-11-05  Pedro Alves  <palves@redhat.com>
796
797         * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
798         child.  Clear 'pending_detach'.
799         * infrun.c (handle_vfork_child_exec_or_exit): Clear
800         'pending_detach' in the vfork parent.
801
802 2012-11-05  Doug Evans  <dje@google.com>
803
804         Add support for DWP files.  http://gcc.gnu.org/wiki/DebugFissionDWP
805         * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
806         * dwarf2read.c: #include "elf-bfd.h".
807         (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
808         (dwop_section_names): Renamed from dwo_section names.  All uses
809         updated.  Add entries for .debug_cu_index, .debug_tu_index.
810         (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
811         All uses updated.
812         (struct dwp_sections): New type.
813         (struct virtual_dwo_sections): New type.
814         (struct dwp_hash_table): New type.
815         (struct dwp_file): New type.
816         (init_cutu_and_read_dies): Ensure DWO info/types section has been
817         read in.  Handle DWOs coming from DWP files.
818         (lookup_dwo_file_slot): New function.
819         (dwarf2_locate_dwo_sections): Move definition closer to use.
820         (create_dwo_debug_info_hash_table_reader): Renamed from
821         create_debug_info_hash_table_reader.  All callers updated.
822         (create_dwo_debug_info_hash_table): Renamed from
823         create_debug_info_hash_table.  All callers updated.
824         (create_dwp_hash_table): New function.
825         (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
826         (lookup_dwo_in_dwp): New function.
827         (try_open_dwop_file): Renamed from try_open_dwo_file.  New parameter
828         is_dwp.  All callers updated.
829         (open_dwop_file): Renamed from open_dwo_file.  All callers updated.
830         (open_and_init_dwo_file): Renamed from init_dwo_file.
831         All callers updated.
832         (lookup_dwo_file): Delete.
833         (dwarf2_locate_dwp_sections): New function.
834         (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
835         (allocate_dwp_loaded_cutus_table): New function.
836         (open_and_init_dwp_file): New function.
837         (lookup_dwo_cutu): New function.
838         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
839
840 2012-11-03  Yao Qi  <yao@codesourcery.com>
841
842         Fix PR gdb/14617.
843         * breakpoint.c (trace_pass_set_count): Call
844         observer_notify_breakpoint_modified instead of
845         observer_notify_tracepoint_modified.
846         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
847
848 2012-11-02  Tom Tromey  <tromey@redhat.com>
849
850         * breakpoint.c (catch_syscall_completer): Pass 'word' as second
851         argument to complete_on_enum.
852
853 2012-11-02  Tom Tromey  <tromey@redhat.com>
854
855         * configure: Rebuild.
856         * configure.ac (build_warnings): Add -Wempty-body.
857         * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
858         * remote.c (handle_notification): Use braces for empty 'else' body.
859         * s390-tdep.c (s390_analyze_prologue): Use braces for empty
860         'else' body.
861         * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
862         'else' body.
863         * solib-som.c (som_relocate_section_addresses): Use braces
864         for empty 'else' body.
865         * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
866         (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
867
868 2012-11-02  Pedro Alves  <palves@redhat.com>
869
870         PR gdb/14766
871
872         * infrun.c (handle_inferior_event)
873         <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
874         null_ptid before handling a vfork child exec or exit.  Switch to
875         the event ptid afterwards.
876
877 2012-11-02  Yao Qi  <yao@codesourcery.com>
878
879         * std-operator.def: Remove OP_LABELED.
880         * eval.c: Remove the declaration of 'get_label'.
881         (get_label): Remove.
882         (evaluate_struct_tuple): Remove code handling OP_LABELED.
883         Update comment.
884         Remove local variable 'variantno' and related code.
885         Replace 'substruct_type' with 'struct_type'.  Replace 'subfieldno'
886         with 'fieldno'.
887         * expprint.c (print_subexp_standard): Likewise.
888         (dump_subexp_body_standard): Likewise.
889         * parse.c (operator_length_standard): Likewise.
890
891 2012-11-01  Pierre Muller  <muller@ics.u-strasbg.fr>
892
893         Incorporate ARI web page generator into GDB sources.
894         * contrib/ari/create-web-ari-in-src.sh: New file.
895         * contrib/ari/gdb_ari.sh: New file.
896         * contrib/ari/gdb_find.sh: New file.
897         * contrib/ari/update-web-ari.sh: New file.
898
899 2012-10-31  Tom Tromey  <tromey@redhat.com>
900
901         * gdbarch.c: Rebuild.
902         * gdbarch.sh: Remove references to gdbarch_swap.
903         * corelow.c (core_open): Remove obsolete comment.
904
905 2012-10-31  Andrew Burgess  <aburgess@broadcom.com>
906
907         PR cli/14772
908         * c-typeprint.c (c_print_type): Don't print a space for vector
909         types, this is handled within the suffix.
910         (c_type_print_varspec_suffix): Add a space to vector suffix.
911
912 2012-10-26  Pedro Alves  <palves@redhat.com>
913
914         * amd64-tdep.c (amd64_relocate_instruction): Use
915         store_unsigned_integer instead of memcpy.
916         * i386-tdep.c (i386_relocate_instruction): Ditto.
917
918 2012-10-26  Pedro Alves  <palves@redhat.com>
919
920         * infrun.c (handle_inferior_event): Merge handling of
921         TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
922         switch case.
923
924 2012-10-26  Pedro Alves  <palves@redhat.com>
925
926         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
927         Remove comment.
928
929 2012-10-26  Pedro Alves  <palves@redhat.com>
930
931         * target.c (target_waitstatus_to_string): Handle
932         TARGET_WAITKIND_VFORK_DONE.
933
934 2012-10-26  Pedro Alves  <palves@redhat.com>
935
936         * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
937         as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
938
939 2012-10-24  Tristan Gingold  <gingold@adacore.com>
940
941         * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
942         Add comments.
943
944 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
945
946         * ravenscar-thread.c (ravenscar_wait): Only update the list
947         of threads and inferior_ptid if the inferior is still alive.
948
949 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
950
951         * ada-lang.c (is_known_support_routine): Use lbasename when
952         matching the symtab's filename against
953         known_runtime_file_name_patterns.
954
955 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
956
957         * ada-lang.c (ada_same_array_size_p): New function.
958         (ada_promote_array_of_integrals): New function.
959         (coerce_for_assign): Add handling of arrays where the elements
960         are integrals of a smaller size than the size of the target
961         array element type.
962
963 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
964
965         * doublest.c (convert_doublest_to_floatformat): Fix comparison
966         against maximum exponent value.
967
968 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
969
970         * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
971         "unwind-seh.c".
972
973 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
974
975         * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
976         strip typedef layer when computing the fixed type's field type,
977         only when computing its size.
978
979 2012-10-24  Mark Kettenis  <kettenis@gnu.org>
980
981         PR gdb/12783
982         * i386-tdep.c (i386_return_value): Handle complex double and long
983         double.
984
985 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
986
987         * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
988         New local variable args_len.
989         Quote the name of the executable when computing the command line.
990
991 2012-10-23  Mark Kettenis  <kettenis@gnu.org>
992
993         PR gdb/12796
994         PR gdb/12798
995         PR gdb/12800
996         * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
997         AMD64_FTAG_REGNUM.
998         * amd64-tdep.c (amd64_classify): Classify complex types.
999         (amd64_return_value): Handle the COMPLEX_X87 class.
1000
1001 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
1002
1003         * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1004         (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1005
1006 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
1007
1008         * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1009         function.
1010         (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1011         to amd64_windows_auto_wide_charset.
1012
1013 2012-10-23  Yao Qi  <yao@codesourcery.com>
1014
1015         * event-top.c (mark_async_signal_handler_wrapper): Remove.
1016         * event-top.h: Remove its declaration.
1017         (async_request_quit): Call mark_async_signal_handler instead of
1018         mark_async_signal_handler_wrapper.
1019         (async_do_nothing, async_disconnect): Likewise.
1020         (async_stop_sig): Likewise.
1021         * remote.c (handle_remote_sigint): Likewise.
1022         (handle_remote_sigint_twice): Likewise.
1023
1024 2012-10-23  Yao Qi  <yao@codesourcery.com>
1025
1026         * event-top.c (sigint_token, sighup_token): Replace 'void *'
1027         with 'static struct async_signal_handler *'.
1028         (sighup_token, sigquit_token, sigstp_token): Likewise.
1029
1030 2012-10-22  Ali Anwar  <ali_anwar@codesourcery.com>
1031
1032         * gdbarch.sh (function_list): Use 'pstring' when printing
1033         a variable which could return NULL.
1034         * gdbarch.c: Regenerate.
1035
1036 2012-10-10  Joel Brobecker  <brobecker@adacore.com>
1037             Tom Tromey  <tromey@redhat.com>
1038
1039         * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1040         inneffective if condition by gdb assertion.  Add function
1041         description comment.
1042
1043 2012-10-19  Joel Brobecker  <brobecker@adacore.com>
1044
1045         * parser-defs.h (struct exp_descriptor): Document constraint
1046         on return value for "op_name" callbacks.
1047
1048 2012-10-18  Tom Tromey  <tromey@redhat.com>
1049
1050         * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1051         * symtab.c (iterate_over_some_symtabs): Constify.
1052         * source.h (symtab_to_fullname): Return 'const char *'.
1053         * source.c (symtab_to_fullname): Return 'const char *'.
1054         * python/py-symtab.c (stpy_fullname): Constify.
1055         * cli/cli-cmds.c (edit_command): Constify.
1056         * breakpoint.c (print_breakpoint_location)
1057         (update_static_tracepoint): Constify.
1058
1059 2012-10-18  Tom Tromey  <tromey@redhat.com>
1060
1061         * breakpoint.c (compare_breakpoints): Fix comparison.
1062
1063 2012-10-18  Tom Tromey  <tromey@redhat.com>
1064
1065         * valprint.c (generic_emit_char, generic_printstr): Pass size of
1066         gdb_wchar_t to convert_between_encodings.
1067
1068 2012-10-17  Yao Qi  <yao@codesourcery.com>
1069
1070         * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1071         more parameter 'inferior'.
1072         * corefile.c (write_memory_with_notification): Caller update.
1073
1074         * mi/mi-cmd-var.c: Include "mi-main.h".
1075         (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1076         to 1 and restore it later.
1077         * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1078         and "data-write-memory-bytes.
1079         * mi/mi-interp.c: Include objfiles.h.
1080         (mi_interpreter_init): Call observer_attach_memory_changed.
1081         (mi_memory_changed): New.
1082         * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1083         New field.
1084
1085         * NEWS: Mention new MI notification "memory-changed".
1086
1087 2012-10-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
1088
1089         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1090
1091 2012-10-15  Doug Evans  <dje@google.com>
1092
1093         New option -nh: inhibit loading of ~/.gdbinit.
1094         * NEWS: Mention -nh.
1095         * main.c (captured_main): Recognize and process -nh.
1096         (print_gdb_help): Mention -nh.
1097         * gdb.1: Mention -nh.  Remove erroneous docs on -nx behavior.
1098
1099 2012-10-15  H.J. Lu  <hongjiu.lu@intel.com>
1100
1101         PR backtrace/14646
1102         PR gdb/14647
1103         * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1104         pc_regnum_from_eax.
1105         * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1106         nor pc_regnum_from_eax.
1107         * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1108         nor pc_regnum_from_eax.
1109
1110 2012-10-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
1111
1112         Fix entry values resolving in inlined frames.
1113         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1114         gdbarch and caller_frame initialization later.  Skip INLINE_FRAME
1115         entries of FRAME.
1116
1117 2012-10-15  Joel Brobecker  <brobecker@adacore.com>
1118
1119         * configure.ac: Build with -DMS_WIN64 if building with Python
1120         enabled using GCC on amd64-windows.
1121         * configure: Regenerate.
1122
1123 2012-10-15  Tom Tromey  <tromey@redhat.com>
1124
1125         PR python/14635:
1126         * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1127         to Py_None.
1128
1129 2012-10-15  Tom Tromey  <tromey@redhat.com>
1130
1131         PR python/14634:
1132         * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1133
1134 2012-10-11  Andrew Burgess  <aburgess@broadcom.com>
1135
1136         * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1137         reset thread numbering back to 1.
1138
1139 2012-10-11  Doug Evans  <dje@google.com>
1140
1141         PR breakpoints/14643.
1142         * linespec.c (struct ls_parser): New member keyword_ok.
1143         (linespec_lexer_lex_string): Add comment.
1144         (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1145         for one.
1146         (parse_linespec): Set keyword_ok.
1147
1148 2012-10-10  Doug Evans  <dje@google.com>
1149
1150         * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1151         "0x" prefix on address in log message.
1152
1153         * dwarf2read.c (read_1_byte): Add const to buf parameter.
1154         (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1155         (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1156         (lookup_dwo_file): Add const to dwo_name parameter.
1157         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1158
1159 2012-10-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
1160
1161         Fix crash during stepping on ppc32.
1162         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1163         SYM.
1164
1165 2012-10-03  Doug Evans  <dje@google.com>
1166
1167         PR symtab/14601
1168         * buildsym.c (buildsym_init): Reset using_directives to NULL.
1169
1170 2012-10-02  Andrew Burgess  <aburgess@broadcom.com>
1171
1172         * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1173         output and use uint32_t not long to ensure 4 byte size.
1174
1175 2012-10-02  Joel Brobecker  <brobecker@adacore.com>
1176
1177         * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1178         unref'ed it.
1179
1180 2012-10-01  Andrew Burgess  <aburgess@broadcom.com>
1181
1182         * target.c (simple_search_memory): Include access length in
1183         warning message.
1184
1185 2012-09-28  Nathan Miller  <nathanm2@us.ibm.com>
1186             Edjunior Machado  <emachado@linux.vnet.ibm.com>
1187
1188         PR gdb/13989
1189         * solib.c (solib_find): Prevent GDB from loading native libraries when
1190         debugging a cross-target corefile.
1191
1192 2012-09-28  selven  <pcthegreat@gmail.com>
1193
1194         Make definition match declaration.
1195
1196         * regcache.c (regcache_register_status): Change return type to
1197         enum register_status.
1198
1199 2012-09-28  Yao Qi  <yao@codesourcery.com>
1200
1201         * mi/mi-main.c (mi_cmd_data_write_memory): Call
1202         write_memory_with_notification instead of write_memory.
1203         (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1204         instead of target_write_memory.
1205
1206 2012-09-28  Yao Qi  <yao@codesourcery.com>
1207
1208         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1209         when the length of content is not an even number.
1210
1211 2012-09-27  Tom Tromey  <tromey@redhat.com>
1212
1213         Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1214         * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1215
1216 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1217
1218         * sol-thread.c (sol_thread_fetch_registers)
1219         (sol_thread_store_registers): Delete commented out code.
1220
1221 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1222
1223         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1224         Move these functions to sparc-sol-thread.c.
1225         * sparc-sol-thread.c: New file.
1226         * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1227         sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1228         configurations.
1229         * configure: Regenerate.
1230
1231 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1232
1233         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1234         Remove commented-out code.
1235
1236 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1237
1238         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1239         Enable this code for sparc hosts only.
1240
1241 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1242
1243         * procfs.h (procfs_find_LDT_entry): Add declaration.
1244         * sol-thread.c (ps_lgetLDT): Delete local declaration of
1245         function procfs_find_LDT_entry.
1246
1247 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1248
1249         * procfs.c (proc_get_LDT_entry): Make static.
1250
1251 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1252
1253         * procfs.c (proc_find_memory_regions): Fix declaration.
1254
1255 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
1256
1257         * amd64-tdep.c (amd64_return_value): Revert previous change
1258         that used TYPE_LENGTH directly.
1259         * bfin-tdep.c (bfin_extract_return_value): Likewise.
1260         (bfin_store_return_value): Likewise.
1261         * cris-tdep.c (cris_store_return_value): Likewise.
1262         (cris_extract_return_value): Likewise.
1263         * h8300-tdep.c (h8300_extract_return_value): Likewise.
1264         * hppa-tdep.c (hppa64_return_value): Likewise.
1265         * lm32-tdep.c (lm32_store_return_value): Likewise.
1266         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1267         * spu-tdep.c (spu_value_from_register): Likewise.
1268         * vax-tdep.c (vax_return_value): Likewise.
1269
1270 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
1271
1272         * gdbtypes.c (lookup_array_range_type): Expand parameters
1273         LOW_BOUND and HIGH_BOUND to LONGEST.
1274         (lookup_string_range_type): Likewise.
1275         * gdbtypes.h (lookup_array_range_type): Likewise.
1276         (lookup_string_range_type): Likewise.
1277         * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1278         Expand HIGHBOUND to ssize_t.
1279         (value_string): Likewise.
1280         * value.h (value_cstring): Expand parameter LEN to ssize_t.
1281         (value_string): Likewise.
1282
1283 2012-09-27  Yao Qi  <yao@codesourcery.com>
1284
1285         PR breakpoints/13898
1286         * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1287         * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1288         per breakpoint type.
1289
1290 2012-09-26  Pierre Muller  <muller@ics.u-strasbg.fr>
1291
1292         * procfs.c: Add gdb_bfd header.
1293         * rs6000-nat.c: Likewise.
1294         * solib-pa64.c: Likewise.
1295         * spu-linux-nat.c: Likewise.
1296         * windows-nat.c: Likewise.
1297
1298 2012-09-26  Tom Tromey  <tromey@redhat.com>
1299
1300         * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1301
1302 2012-09-26  Tom Tromey  <tromey@redhat.com>
1303
1304         * dwarf2read.c (mark_common_block_symbol_computed): New function.
1305         (read_common_block): Handle child DIEs with
1306         DW_AT_data_member_location.
1307         (new_symbol_full): Add special case for common blocks.
1308
1309 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
1310             Tom Tromey  <tromey@redhat.com>
1311
1312         * dwarf2read.c (read_common_block): Rewrite.
1313         (new_symbol_full): Handle DW_TAG_common_block.
1314         * f-lang.c (head_common_list, find_common_for_function):
1315         Remove.
1316         * f-lang.h (struct common_entry, struct saved_f77_common,
1317         SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1318         COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1319         BLANK_COMMON_NAME_LOCAL): Remove.
1320         (struct common_block): New.
1321         * f-valprint.c (list_all_visible_commons): Remove.
1322         (info_common_command_for_block): New function.
1323         (info_common_command): Use it.
1324         * stack.c (iterate_over_block_locals): Special case for
1325         COMMON_BLOCK_DOMAIN.
1326         * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1327         constant.
1328         (struct general_symbol_info) <value.common_block>: New field.
1329         (SYMBOL_VALUE_COMMON_BLOCK): New define.
1330
1331 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
1332             Tom Tromey  <tromey@redhat.com>
1333
1334         * f-lang.c (allocate_saved_bf_node,
1335         allocate_saved_function_node, allocate_saved_f77_common_node,
1336         allocate_common_entry_node, tail_common_list, current_common,
1337         saved_bf_list, saved_bf_list_end, current_head_bf_list,
1338         tmp_bf_ptr, add_common_block, add_common_entry,
1339         find_first_common_named, patch_common_entries,
1340         patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1341         global_remote_debug, get_bf_for_fcn, saved_function_list,
1342         saved_function_list_end, clear_function_list, struct saved_fcn,
1343         struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1344         SAVED_BF, SAVED_BF_PTR): Remove.
1345         * f-lang.h (tail_common_list, current_common,
1346         UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1347         BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1348         DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1349         real_main_c_value): Remove.
1350         * f-valprint.c (there_is_a_visible_common_named): Remove.
1351
1352 2012-09-26  Andrew Burgess  <aburgess@broadcom.com>
1353
1354         * breakpoint.c (update_global_location_list): Ignore previous
1355         duplicate status of a breakpoint when starting a new scan for
1356         duplicate breakpoints.
1357
1358 2012-09-26  Karthik Bhat  <kv.bhat@samsung.com>
1359         PR breakpoints/14419
1360         * arm-tdep.c (arm_skip_prologue): Extending producer check to
1361         support LLVM compiler.
1362
1363 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1364
1365         * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
1366         * bfin-tdep.c (bfin_extract_return_value): Likewise.
1367         (bfin_store_return_value): Likewise.
1368         * cris-tdep.c (cris_store_return_value): Likewise.
1369         (cris_extract_return_value): Likewise.
1370         * h8300-tdep.c (h8300_extract_return_value): Likewise.
1371         * hppa-tdep.c (hppa64_return_value): Likewise.
1372         * lm32-tdep.c (lm32_store_return_value): Likewise.
1373         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1374         * spu-tdep.c (spu_value_from_register): Likewise.
1375         * vax-tdep.c (vax_return_value): Likewise.
1376
1377 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1378
1379         * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
1380         parameter LEN to ssize_t.
1381
1382 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1383
1384         * ada-valprint.c (ada_val_print_1): Eliminate single-use
1385         variable LEN.
1386         * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
1387         directly.
1388         (alpha_store_return_value): Likewise.
1389         * amd64-tdep.c (amd64_classify_aggregate): Likewise.
1390         (amd64_push_arguments): Likewise.
1391         * ax-gdb.c (gen_trace_static_fields): Likewise.
1392         (gen_traced_pop): Likewise.
1393         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1394         * breakpoint.c (update_watchpoint): Likewise.
1395         * findcmd.c (parse_find_args): Use local variable for type
1396         instead of length.
1397         * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
1398         * h8300-tdep.c (h8300h_extract_return_value): Likewise.
1399         (h8300_store_return_value): Likewise.
1400         * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1401         Use i386_darwin_arg_type_alignment directly.
1402         * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
1403         * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1404         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1405         (m68hc11_extract_return_value): Likewise.
1406         * mep-tdep.c (mep_push_dummy_call): Likewise.
1407         * printcmd.c (float_type_from_length): Likewise.
1408         * s390-tdep.c (s390_value_from_register): Likewise.
1409         * stack.c (read_frame_arg): Likewise.
1410         * tracepoint.c (encode_actions_1): Likewise.
1411         * valops.c (value_fetch_lazy): Use local variable for type
1412         instead of length.  Use TYPE_LENGTH directly.
1413         * value.c (value_contents_equal): Use TYPE_LENGTH directly.
1414
1415 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
1416
1417         * symtab.c (skip_prologue_sal): Fix typo in comment.
1418
1419 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
1420
1421         * linespec.c (create_sals_line_offset): Fix typo in comment.
1422
1423 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1424
1425         * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
1426         use plongest to print the array size.
1427
1428 2012-09-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
1429
1430         * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1431         * p-valprint.c (pascal_type_print_base): Likewise.
1432
1433 2012-09-22  Yao Qi  <yao@codesourcery.com>
1434
1435         * remote.c (remote_get_trace_status): Remove setting default
1436         values of fields of 'ts'.
1437
1438 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
1439
1440         Fix internal error on canonicalization of clang types.
1441         * cp-name-parser.y (operator): New comment at make_operator call for
1442         new, delete, new[] and delete[].
1443         (exp): Use "sizeof ".  Add new comment at make_operator call.
1444
1445 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
1446
1447         Fix disassemble without parameters in tailcall frame.
1448         * cli/cli-cmds.c (disassemble_current_function): Use
1449         get_frame_address_in_block.
1450
1451 2012-09-21  Tom Tromey  <tromey@redhat.com>
1452
1453         * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1454         TYPE_CODE_UNION>: Unify, removing a goto.
1455
1456 2012-09-21  Tom Tromey  <tromey@redhat.com>
1457
1458         * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1459
1460 2012-09-21  Andrew Burgess  <aburgess@broadcom.com>
1461
1462         * findvar.c (read_frame_register_value): Mark the result value as
1463         optimized out if any of the input registers have been optimized out.
1464
1465 2012-09-21  Andreas Schwab  <schwab@linux-m68k.org>
1466
1467         * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1468
1469 2012-09-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
1470
1471         * eval.c (evaluate_subexp_standard): Eliminate single-use
1472         variable LOWER.
1473
1474 2012-09-21  Yao Qi  <yao@codesourcery.com>
1475
1476         * mi/mi-interp.c: Declare mi_record_changed.
1477         (mi_interpreter_init): Call observer_attach_record_changed.
1478         (mi_record_changed): New.
1479         * record.c (record_open): Call observer_notify_record_changed.
1480         (cmd_record_stop): Call observer_notify_record_changed.
1481         * NEWS: Mention it.
1482
1483 2012-09-20  Tom Tromey  <tromey@redhat.com>
1484
1485         * NEWS: Update.
1486         * python/python.c (finalize_python): New function.
1487         (_initialize_python): Make a final cleanup.
1488
1489 2012-09-19  Doug Evans  <dje@google.com>
1490
1491         * buildsym.h (param_symbols): Delete, unused.
1492         (context_stack): Delete member "params", unused.
1493         * buildsym.c (push_context): Update.
1494         * dwarf2read.c (read_func_scope): Update.
1495
1496 2012-09-19  Thomas Schwinge  <thomas@codesourcery.com>
1497
1498         * sh-tdep.c (sh_register_convert_to_virtual)
1499         (sh_register_convert_to_raw): Add a gdbarch parameter.  Update
1500         all callers.  Just do a memcpy if not the little-endian case.
1501
1502         * h8300-tdep.c (h8300_gdbarch_init): Invoke
1503         set_gdbarch_double_format and set_gdbarch_long_double_format.
1504         * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1505         set_gdbarch_double_format.
1506         * sh-tdep.c (sh_gdbarch_init): Likewise.
1507
1508         * NEWS: Document the removal of SH's 'regs' command.
1509         * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1510         command.
1511
1512 2012-09-18  Sergio Durigan Junior  <sergiodj@redhat.com>
1513
1514         * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1515         `jump'.
1516
1517 2012-09-18  Joel Brobecker  <brobecker@adacore.com>
1518
1519         * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1520         language when iterating over symbols.
1521
1522 2012-09-18  Yao Qi  <yao@codesourcery.com>
1523
1524         * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1525         (mi_interpreter_init): Call observer_attach_tsv_created and
1526         observer_attach_tsv_deleted.
1527         (mi_tsv_created, mi_tsv_deleted): New.
1528         * tracepoint.c (delete_trace_state_variable): Call
1529         observer_notify_tsv_deleted.
1530         (trace_variable_command): Call observer_notify_tsv_created.
1531         (delete_trace_variable_command): Call
1532         observer_notify_tsv_deleted.
1533         (create_tsv_from_upload): Call observer_notify_tsv_created.
1534         * NEWS: Mention it.
1535
1536 2012-09-18  Yao Qi  <yao@codesourcery.com>
1537
1538         * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1539         if traceframe changed.
1540         * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1541         "trace-find".
1542         * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1543         (mi_interpreter_init): Hook mi_traceframe_changed to observer
1544         'traceframe_changed'.
1545         (mi_traceframe_changed): New.
1546         * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1547         New field.
1548         * NEWS: Mention the new MI notification.
1549
1550 2012-09-17  Mike Wrighton  <wrighton@codesourcery.com>
1551
1552         * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1553
1554 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1555
1556         * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1557         (linux_ptrace_test_ret_to_nx): Extend comment for x86_64.  Change
1558         __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1559         Extend code also for PaX support.  Convert all gdb_assert to warning
1560         calls.
1561
1562 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1563
1564         Implement auto-load user conveniences suggested by Doug Evans.
1565         * auto-load.c: Include top.h.
1566         (file_is_auto_load_safe): New variable advice_printed.  Print advice.
1567         (_initialize_auto_load): New variable scripts_directory_help.  Mention
1568         GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1569         scripts-directory.  Document in online help one can use also files for
1570         set auto-load safe-path.
1571         * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1572         * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1573
1574 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
1575
1576         * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1577         of LEN.
1578
1579 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
1580
1581         * m2-valprint.c (m2_print_array_contents): Eliminate variable
1582         ELTLEN and use TYPE_LENGTH directly.
1583         (m2_val_print): Likewise.
1584         * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1585         variable LEN and use TYPE_LENGTH directly.
1586         (m68k_svr4_store_return_value): Likewise.
1587         * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1588         ARGLEN and use TYPE_LENGTH directly.
1589         (mips_o64_push_dummy_call): Likewise.
1590         * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1591         variable LENGTH and use TYPE_LENGTH directly.
1592         (s390_function_arg_float): Likewise.
1593         (s390_function_arg_integer): Likewise.
1594         (s390_push_dummy_call): Likewise.
1595         (s390_return_value_convention): Likewise.
1596         * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1597         TYPE_LENGTH directly.
1598
1599 2012-09-17  Yao Qi  <yao@codesourcery.com>
1600
1601         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1602         Update comment to add_setshow_integer_cmd.
1603         * cli/cli-setshow.c (do_set_command): Handle case
1604         'var_zuinteger_unlimited'.
1605         (do_show_command): Likewise.
1606         * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1607         for command 'remotetimeout'.
1608         * command.h (enum var_types): New zuinteger_unlimited.  Update comment
1609         to var_integer.
1610         * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1611         for command 'set listsize'.
1612
1613 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
1614
1615         * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1616         variable LEN.
1617
1618 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1619
1620         PR 14119
1621         * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1622         (frame_pop): Drop also TAILCALL_FRAME frames.
1623         * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1624
1625 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1626             Pedro Alves  <palves@redhat.com>
1627
1628         PR 14548
1629         * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1630         function start if we are already at function start.  Both for
1631         reverse-next and for reverse-step into function without line number
1632         info.
1633
1634 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1635
1636         Code cleanup - rename 'inline' depth to 'artificial' depth.
1637         * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1638         frame_id_artificial_p, extend the comment.
1639         * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1640         * frame.c (fprint_frame_id): Rename at a user, change debug output
1641         text to "artificial=".
1642         (skip_inlined_frames): Rename to ...
1643         (skip_artificial_frames): ... here.  Extend the comment.
1644         (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1645         (frame_id_inlined_p): Rename to ...
1646         (frame_id_artificial_p): ... here.  Rename at a user.
1647         (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1648         (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1649         at a user.
1650         * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1651         Extend the comment.
1652         (frame_id_inlined_p): Rename to ...
1653         (frame_id_artificial_p): ... here.
1654         * inline-frame.c (inline_frame_this_id): Rename at a user.
1655
1656 2012-09-14  Andrew Burgess  <aburgess@broadcom.com>
1657
1658         * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1659         vector variables using vector_size syntax rather than array
1660         syntax.
1661
1662 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
1663
1664         * valarith.c (value_concat): Replace unsafe ALLOCA with
1665         XMALLOC/XFREE.
1666
1667 2012-09-14  Pedro Alves  <palves@redhat.com>
1668
1669         * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1670
1671 2012-09-14  Khoo Yit Phang  <khooyp@cs.umd.edu>
1672
1673         Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1674         * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1675         data-directory as appropriate.
1676
1677 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
1678
1679         * printcmd.c (ui_printf): Eliminate single-use variable
1680         PARAM_LEN.
1681
1682 2012-09-14  Yao Qi  <yao@codesourcery.com>
1683             Pedro Alves  <palves@redhat.com>
1684
1685         * valops.c (value_assign): Move observer_notify_target_changed
1686         below to replace reinit_frame_cache.
1687
1688 2012-09-13  Khoo Yit Phang  <khooyp@cs.umd.edu>
1689
1690         Refactor Python "gdb" module into a proper Python package, by
1691         introducing a new "_gdb" module for code implemented in C, and
1692         using reload/__import__ instead of exec.
1693         * python/lib/gdb/__init__.py: Import * from _gdb.
1694         (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1695         prompt_hook, sys.argv): Moved from finish_python_initialization.
1696         (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1697         (packages, auto_load_packages): New list and function replacing
1698         module_dict and auto-loading code, using __file__ instead of
1699         gdb.PYTHONDIR and reload/__import__ instead of exec.
1700         (GdbSetPythonDirectory): Replacing function of the same name
1701         from finish_python_initialization, using reload/__import__ instead
1702         of exec, as well as call auto_load_packages.
1703         * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1704         gdb_python_module and not gdb_module.
1705         * python/python-internal.h (gdb_python_module): Declare.
1706         * python/python.c (gdb_python_module): New global.
1707         (before_prompt_hook): Check gdb_python_module and not gdb_module.
1708         (_initialize_python): Rename gdb module to _gdb.
1709         Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1710         (finish_python_initialization): Move Python code to
1711         lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1712         __main__.
1713
1714 2012-09-13  Pedro Alves  <palves@redhat.com>
1715
1716         * Makefile.in (COMMON_OBS): Add registry.o.
1717         * registry.c: New file.
1718         * registry.h (struct registry_container): Declare.
1719         (registry_data_callback): New typedef.
1720         (struct registry_data, struct registry_data_registration, struct
1721         registry_data_registry): New type.
1722         (register_data_with_cleanup, registry_alloc_data)
1723         (registry_callback_adaptor, registry_clear_data)
1724         (registry_container_free_data, registry_set_data, registry_data):
1725         Declare.
1726         (DEFINE_REGISTRY): Refactor structures and functions as shims over
1727         the new common structures and functions.
1728         (DECLARE_REGISTRY): Declare struct TAG ## _data.  Use the tagged
1729         callback typedefs.
1730
1731 2012-09-12  Mike Wrighton  <wrighton@codesourcery.com>
1732
1733         * remote.c (remote_insert_hw_breakpoint): Throw exception if
1734         there is an error inserting hardware breakpoints and use the
1735         error message from the target.
1736
1737         * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1738         Catch this exception and print the error message contained within. Do not
1739         print the default hardware error breakpoint message in this case.
1740
1741 2012-09-12  Doug Evans  <dje@google.com>
1742
1743         * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1744         cu == NULL.
1745
1746 2012-09-11  Doug Evans  <dje@google.com>
1747
1748         * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1749         .gdb_index symbol attributes if there are none.
1750
1751 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
1752
1753         * symtab.h (struct minimal_symbol) [has_size]: New field.
1754         (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1755         (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1756         * printcmd.c (build_address_symbolic): Only filter out zero-sized
1757         minimal symbols if the symbol's size is actually known.
1758         * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1759         of msymbol's size field.  Add comment.
1760         * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1761         SET_MSYMBOL_SIZE to set the minimal symbol size.
1762
1763 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
1764
1765         * minsyms.c (install_minimal_symbols): Use memset to fill entire
1766         minimal_symbol struct object, rather than setting some of its
1767         fields one by one.
1768
1769 2012-09-11  Andrew Burgess  <aburgess@broadcom.com>
1770
1771         * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1772         passed_a_ptr flag when displaying typedef types.
1773
1774 2012-09-10  Joel Brobecker  <brobecker@adacore.com>
1775
1776         * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1777         the optimized_out flag is preserved.
1778
1779 2012-09-10  Anthony Green  <green@moxielogic.com>
1780
1781         * moxie-tdep.c (moxie_analyze_prologue): Update for function
1782         prologue changes in GCC.
1783
1784 2012-09-10  Keith Seitz  <keiths@redhat.com>
1785
1786         PR gdb/13483
1787         * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1788         (BOOL_CONVERSION_BADNESS): ... this.
1789         * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1790         (rank_one_type): Allow all boolean conversions
1791         permitted by the standard.
1792
1793 2012-09-06  Tom Tromey  <tromey@redhat.com>
1794
1795         * python/py-newobjfileevent.c (create_new_objfile_event_object):
1796         Don't decref py_objfile.
1797
1798 2012-09-02  Khoo Yit Phang  <khooyp@cs.umd.edu>
1799
1800         Do not enable -lmcheck by default when Python is enabled with
1801         threading support.
1802         * configure.ac: (python_has_threads) New variable, by testing
1803         if WITH_THREAD is defined in Python.h.
1804         Move --enable-lmcheck after --with-python.
1805         Do not enable -lmcheck by default if python_has_threads=yes.
1806         Warn if --enable-lmcheck and python_has_threads=yes.
1807         * configure: Regenerate.
1808
1809 2012-08-31  Yao Qi  <yao@codesourcery.com>
1810
1811         * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1812         DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1813         Update some commands.
1814         * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1815         * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1816         to 1.
1817
1818 2012-08-31  Yao Qi  <yao@codesourcery.com>
1819
1820         * mi/mi-cmds.c (mi_cmds): Add 'static'.
1821
1822 2012-08-30  Khoo Yit Phang  <khooyp@cs.umd.edu>
1823
1824         * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1825
1826 2012-08-29  Doug Evans  <dje@google.com>
1827
1828         * main.c (print_gdb_help): Remove reference to
1829         --use-deprecated-index-sections.
1830
1831 2012-08-28  Yao Qi  <yao@codesourcery.com>
1832
1833         * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1834         (init_cmds): Call add_setshow_uinteger_cmd for command
1835         'max-user-call-depth'.
1836         * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1837         declaration of 'max_user_call_depth'.
1838         * frame.c (backtrace_limit): Add 'unsigned'.
1839         (_initialize_frame): Call add_setshow_uinteger_cmd for command
1840         'limit'.
1841         * remote.c (remoteaddresssize): Add 'unsigned'.
1842         (remote_address_masked): Change local var 'address_size' to
1843         'unsigned'.
1844         (_initialize_remote): Call add_setshow_uinteger_cmd for
1845         'remoteaddresssize'.
1846         * top.c (history_size): Add 'unsigned'.
1847         (show_commands): Change local variables to 'unsigned'.
1848         (set_history_size_command): Don't check history_size is negative.
1849         Adjust the condition to call unstifle_history and set history_size
1850         to UNIT_MAX.
1851
1852 2012-08-28  Pedro Alves  <palves@redhat.com>
1853
1854         PR gdb/14428
1855
1856         * infcmd.c (default_print_one_register_info): New, factored out
1857         from default_print_registers_info.
1858         (default_print_registers_info): Use it.  Mark value unavailable if
1859         necessary.
1860         (registers_info): Print user registers with
1861         default_print_one_register_info.
1862
1863 2010-08-27  H.J. Lu  <hongjiu.lu@intel.com>
1864
1865         PR tui/14486
1866         * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1867         is not NULL before referencing it.
1868
1869 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1870
1871         * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1872         variable pc.  Call find_pc_line instead of find_pc_overlay, restore
1873         original PC for it.
1874
1875 2012-08-27  Eli Zaretskii  <eliz@gnu.org>
1876             Jan Kratochvil  <jan.kratochvil@redhat.com>
1877
1878         * auto-load.c (auto_load_objfile_script): Rename to ...
1879         (auto_load_objfile_script_1): ... here, change variable realname to
1880         parameter realname, document it, add return value, add variable retval.
1881         (auto_load_objfile_script): New function.
1882
1883 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1884
1885         * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1886         followed by a whitespace.
1887
1888 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1889
1890         PR gdb/14494.
1891         * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1892         Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1893         (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1894         here.
1895
1896 2012-08-27  Wei-cheng Wang  <cole945@gmail.com>
1897
1898         * memattr.c (create_mem_region): Fix memory region overlapping
1899         checking.
1900
1901 2012-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
1902
1903         * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1904         with xmalloc/cleanup.
1905         * mt-tdep.c (mt_push_dummy_call): Likewise.
1906         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1907         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1908
1909 2012-08-24  Yao Qi  <yao@codesourcery.com>
1910
1911         * jv-exp.y (push_expression_name): Add "." at the end of error
1912         message.
1913
1914 2012-08-23  Khoo Yit Phang <khooyp@cs.umd.edu>
1915
1916         Document how to return from "python-interactive" to GDB.
1917         * python/python.c (_initialize_python): Update documentation.
1918
1919 2012-08-23  Pedro Alves  <palves@redhat.com>
1920
1921         * infrun.c (_initialize_infrun) <handle command help text>:
1922         Mention that multiple signals are supported.
1923
1924 2012-08-23  Pedro Alves  <palves@redhat.com>
1925
1926         * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1927         string.
1928
1929 2012-08-23  Yao Qi  <yao@codesourcery.com>
1930
1931         * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1932         (tfind_1): Don't call registers_changed, set_traceframe_num,
1933         and clear_traceframe_info.
1934         Call set_current_traceframe.
1935         (set_current_traceframe): call set_traceframe_num.
1936
1937 2012-08-22  Sergio Durigan Junior  <sergiodj@redhat.com>
1938
1939         * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1940         `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1941
1942 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
1943
1944         Enable readline in Python in a GDB-specific way and block the
1945         standard Python readline module to prevent conflicts with GDB.
1946         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1947         (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1948         (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1949         * python/py-gdb-readline.c: New file.
1950         * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1951         prototype.
1952         * python/python.c (_initialize_python): Call
1953         gdbpy_initialize_gdb_readline.
1954
1955 2012-08-22  Keith Seitz  <keiths@redhat.com>
1956
1957         * defs.h: Include build-gnulib/config.h
1958
1959 2012-08-22  Joseph Myers  <joseph@codesourcery.com>
1960
1961         * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1962         and blx pc.
1963
1964 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
1965
1966         Add a new "python-interactive" command that starts a standard
1967         Python interactive prompt with "pi" as alias, and add "py" as
1968         an alias to "python".
1969         * NEWS: Mention the new commands.
1970         * python/python.c (eval_python_command): New function.
1971         (python_interactive_command): For "python-interactive" with
1972         arguments, call eval_python_command.  For "python-interactive"
1973         without arguments, call PyRun_InteractiveLoop.
1974         (_initialize_python): Add "python-interactive" command with
1975         "pi" as alias, and add "py" as an alias to "python".
1976
1977 2012-08-22  Tom Tromey  <tromey@redhat.com>
1978
1979         * defs.h (quit_flag): Don't declare.
1980         (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1981         (QUIT): Use new functions.
1982         * event-top.c (command_handler): Use clear_quit_flag.
1983         (handle_sigint): Use set_quit_flag.
1984         (async_request_quit): Use check_quit_flag.  Don't check
1985         immediate_quit.
1986         * exceptions.c (throw_exception): Use clear_quit_flag.
1987         * main.c (captured_main): Use clear_quit_flag.
1988         * python/python.c (clear_quit_flag, set_quit_flag)
1989         (check_quit_flag): New functions.
1990         * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1991         clear_quit_flag.
1992         * remote.c (remote_wait_as): Use check_quit_flag,
1993         clear_quit_flag.
1994         (remote_start_remote): Call QUIT.
1995         * symfile.c (load_progress): Use check_quit_flag.
1996         * top.c (command_loop): Use clear_quit_flag.
1997         (command_line_input): Call QUIT.
1998         * utils.c (quit_flag): Conditionally define.
1999         (clear_quit_flag, check_quit_flag, set_quit_flag): New
2000         functions.
2001         (prompt_for_continue): Call QUIT.  Use quit, not
2002         async_request_quit.
2003         * remote-mips.c (mips_expect_timeout): Call QUIT.
2004         * monitor.c (monitor_expect): Call QUIT.
2005
2006 2012-08-22  Tom Tromey  <tromey@redhat.com>
2007
2008         * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2009         (async_init_signals): Update.
2010         * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2011         (SIGWINCH_HANDLER_BODY): Remove.
2012
2013 2012-08-22  Tom Tromey  <tromey@redhat.com>
2014
2015         * jit.c (jit_object_close_impl): Don't malloc the objfile
2016         name.
2017         * objfiles.c (allocate_objfile): Don't malloc the objfile
2018         name.
2019         (free_objfile): Don't free the objfile name.
2020         * objfiles.h (struct objfile) <name>: Update comment.
2021         * symfile.c (reread_symbols): Fix reference counting.  Don't
2022         malloc objfile name.
2023
2024 2012-08-22  Tom Tromey  <tromey@redhat.com>
2025
2026         * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2027         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2028         (symfile_bfd_open): Likewise.
2029         (generic_load): Likewise.
2030         * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2031         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2032         gdb_bfd_open.
2033         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2034         Use gdb_bfd_open.
2035         * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2036         * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2037         (pmon_load_fast): Likewise.
2038         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2039         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2040         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2041         (macho_check_dsym): Likewise.
2042         * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2043         (m32r_upload_command): Likewise.
2044         * gdb_bfd.h (gdb_bfd_cache): Declare.
2045         * gdb_bfd.c (struct gdb_bfd_data): New.
2046         (gdb_bfd_cache): New global.
2047         (struct gdb_bfd_cache_search): New.
2048         (hash_bfd): New function.
2049         (eq_bfd): Likewise.
2050         (gdb_bfd_open): Likewise.
2051         (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2052         (gdb_bfd_unref): Remove closed BFD from cache.  Update for
2053         gdb_bfd_data.
2054         * exec.c (exec_file_attach): Use gdb_bfd_open.
2055         * dsrec.c (load_srec): Use gdb_bfd_open.
2056
2057 2012-08-22  Tom Tromey  <tromey@redhat.com>
2058
2059         * dwarf2read.c (macro_start_file): Update.
2060         * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2061         (free_objfile_per_bfd_storage): Destroy macro_cache.
2062         (allocate_objfile, free_objfile): Update.
2063         * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2064         New field.
2065         (struct objfile) <macro_cache>: Remove.
2066         * symfile.c (reread_symbols): Update.
2067         * symmisc.c (print_symbol_bcache_statistics): Update.
2068         (print_objfile_statistics): Update.
2069
2070 2012-08-22  Tom Tromey  <tromey@redhat.com>
2071
2072         * elfread.c (elf_symtab_read): Update.
2073         * objfiles.c (objfiles_bfd_data): New global.
2074         (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2075         (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2076         (allocate_objfile, free_objfile): Update.
2077         (_initialize_objfiles): Initialize objfiles_bfd_data.
2078         * objfiles.h (struct objfile_per_bfd_storage): New.
2079         (struct objfile) <per_bfd>: New field.
2080         <filename_cache>: Remove.
2081         (set_objfile_per_bfd): Declare.
2082         * symfile.c (reread_symbols): Update.  Call
2083         set_objfile_per_bfd.
2084         (allocate_symtab): Update.
2085         * symmisc.c (print_symbol_bcache_statistics): Update.
2086         (print_objfile_statistics): Print the size of the BFD obstack.
2087
2088 2012-08-22  Tom Tromey  <tromey@redhat.com>
2089
2090         * gdb_bfd.h: Include registry.h.  Use DECLARE_REGISTRY.
2091         * gdb_bfd.c: Use DEFINE_REGISTRY.
2092         (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2093         (gdb_bfd_ref): Call bfd_alloc_data.
2094         (gdb_bfd_unref): Call bfd_free_data.
2095
2096 2012-08-22  Tom Tromey  <tromey@redhat.com>
2097
2098         * registry.h (struct registry_fields): New.
2099         (REGISTRY_FIELDS): Redefine.
2100         (REGISTRY_ACCESS_FIELD): New macro.
2101         (DEFINE_REGISTRY): Add ACCESS argument.  Update defined
2102         functions.
2103
2104 2012-08-22  Tom Tromey  <tromey@redhat.com>
2105
2106         * auto-load.c (_initialize_auto_load): Update.
2107         * solib-svr4.c (_initialize_svr4_solib): Update
2108         * solib-dsbt.c (_initialize_dsbt_solib): Update.
2109         * solib-darwin.c (_initialize_darwin_solib): Update.
2110         * registry.h: New file.
2111         * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2112         * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2113         * progspace.h: Include registry.h.  Use DECLARE_REGISTRY.
2114         (register_program_space_data_with_cleanup)
2115         (register_program_space_data, program_space_alloc_data)
2116         (clear_program_space_data, set_program_space_data)
2117         (program_space_data): Don't declare.
2118         * progspace.c: Use DEFINE_REGISTRY.
2119         (struct program_space_data, struct
2120         program_space_data_registration, struct
2121         program_space_data_registry, program_space_data_registry)
2122         (register_program_space_data_with_cleanup)
2123         (register_program_space_data, program_space_alloc_data)
2124         (program_space_free_data, clear_program_space_data)
2125         (set_program_space_data, program_space_data): Remove.
2126         * objfiles.h: Include registry.h.  Use DECLARE_REGISTRY.
2127         (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2128         (register_objfile_data_with_cleanup, register_objfile_data)
2129         (clear_objfile_data, set_objfile_data, objfile_data): Don't
2130         declare.
2131         * objfiles.c: Use DEFINE_REGISTRY.
2132         (struct objfile_data, struct objfile_data_registration, struct
2133         objfile_data_registry, objfile_data_registry)
2134         (register_objfile_data_with_cleanup, register_objfile_data)
2135         (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2136         (set_objfile_data, objfile_data): Remove.
2137         (_initialize_objfiles): Update.
2138         * jit.c (_initialize_jit): Update.
2139         * inflow.c (_initialize_inflow): Update.
2140         * inferior.h: Include registry.h.  Use DECLARE_REGISTRY.
2141         (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2142         (register_inferior_data_with_cleanup, register_inferior_data)
2143         (clear_inferior_data, set_inferior_data, inferior_data): Don't
2144         declare.
2145         * inferior.c: Use DEFINE_REGISTRY.
2146         (struct inferior_data, struct inferior_data_registration, struct
2147         inferior_data_registry, inferior_data_registry)
2148         (register_inferior_data_with_cleanup, register_inferior_data)
2149         (inferior_alloc_data, inferior_free_data  clear_inferior_data)
2150         (set_inferior_data, inferior_data): Remove.
2151         * auxv.c (_initialize_auxv): Update.
2152         * ada-lang.c (_initialize_ada_language): Update.
2153         * breakpoint.c (_initialize_breakpoint): Update.
2154         * i386-nat.c (i386_use_watchpoints): Update.
2155
2156 2012-08-22  Tom Tromey  <tromey@redhat.com>
2157
2158         * exec.c (exec_close, exec_file_attach): Update.
2159         (add_to_section_table): Initialize 'key' field.
2160         (add_target_sections, remove_target_sections): Add 'key' argument.
2161         * exec.h (add_target_sections, remove_target_sections): Add
2162         'key' argument.
2163         * solib.c (solib_map_sections, update_solib_list, clear_solib)
2164         (reload_shared_libraries_1): Update.
2165         * target.h (struct target_section) <key>: New field.
2166
2167 2012-08-22  Tom Tromey  <tromey@redhat.com>
2168
2169         * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2170
2171 2012-08-21  Pierre Muller  <muller@ics.u-strasbg.fr>
2172
2173         * symfile.c (allocate_symtab): Use host_address_to_string
2174         function instead of cast of pointer to long which is not
2175         compatible with x86_64-w64-mingw32 build.
2176
2177 2012-08-19  Andrew Pinski  <apinski@cavium.com>
2178
2179         * mips-tdep.c (is_octeon): New function.
2180         (is_octeon_bbit_op): New function.
2181         (mips32_next_pc): Handle Octeon's bbit instructions.
2182         (mips32_instruction_has_delay_slot): Likewise.
2183
2184 2012-08-19  Andrew Pinski  <apinski@cavium.com>
2185
2186         * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2187         before the function.
2188
2189 2012-08-19  Andrew Pinski  <apinski@cavium.com>
2190
2191         * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2192
2193 2012-08-19  Keith Seitz  <keiths@redhat.com>
2194
2195         PR c++/14365
2196         * c-typeprint.c (c_type_print_varspec_prefix): Pass
2197         -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2198
2199 2012-08-18  Eli Zaretskii  <eliz@gnu.org>
2200
2201         * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2202         The typo broke "make TAGS".
2203
2204 2012-08-17  Joel Brobecker  <brobecker@adacore.com>
2205
2206         GDB 7.5 released.
2207
2208 2012-08-17  Keith Seitz  <keiths@redhat.com>
2209
2210         PR c++/13356
2211         * gdbtypes.c (strict_type_checking): New variable.
2212         (show_strict_type_checking): New function.
2213         (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2214         if strict type checking is disabled.
2215         (_initialize_gdbtypes): Add "check type" subcommand.
2216         * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2217
2218 2012-08-17  Keith Seitz  <keiths@redhat.com>
2219
2220         * language.h (type_mode): Remove.
2221         (type_check): Remove.
2222         (struct language_defn): Remove la_type_check.
2223         (STRICT_TYPE): Remove unused macro.
2224         (type_error): Remove.
2225         * language.c (set_type_range_case): Renamed to ...
2226         (set_range_case): ... this.  Update all callers.
2227         Remove type_mode/type_check.
2228         (type_mode): Remove.
2229         (type_check): Remove.
2230         (show_type_command): Remove.
2231         (set_type_command): Remove.
2232         (language_info): Remove type checking output.
2233         (type_error): Remove unused function.
2234         (range_error): Update comment.
2235         (unknown_language_defn): Remove la_type_check.
2236         (auto_language_defn): Likewise.
2237         (local_language_defn): Likewise.
2238         (_initialize_language): Remove "check type" subcommand.
2239         * ada-lang.c (ada_language_defn): Remove la_type_check.
2240         * c-lang.c (c_language_defn): Likewise.
2241         (cplus_language_defn): Likewise.
2242         (asm_language_defn): Likewise.
2243         (minimal_language_defn): Likewise.
2244         * d-lang.c (d_language_defn): Likewise.
2245         * f-lang.c (f_language_defn): Likewise.
2246         * go-lang.c (go_language_defn): Likewise.
2247         * jv-lang.c (java_language_defn): Likewise.
2248         * m2-lang.c (m2_language_defn): Likewise.
2249         * objc-lang.c (objc_language_defn): Likewise.
2250         * opencl-lang.c (opencl_language_defn): Likewise.
2251         * p-lang.c (pascal_language_defn): Likewise.
2252
2253 2012-08-16  Mike Frysinger  <vapier@gentoo.org>
2254
2255         * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2256
2257 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
2258
2259         * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2260         New function.
2261         (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2262         using the regache.  Use ia64_hpux_get_register_from_save_state_t
2263         to access the bsp and bspstore registers if not.
2264
2265 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
2266
2267         * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2268         * breakpoint.c (detach_breakpoints): Change pid parameter into
2269         a ptid.  Adjust code accordingly.
2270         * infrun.c (handle_inferior_event): Delete variable child_pid.
2271         Update call to detach_breakpoints to pass the child ptid for
2272         fork events.
2273         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2274         assert that inferior_ptid's lwp is zero.
2275         (linux_handle_extended_wait): Update call to detach_breakpoints.
2276         * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2277         detach_breakpoints.
2278
2279 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
2280
2281         * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2282         parent, only call detach_breakpoints if tts.tts_event ==
2283         TTEVT_VFORK.
2284
2285 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
2286
2287         * dwarf2-frame.c (dwarf2_frame_cache): Use
2288         get_frame_address_in_block instead of get_frame_pc as
2289         the bound for executing the frame's FDE.
2290
2291 2012-08-16  Yao Qi  <yao@codesourcery.com>
2292
2293         * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2294         * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2295         * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2296         (c_type_print_varspec_suffix): Likewise.
2297         * eval.c (evaluate_subexp_standard): Likewise.
2298         * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2299         (f_type_print_varspec_suffix): Likewise.
2300         * gdbtypes.c (is_scalar_type): Likewise.
2301         (recursive_dump_type): Likewise.
2302         * infcall.c (value_arg_coerce): Likewise.
2303         * m2-valprint.c (m2_val_print): Likewise.
2304         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2305         (pascal_type_print_varspec_suffix): Likewise.
2306         (pascal_type_print_base): Likewise.
2307         * p-valprint.c (pascal_val_print): Likewise.
2308         (pascal_val_print): Likewise.
2309         * valops.c (value_slice): Likewise.
2310         * valprint.c (scalar_type_p): Likewise.
2311         * valarith.c (value_bitstring_subscript): Remove.
2312         (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2313         Remove comment on TYPE_CODE_BITSTRING.
2314
2315         * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2316         TYPE_CODE_BITSTRING.
2317
2318         * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2319         slot 0.
2320
2321 2012-08-16  Yao Qi  <yao@codesourcery.com>
2322
2323         * tracepoint.c (trace_find_none_command): Remove.
2324         (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2325
2326 2012-08-16  Yao Qi  <yao@codesourcery.com>
2327
2328         * remote.c (handle_notification): Remove parameter 'length'.
2329         (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2330
2331 2012-08-15  Keith Seitz  <keiths@redhat.com>
2332
2333         * gdbtypes.c (opaque_type_resolution): Make static.
2334         Add missing comment.
2335         (overload_debug): Add missing comment.
2336         (show_opaque_type_resolution): Likewise.
2337         (show_overload_debug): Likewise.
2338         (print_bit_vector): Remove unnecessary forward declaration.
2339         (print_arg_types): Likewise.
2340         (dump_fn_fieldlists): Likewise.
2341         (print_cplus_stuff): Likewise.
2342
2343 2012-08-15  Tom Tromey  <tromey@redhat.com>
2344
2345         * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2346         (gdb_bfd_ref): Initialize new field.
2347         (gdb_bfd_unref): Unref the archive BFD.
2348         (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2349         parent archive.
2350
2351 2012-08-15  Tom Tromey  <tromey@redhat.com>
2352
2353         PR python/14387:
2354         * python/py-bpevent.c (create_breakpoint_event_object): Update
2355         comment.
2356         * python/py-event.c (evpy_add_attribute): Update comment.
2357         * python/py-exitedevent.c (create_exited_event_object): Fix
2358         reference counting and error handling.
2359         * python/py-newobjfileevent.c (create_new_objfile_event_object):
2360         Fix reference counting.
2361         * python/py-signalevent.c (create_signal_event_object): Fix
2362         reference counting and error handling.
2363         * python/py-stopevent.c (emit_stop_event): Fix reference
2364         counting.
2365         * python/py-threadevent.c (get_event_thread): Return a
2366         borrowed reference.
2367         * python/py-type.c (convert_field): Fix reference counting.
2368
2369 2012-08-15  Tom Tromey  <tromey@redhat.com>
2370
2371         * dwarf2read.c (dwarf_decode_macro_bytes)
2372         <DW_MACRO_GNU_transparent_include>: Use pointer to included data
2373         as hash key.
2374
2375 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
2376
2377         * infcmd.c (_initialize_infcmd): Update help text for the signal,
2378         stepi, nexti, finish, next, step, jump, and continue commands.
2379         * infrun.c (_initialize_infrun): Update help text for the handle
2380         command.
2381
2382 2012-08-14  Doug Evans  <dje@google.com>
2383
2384         * gdbtypes.c (struct extra): Delete, unused.
2385
2386         * gdbtypes.c: Whitespace cleanup.
2387         (address_space_name_to_int): Remove "extern" from definition.
2388         (_initialize_gdbtypes): Declare with initialize_file_ftype.
2389
2390         * gdbtypes.c (make_pointer_type): Remove redundant setting of
2391         TYPE_POINTER_TYPE (type).
2392
2393 2012-08-14  Gary Benson  <gbenson@redhat.com>
2394
2395         * solib-svr4.c (svr4_free_library_list): Use free_so.
2396
2397 2012-08-13  Mike Frysinger  <vapier@gentoo.org>
2398
2399         * .gitignore: Add go-exp.c.
2400
2401 2012-08-13  Doug Evans  <dje@google.com>
2402
2403         * value.c (show_convenience): Tweak comment.
2404         (_initialize_values): Mention convenience functions in the help text
2405         for "show convenience".
2406
2407 2012-08-13  Yao Qi  <yao@codesourcery.com>
2408
2409         * std-operator.def: Remove TERNOP_SLICE_COUNT.
2410         * breakpoint.c (watchpoint_exp_is_const): Remove handling to
2411         TERNOP_SLICE_COUNT.
2412         * eval.c (evaluate_subexp_standard): Likewise.
2413         * expprint.c (print_subexp_standard): Likewise.
2414         (dump_subexp_body_standard): Likewise.
2415         * parse.c (operator_length_standard): Likewise.
2416
2417 2012-08-13  Yao Qi  <yao@codesourcery.com>
2418
2419         * std-operator.def: Remove OP_BITSTRING.
2420         * breakpoint.c (watchpoint_exp_is_const): Update.
2421         * eval.c (evaluate_subexp_standard): Remove handling to
2422         OP_BITSTRING.
2423         * expprint.c (print_subexp_standard): Likewise.
2424         (dump_subexp_body_standard): Likewise.
2425         * parse.c (operator_length_standard): Likewise.
2426         * valops.c (value_bitstring): Remove.
2427         * value.h: Remove the declaration of 'value_bitstring'.
2428
2429 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
2430
2431         * linespec.c (find_methods): Remove unused variables `i1' and
2432         `name_len'.
2433         (decode_line_full): Likewise for `arg_start'.
2434
2435 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
2436
2437         * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2438         (zlib_decompress_section): Likewise for `section_data'.
2439         (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2440
2441 2012-08-10  Doug Evans  <dje@google.com>
2442
2443         Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2444         * NEWS: Document them.
2445         * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2446         function/strfns.py.
2447         * python/py-type.c (typy_array_1): New function.
2448         (typy_array): Call it.
2449         (typy_vector): New function.
2450         (type_object_methods): Add "vector".
2451         * python/lib/gdb/function/__init__.py: New file.
2452         * python/lib/gdb/function/strfns.py: New file.
2453
2454 2012-08-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
2455
2456         * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2457         for TYPE_FIELD_BITPOS.
2458         (typy_get_sizeof): Likewise for TYPE_LENGTH.
2459
2460 2012-08-10  Mike Frysinger  <vapier@gentoo.org>
2461
2462         PR cli/10436:
2463         * common/vec.h (VEC_merge): Define.
2464         (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2465         (DEF_VEC_ALLOC_FUNC_P): Likewise.
2466         (DEF_VEC_ALLOC_FUNC_O): Likewise.
2467         * completer.c: Include gdb_signals.h.
2468         (signal_completer): Define.
2469         * completer.h (signal_completer): Add prototype.
2470         * infcmd.c (_initialize_infcmd): Assign the command
2471         completer for "signal" to handle_completer.
2472         * infrun.c: Include completer.h.
2473         (handle_completer): Define.
2474         (_initialize_infrun): Declare a new local variable c.  Store the
2475         result of add_com("handle") to it.  Assign the command
2476         completer for "handle" to handle_completer.
2477
2478 2012-08-09  Yao Qi  <yao@codesourcery.com>
2479
2480         * cli/cli-decode.c (set_cmd_prefix): New.
2481         (lookup_cmd_for_prefixlist): New.
2482         (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2483         of each cmd_list_element in *prefixlist.
2484         (add_setshow_cmd_full): set_cmd_prefix.
2485         (add_alias_cmd): Likewise.
2486         * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2487         Declare 'auto_boolean_enums'.
2488         * cli/cli-setshow.c: Include "observer.h".
2489         (notify_command_param_changed_p): New.
2490         (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2491         Remove 'static'.
2492         (do_setshow_command): Split it to ...
2493         (do_set_command, do_show_command): ... them.  New.
2494         (do_set_command): Call observer_notify_command_param_changed if
2495         notify_command_param_changed_p returns true.
2496         (cmd_show_list): Caller update.
2497         * auto-load.c (set_auto_load_cmd): Likewise.
2498         * remote.c (show_remote_cmd): Likewise.
2499         * cli/cli-setshow.h: Update declarations.
2500         * top.c (execute_command): Call do_set_command and do_show_command.
2501
2502         * NEWS: Mention new MI notification.
2503         * mi/mi-interp.c: Declare mi_command_param_changed.
2504         (mi_interpreter_init): Attach mi_command_param_changed to
2505         observer command_param_changed.
2506         (mi_command_param_changed): New.
2507         Remove mi_suppress_breakpoint_notifications.
2508         Define global variable mi_suppress_notification.
2509         (mi_breakpoint_created): Update.
2510         (mi_breakpoint_deleted): Likewise.
2511         (mi_breakpoint_modified): Likewise.
2512         * mi/mi-main.c (mi_cmd_execute): Likewise.  Check command
2513         'gdb-set' and set mi_suppress_notification.
2514         * mi/mi-main.h: (mi_suppress_notification): New struct.
2515
2516 2012-08-09  Andreas Tobler  <andreast@fgznet.ch>
2517             Jan Kratochvil  <jan.kratochvil@redhat.com>
2518
2519         * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2520
2521 2012-08-09  Yao Qi  <yao@codesourcery.com>
2522
2523         * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2524         (skiplist): Move it to skip.c.
2525         (init_cmd_lists): Remove code setting enablebreaklist and
2526         skiplist to NULL.
2527         * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2528         * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2529         skiplist.
2530         * gdbcmd.h: Likewise.
2531         * skip.c (_initialize_step_skip): Move 'skiplist' from
2532         cli/cli-cmds.c.
2533
2534 2012-08-09  Yao Qi  <yao@codesourcery.com>
2535
2536         * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2537         * gnu-nat.c, symfile.c: Likewise.
2538
2539 2012-08-08  Aaron Gamble  <agamble@google.com>
2540
2541         * utils.c (prompt_for_continue_wait_time): New static global.
2542         (make_command_stats_cleanup): Initialize it.
2543         (report_command_stats): Subtract time waiting for user.
2544         (prompt_for_continue): Track time waiting for user.
2545         (defaulted_query): Track time waiting for user.
2546
2547 2012-08-08  Doug Evans  <dje@google.com>
2548
2549         * eval.c (evaluate_subexp_standard): Fix thinko in handling
2550         UNOP_MEMVAL_TYPE.
2551         * expprint.c (print_subexp_standard, case OP_TYPE): New.
2552         (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2553         (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2554         (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2555         (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2556         (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2557         elt.
2558         (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2559         (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2560         (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2561         (dump_prefix_expression): Handle OP_TYPE.
2562
2563 2012-08-08  Keith Seitz  <keiths@redhat.com>
2564
2565         * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2566         addr_start.
2567
2568 2012-08-08  Doug Evans  <dje@google.com>
2569
2570         * linux-thread-db.c: #include "gdb_vecs.h".
2571         (try_thread_db_load_from_pdir_1): New arg "subdir".  All callers
2572         updated.
2573         (try_thread_db_load_from_pdir): New arg "subdir".  All callers updated.
2574         (thread_db_load_search): Use a vector to iterate over path elements.
2575         Handle text appearing after "$pdir".
2576
2577         * gdb_string.h: Moved to ...
2578         * common/gdb_string.h: ... here.
2579         * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2580         gdb_string.h and gdb_assert.h.
2581
2582 2012-08-08  Yao Qi  <yao@codesourcery.com>
2583
2584         * tic6x-tdep.c (tic6x_register_to_value): Remove.
2585         (tic6x_value_to_register): Likewise.
2586         (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2587         and set_gdbarch_value_to_register.
2588
2589 2012-08-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
2590             Jean-Marc Saffroy  <saffroy@gmail.com>
2591
2592         PR 11804
2593         * defs.h (find_memory_region_ftype): New comment.  New arg modified.
2594         * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2595         * gcore.c (gcore_create_callback): New function comment.  Add modified
2596         parameter.  Only write modified regions.  Set SEC_READONLY exactly
2597         according to MODIFIED.
2598         (objfile_find_memory_regions): Ignore separate debug info files.  Ass
2599         the passed modified value to FUNC.
2600         * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2601         * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2602         first.  New variables modified and has_anonymous.  Parse the lines of
2603         smaps file.  Add the passed MODIFIED value to FUNC.
2604         * procfs.c (find_memory_regions_callback): Add the passed modified
2605         value.
2606
2607 2012-08-06  Tom Tromey  <tromey@redhat.com>
2608
2609         * dwarf2-frame.c (clear_pointer_cleanup): New function.
2610         (dwarf2_frame_cache): Use it.
2611         * frame-unwind.h (frame_sniffer_ftype): Document prologue
2612         cache initialization constraint.
2613
2614 2012-08-06  Tom Tromey  <tromey@redhat.com>
2615
2616         PR python/14386:
2617         * varobj.c (update_dynamic_varobj_children): Don't call
2618         PyIter_Check.
2619
2620 2012-08-06  Tom Tromey  <tromey@redhat.com>
2621
2622         PR cli/14392:
2623         * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2624
2625 2012-08-06  Nathaniel Flath  <flat0103@gmail.com>
2626
2627         * NEWS: New entry for 'cd' default parameters.
2628         * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2629
2630 2012-08-03  Tom Tromey  <tromey@redhat.com>
2631
2632         * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2633         return.
2634
2635 2012-08-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
2636
2637         * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2638         to attempting lseek/write.
2639         (inf_child_fileio_pread): Likewise for pread.
2640
2641 2012-08-02  Yao Qi  <yao@codesourcery.com>
2642
2643         * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2644         (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2645         add_setshow_zinteger_cmd.
2646         * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2647         * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2648         (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2649         instead of add_setshow_zinteger_cmd.
2650         * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2651         (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2652         instead of add_setshow_zinteger_cmd.
2653         * frame.c (frame_debug): Add 'unsigned'.
2654         (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2655         add_setshow_zinteger_cmd.
2656         * frame.h: Update the declaration of 'frame_debug'.
2657         * gdbtypes.c (overload_debug): Add 'unsigned'.
2658         (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2659         add_setshow_zinteger_cmd.
2660         * inferior.h: Update declaration of 'debug_infrun'.
2661         * infrun.c (debug_infrun): Add 'unsigned'.
2662         (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2663         add_setshow_zinteger_cmd.
2664         * jit.c (jit_debug): Add 'unsigned'.
2665         (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2666         add_setshow_zinteger_cmd.
2667         * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2668         (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2669         instead of add_setshow_zinteger_cmd.
2670         * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2671         (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2672         add_setshow_zinteger_cmd.
2673         * machoread.c (mach_o_debug_level): Add 'unsigned'.
2674         (_initialize_machoread): Call add_setshow_zuinteger_cmd
2675         instead of add_setshow_zinteger_cmd.
2676         * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2677         * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2678         (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2679         intead of add_setshow_zinteger_cmd.
2680         * mips-tdep.c (mips_debug): Add 'unsigned'.
2681         (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2682         instead of add_setshow_zinteger_cmd.
2683         * monitor.c (monitor_debug): Add 'unsigned'.
2684         (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2685         add_setshow_zinteger_cmd.
2686         * observer.c (observer_debug): Add 'unsigned'.
2687         (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2688         add_setshow_zinteger_cmd.
2689         * parse.c (expressiondebug): Add 'unsigned'.
2690         (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2691         add_setshow_zinteger_cmd.
2692         * record.c (record_debug): Add 'unsigned'.
2693         (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2694         add_setshow_zinteger_cmd.
2695         * record.h: Update the declaration of 'record_debug'.
2696         * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2697         (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2698         add_setshow_zinteger_cmd.
2699         * serial.c (global_serial_debug_p): Add 'unsigned'.
2700         (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2701         add_setshow_zinteger_cmd.
2702         * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2703         (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2704         add_setshow_zinteger_cmd.
2705         * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2706         (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2707         add_setshow_zinteger_cmd.
2708         * target.c (targetdebug): Add 'unsigned'.
2709         (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2710         add_setshow_zinteger_cmd.
2711         * valops.c (overload_debug): Add 'unsigned'.
2712         * varobj.c (varobjdebug): Add 'unsigned'.
2713         (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2714         add_setshow_zinteger_cmd.
2715         * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2716         (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2717         instead of add_setshow_zinteger_cmd.
2718
2719         * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2720         * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2721         (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2722         instead of add_setshow_zinteger_cmd.
2723         * gdbarch.c, gdbarch.h: Re-generated.
2724
2725 2012-08-02  Yao Qi  <yao@codesourcery.com>
2726
2727         * nto-tdep.c: Don't include cli/cli-decode.h and
2728         cli/cli-cmds.h.
2729         (_initialize_nto_tdep): Remove.
2730         * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2731         Remove field.
2732         Remove macro nto_internal_debugging.
2733
2734 2012-08-01  Richard Henderson  <rth@redhat.com>
2735
2736         * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2737         (mep-*-*) [gdb_target_obs]: Likewise.
2738
2739 2012-07-31  Andreas Schwab  <schwab@linux-m68k.org>
2740
2741         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2742         linux_get_siginfo_type.
2743
2744 2012-07-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
2745
2746         * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2747         AT_ENTRY_POINT.
2748         (call_function_by_hand) <ON_STACK>: Call write_memory with
2749         gdbarch_breakpoint_from_pc, if possible.
2750         (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2751         here.
2752
2753 2012-07-31  Yao Qi  <yao@codesourcery.com>
2754
2755         * tracepoint.c: Add 'static' for some variables.
2756
2757 2012-07-31  Yao Qi  <yao@codesourcery.com>
2758
2759         * go32-nat.c: Declare _initialize_go32_nat.
2760         * ser-go32.c: Declare _initialize_ser_dos.
2761         * top.c (do_chdir_cleanup): Add 'static'.
2762
2763 2012-07-30  Keith Seitz  <keiths@redhat.com>
2764
2765         * linespec.c (linespec_lex_number): A number followed
2766         by quotes is a valid number, too.
2767
2768 2012-07-30  Tom Tromey  <tromey@redhat.com>
2769
2770         * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2771
2772 2012-07-30  Ulrich Weigand  <ulrich.weigand@linaro.org>
2773
2774         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2775         attempt to 4-byte-align HW breakpoint addresses for Thumb.
2776
2777 2012-07-30  Andrew Burgess  <aburgess@broadcom.com>
2778
2779         * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2780         invalid or reevaluated to prevent prevent references to possibly
2781         delete'd type objects being left in the varobj.
2782
2783 2012-07-27  Tom Tromey  <tromey@redhat.com>
2784             Jan Kratochvil  <jan.kratochvil@redhat.com>
2785
2786         * copying.awk: Print buffer-read-only and vi ro markers.
2787         * copying.c: Rebuild.
2788         * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2789         * gdbarch.c, gdbarch.h: Rebuild.
2790         * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2791         buffer-read-only and vi ro markers.
2792         * features/arm-with-iwmmxt.c: Rebuild.
2793         * features/arm-with-m-fpa-layout.c: Rebuild.
2794         * features/arm-with-m-vfp-d16.c: Rebuild.
2795         * features/arm-with-m.c: Rebuild.
2796         * features/arm-with-neon.c: Rebuild.
2797         * features/arm-with-vfpv2.c: Rebuild.
2798         * features/arm-with-vfpv3.c: Rebuild.
2799         * features/i386/amd64-avx-linux.c: Rebuild.
2800         * features/i386/amd64-avx.c: Rebuild.
2801         * features/i386/amd64-linux.c: Rebuild.
2802         * features/i386/amd64.c: Rebuild.
2803         * features/i386/i386-avx-linux.c: Rebuild.
2804         * features/i386/i386-avx.c: Rebuild.
2805         * features/i386/i386-linux.c: Rebuild.
2806         * features/i386/i386-mmx-linux.c: Rebuild.
2807         * features/i386/i386-mmx.c: Rebuild.
2808         * features/i386/i386.c: Rebuild.
2809         * features/i386/x32-avx-linux.c: Rebuild.
2810         * features/i386/x32-avx.c: Rebuild.
2811         * features/i386/x32-linux.c: Rebuild.
2812         * features/i386/x32.c: Rebuild.
2813         * features/mips-dsp-linux.c: Rebuild.
2814         * features/mips-linux.c: Rebuild.
2815         * features/mips64-dsp-linux.c: Rebuild.
2816         * features/mips64-linux.c: Rebuild.
2817         * features/rs6000/powerpc-32.c: Rebuild.
2818         * features/rs6000/powerpc-32l.c: Rebuild.
2819         * features/rs6000/powerpc-403.c: Rebuild.
2820         * features/rs6000/powerpc-403gc.c: Rebuild.
2821         * features/rs6000/powerpc-405.c: Rebuild.
2822         * features/rs6000/powerpc-505.c: Rebuild.
2823         * features/rs6000/powerpc-601.c: Rebuild.
2824         * features/rs6000/powerpc-602.c: Rebuild.
2825         * features/rs6000/powerpc-603.c: Rebuild.
2826         * features/rs6000/powerpc-604.c: Rebuild.
2827         * features/rs6000/powerpc-64.c: Rebuild.
2828         * features/rs6000/powerpc-64l.c: Rebuild.
2829         * features/rs6000/powerpc-7400.c: Rebuild.
2830         * features/rs6000/powerpc-750.c: Rebuild.
2831         * features/rs6000/powerpc-860.c: Rebuild.
2832         * features/rs6000/powerpc-altivec32.c: Rebuild.
2833         * features/rs6000/powerpc-altivec32l.c: Rebuild.
2834         * features/rs6000/powerpc-altivec64.c: Rebuild.
2835         * features/rs6000/powerpc-altivec64l.c: Rebuild.
2836         * features/rs6000/powerpc-cell32l.c: Rebuild.
2837         * features/rs6000/powerpc-cell64l.c: Rebuild.
2838         * features/rs6000/powerpc-e500.c: Rebuild.
2839         * features/rs6000/powerpc-e500l.c: Rebuild.
2840         * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2841         * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2842         * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2843         * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2844         * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2845         * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2846         * features/rs6000/powerpc-vsx32.c: Rebuild.
2847         * features/rs6000/powerpc-vsx32l.c: Rebuild.
2848         * features/rs6000/powerpc-vsx64.c: Rebuild.
2849         * features/rs6000/powerpc-vsx64l.c: Rebuild.
2850         * features/rs6000/rs6000.c: Rebuild.
2851         * features/s390-linux32.c: Rebuild.
2852         * features/s390-linux32v1.c: Rebuild.
2853         * features/s390-linux32v2.c: Rebuild.
2854         * features/s390-linux64.c: Rebuild.
2855         * features/s390-linux64v1.c: Rebuild.
2856         * features/s390-linux64v2.c: Rebuild.
2857         * features/s390x-linux64.c: Rebuild.
2858         * features/s390x-linux64v1.c: Rebuild.
2859         * features/s390x-linux64v2.c: Rebuild.
2860         * features/tic6x-c62x-linux.c: Rebuild.
2861         * features/tic6x-c62x.c: Rebuild.
2862         * features/tic6x-c64x-linux.c: Rebuild.
2863         * features/tic6x-c64x.c: Rebuild.
2864         * features/tic6x-c64xp-linux.c: Rebuild.
2865         * features/tic6x-c64xp.c: Rebuild.
2866
2867 2012-07-27  Tom Tromey  <tromey@redhat.com>
2868
2869         * c-exp.y (classify_name): Avoid assignment in condition.
2870
2871 2012-07-27  Roland Schwingel  <roland.schwingel@onevision.com>
2872
2873         * amd64-windows-tdep.c: Include "frame.h".
2874         (amd64_windows_skip_trampoline_code): New function.
2875         (amd64_windows_init_abi): Add trampoline registration.
2876
2877 2012-07-27  Yao Qi  <yao@codesourcery.com>
2878
2879         * tracepoint.c (cur_traceframe_number): Remove.
2880         (set_tfile_traceframe): Remove.
2881         (tfile_trace_find, tfile_fetch_registers): Update callers.
2882         (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2883         (tfile_open, tfile_trace_find): Likewise.
2884
2885 2012-07-27  Yao Qi  <yao@codesourcery.com>
2886
2887         * thread.c (switch_to_thread): Don't call registers_changed.
2888
2889 2012-07-26  Tom Tromey  <tromey@redhat.com>
2890
2891         * Makefile.in (SFILES): Remove objc-exp.y.
2892         (YYFILES): Remove objc-exp.c.
2893         (YYOBJ): Remove objc-exp.o.
2894         (local-maintainer-clean): Don't mention objc-exp.c.
2895         * c-exp.y: Include objc-lang.h.
2896         (%union) <class>: New field.
2897         (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2898         (exp): Clone subscript production for OBJC_LBRAC.  Add various
2899         Objective C productions.
2900         (msglist, msgarglist, msgarg): New productions.
2901         (array_mod, func_mod, operator): Clone productions for
2902         OBJC_LBRAC.
2903         (parse_string_or_char): Handle '@' strings.
2904         (lex_one_token): Return OBJC_LBRAC.  Recognize @selector.
2905         (classify_name): Check la_name_of_this.  Recognize ObjC class
2906         names.
2907         * objc-exp.y: Remove.
2908         * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2909         * objc-lang.h (objc_parse, objc_error): Don't declare.
2910
2911 2012-07-26  Markus Metzger  <markus.t.metzger@intel.com>
2912
2913         * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2914
2915 2012-07-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
2916
2917         * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2918         and decrement.
2919
2920 2012-07-26  Tom Tromey  <tromey@redhat.com>
2921
2922         * copying.c: Rebuild.
2923         * copying.awk: Don't use immediate_quit.  Use 'no_set_class', not
2924         'no_class'.
2925
2926 2012-07-26  Tom Tromey  <tromey@redhat.com>
2927
2928         * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2929         immediate_quit.
2930         (print_objfile_statistics): Likewise.
2931         (maintenance_print_symbols): Likewise.
2932         (maintenance_print_msymbols): Likewise.
2933         (maintenance_print_objfiles): Likewise.
2934         * psymtab.c (print_partial_symbols): Call QUIT.
2935         (maintenance_print_psymbols): Likewise.  Don't modify
2936         immediate_quit.
2937         * copying.c (show_copying_command): Don't modify immediate_quit.
2938         (show_warranty_command): Likewise.
2939         * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2940
2941 2012-07-26  Keith Seitz  <keiths@redhat.com>
2942
2943         * linespec.c (linespec_lexer_lex_number): The input
2944         is also a valid number if the next character is a comma
2945         or colon.
2946
2947 2012-07-26  Joel Brobecker  <brobecker@adacore.com>
2948
2949         * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2950         configure options.
2951
2952 2012-07-26  Tristan Gingold  <gingold@adacore.com>
2953
2954         * machoread.c: Include gdb_bfd.h.
2955
2956 2012-07-26  Tristan Gingold  <gingold@adacore.com>
2957
2958         * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2959         offset.
2960
2961 2012-07-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2962
2963         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2964         SIZE to size_t.
2965         (dwarf2_evaluate_loc_desc): Likewise.
2966         (dwarf2_loc_desc_needs_frame): Likewise.
2967         (locexpr_describe_location_1): Likewise.
2968         * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2969         size_t.
2970         (struct dwarf2_loclist_baton): Likewise.
2971         * dwarf2read.c (struct dwarf_block): Likewise.
2972         (dump_die_shallow): Use pulongest to print dwarf_block.size.
2973         (decode_locdesc): Expand SIZE and I to size_t.
2974
2975 2012-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2976
2977         * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2978
2979 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
2980
2981         * doublest.c (convert_doublest_to_floatformat): If the exponent
2982         is too small, treat the value as zero.  If the exponent is too
2983         large, treat the value as infinity.
2984
2985 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
2986
2987         * configure.ac: Add --enable-lmcheck configure option.
2988         * configure: Regenerate.
2989
2990 2012-07-25  Tom Tromey  <tromey@redhat.com>
2991
2992         * NEWS: Mention maint info bfds.
2993         * gdb_bfd.c (all_bfds): New global.
2994         (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2995         (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2996         New functions.
2997
2998 2012-07-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
2999
3000         * configure.tgt: Add v850*-*-rtems*.
3001
3002 2012-07-25  Tom Tromey  <tromey@redhat.com>
3003
3004         * macrotab.c (macro_bcache_str): Remove cast.
3005
3006 2012-07-25  Hui Zhu  <hui_zhu@mentor.com>
3007
3008         * linespec.c (linespec_lexer_lex_number): Update comments,
3009         change the return and add check to make sure the input is
3010         the decimal numbers.
3011         (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3012         false, call linespec_lexer_lex_string.
3013
3014 2012-07-24  Tom Tromey  <tromey@redhat.com>
3015
3016         * symfile.c (symbol_file_add): Don't open BFD twice.
3017
3018 2012-07-24  Marc Khouzam  <marc.khouzam@ericsson.com>
3019
3020         * breakpoint.c (create_breakpoint): Store condition for pending
3021         breakpoints.
3022
3023 2012-07-24  Andreas Schwab  <schwab@linux-m68k.org>
3024
3025         * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3026         (m68k_return_value): Handle complex types like structures.
3027         (m68k_svr4_return_value): Likewise.
3028
3029 2012-07-24  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3030
3031         * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3032         parameters to bfd_get_section_name.
3033
3034 2012-07-24  Yao Qi  <yao@codesourcery.com>
3035
3036         * cli/cli-setshow.c: Handle case 'var_uinteger'
3037         and 'var_zuninteger' together.  Handle case 'var_integer' and
3038         'var_zinteger' together.
3039
3040 2012-07-23  Keith Seitz  <keiths@redhat.com>
3041
3042         * linespec.c (convert_linespec_to_sal): Don't add
3043         any symbols to the result vector if symbol_to_sal
3044         returns zero.
3045
3046 2012-07-23  Keith Seitz  <keiths@redhat.com>
3047
3048         * linespec.c (decode_objc): Record the function name
3049         in the linespec.
3050
3051 2012-07-23  Tom Tromey  <tromey@redhat.com>
3052
3053         * rs6000-nat.c (add_vmap): Rewrite archive loop.  Fix reference
3054         counting.
3055         * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3056         (map_vmap): Acquire a reference to the BFD.
3057
3058 2012-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
3059
3060         * p-valprint.c (pascal_object_print_value): Replace potentially
3061         unsafe alloca with xmalloc/xfree.
3062         * valops.c (search_struct_method): Likewise.
3063
3064 2012-07-23  Tom Tromey  <tromey@redhat.com>
3065
3066         * solib-svr4.c (enable_break): Update.
3067         * bfd-target.h (target_bfd_reopen): Update documentation.
3068
3069 2012-07-23  Tom Tromey  <tromey@redhat.com>
3070
3071         * symfile.c (separate_debug_file_exists): Update.
3072         (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3073         (reread_symbols): Update.
3074         * elfread.c (build_id_verify): Update.
3075         * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3076         bfd_open_maybe_remote.
3077
3078 2012-07-23  Tom Tromey  <tromey@redhat.com>
3079
3080         * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3081
3082 2012-07-23  Tom Tromey  <tromey@redhat.com>
3083
3084         * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3085         and 'abfd'.
3086         * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3087         and 'abfd'.
3088         * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3089         * machoread.c (macho_add_oso_symfile): Make a cleanup for
3090         'abfd'.
3091         (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3092         * objfiles.c (allocate_objfile): Acquire a new reference.
3093         * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3094         * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3095         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3096         a cleanup for 'nbfd'.
3097         * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3098         for 'nbfd'.
3099         * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3100         make a cleanup for 'abfd'.
3101         (symbol_file_add): Make a BFD cleanup.
3102
3103 2012-07-23  Tom Tromey  <tromey@redhat.com>
3104
3105         * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3106         (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3107         * corelow.c (core_open): Use gdb_bfd_fopen.
3108         * dsrec.c (load_srec): Use gdb_bfd_openr.
3109         * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3110         * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3111         * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3112         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3113         (gdb_bfd_fdopenr): New functions.
3114         * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3115         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3116         (gdb_bfd_fdopenr): Declare.
3117         * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3118         * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3119         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3120         gdb_bfd_openr_next_archived_file.
3121         (macho_check_dsym): Use gdb_bfd_openr.
3122         (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3123         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3124         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3125         * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3126         gdb_bfd_openr.
3127         * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3128         * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3129         gdb_bfd_openr_next_archived_file.
3130         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3131         Use gdb_bfd_openr.
3132         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3133         gdb_bfd_openr.
3134         * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3135         * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3136         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3137         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3138         (symfile_bfd_open): Use gdb_bfd_fopen.
3139         (generic_load): Use gdb_bfd_openr.
3140         * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3141
3142 2012-07-23  Tom Tromey  <tromey@redhat.com>
3143
3144         * bfd-target.c (target_bfd_reopen): Update.
3145         * cli/cli-dump.c (bfd_openr_with_cleanup)
3146         (bfd_openw_with_cleanup): Update.
3147         * corelow.c (core_open): Update.
3148         * dsrec.c (load_srec): Update.
3149         * exec.c (exec_file_attach): Update.
3150         * gcore.c (create_gcore_bfd): Update.
3151         * gdb_bfd.c (gdb_bfd_ref): Return void.
3152         (gdb_bfd_open): Update.
3153         * gdb_bfd.h (gdb_bfd_ref): Return void.
3154         Update comments.
3155         * jit.c (jit_bfd_try_read_symtab): Update.
3156         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3157         * machoread.c (macho_symfile_read_all_oso): Update.
3158         (macho_check_dsym): Update.
3159         * procfs.c (insert_dbx_link_bpt_in_file): Update.
3160         * remote-m32r-sdi.c (m32r_load): Update.
3161         * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3162         * rs6000-nat.c (add_vmap): Update.
3163         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3164         Update.
3165         * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3166         * solib-spu.c (spu_bfd_open): Update.
3167         * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3168         * spu-linux-nat.c (spu_bfd_open): Update.
3169         * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3170         (generic_load): Update.
3171         * windows-nat.c (windows_make_so): Update.
3172
3173 2012-07-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
3174
3175         * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3176
3177 2012-07-20  Jeff Kenton  <jkenton@tilera.com>
3178
3179         * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3180         SIGTRAMP_FRAME unwinding.
3181
3182 2012-07-20  Doug Evans  <dje@google.com>
3183
3184         * NEWS: Document new options "set/show use-deprecated-index-sections",
3185         and delete reference to --use-deprecated-index-sections.
3186         * symfile.h (use_deprecated_index_sections): Delete.
3187         * dwarf2read.c (use_deprecated_index_sections): Make static.
3188         (read_index_from_section): Update wording of how to load
3189         deprecated index sections.
3190         (_initialize_dwarf2_read): New options
3191         "set/show use-deprecated-index-sections".
3192         * main.c (captured_main): Delete --use-deprecated-index-sections.
3193
3194 2012-07-20  Pedro Alves  <palves@redhat.com>
3195
3196         PR threads/11692
3197         PR gdb/12203
3198
3199         * infrun.c (handle_inferior_event) <new thread>: Don't special
3200         case minus_one_ptid.
3201         <TARGET_WAITKIND_SPURIOUS>: Ditto.
3202         * linux-thread-db.c (thread_get_info_callback): Don't return early
3203         if the thread is zombie.
3204         (thread_from_lwp): Change return type to void.  Rewrite stale
3205         comment.
3206         (attach_thread): Don't return early if the thread is zombie,
3207         instead set its "dying" flag.
3208         (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3209         (find_new_threads_callback): Don't return early if the thread is
3210         zombie.
3211
3212 2012-07-20  Pedro Alves  <palves@redhat.com>
3213
3214         * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3215         * target.c (target_wait): Likewise.
3216         (str_comma_list_concat_elem, do_option, target_options_to_string):
3217         New functions.
3218         * target.h (target_options_to_string): Declare.
3219
3220 2012-07-20  Jan Kratochvil <jan.kratochvil@redhat.com>
3221             Tom Tromey  <tromey@redhat.com>
3222
3223         * dwarf2read.c (dwarf_decode_macros)
3224         <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3225         DW_MACRO_GNU_transparent_include_alt>: New cases.
3226         (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3227         DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3228
3229 2012-07-20  Tom Tromey  <tromey@redhat.com>
3230
3231         * dwarf2read.c (try_open_dwo_file): Don't call
3232         gdb_bfd_stash_filename.
3233
3234 2012-07-20  Pedro Alves  <palves@redhat.com>
3235
3236         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3237         (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3238         (i386_process_record): Tweak description comments.
3239
3240 2012-07-20  Pedro Alves  <palves@redhat.com>
3241
3242         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3243         (i386_process_record): Use record_read_memory.
3244         * record.c (record_read_memory): New function.
3245         (record_arch_list_add_mem, record_exec_insn): Use
3246         record_read_memory.
3247         * record.h (record_read_memory): Declare.
3248
3249 2012-07-20  Yao Qi  <yao@codesourcery.com>
3250
3251         * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3252         NULL for xfree.
3253
3254 2012-07-19  Pedro Alves  <palves@redhat.com>
3255
3256         * record.c (record_resume): Ask the target beneath to report all
3257         signals.
3258
3259 2012-07-19  Doug Evans  <dje@google.com>
3260
3261         * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3262         there's no section at address zero.
3263         (dwarf2_record_block_ranges): Ditto.
3264
3265 2012-07-19  Yao Qi  <yao@codesourcery.com>
3266
3267         * command.h, remote.c: Fix a typo in comment.
3268
3269 2012-07-19  Tom Tromey  <tromey@redhat.com>
3270
3271         PR exp/13206:
3272         * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3273         * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3274         OP_DECLTYPE>: New cases.
3275         * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3276         (type_exp): Add new productions.
3277         (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3278         and decltype.
3279         * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3280         New case.
3281         * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3282         OP_DECLTYPE>: New case.
3283         * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3284         New case.
3285         * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3286         * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3287
3288 2012-07-19  Tom Tromey  <tromey@redhat.com>
3289
3290         * c-exp.y (enum token_flags): New.
3291         (struct token) <cxx_only>: Remove.
3292         <flags>: New field.
3293         (tokentab3, tokentab2, ident_tokens): Update.
3294         (lex_one_token): Update.  Handle FLAG_SHADOW.
3295
3296 2012-07-19  Tom Tromey  <tromey@redhat.com>
3297
3298         * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3299         * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3300         UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3301         * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE.  Update
3302         for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.  Use
3303         type_exp production where appropriate.
3304         * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3305         <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3306         <UNOP_MEMVAL_TYPE>: New case.
3307         (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3308         (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3309         * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3310         <UNOP_MEMVAL_TYPE>: New case.
3311         (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3312         UNOP_REINTERPRET_CAST>: Update.
3313         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3314         * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3315         UNOP_REINTERPRET_CAST>: Update.
3316         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3317         * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3318         * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3319         constants.
3320
3321 2012-07-19  Yao Qi  <yao@codesourcery.com>
3322             Jan Kratochvil <jan.kratochvil@redhat.com>
3323
3324         * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3325         and case 'var_optional_filename' together.
3326         * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3327         instead of add_setshow_optional_filename_cmd for setshow command
3328         'args'.  Set completer for 'set args'.
3329
3330 2012-07-18  Doug Evans  <dje@google.com>
3331
3332         * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3333         * common/gdb_vecs.c: New file, contents from utils.c.
3334         * common/host-defs.h: New file, contents from defs.h.
3335         * utils.h: New file, contents from defs.h.
3336         * defs.h: Move all declarations of objects defined in utils.c
3337         to utils.h (except QUIT() and related).
3338         #include "utils.h", "host-defs.h".
3339         * probe.h (probe_p): Move here from gdb_vecs.h.
3340         * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3341         * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3342         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3343         * Makefile.in (SFILES): Add common/gdb_vecs.c.
3344         (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3345         (COMMON_OBS): Add gdb_vecs.o.
3346         (gdb_vecs.o): New rule.
3347
3348 2012-07-18  Keith Seitz  <keiths@redhat.com>
3349
3350         * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3351         parameter.  If non-zero, use SYMNAME as the canonical name
3352         for the SaL.
3353         Update all callers.
3354         (convert_linespec_to_sals): Use add_sal_to_sals for
3355         expressions, too.
3356         (decode_line_full): No need to "fill in missing canonical names"
3357         anymore. Simply make cleanups for the allocated names.
3358
3359 2012-07-18  Keith Seitz  <keiths@redhat.com>
3360
3361         * linespec.c (struct linespec): Constify expression,
3362         source_filename, function_name, and label_name.
3363         (symbol_not_found_error): Make all parameters const.
3364         (linespec_parser_delete): No need to check for NULL
3365         when using xfree. Cast const char * to char * for xfree.
3366
3367 2012-07-18  Keith Seitz  <keiths@redhat.com>
3368
3369         * breakpoint.c (invalid_thread_id_error): New function.
3370         (find_condition_and_thread): Use invalid_thread_id_error.
3371         (watch_command_1): Likewise.
3372
3373 2012-07-18  Tom Tromey  <tromey@redhat.com>
3374
3375         * cc-with-index.sh, cc-with-dwz.sh: Remove.
3376         * contrib/cc-with-tweaks.sh: New file.
3377
3378 2012-07-18  Tom Tromey  <tromey@redhat.com>
3379
3380         * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
3381         (locate_dwz_sections): Recognize .gdb_index.
3382         (create_cus_from_index_list): New function.
3383         (create_cus_from_index): Use it.  Handle .dwz data.
3384         (read_index_from_section): New function, extracted from
3385         dwarf2_read_index.
3386         (dwarf2_read_index): Use it.  Read .gdb_index from dwz file,
3387         if needed.
3388
3389 2012-07-18  Tom Tromey  <tromey@redhat.com>
3390
3391         * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
3392         (struct dwarf2_per_cu_data) <length>: No longer bitfield.
3393         <is_dwz>: New field.
3394         (struct dwz_file): New.
3395         (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
3396         (locate_dwz_sections, dwarf2_get_dwz_file)
3397         (get_abbrev_section_for_cu): New functions.
3398         (error_check_comp_unit_head, read_and_check_comp_unit_head)
3399         (read_and_check_type_unit_head): Add abbrev_section argument.
3400         (create_debug_types_hash_table): Update.
3401         (init_cutu_and_read_dies): Use proper abbrev section.
3402         (init_cutu_and_read_dies_no_follow): Likewise.
3403         (set_partial_user): Do nothing if PST==NULL.
3404         (read_comp_units_from_section): New function.
3405         (create_all_comp_units): Use it.
3406         (scan_partial_symbols, partial_die_parent_scope): Update.
3407         (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3408         (process_imported_unit_die, read_partial_die): Handle .dwz files.
3409         (find_partial_die): Add offset_in_dwz argument.  Update.
3410         (guess_partial_die_structure_name, fixup_partial_die): Update.
3411         (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
3412         DW_FORM_GNU_strp_alt.
3413         (read_indirect_string_from_dwz): New function.
3414         (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
3415         (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3416         (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
3417         (follow_die_offset): Add offset_in_dwz argument.
3418         (follow_die_ref, dwarf2_fetch_die_location_block): Update.
3419         (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
3420         (dwarf_decode_macro_bytes): Add section_is_dwz argument.
3421         Handle new macro forms.
3422         (dwarf_decode_macros): Update.
3423         (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
3424         (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
3425         (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
3426         (create_debug_types_hash_table): Use correct abbrev section.
3427         (get_debug_line_section): New function.
3428         (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
3429         (process_full_comp_unit): Pass 'required' argument to
3430         end_symtab_get_static_block.
3431         * buildsym.h (end_symtab_get_static_block): Update.
3432         * buildsym.c (end_symtab_get_static_block): Add 'required'
3433         argument.
3434         (end_symtab, end_expandable_symtab): Update.
3435
3436 2012-07-18  Tom Tromey  <tromey@redhat.com>
3437
3438         * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3439         (pagesize): Remove.
3440         (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3441         (zlib_decompress_section): Remove.
3442         (dwarf2_read_section): Use gdb_bfd_map_section.
3443         (munmap_section_buffer): Remove.
3444         (free_dwo_file, dwarf2_per_objfile_free): Don't use
3445         munmap_section_buffer.
3446         * gdb_bfd.c: Include zlib.h, sys/mman.h.
3447         (struct gdb_bfd_section_data): New.
3448         (free_one_bfd_section): New function.
3449         (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3450         (get_section_descriptor, zlib_decompress_section)
3451         (gdb_bfd_map_section): New functions.
3452         * gdb_bfd.h (gdb_bfd_map_section): Declare.
3453
3454 2012-07-18  Tom Tromey  <tromey@redhat.com>
3455
3456         * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3457
3458 2012-07-18  Tom Tromey  <tromey@redhat.com>
3459
3460         * gdb_bfd.c (struct gdb_bfd_data): New.
3461         (gdb_bfd_cache): New global.
3462         (struct gdb_bfd_cache_search): New.
3463         (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3464         (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3465         * gdb_bfd.h (gdb_bfd_open): Declare.
3466
3467 2012-07-18  Tom Tromey  <tromey@redhat.com>
3468
3469         * utils.c (make_cleanup_bfd_unref): Rename from
3470         make_cleanup_bfd_close.
3471         * defs.h (make_cleanup_bfd_unref): Rename from
3472         make_cleanup_bfd_close.
3473         * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3474         (bfd_openw_with_cleanup): Update.
3475         * corelow.c (core_open): Update.
3476         * dsrec.c (load_srec): Update.
3477         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3478         * remote-m32r-sdi.c (m32r_load): Update.
3479         * remote-mips.c (mips_load_srec): Update.
3480         (pmon_load_fast): Update.
3481         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3482         Update.
3483         (darwin_bfd_open): Update.
3484         * solib.c (solib_bfd_fopen): Update.
3485         * symfile-mem.c (symbol_file_add_from_memory): Update.
3486         * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3487         (symfile_bfd_open): Update.
3488         (generic_load): Update.
3489
3490 2012-07-18  Tom Tromey  <tromey@redhat.com>
3491
3492         * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3493         (pmon_load_fast): Likewise.
3494         * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3495         (m32r_upload_command): Likewise.
3496         * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3497         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3498         Use make_cleanup_bfd_close.
3499
3500 2012-07-18  Tom Tromey  <tromey@redhat.com>
3501
3502         * symfile.c (symfile_bfd_open): Don't copy name.  Call
3503         gdb_bfd_stash_filename.
3504         (load_command): Open the new BFD before freeing the old.
3505         (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3506         * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3507         Call gdb_bfd_stash_filename.
3508         * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3509         * solib-spu.c (spu_bfd_fopen): Don't copy name.  Call
3510         gdb_bfd_stash_filename.
3511         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3512         Free found_pathname.
3513         * rs6000-nat.c (add_vmap): Don't copy filename.  Call
3514         gdb_bfd_stash_filename.
3515         * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3516         * machoread.c (macho_add_oso_symfile): Call
3517         gdb_bfd_stash_filename.
3518         (macho_symfile_read_all_oso): Arrange to free archive_name.  Call
3519         gdb_bfd_stash_filename.
3520         (macho_check_dsym): Don't copy filename.  Call
3521         gdb_bfd_stash_filename.
3522         * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3523         * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3524         * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3525         * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3526         * exec.c (exec_close): Don't free the BFD's filename.
3527         (exec_file_attach): Don't copy the filename.  Call
3528         gdb_bfd_stash_filename.
3529         * corelow.c (core_close): Don't free the BFD's filename.
3530         (core_open): Call gdb_bfd_stash_filename.
3531         * corefile.c (reopen_exec_file): Remove #if 0 code.
3532         * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename.  Free
3533         pathname.
3534         * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3535
3536 2012-07-18  Tom Tromey  <tromey@redhat.com>
3537
3538         * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3539         gdb_bfd_unref.
3540         (free_dwo_file): Use gdb_bfd_unref.
3541         * cli/cli-dump.c: Include gdb_bfd.h.
3542         (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3543         (bfd_openr_with_cleanup): Likewise.
3544         * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3545         gdb_bfd_unref.
3546         * utils.c: Include gdb_bfd.h.
3547         (do_bfd_close_cleanup): Use gdb_bfd_unref.
3548         * symfile.c: Include gdb_bfd.h.
3549         (separate_debug_file_exists): Use gdb_bfd_unref.
3550         (bfd_open_maybe_remote): Use gdb_bfd_ref.
3551         (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3552         (generic_load): Use gdb_bfd_ref.
3553         (reread_symbols): Use gdb_bfd_unref.
3554         * symfile-mem.c: Include gdb_bfd.h.
3555         (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3556         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3557         * solib.c: Include gdb_bfd.h.
3558         (solib_bfd_fopen): Use gdb_bfd_ref.
3559         (solib_bfd_open): Use gdb_bfd_unref.
3560         (free_so_symbols): Use gdb_bfd_unref.
3561         (reload_shared_libraries_1): Use gdb_bfd_unref.
3562         * solib-spu.c: Include gdb_bfd.h.
3563         (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3564         * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3565         gdb_bfd_unref.
3566         * solib-frv.c: Include gdb_bfd.h.
3567         (enable_break2): Use gdb_bfd_unref.
3568         * solib-dsbt.c: Include gdb_bfd.h.
3569         (enable_break2): Use gdb_bfd_unref.
3570         * solib-darwin.c: Include gdb_bfd.h.
3571         (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3572         gdb_bfd_unref.
3573         (darwin_bfd_open): Use gdb_bfd_unref.
3574         * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3575         * remote-mips.c: Include gdb_bfd.h.
3576         (mips_load_srec): Use gdb_bfd_ref.
3577         (pmon_load_fast): Use gdb_bfd_ref.
3578         * remote-m32r-sdi.c: Include gdb_bfd.h.
3579         (m32r_load): Use gdb_bfd_ref.
3580         * record.c: Include gdb_bfd.h.
3581         (record_save_cleanups): Use gdb_bfd_unref.
3582         (cmd_record_save): Use gdb_bfd_unref.
3583         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3584         gdb_bfd_unref.
3585         * objfiles.h (gdb_bfd_close_or_warn): Remove.
3586         (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3587         * objfiles.c: Include gdb_bfd.h.
3588         (free_objfile): Use gdb_bfd_unref.
3589         (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3590         gdb_bfd.c.
3591         * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3592         (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3593         (macho_check_dsym): Likewise.
3594         * m32r-rom.c: Include gdb_bfd.h.
3595         (m32r_load): Use gdb_bfd_ref.
3596         (m32r_upload_command): Use gdb_bfd_ref.
3597         * jit.c: Include gdb_bfd.h.
3598         (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3599         * gdb_bfd.h: New file.
3600         * gdb_bfd.c: New file.
3601         * gcore.c: Include gdb_bfd.h.
3602         (create_gcore_bfd): Use gdb_bfd_ref.
3603         (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3604         (gcore_command): Use gdb_bfd_unref.
3605         * exec.c: Include gdb_bfd.h.
3606         (exec_close): Use gdb_bfd_unref.
3607         (exec_close_1): Use gdb_bfd_unref.
3608         (exec_file_attach): Use gdb_bfd_ref.
3609         * elfread.c: Include gdb_bfd.h.
3610         (build_id_verify): Use gdb_bfd_unref.
3611         * dsrec.c: Include gdb_bfd.h.
3612         (load_srec): Use gdb_bfd_ref.
3613         * corelow.c: Include gdb_bfd.h.
3614         (core_close): Use gdb_bfd_unref.
3615         (core_open): Use gdb_bfd_ref.
3616         * bfd-target.c: Include gdb_bfd.h.
3617         (target_bfd_xclose): Use gdb_bfd_unref.
3618         (target_bfd_reopen): Use gdb_bfd_ref.
3619         * Makefile.in (SFILES): Add gdb_bfd.c.
3620         (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3621         (COMMON_OBS): Add gdb_bfd.o.
3622
3623 2012-07-18  Keith Seitz  <keiths@redhat.com>
3624
3625         * breakpoint.c (find_condition_and_thread): Initialize
3626         TASK and REST.
3627         (create_breakpiont): find_condition_and_thread will now
3628         initialize COND_STRING, THREAD, and REST (and TASK).
3629         (addr_string_to_sals): Likewise.
3630
3631 2012-07-18  Pedro Alves  <palves@redhat.com>
3632
3633         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3634         Pull the single step breakpoints out of the target.
3635
3636 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
3637
3638         * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3639         * stap-probe.c (compile_probe_arg): Likewise.
3640
3641 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
3642
3643         * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3644         (elf_compile_to_ax): Likewise.
3645         * infrun.c (insert_exception_resume_from_probe): Likewise.
3646         (check_exception_resume): Remove `objfile' variable.
3647         * probe.c (find_probe_by_pc): Remove `objfile' argument.
3648         (struct probe_and_objfile, probe_and_objfile_s): Delete.
3649         (collect_probes): Adjust return value to `VEC (probe_p) *'.
3650         (compare_entries): Rename to...
3651         (compare_probes): ...this.  Adjust function to work with
3652         `struct probe *'.  Rename variables `ea' and `eb' to `pa' and `pb'
3653         respectively.
3654         (gen_ui_out_table_header_info): Adjust `probes' argument to be
3655         `VEC (probe_p) *'.
3656         (print_ui_out_info): Adjust argument to be `struct probe *'.
3657         (info_probes_for_ops): Adjust internal computations to use
3658         `VEC (probe_p) *'.
3659         (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3660         * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3661         gen_info_probes_table_values>: Remove `objfile' argument.
3662         (struct probe) <objfile>: New field.
3663         (find_probe_by_pc): Remove `objfile' argument.
3664         * stap-probe.c (stap_parse_probe_arguments): Likewise.
3665         (stap_get_probe_argument_count): Likewise.
3666         (stap_get_arg): Likewise.
3667         (stap_evaluate_probe_argument): Likewise.
3668         (stap_compile_to_ax): Likewise.
3669         (compile_probe_arg): Refactor not to pass `objfile' anymore.
3670         (handle_stap_probe): Fill `objfile' field from `struct probe'.
3671         (stap_gen_info_probes_table_header): Remove `objfile' argument.
3672         * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3673         sym_compile_to_ax>: Likewise.
3674
3675 2012-07-18  Terry Guo  <terry.guo@arm.com>
3676
3677         PR 14329
3678         * defs.h (GDB_MI_MSG_WIDTH): New.
3679         * ser_base (ser_base_read_error_fd): New function.
3680         (do_ser_base_readchar): Poll error file descriptor as well as
3681         standard output.
3682         (generic_readchar): Refactor error handling.
3683
3684 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
3685
3686         * NEWS: Create a new section for the next release branch.
3687         Rename the section of the current branch, now that it has
3688         been cut.
3689
3690 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
3691
3692         GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3693         * version.in: Bump version to 7.5.50.20120718-cvs.
3694
3695 2012-07-17  Keith Seitz  <keiths@redhat.com>
3696
3697         * linespec.c (linespec_parse_line_offset): Make parameter
3698         const.
3699
3700 2012-07-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
3701
3702         PR 11914
3703         * f-valprint.c (info_common_command): New variable frame_id.
3704         Reinitialize FI form FRAME_ID after each print_variable_and_value.
3705         * printcmd.c (print_variable_and_value): Extend function comment.
3706         Add comment for invalidated FRAME.
3707         * stack.c (backtrace_command_1): New variable frame_id.  Reinitialize
3708         FI form FRAME_ID after each print_frame_local_vars.
3709         (struct print_variable_and_value_data): Change frame to frame_id.
3710         (do_print_variable_and_value): New variable frame, initialize it from
3711         p->frame_id.  Add comment for invalidated FRAME.
3712         (print_frame_local_vars, print_frame_arg_vars): New function comment.
3713         Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization.  Add comment
3714         for invalidated FRAME.
3715
3716 2012-07-16  Marc Khouzam  <marc.khouzam@ericsson.com>
3717             Pedro Alves  <palves@redhat.com>
3718
3719         * linux-nat.c (linux_nat_detach): Don't unregister from the event
3720         loop.
3721
3722 2012-07-16  Tom Tromey  <tromey@redhat.com>
3723
3724         * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3725
3726 2012-07-15  Doug Evans  <dje@google.com>
3727
3728         * dwarf2read.c (stmt_list_hash): New struct.
3729         (type_unit_group): Embed "per_cu" member, remove pointer.
3730         New union member "t", move member "tus" into it, all uses updated.
3731         New member "hash", replaces member "line_offset, all uses updated.
3732         (quick_file_names): Replace member "offset" with "hash", all uses
3733         updated.
3734         (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3735         (hash_file_name_entry, eq_file_name_entry): Call them.
3736         (hash_type_unit_group, eq_type_unit_group): Ditto.
3737         (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3738         (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3739         (dw2_get_file_names): Update.
3740         (create_type_unit_group): Replace "per_cu" arg with "cu".
3741         All callers updated.  Fix "quick" (.gdb_index) handling.
3742         (get_type_unit_group): Replace "per_cu" arg with "cu".
3743         All callers updated.
3744         (build_type_unit_groups): Don't reset tu_stats.
3745
3746         * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3747         "tab_cur_size".  Change member "tab" to be a htab_t.
3748         (create_filename_seen_cache): Update.
3749         (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3750         (filename_seen): Update.
3751
3752 2012-07-13  Doug Evans  <dje@google.com>
3753
3754         * symtab.c (filename_seen): Update comment.
3755
3756 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3757             Doug Evans  <dje@google.com>
3758
3759         * buildsym.c (end_symtab_1): Split it to ...
3760         (end_symtab_get_static_block): ... this ...
3761         (end_symtab_from_static_block): ... and this function.
3762         (end_symtab, end_expandable_symtab): Call them.
3763         * buildsym.h (end_symtab_get_static_block)
3764         (end_symtab_from_static_block): New declarations.
3765         * dwarf2read.c (process_full_comp_unit): New variable static_block.
3766         Set its valid CU ranges.
3767
3768 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3769
3770         * dwarf2loc.c (disassemble_dwarf_expression): Handle
3771         DW_OP_GNU_parameter_ref.
3772
3773 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3774
3775         * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3776         read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3777
3778 2012-07-13  Doug Evans  <dje@google.com>
3779
3780         * symtab.c (output_source_filename): Delete unnecessary forward decl.
3781         (filename_seen_cache): New struct.
3782         (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3783         (create_filename_seen_cache): New function.
3784         (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3785         (filename_seen): Delete arg "first".  New arg "cache".  All callers
3786         updated.
3787         (output_source_filename_data): New struct.
3788         (output_source_filename): Delete arg "first".  New arg "data".
3789         All callers updated.
3790         (sources_info): Delete local "first".  New locals "data", "cleanups".
3791         Rewrite to use filename_seen_cache.
3792         (add_partial_filename_data): Delete member "first".  New member
3793         "filename_seen_cache".  All uses updated.
3794         (make_source_files_completion_list): Rewrite to use
3795         filename_seen_cache.
3796
3797 2012-07-12  Doug Evans  <dje@google.com>
3798
3799         * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3800
3801 2012-07-10  Doug Evans  <dje@google.com>
3802
3803         PR gdb/13498
3804         * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3805         all_type_unit_groups, type_unit_groups, tu_stats.
3806         (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3807         All uses updated.  Add type_unit_group to union "s".
3808         (type_unit_group): New struct.
3809         (IS_TYPE_UNIT_GROUP): New macro.
3810         (abbrev_table): Delete unused member "section".
3811         (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3812         (dw2_get_cu): Assert not used with type_unit_group.
3813         (dw2_get_primary_cu): New function.
3814         (dw2_build_type_unit_groups_reader): New function.
3815         (dw2_build_type_unit_groups): New function.
3816         (dw2_get_file_names): Assert not called on type units.
3817         (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3818         Redo loop to iterate over type unit groups instead of type units.
3819         (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3820         (read_abbrev_offset): New function.
3821         (init_cutu_and_read_dies): New arg "abbrev_table".  All callers
3822         updated.
3823         (create_partial_symtab): New function.
3824         (process_psymtab_comp_unit_reader): Assert not used with type units.
3825         Call create_partial_symtab.
3826         (process_psymtab_type_unit): Delete.
3827         (hash_type_unit_group, eq_type_unit_group): New functions.
3828         (allocate_type_unit_groups_table): New function.
3829         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3830         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3831         (create_type_unit_group, get_type_unit_group): New functions.
3832         (tu_abbrev_offset): New struct.
3833         (sort_tu_by_abbrev_offset): New function.
3834         (add_type_unit_group_to_table): New function.
3835         (build_type_unit_groups): New function.
3836         (build_type_psymtabs_reader): New function.
3837         (build_type_psymtab_dependencies): New function.
3838         (build_type_psymtabs): Rewrite.
3839         (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3840         is seen in a type unit.
3841         (process_queue): Move symtab expansion debugging printfs here.
3842         Call process_full_type_unit for type units.
3843         (compute_symtab_includes): Assert not called for type units.
3844         (process_cu_includes): Don't call compute_symtab_includes for
3845         type units.
3846         (process_full_type_unit): New function.
3847         (process_imported_unit_die): Flag an error if called for type units.
3848         (handle_DW_AT_stmt_list): Delete arg "want_line_info".  All callers
3849         updated.  Assert not called for type units.
3850         (read_file_scope): Call dwarf2_start_symtab.
3851         (setup_type_unit_groups): New function.
3852         (read_type_unit_scope): Rewrite.
3853         (abbrev_table_read_table): Initialize abbrev_table->offset.
3854         (abbrev_table_free_cleanup): New function.
3855         (dwarf2_start_symtab): New function.
3856         (load_full_type_unit): Assert not called for type unit groups.
3857         * buildsym.c (finish_block_internal): New arg "expandable".
3858         All callers updated.
3859         (start_symtab): Move most contents to ...
3860         (restart_symtab): ... here.  New function.
3861         (reset_symtab_globals): New function.
3862         (end_symtab_1): Renamed from end_symtab.  New arg "expandable".
3863         Call reset_symtab_globals.
3864         (end_symtab, end_expandable_symtab): New functions.
3865         (set_missing_symtab, augment_type_symtab): New functions.
3866         * buildsym.h (end_expandable_symtab): Declare.
3867         (augment_type_symtab, restart_symtab): Declare.
3868         * psympriv.h (struct partial_symtab): New member "anonymous".
3869         * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3870         anonymous psymtabs.
3871         (read_psymtabs_with_filename): Ditto.
3872         (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3873         (expand_symtabs_matching_via_partial): Ditto.
3874         (dump_psymtab): Update.
3875         * dictionary.c (dict_add_pending): New function.
3876         * dictionary.h (dict_add_pending): Declare.
3877
3878 2012-07-09  Doug Evans  <dje@google.com>
3879
3880         * buildsym.c (start_subfile): Remove unnecessary check for
3881         name == NULL.
3882
3883         * psymtab.c (allocate_psymtab): Use host_address_to_string.
3884
3885         * dwarf2read.c (load_full_type_unit): Simplify.
3886
3887         * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3888         to struct signatured_type **.  All uses updated.
3889
3890         * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3891         All callers updated.
3892
3893 2012-07-09  Tom Tromey  <tromey@redhat.com>
3894
3895         * c-exp.y (check_parameter_typelist): New function.
3896         (parameter_typelist): Call it.
3897         * eval.c (make_params): Handle '(void)' case.
3898         * gdbtypes.c (lookup_function_type_with_arguments): Handle
3899         '(void)' case.
3900
3901 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3902
3903         * common/linux-ptrace.c: Include gdb_assert.h.
3904         <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3905         <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3906         stdint.h.
3907         (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3908         functions.
3909         * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3910         * linux-nat.c (linux_child_post_attach)
3911         (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3912
3913 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3914
3915         * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3916         nptl <2.7 bug workaround for core files.
3917
3918 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3919
3920         * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3921         clearing.
3922         (save_siginfo): Remove.
3923         (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3924         call.
3925         (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3926         (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3927         * linux-nat.h (struct lwp_info): Remove field siginfo.
3928
3929 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3930
3931         Code cleanup for the next patch.
3932         * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3933         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3934         call for it.
3935         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3936         (ia64_linux_stopped_data_address):
3937         * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3938         the return value.
3939         * linux-nat.h (linux_nat_get_siginfo): Likewise.
3940         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3941         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3942         call for it.
3943
3944 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3945
3946         PR 14321
3947         * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3948         Increase buffer sizes to 2x we need, not just 2x of the previous size.
3949
3950 2012-07-06  Tom Tromey  <tromey@redhat.com>
3951
3952         * c-exp.y (DOTDOTDOT): New token.
3953         (func_mod, exp): Use parameter_typelist.
3954         (parameter_typelist): New production.
3955         (tokentab3): Add "..." token.
3956         * eval.c (make_params): Handle varargs.
3957         * gdbtypes.c (lookup_function_type_with_arguments): Handle
3958         varargs.
3959
3960 2012-07-06  Tom Tromey  <tromey@redhat.com>
3961
3962         PR exp/9608:
3963         * c-exp.y (%union) <tvec>: Change type.
3964         (func_mod): Now uses <tvec> type.
3965         (exp): Update for tvec change.
3966         (direct_abs_decl): Push the typelist.
3967         (func_mod): Return a typelist.
3968         (nonempty_typelist): Update for tvec change.
3969         * gdbtypes.c (lookup_function_type_with_arguments): New function.
3970         * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3971         * parse.c (pop_type_list): New function.
3972         (push_typelist): New function.
3973         (follow_types): Handle tp_function_with_arguments.
3974         * parser-defs.h (type_ptr): New typedef.  Define a VEC.
3975         (enum type_pieces) <tp_function_with_arguments>: New constant.
3976         (union type_stack_elt) <typelist_val>: New field.
3977         (push_typelist): Declare.
3978
3979 2012-07-06  Tom Tromey  <tromey@redhat.com>
3980
3981         * c-exp.y (%union) <type_stack>: New field.
3982         (abs_decl, direct_abs_decl): Use <type_stack> type.  Update.
3983         (ptr_operator_ts): New production.
3984         (ptype): Update.
3985         * parse.c (type_stack_reserve): New function.
3986         (check_type_stack_depth): Use it.
3987         (pop_type_stack, append_type_stack, push_type_stack)
3988         (get_type_stack, type_stack_cleanup): New functions.
3989         (follow_types): Handle tp_type_stack.
3990         (_initialize_parse): Simplify initialization.
3991         * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3992         constant.
3993         (union type_stack_elt) <stack_val>: New field.
3994         (get_type_stack, append_type_stack, push_type_stack)
3995         (type_stack_cleanup): Declare.
3996
3997 2012-07-06  Tom Tromey  <tromey@redhat.com>
3998
3999         * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4000         Remove.
4001         (struct type_stack): New.
4002         * parse.c (type_stack, type_stack_size, type_stack_depth):
4003         Remove.
4004         (type_stack): New global.
4005         (parse_exp_in_context, check_type_stack_depth)
4006         (insert_into_type_stack, insert_type, push_type, push_type_int)
4007         (insert_type_address_space, pop_type, pop_type_int)
4008         (_initialize_parse): Update.
4009
4010 2012-07-06  Tom Tromey  <tromey@redhat.com>
4011
4012         * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4013         Remove %type.
4014
4015 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4016
4017         * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4018
4019 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4020             Jan Kratochvil  <jan.kratochvil@redhat.com>
4021
4022         * cp-valprint.c (cp_print_value): Replace potentially unsafe
4023         alloca with xmalloc/xfree.
4024
4025 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4026
4027         * MAINTAINERS (Write After Approval): Add myself to the list.
4028
4029 2012-07-05  Doug Evans  <dje@google.com>
4030
4031         * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4032
4033 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
4034
4035         * ax-gdb.c (cli/cli-utils.h): New include.
4036         (linespec.h): Ditto.
4037         (agent_eval_command_one): New function.
4038         (agent_command_1): Ditto.
4039         (agent_command): Call function agent_command_1.
4040         (agent_eval_command): Ditto.
4041         (_initialize_ax_gdb): Change help for "maint agent"
4042         and "maint agent-eval".
4043
4044 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
4045
4046         * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4047         * cli/cli-utils.c (check_for_argument): New function.
4048         * cli/cli-utils.h (check_for_argument): Ditto.
4049
4050 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
4051
4052         * NEWS: Mention x32 ABI support.
4053
4054 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
4055
4056         * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4057         AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4058
4059         * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4060         and pc_regnum_from_eax to -1.  Update SP regnum from
4061         sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4062         needed.
4063
4064         * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4065         pc_regnum_from_eax.
4066
4067 2012-07-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
4068
4069         Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4070         * dwarf2expr.h: Include gdbtypes.h.
4071         (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4072         these forward declarations.
4073         (cu_offset, sect_offset): Move these ...
4074         * gdbtypes.h: Remove include dwarf2expr.h.
4075         (cu_offset, sect_offset): ... here.
4076
4077 2012-07-03  H.J. Lu  <hongjiu.lu@intel.com>
4078
4079         * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4080         (amd64_linux_sigtramp_code): This.
4081         (amd64_x32_linux_sigtramp_code): New.
4082         (LINUX_SIGTRAMP_LEN): Updated.
4083         (amd64_linux_sigtramp_start): Check x32 sigtramp.
4084
4085 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4086
4087         * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4088
4089 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4090
4091         * config.in: Regenerate.
4092         * configure: Regenerate.
4093         * configure.ac: Remove check for gnu/libc-version.h.
4094         * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4095         gnu/libc-version.h.
4096         (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4097         variables libc_version, libc_major and libc_minor.  Replace sscanf by
4098         inferior_has_bug.  Extend the comment.
4099
4100 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4101
4102         * linux-thread-db.c (inferior_has_bug): New function.
4103         (thread_db_find_new_threads_silently): Return boolean as checked by
4104         inferior_has_bug, describe it in the comments.
4105         (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4106         earlier.  Abort the initialization if it returned non-zero.
4107         (thread_db_new_objfile): Exclude debug files.
4108         (thread_db_find_new_threads_2): Preinitialize ERR.  Check errors also
4109         if UNTIL_NO_NEW,
4110
4111 2012-07-02  Doug Evans  <dje@google.com>
4112
4113         * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4114         related to queue management.
4115
4116         * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4117         instead of "debug dwarf2-die" in debugging printfs.
4118         (create_debug_info_hash_table_reader): Ditto.
4119         (create_debug_info_hash_table): Ditto.
4120         (init_dwo_file): Ditto.
4121         (init_cutu_and_read_dies): Add debugging printf.
4122         (init_cutu_and_read_dies_no_follow): Ditto.
4123         (process_psymtab_comp_unit_reader): Ditto.
4124
4125 2012-07-02  Stan Shebs  <stan@codesourcery.com>
4126
4127         Add target-side support for dynamic printf.
4128         * NEWS: Mention the additional style.
4129         * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4130         (struct bp_location): New field cmd_bytecode.
4131         * breakpoint.c: Include format.h.
4132         (disconnected_dprintf): New global.
4133         (parse_cmd_to_aexpr): New function.
4134         (build_target_command_list): New function.
4135         (insert_bp_location): Call it.
4136         (remove_breakpoints_pid): Skip dprintf breakpoints.
4137         (print_one_breakpoint_location): Ditto.
4138         (dprintf_style_agent): New global.
4139         (dprintf_style_enums): Add dprintf_style_agent.
4140         (update_dprintf_command_list): Add agent case.
4141         (agent_printf_command): New function.
4142         (_initialize_breakpoint): Add new commands.
4143         * common/ax.def (printf): New bytecode.
4144         * ax.h (ax_string): Declare.
4145         * ax-gdb.h (gen_printf): Declare.
4146         * ax-gdb.c: Include cli-utils.h, format.h.
4147         (gen_printf): New function.
4148         (maint_agent_print_command): New function.
4149         (_initialize_ax_gdb): Add maint agent-printf command.
4150         * ax-general.c (ax_string): New function.
4151         (ax_print): Add printf disassembly.
4152         * Makefile.in (SFILES): Add format.c
4153         (COMMON_OBS): Add format.o.
4154         * common/format.h: New file.
4155         * common/format.c: New file.
4156         * printcmd.c: Include format.h.
4157         (ui_printf): Call parse_format_string.
4158         * remote.c (remote_state): New field breakpoint_commands.
4159         (PACKET_BreakpointCommands): New enum.
4160         (remote_breakpoint_commands_feature): New function.
4161         (remote_protocol_features): Add new BreakpointCommands entry.
4162         (remote_can_run_breakpoint_commands): New function.
4163         (remote_add_target_side_commands): New function.
4164         (remote_insert_breakpoint): Call it.
4165         (remote_insert_hw_breakpoint): Ditto.
4166         (_initialize_remote): Add new packet configuration for
4167         target-side breakpoint commands.
4168         * target.h (struct target_ops): New field
4169         to_can_run_breakpoint_commands.
4170         (target_can_run_breakpoint_commands): New macro.
4171         * target.c (update_current_target): Handle
4172         to_can_run_breakpoint_commands.
4173
4174 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4175
4176         Execute -ix and -iex only after system and user gdbinit files.
4177         * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4178         processing down after gdbinit files.
4179
4180 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4181
4182         Add fnmatch-gnu module.
4183         * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4184         * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4185         * gnulib/aclocal.m4: Regenerate.
4186         * gnulib/config.in: Regenerate.
4187         * gnulib/configure: Regenerate.
4188         * gnulib/import/dummy.c: Remove.
4189         * gnulib/import/Makefile.am: Regenerate.
4190         * gnulib/import/Makefile.in: Likewise.
4191         * gnulib/import/m4/gnulib-cache.m4: Likewise.
4192         * gnulib/import/m4/gnulib-comp.m4: Likewise.
4193         * gnulib/import/alloca.c: New file.
4194         * gnulib/import/alloca.in.h: Likewise.
4195         * gnulib/import/config.charset: Likewise.
4196         * gnulib/import/fnmatch.c: Likewise.
4197         * gnulib/import/fnmatch.in.h: Likewise.
4198         * gnulib/import/fnmatch_loop.c: Likewise.
4199         * gnulib/import/localcharset.c: Likewise.
4200         * gnulib/import/localcharset.h: Likewise.
4201         * gnulib/import/m4/alloca.m4: Likewise.
4202         * gnulib/import/m4/codeset.m4: Likewise.
4203         * gnulib/import/m4/configmake.m4: Likewise.
4204         * gnulib/import/m4/fcntl-o.m4: Likewise.
4205         * gnulib/import/m4/fnmatch.m4: Likewise.
4206         * gnulib/import/m4/glibc21.m4: Likewise.
4207         * gnulib/import/m4/localcharset.m4: Likewise.
4208         * gnulib/import/m4/locale-fr.m4: Likewise.
4209         * gnulib/import/m4/locale-ja.m4: Likewise.
4210         * gnulib/import/m4/locale-zh.m4: Likewise.
4211         * gnulib/import/m4/mbrtowc.m4: Likewise.
4212         * gnulib/import/m4/mbsinit.m4: Likewise.
4213         * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4214         * gnulib/import/m4/mbstate_t.m4: Likewise.
4215         * gnulib/import/m4/stdbool.m4: Likewise.
4216         * gnulib/import/m4/wchar_h.m4: Likewise.
4217         * gnulib/import/m4/wctype_h.m4: Likewise.
4218         * gnulib/import/m4/wint_t.m4: Likewise.
4219         * gnulib/import/mbrtowc.c: Likewise.
4220         * gnulib/import/mbsinit.c: Likewise.
4221         * gnulib/import/mbsrtowcs-impl.h: Likewise.
4222         * gnulib/import/mbsrtowcs-state.c: Likewise.
4223         * gnulib/import/mbsrtowcs.c: Likewise.
4224         * gnulib/import/ref-add.sin: Likewise.
4225         * gnulib/import/ref-del.sin: Likewise.
4226         * gnulib/import/stdbool.in.h: Likewise.
4227         * gnulib/import/streq.h: Likewise.
4228         * gnulib/import/strnlen1.c: Likewise.
4229         * gnulib/import/strnlen1.h: Likewise.
4230         * gnulib/import/verify.h: Likewise.
4231         * gnulib/import/wchar.in.h: Likewise.
4232         * gnulib/import/wctype.in.h: Likewise.
4233
4234 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4235
4236         Support shell wildcards for 'set auto-load safe-path'.
4237         * auto-load.c: Include fnmatch.h.
4238         (filename_is_in_dir): Rename to ...
4239         (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4240         it.  Update function comment.  Rename dir_len to pattern_len.  New
4241         variables filename_len, pattern and filename.  Add more DEBUG_AUTO_LOAD
4242         messages.  Use gdb_filename_fnmatch.
4243         (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4244         pattern.
4245         (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4246         * defs.h (gdb_filename_fnmatch): New declaration.
4247         * utils.c: Include fnmatch.h.
4248         (gdb_filename_fnmatch): New function.
4249
4250 2012-07-02  Sergio Durigan Junior  <sergiodj@redhat.com>
4251
4252         * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4253         `-probe' and `-probe-stap' options.
4254
4255 2012-07-01  Yao Qi  <yao@codesourcery.com>
4256
4257         * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4258         always_inserted_off, and always_inserted_enums.
4259         Change always_inserted_mode's type to 'enum auto_boolean'.
4260         (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4261         callers.
4262         (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4263         of add_setshow_enum_cmd.
4264         * infrun.c: Remove can_use_displaced_stepping_auto,
4265         can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4266         can_use_displaced_stepping_enum.
4267         Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4268         (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4269         (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4270         add_setshow_enum_cmd.
4271
4272 2012-06-30  Doug Evans  <dje@google.com>
4273
4274         * dwarf2read.c (signatured_type): Make "per_cu" member first.
4275         (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4276         currently being read.  Propagate DW_AT_comp_dir to DWO DIE.
4277
4278 2012-06-29  Doug Evans  <dje@google.com>
4279
4280         * linespec.c: #include "stack.h".
4281         (decode_line_with_current_source): Moved here from symtab.c and
4282         renamed from decode_line_spec.  All callers updated.
4283         (decode_line_with_last_displayed): Moved here from breakpoint.c and
4284         renamed from decode_line_spec_1.  All callers updated.
4285         * linespec.h (decode_line_with_current_source): Move declaration here
4286         from symtab.h and renamed from decode_line_spec.
4287         (decode_line_with_last_displayed): Move declaration here from symtab.h
4288         and renamed from decode_line_spec_1.
4289         * macrocmd.c: #include "linespec.h".
4290         * symtab.c: Remove #include "linespec.h".
4291
4292 2012-06-28  Doug Evans  <dje@google.com>
4293
4294         * dwarf2read.c (get_cu_length): New function.
4295         (offset_in_cu_p, error_check_comp_unit_head): Call it.
4296         (create_debug_types_hash_table): Ditto.
4297         (init_cutu_and_read_dies): Ditto.
4298         (init_cutu_and_read_dies_no_follow): Ditto.
4299
4300         * dwarf2read.c (dwarf2_find_base_address): Move definition.
4301
4302         * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4303         (struct abbrev_table): Define.
4304         (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4305         abbrev_table.
4306         (init_cutu_and_read_dies): Update.
4307         (abbrev_table_alloc_abbrev): New function.  Replaces
4308         dwarf_alloc_abbrev.  All callers updated.
4309         (abbrev_table_add_abbrev): New function.
4310         (abbrev_table_lookup_abbrev): New function.  Replaces
4311         dwarf2_lookup_abbrev.  All callers updated.
4312         (abbrev_table_read_table): New function.  Contents moved here from
4313         dwarf2_read_abbrevs.
4314         (dwarf2_read_abbrevs): Call it.
4315         (abbrev_table_free): New function.
4316         (dwarf2_free_abbrev_table): Call it.
4317
4318 2012-06-28  Stan Shebs  <stan@codesourcery.com>
4319
4320         * osdata.c (info_osdata_command): Filter out "Title" columns
4321         from non-MI uses.
4322         * common/linux-osdata.c (struct osdata_type): Add title field.
4323         (osdata_table): Add titles to each entry.
4324         (linux_command_xfer_osdata): Add a column for title data.
4325
4326 2012-06-28  Stan Shebs  <stan@codesourcery.com>
4327
4328         Make logging work for MI.
4329         * NEWS: Mention it.
4330         * interps.h (interp_set_logging_ftype): New typedef.
4331         (struct interp_procs): New field set_logging_proc.
4332         (current_interp_set_logging): Declare.
4333         * interps.c (current_interp_set_logging): New function.
4334         * cli/cli-logging.c: Include interps.h.
4335         (set_logging_redirect): Call current_interp_set_logging.
4336         (pop_output_files): Ditto.
4337         (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4338         * mi/mi-console.h (mi_console_set_raw): Declare.
4339         * mi/mi-console.c (mi_console_set_raw): New function.
4340         * mi/mi-interp.c (saved_raw_stdout): New global.
4341         (mi_set_logging): New function.
4342         (_initialize_mi_interp): Add it to interp procs.
4343
4344 2012-06-28  Doug Evans  <dje@google.com>
4345
4346         * symtab.c (lookup_symbol_aux_objfile): Use
4347         ALL_OBJFILE_PRIMARY_SYMTABS.
4348
4349         * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4350
4351 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4352
4353         * common/buffer.c: Include inttypes.h and stdint.h.
4354         (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4355
4356 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4357             Pedro Alves  <palves@redhat.com>
4358
4359         * gdbthread.h (ALL_THREADS): New macro.
4360         (thread_list): Declare.
4361         * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4362         going, but instead fall through to the stepping handling.
4363         * linux-nat.c (resume_lwp): New parameter 'signo'.  Resume with
4364         the passed in signal.  Adjust debug output.
4365         (resume_callback): Rename to ...
4366         (linux_nat_resume_callback): ... this.  Pass the thread's last
4367         stop signal, if in "pass" state.
4368         (linux_nat_resume): Adjust to rename.
4369         (stop_wait_callback): New assertion.  Don't respawn signals;
4370         instead let the LWP remain with SIGNALLED set.
4371         (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
4372         * remote.c (append_pending_thread_resumptions): New.
4373         (remote_vcont_resume): Call it.
4374         * target.h (target_resume): Extend comment.
4375
4376 2012-06-28  Iain Sandoe  <iain@codesourcery.com>
4377
4378         * auxv.c (fprint_target_auxv): Handle extended cache data tags.
4379
4380 2012-06-27  Doug Evans  <dje@google.com>
4381
4382         * dwarf2read.c (dwarf2_cu): Add ranges_base.
4383         Delete have_addr_base, unused.  All uses updated.
4384         (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
4385         (dwarf2_get_pc_bounds): Add ranges_base.
4386         (dwarf2_record_block_ranges): Ditto.
4387
4388 2012-06-27  Tom Tromey  <tromey@redhat.com>
4389
4390         PR macros/7961:
4391         * varobj.c (varobj_create): Update.
4392         (varobj_set_value): Update.
4393         * tracepoint.c (validate_actionline): Update.
4394         (encode_actions_1): Update.
4395         * parse.c (parse_exp_1): Add 'pc' argument.
4396         (parse_exp_in_context): Add 'pc' argument.  Change how
4397         expression_context_pc is set.
4398         (parse_expression): Update.
4399         (parse_field_expression): Update.
4400         * expression.h (parse_exp_1): Update.
4401         * eval.c (parse_to_comma_and_eval): Update.
4402         * breakpoint.c (set_breakpoint_condition): Update.
4403         (update_watchpoint): Update.
4404         (init_breakpoint_sal): Update
4405         (find_condition_and_thread): Update.
4406         (watch_command_1): Update.
4407         (update_breakpoint_locations): Update.
4408         * ada-lang.c (ada_read_renaming_var_value): Update.
4409         (create_excep_cond_exprs): Update.
4410
4411 2012-06-27  Doug Evans  <dje@google.com>
4412
4413         * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
4414         type units.
4415
4416 2012-06-26  Doug Evans  <dje@google.com>
4417
4418         * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
4419         prototype.
4420         (error_check_comp_unit_head): New arg abbrev_section.  All callers
4421         updated.
4422         (read_and_check_comp_unit_head): Ditto.
4423         (read_and_check_type_unit_head): Ditto.
4424
4425 2012-06-26  Siva Chandra Reddy  <sivachandra@google.com>
4426
4427         New attribute 'last' for gdb.Symtab_and_line.
4428         * NEWS (Python Scripting): Add entry about the new attribute.
4429         * python/py-symtab.c (salpy_get_last): New function which
4430         implements the get method for the 'last' attribute of
4431         gdb.Symtab_and_line.
4432         (sal_object_getset): Add entry for the 'last' attribute.
4433
4434 2012-06-26  Doug Evans  <dje@google.com>
4435
4436         * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4437         (dwo_sections): Add macinfo, macro.
4438         (dwarf2_locate_dwo_sections): Watch for macro sections.
4439         (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4440         All callers updated.  Handle DWO files.
4441
4442         * NEWS: Mention new options "set debug dwarf2-read" and
4443         "set debug symtab-create".
4444         * dwarf2read.c (dwarf2_read_debug): New static global.
4445         (dwarf2_build_psymtabs_hard): Add debugging printfs.
4446         (process_queue): Ditto.
4447         (process_full_comp_unit): Ditto.
4448         (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4449         * elfread.c (elf_symfile_read): Add debugging printf.
4450         * minsyms.c (install_minimal_symbols): Ditto.
4451         * psymtab.c (allocate_psymtab): Ditto.
4452         * symfile.c (allocate_symtab): Ditto.
4453         * symtab.c (symtab_create_debug): New global.
4454         (_initialize_symtab): Add new option "set debug symtab-create".
4455         * symtab.h (symtab_create_debug): Declare.
4456
4457         * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4458         (lookup_dwo_type_unit): Ditto.
4459
4460 2012-06-26  Roland McGrath  <roland@hack.frob.com>
4461             H.J. Lu  <hongjiu.lu@intel.com>
4462
4463         * amd64-linux-nat.c: Include <sys/user.h>.
4464         (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4465         if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4466         HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4467
4468         * configure.ac: Check if the fs_base and gs_base members of
4469         `struct user_regs_struct' exist.
4470         * config.in: Regenerated.
4471         * configure: Likewise.
4472
4473 2012-06-25  Michael Eager  <eager@eagercon.com>
4474
4475         PR python/14291
4476         * python/python.c (gdbpy_write): Check for interrupted output.
4477
4478 2012-06-25  Greta Yorsh  <greta.yorsh@arm.com>
4479
4480         * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4481         register as a stack alignment in ARM mode.
4482
4483 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4484
4485         Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4486         * gnulib/config.in: Regenerate.
4487         * gnulib/configure: Likewise.
4488         * gnulib/import/m4/extensions.m4: Update it.
4489         * gnulib/import/m4/gnulib-common.m4: Likewise.
4490         * gnulib/import/m4/memmem.m4: Likewise.
4491         * gnulib/import/m4/mmap-anon.m4: Likewise.
4492         * gnulib/import/m4/multiarch.m4: Likewise.
4493         * gnulib/import/stdint.in.h: Likewise.
4494
4495 2012-06-24  Yao Qi  <yao@codesourcery.com>
4496
4497         * corefile.c (write_memory_with_notification): New.
4498         * gdbcore.h: Declare write_memory_with_notification.
4499         * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4500         'observer_notify_memory_changed' with 'write_memory_with_notification'.
4501         * valops.c (value_assign): Likewise.
4502         * python/py-inferior.c (infpy_write_memory): Call
4503         'write_memory_with_notification'.
4504
4505 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4506
4507         * cc-with-index.sh: Use also -ex "set auto-load no".
4508
4509 2012-06-23  Doug Evans  <dje@google.com>
4510
4511         PR 14125
4512         * NEWS: Document additions to .gdb_index.
4513         * dwarf2read.c: #include "gdb/gdb-index.h".
4514         (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4515         (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4516         (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4517         (dwarf2_read_index): Recognize version 7.
4518         (dw2_do_expand_symtabs_matching): New args want_specific_block,
4519         block_kind, domain): All callers updated.
4520         (dw2_find_symbol_file): Handle new index CU values.
4521         (dw2_expand_symtabs_matching): Match symbol kind if requested.
4522         (add_index_entry): New args is_static, kind.  All callers updated.
4523         (offset_type_compare, uniquify_cu_indices): New functions
4524         (symbol_kind): New function.
4525         (write_psymtabs_to_index): Remove duplicate CU values.
4526         (write_psymtabs_to_index): Write .gdb_index version 7.
4527
4528 2012-06-22  Joel Brobecker  <brobecker@adacore.com>
4529
4530         * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4531         * configure: Regenerate.
4532
4533 2012-06-20  Yao Qi  <yao@codesourcery.com>
4534
4535         * python/py-inferior.c: Update comments of infpy_read_memory
4536         and infpy_write_memory.
4537
4538 2012-06-19  Tom Tromey  <tromey@redhat.com>
4539
4540         PR exp/9514:
4541         * parser-defs.h (insert_type, insert_type_address_space): Declare.
4542         (push_type_address_space): Remove.
4543         * parse.c (insert_into_type_stack): New function.
4544         (insert_type): Likewise.
4545         (insert_type_address_space): Rename from push_type_address_space.
4546         Insert tp_space_identifier.
4547         * c-exp.y (ptr_operator): New production.
4548         (abs_decl): Use ptr_operator.
4549         (space_identifier): Call insert_type_address_space.
4550         (ptype): Don't use const_or_volatile_or_space_identifier.
4551         (const_or_volatile_noopt): Call insert_type.
4552         (conversion_type_id, conversion_declarator): New productions.
4553         (operator): Use conversion_type_id.
4554
4555 2012-06-18  Doug Evans  <dje@google.com>
4556
4557         * symtab.h (minimal_symbol): New member created_by_gdb.
4558         * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4559         created by gdb.
4560         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4561         (search_symbols): Call it instead of lookup_symbol.
4562         Skip symbols created by gdb.  Only scan minsyms if nfiles == 0.
4563
4564         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4565         Adjust address for DW_OP_GNU_addr_index.
4566         * dwarf2expr.h (dwarf_expr_context): Update comment.
4567         * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4568         all callers updated.  Handle TLS vars described with
4569         DW_OP_GNU_const_index.
4570         (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4571         and DW_OP_GNU_const_index.
4572         * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4573
4574         * block.c (find_block_in_blockvector): Make explicit the fact that we
4575         ignore GLOBAL_BLOCK.
4576
4577 2012-06-18  Tom Tromey  <tromey@redhat.com>
4578
4579         * c-exp.y (operator): Remove trailing space after "delete" and
4580         "delete[]".
4581
4582 2012-06-18  Mark Kettenis  <kettenis@gnu.org>
4583             Jan Kratochvil  <jan.kratochvil@redhat.com>
4584
4585         Switch i386 and derived targets to ON_STACK.
4586         * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4587         (amd64_dicos_init_abi): Remove its installment.
4588         * dicos-tdep.c (dicos_init_abi): Remove the
4589         set_gdbarch_call_dummy_location call.  Update the comment here.
4590         * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4591         (i386_dicos_init_abi): Remove its installment.
4592         * i386-tdep.c (i386_push_dummy_code): New function.
4593         (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4594         i386_push_dummy_code.
4595
4596 2012-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
4597
4598         Remove stale dummy frames.
4599         * breakpoint.c: Include dummy-frame.h.
4600         (longjmp_breakpoint_ops): New variable.
4601         (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4602         bp_longjmp_call_dummy.
4603         (bpstat_what, bptype_string, print_one_breakpoint_location)
4604         (init_bp_location): Support bp_longjmp_call_dummy.
4605         (set_longjmp_breakpoint): Use longjmp_breakpoint_ops.  Comment why.
4606         (set_longjmp_breakpoint_for_call_dummy)
4607         (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4608         functions.
4609         (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4610         * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy.  Delete
4611         FIXME comment and extend the other comment for bp_call_dummy.
4612         (set_longjmp_breakpoint_for_call_dummy)
4613         (check_longjmp_breakpoint_for_call_dummy): New declarations.
4614         * dummy-frame.c: Include gdbthread.h.
4615         (pop_dummy_frame_bpt): New function.
4616         (pop_dummy_frame): Call pop_dummy_frame_bpt.
4617         (dummy_frame_discard): New function.
4618         (cleanup_dummy_frames): Update the comment about longjmps.
4619         * dummy-frame.h (dummy_frame_discard): New declaration.
4620         * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4621         * infcall.c (call_function_by_hand): New variable longjmp_b.  Call
4622         set_longjmp_breakpoint_for_call_dummy.  Chain its breakpoints with BPT.
4623         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4624         Add case 4 comment.  Call check_longjmp_breakpoint_for_call_dummy and
4625         keep_going if IS_LONGJMP and there is no other reason to stop.
4626
4627 2012-06-18  Greta Yorsh  <Greta.Yorsh@arm.com>
4628
4629         * remote-sim.c (sim_command_completer): Initialize
4630         variable 'result'.
4631
4632 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4633
4634         * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4635         * dwarf2loc.c (call_site_parameter_matches): Support
4636         CALL_SITE_PARAMETER_PARAM_OFFSET.
4637         (needs_dwarf_reg_entry_value): Push stub value.
4638         * dwarf2read.c (read_call_site_scope): New variable origin.  Support
4639         CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4640         * gdbtypes.h (enum call_site_parameter_kind): New item
4641         CALL_SITE_PARAMETER_PARAM_OFFSET.
4642         (struct call_site.parameter.u): New field param_offset.
4643
4644 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4645
4646         Code cleanup: Generalize call_site.parameter key.
4647         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4648         variable dwarf_reg.  New variable kind_u.  Update parameters to
4649         push_dwarf_reg_entry_value.
4650         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4651         * dwarf2expr.h (enum call_site_parameter_kind)
4652         (union call_site_parameter_u): Forward declarations.
4653         (struct dwarf_expr_context_funcs): Update parameters and their
4654         description for push_dwarf_reg_entry_value.
4655         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4656         * dwarf2loc.c (call_site_parameter_matches): New function.
4657         (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4658         description.  Use call_site_parameter_matches.
4659         (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4660         Update parameters and their description.
4661         (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4662         New variable kind_u.  Adjust the caller for updated parameters.
4663         (needs_dwarf_reg_entry_value): Update parameters.
4664         * dwarf2read.c (read_call_site_scope): New variable loc.  Use it
4665         instead of attr.  Update for the changed fields of struct
4666         call_site_parameter.
4667         * gdbtypes.h: Include dwarf2expr.h.
4668         (enum call_site_parameter_kind): New.
4669         (struct call_site.parameter): New field kind.  Wrap dwarf_reg and
4670         fb_offset into new union u.
4671
4672 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
4673
4674         * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4675         (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4676         for x32.
4677
4678 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
4679
4680         * amd64-linux-nat.c (compat_x32_clock_t): New.
4681         (compat_x32_siginfo_t): Likewise.
4682         (compat_x32_siginfo_from_siginfo): Likewise.
4683         (siginfo_from_compat_x32_siginfo): Likewise.
4684         (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4685         and siginfo_from_compat_x32_siginfo for x32.
4686
4687 2012-06-15  Hui Zhu  <hui_zhu@mentor.com>
4688
4689         * tracepoint.c (tfile_xfer_partial): Add a lseek.
4690
4691 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
4692
4693         * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4694         instead of gdbarch_ptr_bit.
4695         * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4696         (amd64_supply_native_gregset): Likewise.
4697         (amd64_collect_native_gregset): Likewise.
4698         * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4699         (amd64_supply_xsave): Likewise.
4700         (amd64_collect_fxsave): Likewise.
4701         (amd64_collect_xsave): Likewise.
4702
4703 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
4704
4705         * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4706         (amd64_linux_read_description): Check DS segment register for
4707         x32 process.
4708
4709 2012-06-15  Tom Tromey  <tromey@redhat.com>
4710
4711         * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4712         init_cutu_and_read_dies.
4713
4714 2012-06-15  Iain Sandoe <iain@codesourcery.com>
4715
4716         * MAINTAINERS (Write After Approval): Add myself to the list.
4717
4718 2012-06-15  Tom Tromey  <tromey@redhat.com>
4719
4720         * valops.c (value_find_oload_method_list): Now static.
4721         * value.h (value_find_oload_method_list): Don't declare.
4722
4723 2012-06-15  Tom Tromey  <tromey@redhat.com>
4724
4725         * valops.c (find_overload_match): Use value_ind.
4726
4727 2012-06-15  Maciej W. Rozycki  <macro@codesourcery.com>
4728
4729         * infrun.c (handle_inferior_event): Correct indentation.
4730
4731 2012-06-14  Doug Evans  <dje@google.com>
4732
4733         * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4734         (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4735         All uses updated.
4736         (decode_debug_loc_dwo_addresses): New arg "byte_order".  All callers
4737         updated.  Handle DEBUG_LOC_START_LENGTH.
4738         (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4739         (loclist_describe_location): Ditto.
4740
4741 2012-06-14  Maciej W. Rozycki  <macro@codesourcery.com>
4742
4743         PR backtrace/13866
4744         * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4745         after hiding inline functions.
4746
4747 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
4748
4749         * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4750         _initialize_inf_ttrace.
4751
4752 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
4753
4754         * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4755         _initialize_hppa_hpux_nat.
4756
4757 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
4758
4759         * remote-sim.c (sim_command_completer): Change type of return
4760         value to "VEC (char_ptr) *".  Adjust implementation accordingly.
4761
4762 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
4763             Jan Kratochvil  <jan.kratochvil@redhat.com>
4764
4765         PR tdep/14222
4766         * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4767         stack on a 16-byte boundary.
4768
4769 2012-06-13  Kaushik Srenevasan  <kaushik@twitter.com>
4770
4771         * jit.c (finalize_symtab): Set function's return type to 'void' by
4772         default.
4773
4774 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
4775             H.J. Lu  <hongjiu.lu@intel.com>
4776
4777         * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4778         Move bits common to both the classic LP64 and the new x32 ILP32
4779         ABI here.
4780         (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4781         (amd64_x32_linux_init_abi): New function.
4782         (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4783         subtype.
4784
4785         * i386-tdep.h (i386_pseudo_register_name): New prototype.
4786         * i386-tdep.c (i386_pseudo_register_name): Make public.
4787         * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4788         * amd64-tdep.c (amd64_dword_names): Add "eip".
4789         (amd64_x32_pseudo_register_type): New function
4790         (amd64_x32_init_abi): New function.
4791
4792 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4793
4794         PR build/14003
4795         * inferior.h (struct inferior_suspend_state): Comment out.
4796         (struct inferior): Comment out the field suspend.
4797         * infrun.c (struct infcall_suspend_state): Comment out the field
4798         inferior_suspend.
4799         (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4800         out its assignment.
4801
4802 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4803
4804         PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4805         * c-exp.y (classify_inner_name): Remove caller assumptions in the
4806         function comment.  Return ERROR for unresolved cases.  Implement
4807         returning proper NAME.
4808         (yylex): Accept also NAME from classify_inner_name.
4809         * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4810         (cp_lookup_nested_symbol): ... here.  Return any found symbol, not just
4811         LOC_TYPEDEF type.
4812         * cp-support.h (cp_lookup_nested_type): Update its declaration.
4813
4814 2012-06-13  Tom Tromey  <tromey@redhat.com>
4815
4816         * breakpoint.c (condition_completer): New function.
4817         (_initialize_breakpoint): Use it.
4818         * value.c (complete_internalvar): New function.
4819         * value.h (complete_internalvar): Declare.
4820
4821 2012-06-13  Tom Tromey  <tromey@redhat.com>
4822
4823         * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4824         * breakpoint.c (catch_syscall_completer): Return a VEC.
4825         * cli/cli-cmds.c (complete_command): Update.
4826         * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4827         (complete_on_enum): Likewise.
4828         * command.h: Include gdb_vecs.h.
4829         (completer_ftype): Change return type.
4830         (complete_on_cmdlist, complete_on_enum): Likewise.
4831         * completer.c (noop_completer, filename_completer)
4832         (location_completer): Return a VEC.
4833         (add_struct_fields): Remove 'nextp' argument.  Change 'output'
4834         to a VEC.
4835         (expression_completer, complete_line_internal, complete_line)
4836         (command_completer): Return a VEC.
4837         (gdb_completion_word_break_characters, line_completion_function):
4838         Update.
4839         * completer.h: Include gdb_vecs.h.
4840         (complete_line, noop_completer, filename_completer)
4841         (expression_completer, location_completer, command_completer):
4842         Update.
4843         * f-lang.c (f_word_break_characters): Return a VEC.
4844         * interps.c (interpreter_completer): Return a VEC.
4845         * language.h (struct language_defn)
4846         <la_make_symbol_completion_list>: Return a VEC.
4847         * python/py-cmd.c (cmdpy_completer): Return a VEC.
4848         * symtab.c (free_completion_list): Take a VEC.
4849         (return_val_size, return_val_index): Remove.
4850         (return_val): Now a VEC.
4851         (completion_list_add_name): Update.
4852         (default_make_symbol_completion_list_break_on)
4853         (default_make_symbol_completion_list, make_symbol_completion_list)
4854         (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4855         Return a VEC.
4856         (add_filename_to_list): Update.
4857         (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4858         <list>: Now a VEC.
4859         (maybe_add_partial_symtab_filename): Update.
4860         (make_source_files_completion_list): Return a VEC.
4861         * symtab.h (default_make_symbol_completion_list_break_on)
4862         (default_make_symbol_completion_list, make_symbol_completion_list)
4863         (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4864         (make_source_files_completion_list): Update.
4865
4866 2012-06-13  Tom Tromey  <tromey@redhat.com>
4867
4868         * breakpoint.c (add_catch_command): Use completer_ftype.
4869         * breakpoint.h: Include command.h.
4870         (add_catch_command): Use completer_ftype.
4871         * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4872         * cli/cli-decode.h (struct cmd_list_element) <completer>:
4873         Use completer_ftype.
4874         * command.h (completer_ftype): New typedef.
4875         (set_cmd_completer): Use it.
4876         * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4877         completer_ftype.
4878
4879 2012-06-13  Pedro Alves  <palves@redhat.com>
4880
4881         Partial revert of previous change.
4882
4883         * serial.c (scb_base): New global.
4884         (serial_for_fd): New.
4885         (serial_open, serial_fdopen_ops): Link new serial in open serials
4886         chain.
4887         (do_serial_close): Unlink serial from the open serials chain.
4888
4889 2012-06-12  Pedro Alves  <palves@redhat.com>
4890
4891         * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4892         threads here.
4893         (prepare_for_detach): No longer context switch here in non-stop
4894         mode.
4895         (fetch_inferior_event): Ditto.
4896         (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4897         to the event thread before removing breakpoints.  Switch to the
4898         event thread before inserting breakpoints and resuming.
4899         (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4900         event thread before resuming.
4901         (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4902         Switch to the event thread before removing breakpoints.
4903
4904 2012-06-12  Eli Zaretskii  <eliz@gnu.org>
4905
4906         * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4907         special characters correctly for the Windows shells.  See
4908         http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4909         report.
4910         [!__MINGW32__]: Remove extra double quote character from special
4911         characters.
4912
4913 2012-06-11  Stan Shebs  <stan@codesourcery.com>
4914
4915         * ui-out.h: Remove #if 0 declarations.
4916         * ui-out.c: Remove #if 0 functions.
4917
4918 2012-06-11  Pedro Alves  <palves@redhat.com>
4919
4920         * ser-base.c (run_async_handler_and_reschedule): New.
4921         (fd_event, push_event): Use it.
4922         * serial.c (serial_open, serial_fdopen_ops): Set the initial
4923         reference count to 1.
4924         (do_serial_close): Set the bufp field to NULL.  Use serial_unref
4925         instead of xfree.
4926         (serial_is_open, serial_ref, serial_unref): New.
4927         * serial.h (serial_open): Adjust comment.
4928         (serial_is_open): Declare.
4929         (serial_close): Adjust comment.
4930         (serial_ref, serial_unref) Declare.
4931         (struct serial): New field 'refcnt'.
4932
4933 2012-06-11  Pedro Alves  <palves@redhat.com>
4934
4935         Remove #if 0'd "connect" command, and unnecessary associated
4936         refcounting and serial reuse bits.
4937
4938         * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4939         * serial.c (last_serial_opened): Delete.
4940         (scb_base): Delete.
4941         (serial_open): Adjust.
4942         (serial_for_fd): Delete.
4943         (serial_fdopen_ops, do_serial_close): Adjust.
4944         (serial_fdopen_ops): Adjust.
4945
4946 2012-06-11  Pedro Alves  <palves@redhat.com>
4947
4948         * serial.c (do_serial_close): Remove early return when SCB is
4949         null.
4950
4951 2012-06-11  Tom Tromey  <tromey@redhat.com>
4952
4953         * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4954
4955 2012-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4956
4957         Fix regression by the "ambiguous linespec" series.
4958         * breakpoint.c (parse_breakpoint_sals): New variable cursal.  Use
4959         get_last_displayed_symtab and get_last_displayed_line and depending
4960         on CURSAL.
4961
4962 2012-06-11  Tom Tromey  <tromey@redhat.com>
4963
4964         * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4965         (dw2_find_symbol_file): Use it.
4966
4967 2012-06-11  Michael Eager  <eager@eagercon.com>
4968
4969         * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4970         * mips-linux-tdep.h (mips_signals): New
4971
4972 2012-06-11  Tom Tromey  <tromey@redhat.com>
4973
4974         * infrun.c (handle_inferior_event)
4975         <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4976         breakpoint.
4977         <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4978         exception logic in all cases.  Update comments.
4979         (insert_longjmp_resume_breakpoint): Set the exception resume
4980         breakpoint.
4981
4982 2012-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
4983
4984         * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4985
4986 2012-06-09  Siva Chandra Reddy  <sivachandra@google.com>
4987
4988         * valarith.c (binop_types_user_defined_p): Fix a typo.
4989
4990 2012-06-08  Yao Qi  <yao@codesourcery.com>
4991             Chung-Lin Tang <cltang@codesourcery.com>
4992
4993         * arch-utils.c (default_return_in_first_hidden_param_p): New.
4994         * arch-utils.h: Declare.
4995         * gdbarch.sh: Add return_in_first_hidden_param_p.
4996         * gdbarch.c, gdbarch.h: Regenerated.
4997         * infcall.c (call_function_by_hand): Call
4998         gdbarch_return_in_first_hidden_param_p instead of
4999         language_pass_by_reference.
5000
5001         * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5002         (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5003         * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5004         (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5005         * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5006         `cplus_return_struct_by_reference'.
5007         (tic6x_return_value): Handle language cplusplus.
5008         (tic6x_return_in_first_hidden_param_p): New.
5009         (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5010
5011 2012-06-07  Doug Evans  <dje@google.com>
5012
5013         * dwarf2read.c (dwarf2_cu): Add comment.
5014
5015 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
5016
5017         * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5018         variable.
5019         (mips_eabi_push_dummy_call): Likewise.
5020         (mips_n32n64_push_dummy_call): Likewise.
5021         (mips_o32_push_dummy_call): Likewise.
5022         (mips_o64_push_dummy_call): Likewise.
5023
5024 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
5025
5026         * mips-tdep.c (mips_convert_register_p): Correct coding style.
5027
5028 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
5029
5030         * mips-tdep.c (mips_pseudo_register_type): Use
5031         mips_float_register_p.
5032
5033 2012-06-06  Pedro Alves  <palves@redhat.com>
5034
5035         * infrun.c (handle_inferior_event): Remove calls to
5036         reinit_frame_cache that follow a context_switch call.
5037
5038 2012-06-06  Pedro Alves  <palves@redhat.com>
5039
5040         * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5041         context_switch and remove stale comment.
5042
5043 2012-06-06  Pedro Alves  <palves@redhat.com>
5044
5045         * infrun.c (struct execution_control_state): Remove
5046         `new_thread_event' field.
5047         (handle_inferior_event): Simplify new threads handling; don't
5048         resume the inferior if we find a new thread.
5049
5050 2012-06-06  Thomas Schwinge  <thomas@codesourcery.com>
5051
5052         * NEWS: Document the deprecation of SH's 'regs' command.
5053         * inferior.h (all_registers_info): Add function declaration.
5054         * sh-tdep.c (sh_show_regs): Remove variable.
5055         (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5056         (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5057         (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5058         (sh_show_regs_command): Remove functions.
5059         (sh_gdbarch_init): Don't set sh_show_regs.
5060         (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5061         'info all-registers'.
5062         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5063         (sh64_show_regs): Remove functions.
5064         * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5065
5066 2012-06-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5067
5068         * configure.ac: Move development=true below AC_INIT.
5069         * configure: Regenerate.
5070
5071 2012-06-05  Stan Shebs  <stan@codesourcery.com>
5072
5073         * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5074         gdb_stdout.
5075
5076 2012-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
5077
5078         * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5079         argument as ssize_t.
5080         * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5081         * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5082         * target.c (target_read_stack, target_write_memory)
5083         (target_write_raw_memory): Likewise.
5084         * target.h (target_read_stack, target_write_memory)
5085         (target_write_raw_memory): Likewise.
5086
5087 2012-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
5088
5089         * symfile-mem.c: Change gdb_static_assert to ssize_t.
5090         (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5091         * target.c (target_read_memory): Change LEN to ssize_t.
5092         * target.h (target_read_memory): Change LEN to ssize_t.
5093
5094 2012-06-05  Pedro Alves  <palves@redhat.com>
5095
5096         PR backtrace/13866
5097
5098         * breakpoint.c (until_break_command): Only fetch the selected
5099         frame after decode_line_1.
5100
5101 2012-06-05  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
5102
5103         * solib-svr4.c (enable_break): Don't fallback to setting the solib
5104         event breakpoint at _start, __start or main if a program
5105         interpreter is not found.
5106
5107 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5108
5109         * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5110         Add declaration.
5111         * windows-tdep.c: #include "objfiles.h".
5112         (windows_iterate_over_objfiles_in_search_order): New function.
5113         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5114         iterate_over_objfiles_in_search_order gdbarch method to
5115         windows_iterate_over_objfiles_in_search_order.
5116         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5117
5118 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5119
5120         * gdbarch.sh: Add generation of
5121         "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5122         gdbarch.h.  Add include of "objfiles.h" in gdbarch.c.
5123         (iterate_over_objfiles_in_search_order): New gdbarch method.
5124         * gdbarch.h, gdbarch.c: Regenerate.
5125         * objfiles.h (default_iterate_over_objfiles_in_search_order):
5126         Add declaration.
5127         * objfiles.c (default_iterate_over_objfiles_in_search_order):
5128         New function.
5129         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5130         out of lookup_symbol_aux_symtabs.
5131         (lookup_symbol_aux_symtabs): Replace extracted-out code by
5132         call to lookup_symbol_aux_objfile.
5133         (struct global_sym_lookup_data): New type.
5134         (lookup_symbol_global_iterator_cb): New function.
5135         (lookup_symbol_global): Search for symbol using
5136         gdbarch_iterate_over_objfiles_in_search_order and
5137         lookup_symbol_global_iterator_cb.
5138         * findvar.c (struct minsym_lookup_data): New type.
5139         (minsym_lookup_iterator_cb): New function.
5140         (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5141         symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5142         and minsym_lookup_iterator_cb.
5143
5144 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5145
5146         Revert the following patch:
5147         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5148         try locating the symbol in the symbol's own objfile first, before
5149         extending the search to all objfiles.
5150         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5151         out of lookup_symbol_aux_symtabs.
5152         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5153         Replace extracted-out code by call to lookup_symbol_aux_objfile.
5154         Do not search EXCLUDE_OBJFILE.
5155         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5156         (lookup_symbol_global): Search for matches in the block's objfile
5157         first, before searching all other objfiles.
5158
5159 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5160
5161         * breakpoint.c (find_condition_and_thread): Stop parsing
5162         as soon as the first invalid keyword is found.
5163
5164 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5165
5166         * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5167
5168 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5169
5170         * config/djgpp/djcheck.sh: Add copyright header.
5171
5172 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5173
5174         * copyright.py (update_files, main): Fix path to update-copyright
5175         script.
5176
5177 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5178
5179         * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5180         (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5181         for which a reminder to update by hand is printed.
5182
5183 2012-06-04  Doug Evans  <dje@google.com>
5184
5185         * buildsym.c (make_blockvector): Add comment.
5186
5187 2012-06-04  Pedro Alves  <palves@redhat.com>
5188
5189         * arch-utils.c (default_gdb_signal_from_target): Delete.
5190         * arch-utils.h (default_gdb_signal_from_target): Delete.
5191         * corelow.c (core_open) <signal mapping>: Extended comment.  Check
5192         gdbarch_gdb_signal_from_target_p.
5193         * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5194         predicate).
5195         * gdbarch.h: Regenerate.
5196         * gdbarch.c: Regenerate.
5197
5198 2012-06-04  Pedro Alves  <palves@redhat.com>
5199
5200         * gdbarch.sh (gdb_signal_from_target): Mention that the
5201         implementation of the method must be host independent.
5202         * gdbarch.h: Regenerate.
5203
5204 2012-06-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5205
5206         * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5207         parameters.
5208         (target_read_memory_bfd): New function.
5209         (symbol_file_add_from_memory): Use it.
5210
5211 2012-06-03  Doug Evans  <dje@google.com>
5212
5213         * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5214         of primary symtab.
5215         (basic_lookup_transparent_type): Ditto.
5216
5217         * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5218         (ALL_PRIMARY_SYMTABS): Use it.
5219         (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5220         * dwarf2read.c (dw2_find_symbol_file): Ditto.
5221         * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5222         * symtab.c (lookup_symbol_aux_objfile): Ditto.
5223         (basic_lookup_transparent_type): Ditto.
5224
5225 2012-06-02  Sergio Durigan Junior  <sergiodj@redhat.com>
5226
5227         * symtab.c (symbol_demangled_name): New variable `dem_name'.  Use
5228         it to optimize resolution of demangled name.
5229
5230 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5231
5232         * configure.ac (development): Define new variable.
5233         Call AC_CHECK_LIB for mcheck if $development.
5234         (ERROR_ON_WARNING): Enable it by default only if $development.
5235         * config.in: Regenerate.
5236         * configure: Regenerate.
5237
5238 2012-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
5239
5240         * target.c (target_read_memory): Make LEN argument as size_t.
5241         * target.h (target_read_memory): Likewise.
5242
5243 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5244
5245         * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5246
5247 2012-05-31  Edjunior Machado  <emachado@linux.vnet.ibm.com>
5248
5249         * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5250         BookE interface for PowerPC server processors if not available
5251         in the Linux Kernel.
5252
5253 2012-05-31  Keith Seitz  <keiths@redhat.com>
5254
5255         * linespec.c (decode_objc): Add cleanup to free
5256         INFO.FILE_SYMTABS.
5257         (find_linespec_symbols): Add cleanup to free CLASSES.
5258         * symfile.c (find_separate_debug_file_by_debuglink): Add
5259         cleanup to free DEBUGLINK.
5260         * ui-out.c (clear_header_list): No need to check if
5261         HEADER_NEXT.COLHDR is NULL.
5262         Free HEADER_NEXT.COL_NAME.
5263
5264 2012-05-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
5265
5266         * ada-lang.c (standard_lookup): Prevent uninitialized variable
5267         warning.
5268
5269 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
5270
5271         * configure.host (gdb_host_cpu): Handle tilegx*.
5272         (gdb_host): Handle tilegx-*-linux*.
5273         * tilegx-linux-nat.c: New file.
5274         * config/tilegx/linux.mh: New file.
5275
5276 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
5277
5278         * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5279         tilegx-linux-tdep.o.
5280         (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5281         tilegx-linux-tdep.c.
5282         * configure.tgt: Handle tilegx-*-linux*.
5283         * tilegx-tdep.h: New file.
5284         * tilegx-tdep.c: New file.
5285         * tilegx-linux-tdep.c: New file.
5286         * regformats/reg-tilegx.dat: New file.
5287
5288 2012-05-30  Edjunior Machado  <emachado@linux.vnet.ibm.com>
5289
5290         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5291         accounting of hw watchpoints on ppc.
5292
5293 2012-05-30  Thiago Jung Bauermann  <thiago.bauermann@linaro.org>
5294
5295         * source.c (openp): Expand tilde in path entries.
5296
5297 2012-05-29  Doug Evans  <dje@google.com>
5298
5299         * buildsym.c (block_compar): Fix comment.
5300         (end_symtab): Fix and clarify some comments.
5301
5302         * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5303         cleanup_undefined_types.
5304         * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5305         All callers updated.
5306
5307 2012-05-29  Tom Tromey  <tromey@redhat.com>
5308
5309         * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5310         fails.
5311         * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5312         * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5313         fails.
5314         * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5315         fails.
5316
5317 2012-05-29  Tristan Gingold  <gingold@adacore.com>
5318
5319         * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5320         (struct darwin_info): ... New struct.
5321         (solib_darwin_pspace_data): New variable.
5322         (darwin_pspace_data_cleanup): New function.
5323         (get_darwin_info): Likewise.
5324         (darwin_dyld_version_ok, darwin_load_image_infos)
5325         (darwin_solib_get_all_image_info_addr_at_init)
5326         (darwin_solib_read_all_image_info_addr): Add info argument.
5327         Adjust code.
5328         (darwin_current_sos): Use per pspace structure.
5329         (darwin_solib_create_inferior_hook): Likewise.
5330         (darwin_clear_solib): Likewise.
5331         (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5332
5333 2012-05-28  Pedro Alves  <palves@redhat.com>
5334
5335         * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5336         block that uses them.  Clear ecss before handling each event.
5337
5338 2012-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
5339
5340         * solib-svr4.c (svr4_current_sos): New comment on
5341         svr4_current_sos_via_xfer_libraries fall back.
5342
5343 2012-05-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
5344
5345         * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best.  Use
5346         it as a fallback for TYPE_IS_OPAQUE.
5347         * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5348         symbols for lookup_symbol.
5349
5350 2012-05-24  John Steele Scott  <toojays@toojays.net>
5351
5352         PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5353         * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5354         (producer_is_gxx_lt_4_6): Move the checking and caching to...
5355         (check_producer): ... this new function, which also checks for ICC
5356         and caches the result.
5357         (producer_is_icc): New function.
5358         (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5359         producer was ICC.
5360
5361 2012-05-24  Pedro Alves  <palves@redhat.com>
5362
5363         PR gdb/7205
5364
5365         * arch-utils.c (default_gdb_signal_to_host): Rename to ...
5366         (default_gdb_signal_to_target): ... this.  Add comment.
5367         (default_gdb_signal_from_host): Rename to ...
5368         (default_gdb_signal_from_target): ... this.  Add comment.
5369         * arch-utils.h (default_gdb_signal_to_host): Rename to ...
5370         (default_gdb_signal_to_target): ... this.
5371         (default_gdb_signal_from_host): Rename to ...
5372         (default_gdb_signal_from_target): ... this.
5373         * corelow.c (core_open): Adjust to naming change.  Replace comment.
5374         * gdbarch.sh (gdb_signal_from_host): Rename to ...
5375         (gdb_signal_from_target): ... this.  Adjust to
5376         default_gdb_signal_from_host naming change.  Extend comment.
5377         (gdb_signal_to_host): Rename to ...
5378         (gdb_signal_to_target): ... this.  Adjust to
5379         default_gdb_signal_to_host naming change.
5380         * gdbarch.h, gdbarch.c: Renegerate.
5381
5382 2012-05-24  Pedro Alves  <palves@redhat.com>
5383
5384         PR gdb/7205
5385
5386         Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
5387
5388 2012-05-24  Pedro Alves  <palves@redhat.com>
5389
5390         PR gdb/7205
5391
5392         Replace target_signal with gdb_signal throughout.
5393
5394 2012-05-24  Pedro Alves  <palves@redhat.com>
5395
5396         PR tui/14159
5397
5398         * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
5399         string, instead of reusing the va_list argument.
5400
5401 2012-05-24  Tom Tromey  <tromey@redhat.com>
5402
5403         * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
5404         Remove.
5405
5406 2012-05-23  Doug Evans  <dje@google.com>
5407
5408         * symtab.c (search_symbols): Formatting fixes.
5409         (print_symbol_info): Formatting fixes.
5410
5411         * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
5412         int64_t change to leb128 API.
5413         (read_encoded_value, decode_frame_entry_1): Ditto.
5414         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
5415         (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
5416         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5417         (execute_stack_op): Ditto.
5418         * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
5419         (safe_read_uleb128, safe_read_sleb128): Ditto.
5420         * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
5421         (dwarf2_compile_expr_to_ax): Ditto.
5422         (locexpr_describe_location_piece): Ditto.
5423         (disassemble_dwarf_expression): Ditto.
5424         (locexpr_describe_location_1): Ditto.
5425
5426 2012-05-23  Stan Shebs  <stan@codesourcery.com>
5427             Kwok Cheung Yeung  <kcy@codesourcery.com>
5428
5429         * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5430         (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5431         (mi-cmd-info.o): New rule.
5432         * osdata.h (info_osdata_command): New declaration.
5433         * osdata.c (info_osdata_command): Change to non-static.
5434         * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5435         * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5436         * mi/mi-cmd-info.c: New file.
5437
5438 2012-05-23  Doug Evans  <dje@google.com>
5439
5440         * symtab.c (search_symbols): Pass NULL for file_matcher to
5441         expand_symtabs_matching if there are no files to match.
5442
5443         * gdbtypes.c (lookup_typename): Simplify.
5444
5445 2012-05-23  Pedro Alves  <palves@redhat.com>
5446
5447         * arch-utils.h (default_target_signal_to_host): Delete.
5448         * arch-utils.c (default_target_signal_to_host): Delete.
5449         * gdbarch.sh (target_signal_to_host): Remove.
5450         * gdbarch.h, gdbarch.c: Regenerate.
5451
5452 2012-05-22  Doug Evans  <dje@google.com>
5453
5454         * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5455         "const gdb_byte *".
5456         (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5457         (execute_cfa_program): Update to match API of leb128 functions.
5458         (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5459         "const gdb_byte *".
5460         (read_unsigned_leb128, read_signed_leb128): Delete.
5461         (read_initial_length): Change type of buf argument to
5462         "const gdb_byte *".
5463         (read_encoded_value): Update to match API of leb128 functions.
5464         (decode_frame_entry): Change result to "const gdb_byte *", and
5465         similarly for "start" parameter.
5466         (decode_frame_entry_1): Ditto.  Use new leb128 reader functions.
5467         (dwarf2_build_frame_info): Change local frame_ptr to
5468         "const gdb_byte *".
5469         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5470         read_uleb128, read_sleb128.  All callers updated.
5471         (safe_skip_leb128): New function.
5472         (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5473         Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5474         (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5475         functions.  Call gdb_read_uleb128, gdb_read_sleb128 instead of
5476         read_uleb128, read_sleb128.
5477         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5478         (execute_stack_op): Update to match API of leb128 functions.
5479         * dwarf2expr.h: #include "leb128.h".
5480         (read_uleb128, read_sleb128): Delete.
5481         (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5482         (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5483         * dwarf2loc.c (debug_loc_kind): New enum.
5484         (decode_debug_loc_addresses): New function.
5485         (decode_debug_loc_dwo_addresses): New function.
5486         (dwarf2_find_location_expression): Rewrite.
5487         (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5488         (locexpr_describe_location_piece): Ditto.
5489         (disassemble_dwarf_expression): Ditto.
5490         (locexpr_describe_location_1): Ditto.
5491         (loclist_describe_location): Rewrite.
5492         * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5493         * dwarf2read.c (die_reader_specs): New member "buffer_end".
5494         (dwarf2_section_buffer_overflow_complaint): Renamed from
5495         dwarf2_macros_too_long_complaint.  All callers updated.
5496         (skip_leb128): Delete.
5497         (init_cu_die_reader): Initialize reader->buffer_end.
5498         (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5499         (skip_form_bytes): New arg buffer_end.  All callers updated.
5500         Replace call to skip_leb128 with gdb_skip_leb128.
5501         (skip_unknown_opcode): New arg mac_end.  All callers updated.
5502         (fill_in_loclist_baton): Initialize baton->from_dwo.
5503
5504 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
5505
5506         * mips-linux-nat.c (mips_linux_read_description): Use a more
5507         verbose error message.
5508
5509 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
5510
5511         * NEWS: Add MIPS/Linux DSP support.
5512         * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5513         (SIGCONTEXT_DSPCTL): New macro.
5514         (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5515         (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5516         (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5517         (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5518         (N64_SIGCONTEXT_HI3): Likewise.
5519         (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5520         (N64_SIGCONTEXT_LO3): Likewise.
5521         (N64_SIGCONTEXT_DSPCTL): Likewise.
5522         (N64_SIGCONTEXT_FPCSR): Clarify definition.
5523         (mips_linux_o32_sigframe_init): Handle DSP registers.
5524         (mips_linux_n32n64_sigframe_init): Likewise.
5525
5526 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
5527
5528         * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5529         call to abort.
5530
5531 2012-05-22  Pedro Alves  <palves@redhat.com>
5532
5533         * target.h (store_waitstatus): Move declaration ...
5534         * inf-child.h (store_waitstatus): ... here.
5535         * target.c: Move inclusion of gdb_wait.h, and ...
5536         (store_waitstatus): ... this ...
5537         * inf-child.c: ... here.
5538         * linux-nat.c: Include inf-child.h.
5539         * rs6000-nat.c: Include inf-child.h.
5540         * spu-linux-nat.c: Include inf-child.h.
5541
5542 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
5543
5544         * tracepoint.c (start_tracing): Add missing i18n markup.
5545         (stop_tracing, set_trace_user): Ditto.
5546         (set_trace_notes, set_trace_stop_notes): Ditto.
5547
5548 2012-05-21  Tom Tromey  <tromey@redhat.com>
5549
5550         PR c++/7173:
5551         * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5552         types.
5553         * value.h (value_cast_pointers): Update.
5554         * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5555         (value_cast): Update.
5556         (update_search_result): New function.
5557         (do_search_struct_field): New, from search_struct_field.  Check
5558         for ambiguous results.
5559         (search_struct_field): Rewrite.
5560         * infcall.c (value_arg_coerce): Update.
5561         * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5562         value_cast_pointers.
5563         * ada-lang.c (ada_convert_actual): Update.
5564
5565 2012-05-21  Tom Tromey  <tromey@redhat.com>
5566
5567         * macroexp.c (macro_stringify): Terminate the string.
5568
5569 2012-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
5570
5571         * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5572         Describe it.
5573         * auto-load.c (auto_load_expand_dir_vars): New function.
5574         (auto_load_safe_path_vec_update): Use it, remove the
5575         substitute_path_component call thanks to it.
5576         (auto_load_objfile_script): Remove the debug_file_directory processing.
5577         Use auto_load_expand_dir_vars, remove the substitute_path_component
5578         call thanks to it.
5579         * configure: Regenerate.
5580         * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5581         path.  Escape $ also for $debugdir.
5582         (--with_auto_load_safe_path): Escape $ also for $debugdir.
5583         * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5584
5585 2012-05-20  Doug Evans  <dje@google.com>
5586
5587         * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5588         before use.  Check for symtab->includes == NULL before scanning it.
5589
5590 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5591
5592         * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5593
5594 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5595
5596         * NEWS: Add microMIPS support and "set mips compression",
5597         "show mips compression" commands.
5598         * mips-tdep.h (mips_isa): New enum.
5599         (gdbarch_tdep): Add mips_isa.
5600         (mips_pc_is_mips16): Update prototype.
5601         (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5602         * mips-tdep.c (mips_compression_mips16): New variable.
5603         (mips_compression_micromips): Likewise.
5604         (mips_compression_strings): Likewise.
5605         (mips_compression_string): Likewise.
5606         (is_mips16_isa, is_micromips_isa): New functions.
5607         (is_mips16_addr): Rename to...
5608         (is_compact_addr): ... this.
5609         (unmake_mips16_addr): Likewise to...
5610         (unmake_compact_addr): ... this.
5611         (make_mips16_addr): Likewise to...
5612         (make_compact_addr): ... this.
5613         (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5614         functions.
5615         (mips_elf_make_msymbol_special): Handle microMIPS code.
5616         (msymbol_is_special): Rename to...
5617         (msymbol_is_mips16): ... this.
5618         (mips_make_symbol_special, mips_pc_is_mips16): Update
5619         accordingly.
5620         (msymbol_is_mips, msymbol_is_micromips): New functions.
5621         (mips16_to_32_reg): Rename to...
5622         (mips_reg3_to_reg): ... this.
5623         (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5624         (mips_pc_isa): Likewise.
5625         (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5626         code.
5627         (mips_fetch_instruction): Pass return status instead of printing
5628         an error message if requested.  Handle microMIPS code.  Bail out
5629         on an invalid ISA.
5630         (micromips_op): New macro.
5631         (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5632         (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5633         (b6s4_op, b7s3_reg): Likewise.
5634         (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5635         (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5636         (mips_insn_size): New function.
5637         (mips32_next_pc): Update mips_fetch_instruction call.
5638         (micromips_relative_offset7): New function.
5639         (micromips_relative_offset10): Likewise.
5640         (micromips_relative_offset16): Likewise.
5641         (micromips_pc_insn_size): Likewise.
5642         (micromips_bc1_pc): Likewise.
5643         (micromips_next_pc): Likewise.
5644         (unpack_mips16): Update mips_fetch_instruction call.
5645         (extended_mips16_next_pc): Update according to change to
5646         mips16_to_32_reg.
5647         (mips_next_pc): Update mips_pc_is_mips16 call.  Handle microMIPS
5648         code.
5649         (mips16_scan_prologue): Update mips_fetch_instruction call.
5650         Update according to change to mips16_to_32_reg.
5651         (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5652         (mips_insn16_frame_base_sniffer): Likewise.
5653         (micromips_decode_imm9): New function.
5654         (micromips_scan_prologue): Likewise.
5655         (mips_micro_frame_cache): Likewise.
5656         (mips_micro_frame_this_id): Likewise.
5657         (mips_micro_frame_prev_register): Likewise.
5658         (mips_micro_frame_sniffer): Likewise.
5659         (mips_micro_frame_unwind): New variable.
5660         (mips_micro_frame_base_address): New function.
5661         (mips_micro_frame_base): New variable.
5662         (mips_micro_frame_base_sniffer): New function.
5663         (mips32_scan_prologue): Update mips_fetch_instruction call.
5664         (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5665         rather than for MIPS16.
5666         (mips_insn32_frame_base_sniffer): Likewise.
5667         (mips_addr_bits_remove): Handle microMIPS code.
5668         (deal_with_atomic_sequence): Rename to...
5669         (mips_deal_with_atomic_sequence): ... this.  Update the type
5670         of the variable used to hold an instruction.  Remove the ISA bit
5671         check.  Update mips_fetch_instruction call.
5672         (micromips_deal_with_atomic_sequence): New function.
5673         (deal_with_atomic_sequence): Likewise.
5674         (mips_about_to_return): Handle microMIPS code.  Update
5675         mips_fetch_instruction call.
5676         (heuristic_proc_start): Check for the standard MIPS ISA rather
5677         than for MIPS16.  Update mips_pc_is_mips16 and
5678         mips_fetch_instruction calls.  Handle microMIPS code.
5679         (mips_push_dummy_code): Handle microMIPS code.
5680         (mips_eabi_push_dummy_call): Likewise.
5681         (mips_o32_return_value): Update mips_pc_is_mips16 call.
5682         (mips_o64_push_dummy_call): Handle microMIPS code.
5683         (mips_o64_return_value): Update mips_pc_is_mips16 call.
5684         (is_delayed): Remove function.
5685         (mips_single_step_through_delay): Replace the call to is_delayed
5686         with mips32_instruction_has_delay_slot.  Correct MIPS16 handling.
5687         Handle microMIPS code.
5688         (mips_skip_prologue): Update mips_pc_is_mips16 call.  Handle
5689         microMIPS code.
5690         (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5691         call.
5692         (micromips_in_function_epilogue_p): New function.
5693         (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5694         call.
5695         (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5696         Handle microMIPS.
5697         (gdb_print_insn_mips): Likewise.
5698         (mips_breakpoint_from_pc): Likewise.
5699         (mips_remote_breakpoint_from_pc): New function.
5700         (mips32_instruction_has_delay_slot): Simplify making use of the
5701         updated mips_fetch_instruction interface.
5702         (micromips_instruction_has_delay_slot): New function.
5703         (mips16_instruction_has_delay_slot): Simplify making use of the
5704         updated mips_fetch_instruction interface.
5705         (mips_adjust_breakpoint_address): Check for the standard MIPS
5706         ISA rather than for MIPS16 ISA.  Update for unmake_compact_addr
5707         calls.  Handle microMIPS code.
5708         (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5709         (mips_skip_trampoline_code): Handle microMIPS code.
5710         (global_mips_compression): New function.
5711         (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5712         file flags.  Register the microMIPS remote breakpoint handler
5713         and heuristic frame unwinder.
5714         (show_mips_compression): New function.
5715         (_initialize_mips_tdep): Add the "set mips compression" and
5716         "show mips compression" commands.
5717
5718 2012-05-18  Sergio Durigan Junior  <sergiodj@redhat.com>
5719
5720         * ada-lang.c:
5721         * ada-tasks.c:
5722         * ada-varobj.c:
5723         * amd64-darwin-tdep.c:
5724         * arm-symbian-tdep.c:
5725         * arm-tdep.c:
5726         * avr-tdep.c:
5727         * ax-gdb.c:
5728         * bfin-linux-tdep.c:
5729         * breakpoint.c:
5730         * c-valprint.c:
5731         * cli/cli-cmds.c:
5732         * coffread.c:
5733         * cp-support.c:
5734         * cris-tdep.c:
5735         * dwarf2-frame-tailcall.c:
5736         * dwarf2-frame.c:
5737         * dwarf2expr.c:
5738         * dwarf2loc.c:
5739         * dwarf2read.c:
5740         * elfread.c:
5741         * eval.c:
5742         * expprint.c:
5743         * f-valprint.c:
5744         * frv-tdep.c:
5745         * h8300-tdep.c:
5746         * hppa-hpux-tdep.c:
5747         * hppa-tdep.c:
5748         * hppanbsd-tdep.c:
5749         * i386-nto-tdep.c:
5750         * i386-tdep.c:
5751         * i387-tdep.c:
5752         * ia64-tdep.c:
5753         * jit.c:
5754         * linespec.c:
5755         * linux-tdep.c:
5756         * lm32-tdep.c:
5757         * m2-valprint.c:
5758         * m32c-tdep.c:
5759         * m32r-rom.c:
5760         * m32r-tdep.c:
5761         * m68k-tdep.c:
5762         * m68klinux-tdep.c:
5763         * mi/mi-main.c:
5764         * microblaze-tdep.c:
5765         * mips-linux-tdep.c:
5766         * mips-tdep.c:
5767         * mn10300-tdep.c:
5768         * p-valprint.c:
5769         * parse.c:
5770         * ppc-linux-tdep.c:
5771         * ppc-sysv-tdep.c:
5772         * printcmd.c:
5773         * python/py-finishbreakpoint.c:
5774         * python/py-inferior.c:
5775         * python/py-infthread.c:
5776         * python/py-type.c:
5777         * python/python.c:
5778         * remote-fileio.c:
5779         * remote-m32r-sdi.c:
5780         * remote-mips.c:
5781         * reverse.c:
5782         * rl78-tdep.c:
5783         * rs6000-aix-tdep.c:
5784         * rs6000-tdep.c:
5785         * s390-tdep.c:
5786         * score-tdep.c:
5787         * sh64-tdep.c:
5788         * skip.c:
5789         * solib-darwin.c:
5790         * solib-dsbt.c:
5791         * solib-frv.c:
5792         * sparc-tdep.c:
5793         * spu-multiarch.c:
5794         * spu-tdep.c:
5795         * stack.c:
5796         * symfile.c:
5797         * symtab.c:
5798         * tic6x-tdep.c:
5799         * tracepoint.c:
5800         * v850-tdep.c:
5801         * valarith.c:
5802         * valprint.c:
5803         * value.c:
5804         * xcoffread.c:
5805         * xtensa-tdep.c:
5806         * ada-lang.c:
5807         * ada-tasks.c:
5808         * ada-varobj.c:
5809         * amd64-darwin-tdep.c:
5810         * arm-symbian-tdep.c:
5811         * arm-tdep.c: Delete unused variables.
5812
5813 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5814
5815         Rename $ddir to $datadir.
5816         * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5817         * auto-load.c (auto_load_safe_path_vec_update)
5818         (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5819         * configure: Regenerate.
5820         * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5821         Likewise.  Remove the 'use $ddir' help string.
5822
5823 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5824
5825         * auto-load.c (show_auto_load_safe_path): Accept any combination of
5826         DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5827
5828 2012-05-18  Tom Tromey  <tromey@redhat.com>
5829
5830         PR exp/13907:
5831         * valprint.h (struct value_print_options) <symbol_print>: New
5832         field.
5833         * valprint.c (user_print_options): Add default for symbol_print.
5834         (show_symbol_print): New function.
5835         (generic_val_print): Respect symbol_print.
5836         (_initialize_valprint): Add "print symbol" setting.
5837         * f-valprint.c (f_val_print): Respect symbol_print.
5838         * c-valprint.c (c_val_print): Respect symbol_print.
5839         * NEWS: Update.
5840         * printcmd.c (print_address_symbolic): Return int.  Ignore some
5841         zero-size symbols.
5842         (print_address_demangle): Return int.
5843         * defs.h: (print_address_symbolic): Return int.
5844         * value.h (print_address_demangle): Return int.
5845
5846 2012-05-18  Tom Tromey  <tromey@redhat.com>
5847
5848         * valprint.c (val_print_string): Don't print leading space.
5849         * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5850         print space before string or vtbl.
5851         * m2-valprint.c (print_unpacked_pointer): Optionally print space
5852         before string.
5853         * jv-valprint.c (java_value_print): Print space before string.
5854         * go-valprint.c (print_go_string): Print space before string.
5855         * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5856         space before string.
5857         * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5858         space before string or vtbl.
5859         * auxv.c (fprint_target_auxv): Print space after address.
5860
5861 2012-05-18  Tom Tromey  <tromey@redhat.com>
5862
5863         * printcmd.c (print_address_demangle): Remove special case for 0.
5864
5865 2012-05-18  Tom Tromey  <tromey@redhat.com>
5866
5867         * printcmd.c (print_address_demangle): Add 'opts' argument.
5868         * p-valprint.c (pascal_val_print): Update.
5869         * jv-valprint.c (java_val_print): Update.
5870         * value.h: Update.
5871         * valprint.c (generic_val_print): Update.
5872         (print_function_pointer_address): Add 'options' argument.  Remove
5873         'addressprint' argument.  Update.
5874         * m2-valprint.c (print_unpacked_pointer): Update.
5875         * gnu-v3-abi.c (print_one_vtable): Update.
5876         (gnuv3_print_method_ptr): Update.
5877         * f-valprint.c (f_val_print): Update.
5878         * cp-valprint.c (cp_print_value_fields): Update.
5879         * valprint.h (print_function_pointer_address): Update.
5880         * c-valprint.c (c_val_print): Update.
5881
5882 2012-05-18  Tom Tromey  <tromey@redhat.com>
5883
5884         * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5885         directly corresponding to the found psymtab.
5886         * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5887         (dw2_find_pc_sect_symtab): Use it.
5888         * block.h (blockvector_contains_pc): Declare.
5889         * block.c (find_block_in_blockvector): New function.
5890         (blockvector_for_pc_sect): Use it.
5891         (blockvector_contains_pc): New function.
5892
5893 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5894
5895         * mips-tdep.h (mips_write_pc): New prototype.
5896         * mips-tdep.c (mips_write_pc): Make external, add description.
5897         * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5898         add description.
5899
5900 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5901
5902         * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5903         mips_regnum->pc.
5904         (mips_unwind_pc, mips_write_pc): Likewise.
5905         (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5906         gdbarch_read_pc.
5907
5908 2012-05-17  Joel Brobecker  <brobecker@adacore.com>
5909
5910         * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5911         proc_warn, proc_error, proc_get_status, proc_flags,
5912         proc_why, proc_what, proc_nsysarg, proc_sysargs,
5913         proc_set_run_on_last_close, proc_unset_run_on_last_close,
5914         proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5915         proc_stop_process, proc_wait_for_stop, proc_run_process,
5916         proc_set_traced_signals, proc_set_traced_faults,
5917         proc_set_traced_sysentry, proc_set_traced_sysexit,
5918         proc_set_held_signals, proc_get_held_signals,
5919         proc_get_traced_signals, proc_get_traced_faults,
5920         proc_get_traced_sysentry, proc_get_traced_sysexit,
5921         proc_clear_current_fault, proc_set_current_signal,
5922         proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5923         proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5924         proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5925         proc_get_current_thread, proc_get_current_thread,
5926         proc_get_current_thread, proc_update_threads,
5927         proc_update_threads, proc_update_threads, proc_update_threads,
5928         proc_iterate_over_threads, procfs_find_new_threads,
5929         procfs_pid_to_str): Make static.  Remove advance declaration.
5930         (proc_cursig): Make static.  Conditionalized defintion on
5931         PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5932         (proc_syscall, proc_set_kill_on_last_close,
5933         proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5934         proc_get_pending_signals, proc_get_signal_actions,
5935         proc_trace_signal, proc_ignore_signal): Delete.
5936
5937 2012-05-16  Sergio Durigan Junior  <sergiodj@redhat.com>
5938
5939         * coffread.c (cs_section_address): Passing proper argument for
5940         `bfd_get_section_vma'.
5941         * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5942         `bfd_get_section_flags'.
5943         * remote.c (remote_trace_set_readonly_regions): Likewise, for
5944         `bfd_get_section_vma'.
5945
5946 2012-05-16  Tom Tromey  <tromey@redhat.com>
5947
5948         PR macros/13205:
5949         * macrotab.h: (macro_define_special): Declare.
5950         (enum macro_special_kind): New.
5951         (struct macro_definition) <argc, replacement>: Update comments.
5952         * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5953         (macro_define_object_internal): New function.
5954         (macro_define_object): Use it.
5955         (macro_define_special): New function.
5956         (fixup_definition): New function.
5957         (macro_lookup_definition, foreach_macro_in_scope)
5958         (foreach_macro): Use fixup_definition.
5959         * macroexp.h (macro_stringify): Declare.
5960         * macroexp.c (free_buffer_return_text): New function.
5961         (stringify): Constify "arg".
5962         (macro_stringify): New function.
5963         * dwarf2read.c (macro_start_file): Call macro_define_special.
5964
5965 2012-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
5966             Maciej W. Rozycki  <macro@mips.com>
5967
5968         * breakpoint.h (bp_location): Add related_address member.
5969         * inferior.h (get_return_value): Take a pointer to struct value
5970         instead of struct type for the function requested.
5971         * value.h (using_struct_return): Likewise.
5972         * gdbarch.sh (return_value): Take a pointer to struct value
5973         instead of struct type for the function requested.
5974         * breakpoint.c (set_breakpoint_location_function): Initialize
5975         related_address for bp_gnu_ifunc_resolver breakpoints.
5976         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5977         requested function's address to gdbarch_return_value.
5978         * eval.c (evaluate_subexp_standard): Pass the requested
5979         function's address to using_struct_return.
5980         * infcall.c (call_function_by_hand): Pass the requested
5981         function's address to using_struct_return and
5982         gdbarch_return_value.
5983         * infcmd.c (get_return_value): Take a pointer to struct value
5984         instead of struct type for the function requested.
5985         (print_return_value): Update accordingly.
5986         (finish_command_continuation): Likewise.
5987         * stack.c (return_command): Pass the requested function's
5988         address to using_struct_return and gdbarch_return_value.
5989         * value.c (using_struct_return): Take a pointer to struct value
5990         instead of struct type for the function requested.  Pass the
5991         requested function's address to gdbarch_return_value.
5992         * python/py-finishbreakpoint.c (finish_breakpoint_object):
5993         New function_value member, replacing function_type.
5994         (bpfinishpy_dealloc): Update accordingly.
5995         (bpfinishpy_pre_stop_hook): Likewise.
5996         (bpfinishpy_init): Likewise.  Record the requested function's
5997         address.
5998         * mips-tdep.c (mips_fval_reg): New enum.
5999         (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6000         words put in GP registers.
6001         (mips_o64_push_dummy_call): Update a comment.
6002         (mips_o32_return_value): Take a pointer to struct value instead
6003         of struct type for the function requested and use it to check if
6004         using the MIPS16 calling convention.  Return the designated
6005         general purpose registers for floating-point values returned in
6006         MIPS16 mode.
6007         (mips_o64_return_value): Likewise.
6008         * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6009         (ppc_sysv_abi_broken_return_value): Likewise.
6010         (ppc64_sysv_abi_return_value): Likewise.
6011         * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6012         value instead of struct type for the function requested.
6013         * amd64-tdep.c (amd64_return_value): Likewise.
6014         * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6015         * arm-tdep.c (arm_return_value): Likewise.
6016         * avr-tdep.c (avr_return_value): Likewise.
6017         * bfin-tdep.c (bfin_return_value): Likewise.
6018         * cris-tdep.c (cris_return_value): Likewise.
6019         * frv-tdep.c (frv_return_value): Likewise.
6020         * h8300-tdep.c (h8300_return_value): Likewise.
6021         (h8300h_return_value): Likewise.
6022         * hppa-tdep.c (hppa32_return_value): Likewise.
6023         (hppa64_return_value): Likewise.
6024         * i386-tdep.c (i386_return_value): Likewise.
6025         * ia64-tdep.c (ia64_return_value): Likewise.
6026         * iq2000-tdep.c (iq2000_return_value): Likewise.
6027         * lm32-tdep.c (lm32_return_value): Likewise.
6028         * m32c-tdep.c (m32c_return_value): Likewise.
6029         * m32r-tdep.c (m32r_return_value): Likewise.
6030         * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6031         * m68k-tdep.c (m68k_return_value): Likewise.
6032         (m68k_svr4_return_value): Likewise.
6033         * m88k-tdep.c (m88k_return_value): Likewise.
6034         * mep-tdep.c (mep_return_value): Likewise.
6035         * microblaze-tdep.c (microblaze_return_value): Likewise.
6036         * mn10300-tdep.c (mn10300_return_value): Likewise.
6037         * moxie-tdep.c (moxie_return_value): Likewise.
6038         * mt-tdep.c (mt_return_value): Likewise.
6039         * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6040         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6041         (ppc_sysv_abi_broken_return_value): Likewise.
6042         (ppc64_sysv_abi_return_value): Likewise.
6043         * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6044         * rl78-tdep.c (rl78_return_value): Likewise.
6045         * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6046         * rx-tdep.c (rx_return_value): Likewise.
6047         * s390-tdep.c (s390_return_value): Likewise.
6048         * score-tdep.c (score_return_value): Likewise.
6049         * sh-tdep.c (sh_return_value_nofpu): Likewise.
6050         (sh_return_value_fpu): Likewise.
6051         * sh64-tdep.c (sh64_return_value): Likewise.
6052         * sparc-tdep.c (sparc32_return_value): Likewise.
6053         * sparc64-tdep.c (sparc64_return_value): Likewise.
6054         * spu-tdep.c (spu_return_value): Likewise.
6055         * tic6x-tdep.c (tic6x_return_value): Likewise.
6056         * v850-tdep.c (v850_return_value): Likewise.
6057         * vax-tdep.c (vax_return_value): Likewise.
6058         * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6059         * xtensa-tdep.c (xtensa_return_value): Likewise.
6060         * gdbarch.c: Regenerate.
6061         * gdbarch.h: Regenerate.
6062
6063 2012-05-15  Tom Tromey  <tromey@redhat.com>
6064
6065         * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6066
6067 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
6068
6069         * breakpoint.c (init_breakpoint_sal): Add quotes around part
6070         of command in two error message.
6071
6072 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
6073
6074         * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6075
6076 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
6077
6078         * breakpoint.c (find_condition_and_thread): Minor reformatting.
6079
6080 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6081
6082         * NEWS (show auto-load scripts-directory): Add forgotten command.
6083
6084 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6085
6086         * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6087         parameters.
6088
6089 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6090
6091         * amd64-tdep.c: Include features/i386/x32.c and
6092         features/i386/x32-avx.c.
6093         (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6094         initialize_tdesc_x32_avx.
6095
6096 2012-05-14  Stan Shebs  <stan@codesourcery.com>
6097
6098         Add dynamic printf.
6099         * breakpoint.h (enum bptype): New type bp_dprintf.
6100         (struct breakpoint): New field extra_string.
6101         (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6102         (create_breakpoint): Add extra_string arg.
6103         * breakpoint.c (dprintf_breakpoint_ops): New.
6104         (is_breakpoint): Add bp_dprintf.
6105         (bpstat_what): Add dprintf case.
6106         (bptype_string): Ditto.
6107         (print_one_breakpoint_location): Ditto.
6108         (init_bp_location): Ditto.
6109         (bkpt_print_mention): Ditto.
6110         (dprintf_style_enums): New array.
6111         (dprintf_style): New global.
6112         (dprintf_function): New global.
6113         (dprintf_channel): New global.
6114         (update_dprintf_command_list): New function.
6115         (update_dprintf_commands): New function.
6116         (init_breakpoint_sal): Add extra_string argument, handle it.
6117         (create_breakpoint_sal): Add extra_string argument.
6118         (create_breakpoints_sal): Add extra_string argument, update callers.
6119         (find_condition_and_thread): Add extra argument.
6120         (create_breakpoint): Add extra_string argument, record it.
6121         (dprintf_command): New function.
6122         (break_command_1): Add arg to create_breakpoint call.
6123         (handle_gnu_v3_exceptions): Ditto.
6124         (trace_command): Ditto.
6125         (ftrace_command): Ditto.
6126         (strace_command): Ditto.
6127         (bkpt_print_mention): Add dprintf case.
6128         (create_breakpoint_sal_default): Add extra_string argument.
6129         (_initialize_breakpoint): Add new commands.
6130         * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6131         * python/py-breakpoint.c (bppy_init): Ditto.
6132         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6133
6134 2012-05-14  Maciej W. Rozycki  <macro@codesourcery.com>
6135
6136         * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6137
6138 2012-05-14  Siva Chandra Reddy  <sivachandra@google.com>
6139
6140         * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6141         unsigned long long.
6142
6143 2012-05-13  Siva Chandra Reddy  <sivachandra@google.com>
6144
6145         Add a new function gdb.find_pc_line to the Python API.
6146         * NEWS (Python Scripting): Add entry about the new function.
6147         * python/python.c (gdbpy_find_pc_line): New function which
6148         implements gdb.find_pc_line.
6149         (GdbMethods): Add entry for the new function.
6150
6151 2012-05-12  Pedro Alves  <palves@redhat.com>
6152
6153         * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6154         initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6155
6156 2012-05-12  Eli Zaretskii  <eliz@gnu.org>
6157
6158         * inferior.c: Include completer.h
6159         (initialize_inferiors): Set completer of add-inferior to
6160         filename_completer.
6161
6162 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6163
6164         * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6165         gdbarch_ptr_bit for x32 core dump.
6166
6167 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6168
6169         * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6170         and features/i386/x32-avx-linux.c.
6171
6172 2012-05-11  Stan Shebs  <stan@codesourcery.com>
6173             Kwok Cheung Yeung  <kcy@codesourcery.com>
6174
6175         * NEWS: Describe new info os commands.
6176         * common/linux-osdata.c (PID_T, TIME_T): Define.
6177         (MAX_PID_T_STRLEN): New.
6178         (linux_common_core_of_thread): Add comment.  Change to use PID_T and
6179         MAX_PID_T_STRLEN.
6180         (command_from_pid): Add comment.  Change to use PID_T.
6181         (commandline_from_pid):  Change to use PID_T.
6182         (user_from_pid): Add comment.
6183         (get_process_owner): Add comment. Change to use PID_T and
6184         MAX_PID_T_STRLEN.
6185         (get_number_of_cpu_cores): Add comment.
6186         (get_cores_used_by_process): Add comment.  Change to use PID_T and
6187         MAX_PID_T_STRLEN.
6188         (linux_xfer_osdata_processes): Change to use PID_T and
6189         MAX_PID_T_STRLEN.
6190         (compare_processes): New function.
6191         (linux_xfer_osdata_processgroups): New function.
6192         (linux_xfer_osdata_threads): Change to use PID_T.
6193         (linux_xfer_osdata_fds): New function.
6194         (format_socket_state, print_sockets): New functions.
6195         (union socket_addr): New union.
6196         (linux_xfer_osdata_isockets): New function.
6197         (time_from_time_t, group_from_gid): New functions.
6198         (linux_xfer_osdata_shm): New function.
6199         (linux_xfer_osdata_sem): New function.
6200         (linux_xfer_osdata_msg): New function.
6201         (linux_xfer_osdata_modules): New function.
6202         (osdata_table): Add new entries.
6203         * common/buffer.c (buffer_xml_printf): Add support for long and
6204         long long format specifiers.
6205
6206 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6207
6208         * amd64-linux-tdep.h (tdesc_x32_linux): New.
6209         (tdesc_x32_avx_linux): Likewise.
6210
6211 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6212
6213         Implement multi-component --with-auto-load-dir.
6214         * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6215         entries.
6216         (--with-auto-load-safe-path): Update the default value description.
6217         * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6218         New.
6219         (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output.  Remove
6220         GDB_DATADIR NULL check.  Replace GDB_DATADIR/auto-load by
6221         AUTO_LOAD_DIR.  Support $ddir and multiple components in it.
6222         (_initialize_auto_load): Initialize also auto_load_dir.  Install new
6223         "set auto-load scripts-directory".
6224         * config.in: Regenerate.
6225         * configure: Regenerate.
6226         * configure.ac (--with-auto-load-dir): New configure option.
6227         (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6228
6229 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6230
6231         Provide $ddir substitution for --with-auto-load-safe-path.
6232         * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6233         entries.
6234         * auto-load.c: Include observer.h.
6235         (auto_load_safe_path_vec_update): Call substitute_path_component for
6236         each component.  New variable ddir_subst.
6237         (auto_load_gdb_datadir_changed): New function.
6238         (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6239         AUTO_LOAD_SAFE_PATH.  New comment.
6240         (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6241         AUTO_LOAD_SAFE_PATH.  Install auto_load_gdb_datadir_changed.
6242         * config.in: Regenerate.
6243         * configure: Regenerate.
6244         * configure.ac (--auto-load-safe-path): Rename
6245         DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH.  Default to
6246         GDB_DATADIR/auto-load.
6247         * defs.h (substitute_path_component): New declaration.
6248         * top.c: Include observer.h.
6249         (set_gdb_datadir): New function.
6250         (init_main): Install it for "set data-directory".
6251         * utils.c (substitute_path_component): New function.
6252
6253 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6254
6255         Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6256         * auto-load.c (auto_load_objfile_script): Remove check for NULL
6257         DEBUG_FILE_DIRECTORY.  Handle multiple components of
6258         DEBUG_FILE_DIRECTORY.
6259
6260 2012-05-10  Tom Tromey  <tromey@redhat.com>
6261
6262         * dwarf2read.c (recursively_write_psymbols): New function.
6263         (write_psymtabs_to_index): Use it.
6264
6265         * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6266         field.
6267         (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6268         (load_partial_comp_unit): Update.
6269         (queue_comp_unit): Add argument 'pretend_language'.
6270         (process_queue): Update.
6271         (psymtab_to_symtab_1): Skip dependencies that have a user.
6272         (load_partial_comp_unit_reader): Give meaning to the 'data'
6273         argument.
6274         (load_full_comp_unit): Add 'pretend_language' argument.
6275         (process_full_comp_unit): Add 'pretend_language' argument.  Set
6276         language on CU.
6277         (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6278         Update.
6279         (maybe_queue_comp_unit): Add 'pretend_language' argument.
6280         (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6281         Update.
6282         (prepare_one_comp_unit): Add 'pretend_language' argument.
6283
6284         * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6285         (struct dwarf2_per_objfile) <just_read_cus>: New field.
6286         (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6287         (dw2_do_instantiate_symtab): Check whether symtab was read in
6288         before queueing.
6289         (dw2_instantiate_symtab): Add assertion.  Call
6290         process_cu_includes.
6291         (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6292         (partial_symtab_p): New typedef.
6293         (set_partial_user): New function.
6294         (dwarf2_build_psymtabs_hard): Use set_partial_user.
6295         (scan_partial_symbols): Add imported CU to imported_symtabs.
6296         (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6297         (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6298         (get_symtab, recursively_compute_inclusions)
6299         (compute_symtab_includes, process_cu_includes)
6300         (process_imported_unit_die): New functions.
6301         (process_die) <DW_TAG_imported_unit>: New case.
6302         (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6303
6304         * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6305         comment.
6306         (struct partial_die_info) <locdesc>: Remove.
6307         <d>: New field.
6308         (process_psymtab_comp_unit): Add 'read_partial' argument.
6309         Update.
6310         (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6311         (scan_partial_symbols): Handle DW_TAG_imported_unit.
6312         (add_partial_symbol): Update.
6313         (process_die): Handle DW_TAG_partial_unit.
6314         (read_file_scope): Update comment.
6315         (load_partial_dies): Handle DW_TAG_imported_unit.
6316         (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6317         (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6318
6319 2012-05-10  Tom Tromey  <tromey@redhat.com>
6320
6321         * cc-with-dwz.sh: New file.
6322
6323 2012-05-10  Tom Tromey  <tromey@redhat.com>
6324
6325         * symtab.h (struct symtab) <includes, user>: New fields.
6326         * block.h (struct block_iterator) <d, idx, which>: New fields.
6327         * block.c (initialize_block_iterator, find_iterator_symtab)
6328         (block_iterator_step, block_iter_name_step)
6329         (block_iter_match_step): New functions.
6330         (block_iterator_first, block_iterator_next)
6331         (block_iter_name_first, block_iter_name_next)
6332         (block_iter_match_first, block_iter_match_next): Rewrite.
6333         (get_block_symtab): New function.
6334
6335 2012-05-10  Tom Tromey  <tromey@redhat.com>
6336
6337         * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6338         set_block_symtab.
6339         * jit.c (finalize_symtab): Use allocate_global_block,
6340         set_block_symtab.
6341         * buildsym.c (finish_block_internal): New function, from old
6342         finish_block.
6343         (finish_block): Rewrite.
6344         (end_symtab): Use finish_block_internal, set_block_symtab.
6345         * block.h (struct global_block): New.
6346         (allocate_global_block, set_block_symtab): Declare.
6347         * block.c (allocate_global_block, set_block_symtab): New
6348         functions.
6349
6350 2012-05-10  Tom Tromey  <tromey@redhat.com>
6351
6352         * psymtab.c (partial_map_expand_apply): Add assertion.
6353         (partial_map_symtabs_matching_filename): Skip included psymtabs.
6354         (psymtab_to_symtab): Find unshared psymtab.
6355         (dump_psymtab): Print including psymtabs.
6356         (recursively_search_psymtabs): New function.
6357         (expand_symtabs_matching_via_partial): Use it.
6358         * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6359         fields.
6360         (enum psymtab_search_status): New.
6361
6362 2012-05-10  Tom Tromey  <tromey@redhat.com>
6363
6364         * tracepoint.c (scope_info): Update.
6365         * symtab.c (lookup_block_symbol, iterate_over_symbols)
6366         (find_pc_sect_symtab, search_symbols)
6367         (default_make_symbol_completion_list_break_on)
6368         (make_file_symbol_completion_list): Update.
6369         * symmisc.c (dump_symtab_1): Update.
6370         * stack.c (print_frame_args, iterate_over_block_locals)
6371         (print_frame_labels, iterate_over_block_arg_vars): Update.
6372         * python/py-block.c (block_object) <dict>: Remove.
6373         <block>: New field.
6374         <iter>: Change type.
6375         (blpy_iter): Update.
6376         (blpy_block_syms_iternext): Update.
6377         * psymtab.c (map_block): Use block iterators.
6378         * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
6379         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6380         * mdebugread.c (parse_symbol, mylookup_symbol): Update.
6381         * infrun.c (check_exception_resume): Update.
6382         * cp-support.c (make_symbol_overload_list_block): Update.
6383         * coffread.c (patch_opaque_types): Update.
6384         * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
6385         * block.h (struct block_iterator): New.
6386         (block_iterator_first, block_iterator_next, block_iter_name_first)
6387         (block_iter_name_next, block_iter_match_first)
6388         (block_iter_match_next): Declare.
6389         (ALL_BLOCK_SYMBOLS): Redefine.
6390         * block.c (block_iterator_first, block_iterator_next)
6391         (block_iter_name_first, block_iter_name_next)
6392         (block_iter_match_first, block_iter_match_next): New functions.
6393         * ada-lang.c (ada_add_block_symbols)
6394         (ada_make_symbol_completion_list): Use block iterator.
6395
6396 2012-05-10  Tom Tromey  <tromey@redhat.com>
6397
6398         * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
6399         (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
6400         (lookup_partial_symbol, find_last_source_symtab_from_partial)
6401         (read_psymtabs_with_filename, map_matching_symbols_psymtab)
6402         (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
6403         Update.
6404
6405 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
6406
6407         * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
6408         print-file-var-lib2.c, print-file-var-main.c and
6409         print-file-var.exp (located in gdb/testsuite/gdb.base).
6410
6411 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
6412
6413         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6414         try locating the symbol in the symbol's own objfile first, before
6415         extending the search to all objfiles.
6416         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6417         out of lookup_symbol_aux_symtabs.
6418         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6419         Replace extracted-out code by call to lookup_symbol_aux_objfile.
6420         Do not search EXCLUDE_OBJFILE.
6421         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6422         (lookup_symbol_global): Search for matches in the block's objfile
6423         first, before searching all other objfiles.
6424
6425 2012-05-10  Tristan Gingold  <gingold@adacore.com>
6426
6427         * printcmd.c (set_command): Add pre/post inc/dec.
6428
6429 2012-05-09  Frank Ch. Eigler  <fche@redhat.com>
6430
6431         * gdb.1: Document -ex option.
6432
6433 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
6434
6435         * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6436         * inferior.h (AT_SYMBOL): Delete.
6437
6438 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
6439
6440         * mips-tdep.c (mips_push_dummy_code): New function.
6441         (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6442         ON_STACK and install mips_push_dummy_code as our gdbarch
6443         push_dummy_code routine.
6444
6445 2012-05-09  Pedro Alves  <palves@redhat.com>
6446
6447         * target.c (set_maintenance_target_async_permitted): Rename to ...
6448         (set_target_async_command): ... this.
6449         (show_maintenance_target_async_permitted): Rename to ...
6450         (show_target_async_command): ... this.
6451         (initialize_targets): Adjust.
6452
6453 2012-05-08  Doug Evans  <dje@google.com>
6454
6455         * go-exp.y (classify_name): Add missing assignment of fields of
6456         yylval.ssym.
6457
6458 2012-05-08  Eli Zaretskii  <eliz@gnu.org>
6459
6460         Display the ">" prompt in interactive mode while reading canned
6461         commands, even when the current interpreter is MI.
6462
6463         * interps.c (interp_set_temp): New function.
6464
6465         * interps.h (interp_set_temp): Add prototype.
6466
6467         * cli/cli-script.c (restore_interp): New cleanup function.
6468         (read_command_lines): Temporarily override the current interpreter
6469         with CLI and arrange for restoring the original one.
6470
6471 2012-05-12  Joel Sherrill <joel.sherrill@oarcorp.com>
6472
6473         * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6474
6475 2012-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
6476
6477         * probe.c (parse_probes): Move conditional to check for
6478         debuginfo files from here...
6479         * stap-probe.c (stap_get_probes): ... to here.
6480
6481 2012-05-07  Mark Kettenis  <kettenis@gnu.org>
6482             H.J. Lu  <hongjiu.lu@intel.com>
6483
6484         * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6485         `movl %esp, %ebp' for the X32 ABI.
6486
6487 2012-05-07  Tom Tromey  <tromey@redhat.com>
6488
6489         * dwarf2read.c (dwarf_tag_name): Return const char *.  Use
6490         get_DW_TAG_name.
6491         (dwarf_attr_name): Return const char *.  Use get_DW_AT_name.
6492         (dwarf_form_name): Return const char *.  Use get_DW_FORM_name.
6493         (dwarf_stack_op_name): Remove.
6494         (dwarf_cfi_name): Return const char *.  Use get_DW_ATE_name.
6495         (decode_locdesc): Use get_DW_OP_name.
6496         * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6497         (dwarf2_compile_expr_to_ax): Likewise.
6498         (disassemble_dwarf_expression): Likewise.
6499         * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6500
6501 2012-05-07  Chung-Lin Tang  <cltang@codesourcery.com>
6502
6503         * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6504         (sh_linux_sigtramp_cache): New function.
6505         (sh_linux_sigreturn_init): New function.
6506         (sh_linux_rt_sigreturn_init): New function.
6507         (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6508         patterns.
6509         (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6510         syscall codes.
6511         (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6512         (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6513         (sh_linux_init_abi): Add init calls to register new tramp_frame
6514         definitions under 32-bit SH, update comments.
6515
6516 2012-05-07  Pedro Alves  <palves@redhat.com>
6517
6518         PR gdb/10952
6519
6520         * amd64-linux-tdep.c: Include glibc-tdep.h.
6521         (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6522         gdbarch_skip_solib_resolver callback.
6523
6524 2012-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
6525
6526         * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6527         back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6528         (show_auto_load_safe_path): Check any-directory by comparison with "/".
6529         (add_auto_load_safe_path): Change the error message.
6530         (_initialize_auto_load): Change the "safe-path" help text.
6531         * configure: Regenerate
6532         * configure.ac (--without-auto-load-safe-path): Set
6533         WITH_AUTO_LOAD_SAFE_PATH to /.
6534
6535 2012-05-05  Sergio Durigan Junior  <sergiodj@redhat.com>
6536
6537         * stap-probe.h: Do not include unecessary `probe.h'.
6538
6539 2012-05-05  Alan Modra  <amodra@gmail.com>
6540
6541         * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6542         bfd_und_section_ptr.
6543         * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6544         and bfd_com_section_ptr.
6545
6546 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
6547
6548         * MAINTAINERS (Past Maintainers): Add Chris Faylor.
6549
6550 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
6551
6552         * windows-nat.h (segment_register_p_ftype): New typedef.
6553         (windows_set_segment_register_p): Add declaration.
6554         * windows-nat.c (segment_register_p): New static global.
6555         (windows_set_segment_register_p): New function.
6556         (do_windows_fetch_inferior_registers): Add special handling
6557         for segment registers.
6558         * amd64-windows-nat.c: #include "amd64-tdep.h".
6559         (amd64_windows_segment_register_p): New function.
6560         (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6561         * i386-windows-nat.c: #include "i386-tdep.h".
6562         (i386_windows_segment_register_p): New function.
6563         (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6564
6565 2012-05-04  Tristan Gingold  <gingold@adacore.com>
6566
6567         * printcmd.c (set_command): Emit a warning if the expression is not
6568         an assignment.
6569
6570 2012-05-03  Joel Brobecker  <brobecker@adacore.com>
6571
6572         * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6573         Make static.
6574
6575 2012-05-03  Sergio Durigan Junior  <sergiodj@redhat.com>
6576
6577         * stap-probe.c (stap_is_operator): Change declaration.
6578         (stap_get_opcode): Change return value.
6579         (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6580         `stap_parse_argument_1'.
6581
6582 2012-05-03  Pedro Alves  <pedro@codesourcery.com>
6583
6584         * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6585         debug log.
6586
6587 2012-05-03  Siva Chandra Reddy  <sivachandra@google.com>
6588
6589         Add two new methods global_block and static_block to gdb.Symtab
6590         objects.
6591         * NEWS (Python scripting): Add entry about the new methods.
6592         * python/py-symtab.c (stpy_global_block): New function which
6593         implements the gdb.Symtab.global_block() method.
6594         (stpy_static_block): New function which implements the
6595         gdb.Symtab.static_block() method.
6596         (symtab_object_methods): Add entries for the two new methods.
6597
6598 2012-05-03  Doug Evans  <dje@google.com>
6599
6600         * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6601         files.
6602
6603 2012-05-03  Yao Qi  <yao@codesourcery.com>
6604
6605         * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6606         space.
6607         (i386_process_record): Ditto.
6608
6609 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
6610
6611         * infcall.c (unwind_on_signal_p): Make static.
6612
6613 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
6614
6615         * sol-thread.c (solaris_pid_to_str): Make static.
6616         (_initialize_sol_thread): Add prototype.
6617
6618 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
6619
6620         * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6621
6622 2012-05-02  Christopher Faylor  <me.cygwin2012@cgf.cx>
6623
6624         * MAINTAINERS: Remove myself.
6625
6626 2012-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6627
6628         Fix --without-auto-load-safe-path for MS-Windows host platform.
6629         * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6630
6631 2012-05-02  Eli Zaretskii  <eliz@gnu.org>
6632
6633         * gdb_curses.h: Undefine KEY_EVENT before including curses
6634         headers.  Move "#undef MOUSE_MOVED" before any curses header
6635         inclusion.
6636
6637 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
6638
6639         * features/i386/i386-mmx-linux.c: Regenerate.
6640         * features/rs6000/powerpc-32.c: Likewise.
6641         * features/rs6000/powerpc-32l.c: Likewise.
6642         * features/rs6000/powerpc-403.c: Likewise.
6643         * features/rs6000/powerpc-403gc.c: Likewise.
6644         * features/rs6000/powerpc-405.c: Likewise.
6645         * features/rs6000/powerpc-505.c: Likewise.
6646         * features/rs6000/powerpc-601.c: Likewise.
6647         * features/rs6000/powerpc-602.c: Likewise.
6648         * features/rs6000/powerpc-603.c: Likewise.
6649         * features/rs6000/powerpc-604.c: Likewise.
6650         * features/rs6000/powerpc-64.c: Likewise.
6651         * features/rs6000/powerpc-64l.c: Likewise.
6652         * features/rs6000/powerpc-750.c: Likewise.
6653         * features/rs6000/powerpc-860.c: Likewise.
6654         * features/rs6000/powerpc-e500.c: Likewise.
6655         * features/rs6000/powerpc-e500l.c: Likewise.
6656         * features/rs6000/powerpc-isa205-32l.c: Likewise.
6657         * features/rs6000/powerpc-isa205-64l.c: Likewise.
6658         * features/rs6000/rs6000.c: Likewise.
6659
6660 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
6661
6662         * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6663         variable.
6664         * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6665         reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6666         (stap_parse_argument) <e>: Likewise.
6667         (handle_stap_probe) <byte_order>: Likewise.
6668
6669 2012-04-30  Doug Evans  <dje@google.com>
6670
6671         * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6672         init_and_read_dies_worker.  All callers updated.
6673         (init_cu_and_read_dies, init_tu_and_read_dies): Delete.  All calls
6674         replaced with init_cutu_and_read_dies.
6675         (load_partial_comp_unit): Pass 1 for use_existing_cu.
6676         (find_partial_die): Remove FIXME.  Don't free current CU.
6677
6678 2012-04-30  Sterling Augustine  <saugustine@google.com>
6679
6680         * contrib: New directory.
6681         * contrib/test_pubnames_and_indexes.py: New file.
6682
6683 2012-04-30  Doug Evans  <dje@google.com>
6684
6685         * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6686         All callers updated.
6687         (init_cu_die_reader): Verify the section is non-empty.
6688         (dwarf_decode_line_header): Don't dereference section->asection
6689         until we know the section is present.
6690
6691 2012-04-29  Sergio Durigan Junior  <sergiodj@redhat.com>
6692
6693         * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6694         probes.
6695
6696 2012-04-29  Yao Qi  <yao@codesourcery.com>
6697
6698         * gdb-code-style.el: New hook gdb-markup-hook
6699         and gdb-comment-hook.
6700
6701 2012-04-28  Doug Evans  <dje@google.com>
6702
6703         Initial support for Fission.  http://gcc.gnu.org/wiki/DebugFission
6704         * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6705         objfile->obfd.
6706         * symfile.h (dwarf2_debug_sections): New member addr.
6707         * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6708         (ctx_no_get_addr_index): New function.
6709         * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6710         (ctx_no_get_addr_index): Declare.
6711         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6712         * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6713         (dwarf_expr_ctx_funcs): Update.
6714         (needs_get_addr_index): New function.
6715         (needs_frame_ctx_funcs): Update.
6716         * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6717         * dwarf2read.c: #include "gdbcore.h".
6718         (dwarf2_per_objfile): New members addr, dwo_files.
6719         (dwarf2_elf_names): Add entry for addr.
6720         (struct dwo_section_names): New type.
6721         (dwo_section_names): New static global.
6722         (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6723         (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6724         old debug_types_section member updated to use this.
6725         Rename member debug_types_section to info_or_types_section,
6726         all uses updated.
6727         (signatured_type): Rename member type_offset to type_offset_in_tu,
6728         all uses updated.  New member type_offset_in_section.
6729         (struct dwo_sections): New type.
6730         (struct dwo_unit): New type.
6731         (struct dwo_file): New type.
6732         (die_reader_specs): New member dwo_file.
6733         (dwarf2_locate_sections): Watch for .debug_addr.
6734         (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6735         (dwarf2_read_section): Get bfd of section from bfd's asection,
6736         instead of objfile.
6737         (create_cus_from_index): Initialize the_cu->info_or_types_section.
6738         (create_signatured_type_table_from_index): Initialize
6739         sig_type->info_or_types_section.
6740         (dw2_get_file_names): Statement lists for type units with DWO files
6741         live in the DWO file.
6742         (create_debug_types_hash_table): New function.
6743         (create_all_type_units): Rewrite.
6744         (init_cu_die_reader): New arg dwo_file, all callers updated.
6745         (init_and_read_dies_worker): Get section from
6746         this_cu->info_or_types_section.  Set sig_type->type_offset_in_section.
6747         Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6748         continue reading the CU/TU from there.
6749         (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6750         updated.  Get section from this_cu->info_or_types_section.
6751         (create_all_comp_units): Initialize this_cu->info_or_types_section.
6752         (skip_one_die): New cases DW_FORM_GNU_addr_index,
6753         DW_FORM_GNU_str_index.
6754         (hash_dwo_file, eq_dwo_file): New functions.
6755         (allocate_dwo_file_hash_table): New function.
6756         (hash_dwo_unit, eq_dwo_unit): New functions.
6757         (allocate_dwo_unit_table): New function.
6758         (dwarf2_locate_dwo_sections): New function.
6759         (struct create_dwo_info_table_data): New type.
6760         (create_debug_info_hash_table_reader): New function.
6761         (create_debug_info_hash_table): New function.
6762         (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6763         (lookup_dwo_file): New function.
6764         (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6765         (free_dwo_file, free_dwo_file_cleanup): New functions.
6766         (free_dwo_file_from_slot, free_dwo_files): New functions.
6767         (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6768         (dwarf2_record_block_ranges): Ditto.
6769         (read_partial_die): Ditto.
6770         (process_enumeration_scope): Update to use type_offset_in_section.
6771         (read_full_die_1): New function.
6772         (read_full_die): Rewrite.
6773         (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6774         DW_FORM_GNU_str_index.
6775         (read_addr_index_1, read_addr_index): New functions.
6776         (read_addr_index_from_leb128): New function.
6777         (struct dwarf2_read_addr_index_data): New type.
6778         (dwarf2_read_addr_index_reader): New function.
6779         (dwarf2_read_addr_index): New function.
6780         (read_str_index): New function.
6781         (leb128_size): New function.
6782         (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6783         If processing a type unit from a DWO file, get the line section
6784         from the DWO file.
6785         (var_decode_location): Watch for DW_OP_GNU_addr_index.
6786         (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6787         DW_FORM_GNU_str_index.
6788         (lookup_die_type): Check whether section offset of type's die is
6789         known before looking it up.  Remove assert.  Condition can
6790         legimately happen for inter-cu type references.
6791         (dwarf_attr_name): Handle Fission attributes.
6792         (dwarf_form_name): Handle Fission forms.
6793         (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6794         DW_FORM_GNU_str_index.
6795         (follow_die_sig): Update to use type_offset_in_section.
6796         (decode_locdesc): New case DW_OP_GNU_addr_index.
6797         (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6798         DW_FORM_GNU_str_index.
6799         (cu_debug_loc_section): New function.
6800         (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6801         (dwarf2_per_objfile_free): Unmap .debug_addr section.
6802         Free DWO files if present.
6803         * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6804
6805         Refactor DIE reading.
6806         * dwarf2read.c (dwarf2_per_objfile): Replace members
6807         debug_info_type_hash and debug_types_type_hash with die_type_hash.
6808         (die_reader_specs): New member "die_section".  Temporarily make
6809         member "buffer" non-const, pending constifying all info_ptr uses.
6810         (die_reader_func_ftype): New typedef.
6811         (dw2_get_file_names_reader): New function.
6812         (dw2_get_file_names): Rewrite.
6813         (read_and_check_type_unit_head): Rename arg type_offset to
6814         type_offset_in_tu.
6815         (create_all_type_units): Improve debugging message.
6816         Improve dummy type unit check.
6817         (init_cu_die_reader): New arg "section".  All callers updated.
6818         (init_and_read_dies_worker): New function.
6819         (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6820         (init_cutu_and_read_dies_no_follow): New function.
6821         (init_cutu_and_read_dies_simple): New function.
6822         (process_psymtab_comp_unit_reader): New function.
6823         (process_psymtab_comp_unit): Delete args section,
6824         is_debug_types_section.  Rewrite.  All callers updated.
6825         (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6826         All callers updated.  Rewrite.
6827         (load_partial_comp_unit_reader): New function.
6828         (load_partial_comp_unit): Rewrite.
6829         (skip_children): New arg reader.  Delete args buffer, cu.
6830         All callers updated.
6831         (skip_one_die): New arg reader.  Delete args buffer, cu.
6832         All callers updated.
6833         (locate_pdi_sibling): New arg reader.  Delete args buffer, abfd, cu.
6834         All callers updated.
6835         (load_full_comp_unit_reader): New function.
6836         (load_full_comp_unit): Rewrite.
6837         (read_comp_unit): Delete.
6838         (read_die_and_children_1): Delete, contents moved ...
6839         (read_die_and_children): ... here.
6840         (dwarf2_read_abbrevs): New arg abbrev_section.  All callers updated.
6841         (load_partial_dies): New arg reader.  Delete args abfd, buffer, cu.
6842         All callers updated.
6843         (read_partial_die): New arg reader.  Delete args abfd, buffer, cu.
6844         All callers updated.
6845         (find_partial_die): Rewrite load_all_dies support.
6846         (read_attribute_value): New arg reader.  Delete args abfd, cu.
6847         All callers updated.
6848         (read_attribute): New arg reader.  Delete args abfd, cu.
6849         All callers updated.
6850         (load_full_type_unit): Add assert.
6851         (read_signatured_type_reader): New function.
6852         (read_signatured_type): Rewrite.
6853         (free_stack_comp_unit): Remove call to age_cached_comp_units.
6854         (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6855         All callers updated.  Set per_cu->cu = NULL after freeing it.
6856         (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6857         (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6858         (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6859         (set_die_type): Update.
6860         (get_die_type_at_offset): Update.
6861         (read_file_scope): Call prepare_one_comp_unit.
6862         (read_type_unit_scope): Ditto.
6863         (prepare_one_comp_unit): Set producer if present.
6864
6865 2012-04-28  Sergio Durigan Junior  <sergiodj@redhat.com>
6866
6867         * probe.c (compile_rx_or_error): Silence ARI warning about missing
6868          gettext function on `error'.
6869
6870 2012-04-27  Doug Evans  <dje@google.com>
6871
6872         * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6873         is empty.
6874
6875 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6876             Tom Tromey  <tromey@redhat.com>
6877
6878         * breakpoint.c (struct breakpoint_objfile_data)
6879         <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6880         <exception_probes>: New fields.
6881         (free_breakpoint_probes): New function.
6882         (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6883         `_Unwind_DebugHook'.
6884         (create_exception_master_breakpoint): Likewise.
6885         (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6886         * infrun.c: Including necessary header files for handling SystemTap
6887         probes.
6888         (handle_inferior_event): Handling longjmp breakpoint and exceptions
6889         via SystemTap probes.
6890         (check_exception_resume): Remove `func' argument.  Handle exception
6891         unwinding breakpoint set via a SystemTap probe.
6892         (insert_exception_resume_from_probe): New function.
6893
6894 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6895             Tom Tromey  <tromey@redhat.com>
6896             Jan Kratochvil  <jan.kratochvil@redhat.com>
6897
6898         * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6899         (COMMON_OBS): Likewise.
6900         (HFILES_NO_SRCDIR): Add `probe'.
6901         * NEWS: Mention support for static and SystemTap probes.
6902         * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6903         SystemTap probes' arguments parser.
6904         * arm-linux-tdep.c: Including headers needed to perform the parsing
6905         of SystemTap probes' arguments.
6906         (arm_stap_is_single_operand): New function.
6907         (arm_stap_parse_special_token): Likewise.
6908         (arm_linux_init_abi): Initializing proper fields used by SystemTap
6909         probes' arguments parser.
6910         * ax-gdb.c (require_rvalue): Removing static declaration.
6911         (gen_expr): Likewise.
6912         * ax-gdb.h (gen_expr): Declaring function.
6913         (require_rvalue): Likewise.
6914         * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6915         (bkpt_probe_breakpoint_ops): New variable.
6916         (momentary_breakpoint_from_master): Set the `probe' value.
6917         (add_location_to_breakpoint): Likewise.
6918         (break_command_1): Using proper breakpoint_ops according to the
6919         argument passed by the user in the command line.
6920         (bkpt_probe_insert_location): New function.
6921         (bkpt_probe_remove_location): Likewise.
6922         (bkpt_probe_create_sals_from_address): Likewise.
6923         (bkpt_probe_decode_linespec): Likewise.
6924         (tracepoint_probe_create_sals_from_address): Likewise.
6925         (tracepoint_probe_decode_linespec): Likewise.
6926         (tracepoint_probe_breakpoint_ops): New variable.
6927         (trace_command): Using proper breakpoint_ops according to the
6928         argument passed by the user in the command line.
6929         (initialize_breakpoint_ops): Initializing breakpoint_ops for
6930         static probes on breakpoints and tracepoints.
6931         * breakpoint.h (struct bp_location) <probe>: New field.
6932         * cli-utils.c (skip_spaces_const): New function.
6933         (extract_arg): Likewise.
6934         * cli-utils.h (skip_spaces_const): Likewise.
6935         (extract_arg): Likewise.
6936         * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6937         * configure.ac: Append `stap-probe.o' to be generated when ELF
6938         support is present.
6939         * configure: Regenerate.
6940         * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6941         * elfread.c: Include `probe.h' and `arch-utils.h'.
6942         (probe_key): New variable.
6943         (elf_get_probes): New function.
6944         (elf_get_probe_argument_count): Likewise.
6945         (elf_evaluate_probe_argument): Likewise.
6946         (elf_compile_to_ax): Likewise.
6947         (elf_symfile_relocate_probe): Likewise.
6948         (stap_probe_key_free): Likewise.
6949         (elf_probe_fns): New variable.
6950         (elf_sym_fns): Add `sym_probe_fns' value.
6951         (elf_sym_fns_lazy_psyms): Likewise.
6952         (elf_sym_fns_gdb_index): Likewise.
6953         (_initialize_elfread): Initialize objfile cache for static
6954         probes.
6955         * gdb_vecs.h (struct probe): New forward declaration.
6956         (probe_p): New VEC declaration.
6957         * gdbarch.c: Regenerate.
6958         * gdbarch.h: Regenerate.
6959         * gdbarch.sh (stap_integer_prefix): New variable.
6960         (stap_integer_suffix): Likewise.
6961         (stap_register_prefix): Likewise.
6962         (stap_register_suffix): Likewise.
6963         (stap_register_indirection_prefix): Likewise.
6964         (stap_register_indirection_suffix): Likewise.
6965         (stap_gdb_register_prefix): Likewise.
6966         (stap_gdb_register_suffix): Likewise.
6967         (stap_is_single_operand): New function.
6968         (stap_parse_special_token): Likewise.
6969         (struct stap_parse_info): Forward declaration.
6970         * i386-tdep.c: Including headers needed to perform the parsing
6971         of SystemTap probes' arguments.
6972         (i386_stap_is_single_operand): New function.
6973         (i386_stap_parse_special_token): Likewise.
6974         (i386_elf_init_abi): Initializing proper fields used by SystemTap
6975         probes' arguments parser.
6976         * i386-tdep.h (i386_stap_is_single_operand): New function.
6977         (i386_stap_parse_special_token): Likewise.
6978         * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6979         * mipsread.c (ecoff_sym_fns): Likewise.
6980         * objfiles.c (objfile_relocate1): Support relocation for static
6981         probes.
6982         * parse.c (prefixify_expression): Remove static declaration.
6983         (initialize_expout): Likewise.
6984         (reallocate_expout): Likewise.
6985         * parser-defs.h (initialize_expout): Declare function.
6986         (reallocate_expout): Likewise.
6987         (prefixify_expression): Likewise.
6988         * ppc-linux-tdep.c: Including headers needed to perform the parsing
6989         of SystemTap probes' arguments.
6990         (ppc_stap_is_single_operand): New function.
6991         (ppc_stap_parse_special_token): Likewise.
6992         (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6993         probes' arguments parser.
6994         * probe.c: New file, for generic statically defined probe support.
6995         * probe.h: Likewise.
6996         * s390-tdep.c: Including headers needed to perform the parsing of
6997         SystemTap probes' arguments.
6998         (s390_stap_is_single_operand): New function.
6999         (s390_gdbarch_init): Initializing proper fields used by SystemTap
7000         probes' arguments parser.
7001         * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7002         * stap-probe.c: New file, for SystemTap probe support.
7003         * stap-probe.h: Likewise.
7004         * symfile.h: Include `gdb_vecs.h'.
7005         (struct sym_probe_fns): New struct.
7006         (struct sym_fns) <sym_probe_fns>: New field.
7007         * symtab.c (init_sal): Initialize `probe' field.
7008         * symtab.h (struct probe): Forward declaration.
7009         (struct symtab_and_line) <probe>: New field.
7010         * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7011         locations.
7012         (stop_tracing): Likewise.
7013         * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7014
7015 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
7016             Tom Tromey  <tromey@redhat.com>
7017
7018         * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7019         and to compile agent expressions.
7020         * infrun.c (siginfo_make_value): New argument `ignore'.
7021         (siginfo_funcs): New struct.
7022         (_initialize_infrun): New argument when calling
7023         `create_internalvar_type_lazy'.
7024         * thread.c (thread_id_make_value): New argument `ignore'.
7025         (thread_funcs): New struct.
7026         (_initialize_thread): New argument when calling
7027         `create_internalvar_type_lazy'.
7028         * tracepoint.c (sdata_make_value): New argument `ignore'.
7029         (sdata_funcs): New struct.
7030         (_initialize_tracepoint): New argument when calling
7031         `create_internalvar_type_lazy'.
7032         * value.c (make_value): New struct.
7033         (create_internalvar_type_lazy): New argument `data'.
7034         (compile_internalvar_to_ax): New function.
7035         (value_of_internalvar): Properly handling `make_value' case.
7036         (clear_internalvar): Likewise.
7037         (show_convenience): Adding `TRY_CATCH' block.
7038         * value.h (internalvar_make_value): Delete, replace by...
7039         (struct internalvar_funcs): ... this.
7040         (create_internalvar_type_lazy) <fun>: Delete argument.
7041         (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7042         (compile_internalvar_to_ax): New function.
7043         * windows-tdep.c (tlb_make_value): New argument `ignore'.
7044         (tlb_funcs): New struct.
7045         (_initialize_windows_tdep): New argument when calling
7046         `create_internalvar_type_lazy'.
7047
7048 2012-04-27  Mark Wielaard  <mjw@redhat.com>
7049
7050         * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7051         see whether it is an address or a constant offset from DW_AT_low_pc.
7052         (dwarf2_record_block_ranges): Likewise.
7053         (read_partial_die): Likewise.
7054
7055 2012-04-26  Mark Wielaard  <mjw@redhat.com>
7056
7057         * MAINTAINERS (Write After Approval): Add myself to the list.
7058
7059 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
7060
7061         * proc-utils.h (proc_prettyprint_signalset): New prototype.
7062         (proc_prettyprint_signal): Likewise.
7063         (proc_prettyprint_faultset): Likewise.
7064         (proc_prettyprint_fault): Likewise.
7065         (proc_prettyprint_actionset): Likewise.
7066         (proc_prettyprint_flags): Move to new proc-flags.c section.
7067         (proc_prettyfprint_flags): New prototype.
7068         * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7069         (proc_syscall, proc_cursig): Likewise.
7070         (proc_set_kill_on_last_close): Likewise.
7071         (proc_unset_kill_on_last_close): Likewise.
7072         (proc_set_watchpoint): Make static.
7073         (proc_delete_dead_threads): Likewise.
7074         (procfs_set_watchpoint): Likewise.
7075         (_initialize_procfs): Add prototype.
7076         * proc-events.c: Include proc-utils.h.
7077         (init_syscall_table): Make static.
7078         * proc-api.c (_initialize_proc_api): Add prototype.
7079         * proc-flags.c: Include proc-utils.h.
7080
7081 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
7082
7083         * configure.ac: Add AC_ARG_PROGRAM.
7084         * configure: Regenerate.
7085
7086 2012-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
7087
7088         Fix DW_AT_lower_bound defaults for DWARF-4+.
7089         * dwarf2read.c (read_subrange_type): Remove initialization of low and
7090         high.  New variable low_default_is_valid.  Implement DWARF-4+
7091         DW_AT_lower_bound defaults.  Print complaint for DW_AT_lower_bound with
7092         no default by the DWARF standard.
7093
7094 2012-04-26  Maciej W. Rozycki  <macro@mips.com>
7095             Maciej W. Rozycki  <macro@codesourcery.com>
7096
7097         * infrun.c (handle_inferior_event): Move the check for return
7098         trampolines ahead of the check for function trampolines.
7099         * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7100         * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7101         (mips_str_mips16_ret_stub): Likewise.
7102         (mips_str_call_fp_stub): Likewise.
7103         (mips_str_call_stub): Likewise.
7104         (mips_str_fn_stub): Likewise.
7105         (mips_str_pic): Likewise.
7106         (mips_in_frame_stub): New function.
7107         (mips_unwind_pc): Return the return address rather than the PC
7108         if the PC of an intermediate frame is inside a call thunk.
7109         (mips_is_stub_suffix): New function.
7110         (mips_is_stub_mode): Likewise.
7111         (mips_get_mips16_fn_stub_pc): Likewise.
7112         (mips_skip_mips16_trampoline_code): Update to handle all the
7113         currently generated stub types.  Don't recurse into __fn_stub
7114         thunks.  Remove heuristics to handle stubs beyond etext/_etext.
7115         Use cooked register accesses.
7116         (mips_in_return_stub): Reintroduce function.
7117         (mips_skip_trampoline_code): Traverse trampolines recursively.
7118         (mips_gdbarch_init): Handle MIPS16 return trampolines.
7119
7120 2012-04-26  Joel Brobecker  <brobecker@adacore.com>
7121
7122         GDB 7.4.1 released.
7123
7124 2012-04-26  Jonathan Larmour  <jifl@eCosCentric.com>
7125
7126         * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7127         * features/arm-with-m-vfp-d16.xml: New file. Describes
7128         Cortex-M with VFPv4-sp-d16 FPU register layout.
7129         * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7130         * features/arm-with-m-vfp-d16.c: New. Generated from above.
7131         * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7132         (arm-register_g_packet_guesses): Add vfp-d16 guess.
7133         (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7134
7135 2012-04-25  Doug Evans  <dje@google.com>
7136
7137         * cli/cli-decode.c (print_doc_line): Use stream instead of
7138         current_uiout.
7139
7140 2012-04-25  Sergio Durigan Junior  <sergiodj@redhat.com>
7141
7142         * features/arm-with-iwmmxt.c: Regenerate.
7143         * features/arm-with-m-fpa-layout.c: Likewise.
7144         * features/arm-with-m.c: Likewise.
7145         * features/arm-with-neon.c: Likewise.
7146         * features/arm-with-vfpv2.c: Likewise.
7147         * features/arm-with-vfpv3.c: Likewise.
7148         * features/mips-dsp-linux.c: Likewise.
7149         * features/mips-linux.c: Likewise.
7150         * features/mips64-dsp-linux.c: Likewise.
7151         * features/mips64-linux.c: Likewise.
7152         * features/s390-linux32.c: Likewise.
7153         * features/s390-linux32v1.c: Likewise.
7154         * features/s390-linux32v2.c: Likewise.
7155         * features/s390-linux64.c: Likewise.
7156         * features/s390-linux64v1.c: Likewise.
7157         * features/s390-linux64v2.c: Likewise.
7158         * features/s390x-linux64.c: Likewise.
7159         * features/s390x-linux64v1.c: Likewise.
7160         * features/s390x-linux64v2.c: Likewise.
7161         * features/tic6x-c62x-linux.c: Likewise.
7162         * features/tic6x-c62x.c: Likewise.
7163         * features/tic6x-c64x-linux.c: Likewise.
7164         * features/tic6x-c64x.c: Likewise.
7165         * features/tic6x-c64xp-linux.c: Likewise.
7166         * features/tic6x-c64xp.c: Likewise.
7167         * target-descriptions.c: Only generate `field_type' and `type'
7168         variables when needed.
7169
7170 2012-04-25  Fredrik Hederstierna  <fredrikh.hederstierna@securitas-direct.com>
7171
7172         * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7173
7174 2012-04-25  Doug Evans  <dje@google.com>
7175
7176         Initial pass at Go language support.
7177         * NEWS: Mention Go.
7178         * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7179         go-valprint.c.
7180         (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7181         (YYFILES): Add go-exp.c.
7182         (YYOBJ): Add go-exp.o.
7183         (local-maintainer-clean): Delete go-exp.c.
7184         * defs.h (enum language): Add language_go.
7185         * dwarf2read.c: #include "go-lang.h".
7186         (fixup_go_packaging): New function.
7187         (process_full_comp_unit): Call it when processing Go CUs.
7188         (dwarf2_physname): Add Go support.
7189         (read_file_scope): Handle missing language spec for GNU Go.
7190         (set_cu_language): Handle DW_LANG_Go.
7191         * go-exp.y: New file.
7192         * go-lang.h: New file.
7193         * go-lang.c: New file.
7194         * go-typeprint.c: New file.
7195         * go-valprint.c: New file.
7196         * symtab.c: #include "go-lang.h".
7197         (symbol_set_language): Handle language_go.
7198         (symbol_find_demangled_name, symbol_set_names): Ditto.
7199         (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7200
7201 2012-04-24  Jim Meyering  <meyering@redhat.com>
7202
7203         avoid a few strncpy-induced buffer overruns
7204         * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7205         fname and psargs before trying to concatenate.
7206         * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7207         "name" before applying strchr.
7208
7209 2012-04-25  Siva Chandra Reddy  <sivachandra@google.com>
7210
7211         * CONTRIBUTE: Use unified diff instead of context diff when
7212         generating patches.
7213
7214 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
7215
7216         * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7217         code.  Handle JR.HB correctly.
7218
7219 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
7220
7221         * mips-tdep.c
7222         (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7223         with the other MIPS16 helpers.
7224
7225 2012-04-24  Sergio Durigan Junior  <sergiodj@redhat.com>
7226
7227         * observer.sh: Conditionally declare `args', thus cleaning up
7228         unused instances of this variable.
7229
7230 2012-04-24  Yao Qi  <yao@codesourcery.com>
7231
7232         Revert this patch to allow breakpoint always-inserted
7233         in record target.
7234         2011-12-05  Pedro Alves  <pedro@codesourcery.com>
7235         * breakpoint.c: Include record.h.
7236         (breakpoints_always_inserted_mode): Return false when the record
7237         target is in use.
7238
7239         * breakpoint.c (iterate_over_bp_locations): New.
7240         * breakpoint.h: Declare.
7241         New typedef walk_bp_location_callback.
7242         * record.c (record_open): Call record_init_record_breakpoints.
7243         (record_sync_record_breakpoints): New.
7244         (record_init_record_breakpoints): New.
7245         * NEWS: Mention supporting breakpoint always-inserted mode in
7246         record target.
7247
7248 2012-04-24  Marc Khouzam  <marc.khouzam@ericsson.com>
7249
7250         * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7251         any thread.
7252
7253 2012-04-24  Yao Qi  <yao@codesourcery.com>
7254
7255         * breakpoint.c (ep_is_catchpoint): Renamed to ...
7256         (is_catchpoint): ... it.
7257         (print_one_breakpoint_location): Caller update.
7258         * breakpoint.h: Update declaration.
7259
7260 2012-04-23  David S. Miller  <davem@davemloft.net>
7261
7262         * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7263
7264 2012-04-23  Tom Tromey  <tromey@redhat.com>
7265
7266         * buildsym.c (add_free_pendings): Remove.
7267         * buildsym.h (add_free_pendings): Remove.
7268
7269 2012-04-23  Doug Evans  <dje@google.com>
7270
7271         * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7272         attr.u.unsnd instead of attr.u.addr.
7273         (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7274         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7275         DW_FORM_ref_udata.
7276         (dump_die_shallow): Update cases DW_FORM_ref_addr,
7277         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4.  Add cases DW_FORM_ref8,
7278         DW_FORM_ref_udata.
7279         (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7280
7281 2012-04-23  Maciej W. Rozycki  <macro@codesourcery.com>
7282
7283         * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7284         (mips_o32_return_value): Likewise.
7285         (mips_o64_return_value): Likewise.
7286
7287 2012-04-21  Paul Hilfinger  <hilfinger@adacore.com>
7288
7289         * ada-lang.c (ada_evaluate_subexp): Add cases for
7290         TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7291         their treatment in eval.c.
7292
7293 2012-04-21  David S. Miller  <davem@davemloft.net>
7294
7295         * sparc-tdep.c (X_DISP10): Define.
7296         (sparc_analyze_control_transfer): Handle compare-and-branch.
7297
7298 2012-04-21  Jonathan Larmour  <jifl@eCosCentric.com>
7299
7300         * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7301         * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7302
7303 2012-04-20  Nigel Stephens  <nigel@mips.com>
7304             Maciej W. Rozycki  <macro@codesourcery.com>
7305
7306         * mips-tdep.c (mips_float_register_p): New function.
7307         (mips_convert_register_float_case_p): Use mips_float_register_p.
7308         (mips_register_type): Likewise.
7309         (mips_print_register): Likewise.
7310         (print_gp_register_row): Likewise.
7311         (mips_print_registers_info): Likewise.
7312
7313 2012-04-20  Shun-Yen Lu  <dark.asparagus@gmail.com>
7314
7315         * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7316         of mips16 symbols.
7317
7318 2012-04-20  Andrew Pinski  <apinski@cavium.com>
7319
7320         * MAINTAINERS (Write After Approval): Add myself to the list.
7321
7322 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
7323
7324         * MAINTAINERS: Update my e-mail address.
7325
7326 2012-04-20  Pedro Alves  <palves@redhat.com>
7327
7328         * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7329         $srcdir.
7330         * configure: Regenerate.
7331
7332 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
7333
7334         * cp-support.h: Include `gdb_vecs.h'.  Delete `const_char_ptr' VEC
7335         declaration.
7336         * gdb_vecs.h: Declare `const_char_ptr' VEC.
7337
7338 2012-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
7339
7340         Fix compilation compatibility with python-2.4
7341         * python/py-type.c (convert_field): Cast ADDRSTRING for
7342         PyObject_SetAttrString as non-const.  New comment.
7343
7344 2012-04-19  Tom Tromey  <tromey@redhat.com>
7345
7346         * top.c (quit_target): Use all_cleanups.
7347         * main.c (captured_command_loop): Use all_cleanups.
7348         * exceptions.c (throw_exception): Use all_cleanups.
7349
7350 2012-04-19  Pedro Alves  <palves@redhat.com>
7351
7352         * Makefile.in (GNULIB_BUILDDIR): New.
7353         (LIBGNU, INCGNU, GNULIB_H): Adjust.
7354         (SUBDIRS): Add $(GNULIB_BUILDDIR).
7355         (CLEANDIRS). Remove gnulib/import.
7356         (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7357         (all-lib): Ditto.
7358         (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7359         (gnulib/import/Makefile): Replace gnulib/import with
7360         $(GNULIB_BUILDDIR).  Set CONFIG_FILES to just Makefile.
7361         (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7362         (aclocal_m4_deps): Remove the gnulib dependencies.  Add
7363         acx_configure_dir.m4.
7364         * acinclude.m4: Include acx_configure_dir.m4.
7365         * acx_configure_dir.m4: New file.
7366         * aclocal.m4: Regenerate.
7367         * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
7368         calls.  Configure gnulib using ACX_CONFIGURE_DIR.
7369         (GNULIB): New variable.
7370         (GNULIB_STDINT_H): Adjust.
7371         (AC_OUTPUT): Don't output gnulib/Makefile.
7372         * gdb/defs.h: Include build-gnulib/config.h.
7373         * aclocal.m4: Regenerate.
7374         * config.in: Regenerate.
7375         * configure: Regenerate.
7376
7377         * gnulib/Makefile.in: New file.
7378         * gnulib/configure.ac: New file.
7379         * gnulib/aclocal.m4: New file.
7380         * gnulib/config.in: New file.
7381         * gnulib/configure: New file.
7382         * gnulib/: Re-run gnulib-tool to adjust.
7383
7384 2012-04-19  Doug Evans  <dje@google.com>
7385
7386         * cleanups.h (struct cleanup): Move to cleanups.c.
7387         (make_cleanup_dtor_ftype): New typedef.
7388         (make_cleanup_dtor): Use it.
7389         (ALL_CLEANUPS): Replace with ...
7390         (all_cleanups): ... this.  Declare.  All uses updated.
7391         * cleanups.c: #include "gdb_assert.h".
7392         (sentinel_cleanup): New static global.
7393         (SENTINEL_CLEANUP): Define.
7394         (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
7395         (make_my_cleanup2): Assert result is non-NULL.
7396         (all_cleanups): New function.
7397         (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
7398         of NULL.
7399
7400 2012-04-19  Pedro Alves  <palves@redhat.com>
7401
7402         * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
7403         Adjust paths to gnulib imported files.
7404
7405 2012-04-19  Pedro Alves  <palves@redhat.com>
7406
7407         * gnulib/: Move whole directory ...
7408         * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
7409         * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
7410         (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
7411         (aclocal_m4_deps): Adjust.
7412         * aclocal.m4: Regenerate.
7413         * configure: Regenerate.
7414         * configure.ac: Adjust AC_OUTPUT output.
7415
7416 2012-04-19  Yao Qi  <yao@codesourcery.com>
7417
7418         * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
7419         (vec.o): New rule.
7420         * vec.c: Move it ...
7421         * common/vec.c: ... here.
7422         * vec.h: Move it ...
7423         * common/vec.h: ... here.
7424
7425 2012-04-19  Yao Qi  <yao@codesourcery.com>
7426
7427         * gdb-code-style.el: New.
7428
7429 2012-04-18  Pedro Alves  <palves@redhat.com>
7430
7431         Update gnulib from latest git.
7432         (639ea5ae15e39fe48d43e04864b2997301e4b969)
7433
7434         * gnulib/Makefile.am: Update.
7435         * gnulib/dummy.c: Update.
7436         * gnulib/extra/arg-nonnull.h: Update.
7437         * gnulib/extra/c++defs.h: Update.
7438         * gnulib/extra/update-copyright: Update.
7439         * gnulib/extra/warn-on-use.h: Update.
7440         * gnulib/inttypes.in.h: Update.
7441         * gnulib/m4/00gnulib.m4: Update.
7442         * gnulib/m4/extensions.m4: Update.
7443         * gnulib/m4/gnulib-cache.m4: Update.
7444         * gnulib/m4/gnulib-common.m4: Update.
7445         * gnulib/m4/gnulib-comp.m4: Update.
7446         * gnulib/m4/gnulib-tool.m4: Update.
7447         * gnulib/m4/include_next.m4: Update.
7448         * gnulib/m4/inttypes-pri.m4: Update.
7449         * gnulib/m4/inttypes.m4: Update.
7450         * gnulib/m4/longlong.m4: Update.
7451         * gnulib/m4/memchr.m4: Update.
7452         * gnulib/m4/memmem.m4: Update.
7453         * gnulib/m4/mmap-anon.m4: Update.
7454         * gnulib/m4/multiarch.m4: Update.
7455         * gnulib/m4/onceonly.m4: Update.
7456         * gnulib/m4/stddef_h.m4: Update.
7457         * gnulib/m4/stdint.m4: Update.
7458         * gnulib/m4/string_h.m4: Update.
7459         * gnulib/m4/warn-on-use.m4: Update.
7460         * gnulib/m4/wchar_h.m4: Update.
7461         * gnulib/m4/wchar_t.m4: Update.
7462         * gnulib/m4/wint_t.m4: Update.
7463         * gnulib/memchr.c: Update.
7464         * gnulib/memmem.c: Update.
7465         * gnulib/stddef.in.h: Update.
7466         * gnulib/stdint.in.h: Update.
7467         * gnulib/str-two-way.h: Update.
7468         * gnulib/string.in.h: Update.
7469         * gnulib/wchar.in.h: Update.
7470
7471         * gnulib/extra/arg-nonnull.h: Delete.
7472         * gnulib/extra/c++defs.h: Delete.
7473         * gnulib/extra/warn-on-use.h: Delete.
7474         * gnulib/m4/wchar_h.m4: Delete.
7475         * gnulib/m4/wint_t.m4: Delete.
7476         * gnulib/wchar.in.h: Delete.
7477
7478         * gnulib/extra/snippets/arg-nonnull.h: New.
7479         * gnulib/extra/snippets/c++defs.h: New.
7480         * gnulib/extra/snippets/warn-on-use.h: New.
7481
7482         * aclocal.m4: Regenerate.
7483         * config.in: Regenerate.
7484         * configure: Regenerate.
7485         * gnulib/Makefile.in: Regenerate.
7486
7487 2012-04-18  Pedro Alves  <palves@redhat.com>
7488
7489         Reimport the update-copyright module from gnulib
7490         (250b80067c1e1d8faa0c42fb572f721975b929c5).
7491
7492         * configure: Regenerate.
7493         * gnulib/Makefile.am: Update.
7494         * gnulib/Makefile.in: Regenerate.
7495         * gnulib/extra/update-copyright: Update.
7496         * gnulib/m4/gnulib-cache.m4: Update.
7497         * gnulib/m4/gnulib-comp.m4: Update.
7498
7499 2012-04-18  Tristan Gingold  <gingold@adacore.com>
7500
7501         * configure.ac (aix): Put -lpthread into libs.
7502         * configure: Regenerate.
7503
7504 2012-04-18  Tom Tromey  <tromey@redhat.com>
7505
7506         * linespec.c (convert_linespec_to_sals): Don't use
7507         SYMBOL_OBJ_SECTION.
7508         (compare_msymbols): Arguments are minsym_and_objfile, not
7509         minimal_symbol*.  Don't use SYMBOL_OBJ_SECTION.
7510
7511 2012-04-18  Pedro Alves  <palves@redhat.com>
7512
7513         Revert gnulib/ part of:
7514         2011-01-01  Joel Brobecker  <brobecker@adacore.com>
7515         Copyright year update in most files (performed by copyright.sh).
7516
7517 2012-04-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
7518
7519         Fix 64-bit constants on 32-bit hosts.
7520         * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7521         from unsigned long to ULONGEST.
7522         (read_signed_leb128): Change declaration return type from long to
7523         LONGEST.
7524         (dwarf2_const_value_attr): Change declaration parameter value from long
7525         to LONGEST.
7526         (dwarf2_compute_name): Change variable value from long to LONGEST.
7527         (read_unsigned_leb128): Change return type, variable result and some
7528         casts from unsigned long to ULONGEST.
7529         (read_signed_leb128): Change return type, variable result and some
7530         casts from long to LONGEST.
7531         (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7532         value from long to LONGEST.
7533         (dwarf2_const_value): Change variable value from long to LONGEST.
7534         * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7535         plongest and hex_string.
7536         * symtab.h (struct general_symbol_info): Change ivalue from long to
7537         LONGEST, remove the comment.
7538         * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7539         Change SYMBOL_VALUE format strings to use plongest and hex_string.
7540
7541 2012-04-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
7542
7543         PR symtab/7259:
7544         * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7545         * ada-lang.c (ada_discrete_type_high_bound)
7546         (ada_discrete_type_low_bound): Fix function comment.  Use
7547         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7548         (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7549         (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7550         * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7551         Use TYPE_FIELD_ENUMVAL.
7552         * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7553         (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7554         * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7555         block, change it to LONGEST.  Use TYPE_FIELD_ENUMVAL for
7556         TYPE_CODE_ENUM.
7557         * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7558         * dwarf2read.c (process_enumeration_scope): Likewise.
7559         * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7560         field.bitpos.
7561         (class StructMainTypePrettyPrinter): Support also
7562         FIELD_LOC_KIND_ENUMVAL.
7563         * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7564         TYPE_CODE_ENUM.
7565         (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7566         (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7567         * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7568         (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment.  New
7569         field enumval.
7570         (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7571         accommodate enumval.
7572         (struct call_site): Adjust loc_kind to accommodate enumval.
7573         (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7574         (TYPE_FIELD_ENUMVAL): New macros.
7575         * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7576         * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7577         TYPE_CODE_ENUM.
7578         * p-typeprint.c (pascal_type_print_base): Likewise.
7579         * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7580         enumval.
7581         * python/lib/gdb/types.py (make_enum_dict): Likewise.
7582         * python/py-type.c (convert_field): New variable addrstring.  Use
7583         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7584         (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7585         * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7586         * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7587         TYPE_CODE_ENUM.
7588         * valprint.c (generic_val_print): Likewise.
7589
7590 2012-04-17  Doug Evans  <dje@google.com>
7591
7592         * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7593
7594         * dwarf2read.c: Whitespace fixes.
7595         (lookup_signatured_type): Tweak comment.
7596         (get_die_type_at_offset): Fix comment.
7597
7598 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
7599
7600         * xcoffread.c (xcoff_secnum_to_sections): New function.
7601         (secnum_to_section, secnum_to_bfd_section): Reimplement
7602         using xcoff_secnum_to_sections.  Rename "secnum" parameter
7603         into "n_scnum".
7604         (RECORD_MINIMAL_SYMBOL): Delete.
7605         (record_minimal_symbol): New function.
7606         (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7607         by call to record_minimal_symbol and set misc_func_recorded
7608         to 1.  Set last_csect_sec to the XCOFF section index instead
7609         of GDB's section_offset index.  Update calls to
7610         prim_record_minimal_symbol_and_info to pass the BFD section
7611         as well.
7612
7613 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
7614
7615         * xcoffread.c (read_xcoff_symtab): Delete variables
7616         last_csect_val and last_csect_sec and associated code.
7617
7618 2012-04-17  Doug Evans  <dje@google.com>
7619
7620         * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7621         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7622         * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7623         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7624
7625         * cleanups.h: New file.
7626         * cleanups.c: New file.
7627         * Makefile.in (SFILES): Add cleanups.c.
7628         (HFILES_NO_SRCDIR): Add cleanups.h.
7629         (COMMON_OBS): Add cleanups.o.
7630         * defs.h (struct cleanup): Moved to cleanups.h.
7631         (do_cleanups,do_final_cleanups): Ditto.
7632         (discard_cleanups,discard_final_cleanups): Ditto
7633         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7634         (save_cleanups,save_final_cleanups): Ditto.
7635         (restore_cleanups,restore_final_cleanups): Ditto.
7636         (null_cleanup): Ditto.
7637         (make_my_cleanup,make_my_cleanup2): Ditto.
7638         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7639         * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7640         (do_cleanups,do_final_cleanups): Ditto.
7641         (discard_cleanups,discard_final_cleanups): Ditto
7642         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7643         (save_cleanups,save_final_cleanups): Ditto.
7644         (restore_cleanups,restore_final_cleanups): Ditto.
7645         (null_cleanup): Ditto.
7646         (make_my_cleanup,make_my_cleanup2): Ditto.
7647         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7648
7649         * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7650         make_my_cleanup.
7651         (make_cleanup_dyn_string_delete): Ditto.
7652         (make_cleanup_ui_file_delete): Ditto.
7653         (make_cleanup_ui_out_redirect_pop): Ditto.
7654         (make_cleanup_free_section_addr_info): Ditto.
7655         (make_cleanup_restore_integer): Ditto.
7656         (make_cleanup_unpush_target): Ditto.
7657         (make_cleanup_value_free_to_mark): Ditto.
7658         (make_cleanup_value_free): Ditto.
7659         (make_cleanup_free_so): Ditto.
7660
7661 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7662
7663         New option "set debug auto-load".
7664         * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7665         * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7666         (auto_load_safe_path_vec_update)
7667         (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7668         if DEBUG_AUTO_LOAD.
7669         (file_is_auto_load_safe): New parameters debug_fmt and ....
7670         Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7671         (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7672         caller by explanatory string.
7673         (_initialize_auto_load): Register "set debug auto-load".
7674         * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7675         and ....
7676         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7677         (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7678         by explanatory string.
7679         * main.c (captured_main): Likewise.
7680         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7681         (source_section_scripts): Likewise.
7682
7683 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7684
7685         New option "set auto-load safe-path".
7686         * NEWS: New commands "set auto-load safe-path"
7687         and "show auto-load safe-path".
7688         * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7689         (auto_load_safe_path, auto_load_safe_path_vec)
7690         (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7691         (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7692         (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7693         (source_gdb_script_for_objfile): New variable is_safe.  Call
7694         file_is_auto_load_safe.  Return if it is not.
7695         (struct loaded_script): New field loaded.
7696         (maybe_add_script): Add parameter loaded.  Initialize SLOT with it.
7697         (print_script): Use LOADED indicator instead of FULL_PATH.  Change
7698         output "Missing" to "No".
7699         (_initialize_auto_load): New variable cmd.  Initialize
7700         auto_load_safe_path.  Register "set auto-load safe-path",
7701         "show auto-load safe-path" and "add-auto-load-safe-path".
7702         * auto-load.h (maybe_add_script): Add parameter loaded.
7703         (file_is_auto_load_safe): New declaration.
7704         * config.in: Regenerate.
7705         * configure: Regenerate.
7706         * configure.ac: New parameters --with-auto-load-safe-path
7707         and --without-auto-load-safe-path.
7708         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7709         (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7710         * main.c (captured_main): Check file_is_auto_load_safe for
7711         LOCAL_GDBINIT.
7712         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7713         variable is_safe.  Call file_is_auto_load_safe.  Return if it is not.
7714         (source_section_scripts): Call file_is_auto_load_safe.  Return if it is
7715         not.
7716
7717 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7718
7719         auto-load: Implementation.
7720         * NEWS: New descriptions for "info auto-load",
7721         "info auto-load gdb-scripts", "info auto-load python-scripts",
7722         "info auto-load local-gdbinit" and "info auto-load libthread-db".
7723         Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7724         and "show auto-load-scripts".  New description for "set auto-load",
7725         "show auto-load", "set auto-load gdb-scripts",
7726         "show auto-load gdb-scripts", "set auto-load python-scripts",
7727         "show auto-load python-scripts", "set auto-load local-gdbinit",
7728         "show auto-load local-gdbinit", "set auto-load libthread-db" and
7729         "show auto-load libthread-db".
7730         * auto-load.c: Remove include python/python-internal.h.  Add includes
7731         exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7732         cli/cli-setshow.h.
7733         (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7734         (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7735         (gdbpy_global_auto_load): Rename to ...
7736         (global_auto_load): ... here.
7737         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7738         (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7739         (script_language_gdb, source_gdb_script_for_objfile): New.
7740         (struct loaded_script): New field language.
7741         (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7742         LANGUAGE.
7743         (maybe_add_script): Add parameter language.  Drop redundant
7744         entry.full_path initialization.  Initialize entry.language and
7745         (*slot)->language.
7746         (auto_load_objfile_script): Change parameter suffix to language.
7747         Remove the call of maybe_add_script.
7748         Call language->source_script_for_objfile.
7749         (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7750         New.
7751         (collect_matching_scripts): Adjust it for
7752         struct collect_matching_scripts_data.
7753         (auto_load_info_scripts_pattern_nl): New variable.
7754         (info_auto_load_scripts): Rename to ...
7755         (auto_load_info_scripts): ... here, add parameter language.  Adjust it
7756         for struct collect_matching_scripts_data.
7757         (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7758         (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7759         (auto_load_show_cmdlist_get, info_auto_load_cmd)
7760         (auto_load_info_cmdlist_get): New.
7761         (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7762         python/py-auto-load.c.  New installment for "set auto-load gdb-scripts",
7763         "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7764         "info auto-load local-gdbinit".
7765         * auto-load.h (struct script_language): New.
7766         (gdbpy_global_auto_load): Rename to ...
7767         (global_auto_load): ... here.
7768         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7769         (auto_load_local_gdbinit_loaded): New declarations.
7770         (maybe_add_script): New parameter language.
7771         (auto_load_objfile_script): Change parameter suffix to language.
7772         (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7773         (auto_load_info_scripts, auto_load_set_cmdlist_get)
7774         (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7775         declarations.
7776         * linux-thread-db.c: Include auto-load.h and ctype.h.
7777         (auto_load_thread_db, show_auto_load_thread_db): New.
7778         (struct thread_db_info): New field filename.
7779         (delete_thread_db_info): Call xfree for FILENAME.
7780         (try_thread_db_load): Initialize FILENAME.
7781         (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7782         if !AUTO_LOAD_THREAD_DB.
7783         (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7784         (_initialize_thread_db): Install auto_load_thread_db
7785         as "set auto-load libthread-db" and install info_auto_load_libthread_db
7786         as "info auto-load libthread-db".
7787         * main.c (captured_main): Rename gdbpy_global_auto_load to
7788         global_auto_load.  Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7789         AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7790         (print_gdb_help): Extend the help for 'local init file'.
7791         * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7792         (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7793         (auto_load_scripts): Rename to ...
7794         (auto_load_python_scripts): ... here, update the comment.
7795         (gdbpy_load_auto_script_for_objfile): New declaration.
7796         (show_auto_load_python_scripts, script_language_python)
7797         (gdbpy_load_auto_script_for_objfile): New.
7798         (source_section_scripts): Refactor the code.
7799         (load_auto_scripts_for_objfile): Rename to ...
7800         (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7801         auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7802         (info_auto_load_python_scripts): New.
7803         (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7804         Rename "set auto-load-scripts" to "set auto-load python-scripts".
7805         Register "set auto-load-scripts" as its deprecated alias.  Register
7806         "info auto-load python-scripts".  Register "info auto-load-scripts" as
7807         its deprecated alias.
7808         (load_auto_scripts_for_objfile): Rename to ...
7809         (gdbpy_load_auto_scripts_for_objfile): ... here.
7810         * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7811         (gdbpy_load_auto_scripts_for_objfile): ... here.
7812
7813 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7814
7815         auto-load: Move files.
7816         * Makefile.in (SFILES): Add auto-load.c.
7817         (HFILES_NO_SRCDIR): Add auto-load.h.
7818         (COMMON_OBS): Add auto-load.o.
7819         (distclean): Change .gdbinit for gdb-gdb.gdb.
7820         * auto-load.c: New file, with parts from python/py-auto-load.c.
7821         * auto-load.h: New file, with parts from python/python.h.
7822         * configure: Regenerate.
7823         * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7824         * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7825         * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7826         * main.c: Include auto-load.h.
7827         * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7828         command.h, observer.h and progspace.h to auto-load.c.  Add include
7829         auto-load.h.
7830         (gdbpy_global_auto_load, struct auto_load_pspace_info)
7831         (struct loaded_script, auto_load_pspace_data)
7832         (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7833         (hash_loaded_script_entry, eq_loaded_script_entry)
7834         (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7835         (maybe_add_script): Move to auto-load.c.
7836         (source_section_scripts): Change maybe_add_script parameters passing,
7837         use script_not_found_warning_print.
7838         (clear_section_scripts, auto_load_objfile_script)
7839         (auto_load_new_objfile, loaded_script_ptr)
7840         (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7841         (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7842         (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7843         auto_load_new_objfile and info_auto_load_scripts initizations to
7844         auto-load.c.
7845         * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7846
7847 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7848
7849         Code cleanup.
7850         * charset.c (find_charset_names): Remove variables ix and elt.
7851         Use free_char_ptr_vec.
7852         * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7853         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
7854         debugdir_end.  New variable debugdir_len.
7855         * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7856         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7857         declarations.
7858         * progspace.c (clear_program_space_solib_cache): Remove variables ix
7859         and elt.  Use free_char_ptr_vec.
7860         * source.c (add_path): Remove variables argv, arg and argv_index.
7861         New variables dir_vec, back_to, ix and name.
7862         Use dirnames_to_char_ptr_vec_append.  Use freeargv instead of
7863         make_cleanup_freeargv.  Remove variable separator.  Simplify the code
7864         no longer expecting DIRNAME_SEPARATOR.
7865         (openp): Remove variable p, p1 and len.  New variables dir_vec,
7866         back_to, ix and dir.  Use dirnames_to_char_ptr_vec.  Simplify the code
7867         no longer expecting DIRNAME_SEPARATOR.
7868         * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7869         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
7870         debugdir_end.
7871         * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7872         (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7873         (dirnames_to_char_ptr_vec): New functions.
7874
7875 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7876
7877         Code cleanup.
7878         * source.c (add_path): Remove always true conditional 'p == 0' and
7879         unindent its code block.
7880
7881 2012-04-17  Pedro Alves  <palves@redhat.com>
7882
7883         * gdbtypes.h (FIELD_BITPOS): Rename to ...
7884         (FIELD_BITPOS_LVAL): ... this.
7885         (FIELD_BITPOS): New.
7886         (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7887         * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7888         * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7889         SET_FIELD_BITPOS.
7890         * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7891         SET_FIELD_BITPOS.
7892         * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7893         (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7894         * target-descriptions.c (tdesc_gdb_type): Adjust to use
7895         SET_FIELD_BITPOS.
7896
7897 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7898
7899         Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7900         * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7901         TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7902         * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7903         * jv-lang.c (java_link_class_type): Likewise, once.
7904         * stabsread.c (read_enum_type): Likewise.
7905
7906 2012-04-16  Yao Qi  <yao@codesourcery.com>
7907
7908         * common/agent.c (agent_run_command): Add one more parameter `len'.
7909         Update callers.
7910         * common/agent.h: Update declaration.
7911         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7912         Update.
7913         (linux_child_static_tracepoint_markers_by_strid): Ditto.
7914
7915 2012-04-14  Anton Gorenkov <xgsa@yandex.ru>
7916
7917         PR mi/13393
7918         * value.c (value_actual_type): New function.
7919         * value.h (value_actual_type): New declaration.
7920         * varobj.c (update_type_if_necessary): New function.
7921         (varobj_create): Call value_actual_type instead of
7922         value_type.
7923         (install_dynamic_child): distinct changed and type changed MI variable
7924         objects.
7925         (update_dynamic_varobj_children): Updated for install_dynamic_child
7926         change.  All callers updated.
7927         (varobj_update): Support for MI variable object type change if
7928         the value changed and RTTI is used to determine the type.
7929         (create_child_with_value): Call value_actual_type instead of
7930         value_type.
7931         (adjust_value_for_child_access): Extended with a new parameter which
7932         specify whether the given value should be casted to enclosing type.
7933         All callers updated.
7934
7935 2012-04-14  Yao Qi  <yao@codesourcery.com>
7936
7937         Import gnulib module inttypes from git
7938         (250b80067c1e1d8faa0c42fb572f721975b929c5)
7939         * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7940         (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7941         gnulib/m4/inttypes-pri.m4
7942         * aclocal.m4, config.in, configure: Regenerated.
7943         * gnulib/Makefile.am: Update.
7944         * gnulib/Makefile.in: Update.
7945         * gnulib/m4/gnulib-cache.m4: Update.
7946         * gnulib/m4/gnulib-comp.m4: Update.
7947         * gnulib/inttypes.in.h: New.
7948         * gnulib/m4/inttypes-pri.m4: New.
7949         * gnulib/m4/inttypes.m4: New.
7950
7951 2012-04-13  Luis Machado  <lgustavo@codesourcery.com>
7952
7953         * infrun.c (resume): Update PC address to the real PC after
7954         preparing to do displaced stepping.
7955
7956 2012-04-12  Doug Evans  <dje@google.com>
7957
7958         * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7959         All callers updated.
7960
7961 2012-04-12  Mark Kettenis  <kettenis@gnu.org>
7962
7963         * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7964
7965 2012-04-12  Doug Evans  <dje@google.com>
7966
7967         * dwarf2read.c (create_all_type_units): Renamed from
7968         create_debug_types_hash_table.  All callers updated.
7969
7970         * dwarf2read.c (create_signatured_type_table_from_index): Rename
7971         local type_sig to sig_type, type_offset to type_offset_in_tu.
7972         (hash_signatured_type): Renamed from hash_type_signature,
7973         all callers updated.
7974         (eq_signatured_type): Renamed from eq_type_signature,
7975         all callers updated.
7976         (create_debug_types_hash_table): Rename local type_sig to sig_type.
7977         (process_enumeration_scope): Ditto.
7978         (lookup_signatured_type_at_offset): Ditto.
7979         (load_full_type_unit, read_signatured_type): Ditto.
7980
7981 2012-04-12  Yao Qi  <yao@codesourcery.com>
7982
7983         * remote.c (async_remote_interrupt): Correct function name in
7984         debug message.
7985         (async_remote_interrupt_twice): Ditto.
7986
7987 2012-04-11  Yuanhui Zhang  <asmwarrior@gmail.com>
7988
7989         * source.c (find_and_open_source): Consistently pass resulting
7990         full path through xfullpath.
7991
7992 2012-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7993
7994         Provide more specific displaced-stepping memory error message.
7995         * infrun.c (displaced_step_prepare): New variable status.  Call
7996         target_read_memory instead of read_memory, provide more specific
7997         error message.
7998
7999 2012-04-11  Tristan Gingold  <gingold@adacore.com>
8000
8001         PR gdb/13901
8002         * darwin-nat.c (darwin_execvp): Revert previous patch.
8003
8004 2012-04-11  Tristan Gingold  <gingold@adacore.com>
8005
8006         PR gdb/13901
8007         * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8008         in case of change.
8009
8010 2012-04-11  Tristan Gingold  <gingold@adacore.com>
8011
8012         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8013         warning.
8014
8015 2012-04-11  Siva Chandra Reddy  <sivachandra@google.com>
8016
8017         New command 'explore' which helps explore values and types in
8018         scope.
8019         * NEWS: Add an entry about the new 'explore' command.
8020         * data-directory/Makefile.in: Add gdb/command/explore.py
8021         * python/lib/gdb/command/explore.py: Implemention of the 'explore'
8022         command using the GDB Python API.
8023
8024 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
8025
8026         * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8027         extension in jump target calculation.
8028
8029 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
8030
8031         * mips-tdep.c (mips32_next_pc): Handle JALX.
8032
8033 2012-04-10  Yao Qi  <yao@codesourcery.com>
8034
8035         * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8036
8037 2012-04-10  Yao Qi  <yao@codesourcery.com>
8038
8039         * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8040         and gnulib/m4/gnulib-tool.m4.
8041
8042 2012-04-10  Doug Evans  <dje@google.com>
8043
8044         * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8045         (load_partial_dies): Clarify comment.
8046         (find_partial_die): Support rereading type units.
8047         Clarify CU handling, if we know offset is in CU, don't search for the
8048         containing CU.  Add comment regarding memory waste.
8049
8050 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8051
8052         * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8053         i386/x32-avx and i386/x32-avx-linux.
8054         (i386/x32-expedite): New.
8055         (i386/x32-linux-expedite): Likewise.
8056         (i386/x32-avx-expedite): Likewise.
8057         (i386/x32-avx-linux-expedite): Likewise.
8058         ($(outdir)/i386/x32.dat): Likewise.
8059         ($(outdir)/i386/x32-linux.dat): Likewise.
8060         ($(outdir)/i386/x32-avx.dat): Likewise.
8061         ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8062
8063         * features/i386/x32-avx-linux.xml: New file.
8064         * features/i386/x32-avx.xml: Likewise.
8065         * features/i386/x32-core.xml: Likewise.
8066         * features/i386/x32-linux.xml: Likewise.
8067         * features/i386/x32.xml: Likewise.
8068
8069         * features/i386/x32-avx-linux.c: New.  Generated.
8070         * features/i386/x32-avx.c: Likewise.
8071         * features/i386/x32-linux.c: Likewise.
8072         * features/i386/x32.c: Likewise.
8073         * regformats/i386/x32-avx-linux.dat: Likewise.
8074         * regformats/i386/x32-avx.dat: Likewise.
8075         * regformats/i386/x32-linux.dat: Likewise.
8076         * regformats/i386/x32.dat: Likewise.
8077
8078 2012-04-10  Tristan Gingold  <gingold@adacore.com>
8079
8080         * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8081         code to kill the inferior.
8082
8083 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
8084
8085         * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8086         defines.
8087         * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8088         defines.
8089         * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
8090         (yyvsp): New defines.
8091         * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8092         defines.
8093         * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8094         defines.
8095         * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8096         defines.
8097         * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8098         defines.
8099         * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8100         defines.
8101
8102 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
8103
8104         * sparc64-tdep.c (sparc64_store_arguments)
8105         (sparc64_store_arguments): Fix coding style.
8106
8107 2012-04-07  Mark Kettenis  <kettenis@gnu.org>
8108
8109         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8110         complex floats, adjust some related comments and tighten a related
8111         assertion.
8112         (sparc64_extract_return_value): Handle complex floats.
8113
8114 2012-04-07  Doug Evans  <dje@google.com>
8115
8116         * dwarf2read.c (load_partial_dies): Change condition to assert.
8117
8118 2012-04-06  Doug Evans  <dje@google.com>
8119
8120         * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8121         "mov %rsp,%rbp".
8122
8123 2012-04-05  Kevin Buettner  <kevinb@redhat.com>
8124
8125         * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8126         fencepost error.
8127         (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8128         (v850_gdbarch_init): Set `num_regs' as appropriate for the
8129         architecture.
8130
8131 2012-04-05  Keith Seitz  <keiths@redhat.com>
8132
8133         * linespec.c (decode_compound): Remove.
8134         (enum offset_relative_sign): New enum.
8135         (struct line_offset): New struct.
8136         (struct linespec): New struct.
8137         (struct linespec_state): Move file_symtabs,
8138         user_filename, and user_function into struct linespec.
8139         Make result an anonymous struct holding vectors of
8140         symbolp and minsym_and_objfile_d.
8141         Add language member.
8142         (enum ls_token_type): New enum.
8143         (linespec_keywords): New array.
8144         (struct ls_token): New struct.
8145         (struct ls_parser): New struct.
8146         (linespec_lexer_lex_number): New function.
8147         (linespec_lexer_lex_keyword): New function.
8148         (is_ada_operator): New function.
8149         (skip_quote_char): New function.
8150         (copy_token_string): New function.
8151         (is_closing_quote_enclosed): New function.
8152         (find_parameter_list_end): New function.
8153         (linespec_lexer_lex_string): New function.
8154         (linespec_lexer_lex_one): New function.
8155         (linespec_lexer_consume_token): New function.
8156         (linespec_lexer_peek_token): New function.
8157         (cplusplus_error): Remove unused function.
8158         (find_methods): Update comment.
8159         (find_toplevel_char): Return const.
8160         (is_objc_method_format): Remove unused function.
8161         (find_toplevel_string): New function.
8162         (is_linespec_boundary): Remove.
8163         (symbol_not_found_error): New function.
8164         (find_method_overload_end): Remove function.
8165         (unexpected_linespec_error): New function.
8166         (keep_name_info): Remove.
8167         (linespec_parse_line_offset): New function.
8168         (linespec_parse_basic): New function.
8169         (canonicalize_linespec): New function.
8170         (decode_line_internal): Remove.
8171         (create_sals_line_offset): New function adapted from
8172         decode_all_digits.
8173         (convert_linespec_to_sals): New function.
8174         (parse_linespec): New function.
8175         (linespec_parser_new): New function.
8176         (linespec_state_destructor): Change parameter type to
8177         struct linespec_state *.
8178         Add language parameter.
8179         Remove freeing of moved members.
8180         (linespec_parser_delete): New function.
8181         (decode_line_full): Use parse_linespec and linespec_parser_new.
8182         (decode_line_1): Likewise.
8183         (decode_indirect): Rename to ...
8184         (linespec_expression_to_pc): ... this and rewrite
8185         to simply find CORE_ADDR, storing this result for later
8186         conversion to SALs.
8187         (locate_first_half): Remove.
8188         (deocde_objc): Add parameter LS.
8189         Initialize new struct collect_info members.
8190         Handle minimal symbols, too.
8191         (decode_compound): Delete.
8192         (lookup_prefix_sym): Rewrite.
8193         (compare_msymbols): New function.
8194         (find_method): Rewrite.
8195         Do not call cplusplus_error.
8196         (symtabs_from_filename): Rewrite.
8197         (collect_function_symbols): Delete.
8198         (find_function_symbols): Rewrite without ARGPTR-style
8199         processing.
8200         (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8201         (decode_dollar): Adapted and renamed to ...
8202         (linespec_parse_variable): ... this.
8203         (find_linespec_symbols): New function.
8204         (decode_label): Adapted and renamed to ...
8205         (find_label_symbols): ... this.
8206         (decode_digits_list_mode): Add and use LS argument.
8207         (decode_digits_ordinary): Likewise.
8208         (collect_symbols): Do not collect SALs, just symbols and msymbols.
8209         If in list mode, allow any symbol class.  Otherwise, only
8210         permit LOC_BLOCK symbols.
8211         (minsym_found): Update comments.
8212         (search_minsyms_for_name): Do not convert the matching symbol
8213         into a SAL.  Simply push the symbol and objfile into the
8214         result vector.
8215         (decode_variable): Delete. Contents adapted into
8216         find_linespec_symbols.
8217
8218         * cp-support.c (SKIP_SPACE): Remove.
8219         (operator_tokens): Remove unused global.
8220         (cp_validate_operator): Remove.
8221         * cp-support.h (cp_validate_operator): Remove declaration.
8222
8223 2012-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
8224
8225         * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8226         for TYPE_VPTR_FIELDNO.
8227         * valprint.c (valprint_check_validity): Make it global, move the
8228         function comment ...
8229         * value.h (valprint_check_validity): ... to this new declaration.
8230
8231 2012-04-02  Tristan Gingold  <gingold@adacore.com>
8232
8233         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8234         the STATE32 api for i386 state.
8235         (i386_darwin_store_inferior_registers): Likewise.
8236
8237 2012-04-02  Tristan Gingold  <gingold@adacore.com>
8238
8239         * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8240         SS offset.
8241         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8242         format_string.
8243
8244 2012-04-02  Tristan Gingold  <gingold@adacore.com>
8245
8246         PR gdb/13901
8247         * darwin-nat.c (darwin_execvp): Set binary preference.
8248
8249 2012-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8250
8251         * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8252
8253 2012-03-30  Tom Tromey  <tromey@redhat.com>
8254
8255         * python/python.c (gdbpy_decode_line): Move cleanup creation out
8256         of TRY_CATCH.  Fix error handling.
8257         * python/py-value.c (convert_value_from_python): Move 'old'
8258         declaration to innermost scope.
8259
8260 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8261             Andrey Smirnov  <andrew.smirnov@gmail.com>
8262
8263         -Wshadow warning fix.
8264         * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8265         "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8266         Adjust code accordingly.
8267
8268 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8269
8270         * ada-lang.c (symbol_completion_add): Rename parameter
8271         "encoded" into "encoded_p".  Ajust code and documentation
8272         accordingly.
8273
8274 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8275             Andrey Smirnov  <andrew.smirnov@gmail.com>
8276
8277         -Wshadow warning fix.
8278         * ada-lang.c (symbol_completion_add): Rename parameter
8279         "wild_match" into wild_match_p.  Update code and documentation
8280         accordingly.
8281
8282 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8283
8284         * ada-lang.c (symbol_completion_match): Rename parameter
8285         "encoded" into "encoded_p".  Ajust code and documentation
8286         accordingly.
8287
8288 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8289             Andrey Smirnov  <andrew.smirnov@gmail.com>
8290
8291         -Wshadow warning fix.
8292         * ada-lang.c (symbol_completion_match): Rename parameter
8293         "wild_match" into "wild_match_p".  Adjust code and function
8294         documentation accordingly.
8295
8296 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8297             Andrey Smirnov  <andrew.smirnov@gmail.com>
8298
8299         -Wshadow warning fix.
8300         * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8301         "symbol_info" into "info".  Adjust code accordingly.
8302         (ada_lookup_symbol): Likewise.
8303
8304 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8305
8306         * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8307         of this function's documentation.
8308
8309 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8310             Andrey Smirnov  <andrew.smirnov@gmail.com>
8311
8312         -Wshadow warning fix.
8313         * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8314         variable into "wild_match_p".  Adjust code accordingly.
8315
8316 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8317             Andrey Smirnov  <andrew.smirnov@gmail.com>
8318
8319         -Wshadow warning fix.
8320         * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8321         parameter into "wild_match_p".  Adjust code accordingly.
8322         Document this parameter in the function description.
8323
8324 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8325             Andrey Smirnov  <andrew.smirnov@gmail.com>
8326
8327         -Wshadow warning fix.
8328         * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8329         "wild_match" parameter to "wild_match_p" (-Wshadow).
8330
8331 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8332
8333         * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8334         in function documentation.
8335
8336 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8337             Andrey Smirnov  <andrew.smirnov@gmail.com>
8338
8339         -Wshadow warning fix.
8340         * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8341         variable into wild_match_p.  Adjust code accordingly.
8342
8343 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8344             Andrey Smirnov  <andrew.smirnov@gmail.com>
8345
8346         * ada-valprint.c (ada_val_print_1): Move the code handling
8347         TYPE_CODE_ENUM inside its own lexical block.  Declare
8348         variables len and val there, instead of in the function's
8349         top level block.  Avoid declaring deref_val again in a way
8350         that shadows another variable of the same name declared
8351         in one of the up-level blocks.  Just re-use the up-level
8352         variable instead.
8353
8354 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8355
8356         * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8357         Replace block_found argument by symbol_info.  Adjust
8358         implementation accordingly.  Add function documentation.
8359         (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8360         Fix documentation.
8361         * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8362         * ada-exp.y (write_object_renaming): Adjust to new
8363         ada_lookup_encoded_symbol API.
8364
8365 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8366
8367         * ada-lang.h (struct ada_symbol_info): Reformat.  Improve
8368         documentation.
8369
8370 2012-03-28  Rathish C  <rathish.c@kpitcummins.com>
8371
8372         * v850-tdep.c: Add the enum values for mpu and fpu registers.
8373         (v850_register_name): Add the mpu and fpu register names.
8374         (v850e_register_name): Add the mpu and fpu register names.
8375         (v850e2_register_name): New function.
8376         (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
8377         bfd_mach_v850e2v3.
8378
8379 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
8380
8381         * NEWS: Add entry for Ada varobj support.
8382
8383 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
8384
8385         * varobj.c (default_value_is_changeable_p): New function,
8386         extracted from varobj_value_is_changeable_p.  Add declaration.
8387         (ada_value_is_changeable_p): New function, extracted from
8388         varobj_value_is_changeable_p.  Add declaration.
8389         (struct language_specific): New field "value_is_changeable_p".
8390         (languages): Add entries for new field.
8391         (varobj_create): Set language before calling install_new_value.
8392         (varobj_value_is_changeable_p): Reimplement to call the varobj's
8393         "value_is_changeable_p" language callback.
8394
8395 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
8396
8397         * ada-varobj.h, ada-varobj.c: New files.
8398         * Makefile.in (SFILES): Add ada-varobj.c.
8399         (HFILES_NO_SRCDIR): Add ada-varobj.h.
8400         (COMMON_OBS): Add ada-varobj.o.
8401
8402 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
8403
8404         * varobj.c (ada_value_has_mutated): Add declaration.  New function.
8405         (struct language_specific): New field "value_has_mutated".
8406         (languages): Set field "value_has_mutated" in each entry of array.
8407         (varobj_value_has_mutated): New function.
8408         (varobj_udpdate): Add handling of type mutation.
8409         (value_of_root): Add handling of type mutation.
8410         (ada_value_has_mutated): New function.
8411
8412 2012-03-28  Pedro Alves  <palves@redhat.com>
8413
8414         * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
8415         Always supply $fr0 as 0.0 and $fr1 as 1.0.
8416
8417 2012-03-28  Tom Tromey  <tromey@redhat.com>
8418
8419         * python/py-inferior.c (infpy_read_memory): Remove cleanups and
8420         explicitly free 'buffer' on exit paths.  Decref 'membuf_object'
8421         before returning.
8422
8423 2012-03-28  Tom Tromey  <tromey@redhat.com>
8424
8425         * .dir-locals.el: New file.
8426
8427 2012-03-28  Pedro Alves  <palves@redhat.com>
8428
8429         * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8430
8431 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
8432
8433         * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8434         handling for r0.
8435
8436 2012-03-27  Pedro Alves  <palves@redhat.com>
8437
8438         Eliminate struct ui_stream.
8439
8440         * ui-out.h (struct ui_stream): Delete.
8441         (ui_out_field_stream): Adjust prototype.
8442         (ui_out_stream_new, ui_out_stream_delete)
8443         (make_cleanup_ui_out_stream_delete): Delete declarations.
8444         * ui-out.c (ui_out_field_stream): Change prototype to take a
8445         ui_file instead of a ui_stream.  Adjust.
8446         (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8447         (make_cleanup_ui_out_stream_delete): Delete.
8448         * breakpoint.c (print_breakpoint_location)
8449         (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8450         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8451         * disasm.c (dump_insns): Ditto.
8452         (do_mixed_source_and_assembly, do_assembly_only): Adjust
8453         prototype.
8454         (gdb_disassembly): Use ui_file/mem_fileopen instead of
8455         ui_stream/ui_out_stream_new.
8456         * infcmd.c (print_return_value): Ditto.
8457         * osdata.c (info_osdata_command): Don't allocate a local
8458         ui_stream.
8459         * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8460         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8461         * tracepoint.c (print_one_static_tracepoint_marker): Don't
8462         allocate a local ui_stream.
8463         * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8464         instead of ui_stream/ui_out_stream_new.
8465         (list_args_or_locals): Don't allocate a local ui_stream.
8466         * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8467         (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8468         ui_stream/ui_out_stream_new.
8469         * cli/cli-setshow.c (do_setshow_command): Ditto.
8470
8471 2012-03-27  Oza Pawandeep  <oza.pawandeep@gmail.com>
8472
8473         * arm-linux-tdep.c (arm_linux_init_abi): Call
8474         set_gdbarch_process_record.  Initialize `arm_swi_record' field.
8475         * arm-tdep.c (arm_process_record): New function.
8476         (deallocate_reg_mem): New function.
8477         (decode_insn): New function.
8478         (thumb_record_branch): New function.
8479         (thumb_record_ldm_stm_swi(): New function.
8480         (thumb_record_misc): New function.
8481         (thumb_record_ld_st_stack): New function.
8482         (thumb_record_ld_st_imm_offset): New function.
8483         (thumb_record_ld_st_reg_offset(): New function.
8484         (thumb_record_add_sub_cmp_mov): New function.
8485         (thumb_record_shift_add_sub): New function.
8486         (arm_record_coproc_data_proc): New function.
8487         (arm_record_coproc): New function.
8488         (arm_record_b_bl): New function.
8489         (arm_record_ld_st_multiple): New function.
8490         (arm_record_ld_st_reg_offset): New function.
8491         (arm_record_ld_st_imm_offset): New function.
8492         (arm_record_data_proc_imm): New function.
8493         (arm_record_data_proc_misc_ld_str): New function.
8494         (arm_record_extension_space): New function.
8495         (arm_record_strx): New function.
8496         (sbo_sbz): New function.
8497         (struct insn_decode_record): New structure for arm insn record.
8498         (REG_ALLOC): New macro for reg allocations.
8499         (MEM_ALLOC): New macro for memory allocations.
8500         * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
8501
8502 2012-03-27  Andreas Schwab  <schwab@linux-m68k.org>
8503
8504         * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8505         (store_register): Likewise.
8506
8507 2012-03-26  Oza Pawandeep  <oza.pawandeep@gmail.com>
8508
8509         * MAINTAINERS (Write After Approval): Add myself to the list.
8510
8511 2012-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
8512
8513         * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8514         Describe also the option "auto".
8515
8516 2012-03-22  Richard Henderson  <rth@redhat.com>
8517
8518         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8519         * sparc-nat.c (sparc_xfer_wcookie): Make static.
8520
8521 2012-03-22  Richard Henderson  <rth@redhat.com>
8522
8523         * jit.c (jit_read_code_entry): Compute alignment and offset of
8524         int64_t member before computing entry_size.
8525
8526 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
8527
8528         Python scripting: Add new method Value.referenced_value to
8529         gdb.Value which can dereference pointer as well as reference
8530         values.
8531         * NEWS: Add entry under 'Python scripting' about the new method
8532         Value.referenced_value on gdb.Value objects.
8533         * python/py-value.c (valpy_referenced_value): New function
8534         defining a new method on gdb.Value objects which can dereference
8535         pointer and reference values.
8536
8537 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
8538
8539         * MAINTAINERS (Write After Approval): Add myself to the list.
8540
8541 2012-03-21  Kevin Buettner  <kevinb@redhat.com>
8542
8543         * symtab.c (skip_prologue_sal): Change test to check for "main()"
8544         in addition to "main".
8545
8546 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
8547
8548         * expression.h (op_name): Add declaration.
8549         * expprint.c (op_name): Remove declaration.  Make non-static.
8550         * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8551
8552 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
8553
8554         * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8555         of struct siginfo.
8556         * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8557         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8558         * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8559         (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8560         (linux_nat_get_siginfo): Likewise.
8561         * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8562         (linux_nat_get_siginfo): Likewise.
8563         * linux-tdep.c (linux_get_siginfo_type): Likewise.
8564         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8565         * procfs.c (gdb_siginfo_t): Likewise.
8566
8567 2012-03-21  Mike Frysinger  <vapier@gentoo.org>
8568
8569         * .gitignore: Ignore more files.
8570
8571 2012-03-20  Pedro Alves  <palves@redhat.com>
8572
8573         * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8574         returns.
8575
8576 2012-03-20  Yao Qi  <yao@codesourcery.com>
8577
8578         * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8579         comment.
8580
8581 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8582
8583         Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8584         * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8585         (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8586         sect_offset.
8587         * dwarf2expr.h (cu_offset, sect_offset): New types.
8588         (struct dwarf_expr_context_funcs) <dwarf_call>
8589         (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8590         sect_offset.
8591         (struct dwarf_expr_context) <len>: Improve the comment.
8592         (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8593         cu_offset and sect_offset.
8594         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8595         (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8596         (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8597         * dwarf2loc.h: Include dwarf2expr.h.
8598         (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8599         and sect_offset.
8600         * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8601         Improve the comment.
8602         (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8603         (struct signatured_type, struct line_header, struct partial_die_info)
8604         (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8605         (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8606         (get_die_type_at_offset, create_cus_from_index)
8607         (create_signatured_type_table_from_index, dw2_get_file_names)
8608         (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8609         (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8610         (create_debug_types_hash_table, process_psymtab_comp_unit)
8611         (load_partial_comp_unit, create_all_comp_units)
8612         (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8613         (load_full_comp_unit, dwarf2_physname, read_import_statement)
8614         (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8615         (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8616         (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8617         (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8618         (find_partial_die, read_attribute_value, lookup_die_type)
8619         (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8620         (is_ref_attr): New function comment.
8621         (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8622         Use cu_offset and sect_offset.
8623         (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8624         (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8625         (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8626         (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8627         (offset_and_type_hash, offset_and_type_eq, set_die_type)
8628         (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8629         (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8630         sect_offset.
8631
8632 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8633
8634         Code cleanup.
8635         * python/py-auto-load.c (source_section_scripts): New variable back_to.
8636         Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8637         with xfree.
8638         (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8639
8640 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8641
8642         * NEWS: Describe new options --init-command=FILE, -ix and
8643         --init-eval-command=COMMAND, -iex.
8644         * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8645         CMDARG_INIT_COMMAND.
8646         (captured_main): New enum items OPT_IX and OPT_IEX.  Add
8647         "init-command", "init-eval-command", "ix" and "iex" to the variable
8648         long_options.  Handle OPT_IX and OPT_IEX.  Process them from CMDARG_VEC.
8649         New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8650         (print_gdb_help): Describe --init-command=FILE, -ix and
8651         --init-eval-command=COMMAND, -iex.
8652
8653 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8654
8655         Code cleanup.
8656         * main.c (struct cmdarg): Move it here from main.  Add more comments.
8657         (cmdarg_s, VEC (cmdarg_s)): New.
8658         (main): Move struct cmdarg from here.  New variables cmdarg_vec and
8659         cmdarg_p.  Remove variables cmdsize and ncmd and their initialization.
8660         Install cleanup for cmdarg_vec.  Update filling for options 'x' and
8661         'X'.  Replace cmdarg processing by cmdarg_vec processing.  Remove xfree
8662         of CMDARG.
8663
8664 2012-03-19  Tom Tromey  <tromey@redhat.com>
8665
8666         * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8667
8668 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8669
8670         PR symtab/13777
8671         * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8672         GCC >=4.5.
8673
8674 2012-03-16  Chris January  <chris.january@allinea.com>
8675
8676         * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8677         of clear.
8678
8679 2012-03-16  Chris January  <chris.january@allinea.com>
8680
8681         * source.c (add_path): Use memmove instead of strcpy because the
8682         strings overlap.
8683
8684 2012-03-16  Joel Brobecker  <brobecker@adacore.com>
8685
8686         * value.h (set_value_parent): Add declaration.
8687         * value.c (set_value_parent): New function.
8688         (value_address): If VALUE->PARENT is not NULL, then use it as
8689         the base address instead of VALUE->LOCATION.address.
8690         * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8691         the same as OBJ's address.  Adjust V's offset accordingly.
8692         Set V's parent.
8693
8694 2012-03-16  Gary Benson  <gbenson@redhat.com>
8695
8696         PR breakpoints/10738
8697         * dwarf2read.c (use_deprecated_index_sections): New global.
8698         (struct partial_die_info): New member may_be_inlined.
8699         (read_partial_die): Set may_be_inlined where appropriate.
8700         (add_partial_subprogram): Add partial symbols for partial
8701         DIEs that may be inlined.
8702         (new_symbol_full): Add inlined subroutines to the current
8703         scope.
8704         (write_psymtabs_to_index): Bump version number.
8705         (dwarf2_read_index): Read only version 6 indices unless
8706         use_deprecated_index_sections is set.
8707         * linespec.c (symbol_and_data_callback): New structure.
8708         (iterate_inline_only): New function.
8709         (iterate_over_all_matching_symtabs): New argument
8710         "include_inline".  If nonzero, also call the callback for
8711         symbols representing inlined subroutines.
8712         (lookup_prefix_sym): Pass extra argument to the above.
8713         (find_function_symbols): Likewise.
8714         (add_matching_symbols_to_info): Likewise.
8715         * NEWS: Mention that GDB can now set breakpoints on inlined
8716         functions.
8717
8718 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
8719
8720         * p-typeprint.c (pascal_type_print_method_args):
8721         Fix display of parameter of methods.
8722
8723 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
8724
8725         * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8726         Add missing prototype.
8727
8728 2012-03-16  Yao Qi  <yao@codesourcery.com>
8729             Jan Kratochvil  <jan.kratochvil@redhat.com>
8730
8731         Fix false compilation warning.
8732         * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8733
8734 2012-03-15  Jonathan Larmour  <jifl@eCosCentric.com>
8735             Pedro Alves  <pedro@codesourcery.com>
8736
8737         * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8738         (arm_register_g_packet_guesses): New function.
8739         (arm_gdbarch_init): Don't force a target description with
8740         registers when the executable is detected as M-profile.  Instead
8741         set gdbarch->tdep->is_m.  Register `g' packet guesses.
8742         (_initialize_arm_tdep): Initialize the new target description.
8743         * features/arm-with-m-fpa-layout.xml: New description.
8744         * features/arm-with-m-fpa-layout.c: New, generated.
8745
8746 2012-03-15  Joel Brobecker  <brobecker@adacore.com>
8747
8748         * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8749         Update function description.
8750         (insert_bp_location): Do not wipe bl->target_info out.
8751         * mem-break.c: #include "gdb_string.h".
8752         (default_memory_insert_breakpoint): Do not call target_read_memory
8753         with a pointer to the breakpoint's shadow_contents buffer.  Use
8754         a local buffer instead.
8755         * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8756
8757 2012-03-15  Tom Tromey  <tromey@redhat.com>
8758
8759         * NEWS: Mention "info vtbl", not "info vtable".
8760         * cp-support.c (info_vtbl_command): Fix comment.
8761         (_initialize_cp_support): Fix text.
8762
8763 2012-03-15  Tom Tromey  <tromey@redhat.com>
8764
8765         * cp-valprint.c (cp_print_value_fields): Use
8766         print_function_pointer_address for vtable slot.
8767
8768 2012-03-15  Tom Tromey  <tromey@redhat.com>
8769
8770         * gnu-v3-abi.c (struct value_and_voffset): New.
8771         (hash_value_and_voffset, eq_value_and_voffset)
8772         (compare_value_and_voffset, compute_vtable_size)
8773         (print_one_vtable, gnuv3_print_vtable): New functions.
8774         (init_gnuv3_ops): Initialize 'print_vtable' field.
8775         * cp-support.c (info_vtbl_command): New function.
8776         (_initialize_cp_support): Add "info vtbl".
8777         * cp-abi.h (cplus_print_vtable): Declare.
8778         (struct cp_abi_ops) <print_vtable>: New field.
8779         * cp-abi.c (cplus_print_vtable): New function.
8780         * NEWS: Update.
8781
8782 2012-03-15  Tom Tromey  <tromey@redhat.com>
8783
8784         * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8785         iterate_over_symbols.
8786
8787 2012-03-14  Doug Evans  <dje@google.com>
8788
8789         * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8790         DW_OP_GNU_parameter_ref.
8791
8792 2012-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
8793
8794         Fix double prompt of 'interpreter-exec mi'.
8795         * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8796         (mi_interpreter_resume): use it.
8797         (mi_execute_command_input_handler): New function.
8798         * mi/mi-main.c (mi_execute_command): Move prompt printing to
8799         mi_execute_command_input_handler.
8800
8801 2012-03-13  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
8802
8803         * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8804         prototype.
8805         (darwin_debug_port_info): Make static.
8806         * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8807         * machoread.c (_initialize_machoread): Add prototype.
8808         * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8809         (i386_darwin_set_control, i386_darwin_get_control)
8810         i386_darwin_dr_set_addr, i386_darwin_get_addr)
8811         i386_darwin_get_status, i386_darwin_get_control):
8812         Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8813
8814 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
8815
8816         * ax-gdb.c (gen_usual_unary): Remove special handling of
8817         enum and bool types.
8818
8819 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
8820
8821         * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8822
8823 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
8824
8825         * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8826
8827 2012-03-13  Chris January  <chris.january@allinea.com>
8828
8829         * aix-thread.c (fill_sprs): Store the floating point registers
8830         at the correct offsets into vals.
8831
8832 2012-03-13  Doug Evans  <dje@google.com>
8833
8834         * NEWS: Mention symbol-reloading has been deleted.
8835         * symfile.c (symbol_reloading): Delete.
8836         (show_symbol_reloading): Delete.
8837         (_initialize_symfile): Delete set/show symbol-reloading.
8838
8839         * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8840         read_in_chain until we have successfully read it in.
8841         (load_full_comp_unit): Ditto.
8842         (read_signatured_type): Add comment.
8843
8844 2012-03-13  Chris January  <chris.january@allinea.com>
8845
8846         * stabsread.c (fix_common_block): Change type of valu argument
8847         to CORE_ADDR.
8848
8849 2012-03-13  Chris January  <chris.january@allinea.com>
8850
8851         * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8852         instruction.
8853
8854 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8855
8856         * common/linux-procfs.c (linux_proc_get_int): New, from
8857         linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8858         field.
8859         (linux_proc_get_tgid): Only call linux_proc_get_int.
8860         (linux_proc_get_tracerpid): New.
8861         (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8862         (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8863         linux_proc_pid_has_state.
8864         * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8865         * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8866         (linux_ptrace_attach_warnings): New.
8867         * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8868         New declaration.
8869         * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8870         (linux_nat_attach): New variables ex, buffer, message and message_s.
8871         Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8872
8873 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8874
8875         * Makefile.in (linux-ptrace.o): New.
8876         * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8877         from linux-nat.c.
8878         * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8879         * common/linux-ptrace.c: New file.
8880         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8881         * config/arm/linux.mh: Likewise.
8882         * config/i386/linux.mh: Likewise.
8883         * config/i386/linux64.mh: Likewise.
8884         * config/ia64/linux.mh: Likewise.
8885         * config/m32r/linux.mh: Likewise.
8886         * config/m68k/linux.mh: Likewise.
8887         * config/mips/linux.mh: Likewise.
8888         * config/pa/linux.mh: Likewise.
8889         * config/powerpc/linux.mh: Likewise.
8890         * config/powerpc/ppc64-linux.mh: Likewise.
8891         * config/powerpc/spu-linux.mh: Likewise.
8892         * config/s390/s390.mh: Likewise.
8893         * config/sparc/linux.mh: Likewise.
8894         * config/sparc/linux64.mh: Likewise.
8895         * config/xtensa/linux.mh: Likewise.
8896         * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8897         common/linux-procfs.c.
8898         (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8899
8900 2012-03-13  Hui Zhu  <teawater@gmail.com>
8901             Pedro Alves  <palves@redhat.com>
8902
8903         * breakpoint.c (init_breakpoint_sal): New flags parameter.  Handle
8904         CREATE_BREAKPOINT_FLAGS_INSERTED.
8905         (create_breakpoint_sal, create_breakpoints_sal)
8906         (base_breakpoint_create_breakpoints_sal)
8907         (tracepoint_create_breakpoints_sal)
8908         (strace_marker_create_breakpoints_sal): New flags parameter.  Pass
8909         down.
8910         (break_command_1, handle_gnu_v3_exceptions, trace_command)
8911         (ftrace_command, strace_command): Adjust.
8912         (create_tracepoint_from_upload): Pass
8913         CREATE_BREAKPOINT_FLAGS_INSERTED.
8914         * breakpoint.h (enum breakpoint_create_flags): New.
8915         (create_breakpoint): New flags parameter.
8916         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8917         * python/py-breakpoint.c (bppy_init): Adjust.
8918         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8919         * spu-tdep.c (spu_catch_start): Adjust.
8920
8921 2012-03-13  Pedro Alves  <palves@redhat.com>
8922             Hui Zhu  <teawater@gmail.com>
8923             Yao Qi  <yao@codesourcery.com>
8924
8925         * remote.c (struct remote_state): New field `starting_up'.
8926         (remote_start_remote): Set and clear it.
8927         (remote_can_download_tracepoint): If starting up, return false.
8928
8929 2012-03-13  Yao Qi  <yao@codesourcery.com>
8930
8931         * inferior.h (struct inferior): Remove fields any_syscall_count,
8932         syscalls_counts and total_syscalls_count.  Move them to new
8933         struct catch_syscall_inferior_data in breakpoint.c.
8934         * breakpoint.c: Call DEF_VEC_I(int).
8935         (struct catch_syscall_inferior_data): New.
8936         (get_catch_syscall_inferior_data): New.
8937         (catch_syscall_inferior_data_cleanup): New.
8938         (insert_catch_syscall): Update to access data in
8939         struct catch_syscall_inferior_data.
8940         (insert_catch_syscall): Likewise.
8941         (remove_catch_syscall): Likewise.
8942         (remove_catch_syscall): Likewise.
8943         (is_syscall_catchpoint_enabled): Likewise.
8944         (add_catch_command): Likewise.
8945         (_initialize_breakpoint): Register cleanup.
8946         * breakpoint.h: Removed DEF_VEC_I(int).
8947         * dwarf2loc.c: Call DEF_VEC_I(int).
8948         * mi/mi-main.c: Likewise.
8949
8950 2012-03-12  Mark Kettenis  <kettenis@gnu.org>
8951
8952         * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8953
8954 2012-03-12  Chris January  <chris.january@allinea.com>
8955
8956         * aix-thread.c (_initialize_aix_thread): Add prototype.
8957         * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8958         * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8959
8960 2012-03-12  Joel Brobecker  <brobecker@adacore.com>
8961
8962         * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8963         include of "amd64-nat.h".
8964
8965 2012-03-12  Tom Tromey  <tromey@redhat.com>
8966
8967         * buildsym.c (record_pending_block): Now static.
8968         * buildsym.h: (record_pending_block): Remove.
8969
8970 2012-03-12  Andreas Tobler  <andreast@fgznet.ch>
8971
8972         * amd64bsd-nat.c: Include amd64bsd-nat.h.
8973
8974 2012-03-09  Tom Tromey  <tromey@redhat.com>
8975
8976         * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8977         producer_is_gxx_lt_4_6>: New fields.
8978         (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8979
8980 2012-03-09  Tom Tromey  <tromey@redhat.com>
8981
8982         * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8983
8984 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8985
8986         * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8987         prototype.
8988
8989 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8990
8991         * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8992
8993 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8994
8995         Fix -Wmissing-prototypes build.
8996         * arm-linux-nat.c (get_thread_id): Make it static.
8997         * xtensa-linux-nat.c (get_thread_id): Likewise.
8998
8999 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
9000
9001         * server.c (process_point_options): If a conditional expression
9002         is found, only print a message if remote_debug is nonzero.
9003
9004 2012-03-08  Luis Machado  <lgustavo@codesourcery.com>
9005
9006         * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9007         of internal error for unknown/unsupported types.
9008
9009 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
9010
9011         Fix CU relative vs. absolute DIE offsets.
9012         * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9013         offset to offset_in_cu.
9014         * dwarf2read.c (process_enumeration_scope): Add CU offset to
9015         TYPE_OFFSET.
9016         (dwarf2_fetch_die_location_block): Rename parameter offset to
9017         offset_in_cu.  New variable offset, add CU offset to OFFSET_IN_CU.
9018
9019 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
9020
9021         * libunwind-frame.c: Rename to ...
9022         * ia64-libunwind-tdep.c: ... here.
9023         * libunwind-frame.h: Rename to ...
9024         * ia64-libunwind-tdep.h: ... here.
9025         * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9026         ia64-libunwind-tdep.h.
9027         (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9028         * README (--with-libunwind): Rename to ...
9029         (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9030         * config.in: Regenerate.
9031         * configure: Regenerate.
9032         * configure.ac: New option --with-libunwind-ia64, make the
9033         AS_HELP_STRING ia64 specific.  Deprecate option --with-libunwind.
9034         Remove AC_DEFINE for HAVE_LIBUNWIND.
9035         * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9036         Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9037         Rename libunwind-frame in the general comment.
9038         * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9039         Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9040         Move forward declarations inside #ifndef.  Rename libunwind-frame in
9041         the general comment.
9042         * ia64-tdep.c: Rename libunwind-frame.h #include to
9043         ia64-libunwind-tdep.h.
9044         (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9045         (ia64_libunwind_descr): Rename libunwind-frame to
9046         ia64-libunwind-tdep in these function comments.
9047         * ia64-tdep.h: Rename libunwind-frame.h #include to
9048         ia64-libunwind-tdep.h.
9049         * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9050         ia64-libunwind-tdep in that data comment.
9051
9052 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
9053
9054         * libunwind-frame.h (struct frame_unwind): New declaration.
9055
9056 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
9057
9058         * breakpoint.c (_initialize_breakpoint): Fix error in help of
9059         "set breakpoint condition-evaluation" command.
9060
9061 2012-03-08  Tristan Gingold  <gingold@adacore.com>
9062
9063         * sparc-stub.c: Move to stubs/
9064         * sh-stub.c: Likewise.
9065         * m68k-stub.c: Likewise.
9066         * m32r-stub.c: Likewise.
9067         * i386-stub.c: Likewise.
9068
9069 2012-03-08  Andreas Schwab  <schwab@linux-m68k.org>
9070
9071         * m68klinux-tdep.c (m68k_linux_init_abi): Register
9072         linux_get_siginfo_type.
9073
9074         * m68klinux-nat.c: Include "gdb_proc_service.h".
9075         (PTRACE_GET_THREAD_AREA): Define.
9076         (ps_get_thread_area): New function.
9077
9078 2012-03-08  Yao Qi  <yao@codesourcery.com>
9079
9080         * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9081         `xsnprintf'.
9082         (remote_query_attached): Likewise.
9083         (remote_static_tracepoint_marker_at): Likewise.
9084         (remote_set_permissions): Likewise.
9085         (remote_detach_1, extended_remote_attach_1): Likewise.
9086         (send_g_packet, remote_vkill): Likewise.
9087         (extended_remote_disable_randomization): Likewise.
9088         (remote_add_target_side_condition): Likewise.
9089         (remote_insert_breakpoint): Likewise.
9090         (remote_remove_breakpoint): Likewise.
9091         (remote_insert_watchpoint): Likewise.
9092         (remote_remove_watchpoint): Likewise.
9093         (remote_insert_hw_breakpoint): Likewise.
9094         (remote_insert_hw_breakpoint): Likewise.
9095         (remote_remove_hw_breakpoint): Likewise.
9096         (remote_download_command_source): Likewise.
9097         (remote_download_tracepoint): Likewise.
9098         (remote_download_trace_state_variable): Likewise.
9099         (remote_disable_tracepoint): Likewise.
9100         (remote_trace_set_readonly_regions): Likewise.
9101         (remote_get_tracepoint_status): Likewise.
9102         (remote_trace_find): Likewise.
9103         (remote_get_trace_state_variable_value): Likewise.
9104         (remote_set_disconnected_tracing): Likewise.
9105         (remote_set_circular_trace_buffer): Likewise.
9106         (remote_get_min_fast_tracepoint_insn_len): Likewise.
9107         (remote_use_agent): Likewise.
9108         (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9109         Update callers.
9110
9111 2012-03-07  Pedro Alves  <palves@redhat.com>
9112
9113         * NEWS: Mention QProgramSignals.
9114         * inferior.h (update_signals_program_target): Declare.
9115         * infrun.c: (update_signals_program_target): New.
9116         (handle_command): Update the target of the new program signals
9117         array changes.
9118         * remote.c (PACKET_QProgramSignals): New enum.
9119         (last_program_signals_packet): New global.
9120         (remote_program_signals): New.
9121         (remote_start_remote): Update the target with the program signals
9122         list.
9123         (remote_protocol_features): Add entry for QPassSignals.
9124         (remote_open_1): Free anc clear last_program_signals_packet.
9125         (init_remote_ops): Install remote_program_signals.
9126         * target.c (update_current_target): Adjust.
9127         (target_program_signals): New.
9128         * target.h (struct target_ops) <to_program_signals>: New field.
9129         (target_program_signals): Declare.
9130
9131 2012-03-07  Pedro Alves  <palves@redhat.com>
9132
9133         * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9134         extensions.
9135
9136 2012-03-07  Andreas Schwab  <schwab@linux-m68k.org>
9137
9138         * m68klinux-nat.c (getregs_supplies): Make static.
9139         (getfpregs_supplies): Likewise.
9140         (have_ptrace_getregs): Likewise.
9141
9142 2012-03-06  Joel Brobecker  <brobecker@adacore.com>
9143
9144         * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9145         in call to get_die_type_at_offset.
9146
9147 2012-03-06  Stan Shebs  <stan@codesourcery.com>
9148
9149         * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9150         * mi/mi-cmd-disas.c: Ditto.
9151         * mi/mi-cmd-env.c: Ditto.
9152         * mi/mi-cmd-file.c: Ditto.
9153         * mi/mi-cmd-stack.c: Ditto.
9154         * mi/mi-cmd-target.c: Ditto.
9155         * mi/mi-cmd-var.c: Ditto.
9156         * mi/mi-cmds.c: Ditto.
9157         * mi/mi-cmds.h: Ditto.
9158         * mi/mi-console.c: Ditto.
9159         * mi/mi-getopt.c: Ditto.
9160         * mi/mi-getopt.h: Ditto.
9161         * mi/mi-interp.c: Ditto.
9162         * mi/mi-main.c: Ditto.
9163         * mi/mi-out.c: Ditto.
9164         * mi/mi-parse.c: Ditto.
9165         * mi/mi-parse.h: Ditto.
9166         * mi/mi-symbol-cmds.c: Ditto.
9167
9168         * mi/mi-getopt.h: Move mi_opt struct up.
9169         * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9170         return.
9171         * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9172
9173 2012-03-06  Tom Tromey  <tromey@redhat.com>
9174
9175         * proc-service.c (ps_pglobal_lookup): Set the current program
9176         space.
9177
9178 2012-03-06  Pedro Alves  <palves@redhat.com>
9179
9180         * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9181
9182 2012-03-05  Joel Brobecker  <brobecker@adacore.com>
9183
9184         * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9185
9186 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
9187
9188         Code cleanup.
9189         * common/linux-osdata.c (linux_common_core_of_thread): New function
9190         comment.
9191         * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9192         call by linux_common_core_of_thread.
9193         (linux_nat_core_of_thread_1): Remove.
9194         * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9195         * linux-thread-db.c: Include linux-osdata.h.
9196         (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9197         linux_common_core_of_thread.
9198
9199 2012-03-05  Tom Tromey  <tromey@redhat.com>
9200
9201         * value.c (value_primitive_field): Don't fetch contents for
9202         non-virtual bases.
9203
9204 2012-03-05  Tom Tromey  <tromey@redhat.com>
9205
9206         * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9207
9208 2012-03-05  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9209
9210         * s390-nat.c: Include "gregset.h".
9211
9212 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
9213
9214         * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9215         [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9216         (libunwind_load): New variable so_error, use it for dlerror.  Try to
9217         load also LIBUNWIND_SO_7.
9218
9219 2012-03-05  Pedro Alves  <palves@redhat.com>
9220
9221         * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9222         is not NULL, and remove resulting dead code.
9223
9224 2012-03-05  Thomas Schwinge  <thomas@codesourcery.com>
9225
9226         * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9227         prologue to sh_analyze_prologue.
9228         (sh_analyze_prologue): Make better use of such an upper limit, and
9229         generally be more cautious about accessing memory.
9230
9231 2012-03-05  Tom Tromey  <tromey@redhat.com>
9232
9233         * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9234         _initialize_ia64_hpux_tdep.
9235
9236 2012-03-05  Pedro Alves  <palves@redhat.com>
9237
9238         PR gdb/13766
9239
9240         * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9241         the register state is clear, supply explicit zero, instead of
9242         marking the register unavailable.
9243
9244 2012-03-05  Tristan Gingold  <gingold@adacore.com>
9245
9246         * NEWS: Mention OpenVMS ia64 new target.
9247
9248 2012-03-05  Tristan Gingold  <gingold@adacore.com>
9249
9250         * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9251         (ia64_unw_accessors, ia64_unw_rse_accessors)
9252         (ia64_libunwind_descr): Declare.
9253         * ia64-vms-tdep.c: New file.
9254         * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9255         (ia64_libunwind_descr): Make them public.
9256         * configure.tgt: Add ia64-*-*vms*.
9257         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9258         (ALLDEPFILES): Add ia64-vms-tdep.c
9259
9260 2012-03-05  Tristan Gingold  <gingold@adacore.com>
9261
9262         * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9263         * remote.c (PACKET_qXfer_uib): New enum value.
9264         (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9265         (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9266         (_initialize_remote): Call add_packet_config_cmd for
9267         xfer:uib packet.
9268
9269 2012-03-05  Tristan Gingold  <gingold@adacore.com>
9270
9271         * osabi.c (gdb_osabi_names): Add OpenVMS.
9272         (generic_elf_osabi_sniffer): Likewise.
9273         * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
9274
9275 2012-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
9276
9277         Removed unused code.
9278         * libunwind-frame.c (libunwind_frame_unwind)
9279         (libunwind_frame_base_address): Remove.
9280         * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9281
9282 2012-03-04  Yao Qi  <yao@codesourcery.com>
9283
9284         * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9285         remove trailing new line.
9286         (agent_run_command, agent_run_command): Add _ markup.
9287         (agent_capability_check): Likewise.
9288
9289 2012-03-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
9290
9291         * breakpoint.c (set_condition_evaluation_mode): Set
9292         CONDITION_EVALUATION_MODE unconditionally.
9293
9294 2012-03-03  Yao Qi  <yao@codesourcery.com>
9295
9296         * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9297         * common/agent.h: Update declaration.
9298         * inf-child.c (inf_child_use_agent): New.
9299         (inf_child_can_use_agent): New.
9300         (inf_child_target): Initialize fields `to_use_agent'
9301         and `to_can_use_agent'.
9302         * agent.c (agent_new_objfile): New.
9303         (_initialize_agent): Add agent_new_objfile to new_objfile
9304         observer.
9305
9306         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9307         New.
9308         (linux_target_install_ops): Initialize field
9309         `to_static_tracepoint_markers_by_strid'.
9310         * remote.c (free_current_marker): Move it to ...
9311         * tracepoint.c (free_current_marker): ... here.  New.
9312         (cleanup_target_stop): New.
9313         * tracepoint.h: Declare free_current_marker.
9314         * NEWS: Add one entry about `info static-tracepoint-marker'.
9315
9316 2012-03-03  Yao Qi  <yao@codesourcery.com>
9317
9318         * common/agent.c (agent_loaded_p): New.
9319         (agent_look_up_symbols): New global.
9320         * common/agent.h: Declare agent_loaded_p.
9321
9322 2012-03-03  Yao Qi  <yao@codesourcery.com>
9323
9324         * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9325         (agent_capability_check, agent_capability_invalidate): New.
9326         (symbol_list): New array element.
9327         * common/agent.h (enum agent_capa): New.
9328         * target.c (target_pre_inferior): Call agent_capability_invalidate.
9329
9330 2012-03-03  Yao Qi  <yao@codesourcery.com>
9331
9332         * target.h (struct target_ops) <to_use_agent>: New field.
9333         (struct target_ops) <to_can_use_agent>: New field.
9334         (target_use_agent, target_can_use_agent): New macro.
9335         * target.c (update_current_target): Update.
9336         * remote.c: New enum `PACKET_QAgent'.
9337         (remote_protocol_features): Add a new element.
9338         (remote_use_agent, remote_can_use_agent): New.
9339         (init_remote_ops): Initialize field `can_use_agent' with
9340         remote_can_use_agent.  Intiailize field `use_agent' with
9341         remote_use_agent.
9342         * common/agent.c (use_agent): New global.
9343         * common/agent.h: Declare it.
9344         * tracepoint.c (info_static_tracepoint_markers_command): Add
9345         comment.
9346         * Makefile.in (SFILES): Add common/agent.c and agent.c.
9347         (COMMON_OBS): Add common/agent.o and agent.o
9348         (common-agent.o): New rule.
9349         * agent.c: New.
9350
9351 2012-03-03  Yao Qi  <yao@codesourcery.com>
9352
9353         * common/agent.c: New.
9354         * common/agent.h: New.
9355         * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9356         AC_CHECK_HEADERS.
9357         * configure, configh.in: Regenerated.
9358
9359 2012-03-02  Kevin Buettner  <kevinb@redhat.com>
9360
9361         * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9362         unless it exists for this architecture.
9363
9364 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
9365
9366         * language.h (struct language_defn): New "method" la_read_var_value.
9367         * findvar.c: #include "language.h".
9368         (default_read_var_value): Renames read_var_value.  Rewrite
9369         function description.
9370         (read_var_value): New function.
9371         * value.h (default_read_var_value): Add prototype.
9372         * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
9373         New functions.
9374         (ada_language_defn): Add entry for la_read_var_value.
9375         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
9376         * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
9377         language_defn structures to add entry for new la_read_var_value
9378         field.
9379
9380 2012-03-02  Tom Tromey  <tromey@redhat.com>
9381             Pedro Alves  <palves@redhat.com>
9382
9383         PR breakpoints/13776:
9384         * breakpoint.c (breakpoint_init_inferior): Delete step-resume
9385         breakpoints.
9386         (delete_longjmp_breakpoint_at_next_stop): New.
9387         * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
9388         * target.c (generic_mourn_inferior): Call mark_breakpoints_out
9389         before deleting the inferior.  Add comments.
9390         * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
9391         breakpoints immediately, but only on next stop.  Move that code
9392         next to where we mark other breakpoints for deletion.
9393
9394 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
9395
9396         * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
9397         marker.
9398         * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
9399         violation.
9400
9401 2012-03-02  Pedro Alves  <palves@redhat.com>
9402
9403         * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
9404
9405 2012-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
9406
9407         Fix -Wmissing-prototypes build.
9408         * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
9409         * remote-sim.c (gdbsim_has_all_memory): Likewise.
9410         (gdbsim_has_memory): Likewise.
9411
9412 2012-03-02  Yao Qi  <yao@codesourcery.com>
9413
9414         Fix -Wmissing-prototypes build.
9415         * charset.c (phony_iconv_open): Make static.
9416         (phony_iconv_close, phony_iconv): Likewise.
9417         * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
9418         * i386-windows-nat.c (_initialize_i386_windows_nat): New
9419         prototype.
9420         * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
9421         * ser-mingw.c (create_select_thread): Make static.
9422         * windows-termcap.c (tgetent): New prototype.
9423         (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
9424
9425 2012-03-02  Zhang Yuanhui  <asmwarrior@gmail.com>
9426
9427         Fix -Wmissing-prototypes build.
9428         * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
9429         (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9430         (_initialize_loadable): New prototypes.
9431
9432 2012-03-02  Doug Evans  <dje@google.com>
9433
9434         * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9435         abbrev table, read_comp_unit will do it.
9436
9437 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
9438
9439         Fix -Wmissing-prototypes build.
9440         * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9441         * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9442         * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9443         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9444         (_initialize_arm_symbian_tdep): New prototype.
9445         * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9446         * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9447         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9448         static.
9449         * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9450         * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9451         prototype.
9452         * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9453         (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9454         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9455         static.
9456         * moxie-tdep.c (moxie_process_record): Likewise.
9457         * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9458         (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9459         * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9460         (_initialize_rl78_tdep): New prototype.
9461         * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9462         (_initialize_rx_tdep): New prototype.
9463         * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9464         (_initialize_darwin_solib): New prototype.
9465         * solib-spu.c: Include solib-spu.h.
9466         (_initialize_spu_solib): New prototype.
9467         * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9468         * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9469         (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9470         (tic6x_software_single_step): Make it static.
9471         (_initialize_tic6x_tdep): New prototype.
9472
9473 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
9474
9475         Fix -Wmissing-prototypes build.
9476         * cris-tdep.c (cris_can_use_hardware_watchpoint)
9477         (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9478
9479 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
9480
9481         Fix -Wmissing-prototypes build.
9482         * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9483         (frv_have_stopped_data_address): Remove.
9484
9485 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
9486
9487         Fix -Wmissing-prototypes build.
9488         * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9489         * sh-tdep.c: Include sh64-tdep.h.
9490         * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9491         * sh64-tdep.c: Include sh64-tdep.h.
9492         * sh64-tdep.h: New file.
9493
9494 2012-03-01  Maciej W. Rozycki <macro@codesourcery.com>
9495
9496         * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9497
9498 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
9499
9500         * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9501         sp_regnum once the gdbarch_init_osabi hook has been called.
9502
9503 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
9504
9505         * mips-tdep.c (mips32_bc1_pc): New function.
9506         (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9507         BPOSGE32 and BPOSGE64 instructions.
9508         (deal_with_atomic_sequence): Likewise.
9509         (mips32_instruction_has_delay_slot): Likewise.
9510
9511 2012-03-01  Maciej W. Rozycki  <macro@mips.com>
9512             Chris Dearman  <chris@mips.com>
9513             Maciej W. Rozycki  <macro@codesourcery.com>
9514             Joseph Myers  <joseph@codesourcery.com>
9515
9516         * features/mips-dsp.xml: New file.
9517         * features/mips64-dsp.xml: New file.
9518         * features/mips-dsp-linux.xml: New file.
9519         * features/mips64-dsp-linux.xml: New file.
9520         * features/Makefile (WHICH): Add mips-dsp-linux and
9521         mips64-dsp-linux.
9522         (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9523         * features/mips-dsp-linux.c: New file.
9524         * features/mips64-dsp-linux.c: New file.
9525         * regformats/mips-dsp-linux.dat: New file.
9526         * regformats/mips64-dsp-linux.dat: New file.
9527         * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9528         registers.
9529         (mips64_linux_register_addr): Likewise.
9530         (mips64_linux_regsets_fetch_registers): Likewise.
9531         (mips64_linux_regsets_store_registers): Likewise.
9532         (mips64_linux_fetch_registers): Update call to
9533         mips64_linux_regsets_fetch_registers.
9534         (mips64_linux_store_registers): Update call to
9535         mips64_linux_regsets_store_registers.
9536         (mips_linux_read_description): Probe for DSP registers.
9537         (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9538         and initialize_tdesc_mips64_dsp_linux.
9539         * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9540         Remove padding of no longer used embedded register slots.
9541         * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9542         (MIPS_RESTART_REGNUM): Redefine enum value.
9543         * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9544         strings.
9545         (mips_tx39_reg_names): Likewise.
9546         (mips_linux_reg_names): New array of register names for Linux
9547         targets.
9548         (mips_register_name): Check for a null pointer in
9549         mips_processor_reg_names and return an empty string.
9550         (mips_register_type): Exclude embedded registers for the IRIX
9551         and Linux ABIs.
9552         (mips_pseudo_register_type): Likewise.  Use dynamic numbers to
9553         refer to FP registers, LO, HI, BadVAddr, Cause and PC.  Handle
9554         DSP registers.
9555         (mips_stab_reg_to_regnum): Handle DSP accumulators.
9556         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9557         (mips_gdbarch_init): Likewise.  Initialize internal register
9558         indices for the Linux ABI.  Use dynamic numbers to refer to
9559         registers, as applicable, while parsing the target description.
9560         * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9561
9562 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9563
9564         * frame.h (read_frame_register_unsigned): Fix typo in function
9565         description.
9566
9567 2012-03-01  Pedro Alves  <palves@redhat.com>
9568
9569         * jit-reader.in [!__cplusplus]
9570         (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9571
9572 2012-03-01  Pedro Alves  <palves@redhat.com>
9573
9574         * configure.ac (build_warnings): Add -Wmissing-prototypes.
9575         * configure: Regenerate.
9576
9577 2012-03-01  Pedro Alves  <palves@redhat.com>
9578
9579         * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9580         * breakpoint.c (create_exception_master_breakpoint, trace_command)
9581         (ftrace_command, strace_command): Make static.
9582         * d-lang.c (_initialize_d_language): Declare.
9583         * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9584         * dwarf2loc.c (_initialize_dwarf2loc):
9585         * dwarf2read.c (process_psymtab_comp_unit): Make static.
9586         * exec.c (exec_get_section_table): Make static.
9587         * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9588         * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9589         * inferior.c (remove_inferior_command, add_inferior_command)
9590         (clone_inferior_command): Make static.
9591         * linux-nat.c (linux_nat_thread_address_space)
9592         (linux_nat_core_of_thread): Make static.
9593         * linux-tdep.c (_initialize_linux_tdep): Declare.
9594         * objc-lang.c (_initialize_objc_lang): Declare.
9595         * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9596         Make static.
9597         (_initialize_opencl_language): Declare.
9598         * record.c (_initialize_record): Declare.
9599         * remote.c (demand_private_info, remote_get_tib_address)
9600         (remote_supports_cond_tracepoints)
9601         (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9602         Make static.
9603         * skip.c (_initialize_step_skip): Declare.
9604         * symtab.c (skip_prologue_using_lineinfo): Make static.
9605         * tracepoint.c (delete_trace_state_variable)
9606         (trace_variable_command, delete_trace_variable_command)
9607         (get_uploaded_tsv, find_matching_tracepoint_location)
9608         (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9609         Make static.
9610         * value.c (pack_unsigned_long): Make static.
9611         * varobj.c (varobj_ensure_python_env): Make static.
9612         * windows-tdep.c (_initialize_windows_tdep): Declare.
9613         * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9614
9615 2012-03-01  Pedro Alves  <palves@redhat.com>
9616
9617         * linux-tdep.c (linux_has_shared_address_space): Make static.  Add
9618         gdbarch parameter.
9619         (linux_init_abi): Install it as has_shared_address_space gdbarch
9620         callback.
9621
9622 2012-03-01  Pedro Alves  <palves@redhat.com>
9623
9624         * observer.c (observer_test_first_notification_function)
9625         (observer_test_second_notification_function)
9626         (observer_test_third_notification_function): Add declarations.
9627
9628 2012-03-01  Pedro Alves  <palves@redhat.com>
9629
9630         * common/signals.c (default_target_signal_to_host)
9631         (default_target_signal_from_host): Move ...
9632         * arch-utils.c: ... here.
9633         * arch-utils.h (default_target_signal_to_host)
9634         (default_target_signal_from_host): Declare.
9635
9636         * common/signals.c (target_signal_from_command): Move ...
9637         * infrun.c: ... here.
9638         * inferior.h (target_signal_from_command): Declare.
9639         * target.h (target_signal_from_command)
9640         (default_target_signal_from_host, default_target_signal_to_host):
9641         Delete declarations.
9642
9643         * common/signals.c (_initialize_signals): Delete.
9644
9645 2012-03-01  Pedro Alves  <palves@redhat.com>
9646
9647         * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9648         both __cplusplus and !__cplusplus.
9649
9650 2012-03-01  Pedro Alves  <palves@redhat.com>
9651
9652         * psymtab.c (find_and_open_source): Delete declaration.
9653         * source.c (find_and_open_source): Move comment ...
9654         * source.h (find_and_open_source): ... to this new declaration.
9655
9656 2012-03-01  Pedro Alves  <palves@redhat.com>
9657
9658         * inline-frame.c: Include inline-frame.h.
9659
9660 2012-03-01  Pedro Alves  <palves@redhat.com>
9661
9662         * tui/tui-data.c (set_gen_win_origin): Delete.
9663         * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9664         * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9665
9666 2012-03-01  Pedro Alves  <palves@redhat.com>
9667
9668         * remote.c (encode_actions): Delete declaration.
9669         * tracepoint.c (encode_actions): Make extern.
9670         * tracepoint.h (encode_actions): Declare.
9671
9672 2012-03-01  Pedro Alves  <palves@redhat.com>
9673
9674         * python/py-breakpoint.c: Include python.h.
9675         * python/py-continueevent.c (create_continue_event_object): Make
9676         static.
9677         * python/py-lazy-string.c (stpy_get_type): Make static.
9678         * python/py-newobjfileevent.c (create_new_objfile_event_object):
9679         Make static.
9680         * python/py-utils.c (unicode_to_target_python_string): Make
9681         static.
9682         * python/py-value.c: Include python.h.
9683
9684 2012-03-01  Pedro Alves  <palves@redhat.com>
9685
9686         * inferior.c (delete_threads_of_inferior): Delete.
9687
9688 2012-03-01  Pedro Alves  <palves@redhat.com>
9689
9690         Import fallback definitions from glibc.
9691
9692         * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9693         ps_prochandle): Forward declare.
9694         (ps_err_e): Use glibc's comments.
9695         [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9696         (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9697         (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9698         (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9699         (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9700         (struct ps_prochandle): Adjust comment.
9701
9702 2012-03-01  Pedro Alves  <palves@redhat.com>
9703
9704         * ada-lang.c (ada_modulus_from_name): Delete.
9705         * ada-lex.l (lexer_init): Make static.
9706
9707 2012-03-01  Pedro Alves  <palves@redhat.com>
9708
9709         PR gdb/13767
9710
9711         * frame.c (read_frame_register_unsigned): New.
9712         * frame.h (read_frame_register_unsigned): Declare.
9713         * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9714         Handle it.
9715         (print_i387_control_word): New parameter `control_p'.  Handle it.
9716         (i387_print_float_info): Handle unavailable float registers.
9717
9718 2012-03-01  Keith Seitz  <keiths@redhat.com>
9719
9720         * linespec.c (decode_line_2): Sort the list of methods
9721         alphabetically before presenting the user with a selection
9722         menu.
9723
9724 2012-03-01  Doug Evans  <dje@google.com>
9725
9726         * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9727         has_namespace_info.
9728         (dwarf2_read_abbrevs): Remove corresponding initialization.
9729
9730 2012-03-01  Scott J. Goldman <scottjg@vmware.com>
9731
9732         * NEWS: Mention new python command class gdb.COMMAND_USER.
9733         * cli/cli-cmds.c (show_user): Print error when used on a python
9734         command.
9735         (init_cli_cmds): Update documentation strings for "show user" and
9736         "set/show max-user-call-depth" to clarify that it does not apply to
9737         python commands.
9738         * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9739         error check.
9740         (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9741         gdb python api.
9742         * top.c (execute_command): Only execute a user-defined command as a
9743         legacy macro if c->user_commands is set.
9744
9745 2012-03-01  Tom Tromey  <tromey@redhat.com>
9746
9747         * valprint.h (struct generic_val_print_decorations): New.
9748         (generic_val_print): Declare.
9749         * valprint.c (generic_val_print): New function.
9750         * p-valprint.c (p_decorations): New global.
9751         (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9752         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9753         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9754         TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9755         * m2-valprint.c (m2_decorations): New global.
9756         (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9757         TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9758         TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9759         TYPE_CODE_ERROR>: Call generic_val_print.
9760         * f-valprint.c (f_decorations): New global.
9761         (f_val_print): Use print_function_pointer_address.
9762         <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9763         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9764         TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9765         generic_val_print.
9766         * c-valprint.c (c_decorations): New global.
9767         (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9768         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9769         TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9770         TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9771         TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9772         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9773         case.
9774
9775 2012-03-01  Tom Tromey  <tromey@redhat.com>
9776
9777         * valprint.c (val_print): Update.
9778         * p-valprint (pascal_val_print): Return void.
9779         * p-lang.h (pascal_val_print): Return void.
9780         * m2-valprint.c (m2_val_print): Return void.
9781         * m2-lang.h (m2_val_print): Return void.
9782         * language.h (struct language_defn) <la_val_print>: Return void.
9783         * language.c (unk_lang_val_print): Return void.
9784         * jv-valprint.c (java_val_print): Return void.
9785         * jv-lang.h (java_val_print): Return void.
9786         * f-valprint.c (f_val_print): Return void.
9787         * f-lang.h (f_val_print): Return void.
9788         * d-valprint.c (d_val_print): Return void.
9789         (dynamic_array_type): Update.
9790         * d-lang.h (d_val_print): Return void.
9791         * c-valprint.c (c_val_print): Return void.
9792         * c-lang.h (c_val_print): Return void.
9793         * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9794         void.
9795         * ada-lang.h (ada_val_print): Return void.
9796
9797 2012-03-01  Tom Tromey  <tromey@redhat.com>
9798
9799         * value.h (val_print): Return void.
9800         * valprint.c (val_print): Return void.
9801
9802 2012-03-01  Tom Tromey  <tromey@redhat.com>
9803
9804         * value.h (common_val_print): Return void.
9805         * valprint.c (common_val_print): Return void.
9806
9807 2012-03-01  Tom Tromey  <tromey@redhat.com>
9808
9809         * value.h (value_print): Return void.
9810         * valprint.c (value_print): Return void.
9811         * p-valprint.c (pascal_value_print): Return void.
9812         * p-lang.h (pascal_value_print): Return void.
9813         * language.h (struct language_defn) <la_value_print>: Return
9814         void.
9815         * language.c (unk_lang_value_print): Return void.
9816         * jv-valprint.c (java_value_print): Return void.
9817         * jv-lang.h (java_value_print): Return void.
9818         * f-valprint.c (c_value_print): Don't declare.
9819         Include c-lang.h.
9820         * c-valprint.c (c_value_print): Return void.
9821         * c-lang.h (c_value_print): Return void.
9822         * ada-valprint.c (ada_value_print): Return void.
9823         * ada-lang.h (ada_value_print): Return void.
9824
9825 2012-03-01  Tom Tromey  <tromey@redhat.com>
9826
9827         * value.c (value_primitive_field): Handle virtual base classes.
9828
9829 2012-03-01  Tom Tromey  <tromey@redhat.com>
9830
9831         * gdbtypes.h (struct vbase): Remove.
9832
9833 2012-03-01  Tom Tromey  <tromey@redhat.com>
9834
9835         * c-valprint.c (print_function_pointer_address): Move...
9836         * valprint.c: ... here.  Make non-static.
9837         * m2-valprint.c (print_function_pointer_address): Remove.
9838         * valprint.h (print_function_pointer_address): Declare.
9839
9840 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9841
9842         * NEWS: Document the fact that one can provide a condition when
9843         creating an Ada exception catchpoint.
9844
9845 2012-03-01  Tom Tromey  <tromey@redhat.com>
9846
9847         * valprint.c (val_print_type_code_flags): Fix placement of
9848         trailing brace.
9849
9850 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9851
9852         * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9853         (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9854         environment variable before calling update-copyright.
9855
9856 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9857
9858         * gnulib/extra/update-copyright: Update to the latest from
9859         gnulib's git repository.
9860         * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9861         variable to 2 instead of 1.
9862
9863 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9864
9865         * varobj.c (c_value_of_variable): Remove dead code.
9866
9867 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9868
9869         * ada-lex.p (processId): Do not modify already encoded IDs.
9870         Update function documentation.
9871
9872 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9873
9874         * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9875         "name" with "struct symbol *name_sym".
9876         * ada-exp.y (write_var_or_type): Update call to
9877         ada_find_renaming_symbol.
9878         "name" with "struct symbol *name_sym". Adjust Implementation
9879         accordingly.  Adjust the function documentation.
9880
9881 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9882
9883         * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9884         * ada-lang.c (ada_find_any_type): Add advance declaration.
9885         Make static.  Replace ada_find_any_symbol by
9886         ada_find_any_type_symbol.
9887         (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9888         Improve function description.  Make static.
9889         (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9890         Replace ada_find_any_symbol by ada_find_any_type_symbol.
9891
9892 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9893
9894         * ada-lang.c (struct tag_args): Delete.
9895         (ada_get_tsd_type): Function body moved up in source file.
9896         (ada_tag_name_1, ada_tag_name_2): Delete.
9897         (ada_get_tsd_from_tag): New function.
9898         (ada_tag_name_from_tsd): New function.
9899         (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9900         to determine the tag name.
9901
9902 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9903
9904         * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9905         declaration.
9906         * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9907         function.
9908
9909 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9910
9911         * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9912
9913 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9914
9915         * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9916         full searches.
9917
9918 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9919
9920         * ada-lang.c (constrained_packed_array_type): If there is a
9921         parallel XA type, use it to determine the array index type.
9922
9923 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9924
9925         * ada-valprint.c (ada_val_print_1): If our value is a reference
9926         to an array descriptor, dereference it before converting it
9927         to a simple array.
9928
9929 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9930
9931         * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9932         creating fixed value.
9933         (ada_value_ind, ada_coerce_ref, assign_component)
9934         (ada_evaluate_subexp): Remove call to unwrap_value before
9935         call to ada_to_fixed_value.
9936
9937 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9938
9939         * ada-lang.c (to_fixed_array_type): Set result's type name.
9940
9941 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9942
9943         * ada-lang.c (catch_ada_exception_command_split): Add new
9944         argument cond_string.  Add support for condition at end of
9945         "catch exception" commands.
9946         (ada_decode_exception_location): Add new argument cond_string.
9947         Update call to catch_ada_exception_command_split.
9948         (create_ada_exception_catchpoint): Add new argument cond_string.
9949         Set the breakpoint condition if needed.
9950         (catch_ada_exception_command): Update call to
9951         ada_decode_exception_location.
9952         (ada_decode_assert_location): Add function documentation.
9953         Add support for condition at end of "catch assert" command.
9954         (catch_assert_command): Update calls to ada_decode_assert_location
9955         and create_ada_exception_catchpoint.
9956
9957 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9958
9959         Fix disp-step-syscall.exp: fork: single step over fork.
9960         * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9961         (i386_linux_get_syscall_number_from_regcache): ... here, new function
9962         comment, change parameters gdbarch and ptid to regcache.  Remove
9963         parameter regcache, initialize gdbarch from regcache here.
9964         (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9965         New functions.
9966         (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9967         instead.
9968         * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9969         'syscall'.  Make the 'int' check more strict.
9970
9971 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9972
9973         Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9974         * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9975         (i386_linux_intx80_sysenter_syscall_record): ... here.
9976         (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9977         Use the renamed function name.
9978
9979 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9980
9981         * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9982         * breakpoint.c (until_break_command): Likewise.
9983         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9984         * infcall.c (call_function_by_hand): Likewise.
9985         * infcmd.c (finish_forward): Likewise.
9986         * infrun.c (insert_exception_resume_breakpoint): Likewise.
9987
9988 2012-02-28  Tristan Gingold  <gingold@adacore.com>
9989
9990         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9991         avoid variable assignments inside condition.
9992
9993 2012-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9994
9995         Fix static analysis issue found by cppcheck.
9996         * microblaze-tdep.c (microblaze_extract_return_value): Fix
9997         uninitialized BUF for size 2.
9998
9999 2012-02-27  Chris Dearman  <chris@mips.com>
10000             Nathan Froyd  <froydnj@codesourcery.com>
10001             Maciej W. Rozycki  <macro@codesourcery.com>
10002
10003         * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10004         (mips16_instruction_has_delay_slot): Likewise.
10005         (mips_segment_boundary): Likewise.
10006         (mips_adjust_breakpoint_address): Likewise.
10007         (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10008
10009 2012-02-27  Maciej W. Rozycki  <macro@mips.com>
10010             Maciej W. Rozycki  <macro@codesourcery.com>
10011
10012         * infrun.c (handle_inferior_event): Don't proceed through
10013         shared library trampolines if stepping at the machine
10014         instruction level.
10015
10016 2012-02-27  Maciej W. Rozycki  <macro@codesourcery.com>
10017
10018         * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10019         too.
10020
10021 2012-02-27  Thomas Schwinge  <thomas@codesourcery.com>
10022
10023         * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10024         (sh_stub_unwind_sniffer): New functions.
10025         (sh_stub_unwind): New variable.
10026         (sh_gdbarch_init): Wire everything.
10027
10028 2012-02-27  Pedro Alves  <palves@redhat.com>
10029
10030         * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10031         (linux_nat_post_attach_wait): Adjust to use
10032         linux_proc_pid_is_stopped.
10033         * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10034         * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10035         based on pid_is_stopped from both linux-nat.c and
10036         gdbserver/linux-low.c, and renamed.
10037
10038 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
10039
10040         * remote.c (remote_watchpoint_addr_within_range): New function.
10041         (init_remote_ops): Use it.
10042
10043 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
10044
10045         * target.h (target_watchpoint_addr_within_range): Document macro.
10046
10047 2012-02-24  Pedro Alves  <palves@redhat.com>
10048
10049         * stack.c (set_last_displayed_sal): Issue internal_error instead
10050         of warning, and issue it after clearing the last displayed sal.
10051
10052 2012-02-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10053             Pedro Alves  <palves@redhat.com>
10054
10055         * breakpoint.c (until_break_command): Install breakpoints after
10056         all frame manipulations.
10057
10058 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
10059
10060         * remote.c (remote_supports_cond_breakpoints): New forward
10061         declaration.
10062         (remote_add_target_side_condition): New function.
10063         (remote_insert_breakpoint): Add target-side breakpoint
10064         conditional if supported.
10065         (remote_insert_hw_breakpoint): Likewise.
10066         (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10067         hook.
10068
10069         * target.c (update_current_target): Inherit
10070         to_supports_evaluation_of_breakpoint_conditions.
10071         Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10072
10073         * target.h (struct target_ops)
10074         <to_supports_evaluation_of_breakpoint_conditions>: New field.
10075         (target_supports_evaluation_of_breakpoint_conditions): New #define.
10076
10077         * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10078         (condition_evaluation_both, condition_evaluation_auto,
10079         condition_evaluation_host, condition_evaluation_target,
10080         condition_evaluation_enums, condition_evaluation_mode_1,
10081         condition_evaluation_mode): New static globals.
10082         (translate_condition_evaluation_mode): New function.
10083         (breakpoint_condition_evaluation_mode): New function.
10084         (gdb_evaluates_breakpoint_condition_p): New function.
10085         (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10086         (mark_breakpoint_modified): New function.
10087         (mark_breakpoint_location_modified): New function.
10088         (set_condition_evaluation_mode): New function.
10089         (show_condition_evaluation_mode): New function.
10090         (bp_location_compare_addrs): New function.
10091         (get_first_location_gte_addr): New helper function.
10092         (set_breakpoint_condition): Free condition bytecode if locations
10093         has become unconditional.  Call mark_breakpoint_modified (...).
10094         (condition_command): Call update_global_location_list (1) for
10095         breakpoints.
10096         (breakpoint_xfer_memory): Use is_breakpoint (...).
10097         (is_breakpoint): New function.
10098         (parse_cond_to_aexpr): New function.
10099         (build_target_condition_list): New function.
10100         (insert_bp_location): Handle target-side conditional
10101         breakpoints and call build_target_condition_list (...).
10102         (update_inserted_breakpoint_locations): New function.
10103         (insert_breakpoint_locations): Handle target-side conditional
10104         breakpoints.
10105         (bpstat_check_breakpoint_conditions): Add comment.
10106         (bp_condition_evaluator): New function.
10107         (bp_location_condition_evaluator): New function.
10108         (print_breakpoint_location): Print information on where the condition
10109         will be evaluated.
10110         (print_one_breakpoint_location): Likewise.
10111         (init_bp_location): Call mark_breakpoint_location_modified (...) for
10112         breakpoint location.
10113         (force_breakpoint_reinsertion): New functions.
10114         (update_global_location_list): Handle target-side breakpoint
10115         conditions.
10116         Reinsert locations that are already inserted if conditions have
10117         changed.
10118         (bp_location_dtor): Free agent expression bytecode.
10119         (disable_breakpoint): Call mark_breakpoint_modified (...).
10120         Call update_global_location_list (...) with parameter 1 for breakpoints.
10121         (disable_command): Call mark_breakpoint_location_modified (...).
10122         Call update_global_location_list (...) with parameter 1 for breakpoints.
10123         (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10124         (enable_command): mark_breakpoint_location_modified (...).
10125         (_initialize_breakpoint): Update documentation and add
10126         condition-evaluation breakpoint subcommand.
10127
10128         * breakpoint.h: Include ax.h.
10129         (condition_list): New data structure.
10130         (condition_status): New enum.
10131         (bp_target_info) <cond_list>: New field.
10132         (bp_location) <condition_changed, cond_bytecode>: New fields.
10133         (is_breakpoint): New prototype.
10134
10135 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
10136
10137         * remote.c (remote_state) <cond_breakpoints>: New field.
10138         (PACKET_ConditionalBreakpoints): New enum.
10139         (remote_cond_breakpoint_feature): New function.
10140         (remote_protocol_features): Add new ConditionalBreakpoints entry.
10141         (remote_supports_cond_breakpoints): New function.
10142         (_initialize_remote): Add new packet configuration for
10143         target-side conditional breakpoints.
10144
10145 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
10146
10147         * NEWS: Mention target-side conditional breakpoint support,
10148         new condition-evaluation breakpoint subcommand and remote
10149         packet extensions.
10150
10151 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
10152
10153         * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10154         number.
10155
10156 2012-02-24  Thomas Schwinge  <thomas@codesourcery.com>
10157
10158         * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10159         (after_prologue): Remove.
10160
10161 2012-02-23  Tom Tromey  <tromey@redhat.com>
10162
10163         * jv-valprint.c (java_val_print): Remove dead code.
10164
10165 2012-02-23  Tristan Gingold  <gingold@adacore.com>
10166
10167         * ada-tasks.c (struct ada_tasks_inferior_data): Add
10168         known_tasks_element and known_tasks_length fields.
10169         (read_known_tasks_array): Change argument type.  Use pointer type
10170         and number of elements from DATA.  Adjust.
10171         (read_known_tasks_list): Likewise.
10172         (get_known_tasks_addr): Remove.
10173         (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10174         (ada_tasks_inferior_data_sniffer): ... this.  Use symtab for element
10175         type and array length.  Merge former get_known_tasks_addr code.
10176
10177 2012-02-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
10178
10179         PR backtrace/13716
10180         * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10181         it after set_momentary_breakpoint.
10182
10183 2012-02-22  Sterling Augustine  <saugustine@google.com>
10184
10185         PR 13689:
10186         * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10187
10188 2012-02-22  Gary Benson  <gbenson@redhat.com>
10189
10190         * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10191         (find_slot_in_mapped_hash): Likewise.
10192
10193 2012-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
10194
10195         PR build/13638
10196         * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10197         (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10198         * configure: Regenerate.
10199
10200 2012-02-21  Tristan Gingold  <gingold@adacore.com>
10201             Pedro Alves  <palves@redhat.com>
10202
10203         * ia64-tdep.c: Do not include libunwind-ia64.h.
10204         * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10205         Include libunwind-ia64.h instead of libunwind.h.
10206         * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10207         for libunwind.h existence.
10208         * configure, config.in: Regenerate.
10209
10210 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
10211
10212         * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10213         instead of value_rtti_target_type.
10214         * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10215         instead of value_rtti_target_type.
10216         * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10217         value_rtti_target_type.
10218         * valops.c (value_ind): Extract function readjust_indirect_value_type.
10219         (value_rtti_target_type): Rename to ...
10220         (value_rtti_indirect_type): ... here and make it indirect.  Update
10221         function comment.
10222         * value.c (readjust_indirect_value_type): New function.
10223         (coerce_ref): Support for enclosing type setting for references
10224         with readjust_indirect_value_type.
10225         * value.h (readjust_value_type): New declaration.
10226         (value_rtti_target_type): Rename to ...
10227         (value_rtti_indirect_type): ... here.
10228
10229 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
10230
10231         * MAINTAINERS (Write After Approval): Add myself to the list.
10232
10233 2012-02-20  Doug Evans  <dje@google.com>
10234
10235         * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10236         Rename objfile_p_char parameter to objfilep.
10237         (build_objfile_section_table): Result is now void.  All callers
10238         updated.
10239         * objfiles.h (struct objfile): Tweak comments, whitespace.
10240         (build_objfile_section_table): Update.
10241
10242         * elfread.c (elf_symfile_segments): Fix warning text.
10243
10244 2012-02-20  Tom Tromey  <tromey@redhat.com>
10245
10246         PR gdb/13498:
10247         * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10248         particular set of file names once.
10249         (dw2_map_symbol_filenames): Likewise.
10250
10251 2012-02-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
10252
10253         Code cleanup.
10254         * main.c (write_files): Remove the declaration.
10255         (external_editor_command): Move the declaration ...
10256         [GDBTK] (external_editor_command): ... here.  Fix the comment.
10257
10258 2012-02-20  Tom Tromey  <tromey@redhat.com>
10259
10260         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10261         extraneous block.
10262
10263 2012-02-20  Tristan Gingold  <gingold@adacore.com>
10264
10265         * darwin-nat.h (enum darwin_msg_state): Add comments.
10266
10267 2012-02-20  Tristan Gingold  <gingold@adacore.com>
10268
10269         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10270         value.
10271
10272 2012-20-18  Joel Brobecker  <brobecker@adacore.com>
10273
10274         * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10275         between function description and implementation.
10276
10277 2012-02-17  Tom Tromey  <tromey@redhat.com>
10278
10279         PR python/12070:
10280         * python/py-event.c (event_object_getset): New global.
10281         (event_object_type): Reference it.
10282         * python/py-type.c (field_object_getset): New global.
10283         (field_object_type): Reference it.
10284         * python/python-internal.h (gdb_py_generic_dict): Declare.
10285         * python/py-utils.c (gdb_py_generic_dict): New function.
10286
10287 2012-02-17  Tristan Gingold  <gingold@adacore.com>
10288
10289         * solib-darwin.c (darwin_current_sos): Check magic and filetype
10290
10291 2012-02-17  Thomas Schwinge  <thomas@codesourcery.com>
10292
10293         * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10294         TYPE_CALLING_CONVENTION annotation.
10295
10296 2012-02-16  Kevin Buettner  <kevinb@redhat.com>
10297
10298         * MAINTAINERS: Add rx to target ISA section.
10299         * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10300         (ALLDEPFILES): Add rx-tdep.c.
10301
10302 2012-02-16  Tom Tromey  <tromey@redhat.com>
10303
10304         * symfile.c (symbol_file_add_main_1): Use inferior's
10305         symfile_flags.
10306         * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10307         * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10308         inferior.
10309         * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10310         inferior.
10311         (follow_exec): Use inferior's symfile_flags.
10312         * inferior.h (struct inferior) <symfile_flags>: New field.
10313
10314 2012-02-16  Mike Frysinger  <vapier@gentoo.org>
10315
10316         PR gdb/9734:
10317         * remote-sim.c (gdbsim_create_inferior): Call error() when
10318         sim_create_inferior() fails.
10319
10320 2012-02-16  Josh Matthews  <josh@joshmatthews.net>
10321
10322         * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10323
10324 2012-02-16  Tom Tromey  <tromey@redhat.com>
10325
10326         PR c++/13653:
10327         * thread.c (struct current_thread_cleanup) <was_removable>: New
10328         field.
10329         (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10330         (make_cleanup_restore_current_thread): Initialize new field.
10331
10332 2012-02-15  Kevin Buettner  <kevinb@redhat.com>
10333
10334         * MAINTAINERS: Add rl78 to target ISA section.
10335         * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10336         (ALLDEPFILES): Add rl78-tdep.c.
10337         * NEWS: Mention rl78 as a new target.
10338
10339 2012-02-15  Aleksandar Ristovski  <aristovski@qnx.com>
10340
10341         * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10342         data.
10343         * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10344
10345 2012-02-15  Tom Tromey  <tromey@redhat.com>
10346
10347         PR gdb/12659:
10348         * infcmd.c (registers_info): Print just the current register's
10349         name.
10350
10351 2012-02-15  Tom Tromey  <tromey@redhat.com>
10352
10353         * python/py-symbol.c (sympy_value): Use _().
10354
10355 2012-02-15  Pedro Alves  <palves@redhat.com>
10356
10357         * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10358         output to be like native targets'.
10359         (remote_pid_to_str): Special case the null ptid.
10360
10361 2012-02-14  Stan Shebs  <stan@codesourcery.com>
10362
10363         * NEWS: Mention enable count command.
10364         * breakpoint.h (struct breakpoint): New field enable_count.
10365         * breakpoint.c (enable_breakpoint_disp): Add count argument.
10366         (enable_breakpoint): Add arg to call.
10367         (struct disp_data): New struct.
10368         (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
10369         (do_map_enable_once_breakpoint): Create a struct and pass it.
10370         (do_map_enable_delete_breakpoint): Ditto.
10371         (do_map_enable_count_breakpoint): New function.
10372         (enable_count_command): New function.
10373         (bpstat_stop_status): Decrement enable_count.
10374         (print_one_breakpoint_location): Report enable count.
10375         (_initialize_breakpoint): Add enable count command.
10376
10377 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
10378
10379         * rl78-tdep.c (reggroups.h): Include.
10380         (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
10381         (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
10382         (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
10383         (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
10384         (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
10385         (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
10386         (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
10387         (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
10388         (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
10389         (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
10390         (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
10391         (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
10392         (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
10393         (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
10394         (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
10395         (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
10396         beginning of register list.
10397         (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
10398         (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
10399         (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
10400         (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
10401         (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
10402         (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
10403         (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
10404         (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
10405         (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
10406         (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
10407         (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
10408         the pseudo registers.  Rearrange other pseudo registers too so
10409         that the bank registers appear at the end.
10410         (rl78_register_type): Account for the fact that the byte sized
10411         bank registers are now pseudo-registers.
10412         (rl78_register_name): Rearrange the register name array.  Make
10413         initial set of raw banked registers inaccessible.
10414         (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
10415         (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
10416         case for copying bytes back and forth between raw and pseudo
10417         versions of the banked registers.  Update other cases to reflect
10418         the changed names.
10419         (rl78_return_value): Update to account for changed names of
10420         raw registers.
10421         (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
10422         rl78_register_sim_regno().
10423
10424 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
10425
10426         * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
10427         the name parameter being passed to find_pc_partial_function().
10428
10429 2012-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10430
10431         * MAINTAINERS: Step down from being ia64 target maintainer.
10432
10433 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
10434
10435         * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10436         compilation warning.
10437
10438 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
10439
10440         Fix crash on loaded shlibs without loaded exec_bfd.
10441         * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10442         (set_section_command): Replace exec_bfd by p->bfd.
10443
10444 2012-02-10  Tom Tromey  <tromey@redhat.com>
10445
10446         * linespec.c (decode_line_internal): Skip symtabs_from_filename
10447         when we have a C++ qualified name.
10448
10449 2012-02-10  Pedro Alves  <palves@redhat.com>
10450
10451         * inferior.c (inferior_pid_to_str): New.
10452         (print_inferior, inferior_command): Use it.
10453
10454 2012-02-10  Pedro Alves  <palves@redhat.com>
10455
10456         * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10457         the test CFLAGS.
10458         * configure: Regenerate.
10459
10460 2012-02-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10461
10462         * linespec.c (decode_line_internal): Fix comment correctness.
10463
10464 2012-02-09  Valery Khromov  <valery.khromov@gmail.com>
10465
10466         PR gdb/12953
10467         * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10468         * amd64bsd-nat.c: Add support for debug registers (adapted from
10469         i386bsd-nat.c).
10470         [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10471         (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10472         (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10473         (amd64bsd_dr_get_control): New functions.
10474         * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10475         * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10476         [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10477         watchpoints initialization.
10478         * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10479
10480 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
10481
10482         * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10483         flds_bnds.fields.
10484         (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10485
10486 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
10487
10488         * breakpoint.c (bp_location_compare): Fix comment.  Reindent the code.
10489
10490 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
10491
10492         * language.h (symbol_name_cmp_ftype): Renames
10493         symbol_name_match_p_ftype.
10494         (struct language_defn)[la_get_symbol_name_cmp]: Renames
10495         la_get_symbol_name_match_p.
10496         * ada-lang.c (ada_get_symbol_name_cmp): Renames
10497         ada_get_symbol_name_match_p.  Update comment.
10498         (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10499         * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10500         Renames symbol_name_match_p.  Update field type.
10501         (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10502         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10503         opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10504         "la_get_symbol_name_cmp" in comments.
10505         * language.c: Likewise.
10506
10507 2012-02-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10508
10509         * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10510         %eflags offset.
10511         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10512         (amd64_sol2_gregset32_reg_offs): Likewise.
10513
10514 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
10515
10516         * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10517         of the returned BFD is allocated by GDB.
10518
10519 2012-02-07  Tom Tromey  <tromey@redhat.com>
10520
10521         PR python/12027:
10522         * python/python-internal.h (frame_object_type): Declare.
10523         * python/py-symbol.c (sympy_needs_frame): New function.
10524         (sympy_value): New function.
10525         (symbol_object_getset): Add "needs_frame".
10526         (symbol_object_methods): Add "value".
10527         * python/py-frame.c (frame_object_type): No longer static.
10528
10529 2012-02-07  Tom Tromey  <tromey@redhat.com>
10530
10531         PR python/13599:
10532         * python/py-symbol.c (sympy_line): New function.
10533         (symbol_object_getset): Add "line".
10534
10535 2012-02-07  Tom Tromey  <tromey@redhat.com>
10536
10537         * charset.c (find_charset_names): Check 'in' against NULL.
10538
10539 2012-02-06  Doug Evans  <dje@google.com>
10540
10541         * gdbtypes.h (struct main_type): Change type of name,tag_name,
10542         and fields.name members from char * to const char *.  All uses updated.
10543         (struct cplus_struct_type): Change type of fn_fieldlists.name member
10544         from char * to const char *.  All uses updated.
10545         (type_name_no_tag): Update.
10546         (lookup_unsigned_typename, lookup_signed_typename): Update.
10547         * gdbtypes.c (type_name_no_tag): Change result type
10548         from char * to const char *.  All callers updated.
10549         (lookup_unsigned_typename, lookup_signed_typename): Change type of
10550         name parameter from char * to const char *.
10551         * symtab.h (struct cplus_specific): Change type of demangled_name
10552         member from char * to const char *.  All uses updated.
10553         (struct general_symbol_info): Change type of name and
10554         mangled_lang.demangled_name members from char * to const char *.
10555         All uses updated.
10556         (symbol_get_demangled_name, symbol_natural_name): Update.
10557         (symbol_demangled_name, symbol_search_name): Update.
10558         * symtab.c (symbol_get_demangled_name): Change result type
10559         from char * to const char *.  All callers updated.
10560         (symbol_natural_name, symbol_demangled_name): Ditto.
10561         (symbol_search_name): Ditto.
10562         (completion_list_add_name): Change type of symname,sym_text,
10563         text,word parameters from char * to const char *.
10564         (completion_list_objc_symbol): Change type of sym_text,
10565         text,word parameters from char * to const char *.
10566         * ada-lang.c (find_struct_field): Change type of name parameter
10567         from char * to const char *.
10568         (encoded_ordered_before): Similarly for N0,N1 parameters.
10569         (old_renaming_is_invisible): Similarly for function_name parameter.
10570         (ada_type_name): Change result type from char * to const char *.
10571         All callers updated.
10572         * ada-lang.h (ada_type_name): Update.
10573         * buildsym.c (hashname): Change type of name parameter
10574         from char * to const char *.
10575         * buildsym.h (hashname): Update.
10576         * dbxread.c (end_psymtab): Change type of include_list parameter
10577         from char ** to const char **.
10578         * dwarf2read.c (determine_prefix): Change result type
10579         from char * to const char *.  All callers updated.
10580         * f-lang.c (find_common_for_function): Change type of name, funcname
10581         parameters from char * to const char *.
10582         * f-lang.c (find_common_for_function): Update.
10583         * f-valprint.c (list_all_visible_commons): Change type of funcname
10584         parameters from char * to const char *.
10585         * gdbarch.sh (static_transform_name): Change type of name parameter
10586         and result from char * to const char *.
10587         * gdbarch.c: Regenerate.
10588         * gdbarch.h: Regenerate.
10589         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10590         of name parameter from char * to const char *.
10591         * jv-lang.c (java_primitive_type_from_name): Ditto.
10592         (java_demangled_signature_length): Similarly for signature parameter.
10593         (java_demangled_signature_copy): Ditto.
10594         (java_demangle_type_signature): Ditto.
10595         * jv-lang.h (java_primitive_type_from_name): Update.
10596         (java_demangle_type_signature): Update.
10597         * objc-lang.c (specialcmp): Change type of a,b parameters
10598         from char * to const char *.
10599         * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10600         from char * to const char *.  All callers updated.
10601         * p-lang.h (is_pascal_string_type): Update.
10602         * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10603         of name parameter from char * to const char *.
10604         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10605         * utils.c (fprintf_symbol_filtered): Ditto.
10606         * defs.h (fprintf_symbol_filtered): Update.
10607         * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10608         * stabsread.h (end_psymtab): Update.
10609         * stack.c (find_frame_funname): Change type of funname parameter
10610         from char ** to const char **.
10611         * stack.h (find_frame_funname): Update.
10612         * typeprint.c (type_print): Change type of varstring parameter
10613         from char * to const char *.
10614         * value.h (type_print): Update.
10615         * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10616         from char * to const char *.  All callers updated.
10617         (xcoff_end_psymtab): Change type of include_list parameter
10618         from char ** to const char **.  All callers updated.
10619         (swap_sym): Similarly for name parameter.  All callers updated.
10620         * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10621         Use xstrdup.
10622         (process_coff_symbol): Use xstrdup.
10623         * stabsread.c (stabs_method_name_from_physname): Renamed from
10624         update_method_name_from_physname.  Change result type from void
10625         to char *.  All callers updated.
10626         (read_member_functions): In has_destructor case, store name in objfile
10627         obstack instead of malloc space.  In !has_stub case, fix mem leak.
10628
10629 2012-02-06  Luca Pizzamiglio  <luca.pizzamiglio@gmail.com>
10630
10631         * configure: Rebuild.
10632         * configure.ac: Put -L../bfd and -L../libiberty at the front of
10633         LDFLAGS.
10634
10635 2012-02-03  Kevin Buettner  <kevinb@redhat.com>
10636
10637         * configure.tgt (rl78-*-elf): New target.
10638         * rl78-tdep.c: New file.
10639
10640 2012-02-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
10641
10642         * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10643         and continue the loop.  Add QUIT statement.
10644
10645 2012-02-03  Tom Tromey  <tromey@redhat.com>
10646
10647         PR gdb/13596:
10648         * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10649         bfd_lookup_symbol_from_symtab.
10650         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10651         gdb_bfd_lookup_symbol_from_symtab.
10652
10653 2012-02-03  Joel Brobecker  <brobecker@adacore.com>
10654
10655         * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10656         use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10657         symbol.  Add assertion that sym2 is never NULL.
10658
10659 2012-02-02  Doug Evans  <dje@google.com>
10660
10661         * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10662         "name" parameter to const char ** from char **.  All callers updated.
10663         (find_pc_partial_function): Ditto.
10664         (cache_pc_function_name): Change type to const char * from char *.
10665         * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10666         (find_pc_partial_function): Update.
10667         * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10668         type of "name" parameter to const char * from char *.
10669         All uses updated.
10670         * arch-utils.c (generic_in_solib_return_trampoline): Change
10671         type of "name" parameter to const char * from char *.
10672         * arch-utils.h (generic_in_solib_return_trampoline): Update.
10673         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10674         type of "name" parameter to const char * from char *.
10675         * gdbarch.sh (in_solib_return_trampoline): Ditto.
10676         * gdbarch.c: Regenerate.
10677         * gdbarch.h: Regenerate.
10678         * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10679         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10680         * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10681         type of "name" parameter to const char * from char *.
10682         * skip.c (skip_function_pc): Ditto.
10683         * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10684         * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10685         * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10686         * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10687         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10688         * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10689         * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10690         * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10691         * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10692
10693 2012-02-02  Pedro Alves  <palves@redhat.com>
10694
10695         * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10696         the current inferior has no execution.  Make sure the current
10697         remote process matches gdb's current inferior.
10698
10699 2012-02-02  Tom Tromey  <tromey@redhat.com>
10700
10701         PR gdb/13405:
10702         * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10703         read-only memory.
10704
10705 2012-02-02  Tom Tromey  <tromey@redhat.com>
10706
10707         PR gdb/9307:
10708         * symtab.c (lookup_language_this): Set block_found.
10709
10710 2012-02-01  Tom Tromey  <tromey@redhat.com>
10711
10712         PR gdb/13431:
10713         * jit.c (struct jit_inferior_data): Rewrite.
10714         (struct jit_objfile_data): New.
10715         (get_jit_objfile_data): New function.
10716         (add_objfile_entry): Update.
10717         (jit_read_descriptor): Return int.  Replace descriptor_addr
10718         argument with inf_data.  Update.  Don't call error.
10719         (jit_breakpoint_re_set_internal): Reorder logic.  Update.  Look up
10720         descriptor here.
10721         (jit_inferior_init): Don't look up descriptor.  Don't call error.
10722         (jit_reset_inferior_data_and_breakpoints)
10723         (jit_inferior_created_observer): Remove.
10724         (jit_inferior_exit_hook): Update.
10725         (jit_executable_changed_observer): Remove.
10726         (jit_event_handler): Update.
10727         (free_objfile_data): Reset inferior data if needed.
10728         (_initialize_jit): Update.
10729
10730 2012-02-01  Tom Tromey  <tromey@redhat.com>
10731
10732         * jit.c (bfd_open_from_target_memory): Move higher in file.
10733
10734 2012-02-01  Tristan Gingold  <gingold@adacore.com>
10735
10736         * libunwind-frame.c (libunwind_load): Display message if dlopen
10737         failed.
10738
10739 2012-02-01  Gary Benson  <gbenson@redhat.com>
10740
10741         * symtab.h (symbol_found_callback_ftype): New typedef.
10742         (iterate_over_symbols): Use the above.
10743         * symtab.c (iterate_over_symbols): Likewise.
10744         * language.h (language_defn->la_iterate_over_symbols): Likewise.
10745         * ada-lang.c (ada_iterate_over_symbols): Likewise.
10746         * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10747         (iterate_name_matcher): Document return values.
10748         (collect_one_symbol): Likewise.
10749         (collect_function_symbols): Likewise.
10750         (collect_symbols): Likewise.
10751
10752 2012-02-01  Tom Tromey  <tromey@redhat.com>
10753
10754         * ada-lang.c (resolve_subexp): Update.
10755         (ada_lookup_symbol_list): Add 'full_search' argument.
10756         (ada_iterate_over_symbols): Pass 0 as full_search argument to
10757         ada_lookup_symbol_list.
10758         (ada_lookup_encoded_symbol): Update.
10759         (get_var_value): Update.
10760         * ada-exp.y (block_lookup): Update.
10761         (write_var_or_type): Update.
10762         (write_name_assoc): Update.
10763         * ada-lang.h (ada_lookup_symbol_list): Update.
10764
10765 2012-01-31  Tom Tromey  <tromey@redhat.com>
10766
10767         * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10768         comment.
10769
10770 2012-01-31  Doug Evans  <dje@google.com>
10771
10772         * symtab.h: Remove outdated comment.
10773         (SYMBOL_MATCHES_NATURAL_NAME): Delete.
10774
10775 2012-02-01  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
10776
10777         Fix build error in Darwin port.
10778         * i386-darwin-nat.c: Include i386-nat.h.
10779
10780 2012-01-30  Tom Tromey  <tromey@redhat.com>
10781
10782         PR breakpoints/13568:
10783         * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10784         argument.  Check for recursive includes.
10785         (dwarf_decode_macros): Create an include hash.
10786
10787 2012-01-30  Michael Eager  <eager@eagercon.com>
10788
10789         * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10790         * ppc-linux-tdep.c: Include glibc-tdep.h.
10791         (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
10792         (powerpc_linux_in_plt_stub): New function.
10793         (powerpc_linux_in_dynsym_resolve_code): New function.
10794         (ppc_skip_trampoline_code): New function.
10795         (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10796         Use glibc_skip_solib_resolver.
10797
10798 2012-01-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
10799
10800         Code cleanup: Make 1440 bytes of data segment read-only.
10801         * arch-utils.c (endian_enum): Make it const char *const [].
10802         * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10803         Likewise.
10804         * breakpoint.c (always_inserted_enums): Likewise.
10805         * cli/cli-cmds.c (script_ext_enums): Likewise.
10806         * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10807         enumlist parameter const char *const *.
10808         * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10809         const char *const *.
10810         * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10811         parameter const char *const *.
10812         * cris-tdep.c (cris_modes): Make it const char *const [].
10813         * filesystem.c (target_file_system_kinds): Likewise.
10814         * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10815         * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10816         (can_use_displaced_stepping_enum, scheduler_enums)
10817         (exec_direction_names): Likewise.
10818         * language.c (_initialize_language): Make the type_or_range_names and
10819         case_sensitive_names variables const char *const [].
10820         * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10821         * python/python.c (python_excp_enums): Likewise.
10822         * remote.c (interrupt_sequence_modes): Likewise.
10823         * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10824         * serial.c (logbase_enums): Likewise.
10825         * sh-tdep.c (sh_cc_enum): Likewise.
10826         * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10827         Likewise.
10828         * symtab.c (multiple_symbols_modes): Likewise.
10829         * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10830         Likewise.
10831         * utils.c (internal_problem_modes): Likewise.
10832
10833 2012-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
10834
10835         Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10836         * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10837         result.
10838
10839 2012-01-27  Doug Evans  <dje@google.com>
10840
10841         * configure.ac (with_python): Fix absolute path handling for win32.
10842         * configure: Regenerate.
10843
10844 2012-01-26  Doug Evans  <dje@google.com>
10845
10846         * symtab.c: Whitespace cleanup, no code changes.
10847
10848         * symtab.c (lookup_symbol_in_language): Improve comment.
10849         (lookup_symbol_aux): Fix comment.
10850
10851         * psymtab.c (add_psymbol_to_list): Result is now "void".
10852         * psympriv.h (add_psymbol_to_list): Update.
10853
10854         * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10855
10856 2012-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10857
10858         Do not open script filenames twice.
10859         * cli/cli-cmds.c (source_script_from_stream): Pass to
10860         source_python_script also STREAM.
10861         * python/py-auto-load.c (source_section_scripts): Pass to
10862         source_python_script_for_objfile also STREAM.
10863         (auto_load_objfile_script): Pass to source_python_script_for_objfile
10864         also INPUT.
10865         * python/python-internal.h (source_python_script_for_objfile): New
10866         parameter file, rename parameter file to filename.
10867         * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10868         instead if !_WIN32.  Update the function comment.
10869         (source_python_script, source_python_script_for_objfile)
10870         (source_python_script): New parameter file, rename parameter file to
10871         filename.  Pass FILENAME to python_run_simple_file.
10872         * python/python.h (source_python_script): New parameter file, rename
10873         parameter file to filename.
10874
10875 2012-01-26  Pedro Alves  <palves@redhat.com>
10876
10877         * corelow.c (core_has_fake_pid): Delete.
10878         (core_close): Delete references to `core_has_fake_pid'.
10879         (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10880         (core_open): Delete references to `core_has_fake_pid'.
10881         (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10882         the removed global.
10883
10884 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
10885
10886         * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10887         Remove language parameter from name_matcher.  Adjust the comment.
10888         * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10889         Remove language parameter.
10890         * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10891         * linespec.c (iterate_name_matcher): Likewise.
10892         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10893         name_matcher.  Adjust call accordingly.
10894         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10895         (maintenance_check_symtabs): Adjust type of parameter "fun".
10896         * psymtab.h (maintenance_check_symtabs): Likewise.
10897
10898 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
10899
10900         * language.h (symbol_name_match_p_ftype): New typedef.
10901         (struct language_defn): Replace field la_symbol_name_compare
10902         by la_get_symbol_name_match_p.
10903         * ada-lang.c (ada_get_symbol_name_match_p): New function.
10904         (ada_language_defn): Use it.
10905         * linespec.c (struct symbol_matcher_data): New type.
10906         (iterate_name_matcher): Rewrite.
10907         (iterate_over_all_matching_symtabs): Pass a pointer to
10908         a symbol_matcher_data struct to expand_symtabs_matching
10909         instead of just the lookup name.
10910         * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10911         opencl-lang.c, p-lang.c, language.c: Delete field
10912         la_symbol_name_compare, and replace by NULL for new field
10913         la_get_symbol_name_match_p.
10914         * symfile.h (struct quick_symbol_functions): Update comment.
10915
10916 2012-01-25  Tom Tromey  <tromey@redhat.com>
10917
10918         * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10919         dereferencing.
10920
10921 2012-01-24  Tom Tromey  <tromey@redhat.com>
10922
10923         PR symtab/12406:
10924         * solib.c (update_solib_list): Update the program space's
10925         added_solibs and deleted_solibs fields.
10926         * progspace.h (struct program_space) <added_solibs,
10927         deleted_solibs>: New fields.
10928         (clear_program_space_solib_cache): Declare.
10929         * progspace.c (release_program_space): Call
10930         clear_program_space_solib_cache.
10931         (clear_program_space_solib_cache): New function.
10932         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10933         bpstat_stop_status.  Use handle_solib_event.
10934         * breakpoint.c: Include gdb_regex.h.
10935         (print_solib_event): New function.
10936         (bpstat_print): Use print_solib_event.
10937         (bpstat_stop_status): Add special case for bp_shlib_event.
10938         (handle_solib_event): New function.
10939         (bpstat_what): Use handle_solib_event.
10940         (struct solib_catchpoint): New.
10941         (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10942         (breakpoint_hit_catch_solib, check_status_catch_solib)
10943         (print_it_catch_solib, print_one_catch_solib)
10944         (print_mention_catch_solib, print_recreate_catch_solib): New
10945         functions.
10946         (catch_solib_breakpoint_ops): New global.
10947         (catch_load_or_unload, catch_load_command_1)
10948         (catch_unload_command_1): New functions.
10949         (internal_bkpt_check_status): Add special case for
10950         bp_shlib_event.
10951         (internal_bkpt_print_it): Use print_solib_event.
10952         (initialize_breakpoint_ops): Initialize
10953         catch_solib_breakpoint_ops.
10954         (_initialize_breakpoint): Register "catch load" and "catch
10955         unload".
10956         * breakpoint.h (handle_solib_event): Declare.
10957         * NEWS: Add entry for "catch load" and "catch unload".
10958
10959 2012-01-24  Tom Tromey  <tromey@redhat.com>
10960
10961         * ada-lang.c: Include gdb_vecs.h.
10962         * charset.c: Include gdb_vecs.h.
10963         * tracepoint.h: Include gdb_vecs.h.
10964         * gdb_vecs.h: New file.
10965
10966 2012-01-24  Pedro Alves  <pedro@codesourcery.com>
10967
10968         * breakpoint.c (breakpoint_hit_catch_fork)
10969         (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10970         (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10971         * infrun.c (inferior_has_forked, inferior_has_vforked)
10972         (inferior_has_execd, inferior_has_called_syscall): Delete.
10973         (handle_syscall_event): Get syscall_number from the execution
10974         control state's wait status.
10975         (wait_for_inferior): Don't clear syscall_number.
10976
10977 2012-01-24  Pedro Alves  <palves@redhat.com>
10978
10979         * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10980         pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10981         (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10982         (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10983         `ws' parameter.
10984         (breakpoint_hit_ranged_breakpoint): Add `ws' parameter.  Return
10985         false for events other than TARGET_SIGNAL_TRAP.
10986         (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10987         Add `ws' parameter.
10988         (bkpt_breakpoint_hit): Add `ws' parameter.  Return false for
10989         events other than TARGET_SIGNAL_TRAP.
10990         (tracepoint_breakpoint_hit): Add `ws' parameter.
10991         * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10992         parameter.
10993         (bpstat_stop_status): Same.
10994         (pc_at_non_inline_function): Same.
10995         * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10996         to pass the current event's waitstatus to bpstat_stop_status
10997         and pc_at_non_inline_function.
10998
10999 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
11000
11001         Code cleanup.
11002         * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11003         Update the function comment for it.
11004         (source_script_with_search): Call make_cleanup_fclose for STREAM.
11005         * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11006         for STREAM.
11007
11008 2012-01-24  Pedro Alves  <palves@redhat.com>
11009
11010         * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11011         outside `bs->stop' block.
11012         (bpstat_what): Rework bp_shlib_event handling.
11013         (internal_bkpt_check_status): If the breakpoint is a
11014         bp_shlib_event, then set bs->stop and bs->print if
11015         stop_on_solib_events is set.
11016
11017 2012-01-24  Gary Benson  <gbenson@redhat.com>
11018
11019         Delete #if 0'd out code.
11020         * stack.c (print_frame_label_vars): Remove.
11021         (catch_info): Likewise.
11022         (_initialize_stack): Remove "info catch" command.
11023         * NEWS: Mention the above.
11024
11025 2012-01-24  Pedro Alves  <palves@redhat.com>
11026
11027         * remote.c (remote_add_inferior): New `fake_pid_p' parameter.  Use
11028         it.
11029         (remote_notice_new_inferior): If the remote end doesn't support
11030         the multiprocess extensions, then the PID is fake.
11031         (add_current_inferior_and_thread): New.
11032         (remote_start_remote): Use it.
11033         (extended_remote_attach_1): Adjust.
11034         (extended_remote_create_inferior_1): Use
11035         add_current_inferior_and_thread.
11036
11037 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
11038
11039         Fix watchpoints to be specific for each inferior.
11040         * breakpoint.c (watchpoint_in_thread_scope): Verify also
11041         current_program_space.
11042         * i386-nat.c (i386_inferior_data_cleanup): New.
11043         (i386_inferior_data_get): Replace variable inf_data_local by an
11044         inferior_data call.
11045         (i386_use_watchpoints): Initialize i386_inferior_data.
11046         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11047         specific iterate_over_lwps.
11048
11049 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
11050
11051         Fix watchpoints across inferior fork.
11052         * amd64-linux-nat.c (update_debug_registers_callback): Update the
11053         comment for linux_nat_iterate_watchpoint_lwps.
11054         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11055         linux_nat_iterate_watchpoint_lwps.
11056         (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11057         * i386-linux-nat.c (update_debug_registers_callback): Update the
11058         comment for linux_nat_iterate_watchpoint_lwps.
11059         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11060         linux_nat_iterate_watchpoint_lwps.
11061         (i386_linux_prepare_to_resume): New comment on Linux kernel.
11062         * i386-nat.c: Include inferior.h.
11063         (dr_mirror): Remove.
11064         (i386_inferior_data, struct i386_inferior_data)
11065         (i386_inferior_data_get): New.
11066         (i386_debug_reg_state): Use i386_inferior_data_get.
11067         (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11068         (i386_insert_watchpoint, i386_remove_watchpoint)
11069         (i386_stopped_data_address, i386_insert_hw_breakpoint)
11070         (i386_remove_hw_breakpoint): New variable state, use
11071         i386_debug_reg_state instead of DR_MIRROR.
11072         * linux-nat.c (delete_lwp): New declaration.
11073         (num_lwps): Move here from downwards.
11074         (delete_lwp_cleanup): New.
11075         (linux_child_follow_fork): Create new child_lp, call
11076         linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11077         PTRACE_DETACH.
11078         (num_lwps): Move upwards.
11079         (linux_nat_iterate_watchpoint_lwps): New.
11080         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11081         (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11082
11083 2012-01-24  Joel Brobecker  <brobecker@adacore.com>
11084
11085         GDB 7.4 released.
11086
11087 2012-01-23  Pedro Alves  <palves@redhat.com>
11088
11089         * top.c (caution): Rename to ...
11090         (confirm): ... this.
11091         (show_caution): Rename to ...
11092         (show_confirm): ... this.
11093         (quit_cover): Adjust.
11094         (init_main): Adjust.
11095         * top.h (caution): Rename to ...
11096         (confirm): ... this.
11097         * utils.c (internal_vproblem, defaulted_query): Adjust.
11098
11099 2012-01-23  Pedro Alves  <palves@redhat.com>
11100
11101         * top.c (caution): Update comment.
11102         (execute_command): Don't consider the current value of `caution'.
11103
11104 2012-01-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
11105
11106         * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11107
11108 2012-01-23  Ulrich Weigand  <ulrich.weigand@linaro.org>
11109
11110         * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11111         * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11112         * target.c (target_fileio_pwrite): Remove buffer address from
11113         debug output.
11114         (target_fileio_pread): Likewise.
11115
11116 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
11117
11118         * NEWS: Document remote "info proc" and "generate-core-file".
11119
11120 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
11121
11122         * gdbarch.sh (find_memory_regions): New callback.
11123         * gdbarch.c, gdbarch.h: Regenerate.
11124
11125         * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11126         callback before falling back to target method.
11127
11128         * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11129         (linux_target_install_ops): No longer install it.
11130
11131         * linux-tdep.c (linux_find_memory_regions): New function.
11132         (linux_init_abi): Install it.
11133
11134 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
11135
11136         * gdbarch.sh (make_corefile_notes): New architecture callback.
11137         * gdbarch.c: Regenerate.
11138         * gdbarch.h: Likewise.
11139
11140         * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11141         before target_make_corefile_notes.  If NULL is returned, the
11142         target does not support core file generation.
11143
11144         * linux-nat.c: Include "linux-tdep.h".
11145         (find_signalled_thread, find_stop_signal): Remove.
11146         (linux_nat_do_thread_registers): Likewise.
11147         (struct linux_nat_corefile_thread_data): Likewise.
11148         (linux_nat_corefile_thread_callback): Likewise.
11149         (iterate_over_spus): Likewise.
11150         (struct linux_spu_corefile_data): Likewise.
11151         (linux_spu_corefile_callback): Likewise.
11152         (linux_spu_make_corefile_notes): Likewise.
11153         (linux_nat_collect_thread_registers): New function.
11154         (linux_nat_make_corefile_notes): Replace contents by call to
11155         linux_make_corefile_notes passing linux_nat_collect_thread_registers
11156         as native-only callback.
11157
11158         * linux-tdep.h: Include "bfd.h".
11159         (struct regcache): Add forward declaration.
11160         (linux_collect_thread_registers_ftype): New typedef.
11161         (linux_make_corefile_notes): Add prototype.
11162         * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11163         "regset.h", and "elf-bfd.h".
11164         (find_signalled_thread, find_stop_signal): New functions.
11165         (linux_spu_make_corefile_notes): Likewise.
11166         (linux_collect_thread_registers): Likewise.
11167         (struct linux_corefile_thread_data): New data structure.
11168         (linux_corefile_thread_callback): New funcion.
11169         (linux_make_corefile_notes): Likewise.
11170         (linux_make_corefile_notes_1): Likewise.
11171         (linux_init_abi): Install it.
11172
11173 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
11174
11175         * gdbarch.sh (info_proc): New callback.
11176         * gdbarch.c, gdbarch.h: Regenerate.
11177
11178         * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11179         before falling back to the target info_proc callback.
11180
11181         * linux-nat.c: Do not include "cli/cli-utils.h".
11182         (linux_nat_info_proc): Remove.
11183         (linux_target_install_ops): No longer install it.
11184
11185         * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11186         (read_mapping): New function.
11187         (linux_info_proc): Likewise.
11188         (linux_init_abi): Install it.
11189
11190 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
11191
11192         * defs.h (enum info_proc_what): Moved here from linux-nat.c
11193         * infcmd.c: (info_proc_cmd_1): New function.
11194         (info_proc_cmd): New function, moved here from equivalent routine
11195         orignally in linux-nat.c.
11196         (info_proc_cmd_mappings): Likewise.
11197         (info_proc_cmd_stat): Likewise.
11198         (info_proc_cmd_status): Likewise.
11199         (info_proc_cmd_cwd): Likewise.
11200         (info_proc_cmd_cmdline): Likewise.
11201         (info_proc_cmd_exe): Likewise.
11202         (info_proc_cmd_all): Likewise.
11203         (_initialize_infcmd): Install "info proc" command and subcommands.
11204
11205         * target.h (struct target_ops): Add to_info_proc.
11206         (target_info_proc): Add prototype.
11207         * target.c (target_info_proc): New function.
11208
11209         * procfs.c (procfs_info_proc): Add prototype.
11210         (info_proc_cmd): Rename into ...
11211         (procfs_info_proc): ... this.  Update argument types as appropriate
11212         for a to_info_proc implementation.  Handle "what" argument.
11213         (procfs_target): Install procfs_info_proc.
11214         (_initialize_procfs): No longer install "info proc" command.
11215
11216         * linux-nat.c: (enum info_proc_what): Remove.
11217         (linux_nat_info_proc_cmd_1): Rename into ...
11218         (linux_nat_info_proc): ... this.  Update argument types as appropriate
11219         for a to_info_proc implementation.
11220         (linux_nat_info_proc_cmd): Remove.
11221         (linux_nat_info_proc_cmd_mappings): Likewise.
11222         (linux_nat_info_proc_cmd_stat): Likewise.
11223         (linux_nat_info_proc_cmd_status): Likewise.
11224         (linux_nat_info_proc_cmd_cwd): Likewise.
11225         (linux_nat_info_proc_cmd_cmdline): Likewise.
11226         (linux_nat_info_proc_cmd_exe): Likewise.
11227         (linux_nat_info_proc_cmd_all): Likewise.
11228         (linux_target_install_ops): Install linux_nat_info_proc.
11229         (_initialize_linux_nat): No longer install "info proc" command
11230         and subcommands.
11231
11232 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
11233
11234         * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11235         * config.in, configure: Regenerate.
11236
11237         * target.h (struct target_ops): Add to_fileio_readlink.
11238         (target_fileio_readlink): Add prototype.
11239         * target.c (target_fileio_readlink): New function.
11240
11241         * inf-child.c: Conditionally include <sys/param.h>.
11242         (inf_child_fileio_readlink): New function.
11243         (inf_child_target): Install it.
11244
11245         * remote.c (PACKET_vFile_readlink): New enum value.
11246         (remote_hostio_readlink): New function.
11247         (init_remote_ops): Install it.
11248         (_initialize_remote): Handle vFile:readlink packet type.
11249
11250 2012-01-20  Pedro Alves  <palves@redhat.com>
11251             Ulrich Weigand  <ulrich.weigand@linaro.org>
11252
11253         * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11254         * config.in, configure: Regenerate.
11255
11256         * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11257         to_fileio_pread, to_fileio_close, to_fileio_unlink.
11258         (target_fileio_open): Add prototype.
11259         (target_fileio_pwrite): Likewise.
11260         (target_fileio_pread): Likewise.
11261         (target_fileio_close): Likewise.
11262         (target_fileio_unlink): Likewise.
11263         (target_fileio_read_alloc): Likewise.
11264         (target_fileio_read_stralloc): Likewise.
11265
11266         * target.c: Include "gdb/fileio.h".
11267         (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11268         (default_fileio_target): New function.
11269         (target_fileio_open): Likewise.
11270         (target_fileio_pwrite): Likewise.
11271         (target_fileio_pread): Likewise.
11272         (target_fileio_close): Likewise.
11273         (target_fileio_unlink): Likewise.
11274         (target_fileio_close_cleanup): Likewise.
11275         (target_fileio_read_alloc_1): Likewise.
11276         (target_fileio_read_alloc): Likewise.
11277         (target_fileio_read_stralloc): Likewise.
11278
11279         * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11280         <fcntl.h>, and <unistd.h>.
11281         (inf_child_fileio_open_flags_to_host): New function.
11282         (inf_child_errno_to_fileio_error): Likewise.
11283         (inf_child_fileio_open): Likewise.
11284         (inf_child_fileio_pwrite): Likewise.
11285         (inf_child_fileio_pread): Likewise.
11286         (inf_child_fileio_close): Likewise.
11287         (inf_child_fileio_unlink): Likewise.
11288         (inf_child_target): Install to_fileio routines.
11289
11290         * remote.c (init_remote_ops): Install to_fileio routines.
11291
11292 2012-01-20  Pedro Alves  <palves@redhat.com>
11293             Ulrich Weigand  <ulrich.weigand@linaro.org>
11294
11295         * remote.c (remote_multi_process_p): Only check for multi-process
11296         protocol feature, do not check for extended protocol.
11297         (remote_supports_multi_process): Check for extended protocol here.
11298         (set_general_process): Likewise.
11299         (extended_remote_kill): Likewise.
11300         (remote_pid_to_str): Likewise.
11301         (remote_query_supported): Always query multiprocess mode.
11302
11303 2012-01-20  Pedro Alves  <palves@redhat.com>
11304             Ulrich Weigand  <ulrich.weigand@linaro.org>
11305
11306         * inferior.h (struct inferior): Add fake_pid_p.
11307         * inferior.c (exit_inferior_1): Clear fake_pid_p.
11308         * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11309         magic_null_ptid since the remote side doesn't provide a real PID.
11310
11311 2012-01-19  Tom Tromey  <tromey@redhat.com>
11312
11313         * NEWS: Combine the two Python sections.
11314
11315 2012-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
11316
11317         * target.h (target_close): Update comment on the target's unpush state.
11318
11319 2012-01-19  Pedro Alves  <palves@redhat.com>
11320
11321         * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11322         linux_nat_async directly instead of going through the target
11323         vector.
11324         * target.c (unpush_target): Close target after unpushing it, not
11325         before.
11326
11327 2012-01-19  Gary Benson  <gbenson@redhat.com>
11328
11329         * mdebugread.c (sort_blocks): Replace integer constants with ones
11330         derived from FIRST_LOCAL_BLOCK.
11331
11332 2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
11333             Jan Kratochvil  <jan.kratochvil@redhat.com>
11334
11335         PR gdb/9538
11336         * symfile.c (find_separate_debug_file): New function.
11337         (terminate_after_last_dir_separator): Likewise.
11338         (find_separate_debug_file_by_debuglink): Also try realpath.
11339         * configure.ac (AC_CHECK_FUNCS): Add lstat.
11340         * configure: Regenerate.
11341         * config.in: Regenerate.
11342
11343 2012-01-18  Doug Evans  <dje@google.com>
11344
11345         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11346         (main.o): Remove rule.
11347         * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11348         (--with-sysroot): Rewrite.
11349         * configure: Regenerate.
11350         * config.in: Regenerate.
11351
11352 2012-01-18  Sergio Durigan Junior  <sergiodj@redhat.com>
11353
11354         * parse.c (initialize_expout): New function.
11355         (reallocate_expout): Likewise.
11356         (parse_exp_in_context): Use `initialize_expout' and
11357         `reallocate_expout' when appropriate.
11358
11359 2012-01-18  Pedro Alves  <palves@redhat.com>
11360
11361         * record.c (struct record_breakpoint, record_breakpoint_p)
11362         (record_breakpoints): New.
11363         (record_insert_breakpoint, record_remove_breakpoint): Manage
11364         record breakpoints list.  Only remove breakpoints from the
11365         inferior if they had been inserted there in the first place.
11366
11367 2012-01-17  Doug Evans  <dje@google.com>
11368
11369         * linespec.c (decode_line_internal): Don't call symtabs_from_filename
11370         if we know we don't have a file name to look for.
11371
11372 2012-01-17  Pedro Alves  <palves@redhat.com>
11373
11374         * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
11375         the frame's stop reason is UNWIND_UNAVAILABLE.
11376
11377 2012-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
11378
11379         Fix compilation error.
11380         * m2-exp.y (yyerror): Use ANSI C prototype.
11381
11382 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
11383
11384         * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
11385         (growbuf_by_size): Likewise.
11386         (yyerror): Likewise.
11387         * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
11388         (modblock): Remove variable (was #if 0'ed).
11389         (parse_number): Convert prototype from K&R to ANSI C.
11390         (yyerror): Likewise.
11391         * objc-exp.y (parse_number): Likewise.
11392         (yyerror): Likewise.
11393         (yylex): Remove #if 0'ed code.
11394         * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
11395         (yyerror): Likewise.
11396
11397 2012-01-16  Tom Tromey  <tromey@redhat.com>
11398
11399         * NEWS: Add item.
11400         * symtab.h (compare_filenames_for_search): Declare.
11401         * symtab.c (compare_filenames_for_search): New function.
11402         (iterate_over_some_symtabs): Use it.
11403         * symfile.h (struct quick_symbol_functions)
11404         <map_symtabs_matching_filename>: Change spec.
11405         * psymtab.c (partial_map_symtabs_matching_filename): Use
11406         compare_filenames_for_search.  Update for new spec.
11407         * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
11408         compare_filenames_for_search.  Update for new spec.
11409         * breakpoint.c (clear_command): Use compare_filenames_for_search.
11410
11411 2012-01-16  Tom Tromey  <tromey@redhat.com>
11412
11413         PR python/13281:
11414         * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
11415         (struct main_type) <flag_flag_enum>: New field.
11416         * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
11417         * NEWS: Add entries.
11418         * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
11419         enums.
11420         * python/lib/gdb/printing.py (_EnumInstance): New class.
11421         (FlagEnumerationPrinter): Likewise.
11422
11423 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
11424
11425         * breakpoint.c (create_sals_from_address_default): New function.
11426         (create_breakpoints_sal_default): Likewise.
11427         (decode_linespec_default): Likewise.
11428         (is_marker_spec): Removed.
11429         (strace_marker_p): New function.
11430         (init_breakpoint_sal): Using `strace_marker_p' instead of
11431         `is_marker_spec'.
11432         (create_breakpoint): Call method `create_sals_from_address' from
11433         breakpoint_ops, replacing code that created SALs conditionally
11434         on the type of the breakpoint.  Call method `create_breakpoints_sal',
11435         replacing code that created breakpoints conditionally on the type
11436         wanted.
11437         (base_breakpoint_create_sals_from_address): New function.
11438         (base_breakpoint_create_breakpoints_sal): Likewise.
11439         (base_breakpoint_decode_linespec): Likewise.
11440         (base_breakpoint_ops): Add methods
11441         `base_breakpoint_create_sals_from_address',
11442         `base_breakpoint_create_breakpoints_sal' and
11443         `base_breakpoint_decode_linespec'.
11444         (bkpt_create_sals_from_address): New function.
11445         (bkpt_create_breakpoints_sal): Likewise.
11446         (bkpt_decode_linespec): Likewise.
11447         (tracepoint_create_sals_from_address): Likewise.
11448         (tracepoint_create_breakpoints_sal): Likewise.
11449         (tracepoint_decode_linespec): Likewise.
11450         (strace_marker_create_sals_from_address): Likewise.
11451         (strace_marker_create_breakpoints_sal): Likewise.
11452         (strace_marker_decode_linespec): Likewise.
11453         (strace_marker_breakpoint_ops): New variable.
11454         (addr_string_to_sals): Remove `marker_spec'.  Call method
11455         `decode_linespec' from breakpoint_ops, replacing code that decoded
11456         an address string into a SAL.  Use `strace_marker_p' instead of
11457         `marker_spec'.
11458         (strace_command): Decide whether we are dealing with a static
11459         tracepoint with marker or not.  Use the appropriate breakpoint_ops.
11460         (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11461         * breakpoint.h (linespec_result, linespec_sals): New forward
11462         declarations.
11463         (breakpoint_ops) <create_sals_from_address>,
11464         <create_breakpoints_sal>, <decode_linespec>: New methods.
11465
11466 2012-01-14  Doug Evans  <dje@google.com>
11467
11468         * NEWS: Update text for "maint set python print-stack".
11469         It is deprecated in gdb 7.4 and deleted in 7.5.
11470
11471 2012-01-13  Eli Zaretskii  <eliz@gnu.org>
11472
11473         * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11474         including curses.h.
11475
11476 2012-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
11477
11478         * configure: Regenerate.
11479         * config.in: Regenerate.
11480
11481 2012-01-12  Keith Seitz  <keiths@redhat.com>
11482
11483         PR mi/10586
11484         * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11485         (ANONYMOUS_UNION_NAME): Define.
11486         (is_path_expr_parent): New function.
11487         (get_path_expr_parent): New function.
11488         (is_anonymous_child): New function.
11489         (create_child_with_value): If the child is anonymous and without
11490         a name, assign an object name to it.
11491         (c_describe_child): Use get_path_expr_parent to determine
11492         the parent expression.
11493         If there field represents an anonymous struct or union and
11494         has no name, set an appropriate display name and expression.
11495         (cplus_describe_child): Likewise.
11496
11497 2012-01-12  Pedro Alves  <palves@redhat.com>
11498
11499         * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11500         available when %ebp is found to be zero (outermost).
11501
11502 2012-01-11  Andreas Tobler  <andreast@fgznet.ch>
11503
11504         * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11505         an internal gdb_static_assert.
11506         * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11507
11508 2012-01-11  Tom Tromey  <tromey@redhat.com>
11509
11510         PR gdb/9598:
11511         * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11512         catch" and "catch throw".
11513
11514 2012-01-11  Paul Hilfinger  <hilfingr@adacore.com>
11515
11516         * blockframe.c (block_innermost_frame): Start search from selected
11517         frame, if present, or otherwise the current frame.
11518
11519         * c-exp.y (variable): Update innermost_block for
11520         'block COLONCOLON NAME' clause.
11521         * m2-exp.y (variable): Ditto.
11522         * objc-exp.y (variable): Ditto.
11523
11524 2012-01-10  Tom Tromey  <tromey@redhat.com>
11525
11526         PR python/13199:
11527         * python/python.c (finish_python_initialization): Set sys.argv.
11528
11529 2012-01-10  Doug Evans  <dje@google.com>
11530
11531         * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd".  New arg
11532         "want_line_info".  All callers updated.
11533         (dwarf_decode_lines_1): New function.
11534         (handle_DW_AT_stmt_list): Add function comment.
11535         New arg "want_line_info".  All callers updated.
11536         (read_file_scope,read_type_unit_scope): Move comment from
11537         handle_DW_AT_stmt_list to here.
11538
11539 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
11540
11541         Fix regression after libiberty/ update for GCC PR 6057 and others.
11542         * c-exp.y (operator) <OPERATOR DELETE>
11543         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11544         * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11545         (make_builtin_type, make_name): New variable i, add gdb_assert.
11546         (operator) <OPERATOR NEW>: Update ARGS to 3.
11547         (operator) <OPERATOR DELETE>: Add trailing space.
11548         (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11549         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11550         * cp-support.c (cp_canonicalize_string): Check NULL from
11551         cp_comp_to_string, call warning and return.
11552
11553 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
11554
11555         Fix duplicate .o files after omitting libbfd.a.
11556         * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11557         (SFILES): Add corelow.c.
11558         (COMMON_OBS): Add corelow.o.
11559         (ALLDEPFILES): Remove corelow.c.
11560         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11561         * config/alpha/alpha-osf3.mh: Likewise.
11562         * config/alpha/fbsd.mh: Likewise.
11563         * config/arm/nbsdaout.mh: Likewise.
11564         * config/arm/nbsdelf.mh: Likewise.
11565         * config/i386/i386gnu.mh: Likewise.
11566         * config/ia64/hpux.mh: Likewise.
11567         * config/ia64/linux.mh: Likewise.
11568         * config/m32r/linux.mh: Likewise.
11569         * config/m68k/linux.mh: Likewise.
11570         * config/mips/irix5.mh: Likewise.
11571         * config/mips/irix6.mh: Likewise.
11572         * config/pa/hpux.mh: Likewise.
11573         * config/pa/linux.mh: Likewise.
11574         * config/powerpc/aix.mh: Likewise.
11575         * config/sparc/linux.mh: Likewise.
11576         * config/sparc/linux64.mh: Likewise.
11577         * config/sparc/sol2.mh: Likewise.
11578         * config/vax/vax.mh: Likewise.
11579         * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11580         (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11581         (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11582         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11583         (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11584         (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11585         (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11586         (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11587         (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11588         (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11589         (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11590         (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11591         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11592         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11593         (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11594         (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11595         (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11596         (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11597         (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11598         (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11599         (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11600         (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11601         corelow.o from gdb_target_obs.
11602         * corefile.c (core_target): Update the comment on NULL value.
11603         (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11604         * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11605         MATCHES.  Drop YUMMY set on NULL.
11606         (core_close): Do not call exit_inferior_silent on zero PID.  Do not
11607         reclaim CORE_DATA if it is already NULL.
11608
11609 2012-01-09  Doug Evans  <dje@google.com>
11610
11611         * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11612         * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11613
11614 2012-01-09  Keith Seitz  <keiths@redhat.com>
11615
11616         * breakpoint.c (wrapper.h): Don't include.
11617
11618 2012-01-09  Keith Seitz  <keiths@redhat.com>
11619
11620         * Makefile.in (SFILES): Remove wrapper.c.
11621         (HFILES_NO_SRCDIR): Remove wrapper.h.
11622         (COMMON_OBS): Remove wrapper.o.
11623         * cli/cli-interp.c: Don't inlude wrapper.h.
11624         * corelow.c: Likewise.
11625         (core_open): Replace gdb_target_find_new_threads with
11626         TRY_CATCH around target_find_new_threads.
11627         * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11628         * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11629         * varobj.c (varobj_create): Likewise for parse_exp_1 and
11630         evaluate_expression.
11631         (varobj_set_value): Likewise for evaluate_expression and
11632         value_assign.
11633         (install_new_variable): Likewise for value_fetch_lazy.
11634         (adjust_value_for_child_access): Likewise for value_ind.
11635         (c_describe_child): Likewise for value_subscript and
11636         value_ind.
11637         (c_value_of_root): Likewise for evaluate_expression.
11638         * wrapper.c: Remove.
11639         * wrapper.h: Remove.
11640
11641 2012-01-09  Doug Evans  <dje@google.com>
11642
11643         * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11644         partial_read_comp_unit_head.  Replace "buffer", "buffer_size" and
11645         "abfd" args with "section".  All callers updated.
11646         Error checking code moved ...
11647         (error_check_comp_unit_head): ... here.  New function.
11648         (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11649         Delete arg "abfd".  New arg "type_offset".  All callers updated.
11650         (create_debug_types_hash_table): Simplify by using
11651         read_and_check_type_unit_head.
11652
11653         * parser-defs.h (namecopy): Delete.
11654         * parse.c (namecopy, namecopy_size): Move into copy_name.
11655
11656 2012-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
11657
11658         Partially fix duplicate .o files after omitting libbfd.a.
11659         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11660         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11661         * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11662         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11663         * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11664         * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11665         * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11666
11667 2012-01-09  Pedro Alves  <palves@redhat.com>
11668
11669         * MAINTAINERS: Update my email address.
11670
11671 2012-01-08  Doug Evans  <dje@google.com>
11672
11673         * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11674         n_type_units.  Rename type_comp_units to all_type_units.
11675         All uses updated.
11676         (add_signatured_type_cu_to_table): Renamed from
11677         add_signatured_type_cu_to_list.  All callers updated.
11678
11679         * gdbtypes.h (struct cplus_struct_type): Delete member
11680         nfn_fields_total.  All uses removed.
11681
11682 2012-01-06  Doug Evans  <dje@google.com>
11683
11684         * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11685         to top of file.
11686         (dwarf2_find_comp_unit): Delete.
11687         (process_psymtab_comp_unit): Make result "void".
11688         Delete args buffer, info_ptr, buffer_size, and replace with
11689         "section".  All callers updated.
11690         (dwarf2_build_psymtabs_hard): Simplify.
11691
11692 2012-01-06  Sergio Durigan Junior  <sergiodj@redhat.com>
11693             Thiago Jung Bauermann  <bauerman@br.ibm.com>
11694
11695         * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11696         before `struct gdb_exception'.
11697         * breakpoint.c (update_global_location_list_nothrow)
11698         (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11699         * cp-abi.c (value_rtti_type): Likewise.
11700         * cp-support.c (cp_validate_operator): Likewise.
11701         * infrun.c (insert_exception_resume_breakpoint)
11702         (check_exception_resume, keep_going): Likewise.
11703         * mi-interp.c (mi_breakpoint_created)
11704         (mi_breakpoint_modified): Likewise.
11705         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11706         * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11707         (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11708
11709 2012-01-05  Doug Evans  <dje@google.com>
11710
11711         * dwarf2read.c (statement_prologue): Delete, unused.
11712
11713         * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11714         * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11715
11716         * dwarf2read.c (comp_unit_header): Delete, unused.
11717
11718 2012-01-05  Ulrich Weigand  <uweigand@de.ibm.com>
11719
11720         * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11721         * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11722
11723 2012-01-05  Khoo Yit Phang  <khooyp@cs.umd.edu>
11724
11725         * infrun.c (normal_stop): Don't skip calling the normal_stop
11726         observers if the thread was doing a multi-step, but stopped for
11727         some reason other than stepping.
11728
11729 2012-01-05  Pedro Alves  <alves.ped@gmail.com>
11730
11731         * cli/cli-decode.h: Add comments.
11732         (CMD_LIST_AMBIGUOUS): Moved to command.h
11733         (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11734         (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11735         (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11736         (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11737         (add_com, add_com_alias, add_info, add_info_alias)
11738         (complete_on_cmdlist, complete_on_enum, help_list): Remove
11739         declarations.
11740         * command.h: Add and adjust comments.
11741         (CMD_LIST_AMBIGUOUS): Moved here.
11742         (help_cmd, help_cmd_list): Delete declarations.
11743
11744 2012-01-04  Doug Evans  <dje@google.com>
11745
11746         * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11747         All callers updated.
11748         (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11749         Replace all arguments with "per_cu".  All callers updated.
11750
11751         * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11752
11753         * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11754         New arg "per_cu".  All callers updated.
11755
11756         Delete #if 0'd out code.
11757         * language.c (binop_result_type): Delete.
11758         (simple_type, ordered_type, same_type, integral_type): Delete.
11759         (numeric_type, character_type, string_type, boolean_type): Delete.
11760         (float_type, structured_type): Delete.
11761         * language.h: Update.
11762
11763 2012-01-04  Tom Tromey  <tromey@redhat.com>
11764
11765         * python/py-value.c (valpy_binop): Initialize 'res_val'.
11766
11767 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11768
11769         * corefile.c (close_exec_file): Delete.
11770         (reopen_exec_file): Remove commented out code that seems related
11771         to close_exec_file, which is being deleted here.
11772         * inferior.h (close_exec_file): Delete.
11773         * fork-child.c (fork_inferior): Remove call to fork_inferior.
11774
11775 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11776
11777         * ada-lang.c: #include "cli/cli-utils.h".
11778         (get_selections): Use skip_spaces.
11779         (ada_get_next_arg): Use skip_spaces and skip_to_space.
11780         (catch_ada_exception_command_split): Use skip_spaces.
11781         (ada_decode_assert_location): Likewise.
11782
11783 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11784
11785         * linespec.c (decode_line_internal): Check for C++ or Java
11786         compound constructs only if the current language is C, C++
11787         or Java.
11788
11789 2012-01-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
11790
11791         Revert:
11792         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11793                     Joel Brobecker  <brobecker@adacore.com>
11794         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11795         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11796         3 times.
11797         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11798         fall through into AT_ENTRY_POINT.
11799         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
11800         DUMMY_ADDR with it.
11801         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11802         PPC_INSN_SIZE skip to 3 times.
11803
11804 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11805
11806         * linespec.c (add_minsym): Preserve function descriptors.
11807
11808 2012-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
11809
11810         * breakpoint.c (all_locations_are_pending): Consider locations
11811         in program spaces executing during startup pending as well.
11812
11813 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11814
11815         Copyright year update in most files of the GDB Project.
11816
11817 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11818
11819         * copyright.sh: Delete.
11820         * copyright.py: Rewrite.
11821
11822 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11823
11824         * gnulib/extra/update-copyright: New file, imported from gnulib.
11825
11826 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11827
11828         * README (Copyright and License Notices): New section.
11829
11830 2012-01-03  Tom Tromey  <tromey@redhat.com>
11831
11832         PR python/12533:
11833         * python/py-value.c (valpy_dereference, valpy_get_address
11834         valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11835         (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11836         (valpy_absolute, valpy_richcompare): Free intermediate values.
11837
11838 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
11839
11840         * ada-lang.c: Reformat the copyright notice.
11841
11842 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11843
11844         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11845         * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11846         (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11847         (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11848         Revert this part of:
11849         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11850         Build gdb directly from *.o files not using libgdb.a.
11851         * Makefile.in (COMMON_OBS): Remove solib-target.o.
11852
11853 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11854
11855         * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11856         gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11857         Reformat the copyright header.
11858
11859 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11860
11861         Revert this part of:
11862         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11863         Remove the gdbtui binary.
11864         * gdb.c (main): Remove args.interpreter_p initialization.
11865         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11866         * main.h (struct captured_main_args): Remove interpreter_p.
11867
11868 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11869
11870         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11871
11872 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11873
11874         * top.c (print_gdb_version): Update copyright year.
11875
11876 2012-01-02  Yao Qi  <yao@codesourcery.com>
11877
11878         * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11879
11880 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11881             Joel Brobecker  <brobecker@adacore.com>
11882
11883         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11884         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11885         3 times.
11886         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11887         fall through into AT_ENTRY_POINT.
11888         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
11889         DUMMY_ADDR with it.
11890         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11891         PPC_INSN_SIZE skip to 3 times.
11892
11893 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11894
11895         * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11896         the return value.
11897         * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11898
11899 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11900
11901         Build gdb directly from *.o files not using libgdb.a.
11902         * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11903         (COMMON_OBS): Remove solib-target.o.
11904         (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11905         (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11906         (LIBGDB_OBS, libgdb.a): Move it above.
11907         * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11908         (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11909         (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11910         (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11911         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11912         (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11913         (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11914         (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11915         (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11916         (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11917         (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11918         (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11919         (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11920         (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11921         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11922         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11923         (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11924         (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11925         (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11926         (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11927         (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11928         (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11929         (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11930         (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11931         (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11932         (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11933         (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11934
11935 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11936
11937         Remove the gdbtui binary.
11938         * .gitignore (/gdbtui): Remove.
11939         * Makefile.in (TUI): Remove.
11940         (SUBDIR_TUI_OBS): Remove tui-main.o.
11941         (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11942         (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11943         (tui-main.o): Remove.
11944         (all_object_files): Remove tui-main.o.
11945         * NEWS: New note for the gdbtui removal.
11946         * configure: Rebuilt.
11947         * configure.ac: No longer add all-tui, clean-tui, install-tui and
11948         uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11949         CONFIG_UNINSTALL respectively.
11950         * gdb.c (main): Remove args.interpreter_p initialization.
11951         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11952         * main.h (struct captured_main_args): Remove interpreter_p.
11953         * tui/tui-main.c: Remove.
11954
11955 2012-01-01  Doug Evans  <dje@google.com>
11956
11957         * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11958         (dwarf2_physname, read_import_statement): Ditto.
11959         (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11960         (process_structure_scope read_subroutine_type): Ditto.
11961         (read_typedef, load_partial_dies, read_partial_die): Ditto.
11962         (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11963         (dwarf2_fetch_die_location_block): Ditto.
11964         (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11965
11966         * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11967         All callers updated.
11968         (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11969         (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11970         (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11971
11972         * dwarf2read.c (load_cu): Move assert to more useful location.
11973
11974         * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11975         All callers updated.
11976
11977         * dwarf2read.c (dwarf2_per_objfile): Add comment.
11978         (dwarf2_elf_names): Minor reformat.
11979         (dwarf2_per_cu_data): Tweak comment.
11980         (dwarf2_read_section): Fix comment.
11981         (create_all_comp_units): Fix comment.
11982         (load_full_comp_unit): Fix comment.
11983         (process_full_comp_unit): Fix comment.
11984         (read_signatured_type): Fix comment.
11985
11986 For older changes see ChangeLog-2011.
11987 \f
11988 Local Variables:
11989 mode: change-log
11990 left-margin: 8
11991 fill-column: 74
11992 version-control: never
11993 coding: utf-8
11994 End: