b14fc8e002c263dd2acbcacde5805fc2e45fe931
[external/binutils.git] / gdb / ChangeLog
1 2012-11-26  Maxime Villard  <rustyBSD@gmx.fr>
2             Pedro Alves  <palves@redhat.com>
3
4         * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
5         size parameter passed to readlink by one byte.
6         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
8         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9         * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
10         size by one byte.
11
12 2012-11-26  Yao Qi  <yao@codesourcery.com>
13
14         * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
15         extraneous parentheses.
16
17 2012-11-26  Yao Qi  <yao@codesourcery.com>
18
19         * remote.c (remote_start_remote): Typo fix.
20
21 2012-11-23  David S. Miller  <davem@davemloft.net>
22
23         * sparc-tdep.h (struct sparc_fpregset): New data structure.
24         (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
25         sparc32_sol2_fpregset): Declare new globals.
26         (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
27         'fpregset' argument.
28         * sparc64-tdep.h (sparc64_supply_fpregset,
29         sparc64_collect_fpregset): Likewise.
30         (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
31         globals.
32         * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
33         (sparc_fpregset): Declare new global.
34         (sparc_supply_fpregset, sparc_collect_fpregset): Add new
35         'fpregset' argument.
36         * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
37         into handler.
38         (fill_fpregset): Likewise.
39         (_initialize_sparc_linux_nat): Set sparc_fpregset to
40         sparc32_bsd_fpregset.
41         * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
42         sparc32_bsd_fpregset down into handler.
43         (sparc32_linux_collect_core_fpregset): Likewise.
44         * sparc-nat.c (sparc_fpregset): Define.
45         (sparc_supply_fpregset): Add 'fpregset' argument.
46         (sparc_collect_fpregset): Likewise.
47         (sparc_fetch_inferior_registers): Pass sparc_fpregset down
48         into fpregset handler.
49         (sparc_store_inferior_registers): Likewise.
50         (_initialize_sparc_nat): Set sparc_fpregset to
51         sparc32_sunos4_fpregset if NULL.
52         * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
53         down into handler.
54         (fill_fpregset): Likewise.
55         * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
56         * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
57         use it to compute offsets.
58         (sparc32_collect_fpregset): Likewise.
59         (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
60         * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
61         down into handler.
62         (fill_fpregset): Likewise.
63         * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
64         Likewise.
65         (sparc64_linux_collect_core_fpregset): Likewise.
66         * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
67         * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
68         use it to compute offsets.
69         (sparc64_collect_fpregset): Likewise.
70         (sparc64_bsd_fpregset): Define.
71         * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
72         sparc64_bsd_fpregset down into handler.
73         (sparc64fbsd_collect_fpregset): Likewise.
74         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
75         and pass sparc{32,64}_bsd_fpregset down into handler.
76         (sparc64nbsd_collect_fpregset): Likewise.
77         * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
78         sparc64_bsd_fpregset down into handler.
79         * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
80         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
81         to sparc32_bsd_fpregset.
82         * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
83         sparc32_bsd_fpregset down into sparc32_supply_fpregset.
84         (sparc32nbsd_supply_fpregset): Likewise.
85
86 2012-11-21  Tom Tromey  <tromey@redhat.com>
87
88         * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
89         field.
90         (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
91         Remove.
92         * c-typeprint.c (c_type_print_base): Update.
93
94 2012-11-21  Yao Qi  <yao@codesourcery.com>
95
96         PR tdep/7438
97         * gdbarch.sh (smash_text_address): Remove.
98         * gdbarch.c, gdbarch.h: Regenerate.
99         * arm-tdep.c (arm_smash_text_address): Remove.
100         (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
101         * hppa-tdep.c (hppa_smash_text_address): Remove.
102         (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
103         (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
104         Caller update.
105         * coffread.c (coff_symtab_read): Caller update.
106         * dbxread.c (process_one_symbol): Likewise.
107         * elfread.c (record_minimal_symbol): Likewise.
108         * somread.c (som_symtab_read): Likewise.
109
110 2012-11-20  Pierre Muller  <muller@sourceware.org>
111
112         ARI fixes: sprintf rule.
113         Replace sprintf function calls for char arrays by
114         calls to xsnprintf calls.
115         * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
116         (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
117         (arm_neon_quad_read, arm_pseudo_read): Ditto.
118         (arm_neon_quad_write, arm_pseudo_write): Ditto.
119         * breakpoint.c (condition_completer): Ditto.
120         (create_tracepoint_from_upload): Ditto.
121         * dwarf2read.c (file_full_name): Ditto.
122         * gcore.c (gcore_command): Ditto.
123         * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
124         * go32-nat.c (go32_sysinfo): Ditto.
125         * interps.c (interp_set): Ditto.
126         * m32c-tdep.c (make_types): Ditto.
127         * ppc-linux-nat.c (fetch_register, store_register): Ditto.
128         * remote-m32r-sdi.c (m32r_open): Ditto.
129         * sol-thread.c (td_err_string): Ditto.
130         (td_state_string, solaris_pid_to_str): Ditto.
131         * symtab.c (gdb_mangle_name): Ditto.
132         * cli/cli-script.c (execute_control_command): Ditto.
133         (define_command, document_command): Ditto.
134         * tui/tui-io.c (tui_rl_display_match_list): Ditto.
135         * tui/tui-stack.c (tui_make_status_line): Ditto.
136         * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
137
138 2012-11-20  Mike Frysinger  <vapier@gentoo.org>
139
140         * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
141         it when looking at ptr->func.
142         * command.h (complete_on_cmdlist): Add a fourth arg.
143         * completer.c (complete_line_internal): Add local ignore_help_classes,
144         and set it to 1 when reason is not handle_help.  Pass this down to
145         lookup_cmd_1 and complete_on_cmdlist.
146
147 2012-11-20  Tom Tromey  <tromey@redhat.com>
148
149         * completer.c (count_struct_fields): Remove.
150         (expression_completer): Don't call count_struct_fields.
151
152 2012-11-20  Pedro Alves  <palves@redhat.com>
153
154         * annotate.c (breakpoints_changed): Rename to ...
155         (annotate_breakpoints_changed): ... this.
156         (annotate_stopped, breakpoint_changed): Adjust caller.
157         * annotate.h (breakpoints_changed): Rename to ...
158         (annotate_breakpoints_changed): ... this.
159         * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
160         (do_map_commands_command, init_raw_breakpoint, clear_command)
161         (set_ignore_count, enable_breakpoint_disp): Adjust callers.
162
163 2012-11-20  David S. Miller  <davem@davemloft.net>
164
165         * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
166         (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
167         sysconf.
168         (get_cores_used_by_process): Update comment.
169
170 2012-11-20  Yao Qi  <yao@codesourcery.com>
171
172         * objfiles.c (init_entry_point_info): Remove trailing spaces.
173
174 2012-11-20  Yao Qi  <yao@codesourcery.com>
175
176         * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
177         to deprecated_context_hook.
178
179 2012-11-19  Yao Qi  <yao@codesourcery.com>
180
181         * infrun.c (infwait_state): Add static.
182
183 2012-11-16  Keith Seitz  <keiths@redhat.com>
184
185         PR c++/13615
186         * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
187         parameter and pass it to lookup_symbol_file.
188         (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
189         to search base classes.
190         (cp_lookup_symbol_namespace): Likewise.
191         (lookup_namespace_scope): Likewise.
192         (lookup_symbol_file): Add SEARCH parameter.
193         If SEARCH is non-zero and no symbol is found, lookup the class
194         and call cp_lookup_nested_symbol.
195         (find_symbol_in_baseclass): New function.
196         (cp_lookup_nested_symbol): Do not let
197         cp_lookup_symbol_in_namespace search through base classes.
198         Do that later when there is no global symbol match.
199
200 2012-11-16  Doug Evans  <dje@google.com>
201
202         * main.c (gdb_datadir_provided): New static global.
203         (get_init_files): If --data-directory is provided,
204         and SYSTEM_GDBINIT lives in data-directory, look for it there.
205         * NEWS: Mention it.
206
207 2012-11-15  Pierre Muller  <muller@sourceware.org>
208
209         ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
210         * gdb_stat.h: Delete. Moved to common directory.
211         * common/gdb_stat.h: New file.
212         * gdb_wait.h: Delete. Moved to common directory.
213         * common/gdb_wait.h: New file.
214         * Makefile.in (H_FILES_NO_SRC): Adapt to new header
215         location.
216         * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
217         location.
218         (stat.h rule): Adapt to new gdb_stat.h location.
219         * common/linux-osdata.c: Include "gdb_stat.h" header instead of
220         <sys/stat.h> header.
221         * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
222         <sys/wait.h> header.
223
224 2012-11-15  Pierre Muller  <muller@sourceware.org>
225
226         * configure.ac (AC_HEADER_STAT): Remove.
227         * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
228         and corresponding code.
229         * configure: Regenerate.
230         * config.in: Regenerate.
231
232 2012-11-15  Pierre Muller  <muller@sourceware.org>
233
234         ARI xasprintf rule fixes.
235         * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
236         instead of xasprintf.
237         (open_and_init_dwp_file): Ditto.
238
239 2012-11-14  Luis Machado  <lgustavo@codesourcery.com>
240
241         * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
242         target types.
243
244 2012-11-14  Tom Tromey  <tromey@redhat.com>
245
246         * configure, config.in: Rebuild.
247         * configure.ac: Don't check for ctype.h, time.h.
248         * expprint.c: Don't use HAVE_CTYPE_H.
249
250 2012-11-13  Tom Tromey  <tromey@redhat.com>
251
252         * gdbarch.h, gdbarch.c: Rebuild.
253         * gdbarch.sh (set_target_gdbarch): Rename from
254         deprecated_target_gdbarch_select_hack.
255         * arch-utils.c (gdbarch_update_p): Update.
256         (set_gdbarch_from_file): Update.
257
258 2012-11-14  Pierre Muller  <muller@sourceware.org>
259
260         * MAINTAINERS (Responsible Maintainers/misc): Add myself
261         as responsible of contrib/ari directory.
262
263 2012-11-14  Daniel Jacobowitz  <dan@codesourcery.com>
264             Yao Qi  <yao@codesourcery.com>
265
266         * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
267         bit of EXC_RETURN.
268         (arm_m_exception_cache, arm_m_exception_this_id)
269         (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
270         (arm_m_exception_unwind): New.
271         (arm_gdbarch_init): Register arm_m_exception_unwind.
272
273 2012-11-13  Giuseppe Montalto  <giuseppe.montalto@st.com>
274
275         * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
276         parameter COUNT, for pattern filling of memory regions.
277         * NEWS: Mention it.
278
279 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
280
281         * disasm.h (DISASSEMBLY_FILENAME): New macro.
282         * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
283         to print_source_lines ().
284         * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
285         flag.
286         * source.c (print_source_lines_base): Prefix source line with
287         filename if PRINT_SOURCE_LINES_FILENAME flag is set.
288
289 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
290
291         * symtab.h (print_source_lines_flags): New enum.
292         * source.c (print_source_lines_base): Change noerror to flags.
293         (print_source_lines): Change noerror to flags.
294
295 2012-11-13  Pierre Muller  <muller@sourceware.org>
296
297         ARI fixes: Avoid sprintf function use rule.
298         * charset.c (convert_between_encodings): Use xsnprintf.
299         * cli-out.c (cli_field_int): Likewise.
300         * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
301         * expprint.c (op_name_standard): Likewise.
302         * frv-tdep.c (set_variant_num_gprs): Likewise.
303         (set_variant_num_fprs): Likewise.
304         * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
305         * nto-tdep.c (nto_find_and_open_solib): Likewise.
306         (nto_init_solib_absolute_prefix): Likewise.
307         * source.c (init_source_path): Likewise.
308         (print_source_lines_base): Likewise.
309         * valprint.c (print_wchar): Likewise.
310         * mi/mi-out.c (mi_field_int): Likewise.
311         windows-nat.c (windows_pid_to_exec_file): Likewise.
312         (windows_create_inferior): Likewise.
313         (_initialize_check_for_gdb_ini): Likewise.
314
315 2012-11-12  Joel Brobecker  <brobecker@adacore.com>
316
317         * frame.h (deprecated_frame_register_read): Renames
318         frame_register_read.
319         * frame.c (deprecated_frame_register_read): Renames
320         frame_register_read.  Update all callers.
321         * i386-tdep.c: Update all callers of frame_register_read.
322         * infcmd.c: Likewise.
323         * jit.c: Likewise.
324         * mips-tdep.c: Likewise.
325         * mt-tdep.c: Likewise.
326         * sh64-tdep.c: Likewise.
327
328 2012-11-12  Joel Brobecker  <brobecker@adacore.com>
329
330         * frame.h (frame_register_read): Remove FIXME comment.
331         * frame.c (frame_register_read): Add suggestion explaining
332         which function to use in place of this one.
333
334 2012-11-12  Tom Tromey  <tromey@redhat.com>
335
336         * python/python.c (start_type_printers): Initialize 'result_obj'.
337
338 2012-11-12  Tom Tromey  <tromey@redhat.com>
339
340         * NEWS: Update.
341         * data-directory/Makefile.in (PYTHON_FILES): Add
342         type_printers.py.
343         * python/lib/gdb/command/type_printers.py: New file.
344         * python/lib/gdb/command/types.py (TypePrinter): New class.
345         (_get_some_type_recognizers, get_type_recognizers,
346         apply_type_recognizers, register_type_printer): New
347         functions.
348         * python/py-objfile.c (objfile_object) <type_printers>: New
349         field.
350         (objfpy_dealloc): Decref new field.
351         (objfpy_new): Set new field.
352         (objfpy_get_type_printers, objfpy_set_type_printers): New
353         functions.
354         (objfile_to_objfile_object): Set new field.
355         (objfile_getset): Add "type_printers".
356         * python/py-progspace.c (pspace_object) <type_printers>: New
357         field.
358         (pspy_dealloc): Decref new field.
359         (pspy_new): Set new field.
360         (pspy_get_type_printers, pspy_set_type_printers): New functions.
361         (pspace_to_pspace_object): Set new field.
362         (pspace_getset): Add "type_printers".
363         * python/python.c (start_type_printers, apply_type_printers,
364         free_type_printers): New functions.
365         (_initialize_python): Set gdb.type_printers.
366         * python/python.h (start_type_printers, apply_type_printers,
367         free_type_printers): Declare.
368         * typeprint.c (type_print_raw_options, default_ptype_flags):
369         Update for new fields.
370         (do_free_global_table, create_global_typedef_table,
371         find_global_typedef): New functions.
372         (find_typedef_in_hash): Use find_global_typedef.
373         (whatis_exp): Use create_global_typedef_table.  Change cleanup
374         handling.
375         * typeprint.h (struct type_print_options) <global_typedefs,
376         global_printers>: New fields.
377
378 2012-11-12  Tom Tromey  <tromey@redhat.com>
379
380         * c-typeprint.c (find_typedef_for_canonicalize,
381         print_name_maybe_canonical): New functions.
382         (c_print_type): Look up type name.
383         (cp_type_print_derivation_info): Add flags argument.  Use
384         print_name_maybe_canonical.
385         (cp_type_print_method_args): Add wrapping.
386         (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
387         (c_type_print_template_args): New function.
388         (c_type_print_base): Change wrapping.  Use
389         print_name_maybe_canonical.
390         <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
391         type name lookups.
392         * gdbtypes.c (types_equal): No longer static.
393         * gdbtypes.h (types_equal): Declare.
394         * typeprint.c (type_print_raw_options, default_ptype_flags):
395         Update.
396         (struct typedef_hash_table): New.
397         (hash_typedef_field, eq_typedef_field,
398         recursively_update_typedef_hash, add_template_parameters,
399         create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
400         make_cleanup_free_typedef_hash, copy_typedef_hash_element,
401         copy_typedef_hash, find_typedef_in_hash): New functions.
402         * typeprint.h (struct type_print_options) <local_typedefs>:
403         New field.
404         (recursively_update_typedef_hash, add_template_parameters,
405         create_typedef_hash, free_typedef_hash,
406         make_cleanup_free_typedef_hash, copy_typedef_hash,
407         find_typedef_in_hash): Declare.
408
409 2012-11-12  Tom Tromey  <tromey@redhat.com>
410
411         * cp-support.c (inspect_type,
412         replace_typedefs_qualified_name, replace_typedefs): Add
413         finder, data arguments.  Call as needed.
414         (cp_canonicalize_string_full): New function.
415         (cp_canonicalize_string_no_typedefs): Rewrite.
416         * cp-support.h (canonicalization_ftype): New typedef.
417         (cp_canonicalize_string_full): Declare.
418
419 2012-11-12  Tom Tromey  <tromey@redhat.com>
420
421         * NEWS: Update.
422         * c-typeprint.c (c_type_print_base): Handle print_method and
423         print_typedefs flags.
424         * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
425         * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
426         options.
427         * typeprint.c (type_print_raw_options, default_ptype_flags):
428         Update for new field.s
429         (whatis_exp): Parse flags.  Use LA_PRINT_TYPE.
430         (setprinttypelist, showprinttypelist, print_methods,
431         print_typedefs): New globals.
432         (set_print_type, show_print_type, set_print_type_methods,
433         show_print_type_methods, set_print_type_typedefs,
434         show_print_type_typedefs): New functions.
435         (_initialize_typeprint): Update documentation.  Add "print
436         type methods" and "print type typedefs" parameters.
437         * typeprint.h (struct type_print_options) <print_methods,
438         print_typedefs>: New fields.
439
440 2012-11-12  Tom Tromey  <tromey@redhat.com>
441
442         * c-typeprint.c (cp_type_print_method_args): Add flags
443         argument.  Call c_print_type, not type_print.
444         (c_type_print_base): Call c_print_type, not type_print.
445         Update.
446
447 2012-11-12  Tom Tromey  <tromey@redhat.com>
448
449         * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
450         to type-printing functions.
451         * ada-lang.h (ada_print_type): Add argument.
452         * ada-typeprint.c (print_array_type, print_variant_clauses,
453         print_variant_part, print_selected_record_field_types,
454         print_record_field_types, print_unchecked_union_type,
455         print_func_type, ada_print_type): Add flags argument.
456         (ada_print_typedef): Update.
457         * c-exp.y (OPERATOR conversion_type_id): Update.
458         * c-lang.h (c_print_type, c_type_print_base): Update.
459         * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
460         c_type_print_modifier, c_type_print_args,
461         c_type_print_varspec_suffix, c_type_print_base): Add flags
462         argument.
463         * cp-valprint.c (cp_print_class_member): Update.
464         * dwarf2read.c (dwarf2_compute_name): Update.
465         * f-lang.h (f_print_type): Add argument.
466         * f-typeprint.c (f_print_type): Add flags argument.
467         * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
468         * go-lang.h (go_print_type): Add argument.
469         * go-typeprint.c (go_print_type): Add flags argument.
470         * jv-lang.h (java_print_type): Add argument.
471         * jv-typeprint.c (java_type_print_base, java_print_type): Add
472         flags argument.
473         * language.c (unk_lang_print_type): Add flags argument.
474         * language.h (struct language_defn) <la_print_type>: Add flags
475         argument.
476         (LA_PRINT_TYPE): Likewise.
477         * m2-lang.h (m2_print_type): Add argument.
478         * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
479         m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
480         m2_unbounded_array, m2_record_fields): Add flags argument.
481         * p-lang.h (pascal_print_type, pascal_type_print_base,
482         pascal_type_print_varspec_prefix): Add argument.
483         * p-typeprint.c (pascal_print_type,
484         pascal_type_print_varspec_prefix, pascal_print_func_args,
485         pascal_type_print_varspec_suffix, pascal_type_print_base): Add
486         flags argument.
487         * symmisc.c (print_symbol): Update.
488         * typeprint.c (type_print_raw_options, default_ptype_flags):
489         New globals.
490         (type_print): Update.
491         * typeprint.h (struct type_print_options): New.
492         (type_print_raw_options): Declare.
493         (c_type_print_varspec_suffix, c_type_print_args): Add argument.
494
495 2012-11-10  Keith Seitz  <keiths@redhat.com>
496
497         * breakpoint.c (clear_command): Add cleanup for
498         sals.sals if an argument is given.
499
500         * linespec.c (parse_linespec): Do cleanups after
501         parsing a convenience variable.
502
503 2012-11-10  Keith Seitz  <keiths@redhat.com>
504
505         PR gdb/14288
506         * c-valprint.c (c_val_print): For character arrays
507         with "print null" option on, print ellipses if
508         the output is truncated and the next character is not \000.
509         * valprint.c (MAX_WCHARS): Define.
510         (WCHAR_BUFLEN): Likewise.
511         (WCHAR_BUFLEN_MAX): Likewise.
512         (struct converted_character): New structure.
513         (count_next_character): New function.
514         (print_converted_chars_to_obstack): New function.
515         (generic_printstr): Rewrite using count_next_character
516         and print_converted_chars_to_obstack.
517
518 2012-11-10  Stephane Carrez  <Stephane.Carrez@gmail.com>
519
520         * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
521         while executing the gdb command.
522         (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
523         are called from prompt_for_continue.
524         * tui/tui-io.c (tui_redisplay_readline): Likewise.
525
526 2012-11-10  Stephane Carrez  <Stephane.Carrez@gmail.com>
527
528         PR tui/9584
529
530         * tui/tui.c (tui_rl_command_key): Do not call execute_command
531         but insert the command to execute in readline's buffer.
532
533 2012-11-09  Tom Tromey  <tromey@redhat.com>
534
535         * gdbarch.sh (target_gdbarch): Remove macro.
536         (get_target_gdbarch): Rename to target_gdbarch.
537         * gdbarch.c, gdbarch.h: Rebuild.
538         * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
539         arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
540         darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
541         filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
542         ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
543         linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
544         mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
545         mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
546         nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
547         procfs.c, progspace.c, ravenscar-thread.c, record.c,
548         remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
549         rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
550         solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
551         solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
552         solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
553         spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
554         target-descriptions.c, target.c, target.h, tracepoint.c,
555         windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
556         common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
557         python/py-inferior.c, python/python.c: Update.
558
559 2012-11-09  Andrew Burgess  <aburgess@broadcom.com>
560
561         * source.c (print_source_lines_base): Add fullname field giving
562         full path to file in mi output.
563         * NEWS: Mention the new fullname field.
564
565 2012-11-09  Yao Qi  <yao@codesourcery.com>
566
567         * NEWS: Mention the fix to the ambiguity of 'fo' command.
568
569 2012-11-09  Pedro Alves  <palves@redhat.com>
570
571         PR gdb/14306
572
573         * infrun.c: Include target-descriptions.h.
574         (follow_exec): Fetch new target description.
575
576 2012-11-09  Yao Qi  <yao@codesourcery.com>
577
578         * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
579         0x8d (lea).
580
581 2012-11-09  Yao Qi  <yao@codesourcery.com>
582
583         * breakpoint.c: Declare set_tracepoint_count.
584         (install_breakpoint): Call set_tracepoint_count if B is a
585         tracepoint.
586         (trace_command): Don't call set_tracepoint_count.  Re-indent.
587         (strace_command, ftrace_command):
588         (create_tracepoint_from_upload): Likewise.
589
590 2012-11-09  Pedro Alves  <palves@redhat.com>
591
592         * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
593         (get_target_gdbarch) <gdbarch.h>: New function.
594         (startup_gdbarch) <gdbarch.h>: Declare.
595         <gdbarch.c> (target_gdbarch): Delete.
596         <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
597         current inferior's gdbarch.
598         <gdbarch.c> (get_target_gdbarch): New function.
599         * inferior.c: Include target-descriptions.h.
600         (free_inferior): Free target description info.
601         (add_inferior_with_spaces): Set the inferior's initial
602         architecture.
603         (clone_inferior_command): Copy the original inferior's target
604         description if it was user specified.
605         (initialize_inferiors): Add comment.
606         * inferior.h (struct target_desc_info): Forward declare.
607         (struct inferior) <gdbarch>: New field.
608         * linux-nat.c: Include target-descriptions.h.
609         (linux_child_follow_fork): Copy the parent's architecture and
610         target description to the child.
611         * target-descriptions.c: Include inferior.h.
612         (struct target_desc_info): New structure, holding the equivalents
613         of ...
614         (target_desc_fetched, current_target_desc)
615         (target_description_filename): ... these removed globals.
616         (get_tdesc_info, target_desc_info_from_user_p)
617         (copy_inferior_target_desc_info, target_desc_info_free): New.
618         (target_desc_fetched, current_target_desc)
619         (target_description_filename): Reimplemented as convenience
620         macros.
621         (tdesc_filename_cmd_string): New global.
622         (set_tdesc_filename_cmd): Copy the string manipulated by the "set
623         tdescs filename ..." commands to the per-inferior equivalent.
624         (show_tdesc_filename_cmd): Get the value to show from the
625         per-inferior description filename.
626         (_initilize_target_descriptions): Change the "set/show tdesc
627         filename" commands' variable.
628         * target-descriptions.h (struct target_desc, struct target_desc_info)
629         (struct inferior): Forward declare.
630         (target_find_description, target_clear_description)
631         (target_current_description): Adjust comments.
632         (copy_inferior_target_desc_info, target_desc_info_free)
633         (target_desc_info_from_user_p). Declare.
634
635 2012-11-08  Stephane Carrez  <Stephane.Carrez@gmail.com>
636
637         * tui/tui-hooks.c (tui_about_to_proceed): New function.
638         (tui_target_wait_hook): Remove.
639         (tui_install_hooks): Install the about_to_proceed observer.
640         (tui_remove_hooks): And remove it here.
641
642 2012-11-08  Tom Tromey  <tromey@redhat.com>
643
644         * linux-tdep.c (linux_make_siginfo_note): New function.
645         (linux_make_corefile_notes): Use it.
646         * corelow.c (get_core_siginfo): New function.
647         (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
648
649 2012-11-08  Tom Tromey  <tromey@redhat.com>
650
651         PR gdb/14704:
652         * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
653         (zlib_decompress_section): Remove.
654         (gdb_bfd_map_section): Only check for compressed section
655         in mmap case.  Use bfd_get_full_section_contents.
656         * osabi.c (check_note): Add 'sectsize' argument.  Read
657         section data.
658         (generic_elf_osabi_sniff_abi_tag_sections): Don't read
659         section data.  Update for check_note change.
660         * xcoffread.c (xcoff_initial_scan): Use
661         bfd_get_full_section_contents.
662         * py-auto-load.c (auto_load_section_scripts): Use
663         bfd_get_full_section_contents.
664         * contrib/cc-with-tweaks.sh: Add -Z option.
665
666 2012-11-08  Tom Tromey  <tromey@redhat.com>
667
668         * python/py-bpevent.c: Include defs.h.
669         * python/py-continueevent.c: Include defs.h.
670         * python/py-event.c: Include defs.h.
671         * python/py-event.h: Don't include defs.h.
672         * python/py-events.h: Don't include defs.h.
673         * python/py-evts.c: Include defs.h.
674         * python/py-exitedevent.c: Include defs.h.
675         * python/py-newobjfileevent.c: Include defs.h.
676         * python/py-signalevent.c: Include defs.h.
677         * python/py-stopevent.c: Include defs.h.
678         * python/py-threadevent.c: Include defs.h.
679
680 2012-11-08  Pierre Muller  <muller@sourceware.org>
681
682         * update-web-ari.sh (print_heading): Add number of files
683         checked.
684         (nb_files): New variable counting the number of sources
685         files found by gdb_find.sh script.
686         (debug_awk): New variable to allow extra debug output.
687         (indexes): Add more information if DEBUG_AWK is set.
688
689 2012-11-08  Edjunior Machado  <emachado@linux.vnet.ibm.com>
690
691         * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
692         ppc64_standard_linkage3): Mark ld r11 instructions as optional,
693         following the change in PLT call stubs on linker.
694
695 2012-11-08  Pierre Muller  <muller@sourceware.org>
696
697         * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
698         as default language.
699         (AWK): Use = instead of == for sh test to avoid warning.
700         (Linux rule): Correct [:digit] into [[:digit:]].
701         (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
702         (vasprintf rule): Adapt to common subdirectory moves.
703         (xasprintf rule): Idem.
704         (xvasprintf rule): Idem.
705         (var_boolean rule): Accept occurence in == or != test.
706
707         * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
708
709 2012-11-08  Stephane Carrez  <Stephane.Carrez@gmail.com>
710
711         * tui/tui-hooks.c (tui_inferior_exit): New function.
712         (tui_detach_hook): Remove.
713         (tui_install_hooks): Install the inferior exit observer.
714         (tui_remove_hooks): Remove it.
715
716 2012-11-08  Yao Qi  <yao@codesourcery.com>
717
718         PR gdb/14777.
719         * source.c (_initialize_source): Call add_com_alias to abbreviate
720         'forward-search' as 'fo'.
721
722 2012-11-07  Pedro Alves  <palves@redhat.com>
723
724         * arm-tdep.c: Make defs.h be the first include.
725         * coff-pe-read.c: Ditto.
726         * gnu-nat.c: Ditto.
727         * go32-nat.c: Ditto.
728         * i386-nat.c: Ditto.
729         * ppcnbsd-nat.c: Ditto.
730         * ada-varobj.h: Don't include defs.h.
731         * i386-darwin-tdep.h: Ditto.
732         * i386-nat.h: Ditto.
733
734 2012-11-07  Pedro Alves  <palves@redhat.com>
735
736         * MAINTAINERS: New FSF-appointed maintainers replace the Steering
737         Committee.
738
739 2012-11-07  Pierre Muller  <muller@sourceware.org>
740
741         * common/linux-osdata.c (dirent.h): ARI fix: Remove.
742         File already uses "gdb_dirent.h" header.
743
744 2012-11-07  Yao Qi  <yao@codesourcery.com>
745
746         * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
747         tracepoint_count'.
748
749 2012-11-06  Tom Tromey  <tromey@redhat.com>
750
751         * target.h (inferior_has_forked, inferior_has_vforked)
752         (inferior_has_execd, inferior_has_called_syscall): Remove
753         declarations.
754
755 2012-11-06  Pierre Muller  <muller@sourceware.org>
756
757         * remote.c (remote_insert_hw_breakpoint): ARI fix,
758         add missing internalization markup.
759
760 2012-11-06  Pedro Alves  <palves@redhat.com>
761
762         PR gdb/14810
763
764         * breakpoint.c (bpstat_stop_status): Skip disabled locations.
765
766 2012-11-06  Pierre Muller  <muller@sourceware.org>
767
768         * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
769         is not executable.
770
771 2012-11-05  Joel Brobecker  <brobecker@adacore.com>
772
773         * gnulib/update-gnulib.sh: New script.
774
775 2012-11-05  Stephane Carrez  <Stephane.Carrez@gmail.com>
776
777         * MAINTAINERS: Update my email address.
778
779 2012-11-05  Tom Tromey  <tromey@redhat.com>
780
781         * frame.c (put_frame_register): Don't use temporary buffer.
782
783 2012-11-05  Pedro Alves  <palves@redhat.com>
784
785         * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
786         child.  Clear 'pending_detach'.
787         * infrun.c (handle_vfork_child_exec_or_exit): Clear
788         'pending_detach' in the vfork parent.
789
790 2012-11-05  Doug Evans  <dje@google.com>
791
792         Add support for DWP files.  http://gcc.gnu.org/wiki/DebugFissionDWP
793         * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
794         * dwarf2read.c: #include "elf-bfd.h".
795         (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
796         (dwop_section_names): Renamed from dwo_section names.  All uses
797         updated.  Add entries for .debug_cu_index, .debug_tu_index.
798         (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
799         All uses updated.
800         (struct dwp_sections): New type.
801         (struct virtual_dwo_sections): New type.
802         (struct dwp_hash_table): New type.
803         (struct dwp_file): New type.
804         (init_cutu_and_read_dies): Ensure DWO info/types section has been
805         read in.  Handle DWOs coming from DWP files.
806         (lookup_dwo_file_slot): New function.
807         (dwarf2_locate_dwo_sections): Move definition closer to use.
808         (create_dwo_debug_info_hash_table_reader): Renamed from
809         create_debug_info_hash_table_reader.  All callers updated.
810         (create_dwo_debug_info_hash_table): Renamed from
811         create_debug_info_hash_table.  All callers updated.
812         (create_dwp_hash_table): New function.
813         (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
814         (lookup_dwo_in_dwp): New function.
815         (try_open_dwop_file): Renamed from try_open_dwo_file.  New parameter
816         is_dwp.  All callers updated.
817         (open_dwop_file): Renamed from open_dwo_file.  All callers updated.
818         (open_and_init_dwo_file): Renamed from init_dwo_file.
819         All callers updated.
820         (lookup_dwo_file): Delete.
821         (dwarf2_locate_dwp_sections): New function.
822         (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
823         (allocate_dwp_loaded_cutus_table): New function.
824         (open_and_init_dwp_file): New function.
825         (lookup_dwo_cutu): New function.
826         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
827
828 2012-11-03  Yao Qi  <yao@codesourcery.com>
829
830         Fix PR gdb/14617.
831         * breakpoint.c (trace_pass_set_count): Call
832         observer_notify_breakpoint_modified instead of
833         observer_notify_tracepoint_modified.
834         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
835
836 2012-11-02  Tom Tromey  <tromey@redhat.com>
837
838         * breakpoint.c (catch_syscall_completer): Pass 'word' as second
839         argument to complete_on_enum.
840
841 2012-11-02  Tom Tromey  <tromey@redhat.com>
842
843         * configure: Rebuild.
844         * configure.ac (build_warnings): Add -Wempty-body.
845         * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
846         * remote.c (handle_notification): Use braces for empty 'else' body.
847         * s390-tdep.c (s390_analyze_prologue): Use braces for empty
848         'else' body.
849         * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
850         'else' body.
851         * solib-som.c (som_relocate_section_addresses): Use braces
852         for empty 'else' body.
853         * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
854         (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
855
856 2012-11-02  Pedro Alves  <palves@redhat.com>
857
858         PR gdb/14766
859
860         * infrun.c (handle_inferior_event)
861         <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
862         null_ptid before handling a vfork child exec or exit.  Switch to
863         the event ptid afterwards.
864
865 2012-11-02  Yao Qi  <yao@codesourcery.com>
866
867         * std-operator.def: Remove OP_LABELED.
868         * eval.c: Remove the declaration of 'get_label'.
869         (get_label): Remove.
870         (evaluate_struct_tuple): Remove code handling OP_LABELED.
871         Update comment.
872         Remove local variable 'variantno' and related code.
873         Replace 'substruct_type' with 'struct_type'.  Replace 'subfieldno'
874         with 'fieldno'.
875         * expprint.c (print_subexp_standard): Likewise.
876         (dump_subexp_body_standard): Likewise.
877         * parse.c (operator_length_standard): Likewise.
878
879 2012-11-01  Pierre Muller  <muller@ics.u-strasbg.fr>
880
881         Incorporate ARI web page generator into GDB sources.
882         * contrib/ari/create-web-ari-in-src.sh: New file.
883         * contrib/ari/gdb_ari.sh: New file.
884         * contrib/ari/gdb_find.sh: New file.
885         * contrib/ari/update-web-ari.sh: New file.
886
887 2012-10-31  Tom Tromey  <tromey@redhat.com>
888
889         * gdbarch.c: Rebuild.
890         * gdbarch.sh: Remove references to gdbarch_swap.
891         * corelow.c (core_open): Remove obsolete comment.
892
893 2012-10-31  Andrew Burgess  <aburgess@broadcom.com>
894
895         PR cli/14772
896         * c-typeprint.c (c_print_type): Don't print a space for vector
897         types, this is handled within the suffix.
898         (c_type_print_varspec_suffix): Add a space to vector suffix.
899
900 2012-10-26  Pedro Alves  <palves@redhat.com>
901
902         * amd64-tdep.c (amd64_relocate_instruction): Use
903         store_unsigned_integer instead of memcpy.
904         * i386-tdep.c (i386_relocate_instruction): Ditto.
905
906 2012-10-26  Pedro Alves  <palves@redhat.com>
907
908         * infrun.c (handle_inferior_event): Merge handling of
909         TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
910         switch case.
911
912 2012-10-26  Pedro Alves  <palves@redhat.com>
913
914         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
915         Remove comment.
916
917 2012-10-26  Pedro Alves  <palves@redhat.com>
918
919         * target.c (target_waitstatus_to_string): Handle
920         TARGET_WAITKIND_VFORK_DONE.
921
922 2012-10-26  Pedro Alves  <palves@redhat.com>
923
924         * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
925         as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
926
927 2012-10-24  Tristan Gingold  <gingold@adacore.com>
928
929         * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
930         Add comments.
931
932 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
933
934         * ravenscar-thread.c (ravenscar_wait): Only update the list
935         of threads and inferior_ptid if the inferior is still alive.
936
937 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
938
939         * ada-lang.c (is_known_support_routine): Use lbasename when
940         matching the symtab's filename against
941         known_runtime_file_name_patterns.
942
943 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
944
945         * ada-lang.c (ada_same_array_size_p): New function.
946         (ada_promote_array_of_integrals): New function.
947         (coerce_for_assign): Add handling of arrays where the elements
948         are integrals of a smaller size than the size of the target
949         array element type.
950
951 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
952
953         * doublest.c (convert_doublest_to_floatformat): Fix comparison
954         against maximum exponent value.
955
956 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
957
958         * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
959         "unwind-seh.c".
960
961 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
962
963         * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
964         strip typedef layer when computing the fixed type's field type,
965         only when computing its size.
966
967 2012-10-24  Mark Kettenis  <kettenis@gnu.org>
968
969         PR gdb/12783
970         * i386-tdep.c (i386_return_value): Handle complex double and long
971         double.
972
973 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
974
975         * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
976         New local variable args_len.
977         Quote the name of the executable when computing the command line.
978
979 2012-10-23  Mark Kettenis  <kettenis@gnu.org>
980
981         PR gdb/12796
982         PR gdb/12798
983         PR gdb/12800
984         * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
985         AMD64_FTAG_REGNUM.
986         * amd64-tdep.c (amd64_classify): Classify complex types.
987         (amd64_return_value): Handle the COMPLEX_X87 class.
988
989 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
990
991         * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
992         (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
993
994 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
995
996         * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
997         function.
998         (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
999         to amd64_windows_auto_wide_charset.
1000
1001 2012-10-23  Yao Qi  <yao@codesourcery.com>
1002
1003         * event-top.c (mark_async_signal_handler_wrapper): Remove.
1004         * event-top.h: Remove its declaration.
1005         (async_request_quit): Call mark_async_signal_handler instead of
1006         mark_async_signal_handler_wrapper.
1007         (async_do_nothing, async_disconnect): Likewise.
1008         (async_stop_sig): Likewise.
1009         * remote.c (handle_remote_sigint): Likewise.
1010         (handle_remote_sigint_twice): Likewise.
1011
1012 2012-10-23  Yao Qi  <yao@codesourcery.com>
1013
1014         * event-top.c (sigint_token, sighup_token): Replace 'void *'
1015         with 'static struct async_signal_handler *'.
1016         (sighup_token, sigquit_token, sigstp_token): Likewise.
1017
1018 2012-10-22  Ali Anwar  <ali_anwar@codesourcery.com>
1019
1020         * gdbarch.sh (function_list): Use 'pstring' when printing
1021         a variable which could return NULL.
1022         * gdbarch.c: Regenerate.
1023
1024 2012-10-10  Joel Brobecker  <brobecker@adacore.com>
1025             Tom Tromey  <tromey@redhat.com>
1026
1027         * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1028         inneffective if condition by gdb assertion.  Add function
1029         description comment.
1030
1031 2012-10-19  Joel Brobecker  <brobecker@adacore.com>
1032
1033         * parser-defs.h (struct exp_descriptor): Document constraint
1034         on return value for "op_name" callbacks.
1035
1036 2012-10-18  Tom Tromey  <tromey@redhat.com>
1037
1038         * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1039         * symtab.c (iterate_over_some_symtabs): Constify.
1040         * source.h (symtab_to_fullname): Return 'const char *'.
1041         * source.c (symtab_to_fullname): Return 'const char *'.
1042         * python/py-symtab.c (stpy_fullname): Constify.
1043         * cli/cli-cmds.c (edit_command): Constify.
1044         * breakpoint.c (print_breakpoint_location)
1045         (update_static_tracepoint): Constify.
1046
1047 2012-10-18  Tom Tromey  <tromey@redhat.com>
1048
1049         * breakpoint.c (compare_breakpoints): Fix comparison.
1050
1051 2012-10-18  Tom Tromey  <tromey@redhat.com>
1052
1053         * valprint.c (generic_emit_char, generic_printstr): Pass size of
1054         gdb_wchar_t to convert_between_encodings.
1055
1056 2012-10-17  Yao Qi  <yao@codesourcery.com>
1057
1058         * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1059         more parameter 'inferior'.
1060         * corefile.c (write_memory_with_notification): Caller update.
1061
1062         * mi/mi-cmd-var.c: Include "mi-main.h".
1063         (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1064         to 1 and restore it later.
1065         * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1066         and "data-write-memory-bytes.
1067         * mi/mi-interp.c: Include objfiles.h.
1068         (mi_interpreter_init): Call observer_attach_memory_changed.
1069         (mi_memory_changed): New.
1070         * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1071         New field.
1072
1073         * NEWS: Mention new MI notification "memory-changed".
1074
1075 2012-10-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
1076
1077         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1078
1079 2012-10-15  Doug Evans  <dje@google.com>
1080
1081         New option -nh: inhibit loading of ~/.gdbinit.
1082         * NEWS: Mention -nh.
1083         * main.c (captured_main): Recognize and process -nh.
1084         (print_gdb_help): Mention -nh.
1085         * gdb.1: Mention -nh.  Remove erroneous docs on -nx behavior.
1086
1087 2012-10-15  H.J. Lu  <hongjiu.lu@intel.com>
1088
1089         PR backtrace/14646
1090         PR gdb/14647
1091         * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1092         pc_regnum_from_eax.
1093         * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1094         nor pc_regnum_from_eax.
1095         * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1096         nor pc_regnum_from_eax.
1097
1098 2012-10-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
1099
1100         Fix entry values resolving in inlined frames.
1101         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1102         gdbarch and caller_frame initialization later.  Skip INLINE_FRAME
1103         entries of FRAME.
1104
1105 2012-10-15  Joel Brobecker  <brobecker@adacore.com>
1106
1107         * configure.ac: Build with -DMS_WIN64 if building with Python
1108         enabled using GCC on amd64-windows.
1109         * configure: Regenerate.
1110
1111 2012-10-15  Tom Tromey  <tromey@redhat.com>
1112
1113         PR python/14635:
1114         * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1115         to Py_None.
1116
1117 2012-10-15  Tom Tromey  <tromey@redhat.com>
1118
1119         PR python/14634:
1120         * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1121
1122 2012-10-11  Andrew Burgess  <aburgess@broadcom.com>
1123
1124         * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1125         reset thread numbering back to 1.
1126
1127 2012-10-11  Doug Evans  <dje@google.com>
1128
1129         PR breakpoints/14643.
1130         * linespec.c (struct ls_parser): New member keyword_ok.
1131         (linespec_lexer_lex_string): Add comment.
1132         (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1133         for one.
1134         (parse_linespec): Set keyword_ok.
1135
1136 2012-10-10  Doug Evans  <dje@google.com>
1137
1138         * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1139         "0x" prefix on address in log message.
1140
1141         * dwarf2read.c (read_1_byte): Add const to buf parameter.
1142         (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1143         (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1144         (lookup_dwo_file): Add const to dwo_name parameter.
1145         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1146
1147 2012-10-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
1148
1149         Fix crash during stepping on ppc32.
1150         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1151         SYM.
1152
1153 2012-10-03  Doug Evans  <dje@google.com>
1154
1155         PR symtab/14601
1156         * buildsym.c (buildsym_init): Reset using_directives to NULL.
1157
1158 2012-10-02  Andrew Burgess  <aburgess@broadcom.com>
1159
1160         * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1161         output and use uint32_t not long to ensure 4 byte size.
1162
1163 2012-10-02  Joel Brobecker  <brobecker@adacore.com>
1164
1165         * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1166         unref'ed it.
1167
1168 2012-10-01  Andrew Burgess  <aburgess@broadcom.com>
1169
1170         * target.c (simple_search_memory): Include access length in
1171         warning message.
1172
1173 2012-09-28  Nathan Miller  <nathanm2@us.ibm.com>
1174             Edjunior Machado  <emachado@linux.vnet.ibm.com>
1175
1176         PR gdb/13989
1177         * solib.c (solib_find): Prevent GDB from loading native libraries when
1178         debugging a cross-target corefile.
1179
1180 2012-09-28  selven  <pcthegreat@gmail.com>
1181
1182         Make definition match declaration.
1183
1184         * regcache.c (regcache_register_status): Change return type to
1185         enum register_status.
1186
1187 2012-09-28  Yao Qi  <yao@codesourcery.com>
1188
1189         * mi/mi-main.c (mi_cmd_data_write_memory): Call
1190         write_memory_with_notification instead of write_memory.
1191         (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1192         instead of target_write_memory.
1193
1194 2012-09-28  Yao Qi  <yao@codesourcery.com>
1195
1196         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1197         when the length of content is not an even number.
1198
1199 2012-09-27  Tom Tromey  <tromey@redhat.com>
1200
1201         Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1202         * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1203
1204 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1205
1206         * sol-thread.c (sol_thread_fetch_registers)
1207         (sol_thread_store_registers): Delete commented out code.
1208
1209 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1210
1211         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1212         Move these functions to sparc-sol-thread.c.
1213         * sparc-sol-thread.c: New file.
1214         * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1215         sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1216         configurations.
1217         * configure: Regenerate.
1218
1219 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1220
1221         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1222         Remove commented-out code.
1223
1224 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1225
1226         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1227         Enable this code for sparc hosts only.
1228
1229 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1230
1231         * procfs.h (procfs_find_LDT_entry): Add declaration.
1232         * sol-thread.c (ps_lgetLDT): Delete local declaration of
1233         function procfs_find_LDT_entry.
1234
1235 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1236
1237         * procfs.c (proc_get_LDT_entry): Make static.
1238
1239 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1240
1241         * procfs.c (proc_find_memory_regions): Fix declaration.
1242
1243 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
1244
1245         * amd64-tdep.c (amd64_return_value): Revert previous change
1246         that used TYPE_LENGTH directly.
1247         * bfin-tdep.c (bfin_extract_return_value): Likewise.
1248         (bfin_store_return_value): Likewise.
1249         * cris-tdep.c (cris_store_return_value): Likewise.
1250         (cris_extract_return_value): Likewise.
1251         * h8300-tdep.c (h8300_extract_return_value): Likewise.
1252         * hppa-tdep.c (hppa64_return_value): Likewise.
1253         * lm32-tdep.c (lm32_store_return_value): Likewise.
1254         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1255         * spu-tdep.c (spu_value_from_register): Likewise.
1256         * vax-tdep.c (vax_return_value): Likewise.
1257
1258 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
1259
1260         * gdbtypes.c (lookup_array_range_type): Expand parameters
1261         LOW_BOUND and HIGH_BOUND to LONGEST.
1262         (lookup_string_range_type): Likewise.
1263         * gdbtypes.h (lookup_array_range_type): Likewise.
1264         (lookup_string_range_type): Likewise.
1265         * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1266         Expand HIGHBOUND to ssize_t.
1267         (value_string): Likewise.
1268         * value.h (value_cstring): Expand parameter LEN to ssize_t.
1269         (value_string): Likewise.
1270
1271 2012-09-27  Yao Qi  <yao@codesourcery.com>
1272
1273         PR breakpoints/13898
1274         * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1275         * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1276         per breakpoint type.
1277
1278 2012-09-26  Pierre Muller  <muller@ics.u-strasbg.fr>
1279
1280         * procfs.c: Add gdb_bfd header.
1281         * rs6000-nat.c: Likewise.
1282         * solib-pa64.c: Likewise.
1283         * spu-linux-nat.c: Likewise.
1284         * windows-nat.c: Likewise.
1285
1286 2012-09-26  Tom Tromey  <tromey@redhat.com>
1287
1288         * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1289
1290 2012-09-26  Tom Tromey  <tromey@redhat.com>
1291
1292         * dwarf2read.c (mark_common_block_symbol_computed): New function.
1293         (read_common_block): Handle child DIEs with
1294         DW_AT_data_member_location.
1295         (new_symbol_full): Add special case for common blocks.
1296
1297 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
1298             Tom Tromey  <tromey@redhat.com>
1299
1300         * dwarf2read.c (read_common_block): Rewrite.
1301         (new_symbol_full): Handle DW_TAG_common_block.
1302         * f-lang.c (head_common_list, find_common_for_function):
1303         Remove.
1304         * f-lang.h (struct common_entry, struct saved_f77_common,
1305         SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1306         COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1307         BLANK_COMMON_NAME_LOCAL): Remove.
1308         (struct common_block): New.
1309         * f-valprint.c (list_all_visible_commons): Remove.
1310         (info_common_command_for_block): New function.
1311         (info_common_command): Use it.
1312         * stack.c (iterate_over_block_locals): Special case for
1313         COMMON_BLOCK_DOMAIN.
1314         * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1315         constant.
1316         (struct general_symbol_info) <value.common_block>: New field.
1317         (SYMBOL_VALUE_COMMON_BLOCK): New define.
1318
1319 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
1320             Tom Tromey  <tromey@redhat.com>
1321
1322         * f-lang.c (allocate_saved_bf_node,
1323         allocate_saved_function_node, allocate_saved_f77_common_node,
1324         allocate_common_entry_node, tail_common_list, current_common,
1325         saved_bf_list, saved_bf_list_end, current_head_bf_list,
1326         tmp_bf_ptr, add_common_block, add_common_entry,
1327         find_first_common_named, patch_common_entries,
1328         patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1329         global_remote_debug, get_bf_for_fcn, saved_function_list,
1330         saved_function_list_end, clear_function_list, struct saved_fcn,
1331         struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1332         SAVED_BF, SAVED_BF_PTR): Remove.
1333         * f-lang.h (tail_common_list, current_common,
1334         UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1335         BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1336         DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1337         real_main_c_value): Remove.
1338         * f-valprint.c (there_is_a_visible_common_named): Remove.
1339
1340 2012-09-26  Andrew Burgess  <aburgess@broadcom.com>
1341
1342         * breakpoint.c (update_global_location_list): Ignore previous
1343         duplicate status of a breakpoint when starting a new scan for
1344         duplicate breakpoints.
1345
1346 2012-09-26  Karthik Bhat  <kv.bhat@samsung.com>
1347         PR breakpoints/14419
1348         * arm-tdep.c (arm_skip_prologue): Extending producer check to
1349         support LLVM compiler.
1350
1351 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1352
1353         * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
1354         * bfin-tdep.c (bfin_extract_return_value): Likewise.
1355         (bfin_store_return_value): Likewise.
1356         * cris-tdep.c (cris_store_return_value): Likewise.
1357         (cris_extract_return_value): Likewise.
1358         * h8300-tdep.c (h8300_extract_return_value): Likewise.
1359         * hppa-tdep.c (hppa64_return_value): Likewise.
1360         * lm32-tdep.c (lm32_store_return_value): Likewise.
1361         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1362         * spu-tdep.c (spu_value_from_register): Likewise.
1363         * vax-tdep.c (vax_return_value): Likewise.
1364
1365 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1366
1367         * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
1368         parameter LEN to ssize_t.
1369
1370 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1371
1372         * ada-valprint.c (ada_val_print_1): Eliminate single-use
1373         variable LEN.
1374         * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
1375         directly.
1376         (alpha_store_return_value): Likewise.
1377         * amd64-tdep.c (amd64_classify_aggregate): Likewise.
1378         (amd64_push_arguments): Likewise.
1379         * ax-gdb.c (gen_trace_static_fields): Likewise.
1380         (gen_traced_pop): Likewise.
1381         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1382         * breakpoint.c (update_watchpoint): Likewise.
1383         * findcmd.c (parse_find_args): Use local variable for type
1384         instead of length.
1385         * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
1386         * h8300-tdep.c (h8300h_extract_return_value): Likewise.
1387         (h8300_store_return_value): Likewise.
1388         * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1389         Use i386_darwin_arg_type_alignment directly.
1390         * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
1391         * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1392         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1393         (m68hc11_extract_return_value): Likewise.
1394         * mep-tdep.c (mep_push_dummy_call): Likewise.
1395         * printcmd.c (float_type_from_length): Likewise.
1396         * s390-tdep.c (s390_value_from_register): Likewise.
1397         * stack.c (read_frame_arg): Likewise.
1398         * tracepoint.c (encode_actions_1): Likewise.
1399         * valops.c (value_fetch_lazy): Use local variable for type
1400         instead of length.  Use TYPE_LENGTH directly.
1401         * value.c (value_contents_equal): Use TYPE_LENGTH directly.
1402
1403 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
1404
1405         * symtab.c (skip_prologue_sal): Fix typo in comment.
1406
1407 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
1408
1409         * linespec.c (create_sals_line_offset): Fix typo in comment.
1410
1411 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1412
1413         * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
1414         use plongest to print the array size.
1415
1416 2012-09-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
1417
1418         * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1419         * p-valprint.c (pascal_type_print_base): Likewise.
1420
1421 2012-09-22  Yao Qi  <yao@codesourcery.com>
1422
1423         * remote.c (remote_get_trace_status): Remove setting default
1424         values of fields of 'ts'.
1425
1426 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
1427
1428         Fix internal error on canonicalization of clang types.
1429         * cp-name-parser.y (operator): New comment at make_operator call for
1430         new, delete, new[] and delete[].
1431         (exp): Use "sizeof ".  Add new comment at make_operator call.
1432
1433 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
1434
1435         Fix disassemble without parameters in tailcall frame.
1436         * cli/cli-cmds.c (disassemble_current_function): Use
1437         get_frame_address_in_block.
1438
1439 2012-09-21  Tom Tromey  <tromey@redhat.com>
1440
1441         * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1442         TYPE_CODE_UNION>: Unify, removing a goto.
1443
1444 2012-09-21  Tom Tromey  <tromey@redhat.com>
1445
1446         * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1447
1448 2012-09-21  Andrew Burgess  <aburgess@broadcom.com>
1449
1450         * findvar.c (read_frame_register_value): Mark the result value as
1451         optimized out if any of the input registers have been optimized out.
1452
1453 2012-09-21  Andreas Schwab  <schwab@linux-m68k.org>
1454
1455         * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1456
1457 2012-09-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
1458
1459         * eval.c (evaluate_subexp_standard): Eliminate single-use
1460         variable LOWER.
1461
1462 2012-09-21  Yao Qi  <yao@codesourcery.com>
1463
1464         * mi/mi-interp.c: Declare mi_record_changed.
1465         (mi_interpreter_init): Call observer_attach_record_changed.
1466         (mi_record_changed): New.
1467         * record.c (record_open): Call observer_notify_record_changed.
1468         (cmd_record_stop): Call observer_notify_record_changed.
1469         * NEWS: Mention it.
1470
1471 2012-09-20  Tom Tromey  <tromey@redhat.com>
1472
1473         * NEWS: Update.
1474         * python/python.c (finalize_python): New function.
1475         (_initialize_python): Make a final cleanup.
1476
1477 2012-09-19  Doug Evans  <dje@google.com>
1478
1479         * buildsym.h (param_symbols): Delete, unused.
1480         (context_stack): Delete member "params", unused.
1481         * buildsym.c (push_context): Update.
1482         * dwarf2read.c (read_func_scope): Update.
1483
1484 2012-09-19  Thomas Schwinge  <thomas@codesourcery.com>
1485
1486         * sh-tdep.c (sh_register_convert_to_virtual)
1487         (sh_register_convert_to_raw): Add a gdbarch parameter.  Update
1488         all callers.  Just do a memcpy if not the little-endian case.
1489
1490         * h8300-tdep.c (h8300_gdbarch_init): Invoke
1491         set_gdbarch_double_format and set_gdbarch_long_double_format.
1492         * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1493         set_gdbarch_double_format.
1494         * sh-tdep.c (sh_gdbarch_init): Likewise.
1495
1496         * NEWS: Document the removal of SH's 'regs' command.
1497         * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1498         command.
1499
1500 2012-09-18  Sergio Durigan Junior  <sergiodj@redhat.com>
1501
1502         * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1503         `jump'.
1504
1505 2012-09-18  Joel Brobecker  <brobecker@adacore.com>
1506
1507         * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1508         language when iterating over symbols.
1509
1510 2012-09-18  Yao Qi  <yao@codesourcery.com>
1511
1512         * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1513         (mi_interpreter_init): Call observer_attach_tsv_created and
1514         observer_attach_tsv_deleted.
1515         (mi_tsv_created, mi_tsv_deleted): New.
1516         * tracepoint.c (delete_trace_state_variable): Call
1517         observer_notify_tsv_deleted.
1518         (trace_variable_command): Call observer_notify_tsv_created.
1519         (delete_trace_variable_command): Call
1520         observer_notify_tsv_deleted.
1521         (create_tsv_from_upload): Call observer_notify_tsv_created.
1522         * NEWS: Mention it.
1523
1524 2012-09-18  Yao Qi  <yao@codesourcery.com>
1525
1526         * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1527         if traceframe changed.
1528         * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1529         "trace-find".
1530         * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1531         (mi_interpreter_init): Hook mi_traceframe_changed to observer
1532         'traceframe_changed'.
1533         (mi_traceframe_changed): New.
1534         * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1535         New field.
1536         * NEWS: Mention the new MI notification.
1537
1538 2012-09-17  Mike Wrighton  <wrighton@codesourcery.com>
1539
1540         * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1541
1542 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1543
1544         * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1545         (linux_ptrace_test_ret_to_nx): Extend comment for x86_64.  Change
1546         __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1547         Extend code also for PaX support.  Convert all gdb_assert to warning
1548         calls.
1549
1550 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1551
1552         Implement auto-load user conveniences suggested by Doug Evans.
1553         * auto-load.c: Include top.h.
1554         (file_is_auto_load_safe): New variable advice_printed.  Print advice.
1555         (_initialize_auto_load): New variable scripts_directory_help.  Mention
1556         GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1557         scripts-directory.  Document in online help one can use also files for
1558         set auto-load safe-path.
1559         * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1560         * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1561
1562 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
1563
1564         * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1565         of LEN.
1566
1567 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
1568
1569         * m2-valprint.c (m2_print_array_contents): Eliminate variable
1570         ELTLEN and use TYPE_LENGTH directly.
1571         (m2_val_print): Likewise.
1572         * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1573         variable LEN and use TYPE_LENGTH directly.
1574         (m68k_svr4_store_return_value): Likewise.
1575         * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1576         ARGLEN and use TYPE_LENGTH directly.
1577         (mips_o64_push_dummy_call): Likewise.
1578         * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1579         variable LENGTH and use TYPE_LENGTH directly.
1580         (s390_function_arg_float): Likewise.
1581         (s390_function_arg_integer): Likewise.
1582         (s390_push_dummy_call): Likewise.
1583         (s390_return_value_convention): Likewise.
1584         * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1585         TYPE_LENGTH directly.
1586
1587 2012-09-17  Yao Qi  <yao@codesourcery.com>
1588
1589         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1590         Update comment to add_setshow_integer_cmd.
1591         * cli/cli-setshow.c (do_set_command): Handle case
1592         'var_zuinteger_unlimited'.
1593         (do_show_command): Likewise.
1594         * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1595         for command 'remotetimeout'.
1596         * command.h (enum var_types): New zuinteger_unlimited.  Update comment
1597         to var_integer.
1598         * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1599         for command 'set listsize'.
1600
1601 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
1602
1603         * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1604         variable LEN.
1605
1606 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1607
1608         PR 14119
1609         * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1610         (frame_pop): Drop also TAILCALL_FRAME frames.
1611         * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1612
1613 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1614             Pedro Alves  <palves@redhat.com>
1615
1616         PR 14548
1617         * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1618         function start if we are already at function start.  Both for
1619         reverse-next and for reverse-step into function without line number
1620         info.
1621
1622 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1623
1624         Code cleanup - rename 'inline' depth to 'artificial' depth.
1625         * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1626         frame_id_artificial_p, extend the comment.
1627         * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1628         * frame.c (fprint_frame_id): Rename at a user, change debug output
1629         text to "artificial=".
1630         (skip_inlined_frames): Rename to ...
1631         (skip_artificial_frames): ... here.  Extend the comment.
1632         (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1633         (frame_id_inlined_p): Rename to ...
1634         (frame_id_artificial_p): ... here.  Rename at a user.
1635         (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1636         (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1637         at a user.
1638         * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1639         Extend the comment.
1640         (frame_id_inlined_p): Rename to ...
1641         (frame_id_artificial_p): ... here.
1642         * inline-frame.c (inline_frame_this_id): Rename at a user.
1643
1644 2012-09-14  Andrew Burgess  <aburgess@broadcom.com>
1645
1646         * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1647         vector variables using vector_size syntax rather than array
1648         syntax.
1649
1650 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
1651
1652         * valarith.c (value_concat): Replace unsafe ALLOCA with
1653         XMALLOC/XFREE.
1654
1655 2012-09-14  Pedro Alves  <palves@redhat.com>
1656
1657         * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1658
1659 2012-09-14  Khoo Yit Phang  <khooyp@cs.umd.edu>
1660
1661         Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1662         * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1663         data-directory as appropriate.
1664
1665 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
1666
1667         * printcmd.c (ui_printf): Eliminate single-use variable
1668         PARAM_LEN.
1669
1670 2012-09-14  Yao Qi  <yao@codesourcery.com>
1671             Pedro Alves  <palves@redhat.com>
1672
1673         * valops.c (value_assign): Move observer_notify_target_changed
1674         below to replace reinit_frame_cache.
1675
1676 2012-09-13  Khoo Yit Phang  <khooyp@cs.umd.edu>
1677
1678         Refactor Python "gdb" module into a proper Python package, by
1679         introducing a new "_gdb" module for code implemented in C, and
1680         using reload/__import__ instead of exec.
1681         * python/lib/gdb/__init__.py: Import * from _gdb.
1682         (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1683         prompt_hook, sys.argv): Moved from finish_python_initialization.
1684         (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1685         (packages, auto_load_packages): New list and function replacing
1686         module_dict and auto-loading code, using __file__ instead of
1687         gdb.PYTHONDIR and reload/__import__ instead of exec.
1688         (GdbSetPythonDirectory): Replacing function of the same name
1689         from finish_python_initialization, using reload/__import__ instead
1690         of exec, as well as call auto_load_packages.
1691         * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1692         gdb_python_module and not gdb_module.
1693         * python/python-internal.h (gdb_python_module): Declare.
1694         * python/python.c (gdb_python_module): New global.
1695         (before_prompt_hook): Check gdb_python_module and not gdb_module.
1696         (_initialize_python): Rename gdb module to _gdb.
1697         Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1698         (finish_python_initialization): Move Python code to
1699         lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1700         __main__.
1701
1702 2012-09-13  Pedro Alves  <palves@redhat.com>
1703
1704         * Makefile.in (COMMON_OBS): Add registry.o.
1705         * registry.c: New file.
1706         * registry.h (struct registry_container): Declare.
1707         (registry_data_callback): New typedef.
1708         (struct registry_data, struct registry_data_registration, struct
1709         registry_data_registry): New type.
1710         (register_data_with_cleanup, registry_alloc_data)
1711         (registry_callback_adaptor, registry_clear_data)
1712         (registry_container_free_data, registry_set_data, registry_data):
1713         Declare.
1714         (DEFINE_REGISTRY): Refactor structures and functions as shims over
1715         the new common structures and functions.
1716         (DECLARE_REGISTRY): Declare struct TAG ## _data.  Use the tagged
1717         callback typedefs.
1718
1719 2012-09-12  Mike Wrighton  <wrighton@codesourcery.com>
1720
1721         * remote.c (remote_insert_hw_breakpoint): Throw exception if
1722         there is an error inserting hardware breakpoints and use the
1723         error message from the target.
1724
1725         * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1726         Catch this exception and print the error message contained within. Do not
1727         print the default hardware error breakpoint message in this case.
1728
1729 2012-09-12  Doug Evans  <dje@google.com>
1730
1731         * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1732         cu == NULL.
1733
1734 2012-09-11  Doug Evans  <dje@google.com>
1735
1736         * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1737         .gdb_index symbol attributes if there are none.
1738
1739 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
1740
1741         * symtab.h (struct minimal_symbol) [has_size]: New field.
1742         (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1743         (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1744         * printcmd.c (build_address_symbolic): Only filter out zero-sized
1745         minimal symbols if the symbol's size is actually known.
1746         * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1747         of msymbol's size field.  Add comment.
1748         * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1749         SET_MSYMBOL_SIZE to set the minimal symbol size.
1750
1751 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
1752
1753         * minsyms.c (install_minimal_symbols): Use memset to fill entire
1754         minimal_symbol struct object, rather than setting some of its
1755         fields one by one.
1756
1757 2012-09-11  Andrew Burgess  <aburgess@broadcom.com>
1758
1759         * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1760         passed_a_ptr flag when displaying typedef types.
1761
1762 2012-09-10  Joel Brobecker  <brobecker@adacore.com>
1763
1764         * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1765         the optimized_out flag is preserved.
1766
1767 2012-09-10  Anthony Green  <green@moxielogic.com>
1768
1769         * moxie-tdep.c (moxie_analyze_prologue): Update for function
1770         prologue changes in GCC.
1771
1772 2012-09-10  Keith Seitz  <keiths@redhat.com>
1773
1774         PR gdb/13483
1775         * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1776         (BOOL_CONVERSION_BADNESS): ... this.
1777         * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1778         (rank_one_type): Allow all boolean conversions
1779         permitted by the standard.
1780
1781 2012-09-06  Tom Tromey  <tromey@redhat.com>
1782
1783         * python/py-newobjfileevent.c (create_new_objfile_event_object):
1784         Don't decref py_objfile.
1785
1786 2012-09-02  Khoo Yit Phang  <khooyp@cs.umd.edu>
1787
1788         Do not enable -lmcheck by default when Python is enabled with
1789         threading support.
1790         * configure.ac: (python_has_threads) New variable, by testing
1791         if WITH_THREAD is defined in Python.h.
1792         Move --enable-lmcheck after --with-python.
1793         Do not enable -lmcheck by default if python_has_threads=yes.
1794         Warn if --enable-lmcheck and python_has_threads=yes.
1795         * configure: Regenerate.
1796
1797 2012-08-31  Yao Qi  <yao@codesourcery.com>
1798
1799         * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1800         DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1801         Update some commands.
1802         * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1803         * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1804         to 1.
1805
1806 2012-08-31  Yao Qi  <yao@codesourcery.com>
1807
1808         * mi/mi-cmds.c (mi_cmds): Add 'static'.
1809
1810 2012-08-30  Khoo Yit Phang  <khooyp@cs.umd.edu>
1811
1812         * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1813
1814 2012-08-29  Doug Evans  <dje@google.com>
1815
1816         * main.c (print_gdb_help): Remove reference to
1817         --use-deprecated-index-sections.
1818
1819 2012-08-28  Yao Qi  <yao@codesourcery.com>
1820
1821         * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1822         (init_cmds): Call add_setshow_uinteger_cmd for command
1823         'max-user-call-depth'.
1824         * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1825         declaration of 'max_user_call_depth'.
1826         * frame.c (backtrace_limit): Add 'unsigned'.
1827         (_initialize_frame): Call add_setshow_uinteger_cmd for command
1828         'limit'.
1829         * remote.c (remoteaddresssize): Add 'unsigned'.
1830         (remote_address_masked): Change local var 'address_size' to
1831         'unsigned'.
1832         (_initialize_remote): Call add_setshow_uinteger_cmd for
1833         'remoteaddresssize'.
1834         * top.c (history_size): Add 'unsigned'.
1835         (show_commands): Change local variables to 'unsigned'.
1836         (set_history_size_command): Don't check history_size is negative.
1837         Adjust the condition to call unstifle_history and set history_size
1838         to UNIT_MAX.
1839
1840 2012-08-28  Pedro Alves  <palves@redhat.com>
1841
1842         PR gdb/14428
1843
1844         * infcmd.c (default_print_one_register_info): New, factored out
1845         from default_print_registers_info.
1846         (default_print_registers_info): Use it.  Mark value unavailable if
1847         necessary.
1848         (registers_info): Print user registers with
1849         default_print_one_register_info.
1850
1851 2010-08-27  H.J. Lu  <hongjiu.lu@intel.com>
1852
1853         PR tui/14486
1854         * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1855         is not NULL before referencing it.
1856
1857 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1858
1859         * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1860         variable pc.  Call find_pc_line instead of find_pc_overlay, restore
1861         original PC for it.
1862
1863 2012-08-27  Eli Zaretskii  <eliz@gnu.org>
1864             Jan Kratochvil  <jan.kratochvil@redhat.com>
1865
1866         * auto-load.c (auto_load_objfile_script): Rename to ...
1867         (auto_load_objfile_script_1): ... here, change variable realname to
1868         parameter realname, document it, add return value, add variable retval.
1869         (auto_load_objfile_script): New function.
1870
1871 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1872
1873         * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1874         followed by a whitespace.
1875
1876 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1877
1878         PR gdb/14494.
1879         * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1880         Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1881         (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1882         here.
1883
1884 2012-08-27  Wei-cheng Wang  <cole945@gmail.com>
1885
1886         * memattr.c (create_mem_region): Fix memory region overlapping
1887         checking.
1888
1889 2012-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
1890
1891         * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1892         with xmalloc/cleanup.
1893         * mt-tdep.c (mt_push_dummy_call): Likewise.
1894         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1895         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1896
1897 2012-08-24  Yao Qi  <yao@codesourcery.com>
1898
1899         * jv-exp.y (push_expression_name): Add "." at the end of error
1900         message.
1901
1902 2012-08-23  Khoo Yit Phang <khooyp@cs.umd.edu>
1903
1904         Document how to return from "python-interactive" to GDB.
1905         * python/python.c (_initialize_python): Update documentation.
1906
1907 2012-08-23  Pedro Alves  <palves@redhat.com>
1908
1909         * infrun.c (_initialize_infrun) <handle command help text>:
1910         Mention that multiple signals are supported.
1911
1912 2012-08-23  Pedro Alves  <palves@redhat.com>
1913
1914         * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1915         string.
1916
1917 2012-08-23  Yao Qi  <yao@codesourcery.com>
1918
1919         * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1920         (tfind_1): Don't call registers_changed, set_traceframe_num,
1921         and clear_traceframe_info.
1922         Call set_current_traceframe.
1923         (set_current_traceframe): call set_traceframe_num.
1924
1925 2012-08-22  Sergio Durigan Junior  <sergiodj@redhat.com>
1926
1927         * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1928         `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1929
1930 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
1931
1932         Enable readline in Python in a GDB-specific way and block the
1933         standard Python readline module to prevent conflicts with GDB.
1934         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1935         (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1936         (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1937         * python/py-gdb-readline.c: New file.
1938         * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1939         prototype.
1940         * python/python.c (_initialize_python): Call
1941         gdbpy_initialize_gdb_readline.
1942
1943 2012-08-22  Keith Seitz  <keiths@redhat.com>
1944
1945         * defs.h: Include build-gnulib/config.h
1946
1947 2012-08-22  Joseph Myers  <joseph@codesourcery.com>
1948
1949         * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1950         and blx pc.
1951
1952 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
1953
1954         Add a new "python-interactive" command that starts a standard
1955         Python interactive prompt with "pi" as alias, and add "py" as
1956         an alias to "python".
1957         * NEWS: Mention the new commands.
1958         * python/python.c (eval_python_command): New function.
1959         (python_interactive_command): For "python-interactive" with
1960         arguments, call eval_python_command.  For "python-interactive"
1961         without arguments, call PyRun_InteractiveLoop.
1962         (_initialize_python): Add "python-interactive" command with
1963         "pi" as alias, and add "py" as an alias to "python".
1964
1965 2012-08-22  Tom Tromey  <tromey@redhat.com>
1966
1967         * defs.h (quit_flag): Don't declare.
1968         (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1969         (QUIT): Use new functions.
1970         * event-top.c (command_handler): Use clear_quit_flag.
1971         (handle_sigint): Use set_quit_flag.
1972         (async_request_quit): Use check_quit_flag.  Don't check
1973         immediate_quit.
1974         * exceptions.c (throw_exception): Use clear_quit_flag.
1975         * main.c (captured_main): Use clear_quit_flag.
1976         * python/python.c (clear_quit_flag, set_quit_flag)
1977         (check_quit_flag): New functions.
1978         * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1979         clear_quit_flag.
1980         * remote.c (remote_wait_as): Use check_quit_flag,
1981         clear_quit_flag.
1982         (remote_start_remote): Call QUIT.
1983         * symfile.c (load_progress): Use check_quit_flag.
1984         * top.c (command_loop): Use clear_quit_flag.
1985         (command_line_input): Call QUIT.
1986         * utils.c (quit_flag): Conditionally define.
1987         (clear_quit_flag, check_quit_flag, set_quit_flag): New
1988         functions.
1989         (prompt_for_continue): Call QUIT.  Use quit, not
1990         async_request_quit.
1991         * remote-mips.c (mips_expect_timeout): Call QUIT.
1992         * monitor.c (monitor_expect): Call QUIT.
1993
1994 2012-08-22  Tom Tromey  <tromey@redhat.com>
1995
1996         * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1997         (async_init_signals): Update.
1998         * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1999         (SIGWINCH_HANDLER_BODY): Remove.
2000
2001 2012-08-22  Tom Tromey  <tromey@redhat.com>
2002
2003         * jit.c (jit_object_close_impl): Don't malloc the objfile
2004         name.
2005         * objfiles.c (allocate_objfile): Don't malloc the objfile
2006         name.
2007         (free_objfile): Don't free the objfile name.
2008         * objfiles.h (struct objfile) <name>: Update comment.
2009         * symfile.c (reread_symbols): Fix reference counting.  Don't
2010         malloc objfile name.
2011
2012 2012-08-22  Tom Tromey  <tromey@redhat.com>
2013
2014         * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2015         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2016         (symfile_bfd_open): Likewise.
2017         (generic_load): Likewise.
2018         * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2019         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2020         gdb_bfd_open.
2021         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2022         Use gdb_bfd_open.
2023         * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2024         * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2025         (pmon_load_fast): Likewise.
2026         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2027         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2028         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2029         (macho_check_dsym): Likewise.
2030         * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2031         (m32r_upload_command): Likewise.
2032         * gdb_bfd.h (gdb_bfd_cache): Declare.
2033         * gdb_bfd.c (struct gdb_bfd_data): New.
2034         (gdb_bfd_cache): New global.
2035         (struct gdb_bfd_cache_search): New.
2036         (hash_bfd): New function.
2037         (eq_bfd): Likewise.
2038         (gdb_bfd_open): Likewise.
2039         (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2040         (gdb_bfd_unref): Remove closed BFD from cache.  Update for
2041         gdb_bfd_data.
2042         * exec.c (exec_file_attach): Use gdb_bfd_open.
2043         * dsrec.c (load_srec): Use gdb_bfd_open.
2044
2045 2012-08-22  Tom Tromey  <tromey@redhat.com>
2046
2047         * dwarf2read.c (macro_start_file): Update.
2048         * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2049         (free_objfile_per_bfd_storage): Destroy macro_cache.
2050         (allocate_objfile, free_objfile): Update.
2051         * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2052         New field.
2053         (struct objfile) <macro_cache>: Remove.
2054         * symfile.c (reread_symbols): Update.
2055         * symmisc.c (print_symbol_bcache_statistics): Update.
2056         (print_objfile_statistics): Update.
2057
2058 2012-08-22  Tom Tromey  <tromey@redhat.com>
2059
2060         * elfread.c (elf_symtab_read): Update.
2061         * objfiles.c (objfiles_bfd_data): New global.
2062         (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2063         (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2064         (allocate_objfile, free_objfile): Update.
2065         (_initialize_objfiles): Initialize objfiles_bfd_data.
2066         * objfiles.h (struct objfile_per_bfd_storage): New.
2067         (struct objfile) <per_bfd>: New field.
2068         <filename_cache>: Remove.
2069         (set_objfile_per_bfd): Declare.
2070         * symfile.c (reread_symbols): Update.  Call
2071         set_objfile_per_bfd.
2072         (allocate_symtab): Update.
2073         * symmisc.c (print_symbol_bcache_statistics): Update.
2074         (print_objfile_statistics): Print the size of the BFD obstack.
2075
2076 2012-08-22  Tom Tromey  <tromey@redhat.com>
2077
2078         * gdb_bfd.h: Include registry.h.  Use DECLARE_REGISTRY.
2079         * gdb_bfd.c: Use DEFINE_REGISTRY.
2080         (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2081         (gdb_bfd_ref): Call bfd_alloc_data.
2082         (gdb_bfd_unref): Call bfd_free_data.
2083
2084 2012-08-22  Tom Tromey  <tromey@redhat.com>
2085
2086         * registry.h (struct registry_fields): New.
2087         (REGISTRY_FIELDS): Redefine.
2088         (REGISTRY_ACCESS_FIELD): New macro.
2089         (DEFINE_REGISTRY): Add ACCESS argument.  Update defined
2090         functions.
2091
2092 2012-08-22  Tom Tromey  <tromey@redhat.com>
2093
2094         * auto-load.c (_initialize_auto_load): Update.
2095         * solib-svr4.c (_initialize_svr4_solib): Update
2096         * solib-dsbt.c (_initialize_dsbt_solib): Update.
2097         * solib-darwin.c (_initialize_darwin_solib): Update.
2098         * registry.h: New file.
2099         * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2100         * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2101         * progspace.h: Include registry.h.  Use DECLARE_REGISTRY.
2102         (register_program_space_data_with_cleanup)
2103         (register_program_space_data, program_space_alloc_data)
2104         (clear_program_space_data, set_program_space_data)
2105         (program_space_data): Don't declare.
2106         * progspace.c: Use DEFINE_REGISTRY.
2107         (struct program_space_data, struct
2108         program_space_data_registration, struct
2109         program_space_data_registry, program_space_data_registry)
2110         (register_program_space_data_with_cleanup)
2111         (register_program_space_data, program_space_alloc_data)
2112         (program_space_free_data, clear_program_space_data)
2113         (set_program_space_data, program_space_data): Remove.
2114         * objfiles.h: Include registry.h.  Use DECLARE_REGISTRY.
2115         (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2116         (register_objfile_data_with_cleanup, register_objfile_data)
2117         (clear_objfile_data, set_objfile_data, objfile_data): Don't
2118         declare.
2119         * objfiles.c: Use DEFINE_REGISTRY.
2120         (struct objfile_data, struct objfile_data_registration, struct
2121         objfile_data_registry, objfile_data_registry)
2122         (register_objfile_data_with_cleanup, register_objfile_data)
2123         (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2124         (set_objfile_data, objfile_data): Remove.
2125         (_initialize_objfiles): Update.
2126         * jit.c (_initialize_jit): Update.
2127         * inflow.c (_initialize_inflow): Update.
2128         * inferior.h: Include registry.h.  Use DECLARE_REGISTRY.
2129         (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2130         (register_inferior_data_with_cleanup, register_inferior_data)
2131         (clear_inferior_data, set_inferior_data, inferior_data): Don't
2132         declare.
2133         * inferior.c: Use DEFINE_REGISTRY.
2134         (struct inferior_data, struct inferior_data_registration, struct
2135         inferior_data_registry, inferior_data_registry)
2136         (register_inferior_data_with_cleanup, register_inferior_data)
2137         (inferior_alloc_data, inferior_free_data  clear_inferior_data)
2138         (set_inferior_data, inferior_data): Remove.
2139         * auxv.c (_initialize_auxv): Update.
2140         * ada-lang.c (_initialize_ada_language): Update.
2141         * breakpoint.c (_initialize_breakpoint): Update.
2142         * i386-nat.c (i386_use_watchpoints): Update.
2143
2144 2012-08-22  Tom Tromey  <tromey@redhat.com>
2145
2146         * exec.c (exec_close, exec_file_attach): Update.
2147         (add_to_section_table): Initialize 'key' field.
2148         (add_target_sections, remove_target_sections): Add 'key' argument.
2149         * exec.h (add_target_sections, remove_target_sections): Add
2150         'key' argument.
2151         * solib.c (solib_map_sections, update_solib_list, clear_solib)
2152         (reload_shared_libraries_1): Update.
2153         * target.h (struct target_section) <key>: New field.
2154
2155 2012-08-22  Tom Tromey  <tromey@redhat.com>
2156
2157         * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2158
2159 2012-08-21  Pierre Muller  <muller@ics.u-strasbg.fr>
2160
2161         * symfile.c (allocate_symtab): Use host_address_to_string
2162         function instead of cast of pointer to long which is not
2163         compatible with x86_64-w64-mingw32 build.
2164
2165 2012-08-19  Andrew Pinski  <apinski@cavium.com>
2166
2167         * mips-tdep.c (is_octeon): New function.
2168         (is_octeon_bbit_op): New function.
2169         (mips32_next_pc): Handle Octeon's bbit instructions.
2170         (mips32_instruction_has_delay_slot): Likewise.
2171
2172 2012-08-19  Andrew Pinski  <apinski@cavium.com>
2173
2174         * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2175         before the function.
2176
2177 2012-08-19  Andrew Pinski  <apinski@cavium.com>
2178
2179         * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2180
2181 2012-08-19  Keith Seitz  <keiths@redhat.com>
2182
2183         PR c++/14365
2184         * c-typeprint.c (c_type_print_varspec_prefix): Pass
2185         -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2186
2187 2012-08-18  Eli Zaretskii  <eliz@gnu.org>
2188
2189         * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2190         The typo broke "make TAGS".
2191
2192 2012-08-17  Joel Brobecker  <brobecker@adacore.com>
2193
2194         GDB 7.5 released.
2195
2196 2012-08-17  Keith Seitz  <keiths@redhat.com>
2197
2198         PR c++/13356
2199         * gdbtypes.c (strict_type_checking): New variable.
2200         (show_strict_type_checking): New function.
2201         (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2202         if strict type checking is disabled.
2203         (_initialize_gdbtypes): Add "check type" subcommand.
2204         * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2205
2206 2012-08-17  Keith Seitz  <keiths@redhat.com>
2207
2208         * language.h (type_mode): Remove.
2209         (type_check): Remove.
2210         (struct language_defn): Remove la_type_check.
2211         (STRICT_TYPE): Remove unused macro.
2212         (type_error): Remove.
2213         * language.c (set_type_range_case): Renamed to ...
2214         (set_range_case): ... this.  Update all callers.
2215         Remove type_mode/type_check.
2216         (type_mode): Remove.
2217         (type_check): Remove.
2218         (show_type_command): Remove.
2219         (set_type_command): Remove.
2220         (language_info): Remove type checking output.
2221         (type_error): Remove unused function.
2222         (range_error): Update comment.
2223         (unknown_language_defn): Remove la_type_check.
2224         (auto_language_defn): Likewise.
2225         (local_language_defn): Likewise.
2226         (_initialize_language): Remove "check type" subcommand.
2227         * ada-lang.c (ada_language_defn): Remove la_type_check.
2228         * c-lang.c (c_language_defn): Likewise.
2229         (cplus_language_defn): Likewise.
2230         (asm_language_defn): Likewise.
2231         (minimal_language_defn): Likewise.
2232         * d-lang.c (d_language_defn): Likewise.
2233         * f-lang.c (f_language_defn): Likewise.
2234         * go-lang.c (go_language_defn): Likewise.
2235         * jv-lang.c (java_language_defn): Likewise.
2236         * m2-lang.c (m2_language_defn): Likewise.
2237         * objc-lang.c (objc_language_defn): Likewise.
2238         * opencl-lang.c (opencl_language_defn): Likewise.
2239         * p-lang.c (pascal_language_defn): Likewise.
2240
2241 2012-08-16  Mike Frysinger  <vapier@gentoo.org>
2242
2243         * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2244
2245 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
2246
2247         * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2248         New function.
2249         (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2250         using the regache.  Use ia64_hpux_get_register_from_save_state_t
2251         to access the bsp and bspstore registers if not.
2252
2253 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
2254
2255         * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2256         * breakpoint.c (detach_breakpoints): Change pid parameter into
2257         a ptid.  Adjust code accordingly.
2258         * infrun.c (handle_inferior_event): Delete variable child_pid.
2259         Update call to detach_breakpoints to pass the child ptid for
2260         fork events.
2261         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2262         assert that inferior_ptid's lwp is zero.
2263         (linux_handle_extended_wait): Update call to detach_breakpoints.
2264         * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2265         detach_breakpoints.
2266
2267 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
2268
2269         * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2270         parent, only call detach_breakpoints if tts.tts_event ==
2271         TTEVT_VFORK.
2272
2273 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
2274
2275         * dwarf2-frame.c (dwarf2_frame_cache): Use
2276         get_frame_address_in_block instead of get_frame_pc as
2277         the bound for executing the frame's FDE.
2278
2279 2012-08-16  Yao Qi  <yao@codesourcery.com>
2280
2281         * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2282         * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2283         * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2284         (c_type_print_varspec_suffix): Likewise.
2285         * eval.c (evaluate_subexp_standard): Likewise.
2286         * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2287         (f_type_print_varspec_suffix): Likewise.
2288         * gdbtypes.c (is_scalar_type): Likewise.
2289         (recursive_dump_type): Likewise.
2290         * infcall.c (value_arg_coerce): Likewise.
2291         * m2-valprint.c (m2_val_print): Likewise.
2292         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2293         (pascal_type_print_varspec_suffix): Likewise.
2294         (pascal_type_print_base): Likewise.
2295         * p-valprint.c (pascal_val_print): Likewise.
2296         (pascal_val_print): Likewise.
2297         * valops.c (value_slice): Likewise.
2298         * valprint.c (scalar_type_p): Likewise.
2299         * valarith.c (value_bitstring_subscript): Remove.
2300         (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2301         Remove comment on TYPE_CODE_BITSTRING.
2302
2303         * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2304         TYPE_CODE_BITSTRING.
2305
2306         * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2307         slot 0.
2308
2309 2012-08-16  Yao Qi  <yao@codesourcery.com>
2310
2311         * tracepoint.c (trace_find_none_command): Remove.
2312         (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2313
2314 2012-08-16  Yao Qi  <yao@codesourcery.com>
2315
2316         * remote.c (handle_notification): Remove parameter 'length'.
2317         (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2318
2319 2012-08-15  Keith Seitz  <keiths@redhat.com>
2320
2321         * gdbtypes.c (opaque_type_resolution): Make static.
2322         Add missing comment.
2323         (overload_debug): Add missing comment.
2324         (show_opaque_type_resolution): Likewise.
2325         (show_overload_debug): Likewise.
2326         (print_bit_vector): Remove unnecessary forward declaration.
2327         (print_arg_types): Likewise.
2328         (dump_fn_fieldlists): Likewise.
2329         (print_cplus_stuff): Likewise.
2330
2331 2012-08-15  Tom Tromey  <tromey@redhat.com>
2332
2333         * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2334         (gdb_bfd_ref): Initialize new field.
2335         (gdb_bfd_unref): Unref the archive BFD.
2336         (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2337         parent archive.
2338
2339 2012-08-15  Tom Tromey  <tromey@redhat.com>
2340
2341         PR python/14387:
2342         * python/py-bpevent.c (create_breakpoint_event_object): Update
2343         comment.
2344         * python/py-event.c (evpy_add_attribute): Update comment.
2345         * python/py-exitedevent.c (create_exited_event_object): Fix
2346         reference counting and error handling.
2347         * python/py-newobjfileevent.c (create_new_objfile_event_object):
2348         Fix reference counting.
2349         * python/py-signalevent.c (create_signal_event_object): Fix
2350         reference counting and error handling.
2351         * python/py-stopevent.c (emit_stop_event): Fix reference
2352         counting.
2353         * python/py-threadevent.c (get_event_thread): Return a
2354         borrowed reference.
2355         * python/py-type.c (convert_field): Fix reference counting.
2356
2357 2012-08-15  Tom Tromey  <tromey@redhat.com>
2358
2359         * dwarf2read.c (dwarf_decode_macro_bytes)
2360         <DW_MACRO_GNU_transparent_include>: Use pointer to included data
2361         as hash key.
2362
2363 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
2364
2365         * infcmd.c (_initialize_infcmd): Update help text for the signal,
2366         stepi, nexti, finish, next, step, jump, and continue commands.
2367         * infrun.c (_initialize_infrun): Update help text for the handle
2368         command.
2369
2370 2012-08-14  Doug Evans  <dje@google.com>
2371
2372         * gdbtypes.c (struct extra): Delete, unused.
2373
2374         * gdbtypes.c: Whitespace cleanup.
2375         (address_space_name_to_int): Remove "extern" from definition.
2376         (_initialize_gdbtypes): Declare with initialize_file_ftype.
2377
2378         * gdbtypes.c (make_pointer_type): Remove redundant setting of
2379         TYPE_POINTER_TYPE (type).
2380
2381 2012-08-14  Gary Benson  <gbenson@redhat.com>
2382
2383         * solib-svr4.c (svr4_free_library_list): Use free_so.
2384
2385 2012-08-13  Mike Frysinger  <vapier@gentoo.org>
2386
2387         * .gitignore: Add go-exp.c.
2388
2389 2012-08-13  Doug Evans  <dje@google.com>
2390
2391         * value.c (show_convenience): Tweak comment.
2392         (_initialize_values): Mention convenience functions in the help text
2393         for "show convenience".
2394
2395 2012-08-13  Yao Qi  <yao@codesourcery.com>
2396
2397         * std-operator.def: Remove TERNOP_SLICE_COUNT.
2398         * breakpoint.c (watchpoint_exp_is_const): Remove handling to
2399         TERNOP_SLICE_COUNT.
2400         * eval.c (evaluate_subexp_standard): Likewise.
2401         * expprint.c (print_subexp_standard): Likewise.
2402         (dump_subexp_body_standard): Likewise.
2403         * parse.c (operator_length_standard): Likewise.
2404
2405 2012-08-13  Yao Qi  <yao@codesourcery.com>
2406
2407         * std-operator.def: Remove OP_BITSTRING.
2408         * breakpoint.c (watchpoint_exp_is_const): Update.
2409         * eval.c (evaluate_subexp_standard): Remove handling to
2410         OP_BITSTRING.
2411         * expprint.c (print_subexp_standard): Likewise.
2412         (dump_subexp_body_standard): Likewise.
2413         * parse.c (operator_length_standard): Likewise.
2414         * valops.c (value_bitstring): Remove.
2415         * value.h: Remove the declaration of 'value_bitstring'.
2416
2417 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
2418
2419         * linespec.c (find_methods): Remove unused variables `i1' and
2420         `name_len'.
2421         (decode_line_full): Likewise for `arg_start'.
2422
2423 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
2424
2425         * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2426         (zlib_decompress_section): Likewise for `section_data'.
2427         (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2428
2429 2012-08-10  Doug Evans  <dje@google.com>
2430
2431         Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2432         * NEWS: Document them.
2433         * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2434         function/strfns.py.
2435         * python/py-type.c (typy_array_1): New function.
2436         (typy_array): Call it.
2437         (typy_vector): New function.
2438         (type_object_methods): Add "vector".
2439         * python/lib/gdb/function/__init__.py: New file.
2440         * python/lib/gdb/function/strfns.py: New file.
2441
2442 2012-08-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
2443
2444         * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2445         for TYPE_FIELD_BITPOS.
2446         (typy_get_sizeof): Likewise for TYPE_LENGTH.
2447
2448 2012-08-10  Mike Frysinger  <vapier@gentoo.org>
2449
2450         PR cli/10436:
2451         * common/vec.h (VEC_merge): Define.
2452         (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2453         (DEF_VEC_ALLOC_FUNC_P): Likewise.
2454         (DEF_VEC_ALLOC_FUNC_O): Likewise.
2455         * completer.c: Include gdb_signals.h.
2456         (signal_completer): Define.
2457         * completer.h (signal_completer): Add prototype.
2458         * infcmd.c (_initialize_infcmd): Assign the command
2459         completer for "signal" to handle_completer.
2460         * infrun.c: Include completer.h.
2461         (handle_completer): Define.
2462         (_initialize_infrun): Declare a new local variable c.  Store the
2463         result of add_com("handle") to it.  Assign the command
2464         completer for "handle" to handle_completer.
2465
2466 2012-08-09  Yao Qi  <yao@codesourcery.com>
2467
2468         * cli/cli-decode.c (set_cmd_prefix): New.
2469         (lookup_cmd_for_prefixlist): New.
2470         (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2471         of each cmd_list_element in *prefixlist.
2472         (add_setshow_cmd_full): set_cmd_prefix.
2473         (add_alias_cmd): Likewise.
2474         * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2475         Declare 'auto_boolean_enums'.
2476         * cli/cli-setshow.c: Include "observer.h".
2477         (notify_command_param_changed_p): New.
2478         (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2479         Remove 'static'.
2480         (do_setshow_command): Split it to ...
2481         (do_set_command, do_show_command): ... them.  New.
2482         (do_set_command): Call observer_notify_command_param_changed if
2483         notify_command_param_changed_p returns true.
2484         (cmd_show_list): Caller update.
2485         * auto-load.c (set_auto_load_cmd): Likewise.
2486         * remote.c (show_remote_cmd): Likewise.
2487         * cli/cli-setshow.h: Update declarations.
2488         * top.c (execute_command): Call do_set_command and do_show_command.
2489
2490         * NEWS: Mention new MI notification.
2491         * mi/mi-interp.c: Declare mi_command_param_changed.
2492         (mi_interpreter_init): Attach mi_command_param_changed to
2493         observer command_param_changed.
2494         (mi_command_param_changed): New.
2495         Remove mi_suppress_breakpoint_notifications.
2496         Define global variable mi_suppress_notification.
2497         (mi_breakpoint_created): Update.
2498         (mi_breakpoint_deleted): Likewise.
2499         (mi_breakpoint_modified): Likewise.
2500         * mi/mi-main.c (mi_cmd_execute): Likewise.  Check command
2501         'gdb-set' and set mi_suppress_notification.
2502         * mi/mi-main.h: (mi_suppress_notification): New struct.
2503
2504 2012-08-09  Andreas Tobler  <andreast@fgznet.ch>
2505             Jan Kratochvil  <jan.kratochvil@redhat.com>
2506
2507         * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2508
2509 2012-08-09  Yao Qi  <yao@codesourcery.com>
2510
2511         * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2512         (skiplist): Move it to skip.c.
2513         (init_cmd_lists): Remove code setting enablebreaklist and
2514         skiplist to NULL.
2515         * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2516         * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2517         skiplist.
2518         * gdbcmd.h: Likewise.
2519         * skip.c (_initialize_step_skip): Move 'skiplist' from
2520         cli/cli-cmds.c.
2521
2522 2012-08-09  Yao Qi  <yao@codesourcery.com>
2523
2524         * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2525         * gnu-nat.c, symfile.c: Likewise.
2526
2527 2012-08-08  Aaron Gamble  <agamble@google.com>
2528
2529         * utils.c (prompt_for_continue_wait_time): New static global.
2530         (make_command_stats_cleanup): Initialize it.
2531         (report_command_stats): Subtract time waiting for user.
2532         (prompt_for_continue): Track time waiting for user.
2533         (defaulted_query): Track time waiting for user.
2534
2535 2012-08-08  Doug Evans  <dje@google.com>
2536
2537         * eval.c (evaluate_subexp_standard): Fix thinko in handling
2538         UNOP_MEMVAL_TYPE.
2539         * expprint.c (print_subexp_standard, case OP_TYPE): New.
2540         (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2541         (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2542         (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2543         (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2544         (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2545         elt.
2546         (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2547         (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2548         (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2549         (dump_prefix_expression): Handle OP_TYPE.
2550
2551 2012-08-08  Keith Seitz  <keiths@redhat.com>
2552
2553         * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2554         addr_start.
2555
2556 2012-08-08  Doug Evans  <dje@google.com>
2557
2558         * linux-thread-db.c: #include "gdb_vecs.h".
2559         (try_thread_db_load_from_pdir_1): New arg "subdir".  All callers
2560         updated.
2561         (try_thread_db_load_from_pdir): New arg "subdir".  All callers updated.
2562         (thread_db_load_search): Use a vector to iterate over path elements.
2563         Handle text appearing after "$pdir".
2564
2565         * gdb_string.h: Moved to ...
2566         * common/gdb_string.h: ... here.
2567         * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2568         gdb_string.h and gdb_assert.h.
2569
2570 2012-08-08  Yao Qi  <yao@codesourcery.com>
2571
2572         * tic6x-tdep.c (tic6x_register_to_value): Remove.
2573         (tic6x_value_to_register): Likewise.
2574         (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2575         and set_gdbarch_value_to_register.
2576
2577 2012-08-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
2578             Jean-Marc Saffroy  <saffroy@gmail.com>
2579
2580         PR 11804
2581         * defs.h (find_memory_region_ftype): New comment.  New arg modified.
2582         * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2583         * gcore.c (gcore_create_callback): New function comment.  Add modified
2584         parameter.  Only write modified regions.  Set SEC_READONLY exactly
2585         according to MODIFIED.
2586         (objfile_find_memory_regions): Ignore separate debug info files.  Ass
2587         the passed modified value to FUNC.
2588         * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2589         * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2590         first.  New variables modified and has_anonymous.  Parse the lines of
2591         smaps file.  Add the passed MODIFIED value to FUNC.
2592         * procfs.c (find_memory_regions_callback): Add the passed modified
2593         value.
2594
2595 2012-08-06  Tom Tromey  <tromey@redhat.com>
2596
2597         * dwarf2-frame.c (clear_pointer_cleanup): New function.
2598         (dwarf2_frame_cache): Use it.
2599         * frame-unwind.h (frame_sniffer_ftype): Document prologue
2600         cache initialization constraint.
2601
2602 2012-08-06  Tom Tromey  <tromey@redhat.com>
2603
2604         PR python/14386:
2605         * varobj.c (update_dynamic_varobj_children): Don't call
2606         PyIter_Check.
2607
2608 2012-08-06  Tom Tromey  <tromey@redhat.com>
2609
2610         PR cli/14392:
2611         * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2612
2613 2012-08-06  Nathaniel Flath  <flat0103@gmail.com>
2614
2615         * NEWS: New entry for 'cd' default parameters.
2616         * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2617
2618 2012-08-03  Tom Tromey  <tromey@redhat.com>
2619
2620         * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2621         return.
2622
2623 2012-08-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
2624
2625         * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2626         to attempting lseek/write.
2627         (inf_child_fileio_pread): Likewise for pread.
2628
2629 2012-08-02  Yao Qi  <yao@codesourcery.com>
2630
2631         * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2632         (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2633         add_setshow_zinteger_cmd.
2634         * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2635         * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2636         (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2637         instead of add_setshow_zinteger_cmd.
2638         * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2639         (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2640         instead of add_setshow_zinteger_cmd.
2641         * frame.c (frame_debug): Add 'unsigned'.
2642         (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2643         add_setshow_zinteger_cmd.
2644         * frame.h: Update the declaration of 'frame_debug'.
2645         * gdbtypes.c (overload_debug): Add 'unsigned'.
2646         (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2647         add_setshow_zinteger_cmd.
2648         * inferior.h: Update declaration of 'debug_infrun'.
2649         * infrun.c (debug_infrun): Add 'unsigned'.
2650         (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2651         add_setshow_zinteger_cmd.
2652         * jit.c (jit_debug): Add 'unsigned'.
2653         (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2654         add_setshow_zinteger_cmd.
2655         * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2656         (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2657         instead of add_setshow_zinteger_cmd.
2658         * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2659         (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2660         add_setshow_zinteger_cmd.
2661         * machoread.c (mach_o_debug_level): Add 'unsigned'.
2662         (_initialize_machoread): Call add_setshow_zuinteger_cmd
2663         instead of add_setshow_zinteger_cmd.
2664         * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2665         * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2666         (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2667         intead of add_setshow_zinteger_cmd.
2668         * mips-tdep.c (mips_debug): Add 'unsigned'.
2669         (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2670         instead of add_setshow_zinteger_cmd.
2671         * monitor.c (monitor_debug): Add 'unsigned'.
2672         (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2673         add_setshow_zinteger_cmd.
2674         * observer.c (observer_debug): Add 'unsigned'.
2675         (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2676         add_setshow_zinteger_cmd.
2677         * parse.c (expressiondebug): Add 'unsigned'.
2678         (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2679         add_setshow_zinteger_cmd.
2680         * record.c (record_debug): Add 'unsigned'.
2681         (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2682         add_setshow_zinteger_cmd.
2683         * record.h: Update the declaration of 'record_debug'.
2684         * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2685         (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2686         add_setshow_zinteger_cmd.
2687         * serial.c (global_serial_debug_p): Add 'unsigned'.
2688         (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2689         add_setshow_zinteger_cmd.
2690         * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2691         (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2692         add_setshow_zinteger_cmd.
2693         * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2694         (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2695         add_setshow_zinteger_cmd.
2696         * target.c (targetdebug): Add 'unsigned'.
2697         (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2698         add_setshow_zinteger_cmd.
2699         * valops.c (overload_debug): Add 'unsigned'.
2700         * varobj.c (varobjdebug): Add 'unsigned'.
2701         (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2702         add_setshow_zinteger_cmd.
2703         * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2704         (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2705         instead of add_setshow_zinteger_cmd.
2706
2707         * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2708         * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2709         (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2710         instead of add_setshow_zinteger_cmd.
2711         * gdbarch.c, gdbarch.h: Re-generated.
2712
2713 2012-08-02  Yao Qi  <yao@codesourcery.com>
2714
2715         * nto-tdep.c: Don't include cli/cli-decode.h and
2716         cli/cli-cmds.h.
2717         (_initialize_nto_tdep): Remove.
2718         * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2719         Remove field.
2720         Remove macro nto_internal_debugging.
2721
2722 2012-08-01  Richard Henderson  <rth@redhat.com>
2723
2724         * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2725         (mep-*-*) [gdb_target_obs]: Likewise.
2726
2727 2012-07-31  Andreas Schwab  <schwab@linux-m68k.org>
2728
2729         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2730         linux_get_siginfo_type.
2731
2732 2012-07-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
2733
2734         * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2735         AT_ENTRY_POINT.
2736         (call_function_by_hand) <ON_STACK>: Call write_memory with
2737         gdbarch_breakpoint_from_pc, if possible.
2738         (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2739         here.
2740
2741 2012-07-31  Yao Qi  <yao@codesourcery.com>
2742
2743         * tracepoint.c: Add 'static' for some variables.
2744
2745 2012-07-31  Yao Qi  <yao@codesourcery.com>
2746
2747         * go32-nat.c: Declare _initialize_go32_nat.
2748         * ser-go32.c: Declare _initialize_ser_dos.
2749         * top.c (do_chdir_cleanup): Add 'static'.
2750
2751 2012-07-30  Keith Seitz  <keiths@redhat.com>
2752
2753         * linespec.c (linespec_lex_number): A number followed
2754         by quotes is a valid number, too.
2755
2756 2012-07-30  Tom Tromey  <tromey@redhat.com>
2757
2758         * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2759
2760 2012-07-30  Ulrich Weigand  <ulrich.weigand@linaro.org>
2761
2762         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2763         attempt to 4-byte-align HW breakpoint addresses for Thumb.
2764
2765 2012-07-30  Andrew Burgess  <aburgess@broadcom.com>
2766
2767         * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2768         invalid or reevaluated to prevent prevent references to possibly
2769         delete'd type objects being left in the varobj.
2770
2771 2012-07-27  Tom Tromey  <tromey@redhat.com>
2772             Jan Kratochvil  <jan.kratochvil@redhat.com>
2773
2774         * copying.awk: Print buffer-read-only and vi ro markers.
2775         * copying.c: Rebuild.
2776         * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2777         * gdbarch.c, gdbarch.h: Rebuild.
2778         * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2779         buffer-read-only and vi ro markers.
2780         * features/arm-with-iwmmxt.c: Rebuild.
2781         * features/arm-with-m-fpa-layout.c: Rebuild.
2782         * features/arm-with-m-vfp-d16.c: Rebuild.
2783         * features/arm-with-m.c: Rebuild.
2784         * features/arm-with-neon.c: Rebuild.
2785         * features/arm-with-vfpv2.c: Rebuild.
2786         * features/arm-with-vfpv3.c: Rebuild.
2787         * features/i386/amd64-avx-linux.c: Rebuild.
2788         * features/i386/amd64-avx.c: Rebuild.
2789         * features/i386/amd64-linux.c: Rebuild.
2790         * features/i386/amd64.c: Rebuild.
2791         * features/i386/i386-avx-linux.c: Rebuild.
2792         * features/i386/i386-avx.c: Rebuild.
2793         * features/i386/i386-linux.c: Rebuild.
2794         * features/i386/i386-mmx-linux.c: Rebuild.
2795         * features/i386/i386-mmx.c: Rebuild.
2796         * features/i386/i386.c: Rebuild.
2797         * features/i386/x32-avx-linux.c: Rebuild.
2798         * features/i386/x32-avx.c: Rebuild.
2799         * features/i386/x32-linux.c: Rebuild.
2800         * features/i386/x32.c: Rebuild.
2801         * features/mips-dsp-linux.c: Rebuild.
2802         * features/mips-linux.c: Rebuild.
2803         * features/mips64-dsp-linux.c: Rebuild.
2804         * features/mips64-linux.c: Rebuild.
2805         * features/rs6000/powerpc-32.c: Rebuild.
2806         * features/rs6000/powerpc-32l.c: Rebuild.
2807         * features/rs6000/powerpc-403.c: Rebuild.
2808         * features/rs6000/powerpc-403gc.c: Rebuild.
2809         * features/rs6000/powerpc-405.c: Rebuild.
2810         * features/rs6000/powerpc-505.c: Rebuild.
2811         * features/rs6000/powerpc-601.c: Rebuild.
2812         * features/rs6000/powerpc-602.c: Rebuild.
2813         * features/rs6000/powerpc-603.c: Rebuild.
2814         * features/rs6000/powerpc-604.c: Rebuild.
2815         * features/rs6000/powerpc-64.c: Rebuild.
2816         * features/rs6000/powerpc-64l.c: Rebuild.
2817         * features/rs6000/powerpc-7400.c: Rebuild.
2818         * features/rs6000/powerpc-750.c: Rebuild.
2819         * features/rs6000/powerpc-860.c: Rebuild.
2820         * features/rs6000/powerpc-altivec32.c: Rebuild.
2821         * features/rs6000/powerpc-altivec32l.c: Rebuild.
2822         * features/rs6000/powerpc-altivec64.c: Rebuild.
2823         * features/rs6000/powerpc-altivec64l.c: Rebuild.
2824         * features/rs6000/powerpc-cell32l.c: Rebuild.
2825         * features/rs6000/powerpc-cell64l.c: Rebuild.
2826         * features/rs6000/powerpc-e500.c: Rebuild.
2827         * features/rs6000/powerpc-e500l.c: Rebuild.
2828         * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2829         * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2830         * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2831         * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2832         * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2833         * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2834         * features/rs6000/powerpc-vsx32.c: Rebuild.
2835         * features/rs6000/powerpc-vsx32l.c: Rebuild.
2836         * features/rs6000/powerpc-vsx64.c: Rebuild.
2837         * features/rs6000/powerpc-vsx64l.c: Rebuild.
2838         * features/rs6000/rs6000.c: Rebuild.
2839         * features/s390-linux32.c: Rebuild.
2840         * features/s390-linux32v1.c: Rebuild.
2841         * features/s390-linux32v2.c: Rebuild.
2842         * features/s390-linux64.c: Rebuild.
2843         * features/s390-linux64v1.c: Rebuild.
2844         * features/s390-linux64v2.c: Rebuild.
2845         * features/s390x-linux64.c: Rebuild.
2846         * features/s390x-linux64v1.c: Rebuild.
2847         * features/s390x-linux64v2.c: Rebuild.
2848         * features/tic6x-c62x-linux.c: Rebuild.
2849         * features/tic6x-c62x.c: Rebuild.
2850         * features/tic6x-c64x-linux.c: Rebuild.
2851         * features/tic6x-c64x.c: Rebuild.
2852         * features/tic6x-c64xp-linux.c: Rebuild.
2853         * features/tic6x-c64xp.c: Rebuild.
2854
2855 2012-07-27  Tom Tromey  <tromey@redhat.com>
2856
2857         * c-exp.y (classify_name): Avoid assignment in condition.
2858
2859 2012-07-27  Roland Schwingel  <roland.schwingel@onevision.com>
2860
2861         * amd64-windows-tdep.c: Include "frame.h".
2862         (amd64_windows_skip_trampoline_code): New function.
2863         (amd64_windows_init_abi): Add trampoline registration.
2864
2865 2012-07-27  Yao Qi  <yao@codesourcery.com>
2866
2867         * tracepoint.c (cur_traceframe_number): Remove.
2868         (set_tfile_traceframe): Remove.
2869         (tfile_trace_find, tfile_fetch_registers): Update callers.
2870         (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2871         (tfile_open, tfile_trace_find): Likewise.
2872
2873 2012-07-27  Yao Qi  <yao@codesourcery.com>
2874
2875         * thread.c (switch_to_thread): Don't call registers_changed.
2876
2877 2012-07-26  Tom Tromey  <tromey@redhat.com>
2878
2879         * Makefile.in (SFILES): Remove objc-exp.y.
2880         (YYFILES): Remove objc-exp.c.
2881         (YYOBJ): Remove objc-exp.o.
2882         (local-maintainer-clean): Don't mention objc-exp.c.
2883         * c-exp.y: Include objc-lang.h.
2884         (%union) <class>: New field.
2885         (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2886         (exp): Clone subscript production for OBJC_LBRAC.  Add various
2887         Objective C productions.
2888         (msglist, msgarglist, msgarg): New productions.
2889         (array_mod, func_mod, operator): Clone productions for
2890         OBJC_LBRAC.
2891         (parse_string_or_char): Handle '@' strings.
2892         (lex_one_token): Return OBJC_LBRAC.  Recognize @selector.
2893         (classify_name): Check la_name_of_this.  Recognize ObjC class
2894         names.
2895         * objc-exp.y: Remove.
2896         * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2897         * objc-lang.h (objc_parse, objc_error): Don't declare.
2898
2899 2012-07-26  Markus Metzger  <markus.t.metzger@intel.com>
2900
2901         * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2902
2903 2012-07-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
2904
2905         * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2906         and decrement.
2907
2908 2012-07-26  Tom Tromey  <tromey@redhat.com>
2909
2910         * copying.c: Rebuild.
2911         * copying.awk: Don't use immediate_quit.  Use 'no_set_class', not
2912         'no_class'.
2913
2914 2012-07-26  Tom Tromey  <tromey@redhat.com>
2915
2916         * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2917         immediate_quit.
2918         (print_objfile_statistics): Likewise.
2919         (maintenance_print_symbols): Likewise.
2920         (maintenance_print_msymbols): Likewise.
2921         (maintenance_print_objfiles): Likewise.
2922         * psymtab.c (print_partial_symbols): Call QUIT.
2923         (maintenance_print_psymbols): Likewise.  Don't modify
2924         immediate_quit.
2925         * copying.c (show_copying_command): Don't modify immediate_quit.
2926         (show_warranty_command): Likewise.
2927         * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2928
2929 2012-07-26  Keith Seitz  <keiths@redhat.com>
2930
2931         * linespec.c (linespec_lexer_lex_number): The input
2932         is also a valid number if the next character is a comma
2933         or colon.
2934
2935 2012-07-26  Joel Brobecker  <brobecker@adacore.com>
2936
2937         * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2938         configure options.
2939
2940 2012-07-26  Tristan Gingold  <gingold@adacore.com>
2941
2942         * machoread.c: Include gdb_bfd.h.
2943
2944 2012-07-26  Tristan Gingold  <gingold@adacore.com>
2945
2946         * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2947         offset.
2948
2949 2012-07-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2950
2951         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2952         SIZE to size_t.
2953         (dwarf2_evaluate_loc_desc): Likewise.
2954         (dwarf2_loc_desc_needs_frame): Likewise.
2955         (locexpr_describe_location_1): Likewise.
2956         * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2957         size_t.
2958         (struct dwarf2_loclist_baton): Likewise.
2959         * dwarf2read.c (struct dwarf_block): Likewise.
2960         (dump_die_shallow): Use pulongest to print dwarf_block.size.
2961         (decode_locdesc): Expand SIZE and I to size_t.
2962
2963 2012-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2964
2965         * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2966
2967 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
2968
2969         * doublest.c (convert_doublest_to_floatformat): If the exponent
2970         is too small, treat the value as zero.  If the exponent is too
2971         large, treat the value as infinity.
2972
2973 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
2974
2975         * configure.ac: Add --enable-lmcheck configure option.
2976         * configure: Regenerate.
2977
2978 2012-07-25  Tom Tromey  <tromey@redhat.com>
2979
2980         * NEWS: Mention maint info bfds.
2981         * gdb_bfd.c (all_bfds): New global.
2982         (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2983         (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2984         New functions.
2985
2986 2012-07-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
2987
2988         * configure.tgt: Add v850*-*-rtems*.
2989
2990 2012-07-25  Tom Tromey  <tromey@redhat.com>
2991
2992         * macrotab.c (macro_bcache_str): Remove cast.
2993
2994 2012-07-25  Hui Zhu  <hui_zhu@mentor.com>
2995
2996         * linespec.c (linespec_lexer_lex_number): Update comments,
2997         change the return and add check to make sure the input is
2998         the decimal numbers.
2999         (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3000         false, call linespec_lexer_lex_string.
3001
3002 2012-07-24  Tom Tromey  <tromey@redhat.com>
3003
3004         * symfile.c (symbol_file_add): Don't open BFD twice.
3005
3006 2012-07-24  Marc Khouzam  <marc.khouzam@ericsson.com>
3007
3008         * breakpoint.c (create_breakpoint): Store condition for pending
3009         breakpoints.
3010
3011 2012-07-24  Andreas Schwab  <schwab@linux-m68k.org>
3012
3013         * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3014         (m68k_return_value): Handle complex types like structures.
3015         (m68k_svr4_return_value): Likewise.
3016
3017 2012-07-24  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3018
3019         * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3020         parameters to bfd_get_section_name.
3021
3022 2012-07-24  Yao Qi  <yao@codesourcery.com>
3023
3024         * cli/cli-setshow.c: Handle case 'var_uinteger'
3025         and 'var_zuninteger' together.  Handle case 'var_integer' and
3026         'var_zinteger' together.
3027
3028 2012-07-23  Keith Seitz  <keiths@redhat.com>
3029
3030         * linespec.c (convert_linespec_to_sal): Don't add
3031         any symbols to the result vector if symbol_to_sal
3032         returns zero.
3033
3034 2012-07-23  Keith Seitz  <keiths@redhat.com>
3035
3036         * linespec.c (decode_objc): Record the function name
3037         in the linespec.
3038
3039 2012-07-23  Tom Tromey  <tromey@redhat.com>
3040
3041         * rs6000-nat.c (add_vmap): Rewrite archive loop.  Fix reference
3042         counting.
3043         * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3044         (map_vmap): Acquire a reference to the BFD.
3045
3046 2012-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
3047
3048         * p-valprint.c (pascal_object_print_value): Replace potentially
3049         unsafe alloca with xmalloc/xfree.
3050         * valops.c (search_struct_method): Likewise.
3051
3052 2012-07-23  Tom Tromey  <tromey@redhat.com>
3053
3054         * solib-svr4.c (enable_break): Update.
3055         * bfd-target.h (target_bfd_reopen): Update documentation.
3056
3057 2012-07-23  Tom Tromey  <tromey@redhat.com>
3058
3059         * symfile.c (separate_debug_file_exists): Update.
3060         (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3061         (reread_symbols): Update.
3062         * elfread.c (build_id_verify): Update.
3063         * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3064         bfd_open_maybe_remote.
3065
3066 2012-07-23  Tom Tromey  <tromey@redhat.com>
3067
3068         * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3069
3070 2012-07-23  Tom Tromey  <tromey@redhat.com>
3071
3072         * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3073         and 'abfd'.
3074         * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3075         and 'abfd'.
3076         * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3077         * machoread.c (macho_add_oso_symfile): Make a cleanup for
3078         'abfd'.
3079         (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3080         * objfiles.c (allocate_objfile): Acquire a new reference.
3081         * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3082         * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3083         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3084         a cleanup for 'nbfd'.
3085         * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3086         for 'nbfd'.
3087         * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3088         make a cleanup for 'abfd'.
3089         (symbol_file_add): Make a BFD cleanup.
3090
3091 2012-07-23  Tom Tromey  <tromey@redhat.com>
3092
3093         * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3094         (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3095         * corelow.c (core_open): Use gdb_bfd_fopen.
3096         * dsrec.c (load_srec): Use gdb_bfd_openr.
3097         * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3098         * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3099         * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3100         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3101         (gdb_bfd_fdopenr): New functions.
3102         * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3103         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3104         (gdb_bfd_fdopenr): Declare.
3105         * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3106         * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3107         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3108         gdb_bfd_openr_next_archived_file.
3109         (macho_check_dsym): Use gdb_bfd_openr.
3110         (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3111         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3112         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3113         * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3114         gdb_bfd_openr.
3115         * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3116         * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3117         gdb_bfd_openr_next_archived_file.
3118         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3119         Use gdb_bfd_openr.
3120         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3121         gdb_bfd_openr.
3122         * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3123         * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3124         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3125         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3126         (symfile_bfd_open): Use gdb_bfd_fopen.
3127         (generic_load): Use gdb_bfd_openr.
3128         * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3129
3130 2012-07-23  Tom Tromey  <tromey@redhat.com>
3131
3132         * bfd-target.c (target_bfd_reopen): Update.
3133         * cli/cli-dump.c (bfd_openr_with_cleanup)
3134         (bfd_openw_with_cleanup): Update.
3135         * corelow.c (core_open): Update.
3136         * dsrec.c (load_srec): Update.
3137         * exec.c (exec_file_attach): Update.
3138         * gcore.c (create_gcore_bfd): Update.
3139         * gdb_bfd.c (gdb_bfd_ref): Return void.
3140         (gdb_bfd_open): Update.
3141         * gdb_bfd.h (gdb_bfd_ref): Return void.
3142         Update comments.
3143         * jit.c (jit_bfd_try_read_symtab): Update.
3144         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3145         * machoread.c (macho_symfile_read_all_oso): Update.
3146         (macho_check_dsym): Update.
3147         * procfs.c (insert_dbx_link_bpt_in_file): Update.
3148         * remote-m32r-sdi.c (m32r_load): Update.
3149         * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3150         * rs6000-nat.c (add_vmap): Update.
3151         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3152         Update.
3153         * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3154         * solib-spu.c (spu_bfd_open): Update.
3155         * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3156         * spu-linux-nat.c (spu_bfd_open): Update.
3157         * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3158         (generic_load): Update.
3159         * windows-nat.c (windows_make_so): Update.
3160
3161 2012-07-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
3162
3163         * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3164
3165 2012-07-20  Jeff Kenton  <jkenton@tilera.com>
3166
3167         * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3168         SIGTRAMP_FRAME unwinding.
3169
3170 2012-07-20  Doug Evans  <dje@google.com>
3171
3172         * NEWS: Document new options "set/show use-deprecated-index-sections",
3173         and delete reference to --use-deprecated-index-sections.
3174         * symfile.h (use_deprecated_index_sections): Delete.
3175         * dwarf2read.c (use_deprecated_index_sections): Make static.
3176         (read_index_from_section): Update wording of how to load
3177         deprecated index sections.
3178         (_initialize_dwarf2_read): New options
3179         "set/show use-deprecated-index-sections".
3180         * main.c (captured_main): Delete --use-deprecated-index-sections.
3181
3182 2012-07-20  Pedro Alves  <palves@redhat.com>
3183
3184         PR threads/11692
3185         PR gdb/12203
3186
3187         * infrun.c (handle_inferior_event) <new thread>: Don't special
3188         case minus_one_ptid.
3189         <TARGET_WAITKIND_SPURIOUS>: Ditto.
3190         * linux-thread-db.c (thread_get_info_callback): Don't return early
3191         if the thread is zombie.
3192         (thread_from_lwp): Change return type to void.  Rewrite stale
3193         comment.
3194         (attach_thread): Don't return early if the thread is zombie,
3195         instead set its "dying" flag.
3196         (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3197         (find_new_threads_callback): Don't return early if the thread is
3198         zombie.
3199
3200 2012-07-20  Pedro Alves  <palves@redhat.com>
3201
3202         * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3203         * target.c (target_wait): Likewise.
3204         (str_comma_list_concat_elem, do_option, target_options_to_string):
3205         New functions.
3206         * target.h (target_options_to_string): Declare.
3207
3208 2012-07-20  Jan Kratochvil <jan.kratochvil@redhat.com>
3209             Tom Tromey  <tromey@redhat.com>
3210
3211         * dwarf2read.c (dwarf_decode_macros)
3212         <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3213         DW_MACRO_GNU_transparent_include_alt>: New cases.
3214         (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3215         DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3216
3217 2012-07-20  Tom Tromey  <tromey@redhat.com>
3218
3219         * dwarf2read.c (try_open_dwo_file): Don't call
3220         gdb_bfd_stash_filename.
3221
3222 2012-07-20  Pedro Alves  <palves@redhat.com>
3223
3224         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3225         (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3226         (i386_process_record): Tweak description comments.
3227
3228 2012-07-20  Pedro Alves  <palves@redhat.com>
3229
3230         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3231         (i386_process_record): Use record_read_memory.
3232         * record.c (record_read_memory): New function.
3233         (record_arch_list_add_mem, record_exec_insn): Use
3234         record_read_memory.
3235         * record.h (record_read_memory): Declare.
3236
3237 2012-07-20  Yao Qi  <yao@codesourcery.com>
3238
3239         * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3240         NULL for xfree.
3241
3242 2012-07-19  Pedro Alves  <palves@redhat.com>
3243
3244         * record.c (record_resume): Ask the target beneath to report all
3245         signals.
3246
3247 2012-07-19  Doug Evans  <dje@google.com>
3248
3249         * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3250         there's no section at address zero.
3251         (dwarf2_record_block_ranges): Ditto.
3252
3253 2012-07-19  Yao Qi  <yao@codesourcery.com>
3254
3255         * command.h, remote.c: Fix a typo in comment.
3256
3257 2012-07-19  Tom Tromey  <tromey@redhat.com>
3258
3259         PR exp/13206:
3260         * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3261         * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3262         OP_DECLTYPE>: New cases.
3263         * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3264         (type_exp): Add new productions.
3265         (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3266         and decltype.
3267         * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3268         New case.
3269         * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3270         OP_DECLTYPE>: New case.
3271         * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3272         New case.
3273         * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3274         * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3275
3276 2012-07-19  Tom Tromey  <tromey@redhat.com>
3277
3278         * c-exp.y (enum token_flags): New.
3279         (struct token) <cxx_only>: Remove.
3280         <flags>: New field.
3281         (tokentab3, tokentab2, ident_tokens): Update.
3282         (lex_one_token): Update.  Handle FLAG_SHADOW.
3283
3284 2012-07-19  Tom Tromey  <tromey@redhat.com>
3285
3286         * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3287         * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3288         UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3289         * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE.  Update
3290         for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.  Use
3291         type_exp production where appropriate.
3292         * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3293         <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3294         <UNOP_MEMVAL_TYPE>: New case.
3295         (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3296         (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3297         * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3298         <UNOP_MEMVAL_TYPE>: New case.
3299         (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3300         UNOP_REINTERPRET_CAST>: Update.
3301         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3302         * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3303         UNOP_REINTERPRET_CAST>: Update.
3304         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3305         * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3306         * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3307         constants.
3308
3309 2012-07-19  Yao Qi  <yao@codesourcery.com>
3310             Jan Kratochvil <jan.kratochvil@redhat.com>
3311
3312         * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3313         and case 'var_optional_filename' together.
3314         * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3315         instead of add_setshow_optional_filename_cmd for setshow command
3316         'args'.  Set completer for 'set args'.
3317
3318 2012-07-18  Doug Evans  <dje@google.com>
3319
3320         * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3321         * common/gdb_vecs.c: New file, contents from utils.c.
3322         * common/host-defs.h: New file, contents from defs.h.
3323         * utils.h: New file, contents from defs.h.
3324         * defs.h: Move all declarations of objects defined in utils.c
3325         to utils.h (except QUIT() and related).
3326         #include "utils.h", "host-defs.h".
3327         * probe.h (probe_p): Move here from gdb_vecs.h.
3328         * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3329         * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3330         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3331         * Makefile.in (SFILES): Add common/gdb_vecs.c.
3332         (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3333         (COMMON_OBS): Add gdb_vecs.o.
3334         (gdb_vecs.o): New rule.
3335
3336 2012-07-18  Keith Seitz  <keiths@redhat.com>
3337
3338         * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3339         parameter.  If non-zero, use SYMNAME as the canonical name
3340         for the SaL.
3341         Update all callers.
3342         (convert_linespec_to_sals): Use add_sal_to_sals for
3343         expressions, too.
3344         (decode_line_full): No need to "fill in missing canonical names"
3345         anymore. Simply make cleanups for the allocated names.
3346
3347 2012-07-18  Keith Seitz  <keiths@redhat.com>
3348
3349         * linespec.c (struct linespec): Constify expression,
3350         source_filename, function_name, and label_name.
3351         (symbol_not_found_error): Make all parameters const.
3352         (linespec_parser_delete): No need to check for NULL
3353         when using xfree. Cast const char * to char * for xfree.
3354
3355 2012-07-18  Keith Seitz  <keiths@redhat.com>
3356
3357         * breakpoint.c (invalid_thread_id_error): New function.
3358         (find_condition_and_thread): Use invalid_thread_id_error.
3359         (watch_command_1): Likewise.
3360
3361 2012-07-18  Tom Tromey  <tromey@redhat.com>
3362
3363         * cc-with-index.sh, cc-with-dwz.sh: Remove.
3364         * contrib/cc-with-tweaks.sh: New file.
3365
3366 2012-07-18  Tom Tromey  <tromey@redhat.com>
3367
3368         * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
3369         (locate_dwz_sections): Recognize .gdb_index.
3370         (create_cus_from_index_list): New function.
3371         (create_cus_from_index): Use it.  Handle .dwz data.
3372         (read_index_from_section): New function, extracted from
3373         dwarf2_read_index.
3374         (dwarf2_read_index): Use it.  Read .gdb_index from dwz file,
3375         if needed.
3376
3377 2012-07-18  Tom Tromey  <tromey@redhat.com>
3378
3379         * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
3380         (struct dwarf2_per_cu_data) <length>: No longer bitfield.
3381         <is_dwz>: New field.
3382         (struct dwz_file): New.
3383         (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
3384         (locate_dwz_sections, dwarf2_get_dwz_file)
3385         (get_abbrev_section_for_cu): New functions.
3386         (error_check_comp_unit_head, read_and_check_comp_unit_head)
3387         (read_and_check_type_unit_head): Add abbrev_section argument.
3388         (create_debug_types_hash_table): Update.
3389         (init_cutu_and_read_dies): Use proper abbrev section.
3390         (init_cutu_and_read_dies_no_follow): Likewise.
3391         (set_partial_user): Do nothing if PST==NULL.
3392         (read_comp_units_from_section): New function.
3393         (create_all_comp_units): Use it.
3394         (scan_partial_symbols, partial_die_parent_scope): Update.
3395         (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3396         (process_imported_unit_die, read_partial_die): Handle .dwz files.
3397         (find_partial_die): Add offset_in_dwz argument.  Update.
3398         (guess_partial_die_structure_name, fixup_partial_die): Update.
3399         (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
3400         DW_FORM_GNU_strp_alt.
3401         (read_indirect_string_from_dwz): New function.
3402         (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
3403         (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3404         (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
3405         (follow_die_offset): Add offset_in_dwz argument.
3406         (follow_die_ref, dwarf2_fetch_die_location_block): Update.
3407         (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
3408         (dwarf_decode_macro_bytes): Add section_is_dwz argument.
3409         Handle new macro forms.
3410         (dwarf_decode_macros): Update.
3411         (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
3412         (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
3413         (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
3414         (create_debug_types_hash_table): Use correct abbrev section.
3415         (get_debug_line_section): New function.
3416         (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
3417         (process_full_comp_unit): Pass 'required' argument to
3418         end_symtab_get_static_block.
3419         * buildsym.h (end_symtab_get_static_block): Update.
3420         * buildsym.c (end_symtab_get_static_block): Add 'required'
3421         argument.
3422         (end_symtab, end_expandable_symtab): Update.
3423
3424 2012-07-18  Tom Tromey  <tromey@redhat.com>
3425
3426         * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3427         (pagesize): Remove.
3428         (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3429         (zlib_decompress_section): Remove.
3430         (dwarf2_read_section): Use gdb_bfd_map_section.
3431         (munmap_section_buffer): Remove.
3432         (free_dwo_file, dwarf2_per_objfile_free): Don't use
3433         munmap_section_buffer.
3434         * gdb_bfd.c: Include zlib.h, sys/mman.h.
3435         (struct gdb_bfd_section_data): New.
3436         (free_one_bfd_section): New function.
3437         (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3438         (get_section_descriptor, zlib_decompress_section)
3439         (gdb_bfd_map_section): New functions.
3440         * gdb_bfd.h (gdb_bfd_map_section): Declare.
3441
3442 2012-07-18  Tom Tromey  <tromey@redhat.com>
3443
3444         * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3445
3446 2012-07-18  Tom Tromey  <tromey@redhat.com>
3447
3448         * gdb_bfd.c (struct gdb_bfd_data): New.
3449         (gdb_bfd_cache): New global.
3450         (struct gdb_bfd_cache_search): New.
3451         (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3452         (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3453         * gdb_bfd.h (gdb_bfd_open): Declare.
3454
3455 2012-07-18  Tom Tromey  <tromey@redhat.com>
3456
3457         * utils.c (make_cleanup_bfd_unref): Rename from
3458         make_cleanup_bfd_close.
3459         * defs.h (make_cleanup_bfd_unref): Rename from
3460         make_cleanup_bfd_close.
3461         * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3462         (bfd_openw_with_cleanup): Update.
3463         * corelow.c (core_open): Update.
3464         * dsrec.c (load_srec): Update.
3465         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3466         * remote-m32r-sdi.c (m32r_load): Update.
3467         * remote-mips.c (mips_load_srec): Update.
3468         (pmon_load_fast): Update.
3469         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3470         Update.
3471         (darwin_bfd_open): Update.
3472         * solib.c (solib_bfd_fopen): Update.
3473         * symfile-mem.c (symbol_file_add_from_memory): Update.
3474         * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3475         (symfile_bfd_open): Update.
3476         (generic_load): Update.
3477
3478 2012-07-18  Tom Tromey  <tromey@redhat.com>
3479
3480         * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3481         (pmon_load_fast): Likewise.
3482         * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3483         (m32r_upload_command): Likewise.
3484         * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3485         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3486         Use make_cleanup_bfd_close.
3487
3488 2012-07-18  Tom Tromey  <tromey@redhat.com>
3489
3490         * symfile.c (symfile_bfd_open): Don't copy name.  Call
3491         gdb_bfd_stash_filename.
3492         (load_command): Open the new BFD before freeing the old.
3493         (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3494         * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3495         Call gdb_bfd_stash_filename.
3496         * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3497         * solib-spu.c (spu_bfd_fopen): Don't copy name.  Call
3498         gdb_bfd_stash_filename.
3499         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3500         Free found_pathname.
3501         * rs6000-nat.c (add_vmap): Don't copy filename.  Call
3502         gdb_bfd_stash_filename.
3503         * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3504         * machoread.c (macho_add_oso_symfile): Call
3505         gdb_bfd_stash_filename.
3506         (macho_symfile_read_all_oso): Arrange to free archive_name.  Call
3507         gdb_bfd_stash_filename.
3508         (macho_check_dsym): Don't copy filename.  Call
3509         gdb_bfd_stash_filename.
3510         * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3511         * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3512         * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3513         * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3514         * exec.c (exec_close): Don't free the BFD's filename.
3515         (exec_file_attach): Don't copy the filename.  Call
3516         gdb_bfd_stash_filename.
3517         * corelow.c (core_close): Don't free the BFD's filename.
3518         (core_open): Call gdb_bfd_stash_filename.
3519         * corefile.c (reopen_exec_file): Remove #if 0 code.
3520         * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename.  Free
3521         pathname.
3522         * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3523
3524 2012-07-18  Tom Tromey  <tromey@redhat.com>
3525
3526         * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3527         gdb_bfd_unref.
3528         (free_dwo_file): Use gdb_bfd_unref.
3529         * cli/cli-dump.c: Include gdb_bfd.h.
3530         (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3531         (bfd_openr_with_cleanup): Likewise.
3532         * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3533         gdb_bfd_unref.
3534         * utils.c: Include gdb_bfd.h.
3535         (do_bfd_close_cleanup): Use gdb_bfd_unref.
3536         * symfile.c: Include gdb_bfd.h.
3537         (separate_debug_file_exists): Use gdb_bfd_unref.
3538         (bfd_open_maybe_remote): Use gdb_bfd_ref.
3539         (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3540         (generic_load): Use gdb_bfd_ref.
3541         (reread_symbols): Use gdb_bfd_unref.
3542         * symfile-mem.c: Include gdb_bfd.h.
3543         (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3544         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3545         * solib.c: Include gdb_bfd.h.
3546         (solib_bfd_fopen): Use gdb_bfd_ref.
3547         (solib_bfd_open): Use gdb_bfd_unref.
3548         (free_so_symbols): Use gdb_bfd_unref.
3549         (reload_shared_libraries_1): Use gdb_bfd_unref.
3550         * solib-spu.c: Include gdb_bfd.h.
3551         (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3552         * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3553         gdb_bfd_unref.
3554         * solib-frv.c: Include gdb_bfd.h.
3555         (enable_break2): Use gdb_bfd_unref.
3556         * solib-dsbt.c: Include gdb_bfd.h.
3557         (enable_break2): Use gdb_bfd_unref.
3558         * solib-darwin.c: Include gdb_bfd.h.
3559         (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3560         gdb_bfd_unref.
3561         (darwin_bfd_open): Use gdb_bfd_unref.
3562         * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3563         * remote-mips.c: Include gdb_bfd.h.
3564         (mips_load_srec): Use gdb_bfd_ref.
3565         (pmon_load_fast): Use gdb_bfd_ref.
3566         * remote-m32r-sdi.c: Include gdb_bfd.h.
3567         (m32r_load): Use gdb_bfd_ref.
3568         * record.c: Include gdb_bfd.h.
3569         (record_save_cleanups): Use gdb_bfd_unref.
3570         (cmd_record_save): Use gdb_bfd_unref.
3571         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3572         gdb_bfd_unref.
3573         * objfiles.h (gdb_bfd_close_or_warn): Remove.
3574         (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3575         * objfiles.c: Include gdb_bfd.h.
3576         (free_objfile): Use gdb_bfd_unref.
3577         (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3578         gdb_bfd.c.
3579         * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3580         (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3581         (macho_check_dsym): Likewise.
3582         * m32r-rom.c: Include gdb_bfd.h.
3583         (m32r_load): Use gdb_bfd_ref.
3584         (m32r_upload_command): Use gdb_bfd_ref.
3585         * jit.c: Include gdb_bfd.h.
3586         (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3587         * gdb_bfd.h: New file.
3588         * gdb_bfd.c: New file.
3589         * gcore.c: Include gdb_bfd.h.
3590         (create_gcore_bfd): Use gdb_bfd_ref.
3591         (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3592         (gcore_command): Use gdb_bfd_unref.
3593         * exec.c: Include gdb_bfd.h.
3594         (exec_close): Use gdb_bfd_unref.
3595         (exec_close_1): Use gdb_bfd_unref.
3596         (exec_file_attach): Use gdb_bfd_ref.
3597         * elfread.c: Include gdb_bfd.h.
3598         (build_id_verify): Use gdb_bfd_unref.
3599         * dsrec.c: Include gdb_bfd.h.
3600         (load_srec): Use gdb_bfd_ref.
3601         * corelow.c: Include gdb_bfd.h.
3602         (core_close): Use gdb_bfd_unref.
3603         (core_open): Use gdb_bfd_ref.
3604         * bfd-target.c: Include gdb_bfd.h.
3605         (target_bfd_xclose): Use gdb_bfd_unref.
3606         (target_bfd_reopen): Use gdb_bfd_ref.
3607         * Makefile.in (SFILES): Add gdb_bfd.c.
3608         (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3609         (COMMON_OBS): Add gdb_bfd.o.
3610
3611 2012-07-18  Keith Seitz  <keiths@redhat.com>
3612
3613         * breakpoint.c (find_condition_and_thread): Initialize
3614         TASK and REST.
3615         (create_breakpiont): find_condition_and_thread will now
3616         initialize COND_STRING, THREAD, and REST (and TASK).
3617         (addr_string_to_sals): Likewise.
3618
3619 2012-07-18  Pedro Alves  <palves@redhat.com>
3620
3621         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3622         Pull the single step breakpoints out of the target.
3623
3624 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
3625
3626         * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3627         * stap-probe.c (compile_probe_arg): Likewise.
3628
3629 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
3630
3631         * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3632         (elf_compile_to_ax): Likewise.
3633         * infrun.c (insert_exception_resume_from_probe): Likewise.
3634         (check_exception_resume): Remove `objfile' variable.
3635         * probe.c (find_probe_by_pc): Remove `objfile' argument.
3636         (struct probe_and_objfile, probe_and_objfile_s): Delete.
3637         (collect_probes): Adjust return value to `VEC (probe_p) *'.
3638         (compare_entries): Rename to...
3639         (compare_probes): ...this.  Adjust function to work with
3640         `struct probe *'.  Rename variables `ea' and `eb' to `pa' and `pb'
3641         respectively.
3642         (gen_ui_out_table_header_info): Adjust `probes' argument to be
3643         `VEC (probe_p) *'.
3644         (print_ui_out_info): Adjust argument to be `struct probe *'.
3645         (info_probes_for_ops): Adjust internal computations to use
3646         `VEC (probe_p) *'.
3647         (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3648         * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3649         gen_info_probes_table_values>: Remove `objfile' argument.
3650         (struct probe) <objfile>: New field.
3651         (find_probe_by_pc): Remove `objfile' argument.
3652         * stap-probe.c (stap_parse_probe_arguments): Likewise.
3653         (stap_get_probe_argument_count): Likewise.
3654         (stap_get_arg): Likewise.
3655         (stap_evaluate_probe_argument): Likewise.
3656         (stap_compile_to_ax): Likewise.
3657         (compile_probe_arg): Refactor not to pass `objfile' anymore.
3658         (handle_stap_probe): Fill `objfile' field from `struct probe'.
3659         (stap_gen_info_probes_table_header): Remove `objfile' argument.
3660         * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3661         sym_compile_to_ax>: Likewise.
3662
3663 2012-07-18  Terry Guo  <terry.guo@arm.com>
3664
3665         PR 14329
3666         * defs.h (GDB_MI_MSG_WIDTH): New.
3667         * ser_base (ser_base_read_error_fd): New function.
3668         (do_ser_base_readchar): Poll error file descriptor as well as
3669         standard output.
3670         (generic_readchar): Refactor error handling.
3671
3672 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
3673
3674         * NEWS: Create a new section for the next release branch.
3675         Rename the section of the current branch, now that it has
3676         been cut.
3677
3678 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
3679
3680         GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3681         * version.in: Bump version to 7.5.50.20120718-cvs.
3682
3683 2012-07-17  Keith Seitz  <keiths@redhat.com>
3684
3685         * linespec.c (linespec_parse_line_offset): Make parameter
3686         const.
3687
3688 2012-07-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
3689
3690         PR 11914
3691         * f-valprint.c (info_common_command): New variable frame_id.
3692         Reinitialize FI form FRAME_ID after each print_variable_and_value.
3693         * printcmd.c (print_variable_and_value): Extend function comment.
3694         Add comment for invalidated FRAME.
3695         * stack.c (backtrace_command_1): New variable frame_id.  Reinitialize
3696         FI form FRAME_ID after each print_frame_local_vars.
3697         (struct print_variable_and_value_data): Change frame to frame_id.
3698         (do_print_variable_and_value): New variable frame, initialize it from
3699         p->frame_id.  Add comment for invalidated FRAME.
3700         (print_frame_local_vars, print_frame_arg_vars): New function comment.
3701         Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization.  Add comment
3702         for invalidated FRAME.
3703
3704 2012-07-16  Marc Khouzam  <marc.khouzam@ericsson.com>
3705             Pedro Alves  <palves@redhat.com>
3706
3707         * linux-nat.c (linux_nat_detach): Don't unregister from the event
3708         loop.
3709
3710 2012-07-16  Tom Tromey  <tromey@redhat.com>
3711
3712         * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3713
3714 2012-07-15  Doug Evans  <dje@google.com>
3715
3716         * dwarf2read.c (stmt_list_hash): New struct.
3717         (type_unit_group): Embed "per_cu" member, remove pointer.
3718         New union member "t", move member "tus" into it, all uses updated.
3719         New member "hash", replaces member "line_offset, all uses updated.
3720         (quick_file_names): Replace member "offset" with "hash", all uses
3721         updated.
3722         (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3723         (hash_file_name_entry, eq_file_name_entry): Call them.
3724         (hash_type_unit_group, eq_type_unit_group): Ditto.
3725         (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3726         (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3727         (dw2_get_file_names): Update.
3728         (create_type_unit_group): Replace "per_cu" arg with "cu".
3729         All callers updated.  Fix "quick" (.gdb_index) handling.
3730         (get_type_unit_group): Replace "per_cu" arg with "cu".
3731         All callers updated.
3732         (build_type_unit_groups): Don't reset tu_stats.
3733
3734         * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3735         "tab_cur_size".  Change member "tab" to be a htab_t.
3736         (create_filename_seen_cache): Update.
3737         (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3738         (filename_seen): Update.
3739
3740 2012-07-13  Doug Evans  <dje@google.com>
3741
3742         * symtab.c (filename_seen): Update comment.
3743
3744 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3745             Doug Evans  <dje@google.com>
3746
3747         * buildsym.c (end_symtab_1): Split it to ...
3748         (end_symtab_get_static_block): ... this ...
3749         (end_symtab_from_static_block): ... and this function.
3750         (end_symtab, end_expandable_symtab): Call them.
3751         * buildsym.h (end_symtab_get_static_block)
3752         (end_symtab_from_static_block): New declarations.
3753         * dwarf2read.c (process_full_comp_unit): New variable static_block.
3754         Set its valid CU ranges.
3755
3756 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3757
3758         * dwarf2loc.c (disassemble_dwarf_expression): Handle
3759         DW_OP_GNU_parameter_ref.
3760
3761 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3762
3763         * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3764         read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3765
3766 2012-07-13  Doug Evans  <dje@google.com>
3767
3768         * symtab.c (output_source_filename): Delete unnecessary forward decl.
3769         (filename_seen_cache): New struct.
3770         (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3771         (create_filename_seen_cache): New function.
3772         (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3773         (filename_seen): Delete arg "first".  New arg "cache".  All callers
3774         updated.
3775         (output_source_filename_data): New struct.
3776         (output_source_filename): Delete arg "first".  New arg "data".
3777         All callers updated.
3778         (sources_info): Delete local "first".  New locals "data", "cleanups".
3779         Rewrite to use filename_seen_cache.
3780         (add_partial_filename_data): Delete member "first".  New member
3781         "filename_seen_cache".  All uses updated.
3782         (make_source_files_completion_list): Rewrite to use
3783         filename_seen_cache.
3784
3785 2012-07-12  Doug Evans  <dje@google.com>
3786
3787         * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3788
3789 2012-07-10  Doug Evans  <dje@google.com>
3790
3791         PR gdb/13498
3792         * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3793         all_type_unit_groups, type_unit_groups, tu_stats.
3794         (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3795         All uses updated.  Add type_unit_group to union "s".
3796         (type_unit_group): New struct.
3797         (IS_TYPE_UNIT_GROUP): New macro.
3798         (abbrev_table): Delete unused member "section".
3799         (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3800         (dw2_get_cu): Assert not used with type_unit_group.
3801         (dw2_get_primary_cu): New function.
3802         (dw2_build_type_unit_groups_reader): New function.
3803         (dw2_build_type_unit_groups): New function.
3804         (dw2_get_file_names): Assert not called on type units.
3805         (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3806         Redo loop to iterate over type unit groups instead of type units.
3807         (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3808         (read_abbrev_offset): New function.
3809         (init_cutu_and_read_dies): New arg "abbrev_table".  All callers
3810         updated.
3811         (create_partial_symtab): New function.
3812         (process_psymtab_comp_unit_reader): Assert not used with type units.
3813         Call create_partial_symtab.
3814         (process_psymtab_type_unit): Delete.
3815         (hash_type_unit_group, eq_type_unit_group): New functions.
3816         (allocate_type_unit_groups_table): New function.
3817         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3818         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3819         (create_type_unit_group, get_type_unit_group): New functions.
3820         (tu_abbrev_offset): New struct.
3821         (sort_tu_by_abbrev_offset): New function.
3822         (add_type_unit_group_to_table): New function.
3823         (build_type_unit_groups): New function.
3824         (build_type_psymtabs_reader): New function.
3825         (build_type_psymtab_dependencies): New function.
3826         (build_type_psymtabs): Rewrite.
3827         (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3828         is seen in a type unit.
3829         (process_queue): Move symtab expansion debugging printfs here.
3830         Call process_full_type_unit for type units.
3831         (compute_symtab_includes): Assert not called for type units.
3832         (process_cu_includes): Don't call compute_symtab_includes for
3833         type units.
3834         (process_full_type_unit): New function.
3835         (process_imported_unit_die): Flag an error if called for type units.
3836         (handle_DW_AT_stmt_list): Delete arg "want_line_info".  All callers
3837         updated.  Assert not called for type units.
3838         (read_file_scope): Call dwarf2_start_symtab.
3839         (setup_type_unit_groups): New function.
3840         (read_type_unit_scope): Rewrite.
3841         (abbrev_table_read_table): Initialize abbrev_table->offset.
3842         (abbrev_table_free_cleanup): New function.
3843         (dwarf2_start_symtab): New function.
3844         (load_full_type_unit): Assert not called for type unit groups.
3845         * buildsym.c (finish_block_internal): New arg "expandable".
3846         All callers updated.
3847         (start_symtab): Move most contents to ...
3848         (restart_symtab): ... here.  New function.
3849         (reset_symtab_globals): New function.
3850         (end_symtab_1): Renamed from end_symtab.  New arg "expandable".
3851         Call reset_symtab_globals.
3852         (end_symtab, end_expandable_symtab): New functions.
3853         (set_missing_symtab, augment_type_symtab): New functions.
3854         * buildsym.h (end_expandable_symtab): Declare.
3855         (augment_type_symtab, restart_symtab): Declare.
3856         * psympriv.h (struct partial_symtab): New member "anonymous".
3857         * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3858         anonymous psymtabs.
3859         (read_psymtabs_with_filename): Ditto.
3860         (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3861         (expand_symtabs_matching_via_partial): Ditto.
3862         (dump_psymtab): Update.
3863         * dictionary.c (dict_add_pending): New function.
3864         * dictionary.h (dict_add_pending): Declare.
3865
3866 2012-07-09  Doug Evans  <dje@google.com>
3867
3868         * buildsym.c (start_subfile): Remove unnecessary check for
3869         name == NULL.
3870
3871         * psymtab.c (allocate_psymtab): Use host_address_to_string.
3872
3873         * dwarf2read.c (load_full_type_unit): Simplify.
3874
3875         * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3876         to struct signatured_type **.  All uses updated.
3877
3878         * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3879         All callers updated.
3880
3881 2012-07-09  Tom Tromey  <tromey@redhat.com>
3882
3883         * c-exp.y (check_parameter_typelist): New function.
3884         (parameter_typelist): Call it.
3885         * eval.c (make_params): Handle '(void)' case.
3886         * gdbtypes.c (lookup_function_type_with_arguments): Handle
3887         '(void)' case.
3888
3889 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3890
3891         * common/linux-ptrace.c: Include gdb_assert.h.
3892         <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3893         <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3894         stdint.h.
3895         (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3896         functions.
3897         * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3898         * linux-nat.c (linux_child_post_attach)
3899         (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3900
3901 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3902
3903         * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3904         nptl <2.7 bug workaround for core files.
3905
3906 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3907
3908         * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3909         clearing.
3910         (save_siginfo): Remove.
3911         (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3912         call.
3913         (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3914         (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3915         * linux-nat.h (struct lwp_info): Remove field siginfo.
3916
3917 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3918
3919         Code cleanup for the next patch.
3920         * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3921         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3922         call for it.
3923         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3924         (ia64_linux_stopped_data_address):
3925         * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3926         the return value.
3927         * linux-nat.h (linux_nat_get_siginfo): Likewise.
3928         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3929         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3930         call for it.
3931
3932 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3933
3934         PR 14321
3935         * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3936         Increase buffer sizes to 2x we need, not just 2x of the previous size.
3937
3938 2012-07-06  Tom Tromey  <tromey@redhat.com>
3939
3940         * c-exp.y (DOTDOTDOT): New token.
3941         (func_mod, exp): Use parameter_typelist.
3942         (parameter_typelist): New production.
3943         (tokentab3): Add "..." token.
3944         * eval.c (make_params): Handle varargs.
3945         * gdbtypes.c (lookup_function_type_with_arguments): Handle
3946         varargs.
3947
3948 2012-07-06  Tom Tromey  <tromey@redhat.com>
3949
3950         PR exp/9608:
3951         * c-exp.y (%union) <tvec>: Change type.
3952         (func_mod): Now uses <tvec> type.
3953         (exp): Update for tvec change.
3954         (direct_abs_decl): Push the typelist.
3955         (func_mod): Return a typelist.
3956         (nonempty_typelist): Update for tvec change.
3957         * gdbtypes.c (lookup_function_type_with_arguments): New function.
3958         * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3959         * parse.c (pop_type_list): New function.
3960         (push_typelist): New function.
3961         (follow_types): Handle tp_function_with_arguments.
3962         * parser-defs.h (type_ptr): New typedef.  Define a VEC.
3963         (enum type_pieces) <tp_function_with_arguments>: New constant.
3964         (union type_stack_elt) <typelist_val>: New field.
3965         (push_typelist): Declare.
3966
3967 2012-07-06  Tom Tromey  <tromey@redhat.com>
3968
3969         * c-exp.y (%union) <type_stack>: New field.
3970         (abs_decl, direct_abs_decl): Use <type_stack> type.  Update.
3971         (ptr_operator_ts): New production.
3972         (ptype): Update.
3973         * parse.c (type_stack_reserve): New function.
3974         (check_type_stack_depth): Use it.
3975         (pop_type_stack, append_type_stack, push_type_stack)
3976         (get_type_stack, type_stack_cleanup): New functions.
3977         (follow_types): Handle tp_type_stack.
3978         (_initialize_parse): Simplify initialization.
3979         * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3980         constant.
3981         (union type_stack_elt) <stack_val>: New field.
3982         (get_type_stack, append_type_stack, push_type_stack)
3983         (type_stack_cleanup): Declare.
3984
3985 2012-07-06  Tom Tromey  <tromey@redhat.com>
3986
3987         * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3988         Remove.
3989         (struct type_stack): New.
3990         * parse.c (type_stack, type_stack_size, type_stack_depth):
3991         Remove.
3992         (type_stack): New global.
3993         (parse_exp_in_context, check_type_stack_depth)
3994         (insert_into_type_stack, insert_type, push_type, push_type_int)
3995         (insert_type_address_space, pop_type, pop_type_int)
3996         (_initialize_parse): Update.
3997
3998 2012-07-06  Tom Tromey  <tromey@redhat.com>
3999
4000         * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4001         Remove %type.
4002
4003 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4004
4005         * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4006
4007 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4008             Jan Kratochvil  <jan.kratochvil@redhat.com>
4009
4010         * cp-valprint.c (cp_print_value): Replace potentially unsafe
4011         alloca with xmalloc/xfree.
4012
4013 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4014
4015         * MAINTAINERS (Write After Approval): Add myself to the list.
4016
4017 2012-07-05  Doug Evans  <dje@google.com>
4018
4019         * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4020
4021 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
4022
4023         * ax-gdb.c (cli/cli-utils.h): New include.
4024         (linespec.h): Ditto.
4025         (agent_eval_command_one): New function.
4026         (agent_command_1): Ditto.
4027         (agent_command): Call function agent_command_1.
4028         (agent_eval_command): Ditto.
4029         (_initialize_ax_gdb): Change help for "maint agent"
4030         and "maint agent-eval".
4031
4032 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
4033
4034         * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4035         * cli/cli-utils.c (check_for_argument): New function.
4036         * cli/cli-utils.h (check_for_argument): Ditto.
4037
4038 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
4039
4040         * NEWS: Mention x32 ABI support.
4041
4042 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
4043
4044         * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4045         AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4046
4047         * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4048         and pc_regnum_from_eax to -1.  Update SP regnum from
4049         sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4050         needed.
4051
4052         * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4053         pc_regnum_from_eax.
4054
4055 2012-07-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
4056
4057         Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4058         * dwarf2expr.h: Include gdbtypes.h.
4059         (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4060         these forward declarations.
4061         (cu_offset, sect_offset): Move these ...
4062         * gdbtypes.h: Remove include dwarf2expr.h.
4063         (cu_offset, sect_offset): ... here.
4064
4065 2012-07-03  H.J. Lu  <hongjiu.lu@intel.com>
4066
4067         * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4068         (amd64_linux_sigtramp_code): This.
4069         (amd64_x32_linux_sigtramp_code): New.
4070         (LINUX_SIGTRAMP_LEN): Updated.
4071         (amd64_linux_sigtramp_start): Check x32 sigtramp.
4072
4073 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4074
4075         * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4076
4077 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4078
4079         * config.in: Regenerate.
4080         * configure: Regenerate.
4081         * configure.ac: Remove check for gnu/libc-version.h.
4082         * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4083         gnu/libc-version.h.
4084         (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4085         variables libc_version, libc_major and libc_minor.  Replace sscanf by
4086         inferior_has_bug.  Extend the comment.
4087
4088 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4089
4090         * linux-thread-db.c (inferior_has_bug): New function.
4091         (thread_db_find_new_threads_silently): Return boolean as checked by
4092         inferior_has_bug, describe it in the comments.
4093         (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4094         earlier.  Abort the initialization if it returned non-zero.
4095         (thread_db_new_objfile): Exclude debug files.
4096         (thread_db_find_new_threads_2): Preinitialize ERR.  Check errors also
4097         if UNTIL_NO_NEW,
4098
4099 2012-07-02  Doug Evans  <dje@google.com>
4100
4101         * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4102         related to queue management.
4103
4104         * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4105         instead of "debug dwarf2-die" in debugging printfs.
4106         (create_debug_info_hash_table_reader): Ditto.
4107         (create_debug_info_hash_table): Ditto.
4108         (init_dwo_file): Ditto.
4109         (init_cutu_and_read_dies): Add debugging printf.
4110         (init_cutu_and_read_dies_no_follow): Ditto.
4111         (process_psymtab_comp_unit_reader): Ditto.
4112
4113 2012-07-02  Stan Shebs  <stan@codesourcery.com>
4114
4115         Add target-side support for dynamic printf.
4116         * NEWS: Mention the additional style.
4117         * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4118         (struct bp_location): New field cmd_bytecode.
4119         * breakpoint.c: Include format.h.
4120         (disconnected_dprintf): New global.
4121         (parse_cmd_to_aexpr): New function.
4122         (build_target_command_list): New function.
4123         (insert_bp_location): Call it.
4124         (remove_breakpoints_pid): Skip dprintf breakpoints.
4125         (print_one_breakpoint_location): Ditto.
4126         (dprintf_style_agent): New global.
4127         (dprintf_style_enums): Add dprintf_style_agent.
4128         (update_dprintf_command_list): Add agent case.
4129         (agent_printf_command): New function.
4130         (_initialize_breakpoint): Add new commands.
4131         * common/ax.def (printf): New bytecode.
4132         * ax.h (ax_string): Declare.
4133         * ax-gdb.h (gen_printf): Declare.
4134         * ax-gdb.c: Include cli-utils.h, format.h.
4135         (gen_printf): New function.
4136         (maint_agent_print_command): New function.
4137         (_initialize_ax_gdb): Add maint agent-printf command.
4138         * ax-general.c (ax_string): New function.
4139         (ax_print): Add printf disassembly.
4140         * Makefile.in (SFILES): Add format.c
4141         (COMMON_OBS): Add format.o.
4142         * common/format.h: New file.
4143         * common/format.c: New file.
4144         * printcmd.c: Include format.h.
4145         (ui_printf): Call parse_format_string.
4146         * remote.c (remote_state): New field breakpoint_commands.
4147         (PACKET_BreakpointCommands): New enum.
4148         (remote_breakpoint_commands_feature): New function.
4149         (remote_protocol_features): Add new BreakpointCommands entry.
4150         (remote_can_run_breakpoint_commands): New function.
4151         (remote_add_target_side_commands): New function.
4152         (remote_insert_breakpoint): Call it.
4153         (remote_insert_hw_breakpoint): Ditto.
4154         (_initialize_remote): Add new packet configuration for
4155         target-side breakpoint commands.
4156         * target.h (struct target_ops): New field
4157         to_can_run_breakpoint_commands.
4158         (target_can_run_breakpoint_commands): New macro.
4159         * target.c (update_current_target): Handle
4160         to_can_run_breakpoint_commands.
4161
4162 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4163
4164         Execute -ix and -iex only after system and user gdbinit files.
4165         * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4166         processing down after gdbinit files.
4167
4168 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4169
4170         Add fnmatch-gnu module.
4171         * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4172         * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4173         * gnulib/aclocal.m4: Regenerate.
4174         * gnulib/config.in: Regenerate.
4175         * gnulib/configure: Regenerate.
4176         * gnulib/import/dummy.c: Remove.
4177         * gnulib/import/Makefile.am: Regenerate.
4178         * gnulib/import/Makefile.in: Likewise.
4179         * gnulib/import/m4/gnulib-cache.m4: Likewise.
4180         * gnulib/import/m4/gnulib-comp.m4: Likewise.
4181         * gnulib/import/alloca.c: New file.
4182         * gnulib/import/alloca.in.h: Likewise.
4183         * gnulib/import/config.charset: Likewise.
4184         * gnulib/import/fnmatch.c: Likewise.
4185         * gnulib/import/fnmatch.in.h: Likewise.
4186         * gnulib/import/fnmatch_loop.c: Likewise.
4187         * gnulib/import/localcharset.c: Likewise.
4188         * gnulib/import/localcharset.h: Likewise.
4189         * gnulib/import/m4/alloca.m4: Likewise.
4190         * gnulib/import/m4/codeset.m4: Likewise.
4191         * gnulib/import/m4/configmake.m4: Likewise.
4192         * gnulib/import/m4/fcntl-o.m4: Likewise.
4193         * gnulib/import/m4/fnmatch.m4: Likewise.
4194         * gnulib/import/m4/glibc21.m4: Likewise.
4195         * gnulib/import/m4/localcharset.m4: Likewise.
4196         * gnulib/import/m4/locale-fr.m4: Likewise.
4197         * gnulib/import/m4/locale-ja.m4: Likewise.
4198         * gnulib/import/m4/locale-zh.m4: Likewise.
4199         * gnulib/import/m4/mbrtowc.m4: Likewise.
4200         * gnulib/import/m4/mbsinit.m4: Likewise.
4201         * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4202         * gnulib/import/m4/mbstate_t.m4: Likewise.
4203         * gnulib/import/m4/stdbool.m4: Likewise.
4204         * gnulib/import/m4/wchar_h.m4: Likewise.
4205         * gnulib/import/m4/wctype_h.m4: Likewise.
4206         * gnulib/import/m4/wint_t.m4: Likewise.
4207         * gnulib/import/mbrtowc.c: Likewise.
4208         * gnulib/import/mbsinit.c: Likewise.
4209         * gnulib/import/mbsrtowcs-impl.h: Likewise.
4210         * gnulib/import/mbsrtowcs-state.c: Likewise.
4211         * gnulib/import/mbsrtowcs.c: Likewise.
4212         * gnulib/import/ref-add.sin: Likewise.
4213         * gnulib/import/ref-del.sin: Likewise.
4214         * gnulib/import/stdbool.in.h: Likewise.
4215         * gnulib/import/streq.h: Likewise.
4216         * gnulib/import/strnlen1.c: Likewise.
4217         * gnulib/import/strnlen1.h: Likewise.
4218         * gnulib/import/verify.h: Likewise.
4219         * gnulib/import/wchar.in.h: Likewise.
4220         * gnulib/import/wctype.in.h: Likewise.
4221
4222 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4223
4224         Support shell wildcards for 'set auto-load safe-path'.
4225         * auto-load.c: Include fnmatch.h.
4226         (filename_is_in_dir): Rename to ...
4227         (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4228         it.  Update function comment.  Rename dir_len to pattern_len.  New
4229         variables filename_len, pattern and filename.  Add more DEBUG_AUTO_LOAD
4230         messages.  Use gdb_filename_fnmatch.
4231         (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4232         pattern.
4233         (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4234         * defs.h (gdb_filename_fnmatch): New declaration.
4235         * utils.c: Include fnmatch.h.
4236         (gdb_filename_fnmatch): New function.
4237
4238 2012-07-02  Sergio Durigan Junior  <sergiodj@redhat.com>
4239
4240         * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4241         `-probe' and `-probe-stap' options.
4242
4243 2012-07-01  Yao Qi  <yao@codesourcery.com>
4244
4245         * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4246         always_inserted_off, and always_inserted_enums.
4247         Change always_inserted_mode's type to 'enum auto_boolean'.
4248         (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4249         callers.
4250         (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4251         of add_setshow_enum_cmd.
4252         * infrun.c: Remove can_use_displaced_stepping_auto,
4253         can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4254         can_use_displaced_stepping_enum.
4255         Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4256         (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4257         (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4258         add_setshow_enum_cmd.
4259
4260 2012-06-30  Doug Evans  <dje@google.com>
4261
4262         * dwarf2read.c (signatured_type): Make "per_cu" member first.
4263         (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4264         currently being read.  Propagate DW_AT_comp_dir to DWO DIE.
4265
4266 2012-06-29  Doug Evans  <dje@google.com>
4267
4268         * linespec.c: #include "stack.h".
4269         (decode_line_with_current_source): Moved here from symtab.c and
4270         renamed from decode_line_spec.  All callers updated.
4271         (decode_line_with_last_displayed): Moved here from breakpoint.c and
4272         renamed from decode_line_spec_1.  All callers updated.
4273         * linespec.h (decode_line_with_current_source): Move declaration here
4274         from symtab.h and renamed from decode_line_spec.
4275         (decode_line_with_last_displayed): Move declaration here from symtab.h
4276         and renamed from decode_line_spec_1.
4277         * macrocmd.c: #include "linespec.h".
4278         * symtab.c: Remove #include "linespec.h".
4279
4280 2012-06-28  Doug Evans  <dje@google.com>
4281
4282         * dwarf2read.c (get_cu_length): New function.
4283         (offset_in_cu_p, error_check_comp_unit_head): Call it.
4284         (create_debug_types_hash_table): Ditto.
4285         (init_cutu_and_read_dies): Ditto.
4286         (init_cutu_and_read_dies_no_follow): Ditto.
4287
4288         * dwarf2read.c (dwarf2_find_base_address): Move definition.
4289
4290         * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4291         (struct abbrev_table): Define.
4292         (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4293         abbrev_table.
4294         (init_cutu_and_read_dies): Update.
4295         (abbrev_table_alloc_abbrev): New function.  Replaces
4296         dwarf_alloc_abbrev.  All callers updated.
4297         (abbrev_table_add_abbrev): New function.
4298         (abbrev_table_lookup_abbrev): New function.  Replaces
4299         dwarf2_lookup_abbrev.  All callers updated.
4300         (abbrev_table_read_table): New function.  Contents moved here from
4301         dwarf2_read_abbrevs.
4302         (dwarf2_read_abbrevs): Call it.
4303         (abbrev_table_free): New function.
4304         (dwarf2_free_abbrev_table): Call it.
4305
4306 2012-06-28  Stan Shebs  <stan@codesourcery.com>
4307
4308         * osdata.c (info_osdata_command): Filter out "Title" columns
4309         from non-MI uses.
4310         * common/linux-osdata.c (struct osdata_type): Add title field.
4311         (osdata_table): Add titles to each entry.
4312         (linux_command_xfer_osdata): Add a column for title data.
4313
4314 2012-06-28  Stan Shebs  <stan@codesourcery.com>
4315
4316         Make logging work for MI.
4317         * NEWS: Mention it.
4318         * interps.h (interp_set_logging_ftype): New typedef.
4319         (struct interp_procs): New field set_logging_proc.
4320         (current_interp_set_logging): Declare.
4321         * interps.c (current_interp_set_logging): New function.
4322         * cli/cli-logging.c: Include interps.h.
4323         (set_logging_redirect): Call current_interp_set_logging.
4324         (pop_output_files): Ditto.
4325         (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4326         * mi/mi-console.h (mi_console_set_raw): Declare.
4327         * mi/mi-console.c (mi_console_set_raw): New function.
4328         * mi/mi-interp.c (saved_raw_stdout): New global.
4329         (mi_set_logging): New function.
4330         (_initialize_mi_interp): Add it to interp procs.
4331
4332 2012-06-28  Doug Evans  <dje@google.com>
4333
4334         * symtab.c (lookup_symbol_aux_objfile): Use
4335         ALL_OBJFILE_PRIMARY_SYMTABS.
4336
4337         * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4338
4339 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4340
4341         * common/buffer.c: Include inttypes.h and stdint.h.
4342         (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4343
4344 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4345             Pedro Alves  <palves@redhat.com>
4346
4347         * gdbthread.h (ALL_THREADS): New macro.
4348         (thread_list): Declare.
4349         * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4350         going, but instead fall through to the stepping handling.
4351         * linux-nat.c (resume_lwp): New parameter 'signo'.  Resume with
4352         the passed in signal.  Adjust debug output.
4353         (resume_callback): Rename to ...
4354         (linux_nat_resume_callback): ... this.  Pass the thread's last
4355         stop signal, if in "pass" state.
4356         (linux_nat_resume): Adjust to rename.
4357         (stop_wait_callback): New assertion.  Don't respawn signals;
4358         instead let the LWP remain with SIGNALLED set.
4359         (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
4360         * remote.c (append_pending_thread_resumptions): New.
4361         (remote_vcont_resume): Call it.
4362         * target.h (target_resume): Extend comment.
4363
4364 2012-06-28  Iain Sandoe  <iain@codesourcery.com>
4365
4366         * auxv.c (fprint_target_auxv): Handle extended cache data tags.
4367
4368 2012-06-27  Doug Evans  <dje@google.com>
4369
4370         * dwarf2read.c (dwarf2_cu): Add ranges_base.
4371         Delete have_addr_base, unused.  All uses updated.
4372         (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
4373         (dwarf2_get_pc_bounds): Add ranges_base.
4374         (dwarf2_record_block_ranges): Ditto.
4375
4376 2012-06-27  Tom Tromey  <tromey@redhat.com>
4377
4378         PR macros/7961:
4379         * varobj.c (varobj_create): Update.
4380         (varobj_set_value): Update.
4381         * tracepoint.c (validate_actionline): Update.
4382         (encode_actions_1): Update.
4383         * parse.c (parse_exp_1): Add 'pc' argument.
4384         (parse_exp_in_context): Add 'pc' argument.  Change how
4385         expression_context_pc is set.
4386         (parse_expression): Update.
4387         (parse_field_expression): Update.
4388         * expression.h (parse_exp_1): Update.
4389         * eval.c (parse_to_comma_and_eval): Update.
4390         * breakpoint.c (set_breakpoint_condition): Update.
4391         (update_watchpoint): Update.
4392         (init_breakpoint_sal): Update
4393         (find_condition_and_thread): Update.
4394         (watch_command_1): Update.
4395         (update_breakpoint_locations): Update.
4396         * ada-lang.c (ada_read_renaming_var_value): Update.
4397         (create_excep_cond_exprs): Update.
4398
4399 2012-06-27  Doug Evans  <dje@google.com>
4400
4401         * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
4402         type units.
4403
4404 2012-06-26  Doug Evans  <dje@google.com>
4405
4406         * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
4407         prototype.
4408         (error_check_comp_unit_head): New arg abbrev_section.  All callers
4409         updated.
4410         (read_and_check_comp_unit_head): Ditto.
4411         (read_and_check_type_unit_head): Ditto.
4412
4413 2012-06-26  Siva Chandra Reddy  <sivachandra@google.com>
4414
4415         New attribute 'last' for gdb.Symtab_and_line.
4416         * NEWS (Python Scripting): Add entry about the new attribute.
4417         * python/py-symtab.c (salpy_get_last): New function which
4418         implements the get method for the 'last' attribute of
4419         gdb.Symtab_and_line.
4420         (sal_object_getset): Add entry for the 'last' attribute.
4421
4422 2012-06-26  Doug Evans  <dje@google.com>
4423
4424         * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4425         (dwo_sections): Add macinfo, macro.
4426         (dwarf2_locate_dwo_sections): Watch for macro sections.
4427         (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4428         All callers updated.  Handle DWO files.
4429
4430         * NEWS: Mention new options "set debug dwarf2-read" and
4431         "set debug symtab-create".
4432         * dwarf2read.c (dwarf2_read_debug): New static global.
4433         (dwarf2_build_psymtabs_hard): Add debugging printfs.
4434         (process_queue): Ditto.
4435         (process_full_comp_unit): Ditto.
4436         (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4437         * elfread.c (elf_symfile_read): Add debugging printf.
4438         * minsyms.c (install_minimal_symbols): Ditto.
4439         * psymtab.c (allocate_psymtab): Ditto.
4440         * symfile.c (allocate_symtab): Ditto.
4441         * symtab.c (symtab_create_debug): New global.
4442         (_initialize_symtab): Add new option "set debug symtab-create".
4443         * symtab.h (symtab_create_debug): Declare.
4444
4445         * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4446         (lookup_dwo_type_unit): Ditto.
4447
4448 2012-06-26  Roland McGrath  <roland@hack.frob.com>
4449             H.J. Lu  <hongjiu.lu@intel.com>
4450
4451         * amd64-linux-nat.c: Include <sys/user.h>.
4452         (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4453         if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4454         HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4455
4456         * configure.ac: Check if the fs_base and gs_base members of
4457         `struct user_regs_struct' exist.
4458         * config.in: Regenerated.
4459         * configure: Likewise.
4460
4461 2012-06-25  Michael Eager  <eager@eagercon.com>
4462
4463         PR python/14291
4464         * python/python.c (gdbpy_write): Check for interrupted output.
4465
4466 2012-06-25  Greta Yorsh  <greta.yorsh@arm.com>
4467
4468         * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4469         register as a stack alignment in ARM mode.
4470
4471 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4472
4473         Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4474         * gnulib/config.in: Regenerate.
4475         * gnulib/configure: Likewise.
4476         * gnulib/import/m4/extensions.m4: Update it.
4477         * gnulib/import/m4/gnulib-common.m4: Likewise.
4478         * gnulib/import/m4/memmem.m4: Likewise.
4479         * gnulib/import/m4/mmap-anon.m4: Likewise.
4480         * gnulib/import/m4/multiarch.m4: Likewise.
4481         * gnulib/import/stdint.in.h: Likewise.
4482
4483 2012-06-24  Yao Qi  <yao@codesourcery.com>
4484
4485         * corefile.c (write_memory_with_notification): New.
4486         * gdbcore.h: Declare write_memory_with_notification.
4487         * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4488         'observer_notify_memory_changed' with 'write_memory_with_notification'.
4489         * valops.c (value_assign): Likewise.
4490         * python/py-inferior.c (infpy_write_memory): Call
4491         'write_memory_with_notification'.
4492
4493 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4494
4495         * cc-with-index.sh: Use also -ex "set auto-load no".
4496
4497 2012-06-23  Doug Evans  <dje@google.com>
4498
4499         PR 14125
4500         * NEWS: Document additions to .gdb_index.
4501         * dwarf2read.c: #include "gdb/gdb-index.h".
4502         (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4503         (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4504         (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4505         (dwarf2_read_index): Recognize version 7.
4506         (dw2_do_expand_symtabs_matching): New args want_specific_block,
4507         block_kind, domain): All callers updated.
4508         (dw2_find_symbol_file): Handle new index CU values.
4509         (dw2_expand_symtabs_matching): Match symbol kind if requested.
4510         (add_index_entry): New args is_static, kind.  All callers updated.
4511         (offset_type_compare, uniquify_cu_indices): New functions
4512         (symbol_kind): New function.
4513         (write_psymtabs_to_index): Remove duplicate CU values.
4514         (write_psymtabs_to_index): Write .gdb_index version 7.
4515
4516 2012-06-22  Joel Brobecker  <brobecker@adacore.com>
4517
4518         * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4519         * configure: Regenerate.
4520
4521 2012-06-20  Yao Qi  <yao@codesourcery.com>
4522
4523         * python/py-inferior.c: Update comments of infpy_read_memory
4524         and infpy_write_memory.
4525
4526 2012-06-19  Tom Tromey  <tromey@redhat.com>
4527
4528         PR exp/9514:
4529         * parser-defs.h (insert_type, insert_type_address_space): Declare.
4530         (push_type_address_space): Remove.
4531         * parse.c (insert_into_type_stack): New function.
4532         (insert_type): Likewise.
4533         (insert_type_address_space): Rename from push_type_address_space.
4534         Insert tp_space_identifier.
4535         * c-exp.y (ptr_operator): New production.
4536         (abs_decl): Use ptr_operator.
4537         (space_identifier): Call insert_type_address_space.
4538         (ptype): Don't use const_or_volatile_or_space_identifier.
4539         (const_or_volatile_noopt): Call insert_type.
4540         (conversion_type_id, conversion_declarator): New productions.
4541         (operator): Use conversion_type_id.
4542
4543 2012-06-18  Doug Evans  <dje@google.com>
4544
4545         * symtab.h (minimal_symbol): New member created_by_gdb.
4546         * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4547         created by gdb.
4548         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4549         (search_symbols): Call it instead of lookup_symbol.
4550         Skip symbols created by gdb.  Only scan minsyms if nfiles == 0.
4551
4552         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4553         Adjust address for DW_OP_GNU_addr_index.
4554         * dwarf2expr.h (dwarf_expr_context): Update comment.
4555         * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4556         all callers updated.  Handle TLS vars described with
4557         DW_OP_GNU_const_index.
4558         (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4559         and DW_OP_GNU_const_index.
4560         * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4561
4562         * block.c (find_block_in_blockvector): Make explicit the fact that we
4563         ignore GLOBAL_BLOCK.
4564
4565 2012-06-18  Tom Tromey  <tromey@redhat.com>
4566
4567         * c-exp.y (operator): Remove trailing space after "delete" and
4568         "delete[]".
4569
4570 2012-06-18  Mark Kettenis  <kettenis@gnu.org>
4571             Jan Kratochvil  <jan.kratochvil@redhat.com>
4572
4573         Switch i386 and derived targets to ON_STACK.
4574         * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4575         (amd64_dicos_init_abi): Remove its installment.
4576         * dicos-tdep.c (dicos_init_abi): Remove the
4577         set_gdbarch_call_dummy_location call.  Update the comment here.
4578         * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4579         (i386_dicos_init_abi): Remove its installment.
4580         * i386-tdep.c (i386_push_dummy_code): New function.
4581         (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4582         i386_push_dummy_code.
4583
4584 2012-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
4585
4586         Remove stale dummy frames.
4587         * breakpoint.c: Include dummy-frame.h.
4588         (longjmp_breakpoint_ops): New variable.
4589         (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4590         bp_longjmp_call_dummy.
4591         (bpstat_what, bptype_string, print_one_breakpoint_location)
4592         (init_bp_location): Support bp_longjmp_call_dummy.
4593         (set_longjmp_breakpoint): Use longjmp_breakpoint_ops.  Comment why.
4594         (set_longjmp_breakpoint_for_call_dummy)
4595         (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4596         functions.
4597         (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4598         * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy.  Delete
4599         FIXME comment and extend the other comment for bp_call_dummy.
4600         (set_longjmp_breakpoint_for_call_dummy)
4601         (check_longjmp_breakpoint_for_call_dummy): New declarations.
4602         * dummy-frame.c: Include gdbthread.h.
4603         (pop_dummy_frame_bpt): New function.
4604         (pop_dummy_frame): Call pop_dummy_frame_bpt.
4605         (dummy_frame_discard): New function.
4606         (cleanup_dummy_frames): Update the comment about longjmps.
4607         * dummy-frame.h (dummy_frame_discard): New declaration.
4608         * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4609         * infcall.c (call_function_by_hand): New variable longjmp_b.  Call
4610         set_longjmp_breakpoint_for_call_dummy.  Chain its breakpoints with BPT.
4611         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4612         Add case 4 comment.  Call check_longjmp_breakpoint_for_call_dummy and
4613         keep_going if IS_LONGJMP and there is no other reason to stop.
4614
4615 2012-06-18  Greta Yorsh  <Greta.Yorsh@arm.com>
4616
4617         * remote-sim.c (sim_command_completer): Initialize
4618         variable 'result'.
4619
4620 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4621
4622         * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4623         * dwarf2loc.c (call_site_parameter_matches): Support
4624         CALL_SITE_PARAMETER_PARAM_OFFSET.
4625         (needs_dwarf_reg_entry_value): Push stub value.
4626         * dwarf2read.c (read_call_site_scope): New variable origin.  Support
4627         CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4628         * gdbtypes.h (enum call_site_parameter_kind): New item
4629         CALL_SITE_PARAMETER_PARAM_OFFSET.
4630         (struct call_site.parameter.u): New field param_offset.
4631
4632 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4633
4634         Code cleanup: Generalize call_site.parameter key.
4635         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4636         variable dwarf_reg.  New variable kind_u.  Update parameters to
4637         push_dwarf_reg_entry_value.
4638         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4639         * dwarf2expr.h (enum call_site_parameter_kind)
4640         (union call_site_parameter_u): Forward declarations.
4641         (struct dwarf_expr_context_funcs): Update parameters and their
4642         description for push_dwarf_reg_entry_value.
4643         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4644         * dwarf2loc.c (call_site_parameter_matches): New function.
4645         (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4646         description.  Use call_site_parameter_matches.
4647         (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4648         Update parameters and their description.
4649         (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4650         New variable kind_u.  Adjust the caller for updated parameters.
4651         (needs_dwarf_reg_entry_value): Update parameters.
4652         * dwarf2read.c (read_call_site_scope): New variable loc.  Use it
4653         instead of attr.  Update for the changed fields of struct
4654         call_site_parameter.
4655         * gdbtypes.h: Include dwarf2expr.h.
4656         (enum call_site_parameter_kind): New.
4657         (struct call_site.parameter): New field kind.  Wrap dwarf_reg and
4658         fb_offset into new union u.
4659
4660 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
4661
4662         * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4663         (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4664         for x32.
4665
4666 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
4667
4668         * amd64-linux-nat.c (compat_x32_clock_t): New.
4669         (compat_x32_siginfo_t): Likewise.
4670         (compat_x32_siginfo_from_siginfo): Likewise.
4671         (siginfo_from_compat_x32_siginfo): Likewise.
4672         (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4673         and siginfo_from_compat_x32_siginfo for x32.
4674
4675 2012-06-15  Hui Zhu  <hui_zhu@mentor.com>
4676
4677         * tracepoint.c (tfile_xfer_partial): Add a lseek.
4678
4679 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
4680
4681         * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4682         instead of gdbarch_ptr_bit.
4683         * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4684         (amd64_supply_native_gregset): Likewise.
4685         (amd64_collect_native_gregset): Likewise.
4686         * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4687         (amd64_supply_xsave): Likewise.
4688         (amd64_collect_fxsave): Likewise.
4689         (amd64_collect_xsave): Likewise.
4690
4691 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
4692
4693         * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4694         (amd64_linux_read_description): Check DS segment register for
4695         x32 process.
4696
4697 2012-06-15  Tom Tromey  <tromey@redhat.com>
4698
4699         * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4700         init_cutu_and_read_dies.
4701
4702 2012-06-15  Iain Sandoe <iain@codesourcery.com>
4703
4704         * MAINTAINERS (Write After Approval): Add myself to the list.
4705
4706 2012-06-15  Tom Tromey  <tromey@redhat.com>
4707
4708         * valops.c (value_find_oload_method_list): Now static.
4709         * value.h (value_find_oload_method_list): Don't declare.
4710
4711 2012-06-15  Tom Tromey  <tromey@redhat.com>
4712
4713         * valops.c (find_overload_match): Use value_ind.
4714
4715 2012-06-15  Maciej W. Rozycki  <macro@codesourcery.com>
4716
4717         * infrun.c (handle_inferior_event): Correct indentation.
4718
4719 2012-06-14  Doug Evans  <dje@google.com>
4720
4721         * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4722         (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4723         All uses updated.
4724         (decode_debug_loc_dwo_addresses): New arg "byte_order".  All callers
4725         updated.  Handle DEBUG_LOC_START_LENGTH.
4726         (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4727         (loclist_describe_location): Ditto.
4728
4729 2012-06-14  Maciej W. Rozycki  <macro@codesourcery.com>
4730
4731         PR backtrace/13866
4732         * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4733         after hiding inline functions.
4734
4735 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
4736
4737         * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4738         _initialize_inf_ttrace.
4739
4740 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
4741
4742         * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4743         _initialize_hppa_hpux_nat.
4744
4745 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
4746
4747         * remote-sim.c (sim_command_completer): Change type of return
4748         value to "VEC (char_ptr) *".  Adjust implementation accordingly.
4749
4750 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
4751             Jan Kratochvil  <jan.kratochvil@redhat.com>
4752
4753         PR tdep/14222
4754         * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4755         stack on a 16-byte boundary.
4756
4757 2012-06-13  Kaushik Srenevasan  <kaushik@twitter.com>
4758
4759         * jit.c (finalize_symtab): Set function's return type to 'void' by
4760         default.
4761
4762 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
4763             H.J. Lu  <hongjiu.lu@intel.com>
4764
4765         * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4766         Move bits common to both the classic LP64 and the new x32 ILP32
4767         ABI here.
4768         (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4769         (amd64_x32_linux_init_abi): New function.
4770         (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4771         subtype.
4772
4773         * i386-tdep.h (i386_pseudo_register_name): New prototype.
4774         * i386-tdep.c (i386_pseudo_register_name): Make public.
4775         * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4776         * amd64-tdep.c (amd64_dword_names): Add "eip".
4777         (amd64_x32_pseudo_register_type): New function
4778         (amd64_x32_init_abi): New function.
4779
4780 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4781
4782         PR build/14003
4783         * inferior.h (struct inferior_suspend_state): Comment out.
4784         (struct inferior): Comment out the field suspend.
4785         * infrun.c (struct infcall_suspend_state): Comment out the field
4786         inferior_suspend.
4787         (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4788         out its assignment.
4789
4790 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4791
4792         PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4793         * c-exp.y (classify_inner_name): Remove caller assumptions in the
4794         function comment.  Return ERROR for unresolved cases.  Implement
4795         returning proper NAME.
4796         (yylex): Accept also NAME from classify_inner_name.
4797         * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4798         (cp_lookup_nested_symbol): ... here.  Return any found symbol, not just
4799         LOC_TYPEDEF type.
4800         * cp-support.h (cp_lookup_nested_type): Update its declaration.
4801
4802 2012-06-13  Tom Tromey  <tromey@redhat.com>
4803
4804         * breakpoint.c (condition_completer): New function.
4805         (_initialize_breakpoint): Use it.
4806         * value.c (complete_internalvar): New function.
4807         * value.h (complete_internalvar): Declare.
4808
4809 2012-06-13  Tom Tromey  <tromey@redhat.com>
4810
4811         * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4812         * breakpoint.c (catch_syscall_completer): Return a VEC.
4813         * cli/cli-cmds.c (complete_command): Update.
4814         * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4815         (complete_on_enum): Likewise.
4816         * command.h: Include gdb_vecs.h.
4817         (completer_ftype): Change return type.
4818         (complete_on_cmdlist, complete_on_enum): Likewise.
4819         * completer.c (noop_completer, filename_completer)
4820         (location_completer): Return a VEC.
4821         (add_struct_fields): Remove 'nextp' argument.  Change 'output'
4822         to a VEC.
4823         (expression_completer, complete_line_internal, complete_line)
4824         (command_completer): Return a VEC.
4825         (gdb_completion_word_break_characters, line_completion_function):
4826         Update.
4827         * completer.h: Include gdb_vecs.h.
4828         (complete_line, noop_completer, filename_completer)
4829         (expression_completer, location_completer, command_completer):
4830         Update.
4831         * f-lang.c (f_word_break_characters): Return a VEC.
4832         * interps.c (interpreter_completer): Return a VEC.
4833         * language.h (struct language_defn)
4834         <la_make_symbol_completion_list>: Return a VEC.
4835         * python/py-cmd.c (cmdpy_completer): Return a VEC.
4836         * symtab.c (free_completion_list): Take a VEC.
4837         (return_val_size, return_val_index): Remove.
4838         (return_val): Now a VEC.
4839         (completion_list_add_name): Update.
4840         (default_make_symbol_completion_list_break_on)
4841         (default_make_symbol_completion_list, make_symbol_completion_list)
4842         (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4843         Return a VEC.
4844         (add_filename_to_list): Update.
4845         (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4846         <list>: Now a VEC.
4847         (maybe_add_partial_symtab_filename): Update.
4848         (make_source_files_completion_list): Return a VEC.
4849         * symtab.h (default_make_symbol_completion_list_break_on)
4850         (default_make_symbol_completion_list, make_symbol_completion_list)
4851         (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4852         (make_source_files_completion_list): Update.
4853
4854 2012-06-13  Tom Tromey  <tromey@redhat.com>
4855
4856         * breakpoint.c (add_catch_command): Use completer_ftype.
4857         * breakpoint.h: Include command.h.
4858         (add_catch_command): Use completer_ftype.
4859         * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4860         * cli/cli-decode.h (struct cmd_list_element) <completer>:
4861         Use completer_ftype.
4862         * command.h (completer_ftype): New typedef.
4863         (set_cmd_completer): Use it.
4864         * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4865         completer_ftype.
4866
4867 2012-06-13  Pedro Alves  <palves@redhat.com>
4868
4869         Partial revert of previous change.
4870
4871         * serial.c (scb_base): New global.
4872         (serial_for_fd): New.
4873         (serial_open, serial_fdopen_ops): Link new serial in open serials
4874         chain.
4875         (do_serial_close): Unlink serial from the open serials chain.
4876
4877 2012-06-12  Pedro Alves  <palves@redhat.com>
4878
4879         * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4880         threads here.
4881         (prepare_for_detach): No longer context switch here in non-stop
4882         mode.
4883         (fetch_inferior_event): Ditto.
4884         (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4885         to the event thread before removing breakpoints.  Switch to the
4886         event thread before inserting breakpoints and resuming.
4887         (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4888         event thread before resuming.
4889         (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4890         Switch to the event thread before removing breakpoints.
4891
4892 2012-06-12  Eli Zaretskii  <eliz@gnu.org>
4893
4894         * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4895         special characters correctly for the Windows shells.  See
4896         http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4897         report.
4898         [!__MINGW32__]: Remove extra double quote character from special
4899         characters.
4900
4901 2012-06-11  Stan Shebs  <stan@codesourcery.com>
4902
4903         * ui-out.h: Remove #if 0 declarations.
4904         * ui-out.c: Remove #if 0 functions.
4905
4906 2012-06-11  Pedro Alves  <palves@redhat.com>
4907
4908         * ser-base.c (run_async_handler_and_reschedule): New.
4909         (fd_event, push_event): Use it.
4910         * serial.c (serial_open, serial_fdopen_ops): Set the initial
4911         reference count to 1.
4912         (do_serial_close): Set the bufp field to NULL.  Use serial_unref
4913         instead of xfree.
4914         (serial_is_open, serial_ref, serial_unref): New.
4915         * serial.h (serial_open): Adjust comment.
4916         (serial_is_open): Declare.
4917         (serial_close): Adjust comment.
4918         (serial_ref, serial_unref) Declare.
4919         (struct serial): New field 'refcnt'.
4920
4921 2012-06-11  Pedro Alves  <palves@redhat.com>
4922
4923         Remove #if 0'd "connect" command, and unnecessary associated
4924         refcounting and serial reuse bits.
4925
4926         * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4927         * serial.c (last_serial_opened): Delete.
4928         (scb_base): Delete.
4929         (serial_open): Adjust.
4930         (serial_for_fd): Delete.
4931         (serial_fdopen_ops, do_serial_close): Adjust.
4932         (serial_fdopen_ops): Adjust.
4933
4934 2012-06-11  Pedro Alves  <palves@redhat.com>
4935
4936         * serial.c (do_serial_close): Remove early return when SCB is
4937         null.
4938
4939 2012-06-11  Tom Tromey  <tromey@redhat.com>
4940
4941         * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4942
4943 2012-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4944
4945         Fix regression by the "ambiguous linespec" series.
4946         * breakpoint.c (parse_breakpoint_sals): New variable cursal.  Use
4947         get_last_displayed_symtab and get_last_displayed_line and depending
4948         on CURSAL.
4949
4950 2012-06-11  Tom Tromey  <tromey@redhat.com>
4951
4952         * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4953         (dw2_find_symbol_file): Use it.
4954
4955 2012-06-11  Michael Eager  <eager@eagercon.com>
4956
4957         * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4958         * mips-linux-tdep.h (mips_signals): New
4959
4960 2012-06-11  Tom Tromey  <tromey@redhat.com>
4961
4962         * infrun.c (handle_inferior_event)
4963         <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4964         breakpoint.
4965         <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4966         exception logic in all cases.  Update comments.
4967         (insert_longjmp_resume_breakpoint): Set the exception resume
4968         breakpoint.
4969
4970 2012-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
4971
4972         * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4973
4974 2012-06-09  Siva Chandra Reddy  <sivachandra@google.com>
4975
4976         * valarith.c (binop_types_user_defined_p): Fix a typo.
4977
4978 2012-06-08  Yao Qi  <yao@codesourcery.com>
4979             Chung-Lin Tang <cltang@codesourcery.com>
4980
4981         * arch-utils.c (default_return_in_first_hidden_param_p): New.
4982         * arch-utils.h: Declare.
4983         * gdbarch.sh: Add return_in_first_hidden_param_p.
4984         * gdbarch.c, gdbarch.h: Regenerated.
4985         * infcall.c (call_function_by_hand): Call
4986         gdbarch_return_in_first_hidden_param_p instead of
4987         language_pass_by_reference.
4988
4989         * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4990         (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4991         * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4992         (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4993         * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4994         `cplus_return_struct_by_reference'.
4995         (tic6x_return_value): Handle language cplusplus.
4996         (tic6x_return_in_first_hidden_param_p): New.
4997         (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4998
4999 2012-06-07  Doug Evans  <dje@google.com>
5000
5001         * dwarf2read.c (dwarf2_cu): Add comment.
5002
5003 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
5004
5005         * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5006         variable.
5007         (mips_eabi_push_dummy_call): Likewise.
5008         (mips_n32n64_push_dummy_call): Likewise.
5009         (mips_o32_push_dummy_call): Likewise.
5010         (mips_o64_push_dummy_call): Likewise.
5011
5012 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
5013
5014         * mips-tdep.c (mips_convert_register_p): Correct coding style.
5015
5016 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
5017
5018         * mips-tdep.c (mips_pseudo_register_type): Use
5019         mips_float_register_p.
5020
5021 2012-06-06  Pedro Alves  <palves@redhat.com>
5022
5023         * infrun.c (handle_inferior_event): Remove calls to
5024         reinit_frame_cache that follow a context_switch call.
5025
5026 2012-06-06  Pedro Alves  <palves@redhat.com>
5027
5028         * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5029         context_switch and remove stale comment.
5030
5031 2012-06-06  Pedro Alves  <palves@redhat.com>
5032
5033         * infrun.c (struct execution_control_state): Remove
5034         `new_thread_event' field.
5035         (handle_inferior_event): Simplify new threads handling; don't
5036         resume the inferior if we find a new thread.
5037
5038 2012-06-06  Thomas Schwinge  <thomas@codesourcery.com>
5039
5040         * NEWS: Document the deprecation of SH's 'regs' command.
5041         * inferior.h (all_registers_info): Add function declaration.
5042         * sh-tdep.c (sh_show_regs): Remove variable.
5043         (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5044         (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5045         (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5046         (sh_show_regs_command): Remove functions.
5047         (sh_gdbarch_init): Don't set sh_show_regs.
5048         (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5049         'info all-registers'.
5050         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5051         (sh64_show_regs): Remove functions.
5052         * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5053
5054 2012-06-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5055
5056         * configure.ac: Move development=true below AC_INIT.
5057         * configure: Regenerate.
5058
5059 2012-06-05  Stan Shebs  <stan@codesourcery.com>
5060
5061         * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5062         gdb_stdout.
5063
5064 2012-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
5065
5066         * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5067         argument as ssize_t.
5068         * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5069         * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5070         * target.c (target_read_stack, target_write_memory)
5071         (target_write_raw_memory): Likewise.
5072         * target.h (target_read_stack, target_write_memory)
5073         (target_write_raw_memory): Likewise.
5074
5075 2012-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
5076
5077         * symfile-mem.c: Change gdb_static_assert to ssize_t.
5078         (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5079         * target.c (target_read_memory): Change LEN to ssize_t.
5080         * target.h (target_read_memory): Change LEN to ssize_t.
5081
5082 2012-06-05  Pedro Alves  <palves@redhat.com>
5083
5084         PR backtrace/13866
5085
5086         * breakpoint.c (until_break_command): Only fetch the selected
5087         frame after decode_line_1.
5088
5089 2012-06-05  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
5090
5091         * solib-svr4.c (enable_break): Don't fallback to setting the solib
5092         event breakpoint at _start, __start or main if a program
5093         interpreter is not found.
5094
5095 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5096
5097         * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5098         Add declaration.
5099         * windows-tdep.c: #include "objfiles.h".
5100         (windows_iterate_over_objfiles_in_search_order): New function.
5101         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5102         iterate_over_objfiles_in_search_order gdbarch method to
5103         windows_iterate_over_objfiles_in_search_order.
5104         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5105
5106 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5107
5108         * gdbarch.sh: Add generation of
5109         "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5110         gdbarch.h.  Add include of "objfiles.h" in gdbarch.c.
5111         (iterate_over_objfiles_in_search_order): New gdbarch method.
5112         * gdbarch.h, gdbarch.c: Regenerate.
5113         * objfiles.h (default_iterate_over_objfiles_in_search_order):
5114         Add declaration.
5115         * objfiles.c (default_iterate_over_objfiles_in_search_order):
5116         New function.
5117         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5118         out of lookup_symbol_aux_symtabs.
5119         (lookup_symbol_aux_symtabs): Replace extracted-out code by
5120         call to lookup_symbol_aux_objfile.
5121         (struct global_sym_lookup_data): New type.
5122         (lookup_symbol_global_iterator_cb): New function.
5123         (lookup_symbol_global): Search for symbol using
5124         gdbarch_iterate_over_objfiles_in_search_order and
5125         lookup_symbol_global_iterator_cb.
5126         * findvar.c (struct minsym_lookup_data): New type.
5127         (minsym_lookup_iterator_cb): New function.
5128         (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5129         symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5130         and minsym_lookup_iterator_cb.
5131
5132 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5133
5134         Revert the following patch:
5135         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5136         try locating the symbol in the symbol's own objfile first, before
5137         extending the search to all objfiles.
5138         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5139         out of lookup_symbol_aux_symtabs.
5140         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5141         Replace extracted-out code by call to lookup_symbol_aux_objfile.
5142         Do not search EXCLUDE_OBJFILE.
5143         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5144         (lookup_symbol_global): Search for matches in the block's objfile
5145         first, before searching all other objfiles.
5146
5147 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5148
5149         * breakpoint.c (find_condition_and_thread): Stop parsing
5150         as soon as the first invalid keyword is found.
5151
5152 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5153
5154         * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5155
5156 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5157
5158         * config/djgpp/djcheck.sh: Add copyright header.
5159
5160 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5161
5162         * copyright.py (update_files, main): Fix path to update-copyright
5163         script.
5164
5165 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5166
5167         * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5168         (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5169         for which a reminder to update by hand is printed.
5170
5171 2012-06-04  Doug Evans  <dje@google.com>
5172
5173         * buildsym.c (make_blockvector): Add comment.
5174
5175 2012-06-04  Pedro Alves  <palves@redhat.com>
5176
5177         * arch-utils.c (default_gdb_signal_from_target): Delete.
5178         * arch-utils.h (default_gdb_signal_from_target): Delete.
5179         * corelow.c (core_open) <signal mapping>: Extended comment.  Check
5180         gdbarch_gdb_signal_from_target_p.
5181         * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5182         predicate).
5183         * gdbarch.h: Regenerate.
5184         * gdbarch.c: Regenerate.
5185
5186 2012-06-04  Pedro Alves  <palves@redhat.com>
5187
5188         * gdbarch.sh (gdb_signal_from_target): Mention that the
5189         implementation of the method must be host independent.
5190         * gdbarch.h: Regenerate.
5191
5192 2012-06-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5193
5194         * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5195         parameters.
5196         (target_read_memory_bfd): New function.
5197         (symbol_file_add_from_memory): Use it.
5198
5199 2012-06-03  Doug Evans  <dje@google.com>
5200
5201         * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5202         of primary symtab.
5203         (basic_lookup_transparent_type): Ditto.
5204
5205         * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5206         (ALL_PRIMARY_SYMTABS): Use it.
5207         (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5208         * dwarf2read.c (dw2_find_symbol_file): Ditto.
5209         * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5210         * symtab.c (lookup_symbol_aux_objfile): Ditto.
5211         (basic_lookup_transparent_type): Ditto.
5212
5213 2012-06-02  Sergio Durigan Junior  <sergiodj@redhat.com>
5214
5215         * symtab.c (symbol_demangled_name): New variable `dem_name'.  Use
5216         it to optimize resolution of demangled name.
5217
5218 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5219
5220         * configure.ac (development): Define new variable.
5221         Call AC_CHECK_LIB for mcheck if $development.
5222         (ERROR_ON_WARNING): Enable it by default only if $development.
5223         * config.in: Regenerate.
5224         * configure: Regenerate.
5225
5226 2012-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
5227
5228         * target.c (target_read_memory): Make LEN argument as size_t.
5229         * target.h (target_read_memory): Likewise.
5230
5231 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5232
5233         * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5234
5235 2012-05-31  Edjunior Machado  <emachado@linux.vnet.ibm.com>
5236
5237         * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5238         BookE interface for PowerPC server processors if not available
5239         in the Linux Kernel.
5240
5241 2012-05-31  Keith Seitz  <keiths@redhat.com>
5242
5243         * linespec.c (decode_objc): Add cleanup to free
5244         INFO.FILE_SYMTABS.
5245         (find_linespec_symbols): Add cleanup to free CLASSES.
5246         * symfile.c (find_separate_debug_file_by_debuglink): Add
5247         cleanup to free DEBUGLINK.
5248         * ui-out.c (clear_header_list): No need to check if
5249         HEADER_NEXT.COLHDR is NULL.
5250         Free HEADER_NEXT.COL_NAME.
5251
5252 2012-05-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
5253
5254         * ada-lang.c (standard_lookup): Prevent uninitialized variable
5255         warning.
5256
5257 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
5258
5259         * configure.host (gdb_host_cpu): Handle tilegx*.
5260         (gdb_host): Handle tilegx-*-linux*.
5261         * tilegx-linux-nat.c: New file.
5262         * config/tilegx/linux.mh: New file.
5263
5264 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
5265
5266         * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5267         tilegx-linux-tdep.o.
5268         (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5269         tilegx-linux-tdep.c.
5270         * configure.tgt: Handle tilegx-*-linux*.
5271         * tilegx-tdep.h: New file.
5272         * tilegx-tdep.c: New file.
5273         * tilegx-linux-tdep.c: New file.
5274         * regformats/reg-tilegx.dat: New file.
5275
5276 2012-05-30  Edjunior Machado  <emachado@linux.vnet.ibm.com>
5277
5278         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5279         accounting of hw watchpoints on ppc.
5280
5281 2012-05-30  Thiago Jung Bauermann  <thiago.bauermann@linaro.org>
5282
5283         * source.c (openp): Expand tilde in path entries.
5284
5285 2012-05-29  Doug Evans  <dje@google.com>
5286
5287         * buildsym.c (block_compar): Fix comment.
5288         (end_symtab): Fix and clarify some comments.
5289
5290         * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5291         cleanup_undefined_types.
5292         * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5293         All callers updated.
5294
5295 2012-05-29  Tom Tromey  <tromey@redhat.com>
5296
5297         * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5298         fails.
5299         * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5300         * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5301         fails.
5302         * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5303         fails.
5304
5305 2012-05-29  Tristan Gingold  <gingold@adacore.com>
5306
5307         * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5308         (struct darwin_info): ... New struct.
5309         (solib_darwin_pspace_data): New variable.
5310         (darwin_pspace_data_cleanup): New function.
5311         (get_darwin_info): Likewise.
5312         (darwin_dyld_version_ok, darwin_load_image_infos)
5313         (darwin_solib_get_all_image_info_addr_at_init)
5314         (darwin_solib_read_all_image_info_addr): Add info argument.
5315         Adjust code.
5316         (darwin_current_sos): Use per pspace structure.
5317         (darwin_solib_create_inferior_hook): Likewise.
5318         (darwin_clear_solib): Likewise.
5319         (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5320
5321 2012-05-28  Pedro Alves  <palves@redhat.com>
5322
5323         * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5324         block that uses them.  Clear ecss before handling each event.
5325
5326 2012-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
5327
5328         * solib-svr4.c (svr4_current_sos): New comment on
5329         svr4_current_sos_via_xfer_libraries fall back.
5330
5331 2012-05-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
5332
5333         * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best.  Use
5334         it as a fallback for TYPE_IS_OPAQUE.
5335         * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5336         symbols for lookup_symbol.
5337
5338 2012-05-24  John Steele Scott  <toojays@toojays.net>
5339
5340         PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5341         * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5342         (producer_is_gxx_lt_4_6): Move the checking and caching to...
5343         (check_producer): ... this new function, which also checks for ICC
5344         and caches the result.
5345         (producer_is_icc): New function.
5346         (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5347         producer was ICC.
5348
5349 2012-05-24  Pedro Alves  <palves@redhat.com>
5350
5351         PR gdb/7205
5352
5353         * arch-utils.c (default_gdb_signal_to_host): Rename to ...
5354         (default_gdb_signal_to_target): ... this.  Add comment.
5355         (default_gdb_signal_from_host): Rename to ...
5356         (default_gdb_signal_from_target): ... this.  Add comment.
5357         * arch-utils.h (default_gdb_signal_to_host): Rename to ...
5358         (default_gdb_signal_to_target): ... this.
5359         (default_gdb_signal_from_host): Rename to ...
5360         (default_gdb_signal_from_target): ... this.
5361         * corelow.c (core_open): Adjust to naming change.  Replace comment.
5362         * gdbarch.sh (gdb_signal_from_host): Rename to ...
5363         (gdb_signal_from_target): ... this.  Adjust to
5364         default_gdb_signal_from_host naming change.  Extend comment.
5365         (gdb_signal_to_host): Rename to ...
5366         (gdb_signal_to_target): ... this.  Adjust to
5367         default_gdb_signal_to_host naming change.
5368         * gdbarch.h, gdbarch.c: Renegerate.
5369
5370 2012-05-24  Pedro Alves  <palves@redhat.com>
5371
5372         PR gdb/7205
5373
5374         Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
5375
5376 2012-05-24  Pedro Alves  <palves@redhat.com>
5377
5378         PR gdb/7205
5379
5380         Replace target_signal with gdb_signal throughout.
5381
5382 2012-05-24  Pedro Alves  <palves@redhat.com>
5383
5384         PR tui/14159
5385
5386         * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
5387         string, instead of reusing the va_list argument.
5388
5389 2012-05-24  Tom Tromey  <tromey@redhat.com>
5390
5391         * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
5392         Remove.
5393
5394 2012-05-23  Doug Evans  <dje@google.com>
5395
5396         * symtab.c (search_symbols): Formatting fixes.
5397         (print_symbol_info): Formatting fixes.
5398
5399         * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
5400         int64_t change to leb128 API.
5401         (read_encoded_value, decode_frame_entry_1): Ditto.
5402         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
5403         (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
5404         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5405         (execute_stack_op): Ditto.
5406         * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
5407         (safe_read_uleb128, safe_read_sleb128): Ditto.
5408         * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
5409         (dwarf2_compile_expr_to_ax): Ditto.
5410         (locexpr_describe_location_piece): Ditto.
5411         (disassemble_dwarf_expression): Ditto.
5412         (locexpr_describe_location_1): Ditto.
5413
5414 2012-05-23  Stan Shebs  <stan@codesourcery.com>
5415             Kwok Cheung Yeung  <kcy@codesourcery.com>
5416
5417         * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5418         (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5419         (mi-cmd-info.o): New rule.
5420         * osdata.h (info_osdata_command): New declaration.
5421         * osdata.c (info_osdata_command): Change to non-static.
5422         * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5423         * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5424         * mi/mi-cmd-info.c: New file.
5425
5426 2012-05-23  Doug Evans  <dje@google.com>
5427
5428         * symtab.c (search_symbols): Pass NULL for file_matcher to
5429         expand_symtabs_matching if there are no files to match.
5430
5431         * gdbtypes.c (lookup_typename): Simplify.
5432
5433 2012-05-23  Pedro Alves  <palves@redhat.com>
5434
5435         * arch-utils.h (default_target_signal_to_host): Delete.
5436         * arch-utils.c (default_target_signal_to_host): Delete.
5437         * gdbarch.sh (target_signal_to_host): Remove.
5438         * gdbarch.h, gdbarch.c: Regenerate.
5439
5440 2012-05-22  Doug Evans  <dje@google.com>
5441
5442         * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5443         "const gdb_byte *".
5444         (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5445         (execute_cfa_program): Update to match API of leb128 functions.
5446         (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5447         "const gdb_byte *".
5448         (read_unsigned_leb128, read_signed_leb128): Delete.
5449         (read_initial_length): Change type of buf argument to
5450         "const gdb_byte *".
5451         (read_encoded_value): Update to match API of leb128 functions.
5452         (decode_frame_entry): Change result to "const gdb_byte *", and
5453         similarly for "start" parameter.
5454         (decode_frame_entry_1): Ditto.  Use new leb128 reader functions.
5455         (dwarf2_build_frame_info): Change local frame_ptr to
5456         "const gdb_byte *".
5457         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5458         read_uleb128, read_sleb128.  All callers updated.
5459         (safe_skip_leb128): New function.
5460         (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5461         Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5462         (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5463         functions.  Call gdb_read_uleb128, gdb_read_sleb128 instead of
5464         read_uleb128, read_sleb128.
5465         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5466         (execute_stack_op): Update to match API of leb128 functions.
5467         * dwarf2expr.h: #include "leb128.h".
5468         (read_uleb128, read_sleb128): Delete.
5469         (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5470         (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5471         * dwarf2loc.c (debug_loc_kind): New enum.
5472         (decode_debug_loc_addresses): New function.
5473         (decode_debug_loc_dwo_addresses): New function.
5474         (dwarf2_find_location_expression): Rewrite.
5475         (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5476         (locexpr_describe_location_piece): Ditto.
5477         (disassemble_dwarf_expression): Ditto.
5478         (locexpr_describe_location_1): Ditto.
5479         (loclist_describe_location): Rewrite.
5480         * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5481         * dwarf2read.c (die_reader_specs): New member "buffer_end".
5482         (dwarf2_section_buffer_overflow_complaint): Renamed from
5483         dwarf2_macros_too_long_complaint.  All callers updated.
5484         (skip_leb128): Delete.
5485         (init_cu_die_reader): Initialize reader->buffer_end.
5486         (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5487         (skip_form_bytes): New arg buffer_end.  All callers updated.
5488         Replace call to skip_leb128 with gdb_skip_leb128.
5489         (skip_unknown_opcode): New arg mac_end.  All callers updated.
5490         (fill_in_loclist_baton): Initialize baton->from_dwo.
5491
5492 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
5493
5494         * mips-linux-nat.c (mips_linux_read_description): Use a more
5495         verbose error message.
5496
5497 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
5498
5499         * NEWS: Add MIPS/Linux DSP support.
5500         * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5501         (SIGCONTEXT_DSPCTL): New macro.
5502         (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5503         (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5504         (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5505         (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5506         (N64_SIGCONTEXT_HI3): Likewise.
5507         (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5508         (N64_SIGCONTEXT_LO3): Likewise.
5509         (N64_SIGCONTEXT_DSPCTL): Likewise.
5510         (N64_SIGCONTEXT_FPCSR): Clarify definition.
5511         (mips_linux_o32_sigframe_init): Handle DSP registers.
5512         (mips_linux_n32n64_sigframe_init): Likewise.
5513
5514 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
5515
5516         * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5517         call to abort.
5518
5519 2012-05-22  Pedro Alves  <palves@redhat.com>
5520
5521         * target.h (store_waitstatus): Move declaration ...
5522         * inf-child.h (store_waitstatus): ... here.
5523         * target.c: Move inclusion of gdb_wait.h, and ...
5524         (store_waitstatus): ... this ...
5525         * inf-child.c: ... here.
5526         * linux-nat.c: Include inf-child.h.
5527         * rs6000-nat.c: Include inf-child.h.
5528         * spu-linux-nat.c: Include inf-child.h.
5529
5530 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
5531
5532         * tracepoint.c (start_tracing): Add missing i18n markup.
5533         (stop_tracing, set_trace_user): Ditto.
5534         (set_trace_notes, set_trace_stop_notes): Ditto.
5535
5536 2012-05-21  Tom Tromey  <tromey@redhat.com>
5537
5538         PR c++/7173:
5539         * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5540         types.
5541         * value.h (value_cast_pointers): Update.
5542         * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5543         (value_cast): Update.
5544         (update_search_result): New function.
5545         (do_search_struct_field): New, from search_struct_field.  Check
5546         for ambiguous results.
5547         (search_struct_field): Rewrite.
5548         * infcall.c (value_arg_coerce): Update.
5549         * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5550         value_cast_pointers.
5551         * ada-lang.c (ada_convert_actual): Update.
5552
5553 2012-05-21  Tom Tromey  <tromey@redhat.com>
5554
5555         * macroexp.c (macro_stringify): Terminate the string.
5556
5557 2012-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
5558
5559         * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5560         Describe it.
5561         * auto-load.c (auto_load_expand_dir_vars): New function.
5562         (auto_load_safe_path_vec_update): Use it, remove the
5563         substitute_path_component call thanks to it.
5564         (auto_load_objfile_script): Remove the debug_file_directory processing.
5565         Use auto_load_expand_dir_vars, remove the substitute_path_component
5566         call thanks to it.
5567         * configure: Regenerate.
5568         * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5569         path.  Escape $ also for $debugdir.
5570         (--with_auto_load_safe_path): Escape $ also for $debugdir.
5571         * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5572
5573 2012-05-20  Doug Evans  <dje@google.com>
5574
5575         * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5576         before use.  Check for symtab->includes == NULL before scanning it.
5577
5578 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5579
5580         * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5581
5582 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5583
5584         * NEWS: Add microMIPS support and "set mips compression",
5585         "show mips compression" commands.
5586         * mips-tdep.h (mips_isa): New enum.
5587         (gdbarch_tdep): Add mips_isa.
5588         (mips_pc_is_mips16): Update prototype.
5589         (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5590         * mips-tdep.c (mips_compression_mips16): New variable.
5591         (mips_compression_micromips): Likewise.
5592         (mips_compression_strings): Likewise.
5593         (mips_compression_string): Likewise.
5594         (is_mips16_isa, is_micromips_isa): New functions.
5595         (is_mips16_addr): Rename to...
5596         (is_compact_addr): ... this.
5597         (unmake_mips16_addr): Likewise to...
5598         (unmake_compact_addr): ... this.
5599         (make_mips16_addr): Likewise to...
5600         (make_compact_addr): ... this.
5601         (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5602         functions.
5603         (mips_elf_make_msymbol_special): Handle microMIPS code.
5604         (msymbol_is_special): Rename to...
5605         (msymbol_is_mips16): ... this.
5606         (mips_make_symbol_special, mips_pc_is_mips16): Update
5607         accordingly.
5608         (msymbol_is_mips, msymbol_is_micromips): New functions.
5609         (mips16_to_32_reg): Rename to...
5610         (mips_reg3_to_reg): ... this.
5611         (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5612         (mips_pc_isa): Likewise.
5613         (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5614         code.
5615         (mips_fetch_instruction): Pass return status instead of printing
5616         an error message if requested.  Handle microMIPS code.  Bail out
5617         on an invalid ISA.
5618         (micromips_op): New macro.
5619         (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5620         (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5621         (b6s4_op, b7s3_reg): Likewise.
5622         (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5623         (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5624         (mips_insn_size): New function.
5625         (mips32_next_pc): Update mips_fetch_instruction call.
5626         (micromips_relative_offset7): New function.
5627         (micromips_relative_offset10): Likewise.
5628         (micromips_relative_offset16): Likewise.
5629         (micromips_pc_insn_size): Likewise.
5630         (micromips_bc1_pc): Likewise.
5631         (micromips_next_pc): Likewise.
5632         (unpack_mips16): Update mips_fetch_instruction call.
5633         (extended_mips16_next_pc): Update according to change to
5634         mips16_to_32_reg.
5635         (mips_next_pc): Update mips_pc_is_mips16 call.  Handle microMIPS
5636         code.
5637         (mips16_scan_prologue): Update mips_fetch_instruction call.
5638         Update according to change to mips16_to_32_reg.
5639         (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5640         (mips_insn16_frame_base_sniffer): Likewise.
5641         (micromips_decode_imm9): New function.
5642         (micromips_scan_prologue): Likewise.
5643         (mips_micro_frame_cache): Likewise.
5644         (mips_micro_frame_this_id): Likewise.
5645         (mips_micro_frame_prev_register): Likewise.
5646         (mips_micro_frame_sniffer): Likewise.
5647         (mips_micro_frame_unwind): New variable.
5648         (mips_micro_frame_base_address): New function.
5649         (mips_micro_frame_base): New variable.
5650         (mips_micro_frame_base_sniffer): New function.
5651         (mips32_scan_prologue): Update mips_fetch_instruction call.
5652         (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5653         rather than for MIPS16.
5654         (mips_insn32_frame_base_sniffer): Likewise.
5655         (mips_addr_bits_remove): Handle microMIPS code.
5656         (deal_with_atomic_sequence): Rename to...
5657         (mips_deal_with_atomic_sequence): ... this.  Update the type
5658         of the variable used to hold an instruction.  Remove the ISA bit
5659         check.  Update mips_fetch_instruction call.
5660         (micromips_deal_with_atomic_sequence): New function.
5661         (deal_with_atomic_sequence): Likewise.
5662         (mips_about_to_return): Handle microMIPS code.  Update
5663         mips_fetch_instruction call.
5664         (heuristic_proc_start): Check for the standard MIPS ISA rather
5665         than for MIPS16.  Update mips_pc_is_mips16 and
5666         mips_fetch_instruction calls.  Handle microMIPS code.
5667         (mips_push_dummy_code): Handle microMIPS code.
5668         (mips_eabi_push_dummy_call): Likewise.
5669         (mips_o32_return_value): Update mips_pc_is_mips16 call.
5670         (mips_o64_push_dummy_call): Handle microMIPS code.
5671         (mips_o64_return_value): Update mips_pc_is_mips16 call.
5672         (is_delayed): Remove function.
5673         (mips_single_step_through_delay): Replace the call to is_delayed
5674         with mips32_instruction_has_delay_slot.  Correct MIPS16 handling.
5675         Handle microMIPS code.
5676         (mips_skip_prologue): Update mips_pc_is_mips16 call.  Handle
5677         microMIPS code.
5678         (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5679         call.
5680         (micromips_in_function_epilogue_p): New function.
5681         (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5682         call.
5683         (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5684         Handle microMIPS.
5685         (gdb_print_insn_mips): Likewise.
5686         (mips_breakpoint_from_pc): Likewise.
5687         (mips_remote_breakpoint_from_pc): New function.
5688         (mips32_instruction_has_delay_slot): Simplify making use of the
5689         updated mips_fetch_instruction interface.
5690         (micromips_instruction_has_delay_slot): New function.
5691         (mips16_instruction_has_delay_slot): Simplify making use of the
5692         updated mips_fetch_instruction interface.
5693         (mips_adjust_breakpoint_address): Check for the standard MIPS
5694         ISA rather than for MIPS16 ISA.  Update for unmake_compact_addr
5695         calls.  Handle microMIPS code.
5696         (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5697         (mips_skip_trampoline_code): Handle microMIPS code.
5698         (global_mips_compression): New function.
5699         (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5700         file flags.  Register the microMIPS remote breakpoint handler
5701         and heuristic frame unwinder.
5702         (show_mips_compression): New function.
5703         (_initialize_mips_tdep): Add the "set mips compression" and
5704         "show mips compression" commands.
5705
5706 2012-05-18  Sergio Durigan Junior  <sergiodj@redhat.com>
5707
5708         * ada-lang.c:
5709         * ada-tasks.c:
5710         * ada-varobj.c:
5711         * amd64-darwin-tdep.c:
5712         * arm-symbian-tdep.c:
5713         * arm-tdep.c:
5714         * avr-tdep.c:
5715         * ax-gdb.c:
5716         * bfin-linux-tdep.c:
5717         * breakpoint.c:
5718         * c-valprint.c:
5719         * cli/cli-cmds.c:
5720         * coffread.c:
5721         * cp-support.c:
5722         * cris-tdep.c:
5723         * dwarf2-frame-tailcall.c:
5724         * dwarf2-frame.c:
5725         * dwarf2expr.c:
5726         * dwarf2loc.c:
5727         * dwarf2read.c:
5728         * elfread.c:
5729         * eval.c:
5730         * expprint.c:
5731         * f-valprint.c:
5732         * frv-tdep.c:
5733         * h8300-tdep.c:
5734         * hppa-hpux-tdep.c:
5735         * hppa-tdep.c:
5736         * hppanbsd-tdep.c:
5737         * i386-nto-tdep.c:
5738         * i386-tdep.c:
5739         * i387-tdep.c:
5740         * ia64-tdep.c:
5741         * jit.c:
5742         * linespec.c:
5743         * linux-tdep.c:
5744         * lm32-tdep.c:
5745         * m2-valprint.c:
5746         * m32c-tdep.c:
5747         * m32r-rom.c:
5748         * m32r-tdep.c:
5749         * m68k-tdep.c:
5750         * m68klinux-tdep.c:
5751         * mi/mi-main.c:
5752         * microblaze-tdep.c:
5753         * mips-linux-tdep.c:
5754         * mips-tdep.c:
5755         * mn10300-tdep.c:
5756         * p-valprint.c:
5757         * parse.c:
5758         * ppc-linux-tdep.c:
5759         * ppc-sysv-tdep.c:
5760         * printcmd.c:
5761         * python/py-finishbreakpoint.c:
5762         * python/py-inferior.c:
5763         * python/py-infthread.c:
5764         * python/py-type.c:
5765         * python/python.c:
5766         * remote-fileio.c:
5767         * remote-m32r-sdi.c:
5768         * remote-mips.c:
5769         * reverse.c:
5770         * rl78-tdep.c:
5771         * rs6000-aix-tdep.c:
5772         * rs6000-tdep.c:
5773         * s390-tdep.c:
5774         * score-tdep.c:
5775         * sh64-tdep.c:
5776         * skip.c:
5777         * solib-darwin.c:
5778         * solib-dsbt.c:
5779         * solib-frv.c:
5780         * sparc-tdep.c:
5781         * spu-multiarch.c:
5782         * spu-tdep.c:
5783         * stack.c:
5784         * symfile.c:
5785         * symtab.c:
5786         * tic6x-tdep.c:
5787         * tracepoint.c:
5788         * v850-tdep.c:
5789         * valarith.c:
5790         * valprint.c:
5791         * value.c:
5792         * xcoffread.c:
5793         * xtensa-tdep.c:
5794         * ada-lang.c:
5795         * ada-tasks.c:
5796         * ada-varobj.c:
5797         * amd64-darwin-tdep.c:
5798         * arm-symbian-tdep.c:
5799         * arm-tdep.c: Delete unused variables.
5800
5801 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5802
5803         Rename $ddir to $datadir.
5804         * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5805         * auto-load.c (auto_load_safe_path_vec_update)
5806         (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5807         * configure: Regenerate.
5808         * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5809         Likewise.  Remove the 'use $ddir' help string.
5810
5811 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5812
5813         * auto-load.c (show_auto_load_safe_path): Accept any combination of
5814         DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5815
5816 2012-05-18  Tom Tromey  <tromey@redhat.com>
5817
5818         PR exp/13907:
5819         * valprint.h (struct value_print_options) <symbol_print>: New
5820         field.
5821         * valprint.c (user_print_options): Add default for symbol_print.
5822         (show_symbol_print): New function.
5823         (generic_val_print): Respect symbol_print.
5824         (_initialize_valprint): Add "print symbol" setting.
5825         * f-valprint.c (f_val_print): Respect symbol_print.
5826         * c-valprint.c (c_val_print): Respect symbol_print.
5827         * NEWS: Update.
5828         * printcmd.c (print_address_symbolic): Return int.  Ignore some
5829         zero-size symbols.
5830         (print_address_demangle): Return int.
5831         * defs.h: (print_address_symbolic): Return int.
5832         * value.h (print_address_demangle): Return int.
5833
5834 2012-05-18  Tom Tromey  <tromey@redhat.com>
5835
5836         * valprint.c (val_print_string): Don't print leading space.
5837         * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5838         print space before string or vtbl.
5839         * m2-valprint.c (print_unpacked_pointer): Optionally print space
5840         before string.
5841         * jv-valprint.c (java_value_print): Print space before string.
5842         * go-valprint.c (print_go_string): Print space before string.
5843         * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5844         space before string.
5845         * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5846         space before string or vtbl.
5847         * auxv.c (fprint_target_auxv): Print space after address.
5848
5849 2012-05-18  Tom Tromey  <tromey@redhat.com>
5850
5851         * printcmd.c (print_address_demangle): Remove special case for 0.
5852
5853 2012-05-18  Tom Tromey  <tromey@redhat.com>
5854
5855         * printcmd.c (print_address_demangle): Add 'opts' argument.
5856         * p-valprint.c (pascal_val_print): Update.
5857         * jv-valprint.c (java_val_print): Update.
5858         * value.h: Update.
5859         * valprint.c (generic_val_print): Update.
5860         (print_function_pointer_address): Add 'options' argument.  Remove
5861         'addressprint' argument.  Update.
5862         * m2-valprint.c (print_unpacked_pointer): Update.
5863         * gnu-v3-abi.c (print_one_vtable): Update.
5864         (gnuv3_print_method_ptr): Update.
5865         * f-valprint.c (f_val_print): Update.
5866         * cp-valprint.c (cp_print_value_fields): Update.
5867         * valprint.h (print_function_pointer_address): Update.
5868         * c-valprint.c (c_val_print): Update.
5869
5870 2012-05-18  Tom Tromey  <tromey@redhat.com>
5871
5872         * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5873         directly corresponding to the found psymtab.
5874         * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5875         (dw2_find_pc_sect_symtab): Use it.
5876         * block.h (blockvector_contains_pc): Declare.
5877         * block.c (find_block_in_blockvector): New function.
5878         (blockvector_for_pc_sect): Use it.
5879         (blockvector_contains_pc): New function.
5880
5881 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5882
5883         * mips-tdep.h (mips_write_pc): New prototype.
5884         * mips-tdep.c (mips_write_pc): Make external, add description.
5885         * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5886         add description.
5887
5888 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5889
5890         * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5891         mips_regnum->pc.
5892         (mips_unwind_pc, mips_write_pc): Likewise.
5893         (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5894         gdbarch_read_pc.
5895
5896 2012-05-17  Joel Brobecker  <brobecker@adacore.com>
5897
5898         * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5899         proc_warn, proc_error, proc_get_status, proc_flags,
5900         proc_why, proc_what, proc_nsysarg, proc_sysargs,
5901         proc_set_run_on_last_close, proc_unset_run_on_last_close,
5902         proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5903         proc_stop_process, proc_wait_for_stop, proc_run_process,
5904         proc_set_traced_signals, proc_set_traced_faults,
5905         proc_set_traced_sysentry, proc_set_traced_sysexit,
5906         proc_set_held_signals, proc_get_held_signals,
5907         proc_get_traced_signals, proc_get_traced_faults,
5908         proc_get_traced_sysentry, proc_get_traced_sysexit,
5909         proc_clear_current_fault, proc_set_current_signal,
5910         proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5911         proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5912         proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5913         proc_get_current_thread, proc_get_current_thread,
5914         proc_get_current_thread, proc_update_threads,
5915         proc_update_threads, proc_update_threads, proc_update_threads,
5916         proc_iterate_over_threads, procfs_find_new_threads,
5917         procfs_pid_to_str): Make static.  Remove advance declaration.
5918         (proc_cursig): Make static.  Conditionalized defintion on
5919         PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5920         (proc_syscall, proc_set_kill_on_last_close,
5921         proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5922         proc_get_pending_signals, proc_get_signal_actions,
5923         proc_trace_signal, proc_ignore_signal): Delete.
5924
5925 2012-05-16  Sergio Durigan Junior  <sergiodj@redhat.com>
5926
5927         * coffread.c (cs_section_address): Passing proper argument for
5928         `bfd_get_section_vma'.
5929         * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5930         `bfd_get_section_flags'.
5931         * remote.c (remote_trace_set_readonly_regions): Likewise, for
5932         `bfd_get_section_vma'.
5933
5934 2012-05-16  Tom Tromey  <tromey@redhat.com>
5935
5936         PR macros/13205:
5937         * macrotab.h: (macro_define_special): Declare.
5938         (enum macro_special_kind): New.
5939         (struct macro_definition) <argc, replacement>: Update comments.
5940         * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5941         (macro_define_object_internal): New function.
5942         (macro_define_object): Use it.
5943         (macro_define_special): New function.
5944         (fixup_definition): New function.
5945         (macro_lookup_definition, foreach_macro_in_scope)
5946         (foreach_macro): Use fixup_definition.
5947         * macroexp.h (macro_stringify): Declare.
5948         * macroexp.c (free_buffer_return_text): New function.
5949         (stringify): Constify "arg".
5950         (macro_stringify): New function.
5951         * dwarf2read.c (macro_start_file): Call macro_define_special.
5952
5953 2012-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
5954             Maciej W. Rozycki  <macro@mips.com>
5955
5956         * breakpoint.h (bp_location): Add related_address member.
5957         * inferior.h (get_return_value): Take a pointer to struct value
5958         instead of struct type for the function requested.
5959         * value.h (using_struct_return): Likewise.
5960         * gdbarch.sh (return_value): Take a pointer to struct value
5961         instead of struct type for the function requested.
5962         * breakpoint.c (set_breakpoint_location_function): Initialize
5963         related_address for bp_gnu_ifunc_resolver breakpoints.
5964         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5965         requested function's address to gdbarch_return_value.
5966         * eval.c (evaluate_subexp_standard): Pass the requested
5967         function's address to using_struct_return.
5968         * infcall.c (call_function_by_hand): Pass the requested
5969         function's address to using_struct_return and
5970         gdbarch_return_value.
5971         * infcmd.c (get_return_value): Take a pointer to struct value
5972         instead of struct type for the function requested.
5973         (print_return_value): Update accordingly.
5974         (finish_command_continuation): Likewise.
5975         * stack.c (return_command): Pass the requested function's
5976         address to using_struct_return and gdbarch_return_value.
5977         * value.c (using_struct_return): Take a pointer to struct value
5978         instead of struct type for the function requested.  Pass the
5979         requested function's address to gdbarch_return_value.
5980         * python/py-finishbreakpoint.c (finish_breakpoint_object):
5981         New function_value member, replacing function_type.
5982         (bpfinishpy_dealloc): Update accordingly.
5983         (bpfinishpy_pre_stop_hook): Likewise.
5984         (bpfinishpy_init): Likewise.  Record the requested function's
5985         address.
5986         * mips-tdep.c (mips_fval_reg): New enum.
5987         (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5988         words put in GP registers.
5989         (mips_o64_push_dummy_call): Update a comment.
5990         (mips_o32_return_value): Take a pointer to struct value instead
5991         of struct type for the function requested and use it to check if
5992         using the MIPS16 calling convention.  Return the designated
5993         general purpose registers for floating-point values returned in
5994         MIPS16 mode.
5995         (mips_o64_return_value): Likewise.
5996         * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5997         (ppc_sysv_abi_broken_return_value): Likewise.
5998         (ppc64_sysv_abi_return_value): Likewise.
5999         * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6000         value instead of struct type for the function requested.
6001         * amd64-tdep.c (amd64_return_value): Likewise.
6002         * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6003         * arm-tdep.c (arm_return_value): Likewise.
6004         * avr-tdep.c (avr_return_value): Likewise.
6005         * bfin-tdep.c (bfin_return_value): Likewise.
6006         * cris-tdep.c (cris_return_value): Likewise.
6007         * frv-tdep.c (frv_return_value): Likewise.
6008         * h8300-tdep.c (h8300_return_value): Likewise.
6009         (h8300h_return_value): Likewise.
6010         * hppa-tdep.c (hppa32_return_value): Likewise.
6011         (hppa64_return_value): Likewise.
6012         * i386-tdep.c (i386_return_value): Likewise.
6013         * ia64-tdep.c (ia64_return_value): Likewise.
6014         * iq2000-tdep.c (iq2000_return_value): Likewise.
6015         * lm32-tdep.c (lm32_return_value): Likewise.
6016         * m32c-tdep.c (m32c_return_value): Likewise.
6017         * m32r-tdep.c (m32r_return_value): Likewise.
6018         * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6019         * m68k-tdep.c (m68k_return_value): Likewise.
6020         (m68k_svr4_return_value): Likewise.
6021         * m88k-tdep.c (m88k_return_value): Likewise.
6022         * mep-tdep.c (mep_return_value): Likewise.
6023         * microblaze-tdep.c (microblaze_return_value): Likewise.
6024         * mn10300-tdep.c (mn10300_return_value): Likewise.
6025         * moxie-tdep.c (moxie_return_value): Likewise.
6026         * mt-tdep.c (mt_return_value): Likewise.
6027         * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6028         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6029         (ppc_sysv_abi_broken_return_value): Likewise.
6030         (ppc64_sysv_abi_return_value): Likewise.
6031         * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6032         * rl78-tdep.c (rl78_return_value): Likewise.
6033         * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6034         * rx-tdep.c (rx_return_value): Likewise.
6035         * s390-tdep.c (s390_return_value): Likewise.
6036         * score-tdep.c (score_return_value): Likewise.
6037         * sh-tdep.c (sh_return_value_nofpu): Likewise.
6038         (sh_return_value_fpu): Likewise.
6039         * sh64-tdep.c (sh64_return_value): Likewise.
6040         * sparc-tdep.c (sparc32_return_value): Likewise.
6041         * sparc64-tdep.c (sparc64_return_value): Likewise.
6042         * spu-tdep.c (spu_return_value): Likewise.
6043         * tic6x-tdep.c (tic6x_return_value): Likewise.
6044         * v850-tdep.c (v850_return_value): Likewise.
6045         * vax-tdep.c (vax_return_value): Likewise.
6046         * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6047         * xtensa-tdep.c (xtensa_return_value): Likewise.
6048         * gdbarch.c: Regenerate.
6049         * gdbarch.h: Regenerate.
6050
6051 2012-05-15  Tom Tromey  <tromey@redhat.com>
6052
6053         * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6054
6055 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
6056
6057         * breakpoint.c (init_breakpoint_sal): Add quotes around part
6058         of command in two error message.
6059
6060 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
6061
6062         * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6063
6064 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
6065
6066         * breakpoint.c (find_condition_and_thread): Minor reformatting.
6067
6068 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6069
6070         * NEWS (show auto-load scripts-directory): Add forgotten command.
6071
6072 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
6073
6074         * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6075         parameters.
6076
6077 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6078
6079         * amd64-tdep.c: Include features/i386/x32.c and
6080         features/i386/x32-avx.c.
6081         (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6082         initialize_tdesc_x32_avx.
6083
6084 2012-05-14  Stan Shebs  <stan@codesourcery.com>
6085
6086         Add dynamic printf.
6087         * breakpoint.h (enum bptype): New type bp_dprintf.
6088         (struct breakpoint): New field extra_string.
6089         (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6090         (create_breakpoint): Add extra_string arg.
6091         * breakpoint.c (dprintf_breakpoint_ops): New.
6092         (is_breakpoint): Add bp_dprintf.
6093         (bpstat_what): Add dprintf case.
6094         (bptype_string): Ditto.
6095         (print_one_breakpoint_location): Ditto.
6096         (init_bp_location): Ditto.
6097         (bkpt_print_mention): Ditto.
6098         (dprintf_style_enums): New array.
6099         (dprintf_style): New global.
6100         (dprintf_function): New global.
6101         (dprintf_channel): New global.
6102         (update_dprintf_command_list): New function.
6103         (update_dprintf_commands): New function.
6104         (init_breakpoint_sal): Add extra_string argument, handle it.
6105         (create_breakpoint_sal): Add extra_string argument.
6106         (create_breakpoints_sal): Add extra_string argument, update callers.
6107         (find_condition_and_thread): Add extra argument.
6108         (create_breakpoint): Add extra_string argument, record it.
6109         (dprintf_command): New function.
6110         (break_command_1): Add arg to create_breakpoint call.
6111         (handle_gnu_v3_exceptions): Ditto.
6112         (trace_command): Ditto.
6113         (ftrace_command): Ditto.
6114         (strace_command): Ditto.
6115         (bkpt_print_mention): Add dprintf case.
6116         (create_breakpoint_sal_default): Add extra_string argument.
6117         (_initialize_breakpoint): Add new commands.
6118         * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6119         * python/py-breakpoint.c (bppy_init): Ditto.
6120         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6121
6122 2012-05-14  Maciej W. Rozycki  <macro@codesourcery.com>
6123
6124         * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6125
6126 2012-05-14  Siva Chandra Reddy  <sivachandra@google.com>
6127
6128         * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6129         unsigned long long.
6130
6131 2012-05-13  Siva Chandra Reddy  <sivachandra@google.com>
6132
6133         Add a new function gdb.find_pc_line to the Python API.
6134         * NEWS (Python Scripting): Add entry about the new function.
6135         * python/python.c (gdbpy_find_pc_line): New function which
6136         implements gdb.find_pc_line.
6137         (GdbMethods): Add entry for the new function.
6138
6139 2012-05-12  Pedro Alves  <palves@redhat.com>
6140
6141         * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6142         initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6143
6144 2012-05-12  Eli Zaretskii  <eliz@gnu.org>
6145
6146         * inferior.c: Include completer.h
6147         (initialize_inferiors): Set completer of add-inferior to
6148         filename_completer.
6149
6150 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6151
6152         * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6153         gdbarch_ptr_bit for x32 core dump.
6154
6155 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6156
6157         * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6158         and features/i386/x32-avx-linux.c.
6159
6160 2012-05-11  Stan Shebs  <stan@codesourcery.com>
6161             Kwok Cheung Yeung  <kcy@codesourcery.com>
6162
6163         * NEWS: Describe new info os commands.
6164         * common/linux-osdata.c (PID_T, TIME_T): Define.
6165         (MAX_PID_T_STRLEN): New.
6166         (linux_common_core_of_thread): Add comment.  Change to use PID_T and
6167         MAX_PID_T_STRLEN.
6168         (command_from_pid): Add comment.  Change to use PID_T.
6169         (commandline_from_pid):  Change to use PID_T.
6170         (user_from_pid): Add comment.
6171         (get_process_owner): Add comment. Change to use PID_T and
6172         MAX_PID_T_STRLEN.
6173         (get_number_of_cpu_cores): Add comment.
6174         (get_cores_used_by_process): Add comment.  Change to use PID_T and
6175         MAX_PID_T_STRLEN.
6176         (linux_xfer_osdata_processes): Change to use PID_T and
6177         MAX_PID_T_STRLEN.
6178         (compare_processes): New function.
6179         (linux_xfer_osdata_processgroups): New function.
6180         (linux_xfer_osdata_threads): Change to use PID_T.
6181         (linux_xfer_osdata_fds): New function.
6182         (format_socket_state, print_sockets): New functions.
6183         (union socket_addr): New union.
6184         (linux_xfer_osdata_isockets): New function.
6185         (time_from_time_t, group_from_gid): New functions.
6186         (linux_xfer_osdata_shm): New function.
6187         (linux_xfer_osdata_sem): New function.
6188         (linux_xfer_osdata_msg): New function.
6189         (linux_xfer_osdata_modules): New function.
6190         (osdata_table): Add new entries.
6191         * common/buffer.c (buffer_xml_printf): Add support for long and
6192         long long format specifiers.
6193
6194 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6195
6196         * amd64-linux-tdep.h (tdesc_x32_linux): New.
6197         (tdesc_x32_avx_linux): Likewise.
6198
6199 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6200
6201         Implement multi-component --with-auto-load-dir.
6202         * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6203         entries.
6204         (--with-auto-load-safe-path): Update the default value description.
6205         * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6206         New.
6207         (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output.  Remove
6208         GDB_DATADIR NULL check.  Replace GDB_DATADIR/auto-load by
6209         AUTO_LOAD_DIR.  Support $ddir and multiple components in it.
6210         (_initialize_auto_load): Initialize also auto_load_dir.  Install new
6211         "set auto-load scripts-directory".
6212         * config.in: Regenerate.
6213         * configure: Regenerate.
6214         * configure.ac (--with-auto-load-dir): New configure option.
6215         (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6216
6217 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6218
6219         Provide $ddir substitution for --with-auto-load-safe-path.
6220         * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6221         entries.
6222         * auto-load.c: Include observer.h.
6223         (auto_load_safe_path_vec_update): Call substitute_path_component for
6224         each component.  New variable ddir_subst.
6225         (auto_load_gdb_datadir_changed): New function.
6226         (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6227         AUTO_LOAD_SAFE_PATH.  New comment.
6228         (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6229         AUTO_LOAD_SAFE_PATH.  Install auto_load_gdb_datadir_changed.
6230         * config.in: Regenerate.
6231         * configure: Regenerate.
6232         * configure.ac (--auto-load-safe-path): Rename
6233         DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH.  Default to
6234         GDB_DATADIR/auto-load.
6235         * defs.h (substitute_path_component): New declaration.
6236         * top.c: Include observer.h.
6237         (set_gdb_datadir): New function.
6238         (init_main): Install it for "set data-directory".
6239         * utils.c (substitute_path_component): New function.
6240
6241 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6242
6243         Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6244         * auto-load.c (auto_load_objfile_script): Remove check for NULL
6245         DEBUG_FILE_DIRECTORY.  Handle multiple components of
6246         DEBUG_FILE_DIRECTORY.
6247
6248 2012-05-10  Tom Tromey  <tromey@redhat.com>
6249
6250         * dwarf2read.c (recursively_write_psymbols): New function.
6251         (write_psymtabs_to_index): Use it.
6252
6253         * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6254         field.
6255         (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6256         (load_partial_comp_unit): Update.
6257         (queue_comp_unit): Add argument 'pretend_language'.
6258         (process_queue): Update.
6259         (psymtab_to_symtab_1): Skip dependencies that have a user.
6260         (load_partial_comp_unit_reader): Give meaning to the 'data'
6261         argument.
6262         (load_full_comp_unit): Add 'pretend_language' argument.
6263         (process_full_comp_unit): Add 'pretend_language' argument.  Set
6264         language on CU.
6265         (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6266         Update.
6267         (maybe_queue_comp_unit): Add 'pretend_language' argument.
6268         (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6269         Update.
6270         (prepare_one_comp_unit): Add 'pretend_language' argument.
6271
6272         * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6273         (struct dwarf2_per_objfile) <just_read_cus>: New field.
6274         (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6275         (dw2_do_instantiate_symtab): Check whether symtab was read in
6276         before queueing.
6277         (dw2_instantiate_symtab): Add assertion.  Call
6278         process_cu_includes.
6279         (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6280         (partial_symtab_p): New typedef.
6281         (set_partial_user): New function.
6282         (dwarf2_build_psymtabs_hard): Use set_partial_user.
6283         (scan_partial_symbols): Add imported CU to imported_symtabs.
6284         (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6285         (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6286         (get_symtab, recursively_compute_inclusions)
6287         (compute_symtab_includes, process_cu_includes)
6288         (process_imported_unit_die): New functions.
6289         (process_die) <DW_TAG_imported_unit>: New case.
6290         (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6291
6292         * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6293         comment.
6294         (struct partial_die_info) <locdesc>: Remove.
6295         <d>: New field.
6296         (process_psymtab_comp_unit): Add 'read_partial' argument.
6297         Update.
6298         (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6299         (scan_partial_symbols): Handle DW_TAG_imported_unit.
6300         (add_partial_symbol): Update.
6301         (process_die): Handle DW_TAG_partial_unit.
6302         (read_file_scope): Update comment.
6303         (load_partial_dies): Handle DW_TAG_imported_unit.
6304         (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6305         (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6306
6307 2012-05-10  Tom Tromey  <tromey@redhat.com>
6308
6309         * cc-with-dwz.sh: New file.
6310
6311 2012-05-10  Tom Tromey  <tromey@redhat.com>
6312
6313         * symtab.h (struct symtab) <includes, user>: New fields.
6314         * block.h (struct block_iterator) <d, idx, which>: New fields.
6315         * block.c (initialize_block_iterator, find_iterator_symtab)
6316         (block_iterator_step, block_iter_name_step)
6317         (block_iter_match_step): New functions.
6318         (block_iterator_first, block_iterator_next)
6319         (block_iter_name_first, block_iter_name_next)
6320         (block_iter_match_first, block_iter_match_next): Rewrite.
6321         (get_block_symtab): New function.
6322
6323 2012-05-10  Tom Tromey  <tromey@redhat.com>
6324
6325         * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6326         set_block_symtab.
6327         * jit.c (finalize_symtab): Use allocate_global_block,
6328         set_block_symtab.
6329         * buildsym.c (finish_block_internal): New function, from old
6330         finish_block.
6331         (finish_block): Rewrite.
6332         (end_symtab): Use finish_block_internal, set_block_symtab.
6333         * block.h (struct global_block): New.
6334         (allocate_global_block, set_block_symtab): Declare.
6335         * block.c (allocate_global_block, set_block_symtab): New
6336         functions.
6337
6338 2012-05-10  Tom Tromey  <tromey@redhat.com>
6339
6340         * psymtab.c (partial_map_expand_apply): Add assertion.
6341         (partial_map_symtabs_matching_filename): Skip included psymtabs.
6342         (psymtab_to_symtab): Find unshared psymtab.
6343         (dump_psymtab): Print including psymtabs.
6344         (recursively_search_psymtabs): New function.
6345         (expand_symtabs_matching_via_partial): Use it.
6346         * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6347         fields.
6348         (enum psymtab_search_status): New.
6349
6350 2012-05-10  Tom Tromey  <tromey@redhat.com>
6351
6352         * tracepoint.c (scope_info): Update.
6353         * symtab.c (lookup_block_symbol, iterate_over_symbols)
6354         (find_pc_sect_symtab, search_symbols)
6355         (default_make_symbol_completion_list_break_on)
6356         (make_file_symbol_completion_list): Update.
6357         * symmisc.c (dump_symtab_1): Update.
6358         * stack.c (print_frame_args, iterate_over_block_locals)
6359         (print_frame_labels, iterate_over_block_arg_vars): Update.
6360         * python/py-block.c (block_object) <dict>: Remove.
6361         <block>: New field.
6362         <iter>: Change type.
6363         (blpy_iter): Update.
6364         (blpy_block_syms_iternext): Update.
6365         * psymtab.c (map_block): Use block iterators.
6366         * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
6367         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6368         * mdebugread.c (parse_symbol, mylookup_symbol): Update.
6369         * infrun.c (check_exception_resume): Update.
6370         * cp-support.c (make_symbol_overload_list_block): Update.
6371         * coffread.c (patch_opaque_types): Update.
6372         * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
6373         * block.h (struct block_iterator): New.
6374         (block_iterator_first, block_iterator_next, block_iter_name_first)
6375         (block_iter_name_next, block_iter_match_first)
6376         (block_iter_match_next): Declare.
6377         (ALL_BLOCK_SYMBOLS): Redefine.
6378         * block.c (block_iterator_first, block_iterator_next)
6379         (block_iter_name_first, block_iter_name_next)
6380         (block_iter_match_first, block_iter_match_next): New functions.
6381         * ada-lang.c (ada_add_block_symbols)
6382         (ada_make_symbol_completion_list): Use block iterator.
6383
6384 2012-05-10  Tom Tromey  <tromey@redhat.com>
6385
6386         * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
6387         (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
6388         (lookup_partial_symbol, find_last_source_symtab_from_partial)
6389         (read_psymtabs_with_filename, map_matching_symbols_psymtab)
6390         (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
6391         Update.
6392
6393 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
6394
6395         * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
6396         print-file-var-lib2.c, print-file-var-main.c and
6397         print-file-var.exp (located in gdb/testsuite/gdb.base).
6398
6399 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
6400
6401         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6402         try locating the symbol in the symbol's own objfile first, before
6403         extending the search to all objfiles.
6404         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6405         out of lookup_symbol_aux_symtabs.
6406         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6407         Replace extracted-out code by call to lookup_symbol_aux_objfile.
6408         Do not search EXCLUDE_OBJFILE.
6409         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6410         (lookup_symbol_global): Search for matches in the block's objfile
6411         first, before searching all other objfiles.
6412
6413 2012-05-10  Tristan Gingold  <gingold@adacore.com>
6414
6415         * printcmd.c (set_command): Add pre/post inc/dec.
6416
6417 2012-05-09  Frank Ch. Eigler  <fche@redhat.com>
6418
6419         * gdb.1: Document -ex option.
6420
6421 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
6422
6423         * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6424         * inferior.h (AT_SYMBOL): Delete.
6425
6426 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
6427
6428         * mips-tdep.c (mips_push_dummy_code): New function.
6429         (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6430         ON_STACK and install mips_push_dummy_code as our gdbarch
6431         push_dummy_code routine.
6432
6433 2012-05-09  Pedro Alves  <palves@redhat.com>
6434
6435         * target.c (set_maintenance_target_async_permitted): Rename to ...
6436         (set_target_async_command): ... this.
6437         (show_maintenance_target_async_permitted): Rename to ...
6438         (show_target_async_command): ... this.
6439         (initialize_targets): Adjust.
6440
6441 2012-05-08  Doug Evans  <dje@google.com>
6442
6443         * go-exp.y (classify_name): Add missing assignment of fields of
6444         yylval.ssym.
6445
6446 2012-05-08  Eli Zaretskii  <eliz@gnu.org>
6447
6448         Display the ">" prompt in interactive mode while reading canned
6449         commands, even when the current interpreter is MI.
6450
6451         * interps.c (interp_set_temp): New function.
6452
6453         * interps.h (interp_set_temp): Add prototype.
6454
6455         * cli/cli-script.c (restore_interp): New cleanup function.
6456         (read_command_lines): Temporarily override the current interpreter
6457         with CLI and arrange for restoring the original one.
6458
6459 2012-05-12  Joel Sherrill <joel.sherrill@oarcorp.com>
6460
6461         * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6462
6463 2012-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
6464
6465         * probe.c (parse_probes): Move conditional to check for
6466         debuginfo files from here...
6467         * stap-probe.c (stap_get_probes): ... to here.
6468
6469 2012-05-07  Mark Kettenis  <kettenis@gnu.org>
6470             H.J. Lu  <hongjiu.lu@intel.com>
6471
6472         * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6473         `movl %esp, %ebp' for the X32 ABI.
6474
6475 2012-05-07  Tom Tromey  <tromey@redhat.com>
6476
6477         * dwarf2read.c (dwarf_tag_name): Return const char *.  Use
6478         get_DW_TAG_name.
6479         (dwarf_attr_name): Return const char *.  Use get_DW_AT_name.
6480         (dwarf_form_name): Return const char *.  Use get_DW_FORM_name.
6481         (dwarf_stack_op_name): Remove.
6482         (dwarf_cfi_name): Return const char *.  Use get_DW_ATE_name.
6483         (decode_locdesc): Use get_DW_OP_name.
6484         * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6485         (dwarf2_compile_expr_to_ax): Likewise.
6486         (disassemble_dwarf_expression): Likewise.
6487         * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6488
6489 2012-05-07  Chung-Lin Tang  <cltang@codesourcery.com>
6490
6491         * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6492         (sh_linux_sigtramp_cache): New function.
6493         (sh_linux_sigreturn_init): New function.
6494         (sh_linux_rt_sigreturn_init): New function.
6495         (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6496         patterns.
6497         (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6498         syscall codes.
6499         (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6500         (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6501         (sh_linux_init_abi): Add init calls to register new tramp_frame
6502         definitions under 32-bit SH, update comments.
6503
6504 2012-05-07  Pedro Alves  <palves@redhat.com>
6505
6506         PR gdb/10952
6507
6508         * amd64-linux-tdep.c: Include glibc-tdep.h.
6509         (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6510         gdbarch_skip_solib_resolver callback.
6511
6512 2012-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
6513
6514         * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6515         back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6516         (show_auto_load_safe_path): Check any-directory by comparison with "/".
6517         (add_auto_load_safe_path): Change the error message.
6518         (_initialize_auto_load): Change the "safe-path" help text.
6519         * configure: Regenerate
6520         * configure.ac (--without-auto-load-safe-path): Set
6521         WITH_AUTO_LOAD_SAFE_PATH to /.
6522
6523 2012-05-05  Sergio Durigan Junior  <sergiodj@redhat.com>
6524
6525         * stap-probe.h: Do not include unecessary `probe.h'.
6526
6527 2012-05-05  Alan Modra  <amodra@gmail.com>
6528
6529         * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6530         bfd_und_section_ptr.
6531         * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6532         and bfd_com_section_ptr.
6533
6534 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
6535
6536         * MAINTAINERS (Past Maintainers): Add Chris Faylor.
6537
6538 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
6539
6540         * windows-nat.h (segment_register_p_ftype): New typedef.
6541         (windows_set_segment_register_p): Add declaration.
6542         * windows-nat.c (segment_register_p): New static global.
6543         (windows_set_segment_register_p): New function.
6544         (do_windows_fetch_inferior_registers): Add special handling
6545         for segment registers.
6546         * amd64-windows-nat.c: #include "amd64-tdep.h".
6547         (amd64_windows_segment_register_p): New function.
6548         (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6549         * i386-windows-nat.c: #include "i386-tdep.h".
6550         (i386_windows_segment_register_p): New function.
6551         (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6552
6553 2012-05-04  Tristan Gingold  <gingold@adacore.com>
6554
6555         * printcmd.c (set_command): Emit a warning if the expression is not
6556         an assignment.
6557
6558 2012-05-03  Joel Brobecker  <brobecker@adacore.com>
6559
6560         * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6561         Make static.
6562
6563 2012-05-03  Sergio Durigan Junior  <sergiodj@redhat.com>
6564
6565         * stap-probe.c (stap_is_operator): Change declaration.
6566         (stap_get_opcode): Change return value.
6567         (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6568         `stap_parse_argument_1'.
6569
6570 2012-05-03  Pedro Alves  <pedro@codesourcery.com>
6571
6572         * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6573         debug log.
6574
6575 2012-05-03  Siva Chandra Reddy  <sivachandra@google.com>
6576
6577         Add two new methods global_block and static_block to gdb.Symtab
6578         objects.
6579         * NEWS (Python scripting): Add entry about the new methods.
6580         * python/py-symtab.c (stpy_global_block): New function which
6581         implements the gdb.Symtab.global_block() method.
6582         (stpy_static_block): New function which implements the
6583         gdb.Symtab.static_block() method.
6584         (symtab_object_methods): Add entries for the two new methods.
6585
6586 2012-05-03  Doug Evans  <dje@google.com>
6587
6588         * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6589         files.
6590
6591 2012-05-03  Yao Qi  <yao@codesourcery.com>
6592
6593         * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6594         space.
6595         (i386_process_record): Ditto.
6596
6597 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
6598
6599         * infcall.c (unwind_on_signal_p): Make static.
6600
6601 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
6602
6603         * sol-thread.c (solaris_pid_to_str): Make static.
6604         (_initialize_sol_thread): Add prototype.
6605
6606 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
6607
6608         * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6609
6610 2012-05-02  Christopher Faylor  <me.cygwin2012@cgf.cx>
6611
6612         * MAINTAINERS: Remove myself.
6613
6614 2012-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6615
6616         Fix --without-auto-load-safe-path for MS-Windows host platform.
6617         * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6618
6619 2012-05-02  Eli Zaretskii  <eliz@gnu.org>
6620
6621         * gdb_curses.h: Undefine KEY_EVENT before including curses
6622         headers.  Move "#undef MOUSE_MOVED" before any curses header
6623         inclusion.
6624
6625 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
6626
6627         * features/i386/i386-mmx-linux.c: Regenerate.
6628         * features/rs6000/powerpc-32.c: Likewise.
6629         * features/rs6000/powerpc-32l.c: Likewise.
6630         * features/rs6000/powerpc-403.c: Likewise.
6631         * features/rs6000/powerpc-403gc.c: Likewise.
6632         * features/rs6000/powerpc-405.c: Likewise.
6633         * features/rs6000/powerpc-505.c: Likewise.
6634         * features/rs6000/powerpc-601.c: Likewise.
6635         * features/rs6000/powerpc-602.c: Likewise.
6636         * features/rs6000/powerpc-603.c: Likewise.
6637         * features/rs6000/powerpc-604.c: Likewise.
6638         * features/rs6000/powerpc-64.c: Likewise.
6639         * features/rs6000/powerpc-64l.c: Likewise.
6640         * features/rs6000/powerpc-750.c: Likewise.
6641         * features/rs6000/powerpc-860.c: Likewise.
6642         * features/rs6000/powerpc-e500.c: Likewise.
6643         * features/rs6000/powerpc-e500l.c: Likewise.
6644         * features/rs6000/powerpc-isa205-32l.c: Likewise.
6645         * features/rs6000/powerpc-isa205-64l.c: Likewise.
6646         * features/rs6000/rs6000.c: Likewise.
6647
6648 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
6649
6650         * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6651         variable.
6652         * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6653         reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6654         (stap_parse_argument) <e>: Likewise.
6655         (handle_stap_probe) <byte_order>: Likewise.
6656
6657 2012-04-30  Doug Evans  <dje@google.com>
6658
6659         * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6660         init_and_read_dies_worker.  All callers updated.
6661         (init_cu_and_read_dies, init_tu_and_read_dies): Delete.  All calls
6662         replaced with init_cutu_and_read_dies.
6663         (load_partial_comp_unit): Pass 1 for use_existing_cu.
6664         (find_partial_die): Remove FIXME.  Don't free current CU.
6665
6666 2012-04-30  Sterling Augustine  <saugustine@google.com>
6667
6668         * contrib: New directory.
6669         * contrib/test_pubnames_and_indexes.py: New file.
6670
6671 2012-04-30  Doug Evans  <dje@google.com>
6672
6673         * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6674         All callers updated.
6675         (init_cu_die_reader): Verify the section is non-empty.
6676         (dwarf_decode_line_header): Don't dereference section->asection
6677         until we know the section is present.
6678
6679 2012-04-29  Sergio Durigan Junior  <sergiodj@redhat.com>
6680
6681         * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6682         probes.
6683
6684 2012-04-29  Yao Qi  <yao@codesourcery.com>
6685
6686         * gdb-code-style.el: New hook gdb-markup-hook
6687         and gdb-comment-hook.
6688
6689 2012-04-28  Doug Evans  <dje@google.com>
6690
6691         Initial support for Fission.  http://gcc.gnu.org/wiki/DebugFission
6692         * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6693         objfile->obfd.
6694         * symfile.h (dwarf2_debug_sections): New member addr.
6695         * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6696         (ctx_no_get_addr_index): New function.
6697         * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6698         (ctx_no_get_addr_index): Declare.
6699         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6700         * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6701         (dwarf_expr_ctx_funcs): Update.
6702         (needs_get_addr_index): New function.
6703         (needs_frame_ctx_funcs): Update.
6704         * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6705         * dwarf2read.c: #include "gdbcore.h".
6706         (dwarf2_per_objfile): New members addr, dwo_files.
6707         (dwarf2_elf_names): Add entry for addr.
6708         (struct dwo_section_names): New type.
6709         (dwo_section_names): New static global.
6710         (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6711         (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6712         old debug_types_section member updated to use this.
6713         Rename member debug_types_section to info_or_types_section,
6714         all uses updated.
6715         (signatured_type): Rename member type_offset to type_offset_in_tu,
6716         all uses updated.  New member type_offset_in_section.
6717         (struct dwo_sections): New type.
6718         (struct dwo_unit): New type.
6719         (struct dwo_file): New type.
6720         (die_reader_specs): New member dwo_file.
6721         (dwarf2_locate_sections): Watch for .debug_addr.
6722         (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6723         (dwarf2_read_section): Get bfd of section from bfd's asection,
6724         instead of objfile.
6725         (create_cus_from_index): Initialize the_cu->info_or_types_section.
6726         (create_signatured_type_table_from_index): Initialize
6727         sig_type->info_or_types_section.
6728         (dw2_get_file_names): Statement lists for type units with DWO files
6729         live in the DWO file.
6730         (create_debug_types_hash_table): New function.
6731         (create_all_type_units): Rewrite.
6732         (init_cu_die_reader): New arg dwo_file, all callers updated.
6733         (init_and_read_dies_worker): Get section from
6734         this_cu->info_or_types_section.  Set sig_type->type_offset_in_section.
6735         Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6736         continue reading the CU/TU from there.
6737         (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6738         updated.  Get section from this_cu->info_or_types_section.
6739         (create_all_comp_units): Initialize this_cu->info_or_types_section.
6740         (skip_one_die): New cases DW_FORM_GNU_addr_index,
6741         DW_FORM_GNU_str_index.
6742         (hash_dwo_file, eq_dwo_file): New functions.
6743         (allocate_dwo_file_hash_table): New function.
6744         (hash_dwo_unit, eq_dwo_unit): New functions.
6745         (allocate_dwo_unit_table): New function.
6746         (dwarf2_locate_dwo_sections): New function.
6747         (struct create_dwo_info_table_data): New type.
6748         (create_debug_info_hash_table_reader): New function.
6749         (create_debug_info_hash_table): New function.
6750         (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6751         (lookup_dwo_file): New function.
6752         (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6753         (free_dwo_file, free_dwo_file_cleanup): New functions.
6754         (free_dwo_file_from_slot, free_dwo_files): New functions.
6755         (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6756         (dwarf2_record_block_ranges): Ditto.
6757         (read_partial_die): Ditto.
6758         (process_enumeration_scope): Update to use type_offset_in_section.
6759         (read_full_die_1): New function.
6760         (read_full_die): Rewrite.
6761         (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6762         DW_FORM_GNU_str_index.
6763         (read_addr_index_1, read_addr_index): New functions.
6764         (read_addr_index_from_leb128): New function.
6765         (struct dwarf2_read_addr_index_data): New type.
6766         (dwarf2_read_addr_index_reader): New function.
6767         (dwarf2_read_addr_index): New function.
6768         (read_str_index): New function.
6769         (leb128_size): New function.
6770         (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6771         If processing a type unit from a DWO file, get the line section
6772         from the DWO file.
6773         (var_decode_location): Watch for DW_OP_GNU_addr_index.
6774         (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6775         DW_FORM_GNU_str_index.
6776         (lookup_die_type): Check whether section offset of type's die is
6777         known before looking it up.  Remove assert.  Condition can
6778         legimately happen for inter-cu type references.
6779         (dwarf_attr_name): Handle Fission attributes.
6780         (dwarf_form_name): Handle Fission forms.
6781         (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6782         DW_FORM_GNU_str_index.
6783         (follow_die_sig): Update to use type_offset_in_section.
6784         (decode_locdesc): New case DW_OP_GNU_addr_index.
6785         (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6786         DW_FORM_GNU_str_index.
6787         (cu_debug_loc_section): New function.
6788         (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6789         (dwarf2_per_objfile_free): Unmap .debug_addr section.
6790         Free DWO files if present.
6791         * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6792
6793         Refactor DIE reading.
6794         * dwarf2read.c (dwarf2_per_objfile): Replace members
6795         debug_info_type_hash and debug_types_type_hash with die_type_hash.
6796         (die_reader_specs): New member "die_section".  Temporarily make
6797         member "buffer" non-const, pending constifying all info_ptr uses.
6798         (die_reader_func_ftype): New typedef.
6799         (dw2_get_file_names_reader): New function.
6800         (dw2_get_file_names): Rewrite.
6801         (read_and_check_type_unit_head): Rename arg type_offset to
6802         type_offset_in_tu.
6803         (create_all_type_units): Improve debugging message.
6804         Improve dummy type unit check.
6805         (init_cu_die_reader): New arg "section".  All callers updated.
6806         (init_and_read_dies_worker): New function.
6807         (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6808         (init_cutu_and_read_dies_no_follow): New function.
6809         (init_cutu_and_read_dies_simple): New function.
6810         (process_psymtab_comp_unit_reader): New function.
6811         (process_psymtab_comp_unit): Delete args section,
6812         is_debug_types_section.  Rewrite.  All callers updated.
6813         (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6814         All callers updated.  Rewrite.
6815         (load_partial_comp_unit_reader): New function.
6816         (load_partial_comp_unit): Rewrite.
6817         (skip_children): New arg reader.  Delete args buffer, cu.
6818         All callers updated.
6819         (skip_one_die): New arg reader.  Delete args buffer, cu.
6820         All callers updated.
6821         (locate_pdi_sibling): New arg reader.  Delete args buffer, abfd, cu.
6822         All callers updated.
6823         (load_full_comp_unit_reader): New function.
6824         (load_full_comp_unit): Rewrite.
6825         (read_comp_unit): Delete.
6826         (read_die_and_children_1): Delete, contents moved ...
6827         (read_die_and_children): ... here.
6828         (dwarf2_read_abbrevs): New arg abbrev_section.  All callers updated.
6829         (load_partial_dies): New arg reader.  Delete args abfd, buffer, cu.
6830         All callers updated.
6831         (read_partial_die): New arg reader.  Delete args abfd, buffer, cu.
6832         All callers updated.
6833         (find_partial_die): Rewrite load_all_dies support.
6834         (read_attribute_value): New arg reader.  Delete args abfd, cu.
6835         All callers updated.
6836         (read_attribute): New arg reader.  Delete args abfd, cu.
6837         All callers updated.
6838         (load_full_type_unit): Add assert.
6839         (read_signatured_type_reader): New function.
6840         (read_signatured_type): Rewrite.
6841         (free_stack_comp_unit): Remove call to age_cached_comp_units.
6842         (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6843         All callers updated.  Set per_cu->cu = NULL after freeing it.
6844         (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6845         (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6846         (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6847         (set_die_type): Update.
6848         (get_die_type_at_offset): Update.
6849         (read_file_scope): Call prepare_one_comp_unit.
6850         (read_type_unit_scope): Ditto.
6851         (prepare_one_comp_unit): Set producer if present.
6852
6853 2012-04-28  Sergio Durigan Junior  <sergiodj@redhat.com>
6854
6855         * probe.c (compile_rx_or_error): Silence ARI warning about missing
6856          gettext function on `error'.
6857
6858 2012-04-27  Doug Evans  <dje@google.com>
6859
6860         * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6861         is empty.
6862
6863 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6864             Tom Tromey  <tromey@redhat.com>
6865
6866         * breakpoint.c (struct breakpoint_objfile_data)
6867         <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6868         <exception_probes>: New fields.
6869         (free_breakpoint_probes): New function.
6870         (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6871         `_Unwind_DebugHook'.
6872         (create_exception_master_breakpoint): Likewise.
6873         (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6874         * infrun.c: Including necessary header files for handling SystemTap
6875         probes.
6876         (handle_inferior_event): Handling longjmp breakpoint and exceptions
6877         via SystemTap probes.
6878         (check_exception_resume): Remove `func' argument.  Handle exception
6879         unwinding breakpoint set via a SystemTap probe.
6880         (insert_exception_resume_from_probe): New function.
6881
6882 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6883             Tom Tromey  <tromey@redhat.com>
6884             Jan Kratochvil  <jan.kratochvil@redhat.com>
6885
6886         * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6887         (COMMON_OBS): Likewise.
6888         (HFILES_NO_SRCDIR): Add `probe'.
6889         * NEWS: Mention support for static and SystemTap probes.
6890         * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6891         SystemTap probes' arguments parser.
6892         * arm-linux-tdep.c: Including headers needed to perform the parsing
6893         of SystemTap probes' arguments.
6894         (arm_stap_is_single_operand): New function.
6895         (arm_stap_parse_special_token): Likewise.
6896         (arm_linux_init_abi): Initializing proper fields used by SystemTap
6897         probes' arguments parser.
6898         * ax-gdb.c (require_rvalue): Removing static declaration.
6899         (gen_expr): Likewise.
6900         * ax-gdb.h (gen_expr): Declaring function.
6901         (require_rvalue): Likewise.
6902         * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6903         (bkpt_probe_breakpoint_ops): New variable.
6904         (momentary_breakpoint_from_master): Set the `probe' value.
6905         (add_location_to_breakpoint): Likewise.
6906         (break_command_1): Using proper breakpoint_ops according to the
6907         argument passed by the user in the command line.
6908         (bkpt_probe_insert_location): New function.
6909         (bkpt_probe_remove_location): Likewise.
6910         (bkpt_probe_create_sals_from_address): Likewise.
6911         (bkpt_probe_decode_linespec): Likewise.
6912         (tracepoint_probe_create_sals_from_address): Likewise.
6913         (tracepoint_probe_decode_linespec): Likewise.
6914         (tracepoint_probe_breakpoint_ops): New variable.
6915         (trace_command): Using proper breakpoint_ops according to the
6916         argument passed by the user in the command line.
6917         (initialize_breakpoint_ops): Initializing breakpoint_ops for
6918         static probes on breakpoints and tracepoints.
6919         * breakpoint.h (struct bp_location) <probe>: New field.
6920         * cli-utils.c (skip_spaces_const): New function.
6921         (extract_arg): Likewise.
6922         * cli-utils.h (skip_spaces_const): Likewise.
6923         (extract_arg): Likewise.
6924         * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6925         * configure.ac: Append `stap-probe.o' to be generated when ELF
6926         support is present.
6927         * configure: Regenerate.
6928         * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6929         * elfread.c: Include `probe.h' and `arch-utils.h'.
6930         (probe_key): New variable.
6931         (elf_get_probes): New function.
6932         (elf_get_probe_argument_count): Likewise.
6933         (elf_evaluate_probe_argument): Likewise.
6934         (elf_compile_to_ax): Likewise.
6935         (elf_symfile_relocate_probe): Likewise.
6936         (stap_probe_key_free): Likewise.
6937         (elf_probe_fns): New variable.
6938         (elf_sym_fns): Add `sym_probe_fns' value.
6939         (elf_sym_fns_lazy_psyms): Likewise.
6940         (elf_sym_fns_gdb_index): Likewise.
6941         (_initialize_elfread): Initialize objfile cache for static
6942         probes.
6943         * gdb_vecs.h (struct probe): New forward declaration.
6944         (probe_p): New VEC declaration.
6945         * gdbarch.c: Regenerate.
6946         * gdbarch.h: Regenerate.
6947         * gdbarch.sh (stap_integer_prefix): New variable.
6948         (stap_integer_suffix): Likewise.
6949         (stap_register_prefix): Likewise.
6950         (stap_register_suffix): Likewise.
6951         (stap_register_indirection_prefix): Likewise.
6952         (stap_register_indirection_suffix): Likewise.
6953         (stap_gdb_register_prefix): Likewise.
6954         (stap_gdb_register_suffix): Likewise.
6955         (stap_is_single_operand): New function.
6956         (stap_parse_special_token): Likewise.
6957         (struct stap_parse_info): Forward declaration.
6958         * i386-tdep.c: Including headers needed to perform the parsing
6959         of SystemTap probes' arguments.
6960         (i386_stap_is_single_operand): New function.
6961         (i386_stap_parse_special_token): Likewise.
6962         (i386_elf_init_abi): Initializing proper fields used by SystemTap
6963         probes' arguments parser.
6964         * i386-tdep.h (i386_stap_is_single_operand): New function.
6965         (i386_stap_parse_special_token): Likewise.
6966         * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6967         * mipsread.c (ecoff_sym_fns): Likewise.
6968         * objfiles.c (objfile_relocate1): Support relocation for static
6969         probes.
6970         * parse.c (prefixify_expression): Remove static declaration.
6971         (initialize_expout): Likewise.
6972         (reallocate_expout): Likewise.
6973         * parser-defs.h (initialize_expout): Declare function.
6974         (reallocate_expout): Likewise.
6975         (prefixify_expression): Likewise.
6976         * ppc-linux-tdep.c: Including headers needed to perform the parsing
6977         of SystemTap probes' arguments.
6978         (ppc_stap_is_single_operand): New function.
6979         (ppc_stap_parse_special_token): Likewise.
6980         (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6981         probes' arguments parser.
6982         * probe.c: New file, for generic statically defined probe support.
6983         * probe.h: Likewise.
6984         * s390-tdep.c: Including headers needed to perform the parsing of
6985         SystemTap probes' arguments.
6986         (s390_stap_is_single_operand): New function.
6987         (s390_gdbarch_init): Initializing proper fields used by SystemTap
6988         probes' arguments parser.
6989         * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6990         * stap-probe.c: New file, for SystemTap probe support.
6991         * stap-probe.h: Likewise.
6992         * symfile.h: Include `gdb_vecs.h'.
6993         (struct sym_probe_fns): New struct.
6994         (struct sym_fns) <sym_probe_fns>: New field.
6995         * symtab.c (init_sal): Initialize `probe' field.
6996         * symtab.h (struct probe): Forward declaration.
6997         (struct symtab_and_line) <probe>: New field.
6998         * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6999         locations.
7000         (stop_tracing): Likewise.
7001         * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7002
7003 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
7004             Tom Tromey  <tromey@redhat.com>
7005
7006         * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7007         and to compile agent expressions.
7008         * infrun.c (siginfo_make_value): New argument `ignore'.
7009         (siginfo_funcs): New struct.
7010         (_initialize_infrun): New argument when calling
7011         `create_internalvar_type_lazy'.
7012         * thread.c (thread_id_make_value): New argument `ignore'.
7013         (thread_funcs): New struct.
7014         (_initialize_thread): New argument when calling
7015         `create_internalvar_type_lazy'.
7016         * tracepoint.c (sdata_make_value): New argument `ignore'.
7017         (sdata_funcs): New struct.
7018         (_initialize_tracepoint): New argument when calling
7019         `create_internalvar_type_lazy'.
7020         * value.c (make_value): New struct.
7021         (create_internalvar_type_lazy): New argument `data'.
7022         (compile_internalvar_to_ax): New function.
7023         (value_of_internalvar): Properly handling `make_value' case.
7024         (clear_internalvar): Likewise.
7025         (show_convenience): Adding `TRY_CATCH' block.
7026         * value.h (internalvar_make_value): Delete, replace by...
7027         (struct internalvar_funcs): ... this.
7028         (create_internalvar_type_lazy) <fun>: Delete argument.
7029         (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7030         (compile_internalvar_to_ax): New function.
7031         * windows-tdep.c (tlb_make_value): New argument `ignore'.
7032         (tlb_funcs): New struct.
7033         (_initialize_windows_tdep): New argument when calling
7034         `create_internalvar_type_lazy'.
7035
7036 2012-04-27  Mark Wielaard  <mjw@redhat.com>
7037
7038         * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7039         see whether it is an address or a constant offset from DW_AT_low_pc.
7040         (dwarf2_record_block_ranges): Likewise.
7041         (read_partial_die): Likewise.
7042
7043 2012-04-26  Mark Wielaard  <mjw@redhat.com>
7044
7045         * MAINTAINERS (Write After Approval): Add myself to the list.
7046
7047 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
7048
7049         * proc-utils.h (proc_prettyprint_signalset): New prototype.
7050         (proc_prettyprint_signal): Likewise.
7051         (proc_prettyprint_faultset): Likewise.
7052         (proc_prettyprint_fault): Likewise.
7053         (proc_prettyprint_actionset): Likewise.
7054         (proc_prettyprint_flags): Move to new proc-flags.c section.
7055         (proc_prettyfprint_flags): New prototype.
7056         * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7057         (proc_syscall, proc_cursig): Likewise.
7058         (proc_set_kill_on_last_close): Likewise.
7059         (proc_unset_kill_on_last_close): Likewise.
7060         (proc_set_watchpoint): Make static.
7061         (proc_delete_dead_threads): Likewise.
7062         (procfs_set_watchpoint): Likewise.
7063         (_initialize_procfs): Add prototype.
7064         * proc-events.c: Include proc-utils.h.
7065         (init_syscall_table): Make static.
7066         * proc-api.c (_initialize_proc_api): Add prototype.
7067         * proc-flags.c: Include proc-utils.h.
7068
7069 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
7070
7071         * configure.ac: Add AC_ARG_PROGRAM.
7072         * configure: Regenerate.
7073
7074 2012-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
7075
7076         Fix DW_AT_lower_bound defaults for DWARF-4+.
7077         * dwarf2read.c (read_subrange_type): Remove initialization of low and
7078         high.  New variable low_default_is_valid.  Implement DWARF-4+
7079         DW_AT_lower_bound defaults.  Print complaint for DW_AT_lower_bound with
7080         no default by the DWARF standard.
7081
7082 2012-04-26  Maciej W. Rozycki  <macro@mips.com>
7083             Maciej W. Rozycki  <macro@codesourcery.com>
7084
7085         * infrun.c (handle_inferior_event): Move the check for return
7086         trampolines ahead of the check for function trampolines.
7087         * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7088         * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7089         (mips_str_mips16_ret_stub): Likewise.
7090         (mips_str_call_fp_stub): Likewise.
7091         (mips_str_call_stub): Likewise.
7092         (mips_str_fn_stub): Likewise.
7093         (mips_str_pic): Likewise.
7094         (mips_in_frame_stub): New function.
7095         (mips_unwind_pc): Return the return address rather than the PC
7096         if the PC of an intermediate frame is inside a call thunk.
7097         (mips_is_stub_suffix): New function.
7098         (mips_is_stub_mode): Likewise.
7099         (mips_get_mips16_fn_stub_pc): Likewise.
7100         (mips_skip_mips16_trampoline_code): Update to handle all the
7101         currently generated stub types.  Don't recurse into __fn_stub
7102         thunks.  Remove heuristics to handle stubs beyond etext/_etext.
7103         Use cooked register accesses.
7104         (mips_in_return_stub): Reintroduce function.
7105         (mips_skip_trampoline_code): Traverse trampolines recursively.
7106         (mips_gdbarch_init): Handle MIPS16 return trampolines.
7107
7108 2012-04-26  Joel Brobecker  <brobecker@adacore.com>
7109
7110         GDB 7.4.1 released.
7111
7112 2012-04-26  Jonathan Larmour  <jifl@eCosCentric.com>
7113
7114         * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7115         * features/arm-with-m-vfp-d16.xml: New file. Describes
7116         Cortex-M with VFPv4-sp-d16 FPU register layout.
7117         * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7118         * features/arm-with-m-vfp-d16.c: New. Generated from above.
7119         * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7120         (arm-register_g_packet_guesses): Add vfp-d16 guess.
7121         (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7122
7123 2012-04-25  Doug Evans  <dje@google.com>
7124
7125         * cli/cli-decode.c (print_doc_line): Use stream instead of
7126         current_uiout.
7127
7128 2012-04-25  Sergio Durigan Junior  <sergiodj@redhat.com>
7129
7130         * features/arm-with-iwmmxt.c: Regenerate.
7131         * features/arm-with-m-fpa-layout.c: Likewise.
7132         * features/arm-with-m.c: Likewise.
7133         * features/arm-with-neon.c: Likewise.
7134         * features/arm-with-vfpv2.c: Likewise.
7135         * features/arm-with-vfpv3.c: Likewise.
7136         * features/mips-dsp-linux.c: Likewise.
7137         * features/mips-linux.c: Likewise.
7138         * features/mips64-dsp-linux.c: Likewise.
7139         * features/mips64-linux.c: Likewise.
7140         * features/s390-linux32.c: Likewise.
7141         * features/s390-linux32v1.c: Likewise.
7142         * features/s390-linux32v2.c: Likewise.
7143         * features/s390-linux64.c: Likewise.
7144         * features/s390-linux64v1.c: Likewise.
7145         * features/s390-linux64v2.c: Likewise.
7146         * features/s390x-linux64.c: Likewise.
7147         * features/s390x-linux64v1.c: Likewise.
7148         * features/s390x-linux64v2.c: Likewise.
7149         * features/tic6x-c62x-linux.c: Likewise.
7150         * features/tic6x-c62x.c: Likewise.
7151         * features/tic6x-c64x-linux.c: Likewise.
7152         * features/tic6x-c64x.c: Likewise.
7153         * features/tic6x-c64xp-linux.c: Likewise.
7154         * features/tic6x-c64xp.c: Likewise.
7155         * target-descriptions.c: Only generate `field_type' and `type'
7156         variables when needed.
7157
7158 2012-04-25  Fredrik Hederstierna  <fredrikh.hederstierna@securitas-direct.com>
7159
7160         * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7161
7162 2012-04-25  Doug Evans  <dje@google.com>
7163
7164         Initial pass at Go language support.
7165         * NEWS: Mention Go.
7166         * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7167         go-valprint.c.
7168         (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7169         (YYFILES): Add go-exp.c.
7170         (YYOBJ): Add go-exp.o.
7171         (local-maintainer-clean): Delete go-exp.c.
7172         * defs.h (enum language): Add language_go.
7173         * dwarf2read.c: #include "go-lang.h".
7174         (fixup_go_packaging): New function.
7175         (process_full_comp_unit): Call it when processing Go CUs.
7176         (dwarf2_physname): Add Go support.
7177         (read_file_scope): Handle missing language spec for GNU Go.
7178         (set_cu_language): Handle DW_LANG_Go.
7179         * go-exp.y: New file.
7180         * go-lang.h: New file.
7181         * go-lang.c: New file.
7182         * go-typeprint.c: New file.
7183         * go-valprint.c: New file.
7184         * symtab.c: #include "go-lang.h".
7185         (symbol_set_language): Handle language_go.
7186         (symbol_find_demangled_name, symbol_set_names): Ditto.
7187         (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7188
7189 2012-04-24  Jim Meyering  <meyering@redhat.com>
7190
7191         avoid a few strncpy-induced buffer overruns
7192         * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7193         fname and psargs before trying to concatenate.
7194         * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7195         "name" before applying strchr.
7196
7197 2012-04-25  Siva Chandra Reddy  <sivachandra@google.com>
7198
7199         * CONTRIBUTE: Use unified diff instead of context diff when
7200         generating patches.
7201
7202 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
7203
7204         * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7205         code.  Handle JR.HB correctly.
7206
7207 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
7208
7209         * mips-tdep.c
7210         (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7211         with the other MIPS16 helpers.
7212
7213 2012-04-24  Sergio Durigan Junior  <sergiodj@redhat.com>
7214
7215         * observer.sh: Conditionally declare `args', thus cleaning up
7216         unused instances of this variable.
7217
7218 2012-04-24  Yao Qi  <yao@codesourcery.com>
7219
7220         Revert this patch to allow breakpoint always-inserted
7221         in record target.
7222         2011-12-05  Pedro Alves  <pedro@codesourcery.com>
7223         * breakpoint.c: Include record.h.
7224         (breakpoints_always_inserted_mode): Return false when the record
7225         target is in use.
7226
7227         * breakpoint.c (iterate_over_bp_locations): New.
7228         * breakpoint.h: Declare.
7229         New typedef walk_bp_location_callback.
7230         * record.c (record_open): Call record_init_record_breakpoints.
7231         (record_sync_record_breakpoints): New.
7232         (record_init_record_breakpoints): New.
7233         * NEWS: Mention supporting breakpoint always-inserted mode in
7234         record target.
7235
7236 2012-04-24  Marc Khouzam  <marc.khouzam@ericsson.com>
7237
7238         * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7239         any thread.
7240
7241 2012-04-24  Yao Qi  <yao@codesourcery.com>
7242
7243         * breakpoint.c (ep_is_catchpoint): Renamed to ...
7244         (is_catchpoint): ... it.
7245         (print_one_breakpoint_location): Caller update.
7246         * breakpoint.h: Update declaration.
7247
7248 2012-04-23  David S. Miller  <davem@davemloft.net>
7249
7250         * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7251
7252 2012-04-23  Tom Tromey  <tromey@redhat.com>
7253
7254         * buildsym.c (add_free_pendings): Remove.
7255         * buildsym.h (add_free_pendings): Remove.
7256
7257 2012-04-23  Doug Evans  <dje@google.com>
7258
7259         * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7260         attr.u.unsnd instead of attr.u.addr.
7261         (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7262         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7263         DW_FORM_ref_udata.
7264         (dump_die_shallow): Update cases DW_FORM_ref_addr,
7265         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4.  Add cases DW_FORM_ref8,
7266         DW_FORM_ref_udata.
7267         (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7268
7269 2012-04-23  Maciej W. Rozycki  <macro@codesourcery.com>
7270
7271         * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7272         (mips_o32_return_value): Likewise.
7273         (mips_o64_return_value): Likewise.
7274
7275 2012-04-21  Paul Hilfinger  <hilfinger@adacore.com>
7276
7277         * ada-lang.c (ada_evaluate_subexp): Add cases for
7278         TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7279         their treatment in eval.c.
7280
7281 2012-04-21  David S. Miller  <davem@davemloft.net>
7282
7283         * sparc-tdep.c (X_DISP10): Define.
7284         (sparc_analyze_control_transfer): Handle compare-and-branch.
7285
7286 2012-04-21  Jonathan Larmour  <jifl@eCosCentric.com>
7287
7288         * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7289         * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7290
7291 2012-04-20  Nigel Stephens  <nigel@mips.com>
7292             Maciej W. Rozycki  <macro@codesourcery.com>
7293
7294         * mips-tdep.c (mips_float_register_p): New function.
7295         (mips_convert_register_float_case_p): Use mips_float_register_p.
7296         (mips_register_type): Likewise.
7297         (mips_print_register): Likewise.
7298         (print_gp_register_row): Likewise.
7299         (mips_print_registers_info): Likewise.
7300
7301 2012-04-20  Shun-Yen Lu  <dark.asparagus@gmail.com>
7302
7303         * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7304         of mips16 symbols.
7305
7306 2012-04-20  Andrew Pinski  <apinski@cavium.com>
7307
7308         * MAINTAINERS (Write After Approval): Add myself to the list.
7309
7310 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
7311
7312         * MAINTAINERS: Update my e-mail address.
7313
7314 2012-04-20  Pedro Alves  <palves@redhat.com>
7315
7316         * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7317         $srcdir.
7318         * configure: Regenerate.
7319
7320 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
7321
7322         * cp-support.h: Include `gdb_vecs.h'.  Delete `const_char_ptr' VEC
7323         declaration.
7324         * gdb_vecs.h: Declare `const_char_ptr' VEC.
7325
7326 2012-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
7327
7328         Fix compilation compatibility with python-2.4
7329         * python/py-type.c (convert_field): Cast ADDRSTRING for
7330         PyObject_SetAttrString as non-const.  New comment.
7331
7332 2012-04-19  Tom Tromey  <tromey@redhat.com>
7333
7334         * top.c (quit_target): Use all_cleanups.
7335         * main.c (captured_command_loop): Use all_cleanups.
7336         * exceptions.c (throw_exception): Use all_cleanups.
7337
7338 2012-04-19  Pedro Alves  <palves@redhat.com>
7339
7340         * Makefile.in (GNULIB_BUILDDIR): New.
7341         (LIBGNU, INCGNU, GNULIB_H): Adjust.
7342         (SUBDIRS): Add $(GNULIB_BUILDDIR).
7343         (CLEANDIRS). Remove gnulib/import.
7344         (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7345         (all-lib): Ditto.
7346         (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7347         (gnulib/import/Makefile): Replace gnulib/import with
7348         $(GNULIB_BUILDDIR).  Set CONFIG_FILES to just Makefile.
7349         (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7350         (aclocal_m4_deps): Remove the gnulib dependencies.  Add
7351         acx_configure_dir.m4.
7352         * acinclude.m4: Include acx_configure_dir.m4.
7353         * acx_configure_dir.m4: New file.
7354         * aclocal.m4: Regenerate.
7355         * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
7356         calls.  Configure gnulib using ACX_CONFIGURE_DIR.
7357         (GNULIB): New variable.
7358         (GNULIB_STDINT_H): Adjust.
7359         (AC_OUTPUT): Don't output gnulib/Makefile.
7360         * gdb/defs.h: Include build-gnulib/config.h.
7361         * aclocal.m4: Regenerate.
7362         * config.in: Regenerate.
7363         * configure: Regenerate.
7364
7365         * gnulib/Makefile.in: New file.
7366         * gnulib/configure.ac: New file.
7367         * gnulib/aclocal.m4: New file.
7368         * gnulib/config.in: New file.
7369         * gnulib/configure: New file.
7370         * gnulib/: Re-run gnulib-tool to adjust.
7371
7372 2012-04-19  Doug Evans  <dje@google.com>
7373
7374         * cleanups.h (struct cleanup): Move to cleanups.c.
7375         (make_cleanup_dtor_ftype): New typedef.
7376         (make_cleanup_dtor): Use it.
7377         (ALL_CLEANUPS): Replace with ...
7378         (all_cleanups): ... this.  Declare.  All uses updated.
7379         * cleanups.c: #include "gdb_assert.h".
7380         (sentinel_cleanup): New static global.
7381         (SENTINEL_CLEANUP): Define.
7382         (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
7383         (make_my_cleanup2): Assert result is non-NULL.
7384         (all_cleanups): New function.
7385         (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
7386         of NULL.
7387
7388 2012-04-19  Pedro Alves  <palves@redhat.com>
7389
7390         * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
7391         Adjust paths to gnulib imported files.
7392
7393 2012-04-19  Pedro Alves  <palves@redhat.com>
7394
7395         * gnulib/: Move whole directory ...
7396         * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
7397         * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
7398         (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
7399         (aclocal_m4_deps): Adjust.
7400         * aclocal.m4: Regenerate.
7401         * configure: Regenerate.
7402         * configure.ac: Adjust AC_OUTPUT output.
7403
7404 2012-04-19  Yao Qi  <yao@codesourcery.com>
7405
7406         * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
7407         (vec.o): New rule.
7408         * vec.c: Move it ...
7409         * common/vec.c: ... here.
7410         * vec.h: Move it ...
7411         * common/vec.h: ... here.
7412
7413 2012-04-19  Yao Qi  <yao@codesourcery.com>
7414
7415         * gdb-code-style.el: New.
7416
7417 2012-04-18  Pedro Alves  <palves@redhat.com>
7418
7419         Update gnulib from latest git.
7420         (639ea5ae15e39fe48d43e04864b2997301e4b969)
7421
7422         * gnulib/Makefile.am: Update.
7423         * gnulib/dummy.c: Update.
7424         * gnulib/extra/arg-nonnull.h: Update.
7425         * gnulib/extra/c++defs.h: Update.
7426         * gnulib/extra/update-copyright: Update.
7427         * gnulib/extra/warn-on-use.h: Update.
7428         * gnulib/inttypes.in.h: Update.
7429         * gnulib/m4/00gnulib.m4: Update.
7430         * gnulib/m4/extensions.m4: Update.
7431         * gnulib/m4/gnulib-cache.m4: Update.
7432         * gnulib/m4/gnulib-common.m4: Update.
7433         * gnulib/m4/gnulib-comp.m4: Update.
7434         * gnulib/m4/gnulib-tool.m4: Update.
7435         * gnulib/m4/include_next.m4: Update.
7436         * gnulib/m4/inttypes-pri.m4: Update.
7437         * gnulib/m4/inttypes.m4: Update.
7438         * gnulib/m4/longlong.m4: Update.
7439         * gnulib/m4/memchr.m4: Update.
7440         * gnulib/m4/memmem.m4: Update.
7441         * gnulib/m4/mmap-anon.m4: Update.
7442         * gnulib/m4/multiarch.m4: Update.
7443         * gnulib/m4/onceonly.m4: Update.
7444         * gnulib/m4/stddef_h.m4: Update.
7445         * gnulib/m4/stdint.m4: Update.
7446         * gnulib/m4/string_h.m4: Update.
7447         * gnulib/m4/warn-on-use.m4: Update.
7448         * gnulib/m4/wchar_h.m4: Update.
7449         * gnulib/m4/wchar_t.m4: Update.
7450         * gnulib/m4/wint_t.m4: Update.
7451         * gnulib/memchr.c: Update.
7452         * gnulib/memmem.c: Update.
7453         * gnulib/stddef.in.h: Update.
7454         * gnulib/stdint.in.h: Update.
7455         * gnulib/str-two-way.h: Update.
7456         * gnulib/string.in.h: Update.
7457         * gnulib/wchar.in.h: Update.
7458
7459         * gnulib/extra/arg-nonnull.h: Delete.
7460         * gnulib/extra/c++defs.h: Delete.
7461         * gnulib/extra/warn-on-use.h: Delete.
7462         * gnulib/m4/wchar_h.m4: Delete.
7463         * gnulib/m4/wint_t.m4: Delete.
7464         * gnulib/wchar.in.h: Delete.
7465
7466         * gnulib/extra/snippets/arg-nonnull.h: New.
7467         * gnulib/extra/snippets/c++defs.h: New.
7468         * gnulib/extra/snippets/warn-on-use.h: New.
7469
7470         * aclocal.m4: Regenerate.
7471         * config.in: Regenerate.
7472         * configure: Regenerate.
7473         * gnulib/Makefile.in: Regenerate.
7474
7475 2012-04-18  Pedro Alves  <palves@redhat.com>
7476
7477         Reimport the update-copyright module from gnulib
7478         (250b80067c1e1d8faa0c42fb572f721975b929c5).
7479
7480         * configure: Regenerate.
7481         * gnulib/Makefile.am: Update.
7482         * gnulib/Makefile.in: Regenerate.
7483         * gnulib/extra/update-copyright: Update.
7484         * gnulib/m4/gnulib-cache.m4: Update.
7485         * gnulib/m4/gnulib-comp.m4: Update.
7486
7487 2012-04-18  Tristan Gingold  <gingold@adacore.com>
7488
7489         * configure.ac (aix): Put -lpthread into libs.
7490         * configure: Regenerate.
7491
7492 2012-04-18  Tom Tromey  <tromey@redhat.com>
7493
7494         * linespec.c (convert_linespec_to_sals): Don't use
7495         SYMBOL_OBJ_SECTION.
7496         (compare_msymbols): Arguments are minsym_and_objfile, not
7497         minimal_symbol*.  Don't use SYMBOL_OBJ_SECTION.
7498
7499 2012-04-18  Pedro Alves  <palves@redhat.com>
7500
7501         Revert gnulib/ part of:
7502         2011-01-01  Joel Brobecker  <brobecker@adacore.com>
7503         Copyright year update in most files (performed by copyright.sh).
7504
7505 2012-04-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
7506
7507         Fix 64-bit constants on 32-bit hosts.
7508         * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7509         from unsigned long to ULONGEST.
7510         (read_signed_leb128): Change declaration return type from long to
7511         LONGEST.
7512         (dwarf2_const_value_attr): Change declaration parameter value from long
7513         to LONGEST.
7514         (dwarf2_compute_name): Change variable value from long to LONGEST.
7515         (read_unsigned_leb128): Change return type, variable result and some
7516         casts from unsigned long to ULONGEST.
7517         (read_signed_leb128): Change return type, variable result and some
7518         casts from long to LONGEST.
7519         (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7520         value from long to LONGEST.
7521         (dwarf2_const_value): Change variable value from long to LONGEST.
7522         * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7523         plongest and hex_string.
7524         * symtab.h (struct general_symbol_info): Change ivalue from long to
7525         LONGEST, remove the comment.
7526         * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7527         Change SYMBOL_VALUE format strings to use plongest and hex_string.
7528
7529 2012-04-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
7530
7531         PR symtab/7259:
7532         * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7533         * ada-lang.c (ada_discrete_type_high_bound)
7534         (ada_discrete_type_low_bound): Fix function comment.  Use
7535         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7536         (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7537         (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7538         * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7539         Use TYPE_FIELD_ENUMVAL.
7540         * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7541         (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7542         * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7543         block, change it to LONGEST.  Use TYPE_FIELD_ENUMVAL for
7544         TYPE_CODE_ENUM.
7545         * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7546         * dwarf2read.c (process_enumeration_scope): Likewise.
7547         * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7548         field.bitpos.
7549         (class StructMainTypePrettyPrinter): Support also
7550         FIELD_LOC_KIND_ENUMVAL.
7551         * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7552         TYPE_CODE_ENUM.
7553         (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7554         (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7555         * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7556         (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment.  New
7557         field enumval.
7558         (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7559         accommodate enumval.
7560         (struct call_site): Adjust loc_kind to accommodate enumval.
7561         (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7562         (TYPE_FIELD_ENUMVAL): New macros.
7563         * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7564         * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7565         TYPE_CODE_ENUM.
7566         * p-typeprint.c (pascal_type_print_base): Likewise.
7567         * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7568         enumval.
7569         * python/lib/gdb/types.py (make_enum_dict): Likewise.
7570         * python/py-type.c (convert_field): New variable addrstring.  Use
7571         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7572         (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7573         * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7574         * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7575         TYPE_CODE_ENUM.
7576         * valprint.c (generic_val_print): Likewise.
7577
7578 2012-04-17  Doug Evans  <dje@google.com>
7579
7580         * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7581
7582         * dwarf2read.c: Whitespace fixes.
7583         (lookup_signatured_type): Tweak comment.
7584         (get_die_type_at_offset): Fix comment.
7585
7586 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
7587
7588         * xcoffread.c (xcoff_secnum_to_sections): New function.
7589         (secnum_to_section, secnum_to_bfd_section): Reimplement
7590         using xcoff_secnum_to_sections.  Rename "secnum" parameter
7591         into "n_scnum".
7592         (RECORD_MINIMAL_SYMBOL): Delete.
7593         (record_minimal_symbol): New function.
7594         (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7595         by call to record_minimal_symbol and set misc_func_recorded
7596         to 1.  Set last_csect_sec to the XCOFF section index instead
7597         of GDB's section_offset index.  Update calls to
7598         prim_record_minimal_symbol_and_info to pass the BFD section
7599         as well.
7600
7601 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
7602
7603         * xcoffread.c (read_xcoff_symtab): Delete variables
7604         last_csect_val and last_csect_sec and associated code.
7605
7606 2012-04-17  Doug Evans  <dje@google.com>
7607
7608         * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7609         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7610         * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7611         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7612
7613         * cleanups.h: New file.
7614         * cleanups.c: New file.
7615         * Makefile.in (SFILES): Add cleanups.c.
7616         (HFILES_NO_SRCDIR): Add cleanups.h.
7617         (COMMON_OBS): Add cleanups.o.
7618         * defs.h (struct cleanup): Moved to cleanups.h.
7619         (do_cleanups,do_final_cleanups): Ditto.
7620         (discard_cleanups,discard_final_cleanups): Ditto
7621         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7622         (save_cleanups,save_final_cleanups): Ditto.
7623         (restore_cleanups,restore_final_cleanups): Ditto.
7624         (null_cleanup): Ditto.
7625         (make_my_cleanup,make_my_cleanup2): Ditto.
7626         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7627         * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7628         (do_cleanups,do_final_cleanups): Ditto.
7629         (discard_cleanups,discard_final_cleanups): Ditto
7630         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7631         (save_cleanups,save_final_cleanups): Ditto.
7632         (restore_cleanups,restore_final_cleanups): Ditto.
7633         (null_cleanup): Ditto.
7634         (make_my_cleanup,make_my_cleanup2): Ditto.
7635         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7636
7637         * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7638         make_my_cleanup.
7639         (make_cleanup_dyn_string_delete): Ditto.
7640         (make_cleanup_ui_file_delete): Ditto.
7641         (make_cleanup_ui_out_redirect_pop): Ditto.
7642         (make_cleanup_free_section_addr_info): Ditto.
7643         (make_cleanup_restore_integer): Ditto.
7644         (make_cleanup_unpush_target): Ditto.
7645         (make_cleanup_value_free_to_mark): Ditto.
7646         (make_cleanup_value_free): Ditto.
7647         (make_cleanup_free_so): Ditto.
7648
7649 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7650
7651         New option "set debug auto-load".
7652         * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7653         * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7654         (auto_load_safe_path_vec_update)
7655         (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7656         if DEBUG_AUTO_LOAD.
7657         (file_is_auto_load_safe): New parameters debug_fmt and ....
7658         Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7659         (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7660         caller by explanatory string.
7661         (_initialize_auto_load): Register "set debug auto-load".
7662         * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7663         and ....
7664         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7665         (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7666         by explanatory string.
7667         * main.c (captured_main): Likewise.
7668         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7669         (source_section_scripts): Likewise.
7670
7671 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7672
7673         New option "set auto-load safe-path".
7674         * NEWS: New commands "set auto-load safe-path"
7675         and "show auto-load safe-path".
7676         * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7677         (auto_load_safe_path, auto_load_safe_path_vec)
7678         (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7679         (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7680         (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7681         (source_gdb_script_for_objfile): New variable is_safe.  Call
7682         file_is_auto_load_safe.  Return if it is not.
7683         (struct loaded_script): New field loaded.
7684         (maybe_add_script): Add parameter loaded.  Initialize SLOT with it.
7685         (print_script): Use LOADED indicator instead of FULL_PATH.  Change
7686         output "Missing" to "No".
7687         (_initialize_auto_load): New variable cmd.  Initialize
7688         auto_load_safe_path.  Register "set auto-load safe-path",
7689         "show auto-load safe-path" and "add-auto-load-safe-path".
7690         * auto-load.h (maybe_add_script): Add parameter loaded.
7691         (file_is_auto_load_safe): New declaration.
7692         * config.in: Regenerate.
7693         * configure: Regenerate.
7694         * configure.ac: New parameters --with-auto-load-safe-path
7695         and --without-auto-load-safe-path.
7696         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7697         (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7698         * main.c (captured_main): Check file_is_auto_load_safe for
7699         LOCAL_GDBINIT.
7700         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7701         variable is_safe.  Call file_is_auto_load_safe.  Return if it is not.
7702         (source_section_scripts): Call file_is_auto_load_safe.  Return if it is
7703         not.
7704
7705 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7706
7707         auto-load: Implementation.
7708         * NEWS: New descriptions for "info auto-load",
7709         "info auto-load gdb-scripts", "info auto-load python-scripts",
7710         "info auto-load local-gdbinit" and "info auto-load libthread-db".
7711         Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7712         and "show auto-load-scripts".  New description for "set auto-load",
7713         "show auto-load", "set auto-load gdb-scripts",
7714         "show auto-load gdb-scripts", "set auto-load python-scripts",
7715         "show auto-load python-scripts", "set auto-load local-gdbinit",
7716         "show auto-load local-gdbinit", "set auto-load libthread-db" and
7717         "show auto-load libthread-db".
7718         * auto-load.c: Remove include python/python-internal.h.  Add includes
7719         exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7720         cli/cli-setshow.h.
7721         (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7722         (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7723         (gdbpy_global_auto_load): Rename to ...
7724         (global_auto_load): ... here.
7725         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7726         (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7727         (script_language_gdb, source_gdb_script_for_objfile): New.
7728         (struct loaded_script): New field language.
7729         (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7730         LANGUAGE.
7731         (maybe_add_script): Add parameter language.  Drop redundant
7732         entry.full_path initialization.  Initialize entry.language and
7733         (*slot)->language.
7734         (auto_load_objfile_script): Change parameter suffix to language.
7735         Remove the call of maybe_add_script.
7736         Call language->source_script_for_objfile.
7737         (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7738         New.
7739         (collect_matching_scripts): Adjust it for
7740         struct collect_matching_scripts_data.
7741         (auto_load_info_scripts_pattern_nl): New variable.
7742         (info_auto_load_scripts): Rename to ...
7743         (auto_load_info_scripts): ... here, add parameter language.  Adjust it
7744         for struct collect_matching_scripts_data.
7745         (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7746         (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7747         (auto_load_show_cmdlist_get, info_auto_load_cmd)
7748         (auto_load_info_cmdlist_get): New.
7749         (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7750         python/py-auto-load.c.  New installment for "set auto-load gdb-scripts",
7751         "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7752         "info auto-load local-gdbinit".
7753         * auto-load.h (struct script_language): New.
7754         (gdbpy_global_auto_load): Rename to ...
7755         (global_auto_load): ... here.
7756         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7757         (auto_load_local_gdbinit_loaded): New declarations.
7758         (maybe_add_script): New parameter language.
7759         (auto_load_objfile_script): Change parameter suffix to language.
7760         (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7761         (auto_load_info_scripts, auto_load_set_cmdlist_get)
7762         (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7763         declarations.
7764         * linux-thread-db.c: Include auto-load.h and ctype.h.
7765         (auto_load_thread_db, show_auto_load_thread_db): New.
7766         (struct thread_db_info): New field filename.
7767         (delete_thread_db_info): Call xfree for FILENAME.
7768         (try_thread_db_load): Initialize FILENAME.
7769         (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7770         if !AUTO_LOAD_THREAD_DB.
7771         (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7772         (_initialize_thread_db): Install auto_load_thread_db
7773         as "set auto-load libthread-db" and install info_auto_load_libthread_db
7774         as "info auto-load libthread-db".
7775         * main.c (captured_main): Rename gdbpy_global_auto_load to
7776         global_auto_load.  Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7777         AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7778         (print_gdb_help): Extend the help for 'local init file'.
7779         * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7780         (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7781         (auto_load_scripts): Rename to ...
7782         (auto_load_python_scripts): ... here, update the comment.
7783         (gdbpy_load_auto_script_for_objfile): New declaration.
7784         (show_auto_load_python_scripts, script_language_python)
7785         (gdbpy_load_auto_script_for_objfile): New.
7786         (source_section_scripts): Refactor the code.
7787         (load_auto_scripts_for_objfile): Rename to ...
7788         (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7789         auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7790         (info_auto_load_python_scripts): New.
7791         (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7792         Rename "set auto-load-scripts" to "set auto-load python-scripts".
7793         Register "set auto-load-scripts" as its deprecated alias.  Register
7794         "info auto-load python-scripts".  Register "info auto-load-scripts" as
7795         its deprecated alias.
7796         (load_auto_scripts_for_objfile): Rename to ...
7797         (gdbpy_load_auto_scripts_for_objfile): ... here.
7798         * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7799         (gdbpy_load_auto_scripts_for_objfile): ... here.
7800
7801 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7802
7803         auto-load: Move files.
7804         * Makefile.in (SFILES): Add auto-load.c.
7805         (HFILES_NO_SRCDIR): Add auto-load.h.
7806         (COMMON_OBS): Add auto-load.o.
7807         (distclean): Change .gdbinit for gdb-gdb.gdb.
7808         * auto-load.c: New file, with parts from python/py-auto-load.c.
7809         * auto-load.h: New file, with parts from python/python.h.
7810         * configure: Regenerate.
7811         * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7812         * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7813         * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7814         * main.c: Include auto-load.h.
7815         * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7816         command.h, observer.h and progspace.h to auto-load.c.  Add include
7817         auto-load.h.
7818         (gdbpy_global_auto_load, struct auto_load_pspace_info)
7819         (struct loaded_script, auto_load_pspace_data)
7820         (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7821         (hash_loaded_script_entry, eq_loaded_script_entry)
7822         (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7823         (maybe_add_script): Move to auto-load.c.
7824         (source_section_scripts): Change maybe_add_script parameters passing,
7825         use script_not_found_warning_print.
7826         (clear_section_scripts, auto_load_objfile_script)
7827         (auto_load_new_objfile, loaded_script_ptr)
7828         (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7829         (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7830         (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7831         auto_load_new_objfile and info_auto_load_scripts initizations to
7832         auto-load.c.
7833         * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7834
7835 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7836
7837         Code cleanup.
7838         * charset.c (find_charset_names): Remove variables ix and elt.
7839         Use free_char_ptr_vec.
7840         * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7841         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
7842         debugdir_end.  New variable debugdir_len.
7843         * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7844         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7845         declarations.
7846         * progspace.c (clear_program_space_solib_cache): Remove variables ix
7847         and elt.  Use free_char_ptr_vec.
7848         * source.c (add_path): Remove variables argv, arg and argv_index.
7849         New variables dir_vec, back_to, ix and name.
7850         Use dirnames_to_char_ptr_vec_append.  Use freeargv instead of
7851         make_cleanup_freeargv.  Remove variable separator.  Simplify the code
7852         no longer expecting DIRNAME_SEPARATOR.
7853         (openp): Remove variable p, p1 and len.  New variables dir_vec,
7854         back_to, ix and dir.  Use dirnames_to_char_ptr_vec.  Simplify the code
7855         no longer expecting DIRNAME_SEPARATOR.
7856         * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7857         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
7858         debugdir_end.
7859         * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7860         (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7861         (dirnames_to_char_ptr_vec): New functions.
7862
7863 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7864
7865         Code cleanup.
7866         * source.c (add_path): Remove always true conditional 'p == 0' and
7867         unindent its code block.
7868
7869 2012-04-17  Pedro Alves  <palves@redhat.com>
7870
7871         * gdbtypes.h (FIELD_BITPOS): Rename to ...
7872         (FIELD_BITPOS_LVAL): ... this.
7873         (FIELD_BITPOS): New.
7874         (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7875         * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7876         * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7877         SET_FIELD_BITPOS.
7878         * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7879         SET_FIELD_BITPOS.
7880         * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7881         (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7882         * target-descriptions.c (tdesc_gdb_type): Adjust to use
7883         SET_FIELD_BITPOS.
7884
7885 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7886
7887         Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7888         * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7889         TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7890         * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7891         * jv-lang.c (java_link_class_type): Likewise, once.
7892         * stabsread.c (read_enum_type): Likewise.
7893
7894 2012-04-16  Yao Qi  <yao@codesourcery.com>
7895
7896         * common/agent.c (agent_run_command): Add one more parameter `len'.
7897         Update callers.
7898         * common/agent.h: Update declaration.
7899         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7900         Update.
7901         (linux_child_static_tracepoint_markers_by_strid): Ditto.
7902
7903 2012-04-14  Anton Gorenkov <xgsa@yandex.ru>
7904
7905         PR mi/13393
7906         * value.c (value_actual_type): New function.
7907         * value.h (value_actual_type): New declaration.
7908         * varobj.c (update_type_if_necessary): New function.
7909         (varobj_create): Call value_actual_type instead of
7910         value_type.
7911         (install_dynamic_child): distinct changed and type changed MI variable
7912         objects.
7913         (update_dynamic_varobj_children): Updated for install_dynamic_child
7914         change.  All callers updated.
7915         (varobj_update): Support for MI variable object type change if
7916         the value changed and RTTI is used to determine the type.
7917         (create_child_with_value): Call value_actual_type instead of
7918         value_type.
7919         (adjust_value_for_child_access): Extended with a new parameter which
7920         specify whether the given value should be casted to enclosing type.
7921         All callers updated.
7922
7923 2012-04-14  Yao Qi  <yao@codesourcery.com>
7924
7925         Import gnulib module inttypes from git
7926         (250b80067c1e1d8faa0c42fb572f721975b929c5)
7927         * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7928         (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7929         gnulib/m4/inttypes-pri.m4
7930         * aclocal.m4, config.in, configure: Regenerated.
7931         * gnulib/Makefile.am: Update.
7932         * gnulib/Makefile.in: Update.
7933         * gnulib/m4/gnulib-cache.m4: Update.
7934         * gnulib/m4/gnulib-comp.m4: Update.
7935         * gnulib/inttypes.in.h: New.
7936         * gnulib/m4/inttypes-pri.m4: New.
7937         * gnulib/m4/inttypes.m4: New.
7938
7939 2012-04-13  Luis Machado  <lgustavo@codesourcery.com>
7940
7941         * infrun.c (resume): Update PC address to the real PC after
7942         preparing to do displaced stepping.
7943
7944 2012-04-12  Doug Evans  <dje@google.com>
7945
7946         * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7947         All callers updated.
7948
7949 2012-04-12  Mark Kettenis  <kettenis@gnu.org>
7950
7951         * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7952
7953 2012-04-12  Doug Evans  <dje@google.com>
7954
7955         * dwarf2read.c (create_all_type_units): Renamed from
7956         create_debug_types_hash_table.  All callers updated.
7957
7958         * dwarf2read.c (create_signatured_type_table_from_index): Rename
7959         local type_sig to sig_type, type_offset to type_offset_in_tu.
7960         (hash_signatured_type): Renamed from hash_type_signature,
7961         all callers updated.
7962         (eq_signatured_type): Renamed from eq_type_signature,
7963         all callers updated.
7964         (create_debug_types_hash_table): Rename local type_sig to sig_type.
7965         (process_enumeration_scope): Ditto.
7966         (lookup_signatured_type_at_offset): Ditto.
7967         (load_full_type_unit, read_signatured_type): Ditto.
7968
7969 2012-04-12  Yao Qi  <yao@codesourcery.com>
7970
7971         * remote.c (async_remote_interrupt): Correct function name in
7972         debug message.
7973         (async_remote_interrupt_twice): Ditto.
7974
7975 2012-04-11  Yuanhui Zhang  <asmwarrior@gmail.com>
7976
7977         * source.c (find_and_open_source): Consistently pass resulting
7978         full path through xfullpath.
7979
7980 2012-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7981
7982         Provide more specific displaced-stepping memory error message.
7983         * infrun.c (displaced_step_prepare): New variable status.  Call
7984         target_read_memory instead of read_memory, provide more specific
7985         error message.
7986
7987 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7988
7989         PR gdb/13901
7990         * darwin-nat.c (darwin_execvp): Revert previous patch.
7991
7992 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7993
7994         PR gdb/13901
7995         * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7996         in case of change.
7997
7998 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7999
8000         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8001         warning.
8002
8003 2012-04-11  Siva Chandra Reddy  <sivachandra@google.com>
8004
8005         New command 'explore' which helps explore values and types in
8006         scope.
8007         * NEWS: Add an entry about the new 'explore' command.
8008         * data-directory/Makefile.in: Add gdb/command/explore.py
8009         * python/lib/gdb/command/explore.py: Implemention of the 'explore'
8010         command using the GDB Python API.
8011
8012 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
8013
8014         * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8015         extension in jump target calculation.
8016
8017 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
8018
8019         * mips-tdep.c (mips32_next_pc): Handle JALX.
8020
8021 2012-04-10  Yao Qi  <yao@codesourcery.com>
8022
8023         * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8024
8025 2012-04-10  Yao Qi  <yao@codesourcery.com>
8026
8027         * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8028         and gnulib/m4/gnulib-tool.m4.
8029
8030 2012-04-10  Doug Evans  <dje@google.com>
8031
8032         * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8033         (load_partial_dies): Clarify comment.
8034         (find_partial_die): Support rereading type units.
8035         Clarify CU handling, if we know offset is in CU, don't search for the
8036         containing CU.  Add comment regarding memory waste.
8037
8038 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
8039
8040         * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8041         i386/x32-avx and i386/x32-avx-linux.
8042         (i386/x32-expedite): New.
8043         (i386/x32-linux-expedite): Likewise.
8044         (i386/x32-avx-expedite): Likewise.
8045         (i386/x32-avx-linux-expedite): Likewise.
8046         ($(outdir)/i386/x32.dat): Likewise.
8047         ($(outdir)/i386/x32-linux.dat): Likewise.
8048         ($(outdir)/i386/x32-avx.dat): Likewise.
8049         ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8050
8051         * features/i386/x32-avx-linux.xml: New file.
8052         * features/i386/x32-avx.xml: Likewise.
8053         * features/i386/x32-core.xml: Likewise.
8054         * features/i386/x32-linux.xml: Likewise.
8055         * features/i386/x32.xml: Likewise.
8056
8057         * features/i386/x32-avx-linux.c: New.  Generated.
8058         * features/i386/x32-avx.c: Likewise.
8059         * features/i386/x32-linux.c: Likewise.
8060         * features/i386/x32.c: Likewise.
8061         * regformats/i386/x32-avx-linux.dat: Likewise.
8062         * regformats/i386/x32-avx.dat: Likewise.
8063         * regformats/i386/x32-linux.dat: Likewise.
8064         * regformats/i386/x32.dat: Likewise.
8065
8066 2012-04-10  Tristan Gingold  <gingold@adacore.com>
8067
8068         * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8069         code to kill the inferior.
8070
8071 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
8072
8073         * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8074         defines.
8075         * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8076         defines.
8077         * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
8078         (yyvsp): New defines.
8079         * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8080         defines.
8081         * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8082         defines.
8083         * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8084         defines.
8085         * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8086         defines.
8087         * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8088         defines.
8089
8090 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
8091
8092         * sparc64-tdep.c (sparc64_store_arguments)
8093         (sparc64_store_arguments): Fix coding style.
8094
8095 2012-04-07  Mark Kettenis  <kettenis@gnu.org>
8096
8097         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8098         complex floats, adjust some related comments and tighten a related
8099         assertion.
8100         (sparc64_extract_return_value): Handle complex floats.
8101
8102 2012-04-07  Doug Evans  <dje@google.com>
8103
8104         * dwarf2read.c (load_partial_dies): Change condition to assert.
8105
8106 2012-04-06  Doug Evans  <dje@google.com>
8107
8108         * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8109         "mov %rsp,%rbp".
8110
8111 2012-04-05  Kevin Buettner  <kevinb@redhat.com>
8112
8113         * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8114         fencepost error.
8115         (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8116         (v850_gdbarch_init): Set `num_regs' as appropriate for the
8117         architecture.
8118
8119 2012-04-05  Keith Seitz  <keiths@redhat.com>
8120
8121         * linespec.c (decode_compound): Remove.
8122         (enum offset_relative_sign): New enum.
8123         (struct line_offset): New struct.
8124         (struct linespec): New struct.
8125         (struct linespec_state): Move file_symtabs,
8126         user_filename, and user_function into struct linespec.
8127         Make result an anonymous struct holding vectors of
8128         symbolp and minsym_and_objfile_d.
8129         Add language member.
8130         (enum ls_token_type): New enum.
8131         (linespec_keywords): New array.
8132         (struct ls_token): New struct.
8133         (struct ls_parser): New struct.
8134         (linespec_lexer_lex_number): New function.
8135         (linespec_lexer_lex_keyword): New function.
8136         (is_ada_operator): New function.
8137         (skip_quote_char): New function.
8138         (copy_token_string): New function.
8139         (is_closing_quote_enclosed): New function.
8140         (find_parameter_list_end): New function.
8141         (linespec_lexer_lex_string): New function.
8142         (linespec_lexer_lex_one): New function.
8143         (linespec_lexer_consume_token): New function.
8144         (linespec_lexer_peek_token): New function.
8145         (cplusplus_error): Remove unused function.
8146         (find_methods): Update comment.
8147         (find_toplevel_char): Return const.
8148         (is_objc_method_format): Remove unused function.
8149         (find_toplevel_string): New function.
8150         (is_linespec_boundary): Remove.
8151         (symbol_not_found_error): New function.
8152         (find_method_overload_end): Remove function.
8153         (unexpected_linespec_error): New function.
8154         (keep_name_info): Remove.
8155         (linespec_parse_line_offset): New function.
8156         (linespec_parse_basic): New function.
8157         (canonicalize_linespec): New function.
8158         (decode_line_internal): Remove.
8159         (create_sals_line_offset): New function adapted from
8160         decode_all_digits.
8161         (convert_linespec_to_sals): New function.
8162         (parse_linespec): New function.
8163         (linespec_parser_new): New function.
8164         (linespec_state_destructor): Change parameter type to
8165         struct linespec_state *.
8166         Add language parameter.
8167         Remove freeing of moved members.
8168         (linespec_parser_delete): New function.
8169         (decode_line_full): Use parse_linespec and linespec_parser_new.
8170         (decode_line_1): Likewise.
8171         (decode_indirect): Rename to ...
8172         (linespec_expression_to_pc): ... this and rewrite
8173         to simply find CORE_ADDR, storing this result for later
8174         conversion to SALs.
8175         (locate_first_half): Remove.
8176         (deocde_objc): Add parameter LS.
8177         Initialize new struct collect_info members.
8178         Handle minimal symbols, too.
8179         (decode_compound): Delete.
8180         (lookup_prefix_sym): Rewrite.
8181         (compare_msymbols): New function.
8182         (find_method): Rewrite.
8183         Do not call cplusplus_error.
8184         (symtabs_from_filename): Rewrite.
8185         (collect_function_symbols): Delete.
8186         (find_function_symbols): Rewrite without ARGPTR-style
8187         processing.
8188         (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8189         (decode_dollar): Adapted and renamed to ...
8190         (linespec_parse_variable): ... this.
8191         (find_linespec_symbols): New function.
8192         (decode_label): Adapted and renamed to ...
8193         (find_label_symbols): ... this.
8194         (decode_digits_list_mode): Add and use LS argument.
8195         (decode_digits_ordinary): Likewise.
8196         (collect_symbols): Do not collect SALs, just symbols and msymbols.
8197         If in list mode, allow any symbol class.  Otherwise, only
8198         permit LOC_BLOCK symbols.
8199         (minsym_found): Update comments.
8200         (search_minsyms_for_name): Do not convert the matching symbol
8201         into a SAL.  Simply push the symbol and objfile into the
8202         result vector.
8203         (decode_variable): Delete. Contents adapted into
8204         find_linespec_symbols.
8205
8206         * cp-support.c (SKIP_SPACE): Remove.
8207         (operator_tokens): Remove unused global.
8208         (cp_validate_operator): Remove.
8209         * cp-support.h (cp_validate_operator): Remove declaration.
8210
8211 2012-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
8212
8213         * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8214         for TYPE_VPTR_FIELDNO.
8215         * valprint.c (valprint_check_validity): Make it global, move the
8216         function comment ...
8217         * value.h (valprint_check_validity): ... to this new declaration.
8218
8219 2012-04-02  Tristan Gingold  <gingold@adacore.com>
8220
8221         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8222         the STATE32 api for i386 state.
8223         (i386_darwin_store_inferior_registers): Likewise.
8224
8225 2012-04-02  Tristan Gingold  <gingold@adacore.com>
8226
8227         * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8228         SS offset.
8229         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8230         format_string.
8231
8232 2012-04-02  Tristan Gingold  <gingold@adacore.com>
8233
8234         PR gdb/13901
8235         * darwin-nat.c (darwin_execvp): Set binary preference.
8236
8237 2012-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8238
8239         * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8240
8241 2012-03-30  Tom Tromey  <tromey@redhat.com>
8242
8243         * python/python.c (gdbpy_decode_line): Move cleanup creation out
8244         of TRY_CATCH.  Fix error handling.
8245         * python/py-value.c (convert_value_from_python): Move 'old'
8246         declaration to innermost scope.
8247
8248 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8249             Andrey Smirnov  <andrew.smirnov@gmail.com>
8250
8251         -Wshadow warning fix.
8252         * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8253         "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8254         Adjust code accordingly.
8255
8256 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8257
8258         * ada-lang.c (symbol_completion_add): Rename parameter
8259         "encoded" into "encoded_p".  Ajust code and documentation
8260         accordingly.
8261
8262 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8263             Andrey Smirnov  <andrew.smirnov@gmail.com>
8264
8265         -Wshadow warning fix.
8266         * ada-lang.c (symbol_completion_add): Rename parameter
8267         "wild_match" into wild_match_p.  Update code and documentation
8268         accordingly.
8269
8270 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8271
8272         * ada-lang.c (symbol_completion_match): Rename parameter
8273         "encoded" into "encoded_p".  Ajust code and documentation
8274         accordingly.
8275
8276 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8277             Andrey Smirnov  <andrew.smirnov@gmail.com>
8278
8279         -Wshadow warning fix.
8280         * ada-lang.c (symbol_completion_match): Rename parameter
8281         "wild_match" into "wild_match_p".  Adjust code and function
8282         documentation accordingly.
8283
8284 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8285             Andrey Smirnov  <andrew.smirnov@gmail.com>
8286
8287         -Wshadow warning fix.
8288         * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8289         "symbol_info" into "info".  Adjust code accordingly.
8290         (ada_lookup_symbol): Likewise.
8291
8292 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8293
8294         * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8295         of this function's documentation.
8296
8297 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8298             Andrey Smirnov  <andrew.smirnov@gmail.com>
8299
8300         -Wshadow warning fix.
8301         * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8302         variable into "wild_match_p".  Adjust code accordingly.
8303
8304 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8305             Andrey Smirnov  <andrew.smirnov@gmail.com>
8306
8307         -Wshadow warning fix.
8308         * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8309         parameter into "wild_match_p".  Adjust code accordingly.
8310         Document this parameter in the function description.
8311
8312 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8313             Andrey Smirnov  <andrew.smirnov@gmail.com>
8314
8315         -Wshadow warning fix.
8316         * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8317         "wild_match" parameter to "wild_match_p" (-Wshadow).
8318
8319 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8320
8321         * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8322         in function documentation.
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 (ada_lookup_simple_minsym): Rename wild_match local
8329         variable into wild_match_p.  Adjust code accordingly.
8330
8331 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8332             Andrey Smirnov  <andrew.smirnov@gmail.com>
8333
8334         * ada-valprint.c (ada_val_print_1): Move the code handling
8335         TYPE_CODE_ENUM inside its own lexical block.  Declare
8336         variables len and val there, instead of in the function's
8337         top level block.  Avoid declaring deref_val again in a way
8338         that shadows another variable of the same name declared
8339         in one of the up-level blocks.  Just re-use the up-level
8340         variable instead.
8341
8342 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8343
8344         * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8345         Replace block_found argument by symbol_info.  Adjust
8346         implementation accordingly.  Add function documentation.
8347         (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8348         Fix documentation.
8349         * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8350         * ada-exp.y (write_object_renaming): Adjust to new
8351         ada_lookup_encoded_symbol API.
8352
8353 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8354
8355         * ada-lang.h (struct ada_symbol_info): Reformat.  Improve
8356         documentation.
8357
8358 2012-03-28  Rathish C  <rathish.c@kpitcummins.com>
8359
8360         * v850-tdep.c: Add the enum values for mpu and fpu registers.
8361         (v850_register_name): Add the mpu and fpu register names.
8362         (v850e_register_name): Add the mpu and fpu register names.
8363         (v850e2_register_name): New function.
8364         (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
8365         bfd_mach_v850e2v3.
8366
8367 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
8368
8369         * NEWS: Add entry for Ada varobj support.
8370
8371 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
8372
8373         * varobj.c (default_value_is_changeable_p): New function,
8374         extracted from varobj_value_is_changeable_p.  Add declaration.
8375         (ada_value_is_changeable_p): New function, extracted from
8376         varobj_value_is_changeable_p.  Add declaration.
8377         (struct language_specific): New field "value_is_changeable_p".
8378         (languages): Add entries for new field.
8379         (varobj_create): Set language before calling install_new_value.
8380         (varobj_value_is_changeable_p): Reimplement to call the varobj's
8381         "value_is_changeable_p" language callback.
8382
8383 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
8384
8385         * ada-varobj.h, ada-varobj.c: New files.
8386         * Makefile.in (SFILES): Add ada-varobj.c.
8387         (HFILES_NO_SRCDIR): Add ada-varobj.h.
8388         (COMMON_OBS): Add ada-varobj.o.
8389
8390 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
8391
8392         * varobj.c (ada_value_has_mutated): Add declaration.  New function.
8393         (struct language_specific): New field "value_has_mutated".
8394         (languages): Set field "value_has_mutated" in each entry of array.
8395         (varobj_value_has_mutated): New function.
8396         (varobj_udpdate): Add handling of type mutation.
8397         (value_of_root): Add handling of type mutation.
8398         (ada_value_has_mutated): New function.
8399
8400 2012-03-28  Pedro Alves  <palves@redhat.com>
8401
8402         * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
8403         Always supply $fr0 as 0.0 and $fr1 as 1.0.
8404
8405 2012-03-28  Tom Tromey  <tromey@redhat.com>
8406
8407         * python/py-inferior.c (infpy_read_memory): Remove cleanups and
8408         explicitly free 'buffer' on exit paths.  Decref 'membuf_object'
8409         before returning.
8410
8411 2012-03-28  Tom Tromey  <tromey@redhat.com>
8412
8413         * .dir-locals.el: New file.
8414
8415 2012-03-28  Pedro Alves  <palves@redhat.com>
8416
8417         * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8418
8419 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
8420
8421         * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8422         handling for r0.
8423
8424 2012-03-27  Pedro Alves  <palves@redhat.com>
8425
8426         Eliminate struct ui_stream.
8427
8428         * ui-out.h (struct ui_stream): Delete.
8429         (ui_out_field_stream): Adjust prototype.
8430         (ui_out_stream_new, ui_out_stream_delete)
8431         (make_cleanup_ui_out_stream_delete): Delete declarations.
8432         * ui-out.c (ui_out_field_stream): Change prototype to take a
8433         ui_file instead of a ui_stream.  Adjust.
8434         (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8435         (make_cleanup_ui_out_stream_delete): Delete.
8436         * breakpoint.c (print_breakpoint_location)
8437         (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8438         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8439         * disasm.c (dump_insns): Ditto.
8440         (do_mixed_source_and_assembly, do_assembly_only): Adjust
8441         prototype.
8442         (gdb_disassembly): Use ui_file/mem_fileopen instead of
8443         ui_stream/ui_out_stream_new.
8444         * infcmd.c (print_return_value): Ditto.
8445         * osdata.c (info_osdata_command): Don't allocate a local
8446         ui_stream.
8447         * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8448         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8449         * tracepoint.c (print_one_static_tracepoint_marker): Don't
8450         allocate a local ui_stream.
8451         * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8452         instead of ui_stream/ui_out_stream_new.
8453         (list_args_or_locals): Don't allocate a local ui_stream.
8454         * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8455         (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8456         ui_stream/ui_out_stream_new.
8457         * cli/cli-setshow.c (do_setshow_command): Ditto.
8458
8459 2012-03-27  Oza Pawandeep  <oza.pawandeep@gmail.com>
8460
8461         * arm-linux-tdep.c (arm_linux_init_abi): Call
8462         set_gdbarch_process_record.  Initialize `arm_swi_record' field.
8463         * arm-tdep.c (arm_process_record): New function.
8464         (deallocate_reg_mem): New function.
8465         (decode_insn): New function.
8466         (thumb_record_branch): New function.
8467         (thumb_record_ldm_stm_swi(): New function.
8468         (thumb_record_misc): New function.
8469         (thumb_record_ld_st_stack): New function.
8470         (thumb_record_ld_st_imm_offset): New function.
8471         (thumb_record_ld_st_reg_offset(): New function.
8472         (thumb_record_add_sub_cmp_mov): New function.
8473         (thumb_record_shift_add_sub): New function.
8474         (arm_record_coproc_data_proc): New function.
8475         (arm_record_coproc): New function.
8476         (arm_record_b_bl): New function.
8477         (arm_record_ld_st_multiple): New function.
8478         (arm_record_ld_st_reg_offset): New function.
8479         (arm_record_ld_st_imm_offset): New function.
8480         (arm_record_data_proc_imm): New function.
8481         (arm_record_data_proc_misc_ld_str): New function.
8482         (arm_record_extension_space): New function.
8483         (arm_record_strx): New function.
8484         (sbo_sbz): New function.
8485         (struct insn_decode_record): New structure for arm insn record.
8486         (REG_ALLOC): New macro for reg allocations.
8487         (MEM_ALLOC): New macro for memory allocations.
8488         * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
8489
8490 2012-03-27  Andreas Schwab  <schwab@linux-m68k.org>
8491
8492         * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8493         (store_register): Likewise.
8494
8495 2012-03-26  Oza Pawandeep  <oza.pawandeep@gmail.com>
8496
8497         * MAINTAINERS (Write After Approval): Add myself to the list.
8498
8499 2012-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
8500
8501         * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8502         Describe also the option "auto".
8503
8504 2012-03-22  Richard Henderson  <rth@redhat.com>
8505
8506         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8507         * sparc-nat.c (sparc_xfer_wcookie): Make static.
8508
8509 2012-03-22  Richard Henderson  <rth@redhat.com>
8510
8511         * jit.c (jit_read_code_entry): Compute alignment and offset of
8512         int64_t member before computing entry_size.
8513
8514 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
8515
8516         Python scripting: Add new method Value.referenced_value to
8517         gdb.Value which can dereference pointer as well as reference
8518         values.
8519         * NEWS: Add entry under 'Python scripting' about the new method
8520         Value.referenced_value on gdb.Value objects.
8521         * python/py-value.c (valpy_referenced_value): New function
8522         defining a new method on gdb.Value objects which can dereference
8523         pointer and reference values.
8524
8525 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
8526
8527         * MAINTAINERS (Write After Approval): Add myself to the list.
8528
8529 2012-03-21  Kevin Buettner  <kevinb@redhat.com>
8530
8531         * symtab.c (skip_prologue_sal): Change test to check for "main()"
8532         in addition to "main".
8533
8534 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
8535
8536         * expression.h (op_name): Add declaration.
8537         * expprint.c (op_name): Remove declaration.  Make non-static.
8538         * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8539
8540 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
8541
8542         * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8543         of struct siginfo.
8544         * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8545         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8546         * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8547         (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8548         (linux_nat_get_siginfo): Likewise.
8549         * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8550         (linux_nat_get_siginfo): Likewise.
8551         * linux-tdep.c (linux_get_siginfo_type): Likewise.
8552         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8553         * procfs.c (gdb_siginfo_t): Likewise.
8554
8555 2012-03-21  Mike Frysinger  <vapier@gentoo.org>
8556
8557         * .gitignore: Ignore more files.
8558
8559 2012-03-20  Pedro Alves  <palves@redhat.com>
8560
8561         * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8562         returns.
8563
8564 2012-03-20  Yao Qi  <yao@codesourcery.com>
8565
8566         * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8567         comment.
8568
8569 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8570
8571         Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8572         * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8573         (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8574         sect_offset.
8575         * dwarf2expr.h (cu_offset, sect_offset): New types.
8576         (struct dwarf_expr_context_funcs) <dwarf_call>
8577         (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8578         sect_offset.
8579         (struct dwarf_expr_context) <len>: Improve the comment.
8580         (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8581         cu_offset and sect_offset.
8582         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8583         (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8584         (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8585         * dwarf2loc.h: Include dwarf2expr.h.
8586         (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8587         and sect_offset.
8588         * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8589         Improve the comment.
8590         (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8591         (struct signatured_type, struct line_header, struct partial_die_info)
8592         (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8593         (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8594         (get_die_type_at_offset, create_cus_from_index)
8595         (create_signatured_type_table_from_index, dw2_get_file_names)
8596         (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8597         (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8598         (create_debug_types_hash_table, process_psymtab_comp_unit)
8599         (load_partial_comp_unit, create_all_comp_units)
8600         (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8601         (load_full_comp_unit, dwarf2_physname, read_import_statement)
8602         (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8603         (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8604         (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8605         (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8606         (find_partial_die, read_attribute_value, lookup_die_type)
8607         (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8608         (is_ref_attr): New function comment.
8609         (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8610         Use cu_offset and sect_offset.
8611         (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8612         (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8613         (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8614         (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8615         (offset_and_type_hash, offset_and_type_eq, set_die_type)
8616         (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8617         (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8618         sect_offset.
8619
8620 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8621
8622         Code cleanup.
8623         * python/py-auto-load.c (source_section_scripts): New variable back_to.
8624         Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8625         with xfree.
8626         (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8627
8628 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8629
8630         * NEWS: Describe new options --init-command=FILE, -ix and
8631         --init-eval-command=COMMAND, -iex.
8632         * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8633         CMDARG_INIT_COMMAND.
8634         (captured_main): New enum items OPT_IX and OPT_IEX.  Add
8635         "init-command", "init-eval-command", "ix" and "iex" to the variable
8636         long_options.  Handle OPT_IX and OPT_IEX.  Process them from CMDARG_VEC.
8637         New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8638         (print_gdb_help): Describe --init-command=FILE, -ix and
8639         --init-eval-command=COMMAND, -iex.
8640
8641 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8642
8643         Code cleanup.
8644         * main.c (struct cmdarg): Move it here from main.  Add more comments.
8645         (cmdarg_s, VEC (cmdarg_s)): New.
8646         (main): Move struct cmdarg from here.  New variables cmdarg_vec and
8647         cmdarg_p.  Remove variables cmdsize and ncmd and their initialization.
8648         Install cleanup for cmdarg_vec.  Update filling for options 'x' and
8649         'X'.  Replace cmdarg processing by cmdarg_vec processing.  Remove xfree
8650         of CMDARG.
8651
8652 2012-03-19  Tom Tromey  <tromey@redhat.com>
8653
8654         * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8655
8656 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8657
8658         PR symtab/13777
8659         * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8660         GCC >=4.5.
8661
8662 2012-03-16  Chris January  <chris.january@allinea.com>
8663
8664         * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8665         of clear.
8666
8667 2012-03-16  Chris January  <chris.january@allinea.com>
8668
8669         * source.c (add_path): Use memmove instead of strcpy because the
8670         strings overlap.
8671
8672 2012-03-16  Joel Brobecker  <brobecker@adacore.com>
8673
8674         * value.h (set_value_parent): Add declaration.
8675         * value.c (set_value_parent): New function.
8676         (value_address): If VALUE->PARENT is not NULL, then use it as
8677         the base address instead of VALUE->LOCATION.address.
8678         * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8679         the same as OBJ's address.  Adjust V's offset accordingly.
8680         Set V's parent.
8681
8682 2012-03-16  Gary Benson  <gbenson@redhat.com>
8683
8684         PR breakpoints/10738
8685         * dwarf2read.c (use_deprecated_index_sections): New global.
8686         (struct partial_die_info): New member may_be_inlined.
8687         (read_partial_die): Set may_be_inlined where appropriate.
8688         (add_partial_subprogram): Add partial symbols for partial
8689         DIEs that may be inlined.
8690         (new_symbol_full): Add inlined subroutines to the current
8691         scope.
8692         (write_psymtabs_to_index): Bump version number.
8693         (dwarf2_read_index): Read only version 6 indices unless
8694         use_deprecated_index_sections is set.
8695         * linespec.c (symbol_and_data_callback): New structure.
8696         (iterate_inline_only): New function.
8697         (iterate_over_all_matching_symtabs): New argument
8698         "include_inline".  If nonzero, also call the callback for
8699         symbols representing inlined subroutines.
8700         (lookup_prefix_sym): Pass extra argument to the above.
8701         (find_function_symbols): Likewise.
8702         (add_matching_symbols_to_info): Likewise.
8703         * NEWS: Mention that GDB can now set breakpoints on inlined
8704         functions.
8705
8706 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
8707
8708         * p-typeprint.c (pascal_type_print_method_args):
8709         Fix display of parameter of methods.
8710
8711 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
8712
8713         * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8714         Add missing prototype.
8715
8716 2012-03-16  Yao Qi  <yao@codesourcery.com>
8717             Jan Kratochvil  <jan.kratochvil@redhat.com>
8718
8719         Fix false compilation warning.
8720         * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8721
8722 2012-03-15  Jonathan Larmour  <jifl@eCosCentric.com>
8723             Pedro Alves  <pedro@codesourcery.com>
8724
8725         * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8726         (arm_register_g_packet_guesses): New function.
8727         (arm_gdbarch_init): Don't force a target description with
8728         registers when the executable is detected as M-profile.  Instead
8729         set gdbarch->tdep->is_m.  Register `g' packet guesses.
8730         (_initialize_arm_tdep): Initialize the new target description.
8731         * features/arm-with-m-fpa-layout.xml: New description.
8732         * features/arm-with-m-fpa-layout.c: New, generated.
8733
8734 2012-03-15  Joel Brobecker  <brobecker@adacore.com>
8735
8736         * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8737         Update function description.
8738         (insert_bp_location): Do not wipe bl->target_info out.
8739         * mem-break.c: #include "gdb_string.h".
8740         (default_memory_insert_breakpoint): Do not call target_read_memory
8741         with a pointer to the breakpoint's shadow_contents buffer.  Use
8742         a local buffer instead.
8743         * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8744
8745 2012-03-15  Tom Tromey  <tromey@redhat.com>
8746
8747         * NEWS: Mention "info vtbl", not "info vtable".
8748         * cp-support.c (info_vtbl_command): Fix comment.
8749         (_initialize_cp_support): Fix text.
8750
8751 2012-03-15  Tom Tromey  <tromey@redhat.com>
8752
8753         * cp-valprint.c (cp_print_value_fields): Use
8754         print_function_pointer_address for vtable slot.
8755
8756 2012-03-15  Tom Tromey  <tromey@redhat.com>
8757
8758         * gnu-v3-abi.c (struct value_and_voffset): New.
8759         (hash_value_and_voffset, eq_value_and_voffset)
8760         (compare_value_and_voffset, compute_vtable_size)
8761         (print_one_vtable, gnuv3_print_vtable): New functions.
8762         (init_gnuv3_ops): Initialize 'print_vtable' field.
8763         * cp-support.c (info_vtbl_command): New function.
8764         (_initialize_cp_support): Add "info vtbl".
8765         * cp-abi.h (cplus_print_vtable): Declare.
8766         (struct cp_abi_ops) <print_vtable>: New field.
8767         * cp-abi.c (cplus_print_vtable): New function.
8768         * NEWS: Update.
8769
8770 2012-03-15  Tom Tromey  <tromey@redhat.com>
8771
8772         * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8773         iterate_over_symbols.
8774
8775 2012-03-14  Doug Evans  <dje@google.com>
8776
8777         * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8778         DW_OP_GNU_parameter_ref.
8779
8780 2012-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
8781
8782         Fix double prompt of 'interpreter-exec mi'.
8783         * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8784         (mi_interpreter_resume): use it.
8785         (mi_execute_command_input_handler): New function.
8786         * mi/mi-main.c (mi_execute_command): Move prompt printing to
8787         mi_execute_command_input_handler.
8788
8789 2012-03-13  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
8790
8791         * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8792         prototype.
8793         (darwin_debug_port_info): Make static.
8794         * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8795         * machoread.c (_initialize_machoread): Add prototype.
8796         * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8797         (i386_darwin_set_control, i386_darwin_get_control)
8798         i386_darwin_dr_set_addr, i386_darwin_get_addr)
8799         i386_darwin_get_status, i386_darwin_get_control):
8800         Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8801
8802 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
8803
8804         * ax-gdb.c (gen_usual_unary): Remove special handling of
8805         enum and bool types.
8806
8807 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
8808
8809         * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8810
8811 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
8812
8813         * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8814
8815 2012-03-13  Chris January  <chris.january@allinea.com>
8816
8817         * aix-thread.c (fill_sprs): Store the floating point registers
8818         at the correct offsets into vals.
8819
8820 2012-03-13  Doug Evans  <dje@google.com>
8821
8822         * NEWS: Mention symbol-reloading has been deleted.
8823         * symfile.c (symbol_reloading): Delete.
8824         (show_symbol_reloading): Delete.
8825         (_initialize_symfile): Delete set/show symbol-reloading.
8826
8827         * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8828         read_in_chain until we have successfully read it in.
8829         (load_full_comp_unit): Ditto.
8830         (read_signatured_type): Add comment.
8831
8832 2012-03-13  Chris January  <chris.january@allinea.com>
8833
8834         * stabsread.c (fix_common_block): Change type of valu argument
8835         to CORE_ADDR.
8836
8837 2012-03-13  Chris January  <chris.january@allinea.com>
8838
8839         * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8840         instruction.
8841
8842 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8843
8844         * common/linux-procfs.c (linux_proc_get_int): New, from
8845         linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8846         field.
8847         (linux_proc_get_tgid): Only call linux_proc_get_int.
8848         (linux_proc_get_tracerpid): New.
8849         (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8850         (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8851         linux_proc_pid_has_state.
8852         * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8853         * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8854         (linux_ptrace_attach_warnings): New.
8855         * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8856         New declaration.
8857         * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8858         (linux_nat_attach): New variables ex, buffer, message and message_s.
8859         Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8860
8861 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8862
8863         * Makefile.in (linux-ptrace.o): New.
8864         * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8865         from linux-nat.c.
8866         * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8867         * common/linux-ptrace.c: New file.
8868         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8869         * config/arm/linux.mh: Likewise.
8870         * config/i386/linux.mh: Likewise.
8871         * config/i386/linux64.mh: Likewise.
8872         * config/ia64/linux.mh: Likewise.
8873         * config/m32r/linux.mh: Likewise.
8874         * config/m68k/linux.mh: Likewise.
8875         * config/mips/linux.mh: Likewise.
8876         * config/pa/linux.mh: Likewise.
8877         * config/powerpc/linux.mh: Likewise.
8878         * config/powerpc/ppc64-linux.mh: Likewise.
8879         * config/powerpc/spu-linux.mh: Likewise.
8880         * config/s390/s390.mh: Likewise.
8881         * config/sparc/linux.mh: Likewise.
8882         * config/sparc/linux64.mh: Likewise.
8883         * config/xtensa/linux.mh: Likewise.
8884         * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8885         common/linux-procfs.c.
8886         (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8887
8888 2012-03-13  Hui Zhu  <teawater@gmail.com>
8889             Pedro Alves  <palves@redhat.com>
8890
8891         * breakpoint.c (init_breakpoint_sal): New flags parameter.  Handle
8892         CREATE_BREAKPOINT_FLAGS_INSERTED.
8893         (create_breakpoint_sal, create_breakpoints_sal)
8894         (base_breakpoint_create_breakpoints_sal)
8895         (tracepoint_create_breakpoints_sal)
8896         (strace_marker_create_breakpoints_sal): New flags parameter.  Pass
8897         down.
8898         (break_command_1, handle_gnu_v3_exceptions, trace_command)
8899         (ftrace_command, strace_command): Adjust.
8900         (create_tracepoint_from_upload): Pass
8901         CREATE_BREAKPOINT_FLAGS_INSERTED.
8902         * breakpoint.h (enum breakpoint_create_flags): New.
8903         (create_breakpoint): New flags parameter.
8904         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8905         * python/py-breakpoint.c (bppy_init): Adjust.
8906         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8907         * spu-tdep.c (spu_catch_start): Adjust.
8908
8909 2012-03-13  Pedro Alves  <palves@redhat.com>
8910             Hui Zhu  <teawater@gmail.com>
8911             Yao Qi  <yao@codesourcery.com>
8912
8913         * remote.c (struct remote_state): New field `starting_up'.
8914         (remote_start_remote): Set and clear it.
8915         (remote_can_download_tracepoint): If starting up, return false.
8916
8917 2012-03-13  Yao Qi  <yao@codesourcery.com>
8918
8919         * inferior.h (struct inferior): Remove fields any_syscall_count,
8920         syscalls_counts and total_syscalls_count.  Move them to new
8921         struct catch_syscall_inferior_data in breakpoint.c.
8922         * breakpoint.c: Call DEF_VEC_I(int).
8923         (struct catch_syscall_inferior_data): New.
8924         (get_catch_syscall_inferior_data): New.
8925         (catch_syscall_inferior_data_cleanup): New.
8926         (insert_catch_syscall): Update to access data in
8927         struct catch_syscall_inferior_data.
8928         (insert_catch_syscall): Likewise.
8929         (remove_catch_syscall): Likewise.
8930         (remove_catch_syscall): Likewise.
8931         (is_syscall_catchpoint_enabled): Likewise.
8932         (add_catch_command): Likewise.
8933         (_initialize_breakpoint): Register cleanup.
8934         * breakpoint.h: Removed DEF_VEC_I(int).
8935         * dwarf2loc.c: Call DEF_VEC_I(int).
8936         * mi/mi-main.c: Likewise.
8937
8938 2012-03-12  Mark Kettenis  <kettenis@gnu.org>
8939
8940         * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8941
8942 2012-03-12  Chris January  <chris.january@allinea.com>
8943
8944         * aix-thread.c (_initialize_aix_thread): Add prototype.
8945         * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8946         * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8947
8948 2012-03-12  Joel Brobecker  <brobecker@adacore.com>
8949
8950         * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8951         include of "amd64-nat.h".
8952
8953 2012-03-12  Tom Tromey  <tromey@redhat.com>
8954
8955         * buildsym.c (record_pending_block): Now static.
8956         * buildsym.h: (record_pending_block): Remove.
8957
8958 2012-03-12  Andreas Tobler  <andreast@fgznet.ch>
8959
8960         * amd64bsd-nat.c: Include amd64bsd-nat.h.
8961
8962 2012-03-09  Tom Tromey  <tromey@redhat.com>
8963
8964         * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8965         producer_is_gxx_lt_4_6>: New fields.
8966         (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8967
8968 2012-03-09  Tom Tromey  <tromey@redhat.com>
8969
8970         * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8971
8972 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8973
8974         * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8975         prototype.
8976
8977 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8978
8979         * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8980
8981 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8982
8983         Fix -Wmissing-prototypes build.
8984         * arm-linux-nat.c (get_thread_id): Make it static.
8985         * xtensa-linux-nat.c (get_thread_id): Likewise.
8986
8987 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8988
8989         * server.c (process_point_options): If a conditional expression
8990         is found, only print a message if remote_debug is nonzero.
8991
8992 2012-03-08  Luis Machado  <lgustavo@codesourcery.com>
8993
8994         * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8995         of internal error for unknown/unsupported types.
8996
8997 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8998
8999         Fix CU relative vs. absolute DIE offsets.
9000         * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9001         offset to offset_in_cu.
9002         * dwarf2read.c (process_enumeration_scope): Add CU offset to
9003         TYPE_OFFSET.
9004         (dwarf2_fetch_die_location_block): Rename parameter offset to
9005         offset_in_cu.  New variable offset, add CU offset to OFFSET_IN_CU.
9006
9007 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
9008
9009         * libunwind-frame.c: Rename to ...
9010         * ia64-libunwind-tdep.c: ... here.
9011         * libunwind-frame.h: Rename to ...
9012         * ia64-libunwind-tdep.h: ... here.
9013         * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9014         ia64-libunwind-tdep.h.
9015         (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9016         * README (--with-libunwind): Rename to ...
9017         (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9018         * config.in: Regenerate.
9019         * configure: Regenerate.
9020         * configure.ac: New option --with-libunwind-ia64, make the
9021         AS_HELP_STRING ia64 specific.  Deprecate option --with-libunwind.
9022         Remove AC_DEFINE for HAVE_LIBUNWIND.
9023         * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9024         Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9025         Rename libunwind-frame in the general comment.
9026         * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9027         Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9028         Move forward declarations inside #ifndef.  Rename libunwind-frame in
9029         the general comment.
9030         * ia64-tdep.c: Rename libunwind-frame.h #include to
9031         ia64-libunwind-tdep.h.
9032         (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9033         (ia64_libunwind_descr): Rename libunwind-frame to
9034         ia64-libunwind-tdep in these function comments.
9035         * ia64-tdep.h: Rename libunwind-frame.h #include to
9036         ia64-libunwind-tdep.h.
9037         * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9038         ia64-libunwind-tdep in that data comment.
9039
9040 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
9041
9042         * libunwind-frame.h (struct frame_unwind): New declaration.
9043
9044 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
9045
9046         * breakpoint.c (_initialize_breakpoint): Fix error in help of
9047         "set breakpoint condition-evaluation" command.
9048
9049 2012-03-08  Tristan Gingold  <gingold@adacore.com>
9050
9051         * sparc-stub.c: Move to stubs/
9052         * sh-stub.c: Likewise.
9053         * m68k-stub.c: Likewise.
9054         * m32r-stub.c: Likewise.
9055         * i386-stub.c: Likewise.
9056
9057 2012-03-08  Andreas Schwab  <schwab@linux-m68k.org>
9058
9059         * m68klinux-tdep.c (m68k_linux_init_abi): Register
9060         linux_get_siginfo_type.
9061
9062         * m68klinux-nat.c: Include "gdb_proc_service.h".
9063         (PTRACE_GET_THREAD_AREA): Define.
9064         (ps_get_thread_area): New function.
9065
9066 2012-03-08  Yao Qi  <yao@codesourcery.com>
9067
9068         * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9069         `xsnprintf'.
9070         (remote_query_attached): Likewise.
9071         (remote_static_tracepoint_marker_at): Likewise.
9072         (remote_set_permissions): Likewise.
9073         (remote_detach_1, extended_remote_attach_1): Likewise.
9074         (send_g_packet, remote_vkill): Likewise.
9075         (extended_remote_disable_randomization): Likewise.
9076         (remote_add_target_side_condition): Likewise.
9077         (remote_insert_breakpoint): Likewise.
9078         (remote_remove_breakpoint): Likewise.
9079         (remote_insert_watchpoint): Likewise.
9080         (remote_remove_watchpoint): Likewise.
9081         (remote_insert_hw_breakpoint): Likewise.
9082         (remote_insert_hw_breakpoint): Likewise.
9083         (remote_remove_hw_breakpoint): Likewise.
9084         (remote_download_command_source): Likewise.
9085         (remote_download_tracepoint): Likewise.
9086         (remote_download_trace_state_variable): Likewise.
9087         (remote_disable_tracepoint): Likewise.
9088         (remote_trace_set_readonly_regions): Likewise.
9089         (remote_get_tracepoint_status): Likewise.
9090         (remote_trace_find): Likewise.
9091         (remote_get_trace_state_variable_value): Likewise.
9092         (remote_set_disconnected_tracing): Likewise.
9093         (remote_set_circular_trace_buffer): Likewise.
9094         (remote_get_min_fast_tracepoint_insn_len): Likewise.
9095         (remote_use_agent): Likewise.
9096         (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9097         Update callers.
9098
9099 2012-03-07  Pedro Alves  <palves@redhat.com>
9100
9101         * NEWS: Mention QProgramSignals.
9102         * inferior.h (update_signals_program_target): Declare.
9103         * infrun.c: (update_signals_program_target): New.
9104         (handle_command): Update the target of the new program signals
9105         array changes.
9106         * remote.c (PACKET_QProgramSignals): New enum.
9107         (last_program_signals_packet): New global.
9108         (remote_program_signals): New.
9109         (remote_start_remote): Update the target with the program signals
9110         list.
9111         (remote_protocol_features): Add entry for QPassSignals.
9112         (remote_open_1): Free anc clear last_program_signals_packet.
9113         (init_remote_ops): Install remote_program_signals.
9114         * target.c (update_current_target): Adjust.
9115         (target_program_signals): New.
9116         * target.h (struct target_ops) <to_program_signals>: New field.
9117         (target_program_signals): Declare.
9118
9119 2012-03-07  Pedro Alves  <palves@redhat.com>
9120
9121         * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9122         extensions.
9123
9124 2012-03-07  Andreas Schwab  <schwab@linux-m68k.org>
9125
9126         * m68klinux-nat.c (getregs_supplies): Make static.
9127         (getfpregs_supplies): Likewise.
9128         (have_ptrace_getregs): Likewise.
9129
9130 2012-03-06  Joel Brobecker  <brobecker@adacore.com>
9131
9132         * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9133         in call to get_die_type_at_offset.
9134
9135 2012-03-06  Stan Shebs  <stan@codesourcery.com>
9136
9137         * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9138         * mi/mi-cmd-disas.c: Ditto.
9139         * mi/mi-cmd-env.c: Ditto.
9140         * mi/mi-cmd-file.c: Ditto.
9141         * mi/mi-cmd-stack.c: Ditto.
9142         * mi/mi-cmd-target.c: Ditto.
9143         * mi/mi-cmd-var.c: Ditto.
9144         * mi/mi-cmds.c: Ditto.
9145         * mi/mi-cmds.h: Ditto.
9146         * mi/mi-console.c: Ditto.
9147         * mi/mi-getopt.c: Ditto.
9148         * mi/mi-getopt.h: Ditto.
9149         * mi/mi-interp.c: Ditto.
9150         * mi/mi-main.c: Ditto.
9151         * mi/mi-out.c: Ditto.
9152         * mi/mi-parse.c: Ditto.
9153         * mi/mi-parse.h: Ditto.
9154         * mi/mi-symbol-cmds.c: Ditto.
9155
9156         * mi/mi-getopt.h: Move mi_opt struct up.
9157         * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9158         return.
9159         * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9160
9161 2012-03-06  Tom Tromey  <tromey@redhat.com>
9162
9163         * proc-service.c (ps_pglobal_lookup): Set the current program
9164         space.
9165
9166 2012-03-06  Pedro Alves  <palves@redhat.com>
9167
9168         * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9169
9170 2012-03-05  Joel Brobecker  <brobecker@adacore.com>
9171
9172         * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9173
9174 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
9175
9176         Code cleanup.
9177         * common/linux-osdata.c (linux_common_core_of_thread): New function
9178         comment.
9179         * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9180         call by linux_common_core_of_thread.
9181         (linux_nat_core_of_thread_1): Remove.
9182         * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9183         * linux-thread-db.c: Include linux-osdata.h.
9184         (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9185         linux_common_core_of_thread.
9186
9187 2012-03-05  Tom Tromey  <tromey@redhat.com>
9188
9189         * value.c (value_primitive_field): Don't fetch contents for
9190         non-virtual bases.
9191
9192 2012-03-05  Tom Tromey  <tromey@redhat.com>
9193
9194         * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9195
9196 2012-03-05  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9197
9198         * s390-nat.c: Include "gregset.h".
9199
9200 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
9201
9202         * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9203         [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9204         (libunwind_load): New variable so_error, use it for dlerror.  Try to
9205         load also LIBUNWIND_SO_7.
9206
9207 2012-03-05  Pedro Alves  <palves@redhat.com>
9208
9209         * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9210         is not NULL, and remove resulting dead code.
9211
9212 2012-03-05  Thomas Schwinge  <thomas@codesourcery.com>
9213
9214         * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9215         prologue to sh_analyze_prologue.
9216         (sh_analyze_prologue): Make better use of such an upper limit, and
9217         generally be more cautious about accessing memory.
9218
9219 2012-03-05  Tom Tromey  <tromey@redhat.com>
9220
9221         * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9222         _initialize_ia64_hpux_tdep.
9223
9224 2012-03-05  Pedro Alves  <palves@redhat.com>
9225
9226         PR gdb/13766
9227
9228         * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9229         the register state is clear, supply explicit zero, instead of
9230         marking the register unavailable.
9231
9232 2012-03-05  Tristan Gingold  <gingold@adacore.com>
9233
9234         * NEWS: Mention OpenVMS ia64 new target.
9235
9236 2012-03-05  Tristan Gingold  <gingold@adacore.com>
9237
9238         * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9239         (ia64_unw_accessors, ia64_unw_rse_accessors)
9240         (ia64_libunwind_descr): Declare.
9241         * ia64-vms-tdep.c: New file.
9242         * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9243         (ia64_libunwind_descr): Make them public.
9244         * configure.tgt: Add ia64-*-*vms*.
9245         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9246         (ALLDEPFILES): Add ia64-vms-tdep.c
9247
9248 2012-03-05  Tristan Gingold  <gingold@adacore.com>
9249
9250         * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9251         * remote.c (PACKET_qXfer_uib): New enum value.
9252         (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9253         (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9254         (_initialize_remote): Call add_packet_config_cmd for
9255         xfer:uib packet.
9256
9257 2012-03-05  Tristan Gingold  <gingold@adacore.com>
9258
9259         * osabi.c (gdb_osabi_names): Add OpenVMS.
9260         (generic_elf_osabi_sniffer): Likewise.
9261         * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
9262
9263 2012-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
9264
9265         Removed unused code.
9266         * libunwind-frame.c (libunwind_frame_unwind)
9267         (libunwind_frame_base_address): Remove.
9268         * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9269
9270 2012-03-04  Yao Qi  <yao@codesourcery.com>
9271
9272         * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9273         remove trailing new line.
9274         (agent_run_command, agent_run_command): Add _ markup.
9275         (agent_capability_check): Likewise.
9276
9277 2012-03-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
9278
9279         * breakpoint.c (set_condition_evaluation_mode): Set
9280         CONDITION_EVALUATION_MODE unconditionally.
9281
9282 2012-03-03  Yao Qi  <yao@codesourcery.com>
9283
9284         * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9285         * common/agent.h: Update declaration.
9286         * inf-child.c (inf_child_use_agent): New.
9287         (inf_child_can_use_agent): New.
9288         (inf_child_target): Initialize fields `to_use_agent'
9289         and `to_can_use_agent'.
9290         * agent.c (agent_new_objfile): New.
9291         (_initialize_agent): Add agent_new_objfile to new_objfile
9292         observer.
9293
9294         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9295         New.
9296         (linux_target_install_ops): Initialize field
9297         `to_static_tracepoint_markers_by_strid'.
9298         * remote.c (free_current_marker): Move it to ...
9299         * tracepoint.c (free_current_marker): ... here.  New.
9300         (cleanup_target_stop): New.
9301         * tracepoint.h: Declare free_current_marker.
9302         * NEWS: Add one entry about `info static-tracepoint-marker'.
9303
9304 2012-03-03  Yao Qi  <yao@codesourcery.com>
9305
9306         * common/agent.c (agent_loaded_p): New.
9307         (agent_look_up_symbols): New global.
9308         * common/agent.h: Declare agent_loaded_p.
9309
9310 2012-03-03  Yao Qi  <yao@codesourcery.com>
9311
9312         * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9313         (agent_capability_check, agent_capability_invalidate): New.
9314         (symbol_list): New array element.
9315         * common/agent.h (enum agent_capa): New.
9316         * target.c (target_pre_inferior): Call agent_capability_invalidate.
9317
9318 2012-03-03  Yao Qi  <yao@codesourcery.com>
9319
9320         * target.h (struct target_ops) <to_use_agent>: New field.
9321         (struct target_ops) <to_can_use_agent>: New field.
9322         (target_use_agent, target_can_use_agent): New macro.
9323         * target.c (update_current_target): Update.
9324         * remote.c: New enum `PACKET_QAgent'.
9325         (remote_protocol_features): Add a new element.
9326         (remote_use_agent, remote_can_use_agent): New.
9327         (init_remote_ops): Initialize field `can_use_agent' with
9328         remote_can_use_agent.  Intiailize field `use_agent' with
9329         remote_use_agent.
9330         * common/agent.c (use_agent): New global.
9331         * common/agent.h: Declare it.
9332         * tracepoint.c (info_static_tracepoint_markers_command): Add
9333         comment.
9334         * Makefile.in (SFILES): Add common/agent.c and agent.c.
9335         (COMMON_OBS): Add common/agent.o and agent.o
9336         (common-agent.o): New rule.
9337         * agent.c: New.
9338
9339 2012-03-03  Yao Qi  <yao@codesourcery.com>
9340
9341         * common/agent.c: New.
9342         * common/agent.h: New.
9343         * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9344         AC_CHECK_HEADERS.
9345         * configure, configh.in: Regenerated.
9346
9347 2012-03-02  Kevin Buettner  <kevinb@redhat.com>
9348
9349         * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9350         unless it exists for this architecture.
9351
9352 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
9353
9354         * language.h (struct language_defn): New "method" la_read_var_value.
9355         * findvar.c: #include "language.h".
9356         (default_read_var_value): Renames read_var_value.  Rewrite
9357         function description.
9358         (read_var_value): New function.
9359         * value.h (default_read_var_value): Add prototype.
9360         * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
9361         New functions.
9362         (ada_language_defn): Add entry for la_read_var_value.
9363         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
9364         * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
9365         language_defn structures to add entry for new la_read_var_value
9366         field.
9367
9368 2012-03-02  Tom Tromey  <tromey@redhat.com>
9369             Pedro Alves  <palves@redhat.com>
9370
9371         PR breakpoints/13776:
9372         * breakpoint.c (breakpoint_init_inferior): Delete step-resume
9373         breakpoints.
9374         (delete_longjmp_breakpoint_at_next_stop): New.
9375         * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
9376         * target.c (generic_mourn_inferior): Call mark_breakpoints_out
9377         before deleting the inferior.  Add comments.
9378         * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
9379         breakpoints immediately, but only on next stop.  Move that code
9380         next to where we mark other breakpoints for deletion.
9381
9382 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
9383
9384         * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
9385         marker.
9386         * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
9387         violation.
9388
9389 2012-03-02  Pedro Alves  <palves@redhat.com>
9390
9391         * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
9392
9393 2012-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
9394
9395         Fix -Wmissing-prototypes build.
9396         * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
9397         * remote-sim.c (gdbsim_has_all_memory): Likewise.
9398         (gdbsim_has_memory): Likewise.
9399
9400 2012-03-02  Yao Qi  <yao@codesourcery.com>
9401
9402         Fix -Wmissing-prototypes build.
9403         * charset.c (phony_iconv_open): Make static.
9404         (phony_iconv_close, phony_iconv): Likewise.
9405         * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
9406         * i386-windows-nat.c (_initialize_i386_windows_nat): New
9407         prototype.
9408         * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
9409         * ser-mingw.c (create_select_thread): Make static.
9410         * windows-termcap.c (tgetent): New prototype.
9411         (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
9412
9413 2012-03-02  Zhang Yuanhui  <asmwarrior@gmail.com>
9414
9415         Fix -Wmissing-prototypes build.
9416         * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
9417         (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9418         (_initialize_loadable): New prototypes.
9419
9420 2012-03-02  Doug Evans  <dje@google.com>
9421
9422         * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9423         abbrev table, read_comp_unit will do it.
9424
9425 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
9426
9427         Fix -Wmissing-prototypes build.
9428         * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9429         * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9430         * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9431         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9432         (_initialize_arm_symbian_tdep): New prototype.
9433         * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9434         * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9435         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9436         static.
9437         * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9438         * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9439         prototype.
9440         * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9441         (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9442         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9443         static.
9444         * moxie-tdep.c (moxie_process_record): Likewise.
9445         * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9446         (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9447         * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9448         (_initialize_rl78_tdep): New prototype.
9449         * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9450         (_initialize_rx_tdep): New prototype.
9451         * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9452         (_initialize_darwin_solib): New prototype.
9453         * solib-spu.c: Include solib-spu.h.
9454         (_initialize_spu_solib): New prototype.
9455         * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9456         * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9457         (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9458         (tic6x_software_single_step): Make it static.
9459         (_initialize_tic6x_tdep): New prototype.
9460
9461 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
9462
9463         Fix -Wmissing-prototypes build.
9464         * cris-tdep.c (cris_can_use_hardware_watchpoint)
9465         (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9466
9467 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
9468
9469         Fix -Wmissing-prototypes build.
9470         * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9471         (frv_have_stopped_data_address): Remove.
9472
9473 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
9474
9475         Fix -Wmissing-prototypes build.
9476         * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9477         * sh-tdep.c: Include sh64-tdep.h.
9478         * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9479         * sh64-tdep.c: Include sh64-tdep.h.
9480         * sh64-tdep.h: New file.
9481
9482 2012-03-01  Maciej W. Rozycki <macro@codesourcery.com>
9483
9484         * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9485
9486 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
9487
9488         * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9489         sp_regnum once the gdbarch_init_osabi hook has been called.
9490
9491 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
9492
9493         * mips-tdep.c (mips32_bc1_pc): New function.
9494         (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9495         BPOSGE32 and BPOSGE64 instructions.
9496         (deal_with_atomic_sequence): Likewise.
9497         (mips32_instruction_has_delay_slot): Likewise.
9498
9499 2012-03-01  Maciej W. Rozycki  <macro@mips.com>
9500             Chris Dearman  <chris@mips.com>
9501             Maciej W. Rozycki  <macro@codesourcery.com>
9502             Joseph Myers  <joseph@codesourcery.com>
9503
9504         * features/mips-dsp.xml: New file.
9505         * features/mips64-dsp.xml: New file.
9506         * features/mips-dsp-linux.xml: New file.
9507         * features/mips64-dsp-linux.xml: New file.
9508         * features/Makefile (WHICH): Add mips-dsp-linux and
9509         mips64-dsp-linux.
9510         (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9511         * features/mips-dsp-linux.c: New file.
9512         * features/mips64-dsp-linux.c: New file.
9513         * regformats/mips-dsp-linux.dat: New file.
9514         * regformats/mips64-dsp-linux.dat: New file.
9515         * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9516         registers.
9517         (mips64_linux_register_addr): Likewise.
9518         (mips64_linux_regsets_fetch_registers): Likewise.
9519         (mips64_linux_regsets_store_registers): Likewise.
9520         (mips64_linux_fetch_registers): Update call to
9521         mips64_linux_regsets_fetch_registers.
9522         (mips64_linux_store_registers): Update call to
9523         mips64_linux_regsets_store_registers.
9524         (mips_linux_read_description): Probe for DSP registers.
9525         (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9526         and initialize_tdesc_mips64_dsp_linux.
9527         * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9528         Remove padding of no longer used embedded register slots.
9529         * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9530         (MIPS_RESTART_REGNUM): Redefine enum value.
9531         * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9532         strings.
9533         (mips_tx39_reg_names): Likewise.
9534         (mips_linux_reg_names): New array of register names for Linux
9535         targets.
9536         (mips_register_name): Check for a null pointer in
9537         mips_processor_reg_names and return an empty string.
9538         (mips_register_type): Exclude embedded registers for the IRIX
9539         and Linux ABIs.
9540         (mips_pseudo_register_type): Likewise.  Use dynamic numbers to
9541         refer to FP registers, LO, HI, BadVAddr, Cause and PC.  Handle
9542         DSP registers.
9543         (mips_stab_reg_to_regnum): Handle DSP accumulators.
9544         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9545         (mips_gdbarch_init): Likewise.  Initialize internal register
9546         indices for the Linux ABI.  Use dynamic numbers to refer to
9547         registers, as applicable, while parsing the target description.
9548         * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9549
9550 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9551
9552         * frame.h (read_frame_register_unsigned): Fix typo in function
9553         description.
9554
9555 2012-03-01  Pedro Alves  <palves@redhat.com>
9556
9557         * jit-reader.in [!__cplusplus]
9558         (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9559
9560 2012-03-01  Pedro Alves  <palves@redhat.com>
9561
9562         * configure.ac (build_warnings): Add -Wmissing-prototypes.
9563         * configure: Regenerate.
9564
9565 2012-03-01  Pedro Alves  <palves@redhat.com>
9566
9567         * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9568         * breakpoint.c (create_exception_master_breakpoint, trace_command)
9569         (ftrace_command, strace_command): Make static.
9570         * d-lang.c (_initialize_d_language): Declare.
9571         * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9572         * dwarf2loc.c (_initialize_dwarf2loc):
9573         * dwarf2read.c (process_psymtab_comp_unit): Make static.
9574         * exec.c (exec_get_section_table): Make static.
9575         * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9576         * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9577         * inferior.c (remove_inferior_command, add_inferior_command)
9578         (clone_inferior_command): Make static.
9579         * linux-nat.c (linux_nat_thread_address_space)
9580         (linux_nat_core_of_thread): Make static.
9581         * linux-tdep.c (_initialize_linux_tdep): Declare.
9582         * objc-lang.c (_initialize_objc_lang): Declare.
9583         * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9584         Make static.
9585         (_initialize_opencl_language): Declare.
9586         * record.c (_initialize_record): Declare.
9587         * remote.c (demand_private_info, remote_get_tib_address)
9588         (remote_supports_cond_tracepoints)
9589         (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9590         Make static.
9591         * skip.c (_initialize_step_skip): Declare.
9592         * symtab.c (skip_prologue_using_lineinfo): Make static.
9593         * tracepoint.c (delete_trace_state_variable)
9594         (trace_variable_command, delete_trace_variable_command)
9595         (get_uploaded_tsv, find_matching_tracepoint_location)
9596         (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9597         Make static.
9598         * value.c (pack_unsigned_long): Make static.
9599         * varobj.c (varobj_ensure_python_env): Make static.
9600         * windows-tdep.c (_initialize_windows_tdep): Declare.
9601         * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9602
9603 2012-03-01  Pedro Alves  <palves@redhat.com>
9604
9605         * linux-tdep.c (linux_has_shared_address_space): Make static.  Add
9606         gdbarch parameter.
9607         (linux_init_abi): Install it as has_shared_address_space gdbarch
9608         callback.
9609
9610 2012-03-01  Pedro Alves  <palves@redhat.com>
9611
9612         * observer.c (observer_test_first_notification_function)
9613         (observer_test_second_notification_function)
9614         (observer_test_third_notification_function): Add declarations.
9615
9616 2012-03-01  Pedro Alves  <palves@redhat.com>
9617
9618         * common/signals.c (default_target_signal_to_host)
9619         (default_target_signal_from_host): Move ...
9620         * arch-utils.c: ... here.
9621         * arch-utils.h (default_target_signal_to_host)
9622         (default_target_signal_from_host): Declare.
9623
9624         * common/signals.c (target_signal_from_command): Move ...
9625         * infrun.c: ... here.
9626         * inferior.h (target_signal_from_command): Declare.
9627         * target.h (target_signal_from_command)
9628         (default_target_signal_from_host, default_target_signal_to_host):
9629         Delete declarations.
9630
9631         * common/signals.c (_initialize_signals): Delete.
9632
9633 2012-03-01  Pedro Alves  <palves@redhat.com>
9634
9635         * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9636         both __cplusplus and !__cplusplus.
9637
9638 2012-03-01  Pedro Alves  <palves@redhat.com>
9639
9640         * psymtab.c (find_and_open_source): Delete declaration.
9641         * source.c (find_and_open_source): Move comment ...
9642         * source.h (find_and_open_source): ... to this new declaration.
9643
9644 2012-03-01  Pedro Alves  <palves@redhat.com>
9645
9646         * inline-frame.c: Include inline-frame.h.
9647
9648 2012-03-01  Pedro Alves  <palves@redhat.com>
9649
9650         * tui/tui-data.c (set_gen_win_origin): Delete.
9651         * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9652         * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9653
9654 2012-03-01  Pedro Alves  <palves@redhat.com>
9655
9656         * remote.c (encode_actions): Delete declaration.
9657         * tracepoint.c (encode_actions): Make extern.
9658         * tracepoint.h (encode_actions): Declare.
9659
9660 2012-03-01  Pedro Alves  <palves@redhat.com>
9661
9662         * python/py-breakpoint.c: Include python.h.
9663         * python/py-continueevent.c (create_continue_event_object): Make
9664         static.
9665         * python/py-lazy-string.c (stpy_get_type): Make static.
9666         * python/py-newobjfileevent.c (create_new_objfile_event_object):
9667         Make static.
9668         * python/py-utils.c (unicode_to_target_python_string): Make
9669         static.
9670         * python/py-value.c: Include python.h.
9671
9672 2012-03-01  Pedro Alves  <palves@redhat.com>
9673
9674         * inferior.c (delete_threads_of_inferior): Delete.
9675
9676 2012-03-01  Pedro Alves  <palves@redhat.com>
9677
9678         Import fallback definitions from glibc.
9679
9680         * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9681         ps_prochandle): Forward declare.
9682         (ps_err_e): Use glibc's comments.
9683         [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9684         (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9685         (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9686         (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9687         (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9688         (struct ps_prochandle): Adjust comment.
9689
9690 2012-03-01  Pedro Alves  <palves@redhat.com>
9691
9692         * ada-lang.c (ada_modulus_from_name): Delete.
9693         * ada-lex.l (lexer_init): Make static.
9694
9695 2012-03-01  Pedro Alves  <palves@redhat.com>
9696
9697         PR gdb/13767
9698
9699         * frame.c (read_frame_register_unsigned): New.
9700         * frame.h (read_frame_register_unsigned): Declare.
9701         * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9702         Handle it.
9703         (print_i387_control_word): New parameter `control_p'.  Handle it.
9704         (i387_print_float_info): Handle unavailable float registers.
9705
9706 2012-03-01  Keith Seitz  <keiths@redhat.com>
9707
9708         * linespec.c (decode_line_2): Sort the list of methods
9709         alphabetically before presenting the user with a selection
9710         menu.
9711
9712 2012-03-01  Doug Evans  <dje@google.com>
9713
9714         * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9715         has_namespace_info.
9716         (dwarf2_read_abbrevs): Remove corresponding initialization.
9717
9718 2012-03-01  Scott J. Goldman <scottjg@vmware.com>
9719
9720         * NEWS: Mention new python command class gdb.COMMAND_USER.
9721         * cli/cli-cmds.c (show_user): Print error when used on a python
9722         command.
9723         (init_cli_cmds): Update documentation strings for "show user" and
9724         "set/show max-user-call-depth" to clarify that it does not apply to
9725         python commands.
9726         * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9727         error check.
9728         (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9729         gdb python api.
9730         * top.c (execute_command): Only execute a user-defined command as a
9731         legacy macro if c->user_commands is set.
9732
9733 2012-03-01  Tom Tromey  <tromey@redhat.com>
9734
9735         * valprint.h (struct generic_val_print_decorations): New.
9736         (generic_val_print): Declare.
9737         * valprint.c (generic_val_print): New function.
9738         * p-valprint.c (p_decorations): New global.
9739         (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9740         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9741         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9742         TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9743         * m2-valprint.c (m2_decorations): New global.
9744         (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9745         TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9746         TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9747         TYPE_CODE_ERROR>: Call generic_val_print.
9748         * f-valprint.c (f_decorations): New global.
9749         (f_val_print): Use print_function_pointer_address.
9750         <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9751         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9752         TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9753         generic_val_print.
9754         * c-valprint.c (c_decorations): New global.
9755         (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9756         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9757         TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9758         TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9759         TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9760         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9761         case.
9762
9763 2012-03-01  Tom Tromey  <tromey@redhat.com>
9764
9765         * valprint.c (val_print): Update.
9766         * p-valprint (pascal_val_print): Return void.
9767         * p-lang.h (pascal_val_print): Return void.
9768         * m2-valprint.c (m2_val_print): Return void.
9769         * m2-lang.h (m2_val_print): Return void.
9770         * language.h (struct language_defn) <la_val_print>: Return void.
9771         * language.c (unk_lang_val_print): Return void.
9772         * jv-valprint.c (java_val_print): Return void.
9773         * jv-lang.h (java_val_print): Return void.
9774         * f-valprint.c (f_val_print): Return void.
9775         * f-lang.h (f_val_print): Return void.
9776         * d-valprint.c (d_val_print): Return void.
9777         (dynamic_array_type): Update.
9778         * d-lang.h (d_val_print): Return void.
9779         * c-valprint.c (c_val_print): Return void.
9780         * c-lang.h (c_val_print): Return void.
9781         * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9782         void.
9783         * ada-lang.h (ada_val_print): Return void.
9784
9785 2012-03-01  Tom Tromey  <tromey@redhat.com>
9786
9787         * value.h (val_print): Return void.
9788         * valprint.c (val_print): Return void.
9789
9790 2012-03-01  Tom Tromey  <tromey@redhat.com>
9791
9792         * value.h (common_val_print): Return void.
9793         * valprint.c (common_val_print): Return void.
9794
9795 2012-03-01  Tom Tromey  <tromey@redhat.com>
9796
9797         * value.h (value_print): Return void.
9798         * valprint.c (value_print): Return void.
9799         * p-valprint.c (pascal_value_print): Return void.
9800         * p-lang.h (pascal_value_print): Return void.
9801         * language.h (struct language_defn) <la_value_print>: Return
9802         void.
9803         * language.c (unk_lang_value_print): Return void.
9804         * jv-valprint.c (java_value_print): Return void.
9805         * jv-lang.h (java_value_print): Return void.
9806         * f-valprint.c (c_value_print): Don't declare.
9807         Include c-lang.h.
9808         * c-valprint.c (c_value_print): Return void.
9809         * c-lang.h (c_value_print): Return void.
9810         * ada-valprint.c (ada_value_print): Return void.
9811         * ada-lang.h (ada_value_print): Return void.
9812
9813 2012-03-01  Tom Tromey  <tromey@redhat.com>
9814
9815         * value.c (value_primitive_field): Handle virtual base classes.
9816
9817 2012-03-01  Tom Tromey  <tromey@redhat.com>
9818
9819         * gdbtypes.h (struct vbase): Remove.
9820
9821 2012-03-01  Tom Tromey  <tromey@redhat.com>
9822
9823         * c-valprint.c (print_function_pointer_address): Move...
9824         * valprint.c: ... here.  Make non-static.
9825         * m2-valprint.c (print_function_pointer_address): Remove.
9826         * valprint.h (print_function_pointer_address): Declare.
9827
9828 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9829
9830         * NEWS: Document the fact that one can provide a condition when
9831         creating an Ada exception catchpoint.
9832
9833 2012-03-01  Tom Tromey  <tromey@redhat.com>
9834
9835         * valprint.c (val_print_type_code_flags): Fix placement of
9836         trailing brace.
9837
9838 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9839
9840         * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9841         (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9842         environment variable before calling update-copyright.
9843
9844 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9845
9846         * gnulib/extra/update-copyright: Update to the latest from
9847         gnulib's git repository.
9848         * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9849         variable to 2 instead of 1.
9850
9851 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9852
9853         * varobj.c (c_value_of_variable): Remove dead code.
9854
9855 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9856
9857         * ada-lex.p (processId): Do not modify already encoded IDs.
9858         Update function documentation.
9859
9860 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9861
9862         * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9863         "name" with "struct symbol *name_sym".
9864         * ada-exp.y (write_var_or_type): Update call to
9865         ada_find_renaming_symbol.
9866         "name" with "struct symbol *name_sym". Adjust Implementation
9867         accordingly.  Adjust the function documentation.
9868
9869 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9870
9871         * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9872         * ada-lang.c (ada_find_any_type): Add advance declaration.
9873         Make static.  Replace ada_find_any_symbol by
9874         ada_find_any_type_symbol.
9875         (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9876         Improve function description.  Make static.
9877         (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9878         Replace ada_find_any_symbol by ada_find_any_type_symbol.
9879
9880 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9881
9882         * ada-lang.c (struct tag_args): Delete.
9883         (ada_get_tsd_type): Function body moved up in source file.
9884         (ada_tag_name_1, ada_tag_name_2): Delete.
9885         (ada_get_tsd_from_tag): New function.
9886         (ada_tag_name_from_tsd): New function.
9887         (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9888         to determine the tag name.
9889
9890 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9891
9892         * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9893         declaration.
9894         * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9895         function.
9896
9897 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9898
9899         * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9900
9901 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9902
9903         * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9904         full searches.
9905
9906 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9907
9908         * ada-lang.c (constrained_packed_array_type): If there is a
9909         parallel XA type, use it to determine the array index type.
9910
9911 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9912
9913         * ada-valprint.c (ada_val_print_1): If our value is a reference
9914         to an array descriptor, dereference it before converting it
9915         to a simple array.
9916
9917 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9918
9919         * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9920         creating fixed value.
9921         (ada_value_ind, ada_coerce_ref, assign_component)
9922         (ada_evaluate_subexp): Remove call to unwrap_value before
9923         call to ada_to_fixed_value.
9924
9925 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9926
9927         * ada-lang.c (to_fixed_array_type): Set result's type name.
9928
9929 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9930
9931         * ada-lang.c (catch_ada_exception_command_split): Add new
9932         argument cond_string.  Add support for condition at end of
9933         "catch exception" commands.
9934         (ada_decode_exception_location): Add new argument cond_string.
9935         Update call to catch_ada_exception_command_split.
9936         (create_ada_exception_catchpoint): Add new argument cond_string.
9937         Set the breakpoint condition if needed.
9938         (catch_ada_exception_command): Update call to
9939         ada_decode_exception_location.
9940         (ada_decode_assert_location): Add function documentation.
9941         Add support for condition at end of "catch assert" command.
9942         (catch_assert_command): Update calls to ada_decode_assert_location
9943         and create_ada_exception_catchpoint.
9944
9945 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9946
9947         Fix disp-step-syscall.exp: fork: single step over fork.
9948         * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9949         (i386_linux_get_syscall_number_from_regcache): ... here, new function
9950         comment, change parameters gdbarch and ptid to regcache.  Remove
9951         parameter regcache, initialize gdbarch from regcache here.
9952         (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9953         New functions.
9954         (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9955         instead.
9956         * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9957         'syscall'.  Make the 'int' check more strict.
9958
9959 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9960
9961         Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9962         * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9963         (i386_linux_intx80_sysenter_syscall_record): ... here.
9964         (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9965         Use the renamed function name.
9966
9967 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9968
9969         * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9970         * breakpoint.c (until_break_command): Likewise.
9971         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9972         * infcall.c (call_function_by_hand): Likewise.
9973         * infcmd.c (finish_forward): Likewise.
9974         * infrun.c (insert_exception_resume_breakpoint): Likewise.
9975
9976 2012-02-28  Tristan Gingold  <gingold@adacore.com>
9977
9978         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9979         avoid variable assignments inside condition.
9980
9981 2012-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9982
9983         Fix static analysis issue found by cppcheck.
9984         * microblaze-tdep.c (microblaze_extract_return_value): Fix
9985         uninitialized BUF for size 2.
9986
9987 2012-02-27  Chris Dearman  <chris@mips.com>
9988             Nathan Froyd  <froydnj@codesourcery.com>
9989             Maciej W. Rozycki  <macro@codesourcery.com>
9990
9991         * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9992         (mips16_instruction_has_delay_slot): Likewise.
9993         (mips_segment_boundary): Likewise.
9994         (mips_adjust_breakpoint_address): Likewise.
9995         (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9996
9997 2012-02-27  Maciej W. Rozycki  <macro@mips.com>
9998             Maciej W. Rozycki  <macro@codesourcery.com>
9999
10000         * infrun.c (handle_inferior_event): Don't proceed through
10001         shared library trampolines if stepping at the machine
10002         instruction level.
10003
10004 2012-02-27  Maciej W. Rozycki  <macro@codesourcery.com>
10005
10006         * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10007         too.
10008
10009 2012-02-27  Thomas Schwinge  <thomas@codesourcery.com>
10010
10011         * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10012         (sh_stub_unwind_sniffer): New functions.
10013         (sh_stub_unwind): New variable.
10014         (sh_gdbarch_init): Wire everything.
10015
10016 2012-02-27  Pedro Alves  <palves@redhat.com>
10017
10018         * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10019         (linux_nat_post_attach_wait): Adjust to use
10020         linux_proc_pid_is_stopped.
10021         * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10022         * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10023         based on pid_is_stopped from both linux-nat.c and
10024         gdbserver/linux-low.c, and renamed.
10025
10026 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
10027
10028         * remote.c (remote_watchpoint_addr_within_range): New function.
10029         (init_remote_ops): Use it.
10030
10031 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
10032
10033         * target.h (target_watchpoint_addr_within_range): Document macro.
10034
10035 2012-02-24  Pedro Alves  <palves@redhat.com>
10036
10037         * stack.c (set_last_displayed_sal): Issue internal_error instead
10038         of warning, and issue it after clearing the last displayed sal.
10039
10040 2012-02-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10041             Pedro Alves  <palves@redhat.com>
10042
10043         * breakpoint.c (until_break_command): Install breakpoints after
10044         all frame manipulations.
10045
10046 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
10047
10048         * remote.c (remote_supports_cond_breakpoints): New forward
10049         declaration.
10050         (remote_add_target_side_condition): New function.
10051         (remote_insert_breakpoint): Add target-side breakpoint
10052         conditional if supported.
10053         (remote_insert_hw_breakpoint): Likewise.
10054         (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10055         hook.
10056
10057         * target.c (update_current_target): Inherit
10058         to_supports_evaluation_of_breakpoint_conditions.
10059         Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10060
10061         * target.h (struct target_ops)
10062         <to_supports_evaluation_of_breakpoint_conditions>: New field.
10063         (target_supports_evaluation_of_breakpoint_conditions): New #define.
10064
10065         * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10066         (condition_evaluation_both, condition_evaluation_auto,
10067         condition_evaluation_host, condition_evaluation_target,
10068         condition_evaluation_enums, condition_evaluation_mode_1,
10069         condition_evaluation_mode): New static globals.
10070         (translate_condition_evaluation_mode): New function.
10071         (breakpoint_condition_evaluation_mode): New function.
10072         (gdb_evaluates_breakpoint_condition_p): New function.
10073         (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10074         (mark_breakpoint_modified): New function.
10075         (mark_breakpoint_location_modified): New function.
10076         (set_condition_evaluation_mode): New function.
10077         (show_condition_evaluation_mode): New function.
10078         (bp_location_compare_addrs): New function.
10079         (get_first_location_gte_addr): New helper function.
10080         (set_breakpoint_condition): Free condition bytecode if locations
10081         has become unconditional.  Call mark_breakpoint_modified (...).
10082         (condition_command): Call update_global_location_list (1) for
10083         breakpoints.
10084         (breakpoint_xfer_memory): Use is_breakpoint (...).
10085         (is_breakpoint): New function.
10086         (parse_cond_to_aexpr): New function.
10087         (build_target_condition_list): New function.
10088         (insert_bp_location): Handle target-side conditional
10089         breakpoints and call build_target_condition_list (...).
10090         (update_inserted_breakpoint_locations): New function.
10091         (insert_breakpoint_locations): Handle target-side conditional
10092         breakpoints.
10093         (bpstat_check_breakpoint_conditions): Add comment.
10094         (bp_condition_evaluator): New function.
10095         (bp_location_condition_evaluator): New function.
10096         (print_breakpoint_location): Print information on where the condition
10097         will be evaluated.
10098         (print_one_breakpoint_location): Likewise.
10099         (init_bp_location): Call mark_breakpoint_location_modified (...) for
10100         breakpoint location.
10101         (force_breakpoint_reinsertion): New functions.
10102         (update_global_location_list): Handle target-side breakpoint
10103         conditions.
10104         Reinsert locations that are already inserted if conditions have
10105         changed.
10106         (bp_location_dtor): Free agent expression bytecode.
10107         (disable_breakpoint): Call mark_breakpoint_modified (...).
10108         Call update_global_location_list (...) with parameter 1 for breakpoints.
10109         (disable_command): Call mark_breakpoint_location_modified (...).
10110         Call update_global_location_list (...) with parameter 1 for breakpoints.
10111         (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10112         (enable_command): mark_breakpoint_location_modified (...).
10113         (_initialize_breakpoint): Update documentation and add
10114         condition-evaluation breakpoint subcommand.
10115
10116         * breakpoint.h: Include ax.h.
10117         (condition_list): New data structure.
10118         (condition_status): New enum.
10119         (bp_target_info) <cond_list>: New field.
10120         (bp_location) <condition_changed, cond_bytecode>: New fields.
10121         (is_breakpoint): New prototype.
10122
10123 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
10124
10125         * remote.c (remote_state) <cond_breakpoints>: New field.
10126         (PACKET_ConditionalBreakpoints): New enum.
10127         (remote_cond_breakpoint_feature): New function.
10128         (remote_protocol_features): Add new ConditionalBreakpoints entry.
10129         (remote_supports_cond_breakpoints): New function.
10130         (_initialize_remote): Add new packet configuration for
10131         target-side conditional breakpoints.
10132
10133 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
10134
10135         * NEWS: Mention target-side conditional breakpoint support,
10136         new condition-evaluation breakpoint subcommand and remote
10137         packet extensions.
10138
10139 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
10140
10141         * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10142         number.
10143
10144 2012-02-24  Thomas Schwinge  <thomas@codesourcery.com>
10145
10146         * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10147         (after_prologue): Remove.
10148
10149 2012-02-23  Tom Tromey  <tromey@redhat.com>
10150
10151         * jv-valprint.c (java_val_print): Remove dead code.
10152
10153 2012-02-23  Tristan Gingold  <gingold@adacore.com>
10154
10155         * ada-tasks.c (struct ada_tasks_inferior_data): Add
10156         known_tasks_element and known_tasks_length fields.
10157         (read_known_tasks_array): Change argument type.  Use pointer type
10158         and number of elements from DATA.  Adjust.
10159         (read_known_tasks_list): Likewise.
10160         (get_known_tasks_addr): Remove.
10161         (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10162         (ada_tasks_inferior_data_sniffer): ... this.  Use symtab for element
10163         type and array length.  Merge former get_known_tasks_addr code.
10164
10165 2012-02-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
10166
10167         PR backtrace/13716
10168         * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10169         it after set_momentary_breakpoint.
10170
10171 2012-02-22  Sterling Augustine  <saugustine@google.com>
10172
10173         PR 13689:
10174         * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10175
10176 2012-02-22  Gary Benson  <gbenson@redhat.com>
10177
10178         * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10179         (find_slot_in_mapped_hash): Likewise.
10180
10181 2012-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
10182
10183         PR build/13638
10184         * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10185         (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10186         * configure: Regenerate.
10187
10188 2012-02-21  Tristan Gingold  <gingold@adacore.com>
10189             Pedro Alves  <palves@redhat.com>
10190
10191         * ia64-tdep.c: Do not include libunwind-ia64.h.
10192         * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10193         Include libunwind-ia64.h instead of libunwind.h.
10194         * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10195         for libunwind.h existence.
10196         * configure, config.in: Regenerate.
10197
10198 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
10199
10200         * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10201         instead of value_rtti_target_type.
10202         * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10203         instead of value_rtti_target_type.
10204         * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10205         value_rtti_target_type.
10206         * valops.c (value_ind): Extract function readjust_indirect_value_type.
10207         (value_rtti_target_type): Rename to ...
10208         (value_rtti_indirect_type): ... here and make it indirect.  Update
10209         function comment.
10210         * value.c (readjust_indirect_value_type): New function.
10211         (coerce_ref): Support for enclosing type setting for references
10212         with readjust_indirect_value_type.
10213         * value.h (readjust_value_type): New declaration.
10214         (value_rtti_target_type): Rename to ...
10215         (value_rtti_indirect_type): ... here.
10216
10217 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
10218
10219         * MAINTAINERS (Write After Approval): Add myself to the list.
10220
10221 2012-02-20  Doug Evans  <dje@google.com>
10222
10223         * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10224         Rename objfile_p_char parameter to objfilep.
10225         (build_objfile_section_table): Result is now void.  All callers
10226         updated.
10227         * objfiles.h (struct objfile): Tweak comments, whitespace.
10228         (build_objfile_section_table): Update.
10229
10230         * elfread.c (elf_symfile_segments): Fix warning text.
10231
10232 2012-02-20  Tom Tromey  <tromey@redhat.com>
10233
10234         PR gdb/13498:
10235         * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10236         particular set of file names once.
10237         (dw2_map_symbol_filenames): Likewise.
10238
10239 2012-02-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
10240
10241         Code cleanup.
10242         * main.c (write_files): Remove the declaration.
10243         (external_editor_command): Move the declaration ...
10244         [GDBTK] (external_editor_command): ... here.  Fix the comment.
10245
10246 2012-02-20  Tom Tromey  <tromey@redhat.com>
10247
10248         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10249         extraneous block.
10250
10251 2012-02-20  Tristan Gingold  <gingold@adacore.com>
10252
10253         * darwin-nat.h (enum darwin_msg_state): Add comments.
10254
10255 2012-02-20  Tristan Gingold  <gingold@adacore.com>
10256
10257         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10258         value.
10259
10260 2012-20-18  Joel Brobecker  <brobecker@adacore.com>
10261
10262         * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10263         between function description and implementation.
10264
10265 2012-02-17  Tom Tromey  <tromey@redhat.com>
10266
10267         PR python/12070:
10268         * python/py-event.c (event_object_getset): New global.
10269         (event_object_type): Reference it.
10270         * python/py-type.c (field_object_getset): New global.
10271         (field_object_type): Reference it.
10272         * python/python-internal.h (gdb_py_generic_dict): Declare.
10273         * python/py-utils.c (gdb_py_generic_dict): New function.
10274
10275 2012-02-17  Tristan Gingold  <gingold@adacore.com>
10276
10277         * solib-darwin.c (darwin_current_sos): Check magic and filetype
10278
10279 2012-02-17  Thomas Schwinge  <thomas@codesourcery.com>
10280
10281         * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10282         TYPE_CALLING_CONVENTION annotation.
10283
10284 2012-02-16  Kevin Buettner  <kevinb@redhat.com>
10285
10286         * MAINTAINERS: Add rx to target ISA section.
10287         * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10288         (ALLDEPFILES): Add rx-tdep.c.
10289
10290 2012-02-16  Tom Tromey  <tromey@redhat.com>
10291
10292         * symfile.c (symbol_file_add_main_1): Use inferior's
10293         symfile_flags.
10294         * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10295         * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10296         inferior.
10297         * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10298         inferior.
10299         (follow_exec): Use inferior's symfile_flags.
10300         * inferior.h (struct inferior) <symfile_flags>: New field.
10301
10302 2012-02-16  Mike Frysinger  <vapier@gentoo.org>
10303
10304         PR gdb/9734:
10305         * remote-sim.c (gdbsim_create_inferior): Call error() when
10306         sim_create_inferior() fails.
10307
10308 2012-02-16  Josh Matthews  <josh@joshmatthews.net>
10309
10310         * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10311
10312 2012-02-16  Tom Tromey  <tromey@redhat.com>
10313
10314         PR c++/13653:
10315         * thread.c (struct current_thread_cleanup) <was_removable>: New
10316         field.
10317         (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10318         (make_cleanup_restore_current_thread): Initialize new field.
10319
10320 2012-02-15  Kevin Buettner  <kevinb@redhat.com>
10321
10322         * MAINTAINERS: Add rl78 to target ISA section.
10323         * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10324         (ALLDEPFILES): Add rl78-tdep.c.
10325         * NEWS: Mention rl78 as a new target.
10326
10327 2012-02-15  Aleksandar Ristovski  <aristovski@qnx.com>
10328
10329         * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10330         data.
10331         * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10332
10333 2012-02-15  Tom Tromey  <tromey@redhat.com>
10334
10335         PR gdb/12659:
10336         * infcmd.c (registers_info): Print just the current register's
10337         name.
10338
10339 2012-02-15  Tom Tromey  <tromey@redhat.com>
10340
10341         * python/py-symbol.c (sympy_value): Use _().
10342
10343 2012-02-15  Pedro Alves  <palves@redhat.com>
10344
10345         * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10346         output to be like native targets'.
10347         (remote_pid_to_str): Special case the null ptid.
10348
10349 2012-02-14  Stan Shebs  <stan@codesourcery.com>
10350
10351         * NEWS: Mention enable count command.
10352         * breakpoint.h (struct breakpoint): New field enable_count.
10353         * breakpoint.c (enable_breakpoint_disp): Add count argument.
10354         (enable_breakpoint): Add arg to call.
10355         (struct disp_data): New struct.
10356         (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
10357         (do_map_enable_once_breakpoint): Create a struct and pass it.
10358         (do_map_enable_delete_breakpoint): Ditto.
10359         (do_map_enable_count_breakpoint): New function.
10360         (enable_count_command): New function.
10361         (bpstat_stop_status): Decrement enable_count.
10362         (print_one_breakpoint_location): Report enable count.
10363         (_initialize_breakpoint): Add enable count command.
10364
10365 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
10366
10367         * rl78-tdep.c (reggroups.h): Include.
10368         (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
10369         (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
10370         (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
10371         (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
10372         (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
10373         (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
10374         (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
10375         (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
10376         (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
10377         (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
10378         (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
10379         (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
10380         (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
10381         (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
10382         (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
10383         (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
10384         beginning of register list.
10385         (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
10386         (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
10387         (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
10388         (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
10389         (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
10390         (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
10391         (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
10392         (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
10393         (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
10394         (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
10395         (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
10396         the pseudo registers.  Rearrange other pseudo registers too so
10397         that the bank registers appear at the end.
10398         (rl78_register_type): Account for the fact that the byte sized
10399         bank registers are now pseudo-registers.
10400         (rl78_register_name): Rearrange the register name array.  Make
10401         initial set of raw banked registers inaccessible.
10402         (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
10403         (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
10404         case for copying bytes back and forth between raw and pseudo
10405         versions of the banked registers.  Update other cases to reflect
10406         the changed names.
10407         (rl78_return_value): Update to account for changed names of
10408         raw registers.
10409         (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
10410         rl78_register_sim_regno().
10411
10412 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
10413
10414         * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
10415         the name parameter being passed to find_pc_partial_function().
10416
10417 2012-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10418
10419         * MAINTAINERS: Step down from being ia64 target maintainer.
10420
10421 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
10422
10423         * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10424         compilation warning.
10425
10426 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
10427
10428         Fix crash on loaded shlibs without loaded exec_bfd.
10429         * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10430         (set_section_command): Replace exec_bfd by p->bfd.
10431
10432 2012-02-10  Tom Tromey  <tromey@redhat.com>
10433
10434         * linespec.c (decode_line_internal): Skip symtabs_from_filename
10435         when we have a C++ qualified name.
10436
10437 2012-02-10  Pedro Alves  <palves@redhat.com>
10438
10439         * inferior.c (inferior_pid_to_str): New.
10440         (print_inferior, inferior_command): Use it.
10441
10442 2012-02-10  Pedro Alves  <palves@redhat.com>
10443
10444         * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10445         the test CFLAGS.
10446         * configure: Regenerate.
10447
10448 2012-02-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10449
10450         * linespec.c (decode_line_internal): Fix comment correctness.
10451
10452 2012-02-09  Valery Khromov  <valery.khromov@gmail.com>
10453
10454         PR gdb/12953
10455         * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10456         * amd64bsd-nat.c: Add support for debug registers (adapted from
10457         i386bsd-nat.c).
10458         [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10459         (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10460         (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10461         (amd64bsd_dr_get_control): New functions.
10462         * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10463         * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10464         [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10465         watchpoints initialization.
10466         * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10467
10468 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
10469
10470         * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10471         flds_bnds.fields.
10472         (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10473
10474 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
10475
10476         * breakpoint.c (bp_location_compare): Fix comment.  Reindent the code.
10477
10478 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
10479
10480         * language.h (symbol_name_cmp_ftype): Renames
10481         symbol_name_match_p_ftype.
10482         (struct language_defn)[la_get_symbol_name_cmp]: Renames
10483         la_get_symbol_name_match_p.
10484         * ada-lang.c (ada_get_symbol_name_cmp): Renames
10485         ada_get_symbol_name_match_p.  Update comment.
10486         (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10487         * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10488         Renames symbol_name_match_p.  Update field type.
10489         (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10490         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10491         opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10492         "la_get_symbol_name_cmp" in comments.
10493         * language.c: Likewise.
10494
10495 2012-02-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10496
10497         * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10498         %eflags offset.
10499         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10500         (amd64_sol2_gregset32_reg_offs): Likewise.
10501
10502 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
10503
10504         * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10505         of the returned BFD is allocated by GDB.
10506
10507 2012-02-07  Tom Tromey  <tromey@redhat.com>
10508
10509         PR python/12027:
10510         * python/python-internal.h (frame_object_type): Declare.
10511         * python/py-symbol.c (sympy_needs_frame): New function.
10512         (sympy_value): New function.
10513         (symbol_object_getset): Add "needs_frame".
10514         (symbol_object_methods): Add "value".
10515         * python/py-frame.c (frame_object_type): No longer static.
10516
10517 2012-02-07  Tom Tromey  <tromey@redhat.com>
10518
10519         PR python/13599:
10520         * python/py-symbol.c (sympy_line): New function.
10521         (symbol_object_getset): Add "line".
10522
10523 2012-02-07  Tom Tromey  <tromey@redhat.com>
10524
10525         * charset.c (find_charset_names): Check 'in' against NULL.
10526
10527 2012-02-06  Doug Evans  <dje@google.com>
10528
10529         * gdbtypes.h (struct main_type): Change type of name,tag_name,
10530         and fields.name members from char * to const char *.  All uses updated.
10531         (struct cplus_struct_type): Change type of fn_fieldlists.name member
10532         from char * to const char *.  All uses updated.
10533         (type_name_no_tag): Update.
10534         (lookup_unsigned_typename, lookup_signed_typename): Update.
10535         * gdbtypes.c (type_name_no_tag): Change result type
10536         from char * to const char *.  All callers updated.
10537         (lookup_unsigned_typename, lookup_signed_typename): Change type of
10538         name parameter from char * to const char *.
10539         * symtab.h (struct cplus_specific): Change type of demangled_name
10540         member from char * to const char *.  All uses updated.
10541         (struct general_symbol_info): Change type of name and
10542         mangled_lang.demangled_name members from char * to const char *.
10543         All uses updated.
10544         (symbol_get_demangled_name, symbol_natural_name): Update.
10545         (symbol_demangled_name, symbol_search_name): Update.
10546         * symtab.c (symbol_get_demangled_name): Change result type
10547         from char * to const char *.  All callers updated.
10548         (symbol_natural_name, symbol_demangled_name): Ditto.
10549         (symbol_search_name): Ditto.
10550         (completion_list_add_name): Change type of symname,sym_text,
10551         text,word parameters from char * to const char *.
10552         (completion_list_objc_symbol): Change type of sym_text,
10553         text,word parameters from char * to const char *.
10554         * ada-lang.c (find_struct_field): Change type of name parameter
10555         from char * to const char *.
10556         (encoded_ordered_before): Similarly for N0,N1 parameters.
10557         (old_renaming_is_invisible): Similarly for function_name parameter.
10558         (ada_type_name): Change result type from char * to const char *.
10559         All callers updated.
10560         * ada-lang.h (ada_type_name): Update.
10561         * buildsym.c (hashname): Change type of name parameter
10562         from char * to const char *.
10563         * buildsym.h (hashname): Update.
10564         * dbxread.c (end_psymtab): Change type of include_list parameter
10565         from char ** to const char **.
10566         * dwarf2read.c (determine_prefix): Change result type
10567         from char * to const char *.  All callers updated.
10568         * f-lang.c (find_common_for_function): Change type of name, funcname
10569         parameters from char * to const char *.
10570         * f-lang.c (find_common_for_function): Update.
10571         * f-valprint.c (list_all_visible_commons): Change type of funcname
10572         parameters from char * to const char *.
10573         * gdbarch.sh (static_transform_name): Change type of name parameter
10574         and result from char * to const char *.
10575         * gdbarch.c: Regenerate.
10576         * gdbarch.h: Regenerate.
10577         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10578         of name parameter from char * to const char *.
10579         * jv-lang.c (java_primitive_type_from_name): Ditto.
10580         (java_demangled_signature_length): Similarly for signature parameter.
10581         (java_demangled_signature_copy): Ditto.
10582         (java_demangle_type_signature): Ditto.
10583         * jv-lang.h (java_primitive_type_from_name): Update.
10584         (java_demangle_type_signature): Update.
10585         * objc-lang.c (specialcmp): Change type of a,b parameters
10586         from char * to const char *.
10587         * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10588         from char * to const char *.  All callers updated.
10589         * p-lang.h (is_pascal_string_type): Update.
10590         * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10591         of name parameter from char * to const char *.
10592         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10593         * utils.c (fprintf_symbol_filtered): Ditto.
10594         * defs.h (fprintf_symbol_filtered): Update.
10595         * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10596         * stabsread.h (end_psymtab): Update.
10597         * stack.c (find_frame_funname): Change type of funname parameter
10598         from char ** to const char **.
10599         * stack.h (find_frame_funname): Update.
10600         * typeprint.c (type_print): Change type of varstring parameter
10601         from char * to const char *.
10602         * value.h (type_print): Update.
10603         * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10604         from char * to const char *.  All callers updated.
10605         (xcoff_end_psymtab): Change type of include_list parameter
10606         from char ** to const char **.  All callers updated.
10607         (swap_sym): Similarly for name parameter.  All callers updated.
10608         * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10609         Use xstrdup.
10610         (process_coff_symbol): Use xstrdup.
10611         * stabsread.c (stabs_method_name_from_physname): Renamed from
10612         update_method_name_from_physname.  Change result type from void
10613         to char *.  All callers updated.
10614         (read_member_functions): In has_destructor case, store name in objfile
10615         obstack instead of malloc space.  In !has_stub case, fix mem leak.
10616
10617 2012-02-06  Luca Pizzamiglio  <luca.pizzamiglio@gmail.com>
10618
10619         * configure: Rebuild.
10620         * configure.ac: Put -L../bfd and -L../libiberty at the front of
10621         LDFLAGS.
10622
10623 2012-02-03  Kevin Buettner  <kevinb@redhat.com>
10624
10625         * configure.tgt (rl78-*-elf): New target.
10626         * rl78-tdep.c: New file.
10627
10628 2012-02-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
10629
10630         * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10631         and continue the loop.  Add QUIT statement.
10632
10633 2012-02-03  Tom Tromey  <tromey@redhat.com>
10634
10635         PR gdb/13596:
10636         * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10637         bfd_lookup_symbol_from_symtab.
10638         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10639         gdb_bfd_lookup_symbol_from_symtab.
10640
10641 2012-02-03  Joel Brobecker  <brobecker@adacore.com>
10642
10643         * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10644         use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10645         symbol.  Add assertion that sym2 is never NULL.
10646
10647 2012-02-02  Doug Evans  <dje@google.com>
10648
10649         * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10650         "name" parameter to const char ** from char **.  All callers updated.
10651         (find_pc_partial_function): Ditto.
10652         (cache_pc_function_name): Change type to const char * from char *.
10653         * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10654         (find_pc_partial_function): Update.
10655         * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10656         type of "name" parameter to const char * from char *.
10657         All uses updated.
10658         * arch-utils.c (generic_in_solib_return_trampoline): Change
10659         type of "name" parameter to const char * from char *.
10660         * arch-utils.h (generic_in_solib_return_trampoline): Update.
10661         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10662         type of "name" parameter to const char * from char *.
10663         * gdbarch.sh (in_solib_return_trampoline): Ditto.
10664         * gdbarch.c: Regenerate.
10665         * gdbarch.h: Regenerate.
10666         * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10667         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10668         * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10669         type of "name" parameter to const char * from char *.
10670         * skip.c (skip_function_pc): Ditto.
10671         * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10672         * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10673         * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10674         * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10675         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10676         * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10677         * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10678         * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10679         * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10680
10681 2012-02-02  Pedro Alves  <palves@redhat.com>
10682
10683         * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10684         the current inferior has no execution.  Make sure the current
10685         remote process matches gdb's current inferior.
10686
10687 2012-02-02  Tom Tromey  <tromey@redhat.com>
10688
10689         PR gdb/13405:
10690         * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10691         read-only memory.
10692
10693 2012-02-02  Tom Tromey  <tromey@redhat.com>
10694
10695         PR gdb/9307:
10696         * symtab.c (lookup_language_this): Set block_found.
10697
10698 2012-02-01  Tom Tromey  <tromey@redhat.com>
10699
10700         PR gdb/13431:
10701         * jit.c (struct jit_inferior_data): Rewrite.
10702         (struct jit_objfile_data): New.
10703         (get_jit_objfile_data): New function.
10704         (add_objfile_entry): Update.
10705         (jit_read_descriptor): Return int.  Replace descriptor_addr
10706         argument with inf_data.  Update.  Don't call error.
10707         (jit_breakpoint_re_set_internal): Reorder logic.  Update.  Look up
10708         descriptor here.
10709         (jit_inferior_init): Don't look up descriptor.  Don't call error.
10710         (jit_reset_inferior_data_and_breakpoints)
10711         (jit_inferior_created_observer): Remove.
10712         (jit_inferior_exit_hook): Update.
10713         (jit_executable_changed_observer): Remove.
10714         (jit_event_handler): Update.
10715         (free_objfile_data): Reset inferior data if needed.
10716         (_initialize_jit): Update.
10717
10718 2012-02-01  Tom Tromey  <tromey@redhat.com>
10719
10720         * jit.c (bfd_open_from_target_memory): Move higher in file.
10721
10722 2012-02-01  Tristan Gingold  <gingold@adacore.com>
10723
10724         * libunwind-frame.c (libunwind_load): Display message if dlopen
10725         failed.
10726
10727 2012-02-01  Gary Benson  <gbenson@redhat.com>
10728
10729         * symtab.h (symbol_found_callback_ftype): New typedef.
10730         (iterate_over_symbols): Use the above.
10731         * symtab.c (iterate_over_symbols): Likewise.
10732         * language.h (language_defn->la_iterate_over_symbols): Likewise.
10733         * ada-lang.c (ada_iterate_over_symbols): Likewise.
10734         * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10735         (iterate_name_matcher): Document return values.
10736         (collect_one_symbol): Likewise.
10737         (collect_function_symbols): Likewise.
10738         (collect_symbols): Likewise.
10739
10740 2012-02-01  Tom Tromey  <tromey@redhat.com>
10741
10742         * ada-lang.c (resolve_subexp): Update.
10743         (ada_lookup_symbol_list): Add 'full_search' argument.
10744         (ada_iterate_over_symbols): Pass 0 as full_search argument to
10745         ada_lookup_symbol_list.
10746         (ada_lookup_encoded_symbol): Update.
10747         (get_var_value): Update.
10748         * ada-exp.y (block_lookup): Update.
10749         (write_var_or_type): Update.
10750         (write_name_assoc): Update.
10751         * ada-lang.h (ada_lookup_symbol_list): Update.
10752
10753 2012-01-31  Tom Tromey  <tromey@redhat.com>
10754
10755         * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10756         comment.
10757
10758 2012-01-31  Doug Evans  <dje@google.com>
10759
10760         * symtab.h: Remove outdated comment.
10761         (SYMBOL_MATCHES_NATURAL_NAME): Delete.
10762
10763 2012-02-01  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
10764
10765         Fix build error in Darwin port.
10766         * i386-darwin-nat.c: Include i386-nat.h.
10767
10768 2012-01-30  Tom Tromey  <tromey@redhat.com>
10769
10770         PR breakpoints/13568:
10771         * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10772         argument.  Check for recursive includes.
10773         (dwarf_decode_macros): Create an include hash.
10774
10775 2012-01-30  Michael Eager  <eager@eagercon.com>
10776
10777         * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10778         * ppc-linux-tdep.c: Include glibc-tdep.h.
10779         (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
10780         (powerpc_linux_in_plt_stub): New function.
10781         (powerpc_linux_in_dynsym_resolve_code): New function.
10782         (ppc_skip_trampoline_code): New function.
10783         (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10784         Use glibc_skip_solib_resolver.
10785
10786 2012-01-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
10787
10788         Code cleanup: Make 1440 bytes of data segment read-only.
10789         * arch-utils.c (endian_enum): Make it const char *const [].
10790         * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10791         Likewise.
10792         * breakpoint.c (always_inserted_enums): Likewise.
10793         * cli/cli-cmds.c (script_ext_enums): Likewise.
10794         * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10795         enumlist parameter const char *const *.
10796         * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10797         const char *const *.
10798         * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10799         parameter const char *const *.
10800         * cris-tdep.c (cris_modes): Make it const char *const [].
10801         * filesystem.c (target_file_system_kinds): Likewise.
10802         * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10803         * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10804         (can_use_displaced_stepping_enum, scheduler_enums)
10805         (exec_direction_names): Likewise.
10806         * language.c (_initialize_language): Make the type_or_range_names and
10807         case_sensitive_names variables const char *const [].
10808         * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10809         * python/python.c (python_excp_enums): Likewise.
10810         * remote.c (interrupt_sequence_modes): Likewise.
10811         * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10812         * serial.c (logbase_enums): Likewise.
10813         * sh-tdep.c (sh_cc_enum): Likewise.
10814         * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10815         Likewise.
10816         * symtab.c (multiple_symbols_modes): Likewise.
10817         * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10818         Likewise.
10819         * utils.c (internal_problem_modes): Likewise.
10820
10821 2012-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
10822
10823         Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10824         * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10825         result.
10826
10827 2012-01-27  Doug Evans  <dje@google.com>
10828
10829         * configure.ac (with_python): Fix absolute path handling for win32.
10830         * configure: Regenerate.
10831
10832 2012-01-26  Doug Evans  <dje@google.com>
10833
10834         * symtab.c: Whitespace cleanup, no code changes.
10835
10836         * symtab.c (lookup_symbol_in_language): Improve comment.
10837         (lookup_symbol_aux): Fix comment.
10838
10839         * psymtab.c (add_psymbol_to_list): Result is now "void".
10840         * psympriv.h (add_psymbol_to_list): Update.
10841
10842         * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10843
10844 2012-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10845
10846         Do not open script filenames twice.
10847         * cli/cli-cmds.c (source_script_from_stream): Pass to
10848         source_python_script also STREAM.
10849         * python/py-auto-load.c (source_section_scripts): Pass to
10850         source_python_script_for_objfile also STREAM.
10851         (auto_load_objfile_script): Pass to source_python_script_for_objfile
10852         also INPUT.
10853         * python/python-internal.h (source_python_script_for_objfile): New
10854         parameter file, rename parameter file to filename.
10855         * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10856         instead if !_WIN32.  Update the function comment.
10857         (source_python_script, source_python_script_for_objfile)
10858         (source_python_script): New parameter file, rename parameter file to
10859         filename.  Pass FILENAME to python_run_simple_file.
10860         * python/python.h (source_python_script): New parameter file, rename
10861         parameter file to filename.
10862
10863 2012-01-26  Pedro Alves  <palves@redhat.com>
10864
10865         * corelow.c (core_has_fake_pid): Delete.
10866         (core_close): Delete references to `core_has_fake_pid'.
10867         (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10868         (core_open): Delete references to `core_has_fake_pid'.
10869         (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10870         the removed global.
10871
10872 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
10873
10874         * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10875         Remove language parameter from name_matcher.  Adjust the comment.
10876         * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10877         Remove language parameter.
10878         * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10879         * linespec.c (iterate_name_matcher): Likewise.
10880         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10881         name_matcher.  Adjust call accordingly.
10882         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10883         (maintenance_check_symtabs): Adjust type of parameter "fun".
10884         * psymtab.h (maintenance_check_symtabs): Likewise.
10885
10886 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
10887
10888         * language.h (symbol_name_match_p_ftype): New typedef.
10889         (struct language_defn): Replace field la_symbol_name_compare
10890         by la_get_symbol_name_match_p.
10891         * ada-lang.c (ada_get_symbol_name_match_p): New function.
10892         (ada_language_defn): Use it.
10893         * linespec.c (struct symbol_matcher_data): New type.
10894         (iterate_name_matcher): Rewrite.
10895         (iterate_over_all_matching_symtabs): Pass a pointer to
10896         a symbol_matcher_data struct to expand_symtabs_matching
10897         instead of just the lookup name.
10898         * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10899         opencl-lang.c, p-lang.c, language.c: Delete field
10900         la_symbol_name_compare, and replace by NULL for new field
10901         la_get_symbol_name_match_p.
10902         * symfile.h (struct quick_symbol_functions): Update comment.
10903
10904 2012-01-25  Tom Tromey  <tromey@redhat.com>
10905
10906         * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10907         dereferencing.
10908
10909 2012-01-24  Tom Tromey  <tromey@redhat.com>
10910
10911         PR symtab/12406:
10912         * solib.c (update_solib_list): Update the program space's
10913         added_solibs and deleted_solibs fields.
10914         * progspace.h (struct program_space) <added_solibs,
10915         deleted_solibs>: New fields.
10916         (clear_program_space_solib_cache): Declare.
10917         * progspace.c (release_program_space): Call
10918         clear_program_space_solib_cache.
10919         (clear_program_space_solib_cache): New function.
10920         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10921         bpstat_stop_status.  Use handle_solib_event.
10922         * breakpoint.c: Include gdb_regex.h.
10923         (print_solib_event): New function.
10924         (bpstat_print): Use print_solib_event.
10925         (bpstat_stop_status): Add special case for bp_shlib_event.
10926         (handle_solib_event): New function.
10927         (bpstat_what): Use handle_solib_event.
10928         (struct solib_catchpoint): New.
10929         (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10930         (breakpoint_hit_catch_solib, check_status_catch_solib)
10931         (print_it_catch_solib, print_one_catch_solib)
10932         (print_mention_catch_solib, print_recreate_catch_solib): New
10933         functions.
10934         (catch_solib_breakpoint_ops): New global.
10935         (catch_load_or_unload, catch_load_command_1)
10936         (catch_unload_command_1): New functions.
10937         (internal_bkpt_check_status): Add special case for
10938         bp_shlib_event.
10939         (internal_bkpt_print_it): Use print_solib_event.
10940         (initialize_breakpoint_ops): Initialize
10941         catch_solib_breakpoint_ops.
10942         (_initialize_breakpoint): Register "catch load" and "catch
10943         unload".
10944         * breakpoint.h (handle_solib_event): Declare.
10945         * NEWS: Add entry for "catch load" and "catch unload".
10946
10947 2012-01-24  Tom Tromey  <tromey@redhat.com>
10948
10949         * ada-lang.c: Include gdb_vecs.h.
10950         * charset.c: Include gdb_vecs.h.
10951         * tracepoint.h: Include gdb_vecs.h.
10952         * gdb_vecs.h: New file.
10953
10954 2012-01-24  Pedro Alves  <pedro@codesourcery.com>
10955
10956         * breakpoint.c (breakpoint_hit_catch_fork)
10957         (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10958         (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10959         * infrun.c (inferior_has_forked, inferior_has_vforked)
10960         (inferior_has_execd, inferior_has_called_syscall): Delete.
10961         (handle_syscall_event): Get syscall_number from the execution
10962         control state's wait status.
10963         (wait_for_inferior): Don't clear syscall_number.
10964
10965 2012-01-24  Pedro Alves  <palves@redhat.com>
10966
10967         * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10968         pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10969         (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10970         (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10971         `ws' parameter.
10972         (breakpoint_hit_ranged_breakpoint): Add `ws' parameter.  Return
10973         false for events other than TARGET_SIGNAL_TRAP.
10974         (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10975         Add `ws' parameter.
10976         (bkpt_breakpoint_hit): Add `ws' parameter.  Return false for
10977         events other than TARGET_SIGNAL_TRAP.
10978         (tracepoint_breakpoint_hit): Add `ws' parameter.
10979         * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10980         parameter.
10981         (bpstat_stop_status): Same.
10982         (pc_at_non_inline_function): Same.
10983         * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10984         to pass the current event's waitstatus to bpstat_stop_status
10985         and pc_at_non_inline_function.
10986
10987 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10988
10989         Code cleanup.
10990         * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10991         Update the function comment for it.
10992         (source_script_with_search): Call make_cleanup_fclose for STREAM.
10993         * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10994         for STREAM.
10995
10996 2012-01-24  Pedro Alves  <palves@redhat.com>
10997
10998         * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10999         outside `bs->stop' block.
11000         (bpstat_what): Rework bp_shlib_event handling.
11001         (internal_bkpt_check_status): If the breakpoint is a
11002         bp_shlib_event, then set bs->stop and bs->print if
11003         stop_on_solib_events is set.
11004
11005 2012-01-24  Gary Benson  <gbenson@redhat.com>
11006
11007         Delete #if 0'd out code.
11008         * stack.c (print_frame_label_vars): Remove.
11009         (catch_info): Likewise.
11010         (_initialize_stack): Remove "info catch" command.
11011         * NEWS: Mention the above.
11012
11013 2012-01-24  Pedro Alves  <palves@redhat.com>
11014
11015         * remote.c (remote_add_inferior): New `fake_pid_p' parameter.  Use
11016         it.
11017         (remote_notice_new_inferior): If the remote end doesn't support
11018         the multiprocess extensions, then the PID is fake.
11019         (add_current_inferior_and_thread): New.
11020         (remote_start_remote): Use it.
11021         (extended_remote_attach_1): Adjust.
11022         (extended_remote_create_inferior_1): Use
11023         add_current_inferior_and_thread.
11024
11025 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
11026
11027         Fix watchpoints to be specific for each inferior.
11028         * breakpoint.c (watchpoint_in_thread_scope): Verify also
11029         current_program_space.
11030         * i386-nat.c (i386_inferior_data_cleanup): New.
11031         (i386_inferior_data_get): Replace variable inf_data_local by an
11032         inferior_data call.
11033         (i386_use_watchpoints): Initialize i386_inferior_data.
11034         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11035         specific iterate_over_lwps.
11036
11037 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
11038
11039         Fix watchpoints across inferior fork.
11040         * amd64-linux-nat.c (update_debug_registers_callback): Update the
11041         comment for linux_nat_iterate_watchpoint_lwps.
11042         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11043         linux_nat_iterate_watchpoint_lwps.
11044         (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11045         * i386-linux-nat.c (update_debug_registers_callback): Update the
11046         comment for linux_nat_iterate_watchpoint_lwps.
11047         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11048         linux_nat_iterate_watchpoint_lwps.
11049         (i386_linux_prepare_to_resume): New comment on Linux kernel.
11050         * i386-nat.c: Include inferior.h.
11051         (dr_mirror): Remove.
11052         (i386_inferior_data, struct i386_inferior_data)
11053         (i386_inferior_data_get): New.
11054         (i386_debug_reg_state): Use i386_inferior_data_get.
11055         (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11056         (i386_insert_watchpoint, i386_remove_watchpoint)
11057         (i386_stopped_data_address, i386_insert_hw_breakpoint)
11058         (i386_remove_hw_breakpoint): New variable state, use
11059         i386_debug_reg_state instead of DR_MIRROR.
11060         * linux-nat.c (delete_lwp): New declaration.
11061         (num_lwps): Move here from downwards.
11062         (delete_lwp_cleanup): New.
11063         (linux_child_follow_fork): Create new child_lp, call
11064         linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11065         PTRACE_DETACH.
11066         (num_lwps): Move upwards.
11067         (linux_nat_iterate_watchpoint_lwps): New.
11068         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11069         (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11070
11071 2012-01-24  Joel Brobecker  <brobecker@adacore.com>
11072
11073         GDB 7.4 released.
11074
11075 2012-01-23  Pedro Alves  <palves@redhat.com>
11076
11077         * top.c (caution): Rename to ...
11078         (confirm): ... this.
11079         (show_caution): Rename to ...
11080         (show_confirm): ... this.
11081         (quit_cover): Adjust.
11082         (init_main): Adjust.
11083         * top.h (caution): Rename to ...
11084         (confirm): ... this.
11085         * utils.c (internal_vproblem, defaulted_query): Adjust.
11086
11087 2012-01-23  Pedro Alves  <palves@redhat.com>
11088
11089         * top.c (caution): Update comment.
11090         (execute_command): Don't consider the current value of `caution'.
11091
11092 2012-01-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
11093
11094         * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11095
11096 2012-01-23  Ulrich Weigand  <ulrich.weigand@linaro.org>
11097
11098         * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11099         * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11100         * target.c (target_fileio_pwrite): Remove buffer address from
11101         debug output.
11102         (target_fileio_pread): Likewise.
11103
11104 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
11105
11106         * NEWS: Document remote "info proc" and "generate-core-file".
11107
11108 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
11109
11110         * gdbarch.sh (find_memory_regions): New callback.
11111         * gdbarch.c, gdbarch.h: Regenerate.
11112
11113         * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11114         callback before falling back to target method.
11115
11116         * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11117         (linux_target_install_ops): No longer install it.
11118
11119         * linux-tdep.c (linux_find_memory_regions): New function.
11120         (linux_init_abi): Install it.
11121
11122 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
11123
11124         * gdbarch.sh (make_corefile_notes): New architecture callback.
11125         * gdbarch.c: Regenerate.
11126         * gdbarch.h: Likewise.
11127
11128         * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11129         before target_make_corefile_notes.  If NULL is returned, the
11130         target does not support core file generation.
11131
11132         * linux-nat.c: Include "linux-tdep.h".
11133         (find_signalled_thread, find_stop_signal): Remove.
11134         (linux_nat_do_thread_registers): Likewise.
11135         (struct linux_nat_corefile_thread_data): Likewise.
11136         (linux_nat_corefile_thread_callback): Likewise.
11137         (iterate_over_spus): Likewise.
11138         (struct linux_spu_corefile_data): Likewise.
11139         (linux_spu_corefile_callback): Likewise.
11140         (linux_spu_make_corefile_notes): Likewise.
11141         (linux_nat_collect_thread_registers): New function.
11142         (linux_nat_make_corefile_notes): Replace contents by call to
11143         linux_make_corefile_notes passing linux_nat_collect_thread_registers
11144         as native-only callback.
11145
11146         * linux-tdep.h: Include "bfd.h".
11147         (struct regcache): Add forward declaration.
11148         (linux_collect_thread_registers_ftype): New typedef.
11149         (linux_make_corefile_notes): Add prototype.
11150         * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11151         "regset.h", and "elf-bfd.h".
11152         (find_signalled_thread, find_stop_signal): New functions.
11153         (linux_spu_make_corefile_notes): Likewise.
11154         (linux_collect_thread_registers): Likewise.
11155         (struct linux_corefile_thread_data): New data structure.
11156         (linux_corefile_thread_callback): New funcion.
11157         (linux_make_corefile_notes): Likewise.
11158         (linux_make_corefile_notes_1): Likewise.
11159         (linux_init_abi): Install it.
11160
11161 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
11162
11163         * gdbarch.sh (info_proc): New callback.
11164         * gdbarch.c, gdbarch.h: Regenerate.
11165
11166         * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11167         before falling back to the target info_proc callback.
11168
11169         * linux-nat.c: Do not include "cli/cli-utils.h".
11170         (linux_nat_info_proc): Remove.
11171         (linux_target_install_ops): No longer install it.
11172
11173         * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11174         (read_mapping): New function.
11175         (linux_info_proc): Likewise.
11176         (linux_init_abi): Install it.
11177
11178 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
11179
11180         * defs.h (enum info_proc_what): Moved here from linux-nat.c
11181         * infcmd.c: (info_proc_cmd_1): New function.
11182         (info_proc_cmd): New function, moved here from equivalent routine
11183         orignally in linux-nat.c.
11184         (info_proc_cmd_mappings): Likewise.
11185         (info_proc_cmd_stat): Likewise.
11186         (info_proc_cmd_status): Likewise.
11187         (info_proc_cmd_cwd): Likewise.
11188         (info_proc_cmd_cmdline): Likewise.
11189         (info_proc_cmd_exe): Likewise.
11190         (info_proc_cmd_all): Likewise.
11191         (_initialize_infcmd): Install "info proc" command and subcommands.
11192
11193         * target.h (struct target_ops): Add to_info_proc.
11194         (target_info_proc): Add prototype.
11195         * target.c (target_info_proc): New function.
11196
11197         * procfs.c (procfs_info_proc): Add prototype.
11198         (info_proc_cmd): Rename into ...
11199         (procfs_info_proc): ... this.  Update argument types as appropriate
11200         for a to_info_proc implementation.  Handle "what" argument.
11201         (procfs_target): Install procfs_info_proc.
11202         (_initialize_procfs): No longer install "info proc" command.
11203
11204         * linux-nat.c: (enum info_proc_what): Remove.
11205         (linux_nat_info_proc_cmd_1): Rename into ...
11206         (linux_nat_info_proc): ... this.  Update argument types as appropriate
11207         for a to_info_proc implementation.
11208         (linux_nat_info_proc_cmd): Remove.
11209         (linux_nat_info_proc_cmd_mappings): Likewise.
11210         (linux_nat_info_proc_cmd_stat): Likewise.
11211         (linux_nat_info_proc_cmd_status): Likewise.
11212         (linux_nat_info_proc_cmd_cwd): Likewise.
11213         (linux_nat_info_proc_cmd_cmdline): Likewise.
11214         (linux_nat_info_proc_cmd_exe): Likewise.
11215         (linux_nat_info_proc_cmd_all): Likewise.
11216         (linux_target_install_ops): Install linux_nat_info_proc.
11217         (_initialize_linux_nat): No longer install "info proc" command
11218         and subcommands.
11219
11220 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
11221
11222         * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11223         * config.in, configure: Regenerate.
11224
11225         * target.h (struct target_ops): Add to_fileio_readlink.
11226         (target_fileio_readlink): Add prototype.
11227         * target.c (target_fileio_readlink): New function.
11228
11229         * inf-child.c: Conditionally include <sys/param.h>.
11230         (inf_child_fileio_readlink): New function.
11231         (inf_child_target): Install it.
11232
11233         * remote.c (PACKET_vFile_readlink): New enum value.
11234         (remote_hostio_readlink): New function.
11235         (init_remote_ops): Install it.
11236         (_initialize_remote): Handle vFile:readlink packet type.
11237
11238 2012-01-20  Pedro Alves  <palves@redhat.com>
11239             Ulrich Weigand  <ulrich.weigand@linaro.org>
11240
11241         * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11242         * config.in, configure: Regenerate.
11243
11244         * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11245         to_fileio_pread, to_fileio_close, to_fileio_unlink.
11246         (target_fileio_open): Add prototype.
11247         (target_fileio_pwrite): Likewise.
11248         (target_fileio_pread): Likewise.
11249         (target_fileio_close): Likewise.
11250         (target_fileio_unlink): Likewise.
11251         (target_fileio_read_alloc): Likewise.
11252         (target_fileio_read_stralloc): Likewise.
11253
11254         * target.c: Include "gdb/fileio.h".
11255         (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11256         (default_fileio_target): New function.
11257         (target_fileio_open): Likewise.
11258         (target_fileio_pwrite): Likewise.
11259         (target_fileio_pread): Likewise.
11260         (target_fileio_close): Likewise.
11261         (target_fileio_unlink): Likewise.
11262         (target_fileio_close_cleanup): Likewise.
11263         (target_fileio_read_alloc_1): Likewise.
11264         (target_fileio_read_alloc): Likewise.
11265         (target_fileio_read_stralloc): Likewise.
11266
11267         * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11268         <fcntl.h>, and <unistd.h>.
11269         (inf_child_fileio_open_flags_to_host): New function.
11270         (inf_child_errno_to_fileio_error): Likewise.
11271         (inf_child_fileio_open): Likewise.
11272         (inf_child_fileio_pwrite): Likewise.
11273         (inf_child_fileio_pread): Likewise.
11274         (inf_child_fileio_close): Likewise.
11275         (inf_child_fileio_unlink): Likewise.
11276         (inf_child_target): Install to_fileio routines.
11277
11278         * remote.c (init_remote_ops): Install to_fileio routines.
11279
11280 2012-01-20  Pedro Alves  <palves@redhat.com>
11281             Ulrich Weigand  <ulrich.weigand@linaro.org>
11282
11283         * remote.c (remote_multi_process_p): Only check for multi-process
11284         protocol feature, do not check for extended protocol.
11285         (remote_supports_multi_process): Check for extended protocol here.
11286         (set_general_process): Likewise.
11287         (extended_remote_kill): Likewise.
11288         (remote_pid_to_str): Likewise.
11289         (remote_query_supported): Always query multiprocess mode.
11290
11291 2012-01-20  Pedro Alves  <palves@redhat.com>
11292             Ulrich Weigand  <ulrich.weigand@linaro.org>
11293
11294         * inferior.h (struct inferior): Add fake_pid_p.
11295         * inferior.c (exit_inferior_1): Clear fake_pid_p.
11296         * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11297         magic_null_ptid since the remote side doesn't provide a real PID.
11298
11299 2012-01-19  Tom Tromey  <tromey@redhat.com>
11300
11301         * NEWS: Combine the two Python sections.
11302
11303 2012-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
11304
11305         * target.h (target_close): Update comment on the target's unpush state.
11306
11307 2012-01-19  Pedro Alves  <palves@redhat.com>
11308
11309         * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11310         linux_nat_async directly instead of going through the target
11311         vector.
11312         * target.c (unpush_target): Close target after unpushing it, not
11313         before.
11314
11315 2012-01-19  Gary Benson  <gbenson@redhat.com>
11316
11317         * mdebugread.c (sort_blocks): Replace integer constants with ones
11318         derived from FIRST_LOCAL_BLOCK.
11319
11320 2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
11321             Jan Kratochvil  <jan.kratochvil@redhat.com>
11322
11323         PR gdb/9538
11324         * symfile.c (find_separate_debug_file): New function.
11325         (terminate_after_last_dir_separator): Likewise.
11326         (find_separate_debug_file_by_debuglink): Also try realpath.
11327         * configure.ac (AC_CHECK_FUNCS): Add lstat.
11328         * configure: Regenerate.
11329         * config.in: Regenerate.
11330
11331 2012-01-18  Doug Evans  <dje@google.com>
11332
11333         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11334         (main.o): Remove rule.
11335         * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11336         (--with-sysroot): Rewrite.
11337         * configure: Regenerate.
11338         * config.in: Regenerate.
11339
11340 2012-01-18  Sergio Durigan Junior  <sergiodj@redhat.com>
11341
11342         * parse.c (initialize_expout): New function.
11343         (reallocate_expout): Likewise.
11344         (parse_exp_in_context): Use `initialize_expout' and
11345         `reallocate_expout' when appropriate.
11346
11347 2012-01-18  Pedro Alves  <palves@redhat.com>
11348
11349         * record.c (struct record_breakpoint, record_breakpoint_p)
11350         (record_breakpoints): New.
11351         (record_insert_breakpoint, record_remove_breakpoint): Manage
11352         record breakpoints list.  Only remove breakpoints from the
11353         inferior if they had been inserted there in the first place.
11354
11355 2012-01-17  Doug Evans  <dje@google.com>
11356
11357         * linespec.c (decode_line_internal): Don't call symtabs_from_filename
11358         if we know we don't have a file name to look for.
11359
11360 2012-01-17  Pedro Alves  <palves@redhat.com>
11361
11362         * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
11363         the frame's stop reason is UNWIND_UNAVAILABLE.
11364
11365 2012-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
11366
11367         Fix compilation error.
11368         * m2-exp.y (yyerror): Use ANSI C prototype.
11369
11370 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
11371
11372         * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
11373         (growbuf_by_size): Likewise.
11374         (yyerror): Likewise.
11375         * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
11376         (modblock): Remove variable (was #if 0'ed).
11377         (parse_number): Convert prototype from K&R to ANSI C.
11378         (yyerror): Likewise.
11379         * objc-exp.y (parse_number): Likewise.
11380         (yyerror): Likewise.
11381         (yylex): Remove #if 0'ed code.
11382         * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
11383         (yyerror): Likewise.
11384
11385 2012-01-16  Tom Tromey  <tromey@redhat.com>
11386
11387         * NEWS: Add item.
11388         * symtab.h (compare_filenames_for_search): Declare.
11389         * symtab.c (compare_filenames_for_search): New function.
11390         (iterate_over_some_symtabs): Use it.
11391         * symfile.h (struct quick_symbol_functions)
11392         <map_symtabs_matching_filename>: Change spec.
11393         * psymtab.c (partial_map_symtabs_matching_filename): Use
11394         compare_filenames_for_search.  Update for new spec.
11395         * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
11396         compare_filenames_for_search.  Update for new spec.
11397         * breakpoint.c (clear_command): Use compare_filenames_for_search.
11398
11399 2012-01-16  Tom Tromey  <tromey@redhat.com>
11400
11401         PR python/13281:
11402         * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
11403         (struct main_type) <flag_flag_enum>: New field.
11404         * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
11405         * NEWS: Add entries.
11406         * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
11407         enums.
11408         * python/lib/gdb/printing.py (_EnumInstance): New class.
11409         (FlagEnumerationPrinter): Likewise.
11410
11411 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
11412
11413         * breakpoint.c (create_sals_from_address_default): New function.
11414         (create_breakpoints_sal_default): Likewise.
11415         (decode_linespec_default): Likewise.
11416         (is_marker_spec): Removed.
11417         (strace_marker_p): New function.
11418         (init_breakpoint_sal): Using `strace_marker_p' instead of
11419         `is_marker_spec'.
11420         (create_breakpoint): Call method `create_sals_from_address' from
11421         breakpoint_ops, replacing code that created SALs conditionally
11422         on the type of the breakpoint.  Call method `create_breakpoints_sal',
11423         replacing code that created breakpoints conditionally on the type
11424         wanted.
11425         (base_breakpoint_create_sals_from_address): New function.
11426         (base_breakpoint_create_breakpoints_sal): Likewise.
11427         (base_breakpoint_decode_linespec): Likewise.
11428         (base_breakpoint_ops): Add methods
11429         `base_breakpoint_create_sals_from_address',
11430         `base_breakpoint_create_breakpoints_sal' and
11431         `base_breakpoint_decode_linespec'.
11432         (bkpt_create_sals_from_address): New function.
11433         (bkpt_create_breakpoints_sal): Likewise.
11434         (bkpt_decode_linespec): Likewise.
11435         (tracepoint_create_sals_from_address): Likewise.
11436         (tracepoint_create_breakpoints_sal): Likewise.
11437         (tracepoint_decode_linespec): Likewise.
11438         (strace_marker_create_sals_from_address): Likewise.
11439         (strace_marker_create_breakpoints_sal): Likewise.
11440         (strace_marker_decode_linespec): Likewise.
11441         (strace_marker_breakpoint_ops): New variable.
11442         (addr_string_to_sals): Remove `marker_spec'.  Call method
11443         `decode_linespec' from breakpoint_ops, replacing code that decoded
11444         an address string into a SAL.  Use `strace_marker_p' instead of
11445         `marker_spec'.
11446         (strace_command): Decide whether we are dealing with a static
11447         tracepoint with marker or not.  Use the appropriate breakpoint_ops.
11448         (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11449         * breakpoint.h (linespec_result, linespec_sals): New forward
11450         declarations.
11451         (breakpoint_ops) <create_sals_from_address>,
11452         <create_breakpoints_sal>, <decode_linespec>: New methods.
11453
11454 2012-01-14  Doug Evans  <dje@google.com>
11455
11456         * NEWS: Update text for "maint set python print-stack".
11457         It is deprecated in gdb 7.4 and deleted in 7.5.
11458
11459 2012-01-13  Eli Zaretskii  <eliz@gnu.org>
11460
11461         * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11462         including curses.h.
11463
11464 2012-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
11465
11466         * configure: Regenerate.
11467         * config.in: Regenerate.
11468
11469 2012-01-12  Keith Seitz  <keiths@redhat.com>
11470
11471         PR mi/10586
11472         * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11473         (ANONYMOUS_UNION_NAME): Define.
11474         (is_path_expr_parent): New function.
11475         (get_path_expr_parent): New function.
11476         (is_anonymous_child): New function.
11477         (create_child_with_value): If the child is anonymous and without
11478         a name, assign an object name to it.
11479         (c_describe_child): Use get_path_expr_parent to determine
11480         the parent expression.
11481         If there field represents an anonymous struct or union and
11482         has no name, set an appropriate display name and expression.
11483         (cplus_describe_child): Likewise.
11484
11485 2012-01-12  Pedro Alves  <palves@redhat.com>
11486
11487         * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11488         available when %ebp is found to be zero (outermost).
11489
11490 2012-01-11  Andreas Tobler  <andreast@fgznet.ch>
11491
11492         * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11493         an internal gdb_static_assert.
11494         * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11495
11496 2012-01-11  Tom Tromey  <tromey@redhat.com>
11497
11498         PR gdb/9598:
11499         * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11500         catch" and "catch throw".
11501
11502 2012-01-11  Paul Hilfinger  <hilfingr@adacore.com>
11503
11504         * blockframe.c (block_innermost_frame): Start search from selected
11505         frame, if present, or otherwise the current frame.
11506
11507         * c-exp.y (variable): Update innermost_block for
11508         'block COLONCOLON NAME' clause.
11509         * m2-exp.y (variable): Ditto.
11510         * objc-exp.y (variable): Ditto.
11511
11512 2012-01-10  Tom Tromey  <tromey@redhat.com>
11513
11514         PR python/13199:
11515         * python/python.c (finish_python_initialization): Set sys.argv.
11516
11517 2012-01-10  Doug Evans  <dje@google.com>
11518
11519         * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd".  New arg
11520         "want_line_info".  All callers updated.
11521         (dwarf_decode_lines_1): New function.
11522         (handle_DW_AT_stmt_list): Add function comment.
11523         New arg "want_line_info".  All callers updated.
11524         (read_file_scope,read_type_unit_scope): Move comment from
11525         handle_DW_AT_stmt_list to here.
11526
11527 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
11528
11529         Fix regression after libiberty/ update for GCC PR 6057 and others.
11530         * c-exp.y (operator) <OPERATOR DELETE>
11531         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11532         * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11533         (make_builtin_type, make_name): New variable i, add gdb_assert.
11534         (operator) <OPERATOR NEW>: Update ARGS to 3.
11535         (operator) <OPERATOR DELETE>: Add trailing space.
11536         (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11537         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11538         * cp-support.c (cp_canonicalize_string): Check NULL from
11539         cp_comp_to_string, call warning and return.
11540
11541 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
11542
11543         Fix duplicate .o files after omitting libbfd.a.
11544         * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11545         (SFILES): Add corelow.c.
11546         (COMMON_OBS): Add corelow.o.
11547         (ALLDEPFILES): Remove corelow.c.
11548         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11549         * config/alpha/alpha-osf3.mh: Likewise.
11550         * config/alpha/fbsd.mh: Likewise.
11551         * config/arm/nbsdaout.mh: Likewise.
11552         * config/arm/nbsdelf.mh: Likewise.
11553         * config/i386/i386gnu.mh: Likewise.
11554         * config/ia64/hpux.mh: Likewise.
11555         * config/ia64/linux.mh: Likewise.
11556         * config/m32r/linux.mh: Likewise.
11557         * config/m68k/linux.mh: Likewise.
11558         * config/mips/irix5.mh: Likewise.
11559         * config/mips/irix6.mh: Likewise.
11560         * config/pa/hpux.mh: Likewise.
11561         * config/pa/linux.mh: Likewise.
11562         * config/powerpc/aix.mh: Likewise.
11563         * config/sparc/linux.mh: Likewise.
11564         * config/sparc/linux64.mh: Likewise.
11565         * config/sparc/sol2.mh: Likewise.
11566         * config/vax/vax.mh: Likewise.
11567         * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11568         (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11569         (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11570         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11571         (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11572         (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11573         (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11574         (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11575         (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11576         (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11577         (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11578         (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11579         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11580         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11581         (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11582         (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11583         (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11584         (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11585         (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11586         (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11587         (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11588         (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11589         corelow.o from gdb_target_obs.
11590         * corefile.c (core_target): Update the comment on NULL value.
11591         (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11592         * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11593         MATCHES.  Drop YUMMY set on NULL.
11594         (core_close): Do not call exit_inferior_silent on zero PID.  Do not
11595         reclaim CORE_DATA if it is already NULL.
11596
11597 2012-01-09  Doug Evans  <dje@google.com>
11598
11599         * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11600         * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11601
11602 2012-01-09  Keith Seitz  <keiths@redhat.com>
11603
11604         * breakpoint.c (wrapper.h): Don't include.
11605
11606 2012-01-09  Keith Seitz  <keiths@redhat.com>
11607
11608         * Makefile.in (SFILES): Remove wrapper.c.
11609         (HFILES_NO_SRCDIR): Remove wrapper.h.
11610         (COMMON_OBS): Remove wrapper.o.
11611         * cli/cli-interp.c: Don't inlude wrapper.h.
11612         * corelow.c: Likewise.
11613         (core_open): Replace gdb_target_find_new_threads with
11614         TRY_CATCH around target_find_new_threads.
11615         * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11616         * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11617         * varobj.c (varobj_create): Likewise for parse_exp_1 and
11618         evaluate_expression.
11619         (varobj_set_value): Likewise for evaluate_expression and
11620         value_assign.
11621         (install_new_variable): Likewise for value_fetch_lazy.
11622         (adjust_value_for_child_access): Likewise for value_ind.
11623         (c_describe_child): Likewise for value_subscript and
11624         value_ind.
11625         (c_value_of_root): Likewise for evaluate_expression.
11626         * wrapper.c: Remove.
11627         * wrapper.h: Remove.
11628
11629 2012-01-09  Doug Evans  <dje@google.com>
11630
11631         * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11632         partial_read_comp_unit_head.  Replace "buffer", "buffer_size" and
11633         "abfd" args with "section".  All callers updated.
11634         Error checking code moved ...
11635         (error_check_comp_unit_head): ... here.  New function.
11636         (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11637         Delete arg "abfd".  New arg "type_offset".  All callers updated.
11638         (create_debug_types_hash_table): Simplify by using
11639         read_and_check_type_unit_head.
11640
11641         * parser-defs.h (namecopy): Delete.
11642         * parse.c (namecopy, namecopy_size): Move into copy_name.
11643
11644 2012-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
11645
11646         Partially fix duplicate .o files after omitting libbfd.a.
11647         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11648         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11649         * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11650         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11651         * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11652         * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11653         * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11654
11655 2012-01-09  Pedro Alves  <palves@redhat.com>
11656
11657         * MAINTAINERS: Update my email address.
11658
11659 2012-01-08  Doug Evans  <dje@google.com>
11660
11661         * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11662         n_type_units.  Rename type_comp_units to all_type_units.
11663         All uses updated.
11664         (add_signatured_type_cu_to_table): Renamed from
11665         add_signatured_type_cu_to_list.  All callers updated.
11666
11667         * gdbtypes.h (struct cplus_struct_type): Delete member
11668         nfn_fields_total.  All uses removed.
11669
11670 2012-01-06  Doug Evans  <dje@google.com>
11671
11672         * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11673         to top of file.
11674         (dwarf2_find_comp_unit): Delete.
11675         (process_psymtab_comp_unit): Make result "void".
11676         Delete args buffer, info_ptr, buffer_size, and replace with
11677         "section".  All callers updated.
11678         (dwarf2_build_psymtabs_hard): Simplify.
11679
11680 2012-01-06  Sergio Durigan Junior  <sergiodj@redhat.com>
11681             Thiago Jung Bauermann  <bauerman@br.ibm.com>
11682
11683         * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11684         before `struct gdb_exception'.
11685         * breakpoint.c (update_global_location_list_nothrow)
11686         (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11687         * cp-abi.c (value_rtti_type): Likewise.
11688         * cp-support.c (cp_validate_operator): Likewise.
11689         * infrun.c (insert_exception_resume_breakpoint)
11690         (check_exception_resume, keep_going): Likewise.
11691         * mi-interp.c (mi_breakpoint_created)
11692         (mi_breakpoint_modified): Likewise.
11693         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11694         * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11695         (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11696
11697 2012-01-05  Doug Evans  <dje@google.com>
11698
11699         * dwarf2read.c (statement_prologue): Delete, unused.
11700
11701         * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11702         * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11703
11704         * dwarf2read.c (comp_unit_header): Delete, unused.
11705
11706 2012-01-05  Ulrich Weigand  <uweigand@de.ibm.com>
11707
11708         * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11709         * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11710
11711 2012-01-05  Khoo Yit Phang  <khooyp@cs.umd.edu>
11712
11713         * infrun.c (normal_stop): Don't skip calling the normal_stop
11714         observers if the thread was doing a multi-step, but stopped for
11715         some reason other than stepping.
11716
11717 2012-01-05  Pedro Alves  <alves.ped@gmail.com>
11718
11719         * cli/cli-decode.h: Add comments.
11720         (CMD_LIST_AMBIGUOUS): Moved to command.h
11721         (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11722         (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11723         (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11724         (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11725         (add_com, add_com_alias, add_info, add_info_alias)
11726         (complete_on_cmdlist, complete_on_enum, help_list): Remove
11727         declarations.
11728         * command.h: Add and adjust comments.
11729         (CMD_LIST_AMBIGUOUS): Moved here.
11730         (help_cmd, help_cmd_list): Delete declarations.
11731
11732 2012-01-04  Doug Evans  <dje@google.com>
11733
11734         * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11735         All callers updated.
11736         (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11737         Replace all arguments with "per_cu".  All callers updated.
11738
11739         * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11740
11741         * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11742         New arg "per_cu".  All callers updated.
11743
11744         Delete #if 0'd out code.
11745         * language.c (binop_result_type): Delete.
11746         (simple_type, ordered_type, same_type, integral_type): Delete.
11747         (numeric_type, character_type, string_type, boolean_type): Delete.
11748         (float_type, structured_type): Delete.
11749         * language.h: Update.
11750
11751 2012-01-04  Tom Tromey  <tromey@redhat.com>
11752
11753         * python/py-value.c (valpy_binop): Initialize 'res_val'.
11754
11755 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11756
11757         * corefile.c (close_exec_file): Delete.
11758         (reopen_exec_file): Remove commented out code that seems related
11759         to close_exec_file, which is being deleted here.
11760         * inferior.h (close_exec_file): Delete.
11761         * fork-child.c (fork_inferior): Remove call to fork_inferior.
11762
11763 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11764
11765         * ada-lang.c: #include "cli/cli-utils.h".
11766         (get_selections): Use skip_spaces.
11767         (ada_get_next_arg): Use skip_spaces and skip_to_space.
11768         (catch_ada_exception_command_split): Use skip_spaces.
11769         (ada_decode_assert_location): Likewise.
11770
11771 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11772
11773         * linespec.c (decode_line_internal): Check for C++ or Java
11774         compound constructs only if the current language is C, C++
11775         or Java.
11776
11777 2012-01-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
11778
11779         Revert:
11780         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11781                     Joel Brobecker  <brobecker@adacore.com>
11782         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11783         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11784         3 times.
11785         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11786         fall through into AT_ENTRY_POINT.
11787         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
11788         DUMMY_ADDR with it.
11789         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11790         PPC_INSN_SIZE skip to 3 times.
11791
11792 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11793
11794         * linespec.c (add_minsym): Preserve function descriptors.
11795
11796 2012-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
11797
11798         * breakpoint.c (all_locations_are_pending): Consider locations
11799         in program spaces executing during startup pending as well.
11800
11801 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11802
11803         Copyright year update in most files of the GDB Project.
11804
11805 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11806
11807         * copyright.sh: Delete.
11808         * copyright.py: Rewrite.
11809
11810 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11811
11812         * gnulib/extra/update-copyright: New file, imported from gnulib.
11813
11814 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11815
11816         * README (Copyright and License Notices): New section.
11817
11818 2012-01-03  Tom Tromey  <tromey@redhat.com>
11819
11820         PR python/12533:
11821         * python/py-value.c (valpy_dereference, valpy_get_address
11822         valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11823         (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11824         (valpy_absolute, valpy_richcompare): Free intermediate values.
11825
11826 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
11827
11828         * ada-lang.c: Reformat the copyright notice.
11829
11830 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11831
11832         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11833         * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11834         (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11835         (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11836         Revert this part of:
11837         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11838         Build gdb directly from *.o files not using libgdb.a.
11839         * Makefile.in (COMMON_OBS): Remove solib-target.o.
11840
11841 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11842
11843         * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11844         gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11845         Reformat the copyright header.
11846
11847 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11848
11849         Revert this part of:
11850         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11851         Remove the gdbtui binary.
11852         * gdb.c (main): Remove args.interpreter_p initialization.
11853         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11854         * main.h (struct captured_main_args): Remove interpreter_p.
11855
11856 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11857
11858         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11859
11860 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11861
11862         * top.c (print_gdb_version): Update copyright year.
11863
11864 2012-01-02  Yao Qi  <yao@codesourcery.com>
11865
11866         * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11867
11868 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11869             Joel Brobecker  <brobecker@adacore.com>
11870
11871         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11872         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11873         3 times.
11874         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11875         fall through into AT_ENTRY_POINT.
11876         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
11877         DUMMY_ADDR with it.
11878         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11879         PPC_INSN_SIZE skip to 3 times.
11880
11881 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11882
11883         * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11884         the return value.
11885         * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11886
11887 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11888
11889         Build gdb directly from *.o files not using libgdb.a.
11890         * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11891         (COMMON_OBS): Remove solib-target.o.
11892         (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11893         (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11894         (LIBGDB_OBS, libgdb.a): Move it above.
11895         * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11896         (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11897         (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11898         (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11899         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11900         (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11901         (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11902         (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11903         (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11904         (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11905         (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11906         (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11907         (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11908         (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11909         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11910         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11911         (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11912         (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11913         (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11914         (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11915         (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11916         (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11917         (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11918         (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11919         (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11920         (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11921         (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11922
11923 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11924
11925         Remove the gdbtui binary.
11926         * .gitignore (/gdbtui): Remove.
11927         * Makefile.in (TUI): Remove.
11928         (SUBDIR_TUI_OBS): Remove tui-main.o.
11929         (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11930         (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11931         (tui-main.o): Remove.
11932         (all_object_files): Remove tui-main.o.
11933         * NEWS: New note for the gdbtui removal.
11934         * configure: Rebuilt.
11935         * configure.ac: No longer add all-tui, clean-tui, install-tui and
11936         uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11937         CONFIG_UNINSTALL respectively.
11938         * gdb.c (main): Remove args.interpreter_p initialization.
11939         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11940         * main.h (struct captured_main_args): Remove interpreter_p.
11941         * tui/tui-main.c: Remove.
11942
11943 2012-01-01  Doug Evans  <dje@google.com>
11944
11945         * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11946         (dwarf2_physname, read_import_statement): Ditto.
11947         (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11948         (process_structure_scope read_subroutine_type): Ditto.
11949         (read_typedef, load_partial_dies, read_partial_die): Ditto.
11950         (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11951         (dwarf2_fetch_die_location_block): Ditto.
11952         (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11953
11954         * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11955         All callers updated.
11956         (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11957         (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11958         (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11959
11960         * dwarf2read.c (load_cu): Move assert to more useful location.
11961
11962         * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11963         All callers updated.
11964
11965         * dwarf2read.c (dwarf2_per_objfile): Add comment.
11966         (dwarf2_elf_names): Minor reformat.
11967         (dwarf2_per_cu_data): Tweak comment.
11968         (dwarf2_read_section): Fix comment.
11969         (create_all_comp_units): Fix comment.
11970         (load_full_comp_unit): Fix comment.
11971         (process_full_comp_unit): Fix comment.
11972         (read_signatured_type): Fix comment.
11973
11974 For older changes see ChangeLog-2011.
11975 \f
11976 Local Variables:
11977 mode: change-log
11978 left-margin: 8
11979 fill-column: 74
11980 version-control: never
11981 coding: utf-8
11982 End: