Added forgotton ChangeLog for previous fix i.e. breakpoint not set properly in case...
[external/binutils.git] / gdb / ChangeLog
1 2012-11-21  Karthik Bhat  <kv.bhat@samsung.com>
2
3         * i386-tdep.c (i386_skip_prologue): See if we
4         can determine the end of the prologue via the symbol table.
5         If so use the same instead of going through prologue instructions.
6
7 2012-11-21  Yao Qi  <yao@codesourcery.com>
8
9         PR tdep/7438
10         * gdbarch.sh (smash_text_address): Remove.
11         * gdbarch.c, gdbarch.h: Regenerate.
12         * arm-tdep.c (arm_smash_text_address): Remove.
13         (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
14         * hppa-tdep.c (hppa_smash_text_address): Remove.
15         (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
16         (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
17         Caller update.
18         * coffread.c (coff_symtab_read): Caller update.
19         * dbxread.c (process_one_symbol): Likewise.
20         * elfread.c (record_minimal_symbol): Likewise.
21         * somread.c (som_symtab_read): Likewise.
22
23 2012-11-20  Pierre Muller  <muller@sourceware.org>
24
25         ARI fixes: sprintf rule.
26         Replace sprintf function calls for char arrays by
27         calls to xsnprintf calls.
28         * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
29         (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
30         (arm_neon_quad_read, arm_pseudo_read): Ditto.
31         (arm_neon_quad_write, arm_pseudo_write): Ditto.
32         * breakpoint.c (condition_completer): Ditto.
33         (create_tracepoint_from_upload): Ditto.
34         * dwarf2read.c (file_full_name): Ditto.
35         * gcore.c (gcore_command): Ditto.
36         * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
37         * go32-nat.c (go32_sysinfo): Ditto.
38         * interps.c (interp_set): Ditto.
39         * m32c-tdep.c (make_types): Ditto.
40         * ppc-linux-nat.c (fetch_register, store_register): Ditto.
41         * remote-m32r-sdi.c (m32r_open): Ditto.
42         * sol-thread.c (td_err_string): Ditto.
43         (td_state_string, solaris_pid_to_str): Ditto.
44         * symtab.c (gdb_mangle_name): Ditto.
45         * cli/cli-script.c (execute_control_command): Ditto.
46         (define_command, document_command): Ditto.
47         * tui/tui-io.c (tui_rl_display_match_list): Ditto.
48         * tui/tui-stack.c (tui_make_status_line): Ditto.
49         * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
50
51 2012-11-20  Mike Frysinger  <vapier@gentoo.org>
52
53         * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
54         it when looking at ptr->func.
55         * command.h (complete_on_cmdlist): Add a fourth arg.
56         * completer.c (complete_line_internal): Add local ignore_help_classes,
57         and set it to 1 when reason is not handle_help.  Pass this down to
58         lookup_cmd_1 and complete_on_cmdlist.
59
60 2012-11-20  Tom Tromey  <tromey@redhat.com>
61
62         * completer.c (count_struct_fields): Remove.
63         (expression_completer): Don't call count_struct_fields.
64
65 2012-11-20  Pedro Alves  <palves@redhat.com>
66
67         * annotate.c (breakpoints_changed): Rename to ...
68         (annotate_breakpoints_changed): ... this.
69         (annotate_stopped, breakpoint_changed): Adjust caller.
70         * annotate.h (breakpoints_changed): Rename to ...
71         (annotate_breakpoints_changed): ... this.
72         * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
73         (do_map_commands_command, init_raw_breakpoint, clear_command)
74         (set_ignore_count, enable_breakpoint_disp): Adjust callers.
75
76 2012-11-20  David S. Miller  <davem@davemloft.net>
77
78         * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
79         (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
80         sysconf.
81         (get_cores_used_by_process): Update comment.
82
83 2012-11-20  Yao Qi  <yao@codesourcery.com>
84
85         * objfiles.c (init_entry_point_info): Remove trailing spaces.
86
87 2012-11-20  Yao Qi  <yao@codesourcery.com>
88
89         * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
90         to deprecated_context_hook.
91
92 2012-11-19  Yao Qi  <yao@codesourcery.com>
93
94         * infrun.c (infwait_state): Add static.
95
96 2012-11-16  Keith Seitz  <keiths@redhat.com>
97
98         PR c++/13615
99         * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
100         parameter and pass it to lookup_symbol_file.
101         (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
102         to search base classes.
103         (cp_lookup_symbol_namespace): Likewise.
104         (lookup_namespace_scope): Likewise.
105         (lookup_symbol_file): Add SEARCH parameter.
106         If SEARCH is non-zero and no symbol is found, lookup the class
107         and call cp_lookup_nested_symbol.
108         (find_symbol_in_baseclass): New function.
109         (cp_lookup_nested_symbol): Do not let
110         cp_lookup_symbol_in_namespace search through base classes.
111         Do that later when there is no global symbol match.
112
113 2012-11-16  Doug Evans  <dje@google.com>
114
115         * main.c (gdb_datadir_provided): New static global.
116         (get_init_files): If --data-directory is provided,
117         and SYSTEM_GDBINIT lives in data-directory, look for it there.
118         * NEWS: Mention it.
119
120 2012-11-15  Pierre Muller  <muller@sourceware.org>
121
122         ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
123         * gdb_stat.h: Delete. Moved to common directory.
124         * common/gdb_stat.h: New file.
125         * gdb_wait.h: Delete. Moved to common directory.
126         * common/gdb_wait.h: New file.
127         * Makefile.in (H_FILES_NO_SRC): Adapt to new header
128         location.
129         * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
130         location.
131         (stat.h rule): Adapt to new gdb_stat.h location.
132         * common/linux-osdata.c: Include "gdb_stat.h" header instead of
133         <sys/stat.h> header.
134         * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
135         <sys/wait.h> header.
136
137 2012-11-15  Pierre Muller  <muller@sourceware.org>
138
139         * configure.ac (AC_HEADER_STAT): Remove.
140         * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
141         and corresponding code.
142         * configure: Regenerate.
143         * config.in: Regenerate.
144
145 2012-11-15  Pierre Muller  <muller@sourceware.org>
146
147         ARI xasprintf rule fixes.
148         * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
149         instead of xasprintf.
150         (open_and_init_dwp_file): Ditto.
151
152 2012-11-14  Luis Machado  <lgustavo@codesourcery.com>
153
154         * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
155         target types.
156
157 2012-11-14  Tom Tromey  <tromey@redhat.com>
158
159         * configure, config.in: Rebuild.
160         * configure.ac: Don't check for ctype.h, time.h.
161         * expprint.c: Don't use HAVE_CTYPE_H.
162
163 2012-11-13  Tom Tromey  <tromey@redhat.com>
164
165         * gdbarch.h, gdbarch.c: Rebuild.
166         * gdbarch.sh (set_target_gdbarch): Rename from
167         deprecated_target_gdbarch_select_hack.
168         * arch-utils.c (gdbarch_update_p): Update.
169         (set_gdbarch_from_file): Update.
170
171 2012-11-14  Pierre Muller  <muller@sourceware.org>
172
173         * MAINTAINERS (Responsible Maintainers/misc): Add myself
174         as responsible of contrib/ari directory.
175
176 2012-11-14  Daniel Jacobowitz  <dan@codesourcery.com>
177             Yao Qi  <yao@codesourcery.com>
178
179         * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
180         bit of EXC_RETURN.
181         (arm_m_exception_cache, arm_m_exception_this_id)
182         (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
183         (arm_m_exception_unwind): New.
184         (arm_gdbarch_init): Register arm_m_exception_unwind.
185
186 2012-11-13  Giuseppe Montalto  <giuseppe.montalto@st.com>
187
188         * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
189         parameter COUNT, for pattern filling of memory regions.
190         * NEWS: Mention it.
191
192 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
193
194         * disasm.h (DISASSEMBLY_FILENAME): New macro.
195         * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
196         to print_source_lines ().
197         * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
198         flag.
199         * source.c (print_source_lines_base): Prefix source line with
200         filename if PRINT_SOURCE_LINES_FILENAME flag is set.
201
202 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
203
204         * symtab.h (print_source_lines_flags): New enum.
205         * source.c (print_source_lines_base): Change noerror to flags.
206         (print_source_lines): Change noerror to flags.
207
208 2012-11-13  Pierre Muller  <muller@sourceware.org>
209
210         ARI fixes: Avoid sprintf function use rule.
211         * charset.c (convert_between_encodings): Use xsnprintf.
212         * cli-out.c (cli_field_int): Likewise.
213         * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
214         * expprint.c (op_name_standard): Likewise.
215         * frv-tdep.c (set_variant_num_gprs): Likewise.
216         (set_variant_num_fprs): Likewise.
217         * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
218         * nto-tdep.c (nto_find_and_open_solib): Likewise.
219         (nto_init_solib_absolute_prefix): Likewise.
220         * source.c (init_source_path): Likewise.
221         (print_source_lines_base): Likewise.
222         * valprint.c (print_wchar): Likewise.
223         * mi/mi-out.c (mi_field_int): Likewise.
224         windows-nat.c (windows_pid_to_exec_file): Likewise.
225         (windows_create_inferior): Likewise.
226         (_initialize_check_for_gdb_ini): Likewise.
227
228 2012-11-12  Joel Brobecker  <brobecker@adacore.com>
229
230         * frame.h (deprecated_frame_register_read): Renames
231         frame_register_read.
232         * frame.c (deprecated_frame_register_read): Renames
233         frame_register_read.  Update all callers.
234         * i386-tdep.c: Update all callers of frame_register_read.
235         * infcmd.c: Likewise.
236         * jit.c: Likewise.
237         * mips-tdep.c: Likewise.
238         * mt-tdep.c: Likewise.
239         * sh64-tdep.c: Likewise.
240
241 2012-11-12  Joel Brobecker  <brobecker@adacore.com>
242
243         * frame.h (frame_register_read): Remove FIXME comment.
244         * frame.c (frame_register_read): Add suggestion explaining
245         which function to use in place of this one.
246
247 2012-11-12  Tom Tromey  <tromey@redhat.com>
248
249         * python/python.c (start_type_printers): Initialize 'result_obj'.
250
251 2012-11-12  Tom Tromey  <tromey@redhat.com>
252
253         * NEWS: Update.
254         * data-directory/Makefile.in (PYTHON_FILES): Add
255         type_printers.py.
256         * python/lib/gdb/command/type_printers.py: New file.
257         * python/lib/gdb/command/types.py (TypePrinter): New class.
258         (_get_some_type_recognizers, get_type_recognizers,
259         apply_type_recognizers, register_type_printer): New
260         functions.
261         * python/py-objfile.c (objfile_object) <type_printers>: New
262         field.
263         (objfpy_dealloc): Decref new field.
264         (objfpy_new): Set new field.
265         (objfpy_get_type_printers, objfpy_set_type_printers): New
266         functions.
267         (objfile_to_objfile_object): Set new field.
268         (objfile_getset): Add "type_printers".
269         * python/py-progspace.c (pspace_object) <type_printers>: New
270         field.
271         (pspy_dealloc): Decref new field.
272         (pspy_new): Set new field.
273         (pspy_get_type_printers, pspy_set_type_printers): New functions.
274         (pspace_to_pspace_object): Set new field.
275         (pspace_getset): Add "type_printers".
276         * python/python.c (start_type_printers, apply_type_printers,
277         free_type_printers): New functions.
278         (_initialize_python): Set gdb.type_printers.
279         * python/python.h (start_type_printers, apply_type_printers,
280         free_type_printers): Declare.
281         * typeprint.c (type_print_raw_options, default_ptype_flags):
282         Update for new fields.
283         (do_free_global_table, create_global_typedef_table,
284         find_global_typedef): New functions.
285         (find_typedef_in_hash): Use find_global_typedef.
286         (whatis_exp): Use create_global_typedef_table.  Change cleanup
287         handling.
288         * typeprint.h (struct type_print_options) <global_typedefs,
289         global_printers>: New fields.
290
291 2012-11-12  Tom Tromey  <tromey@redhat.com>
292
293         * c-typeprint.c (find_typedef_for_canonicalize,
294         print_name_maybe_canonical): New functions.
295         (c_print_type): Look up type name.
296         (cp_type_print_derivation_info): Add flags argument.  Use
297         print_name_maybe_canonical.
298         (cp_type_print_method_args): Add wrapping.
299         (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
300         (c_type_print_template_args): New function.
301         (c_type_print_base): Change wrapping.  Use
302         print_name_maybe_canonical.
303         <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
304         type name lookups.
305         * gdbtypes.c (types_equal): No longer static.
306         * gdbtypes.h (types_equal): Declare.
307         * typeprint.c (type_print_raw_options, default_ptype_flags):
308         Update.
309         (struct typedef_hash_table): New.
310         (hash_typedef_field, eq_typedef_field,
311         recursively_update_typedef_hash, add_template_parameters,
312         create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
313         make_cleanup_free_typedef_hash, copy_typedef_hash_element,
314         copy_typedef_hash, find_typedef_in_hash): New functions.
315         * typeprint.h (struct type_print_options) <local_typedefs>:
316         New field.
317         (recursively_update_typedef_hash, add_template_parameters,
318         create_typedef_hash, free_typedef_hash,
319         make_cleanup_free_typedef_hash, copy_typedef_hash,
320         find_typedef_in_hash): Declare.
321
322 2012-11-12  Tom Tromey  <tromey@redhat.com>
323
324         * cp-support.c (inspect_type,
325         replace_typedefs_qualified_name, replace_typedefs): Add
326         finder, data arguments.  Call as needed.
327         (cp_canonicalize_string_full): New function.
328         (cp_canonicalize_string_no_typedefs): Rewrite.
329         * cp-support.h (canonicalization_ftype): New typedef.
330         (cp_canonicalize_string_full): Declare.
331
332 2012-11-12  Tom Tromey  <tromey@redhat.com>
333
334         * NEWS: Update.
335         * c-typeprint.c (c_type_print_base): Handle print_method and
336         print_typedefs flags.
337         * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
338         * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
339         options.
340         * typeprint.c (type_print_raw_options, default_ptype_flags):
341         Update for new field.s
342         (whatis_exp): Parse flags.  Use LA_PRINT_TYPE.
343         (setprinttypelist, showprinttypelist, print_methods,
344         print_typedefs): New globals.
345         (set_print_type, show_print_type, set_print_type_methods,
346         show_print_type_methods, set_print_type_typedefs,
347         show_print_type_typedefs): New functions.
348         (_initialize_typeprint): Update documentation.  Add "print
349         type methods" and "print type typedefs" parameters.
350         * typeprint.h (struct type_print_options) <print_methods,
351         print_typedefs>: New fields.
352
353 2012-11-12  Tom Tromey  <tromey@redhat.com>
354
355         * c-typeprint.c (cp_type_print_method_args): Add flags
356         argument.  Call c_print_type, not type_print.
357         (c_type_print_base): Call c_print_type, not type_print.
358         Update.
359
360 2012-11-12  Tom Tromey  <tromey@redhat.com>
361
362         * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
363         to type-printing functions.
364         * ada-lang.h (ada_print_type): Add argument.
365         * ada-typeprint.c (print_array_type, print_variant_clauses,
366         print_variant_part, print_selected_record_field_types,
367         print_record_field_types, print_unchecked_union_type,
368         print_func_type, ada_print_type): Add flags argument.
369         (ada_print_typedef): Update.
370         * c-exp.y (OPERATOR conversion_type_id): Update.
371         * c-lang.h (c_print_type, c_type_print_base): Update.
372         * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
373         c_type_print_modifier, c_type_print_args,
374         c_type_print_varspec_suffix, c_type_print_base): Add flags
375         argument.
376         * cp-valprint.c (cp_print_class_member): Update.
377         * dwarf2read.c (dwarf2_compute_name): Update.
378         * f-lang.h (f_print_type): Add argument.
379         * f-typeprint.c (f_print_type): Add flags argument.
380         * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
381         * go-lang.h (go_print_type): Add argument.
382         * go-typeprint.c (go_print_type): Add flags argument.
383         * jv-lang.h (java_print_type): Add argument.
384         * jv-typeprint.c (java_type_print_base, java_print_type): Add
385         flags argument.
386         * language.c (unk_lang_print_type): Add flags argument.
387         * language.h (struct language_defn) <la_print_type>: Add flags
388         argument.
389         (LA_PRINT_TYPE): Likewise.
390         * m2-lang.h (m2_print_type): Add argument.
391         * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
392         m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
393         m2_unbounded_array, m2_record_fields): Add flags argument.
394         * p-lang.h (pascal_print_type, pascal_type_print_base,
395         pascal_type_print_varspec_prefix): Add argument.
396         * p-typeprint.c (pascal_print_type,
397         pascal_type_print_varspec_prefix, pascal_print_func_args,
398         pascal_type_print_varspec_suffix, pascal_type_print_base): Add
399         flags argument.
400         * symmisc.c (print_symbol): Update.
401         * typeprint.c (type_print_raw_options, default_ptype_flags):
402         New globals.
403         (type_print): Update.
404         * typeprint.h (struct type_print_options): New.
405         (type_print_raw_options): Declare.
406         (c_type_print_varspec_suffix, c_type_print_args): Add argument.
407
408 2012-11-10  Keith Seitz  <keiths@redhat.com>
409
410         * breakpoint.c (clear_command): Add cleanup for
411         sals.sals if an argument is given.
412
413         * linespec.c (parse_linespec): Do cleanups after
414         parsing a convenience variable.
415
416 2012-11-10  Keith Seitz  <keiths@redhat.com>
417
418         PR gdb/14288
419         * c-valprint.c (c_val_print): For character arrays
420         with "print null" option on, print ellipses if
421         the output is truncated and the next character is not \000.
422         * valprint.c (MAX_WCHARS): Define.
423         (WCHAR_BUFLEN): Likewise.
424         (WCHAR_BUFLEN_MAX): Likewise.
425         (struct converted_character): New structure.
426         (count_next_character): New function.
427         (print_converted_chars_to_obstack): New function.
428         (generic_printstr): Rewrite using count_next_character
429         and print_converted_chars_to_obstack.
430
431 2012-11-10  Stephane Carrez  <Stephane.Carrez@gmail.com>
432
433         * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
434         while executing the gdb command.
435         (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
436         are called from prompt_for_continue.
437         * tui/tui-io.c (tui_redisplay_readline): Likewise.
438
439 2012-11-10  Stephane Carrez  <Stephane.Carrez@gmail.com>
440
441         PR tui/9584
442
443         * tui/tui.c (tui_rl_command_key): Do not call execute_command
444         but insert the command to execute in readline's buffer.
445
446 2012-11-09  Tom Tromey  <tromey@redhat.com>
447
448         * gdbarch.sh (target_gdbarch): Remove macro.
449         (get_target_gdbarch): Rename to target_gdbarch.
450         * gdbarch.c, gdbarch.h: Rebuild.
451         * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
452         arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
453         darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
454         filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
455         ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
456         linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
457         mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
458         mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
459         nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
460         procfs.c, progspace.c, ravenscar-thread.c, record.c,
461         remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
462         rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
463         solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
464         solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
465         solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
466         spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
467         target-descriptions.c, target.c, target.h, tracepoint.c,
468         windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
469         common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
470         python/py-inferior.c, python/python.c: Update.
471
472 2012-11-09  Andrew Burgess  <aburgess@broadcom.com>
473
474         * source.c (print_source_lines_base): Add fullname field giving
475         full path to file in mi output.
476         * NEWS: Mention the new fullname field.
477
478 2012-11-09  Yao Qi  <yao@codesourcery.com>
479
480         * NEWS: Mention the fix to the ambiguity of 'fo' command.
481
482 2012-11-09  Pedro Alves  <palves@redhat.com>
483
484         PR gdb/14306
485
486         * infrun.c: Include target-descriptions.h.
487         (follow_exec): Fetch new target description.
488
489 2012-11-09  Yao Qi  <yao@codesourcery.com>
490
491         * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
492         0x8d (lea).
493
494 2012-11-09  Yao Qi  <yao@codesourcery.com>
495
496         * breakpoint.c: Declare set_tracepoint_count.
497         (install_breakpoint): Call set_tracepoint_count if B is a
498         tracepoint.
499         (trace_command): Don't call set_tracepoint_count.  Re-indent.
500         (strace_command, ftrace_command):
501         (create_tracepoint_from_upload): Likewise.
502
503 2012-11-09  Pedro Alves  <palves@redhat.com>
504
505         * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
506         (get_target_gdbarch) <gdbarch.h>: New function.
507         (startup_gdbarch) <gdbarch.h>: Declare.
508         <gdbarch.c> (target_gdbarch): Delete.
509         <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
510         current inferior's gdbarch.
511         <gdbarch.c> (get_target_gdbarch): New function.
512         * inferior.c: Include target-descriptions.h.
513         (free_inferior): Free target description info.
514         (add_inferior_with_spaces): Set the inferior's initial
515         architecture.
516         (clone_inferior_command): Copy the original inferior's target
517         description if it was user specified.
518         (initialize_inferiors): Add comment.
519         * inferior.h (struct target_desc_info): Forward declare.
520         (struct inferior) <gdbarch>: New field.
521         * linux-nat.c: Include target-descriptions.h.
522         (linux_child_follow_fork): Copy the parent's architecture and
523         target description to the child.
524         * target-descriptions.c: Include inferior.h.
525         (struct target_desc_info): New structure, holding the equivalents
526         of ...
527         (target_desc_fetched, current_target_desc)
528         (target_description_filename): ... these removed globals.
529         (get_tdesc_info, target_desc_info_from_user_p)
530         (copy_inferior_target_desc_info, target_desc_info_free): New.
531         (target_desc_fetched, current_target_desc)
532         (target_description_filename): Reimplemented as convenience
533         macros.
534         (tdesc_filename_cmd_string): New global.
535         (set_tdesc_filename_cmd): Copy the string manipulated by the "set
536         tdescs filename ..." commands to the per-inferior equivalent.
537         (show_tdesc_filename_cmd): Get the value to show from the
538         per-inferior description filename.
539         (_initilize_target_descriptions): Change the "set/show tdesc
540         filename" commands' variable.
541         * target-descriptions.h (struct target_desc, struct target_desc_info)
542         (struct inferior): Forward declare.
543         (target_find_description, target_clear_description)
544         (target_current_description): Adjust comments.
545         (copy_inferior_target_desc_info, target_desc_info_free)
546         (target_desc_info_from_user_p). Declare.
547
548 2012-11-08  Stephane Carrez  <Stephane.Carrez@gmail.com>
549
550         * tui/tui-hooks.c (tui_about_to_proceed): New function.
551         (tui_target_wait_hook): Remove.
552         (tui_install_hooks): Install the about_to_proceed observer.
553         (tui_remove_hooks): And remove it here.
554
555 2012-11-08  Tom Tromey  <tromey@redhat.com>
556
557         * linux-tdep.c (linux_make_siginfo_note): New function.
558         (linux_make_corefile_notes): Use it.
559         * corelow.c (get_core_siginfo): New function.
560         (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
561
562 2012-11-08  Tom Tromey  <tromey@redhat.com>
563
564         PR gdb/14704:
565         * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
566         (zlib_decompress_section): Remove.
567         (gdb_bfd_map_section): Only check for compressed section
568         in mmap case.  Use bfd_get_full_section_contents.
569         * osabi.c (check_note): Add 'sectsize' argument.  Read
570         section data.
571         (generic_elf_osabi_sniff_abi_tag_sections): Don't read
572         section data.  Update for check_note change.
573         * xcoffread.c (xcoff_initial_scan): Use
574         bfd_get_full_section_contents.
575         * py-auto-load.c (auto_load_section_scripts): Use
576         bfd_get_full_section_contents.
577         * contrib/cc-with-tweaks.sh: Add -Z option.
578
579 2012-11-08  Tom Tromey  <tromey@redhat.com>
580
581         * python/py-bpevent.c: Include defs.h.
582         * python/py-continueevent.c: Include defs.h.
583         * python/py-event.c: Include defs.h.
584         * python/py-event.h: Don't include defs.h.
585         * python/py-events.h: Don't include defs.h.
586         * python/py-evts.c: Include defs.h.
587         * python/py-exitedevent.c: Include defs.h.
588         * python/py-newobjfileevent.c: Include defs.h.
589         * python/py-signalevent.c: Include defs.h.
590         * python/py-stopevent.c: Include defs.h.
591         * python/py-threadevent.c: Include defs.h.
592
593 2012-11-08  Pierre Muller  <muller@sourceware.org>
594
595         * update-web-ari.sh (print_heading): Add number of files
596         checked.
597         (nb_files): New variable counting the number of sources
598         files found by gdb_find.sh script.
599         (debug_awk): New variable to allow extra debug output.
600         (indexes): Add more information if DEBUG_AWK is set.
601
602 2012-11-08  Edjunior Machado  <emachado@linux.vnet.ibm.com>
603
604         * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
605         ppc64_standard_linkage3): Mark ld r11 instructions as optional,
606         following the change in PLT call stubs on linker.
607
608 2012-11-08  Pierre Muller  <muller@sourceware.org>
609
610         * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
611         as default language.
612         (AWK): Use = instead of == for sh test to avoid warning.
613         (Linux rule): Correct [:digit] into [[:digit:]].
614         (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
615         (vasprintf rule): Adapt to common subdirectory moves.
616         (xasprintf rule): Idem.
617         (xvasprintf rule): Idem.
618         (var_boolean rule): Accept occurence in == or != test.
619
620         * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
621
622 2012-11-08  Stephane Carrez  <Stephane.Carrez@gmail.com>
623
624         * tui/tui-hooks.c (tui_inferior_exit): New function.
625         (tui_detach_hook): Remove.
626         (tui_install_hooks): Install the inferior exit observer.
627         (tui_remove_hooks): Remove it.
628
629 2012-11-08  Yao Qi  <yao@codesourcery.com>
630
631         PR gdb/14777.
632         * source.c (_initialize_source): Call add_com_alias to abbreviate
633         'forward-search' as 'fo'.
634
635 2012-11-07  Pedro Alves  <palves@redhat.com>
636
637         * arm-tdep.c: Make defs.h be the first include.
638         * coff-pe-read.c: Ditto.
639         * gnu-nat.c: Ditto.
640         * go32-nat.c: Ditto.
641         * i386-nat.c: Ditto.
642         * ppcnbsd-nat.c: Ditto.
643         * ada-varobj.h: Don't include defs.h.
644         * i386-darwin-tdep.h: Ditto.
645         * i386-nat.h: Ditto.
646
647 2012-11-07  Pedro Alves  <palves@redhat.com>
648
649         * MAINTAINERS: New FSF-appointed maintainers replace the Steering
650         Committee.
651
652 2012-11-07  Pierre Muller  <muller@sourceware.org>
653
654         * common/linux-osdata.c (dirent.h): ARI fix: Remove.
655         File already uses "gdb_dirent.h" header.
656
657 2012-11-07  Yao Qi  <yao@codesourcery.com>
658
659         * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
660         tracepoint_count'.
661
662 2012-11-06  Tom Tromey  <tromey@redhat.com>
663
664         * target.h (inferior_has_forked, inferior_has_vforked)
665         (inferior_has_execd, inferior_has_called_syscall): Remove
666         declarations.
667
668 2012-11-06  Pierre Muller  <muller@sourceware.org>
669
670         * remote.c (remote_insert_hw_breakpoint): ARI fix,
671         add missing internalization markup.
672
673 2012-11-06  Pedro Alves  <palves@redhat.com>
674
675         PR gdb/14810
676
677         * breakpoint.c (bpstat_stop_status): Skip disabled locations.
678
679 2012-11-06  Pierre Muller  <muller@sourceware.org>
680
681         * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
682         is not executable.
683
684 2012-11-05  Joel Brobecker  <brobecker@adacore.com>
685
686         * gnulib/update-gnulib.sh: New script.
687
688 2012-11-05  Stephane Carrez  <Stephane.Carrez@gmail.com>
689
690         * MAINTAINERS: Update my email address.
691
692 2012-11-05  Tom Tromey  <tromey@redhat.com>
693
694         * frame.c (put_frame_register): Don't use temporary buffer.
695
696 2012-11-05  Pedro Alves  <palves@redhat.com>
697
698         * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
699         child.  Clear 'pending_detach'.
700         * infrun.c (handle_vfork_child_exec_or_exit): Clear
701         'pending_detach' in the vfork parent.
702
703 2012-11-05  Doug Evans  <dje@google.com>
704
705         Add support for DWP files.  http://gcc.gnu.org/wiki/DebugFissionDWP
706         * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
707         * dwarf2read.c: #include "elf-bfd.h".
708         (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
709         (dwop_section_names): Renamed from dwo_section names.  All uses
710         updated.  Add entries for .debug_cu_index, .debug_tu_index.
711         (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
712         All uses updated.
713         (struct dwp_sections): New type.
714         (struct virtual_dwo_sections): New type.
715         (struct dwp_hash_table): New type.
716         (struct dwp_file): New type.
717         (init_cutu_and_read_dies): Ensure DWO info/types section has been
718         read in.  Handle DWOs coming from DWP files.
719         (lookup_dwo_file_slot): New function.
720         (dwarf2_locate_dwo_sections): Move definition closer to use.
721         (create_dwo_debug_info_hash_table_reader): Renamed from
722         create_debug_info_hash_table_reader.  All callers updated.
723         (create_dwo_debug_info_hash_table): Renamed from
724         create_debug_info_hash_table.  All callers updated.
725         (create_dwp_hash_table): New function.
726         (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
727         (lookup_dwo_in_dwp): New function.
728         (try_open_dwop_file): Renamed from try_open_dwo_file.  New parameter
729         is_dwp.  All callers updated.
730         (open_dwop_file): Renamed from open_dwo_file.  All callers updated.
731         (open_and_init_dwo_file): Renamed from init_dwo_file.
732         All callers updated.
733         (lookup_dwo_file): Delete.
734         (dwarf2_locate_dwp_sections): New function.
735         (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
736         (allocate_dwp_loaded_cutus_table): New function.
737         (open_and_init_dwp_file): New function.
738         (lookup_dwo_cutu): New function.
739         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
740
741 2012-11-03  Yao Qi  <yao@codesourcery.com>
742
743         Fix PR gdb/14617.
744         * breakpoint.c (trace_pass_set_count): Call
745         observer_notify_breakpoint_modified instead of
746         observer_notify_tracepoint_modified.
747         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
748
749 2012-11-02  Tom Tromey  <tromey@redhat.com>
750
751         * breakpoint.c (catch_syscall_completer): Pass 'word' as second
752         argument to complete_on_enum.
753
754 2012-11-02  Tom Tromey  <tromey@redhat.com>
755
756         * configure: Rebuild.
757         * configure.ac (build_warnings): Add -Wempty-body.
758         * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
759         * remote.c (handle_notification): Use braces for empty 'else' body.
760         * s390-tdep.c (s390_analyze_prologue): Use braces for empty
761         'else' body.
762         * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
763         'else' body.
764         * solib-som.c (som_relocate_section_addresses): Use braces
765         for empty 'else' body.
766         * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
767         (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
768
769 2012-11-02  Pedro Alves  <palves@redhat.com>
770
771         PR gdb/14766
772
773         * infrun.c (handle_inferior_event)
774         <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
775         null_ptid before handling a vfork child exec or exit.  Switch to
776         the event ptid afterwards.
777
778 2012-11-02  Yao Qi  <yao@codesourcery.com>
779
780         * std-operator.def: Remove OP_LABELED.
781         * eval.c: Remove the declaration of 'get_label'.
782         (get_label): Remove.
783         (evaluate_struct_tuple): Remove code handling OP_LABELED.
784         Update comment.
785         Remove local variable 'variantno' and related code.
786         Replace 'substruct_type' with 'struct_type'.  Replace 'subfieldno'
787         with 'fieldno'.
788         * expprint.c (print_subexp_standard): Likewise.
789         (dump_subexp_body_standard): Likewise.
790         * parse.c (operator_length_standard): Likewise.
791
792 2012-11-01  Pierre Muller  <muller@ics.u-strasbg.fr>
793
794         Incorporate ARI web page generator into GDB sources.
795         * contrib/ari/create-web-ari-in-src.sh: New file.
796         * contrib/ari/gdb_ari.sh: New file.
797         * contrib/ari/gdb_find.sh: New file.
798         * contrib/ari/update-web-ari.sh: New file.
799
800 2012-10-31  Tom Tromey  <tromey@redhat.com>
801
802         * gdbarch.c: Rebuild.
803         * gdbarch.sh: Remove references to gdbarch_swap.
804         * corelow.c (core_open): Remove obsolete comment.
805
806 2012-10-31  Andrew Burgess  <aburgess@broadcom.com>
807
808         PR cli/14772
809         * c-typeprint.c (c_print_type): Don't print a space for vector
810         types, this is handled within the suffix.
811         (c_type_print_varspec_suffix): Add a space to vector suffix.
812
813 2012-10-26  Pedro Alves  <palves@redhat.com>
814
815         * amd64-tdep.c (amd64_relocate_instruction): Use
816         store_unsigned_integer instead of memcpy.
817         * i386-tdep.c (i386_relocate_instruction): Ditto.
818
819 2012-10-26  Pedro Alves  <palves@redhat.com>
820
821         * infrun.c (handle_inferior_event): Merge handling of
822         TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
823         switch case.
824
825 2012-10-26  Pedro Alves  <palves@redhat.com>
826
827         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
828         Remove comment.
829
830 2012-10-26  Pedro Alves  <palves@redhat.com>
831
832         * target.c (target_waitstatus_to_string): Handle
833         TARGET_WAITKIND_VFORK_DONE.
834
835 2012-10-26  Pedro Alves  <palves@redhat.com>
836
837         * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
838         as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
839
840 2012-10-24  Tristan Gingold  <gingold@adacore.com>
841
842         * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
843         Add comments.
844
845 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
846
847         * ravenscar-thread.c (ravenscar_wait): Only update the list
848         of threads and inferior_ptid if the inferior is still alive.
849
850 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
851
852         * ada-lang.c (is_known_support_routine): Use lbasename when
853         matching the symtab's filename against
854         known_runtime_file_name_patterns.
855
856 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
857
858         * ada-lang.c (ada_same_array_size_p): New function.
859         (ada_promote_array_of_integrals): New function.
860         (coerce_for_assign): Add handling of arrays where the elements
861         are integrals of a smaller size than the size of the target
862         array element type.
863
864 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
865
866         * doublest.c (convert_doublest_to_floatformat): Fix comparison
867         against maximum exponent value.
868
869 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
870
871         * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
872         "unwind-seh.c".
873
874 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
875
876         * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
877         strip typedef layer when computing the fixed type's field type,
878         only when computing its size.
879
880 2012-10-24  Mark Kettenis  <kettenis@gnu.org>
881
882         PR gdb/12783
883         * i386-tdep.c (i386_return_value): Handle complex double and long
884         double.
885
886 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
887
888         * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
889         New local variable args_len.
890         Quote the name of the executable when computing the command line.
891
892 2012-10-23  Mark Kettenis  <kettenis@gnu.org>
893
894         PR gdb/12796
895         PR gdb/12798
896         PR gdb/12800
897         * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
898         AMD64_FTAG_REGNUM.
899         * amd64-tdep.c (amd64_classify): Classify complex types.
900         (amd64_return_value): Handle the COMPLEX_X87 class.
901
902 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
903
904         * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
905         (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
906
907 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
908
909         * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
910         function.
911         (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
912         to amd64_windows_auto_wide_charset.
913
914 2012-10-23  Yao Qi  <yao@codesourcery.com>
915
916         * event-top.c (mark_async_signal_handler_wrapper): Remove.
917         * event-top.h: Remove its declaration.
918         (async_request_quit): Call mark_async_signal_handler instead of
919         mark_async_signal_handler_wrapper.
920         (async_do_nothing, async_disconnect): Likewise.
921         (async_stop_sig): Likewise.
922         * remote.c (handle_remote_sigint): Likewise.
923         (handle_remote_sigint_twice): Likewise.
924
925 2012-10-23  Yao Qi  <yao@codesourcery.com>
926
927         * event-top.c (sigint_token, sighup_token): Replace 'void *'
928         with 'static struct async_signal_handler *'.
929         (sighup_token, sigquit_token, sigstp_token): Likewise.
930
931 2012-10-22  Ali Anwar  <ali_anwar@codesourcery.com>
932
933         * gdbarch.sh (function_list): Use 'pstring' when printing
934         a variable which could return NULL.
935         * gdbarch.c: Regenerate.
936
937 2012-10-10  Joel Brobecker  <brobecker@adacore.com>
938             Tom Tromey  <tromey@redhat.com>
939
940         * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
941         inneffective if condition by gdb assertion.  Add function
942         description comment.
943
944 2012-10-19  Joel Brobecker  <brobecker@adacore.com>
945
946         * parser-defs.h (struct exp_descriptor): Document constraint
947         on return value for "op_name" callbacks.
948
949 2012-10-18  Tom Tromey  <tromey@redhat.com>
950
951         * tracepoint.c (print_one_static_tracepoint_marker): Constify.
952         * symtab.c (iterate_over_some_symtabs): Constify.
953         * source.h (symtab_to_fullname): Return 'const char *'.
954         * source.c (symtab_to_fullname): Return 'const char *'.
955         * python/py-symtab.c (stpy_fullname): Constify.
956         * cli/cli-cmds.c (edit_command): Constify.
957         * breakpoint.c (print_breakpoint_location)
958         (update_static_tracepoint): Constify.
959
960 2012-10-18  Tom Tromey  <tromey@redhat.com>
961
962         * breakpoint.c (compare_breakpoints): Fix comparison.
963
964 2012-10-18  Tom Tromey  <tromey@redhat.com>
965
966         * valprint.c (generic_emit_char, generic_printstr): Pass size of
967         gdb_wchar_t to convert_between_encodings.
968
969 2012-10-17  Yao Qi  <yao@codesourcery.com>
970
971         * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
972         more parameter 'inferior'.
973         * corefile.c (write_memory_with_notification): Caller update.
974
975         * mi/mi-cmd-var.c: Include "mi-main.h".
976         (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
977         to 1 and restore it later.
978         * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
979         and "data-write-memory-bytes.
980         * mi/mi-interp.c: Include objfiles.h.
981         (mi_interpreter_init): Call observer_attach_memory_changed.
982         (mi_memory_changed): New.
983         * mi/mi-main.h (struct mi_suppress_notification) <memory>:
984         New field.
985
986         * NEWS: Mention new MI notification "memory-changed".
987
988 2012-10-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
989
990         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
991
992 2012-10-15  Doug Evans  <dje@google.com>
993
994         New option -nh: inhibit loading of ~/.gdbinit.
995         * NEWS: Mention -nh.
996         * main.c (captured_main): Recognize and process -nh.
997         (print_gdb_help): Mention -nh.
998         * gdb.1: Mention -nh.  Remove erroneous docs on -nx behavior.
999
1000 2012-10-15  H.J. Lu  <hongjiu.lu@intel.com>
1001
1002         PR backtrace/14646
1003         PR gdb/14647
1004         * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1005         pc_regnum_from_eax.
1006         * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1007         nor pc_regnum_from_eax.
1008         * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1009         nor pc_regnum_from_eax.
1010
1011 2012-10-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
1012
1013         Fix entry values resolving in inlined frames.
1014         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1015         gdbarch and caller_frame initialization later.  Skip INLINE_FRAME
1016         entries of FRAME.
1017
1018 2012-10-15  Joel Brobecker  <brobecker@adacore.com>
1019
1020         * configure.ac: Build with -DMS_WIN64 if building with Python
1021         enabled using GCC on amd64-windows.
1022         * configure: Regenerate.
1023
1024 2012-10-15  Tom Tromey  <tromey@redhat.com>
1025
1026         PR python/14635:
1027         * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1028         to Py_None.
1029
1030 2012-10-15  Tom Tromey  <tromey@redhat.com>
1031
1032         PR python/14634:
1033         * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1034
1035 2012-10-11  Andrew Burgess  <aburgess@broadcom.com>
1036
1037         * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1038         reset thread numbering back to 1.
1039
1040 2012-10-11  Doug Evans  <dje@google.com>
1041
1042         PR breakpoints/14643.
1043         * linespec.c (struct ls_parser): New member keyword_ok.
1044         (linespec_lexer_lex_string): Add comment.
1045         (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1046         for one.
1047         (parse_linespec): Set keyword_ok.
1048
1049 2012-10-10  Doug Evans  <dje@google.com>
1050
1051         * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1052         "0x" prefix on address in log message.
1053
1054         * dwarf2read.c (read_1_byte): Add const to buf parameter.
1055         (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1056         (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1057         (lookup_dwo_file): Add const to dwo_name parameter.
1058         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1059
1060 2012-10-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
1061
1062         Fix crash during stepping on ppc32.
1063         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1064         SYM.
1065
1066 2012-10-03  Doug Evans  <dje@google.com>
1067
1068         PR symtab/14601
1069         * buildsym.c (buildsym_init): Reset using_directives to NULL.
1070
1071 2012-10-02  Andrew Burgess  <aburgess@broadcom.com>
1072
1073         * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1074         output and use uint32_t not long to ensure 4 byte size.
1075
1076 2012-10-02  Joel Brobecker  <brobecker@adacore.com>
1077
1078         * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1079         unref'ed it.
1080
1081 2012-10-01  Andrew Burgess  <aburgess@broadcom.com>
1082
1083         * target.c (simple_search_memory): Include access length in
1084         warning message.
1085
1086 2012-09-28  Nathan Miller  <nathanm2@us.ibm.com>
1087             Edjunior Machado  <emachado@linux.vnet.ibm.com>
1088
1089         PR gdb/13989
1090         * solib.c (solib_find): Prevent GDB from loading native libraries when
1091         debugging a cross-target corefile.
1092
1093 2012-09-28  selven  <pcthegreat@gmail.com>
1094
1095         Make definition match declaration.
1096
1097         * regcache.c (regcache_register_status): Change return type to
1098         enum register_status.
1099
1100 2012-09-28  Yao Qi  <yao@codesourcery.com>
1101
1102         * mi/mi-main.c (mi_cmd_data_write_memory): Call
1103         write_memory_with_notification instead of write_memory.
1104         (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1105         instead of target_write_memory.
1106
1107 2012-09-28  Yao Qi  <yao@codesourcery.com>
1108
1109         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1110         when the length of content is not an even number.
1111
1112 2012-09-27  Tom Tromey  <tromey@redhat.com>
1113
1114         Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1115         * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1116
1117 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1118
1119         * sol-thread.c (sol_thread_fetch_registers)
1120         (sol_thread_store_registers): Delete commented out code.
1121
1122 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1123
1124         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1125         Move these functions to sparc-sol-thread.c.
1126         * sparc-sol-thread.c: New file.
1127         * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1128         sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1129         configurations.
1130         * configure: Regenerate.
1131
1132 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1133
1134         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1135         Remove commented-out code.
1136
1137 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1138
1139         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1140         Enable this code for sparc hosts only.
1141
1142 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1143
1144         * procfs.h (procfs_find_LDT_entry): Add declaration.
1145         * sol-thread.c (ps_lgetLDT): Delete local declaration of
1146         function procfs_find_LDT_entry.
1147
1148 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1149
1150         * procfs.c (proc_get_LDT_entry): Make static.
1151
1152 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1153
1154         * procfs.c (proc_find_memory_regions): Fix declaration.
1155
1156 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
1157
1158         * amd64-tdep.c (amd64_return_value): Revert previous change
1159         that used TYPE_LENGTH directly.
1160         * bfin-tdep.c (bfin_extract_return_value): Likewise.
1161         (bfin_store_return_value): Likewise.
1162         * cris-tdep.c (cris_store_return_value): Likewise.
1163         (cris_extract_return_value): Likewise.
1164         * h8300-tdep.c (h8300_extract_return_value): Likewise.
1165         * hppa-tdep.c (hppa64_return_value): Likewise.
1166         * lm32-tdep.c (lm32_store_return_value): Likewise.
1167         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1168         * spu-tdep.c (spu_value_from_register): Likewise.
1169         * vax-tdep.c (vax_return_value): Likewise.
1170
1171 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
1172
1173         * gdbtypes.c (lookup_array_range_type): Expand parameters
1174         LOW_BOUND and HIGH_BOUND to LONGEST.
1175         (lookup_string_range_type): Likewise.
1176         * gdbtypes.h (lookup_array_range_type): Likewise.
1177         (lookup_string_range_type): Likewise.
1178         * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1179         Expand HIGHBOUND to ssize_t.
1180         (value_string): Likewise.
1181         * value.h (value_cstring): Expand parameter LEN to ssize_t.
1182         (value_string): Likewise.
1183
1184 2012-09-27  Yao Qi  <yao@codesourcery.com>
1185
1186         PR breakpoints/13898
1187         * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1188         * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1189         per breakpoint type.
1190
1191 2012-09-26  Pierre Muller  <muller@ics.u-strasbg.fr>
1192
1193         * procfs.c: Add gdb_bfd header.
1194         * rs6000-nat.c: Likewise.
1195         * solib-pa64.c: Likewise.
1196         * spu-linux-nat.c: Likewise.
1197         * windows-nat.c: Likewise.
1198
1199 2012-09-26  Tom Tromey  <tromey@redhat.com>
1200
1201         * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1202
1203 2012-09-26  Tom Tromey  <tromey@redhat.com>
1204
1205         * dwarf2read.c (mark_common_block_symbol_computed): New function.
1206         (read_common_block): Handle child DIEs with
1207         DW_AT_data_member_location.
1208         (new_symbol_full): Add special case for common blocks.
1209
1210 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
1211             Tom Tromey  <tromey@redhat.com>
1212
1213         * dwarf2read.c (read_common_block): Rewrite.
1214         (new_symbol_full): Handle DW_TAG_common_block.
1215         * f-lang.c (head_common_list, find_common_for_function):
1216         Remove.
1217         * f-lang.h (struct common_entry, struct saved_f77_common,
1218         SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1219         COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1220         BLANK_COMMON_NAME_LOCAL): Remove.
1221         (struct common_block): New.
1222         * f-valprint.c (list_all_visible_commons): Remove.
1223         (info_common_command_for_block): New function.
1224         (info_common_command): Use it.
1225         * stack.c (iterate_over_block_locals): Special case for
1226         COMMON_BLOCK_DOMAIN.
1227         * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1228         constant.
1229         (struct general_symbol_info) <value.common_block>: New field.
1230         (SYMBOL_VALUE_COMMON_BLOCK): New define.
1231
1232 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
1233             Tom Tromey  <tromey@redhat.com>
1234
1235         * f-lang.c (allocate_saved_bf_node,
1236         allocate_saved_function_node, allocate_saved_f77_common_node,
1237         allocate_common_entry_node, tail_common_list, current_common,
1238         saved_bf_list, saved_bf_list_end, current_head_bf_list,
1239         tmp_bf_ptr, add_common_block, add_common_entry,
1240         find_first_common_named, patch_common_entries,
1241         patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1242         global_remote_debug, get_bf_for_fcn, saved_function_list,
1243         saved_function_list_end, clear_function_list, struct saved_fcn,
1244         struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1245         SAVED_BF, SAVED_BF_PTR): Remove.
1246         * f-lang.h (tail_common_list, current_common,
1247         UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1248         BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1249         DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1250         real_main_c_value): Remove.
1251         * f-valprint.c (there_is_a_visible_common_named): Remove.
1252
1253 2012-09-26  Andrew Burgess  <aburgess@broadcom.com>
1254
1255         * breakpoint.c (update_global_location_list): Ignore previous
1256         duplicate status of a breakpoint when starting a new scan for
1257         duplicate breakpoints.
1258
1259 2012-09-26  Karthik Bhat  <kv.bhat@samsung.com>
1260         PR breakpoints/14419
1261         * arm-tdep.c (arm_skip_prologue): Extending producer check to
1262         support LLVM compiler.
1263
1264 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1265
1266         * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
1267         * bfin-tdep.c (bfin_extract_return_value): Likewise.
1268         (bfin_store_return_value): Likewise.
1269         * cris-tdep.c (cris_store_return_value): Likewise.
1270         (cris_extract_return_value): Likewise.
1271         * h8300-tdep.c (h8300_extract_return_value): Likewise.
1272         * hppa-tdep.c (hppa64_return_value): Likewise.
1273         * lm32-tdep.c (lm32_store_return_value): Likewise.
1274         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1275         * spu-tdep.c (spu_value_from_register): Likewise.
1276         * vax-tdep.c (vax_return_value): Likewise.
1277
1278 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1279
1280         * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
1281         parameter LEN to ssize_t.
1282
1283 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1284
1285         * ada-valprint.c (ada_val_print_1): Eliminate single-use
1286         variable LEN.
1287         * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
1288         directly.
1289         (alpha_store_return_value): Likewise.
1290         * amd64-tdep.c (amd64_classify_aggregate): Likewise.
1291         (amd64_push_arguments): Likewise.
1292         * ax-gdb.c (gen_trace_static_fields): Likewise.
1293         (gen_traced_pop): Likewise.
1294         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1295         * breakpoint.c (update_watchpoint): Likewise.
1296         * findcmd.c (parse_find_args): Use local variable for type
1297         instead of length.
1298         * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
1299         * h8300-tdep.c (h8300h_extract_return_value): Likewise.
1300         (h8300_store_return_value): Likewise.
1301         * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1302         Use i386_darwin_arg_type_alignment directly.
1303         * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
1304         * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1305         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1306         (m68hc11_extract_return_value): Likewise.
1307         * mep-tdep.c (mep_push_dummy_call): Likewise.
1308         * printcmd.c (float_type_from_length): Likewise.
1309         * s390-tdep.c (s390_value_from_register): Likewise.
1310         * stack.c (read_frame_arg): Likewise.
1311         * tracepoint.c (encode_actions_1): Likewise.
1312         * valops.c (value_fetch_lazy): Use local variable for type
1313         instead of length.  Use TYPE_LENGTH directly.
1314         * value.c (value_contents_equal): Use TYPE_LENGTH directly.
1315
1316 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
1317
1318         * symtab.c (skip_prologue_sal): Fix typo in comment.
1319
1320 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
1321
1322         * linespec.c (create_sals_line_offset): Fix typo in comment.
1323
1324 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1325
1326         * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
1327         use plongest to print the array size.
1328
1329 2012-09-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
1330
1331         * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1332         * p-valprint.c (pascal_type_print_base): Likewise.
1333
1334 2012-09-22  Yao Qi  <yao@codesourcery.com>
1335
1336         * remote.c (remote_get_trace_status): Remove setting default
1337         values of fields of 'ts'.
1338
1339 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
1340
1341         Fix internal error on canonicalization of clang types.
1342         * cp-name-parser.y (operator): New comment at make_operator call for
1343         new, delete, new[] and delete[].
1344         (exp): Use "sizeof ".  Add new comment at make_operator call.
1345
1346 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
1347
1348         Fix disassemble without parameters in tailcall frame.
1349         * cli/cli-cmds.c (disassemble_current_function): Use
1350         get_frame_address_in_block.
1351
1352 2012-09-21  Tom Tromey  <tromey@redhat.com>
1353
1354         * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1355         TYPE_CODE_UNION>: Unify, removing a goto.
1356
1357 2012-09-21  Tom Tromey  <tromey@redhat.com>
1358
1359         * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1360
1361 2012-09-21  Andrew Burgess  <aburgess@broadcom.com>
1362
1363         * findvar.c (read_frame_register_value): Mark the result value as
1364         optimized out if any of the input registers have been optimized out.
1365
1366 2012-09-21  Andreas Schwab  <schwab@linux-m68k.org>
1367
1368         * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1369
1370 2012-09-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
1371
1372         * eval.c (evaluate_subexp_standard): Eliminate single-use
1373         variable LOWER.
1374
1375 2012-09-21  Yao Qi  <yao@codesourcery.com>
1376
1377         * mi/mi-interp.c: Declare mi_record_changed.
1378         (mi_interpreter_init): Call observer_attach_record_changed.
1379         (mi_record_changed): New.
1380         * record.c (record_open): Call observer_notify_record_changed.
1381         (cmd_record_stop): Call observer_notify_record_changed.
1382         * NEWS: Mention it.
1383
1384 2012-09-20  Tom Tromey  <tromey@redhat.com>
1385
1386         * NEWS: Update.
1387         * python/python.c (finalize_python): New function.
1388         (_initialize_python): Make a final cleanup.
1389
1390 2012-09-19  Doug Evans  <dje@google.com>
1391
1392         * buildsym.h (param_symbols): Delete, unused.
1393         (context_stack): Delete member "params", unused.
1394         * buildsym.c (push_context): Update.
1395         * dwarf2read.c (read_func_scope): Update.
1396
1397 2012-09-19  Thomas Schwinge  <thomas@codesourcery.com>
1398
1399         * sh-tdep.c (sh_register_convert_to_virtual)
1400         (sh_register_convert_to_raw): Add a gdbarch parameter.  Update
1401         all callers.  Just do a memcpy if not the little-endian case.
1402
1403         * h8300-tdep.c (h8300_gdbarch_init): Invoke
1404         set_gdbarch_double_format and set_gdbarch_long_double_format.
1405         * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1406         set_gdbarch_double_format.
1407         * sh-tdep.c (sh_gdbarch_init): Likewise.
1408
1409         * NEWS: Document the removal of SH's 'regs' command.
1410         * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1411         command.
1412
1413 2012-09-18  Sergio Durigan Junior  <sergiodj@redhat.com>
1414
1415         * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1416         `jump'.
1417
1418 2012-09-18  Joel Brobecker  <brobecker@adacore.com>
1419
1420         * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1421         language when iterating over symbols.
1422
1423 2012-09-18  Yao Qi  <yao@codesourcery.com>
1424
1425         * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1426         (mi_interpreter_init): Call observer_attach_tsv_created and
1427         observer_attach_tsv_deleted.
1428         (mi_tsv_created, mi_tsv_deleted): New.
1429         * tracepoint.c (delete_trace_state_variable): Call
1430         observer_notify_tsv_deleted.
1431         (trace_variable_command): Call observer_notify_tsv_created.
1432         (delete_trace_variable_command): Call
1433         observer_notify_tsv_deleted.
1434         (create_tsv_from_upload): Call observer_notify_tsv_created.
1435         * NEWS: Mention it.
1436
1437 2012-09-18  Yao Qi  <yao@codesourcery.com>
1438
1439         * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1440         if traceframe changed.
1441         * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1442         "trace-find".
1443         * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1444         (mi_interpreter_init): Hook mi_traceframe_changed to observer
1445         'traceframe_changed'.
1446         (mi_traceframe_changed): New.
1447         * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1448         New field.
1449         * NEWS: Mention the new MI notification.
1450
1451 2012-09-17  Mike Wrighton  <wrighton@codesourcery.com>
1452
1453         * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1454
1455 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1456
1457         * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1458         (linux_ptrace_test_ret_to_nx): Extend comment for x86_64.  Change
1459         __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1460         Extend code also for PaX support.  Convert all gdb_assert to warning
1461         calls.
1462
1463 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1464
1465         Implement auto-load user conveniences suggested by Doug Evans.
1466         * auto-load.c: Include top.h.
1467         (file_is_auto_load_safe): New variable advice_printed.  Print advice.
1468         (_initialize_auto_load): New variable scripts_directory_help.  Mention
1469         GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1470         scripts-directory.  Document in online help one can use also files for
1471         set auto-load safe-path.
1472         * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1473         * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1474
1475 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
1476
1477         * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1478         of LEN.
1479
1480 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
1481
1482         * m2-valprint.c (m2_print_array_contents): Eliminate variable
1483         ELTLEN and use TYPE_LENGTH directly.
1484         (m2_val_print): Likewise.
1485         * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1486         variable LEN and use TYPE_LENGTH directly.
1487         (m68k_svr4_store_return_value): Likewise.
1488         * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1489         ARGLEN and use TYPE_LENGTH directly.
1490         (mips_o64_push_dummy_call): Likewise.
1491         * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1492         variable LENGTH and use TYPE_LENGTH directly.
1493         (s390_function_arg_float): Likewise.
1494         (s390_function_arg_integer): Likewise.
1495         (s390_push_dummy_call): Likewise.
1496         (s390_return_value_convention): Likewise.
1497         * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1498         TYPE_LENGTH directly.
1499
1500 2012-09-17  Yao Qi  <yao@codesourcery.com>
1501
1502         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1503         Update comment to add_setshow_integer_cmd.
1504         * cli/cli-setshow.c (do_set_command): Handle case
1505         'var_zuinteger_unlimited'.
1506         (do_show_command): Likewise.
1507         * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1508         for command 'remotetimeout'.
1509         * command.h (enum var_types): New zuinteger_unlimited.  Update comment
1510         to var_integer.
1511         * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1512         for command 'set listsize'.
1513
1514 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
1515
1516         * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1517         variable LEN.
1518
1519 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1520
1521         PR 14119
1522         * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1523         (frame_pop): Drop also TAILCALL_FRAME frames.
1524         * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1525
1526 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1527             Pedro Alves  <palves@redhat.com>
1528
1529         PR 14548
1530         * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1531         function start if we are already at function start.  Both for
1532         reverse-next and for reverse-step into function without line number
1533         info.
1534
1535 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1536
1537         Code cleanup - rename 'inline' depth to 'artificial' depth.
1538         * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1539         frame_id_artificial_p, extend the comment.
1540         * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1541         * frame.c (fprint_frame_id): Rename at a user, change debug output
1542         text to "artificial=".
1543         (skip_inlined_frames): Rename to ...
1544         (skip_artificial_frames): ... here.  Extend the comment.
1545         (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1546         (frame_id_inlined_p): Rename to ...
1547         (frame_id_artificial_p): ... here.  Rename at a user.
1548         (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1549         (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1550         at a user.
1551         * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1552         Extend the comment.
1553         (frame_id_inlined_p): Rename to ...
1554         (frame_id_artificial_p): ... here.
1555         * inline-frame.c (inline_frame_this_id): Rename at a user.
1556
1557 2012-09-14  Andrew Burgess  <aburgess@broadcom.com>
1558
1559         * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1560         vector variables using vector_size syntax rather than array
1561         syntax.
1562
1563 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
1564
1565         * valarith.c (value_concat): Replace unsafe ALLOCA with
1566         XMALLOC/XFREE.
1567
1568 2012-09-14  Pedro Alves  <palves@redhat.com>
1569
1570         * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1571
1572 2012-09-14  Khoo Yit Phang  <khooyp@cs.umd.edu>
1573
1574         Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1575         * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1576         data-directory as appropriate.
1577
1578 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
1579
1580         * printcmd.c (ui_printf): Eliminate single-use variable
1581         PARAM_LEN.
1582
1583 2012-09-14  Yao Qi  <yao@codesourcery.com>
1584             Pedro Alves  <palves@redhat.com>
1585
1586         * valops.c (value_assign): Move observer_notify_target_changed
1587         below to replace reinit_frame_cache.
1588
1589 2012-09-13  Khoo Yit Phang  <khooyp@cs.umd.edu>
1590
1591         Refactor Python "gdb" module into a proper Python package, by
1592         introducing a new "_gdb" module for code implemented in C, and
1593         using reload/__import__ instead of exec.
1594         * python/lib/gdb/__init__.py: Import * from _gdb.
1595         (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1596         prompt_hook, sys.argv): Moved from finish_python_initialization.
1597         (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1598         (packages, auto_load_packages): New list and function replacing
1599         module_dict and auto-loading code, using __file__ instead of
1600         gdb.PYTHONDIR and reload/__import__ instead of exec.
1601         (GdbSetPythonDirectory): Replacing function of the same name
1602         from finish_python_initialization, using reload/__import__ instead
1603         of exec, as well as call auto_load_packages.
1604         * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1605         gdb_python_module and not gdb_module.
1606         * python/python-internal.h (gdb_python_module): Declare.
1607         * python/python.c (gdb_python_module): New global.
1608         (before_prompt_hook): Check gdb_python_module and not gdb_module.
1609         (_initialize_python): Rename gdb module to _gdb.
1610         Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1611         (finish_python_initialization): Move Python code to
1612         lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1613         __main__.
1614
1615 2012-09-13  Pedro Alves  <palves@redhat.com>
1616
1617         * Makefile.in (COMMON_OBS): Add registry.o.
1618         * registry.c: New file.
1619         * registry.h (struct registry_container): Declare.
1620         (registry_data_callback): New typedef.
1621         (struct registry_data, struct registry_data_registration, struct
1622         registry_data_registry): New type.
1623         (register_data_with_cleanup, registry_alloc_data)
1624         (registry_callback_adaptor, registry_clear_data)
1625         (registry_container_free_data, registry_set_data, registry_data):
1626         Declare.
1627         (DEFINE_REGISTRY): Refactor structures and functions as shims over
1628         the new common structures and functions.
1629         (DECLARE_REGISTRY): Declare struct TAG ## _data.  Use the tagged
1630         callback typedefs.
1631
1632 2012-09-12  Mike Wrighton  <wrighton@codesourcery.com>
1633
1634         * remote.c (remote_insert_hw_breakpoint): Throw exception if
1635         there is an error inserting hardware breakpoints and use the
1636         error message from the target.
1637
1638         * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1639         Catch this exception and print the error message contained within. Do not
1640         print the default hardware error breakpoint message in this case.
1641
1642 2012-09-12  Doug Evans  <dje@google.com>
1643
1644         * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1645         cu == NULL.
1646
1647 2012-09-11  Doug Evans  <dje@google.com>
1648
1649         * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1650         .gdb_index symbol attributes if there are none.
1651
1652 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
1653
1654         * symtab.h (struct minimal_symbol) [has_size]: New field.
1655         (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1656         (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1657         * printcmd.c (build_address_symbolic): Only filter out zero-sized
1658         minimal symbols if the symbol's size is actually known.
1659         * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1660         of msymbol's size field.  Add comment.
1661         * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1662         SET_MSYMBOL_SIZE to set the minimal symbol size.
1663
1664 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
1665
1666         * minsyms.c (install_minimal_symbols): Use memset to fill entire
1667         minimal_symbol struct object, rather than setting some of its
1668         fields one by one.
1669
1670 2012-09-11  Andrew Burgess  <aburgess@broadcom.com>
1671
1672         * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1673         passed_a_ptr flag when displaying typedef types.
1674
1675 2012-09-10  Joel Brobecker  <brobecker@adacore.com>
1676
1677         * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1678         the optimized_out flag is preserved.
1679
1680 2012-09-10  Anthony Green  <green@moxielogic.com>
1681
1682         * moxie-tdep.c (moxie_analyze_prologue): Update for function
1683         prologue changes in GCC.
1684
1685 2012-09-10  Keith Seitz  <keiths@redhat.com>
1686
1687         PR gdb/13483
1688         * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1689         (BOOL_CONVERSION_BADNESS): ... this.
1690         * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1691         (rank_one_type): Allow all boolean conversions
1692         permitted by the standard.
1693
1694 2012-09-06  Tom Tromey  <tromey@redhat.com>
1695
1696         * python/py-newobjfileevent.c (create_new_objfile_event_object):
1697         Don't decref py_objfile.
1698
1699 2012-09-02  Khoo Yit Phang  <khooyp@cs.umd.edu>
1700
1701         Do not enable -lmcheck by default when Python is enabled with
1702         threading support.
1703         * configure.ac: (python_has_threads) New variable, by testing
1704         if WITH_THREAD is defined in Python.h.
1705         Move --enable-lmcheck after --with-python.
1706         Do not enable -lmcheck by default if python_has_threads=yes.
1707         Warn if --enable-lmcheck and python_has_threads=yes.
1708         * configure: Regenerate.
1709
1710 2012-08-31  Yao Qi  <yao@codesourcery.com>
1711
1712         * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1713         DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1714         Update some commands.
1715         * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1716         * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1717         to 1.
1718
1719 2012-08-31  Yao Qi  <yao@codesourcery.com>
1720
1721         * mi/mi-cmds.c (mi_cmds): Add 'static'.
1722
1723 2012-08-30  Khoo Yit Phang  <khooyp@cs.umd.edu>
1724
1725         * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1726
1727 2012-08-29  Doug Evans  <dje@google.com>
1728
1729         * main.c (print_gdb_help): Remove reference to
1730         --use-deprecated-index-sections.
1731
1732 2012-08-28  Yao Qi  <yao@codesourcery.com>
1733
1734         * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1735         (init_cmds): Call add_setshow_uinteger_cmd for command
1736         'max-user-call-depth'.
1737         * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1738         declaration of 'max_user_call_depth'.
1739         * frame.c (backtrace_limit): Add 'unsigned'.
1740         (_initialize_frame): Call add_setshow_uinteger_cmd for command
1741         'limit'.
1742         * remote.c (remoteaddresssize): Add 'unsigned'.
1743         (remote_address_masked): Change local var 'address_size' to
1744         'unsigned'.
1745         (_initialize_remote): Call add_setshow_uinteger_cmd for
1746         'remoteaddresssize'.
1747         * top.c (history_size): Add 'unsigned'.
1748         (show_commands): Change local variables to 'unsigned'.
1749         (set_history_size_command): Don't check history_size is negative.
1750         Adjust the condition to call unstifle_history and set history_size
1751         to UNIT_MAX.
1752
1753 2012-08-28  Pedro Alves  <palves@redhat.com>
1754
1755         PR gdb/14428
1756
1757         * infcmd.c (default_print_one_register_info): New, factored out
1758         from default_print_registers_info.
1759         (default_print_registers_info): Use it.  Mark value unavailable if
1760         necessary.
1761         (registers_info): Print user registers with
1762         default_print_one_register_info.
1763
1764 2010-08-27  H.J. Lu  <hongjiu.lu@intel.com>
1765
1766         PR tui/14486
1767         * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1768         is not NULL before referencing it.
1769
1770 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1771
1772         * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1773         variable pc.  Call find_pc_line instead of find_pc_overlay, restore
1774         original PC for it.
1775
1776 2012-08-27  Eli Zaretskii  <eliz@gnu.org>
1777             Jan Kratochvil  <jan.kratochvil@redhat.com>
1778
1779         * auto-load.c (auto_load_objfile_script): Rename to ...
1780         (auto_load_objfile_script_1): ... here, change variable realname to
1781         parameter realname, document it, add return value, add variable retval.
1782         (auto_load_objfile_script): New function.
1783
1784 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1785
1786         * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1787         followed by a whitespace.
1788
1789 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1790
1791         PR gdb/14494.
1792         * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1793         Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1794         (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1795         here.
1796
1797 2012-08-27  Wei-cheng Wang  <cole945@gmail.com>
1798
1799         * memattr.c (create_mem_region): Fix memory region overlapping
1800         checking.
1801
1802 2012-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
1803
1804         * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1805         with xmalloc/cleanup.
1806         * mt-tdep.c (mt_push_dummy_call): Likewise.
1807         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1808         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1809
1810 2012-08-24  Yao Qi  <yao@codesourcery.com>
1811
1812         * jv-exp.y (push_expression_name): Add "." at the end of error
1813         message.
1814
1815 2012-08-23  Khoo Yit Phang <khooyp@cs.umd.edu>
1816
1817         Document how to return from "python-interactive" to GDB.
1818         * python/python.c (_initialize_python): Update documentation.
1819
1820 2012-08-23  Pedro Alves  <palves@redhat.com>
1821
1822         * infrun.c (_initialize_infrun) <handle command help text>:
1823         Mention that multiple signals are supported.
1824
1825 2012-08-23  Pedro Alves  <palves@redhat.com>
1826
1827         * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1828         string.
1829
1830 2012-08-23  Yao Qi  <yao@codesourcery.com>
1831
1832         * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1833         (tfind_1): Don't call registers_changed, set_traceframe_num,
1834         and clear_traceframe_info.
1835         Call set_current_traceframe.
1836         (set_current_traceframe): call set_traceframe_num.
1837
1838 2012-08-22  Sergio Durigan Junior  <sergiodj@redhat.com>
1839
1840         * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1841         `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1842
1843 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
1844
1845         Enable readline in Python in a GDB-specific way and block the
1846         standard Python readline module to prevent conflicts with GDB.
1847         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1848         (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1849         (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1850         * python/py-gdb-readline.c: New file.
1851         * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1852         prototype.
1853         * python/python.c (_initialize_python): Call
1854         gdbpy_initialize_gdb_readline.
1855
1856 2012-08-22  Keith Seitz  <keiths@redhat.com>
1857
1858         * defs.h: Include build-gnulib/config.h
1859
1860 2012-08-22  Joseph Myers  <joseph@codesourcery.com>
1861
1862         * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1863         and blx pc.
1864
1865 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
1866
1867         Add a new "python-interactive" command that starts a standard
1868         Python interactive prompt with "pi" as alias, and add "py" as
1869         an alias to "python".
1870         * NEWS: Mention the new commands.
1871         * python/python.c (eval_python_command): New function.
1872         (python_interactive_command): For "python-interactive" with
1873         arguments, call eval_python_command.  For "python-interactive"
1874         without arguments, call PyRun_InteractiveLoop.
1875         (_initialize_python): Add "python-interactive" command with
1876         "pi" as alias, and add "py" as an alias to "python".
1877
1878 2012-08-22  Tom Tromey  <tromey@redhat.com>
1879
1880         * defs.h (quit_flag): Don't declare.
1881         (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1882         (QUIT): Use new functions.
1883         * event-top.c (command_handler): Use clear_quit_flag.
1884         (handle_sigint): Use set_quit_flag.
1885         (async_request_quit): Use check_quit_flag.  Don't check
1886         immediate_quit.
1887         * exceptions.c (throw_exception): Use clear_quit_flag.
1888         * main.c (captured_main): Use clear_quit_flag.
1889         * python/python.c (clear_quit_flag, set_quit_flag)
1890         (check_quit_flag): New functions.
1891         * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1892         clear_quit_flag.
1893         * remote.c (remote_wait_as): Use check_quit_flag,
1894         clear_quit_flag.
1895         (remote_start_remote): Call QUIT.
1896         * symfile.c (load_progress): Use check_quit_flag.
1897         * top.c (command_loop): Use clear_quit_flag.
1898         (command_line_input): Call QUIT.
1899         * utils.c (quit_flag): Conditionally define.
1900         (clear_quit_flag, check_quit_flag, set_quit_flag): New
1901         functions.
1902         (prompt_for_continue): Call QUIT.  Use quit, not
1903         async_request_quit.
1904         * remote-mips.c (mips_expect_timeout): Call QUIT.
1905         * monitor.c (monitor_expect): Call QUIT.
1906
1907 2012-08-22  Tom Tromey  <tromey@redhat.com>
1908
1909         * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1910         (async_init_signals): Update.
1911         * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1912         (SIGWINCH_HANDLER_BODY): Remove.
1913
1914 2012-08-22  Tom Tromey  <tromey@redhat.com>
1915
1916         * jit.c (jit_object_close_impl): Don't malloc the objfile
1917         name.
1918         * objfiles.c (allocate_objfile): Don't malloc the objfile
1919         name.
1920         (free_objfile): Don't free the objfile name.
1921         * objfiles.h (struct objfile) <name>: Update comment.
1922         * symfile.c (reread_symbols): Fix reference counting.  Don't
1923         malloc objfile name.
1924
1925 2012-08-22  Tom Tromey  <tromey@redhat.com>
1926
1927         * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1928         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1929         (symfile_bfd_open): Likewise.
1930         (generic_load): Likewise.
1931         * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1932         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1933         gdb_bfd_open.
1934         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1935         Use gdb_bfd_open.
1936         * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1937         * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1938         (pmon_load_fast): Likewise.
1939         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1940         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1941         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1942         (macho_check_dsym): Likewise.
1943         * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1944         (m32r_upload_command): Likewise.
1945         * gdb_bfd.h (gdb_bfd_cache): Declare.
1946         * gdb_bfd.c (struct gdb_bfd_data): New.
1947         (gdb_bfd_cache): New global.
1948         (struct gdb_bfd_cache_search): New.
1949         (hash_bfd): New function.
1950         (eq_bfd): Likewise.
1951         (gdb_bfd_open): Likewise.
1952         (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1953         (gdb_bfd_unref): Remove closed BFD from cache.  Update for
1954         gdb_bfd_data.
1955         * exec.c (exec_file_attach): Use gdb_bfd_open.
1956         * dsrec.c (load_srec): Use gdb_bfd_open.
1957
1958 2012-08-22  Tom Tromey  <tromey@redhat.com>
1959
1960         * dwarf2read.c (macro_start_file): Update.
1961         * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1962         (free_objfile_per_bfd_storage): Destroy macro_cache.
1963         (allocate_objfile, free_objfile): Update.
1964         * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1965         New field.
1966         (struct objfile) <macro_cache>: Remove.
1967         * symfile.c (reread_symbols): Update.
1968         * symmisc.c (print_symbol_bcache_statistics): Update.
1969         (print_objfile_statistics): Update.
1970
1971 2012-08-22  Tom Tromey  <tromey@redhat.com>
1972
1973         * elfread.c (elf_symtab_read): Update.
1974         * objfiles.c (objfiles_bfd_data): New global.
1975         (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1976         (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1977         (allocate_objfile, free_objfile): Update.
1978         (_initialize_objfiles): Initialize objfiles_bfd_data.
1979         * objfiles.h (struct objfile_per_bfd_storage): New.
1980         (struct objfile) <per_bfd>: New field.
1981         <filename_cache>: Remove.
1982         (set_objfile_per_bfd): Declare.
1983         * symfile.c (reread_symbols): Update.  Call
1984         set_objfile_per_bfd.
1985         (allocate_symtab): Update.
1986         * symmisc.c (print_symbol_bcache_statistics): Update.
1987         (print_objfile_statistics): Print the size of the BFD obstack.
1988
1989 2012-08-22  Tom Tromey  <tromey@redhat.com>
1990
1991         * gdb_bfd.h: Include registry.h.  Use DECLARE_REGISTRY.
1992         * gdb_bfd.c: Use DEFINE_REGISTRY.
1993         (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1994         (gdb_bfd_ref): Call bfd_alloc_data.
1995         (gdb_bfd_unref): Call bfd_free_data.
1996
1997 2012-08-22  Tom Tromey  <tromey@redhat.com>
1998
1999         * registry.h (struct registry_fields): New.
2000         (REGISTRY_FIELDS): Redefine.
2001         (REGISTRY_ACCESS_FIELD): New macro.
2002         (DEFINE_REGISTRY): Add ACCESS argument.  Update defined
2003         functions.
2004
2005 2012-08-22  Tom Tromey  <tromey@redhat.com>
2006
2007         * auto-load.c (_initialize_auto_load): Update.
2008         * solib-svr4.c (_initialize_svr4_solib): Update
2009         * solib-dsbt.c (_initialize_dsbt_solib): Update.
2010         * solib-darwin.c (_initialize_darwin_solib): Update.
2011         * registry.h: New file.
2012         * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2013         * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2014         * progspace.h: Include registry.h.  Use DECLARE_REGISTRY.
2015         (register_program_space_data_with_cleanup)
2016         (register_program_space_data, program_space_alloc_data)
2017         (clear_program_space_data, set_program_space_data)
2018         (program_space_data): Don't declare.
2019         * progspace.c: Use DEFINE_REGISTRY.
2020         (struct program_space_data, struct
2021         program_space_data_registration, struct
2022         program_space_data_registry, program_space_data_registry)
2023         (register_program_space_data_with_cleanup)
2024         (register_program_space_data, program_space_alloc_data)
2025         (program_space_free_data, clear_program_space_data)
2026         (set_program_space_data, program_space_data): Remove.
2027         * objfiles.h: Include registry.h.  Use DECLARE_REGISTRY.
2028         (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2029         (register_objfile_data_with_cleanup, register_objfile_data)
2030         (clear_objfile_data, set_objfile_data, objfile_data): Don't
2031         declare.
2032         * objfiles.c: Use DEFINE_REGISTRY.
2033         (struct objfile_data, struct objfile_data_registration, struct
2034         objfile_data_registry, objfile_data_registry)
2035         (register_objfile_data_with_cleanup, register_objfile_data)
2036         (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2037         (set_objfile_data, objfile_data): Remove.
2038         (_initialize_objfiles): Update.
2039         * jit.c (_initialize_jit): Update.
2040         * inflow.c (_initialize_inflow): Update.
2041         * inferior.h: Include registry.h.  Use DECLARE_REGISTRY.
2042         (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2043         (register_inferior_data_with_cleanup, register_inferior_data)
2044         (clear_inferior_data, set_inferior_data, inferior_data): Don't
2045         declare.
2046         * inferior.c: Use DEFINE_REGISTRY.
2047         (struct inferior_data, struct inferior_data_registration, struct
2048         inferior_data_registry, inferior_data_registry)
2049         (register_inferior_data_with_cleanup, register_inferior_data)
2050         (inferior_alloc_data, inferior_free_data  clear_inferior_data)
2051         (set_inferior_data, inferior_data): Remove.
2052         * auxv.c (_initialize_auxv): Update.
2053         * ada-lang.c (_initialize_ada_language): Update.
2054         * breakpoint.c (_initialize_breakpoint): Update.
2055         * i386-nat.c (i386_use_watchpoints): Update.
2056
2057 2012-08-22  Tom Tromey  <tromey@redhat.com>
2058
2059         * exec.c (exec_close, exec_file_attach): Update.
2060         (add_to_section_table): Initialize 'key' field.
2061         (add_target_sections, remove_target_sections): Add 'key' argument.
2062         * exec.h (add_target_sections, remove_target_sections): Add
2063         'key' argument.
2064         * solib.c (solib_map_sections, update_solib_list, clear_solib)
2065         (reload_shared_libraries_1): Update.
2066         * target.h (struct target_section) <key>: New field.
2067
2068 2012-08-22  Tom Tromey  <tromey@redhat.com>
2069
2070         * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2071
2072 2012-08-21  Pierre Muller  <muller@ics.u-strasbg.fr>
2073
2074         * symfile.c (allocate_symtab): Use host_address_to_string
2075         function instead of cast of pointer to long which is not
2076         compatible with x86_64-w64-mingw32 build.
2077
2078 2012-08-19  Andrew Pinski  <apinski@cavium.com>
2079
2080         * mips-tdep.c (is_octeon): New function.
2081         (is_octeon_bbit_op): New function.
2082         (mips32_next_pc): Handle Octeon's bbit instructions.
2083         (mips32_instruction_has_delay_slot): Likewise.
2084
2085 2012-08-19  Andrew Pinski  <apinski@cavium.com>
2086
2087         * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2088         before the function.
2089
2090 2012-08-19  Andrew Pinski  <apinski@cavium.com>
2091
2092         * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2093
2094 2012-08-19  Keith Seitz  <keiths@redhat.com>
2095
2096         PR c++/14365
2097         * c-typeprint.c (c_type_print_varspec_prefix): Pass
2098         -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2099
2100 2012-08-18  Eli Zaretskii  <eliz@gnu.org>
2101
2102         * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2103         The typo broke "make TAGS".
2104
2105 2012-08-17  Joel Brobecker  <brobecker@adacore.com>
2106
2107         GDB 7.5 released.
2108
2109 2012-08-17  Keith Seitz  <keiths@redhat.com>
2110
2111         PR c++/13356
2112         * gdbtypes.c (strict_type_checking): New variable.
2113         (show_strict_type_checking): New function.
2114         (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2115         if strict type checking is disabled.
2116         (_initialize_gdbtypes): Add "check type" subcommand.
2117         * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2118
2119 2012-08-17  Keith Seitz  <keiths@redhat.com>
2120
2121         * language.h (type_mode): Remove.
2122         (type_check): Remove.
2123         (struct language_defn): Remove la_type_check.
2124         (STRICT_TYPE): Remove unused macro.
2125         (type_error): Remove.
2126         * language.c (set_type_range_case): Renamed to ...
2127         (set_range_case): ... this.  Update all callers.
2128         Remove type_mode/type_check.
2129         (type_mode): Remove.
2130         (type_check): Remove.
2131         (show_type_command): Remove.
2132         (set_type_command): Remove.
2133         (language_info): Remove type checking output.
2134         (type_error): Remove unused function.
2135         (range_error): Update comment.
2136         (unknown_language_defn): Remove la_type_check.
2137         (auto_language_defn): Likewise.
2138         (local_language_defn): Likewise.
2139         (_initialize_language): Remove "check type" subcommand.
2140         * ada-lang.c (ada_language_defn): Remove la_type_check.
2141         * c-lang.c (c_language_defn): Likewise.
2142         (cplus_language_defn): Likewise.
2143         (asm_language_defn): Likewise.
2144         (minimal_language_defn): Likewise.
2145         * d-lang.c (d_language_defn): Likewise.
2146         * f-lang.c (f_language_defn): Likewise.
2147         * go-lang.c (go_language_defn): Likewise.
2148         * jv-lang.c (java_language_defn): Likewise.
2149         * m2-lang.c (m2_language_defn): Likewise.
2150         * objc-lang.c (objc_language_defn): Likewise.
2151         * opencl-lang.c (opencl_language_defn): Likewise.
2152         * p-lang.c (pascal_language_defn): Likewise.
2153
2154 2012-08-16  Mike Frysinger  <vapier@gentoo.org>
2155
2156         * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2157
2158 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
2159
2160         * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2161         New function.
2162         (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2163         using the regache.  Use ia64_hpux_get_register_from_save_state_t
2164         to access the bsp and bspstore registers if not.
2165
2166 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
2167
2168         * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2169         * breakpoint.c (detach_breakpoints): Change pid parameter into
2170         a ptid.  Adjust code accordingly.
2171         * infrun.c (handle_inferior_event): Delete variable child_pid.
2172         Update call to detach_breakpoints to pass the child ptid for
2173         fork events.
2174         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2175         assert that inferior_ptid's lwp is zero.
2176         (linux_handle_extended_wait): Update call to detach_breakpoints.
2177         * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2178         detach_breakpoints.
2179
2180 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
2181
2182         * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2183         parent, only call detach_breakpoints if tts.tts_event ==
2184         TTEVT_VFORK.
2185
2186 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
2187
2188         * dwarf2-frame.c (dwarf2_frame_cache): Use
2189         get_frame_address_in_block instead of get_frame_pc as
2190         the bound for executing the frame's FDE.
2191
2192 2012-08-16  Yao Qi  <yao@codesourcery.com>
2193
2194         * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2195         * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2196         * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2197         (c_type_print_varspec_suffix): Likewise.
2198         * eval.c (evaluate_subexp_standard): Likewise.
2199         * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2200         (f_type_print_varspec_suffix): Likewise.
2201         * gdbtypes.c (is_scalar_type): Likewise.
2202         (recursive_dump_type): Likewise.
2203         * infcall.c (value_arg_coerce): Likewise.
2204         * m2-valprint.c (m2_val_print): Likewise.
2205         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2206         (pascal_type_print_varspec_suffix): Likewise.
2207         (pascal_type_print_base): Likewise.
2208         * p-valprint.c (pascal_val_print): Likewise.
2209         (pascal_val_print): Likewise.
2210         * valops.c (value_slice): Likewise.
2211         * valprint.c (scalar_type_p): Likewise.
2212         * valarith.c (value_bitstring_subscript): Remove.
2213         (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2214         Remove comment on TYPE_CODE_BITSTRING.
2215
2216         * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2217         TYPE_CODE_BITSTRING.
2218
2219         * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2220         slot 0.
2221
2222 2012-08-16  Yao Qi  <yao@codesourcery.com>
2223
2224         * tracepoint.c (trace_find_none_command): Remove.
2225         (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2226
2227 2012-08-16  Yao Qi  <yao@codesourcery.com>
2228
2229         * remote.c (handle_notification): Remove parameter 'length'.
2230         (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2231
2232 2012-08-15  Keith Seitz  <keiths@redhat.com>
2233
2234         * gdbtypes.c (opaque_type_resolution): Make static.
2235         Add missing comment.
2236         (overload_debug): Add missing comment.
2237         (show_opaque_type_resolution): Likewise.
2238         (show_overload_debug): Likewise.
2239         (print_bit_vector): Remove unnecessary forward declaration.
2240         (print_arg_types): Likewise.
2241         (dump_fn_fieldlists): Likewise.
2242         (print_cplus_stuff): Likewise.
2243
2244 2012-08-15  Tom Tromey  <tromey@redhat.com>
2245
2246         * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2247         (gdb_bfd_ref): Initialize new field.
2248         (gdb_bfd_unref): Unref the archive BFD.
2249         (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2250         parent archive.
2251
2252 2012-08-15  Tom Tromey  <tromey@redhat.com>
2253
2254         PR python/14387:
2255         * python/py-bpevent.c (create_breakpoint_event_object): Update
2256         comment.
2257         * python/py-event.c (evpy_add_attribute): Update comment.
2258         * python/py-exitedevent.c (create_exited_event_object): Fix
2259         reference counting and error handling.
2260         * python/py-newobjfileevent.c (create_new_objfile_event_object):
2261         Fix reference counting.
2262         * python/py-signalevent.c (create_signal_event_object): Fix
2263         reference counting and error handling.
2264         * python/py-stopevent.c (emit_stop_event): Fix reference
2265         counting.
2266         * python/py-threadevent.c (get_event_thread): Return a
2267         borrowed reference.
2268         * python/py-type.c (convert_field): Fix reference counting.
2269
2270 2012-08-15  Tom Tromey  <tromey@redhat.com>
2271
2272         * dwarf2read.c (dwarf_decode_macro_bytes)
2273         <DW_MACRO_GNU_transparent_include>: Use pointer to included data
2274         as hash key.
2275
2276 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
2277
2278         * infcmd.c (_initialize_infcmd): Update help text for the signal,
2279         stepi, nexti, finish, next, step, jump, and continue commands.
2280         * infrun.c (_initialize_infrun): Update help text for the handle
2281         command.
2282
2283 2012-08-14  Doug Evans  <dje@google.com>
2284
2285         * gdbtypes.c (struct extra): Delete, unused.
2286
2287         * gdbtypes.c: Whitespace cleanup.
2288         (address_space_name_to_int): Remove "extern" from definition.
2289         (_initialize_gdbtypes): Declare with initialize_file_ftype.
2290
2291         * gdbtypes.c (make_pointer_type): Remove redundant setting of
2292         TYPE_POINTER_TYPE (type).
2293
2294 2012-08-14  Gary Benson  <gbenson@redhat.com>
2295
2296         * solib-svr4.c (svr4_free_library_list): Use free_so.
2297
2298 2012-08-13  Mike Frysinger  <vapier@gentoo.org>
2299
2300         * .gitignore: Add go-exp.c.
2301
2302 2012-08-13  Doug Evans  <dje@google.com>
2303
2304         * value.c (show_convenience): Tweak comment.
2305         (_initialize_values): Mention convenience functions in the help text
2306         for "show convenience".
2307
2308 2012-08-13  Yao Qi  <yao@codesourcery.com>
2309
2310         * std-operator.def: Remove TERNOP_SLICE_COUNT.
2311         * breakpoint.c (watchpoint_exp_is_const): Remove handling to
2312         TERNOP_SLICE_COUNT.
2313         * eval.c (evaluate_subexp_standard): Likewise.
2314         * expprint.c (print_subexp_standard): Likewise.
2315         (dump_subexp_body_standard): Likewise.
2316         * parse.c (operator_length_standard): Likewise.
2317
2318 2012-08-13  Yao Qi  <yao@codesourcery.com>
2319
2320         * std-operator.def: Remove OP_BITSTRING.
2321         * breakpoint.c (watchpoint_exp_is_const): Update.
2322         * eval.c (evaluate_subexp_standard): Remove handling to
2323         OP_BITSTRING.
2324         * expprint.c (print_subexp_standard): Likewise.
2325         (dump_subexp_body_standard): Likewise.
2326         * parse.c (operator_length_standard): Likewise.
2327         * valops.c (value_bitstring): Remove.
2328         * value.h: Remove the declaration of 'value_bitstring'.
2329
2330 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
2331
2332         * linespec.c (find_methods): Remove unused variables `i1' and
2333         `name_len'.
2334         (decode_line_full): Likewise for `arg_start'.
2335
2336 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
2337
2338         * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2339         (zlib_decompress_section): Likewise for `section_data'.
2340         (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2341
2342 2012-08-10  Doug Evans  <dje@google.com>
2343
2344         Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2345         * NEWS: Document them.
2346         * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2347         function/strfns.py.
2348         * python/py-type.c (typy_array_1): New function.
2349         (typy_array): Call it.
2350         (typy_vector): New function.
2351         (type_object_methods): Add "vector".
2352         * python/lib/gdb/function/__init__.py: New file.
2353         * python/lib/gdb/function/strfns.py: New file.
2354
2355 2012-08-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
2356
2357         * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2358         for TYPE_FIELD_BITPOS.
2359         (typy_get_sizeof): Likewise for TYPE_LENGTH.
2360
2361 2012-08-10  Mike Frysinger  <vapier@gentoo.org>
2362
2363         PR cli/10436:
2364         * common/vec.h (VEC_merge): Define.
2365         (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2366         (DEF_VEC_ALLOC_FUNC_P): Likewise.
2367         (DEF_VEC_ALLOC_FUNC_O): Likewise.
2368         * completer.c: Include gdb_signals.h.
2369         (signal_completer): Define.
2370         * completer.h (signal_completer): Add prototype.
2371         * infcmd.c (_initialize_infcmd): Assign the command
2372         completer for "signal" to handle_completer.
2373         * infrun.c: Include completer.h.
2374         (handle_completer): Define.
2375         (_initialize_infrun): Declare a new local variable c.  Store the
2376         result of add_com("handle") to it.  Assign the command
2377         completer for "handle" to handle_completer.
2378
2379 2012-08-09  Yao Qi  <yao@codesourcery.com>
2380
2381         * cli/cli-decode.c (set_cmd_prefix): New.
2382         (lookup_cmd_for_prefixlist): New.
2383         (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2384         of each cmd_list_element in *prefixlist.
2385         (add_setshow_cmd_full): set_cmd_prefix.
2386         (add_alias_cmd): Likewise.
2387         * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2388         Declare 'auto_boolean_enums'.
2389         * cli/cli-setshow.c: Include "observer.h".
2390         (notify_command_param_changed_p): New.
2391         (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2392         Remove 'static'.
2393         (do_setshow_command): Split it to ...
2394         (do_set_command, do_show_command): ... them.  New.
2395         (do_set_command): Call observer_notify_command_param_changed if
2396         notify_command_param_changed_p returns true.
2397         (cmd_show_list): Caller update.
2398         * auto-load.c (set_auto_load_cmd): Likewise.
2399         * remote.c (show_remote_cmd): Likewise.
2400         * cli/cli-setshow.h: Update declarations.
2401         * top.c (execute_command): Call do_set_command and do_show_command.
2402
2403         * NEWS: Mention new MI notification.
2404         * mi/mi-interp.c: Declare mi_command_param_changed.
2405         (mi_interpreter_init): Attach mi_command_param_changed to
2406         observer command_param_changed.
2407         (mi_command_param_changed): New.
2408         Remove mi_suppress_breakpoint_notifications.
2409         Define global variable mi_suppress_notification.
2410         (mi_breakpoint_created): Update.
2411         (mi_breakpoint_deleted): Likewise.
2412         (mi_breakpoint_modified): Likewise.
2413         * mi/mi-main.c (mi_cmd_execute): Likewise.  Check command
2414         'gdb-set' and set mi_suppress_notification.
2415         * mi/mi-main.h: (mi_suppress_notification): New struct.
2416
2417 2012-08-09  Andreas Tobler  <andreast@fgznet.ch>
2418             Jan Kratochvil  <jan.kratochvil@redhat.com>
2419
2420         * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2421
2422 2012-08-09  Yao Qi  <yao@codesourcery.com>
2423
2424         * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2425         (skiplist): Move it to skip.c.
2426         (init_cmd_lists): Remove code setting enablebreaklist and
2427         skiplist to NULL.
2428         * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2429         * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2430         skiplist.
2431         * gdbcmd.h: Likewise.
2432         * skip.c (_initialize_step_skip): Move 'skiplist' from
2433         cli/cli-cmds.c.
2434
2435 2012-08-09  Yao Qi  <yao@codesourcery.com>
2436
2437         * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2438         * gnu-nat.c, symfile.c: Likewise.
2439
2440 2012-08-08  Aaron Gamble  <agamble@google.com>
2441
2442         * utils.c (prompt_for_continue_wait_time): New static global.
2443         (make_command_stats_cleanup): Initialize it.
2444         (report_command_stats): Subtract time waiting for user.
2445         (prompt_for_continue): Track time waiting for user.
2446         (defaulted_query): Track time waiting for user.
2447
2448 2012-08-08  Doug Evans  <dje@google.com>
2449
2450         * eval.c (evaluate_subexp_standard): Fix thinko in handling
2451         UNOP_MEMVAL_TYPE.
2452         * expprint.c (print_subexp_standard, case OP_TYPE): New.
2453         (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2454         (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2455         (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2456         (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2457         (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2458         elt.
2459         (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2460         (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2461         (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2462         (dump_prefix_expression): Handle OP_TYPE.
2463
2464 2012-08-08  Keith Seitz  <keiths@redhat.com>
2465
2466         * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2467         addr_start.
2468
2469 2012-08-08  Doug Evans  <dje@google.com>
2470
2471         * linux-thread-db.c: #include "gdb_vecs.h".
2472         (try_thread_db_load_from_pdir_1): New arg "subdir".  All callers
2473         updated.
2474         (try_thread_db_load_from_pdir): New arg "subdir".  All callers updated.
2475         (thread_db_load_search): Use a vector to iterate over path elements.
2476         Handle text appearing after "$pdir".
2477
2478         * gdb_string.h: Moved to ...
2479         * common/gdb_string.h: ... here.
2480         * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2481         gdb_string.h and gdb_assert.h.
2482
2483 2012-08-08  Yao Qi  <yao@codesourcery.com>
2484
2485         * tic6x-tdep.c (tic6x_register_to_value): Remove.
2486         (tic6x_value_to_register): Likewise.
2487         (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2488         and set_gdbarch_value_to_register.
2489
2490 2012-08-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
2491             Jean-Marc Saffroy  <saffroy@gmail.com>
2492
2493         PR 11804
2494         * defs.h (find_memory_region_ftype): New comment.  New arg modified.
2495         * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2496         * gcore.c (gcore_create_callback): New function comment.  Add modified
2497         parameter.  Only write modified regions.  Set SEC_READONLY exactly
2498         according to MODIFIED.
2499         (objfile_find_memory_regions): Ignore separate debug info files.  Ass
2500         the passed modified value to FUNC.
2501         * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2502         * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2503         first.  New variables modified and has_anonymous.  Parse the lines of
2504         smaps file.  Add the passed MODIFIED value to FUNC.
2505         * procfs.c (find_memory_regions_callback): Add the passed modified
2506         value.
2507
2508 2012-08-06  Tom Tromey  <tromey@redhat.com>
2509
2510         * dwarf2-frame.c (clear_pointer_cleanup): New function.
2511         (dwarf2_frame_cache): Use it.
2512         * frame-unwind.h (frame_sniffer_ftype): Document prologue
2513         cache initialization constraint.
2514
2515 2012-08-06  Tom Tromey  <tromey@redhat.com>
2516
2517         PR python/14386:
2518         * varobj.c (update_dynamic_varobj_children): Don't call
2519         PyIter_Check.
2520
2521 2012-08-06  Tom Tromey  <tromey@redhat.com>
2522
2523         PR cli/14392:
2524         * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2525
2526 2012-08-06  Nathaniel Flath  <flat0103@gmail.com>
2527
2528         * NEWS: New entry for 'cd' default parameters.
2529         * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2530
2531 2012-08-03  Tom Tromey  <tromey@redhat.com>
2532
2533         * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2534         return.
2535
2536 2012-08-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
2537
2538         * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2539         to attempting lseek/write.
2540         (inf_child_fileio_pread): Likewise for pread.
2541
2542 2012-08-02  Yao Qi  <yao@codesourcery.com>
2543
2544         * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2545         (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2546         add_setshow_zinteger_cmd.
2547         * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2548         * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2549         (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2550         instead of add_setshow_zinteger_cmd.
2551         * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2552         (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2553         instead of add_setshow_zinteger_cmd.
2554         * frame.c (frame_debug): Add 'unsigned'.
2555         (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2556         add_setshow_zinteger_cmd.
2557         * frame.h: Update the declaration of 'frame_debug'.
2558         * gdbtypes.c (overload_debug): Add 'unsigned'.
2559         (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2560         add_setshow_zinteger_cmd.
2561         * inferior.h: Update declaration of 'debug_infrun'.
2562         * infrun.c (debug_infrun): Add 'unsigned'.
2563         (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2564         add_setshow_zinteger_cmd.
2565         * jit.c (jit_debug): Add 'unsigned'.
2566         (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2567         add_setshow_zinteger_cmd.
2568         * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2569         (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2570         instead of add_setshow_zinteger_cmd.
2571         * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2572         (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2573         add_setshow_zinteger_cmd.
2574         * machoread.c (mach_o_debug_level): Add 'unsigned'.
2575         (_initialize_machoread): Call add_setshow_zuinteger_cmd
2576         instead of add_setshow_zinteger_cmd.
2577         * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2578         * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2579         (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2580         intead of add_setshow_zinteger_cmd.
2581         * mips-tdep.c (mips_debug): Add 'unsigned'.
2582         (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2583         instead of add_setshow_zinteger_cmd.
2584         * monitor.c (monitor_debug): Add 'unsigned'.
2585         (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2586         add_setshow_zinteger_cmd.
2587         * observer.c (observer_debug): Add 'unsigned'.
2588         (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2589         add_setshow_zinteger_cmd.
2590         * parse.c (expressiondebug): Add 'unsigned'.
2591         (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2592         add_setshow_zinteger_cmd.
2593         * record.c (record_debug): Add 'unsigned'.
2594         (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2595         add_setshow_zinteger_cmd.
2596         * record.h: Update the declaration of 'record_debug'.
2597         * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2598         (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2599         add_setshow_zinteger_cmd.
2600         * serial.c (global_serial_debug_p): Add 'unsigned'.
2601         (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2602         add_setshow_zinteger_cmd.
2603         * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2604         (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2605         add_setshow_zinteger_cmd.
2606         * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2607         (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2608         add_setshow_zinteger_cmd.
2609         * target.c (targetdebug): Add 'unsigned'.
2610         (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2611         add_setshow_zinteger_cmd.
2612         * valops.c (overload_debug): Add 'unsigned'.
2613         * varobj.c (varobjdebug): Add 'unsigned'.
2614         (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2615         add_setshow_zinteger_cmd.
2616         * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2617         (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2618         instead of add_setshow_zinteger_cmd.
2619
2620         * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2621         * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2622         (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2623         instead of add_setshow_zinteger_cmd.
2624         * gdbarch.c, gdbarch.h: Re-generated.
2625
2626 2012-08-02  Yao Qi  <yao@codesourcery.com>
2627
2628         * nto-tdep.c: Don't include cli/cli-decode.h and
2629         cli/cli-cmds.h.
2630         (_initialize_nto_tdep): Remove.
2631         * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2632         Remove field.
2633         Remove macro nto_internal_debugging.
2634
2635 2012-08-01  Richard Henderson  <rth@redhat.com>
2636
2637         * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2638         (mep-*-*) [gdb_target_obs]: Likewise.
2639
2640 2012-07-31  Andreas Schwab  <schwab@linux-m68k.org>
2641
2642         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2643         linux_get_siginfo_type.
2644
2645 2012-07-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
2646
2647         * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2648         AT_ENTRY_POINT.
2649         (call_function_by_hand) <ON_STACK>: Call write_memory with
2650         gdbarch_breakpoint_from_pc, if possible.
2651         (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2652         here.
2653
2654 2012-07-31  Yao Qi  <yao@codesourcery.com>
2655
2656         * tracepoint.c: Add 'static' for some variables.
2657
2658 2012-07-31  Yao Qi  <yao@codesourcery.com>
2659
2660         * go32-nat.c: Declare _initialize_go32_nat.
2661         * ser-go32.c: Declare _initialize_ser_dos.
2662         * top.c (do_chdir_cleanup): Add 'static'.
2663
2664 2012-07-30  Keith Seitz  <keiths@redhat.com>
2665
2666         * linespec.c (linespec_lex_number): A number followed
2667         by quotes is a valid number, too.
2668
2669 2012-07-30  Tom Tromey  <tromey@redhat.com>
2670
2671         * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2672
2673 2012-07-30  Ulrich Weigand  <ulrich.weigand@linaro.org>
2674
2675         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2676         attempt to 4-byte-align HW breakpoint addresses for Thumb.
2677
2678 2012-07-30  Andrew Burgess  <aburgess@broadcom.com>
2679
2680         * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2681         invalid or reevaluated to prevent prevent references to possibly
2682         delete'd type objects being left in the varobj.
2683
2684 2012-07-27  Tom Tromey  <tromey@redhat.com>
2685             Jan Kratochvil  <jan.kratochvil@redhat.com>
2686
2687         * copying.awk: Print buffer-read-only and vi ro markers.
2688         * copying.c: Rebuild.
2689         * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2690         * gdbarch.c, gdbarch.h: Rebuild.
2691         * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2692         buffer-read-only and vi ro markers.
2693         * features/arm-with-iwmmxt.c: Rebuild.
2694         * features/arm-with-m-fpa-layout.c: Rebuild.
2695         * features/arm-with-m-vfp-d16.c: Rebuild.
2696         * features/arm-with-m.c: Rebuild.
2697         * features/arm-with-neon.c: Rebuild.
2698         * features/arm-with-vfpv2.c: Rebuild.
2699         * features/arm-with-vfpv3.c: Rebuild.
2700         * features/i386/amd64-avx-linux.c: Rebuild.
2701         * features/i386/amd64-avx.c: Rebuild.
2702         * features/i386/amd64-linux.c: Rebuild.
2703         * features/i386/amd64.c: Rebuild.
2704         * features/i386/i386-avx-linux.c: Rebuild.
2705         * features/i386/i386-avx.c: Rebuild.
2706         * features/i386/i386-linux.c: Rebuild.
2707         * features/i386/i386-mmx-linux.c: Rebuild.
2708         * features/i386/i386-mmx.c: Rebuild.
2709         * features/i386/i386.c: Rebuild.
2710         * features/i386/x32-avx-linux.c: Rebuild.
2711         * features/i386/x32-avx.c: Rebuild.
2712         * features/i386/x32-linux.c: Rebuild.
2713         * features/i386/x32.c: Rebuild.
2714         * features/mips-dsp-linux.c: Rebuild.
2715         * features/mips-linux.c: Rebuild.
2716         * features/mips64-dsp-linux.c: Rebuild.
2717         * features/mips64-linux.c: Rebuild.
2718         * features/rs6000/powerpc-32.c: Rebuild.
2719         * features/rs6000/powerpc-32l.c: Rebuild.
2720         * features/rs6000/powerpc-403.c: Rebuild.
2721         * features/rs6000/powerpc-403gc.c: Rebuild.
2722         * features/rs6000/powerpc-405.c: Rebuild.
2723         * features/rs6000/powerpc-505.c: Rebuild.
2724         * features/rs6000/powerpc-601.c: Rebuild.
2725         * features/rs6000/powerpc-602.c: Rebuild.
2726         * features/rs6000/powerpc-603.c: Rebuild.
2727         * features/rs6000/powerpc-604.c: Rebuild.
2728         * features/rs6000/powerpc-64.c: Rebuild.
2729         * features/rs6000/powerpc-64l.c: Rebuild.
2730         * features/rs6000/powerpc-7400.c: Rebuild.
2731         * features/rs6000/powerpc-750.c: Rebuild.
2732         * features/rs6000/powerpc-860.c: Rebuild.
2733         * features/rs6000/powerpc-altivec32.c: Rebuild.
2734         * features/rs6000/powerpc-altivec32l.c: Rebuild.
2735         * features/rs6000/powerpc-altivec64.c: Rebuild.
2736         * features/rs6000/powerpc-altivec64l.c: Rebuild.
2737         * features/rs6000/powerpc-cell32l.c: Rebuild.
2738         * features/rs6000/powerpc-cell64l.c: Rebuild.
2739         * features/rs6000/powerpc-e500.c: Rebuild.
2740         * features/rs6000/powerpc-e500l.c: Rebuild.
2741         * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2742         * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2743         * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2744         * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2745         * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2746         * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2747         * features/rs6000/powerpc-vsx32.c: Rebuild.
2748         * features/rs6000/powerpc-vsx32l.c: Rebuild.
2749         * features/rs6000/powerpc-vsx64.c: Rebuild.
2750         * features/rs6000/powerpc-vsx64l.c: Rebuild.
2751         * features/rs6000/rs6000.c: Rebuild.
2752         * features/s390-linux32.c: Rebuild.
2753         * features/s390-linux32v1.c: Rebuild.
2754         * features/s390-linux32v2.c: Rebuild.
2755         * features/s390-linux64.c: Rebuild.
2756         * features/s390-linux64v1.c: Rebuild.
2757         * features/s390-linux64v2.c: Rebuild.
2758         * features/s390x-linux64.c: Rebuild.
2759         * features/s390x-linux64v1.c: Rebuild.
2760         * features/s390x-linux64v2.c: Rebuild.
2761         * features/tic6x-c62x-linux.c: Rebuild.
2762         * features/tic6x-c62x.c: Rebuild.
2763         * features/tic6x-c64x-linux.c: Rebuild.
2764         * features/tic6x-c64x.c: Rebuild.
2765         * features/tic6x-c64xp-linux.c: Rebuild.
2766         * features/tic6x-c64xp.c: Rebuild.
2767
2768 2012-07-27  Tom Tromey  <tromey@redhat.com>
2769
2770         * c-exp.y (classify_name): Avoid assignment in condition.
2771
2772 2012-07-27  Roland Schwingel  <roland.schwingel@onevision.com>
2773
2774         * amd64-windows-tdep.c: Include "frame.h".
2775         (amd64_windows_skip_trampoline_code): New function.
2776         (amd64_windows_init_abi): Add trampoline registration.
2777
2778 2012-07-27  Yao Qi  <yao@codesourcery.com>
2779
2780         * tracepoint.c (cur_traceframe_number): Remove.
2781         (set_tfile_traceframe): Remove.
2782         (tfile_trace_find, tfile_fetch_registers): Update callers.
2783         (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2784         (tfile_open, tfile_trace_find): Likewise.
2785
2786 2012-07-27  Yao Qi  <yao@codesourcery.com>
2787
2788         * thread.c (switch_to_thread): Don't call registers_changed.
2789
2790 2012-07-26  Tom Tromey  <tromey@redhat.com>
2791
2792         * Makefile.in (SFILES): Remove objc-exp.y.
2793         (YYFILES): Remove objc-exp.c.
2794         (YYOBJ): Remove objc-exp.o.
2795         (local-maintainer-clean): Don't mention objc-exp.c.
2796         * c-exp.y: Include objc-lang.h.
2797         (%union) <class>: New field.
2798         (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2799         (exp): Clone subscript production for OBJC_LBRAC.  Add various
2800         Objective C productions.
2801         (msglist, msgarglist, msgarg): New productions.
2802         (array_mod, func_mod, operator): Clone productions for
2803         OBJC_LBRAC.
2804         (parse_string_or_char): Handle '@' strings.
2805         (lex_one_token): Return OBJC_LBRAC.  Recognize @selector.
2806         (classify_name): Check la_name_of_this.  Recognize ObjC class
2807         names.
2808         * objc-exp.y: Remove.
2809         * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2810         * objc-lang.h (objc_parse, objc_error): Don't declare.
2811
2812 2012-07-26  Markus Metzger  <markus.t.metzger@intel.com>
2813
2814         * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2815
2816 2012-07-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
2817
2818         * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2819         and decrement.
2820
2821 2012-07-26  Tom Tromey  <tromey@redhat.com>
2822
2823         * copying.c: Rebuild.
2824         * copying.awk: Don't use immediate_quit.  Use 'no_set_class', not
2825         'no_class'.
2826
2827 2012-07-26  Tom Tromey  <tromey@redhat.com>
2828
2829         * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2830         immediate_quit.
2831         (print_objfile_statistics): Likewise.
2832         (maintenance_print_symbols): Likewise.
2833         (maintenance_print_msymbols): Likewise.
2834         (maintenance_print_objfiles): Likewise.
2835         * psymtab.c (print_partial_symbols): Call QUIT.
2836         (maintenance_print_psymbols): Likewise.  Don't modify
2837         immediate_quit.
2838         * copying.c (show_copying_command): Don't modify immediate_quit.
2839         (show_warranty_command): Likewise.
2840         * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2841
2842 2012-07-26  Keith Seitz  <keiths@redhat.com>
2843
2844         * linespec.c (linespec_lexer_lex_number): The input
2845         is also a valid number if the next character is a comma
2846         or colon.
2847
2848 2012-07-26  Joel Brobecker  <brobecker@adacore.com>
2849
2850         * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2851         configure options.
2852
2853 2012-07-26  Tristan Gingold  <gingold@adacore.com>
2854
2855         * machoread.c: Include gdb_bfd.h.
2856
2857 2012-07-26  Tristan Gingold  <gingold@adacore.com>
2858
2859         * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2860         offset.
2861
2862 2012-07-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2863
2864         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2865         SIZE to size_t.
2866         (dwarf2_evaluate_loc_desc): Likewise.
2867         (dwarf2_loc_desc_needs_frame): Likewise.
2868         (locexpr_describe_location_1): Likewise.
2869         * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2870         size_t.
2871         (struct dwarf2_loclist_baton): Likewise.
2872         * dwarf2read.c (struct dwarf_block): Likewise.
2873         (dump_die_shallow): Use pulongest to print dwarf_block.size.
2874         (decode_locdesc): Expand SIZE and I to size_t.
2875
2876 2012-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2877
2878         * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2879
2880 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
2881
2882         * doublest.c (convert_doublest_to_floatformat): If the exponent
2883         is too small, treat the value as zero.  If the exponent is too
2884         large, treat the value as infinity.
2885
2886 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
2887
2888         * configure.ac: Add --enable-lmcheck configure option.
2889         * configure: Regenerate.
2890
2891 2012-07-25  Tom Tromey  <tromey@redhat.com>
2892
2893         * NEWS: Mention maint info bfds.
2894         * gdb_bfd.c (all_bfds): New global.
2895         (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2896         (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2897         New functions.
2898
2899 2012-07-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
2900
2901         * configure.tgt: Add v850*-*-rtems*.
2902
2903 2012-07-25  Tom Tromey  <tromey@redhat.com>
2904
2905         * macrotab.c (macro_bcache_str): Remove cast.
2906
2907 2012-07-25  Hui Zhu  <hui_zhu@mentor.com>
2908
2909         * linespec.c (linespec_lexer_lex_number): Update comments,
2910         change the return and add check to make sure the input is
2911         the decimal numbers.
2912         (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2913         false, call linespec_lexer_lex_string.
2914
2915 2012-07-24  Tom Tromey  <tromey@redhat.com>
2916
2917         * symfile.c (symbol_file_add): Don't open BFD twice.
2918
2919 2012-07-24  Marc Khouzam  <marc.khouzam@ericsson.com>
2920
2921         * breakpoint.c (create_breakpoint): Store condition for pending
2922         breakpoints.
2923
2924 2012-07-24  Andreas Schwab  <schwab@linux-m68k.org>
2925
2926         * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2927         (m68k_return_value): Handle complex types like structures.
2928         (m68k_svr4_return_value): Likewise.
2929
2930 2012-07-24  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2931
2932         * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2933         parameters to bfd_get_section_name.
2934
2935 2012-07-24  Yao Qi  <yao@codesourcery.com>
2936
2937         * cli/cli-setshow.c: Handle case 'var_uinteger'
2938         and 'var_zuninteger' together.  Handle case 'var_integer' and
2939         'var_zinteger' together.
2940
2941 2012-07-23  Keith Seitz  <keiths@redhat.com>
2942
2943         * linespec.c (convert_linespec_to_sal): Don't add
2944         any symbols to the result vector if symbol_to_sal
2945         returns zero.
2946
2947 2012-07-23  Keith Seitz  <keiths@redhat.com>
2948
2949         * linespec.c (decode_objc): Record the function name
2950         in the linespec.
2951
2952 2012-07-23  Tom Tromey  <tromey@redhat.com>
2953
2954         * rs6000-nat.c (add_vmap): Rewrite archive loop.  Fix reference
2955         counting.
2956         * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2957         (map_vmap): Acquire a reference to the BFD.
2958
2959 2012-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
2960
2961         * p-valprint.c (pascal_object_print_value): Replace potentially
2962         unsafe alloca with xmalloc/xfree.
2963         * valops.c (search_struct_method): Likewise.
2964
2965 2012-07-23  Tom Tromey  <tromey@redhat.com>
2966
2967         * solib-svr4.c (enable_break): Update.
2968         * bfd-target.h (target_bfd_reopen): Update documentation.
2969
2970 2012-07-23  Tom Tromey  <tromey@redhat.com>
2971
2972         * symfile.c (separate_debug_file_exists): Update.
2973         (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2974         (reread_symbols): Update.
2975         * elfread.c (build_id_verify): Update.
2976         * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2977         bfd_open_maybe_remote.
2978
2979 2012-07-23  Tom Tromey  <tromey@redhat.com>
2980
2981         * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2982
2983 2012-07-23  Tom Tromey  <tromey@redhat.com>
2984
2985         * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2986         and 'abfd'.
2987         * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2988         and 'abfd'.
2989         * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2990         * machoread.c (macho_add_oso_symfile): Make a cleanup for
2991         'abfd'.
2992         (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2993         * objfiles.c (allocate_objfile): Acquire a new reference.
2994         * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2995         * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2996         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2997         a cleanup for 'nbfd'.
2998         * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2999         for 'nbfd'.
3000         * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3001         make a cleanup for 'abfd'.
3002         (symbol_file_add): Make a BFD cleanup.
3003
3004 2012-07-23  Tom Tromey  <tromey@redhat.com>
3005
3006         * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3007         (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3008         * corelow.c (core_open): Use gdb_bfd_fopen.
3009         * dsrec.c (load_srec): Use gdb_bfd_openr.
3010         * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3011         * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3012         * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3013         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3014         (gdb_bfd_fdopenr): New functions.
3015         * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3016         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3017         (gdb_bfd_fdopenr): Declare.
3018         * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3019         * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3020         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3021         gdb_bfd_openr_next_archived_file.
3022         (macho_check_dsym): Use gdb_bfd_openr.
3023         (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3024         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3025         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3026         * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3027         gdb_bfd_openr.
3028         * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3029         * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3030         gdb_bfd_openr_next_archived_file.
3031         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3032         Use gdb_bfd_openr.
3033         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3034         gdb_bfd_openr.
3035         * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3036         * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3037         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3038         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3039         (symfile_bfd_open): Use gdb_bfd_fopen.
3040         (generic_load): Use gdb_bfd_openr.
3041         * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3042
3043 2012-07-23  Tom Tromey  <tromey@redhat.com>
3044
3045         * bfd-target.c (target_bfd_reopen): Update.
3046         * cli/cli-dump.c (bfd_openr_with_cleanup)
3047         (bfd_openw_with_cleanup): Update.
3048         * corelow.c (core_open): Update.
3049         * dsrec.c (load_srec): Update.
3050         * exec.c (exec_file_attach): Update.
3051         * gcore.c (create_gcore_bfd): Update.
3052         * gdb_bfd.c (gdb_bfd_ref): Return void.
3053         (gdb_bfd_open): Update.
3054         * gdb_bfd.h (gdb_bfd_ref): Return void.
3055         Update comments.
3056         * jit.c (jit_bfd_try_read_symtab): Update.
3057         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3058         * machoread.c (macho_symfile_read_all_oso): Update.
3059         (macho_check_dsym): Update.
3060         * procfs.c (insert_dbx_link_bpt_in_file): Update.
3061         * remote-m32r-sdi.c (m32r_load): Update.
3062         * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3063         * rs6000-nat.c (add_vmap): Update.
3064         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3065         Update.
3066         * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3067         * solib-spu.c (spu_bfd_open): Update.
3068         * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3069         * spu-linux-nat.c (spu_bfd_open): Update.
3070         * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3071         (generic_load): Update.
3072         * windows-nat.c (windows_make_so): Update.
3073
3074 2012-07-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
3075
3076         * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3077
3078 2012-07-20  Jeff Kenton  <jkenton@tilera.com>
3079
3080         * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3081         SIGTRAMP_FRAME unwinding.
3082
3083 2012-07-20  Doug Evans  <dje@google.com>
3084
3085         * NEWS: Document new options "set/show use-deprecated-index-sections",
3086         and delete reference to --use-deprecated-index-sections.
3087         * symfile.h (use_deprecated_index_sections): Delete.
3088         * dwarf2read.c (use_deprecated_index_sections): Make static.
3089         (read_index_from_section): Update wording of how to load
3090         deprecated index sections.
3091         (_initialize_dwarf2_read): New options
3092         "set/show use-deprecated-index-sections".
3093         * main.c (captured_main): Delete --use-deprecated-index-sections.
3094
3095 2012-07-20  Pedro Alves  <palves@redhat.com>
3096
3097         PR threads/11692
3098         PR gdb/12203
3099
3100         * infrun.c (handle_inferior_event) <new thread>: Don't special
3101         case minus_one_ptid.
3102         <TARGET_WAITKIND_SPURIOUS>: Ditto.
3103         * linux-thread-db.c (thread_get_info_callback): Don't return early
3104         if the thread is zombie.
3105         (thread_from_lwp): Change return type to void.  Rewrite stale
3106         comment.
3107         (attach_thread): Don't return early if the thread is zombie,
3108         instead set its "dying" flag.
3109         (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3110         (find_new_threads_callback): Don't return early if the thread is
3111         zombie.
3112
3113 2012-07-20  Pedro Alves  <palves@redhat.com>
3114
3115         * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3116         * target.c (target_wait): Likewise.
3117         (str_comma_list_concat_elem, do_option, target_options_to_string):
3118         New functions.
3119         * target.h (target_options_to_string): Declare.
3120
3121 2012-07-20  Jan Kratochvil <jan.kratochvil@redhat.com>
3122             Tom Tromey  <tromey@redhat.com>
3123
3124         * dwarf2read.c (dwarf_decode_macros)
3125         <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3126         DW_MACRO_GNU_transparent_include_alt>: New cases.
3127         (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3128         DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3129
3130 2012-07-20  Tom Tromey  <tromey@redhat.com>
3131
3132         * dwarf2read.c (try_open_dwo_file): Don't call
3133         gdb_bfd_stash_filename.
3134
3135 2012-07-20  Pedro Alves  <palves@redhat.com>
3136
3137         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3138         (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3139         (i386_process_record): Tweak description comments.
3140
3141 2012-07-20  Pedro Alves  <palves@redhat.com>
3142
3143         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3144         (i386_process_record): Use record_read_memory.
3145         * record.c (record_read_memory): New function.
3146         (record_arch_list_add_mem, record_exec_insn): Use
3147         record_read_memory.
3148         * record.h (record_read_memory): Declare.
3149
3150 2012-07-20  Yao Qi  <yao@codesourcery.com>
3151
3152         * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3153         NULL for xfree.
3154
3155 2012-07-19  Pedro Alves  <palves@redhat.com>
3156
3157         * record.c (record_resume): Ask the target beneath to report all
3158         signals.
3159
3160 2012-07-19  Doug Evans  <dje@google.com>
3161
3162         * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3163         there's no section at address zero.
3164         (dwarf2_record_block_ranges): Ditto.
3165
3166 2012-07-19  Yao Qi  <yao@codesourcery.com>
3167
3168         * command.h, remote.c: Fix a typo in comment.
3169
3170 2012-07-19  Tom Tromey  <tromey@redhat.com>
3171
3172         PR exp/13206:
3173         * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3174         * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3175         OP_DECLTYPE>: New cases.
3176         * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3177         (type_exp): Add new productions.
3178         (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3179         and decltype.
3180         * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3181         New case.
3182         * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3183         OP_DECLTYPE>: New case.
3184         * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3185         New case.
3186         * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3187         * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3188
3189 2012-07-19  Tom Tromey  <tromey@redhat.com>
3190
3191         * c-exp.y (enum token_flags): New.
3192         (struct token) <cxx_only>: Remove.
3193         <flags>: New field.
3194         (tokentab3, tokentab2, ident_tokens): Update.
3195         (lex_one_token): Update.  Handle FLAG_SHADOW.
3196
3197 2012-07-19  Tom Tromey  <tromey@redhat.com>
3198
3199         * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3200         * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3201         UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3202         * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE.  Update
3203         for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.  Use
3204         type_exp production where appropriate.
3205         * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3206         <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3207         <UNOP_MEMVAL_TYPE>: New case.
3208         (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3209         (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3210         * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3211         <UNOP_MEMVAL_TYPE>: New case.
3212         (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3213         UNOP_REINTERPRET_CAST>: Update.
3214         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3215         * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3216         UNOP_REINTERPRET_CAST>: Update.
3217         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3218         * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3219         * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3220         constants.
3221
3222 2012-07-19  Yao Qi  <yao@codesourcery.com>
3223             Jan Kratochvil <jan.kratochvil@redhat.com>
3224
3225         * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3226         and case 'var_optional_filename' together.
3227         * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3228         instead of add_setshow_optional_filename_cmd for setshow command
3229         'args'.  Set completer for 'set args'.
3230
3231 2012-07-18  Doug Evans  <dje@google.com>
3232
3233         * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3234         * common/gdb_vecs.c: New file, contents from utils.c.
3235         * common/host-defs.h: New file, contents from defs.h.
3236         * utils.h: New file, contents from defs.h.
3237         * defs.h: Move all declarations of objects defined in utils.c
3238         to utils.h (except QUIT() and related).
3239         #include "utils.h", "host-defs.h".
3240         * probe.h (probe_p): Move here from gdb_vecs.h.
3241         * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3242         * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3243         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3244         * Makefile.in (SFILES): Add common/gdb_vecs.c.
3245         (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3246         (COMMON_OBS): Add gdb_vecs.o.
3247         (gdb_vecs.o): New rule.
3248
3249 2012-07-18  Keith Seitz  <keiths@redhat.com>
3250
3251         * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3252         parameter.  If non-zero, use SYMNAME as the canonical name
3253         for the SaL.
3254         Update all callers.
3255         (convert_linespec_to_sals): Use add_sal_to_sals for
3256         expressions, too.
3257         (decode_line_full): No need to "fill in missing canonical names"
3258         anymore. Simply make cleanups for the allocated names.
3259
3260 2012-07-18  Keith Seitz  <keiths@redhat.com>
3261
3262         * linespec.c (struct linespec): Constify expression,
3263         source_filename, function_name, and label_name.
3264         (symbol_not_found_error): Make all parameters const.
3265         (linespec_parser_delete): No need to check for NULL
3266         when using xfree. Cast const char * to char * for xfree.
3267
3268 2012-07-18  Keith Seitz  <keiths@redhat.com>
3269
3270         * breakpoint.c (invalid_thread_id_error): New function.
3271         (find_condition_and_thread): Use invalid_thread_id_error.
3272         (watch_command_1): Likewise.
3273
3274 2012-07-18  Tom Tromey  <tromey@redhat.com>
3275
3276         * cc-with-index.sh, cc-with-dwz.sh: Remove.
3277         * contrib/cc-with-tweaks.sh: New file.
3278
3279 2012-07-18  Tom Tromey  <tromey@redhat.com>
3280
3281         * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
3282         (locate_dwz_sections): Recognize .gdb_index.
3283         (create_cus_from_index_list): New function.
3284         (create_cus_from_index): Use it.  Handle .dwz data.
3285         (read_index_from_section): New function, extracted from
3286         dwarf2_read_index.
3287         (dwarf2_read_index): Use it.  Read .gdb_index from dwz file,
3288         if needed.
3289
3290 2012-07-18  Tom Tromey  <tromey@redhat.com>
3291
3292         * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
3293         (struct dwarf2_per_cu_data) <length>: No longer bitfield.
3294         <is_dwz>: New field.
3295         (struct dwz_file): New.
3296         (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
3297         (locate_dwz_sections, dwarf2_get_dwz_file)
3298         (get_abbrev_section_for_cu): New functions.
3299         (error_check_comp_unit_head, read_and_check_comp_unit_head)
3300         (read_and_check_type_unit_head): Add abbrev_section argument.
3301         (create_debug_types_hash_table): Update.
3302         (init_cutu_and_read_dies): Use proper abbrev section.
3303         (init_cutu_and_read_dies_no_follow): Likewise.
3304         (set_partial_user): Do nothing if PST==NULL.
3305         (read_comp_units_from_section): New function.
3306         (create_all_comp_units): Use it.
3307         (scan_partial_symbols, partial_die_parent_scope): Update.
3308         (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3309         (process_imported_unit_die, read_partial_die): Handle .dwz files.
3310         (find_partial_die): Add offset_in_dwz argument.  Update.
3311         (guess_partial_die_structure_name, fixup_partial_die): Update.
3312         (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
3313         DW_FORM_GNU_strp_alt.
3314         (read_indirect_string_from_dwz): New function.
3315         (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
3316         (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3317         (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
3318         (follow_die_offset): Add offset_in_dwz argument.
3319         (follow_die_ref, dwarf2_fetch_die_location_block): Update.
3320         (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
3321         (dwarf_decode_macro_bytes): Add section_is_dwz argument.
3322         Handle new macro forms.
3323         (dwarf_decode_macros): Update.
3324         (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
3325         (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
3326         (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
3327         (create_debug_types_hash_table): Use correct abbrev section.
3328         (get_debug_line_section): New function.
3329         (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
3330         (process_full_comp_unit): Pass 'required' argument to
3331         end_symtab_get_static_block.
3332         * buildsym.h (end_symtab_get_static_block): Update.
3333         * buildsym.c (end_symtab_get_static_block): Add 'required'
3334         argument.
3335         (end_symtab, end_expandable_symtab): Update.
3336
3337 2012-07-18  Tom Tromey  <tromey@redhat.com>
3338
3339         * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3340         (pagesize): Remove.
3341         (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3342         (zlib_decompress_section): Remove.
3343         (dwarf2_read_section): Use gdb_bfd_map_section.
3344         (munmap_section_buffer): Remove.
3345         (free_dwo_file, dwarf2_per_objfile_free): Don't use
3346         munmap_section_buffer.
3347         * gdb_bfd.c: Include zlib.h, sys/mman.h.
3348         (struct gdb_bfd_section_data): New.
3349         (free_one_bfd_section): New function.
3350         (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3351         (get_section_descriptor, zlib_decompress_section)
3352         (gdb_bfd_map_section): New functions.
3353         * gdb_bfd.h (gdb_bfd_map_section): Declare.
3354
3355 2012-07-18  Tom Tromey  <tromey@redhat.com>
3356
3357         * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3358
3359 2012-07-18  Tom Tromey  <tromey@redhat.com>
3360
3361         * gdb_bfd.c (struct gdb_bfd_data): New.
3362         (gdb_bfd_cache): New global.
3363         (struct gdb_bfd_cache_search): New.
3364         (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3365         (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3366         * gdb_bfd.h (gdb_bfd_open): Declare.
3367
3368 2012-07-18  Tom Tromey  <tromey@redhat.com>
3369
3370         * utils.c (make_cleanup_bfd_unref): Rename from
3371         make_cleanup_bfd_close.
3372         * defs.h (make_cleanup_bfd_unref): Rename from
3373         make_cleanup_bfd_close.
3374         * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3375         (bfd_openw_with_cleanup): Update.
3376         * corelow.c (core_open): Update.
3377         * dsrec.c (load_srec): Update.
3378         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3379         * remote-m32r-sdi.c (m32r_load): Update.
3380         * remote-mips.c (mips_load_srec): Update.
3381         (pmon_load_fast): Update.
3382         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3383         Update.
3384         (darwin_bfd_open): Update.
3385         * solib.c (solib_bfd_fopen): Update.
3386         * symfile-mem.c (symbol_file_add_from_memory): Update.
3387         * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3388         (symfile_bfd_open): Update.
3389         (generic_load): Update.
3390
3391 2012-07-18  Tom Tromey  <tromey@redhat.com>
3392
3393         * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3394         (pmon_load_fast): Likewise.
3395         * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3396         (m32r_upload_command): Likewise.
3397         * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3398         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3399         Use make_cleanup_bfd_close.
3400
3401 2012-07-18  Tom Tromey  <tromey@redhat.com>
3402
3403         * symfile.c (symfile_bfd_open): Don't copy name.  Call
3404         gdb_bfd_stash_filename.
3405         (load_command): Open the new BFD before freeing the old.
3406         (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3407         * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3408         Call gdb_bfd_stash_filename.
3409         * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3410         * solib-spu.c (spu_bfd_fopen): Don't copy name.  Call
3411         gdb_bfd_stash_filename.
3412         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3413         Free found_pathname.
3414         * rs6000-nat.c (add_vmap): Don't copy filename.  Call
3415         gdb_bfd_stash_filename.
3416         * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3417         * machoread.c (macho_add_oso_symfile): Call
3418         gdb_bfd_stash_filename.
3419         (macho_symfile_read_all_oso): Arrange to free archive_name.  Call
3420         gdb_bfd_stash_filename.
3421         (macho_check_dsym): Don't copy filename.  Call
3422         gdb_bfd_stash_filename.
3423         * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3424         * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3425         * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3426         * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3427         * exec.c (exec_close): Don't free the BFD's filename.
3428         (exec_file_attach): Don't copy the filename.  Call
3429         gdb_bfd_stash_filename.
3430         * corelow.c (core_close): Don't free the BFD's filename.
3431         (core_open): Call gdb_bfd_stash_filename.
3432         * corefile.c (reopen_exec_file): Remove #if 0 code.
3433         * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename.  Free
3434         pathname.
3435         * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3436
3437 2012-07-18  Tom Tromey  <tromey@redhat.com>
3438
3439         * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3440         gdb_bfd_unref.
3441         (free_dwo_file): Use gdb_bfd_unref.
3442         * cli/cli-dump.c: Include gdb_bfd.h.
3443         (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3444         (bfd_openr_with_cleanup): Likewise.
3445         * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3446         gdb_bfd_unref.
3447         * utils.c: Include gdb_bfd.h.
3448         (do_bfd_close_cleanup): Use gdb_bfd_unref.
3449         * symfile.c: Include gdb_bfd.h.
3450         (separate_debug_file_exists): Use gdb_bfd_unref.
3451         (bfd_open_maybe_remote): Use gdb_bfd_ref.
3452         (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3453         (generic_load): Use gdb_bfd_ref.
3454         (reread_symbols): Use gdb_bfd_unref.
3455         * symfile-mem.c: Include gdb_bfd.h.
3456         (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3457         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3458         * solib.c: Include gdb_bfd.h.
3459         (solib_bfd_fopen): Use gdb_bfd_ref.
3460         (solib_bfd_open): Use gdb_bfd_unref.
3461         (free_so_symbols): Use gdb_bfd_unref.
3462         (reload_shared_libraries_1): Use gdb_bfd_unref.
3463         * solib-spu.c: Include gdb_bfd.h.
3464         (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3465         * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3466         gdb_bfd_unref.
3467         * solib-frv.c: Include gdb_bfd.h.
3468         (enable_break2): Use gdb_bfd_unref.
3469         * solib-dsbt.c: Include gdb_bfd.h.
3470         (enable_break2): Use gdb_bfd_unref.
3471         * solib-darwin.c: Include gdb_bfd.h.
3472         (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3473         gdb_bfd_unref.
3474         (darwin_bfd_open): Use gdb_bfd_unref.
3475         * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3476         * remote-mips.c: Include gdb_bfd.h.
3477         (mips_load_srec): Use gdb_bfd_ref.
3478         (pmon_load_fast): Use gdb_bfd_ref.
3479         * remote-m32r-sdi.c: Include gdb_bfd.h.
3480         (m32r_load): Use gdb_bfd_ref.
3481         * record.c: Include gdb_bfd.h.
3482         (record_save_cleanups): Use gdb_bfd_unref.
3483         (cmd_record_save): Use gdb_bfd_unref.
3484         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3485         gdb_bfd_unref.
3486         * objfiles.h (gdb_bfd_close_or_warn): Remove.
3487         (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3488         * objfiles.c: Include gdb_bfd.h.
3489         (free_objfile): Use gdb_bfd_unref.
3490         (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3491         gdb_bfd.c.
3492         * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3493         (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3494         (macho_check_dsym): Likewise.
3495         * m32r-rom.c: Include gdb_bfd.h.
3496         (m32r_load): Use gdb_bfd_ref.
3497         (m32r_upload_command): Use gdb_bfd_ref.
3498         * jit.c: Include gdb_bfd.h.
3499         (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3500         * gdb_bfd.h: New file.
3501         * gdb_bfd.c: New file.
3502         * gcore.c: Include gdb_bfd.h.
3503         (create_gcore_bfd): Use gdb_bfd_ref.
3504         (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3505         (gcore_command): Use gdb_bfd_unref.
3506         * exec.c: Include gdb_bfd.h.
3507         (exec_close): Use gdb_bfd_unref.
3508         (exec_close_1): Use gdb_bfd_unref.
3509         (exec_file_attach): Use gdb_bfd_ref.
3510         * elfread.c: Include gdb_bfd.h.
3511         (build_id_verify): Use gdb_bfd_unref.
3512         * dsrec.c: Include gdb_bfd.h.
3513         (load_srec): Use gdb_bfd_ref.
3514         * corelow.c: Include gdb_bfd.h.
3515         (core_close): Use gdb_bfd_unref.
3516         (core_open): Use gdb_bfd_ref.
3517         * bfd-target.c: Include gdb_bfd.h.
3518         (target_bfd_xclose): Use gdb_bfd_unref.
3519         (target_bfd_reopen): Use gdb_bfd_ref.
3520         * Makefile.in (SFILES): Add gdb_bfd.c.
3521         (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3522         (COMMON_OBS): Add gdb_bfd.o.
3523
3524 2012-07-18  Keith Seitz  <keiths@redhat.com>
3525
3526         * breakpoint.c (find_condition_and_thread): Initialize
3527         TASK and REST.
3528         (create_breakpiont): find_condition_and_thread will now
3529         initialize COND_STRING, THREAD, and REST (and TASK).
3530         (addr_string_to_sals): Likewise.
3531
3532 2012-07-18  Pedro Alves  <palves@redhat.com>
3533
3534         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3535         Pull the single step breakpoints out of the target.
3536
3537 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
3538
3539         * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3540         * stap-probe.c (compile_probe_arg): Likewise.
3541
3542 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
3543
3544         * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3545         (elf_compile_to_ax): Likewise.
3546         * infrun.c (insert_exception_resume_from_probe): Likewise.
3547         (check_exception_resume): Remove `objfile' variable.
3548         * probe.c (find_probe_by_pc): Remove `objfile' argument.
3549         (struct probe_and_objfile, probe_and_objfile_s): Delete.
3550         (collect_probes): Adjust return value to `VEC (probe_p) *'.
3551         (compare_entries): Rename to...
3552         (compare_probes): ...this.  Adjust function to work with
3553         `struct probe *'.  Rename variables `ea' and `eb' to `pa' and `pb'
3554         respectively.
3555         (gen_ui_out_table_header_info): Adjust `probes' argument to be
3556         `VEC (probe_p) *'.
3557         (print_ui_out_info): Adjust argument to be `struct probe *'.
3558         (info_probes_for_ops): Adjust internal computations to use
3559         `VEC (probe_p) *'.
3560         (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3561         * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3562         gen_info_probes_table_values>: Remove `objfile' argument.
3563         (struct probe) <objfile>: New field.
3564         (find_probe_by_pc): Remove `objfile' argument.
3565         * stap-probe.c (stap_parse_probe_arguments): Likewise.
3566         (stap_get_probe_argument_count): Likewise.
3567         (stap_get_arg): Likewise.
3568         (stap_evaluate_probe_argument): Likewise.
3569         (stap_compile_to_ax): Likewise.
3570         (compile_probe_arg): Refactor not to pass `objfile' anymore.
3571         (handle_stap_probe): Fill `objfile' field from `struct probe'.
3572         (stap_gen_info_probes_table_header): Remove `objfile' argument.
3573         * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3574         sym_compile_to_ax>: Likewise.
3575
3576 2012-07-18  Terry Guo  <terry.guo@arm.com>
3577
3578         PR 14329
3579         * defs.h (GDB_MI_MSG_WIDTH): New.
3580         * ser_base (ser_base_read_error_fd): New function.
3581         (do_ser_base_readchar): Poll error file descriptor as well as
3582         standard output.
3583         (generic_readchar): Refactor error handling.
3584
3585 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
3586
3587         * NEWS: Create a new section for the next release branch.
3588         Rename the section of the current branch, now that it has
3589         been cut.
3590
3591 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
3592
3593         GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3594         * version.in: Bump version to 7.5.50.20120718-cvs.
3595
3596 2012-07-17  Keith Seitz  <keiths@redhat.com>
3597
3598         * linespec.c (linespec_parse_line_offset): Make parameter
3599         const.
3600
3601 2012-07-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
3602
3603         PR 11914
3604         * f-valprint.c (info_common_command): New variable frame_id.
3605         Reinitialize FI form FRAME_ID after each print_variable_and_value.
3606         * printcmd.c (print_variable_and_value): Extend function comment.
3607         Add comment for invalidated FRAME.
3608         * stack.c (backtrace_command_1): New variable frame_id.  Reinitialize
3609         FI form FRAME_ID after each print_frame_local_vars.
3610         (struct print_variable_and_value_data): Change frame to frame_id.
3611         (do_print_variable_and_value): New variable frame, initialize it from
3612         p->frame_id.  Add comment for invalidated FRAME.
3613         (print_frame_local_vars, print_frame_arg_vars): New function comment.
3614         Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization.  Add comment
3615         for invalidated FRAME.
3616
3617 2012-07-16  Marc Khouzam  <marc.khouzam@ericsson.com>
3618             Pedro Alves  <palves@redhat.com>
3619
3620         * linux-nat.c (linux_nat_detach): Don't unregister from the event
3621         loop.
3622
3623 2012-07-16  Tom Tromey  <tromey@redhat.com>
3624
3625         * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3626
3627 2012-07-15  Doug Evans  <dje@google.com>
3628
3629         * dwarf2read.c (stmt_list_hash): New struct.
3630         (type_unit_group): Embed "per_cu" member, remove pointer.
3631         New union member "t", move member "tus" into it, all uses updated.
3632         New member "hash", replaces member "line_offset, all uses updated.
3633         (quick_file_names): Replace member "offset" with "hash", all uses
3634         updated.
3635         (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3636         (hash_file_name_entry, eq_file_name_entry): Call them.
3637         (hash_type_unit_group, eq_type_unit_group): Ditto.
3638         (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3639         (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3640         (dw2_get_file_names): Update.
3641         (create_type_unit_group): Replace "per_cu" arg with "cu".
3642         All callers updated.  Fix "quick" (.gdb_index) handling.
3643         (get_type_unit_group): Replace "per_cu" arg with "cu".
3644         All callers updated.
3645         (build_type_unit_groups): Don't reset tu_stats.
3646
3647         * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3648         "tab_cur_size".  Change member "tab" to be a htab_t.
3649         (create_filename_seen_cache): Update.
3650         (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3651         (filename_seen): Update.
3652
3653 2012-07-13  Doug Evans  <dje@google.com>
3654
3655         * symtab.c (filename_seen): Update comment.
3656
3657 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3658             Doug Evans  <dje@google.com>
3659
3660         * buildsym.c (end_symtab_1): Split it to ...
3661         (end_symtab_get_static_block): ... this ...
3662         (end_symtab_from_static_block): ... and this function.
3663         (end_symtab, end_expandable_symtab): Call them.
3664         * buildsym.h (end_symtab_get_static_block)
3665         (end_symtab_from_static_block): New declarations.
3666         * dwarf2read.c (process_full_comp_unit): New variable static_block.
3667         Set its valid CU ranges.
3668
3669 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3670
3671         * dwarf2loc.c (disassemble_dwarf_expression): Handle
3672         DW_OP_GNU_parameter_ref.
3673
3674 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3675
3676         * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3677         read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3678
3679 2012-07-13  Doug Evans  <dje@google.com>
3680
3681         * symtab.c (output_source_filename): Delete unnecessary forward decl.
3682         (filename_seen_cache): New struct.
3683         (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3684         (create_filename_seen_cache): New function.
3685         (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3686         (filename_seen): Delete arg "first".  New arg "cache".  All callers
3687         updated.
3688         (output_source_filename_data): New struct.
3689         (output_source_filename): Delete arg "first".  New arg "data".
3690         All callers updated.
3691         (sources_info): Delete local "first".  New locals "data", "cleanups".
3692         Rewrite to use filename_seen_cache.
3693         (add_partial_filename_data): Delete member "first".  New member
3694         "filename_seen_cache".  All uses updated.
3695         (make_source_files_completion_list): Rewrite to use
3696         filename_seen_cache.
3697
3698 2012-07-12  Doug Evans  <dje@google.com>
3699
3700         * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3701
3702 2012-07-10  Doug Evans  <dje@google.com>
3703
3704         PR gdb/13498
3705         * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3706         all_type_unit_groups, type_unit_groups, tu_stats.
3707         (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3708         All uses updated.  Add type_unit_group to union "s".
3709         (type_unit_group): New struct.
3710         (IS_TYPE_UNIT_GROUP): New macro.
3711         (abbrev_table): Delete unused member "section".
3712         (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3713         (dw2_get_cu): Assert not used with type_unit_group.
3714         (dw2_get_primary_cu): New function.
3715         (dw2_build_type_unit_groups_reader): New function.
3716         (dw2_build_type_unit_groups): New function.
3717         (dw2_get_file_names): Assert not called on type units.
3718         (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3719         Redo loop to iterate over type unit groups instead of type units.
3720         (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3721         (read_abbrev_offset): New function.
3722         (init_cutu_and_read_dies): New arg "abbrev_table".  All callers
3723         updated.
3724         (create_partial_symtab): New function.
3725         (process_psymtab_comp_unit_reader): Assert not used with type units.
3726         Call create_partial_symtab.
3727         (process_psymtab_type_unit): Delete.
3728         (hash_type_unit_group, eq_type_unit_group): New functions.
3729         (allocate_type_unit_groups_table): New function.
3730         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3731         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3732         (create_type_unit_group, get_type_unit_group): New functions.
3733         (tu_abbrev_offset): New struct.
3734         (sort_tu_by_abbrev_offset): New function.
3735         (add_type_unit_group_to_table): New function.
3736         (build_type_unit_groups): New function.
3737         (build_type_psymtabs_reader): New function.
3738         (build_type_psymtab_dependencies): New function.
3739         (build_type_psymtabs): Rewrite.
3740         (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3741         is seen in a type unit.
3742         (process_queue): Move symtab expansion debugging printfs here.
3743         Call process_full_type_unit for type units.
3744         (compute_symtab_includes): Assert not called for type units.
3745         (process_cu_includes): Don't call compute_symtab_includes for
3746         type units.
3747         (process_full_type_unit): New function.
3748         (process_imported_unit_die): Flag an error if called for type units.
3749         (handle_DW_AT_stmt_list): Delete arg "want_line_info".  All callers
3750         updated.  Assert not called for type units.
3751         (read_file_scope): Call dwarf2_start_symtab.
3752         (setup_type_unit_groups): New function.
3753         (read_type_unit_scope): Rewrite.
3754         (abbrev_table_read_table): Initialize abbrev_table->offset.
3755         (abbrev_table_free_cleanup): New function.
3756         (dwarf2_start_symtab): New function.
3757         (load_full_type_unit): Assert not called for type unit groups.
3758         * buildsym.c (finish_block_internal): New arg "expandable".
3759         All callers updated.
3760         (start_symtab): Move most contents to ...
3761         (restart_symtab): ... here.  New function.
3762         (reset_symtab_globals): New function.
3763         (end_symtab_1): Renamed from end_symtab.  New arg "expandable".
3764         Call reset_symtab_globals.
3765         (end_symtab, end_expandable_symtab): New functions.
3766         (set_missing_symtab, augment_type_symtab): New functions.
3767         * buildsym.h (end_expandable_symtab): Declare.
3768         (augment_type_symtab, restart_symtab): Declare.
3769         * psympriv.h (struct partial_symtab): New member "anonymous".
3770         * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3771         anonymous psymtabs.
3772         (read_psymtabs_with_filename): Ditto.
3773         (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3774         (expand_symtabs_matching_via_partial): Ditto.
3775         (dump_psymtab): Update.
3776         * dictionary.c (dict_add_pending): New function.
3777         * dictionary.h (dict_add_pending): Declare.
3778
3779 2012-07-09  Doug Evans  <dje@google.com>
3780
3781         * buildsym.c (start_subfile): Remove unnecessary check for
3782         name == NULL.
3783
3784         * psymtab.c (allocate_psymtab): Use host_address_to_string.
3785
3786         * dwarf2read.c (load_full_type_unit): Simplify.
3787
3788         * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3789         to struct signatured_type **.  All uses updated.
3790
3791         * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3792         All callers updated.
3793
3794 2012-07-09  Tom Tromey  <tromey@redhat.com>
3795
3796         * c-exp.y (check_parameter_typelist): New function.
3797         (parameter_typelist): Call it.
3798         * eval.c (make_params): Handle '(void)' case.
3799         * gdbtypes.c (lookup_function_type_with_arguments): Handle
3800         '(void)' case.
3801
3802 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3803
3804         * common/linux-ptrace.c: Include gdb_assert.h.
3805         <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3806         <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3807         stdint.h.
3808         (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3809         functions.
3810         * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3811         * linux-nat.c (linux_child_post_attach)
3812         (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3813
3814 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3815
3816         * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3817         nptl <2.7 bug workaround for core files.
3818
3819 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3820
3821         * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3822         clearing.
3823         (save_siginfo): Remove.
3824         (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3825         call.
3826         (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3827         (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3828         * linux-nat.h (struct lwp_info): Remove field siginfo.
3829
3830 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3831
3832         Code cleanup for the next patch.
3833         * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3834         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3835         call for it.
3836         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3837         (ia64_linux_stopped_data_address):
3838         * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3839         the return value.
3840         * linux-nat.h (linux_nat_get_siginfo): Likewise.
3841         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3842         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3843         call for it.
3844
3845 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3846
3847         PR 14321
3848         * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3849         Increase buffer sizes to 2x we need, not just 2x of the previous size.
3850
3851 2012-07-06  Tom Tromey  <tromey@redhat.com>
3852
3853         * c-exp.y (DOTDOTDOT): New token.
3854         (func_mod, exp): Use parameter_typelist.
3855         (parameter_typelist): New production.
3856         (tokentab3): Add "..." token.
3857         * eval.c (make_params): Handle varargs.
3858         * gdbtypes.c (lookup_function_type_with_arguments): Handle
3859         varargs.
3860
3861 2012-07-06  Tom Tromey  <tromey@redhat.com>
3862
3863         PR exp/9608:
3864         * c-exp.y (%union) <tvec>: Change type.
3865         (func_mod): Now uses <tvec> type.
3866         (exp): Update for tvec change.
3867         (direct_abs_decl): Push the typelist.
3868         (func_mod): Return a typelist.
3869         (nonempty_typelist): Update for tvec change.
3870         * gdbtypes.c (lookup_function_type_with_arguments): New function.
3871         * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3872         * parse.c (pop_type_list): New function.
3873         (push_typelist): New function.
3874         (follow_types): Handle tp_function_with_arguments.
3875         * parser-defs.h (type_ptr): New typedef.  Define a VEC.
3876         (enum type_pieces) <tp_function_with_arguments>: New constant.
3877         (union type_stack_elt) <typelist_val>: New field.
3878         (push_typelist): Declare.
3879
3880 2012-07-06  Tom Tromey  <tromey@redhat.com>
3881
3882         * c-exp.y (%union) <type_stack>: New field.
3883         (abs_decl, direct_abs_decl): Use <type_stack> type.  Update.
3884         (ptr_operator_ts): New production.
3885         (ptype): Update.
3886         * parse.c (type_stack_reserve): New function.
3887         (check_type_stack_depth): Use it.
3888         (pop_type_stack, append_type_stack, push_type_stack)
3889         (get_type_stack, type_stack_cleanup): New functions.
3890         (follow_types): Handle tp_type_stack.
3891         (_initialize_parse): Simplify initialization.
3892         * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3893         constant.
3894         (union type_stack_elt) <stack_val>: New field.
3895         (get_type_stack, append_type_stack, push_type_stack)
3896         (type_stack_cleanup): Declare.
3897
3898 2012-07-06  Tom Tromey  <tromey@redhat.com>
3899
3900         * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3901         Remove.
3902         (struct type_stack): New.
3903         * parse.c (type_stack, type_stack_size, type_stack_depth):
3904         Remove.
3905         (type_stack): New global.
3906         (parse_exp_in_context, check_type_stack_depth)
3907         (insert_into_type_stack, insert_type, push_type, push_type_int)
3908         (insert_type_address_space, pop_type, pop_type_int)
3909         (_initialize_parse): Update.
3910
3911 2012-07-06  Tom Tromey  <tromey@redhat.com>
3912
3913         * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3914         Remove %type.
3915
3916 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3917
3918         * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3919
3920 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3921             Jan Kratochvil  <jan.kratochvil@redhat.com>
3922
3923         * cp-valprint.c (cp_print_value): Replace potentially unsafe
3924         alloca with xmalloc/xfree.
3925
3926 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3927
3928         * MAINTAINERS (Write After Approval): Add myself to the list.
3929
3930 2012-07-05  Doug Evans  <dje@google.com>
3931
3932         * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3933
3934 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
3935
3936         * ax-gdb.c (cli/cli-utils.h): New include.
3937         (linespec.h): Ditto.
3938         (agent_eval_command_one): New function.
3939         (agent_command_1): Ditto.
3940         (agent_command): Call function agent_command_1.
3941         (agent_eval_command): Ditto.
3942         (_initialize_ax_gdb): Change help for "maint agent"
3943         and "maint agent-eval".
3944
3945 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
3946
3947         * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3948         * cli/cli-utils.c (check_for_argument): New function.
3949         * cli/cli-utils.h (check_for_argument): Ditto.
3950
3951 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
3952
3953         * NEWS: Mention x32 ABI support.
3954
3955 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
3956
3957         * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3958         AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3959
3960         * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3961         and pc_regnum_from_eax to -1.  Update SP regnum from
3962         sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3963         needed.
3964
3965         * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3966         pc_regnum_from_eax.
3967
3968 2012-07-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3969
3970         Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3971         * dwarf2expr.h: Include gdbtypes.h.
3972         (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3973         these forward declarations.
3974         (cu_offset, sect_offset): Move these ...
3975         * gdbtypes.h: Remove include dwarf2expr.h.
3976         (cu_offset, sect_offset): ... here.
3977
3978 2012-07-03  H.J. Lu  <hongjiu.lu@intel.com>
3979
3980         * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3981         (amd64_linux_sigtramp_code): This.
3982         (amd64_x32_linux_sigtramp_code): New.
3983         (LINUX_SIGTRAMP_LEN): Updated.
3984         (amd64_linux_sigtramp_start): Check x32 sigtramp.
3985
3986 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3987
3988         * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3989
3990 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3991
3992         * config.in: Regenerate.
3993         * configure: Regenerate.
3994         * configure.ac: Remove check for gnu/libc-version.h.
3995         * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3996         gnu/libc-version.h.
3997         (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3998         variables libc_version, libc_major and libc_minor.  Replace sscanf by
3999         inferior_has_bug.  Extend the comment.
4000
4001 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4002
4003         * linux-thread-db.c (inferior_has_bug): New function.
4004         (thread_db_find_new_threads_silently): Return boolean as checked by
4005         inferior_has_bug, describe it in the comments.
4006         (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4007         earlier.  Abort the initialization if it returned non-zero.
4008         (thread_db_new_objfile): Exclude debug files.
4009         (thread_db_find_new_threads_2): Preinitialize ERR.  Check errors also
4010         if UNTIL_NO_NEW,
4011
4012 2012-07-02  Doug Evans  <dje@google.com>
4013
4014         * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4015         related to queue management.
4016
4017         * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4018         instead of "debug dwarf2-die" in debugging printfs.
4019         (create_debug_info_hash_table_reader): Ditto.
4020         (create_debug_info_hash_table): Ditto.
4021         (init_dwo_file): Ditto.
4022         (init_cutu_and_read_dies): Add debugging printf.
4023         (init_cutu_and_read_dies_no_follow): Ditto.
4024         (process_psymtab_comp_unit_reader): Ditto.
4025
4026 2012-07-02  Stan Shebs  <stan@codesourcery.com>
4027
4028         Add target-side support for dynamic printf.
4029         * NEWS: Mention the additional style.
4030         * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4031         (struct bp_location): New field cmd_bytecode.
4032         * breakpoint.c: Include format.h.
4033         (disconnected_dprintf): New global.
4034         (parse_cmd_to_aexpr): New function.
4035         (build_target_command_list): New function.
4036         (insert_bp_location): Call it.
4037         (remove_breakpoints_pid): Skip dprintf breakpoints.
4038         (print_one_breakpoint_location): Ditto.
4039         (dprintf_style_agent): New global.
4040         (dprintf_style_enums): Add dprintf_style_agent.
4041         (update_dprintf_command_list): Add agent case.
4042         (agent_printf_command): New function.
4043         (_initialize_breakpoint): Add new commands.
4044         * common/ax.def (printf): New bytecode.
4045         * ax.h (ax_string): Declare.
4046         * ax-gdb.h (gen_printf): Declare.
4047         * ax-gdb.c: Include cli-utils.h, format.h.
4048         (gen_printf): New function.
4049         (maint_agent_print_command): New function.
4050         (_initialize_ax_gdb): Add maint agent-printf command.
4051         * ax-general.c (ax_string): New function.
4052         (ax_print): Add printf disassembly.
4053         * Makefile.in (SFILES): Add format.c
4054         (COMMON_OBS): Add format.o.
4055         * common/format.h: New file.
4056         * common/format.c: New file.
4057         * printcmd.c: Include format.h.
4058         (ui_printf): Call parse_format_string.
4059         * remote.c (remote_state): New field breakpoint_commands.
4060         (PACKET_BreakpointCommands): New enum.
4061         (remote_breakpoint_commands_feature): New function.
4062         (remote_protocol_features): Add new BreakpointCommands entry.
4063         (remote_can_run_breakpoint_commands): New function.
4064         (remote_add_target_side_commands): New function.
4065         (remote_insert_breakpoint): Call it.
4066         (remote_insert_hw_breakpoint): Ditto.
4067         (_initialize_remote): Add new packet configuration for
4068         target-side breakpoint commands.
4069         * target.h (struct target_ops): New field
4070         to_can_run_breakpoint_commands.
4071         (target_can_run_breakpoint_commands): New macro.
4072         * target.c (update_current_target): Handle
4073         to_can_run_breakpoint_commands.
4074
4075 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4076
4077         Execute -ix and -iex only after system and user gdbinit files.
4078         * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4079         processing down after gdbinit files.
4080
4081 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4082
4083         Add fnmatch-gnu module.
4084         * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4085         * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4086         * gnulib/aclocal.m4: Regenerate.
4087         * gnulib/config.in: Regenerate.
4088         * gnulib/configure: Regenerate.
4089         * gnulib/import/dummy.c: Remove.
4090         * gnulib/import/Makefile.am: Regenerate.
4091         * gnulib/import/Makefile.in: Likewise.
4092         * gnulib/import/m4/gnulib-cache.m4: Likewise.
4093         * gnulib/import/m4/gnulib-comp.m4: Likewise.
4094         * gnulib/import/alloca.c: New file.
4095         * gnulib/import/alloca.in.h: Likewise.
4096         * gnulib/import/config.charset: Likewise.
4097         * gnulib/import/fnmatch.c: Likewise.
4098         * gnulib/import/fnmatch.in.h: Likewise.
4099         * gnulib/import/fnmatch_loop.c: Likewise.
4100         * gnulib/import/localcharset.c: Likewise.
4101         * gnulib/import/localcharset.h: Likewise.
4102         * gnulib/import/m4/alloca.m4: Likewise.
4103         * gnulib/import/m4/codeset.m4: Likewise.
4104         * gnulib/import/m4/configmake.m4: Likewise.
4105         * gnulib/import/m4/fcntl-o.m4: Likewise.
4106         * gnulib/import/m4/fnmatch.m4: Likewise.
4107         * gnulib/import/m4/glibc21.m4: Likewise.
4108         * gnulib/import/m4/localcharset.m4: Likewise.
4109         * gnulib/import/m4/locale-fr.m4: Likewise.
4110         * gnulib/import/m4/locale-ja.m4: Likewise.
4111         * gnulib/import/m4/locale-zh.m4: Likewise.
4112         * gnulib/import/m4/mbrtowc.m4: Likewise.
4113         * gnulib/import/m4/mbsinit.m4: Likewise.
4114         * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4115         * gnulib/import/m4/mbstate_t.m4: Likewise.
4116         * gnulib/import/m4/stdbool.m4: Likewise.
4117         * gnulib/import/m4/wchar_h.m4: Likewise.
4118         * gnulib/import/m4/wctype_h.m4: Likewise.
4119         * gnulib/import/m4/wint_t.m4: Likewise.
4120         * gnulib/import/mbrtowc.c: Likewise.
4121         * gnulib/import/mbsinit.c: Likewise.
4122         * gnulib/import/mbsrtowcs-impl.h: Likewise.
4123         * gnulib/import/mbsrtowcs-state.c: Likewise.
4124         * gnulib/import/mbsrtowcs.c: Likewise.
4125         * gnulib/import/ref-add.sin: Likewise.
4126         * gnulib/import/ref-del.sin: Likewise.
4127         * gnulib/import/stdbool.in.h: Likewise.
4128         * gnulib/import/streq.h: Likewise.
4129         * gnulib/import/strnlen1.c: Likewise.
4130         * gnulib/import/strnlen1.h: Likewise.
4131         * gnulib/import/verify.h: Likewise.
4132         * gnulib/import/wchar.in.h: Likewise.
4133         * gnulib/import/wctype.in.h: Likewise.
4134
4135 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4136
4137         Support shell wildcards for 'set auto-load safe-path'.
4138         * auto-load.c: Include fnmatch.h.
4139         (filename_is_in_dir): Rename to ...
4140         (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4141         it.  Update function comment.  Rename dir_len to pattern_len.  New
4142         variables filename_len, pattern and filename.  Add more DEBUG_AUTO_LOAD
4143         messages.  Use gdb_filename_fnmatch.
4144         (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4145         pattern.
4146         (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4147         * defs.h (gdb_filename_fnmatch): New declaration.
4148         * utils.c: Include fnmatch.h.
4149         (gdb_filename_fnmatch): New function.
4150
4151 2012-07-02  Sergio Durigan Junior  <sergiodj@redhat.com>
4152
4153         * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4154         `-probe' and `-probe-stap' options.
4155
4156 2012-07-01  Yao Qi  <yao@codesourcery.com>
4157
4158         * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4159         always_inserted_off, and always_inserted_enums.
4160         Change always_inserted_mode's type to 'enum auto_boolean'.
4161         (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4162         callers.
4163         (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4164         of add_setshow_enum_cmd.
4165         * infrun.c: Remove can_use_displaced_stepping_auto,
4166         can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4167         can_use_displaced_stepping_enum.
4168         Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4169         (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4170         (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4171         add_setshow_enum_cmd.
4172
4173 2012-06-30  Doug Evans  <dje@google.com>
4174
4175         * dwarf2read.c (signatured_type): Make "per_cu" member first.
4176         (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4177         currently being read.  Propagate DW_AT_comp_dir to DWO DIE.
4178
4179 2012-06-29  Doug Evans  <dje@google.com>
4180
4181         * linespec.c: #include "stack.h".
4182         (decode_line_with_current_source): Moved here from symtab.c and
4183         renamed from decode_line_spec.  All callers updated.
4184         (decode_line_with_last_displayed): Moved here from breakpoint.c and
4185         renamed from decode_line_spec_1.  All callers updated.
4186         * linespec.h (decode_line_with_current_source): Move declaration here
4187         from symtab.h and renamed from decode_line_spec.
4188         (decode_line_with_last_displayed): Move declaration here from symtab.h
4189         and renamed from decode_line_spec_1.
4190         * macrocmd.c: #include "linespec.h".
4191         * symtab.c: Remove #include "linespec.h".
4192
4193 2012-06-28  Doug Evans  <dje@google.com>
4194
4195         * dwarf2read.c (get_cu_length): New function.
4196         (offset_in_cu_p, error_check_comp_unit_head): Call it.
4197         (create_debug_types_hash_table): Ditto.
4198         (init_cutu_and_read_dies): Ditto.
4199         (init_cutu_and_read_dies_no_follow): Ditto.
4200
4201         * dwarf2read.c (dwarf2_find_base_address): Move definition.
4202
4203         * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4204         (struct abbrev_table): Define.
4205         (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4206         abbrev_table.
4207         (init_cutu_and_read_dies): Update.
4208         (abbrev_table_alloc_abbrev): New function.  Replaces
4209         dwarf_alloc_abbrev.  All callers updated.
4210         (abbrev_table_add_abbrev): New function.
4211         (abbrev_table_lookup_abbrev): New function.  Replaces
4212         dwarf2_lookup_abbrev.  All callers updated.
4213         (abbrev_table_read_table): New function.  Contents moved here from
4214         dwarf2_read_abbrevs.
4215         (dwarf2_read_abbrevs): Call it.
4216         (abbrev_table_free): New function.
4217         (dwarf2_free_abbrev_table): Call it.
4218
4219 2012-06-28  Stan Shebs  <stan@codesourcery.com>
4220
4221         * osdata.c (info_osdata_command): Filter out "Title" columns
4222         from non-MI uses.
4223         * common/linux-osdata.c (struct osdata_type): Add title field.
4224         (osdata_table): Add titles to each entry.
4225         (linux_command_xfer_osdata): Add a column for title data.
4226
4227 2012-06-28  Stan Shebs  <stan@codesourcery.com>
4228
4229         Make logging work for MI.
4230         * NEWS: Mention it.
4231         * interps.h (interp_set_logging_ftype): New typedef.
4232         (struct interp_procs): New field set_logging_proc.
4233         (current_interp_set_logging): Declare.
4234         * interps.c (current_interp_set_logging): New function.
4235         * cli/cli-logging.c: Include interps.h.
4236         (set_logging_redirect): Call current_interp_set_logging.
4237         (pop_output_files): Ditto.
4238         (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4239         * mi/mi-console.h (mi_console_set_raw): Declare.
4240         * mi/mi-console.c (mi_console_set_raw): New function.
4241         * mi/mi-interp.c (saved_raw_stdout): New global.
4242         (mi_set_logging): New function.
4243         (_initialize_mi_interp): Add it to interp procs.
4244
4245 2012-06-28  Doug Evans  <dje@google.com>
4246
4247         * symtab.c (lookup_symbol_aux_objfile): Use
4248         ALL_OBJFILE_PRIMARY_SYMTABS.
4249
4250         * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4251
4252 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4253
4254         * common/buffer.c: Include inttypes.h and stdint.h.
4255         (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4256
4257 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4258             Pedro Alves  <palves@redhat.com>
4259
4260         * gdbthread.h (ALL_THREADS): New macro.
4261         (thread_list): Declare.
4262         * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4263         going, but instead fall through to the stepping handling.
4264         * linux-nat.c (resume_lwp): New parameter 'signo'.  Resume with
4265         the passed in signal.  Adjust debug output.
4266         (resume_callback): Rename to ...
4267         (linux_nat_resume_callback): ... this.  Pass the thread's last
4268         stop signal, if in "pass" state.
4269         (linux_nat_resume): Adjust to rename.
4270         (stop_wait_callback): New assertion.  Don't respawn signals;
4271         instead let the LWP remain with SIGNALLED set.
4272         (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
4273         * remote.c (append_pending_thread_resumptions): New.
4274         (remote_vcont_resume): Call it.
4275         * target.h (target_resume): Extend comment.
4276
4277 2012-06-28  Iain Sandoe  <iain@codesourcery.com>
4278
4279         * auxv.c (fprint_target_auxv): Handle extended cache data tags.
4280
4281 2012-06-27  Doug Evans  <dje@google.com>
4282
4283         * dwarf2read.c (dwarf2_cu): Add ranges_base.
4284         Delete have_addr_base, unused.  All uses updated.
4285         (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
4286         (dwarf2_get_pc_bounds): Add ranges_base.
4287         (dwarf2_record_block_ranges): Ditto.
4288
4289 2012-06-27  Tom Tromey  <tromey@redhat.com>
4290
4291         PR macros/7961:
4292         * varobj.c (varobj_create): Update.
4293         (varobj_set_value): Update.
4294         * tracepoint.c (validate_actionline): Update.
4295         (encode_actions_1): Update.
4296         * parse.c (parse_exp_1): Add 'pc' argument.
4297         (parse_exp_in_context): Add 'pc' argument.  Change how
4298         expression_context_pc is set.
4299         (parse_expression): Update.
4300         (parse_field_expression): Update.
4301         * expression.h (parse_exp_1): Update.
4302         * eval.c (parse_to_comma_and_eval): Update.
4303         * breakpoint.c (set_breakpoint_condition): Update.
4304         (update_watchpoint): Update.
4305         (init_breakpoint_sal): Update
4306         (find_condition_and_thread): Update.
4307         (watch_command_1): Update.
4308         (update_breakpoint_locations): Update.
4309         * ada-lang.c (ada_read_renaming_var_value): Update.
4310         (create_excep_cond_exprs): Update.
4311
4312 2012-06-27  Doug Evans  <dje@google.com>
4313
4314         * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
4315         type units.
4316
4317 2012-06-26  Doug Evans  <dje@google.com>
4318
4319         * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
4320         prototype.
4321         (error_check_comp_unit_head): New arg abbrev_section.  All callers
4322         updated.
4323         (read_and_check_comp_unit_head): Ditto.
4324         (read_and_check_type_unit_head): Ditto.
4325
4326 2012-06-26  Siva Chandra Reddy  <sivachandra@google.com>
4327
4328         New attribute 'last' for gdb.Symtab_and_line.
4329         * NEWS (Python Scripting): Add entry about the new attribute.
4330         * python/py-symtab.c (salpy_get_last): New function which
4331         implements the get method for the 'last' attribute of
4332         gdb.Symtab_and_line.
4333         (sal_object_getset): Add entry for the 'last' attribute.
4334
4335 2012-06-26  Doug Evans  <dje@google.com>
4336
4337         * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4338         (dwo_sections): Add macinfo, macro.
4339         (dwarf2_locate_dwo_sections): Watch for macro sections.
4340         (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4341         All callers updated.  Handle DWO files.
4342
4343         * NEWS: Mention new options "set debug dwarf2-read" and
4344         "set debug symtab-create".
4345         * dwarf2read.c (dwarf2_read_debug): New static global.
4346         (dwarf2_build_psymtabs_hard): Add debugging printfs.
4347         (process_queue): Ditto.
4348         (process_full_comp_unit): Ditto.
4349         (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4350         * elfread.c (elf_symfile_read): Add debugging printf.
4351         * minsyms.c (install_minimal_symbols): Ditto.
4352         * psymtab.c (allocate_psymtab): Ditto.
4353         * symfile.c (allocate_symtab): Ditto.
4354         * symtab.c (symtab_create_debug): New global.
4355         (_initialize_symtab): Add new option "set debug symtab-create".
4356         * symtab.h (symtab_create_debug): Declare.
4357
4358         * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4359         (lookup_dwo_type_unit): Ditto.
4360
4361 2012-06-26  Roland McGrath  <roland@hack.frob.com>
4362             H.J. Lu  <hongjiu.lu@intel.com>
4363
4364         * amd64-linux-nat.c: Include <sys/user.h>.
4365         (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4366         if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4367         HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4368
4369         * configure.ac: Check if the fs_base and gs_base members of
4370         `struct user_regs_struct' exist.
4371         * config.in: Regenerated.
4372         * configure: Likewise.
4373
4374 2012-06-25  Michael Eager  <eager@eagercon.com>
4375
4376         PR python/14291
4377         * python/python.c (gdbpy_write): Check for interrupted output.
4378
4379 2012-06-25  Greta Yorsh  <greta.yorsh@arm.com>
4380
4381         * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4382         register as a stack alignment in ARM mode.
4383
4384 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4385
4386         Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4387         * gnulib/config.in: Regenerate.
4388         * gnulib/configure: Likewise.
4389         * gnulib/import/m4/extensions.m4: Update it.
4390         * gnulib/import/m4/gnulib-common.m4: Likewise.
4391         * gnulib/import/m4/memmem.m4: Likewise.
4392         * gnulib/import/m4/mmap-anon.m4: Likewise.
4393         * gnulib/import/m4/multiarch.m4: Likewise.
4394         * gnulib/import/stdint.in.h: Likewise.
4395
4396 2012-06-24  Yao Qi  <yao@codesourcery.com>
4397
4398         * corefile.c (write_memory_with_notification): New.
4399         * gdbcore.h: Declare write_memory_with_notification.
4400         * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4401         'observer_notify_memory_changed' with 'write_memory_with_notification'.
4402         * valops.c (value_assign): Likewise.
4403         * python/py-inferior.c (infpy_write_memory): Call
4404         'write_memory_with_notification'.
4405
4406 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4407
4408         * cc-with-index.sh: Use also -ex "set auto-load no".
4409
4410 2012-06-23  Doug Evans  <dje@google.com>
4411
4412         PR 14125
4413         * NEWS: Document additions to .gdb_index.
4414         * dwarf2read.c: #include "gdb/gdb-index.h".
4415         (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4416         (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4417         (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4418         (dwarf2_read_index): Recognize version 7.
4419         (dw2_do_expand_symtabs_matching): New args want_specific_block,
4420         block_kind, domain): All callers updated.
4421         (dw2_find_symbol_file): Handle new index CU values.
4422         (dw2_expand_symtabs_matching): Match symbol kind if requested.
4423         (add_index_entry): New args is_static, kind.  All callers updated.
4424         (offset_type_compare, uniquify_cu_indices): New functions
4425         (symbol_kind): New function.
4426         (write_psymtabs_to_index): Remove duplicate CU values.
4427         (write_psymtabs_to_index): Write .gdb_index version 7.
4428
4429 2012-06-22  Joel Brobecker  <brobecker@adacore.com>
4430
4431         * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4432         * configure: Regenerate.
4433
4434 2012-06-20  Yao Qi  <yao@codesourcery.com>
4435
4436         * python/py-inferior.c: Update comments of infpy_read_memory
4437         and infpy_write_memory.
4438
4439 2012-06-19  Tom Tromey  <tromey@redhat.com>
4440
4441         PR exp/9514:
4442         * parser-defs.h (insert_type, insert_type_address_space): Declare.
4443         (push_type_address_space): Remove.
4444         * parse.c (insert_into_type_stack): New function.
4445         (insert_type): Likewise.
4446         (insert_type_address_space): Rename from push_type_address_space.
4447         Insert tp_space_identifier.
4448         * c-exp.y (ptr_operator): New production.
4449         (abs_decl): Use ptr_operator.
4450         (space_identifier): Call insert_type_address_space.
4451         (ptype): Don't use const_or_volatile_or_space_identifier.
4452         (const_or_volatile_noopt): Call insert_type.
4453         (conversion_type_id, conversion_declarator): New productions.
4454         (operator): Use conversion_type_id.
4455
4456 2012-06-18  Doug Evans  <dje@google.com>
4457
4458         * symtab.h (minimal_symbol): New member created_by_gdb.
4459         * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4460         created by gdb.
4461         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4462         (search_symbols): Call it instead of lookup_symbol.
4463         Skip symbols created by gdb.  Only scan minsyms if nfiles == 0.
4464
4465         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4466         Adjust address for DW_OP_GNU_addr_index.
4467         * dwarf2expr.h (dwarf_expr_context): Update comment.
4468         * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4469         all callers updated.  Handle TLS vars described with
4470         DW_OP_GNU_const_index.
4471         (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4472         and DW_OP_GNU_const_index.
4473         * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4474
4475         * block.c (find_block_in_blockvector): Make explicit the fact that we
4476         ignore GLOBAL_BLOCK.
4477
4478 2012-06-18  Tom Tromey  <tromey@redhat.com>
4479
4480         * c-exp.y (operator): Remove trailing space after "delete" and
4481         "delete[]".
4482
4483 2012-06-18  Mark Kettenis  <kettenis@gnu.org>
4484             Jan Kratochvil  <jan.kratochvil@redhat.com>
4485
4486         Switch i386 and derived targets to ON_STACK.
4487         * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4488         (amd64_dicos_init_abi): Remove its installment.
4489         * dicos-tdep.c (dicos_init_abi): Remove the
4490         set_gdbarch_call_dummy_location call.  Update the comment here.
4491         * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4492         (i386_dicos_init_abi): Remove its installment.
4493         * i386-tdep.c (i386_push_dummy_code): New function.
4494         (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4495         i386_push_dummy_code.
4496
4497 2012-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
4498
4499         Remove stale dummy frames.
4500         * breakpoint.c: Include dummy-frame.h.
4501         (longjmp_breakpoint_ops): New variable.
4502         (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4503         bp_longjmp_call_dummy.
4504         (bpstat_what, bptype_string, print_one_breakpoint_location)
4505         (init_bp_location): Support bp_longjmp_call_dummy.
4506         (set_longjmp_breakpoint): Use longjmp_breakpoint_ops.  Comment why.
4507         (set_longjmp_breakpoint_for_call_dummy)
4508         (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4509         functions.
4510         (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4511         * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy.  Delete
4512         FIXME comment and extend the other comment for bp_call_dummy.
4513         (set_longjmp_breakpoint_for_call_dummy)
4514         (check_longjmp_breakpoint_for_call_dummy): New declarations.
4515         * dummy-frame.c: Include gdbthread.h.
4516         (pop_dummy_frame_bpt): New function.
4517         (pop_dummy_frame): Call pop_dummy_frame_bpt.
4518         (dummy_frame_discard): New function.
4519         (cleanup_dummy_frames): Update the comment about longjmps.
4520         * dummy-frame.h (dummy_frame_discard): New declaration.
4521         * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4522         * infcall.c (call_function_by_hand): New variable longjmp_b.  Call
4523         set_longjmp_breakpoint_for_call_dummy.  Chain its breakpoints with BPT.
4524         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4525         Add case 4 comment.  Call check_longjmp_breakpoint_for_call_dummy and
4526         keep_going if IS_LONGJMP and there is no other reason to stop.
4527
4528 2012-06-18  Greta Yorsh  <Greta.Yorsh@arm.com>
4529
4530         * remote-sim.c (sim_command_completer): Initialize
4531         variable 'result'.
4532
4533 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4534
4535         * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4536         * dwarf2loc.c (call_site_parameter_matches): Support
4537         CALL_SITE_PARAMETER_PARAM_OFFSET.
4538         (needs_dwarf_reg_entry_value): Push stub value.
4539         * dwarf2read.c (read_call_site_scope): New variable origin.  Support
4540         CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4541         * gdbtypes.h (enum call_site_parameter_kind): New item
4542         CALL_SITE_PARAMETER_PARAM_OFFSET.
4543         (struct call_site.parameter.u): New field param_offset.
4544
4545 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4546
4547         Code cleanup: Generalize call_site.parameter key.
4548         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4549         variable dwarf_reg.  New variable kind_u.  Update parameters to
4550         push_dwarf_reg_entry_value.
4551         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4552         * dwarf2expr.h (enum call_site_parameter_kind)
4553         (union call_site_parameter_u): Forward declarations.
4554         (struct dwarf_expr_context_funcs): Update parameters and their
4555         description for push_dwarf_reg_entry_value.
4556         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4557         * dwarf2loc.c (call_site_parameter_matches): New function.
4558         (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4559         description.  Use call_site_parameter_matches.
4560         (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4561         Update parameters and their description.
4562         (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4563         New variable kind_u.  Adjust the caller for updated parameters.
4564         (needs_dwarf_reg_entry_value): Update parameters.
4565         * dwarf2read.c (read_call_site_scope): New variable loc.  Use it
4566         instead of attr.  Update for the changed fields of struct
4567         call_site_parameter.
4568         * gdbtypes.h: Include dwarf2expr.h.
4569         (enum call_site_parameter_kind): New.
4570         (struct call_site.parameter): New field kind.  Wrap dwarf_reg and
4571         fb_offset into new union u.
4572
4573 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
4574
4575         * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4576         (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4577         for x32.
4578
4579 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
4580
4581         * amd64-linux-nat.c (compat_x32_clock_t): New.
4582         (compat_x32_siginfo_t): Likewise.
4583         (compat_x32_siginfo_from_siginfo): Likewise.
4584         (siginfo_from_compat_x32_siginfo): Likewise.
4585         (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4586         and siginfo_from_compat_x32_siginfo for x32.
4587
4588 2012-06-15  Hui Zhu  <hui_zhu@mentor.com>
4589
4590         * tracepoint.c (tfile_xfer_partial): Add a lseek.
4591
4592 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
4593
4594         * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4595         instead of gdbarch_ptr_bit.
4596         * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4597         (amd64_supply_native_gregset): Likewise.
4598         (amd64_collect_native_gregset): Likewise.
4599         * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4600         (amd64_supply_xsave): Likewise.
4601         (amd64_collect_fxsave): Likewise.
4602         (amd64_collect_xsave): Likewise.
4603
4604 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
4605
4606         * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4607         (amd64_linux_read_description): Check DS segment register for
4608         x32 process.
4609
4610 2012-06-15  Tom Tromey  <tromey@redhat.com>
4611
4612         * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4613         init_cutu_and_read_dies.
4614
4615 2012-06-15  Iain Sandoe <iain@codesourcery.com>
4616
4617         * MAINTAINERS (Write After Approval): Add myself to the list.
4618
4619 2012-06-15  Tom Tromey  <tromey@redhat.com>
4620
4621         * valops.c (value_find_oload_method_list): Now static.
4622         * value.h (value_find_oload_method_list): Don't declare.
4623
4624 2012-06-15  Tom Tromey  <tromey@redhat.com>
4625
4626         * valops.c (find_overload_match): Use value_ind.
4627
4628 2012-06-15  Maciej W. Rozycki  <macro@codesourcery.com>
4629
4630         * infrun.c (handle_inferior_event): Correct indentation.
4631
4632 2012-06-14  Doug Evans  <dje@google.com>
4633
4634         * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4635         (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4636         All uses updated.
4637         (decode_debug_loc_dwo_addresses): New arg "byte_order".  All callers
4638         updated.  Handle DEBUG_LOC_START_LENGTH.
4639         (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4640         (loclist_describe_location): Ditto.
4641
4642 2012-06-14  Maciej W. Rozycki  <macro@codesourcery.com>
4643
4644         PR backtrace/13866
4645         * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4646         after hiding inline functions.
4647
4648 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
4649
4650         * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4651         _initialize_inf_ttrace.
4652
4653 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
4654
4655         * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4656         _initialize_hppa_hpux_nat.
4657
4658 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
4659
4660         * remote-sim.c (sim_command_completer): Change type of return
4661         value to "VEC (char_ptr) *".  Adjust implementation accordingly.
4662
4663 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
4664             Jan Kratochvil  <jan.kratochvil@redhat.com>
4665
4666         PR tdep/14222
4667         * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4668         stack on a 16-byte boundary.
4669
4670 2012-06-13  Kaushik Srenevasan  <kaushik@twitter.com>
4671
4672         * jit.c (finalize_symtab): Set function's return type to 'void' by
4673         default.
4674
4675 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
4676             H.J. Lu  <hongjiu.lu@intel.com>
4677
4678         * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4679         Move bits common to both the classic LP64 and the new x32 ILP32
4680         ABI here.
4681         (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4682         (amd64_x32_linux_init_abi): New function.
4683         (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4684         subtype.
4685
4686         * i386-tdep.h (i386_pseudo_register_name): New prototype.
4687         * i386-tdep.c (i386_pseudo_register_name): Make public.
4688         * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4689         * amd64-tdep.c (amd64_dword_names): Add "eip".
4690         (amd64_x32_pseudo_register_type): New function
4691         (amd64_x32_init_abi): New function.
4692
4693 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4694
4695         PR build/14003
4696         * inferior.h (struct inferior_suspend_state): Comment out.
4697         (struct inferior): Comment out the field suspend.
4698         * infrun.c (struct infcall_suspend_state): Comment out the field
4699         inferior_suspend.
4700         (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4701         out its assignment.
4702
4703 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4704
4705         PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4706         * c-exp.y (classify_inner_name): Remove caller assumptions in the
4707         function comment.  Return ERROR for unresolved cases.  Implement
4708         returning proper NAME.
4709         (yylex): Accept also NAME from classify_inner_name.
4710         * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4711         (cp_lookup_nested_symbol): ... here.  Return any found symbol, not just
4712         LOC_TYPEDEF type.
4713         * cp-support.h (cp_lookup_nested_type): Update its declaration.
4714
4715 2012-06-13  Tom Tromey  <tromey@redhat.com>
4716
4717         * breakpoint.c (condition_completer): New function.
4718         (_initialize_breakpoint): Use it.
4719         * value.c (complete_internalvar): New function.
4720         * value.h (complete_internalvar): Declare.
4721
4722 2012-06-13  Tom Tromey  <tromey@redhat.com>
4723
4724         * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4725         * breakpoint.c (catch_syscall_completer): Return a VEC.
4726         * cli/cli-cmds.c (complete_command): Update.
4727         * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4728         (complete_on_enum): Likewise.
4729         * command.h: Include gdb_vecs.h.
4730         (completer_ftype): Change return type.
4731         (complete_on_cmdlist, complete_on_enum): Likewise.
4732         * completer.c (noop_completer, filename_completer)
4733         (location_completer): Return a VEC.
4734         (add_struct_fields): Remove 'nextp' argument.  Change 'output'
4735         to a VEC.
4736         (expression_completer, complete_line_internal, complete_line)
4737         (command_completer): Return a VEC.
4738         (gdb_completion_word_break_characters, line_completion_function):
4739         Update.
4740         * completer.h: Include gdb_vecs.h.
4741         (complete_line, noop_completer, filename_completer)
4742         (expression_completer, location_completer, command_completer):
4743         Update.
4744         * f-lang.c (f_word_break_characters): Return a VEC.
4745         * interps.c (interpreter_completer): Return a VEC.
4746         * language.h (struct language_defn)
4747         <la_make_symbol_completion_list>: Return a VEC.
4748         * python/py-cmd.c (cmdpy_completer): Return a VEC.
4749         * symtab.c (free_completion_list): Take a VEC.
4750         (return_val_size, return_val_index): Remove.
4751         (return_val): Now a VEC.
4752         (completion_list_add_name): Update.
4753         (default_make_symbol_completion_list_break_on)
4754         (default_make_symbol_completion_list, make_symbol_completion_list)
4755         (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4756         Return a VEC.
4757         (add_filename_to_list): Update.
4758         (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4759         <list>: Now a VEC.
4760         (maybe_add_partial_symtab_filename): Update.
4761         (make_source_files_completion_list): Return a VEC.
4762         * symtab.h (default_make_symbol_completion_list_break_on)
4763         (default_make_symbol_completion_list, make_symbol_completion_list)
4764         (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4765         (make_source_files_completion_list): Update.
4766
4767 2012-06-13  Tom Tromey  <tromey@redhat.com>
4768
4769         * breakpoint.c (add_catch_command): Use completer_ftype.
4770         * breakpoint.h: Include command.h.
4771         (add_catch_command): Use completer_ftype.
4772         * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4773         * cli/cli-decode.h (struct cmd_list_element) <completer>:
4774         Use completer_ftype.
4775         * command.h (completer_ftype): New typedef.
4776         (set_cmd_completer): Use it.
4777         * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4778         completer_ftype.
4779
4780 2012-06-13  Pedro Alves  <palves@redhat.com>
4781
4782         Partial revert of previous change.
4783
4784         * serial.c (scb_base): New global.
4785         (serial_for_fd): New.
4786         (serial_open, serial_fdopen_ops): Link new serial in open serials
4787         chain.
4788         (do_serial_close): Unlink serial from the open serials chain.
4789
4790 2012-06-12  Pedro Alves  <palves@redhat.com>
4791
4792         * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4793         threads here.
4794         (prepare_for_detach): No longer context switch here in non-stop
4795         mode.
4796         (fetch_inferior_event): Ditto.
4797         (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4798         to the event thread before removing breakpoints.  Switch to the
4799         event thread before inserting breakpoints and resuming.
4800         (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4801         event thread before resuming.
4802         (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4803         Switch to the event thread before removing breakpoints.
4804
4805 2012-06-12  Eli Zaretskii  <eliz@gnu.org>
4806
4807         * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4808         special characters correctly for the Windows shells.  See
4809         http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4810         report.
4811         [!__MINGW32__]: Remove extra double quote character from special
4812         characters.
4813
4814 2012-06-11  Stan Shebs  <stan@codesourcery.com>
4815
4816         * ui-out.h: Remove #if 0 declarations.
4817         * ui-out.c: Remove #if 0 functions.
4818
4819 2012-06-11  Pedro Alves  <palves@redhat.com>
4820
4821         * ser-base.c (run_async_handler_and_reschedule): New.
4822         (fd_event, push_event): Use it.
4823         * serial.c (serial_open, serial_fdopen_ops): Set the initial
4824         reference count to 1.
4825         (do_serial_close): Set the bufp field to NULL.  Use serial_unref
4826         instead of xfree.
4827         (serial_is_open, serial_ref, serial_unref): New.
4828         * serial.h (serial_open): Adjust comment.
4829         (serial_is_open): Declare.
4830         (serial_close): Adjust comment.
4831         (serial_ref, serial_unref) Declare.
4832         (struct serial): New field 'refcnt'.
4833
4834 2012-06-11  Pedro Alves  <palves@redhat.com>
4835
4836         Remove #if 0'd "connect" command, and unnecessary associated
4837         refcounting and serial reuse bits.
4838
4839         * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4840         * serial.c (last_serial_opened): Delete.
4841         (scb_base): Delete.
4842         (serial_open): Adjust.
4843         (serial_for_fd): Delete.
4844         (serial_fdopen_ops, do_serial_close): Adjust.
4845         (serial_fdopen_ops): Adjust.
4846
4847 2012-06-11  Pedro Alves  <palves@redhat.com>
4848
4849         * serial.c (do_serial_close): Remove early return when SCB is
4850         null.
4851
4852 2012-06-11  Tom Tromey  <tromey@redhat.com>
4853
4854         * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4855
4856 2012-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4857
4858         Fix regression by the "ambiguous linespec" series.
4859         * breakpoint.c (parse_breakpoint_sals): New variable cursal.  Use
4860         get_last_displayed_symtab and get_last_displayed_line and depending
4861         on CURSAL.
4862
4863 2012-06-11  Tom Tromey  <tromey@redhat.com>
4864
4865         * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4866         (dw2_find_symbol_file): Use it.
4867
4868 2012-06-11  Michael Eager  <eager@eagercon.com>
4869
4870         * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4871         * mips-linux-tdep.h (mips_signals): New
4872
4873 2012-06-11  Tom Tromey  <tromey@redhat.com>
4874
4875         * infrun.c (handle_inferior_event)
4876         <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4877         breakpoint.
4878         <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4879         exception logic in all cases.  Update comments.
4880         (insert_longjmp_resume_breakpoint): Set the exception resume
4881         breakpoint.
4882
4883 2012-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
4884
4885         * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4886
4887 2012-06-09  Siva Chandra Reddy  <sivachandra@google.com>
4888
4889         * valarith.c (binop_types_user_defined_p): Fix a typo.
4890
4891 2012-06-08  Yao Qi  <yao@codesourcery.com>
4892             Chung-Lin Tang <cltang@codesourcery.com>
4893
4894         * arch-utils.c (default_return_in_first_hidden_param_p): New.
4895         * arch-utils.h: Declare.
4896         * gdbarch.sh: Add return_in_first_hidden_param_p.
4897         * gdbarch.c, gdbarch.h: Regenerated.
4898         * infcall.c (call_function_by_hand): Call
4899         gdbarch_return_in_first_hidden_param_p instead of
4900         language_pass_by_reference.
4901
4902         * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4903         (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4904         * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4905         (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4906         * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4907         `cplus_return_struct_by_reference'.
4908         (tic6x_return_value): Handle language cplusplus.
4909         (tic6x_return_in_first_hidden_param_p): New.
4910         (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4911
4912 2012-06-07  Doug Evans  <dje@google.com>
4913
4914         * dwarf2read.c (dwarf2_cu): Add comment.
4915
4916 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4917
4918         * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4919         variable.
4920         (mips_eabi_push_dummy_call): Likewise.
4921         (mips_n32n64_push_dummy_call): Likewise.
4922         (mips_o32_push_dummy_call): Likewise.
4923         (mips_o64_push_dummy_call): Likewise.
4924
4925 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4926
4927         * mips-tdep.c (mips_convert_register_p): Correct coding style.
4928
4929 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4930
4931         * mips-tdep.c (mips_pseudo_register_type): Use
4932         mips_float_register_p.
4933
4934 2012-06-06  Pedro Alves  <palves@redhat.com>
4935
4936         * infrun.c (handle_inferior_event): Remove calls to
4937         reinit_frame_cache that follow a context_switch call.
4938
4939 2012-06-06  Pedro Alves  <palves@redhat.com>
4940
4941         * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4942         context_switch and remove stale comment.
4943
4944 2012-06-06  Pedro Alves  <palves@redhat.com>
4945
4946         * infrun.c (struct execution_control_state): Remove
4947         `new_thread_event' field.
4948         (handle_inferior_event): Simplify new threads handling; don't
4949         resume the inferior if we find a new thread.
4950
4951 2012-06-06  Thomas Schwinge  <thomas@codesourcery.com>
4952
4953         * NEWS: Document the deprecation of SH's 'regs' command.
4954         * inferior.h (all_registers_info): Add function declaration.
4955         * sh-tdep.c (sh_show_regs): Remove variable.
4956         (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4957         (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4958         (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4959         (sh_show_regs_command): Remove functions.
4960         (sh_gdbarch_init): Don't set sh_show_regs.
4961         (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4962         'info all-registers'.
4963         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4964         (sh64_show_regs): Remove functions.
4965         * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4966
4967 2012-06-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
4968
4969         * configure.ac: Move development=true below AC_INIT.
4970         * configure: Regenerate.
4971
4972 2012-06-05  Stan Shebs  <stan@codesourcery.com>
4973
4974         * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4975         gdb_stdout.
4976
4977 2012-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
4978
4979         * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4980         argument as ssize_t.
4981         * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4982         * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4983         * target.c (target_read_stack, target_write_memory)
4984         (target_write_raw_memory): Likewise.
4985         * target.h (target_read_stack, target_write_memory)
4986         (target_write_raw_memory): Likewise.
4987
4988 2012-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
4989
4990         * symfile-mem.c: Change gdb_static_assert to ssize_t.
4991         (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4992         * target.c (target_read_memory): Change LEN to ssize_t.
4993         * target.h (target_read_memory): Change LEN to ssize_t.
4994
4995 2012-06-05  Pedro Alves  <palves@redhat.com>
4996
4997         PR backtrace/13866
4998
4999         * breakpoint.c (until_break_command): Only fetch the selected
5000         frame after decode_line_1.
5001
5002 2012-06-05  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
5003
5004         * solib-svr4.c (enable_break): Don't fallback to setting the solib
5005         event breakpoint at _start, __start or main if a program
5006         interpreter is not found.
5007
5008 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5009
5010         * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5011         Add declaration.
5012         * windows-tdep.c: #include "objfiles.h".
5013         (windows_iterate_over_objfiles_in_search_order): New function.
5014         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5015         iterate_over_objfiles_in_search_order gdbarch method to
5016         windows_iterate_over_objfiles_in_search_order.
5017         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5018
5019 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5020
5021         * gdbarch.sh: Add generation of
5022         "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5023         gdbarch.h.  Add include of "objfiles.h" in gdbarch.c.
5024         (iterate_over_objfiles_in_search_order): New gdbarch method.
5025         * gdbarch.h, gdbarch.c: Regenerate.
5026         * objfiles.h (default_iterate_over_objfiles_in_search_order):
5027         Add declaration.
5028         * objfiles.c (default_iterate_over_objfiles_in_search_order):
5029         New function.
5030         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5031         out of lookup_symbol_aux_symtabs.
5032         (lookup_symbol_aux_symtabs): Replace extracted-out code by
5033         call to lookup_symbol_aux_objfile.
5034         (struct global_sym_lookup_data): New type.
5035         (lookup_symbol_global_iterator_cb): New function.
5036         (lookup_symbol_global): Search for symbol using
5037         gdbarch_iterate_over_objfiles_in_search_order and
5038         lookup_symbol_global_iterator_cb.
5039         * findvar.c (struct minsym_lookup_data): New type.
5040         (minsym_lookup_iterator_cb): New function.
5041         (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5042         symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5043         and minsym_lookup_iterator_cb.
5044
5045 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5046
5047         Revert the following patch:
5048         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5049         try locating the symbol in the symbol's own objfile first, before
5050         extending the search to all objfiles.
5051         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5052         out of lookup_symbol_aux_symtabs.
5053         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5054         Replace extracted-out code by call to lookup_symbol_aux_objfile.
5055         Do not search EXCLUDE_OBJFILE.
5056         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5057         (lookup_symbol_global): Search for matches in the block's objfile
5058         first, before searching all other objfiles.
5059
5060 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5061
5062         * breakpoint.c (find_condition_and_thread): Stop parsing
5063         as soon as the first invalid keyword is found.
5064
5065 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5066
5067         * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5068
5069 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5070
5071         * config/djgpp/djcheck.sh: Add copyright header.
5072
5073 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5074
5075         * copyright.py (update_files, main): Fix path to update-copyright
5076         script.
5077
5078 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5079
5080         * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5081         (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5082         for which a reminder to update by hand is printed.
5083
5084 2012-06-04  Doug Evans  <dje@google.com>
5085
5086         * buildsym.c (make_blockvector): Add comment.
5087
5088 2012-06-04  Pedro Alves  <palves@redhat.com>
5089
5090         * arch-utils.c (default_gdb_signal_from_target): Delete.
5091         * arch-utils.h (default_gdb_signal_from_target): Delete.
5092         * corelow.c (core_open) <signal mapping>: Extended comment.  Check
5093         gdbarch_gdb_signal_from_target_p.
5094         * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5095         predicate).
5096         * gdbarch.h: Regenerate.
5097         * gdbarch.c: Regenerate.
5098
5099 2012-06-04  Pedro Alves  <palves@redhat.com>
5100
5101         * gdbarch.sh (gdb_signal_from_target): Mention that the
5102         implementation of the method must be host independent.
5103         * gdbarch.h: Regenerate.
5104
5105 2012-06-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5106
5107         * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5108         parameters.
5109         (target_read_memory_bfd): New function.
5110         (symbol_file_add_from_memory): Use it.
5111
5112 2012-06-03  Doug Evans  <dje@google.com>
5113
5114         * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5115         of primary symtab.
5116         (basic_lookup_transparent_type): Ditto.
5117
5118         * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5119         (ALL_PRIMARY_SYMTABS): Use it.
5120         (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5121         * dwarf2read.c (dw2_find_symbol_file): Ditto.
5122         * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5123         * symtab.c (lookup_symbol_aux_objfile): Ditto.
5124         (basic_lookup_transparent_type): Ditto.
5125
5126 2012-06-02  Sergio Durigan Junior  <sergiodj@redhat.com>
5127
5128         * symtab.c (symbol_demangled_name): New variable `dem_name'.  Use
5129         it to optimize resolution of demangled name.
5130
5131 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5132
5133         * configure.ac (development): Define new variable.
5134         Call AC_CHECK_LIB for mcheck if $development.
5135         (ERROR_ON_WARNING): Enable it by default only if $development.
5136         * config.in: Regenerate.
5137         * configure: Regenerate.
5138
5139 2012-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
5140
5141         * target.c (target_read_memory): Make LEN argument as size_t.
5142         * target.h (target_read_memory): Likewise.
5143
5144 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5145
5146         * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5147
5148 2012-05-31  Edjunior Machado  <emachado@linux.vnet.ibm.com>
5149
5150         * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5151         BookE interface for PowerPC server processors if not available
5152         in the Linux Kernel.
5153
5154 2012-05-31  Keith Seitz  <keiths@redhat.com>
5155
5156         * linespec.c (decode_objc): Add cleanup to free
5157         INFO.FILE_SYMTABS.
5158         (find_linespec_symbols): Add cleanup to free CLASSES.
5159         * symfile.c (find_separate_debug_file_by_debuglink): Add
5160         cleanup to free DEBUGLINK.
5161         * ui-out.c (clear_header_list): No need to check if
5162         HEADER_NEXT.COLHDR is NULL.
5163         Free HEADER_NEXT.COL_NAME.
5164
5165 2012-05-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
5166
5167         * ada-lang.c (standard_lookup): Prevent uninitialized variable
5168         warning.
5169
5170 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
5171
5172         * configure.host (gdb_host_cpu): Handle tilegx*.
5173         (gdb_host): Handle tilegx-*-linux*.
5174         * tilegx-linux-nat.c: New file.
5175         * config/tilegx/linux.mh: New file.
5176
5177 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
5178
5179         * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5180         tilegx-linux-tdep.o.
5181         (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5182         tilegx-linux-tdep.c.
5183         * configure.tgt: Handle tilegx-*-linux*.
5184         * tilegx-tdep.h: New file.
5185         * tilegx-tdep.c: New file.
5186         * tilegx-linux-tdep.c: New file.
5187         * regformats/reg-tilegx.dat: New file.
5188
5189 2012-05-30  Edjunior Machado  <emachado@linux.vnet.ibm.com>
5190
5191         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5192         accounting of hw watchpoints on ppc.
5193
5194 2012-05-30  Thiago Jung Bauermann  <thiago.bauermann@linaro.org>
5195
5196         * source.c (openp): Expand tilde in path entries.
5197
5198 2012-05-29  Doug Evans  <dje@google.com>
5199
5200         * buildsym.c (block_compar): Fix comment.
5201         (end_symtab): Fix and clarify some comments.
5202
5203         * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5204         cleanup_undefined_types.
5205         * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5206         All callers updated.
5207
5208 2012-05-29  Tom Tromey  <tromey@redhat.com>
5209
5210         * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5211         fails.
5212         * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5213         * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5214         fails.
5215         * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5216         fails.
5217
5218 2012-05-29  Tristan Gingold  <gingold@adacore.com>
5219
5220         * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5221         (struct darwin_info): ... New struct.
5222         (solib_darwin_pspace_data): New variable.
5223         (darwin_pspace_data_cleanup): New function.
5224         (get_darwin_info): Likewise.
5225         (darwin_dyld_version_ok, darwin_load_image_infos)
5226         (darwin_solib_get_all_image_info_addr_at_init)
5227         (darwin_solib_read_all_image_info_addr): Add info argument.
5228         Adjust code.
5229         (darwin_current_sos): Use per pspace structure.
5230         (darwin_solib_create_inferior_hook): Likewise.
5231         (darwin_clear_solib): Likewise.
5232         (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5233
5234 2012-05-28  Pedro Alves  <palves@redhat.com>
5235
5236         * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5237         block that uses them.  Clear ecss before handling each event.
5238
5239 2012-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
5240
5241         * solib-svr4.c (svr4_current_sos): New comment on
5242         svr4_current_sos_via_xfer_libraries fall back.
5243
5244 2012-05-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
5245
5246         * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best.  Use
5247         it as a fallback for TYPE_IS_OPAQUE.
5248         * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5249         symbols for lookup_symbol.
5250
5251 2012-05-24  John Steele Scott  <toojays@toojays.net>
5252
5253         PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5254         * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5255         (producer_is_gxx_lt_4_6): Move the checking and caching to...
5256         (check_producer): ... this new function, which also checks for ICC
5257         and caches the result.
5258         (producer_is_icc): New function.
5259         (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5260         producer was ICC.
5261
5262 2012-05-24  Pedro Alves  <palves@redhat.com>
5263
5264         PR gdb/7205
5265
5266         * arch-utils.c (default_gdb_signal_to_host): Rename to ...
5267         (default_gdb_signal_to_target): ... this.  Add comment.
5268         (default_gdb_signal_from_host): Rename to ...
5269         (default_gdb_signal_from_target): ... this.  Add comment.
5270         * arch-utils.h (default_gdb_signal_to_host): Rename to ...
5271         (default_gdb_signal_to_target): ... this.
5272         (default_gdb_signal_from_host): Rename to ...
5273         (default_gdb_signal_from_target): ... this.
5274         * corelow.c (core_open): Adjust to naming change.  Replace comment.
5275         * gdbarch.sh (gdb_signal_from_host): Rename to ...
5276         (gdb_signal_from_target): ... this.  Adjust to
5277         default_gdb_signal_from_host naming change.  Extend comment.
5278         (gdb_signal_to_host): Rename to ...
5279         (gdb_signal_to_target): ... this.  Adjust to
5280         default_gdb_signal_to_host naming change.
5281         * gdbarch.h, gdbarch.c: Renegerate.
5282
5283 2012-05-24  Pedro Alves  <palves@redhat.com>
5284
5285         PR gdb/7205
5286
5287         Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
5288
5289 2012-05-24  Pedro Alves  <palves@redhat.com>
5290
5291         PR gdb/7205
5292
5293         Replace target_signal with gdb_signal throughout.
5294
5295 2012-05-24  Pedro Alves  <palves@redhat.com>
5296
5297         PR tui/14159
5298
5299         * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
5300         string, instead of reusing the va_list argument.
5301
5302 2012-05-24  Tom Tromey  <tromey@redhat.com>
5303
5304         * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
5305         Remove.
5306
5307 2012-05-23  Doug Evans  <dje@google.com>
5308
5309         * symtab.c (search_symbols): Formatting fixes.
5310         (print_symbol_info): Formatting fixes.
5311
5312         * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
5313         int64_t change to leb128 API.
5314         (read_encoded_value, decode_frame_entry_1): Ditto.
5315         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
5316         (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
5317         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5318         (execute_stack_op): Ditto.
5319         * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
5320         (safe_read_uleb128, safe_read_sleb128): Ditto.
5321         * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
5322         (dwarf2_compile_expr_to_ax): Ditto.
5323         (locexpr_describe_location_piece): Ditto.
5324         (disassemble_dwarf_expression): Ditto.
5325         (locexpr_describe_location_1): Ditto.
5326
5327 2012-05-23  Stan Shebs  <stan@codesourcery.com>
5328             Kwok Cheung Yeung  <kcy@codesourcery.com>
5329
5330         * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5331         (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5332         (mi-cmd-info.o): New rule.
5333         * osdata.h (info_osdata_command): New declaration.
5334         * osdata.c (info_osdata_command): Change to non-static.
5335         * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5336         * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5337         * mi/mi-cmd-info.c: New file.
5338
5339 2012-05-23  Doug Evans  <dje@google.com>
5340
5341         * symtab.c (search_symbols): Pass NULL for file_matcher to
5342         expand_symtabs_matching if there are no files to match.
5343
5344         * gdbtypes.c (lookup_typename): Simplify.
5345
5346 2012-05-23  Pedro Alves  <palves@redhat.com>
5347
5348         * arch-utils.h (default_target_signal_to_host): Delete.
5349         * arch-utils.c (default_target_signal_to_host): Delete.
5350         * gdbarch.sh (target_signal_to_host): Remove.
5351         * gdbarch.h, gdbarch.c: Regenerate.
5352
5353 2012-05-22  Doug Evans  <dje@google.com>
5354
5355         * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5356         "const gdb_byte *".
5357         (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5358         (execute_cfa_program): Update to match API of leb128 functions.
5359         (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5360         "const gdb_byte *".
5361         (read_unsigned_leb128, read_signed_leb128): Delete.
5362         (read_initial_length): Change type of buf argument to
5363         "const gdb_byte *".
5364         (read_encoded_value): Update to match API of leb128 functions.
5365         (decode_frame_entry): Change result to "const gdb_byte *", and
5366         similarly for "start" parameter.
5367         (decode_frame_entry_1): Ditto.  Use new leb128 reader functions.
5368         (dwarf2_build_frame_info): Change local frame_ptr to
5369         "const gdb_byte *".
5370         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5371         read_uleb128, read_sleb128.  All callers updated.
5372         (safe_skip_leb128): New function.
5373         (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5374         Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5375         (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5376         functions.  Call gdb_read_uleb128, gdb_read_sleb128 instead of
5377         read_uleb128, read_sleb128.
5378         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5379         (execute_stack_op): Update to match API of leb128 functions.
5380         * dwarf2expr.h: #include "leb128.h".
5381         (read_uleb128, read_sleb128): Delete.
5382         (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5383         (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5384         * dwarf2loc.c (debug_loc_kind): New enum.
5385         (decode_debug_loc_addresses): New function.
5386         (decode_debug_loc_dwo_addresses): New function.
5387         (dwarf2_find_location_expression): Rewrite.
5388         (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5389         (locexpr_describe_location_piece): Ditto.
5390         (disassemble_dwarf_expression): Ditto.
5391         (locexpr_describe_location_1): Ditto.
5392         (loclist_describe_location): Rewrite.
5393         * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5394         * dwarf2read.c (die_reader_specs): New member "buffer_end".
5395         (dwarf2_section_buffer_overflow_complaint): Renamed from
5396         dwarf2_macros_too_long_complaint.  All callers updated.
5397         (skip_leb128): Delete.
5398         (init_cu_die_reader): Initialize reader->buffer_end.
5399         (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5400         (skip_form_bytes): New arg buffer_end.  All callers updated.
5401         Replace call to skip_leb128 with gdb_skip_leb128.
5402         (skip_unknown_opcode): New arg mac_end.  All callers updated.
5403         (fill_in_loclist_baton): Initialize baton->from_dwo.
5404
5405 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
5406
5407         * mips-linux-nat.c (mips_linux_read_description): Use a more
5408         verbose error message.
5409
5410 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
5411
5412         * NEWS: Add MIPS/Linux DSP support.
5413         * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5414         (SIGCONTEXT_DSPCTL): New macro.
5415         (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5416         (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5417         (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5418         (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5419         (N64_SIGCONTEXT_HI3): Likewise.
5420         (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5421         (N64_SIGCONTEXT_LO3): Likewise.
5422         (N64_SIGCONTEXT_DSPCTL): Likewise.
5423         (N64_SIGCONTEXT_FPCSR): Clarify definition.
5424         (mips_linux_o32_sigframe_init): Handle DSP registers.
5425         (mips_linux_n32n64_sigframe_init): Likewise.
5426
5427 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
5428
5429         * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5430         call to abort.
5431
5432 2012-05-22  Pedro Alves  <palves@redhat.com>
5433
5434         * target.h (store_waitstatus): Move declaration ...
5435         * inf-child.h (store_waitstatus): ... here.
5436         * target.c: Move inclusion of gdb_wait.h, and ...
5437         (store_waitstatus): ... this ...
5438         * inf-child.c: ... here.
5439         * linux-nat.c: Include inf-child.h.
5440         * rs6000-nat.c: Include inf-child.h.
5441         * spu-linux-nat.c: Include inf-child.h.
5442
5443 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
5444
5445         * tracepoint.c (start_tracing): Add missing i18n markup.
5446         (stop_tracing, set_trace_user): Ditto.
5447         (set_trace_notes, set_trace_stop_notes): Ditto.
5448
5449 2012-05-21  Tom Tromey  <tromey@redhat.com>
5450
5451         PR c++/7173:
5452         * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5453         types.
5454         * value.h (value_cast_pointers): Update.
5455         * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5456         (value_cast): Update.
5457         (update_search_result): New function.
5458         (do_search_struct_field): New, from search_struct_field.  Check
5459         for ambiguous results.
5460         (search_struct_field): Rewrite.
5461         * infcall.c (value_arg_coerce): Update.
5462         * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5463         value_cast_pointers.
5464         * ada-lang.c (ada_convert_actual): Update.
5465
5466 2012-05-21  Tom Tromey  <tromey@redhat.com>
5467
5468         * macroexp.c (macro_stringify): Terminate the string.
5469
5470 2012-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
5471
5472         * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5473         Describe it.
5474         * auto-load.c (auto_load_expand_dir_vars): New function.
5475         (auto_load_safe_path_vec_update): Use it, remove the
5476         substitute_path_component call thanks to it.
5477         (auto_load_objfile_script): Remove the debug_file_directory processing.
5478         Use auto_load_expand_dir_vars, remove the substitute_path_component
5479         call thanks to it.
5480         * configure: Regenerate.
5481         * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5482         path.  Escape $ also for $debugdir.
5483         (--with_auto_load_safe_path): Escape $ also for $debugdir.
5484         * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5485
5486 2012-05-20  Doug Evans  <dje@google.com>
5487
5488         * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5489         before use.  Check for symtab->includes == NULL before scanning it.
5490
5491 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5492
5493         * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5494
5495 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5496
5497         * NEWS: Add microMIPS support and "set mips compression",
5498         "show mips compression" commands.
5499         * mips-tdep.h (mips_isa): New enum.
5500         (gdbarch_tdep): Add mips_isa.
5501         (mips_pc_is_mips16): Update prototype.
5502         (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5503         * mips-tdep.c (mips_compression_mips16): New variable.
5504         (mips_compression_micromips): Likewise.
5505         (mips_compression_strings): Likewise.
5506         (mips_compression_string): Likewise.
5507         (is_mips16_isa, is_micromips_isa): New functions.
5508         (is_mips16_addr): Rename to...
5509         (is_compact_addr): ... this.
5510         (unmake_mips16_addr): Likewise to...
5511         (unmake_compact_addr): ... this.
5512         (make_mips16_addr): Likewise to...
5513         (make_compact_addr): ... this.
5514         (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5515         functions.
5516         (mips_elf_make_msymbol_special): Handle microMIPS code.
5517         (msymbol_is_special): Rename to...
5518         (msymbol_is_mips16): ... this.
5519         (mips_make_symbol_special, mips_pc_is_mips16): Update
5520         accordingly.
5521         (msymbol_is_mips, msymbol_is_micromips): New functions.
5522         (mips16_to_32_reg): Rename to...
5523         (mips_reg3_to_reg): ... this.
5524         (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5525         (mips_pc_isa): Likewise.
5526         (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5527         code.
5528         (mips_fetch_instruction): Pass return status instead of printing
5529         an error message if requested.  Handle microMIPS code.  Bail out
5530         on an invalid ISA.
5531         (micromips_op): New macro.
5532         (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5533         (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5534         (b6s4_op, b7s3_reg): Likewise.
5535         (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5536         (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5537         (mips_insn_size): New function.
5538         (mips32_next_pc): Update mips_fetch_instruction call.
5539         (micromips_relative_offset7): New function.
5540         (micromips_relative_offset10): Likewise.
5541         (micromips_relative_offset16): Likewise.
5542         (micromips_pc_insn_size): Likewise.
5543         (micromips_bc1_pc): Likewise.
5544         (micromips_next_pc): Likewise.
5545         (unpack_mips16): Update mips_fetch_instruction call.
5546         (extended_mips16_next_pc): Update according to change to
5547         mips16_to_32_reg.
5548         (mips_next_pc): Update mips_pc_is_mips16 call.  Handle microMIPS
5549         code.
5550         (mips16_scan_prologue): Update mips_fetch_instruction call.
5551         Update according to change to mips16_to_32_reg.
5552         (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5553         (mips_insn16_frame_base_sniffer): Likewise.
5554         (micromips_decode_imm9): New function.
5555         (micromips_scan_prologue): Likewise.
5556         (mips_micro_frame_cache): Likewise.
5557         (mips_micro_frame_this_id): Likewise.
5558         (mips_micro_frame_prev_register): Likewise.
5559         (mips_micro_frame_sniffer): Likewise.
5560         (mips_micro_frame_unwind): New variable.
5561         (mips_micro_frame_base_address): New function.
5562         (mips_micro_frame_base): New variable.
5563         (mips_micro_frame_base_sniffer): New function.
5564         (mips32_scan_prologue): Update mips_fetch_instruction call.
5565         (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5566         rather than for MIPS16.
5567         (mips_insn32_frame_base_sniffer): Likewise.
5568         (mips_addr_bits_remove): Handle microMIPS code.
5569         (deal_with_atomic_sequence): Rename to...
5570         (mips_deal_with_atomic_sequence): ... this.  Update the type
5571         of the variable used to hold an instruction.  Remove the ISA bit
5572         check.  Update mips_fetch_instruction call.
5573         (micromips_deal_with_atomic_sequence): New function.
5574         (deal_with_atomic_sequence): Likewise.
5575         (mips_about_to_return): Handle microMIPS code.  Update
5576         mips_fetch_instruction call.
5577         (heuristic_proc_start): Check for the standard MIPS ISA rather
5578         than for MIPS16.  Update mips_pc_is_mips16 and
5579         mips_fetch_instruction calls.  Handle microMIPS code.
5580         (mips_push_dummy_code): Handle microMIPS code.
5581         (mips_eabi_push_dummy_call): Likewise.
5582         (mips_o32_return_value): Update mips_pc_is_mips16 call.
5583         (mips_o64_push_dummy_call): Handle microMIPS code.
5584         (mips_o64_return_value): Update mips_pc_is_mips16 call.
5585         (is_delayed): Remove function.
5586         (mips_single_step_through_delay): Replace the call to is_delayed
5587         with mips32_instruction_has_delay_slot.  Correct MIPS16 handling.
5588         Handle microMIPS code.
5589         (mips_skip_prologue): Update mips_pc_is_mips16 call.  Handle
5590         microMIPS code.
5591         (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5592         call.
5593         (micromips_in_function_epilogue_p): New function.
5594         (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5595         call.
5596         (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5597         Handle microMIPS.
5598         (gdb_print_insn_mips): Likewise.
5599         (mips_breakpoint_from_pc): Likewise.
5600         (mips_remote_breakpoint_from_pc): New function.
5601         (mips32_instruction_has_delay_slot): Simplify making use of the
5602         updated mips_fetch_instruction interface.
5603         (micromips_instruction_has_delay_slot): New function.
5604         (mips16_instruction_has_delay_slot): Simplify making use of the
5605         updated mips_fetch_instruction interface.
5606         (mips_adjust_breakpoint_address): Check for the standard MIPS
5607         ISA rather than for MIPS16 ISA.  Update for unmake_compact_addr
5608         calls.  Handle microMIPS code.
5609         (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5610         (mips_skip_trampoline_code): Handle microMIPS code.
5611         (global_mips_compression): New function.
5612         (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5613         file flags.  Register the microMIPS remote breakpoint handler
5614         and heuristic frame unwinder.
5615         (show_mips_compression): New function.
5616         (_initialize_mips_tdep): Add the "set mips compression" and
5617         "show mips compression" commands.
5618
5619 2012-05-18  Sergio Durigan Junior  <sergiodj@redhat.com>
5620
5621         * ada-lang.c:
5622         * ada-tasks.c:
5623         * ada-varobj.c:
5624         * amd64-darwin-tdep.c:
5625         * arm-symbian-tdep.c:
5626         * arm-tdep.c:
5627         * avr-tdep.c:
5628         * ax-gdb.c:
5629         * bfin-linux-tdep.c:
5630         * breakpoint.c:
5631         * c-valprint.c:
5632         * cli/cli-cmds.c:
5633         * coffread.c:
5634         * cp-support.c:
5635         * cris-tdep.c:
5636         * dwarf2-frame-tailcall.c:
5637         * dwarf2-frame.c:
5638         * dwarf2expr.c:
5639         * dwarf2loc.c:
5640         * dwarf2read.c:
5641         * elfread.c:
5642         * eval.c:
5643         * expprint.c:
5644         * f-valprint.c:
5645         * frv-tdep.c:
5646         * h8300-tdep.c:
5647         * hppa-hpux-tdep.c:
5648         * hppa-tdep.c:
5649         * hppanbsd-tdep.c:
5650         * i386-nto-tdep.c:
5651         * i386-tdep.c:
5652         * i387-tdep.c:
5653         * ia64-tdep.c:
5654         * jit.c:
5655         * linespec.c:
5656         * linux-tdep.c:
5657         * lm32-tdep.c:
5658         * m2-valprint.c:
5659         * m32c-tdep.c:
5660         * m32r-rom.c:
5661         * m32r-tdep.c:
5662         * m68k-tdep.c:
5663         * m68klinux-tdep.c:
5664         * mi/mi-main.c:
5665         * microblaze-tdep.c:
5666         * mips-linux-tdep.c:
5667         * mips-tdep.c:
5668         * mn10300-tdep.c:
5669         * p-valprint.c:
5670         * parse.c:
5671         * ppc-linux-tdep.c:
5672         * ppc-sysv-tdep.c:
5673         * printcmd.c:
5674         * python/py-finishbreakpoint.c:
5675         * python/py-inferior.c:
5676         * python/py-infthread.c:
5677         * python/py-type.c:
5678         * python/python.c:
5679         * remote-fileio.c:
5680         * remote-m32r-sdi.c:
5681         * remote-mips.c:
5682         * reverse.c:
5683         * rl78-tdep.c:
5684         * rs6000-aix-tdep.c:
5685         * rs6000-tdep.c:
5686         * s390-tdep.c:
5687         * score-tdep.c:
5688         * sh64-tdep.c:
5689         * skip.c:
5690         * solib-darwin.c:
5691         * solib-dsbt.c:
5692         * solib-frv.c:
5693         * sparc-tdep.c:
5694         * spu-multiarch.c:
5695         * spu-tdep.c:
5696         * stack.c:
5697         * symfile.c:
5698         * symtab.c:
5699         * tic6x-tdep.c:
5700         * tracepoint.c:
5701         * v850-tdep.c:
5702         * valarith.c:
5703         * valprint.c:
5704         * value.c:
5705         * xcoffread.c:
5706         * xtensa-tdep.c:
5707         * ada-lang.c:
5708         * ada-tasks.c:
5709         * ada-varobj.c:
5710         * amd64-darwin-tdep.c:
5711         * arm-symbian-tdep.c:
5712         * arm-tdep.c: Delete unused variables.
5713
5714 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5715
5716         Rename $ddir to $datadir.
5717         * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5718         * auto-load.c (auto_load_safe_path_vec_update)
5719         (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5720         * configure: Regenerate.
5721         * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5722         Likewise.  Remove the 'use $ddir' help string.
5723
5724 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5725
5726         * auto-load.c (show_auto_load_safe_path): Accept any combination of
5727         DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5728
5729 2012-05-18  Tom Tromey  <tromey@redhat.com>
5730
5731         PR exp/13907:
5732         * valprint.h (struct value_print_options) <symbol_print>: New
5733         field.
5734         * valprint.c (user_print_options): Add default for symbol_print.
5735         (show_symbol_print): New function.
5736         (generic_val_print): Respect symbol_print.
5737         (_initialize_valprint): Add "print symbol" setting.
5738         * f-valprint.c (f_val_print): Respect symbol_print.
5739         * c-valprint.c (c_val_print): Respect symbol_print.
5740         * NEWS: Update.
5741         * printcmd.c (print_address_symbolic): Return int.  Ignore some
5742         zero-size symbols.
5743         (print_address_demangle): Return int.
5744         * defs.h: (print_address_symbolic): Return int.
5745         * value.h (print_address_demangle): Return int.
5746
5747 2012-05-18  Tom Tromey  <tromey@redhat.com>
5748
5749         * valprint.c (val_print_string): Don't print leading space.
5750         * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5751         print space before string or vtbl.
5752         * m2-valprint.c (print_unpacked_pointer): Optionally print space
5753         before string.
5754         * jv-valprint.c (java_value_print): Print space before string.
5755         * go-valprint.c (print_go_string): Print space before string.
5756         * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5757         space before string.
5758         * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5759         space before string or vtbl.
5760         * auxv.c (fprint_target_auxv): Print space after address.
5761
5762 2012-05-18  Tom Tromey  <tromey@redhat.com>
5763
5764         * printcmd.c (print_address_demangle): Remove special case for 0.
5765
5766 2012-05-18  Tom Tromey  <tromey@redhat.com>
5767
5768         * printcmd.c (print_address_demangle): Add 'opts' argument.
5769         * p-valprint.c (pascal_val_print): Update.
5770         * jv-valprint.c (java_val_print): Update.
5771         * value.h: Update.
5772         * valprint.c (generic_val_print): Update.
5773         (print_function_pointer_address): Add 'options' argument.  Remove
5774         'addressprint' argument.  Update.
5775         * m2-valprint.c (print_unpacked_pointer): Update.
5776         * gnu-v3-abi.c (print_one_vtable): Update.
5777         (gnuv3_print_method_ptr): Update.
5778         * f-valprint.c (f_val_print): Update.
5779         * cp-valprint.c (cp_print_value_fields): Update.
5780         * valprint.h (print_function_pointer_address): Update.
5781         * c-valprint.c (c_val_print): Update.
5782
5783 2012-05-18  Tom Tromey  <tromey@redhat.com>
5784
5785         * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5786         directly corresponding to the found psymtab.
5787         * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5788         (dw2_find_pc_sect_symtab): Use it.
5789         * block.h (blockvector_contains_pc): Declare.
5790         * block.c (find_block_in_blockvector): New function.
5791         (blockvector_for_pc_sect): Use it.
5792         (blockvector_contains_pc): New function.
5793
5794 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5795
5796         * mips-tdep.h (mips_write_pc): New prototype.
5797         * mips-tdep.c (mips_write_pc): Make external, add description.
5798         * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5799         add description.
5800
5801 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5802
5803         * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5804         mips_regnum->pc.
5805         (mips_unwind_pc, mips_write_pc): Likewise.
5806         (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5807         gdbarch_read_pc.
5808
5809 2012-05-17  Joel Brobecker  <brobecker@adacore.com>
5810
5811         * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5812         proc_warn, proc_error, proc_get_status, proc_flags,
5813         proc_why, proc_what, proc_nsysarg, proc_sysargs,
5814         proc_set_run_on_last_close, proc_unset_run_on_last_close,
5815         proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5816         proc_stop_process, proc_wait_for_stop, proc_run_process,
5817         proc_set_traced_signals, proc_set_traced_faults,
5818         proc_set_traced_sysentry, proc_set_traced_sysexit,
5819         proc_set_held_signals, proc_get_held_signals,
5820         proc_get_traced_signals, proc_get_traced_faults,
5821         proc_get_traced_sysentry, proc_get_traced_sysexit,
5822         proc_clear_current_fault, proc_set_current_signal,
5823         proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5824         proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5825         proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5826         proc_get_current_thread, proc_get_current_thread,
5827         proc_get_current_thread, proc_update_threads,
5828         proc_update_threads, proc_update_threads, proc_update_threads,
5829         proc_iterate_over_threads, procfs_find_new_threads,
5830         procfs_pid_to_str): Make static.  Remove advance declaration.
5831         (proc_cursig): Make static.  Conditionalized defintion on
5832         PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5833         (proc_syscall, proc_set_kill_on_last_close,
5834         proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5835         proc_get_pending_signals, proc_get_signal_actions,
5836         proc_trace_signal, proc_ignore_signal): Delete.
5837
5838 2012-05-16  Sergio Durigan Junior  <sergiodj@redhat.com>
5839
5840         * coffread.c (cs_section_address): Passing proper argument for
5841         `bfd_get_section_vma'.
5842         * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5843         `bfd_get_section_flags'.
5844         * remote.c (remote_trace_set_readonly_regions): Likewise, for
5845         `bfd_get_section_vma'.
5846
5847 2012-05-16  Tom Tromey  <tromey@redhat.com>
5848
5849         PR macros/13205:
5850         * macrotab.h: (macro_define_special): Declare.
5851         (enum macro_special_kind): New.
5852         (struct macro_definition) <argc, replacement>: Update comments.
5853         * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5854         (macro_define_object_internal): New function.
5855         (macro_define_object): Use it.
5856         (macro_define_special): New function.
5857         (fixup_definition): New function.
5858         (macro_lookup_definition, foreach_macro_in_scope)
5859         (foreach_macro): Use fixup_definition.
5860         * macroexp.h (macro_stringify): Declare.
5861         * macroexp.c (free_buffer_return_text): New function.
5862         (stringify): Constify "arg".
5863         (macro_stringify): New function.
5864         * dwarf2read.c (macro_start_file): Call macro_define_special.
5865
5866 2012-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
5867             Maciej W. Rozycki  <macro@mips.com>
5868
5869         * breakpoint.h (bp_location): Add related_address member.
5870         * inferior.h (get_return_value): Take a pointer to struct value
5871         instead of struct type for the function requested.
5872         * value.h (using_struct_return): Likewise.
5873         * gdbarch.sh (return_value): Take a pointer to struct value
5874         instead of struct type for the function requested.
5875         * breakpoint.c (set_breakpoint_location_function): Initialize
5876         related_address for bp_gnu_ifunc_resolver breakpoints.
5877         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5878         requested function's address to gdbarch_return_value.
5879         * eval.c (evaluate_subexp_standard): Pass the requested
5880         function's address to using_struct_return.
5881         * infcall.c (call_function_by_hand): Pass the requested
5882         function's address to using_struct_return and
5883         gdbarch_return_value.
5884         * infcmd.c (get_return_value): Take a pointer to struct value
5885         instead of struct type for the function requested.
5886         (print_return_value): Update accordingly.
5887         (finish_command_continuation): Likewise.
5888         * stack.c (return_command): Pass the requested function's
5889         address to using_struct_return and gdbarch_return_value.
5890         * value.c (using_struct_return): Take a pointer to struct value
5891         instead of struct type for the function requested.  Pass the
5892         requested function's address to gdbarch_return_value.
5893         * python/py-finishbreakpoint.c (finish_breakpoint_object):
5894         New function_value member, replacing function_type.
5895         (bpfinishpy_dealloc): Update accordingly.
5896         (bpfinishpy_pre_stop_hook): Likewise.
5897         (bpfinishpy_init): Likewise.  Record the requested function's
5898         address.
5899         * mips-tdep.c (mips_fval_reg): New enum.
5900         (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5901         words put in GP registers.
5902         (mips_o64_push_dummy_call): Update a comment.
5903         (mips_o32_return_value): Take a pointer to struct value instead
5904         of struct type for the function requested and use it to check if
5905         using the MIPS16 calling convention.  Return the designated
5906         general purpose registers for floating-point values returned in
5907         MIPS16 mode.
5908         (mips_o64_return_value): Likewise.
5909         * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5910         (ppc_sysv_abi_broken_return_value): Likewise.
5911         (ppc64_sysv_abi_return_value): Likewise.
5912         * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5913         value instead of struct type for the function requested.
5914         * amd64-tdep.c (amd64_return_value): Likewise.
5915         * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5916         * arm-tdep.c (arm_return_value): Likewise.
5917         * avr-tdep.c (avr_return_value): Likewise.
5918         * bfin-tdep.c (bfin_return_value): Likewise.
5919         * cris-tdep.c (cris_return_value): Likewise.
5920         * frv-tdep.c (frv_return_value): Likewise.
5921         * h8300-tdep.c (h8300_return_value): Likewise.
5922         (h8300h_return_value): Likewise.
5923         * hppa-tdep.c (hppa32_return_value): Likewise.
5924         (hppa64_return_value): Likewise.
5925         * i386-tdep.c (i386_return_value): Likewise.
5926         * ia64-tdep.c (ia64_return_value): Likewise.
5927         * iq2000-tdep.c (iq2000_return_value): Likewise.
5928         * lm32-tdep.c (lm32_return_value): Likewise.
5929         * m32c-tdep.c (m32c_return_value): Likewise.
5930         * m32r-tdep.c (m32r_return_value): Likewise.
5931         * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5932         * m68k-tdep.c (m68k_return_value): Likewise.
5933         (m68k_svr4_return_value): Likewise.
5934         * m88k-tdep.c (m88k_return_value): Likewise.
5935         * mep-tdep.c (mep_return_value): Likewise.
5936         * microblaze-tdep.c (microblaze_return_value): Likewise.
5937         * mn10300-tdep.c (mn10300_return_value): Likewise.
5938         * moxie-tdep.c (moxie_return_value): Likewise.
5939         * mt-tdep.c (mt_return_value): Likewise.
5940         * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5941         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5942         (ppc_sysv_abi_broken_return_value): Likewise.
5943         (ppc64_sysv_abi_return_value): Likewise.
5944         * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5945         * rl78-tdep.c (rl78_return_value): Likewise.
5946         * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5947         * rx-tdep.c (rx_return_value): Likewise.
5948         * s390-tdep.c (s390_return_value): Likewise.
5949         * score-tdep.c (score_return_value): Likewise.
5950         * sh-tdep.c (sh_return_value_nofpu): Likewise.
5951         (sh_return_value_fpu): Likewise.
5952         * sh64-tdep.c (sh64_return_value): Likewise.
5953         * sparc-tdep.c (sparc32_return_value): Likewise.
5954         * sparc64-tdep.c (sparc64_return_value): Likewise.
5955         * spu-tdep.c (spu_return_value): Likewise.
5956         * tic6x-tdep.c (tic6x_return_value): Likewise.
5957         * v850-tdep.c (v850_return_value): Likewise.
5958         * vax-tdep.c (vax_return_value): Likewise.
5959         * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5960         * xtensa-tdep.c (xtensa_return_value): Likewise.
5961         * gdbarch.c: Regenerate.
5962         * gdbarch.h: Regenerate.
5963
5964 2012-05-15  Tom Tromey  <tromey@redhat.com>
5965
5966         * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5967
5968 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5969
5970         * breakpoint.c (init_breakpoint_sal): Add quotes around part
5971         of command in two error message.
5972
5973 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5974
5975         * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5976
5977 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5978
5979         * breakpoint.c (find_condition_and_thread): Minor reformatting.
5980
5981 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5982
5983         * NEWS (show auto-load scripts-directory): Add forgotten command.
5984
5985 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5986
5987         * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5988         parameters.
5989
5990 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5991
5992         * amd64-tdep.c: Include features/i386/x32.c and
5993         features/i386/x32-avx.c.
5994         (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5995         initialize_tdesc_x32_avx.
5996
5997 2012-05-14  Stan Shebs  <stan@codesourcery.com>
5998
5999         Add dynamic printf.
6000         * breakpoint.h (enum bptype): New type bp_dprintf.
6001         (struct breakpoint): New field extra_string.
6002         (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6003         (create_breakpoint): Add extra_string arg.
6004         * breakpoint.c (dprintf_breakpoint_ops): New.
6005         (is_breakpoint): Add bp_dprintf.
6006         (bpstat_what): Add dprintf case.
6007         (bptype_string): Ditto.
6008         (print_one_breakpoint_location): Ditto.
6009         (init_bp_location): Ditto.
6010         (bkpt_print_mention): Ditto.
6011         (dprintf_style_enums): New array.
6012         (dprintf_style): New global.
6013         (dprintf_function): New global.
6014         (dprintf_channel): New global.
6015         (update_dprintf_command_list): New function.
6016         (update_dprintf_commands): New function.
6017         (init_breakpoint_sal): Add extra_string argument, handle it.
6018         (create_breakpoint_sal): Add extra_string argument.
6019         (create_breakpoints_sal): Add extra_string argument, update callers.
6020         (find_condition_and_thread): Add extra argument.
6021         (create_breakpoint): Add extra_string argument, record it.
6022         (dprintf_command): New function.
6023         (break_command_1): Add arg to create_breakpoint call.
6024         (handle_gnu_v3_exceptions): Ditto.
6025         (trace_command): Ditto.
6026         (ftrace_command): Ditto.
6027         (strace_command): Ditto.
6028         (bkpt_print_mention): Add dprintf case.
6029         (create_breakpoint_sal_default): Add extra_string argument.
6030         (_initialize_breakpoint): Add new commands.
6031         * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6032         * python/py-breakpoint.c (bppy_init): Ditto.
6033         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6034
6035 2012-05-14  Maciej W. Rozycki  <macro@codesourcery.com>
6036
6037         * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6038
6039 2012-05-14  Siva Chandra Reddy  <sivachandra@google.com>
6040
6041         * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6042         unsigned long long.
6043
6044 2012-05-13  Siva Chandra Reddy  <sivachandra@google.com>
6045
6046         Add a new function gdb.find_pc_line to the Python API.
6047         * NEWS (Python Scripting): Add entry about the new function.
6048         * python/python.c (gdbpy_find_pc_line): New function which
6049         implements gdb.find_pc_line.
6050         (GdbMethods): Add entry for the new function.
6051
6052 2012-05-12  Pedro Alves  <palves@redhat.com>
6053
6054         * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6055         initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6056
6057 2012-05-12  Eli Zaretskii  <eliz@gnu.org>
6058
6059         * inferior.c: Include completer.h
6060         (initialize_inferiors): Set completer of add-inferior to
6061         filename_completer.
6062
6063 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6064
6065         * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6066         gdbarch_ptr_bit for x32 core dump.
6067
6068 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6069
6070         * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6071         and features/i386/x32-avx-linux.c.
6072
6073 2012-05-11  Stan Shebs  <stan@codesourcery.com>
6074             Kwok Cheung Yeung  <kcy@codesourcery.com>
6075
6076         * NEWS: Describe new info os commands.
6077         * common/linux-osdata.c (PID_T, TIME_T): Define.
6078         (MAX_PID_T_STRLEN): New.
6079         (linux_common_core_of_thread): Add comment.  Change to use PID_T and
6080         MAX_PID_T_STRLEN.
6081         (command_from_pid): Add comment.  Change to use PID_T.
6082         (commandline_from_pid):  Change to use PID_T.
6083         (user_from_pid): Add comment.
6084         (get_process_owner): Add comment. Change to use PID_T and
6085         MAX_PID_T_STRLEN.
6086         (get_number_of_cpu_cores): Add comment.
6087         (get_cores_used_by_process): Add comment.  Change to use PID_T and
6088         MAX_PID_T_STRLEN.
6089         (linux_xfer_osdata_processes): Change to use PID_T and
6090         MAX_PID_T_STRLEN.
6091         (compare_processes): New function.
6092         (linux_xfer_osdata_processgroups): New function.
6093         (linux_xfer_osdata_threads): Change to use PID_T.
6094         (linux_xfer_osdata_fds): New function.
6095         (format_socket_state, print_sockets): New functions.
6096         (union socket_addr): New union.
6097         (linux_xfer_osdata_isockets): New function.
6098         (time_from_time_t, group_from_gid): New functions.
6099         (linux_xfer_osdata_shm): New function.
6100         (linux_xfer_osdata_sem): New function.
6101         (linux_xfer_osdata_msg): New function.
6102         (linux_xfer_osdata_modules): New function.
6103         (osdata_table): Add new entries.
6104         * common/buffer.c (buffer_xml_printf): Add support for long and
6105         long long format specifiers.
6106
6107 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6108
6109         * amd64-linux-tdep.h (tdesc_x32_linux): New.
6110         (tdesc_x32_avx_linux): Likewise.
6111
6112 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6113
6114         Implement multi-component --with-auto-load-dir.
6115         * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6116         entries.
6117         (--with-auto-load-safe-path): Update the default value description.
6118         * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6119         New.
6120         (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output.  Remove
6121         GDB_DATADIR NULL check.  Replace GDB_DATADIR/auto-load by
6122         AUTO_LOAD_DIR.  Support $ddir and multiple components in it.
6123         (_initialize_auto_load): Initialize also auto_load_dir.  Install new
6124         "set auto-load scripts-directory".
6125         * config.in: Regenerate.
6126         * configure: Regenerate.
6127         * configure.ac (--with-auto-load-dir): New configure option.
6128         (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6129
6130 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6131
6132         Provide $ddir substitution for --with-auto-load-safe-path.
6133         * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6134         entries.
6135         * auto-load.c: Include observer.h.
6136         (auto_load_safe_path_vec_update): Call substitute_path_component for
6137         each component.  New variable ddir_subst.
6138         (auto_load_gdb_datadir_changed): New function.
6139         (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6140         AUTO_LOAD_SAFE_PATH.  New comment.
6141         (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6142         AUTO_LOAD_SAFE_PATH.  Install auto_load_gdb_datadir_changed.
6143         * config.in: Regenerate.
6144         * configure: Regenerate.
6145         * configure.ac (--auto-load-safe-path): Rename
6146         DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH.  Default to
6147         GDB_DATADIR/auto-load.
6148         * defs.h (substitute_path_component): New declaration.
6149         * top.c: Include observer.h.
6150         (set_gdb_datadir): New function.
6151         (init_main): Install it for "set data-directory".
6152         * utils.c (substitute_path_component): New function.
6153
6154 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6155
6156         Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6157         * auto-load.c (auto_load_objfile_script): Remove check for NULL
6158         DEBUG_FILE_DIRECTORY.  Handle multiple components of
6159         DEBUG_FILE_DIRECTORY.
6160
6161 2012-05-10  Tom Tromey  <tromey@redhat.com>
6162
6163         * dwarf2read.c (recursively_write_psymbols): New function.
6164         (write_psymtabs_to_index): Use it.
6165
6166         * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6167         field.
6168         (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6169         (load_partial_comp_unit): Update.
6170         (queue_comp_unit): Add argument 'pretend_language'.
6171         (process_queue): Update.
6172         (psymtab_to_symtab_1): Skip dependencies that have a user.
6173         (load_partial_comp_unit_reader): Give meaning to the 'data'
6174         argument.
6175         (load_full_comp_unit): Add 'pretend_language' argument.
6176         (process_full_comp_unit): Add 'pretend_language' argument.  Set
6177         language on CU.
6178         (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6179         Update.
6180         (maybe_queue_comp_unit): Add 'pretend_language' argument.
6181         (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6182         Update.
6183         (prepare_one_comp_unit): Add 'pretend_language' argument.
6184
6185         * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6186         (struct dwarf2_per_objfile) <just_read_cus>: New field.
6187         (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6188         (dw2_do_instantiate_symtab): Check whether symtab was read in
6189         before queueing.
6190         (dw2_instantiate_symtab): Add assertion.  Call
6191         process_cu_includes.
6192         (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6193         (partial_symtab_p): New typedef.
6194         (set_partial_user): New function.
6195         (dwarf2_build_psymtabs_hard): Use set_partial_user.
6196         (scan_partial_symbols): Add imported CU to imported_symtabs.
6197         (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6198         (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6199         (get_symtab, recursively_compute_inclusions)
6200         (compute_symtab_includes, process_cu_includes)
6201         (process_imported_unit_die): New functions.
6202         (process_die) <DW_TAG_imported_unit>: New case.
6203         (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6204
6205         * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6206         comment.
6207         (struct partial_die_info) <locdesc>: Remove.
6208         <d>: New field.
6209         (process_psymtab_comp_unit): Add 'read_partial' argument.
6210         Update.
6211         (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6212         (scan_partial_symbols): Handle DW_TAG_imported_unit.
6213         (add_partial_symbol): Update.
6214         (process_die): Handle DW_TAG_partial_unit.
6215         (read_file_scope): Update comment.
6216         (load_partial_dies): Handle DW_TAG_imported_unit.
6217         (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6218         (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6219
6220 2012-05-10  Tom Tromey  <tromey@redhat.com>
6221
6222         * cc-with-dwz.sh: New file.
6223
6224 2012-05-10  Tom Tromey  <tromey@redhat.com>
6225
6226         * symtab.h (struct symtab) <includes, user>: New fields.
6227         * block.h (struct block_iterator) <d, idx, which>: New fields.
6228         * block.c (initialize_block_iterator, find_iterator_symtab)
6229         (block_iterator_step, block_iter_name_step)
6230         (block_iter_match_step): New functions.
6231         (block_iterator_first, block_iterator_next)
6232         (block_iter_name_first, block_iter_name_next)
6233         (block_iter_match_first, block_iter_match_next): Rewrite.
6234         (get_block_symtab): New function.
6235
6236 2012-05-10  Tom Tromey  <tromey@redhat.com>
6237
6238         * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6239         set_block_symtab.
6240         * jit.c (finalize_symtab): Use allocate_global_block,
6241         set_block_symtab.
6242         * buildsym.c (finish_block_internal): New function, from old
6243         finish_block.
6244         (finish_block): Rewrite.
6245         (end_symtab): Use finish_block_internal, set_block_symtab.
6246         * block.h (struct global_block): New.
6247         (allocate_global_block, set_block_symtab): Declare.
6248         * block.c (allocate_global_block, set_block_symtab): New
6249         functions.
6250
6251 2012-05-10  Tom Tromey  <tromey@redhat.com>
6252
6253         * psymtab.c (partial_map_expand_apply): Add assertion.
6254         (partial_map_symtabs_matching_filename): Skip included psymtabs.
6255         (psymtab_to_symtab): Find unshared psymtab.
6256         (dump_psymtab): Print including psymtabs.
6257         (recursively_search_psymtabs): New function.
6258         (expand_symtabs_matching_via_partial): Use it.
6259         * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6260         fields.
6261         (enum psymtab_search_status): New.
6262
6263 2012-05-10  Tom Tromey  <tromey@redhat.com>
6264
6265         * tracepoint.c (scope_info): Update.
6266         * symtab.c (lookup_block_symbol, iterate_over_symbols)
6267         (find_pc_sect_symtab, search_symbols)
6268         (default_make_symbol_completion_list_break_on)
6269         (make_file_symbol_completion_list): Update.
6270         * symmisc.c (dump_symtab_1): Update.
6271         * stack.c (print_frame_args, iterate_over_block_locals)
6272         (print_frame_labels, iterate_over_block_arg_vars): Update.
6273         * python/py-block.c (block_object) <dict>: Remove.
6274         <block>: New field.
6275         <iter>: Change type.
6276         (blpy_iter): Update.
6277         (blpy_block_syms_iternext): Update.
6278         * psymtab.c (map_block): Use block iterators.
6279         * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
6280         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6281         * mdebugread.c (parse_symbol, mylookup_symbol): Update.
6282         * infrun.c (check_exception_resume): Update.
6283         * cp-support.c (make_symbol_overload_list_block): Update.
6284         * coffread.c (patch_opaque_types): Update.
6285         * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
6286         * block.h (struct block_iterator): New.
6287         (block_iterator_first, block_iterator_next, block_iter_name_first)
6288         (block_iter_name_next, block_iter_match_first)
6289         (block_iter_match_next): Declare.
6290         (ALL_BLOCK_SYMBOLS): Redefine.
6291         * block.c (block_iterator_first, block_iterator_next)
6292         (block_iter_name_first, block_iter_name_next)
6293         (block_iter_match_first, block_iter_match_next): New functions.
6294         * ada-lang.c (ada_add_block_symbols)
6295         (ada_make_symbol_completion_list): Use block iterator.
6296
6297 2012-05-10  Tom Tromey  <tromey@redhat.com>
6298
6299         * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
6300         (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
6301         (lookup_partial_symbol, find_last_source_symtab_from_partial)
6302         (read_psymtabs_with_filename, map_matching_symbols_psymtab)
6303         (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
6304         Update.
6305
6306 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
6307
6308         * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
6309         print-file-var-lib2.c, print-file-var-main.c and
6310         print-file-var.exp (located in gdb/testsuite/gdb.base).
6311
6312 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
6313
6314         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6315         try locating the symbol in the symbol's own objfile first, before
6316         extending the search to all objfiles.
6317         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6318         out of lookup_symbol_aux_symtabs.
6319         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6320         Replace extracted-out code by call to lookup_symbol_aux_objfile.
6321         Do not search EXCLUDE_OBJFILE.
6322         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6323         (lookup_symbol_global): Search for matches in the block's objfile
6324         first, before searching all other objfiles.
6325
6326 2012-05-10  Tristan Gingold  <gingold@adacore.com>
6327
6328         * printcmd.c (set_command): Add pre/post inc/dec.
6329
6330 2012-05-09  Frank Ch. Eigler  <fche@redhat.com>
6331
6332         * gdb.1: Document -ex option.
6333
6334 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
6335
6336         * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6337         * inferior.h (AT_SYMBOL): Delete.
6338
6339 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
6340
6341         * mips-tdep.c (mips_push_dummy_code): New function.
6342         (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6343         ON_STACK and install mips_push_dummy_code as our gdbarch
6344         push_dummy_code routine.
6345
6346 2012-05-09  Pedro Alves  <palves@redhat.com>
6347
6348         * target.c (set_maintenance_target_async_permitted): Rename to ...
6349         (set_target_async_command): ... this.
6350         (show_maintenance_target_async_permitted): Rename to ...
6351         (show_target_async_command): ... this.
6352         (initialize_targets): Adjust.
6353
6354 2012-05-08  Doug Evans  <dje@google.com>
6355
6356         * go-exp.y (classify_name): Add missing assignment of fields of
6357         yylval.ssym.
6358
6359 2012-05-08  Eli Zaretskii  <eliz@gnu.org>
6360
6361         Display the ">" prompt in interactive mode while reading canned
6362         commands, even when the current interpreter is MI.
6363
6364         * interps.c (interp_set_temp): New function.
6365
6366         * interps.h (interp_set_temp): Add prototype.
6367
6368         * cli/cli-script.c (restore_interp): New cleanup function.
6369         (read_command_lines): Temporarily override the current interpreter
6370         with CLI and arrange for restoring the original one.
6371
6372 2012-05-12  Joel Sherrill <joel.sherrill@oarcorp.com>
6373
6374         * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6375
6376 2012-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
6377
6378         * probe.c (parse_probes): Move conditional to check for
6379         debuginfo files from here...
6380         * stap-probe.c (stap_get_probes): ... to here.
6381
6382 2012-05-07  Mark Kettenis  <kettenis@gnu.org>
6383             H.J. Lu  <hongjiu.lu@intel.com>
6384
6385         * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6386         `movl %esp, %ebp' for the X32 ABI.
6387
6388 2012-05-07  Tom Tromey  <tromey@redhat.com>
6389
6390         * dwarf2read.c (dwarf_tag_name): Return const char *.  Use
6391         get_DW_TAG_name.
6392         (dwarf_attr_name): Return const char *.  Use get_DW_AT_name.
6393         (dwarf_form_name): Return const char *.  Use get_DW_FORM_name.
6394         (dwarf_stack_op_name): Remove.
6395         (dwarf_cfi_name): Return const char *.  Use get_DW_ATE_name.
6396         (decode_locdesc): Use get_DW_OP_name.
6397         * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6398         (dwarf2_compile_expr_to_ax): Likewise.
6399         (disassemble_dwarf_expression): Likewise.
6400         * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6401
6402 2012-05-07  Chung-Lin Tang  <cltang@codesourcery.com>
6403
6404         * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6405         (sh_linux_sigtramp_cache): New function.
6406         (sh_linux_sigreturn_init): New function.
6407         (sh_linux_rt_sigreturn_init): New function.
6408         (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6409         patterns.
6410         (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6411         syscall codes.
6412         (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6413         (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6414         (sh_linux_init_abi): Add init calls to register new tramp_frame
6415         definitions under 32-bit SH, update comments.
6416
6417 2012-05-07  Pedro Alves  <palves@redhat.com>
6418
6419         PR gdb/10952
6420
6421         * amd64-linux-tdep.c: Include glibc-tdep.h.
6422         (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6423         gdbarch_skip_solib_resolver callback.
6424
6425 2012-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
6426
6427         * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6428         back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6429         (show_auto_load_safe_path): Check any-directory by comparison with "/".
6430         (add_auto_load_safe_path): Change the error message.
6431         (_initialize_auto_load): Change the "safe-path" help text.
6432         * configure: Regenerate
6433         * configure.ac (--without-auto-load-safe-path): Set
6434         WITH_AUTO_LOAD_SAFE_PATH to /.
6435
6436 2012-05-05  Sergio Durigan Junior  <sergiodj@redhat.com>
6437
6438         * stap-probe.h: Do not include unecessary `probe.h'.
6439
6440 2012-05-05  Alan Modra  <amodra@gmail.com>
6441
6442         * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6443         bfd_und_section_ptr.
6444         * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6445         and bfd_com_section_ptr.
6446
6447 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
6448
6449         * MAINTAINERS (Past Maintainers): Add Chris Faylor.
6450
6451 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
6452
6453         * windows-nat.h (segment_register_p_ftype): New typedef.
6454         (windows_set_segment_register_p): Add declaration.
6455         * windows-nat.c (segment_register_p): New static global.
6456         (windows_set_segment_register_p): New function.
6457         (do_windows_fetch_inferior_registers): Add special handling
6458         for segment registers.
6459         * amd64-windows-nat.c: #include "amd64-tdep.h".
6460         (amd64_windows_segment_register_p): New function.
6461         (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6462         * i386-windows-nat.c: #include "i386-tdep.h".
6463         (i386_windows_segment_register_p): New function.
6464         (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6465
6466 2012-05-04  Tristan Gingold  <gingold@adacore.com>
6467
6468         * printcmd.c (set_command): Emit a warning if the expression is not
6469         an assignment.
6470
6471 2012-05-03  Joel Brobecker  <brobecker@adacore.com>
6472
6473         * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6474         Make static.
6475
6476 2012-05-03  Sergio Durigan Junior  <sergiodj@redhat.com>
6477
6478         * stap-probe.c (stap_is_operator): Change declaration.
6479         (stap_get_opcode): Change return value.
6480         (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6481         `stap_parse_argument_1'.
6482
6483 2012-05-03  Pedro Alves  <pedro@codesourcery.com>
6484
6485         * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6486         debug log.
6487
6488 2012-05-03  Siva Chandra Reddy  <sivachandra@google.com>
6489
6490         Add two new methods global_block and static_block to gdb.Symtab
6491         objects.
6492         * NEWS (Python scripting): Add entry about the new methods.
6493         * python/py-symtab.c (stpy_global_block): New function which
6494         implements the gdb.Symtab.global_block() method.
6495         (stpy_static_block): New function which implements the
6496         gdb.Symtab.static_block() method.
6497         (symtab_object_methods): Add entries for the two new methods.
6498
6499 2012-05-03  Doug Evans  <dje@google.com>
6500
6501         * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6502         files.
6503
6504 2012-05-03  Yao Qi  <yao@codesourcery.com>
6505
6506         * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6507         space.
6508         (i386_process_record): Ditto.
6509
6510 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
6511
6512         * infcall.c (unwind_on_signal_p): Make static.
6513
6514 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
6515
6516         * sol-thread.c (solaris_pid_to_str): Make static.
6517         (_initialize_sol_thread): Add prototype.
6518
6519 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
6520
6521         * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6522
6523 2012-05-02  Christopher Faylor  <me.cygwin2012@cgf.cx>
6524
6525         * MAINTAINERS: Remove myself.
6526
6527 2012-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6528
6529         Fix --without-auto-load-safe-path for MS-Windows host platform.
6530         * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6531
6532 2012-05-02  Eli Zaretskii  <eliz@gnu.org>
6533
6534         * gdb_curses.h: Undefine KEY_EVENT before including curses
6535         headers.  Move "#undef MOUSE_MOVED" before any curses header
6536         inclusion.
6537
6538 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
6539
6540         * features/i386/i386-mmx-linux.c: Regenerate.
6541         * features/rs6000/powerpc-32.c: Likewise.
6542         * features/rs6000/powerpc-32l.c: Likewise.
6543         * features/rs6000/powerpc-403.c: Likewise.
6544         * features/rs6000/powerpc-403gc.c: Likewise.
6545         * features/rs6000/powerpc-405.c: Likewise.
6546         * features/rs6000/powerpc-505.c: Likewise.
6547         * features/rs6000/powerpc-601.c: Likewise.
6548         * features/rs6000/powerpc-602.c: Likewise.
6549         * features/rs6000/powerpc-603.c: Likewise.
6550         * features/rs6000/powerpc-604.c: Likewise.
6551         * features/rs6000/powerpc-64.c: Likewise.
6552         * features/rs6000/powerpc-64l.c: Likewise.
6553         * features/rs6000/powerpc-750.c: Likewise.
6554         * features/rs6000/powerpc-860.c: Likewise.
6555         * features/rs6000/powerpc-e500.c: Likewise.
6556         * features/rs6000/powerpc-e500l.c: Likewise.
6557         * features/rs6000/powerpc-isa205-32l.c: Likewise.
6558         * features/rs6000/powerpc-isa205-64l.c: Likewise.
6559         * features/rs6000/rs6000.c: Likewise.
6560
6561 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
6562
6563         * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6564         variable.
6565         * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6566         reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6567         (stap_parse_argument) <e>: Likewise.
6568         (handle_stap_probe) <byte_order>: Likewise.
6569
6570 2012-04-30  Doug Evans  <dje@google.com>
6571
6572         * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6573         init_and_read_dies_worker.  All callers updated.
6574         (init_cu_and_read_dies, init_tu_and_read_dies): Delete.  All calls
6575         replaced with init_cutu_and_read_dies.
6576         (load_partial_comp_unit): Pass 1 for use_existing_cu.
6577         (find_partial_die): Remove FIXME.  Don't free current CU.
6578
6579 2012-04-30  Sterling Augustine  <saugustine@google.com>
6580
6581         * contrib: New directory.
6582         * contrib/test_pubnames_and_indexes.py: New file.
6583
6584 2012-04-30  Doug Evans  <dje@google.com>
6585
6586         * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6587         All callers updated.
6588         (init_cu_die_reader): Verify the section is non-empty.
6589         (dwarf_decode_line_header): Don't dereference section->asection
6590         until we know the section is present.
6591
6592 2012-04-29  Sergio Durigan Junior  <sergiodj@redhat.com>
6593
6594         * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6595         probes.
6596
6597 2012-04-29  Yao Qi  <yao@codesourcery.com>
6598
6599         * gdb-code-style.el: New hook gdb-markup-hook
6600         and gdb-comment-hook.
6601
6602 2012-04-28  Doug Evans  <dje@google.com>
6603
6604         Initial support for Fission.  http://gcc.gnu.org/wiki/DebugFission
6605         * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6606         objfile->obfd.
6607         * symfile.h (dwarf2_debug_sections): New member addr.
6608         * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6609         (ctx_no_get_addr_index): New function.
6610         * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6611         (ctx_no_get_addr_index): Declare.
6612         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6613         * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6614         (dwarf_expr_ctx_funcs): Update.
6615         (needs_get_addr_index): New function.
6616         (needs_frame_ctx_funcs): Update.
6617         * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6618         * dwarf2read.c: #include "gdbcore.h".
6619         (dwarf2_per_objfile): New members addr, dwo_files.
6620         (dwarf2_elf_names): Add entry for addr.
6621         (struct dwo_section_names): New type.
6622         (dwo_section_names): New static global.
6623         (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6624         (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6625         old debug_types_section member updated to use this.
6626         Rename member debug_types_section to info_or_types_section,
6627         all uses updated.
6628         (signatured_type): Rename member type_offset to type_offset_in_tu,
6629         all uses updated.  New member type_offset_in_section.
6630         (struct dwo_sections): New type.
6631         (struct dwo_unit): New type.
6632         (struct dwo_file): New type.
6633         (die_reader_specs): New member dwo_file.
6634         (dwarf2_locate_sections): Watch for .debug_addr.
6635         (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6636         (dwarf2_read_section): Get bfd of section from bfd's asection,
6637         instead of objfile.
6638         (create_cus_from_index): Initialize the_cu->info_or_types_section.
6639         (create_signatured_type_table_from_index): Initialize
6640         sig_type->info_or_types_section.
6641         (dw2_get_file_names): Statement lists for type units with DWO files
6642         live in the DWO file.
6643         (create_debug_types_hash_table): New function.
6644         (create_all_type_units): Rewrite.
6645         (init_cu_die_reader): New arg dwo_file, all callers updated.
6646         (init_and_read_dies_worker): Get section from
6647         this_cu->info_or_types_section.  Set sig_type->type_offset_in_section.
6648         Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6649         continue reading the CU/TU from there.
6650         (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6651         updated.  Get section from this_cu->info_or_types_section.
6652         (create_all_comp_units): Initialize this_cu->info_or_types_section.
6653         (skip_one_die): New cases DW_FORM_GNU_addr_index,
6654         DW_FORM_GNU_str_index.
6655         (hash_dwo_file, eq_dwo_file): New functions.
6656         (allocate_dwo_file_hash_table): New function.
6657         (hash_dwo_unit, eq_dwo_unit): New functions.
6658         (allocate_dwo_unit_table): New function.
6659         (dwarf2_locate_dwo_sections): New function.
6660         (struct create_dwo_info_table_data): New type.
6661         (create_debug_info_hash_table_reader): New function.
6662         (create_debug_info_hash_table): New function.
6663         (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6664         (lookup_dwo_file): New function.
6665         (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6666         (free_dwo_file, free_dwo_file_cleanup): New functions.
6667         (free_dwo_file_from_slot, free_dwo_files): New functions.
6668         (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6669         (dwarf2_record_block_ranges): Ditto.
6670         (read_partial_die): Ditto.
6671         (process_enumeration_scope): Update to use type_offset_in_section.
6672         (read_full_die_1): New function.
6673         (read_full_die): Rewrite.
6674         (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6675         DW_FORM_GNU_str_index.
6676         (read_addr_index_1, read_addr_index): New functions.
6677         (read_addr_index_from_leb128): New function.
6678         (struct dwarf2_read_addr_index_data): New type.
6679         (dwarf2_read_addr_index_reader): New function.
6680         (dwarf2_read_addr_index): New function.
6681         (read_str_index): New function.
6682         (leb128_size): New function.
6683         (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6684         If processing a type unit from a DWO file, get the line section
6685         from the DWO file.
6686         (var_decode_location): Watch for DW_OP_GNU_addr_index.
6687         (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6688         DW_FORM_GNU_str_index.
6689         (lookup_die_type): Check whether section offset of type's die is
6690         known before looking it up.  Remove assert.  Condition can
6691         legimately happen for inter-cu type references.
6692         (dwarf_attr_name): Handle Fission attributes.
6693         (dwarf_form_name): Handle Fission forms.
6694         (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6695         DW_FORM_GNU_str_index.
6696         (follow_die_sig): Update to use type_offset_in_section.
6697         (decode_locdesc): New case DW_OP_GNU_addr_index.
6698         (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6699         DW_FORM_GNU_str_index.
6700         (cu_debug_loc_section): New function.
6701         (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6702         (dwarf2_per_objfile_free): Unmap .debug_addr section.
6703         Free DWO files if present.
6704         * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6705
6706         Refactor DIE reading.
6707         * dwarf2read.c (dwarf2_per_objfile): Replace members
6708         debug_info_type_hash and debug_types_type_hash with die_type_hash.
6709         (die_reader_specs): New member "die_section".  Temporarily make
6710         member "buffer" non-const, pending constifying all info_ptr uses.
6711         (die_reader_func_ftype): New typedef.
6712         (dw2_get_file_names_reader): New function.
6713         (dw2_get_file_names): Rewrite.
6714         (read_and_check_type_unit_head): Rename arg type_offset to
6715         type_offset_in_tu.
6716         (create_all_type_units): Improve debugging message.
6717         Improve dummy type unit check.
6718         (init_cu_die_reader): New arg "section".  All callers updated.
6719         (init_and_read_dies_worker): New function.
6720         (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6721         (init_cutu_and_read_dies_no_follow): New function.
6722         (init_cutu_and_read_dies_simple): New function.
6723         (process_psymtab_comp_unit_reader): New function.
6724         (process_psymtab_comp_unit): Delete args section,
6725         is_debug_types_section.  Rewrite.  All callers updated.
6726         (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6727         All callers updated.  Rewrite.
6728         (load_partial_comp_unit_reader): New function.
6729         (load_partial_comp_unit): Rewrite.
6730         (skip_children): New arg reader.  Delete args buffer, cu.
6731         All callers updated.
6732         (skip_one_die): New arg reader.  Delete args buffer, cu.
6733         All callers updated.
6734         (locate_pdi_sibling): New arg reader.  Delete args buffer, abfd, cu.
6735         All callers updated.
6736         (load_full_comp_unit_reader): New function.
6737         (load_full_comp_unit): Rewrite.
6738         (read_comp_unit): Delete.
6739         (read_die_and_children_1): Delete, contents moved ...
6740         (read_die_and_children): ... here.
6741         (dwarf2_read_abbrevs): New arg abbrev_section.  All callers updated.
6742         (load_partial_dies): New arg reader.  Delete args abfd, buffer, cu.
6743         All callers updated.
6744         (read_partial_die): New arg reader.  Delete args abfd, buffer, cu.
6745         All callers updated.
6746         (find_partial_die): Rewrite load_all_dies support.
6747         (read_attribute_value): New arg reader.  Delete args abfd, cu.
6748         All callers updated.
6749         (read_attribute): New arg reader.  Delete args abfd, cu.
6750         All callers updated.
6751         (load_full_type_unit): Add assert.
6752         (read_signatured_type_reader): New function.
6753         (read_signatured_type): Rewrite.
6754         (free_stack_comp_unit): Remove call to age_cached_comp_units.
6755         (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6756         All callers updated.  Set per_cu->cu = NULL after freeing it.
6757         (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6758         (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6759         (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6760         (set_die_type): Update.
6761         (get_die_type_at_offset): Update.
6762         (read_file_scope): Call prepare_one_comp_unit.
6763         (read_type_unit_scope): Ditto.
6764         (prepare_one_comp_unit): Set producer if present.
6765
6766 2012-04-28  Sergio Durigan Junior  <sergiodj@redhat.com>
6767
6768         * probe.c (compile_rx_or_error): Silence ARI warning about missing
6769          gettext function on `error'.
6770
6771 2012-04-27  Doug Evans  <dje@google.com>
6772
6773         * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6774         is empty.
6775
6776 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6777             Tom Tromey  <tromey@redhat.com>
6778
6779         * breakpoint.c (struct breakpoint_objfile_data)
6780         <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6781         <exception_probes>: New fields.
6782         (free_breakpoint_probes): New function.
6783         (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6784         `_Unwind_DebugHook'.
6785         (create_exception_master_breakpoint): Likewise.
6786         (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6787         * infrun.c: Including necessary header files for handling SystemTap
6788         probes.
6789         (handle_inferior_event): Handling longjmp breakpoint and exceptions
6790         via SystemTap probes.
6791         (check_exception_resume): Remove `func' argument.  Handle exception
6792         unwinding breakpoint set via a SystemTap probe.
6793         (insert_exception_resume_from_probe): New function.
6794
6795 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6796             Tom Tromey  <tromey@redhat.com>
6797             Jan Kratochvil  <jan.kratochvil@redhat.com>
6798
6799         * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6800         (COMMON_OBS): Likewise.
6801         (HFILES_NO_SRCDIR): Add `probe'.
6802         * NEWS: Mention support for static and SystemTap probes.
6803         * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6804         SystemTap probes' arguments parser.
6805         * arm-linux-tdep.c: Including headers needed to perform the parsing
6806         of SystemTap probes' arguments.
6807         (arm_stap_is_single_operand): New function.
6808         (arm_stap_parse_special_token): Likewise.
6809         (arm_linux_init_abi): Initializing proper fields used by SystemTap
6810         probes' arguments parser.
6811         * ax-gdb.c (require_rvalue): Removing static declaration.
6812         (gen_expr): Likewise.
6813         * ax-gdb.h (gen_expr): Declaring function.
6814         (require_rvalue): Likewise.
6815         * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6816         (bkpt_probe_breakpoint_ops): New variable.
6817         (momentary_breakpoint_from_master): Set the `probe' value.
6818         (add_location_to_breakpoint): Likewise.
6819         (break_command_1): Using proper breakpoint_ops according to the
6820         argument passed by the user in the command line.
6821         (bkpt_probe_insert_location): New function.
6822         (bkpt_probe_remove_location): Likewise.
6823         (bkpt_probe_create_sals_from_address): Likewise.
6824         (bkpt_probe_decode_linespec): Likewise.
6825         (tracepoint_probe_create_sals_from_address): Likewise.
6826         (tracepoint_probe_decode_linespec): Likewise.
6827         (tracepoint_probe_breakpoint_ops): New variable.
6828         (trace_command): Using proper breakpoint_ops according to the
6829         argument passed by the user in the command line.
6830         (initialize_breakpoint_ops): Initializing breakpoint_ops for
6831         static probes on breakpoints and tracepoints.
6832         * breakpoint.h (struct bp_location) <probe>: New field.
6833         * cli-utils.c (skip_spaces_const): New function.
6834         (extract_arg): Likewise.
6835         * cli-utils.h (skip_spaces_const): Likewise.
6836         (extract_arg): Likewise.
6837         * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6838         * configure.ac: Append `stap-probe.o' to be generated when ELF
6839         support is present.
6840         * configure: Regenerate.
6841         * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6842         * elfread.c: Include `probe.h' and `arch-utils.h'.
6843         (probe_key): New variable.
6844         (elf_get_probes): New function.
6845         (elf_get_probe_argument_count): Likewise.
6846         (elf_evaluate_probe_argument): Likewise.
6847         (elf_compile_to_ax): Likewise.
6848         (elf_symfile_relocate_probe): Likewise.
6849         (stap_probe_key_free): Likewise.
6850         (elf_probe_fns): New variable.
6851         (elf_sym_fns): Add `sym_probe_fns' value.
6852         (elf_sym_fns_lazy_psyms): Likewise.
6853         (elf_sym_fns_gdb_index): Likewise.
6854         (_initialize_elfread): Initialize objfile cache for static
6855         probes.
6856         * gdb_vecs.h (struct probe): New forward declaration.
6857         (probe_p): New VEC declaration.
6858         * gdbarch.c: Regenerate.
6859         * gdbarch.h: Regenerate.
6860         * gdbarch.sh (stap_integer_prefix): New variable.
6861         (stap_integer_suffix): Likewise.
6862         (stap_register_prefix): Likewise.
6863         (stap_register_suffix): Likewise.
6864         (stap_register_indirection_prefix): Likewise.
6865         (stap_register_indirection_suffix): Likewise.
6866         (stap_gdb_register_prefix): Likewise.
6867         (stap_gdb_register_suffix): Likewise.
6868         (stap_is_single_operand): New function.
6869         (stap_parse_special_token): Likewise.
6870         (struct stap_parse_info): Forward declaration.
6871         * i386-tdep.c: Including headers needed to perform the parsing
6872         of SystemTap probes' arguments.
6873         (i386_stap_is_single_operand): New function.
6874         (i386_stap_parse_special_token): Likewise.
6875         (i386_elf_init_abi): Initializing proper fields used by SystemTap
6876         probes' arguments parser.
6877         * i386-tdep.h (i386_stap_is_single_operand): New function.
6878         (i386_stap_parse_special_token): Likewise.
6879         * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6880         * mipsread.c (ecoff_sym_fns): Likewise.
6881         * objfiles.c (objfile_relocate1): Support relocation for static
6882         probes.
6883         * parse.c (prefixify_expression): Remove static declaration.
6884         (initialize_expout): Likewise.
6885         (reallocate_expout): Likewise.
6886         * parser-defs.h (initialize_expout): Declare function.
6887         (reallocate_expout): Likewise.
6888         (prefixify_expression): Likewise.
6889         * ppc-linux-tdep.c: Including headers needed to perform the parsing
6890         of SystemTap probes' arguments.
6891         (ppc_stap_is_single_operand): New function.
6892         (ppc_stap_parse_special_token): Likewise.
6893         (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6894         probes' arguments parser.
6895         * probe.c: New file, for generic statically defined probe support.
6896         * probe.h: Likewise.
6897         * s390-tdep.c: Including headers needed to perform the parsing of
6898         SystemTap probes' arguments.
6899         (s390_stap_is_single_operand): New function.
6900         (s390_gdbarch_init): Initializing proper fields used by SystemTap
6901         probes' arguments parser.
6902         * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6903         * stap-probe.c: New file, for SystemTap probe support.
6904         * stap-probe.h: Likewise.
6905         * symfile.h: Include `gdb_vecs.h'.
6906         (struct sym_probe_fns): New struct.
6907         (struct sym_fns) <sym_probe_fns>: New field.
6908         * symtab.c (init_sal): Initialize `probe' field.
6909         * symtab.h (struct probe): Forward declaration.
6910         (struct symtab_and_line) <probe>: New field.
6911         * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6912         locations.
6913         (stop_tracing): Likewise.
6914         * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6915
6916 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6917             Tom Tromey  <tromey@redhat.com>
6918
6919         * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6920         and to compile agent expressions.
6921         * infrun.c (siginfo_make_value): New argument `ignore'.
6922         (siginfo_funcs): New struct.
6923         (_initialize_infrun): New argument when calling
6924         `create_internalvar_type_lazy'.
6925         * thread.c (thread_id_make_value): New argument `ignore'.
6926         (thread_funcs): New struct.
6927         (_initialize_thread): New argument when calling
6928         `create_internalvar_type_lazy'.
6929         * tracepoint.c (sdata_make_value): New argument `ignore'.
6930         (sdata_funcs): New struct.
6931         (_initialize_tracepoint): New argument when calling
6932         `create_internalvar_type_lazy'.
6933         * value.c (make_value): New struct.
6934         (create_internalvar_type_lazy): New argument `data'.
6935         (compile_internalvar_to_ax): New function.
6936         (value_of_internalvar): Properly handling `make_value' case.
6937         (clear_internalvar): Likewise.
6938         (show_convenience): Adding `TRY_CATCH' block.
6939         * value.h (internalvar_make_value): Delete, replace by...
6940         (struct internalvar_funcs): ... this.
6941         (create_internalvar_type_lazy) <fun>: Delete argument.
6942         (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6943         (compile_internalvar_to_ax): New function.
6944         * windows-tdep.c (tlb_make_value): New argument `ignore'.
6945         (tlb_funcs): New struct.
6946         (_initialize_windows_tdep): New argument when calling
6947         `create_internalvar_type_lazy'.
6948
6949 2012-04-27  Mark Wielaard  <mjw@redhat.com>
6950
6951         * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6952         see whether it is an address or a constant offset from DW_AT_low_pc.
6953         (dwarf2_record_block_ranges): Likewise.
6954         (read_partial_die): Likewise.
6955
6956 2012-04-26  Mark Wielaard  <mjw@redhat.com>
6957
6958         * MAINTAINERS (Write After Approval): Add myself to the list.
6959
6960 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
6961
6962         * proc-utils.h (proc_prettyprint_signalset): New prototype.
6963         (proc_prettyprint_signal): Likewise.
6964         (proc_prettyprint_faultset): Likewise.
6965         (proc_prettyprint_fault): Likewise.
6966         (proc_prettyprint_actionset): Likewise.
6967         (proc_prettyprint_flags): Move to new proc-flags.c section.
6968         (proc_prettyfprint_flags): New prototype.
6969         * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6970         (proc_syscall, proc_cursig): Likewise.
6971         (proc_set_kill_on_last_close): Likewise.
6972         (proc_unset_kill_on_last_close): Likewise.
6973         (proc_set_watchpoint): Make static.
6974         (proc_delete_dead_threads): Likewise.
6975         (procfs_set_watchpoint): Likewise.
6976         (_initialize_procfs): Add prototype.
6977         * proc-events.c: Include proc-utils.h.
6978         (init_syscall_table): Make static.
6979         * proc-api.c (_initialize_proc_api): Add prototype.
6980         * proc-flags.c: Include proc-utils.h.
6981
6982 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
6983
6984         * configure.ac: Add AC_ARG_PROGRAM.
6985         * configure: Regenerate.
6986
6987 2012-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6988
6989         Fix DW_AT_lower_bound defaults for DWARF-4+.
6990         * dwarf2read.c (read_subrange_type): Remove initialization of low and
6991         high.  New variable low_default_is_valid.  Implement DWARF-4+
6992         DW_AT_lower_bound defaults.  Print complaint for DW_AT_lower_bound with
6993         no default by the DWARF standard.
6994
6995 2012-04-26  Maciej W. Rozycki  <macro@mips.com>
6996             Maciej W. Rozycki  <macro@codesourcery.com>
6997
6998         * infrun.c (handle_inferior_event): Move the check for return
6999         trampolines ahead of the check for function trampolines.
7000         * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7001         * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7002         (mips_str_mips16_ret_stub): Likewise.
7003         (mips_str_call_fp_stub): Likewise.
7004         (mips_str_call_stub): Likewise.
7005         (mips_str_fn_stub): Likewise.
7006         (mips_str_pic): Likewise.
7007         (mips_in_frame_stub): New function.
7008         (mips_unwind_pc): Return the return address rather than the PC
7009         if the PC of an intermediate frame is inside a call thunk.
7010         (mips_is_stub_suffix): New function.
7011         (mips_is_stub_mode): Likewise.
7012         (mips_get_mips16_fn_stub_pc): Likewise.
7013         (mips_skip_mips16_trampoline_code): Update to handle all the
7014         currently generated stub types.  Don't recurse into __fn_stub
7015         thunks.  Remove heuristics to handle stubs beyond etext/_etext.
7016         Use cooked register accesses.
7017         (mips_in_return_stub): Reintroduce function.
7018         (mips_skip_trampoline_code): Traverse trampolines recursively.
7019         (mips_gdbarch_init): Handle MIPS16 return trampolines.
7020
7021 2012-04-26  Joel Brobecker  <brobecker@adacore.com>
7022
7023         GDB 7.4.1 released.
7024
7025 2012-04-26  Jonathan Larmour  <jifl@eCosCentric.com>
7026
7027         * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7028         * features/arm-with-m-vfp-d16.xml: New file. Describes
7029         Cortex-M with VFPv4-sp-d16 FPU register layout.
7030         * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7031         * features/arm-with-m-vfp-d16.c: New. Generated from above.
7032         * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7033         (arm-register_g_packet_guesses): Add vfp-d16 guess.
7034         (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7035
7036 2012-04-25  Doug Evans  <dje@google.com>
7037
7038         * cli/cli-decode.c (print_doc_line): Use stream instead of
7039         current_uiout.
7040
7041 2012-04-25  Sergio Durigan Junior  <sergiodj@redhat.com>
7042
7043         * features/arm-with-iwmmxt.c: Regenerate.
7044         * features/arm-with-m-fpa-layout.c: Likewise.
7045         * features/arm-with-m.c: Likewise.
7046         * features/arm-with-neon.c: Likewise.
7047         * features/arm-with-vfpv2.c: Likewise.
7048         * features/arm-with-vfpv3.c: Likewise.
7049         * features/mips-dsp-linux.c: Likewise.
7050         * features/mips-linux.c: Likewise.
7051         * features/mips64-dsp-linux.c: Likewise.
7052         * features/mips64-linux.c: Likewise.
7053         * features/s390-linux32.c: Likewise.
7054         * features/s390-linux32v1.c: Likewise.
7055         * features/s390-linux32v2.c: Likewise.
7056         * features/s390-linux64.c: Likewise.
7057         * features/s390-linux64v1.c: Likewise.
7058         * features/s390-linux64v2.c: Likewise.
7059         * features/s390x-linux64.c: Likewise.
7060         * features/s390x-linux64v1.c: Likewise.
7061         * features/s390x-linux64v2.c: Likewise.
7062         * features/tic6x-c62x-linux.c: Likewise.
7063         * features/tic6x-c62x.c: Likewise.
7064         * features/tic6x-c64x-linux.c: Likewise.
7065         * features/tic6x-c64x.c: Likewise.
7066         * features/tic6x-c64xp-linux.c: Likewise.
7067         * features/tic6x-c64xp.c: Likewise.
7068         * target-descriptions.c: Only generate `field_type' and `type'
7069         variables when needed.
7070
7071 2012-04-25  Fredrik Hederstierna  <fredrikh.hederstierna@securitas-direct.com>
7072
7073         * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7074
7075 2012-04-25  Doug Evans  <dje@google.com>
7076
7077         Initial pass at Go language support.
7078         * NEWS: Mention Go.
7079         * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7080         go-valprint.c.
7081         (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7082         (YYFILES): Add go-exp.c.
7083         (YYOBJ): Add go-exp.o.
7084         (local-maintainer-clean): Delete go-exp.c.
7085         * defs.h (enum language): Add language_go.
7086         * dwarf2read.c: #include "go-lang.h".
7087         (fixup_go_packaging): New function.
7088         (process_full_comp_unit): Call it when processing Go CUs.
7089         (dwarf2_physname): Add Go support.
7090         (read_file_scope): Handle missing language spec for GNU Go.
7091         (set_cu_language): Handle DW_LANG_Go.
7092         * go-exp.y: New file.
7093         * go-lang.h: New file.
7094         * go-lang.c: New file.
7095         * go-typeprint.c: New file.
7096         * go-valprint.c: New file.
7097         * symtab.c: #include "go-lang.h".
7098         (symbol_set_language): Handle language_go.
7099         (symbol_find_demangled_name, symbol_set_names): Ditto.
7100         (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7101
7102 2012-04-24  Jim Meyering  <meyering@redhat.com>
7103
7104         avoid a few strncpy-induced buffer overruns
7105         * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7106         fname and psargs before trying to concatenate.
7107         * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7108         "name" before applying strchr.
7109
7110 2012-04-25  Siva Chandra Reddy  <sivachandra@google.com>
7111
7112         * CONTRIBUTE: Use unified diff instead of context diff when
7113         generating patches.
7114
7115 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
7116
7117         * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7118         code.  Handle JR.HB correctly.
7119
7120 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
7121
7122         * mips-tdep.c
7123         (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7124         with the other MIPS16 helpers.
7125
7126 2012-04-24  Sergio Durigan Junior  <sergiodj@redhat.com>
7127
7128         * observer.sh: Conditionally declare `args', thus cleaning up
7129         unused instances of this variable.
7130
7131 2012-04-24  Yao Qi  <yao@codesourcery.com>
7132
7133         Revert this patch to allow breakpoint always-inserted
7134         in record target.
7135         2011-12-05  Pedro Alves  <pedro@codesourcery.com>
7136         * breakpoint.c: Include record.h.
7137         (breakpoints_always_inserted_mode): Return false when the record
7138         target is in use.
7139
7140         * breakpoint.c (iterate_over_bp_locations): New.
7141         * breakpoint.h: Declare.
7142         New typedef walk_bp_location_callback.
7143         * record.c (record_open): Call record_init_record_breakpoints.
7144         (record_sync_record_breakpoints): New.
7145         (record_init_record_breakpoints): New.
7146         * NEWS: Mention supporting breakpoint always-inserted mode in
7147         record target.
7148
7149 2012-04-24  Marc Khouzam  <marc.khouzam@ericsson.com>
7150
7151         * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7152         any thread.
7153
7154 2012-04-24  Yao Qi  <yao@codesourcery.com>
7155
7156         * breakpoint.c (ep_is_catchpoint): Renamed to ...
7157         (is_catchpoint): ... it.
7158         (print_one_breakpoint_location): Caller update.
7159         * breakpoint.h: Update declaration.
7160
7161 2012-04-23  David S. Miller  <davem@davemloft.net>
7162
7163         * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7164
7165 2012-04-23  Tom Tromey  <tromey@redhat.com>
7166
7167         * buildsym.c (add_free_pendings): Remove.
7168         * buildsym.h (add_free_pendings): Remove.
7169
7170 2012-04-23  Doug Evans  <dje@google.com>
7171
7172         * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7173         attr.u.unsnd instead of attr.u.addr.
7174         (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7175         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7176         DW_FORM_ref_udata.
7177         (dump_die_shallow): Update cases DW_FORM_ref_addr,
7178         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4.  Add cases DW_FORM_ref8,
7179         DW_FORM_ref_udata.
7180         (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7181
7182 2012-04-23  Maciej W. Rozycki  <macro@codesourcery.com>
7183
7184         * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7185         (mips_o32_return_value): Likewise.
7186         (mips_o64_return_value): Likewise.
7187
7188 2012-04-21  Paul Hilfinger  <hilfinger@adacore.com>
7189
7190         * ada-lang.c (ada_evaluate_subexp): Add cases for
7191         TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7192         their treatment in eval.c.
7193
7194 2012-04-21  David S. Miller  <davem@davemloft.net>
7195
7196         * sparc-tdep.c (X_DISP10): Define.
7197         (sparc_analyze_control_transfer): Handle compare-and-branch.
7198
7199 2012-04-21  Jonathan Larmour  <jifl@eCosCentric.com>
7200
7201         * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7202         * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7203
7204 2012-04-20  Nigel Stephens  <nigel@mips.com>
7205             Maciej W. Rozycki  <macro@codesourcery.com>
7206
7207         * mips-tdep.c (mips_float_register_p): New function.
7208         (mips_convert_register_float_case_p): Use mips_float_register_p.
7209         (mips_register_type): Likewise.
7210         (mips_print_register): Likewise.
7211         (print_gp_register_row): Likewise.
7212         (mips_print_registers_info): Likewise.
7213
7214 2012-04-20  Shun-Yen Lu  <dark.asparagus@gmail.com>
7215
7216         * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7217         of mips16 symbols.
7218
7219 2012-04-20  Andrew Pinski  <apinski@cavium.com>
7220
7221         * MAINTAINERS (Write After Approval): Add myself to the list.
7222
7223 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
7224
7225         * MAINTAINERS: Update my e-mail address.
7226
7227 2012-04-20  Pedro Alves  <palves@redhat.com>
7228
7229         * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7230         $srcdir.
7231         * configure: Regenerate.
7232
7233 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
7234
7235         * cp-support.h: Include `gdb_vecs.h'.  Delete `const_char_ptr' VEC
7236         declaration.
7237         * gdb_vecs.h: Declare `const_char_ptr' VEC.
7238
7239 2012-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
7240
7241         Fix compilation compatibility with python-2.4
7242         * python/py-type.c (convert_field): Cast ADDRSTRING for
7243         PyObject_SetAttrString as non-const.  New comment.
7244
7245 2012-04-19  Tom Tromey  <tromey@redhat.com>
7246
7247         * top.c (quit_target): Use all_cleanups.
7248         * main.c (captured_command_loop): Use all_cleanups.
7249         * exceptions.c (throw_exception): Use all_cleanups.
7250
7251 2012-04-19  Pedro Alves  <palves@redhat.com>
7252
7253         * Makefile.in (GNULIB_BUILDDIR): New.
7254         (LIBGNU, INCGNU, GNULIB_H): Adjust.
7255         (SUBDIRS): Add $(GNULIB_BUILDDIR).
7256         (CLEANDIRS). Remove gnulib/import.
7257         (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7258         (all-lib): Ditto.
7259         (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7260         (gnulib/import/Makefile): Replace gnulib/import with
7261         $(GNULIB_BUILDDIR).  Set CONFIG_FILES to just Makefile.
7262         (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7263         (aclocal_m4_deps): Remove the gnulib dependencies.  Add
7264         acx_configure_dir.m4.
7265         * acinclude.m4: Include acx_configure_dir.m4.
7266         * acx_configure_dir.m4: New file.
7267         * aclocal.m4: Regenerate.
7268         * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
7269         calls.  Configure gnulib using ACX_CONFIGURE_DIR.
7270         (GNULIB): New variable.
7271         (GNULIB_STDINT_H): Adjust.
7272         (AC_OUTPUT): Don't output gnulib/Makefile.
7273         * gdb/defs.h: Include build-gnulib/config.h.
7274         * aclocal.m4: Regenerate.
7275         * config.in: Regenerate.
7276         * configure: Regenerate.
7277
7278         * gnulib/Makefile.in: New file.
7279         * gnulib/configure.ac: New file.
7280         * gnulib/aclocal.m4: New file.
7281         * gnulib/config.in: New file.
7282         * gnulib/configure: New file.
7283         * gnulib/: Re-run gnulib-tool to adjust.
7284
7285 2012-04-19  Doug Evans  <dje@google.com>
7286
7287         * cleanups.h (struct cleanup): Move to cleanups.c.
7288         (make_cleanup_dtor_ftype): New typedef.
7289         (make_cleanup_dtor): Use it.
7290         (ALL_CLEANUPS): Replace with ...
7291         (all_cleanups): ... this.  Declare.  All uses updated.
7292         * cleanups.c: #include "gdb_assert.h".
7293         (sentinel_cleanup): New static global.
7294         (SENTINEL_CLEANUP): Define.
7295         (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
7296         (make_my_cleanup2): Assert result is non-NULL.
7297         (all_cleanups): New function.
7298         (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
7299         of NULL.
7300
7301 2012-04-19  Pedro Alves  <palves@redhat.com>
7302
7303         * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
7304         Adjust paths to gnulib imported files.
7305
7306 2012-04-19  Pedro Alves  <palves@redhat.com>
7307
7308         * gnulib/: Move whole directory ...
7309         * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
7310         * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
7311         (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
7312         (aclocal_m4_deps): Adjust.
7313         * aclocal.m4: Regenerate.
7314         * configure: Regenerate.
7315         * configure.ac: Adjust AC_OUTPUT output.
7316
7317 2012-04-19  Yao Qi  <yao@codesourcery.com>
7318
7319         * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
7320         (vec.o): New rule.
7321         * vec.c: Move it ...
7322         * common/vec.c: ... here.
7323         * vec.h: Move it ...
7324         * common/vec.h: ... here.
7325
7326 2012-04-19  Yao Qi  <yao@codesourcery.com>
7327
7328         * gdb-code-style.el: New.
7329
7330 2012-04-18  Pedro Alves  <palves@redhat.com>
7331
7332         Update gnulib from latest git.
7333         (639ea5ae15e39fe48d43e04864b2997301e4b969)
7334
7335         * gnulib/Makefile.am: Update.
7336         * gnulib/dummy.c: Update.
7337         * gnulib/extra/arg-nonnull.h: Update.
7338         * gnulib/extra/c++defs.h: Update.
7339         * gnulib/extra/update-copyright: Update.
7340         * gnulib/extra/warn-on-use.h: Update.
7341         * gnulib/inttypes.in.h: Update.
7342         * gnulib/m4/00gnulib.m4: Update.
7343         * gnulib/m4/extensions.m4: Update.
7344         * gnulib/m4/gnulib-cache.m4: Update.
7345         * gnulib/m4/gnulib-common.m4: Update.
7346         * gnulib/m4/gnulib-comp.m4: Update.
7347         * gnulib/m4/gnulib-tool.m4: Update.
7348         * gnulib/m4/include_next.m4: Update.
7349         * gnulib/m4/inttypes-pri.m4: Update.
7350         * gnulib/m4/inttypes.m4: Update.
7351         * gnulib/m4/longlong.m4: Update.
7352         * gnulib/m4/memchr.m4: Update.
7353         * gnulib/m4/memmem.m4: Update.
7354         * gnulib/m4/mmap-anon.m4: Update.
7355         * gnulib/m4/multiarch.m4: Update.
7356         * gnulib/m4/onceonly.m4: Update.
7357         * gnulib/m4/stddef_h.m4: Update.
7358         * gnulib/m4/stdint.m4: Update.
7359         * gnulib/m4/string_h.m4: Update.
7360         * gnulib/m4/warn-on-use.m4: Update.
7361         * gnulib/m4/wchar_h.m4: Update.
7362         * gnulib/m4/wchar_t.m4: Update.
7363         * gnulib/m4/wint_t.m4: Update.
7364         * gnulib/memchr.c: Update.
7365         * gnulib/memmem.c: Update.
7366         * gnulib/stddef.in.h: Update.
7367         * gnulib/stdint.in.h: Update.
7368         * gnulib/str-two-way.h: Update.
7369         * gnulib/string.in.h: Update.
7370         * gnulib/wchar.in.h: Update.
7371
7372         * gnulib/extra/arg-nonnull.h: Delete.
7373         * gnulib/extra/c++defs.h: Delete.
7374         * gnulib/extra/warn-on-use.h: Delete.
7375         * gnulib/m4/wchar_h.m4: Delete.
7376         * gnulib/m4/wint_t.m4: Delete.
7377         * gnulib/wchar.in.h: Delete.
7378
7379         * gnulib/extra/snippets/arg-nonnull.h: New.
7380         * gnulib/extra/snippets/c++defs.h: New.
7381         * gnulib/extra/snippets/warn-on-use.h: New.
7382
7383         * aclocal.m4: Regenerate.
7384         * config.in: Regenerate.
7385         * configure: Regenerate.
7386         * gnulib/Makefile.in: Regenerate.
7387
7388 2012-04-18  Pedro Alves  <palves@redhat.com>
7389
7390         Reimport the update-copyright module from gnulib
7391         (250b80067c1e1d8faa0c42fb572f721975b929c5).
7392
7393         * configure: Regenerate.
7394         * gnulib/Makefile.am: Update.
7395         * gnulib/Makefile.in: Regenerate.
7396         * gnulib/extra/update-copyright: Update.
7397         * gnulib/m4/gnulib-cache.m4: Update.
7398         * gnulib/m4/gnulib-comp.m4: Update.
7399
7400 2012-04-18  Tristan Gingold  <gingold@adacore.com>
7401
7402         * configure.ac (aix): Put -lpthread into libs.
7403         * configure: Regenerate.
7404
7405 2012-04-18  Tom Tromey  <tromey@redhat.com>
7406
7407         * linespec.c (convert_linespec_to_sals): Don't use
7408         SYMBOL_OBJ_SECTION.
7409         (compare_msymbols): Arguments are minsym_and_objfile, not
7410         minimal_symbol*.  Don't use SYMBOL_OBJ_SECTION.
7411
7412 2012-04-18  Pedro Alves  <palves@redhat.com>
7413
7414         Revert gnulib/ part of:
7415         2011-01-01  Joel Brobecker  <brobecker@adacore.com>
7416         Copyright year update in most files (performed by copyright.sh).
7417
7418 2012-04-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
7419
7420         Fix 64-bit constants on 32-bit hosts.
7421         * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7422         from unsigned long to ULONGEST.
7423         (read_signed_leb128): Change declaration return type from long to
7424         LONGEST.
7425         (dwarf2_const_value_attr): Change declaration parameter value from long
7426         to LONGEST.
7427         (dwarf2_compute_name): Change variable value from long to LONGEST.
7428         (read_unsigned_leb128): Change return type, variable result and some
7429         casts from unsigned long to ULONGEST.
7430         (read_signed_leb128): Change return type, variable result and some
7431         casts from long to LONGEST.
7432         (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7433         value from long to LONGEST.
7434         (dwarf2_const_value): Change variable value from long to LONGEST.
7435         * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7436         plongest and hex_string.
7437         * symtab.h (struct general_symbol_info): Change ivalue from long to
7438         LONGEST, remove the comment.
7439         * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7440         Change SYMBOL_VALUE format strings to use plongest and hex_string.
7441
7442 2012-04-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
7443
7444         PR symtab/7259:
7445         * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7446         * ada-lang.c (ada_discrete_type_high_bound)
7447         (ada_discrete_type_low_bound): Fix function comment.  Use
7448         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7449         (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7450         (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7451         * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7452         Use TYPE_FIELD_ENUMVAL.
7453         * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7454         (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7455         * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7456         block, change it to LONGEST.  Use TYPE_FIELD_ENUMVAL for
7457         TYPE_CODE_ENUM.
7458         * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7459         * dwarf2read.c (process_enumeration_scope): Likewise.
7460         * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7461         field.bitpos.
7462         (class StructMainTypePrettyPrinter): Support also
7463         FIELD_LOC_KIND_ENUMVAL.
7464         * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7465         TYPE_CODE_ENUM.
7466         (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7467         (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7468         * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7469         (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment.  New
7470         field enumval.
7471         (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7472         accommodate enumval.
7473         (struct call_site): Adjust loc_kind to accommodate enumval.
7474         (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7475         (TYPE_FIELD_ENUMVAL): New macros.
7476         * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7477         * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7478         TYPE_CODE_ENUM.
7479         * p-typeprint.c (pascal_type_print_base): Likewise.
7480         * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7481         enumval.
7482         * python/lib/gdb/types.py (make_enum_dict): Likewise.
7483         * python/py-type.c (convert_field): New variable addrstring.  Use
7484         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7485         (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7486         * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7487         * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7488         TYPE_CODE_ENUM.
7489         * valprint.c (generic_val_print): Likewise.
7490
7491 2012-04-17  Doug Evans  <dje@google.com>
7492
7493         * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7494
7495         * dwarf2read.c: Whitespace fixes.
7496         (lookup_signatured_type): Tweak comment.
7497         (get_die_type_at_offset): Fix comment.
7498
7499 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
7500
7501         * xcoffread.c (xcoff_secnum_to_sections): New function.
7502         (secnum_to_section, secnum_to_bfd_section): Reimplement
7503         using xcoff_secnum_to_sections.  Rename "secnum" parameter
7504         into "n_scnum".
7505         (RECORD_MINIMAL_SYMBOL): Delete.
7506         (record_minimal_symbol): New function.
7507         (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7508         by call to record_minimal_symbol and set misc_func_recorded
7509         to 1.  Set last_csect_sec to the XCOFF section index instead
7510         of GDB's section_offset index.  Update calls to
7511         prim_record_minimal_symbol_and_info to pass the BFD section
7512         as well.
7513
7514 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
7515
7516         * xcoffread.c (read_xcoff_symtab): Delete variables
7517         last_csect_val and last_csect_sec and associated code.
7518
7519 2012-04-17  Doug Evans  <dje@google.com>
7520
7521         * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7522         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7523         * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7524         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7525
7526         * cleanups.h: New file.
7527         * cleanups.c: New file.
7528         * Makefile.in (SFILES): Add cleanups.c.
7529         (HFILES_NO_SRCDIR): Add cleanups.h.
7530         (COMMON_OBS): Add cleanups.o.
7531         * defs.h (struct cleanup): Moved to cleanups.h.
7532         (do_cleanups,do_final_cleanups): Ditto.
7533         (discard_cleanups,discard_final_cleanups): Ditto
7534         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7535         (save_cleanups,save_final_cleanups): Ditto.
7536         (restore_cleanups,restore_final_cleanups): Ditto.
7537         (null_cleanup): Ditto.
7538         (make_my_cleanup,make_my_cleanup2): Ditto.
7539         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7540         * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7541         (do_cleanups,do_final_cleanups): Ditto.
7542         (discard_cleanups,discard_final_cleanups): Ditto
7543         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7544         (save_cleanups,save_final_cleanups): Ditto.
7545         (restore_cleanups,restore_final_cleanups): Ditto.
7546         (null_cleanup): Ditto.
7547         (make_my_cleanup,make_my_cleanup2): Ditto.
7548         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7549
7550         * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7551         make_my_cleanup.
7552         (make_cleanup_dyn_string_delete): Ditto.
7553         (make_cleanup_ui_file_delete): Ditto.
7554         (make_cleanup_ui_out_redirect_pop): Ditto.
7555         (make_cleanup_free_section_addr_info): Ditto.
7556         (make_cleanup_restore_integer): Ditto.
7557         (make_cleanup_unpush_target): Ditto.
7558         (make_cleanup_value_free_to_mark): Ditto.
7559         (make_cleanup_value_free): Ditto.
7560         (make_cleanup_free_so): Ditto.
7561
7562 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7563
7564         New option "set debug auto-load".
7565         * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7566         * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7567         (auto_load_safe_path_vec_update)
7568         (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7569         if DEBUG_AUTO_LOAD.
7570         (file_is_auto_load_safe): New parameters debug_fmt and ....
7571         Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7572         (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7573         caller by explanatory string.
7574         (_initialize_auto_load): Register "set debug auto-load".
7575         * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7576         and ....
7577         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7578         (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7579         by explanatory string.
7580         * main.c (captured_main): Likewise.
7581         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7582         (source_section_scripts): Likewise.
7583
7584 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7585
7586         New option "set auto-load safe-path".
7587         * NEWS: New commands "set auto-load safe-path"
7588         and "show auto-load safe-path".
7589         * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7590         (auto_load_safe_path, auto_load_safe_path_vec)
7591         (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7592         (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7593         (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7594         (source_gdb_script_for_objfile): New variable is_safe.  Call
7595         file_is_auto_load_safe.  Return if it is not.
7596         (struct loaded_script): New field loaded.
7597         (maybe_add_script): Add parameter loaded.  Initialize SLOT with it.
7598         (print_script): Use LOADED indicator instead of FULL_PATH.  Change
7599         output "Missing" to "No".
7600         (_initialize_auto_load): New variable cmd.  Initialize
7601         auto_load_safe_path.  Register "set auto-load safe-path",
7602         "show auto-load safe-path" and "add-auto-load-safe-path".
7603         * auto-load.h (maybe_add_script): Add parameter loaded.
7604         (file_is_auto_load_safe): New declaration.
7605         * config.in: Regenerate.
7606         * configure: Regenerate.
7607         * configure.ac: New parameters --with-auto-load-safe-path
7608         and --without-auto-load-safe-path.
7609         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7610         (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7611         * main.c (captured_main): Check file_is_auto_load_safe for
7612         LOCAL_GDBINIT.
7613         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7614         variable is_safe.  Call file_is_auto_load_safe.  Return if it is not.
7615         (source_section_scripts): Call file_is_auto_load_safe.  Return if it is
7616         not.
7617
7618 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7619
7620         auto-load: Implementation.
7621         * NEWS: New descriptions for "info auto-load",
7622         "info auto-load gdb-scripts", "info auto-load python-scripts",
7623         "info auto-load local-gdbinit" and "info auto-load libthread-db".
7624         Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7625         and "show auto-load-scripts".  New description for "set auto-load",
7626         "show auto-load", "set auto-load gdb-scripts",
7627         "show auto-load gdb-scripts", "set auto-load python-scripts",
7628         "show auto-load python-scripts", "set auto-load local-gdbinit",
7629         "show auto-load local-gdbinit", "set auto-load libthread-db" and
7630         "show auto-load libthread-db".
7631         * auto-load.c: Remove include python/python-internal.h.  Add includes
7632         exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7633         cli/cli-setshow.h.
7634         (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7635         (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7636         (gdbpy_global_auto_load): Rename to ...
7637         (global_auto_load): ... here.
7638         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7639         (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7640         (script_language_gdb, source_gdb_script_for_objfile): New.
7641         (struct loaded_script): New field language.
7642         (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7643         LANGUAGE.
7644         (maybe_add_script): Add parameter language.  Drop redundant
7645         entry.full_path initialization.  Initialize entry.language and
7646         (*slot)->language.
7647         (auto_load_objfile_script): Change parameter suffix to language.
7648         Remove the call of maybe_add_script.
7649         Call language->source_script_for_objfile.
7650         (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7651         New.
7652         (collect_matching_scripts): Adjust it for
7653         struct collect_matching_scripts_data.
7654         (auto_load_info_scripts_pattern_nl): New variable.
7655         (info_auto_load_scripts): Rename to ...
7656         (auto_load_info_scripts): ... here, add parameter language.  Adjust it
7657         for struct collect_matching_scripts_data.
7658         (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7659         (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7660         (auto_load_show_cmdlist_get, info_auto_load_cmd)
7661         (auto_load_info_cmdlist_get): New.
7662         (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7663         python/py-auto-load.c.  New installment for "set auto-load gdb-scripts",
7664         "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7665         "info auto-load local-gdbinit".
7666         * auto-load.h (struct script_language): New.
7667         (gdbpy_global_auto_load): Rename to ...
7668         (global_auto_load): ... here.
7669         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7670         (auto_load_local_gdbinit_loaded): New declarations.
7671         (maybe_add_script): New parameter language.
7672         (auto_load_objfile_script): Change parameter suffix to language.
7673         (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7674         (auto_load_info_scripts, auto_load_set_cmdlist_get)
7675         (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7676         declarations.
7677         * linux-thread-db.c: Include auto-load.h and ctype.h.
7678         (auto_load_thread_db, show_auto_load_thread_db): New.
7679         (struct thread_db_info): New field filename.
7680         (delete_thread_db_info): Call xfree for FILENAME.
7681         (try_thread_db_load): Initialize FILENAME.
7682         (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7683         if !AUTO_LOAD_THREAD_DB.
7684         (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7685         (_initialize_thread_db): Install auto_load_thread_db
7686         as "set auto-load libthread-db" and install info_auto_load_libthread_db
7687         as "info auto-load libthread-db".
7688         * main.c (captured_main): Rename gdbpy_global_auto_load to
7689         global_auto_load.  Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7690         AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7691         (print_gdb_help): Extend the help for 'local init file'.
7692         * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7693         (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7694         (auto_load_scripts): Rename to ...
7695         (auto_load_python_scripts): ... here, update the comment.
7696         (gdbpy_load_auto_script_for_objfile): New declaration.
7697         (show_auto_load_python_scripts, script_language_python)
7698         (gdbpy_load_auto_script_for_objfile): New.
7699         (source_section_scripts): Refactor the code.
7700         (load_auto_scripts_for_objfile): Rename to ...
7701         (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7702         auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7703         (info_auto_load_python_scripts): New.
7704         (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7705         Rename "set auto-load-scripts" to "set auto-load python-scripts".
7706         Register "set auto-load-scripts" as its deprecated alias.  Register
7707         "info auto-load python-scripts".  Register "info auto-load-scripts" as
7708         its deprecated alias.
7709         (load_auto_scripts_for_objfile): Rename to ...
7710         (gdbpy_load_auto_scripts_for_objfile): ... here.
7711         * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7712         (gdbpy_load_auto_scripts_for_objfile): ... here.
7713
7714 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7715
7716         auto-load: Move files.
7717         * Makefile.in (SFILES): Add auto-load.c.
7718         (HFILES_NO_SRCDIR): Add auto-load.h.
7719         (COMMON_OBS): Add auto-load.o.
7720         (distclean): Change .gdbinit for gdb-gdb.gdb.
7721         * auto-load.c: New file, with parts from python/py-auto-load.c.
7722         * auto-load.h: New file, with parts from python/python.h.
7723         * configure: Regenerate.
7724         * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7725         * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7726         * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7727         * main.c: Include auto-load.h.
7728         * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7729         command.h, observer.h and progspace.h to auto-load.c.  Add include
7730         auto-load.h.
7731         (gdbpy_global_auto_load, struct auto_load_pspace_info)
7732         (struct loaded_script, auto_load_pspace_data)
7733         (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7734         (hash_loaded_script_entry, eq_loaded_script_entry)
7735         (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7736         (maybe_add_script): Move to auto-load.c.
7737         (source_section_scripts): Change maybe_add_script parameters passing,
7738         use script_not_found_warning_print.
7739         (clear_section_scripts, auto_load_objfile_script)
7740         (auto_load_new_objfile, loaded_script_ptr)
7741         (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7742         (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7743         (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7744         auto_load_new_objfile and info_auto_load_scripts initizations to
7745         auto-load.c.
7746         * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7747
7748 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7749
7750         Code cleanup.
7751         * charset.c (find_charset_names): Remove variables ix and elt.
7752         Use free_char_ptr_vec.
7753         * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7754         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
7755         debugdir_end.  New variable debugdir_len.
7756         * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7757         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7758         declarations.
7759         * progspace.c (clear_program_space_solib_cache): Remove variables ix
7760         and elt.  Use free_char_ptr_vec.
7761         * source.c (add_path): Remove variables argv, arg and argv_index.
7762         New variables dir_vec, back_to, ix and name.
7763         Use dirnames_to_char_ptr_vec_append.  Use freeargv instead of
7764         make_cleanup_freeargv.  Remove variable separator.  Simplify the code
7765         no longer expecting DIRNAME_SEPARATOR.
7766         (openp): Remove variable p, p1 and len.  New variables dir_vec,
7767         back_to, ix and dir.  Use dirnames_to_char_ptr_vec.  Simplify the code
7768         no longer expecting DIRNAME_SEPARATOR.
7769         * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7770         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
7771         debugdir_end.
7772         * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7773         (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7774         (dirnames_to_char_ptr_vec): New functions.
7775
7776 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7777
7778         Code cleanup.
7779         * source.c (add_path): Remove always true conditional 'p == 0' and
7780         unindent its code block.
7781
7782 2012-04-17  Pedro Alves  <palves@redhat.com>
7783
7784         * gdbtypes.h (FIELD_BITPOS): Rename to ...
7785         (FIELD_BITPOS_LVAL): ... this.
7786         (FIELD_BITPOS): New.
7787         (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7788         * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7789         * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7790         SET_FIELD_BITPOS.
7791         * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7792         SET_FIELD_BITPOS.
7793         * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7794         (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7795         * target-descriptions.c (tdesc_gdb_type): Adjust to use
7796         SET_FIELD_BITPOS.
7797
7798 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7799
7800         Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7801         * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7802         TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7803         * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7804         * jv-lang.c (java_link_class_type): Likewise, once.
7805         * stabsread.c (read_enum_type): Likewise.
7806
7807 2012-04-16  Yao Qi  <yao@codesourcery.com>
7808
7809         * common/agent.c (agent_run_command): Add one more parameter `len'.
7810         Update callers.
7811         * common/agent.h: Update declaration.
7812         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7813         Update.
7814         (linux_child_static_tracepoint_markers_by_strid): Ditto.
7815
7816 2012-04-14  Anton Gorenkov <xgsa@yandex.ru>
7817
7818         PR mi/13393
7819         * value.c (value_actual_type): New function.
7820         * value.h (value_actual_type): New declaration.
7821         * varobj.c (update_type_if_necessary): New function.
7822         (varobj_create): Call value_actual_type instead of
7823         value_type.
7824         (install_dynamic_child): distinct changed and type changed MI variable
7825         objects.
7826         (update_dynamic_varobj_children): Updated for install_dynamic_child
7827         change.  All callers updated.
7828         (varobj_update): Support for MI variable object type change if
7829         the value changed and RTTI is used to determine the type.
7830         (create_child_with_value): Call value_actual_type instead of
7831         value_type.
7832         (adjust_value_for_child_access): Extended with a new parameter which
7833         specify whether the given value should be casted to enclosing type.
7834         All callers updated.
7835
7836 2012-04-14  Yao Qi  <yao@codesourcery.com>
7837
7838         Import gnulib module inttypes from git
7839         (250b80067c1e1d8faa0c42fb572f721975b929c5)
7840         * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7841         (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7842         gnulib/m4/inttypes-pri.m4
7843         * aclocal.m4, config.in, configure: Regenerated.
7844         * gnulib/Makefile.am: Update.
7845         * gnulib/Makefile.in: Update.
7846         * gnulib/m4/gnulib-cache.m4: Update.
7847         * gnulib/m4/gnulib-comp.m4: Update.
7848         * gnulib/inttypes.in.h: New.
7849         * gnulib/m4/inttypes-pri.m4: New.
7850         * gnulib/m4/inttypes.m4: New.
7851
7852 2012-04-13  Luis Machado  <lgustavo@codesourcery.com>
7853
7854         * infrun.c (resume): Update PC address to the real PC after
7855         preparing to do displaced stepping.
7856
7857 2012-04-12  Doug Evans  <dje@google.com>
7858
7859         * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7860         All callers updated.
7861
7862 2012-04-12  Mark Kettenis  <kettenis@gnu.org>
7863
7864         * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7865
7866 2012-04-12  Doug Evans  <dje@google.com>
7867
7868         * dwarf2read.c (create_all_type_units): Renamed from
7869         create_debug_types_hash_table.  All callers updated.
7870
7871         * dwarf2read.c (create_signatured_type_table_from_index): Rename
7872         local type_sig to sig_type, type_offset to type_offset_in_tu.
7873         (hash_signatured_type): Renamed from hash_type_signature,
7874         all callers updated.
7875         (eq_signatured_type): Renamed from eq_type_signature,
7876         all callers updated.
7877         (create_debug_types_hash_table): Rename local type_sig to sig_type.
7878         (process_enumeration_scope): Ditto.
7879         (lookup_signatured_type_at_offset): Ditto.
7880         (load_full_type_unit, read_signatured_type): Ditto.
7881
7882 2012-04-12  Yao Qi  <yao@codesourcery.com>
7883
7884         * remote.c (async_remote_interrupt): Correct function name in
7885         debug message.
7886         (async_remote_interrupt_twice): Ditto.
7887
7888 2012-04-11  Yuanhui Zhang  <asmwarrior@gmail.com>
7889
7890         * source.c (find_and_open_source): Consistently pass resulting
7891         full path through xfullpath.
7892
7893 2012-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7894
7895         Provide more specific displaced-stepping memory error message.
7896         * infrun.c (displaced_step_prepare): New variable status.  Call
7897         target_read_memory instead of read_memory, provide more specific
7898         error message.
7899
7900 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7901
7902         PR gdb/13901
7903         * darwin-nat.c (darwin_execvp): Revert previous patch.
7904
7905 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7906
7907         PR gdb/13901
7908         * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7909         in case of change.
7910
7911 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7912
7913         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7914         warning.
7915
7916 2012-04-11  Siva Chandra Reddy  <sivachandra@google.com>
7917
7918         New command 'explore' which helps explore values and types in
7919         scope.
7920         * NEWS: Add an entry about the new 'explore' command.
7921         * data-directory/Makefile.in: Add gdb/command/explore.py
7922         * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7923         command using the GDB Python API.
7924
7925 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
7926
7927         * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7928         extension in jump target calculation.
7929
7930 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
7931
7932         * mips-tdep.c (mips32_next_pc): Handle JALX.
7933
7934 2012-04-10  Yao Qi  <yao@codesourcery.com>
7935
7936         * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7937
7938 2012-04-10  Yao Qi  <yao@codesourcery.com>
7939
7940         * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7941         and gnulib/m4/gnulib-tool.m4.
7942
7943 2012-04-10  Doug Evans  <dje@google.com>
7944
7945         * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7946         (load_partial_dies): Clarify comment.
7947         (find_partial_die): Support rereading type units.
7948         Clarify CU handling, if we know offset is in CU, don't search for the
7949         containing CU.  Add comment regarding memory waste.
7950
7951 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7952
7953         * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7954         i386/x32-avx and i386/x32-avx-linux.
7955         (i386/x32-expedite): New.
7956         (i386/x32-linux-expedite): Likewise.
7957         (i386/x32-avx-expedite): Likewise.
7958         (i386/x32-avx-linux-expedite): Likewise.
7959         ($(outdir)/i386/x32.dat): Likewise.
7960         ($(outdir)/i386/x32-linux.dat): Likewise.
7961         ($(outdir)/i386/x32-avx.dat): Likewise.
7962         ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7963
7964         * features/i386/x32-avx-linux.xml: New file.
7965         * features/i386/x32-avx.xml: Likewise.
7966         * features/i386/x32-core.xml: Likewise.
7967         * features/i386/x32-linux.xml: Likewise.
7968         * features/i386/x32.xml: Likewise.
7969
7970         * features/i386/x32-avx-linux.c: New.  Generated.
7971         * features/i386/x32-avx.c: Likewise.
7972         * features/i386/x32-linux.c: Likewise.
7973         * features/i386/x32.c: Likewise.
7974         * regformats/i386/x32-avx-linux.dat: Likewise.
7975         * regformats/i386/x32-avx.dat: Likewise.
7976         * regformats/i386/x32-linux.dat: Likewise.
7977         * regformats/i386/x32.dat: Likewise.
7978
7979 2012-04-10  Tristan Gingold  <gingold@adacore.com>
7980
7981         * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7982         code to kill the inferior.
7983
7984 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
7985
7986         * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7987         defines.
7988         * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7989         defines.
7990         * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7991         (yyvsp): New defines.
7992         * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7993         defines.
7994         * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7995         defines.
7996         * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7997         defines.
7998         * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7999         defines.
8000         * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8001         defines.
8002
8003 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
8004
8005         * sparc64-tdep.c (sparc64_store_arguments)
8006         (sparc64_store_arguments): Fix coding style.
8007
8008 2012-04-07  Mark Kettenis  <kettenis@gnu.org>
8009
8010         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8011         complex floats, adjust some related comments and tighten a related
8012         assertion.
8013         (sparc64_extract_return_value): Handle complex floats.
8014
8015 2012-04-07  Doug Evans  <dje@google.com>
8016
8017         * dwarf2read.c (load_partial_dies): Change condition to assert.
8018
8019 2012-04-06  Doug Evans  <dje@google.com>
8020
8021         * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8022         "mov %rsp,%rbp".
8023
8024 2012-04-05  Kevin Buettner  <kevinb@redhat.com>
8025
8026         * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8027         fencepost error.
8028         (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8029         (v850_gdbarch_init): Set `num_regs' as appropriate for the
8030         architecture.
8031
8032 2012-04-05  Keith Seitz  <keiths@redhat.com>
8033
8034         * linespec.c (decode_compound): Remove.
8035         (enum offset_relative_sign): New enum.
8036         (struct line_offset): New struct.
8037         (struct linespec): New struct.
8038         (struct linespec_state): Move file_symtabs,
8039         user_filename, and user_function into struct linespec.
8040         Make result an anonymous struct holding vectors of
8041         symbolp and minsym_and_objfile_d.
8042         Add language member.
8043         (enum ls_token_type): New enum.
8044         (linespec_keywords): New array.
8045         (struct ls_token): New struct.
8046         (struct ls_parser): New struct.
8047         (linespec_lexer_lex_number): New function.
8048         (linespec_lexer_lex_keyword): New function.
8049         (is_ada_operator): New function.
8050         (skip_quote_char): New function.
8051         (copy_token_string): New function.
8052         (is_closing_quote_enclosed): New function.
8053         (find_parameter_list_end): New function.
8054         (linespec_lexer_lex_string): New function.
8055         (linespec_lexer_lex_one): New function.
8056         (linespec_lexer_consume_token): New function.
8057         (linespec_lexer_peek_token): New function.
8058         (cplusplus_error): Remove unused function.
8059         (find_methods): Update comment.
8060         (find_toplevel_char): Return const.
8061         (is_objc_method_format): Remove unused function.
8062         (find_toplevel_string): New function.
8063         (is_linespec_boundary): Remove.
8064         (symbol_not_found_error): New function.
8065         (find_method_overload_end): Remove function.
8066         (unexpected_linespec_error): New function.
8067         (keep_name_info): Remove.
8068         (linespec_parse_line_offset): New function.
8069         (linespec_parse_basic): New function.
8070         (canonicalize_linespec): New function.
8071         (decode_line_internal): Remove.
8072         (create_sals_line_offset): New function adapted from
8073         decode_all_digits.
8074         (convert_linespec_to_sals): New function.
8075         (parse_linespec): New function.
8076         (linespec_parser_new): New function.
8077         (linespec_state_destructor): Change parameter type to
8078         struct linespec_state *.
8079         Add language parameter.
8080         Remove freeing of moved members.
8081         (linespec_parser_delete): New function.
8082         (decode_line_full): Use parse_linespec and linespec_parser_new.
8083         (decode_line_1): Likewise.
8084         (decode_indirect): Rename to ...
8085         (linespec_expression_to_pc): ... this and rewrite
8086         to simply find CORE_ADDR, storing this result for later
8087         conversion to SALs.
8088         (locate_first_half): Remove.
8089         (deocde_objc): Add parameter LS.
8090         Initialize new struct collect_info members.
8091         Handle minimal symbols, too.
8092         (decode_compound): Delete.
8093         (lookup_prefix_sym): Rewrite.
8094         (compare_msymbols): New function.
8095         (find_method): Rewrite.
8096         Do not call cplusplus_error.
8097         (symtabs_from_filename): Rewrite.
8098         (collect_function_symbols): Delete.
8099         (find_function_symbols): Rewrite without ARGPTR-style
8100         processing.
8101         (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8102         (decode_dollar): Adapted and renamed to ...
8103         (linespec_parse_variable): ... this.
8104         (find_linespec_symbols): New function.
8105         (decode_label): Adapted and renamed to ...
8106         (find_label_symbols): ... this.
8107         (decode_digits_list_mode): Add and use LS argument.
8108         (decode_digits_ordinary): Likewise.
8109         (collect_symbols): Do not collect SALs, just symbols and msymbols.
8110         If in list mode, allow any symbol class.  Otherwise, only
8111         permit LOC_BLOCK symbols.
8112         (minsym_found): Update comments.
8113         (search_minsyms_for_name): Do not convert the matching symbol
8114         into a SAL.  Simply push the symbol and objfile into the
8115         result vector.
8116         (decode_variable): Delete. Contents adapted into
8117         find_linespec_symbols.
8118
8119         * cp-support.c (SKIP_SPACE): Remove.
8120         (operator_tokens): Remove unused global.
8121         (cp_validate_operator): Remove.
8122         * cp-support.h (cp_validate_operator): Remove declaration.
8123
8124 2012-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
8125
8126         * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8127         for TYPE_VPTR_FIELDNO.
8128         * valprint.c (valprint_check_validity): Make it global, move the
8129         function comment ...
8130         * value.h (valprint_check_validity): ... to this new declaration.
8131
8132 2012-04-02  Tristan Gingold  <gingold@adacore.com>
8133
8134         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8135         the STATE32 api for i386 state.
8136         (i386_darwin_store_inferior_registers): Likewise.
8137
8138 2012-04-02  Tristan Gingold  <gingold@adacore.com>
8139
8140         * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8141         SS offset.
8142         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8143         format_string.
8144
8145 2012-04-02  Tristan Gingold  <gingold@adacore.com>
8146
8147         PR gdb/13901
8148         * darwin-nat.c (darwin_execvp): Set binary preference.
8149
8150 2012-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8151
8152         * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8153
8154 2012-03-30  Tom Tromey  <tromey@redhat.com>
8155
8156         * python/python.c (gdbpy_decode_line): Move cleanup creation out
8157         of TRY_CATCH.  Fix error handling.
8158         * python/py-value.c (convert_value_from_python): Move 'old'
8159         declaration to innermost scope.
8160
8161 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8162             Andrey Smirnov  <andrew.smirnov@gmail.com>
8163
8164         -Wshadow warning fix.
8165         * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8166         "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8167         Adjust code accordingly.
8168
8169 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8170
8171         * ada-lang.c (symbol_completion_add): Rename parameter
8172         "encoded" into "encoded_p".  Ajust code and documentation
8173         accordingly.
8174
8175 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8176             Andrey Smirnov  <andrew.smirnov@gmail.com>
8177
8178         -Wshadow warning fix.
8179         * ada-lang.c (symbol_completion_add): Rename parameter
8180         "wild_match" into wild_match_p.  Update code and documentation
8181         accordingly.
8182
8183 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8184
8185         * ada-lang.c (symbol_completion_match): Rename parameter
8186         "encoded" into "encoded_p".  Ajust code and documentation
8187         accordingly.
8188
8189 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8190             Andrey Smirnov  <andrew.smirnov@gmail.com>
8191
8192         -Wshadow warning fix.
8193         * ada-lang.c (symbol_completion_match): Rename parameter
8194         "wild_match" into "wild_match_p".  Adjust code and function
8195         documentation accordingly.
8196
8197 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8198             Andrey Smirnov  <andrew.smirnov@gmail.com>
8199
8200         -Wshadow warning fix.
8201         * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8202         "symbol_info" into "info".  Adjust code accordingly.
8203         (ada_lookup_symbol): Likewise.
8204
8205 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8206
8207         * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8208         of this function's documentation.
8209
8210 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8211             Andrey Smirnov  <andrew.smirnov@gmail.com>
8212
8213         -Wshadow warning fix.
8214         * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8215         variable into "wild_match_p".  Adjust code accordingly.
8216
8217 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8218             Andrey Smirnov  <andrew.smirnov@gmail.com>
8219
8220         -Wshadow warning fix.
8221         * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8222         parameter into "wild_match_p".  Adjust code accordingly.
8223         Document this parameter in the function description.
8224
8225 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8226             Andrey Smirnov  <andrew.smirnov@gmail.com>
8227
8228         -Wshadow warning fix.
8229         * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8230         "wild_match" parameter to "wild_match_p" (-Wshadow).
8231
8232 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8233
8234         * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8235         in function documentation.
8236
8237 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8238             Andrey Smirnov  <andrew.smirnov@gmail.com>
8239
8240         -Wshadow warning fix.
8241         * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8242         variable into wild_match_p.  Adjust code accordingly.
8243
8244 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8245             Andrey Smirnov  <andrew.smirnov@gmail.com>
8246
8247         * ada-valprint.c (ada_val_print_1): Move the code handling
8248         TYPE_CODE_ENUM inside its own lexical block.  Declare
8249         variables len and val there, instead of in the function's
8250         top level block.  Avoid declaring deref_val again in a way
8251         that shadows another variable of the same name declared
8252         in one of the up-level blocks.  Just re-use the up-level
8253         variable instead.
8254
8255 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8256
8257         * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8258         Replace block_found argument by symbol_info.  Adjust
8259         implementation accordingly.  Add function documentation.
8260         (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8261         Fix documentation.
8262         * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8263         * ada-exp.y (write_object_renaming): Adjust to new
8264         ada_lookup_encoded_symbol API.
8265
8266 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8267
8268         * ada-lang.h (struct ada_symbol_info): Reformat.  Improve
8269         documentation.
8270
8271 2012-03-28  Rathish C  <rathish.c@kpitcummins.com>
8272
8273         * v850-tdep.c: Add the enum values for mpu and fpu registers.
8274         (v850_register_name): Add the mpu and fpu register names.
8275         (v850e_register_name): Add the mpu and fpu register names.
8276         (v850e2_register_name): New function.
8277         (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
8278         bfd_mach_v850e2v3.
8279
8280 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
8281
8282         * NEWS: Add entry for Ada varobj support.
8283
8284 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
8285
8286         * varobj.c (default_value_is_changeable_p): New function,
8287         extracted from varobj_value_is_changeable_p.  Add declaration.
8288         (ada_value_is_changeable_p): New function, extracted from
8289         varobj_value_is_changeable_p.  Add declaration.
8290         (struct language_specific): New field "value_is_changeable_p".
8291         (languages): Add entries for new field.
8292         (varobj_create): Set language before calling install_new_value.
8293         (varobj_value_is_changeable_p): Reimplement to call the varobj's
8294         "value_is_changeable_p" language callback.
8295
8296 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
8297
8298         * ada-varobj.h, ada-varobj.c: New files.
8299         * Makefile.in (SFILES): Add ada-varobj.c.
8300         (HFILES_NO_SRCDIR): Add ada-varobj.h.
8301         (COMMON_OBS): Add ada-varobj.o.
8302
8303 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
8304
8305         * varobj.c (ada_value_has_mutated): Add declaration.  New function.
8306         (struct language_specific): New field "value_has_mutated".
8307         (languages): Set field "value_has_mutated" in each entry of array.
8308         (varobj_value_has_mutated): New function.
8309         (varobj_udpdate): Add handling of type mutation.
8310         (value_of_root): Add handling of type mutation.
8311         (ada_value_has_mutated): New function.
8312
8313 2012-03-28  Pedro Alves  <palves@redhat.com>
8314
8315         * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
8316         Always supply $fr0 as 0.0 and $fr1 as 1.0.
8317
8318 2012-03-28  Tom Tromey  <tromey@redhat.com>
8319
8320         * python/py-inferior.c (infpy_read_memory): Remove cleanups and
8321         explicitly free 'buffer' on exit paths.  Decref 'membuf_object'
8322         before returning.
8323
8324 2012-03-28  Tom Tromey  <tromey@redhat.com>
8325
8326         * .dir-locals.el: New file.
8327
8328 2012-03-28  Pedro Alves  <palves@redhat.com>
8329
8330         * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8331
8332 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
8333
8334         * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8335         handling for r0.
8336
8337 2012-03-27  Pedro Alves  <palves@redhat.com>
8338
8339         Eliminate struct ui_stream.
8340
8341         * ui-out.h (struct ui_stream): Delete.
8342         (ui_out_field_stream): Adjust prototype.
8343         (ui_out_stream_new, ui_out_stream_delete)
8344         (make_cleanup_ui_out_stream_delete): Delete declarations.
8345         * ui-out.c (ui_out_field_stream): Change prototype to take a
8346         ui_file instead of a ui_stream.  Adjust.
8347         (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8348         (make_cleanup_ui_out_stream_delete): Delete.
8349         * breakpoint.c (print_breakpoint_location)
8350         (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8351         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8352         * disasm.c (dump_insns): Ditto.
8353         (do_mixed_source_and_assembly, do_assembly_only): Adjust
8354         prototype.
8355         (gdb_disassembly): Use ui_file/mem_fileopen instead of
8356         ui_stream/ui_out_stream_new.
8357         * infcmd.c (print_return_value): Ditto.
8358         * osdata.c (info_osdata_command): Don't allocate a local
8359         ui_stream.
8360         * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8361         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8362         * tracepoint.c (print_one_static_tracepoint_marker): Don't
8363         allocate a local ui_stream.
8364         * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8365         instead of ui_stream/ui_out_stream_new.
8366         (list_args_or_locals): Don't allocate a local ui_stream.
8367         * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8368         (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8369         ui_stream/ui_out_stream_new.
8370         * cli/cli-setshow.c (do_setshow_command): Ditto.
8371
8372 2012-03-27  Oza Pawandeep  <oza.pawandeep@gmail.com>
8373
8374         * arm-linux-tdep.c (arm_linux_init_abi): Call
8375         set_gdbarch_process_record.  Initialize `arm_swi_record' field.
8376         * arm-tdep.c (arm_process_record): New function.
8377         (deallocate_reg_mem): New function.
8378         (decode_insn): New function.
8379         (thumb_record_branch): New function.
8380         (thumb_record_ldm_stm_swi(): New function.
8381         (thumb_record_misc): New function.
8382         (thumb_record_ld_st_stack): New function.
8383         (thumb_record_ld_st_imm_offset): New function.
8384         (thumb_record_ld_st_reg_offset(): New function.
8385         (thumb_record_add_sub_cmp_mov): New function.
8386         (thumb_record_shift_add_sub): New function.
8387         (arm_record_coproc_data_proc): New function.
8388         (arm_record_coproc): New function.
8389         (arm_record_b_bl): New function.
8390         (arm_record_ld_st_multiple): New function.
8391         (arm_record_ld_st_reg_offset): New function.
8392         (arm_record_ld_st_imm_offset): New function.
8393         (arm_record_data_proc_imm): New function.
8394         (arm_record_data_proc_misc_ld_str): New function.
8395         (arm_record_extension_space): New function.
8396         (arm_record_strx): New function.
8397         (sbo_sbz): New function.
8398         (struct insn_decode_record): New structure for arm insn record.
8399         (REG_ALLOC): New macro for reg allocations.
8400         (MEM_ALLOC): New macro for memory allocations.
8401         * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
8402
8403 2012-03-27  Andreas Schwab  <schwab@linux-m68k.org>
8404
8405         * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8406         (store_register): Likewise.
8407
8408 2012-03-26  Oza Pawandeep  <oza.pawandeep@gmail.com>
8409
8410         * MAINTAINERS (Write After Approval): Add myself to the list.
8411
8412 2012-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
8413
8414         * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8415         Describe also the option "auto".
8416
8417 2012-03-22  Richard Henderson  <rth@redhat.com>
8418
8419         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8420         * sparc-nat.c (sparc_xfer_wcookie): Make static.
8421
8422 2012-03-22  Richard Henderson  <rth@redhat.com>
8423
8424         * jit.c (jit_read_code_entry): Compute alignment and offset of
8425         int64_t member before computing entry_size.
8426
8427 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
8428
8429         Python scripting: Add new method Value.referenced_value to
8430         gdb.Value which can dereference pointer as well as reference
8431         values.
8432         * NEWS: Add entry under 'Python scripting' about the new method
8433         Value.referenced_value on gdb.Value objects.
8434         * python/py-value.c (valpy_referenced_value): New function
8435         defining a new method on gdb.Value objects which can dereference
8436         pointer and reference values.
8437
8438 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
8439
8440         * MAINTAINERS (Write After Approval): Add myself to the list.
8441
8442 2012-03-21  Kevin Buettner  <kevinb@redhat.com>
8443
8444         * symtab.c (skip_prologue_sal): Change test to check for "main()"
8445         in addition to "main".
8446
8447 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
8448
8449         * expression.h (op_name): Add declaration.
8450         * expprint.c (op_name): Remove declaration.  Make non-static.
8451         * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8452
8453 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
8454
8455         * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8456         of struct siginfo.
8457         * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8458         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8459         * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8460         (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8461         (linux_nat_get_siginfo): Likewise.
8462         * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8463         (linux_nat_get_siginfo): Likewise.
8464         * linux-tdep.c (linux_get_siginfo_type): Likewise.
8465         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8466         * procfs.c (gdb_siginfo_t): Likewise.
8467
8468 2012-03-21  Mike Frysinger  <vapier@gentoo.org>
8469
8470         * .gitignore: Ignore more files.
8471
8472 2012-03-20  Pedro Alves  <palves@redhat.com>
8473
8474         * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8475         returns.
8476
8477 2012-03-20  Yao Qi  <yao@codesourcery.com>
8478
8479         * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8480         comment.
8481
8482 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8483
8484         Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8485         * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8486         (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8487         sect_offset.
8488         * dwarf2expr.h (cu_offset, sect_offset): New types.
8489         (struct dwarf_expr_context_funcs) <dwarf_call>
8490         (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8491         sect_offset.
8492         (struct dwarf_expr_context) <len>: Improve the comment.
8493         (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8494         cu_offset and sect_offset.
8495         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8496         (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8497         (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8498         * dwarf2loc.h: Include dwarf2expr.h.
8499         (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8500         and sect_offset.
8501         * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8502         Improve the comment.
8503         (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8504         (struct signatured_type, struct line_header, struct partial_die_info)
8505         (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8506         (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8507         (get_die_type_at_offset, create_cus_from_index)
8508         (create_signatured_type_table_from_index, dw2_get_file_names)
8509         (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8510         (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8511         (create_debug_types_hash_table, process_psymtab_comp_unit)
8512         (load_partial_comp_unit, create_all_comp_units)
8513         (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8514         (load_full_comp_unit, dwarf2_physname, read_import_statement)
8515         (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8516         (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8517         (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8518         (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8519         (find_partial_die, read_attribute_value, lookup_die_type)
8520         (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8521         (is_ref_attr): New function comment.
8522         (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8523         Use cu_offset and sect_offset.
8524         (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8525         (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8526         (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8527         (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8528         (offset_and_type_hash, offset_and_type_eq, set_die_type)
8529         (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8530         (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8531         sect_offset.
8532
8533 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8534
8535         Code cleanup.
8536         * python/py-auto-load.c (source_section_scripts): New variable back_to.
8537         Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8538         with xfree.
8539         (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8540
8541 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8542
8543         * NEWS: Describe new options --init-command=FILE, -ix and
8544         --init-eval-command=COMMAND, -iex.
8545         * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8546         CMDARG_INIT_COMMAND.
8547         (captured_main): New enum items OPT_IX and OPT_IEX.  Add
8548         "init-command", "init-eval-command", "ix" and "iex" to the variable
8549         long_options.  Handle OPT_IX and OPT_IEX.  Process them from CMDARG_VEC.
8550         New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8551         (print_gdb_help): Describe --init-command=FILE, -ix and
8552         --init-eval-command=COMMAND, -iex.
8553
8554 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8555
8556         Code cleanup.
8557         * main.c (struct cmdarg): Move it here from main.  Add more comments.
8558         (cmdarg_s, VEC (cmdarg_s)): New.
8559         (main): Move struct cmdarg from here.  New variables cmdarg_vec and
8560         cmdarg_p.  Remove variables cmdsize and ncmd and their initialization.
8561         Install cleanup for cmdarg_vec.  Update filling for options 'x' and
8562         'X'.  Replace cmdarg processing by cmdarg_vec processing.  Remove xfree
8563         of CMDARG.
8564
8565 2012-03-19  Tom Tromey  <tromey@redhat.com>
8566
8567         * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8568
8569 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8570
8571         PR symtab/13777
8572         * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8573         GCC >=4.5.
8574
8575 2012-03-16  Chris January  <chris.january@allinea.com>
8576
8577         * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8578         of clear.
8579
8580 2012-03-16  Chris January  <chris.january@allinea.com>
8581
8582         * source.c (add_path): Use memmove instead of strcpy because the
8583         strings overlap.
8584
8585 2012-03-16  Joel Brobecker  <brobecker@adacore.com>
8586
8587         * value.h (set_value_parent): Add declaration.
8588         * value.c (set_value_parent): New function.
8589         (value_address): If VALUE->PARENT is not NULL, then use it as
8590         the base address instead of VALUE->LOCATION.address.
8591         * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8592         the same as OBJ's address.  Adjust V's offset accordingly.
8593         Set V's parent.
8594
8595 2012-03-16  Gary Benson  <gbenson@redhat.com>
8596
8597         PR breakpoints/10738
8598         * dwarf2read.c (use_deprecated_index_sections): New global.
8599         (struct partial_die_info): New member may_be_inlined.
8600         (read_partial_die): Set may_be_inlined where appropriate.
8601         (add_partial_subprogram): Add partial symbols for partial
8602         DIEs that may be inlined.
8603         (new_symbol_full): Add inlined subroutines to the current
8604         scope.
8605         (write_psymtabs_to_index): Bump version number.
8606         (dwarf2_read_index): Read only version 6 indices unless
8607         use_deprecated_index_sections is set.
8608         * linespec.c (symbol_and_data_callback): New structure.
8609         (iterate_inline_only): New function.
8610         (iterate_over_all_matching_symtabs): New argument
8611         "include_inline".  If nonzero, also call the callback for
8612         symbols representing inlined subroutines.
8613         (lookup_prefix_sym): Pass extra argument to the above.
8614         (find_function_symbols): Likewise.
8615         (add_matching_symbols_to_info): Likewise.
8616         * NEWS: Mention that GDB can now set breakpoints on inlined
8617         functions.
8618
8619 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
8620
8621         * p-typeprint.c (pascal_type_print_method_args):
8622         Fix display of parameter of methods.
8623
8624 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
8625
8626         * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8627         Add missing prototype.
8628
8629 2012-03-16  Yao Qi  <yao@codesourcery.com>
8630             Jan Kratochvil  <jan.kratochvil@redhat.com>
8631
8632         Fix false compilation warning.
8633         * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8634
8635 2012-03-15  Jonathan Larmour  <jifl@eCosCentric.com>
8636             Pedro Alves  <pedro@codesourcery.com>
8637
8638         * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8639         (arm_register_g_packet_guesses): New function.
8640         (arm_gdbarch_init): Don't force a target description with
8641         registers when the executable is detected as M-profile.  Instead
8642         set gdbarch->tdep->is_m.  Register `g' packet guesses.
8643         (_initialize_arm_tdep): Initialize the new target description.
8644         * features/arm-with-m-fpa-layout.xml: New description.
8645         * features/arm-with-m-fpa-layout.c: New, generated.
8646
8647 2012-03-15  Joel Brobecker  <brobecker@adacore.com>
8648
8649         * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8650         Update function description.
8651         (insert_bp_location): Do not wipe bl->target_info out.
8652         * mem-break.c: #include "gdb_string.h".
8653         (default_memory_insert_breakpoint): Do not call target_read_memory
8654         with a pointer to the breakpoint's shadow_contents buffer.  Use
8655         a local buffer instead.
8656         * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8657
8658 2012-03-15  Tom Tromey  <tromey@redhat.com>
8659
8660         * NEWS: Mention "info vtbl", not "info vtable".
8661         * cp-support.c (info_vtbl_command): Fix comment.
8662         (_initialize_cp_support): Fix text.
8663
8664 2012-03-15  Tom Tromey  <tromey@redhat.com>
8665
8666         * cp-valprint.c (cp_print_value_fields): Use
8667         print_function_pointer_address for vtable slot.
8668
8669 2012-03-15  Tom Tromey  <tromey@redhat.com>
8670
8671         * gnu-v3-abi.c (struct value_and_voffset): New.
8672         (hash_value_and_voffset, eq_value_and_voffset)
8673         (compare_value_and_voffset, compute_vtable_size)
8674         (print_one_vtable, gnuv3_print_vtable): New functions.
8675         (init_gnuv3_ops): Initialize 'print_vtable' field.
8676         * cp-support.c (info_vtbl_command): New function.
8677         (_initialize_cp_support): Add "info vtbl".
8678         * cp-abi.h (cplus_print_vtable): Declare.
8679         (struct cp_abi_ops) <print_vtable>: New field.
8680         * cp-abi.c (cplus_print_vtable): New function.
8681         * NEWS: Update.
8682
8683 2012-03-15  Tom Tromey  <tromey@redhat.com>
8684
8685         * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8686         iterate_over_symbols.
8687
8688 2012-03-14  Doug Evans  <dje@google.com>
8689
8690         * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8691         DW_OP_GNU_parameter_ref.
8692
8693 2012-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
8694
8695         Fix double prompt of 'interpreter-exec mi'.
8696         * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8697         (mi_interpreter_resume): use it.
8698         (mi_execute_command_input_handler): New function.
8699         * mi/mi-main.c (mi_execute_command): Move prompt printing to
8700         mi_execute_command_input_handler.
8701
8702 2012-03-13  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
8703
8704         * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8705         prototype.
8706         (darwin_debug_port_info): Make static.
8707         * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8708         * machoread.c (_initialize_machoread): Add prototype.
8709         * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8710         (i386_darwin_set_control, i386_darwin_get_control)
8711         i386_darwin_dr_set_addr, i386_darwin_get_addr)
8712         i386_darwin_get_status, i386_darwin_get_control):
8713         Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8714
8715 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
8716
8717         * ax-gdb.c (gen_usual_unary): Remove special handling of
8718         enum and bool types.
8719
8720 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
8721
8722         * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8723
8724 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
8725
8726         * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8727
8728 2012-03-13  Chris January  <chris.january@allinea.com>
8729
8730         * aix-thread.c (fill_sprs): Store the floating point registers
8731         at the correct offsets into vals.
8732
8733 2012-03-13  Doug Evans  <dje@google.com>
8734
8735         * NEWS: Mention symbol-reloading has been deleted.
8736         * symfile.c (symbol_reloading): Delete.
8737         (show_symbol_reloading): Delete.
8738         (_initialize_symfile): Delete set/show symbol-reloading.
8739
8740         * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8741         read_in_chain until we have successfully read it in.
8742         (load_full_comp_unit): Ditto.
8743         (read_signatured_type): Add comment.
8744
8745 2012-03-13  Chris January  <chris.january@allinea.com>
8746
8747         * stabsread.c (fix_common_block): Change type of valu argument
8748         to CORE_ADDR.
8749
8750 2012-03-13  Chris January  <chris.january@allinea.com>
8751
8752         * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8753         instruction.
8754
8755 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8756
8757         * common/linux-procfs.c (linux_proc_get_int): New, from
8758         linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8759         field.
8760         (linux_proc_get_tgid): Only call linux_proc_get_int.
8761         (linux_proc_get_tracerpid): New.
8762         (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8763         (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8764         linux_proc_pid_has_state.
8765         * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8766         * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8767         (linux_ptrace_attach_warnings): New.
8768         * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8769         New declaration.
8770         * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8771         (linux_nat_attach): New variables ex, buffer, message and message_s.
8772         Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8773
8774 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8775
8776         * Makefile.in (linux-ptrace.o): New.
8777         * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8778         from linux-nat.c.
8779         * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8780         * common/linux-ptrace.c: New file.
8781         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8782         * config/arm/linux.mh: Likewise.
8783         * config/i386/linux.mh: Likewise.
8784         * config/i386/linux64.mh: Likewise.
8785         * config/ia64/linux.mh: Likewise.
8786         * config/m32r/linux.mh: Likewise.
8787         * config/m68k/linux.mh: Likewise.
8788         * config/mips/linux.mh: Likewise.
8789         * config/pa/linux.mh: Likewise.
8790         * config/powerpc/linux.mh: Likewise.
8791         * config/powerpc/ppc64-linux.mh: Likewise.
8792         * config/powerpc/spu-linux.mh: Likewise.
8793         * config/s390/s390.mh: Likewise.
8794         * config/sparc/linux.mh: Likewise.
8795         * config/sparc/linux64.mh: Likewise.
8796         * config/xtensa/linux.mh: Likewise.
8797         * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8798         common/linux-procfs.c.
8799         (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8800
8801 2012-03-13  Hui Zhu  <teawater@gmail.com>
8802             Pedro Alves  <palves@redhat.com>
8803
8804         * breakpoint.c (init_breakpoint_sal): New flags parameter.  Handle
8805         CREATE_BREAKPOINT_FLAGS_INSERTED.
8806         (create_breakpoint_sal, create_breakpoints_sal)
8807         (base_breakpoint_create_breakpoints_sal)
8808         (tracepoint_create_breakpoints_sal)
8809         (strace_marker_create_breakpoints_sal): New flags parameter.  Pass
8810         down.
8811         (break_command_1, handle_gnu_v3_exceptions, trace_command)
8812         (ftrace_command, strace_command): Adjust.
8813         (create_tracepoint_from_upload): Pass
8814         CREATE_BREAKPOINT_FLAGS_INSERTED.
8815         * breakpoint.h (enum breakpoint_create_flags): New.
8816         (create_breakpoint): New flags parameter.
8817         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8818         * python/py-breakpoint.c (bppy_init): Adjust.
8819         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8820         * spu-tdep.c (spu_catch_start): Adjust.
8821
8822 2012-03-13  Pedro Alves  <palves@redhat.com>
8823             Hui Zhu  <teawater@gmail.com>
8824             Yao Qi  <yao@codesourcery.com>
8825
8826         * remote.c (struct remote_state): New field `starting_up'.
8827         (remote_start_remote): Set and clear it.
8828         (remote_can_download_tracepoint): If starting up, return false.
8829
8830 2012-03-13  Yao Qi  <yao@codesourcery.com>
8831
8832         * inferior.h (struct inferior): Remove fields any_syscall_count,
8833         syscalls_counts and total_syscalls_count.  Move them to new
8834         struct catch_syscall_inferior_data in breakpoint.c.
8835         * breakpoint.c: Call DEF_VEC_I(int).
8836         (struct catch_syscall_inferior_data): New.
8837         (get_catch_syscall_inferior_data): New.
8838         (catch_syscall_inferior_data_cleanup): New.
8839         (insert_catch_syscall): Update to access data in
8840         struct catch_syscall_inferior_data.
8841         (insert_catch_syscall): Likewise.
8842         (remove_catch_syscall): Likewise.
8843         (remove_catch_syscall): Likewise.
8844         (is_syscall_catchpoint_enabled): Likewise.
8845         (add_catch_command): Likewise.
8846         (_initialize_breakpoint): Register cleanup.
8847         * breakpoint.h: Removed DEF_VEC_I(int).
8848         * dwarf2loc.c: Call DEF_VEC_I(int).
8849         * mi/mi-main.c: Likewise.
8850
8851 2012-03-12  Mark Kettenis  <kettenis@gnu.org>
8852
8853         * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8854
8855 2012-03-12  Chris January  <chris.january@allinea.com>
8856
8857         * aix-thread.c (_initialize_aix_thread): Add prototype.
8858         * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8859         * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8860
8861 2012-03-12  Joel Brobecker  <brobecker@adacore.com>
8862
8863         * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8864         include of "amd64-nat.h".
8865
8866 2012-03-12  Tom Tromey  <tromey@redhat.com>
8867
8868         * buildsym.c (record_pending_block): Now static.
8869         * buildsym.h: (record_pending_block): Remove.
8870
8871 2012-03-12  Andreas Tobler  <andreast@fgznet.ch>
8872
8873         * amd64bsd-nat.c: Include amd64bsd-nat.h.
8874
8875 2012-03-09  Tom Tromey  <tromey@redhat.com>
8876
8877         * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8878         producer_is_gxx_lt_4_6>: New fields.
8879         (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8880
8881 2012-03-09  Tom Tromey  <tromey@redhat.com>
8882
8883         * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8884
8885 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8886
8887         * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8888         prototype.
8889
8890 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8891
8892         * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8893
8894 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8895
8896         Fix -Wmissing-prototypes build.
8897         * arm-linux-nat.c (get_thread_id): Make it static.
8898         * xtensa-linux-nat.c (get_thread_id): Likewise.
8899
8900 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8901
8902         * server.c (process_point_options): If a conditional expression
8903         is found, only print a message if remote_debug is nonzero.
8904
8905 2012-03-08  Luis Machado  <lgustavo@codesourcery.com>
8906
8907         * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8908         of internal error for unknown/unsupported types.
8909
8910 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8911
8912         Fix CU relative vs. absolute DIE offsets.
8913         * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8914         offset to offset_in_cu.
8915         * dwarf2read.c (process_enumeration_scope): Add CU offset to
8916         TYPE_OFFSET.
8917         (dwarf2_fetch_die_location_block): Rename parameter offset to
8918         offset_in_cu.  New variable offset, add CU offset to OFFSET_IN_CU.
8919
8920 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8921
8922         * libunwind-frame.c: Rename to ...
8923         * ia64-libunwind-tdep.c: ... here.
8924         * libunwind-frame.h: Rename to ...
8925         * ia64-libunwind-tdep.h: ... here.
8926         * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8927         ia64-libunwind-tdep.h.
8928         (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8929         * README (--with-libunwind): Rename to ...
8930         (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8931         * config.in: Regenerate.
8932         * configure: Regenerate.
8933         * configure.ac: New option --with-libunwind-ia64, make the
8934         AS_HELP_STRING ia64 specific.  Deprecate option --with-libunwind.
8935         Remove AC_DEFINE for HAVE_LIBUNWIND.
8936         * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8937         Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8938         Rename libunwind-frame in the general comment.
8939         * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8940         Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8941         Move forward declarations inside #ifndef.  Rename libunwind-frame in
8942         the general comment.
8943         * ia64-tdep.c: Rename libunwind-frame.h #include to
8944         ia64-libunwind-tdep.h.
8945         (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8946         (ia64_libunwind_descr): Rename libunwind-frame to
8947         ia64-libunwind-tdep in these function comments.
8948         * ia64-tdep.h: Rename libunwind-frame.h #include to
8949         ia64-libunwind-tdep.h.
8950         * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8951         ia64-libunwind-tdep in that data comment.
8952
8953 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8954
8955         * libunwind-frame.h (struct frame_unwind): New declaration.
8956
8957 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8958
8959         * breakpoint.c (_initialize_breakpoint): Fix error in help of
8960         "set breakpoint condition-evaluation" command.
8961
8962 2012-03-08  Tristan Gingold  <gingold@adacore.com>
8963
8964         * sparc-stub.c: Move to stubs/
8965         * sh-stub.c: Likewise.
8966         * m68k-stub.c: Likewise.
8967         * m32r-stub.c: Likewise.
8968         * i386-stub.c: Likewise.
8969
8970 2012-03-08  Andreas Schwab  <schwab@linux-m68k.org>
8971
8972         * m68klinux-tdep.c (m68k_linux_init_abi): Register
8973         linux_get_siginfo_type.
8974
8975         * m68klinux-nat.c: Include "gdb_proc_service.h".
8976         (PTRACE_GET_THREAD_AREA): Define.
8977         (ps_get_thread_area): New function.
8978
8979 2012-03-08  Yao Qi  <yao@codesourcery.com>
8980
8981         * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8982         `xsnprintf'.
8983         (remote_query_attached): Likewise.
8984         (remote_static_tracepoint_marker_at): Likewise.
8985         (remote_set_permissions): Likewise.
8986         (remote_detach_1, extended_remote_attach_1): Likewise.
8987         (send_g_packet, remote_vkill): Likewise.
8988         (extended_remote_disable_randomization): Likewise.
8989         (remote_add_target_side_condition): Likewise.
8990         (remote_insert_breakpoint): Likewise.
8991         (remote_remove_breakpoint): Likewise.
8992         (remote_insert_watchpoint): Likewise.
8993         (remote_remove_watchpoint): Likewise.
8994         (remote_insert_hw_breakpoint): Likewise.
8995         (remote_insert_hw_breakpoint): Likewise.
8996         (remote_remove_hw_breakpoint): Likewise.
8997         (remote_download_command_source): Likewise.
8998         (remote_download_tracepoint): Likewise.
8999         (remote_download_trace_state_variable): Likewise.
9000         (remote_disable_tracepoint): Likewise.
9001         (remote_trace_set_readonly_regions): Likewise.
9002         (remote_get_tracepoint_status): Likewise.
9003         (remote_trace_find): Likewise.
9004         (remote_get_trace_state_variable_value): Likewise.
9005         (remote_set_disconnected_tracing): Likewise.
9006         (remote_set_circular_trace_buffer): Likewise.
9007         (remote_get_min_fast_tracepoint_insn_len): Likewise.
9008         (remote_use_agent): Likewise.
9009         (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9010         Update callers.
9011
9012 2012-03-07  Pedro Alves  <palves@redhat.com>
9013
9014         * NEWS: Mention QProgramSignals.
9015         * inferior.h (update_signals_program_target): Declare.
9016         * infrun.c: (update_signals_program_target): New.
9017         (handle_command): Update the target of the new program signals
9018         array changes.
9019         * remote.c (PACKET_QProgramSignals): New enum.
9020         (last_program_signals_packet): New global.
9021         (remote_program_signals): New.
9022         (remote_start_remote): Update the target with the program signals
9023         list.
9024         (remote_protocol_features): Add entry for QPassSignals.
9025         (remote_open_1): Free anc clear last_program_signals_packet.
9026         (init_remote_ops): Install remote_program_signals.
9027         * target.c (update_current_target): Adjust.
9028         (target_program_signals): New.
9029         * target.h (struct target_ops) <to_program_signals>: New field.
9030         (target_program_signals): Declare.
9031
9032 2012-03-07  Pedro Alves  <palves@redhat.com>
9033
9034         * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9035         extensions.
9036
9037 2012-03-07  Andreas Schwab  <schwab@linux-m68k.org>
9038
9039         * m68klinux-nat.c (getregs_supplies): Make static.
9040         (getfpregs_supplies): Likewise.
9041         (have_ptrace_getregs): Likewise.
9042
9043 2012-03-06  Joel Brobecker  <brobecker@adacore.com>
9044
9045         * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9046         in call to get_die_type_at_offset.
9047
9048 2012-03-06  Stan Shebs  <stan@codesourcery.com>
9049
9050         * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9051         * mi/mi-cmd-disas.c: Ditto.
9052         * mi/mi-cmd-env.c: Ditto.
9053         * mi/mi-cmd-file.c: Ditto.
9054         * mi/mi-cmd-stack.c: Ditto.
9055         * mi/mi-cmd-target.c: Ditto.
9056         * mi/mi-cmd-var.c: Ditto.
9057         * mi/mi-cmds.c: Ditto.
9058         * mi/mi-cmds.h: Ditto.
9059         * mi/mi-console.c: Ditto.
9060         * mi/mi-getopt.c: Ditto.
9061         * mi/mi-getopt.h: Ditto.
9062         * mi/mi-interp.c: Ditto.
9063         * mi/mi-main.c: Ditto.
9064         * mi/mi-out.c: Ditto.
9065         * mi/mi-parse.c: Ditto.
9066         * mi/mi-parse.h: Ditto.
9067         * mi/mi-symbol-cmds.c: Ditto.
9068
9069         * mi/mi-getopt.h: Move mi_opt struct up.
9070         * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9071         return.
9072         * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9073
9074 2012-03-06  Tom Tromey  <tromey@redhat.com>
9075
9076         * proc-service.c (ps_pglobal_lookup): Set the current program
9077         space.
9078
9079 2012-03-06  Pedro Alves  <palves@redhat.com>
9080
9081         * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9082
9083 2012-03-05  Joel Brobecker  <brobecker@adacore.com>
9084
9085         * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9086
9087 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
9088
9089         Code cleanup.
9090         * common/linux-osdata.c (linux_common_core_of_thread): New function
9091         comment.
9092         * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9093         call by linux_common_core_of_thread.
9094         (linux_nat_core_of_thread_1): Remove.
9095         * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9096         * linux-thread-db.c: Include linux-osdata.h.
9097         (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9098         linux_common_core_of_thread.
9099
9100 2012-03-05  Tom Tromey  <tromey@redhat.com>
9101
9102         * value.c (value_primitive_field): Don't fetch contents for
9103         non-virtual bases.
9104
9105 2012-03-05  Tom Tromey  <tromey@redhat.com>
9106
9107         * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9108
9109 2012-03-05  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9110
9111         * s390-nat.c: Include "gregset.h".
9112
9113 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
9114
9115         * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9116         [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9117         (libunwind_load): New variable so_error, use it for dlerror.  Try to
9118         load also LIBUNWIND_SO_7.
9119
9120 2012-03-05  Pedro Alves  <palves@redhat.com>
9121
9122         * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9123         is not NULL, and remove resulting dead code.
9124
9125 2012-03-05  Thomas Schwinge  <thomas@codesourcery.com>
9126
9127         * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9128         prologue to sh_analyze_prologue.
9129         (sh_analyze_prologue): Make better use of such an upper limit, and
9130         generally be more cautious about accessing memory.
9131
9132 2012-03-05  Tom Tromey  <tromey@redhat.com>
9133
9134         * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9135         _initialize_ia64_hpux_tdep.
9136
9137 2012-03-05  Pedro Alves  <palves@redhat.com>
9138
9139         PR gdb/13766
9140
9141         * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9142         the register state is clear, supply explicit zero, instead of
9143         marking the register unavailable.
9144
9145 2012-03-05  Tristan Gingold  <gingold@adacore.com>
9146
9147         * NEWS: Mention OpenVMS ia64 new target.
9148
9149 2012-03-05  Tristan Gingold  <gingold@adacore.com>
9150
9151         * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9152         (ia64_unw_accessors, ia64_unw_rse_accessors)
9153         (ia64_libunwind_descr): Declare.
9154         * ia64-vms-tdep.c: New file.
9155         * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9156         (ia64_libunwind_descr): Make them public.
9157         * configure.tgt: Add ia64-*-*vms*.
9158         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9159         (ALLDEPFILES): Add ia64-vms-tdep.c
9160
9161 2012-03-05  Tristan Gingold  <gingold@adacore.com>
9162
9163         * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9164         * remote.c (PACKET_qXfer_uib): New enum value.
9165         (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9166         (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9167         (_initialize_remote): Call add_packet_config_cmd for
9168         xfer:uib packet.
9169
9170 2012-03-05  Tristan Gingold  <gingold@adacore.com>
9171
9172         * osabi.c (gdb_osabi_names): Add OpenVMS.
9173         (generic_elf_osabi_sniffer): Likewise.
9174         * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
9175
9176 2012-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
9177
9178         Removed unused code.
9179         * libunwind-frame.c (libunwind_frame_unwind)
9180         (libunwind_frame_base_address): Remove.
9181         * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9182
9183 2012-03-04  Yao Qi  <yao@codesourcery.com>
9184
9185         * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9186         remove trailing new line.
9187         (agent_run_command, agent_run_command): Add _ markup.
9188         (agent_capability_check): Likewise.
9189
9190 2012-03-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
9191
9192         * breakpoint.c (set_condition_evaluation_mode): Set
9193         CONDITION_EVALUATION_MODE unconditionally.
9194
9195 2012-03-03  Yao Qi  <yao@codesourcery.com>
9196
9197         * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9198         * common/agent.h: Update declaration.
9199         * inf-child.c (inf_child_use_agent): New.
9200         (inf_child_can_use_agent): New.
9201         (inf_child_target): Initialize fields `to_use_agent'
9202         and `to_can_use_agent'.
9203         * agent.c (agent_new_objfile): New.
9204         (_initialize_agent): Add agent_new_objfile to new_objfile
9205         observer.
9206
9207         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9208         New.
9209         (linux_target_install_ops): Initialize field
9210         `to_static_tracepoint_markers_by_strid'.
9211         * remote.c (free_current_marker): Move it to ...
9212         * tracepoint.c (free_current_marker): ... here.  New.
9213         (cleanup_target_stop): New.
9214         * tracepoint.h: Declare free_current_marker.
9215         * NEWS: Add one entry about `info static-tracepoint-marker'.
9216
9217 2012-03-03  Yao Qi  <yao@codesourcery.com>
9218
9219         * common/agent.c (agent_loaded_p): New.
9220         (agent_look_up_symbols): New global.
9221         * common/agent.h: Declare agent_loaded_p.
9222
9223 2012-03-03  Yao Qi  <yao@codesourcery.com>
9224
9225         * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9226         (agent_capability_check, agent_capability_invalidate): New.
9227         (symbol_list): New array element.
9228         * common/agent.h (enum agent_capa): New.
9229         * target.c (target_pre_inferior): Call agent_capability_invalidate.
9230
9231 2012-03-03  Yao Qi  <yao@codesourcery.com>
9232
9233         * target.h (struct target_ops) <to_use_agent>: New field.
9234         (struct target_ops) <to_can_use_agent>: New field.
9235         (target_use_agent, target_can_use_agent): New macro.
9236         * target.c (update_current_target): Update.
9237         * remote.c: New enum `PACKET_QAgent'.
9238         (remote_protocol_features): Add a new element.
9239         (remote_use_agent, remote_can_use_agent): New.
9240         (init_remote_ops): Initialize field `can_use_agent' with
9241         remote_can_use_agent.  Intiailize field `use_agent' with
9242         remote_use_agent.
9243         * common/agent.c (use_agent): New global.
9244         * common/agent.h: Declare it.
9245         * tracepoint.c (info_static_tracepoint_markers_command): Add
9246         comment.
9247         * Makefile.in (SFILES): Add common/agent.c and agent.c.
9248         (COMMON_OBS): Add common/agent.o and agent.o
9249         (common-agent.o): New rule.
9250         * agent.c: New.
9251
9252 2012-03-03  Yao Qi  <yao@codesourcery.com>
9253
9254         * common/agent.c: New.
9255         * common/agent.h: New.
9256         * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9257         AC_CHECK_HEADERS.
9258         * configure, configh.in: Regenerated.
9259
9260 2012-03-02  Kevin Buettner  <kevinb@redhat.com>
9261
9262         * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9263         unless it exists for this architecture.
9264
9265 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
9266
9267         * language.h (struct language_defn): New "method" la_read_var_value.
9268         * findvar.c: #include "language.h".
9269         (default_read_var_value): Renames read_var_value.  Rewrite
9270         function description.
9271         (read_var_value): New function.
9272         * value.h (default_read_var_value): Add prototype.
9273         * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
9274         New functions.
9275         (ada_language_defn): Add entry for la_read_var_value.
9276         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
9277         * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
9278         language_defn structures to add entry for new la_read_var_value
9279         field.
9280
9281 2012-03-02  Tom Tromey  <tromey@redhat.com>
9282             Pedro Alves  <palves@redhat.com>
9283
9284         PR breakpoints/13776:
9285         * breakpoint.c (breakpoint_init_inferior): Delete step-resume
9286         breakpoints.
9287         (delete_longjmp_breakpoint_at_next_stop): New.
9288         * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
9289         * target.c (generic_mourn_inferior): Call mark_breakpoints_out
9290         before deleting the inferior.  Add comments.
9291         * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
9292         breakpoints immediately, but only on next stop.  Move that code
9293         next to where we mark other breakpoints for deletion.
9294
9295 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
9296
9297         * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
9298         marker.
9299         * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
9300         violation.
9301
9302 2012-03-02  Pedro Alves  <palves@redhat.com>
9303
9304         * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
9305
9306 2012-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
9307
9308         Fix -Wmissing-prototypes build.
9309         * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
9310         * remote-sim.c (gdbsim_has_all_memory): Likewise.
9311         (gdbsim_has_memory): Likewise.
9312
9313 2012-03-02  Yao Qi  <yao@codesourcery.com>
9314
9315         Fix -Wmissing-prototypes build.
9316         * charset.c (phony_iconv_open): Make static.
9317         (phony_iconv_close, phony_iconv): Likewise.
9318         * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
9319         * i386-windows-nat.c (_initialize_i386_windows_nat): New
9320         prototype.
9321         * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
9322         * ser-mingw.c (create_select_thread): Make static.
9323         * windows-termcap.c (tgetent): New prototype.
9324         (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
9325
9326 2012-03-02  Zhang Yuanhui  <asmwarrior@gmail.com>
9327
9328         Fix -Wmissing-prototypes build.
9329         * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
9330         (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9331         (_initialize_loadable): New prototypes.
9332
9333 2012-03-02  Doug Evans  <dje@google.com>
9334
9335         * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9336         abbrev table, read_comp_unit will do it.
9337
9338 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
9339
9340         Fix -Wmissing-prototypes build.
9341         * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9342         * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9343         * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9344         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9345         (_initialize_arm_symbian_tdep): New prototype.
9346         * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9347         * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9348         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9349         static.
9350         * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9351         * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9352         prototype.
9353         * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9354         (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9355         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9356         static.
9357         * moxie-tdep.c (moxie_process_record): Likewise.
9358         * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9359         (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9360         * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9361         (_initialize_rl78_tdep): New prototype.
9362         * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9363         (_initialize_rx_tdep): New prototype.
9364         * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9365         (_initialize_darwin_solib): New prototype.
9366         * solib-spu.c: Include solib-spu.h.
9367         (_initialize_spu_solib): New prototype.
9368         * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9369         * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9370         (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9371         (tic6x_software_single_step): Make it static.
9372         (_initialize_tic6x_tdep): New prototype.
9373
9374 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
9375
9376         Fix -Wmissing-prototypes build.
9377         * cris-tdep.c (cris_can_use_hardware_watchpoint)
9378         (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9379
9380 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
9381
9382         Fix -Wmissing-prototypes build.
9383         * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9384         (frv_have_stopped_data_address): Remove.
9385
9386 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
9387
9388         Fix -Wmissing-prototypes build.
9389         * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9390         * sh-tdep.c: Include sh64-tdep.h.
9391         * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9392         * sh64-tdep.c: Include sh64-tdep.h.
9393         * sh64-tdep.h: New file.
9394
9395 2012-03-01  Maciej W. Rozycki <macro@codesourcery.com>
9396
9397         * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9398
9399 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
9400
9401         * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9402         sp_regnum once the gdbarch_init_osabi hook has been called.
9403
9404 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
9405
9406         * mips-tdep.c (mips32_bc1_pc): New function.
9407         (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9408         BPOSGE32 and BPOSGE64 instructions.
9409         (deal_with_atomic_sequence): Likewise.
9410         (mips32_instruction_has_delay_slot): Likewise.
9411
9412 2012-03-01  Maciej W. Rozycki  <macro@mips.com>
9413             Chris Dearman  <chris@mips.com>
9414             Maciej W. Rozycki  <macro@codesourcery.com>
9415             Joseph Myers  <joseph@codesourcery.com>
9416
9417         * features/mips-dsp.xml: New file.
9418         * features/mips64-dsp.xml: New file.
9419         * features/mips-dsp-linux.xml: New file.
9420         * features/mips64-dsp-linux.xml: New file.
9421         * features/Makefile (WHICH): Add mips-dsp-linux and
9422         mips64-dsp-linux.
9423         (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9424         * features/mips-dsp-linux.c: New file.
9425         * features/mips64-dsp-linux.c: New file.
9426         * regformats/mips-dsp-linux.dat: New file.
9427         * regformats/mips64-dsp-linux.dat: New file.
9428         * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9429         registers.
9430         (mips64_linux_register_addr): Likewise.
9431         (mips64_linux_regsets_fetch_registers): Likewise.
9432         (mips64_linux_regsets_store_registers): Likewise.
9433         (mips64_linux_fetch_registers): Update call to
9434         mips64_linux_regsets_fetch_registers.
9435         (mips64_linux_store_registers): Update call to
9436         mips64_linux_regsets_store_registers.
9437         (mips_linux_read_description): Probe for DSP registers.
9438         (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9439         and initialize_tdesc_mips64_dsp_linux.
9440         * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9441         Remove padding of no longer used embedded register slots.
9442         * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9443         (MIPS_RESTART_REGNUM): Redefine enum value.
9444         * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9445         strings.
9446         (mips_tx39_reg_names): Likewise.
9447         (mips_linux_reg_names): New array of register names for Linux
9448         targets.
9449         (mips_register_name): Check for a null pointer in
9450         mips_processor_reg_names and return an empty string.
9451         (mips_register_type): Exclude embedded registers for the IRIX
9452         and Linux ABIs.
9453         (mips_pseudo_register_type): Likewise.  Use dynamic numbers to
9454         refer to FP registers, LO, HI, BadVAddr, Cause and PC.  Handle
9455         DSP registers.
9456         (mips_stab_reg_to_regnum): Handle DSP accumulators.
9457         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9458         (mips_gdbarch_init): Likewise.  Initialize internal register
9459         indices for the Linux ABI.  Use dynamic numbers to refer to
9460         registers, as applicable, while parsing the target description.
9461         * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9462
9463 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9464
9465         * frame.h (read_frame_register_unsigned): Fix typo in function
9466         description.
9467
9468 2012-03-01  Pedro Alves  <palves@redhat.com>
9469
9470         * jit-reader.in [!__cplusplus]
9471         (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9472
9473 2012-03-01  Pedro Alves  <palves@redhat.com>
9474
9475         * configure.ac (build_warnings): Add -Wmissing-prototypes.
9476         * configure: Regenerate.
9477
9478 2012-03-01  Pedro Alves  <palves@redhat.com>
9479
9480         * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9481         * breakpoint.c (create_exception_master_breakpoint, trace_command)
9482         (ftrace_command, strace_command): Make static.
9483         * d-lang.c (_initialize_d_language): Declare.
9484         * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9485         * dwarf2loc.c (_initialize_dwarf2loc):
9486         * dwarf2read.c (process_psymtab_comp_unit): Make static.
9487         * exec.c (exec_get_section_table): Make static.
9488         * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9489         * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9490         * inferior.c (remove_inferior_command, add_inferior_command)
9491         (clone_inferior_command): Make static.
9492         * linux-nat.c (linux_nat_thread_address_space)
9493         (linux_nat_core_of_thread): Make static.
9494         * linux-tdep.c (_initialize_linux_tdep): Declare.
9495         * objc-lang.c (_initialize_objc_lang): Declare.
9496         * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9497         Make static.
9498         (_initialize_opencl_language): Declare.
9499         * record.c (_initialize_record): Declare.
9500         * remote.c (demand_private_info, remote_get_tib_address)
9501         (remote_supports_cond_tracepoints)
9502         (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9503         Make static.
9504         * skip.c (_initialize_step_skip): Declare.
9505         * symtab.c (skip_prologue_using_lineinfo): Make static.
9506         * tracepoint.c (delete_trace_state_variable)
9507         (trace_variable_command, delete_trace_variable_command)
9508         (get_uploaded_tsv, find_matching_tracepoint_location)
9509         (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9510         Make static.
9511         * value.c (pack_unsigned_long): Make static.
9512         * varobj.c (varobj_ensure_python_env): Make static.
9513         * windows-tdep.c (_initialize_windows_tdep): Declare.
9514         * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9515
9516 2012-03-01  Pedro Alves  <palves@redhat.com>
9517
9518         * linux-tdep.c (linux_has_shared_address_space): Make static.  Add
9519         gdbarch parameter.
9520         (linux_init_abi): Install it as has_shared_address_space gdbarch
9521         callback.
9522
9523 2012-03-01  Pedro Alves  <palves@redhat.com>
9524
9525         * observer.c (observer_test_first_notification_function)
9526         (observer_test_second_notification_function)
9527         (observer_test_third_notification_function): Add declarations.
9528
9529 2012-03-01  Pedro Alves  <palves@redhat.com>
9530
9531         * common/signals.c (default_target_signal_to_host)
9532         (default_target_signal_from_host): Move ...
9533         * arch-utils.c: ... here.
9534         * arch-utils.h (default_target_signal_to_host)
9535         (default_target_signal_from_host): Declare.
9536
9537         * common/signals.c (target_signal_from_command): Move ...
9538         * infrun.c: ... here.
9539         * inferior.h (target_signal_from_command): Declare.
9540         * target.h (target_signal_from_command)
9541         (default_target_signal_from_host, default_target_signal_to_host):
9542         Delete declarations.
9543
9544         * common/signals.c (_initialize_signals): Delete.
9545
9546 2012-03-01  Pedro Alves  <palves@redhat.com>
9547
9548         * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9549         both __cplusplus and !__cplusplus.
9550
9551 2012-03-01  Pedro Alves  <palves@redhat.com>
9552
9553         * psymtab.c (find_and_open_source): Delete declaration.
9554         * source.c (find_and_open_source): Move comment ...
9555         * source.h (find_and_open_source): ... to this new declaration.
9556
9557 2012-03-01  Pedro Alves  <palves@redhat.com>
9558
9559         * inline-frame.c: Include inline-frame.h.
9560
9561 2012-03-01  Pedro Alves  <palves@redhat.com>
9562
9563         * tui/tui-data.c (set_gen_win_origin): Delete.
9564         * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9565         * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9566
9567 2012-03-01  Pedro Alves  <palves@redhat.com>
9568
9569         * remote.c (encode_actions): Delete declaration.
9570         * tracepoint.c (encode_actions): Make extern.
9571         * tracepoint.h (encode_actions): Declare.
9572
9573 2012-03-01  Pedro Alves  <palves@redhat.com>
9574
9575         * python/py-breakpoint.c: Include python.h.
9576         * python/py-continueevent.c (create_continue_event_object): Make
9577         static.
9578         * python/py-lazy-string.c (stpy_get_type): Make static.
9579         * python/py-newobjfileevent.c (create_new_objfile_event_object):
9580         Make static.
9581         * python/py-utils.c (unicode_to_target_python_string): Make
9582         static.
9583         * python/py-value.c: Include python.h.
9584
9585 2012-03-01  Pedro Alves  <palves@redhat.com>
9586
9587         * inferior.c (delete_threads_of_inferior): Delete.
9588
9589 2012-03-01  Pedro Alves  <palves@redhat.com>
9590
9591         Import fallback definitions from glibc.
9592
9593         * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9594         ps_prochandle): Forward declare.
9595         (ps_err_e): Use glibc's comments.
9596         [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9597         (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9598         (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9599         (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9600         (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9601         (struct ps_prochandle): Adjust comment.
9602
9603 2012-03-01  Pedro Alves  <palves@redhat.com>
9604
9605         * ada-lang.c (ada_modulus_from_name): Delete.
9606         * ada-lex.l (lexer_init): Make static.
9607
9608 2012-03-01  Pedro Alves  <palves@redhat.com>
9609
9610         PR gdb/13767
9611
9612         * frame.c (read_frame_register_unsigned): New.
9613         * frame.h (read_frame_register_unsigned): Declare.
9614         * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9615         Handle it.
9616         (print_i387_control_word): New parameter `control_p'.  Handle it.
9617         (i387_print_float_info): Handle unavailable float registers.
9618
9619 2012-03-01  Keith Seitz  <keiths@redhat.com>
9620
9621         * linespec.c (decode_line_2): Sort the list of methods
9622         alphabetically before presenting the user with a selection
9623         menu.
9624
9625 2012-03-01  Doug Evans  <dje@google.com>
9626
9627         * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9628         has_namespace_info.
9629         (dwarf2_read_abbrevs): Remove corresponding initialization.
9630
9631 2012-03-01  Scott J. Goldman <scottjg@vmware.com>
9632
9633         * NEWS: Mention new python command class gdb.COMMAND_USER.
9634         * cli/cli-cmds.c (show_user): Print error when used on a python
9635         command.
9636         (init_cli_cmds): Update documentation strings for "show user" and
9637         "set/show max-user-call-depth" to clarify that it does not apply to
9638         python commands.
9639         * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9640         error check.
9641         (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9642         gdb python api.
9643         * top.c (execute_command): Only execute a user-defined command as a
9644         legacy macro if c->user_commands is set.
9645
9646 2012-03-01  Tom Tromey  <tromey@redhat.com>
9647
9648         * valprint.h (struct generic_val_print_decorations): New.
9649         (generic_val_print): Declare.
9650         * valprint.c (generic_val_print): New function.
9651         * p-valprint.c (p_decorations): New global.
9652         (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9653         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9654         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9655         TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9656         * m2-valprint.c (m2_decorations): New global.
9657         (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9658         TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9659         TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9660         TYPE_CODE_ERROR>: Call generic_val_print.
9661         * f-valprint.c (f_decorations): New global.
9662         (f_val_print): Use print_function_pointer_address.
9663         <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9664         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9665         TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9666         generic_val_print.
9667         * c-valprint.c (c_decorations): New global.
9668         (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9669         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9670         TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9671         TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9672         TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9673         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9674         case.
9675
9676 2012-03-01  Tom Tromey  <tromey@redhat.com>
9677
9678         * valprint.c (val_print): Update.
9679         * p-valprint (pascal_val_print): Return void.
9680         * p-lang.h (pascal_val_print): Return void.
9681         * m2-valprint.c (m2_val_print): Return void.
9682         * m2-lang.h (m2_val_print): Return void.
9683         * language.h (struct language_defn) <la_val_print>: Return void.
9684         * language.c (unk_lang_val_print): Return void.
9685         * jv-valprint.c (java_val_print): Return void.
9686         * jv-lang.h (java_val_print): Return void.
9687         * f-valprint.c (f_val_print): Return void.
9688         * f-lang.h (f_val_print): Return void.
9689         * d-valprint.c (d_val_print): Return void.
9690         (dynamic_array_type): Update.
9691         * d-lang.h (d_val_print): Return void.
9692         * c-valprint.c (c_val_print): Return void.
9693         * c-lang.h (c_val_print): Return void.
9694         * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9695         void.
9696         * ada-lang.h (ada_val_print): Return void.
9697
9698 2012-03-01  Tom Tromey  <tromey@redhat.com>
9699
9700         * value.h (val_print): Return void.
9701         * valprint.c (val_print): Return void.
9702
9703 2012-03-01  Tom Tromey  <tromey@redhat.com>
9704
9705         * value.h (common_val_print): Return void.
9706         * valprint.c (common_val_print): Return void.
9707
9708 2012-03-01  Tom Tromey  <tromey@redhat.com>
9709
9710         * value.h (value_print): Return void.
9711         * valprint.c (value_print): Return void.
9712         * p-valprint.c (pascal_value_print): Return void.
9713         * p-lang.h (pascal_value_print): Return void.
9714         * language.h (struct language_defn) <la_value_print>: Return
9715         void.
9716         * language.c (unk_lang_value_print): Return void.
9717         * jv-valprint.c (java_value_print): Return void.
9718         * jv-lang.h (java_value_print): Return void.
9719         * f-valprint.c (c_value_print): Don't declare.
9720         Include c-lang.h.
9721         * c-valprint.c (c_value_print): Return void.
9722         * c-lang.h (c_value_print): Return void.
9723         * ada-valprint.c (ada_value_print): Return void.
9724         * ada-lang.h (ada_value_print): Return void.
9725
9726 2012-03-01  Tom Tromey  <tromey@redhat.com>
9727
9728         * value.c (value_primitive_field): Handle virtual base classes.
9729
9730 2012-03-01  Tom Tromey  <tromey@redhat.com>
9731
9732         * gdbtypes.h (struct vbase): Remove.
9733
9734 2012-03-01  Tom Tromey  <tromey@redhat.com>
9735
9736         * c-valprint.c (print_function_pointer_address): Move...
9737         * valprint.c: ... here.  Make non-static.
9738         * m2-valprint.c (print_function_pointer_address): Remove.
9739         * valprint.h (print_function_pointer_address): Declare.
9740
9741 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9742
9743         * NEWS: Document the fact that one can provide a condition when
9744         creating an Ada exception catchpoint.
9745
9746 2012-03-01  Tom Tromey  <tromey@redhat.com>
9747
9748         * valprint.c (val_print_type_code_flags): Fix placement of
9749         trailing brace.
9750
9751 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9752
9753         * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9754         (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9755         environment variable before calling update-copyright.
9756
9757 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9758
9759         * gnulib/extra/update-copyright: Update to the latest from
9760         gnulib's git repository.
9761         * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9762         variable to 2 instead of 1.
9763
9764 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9765
9766         * varobj.c (c_value_of_variable): Remove dead code.
9767
9768 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9769
9770         * ada-lex.p (processId): Do not modify already encoded IDs.
9771         Update function documentation.
9772
9773 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9774
9775         * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9776         "name" with "struct symbol *name_sym".
9777         * ada-exp.y (write_var_or_type): Update call to
9778         ada_find_renaming_symbol.
9779         "name" with "struct symbol *name_sym". Adjust Implementation
9780         accordingly.  Adjust the function documentation.
9781
9782 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9783
9784         * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9785         * ada-lang.c (ada_find_any_type): Add advance declaration.
9786         Make static.  Replace ada_find_any_symbol by
9787         ada_find_any_type_symbol.
9788         (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9789         Improve function description.  Make static.
9790         (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9791         Replace ada_find_any_symbol by ada_find_any_type_symbol.
9792
9793 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9794
9795         * ada-lang.c (struct tag_args): Delete.
9796         (ada_get_tsd_type): Function body moved up in source file.
9797         (ada_tag_name_1, ada_tag_name_2): Delete.
9798         (ada_get_tsd_from_tag): New function.
9799         (ada_tag_name_from_tsd): New function.
9800         (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9801         to determine the tag name.
9802
9803 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9804
9805         * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9806         declaration.
9807         * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9808         function.
9809
9810 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9811
9812         * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9813
9814 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9815
9816         * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9817         full searches.
9818
9819 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9820
9821         * ada-lang.c (constrained_packed_array_type): If there is a
9822         parallel XA type, use it to determine the array index type.
9823
9824 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9825
9826         * ada-valprint.c (ada_val_print_1): If our value is a reference
9827         to an array descriptor, dereference it before converting it
9828         to a simple array.
9829
9830 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9831
9832         * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9833         creating fixed value.
9834         (ada_value_ind, ada_coerce_ref, assign_component)
9835         (ada_evaluate_subexp): Remove call to unwrap_value before
9836         call to ada_to_fixed_value.
9837
9838 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9839
9840         * ada-lang.c (to_fixed_array_type): Set result's type name.
9841
9842 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9843
9844         * ada-lang.c (catch_ada_exception_command_split): Add new
9845         argument cond_string.  Add support for condition at end of
9846         "catch exception" commands.
9847         (ada_decode_exception_location): Add new argument cond_string.
9848         Update call to catch_ada_exception_command_split.
9849         (create_ada_exception_catchpoint): Add new argument cond_string.
9850         Set the breakpoint condition if needed.
9851         (catch_ada_exception_command): Update call to
9852         ada_decode_exception_location.
9853         (ada_decode_assert_location): Add function documentation.
9854         Add support for condition at end of "catch assert" command.
9855         (catch_assert_command): Update calls to ada_decode_assert_location
9856         and create_ada_exception_catchpoint.
9857
9858 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9859
9860         Fix disp-step-syscall.exp: fork: single step over fork.
9861         * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9862         (i386_linux_get_syscall_number_from_regcache): ... here, new function
9863         comment, change parameters gdbarch and ptid to regcache.  Remove
9864         parameter regcache, initialize gdbarch from regcache here.
9865         (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9866         New functions.
9867         (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9868         instead.
9869         * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9870         'syscall'.  Make the 'int' check more strict.
9871
9872 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9873
9874         Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9875         * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9876         (i386_linux_intx80_sysenter_syscall_record): ... here.
9877         (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9878         Use the renamed function name.
9879
9880 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9881
9882         * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9883         * breakpoint.c (until_break_command): Likewise.
9884         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9885         * infcall.c (call_function_by_hand): Likewise.
9886         * infcmd.c (finish_forward): Likewise.
9887         * infrun.c (insert_exception_resume_breakpoint): Likewise.
9888
9889 2012-02-28  Tristan Gingold  <gingold@adacore.com>
9890
9891         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9892         avoid variable assignments inside condition.
9893
9894 2012-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9895
9896         Fix static analysis issue found by cppcheck.
9897         * microblaze-tdep.c (microblaze_extract_return_value): Fix
9898         uninitialized BUF for size 2.
9899
9900 2012-02-27  Chris Dearman  <chris@mips.com>
9901             Nathan Froyd  <froydnj@codesourcery.com>
9902             Maciej W. Rozycki  <macro@codesourcery.com>
9903
9904         * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9905         (mips16_instruction_has_delay_slot): Likewise.
9906         (mips_segment_boundary): Likewise.
9907         (mips_adjust_breakpoint_address): Likewise.
9908         (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9909
9910 2012-02-27  Maciej W. Rozycki  <macro@mips.com>
9911             Maciej W. Rozycki  <macro@codesourcery.com>
9912
9913         * infrun.c (handle_inferior_event): Don't proceed through
9914         shared library trampolines if stepping at the machine
9915         instruction level.
9916
9917 2012-02-27  Maciej W. Rozycki  <macro@codesourcery.com>
9918
9919         * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9920         too.
9921
9922 2012-02-27  Thomas Schwinge  <thomas@codesourcery.com>
9923
9924         * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9925         (sh_stub_unwind_sniffer): New functions.
9926         (sh_stub_unwind): New variable.
9927         (sh_gdbarch_init): Wire everything.
9928
9929 2012-02-27  Pedro Alves  <palves@redhat.com>
9930
9931         * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9932         (linux_nat_post_attach_wait): Adjust to use
9933         linux_proc_pid_is_stopped.
9934         * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9935         * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9936         based on pid_is_stopped from both linux-nat.c and
9937         gdbserver/linux-low.c, and renamed.
9938
9939 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
9940
9941         * remote.c (remote_watchpoint_addr_within_range): New function.
9942         (init_remote_ops): Use it.
9943
9944 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
9945
9946         * target.h (target_watchpoint_addr_within_range): Document macro.
9947
9948 2012-02-24  Pedro Alves  <palves@redhat.com>
9949
9950         * stack.c (set_last_displayed_sal): Issue internal_error instead
9951         of warning, and issue it after clearing the last displayed sal.
9952
9953 2012-02-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
9954             Pedro Alves  <palves@redhat.com>
9955
9956         * breakpoint.c (until_break_command): Install breakpoints after
9957         all frame manipulations.
9958
9959 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9960
9961         * remote.c (remote_supports_cond_breakpoints): New forward
9962         declaration.
9963         (remote_add_target_side_condition): New function.
9964         (remote_insert_breakpoint): Add target-side breakpoint
9965         conditional if supported.
9966         (remote_insert_hw_breakpoint): Likewise.
9967         (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9968         hook.
9969
9970         * target.c (update_current_target): Inherit
9971         to_supports_evaluation_of_breakpoint_conditions.
9972         Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9973
9974         * target.h (struct target_ops)
9975         <to_supports_evaluation_of_breakpoint_conditions>: New field.
9976         (target_supports_evaluation_of_breakpoint_conditions): New #define.
9977
9978         * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9979         (condition_evaluation_both, condition_evaluation_auto,
9980         condition_evaluation_host, condition_evaluation_target,
9981         condition_evaluation_enums, condition_evaluation_mode_1,
9982         condition_evaluation_mode): New static globals.
9983         (translate_condition_evaluation_mode): New function.
9984         (breakpoint_condition_evaluation_mode): New function.
9985         (gdb_evaluates_breakpoint_condition_p): New function.
9986         (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9987         (mark_breakpoint_modified): New function.
9988         (mark_breakpoint_location_modified): New function.
9989         (set_condition_evaluation_mode): New function.
9990         (show_condition_evaluation_mode): New function.
9991         (bp_location_compare_addrs): New function.
9992         (get_first_location_gte_addr): New helper function.
9993         (set_breakpoint_condition): Free condition bytecode if locations
9994         has become unconditional.  Call mark_breakpoint_modified (...).
9995         (condition_command): Call update_global_location_list (1) for
9996         breakpoints.
9997         (breakpoint_xfer_memory): Use is_breakpoint (...).
9998         (is_breakpoint): New function.
9999         (parse_cond_to_aexpr): New function.
10000         (build_target_condition_list): New function.
10001         (insert_bp_location): Handle target-side conditional
10002         breakpoints and call build_target_condition_list (...).
10003         (update_inserted_breakpoint_locations): New function.
10004         (insert_breakpoint_locations): Handle target-side conditional
10005         breakpoints.
10006         (bpstat_check_breakpoint_conditions): Add comment.
10007         (bp_condition_evaluator): New function.
10008         (bp_location_condition_evaluator): New function.
10009         (print_breakpoint_location): Print information on where the condition
10010         will be evaluated.
10011         (print_one_breakpoint_location): Likewise.
10012         (init_bp_location): Call mark_breakpoint_location_modified (...) for
10013         breakpoint location.
10014         (force_breakpoint_reinsertion): New functions.
10015         (update_global_location_list): Handle target-side breakpoint
10016         conditions.
10017         Reinsert locations that are already inserted if conditions have
10018         changed.
10019         (bp_location_dtor): Free agent expression bytecode.
10020         (disable_breakpoint): Call mark_breakpoint_modified (...).
10021         Call update_global_location_list (...) with parameter 1 for breakpoints.
10022         (disable_command): Call mark_breakpoint_location_modified (...).
10023         Call update_global_location_list (...) with parameter 1 for breakpoints.
10024         (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10025         (enable_command): mark_breakpoint_location_modified (...).
10026         (_initialize_breakpoint): Update documentation and add
10027         condition-evaluation breakpoint subcommand.
10028
10029         * breakpoint.h: Include ax.h.
10030         (condition_list): New data structure.
10031         (condition_status): New enum.
10032         (bp_target_info) <cond_list>: New field.
10033         (bp_location) <condition_changed, cond_bytecode>: New fields.
10034         (is_breakpoint): New prototype.
10035
10036 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
10037
10038         * remote.c (remote_state) <cond_breakpoints>: New field.
10039         (PACKET_ConditionalBreakpoints): New enum.
10040         (remote_cond_breakpoint_feature): New function.
10041         (remote_protocol_features): Add new ConditionalBreakpoints entry.
10042         (remote_supports_cond_breakpoints): New function.
10043         (_initialize_remote): Add new packet configuration for
10044         target-side conditional breakpoints.
10045
10046 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
10047
10048         * NEWS: Mention target-side conditional breakpoint support,
10049         new condition-evaluation breakpoint subcommand and remote
10050         packet extensions.
10051
10052 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
10053
10054         * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10055         number.
10056
10057 2012-02-24  Thomas Schwinge  <thomas@codesourcery.com>
10058
10059         * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10060         (after_prologue): Remove.
10061
10062 2012-02-23  Tom Tromey  <tromey@redhat.com>
10063
10064         * jv-valprint.c (java_val_print): Remove dead code.
10065
10066 2012-02-23  Tristan Gingold  <gingold@adacore.com>
10067
10068         * ada-tasks.c (struct ada_tasks_inferior_data): Add
10069         known_tasks_element and known_tasks_length fields.
10070         (read_known_tasks_array): Change argument type.  Use pointer type
10071         and number of elements from DATA.  Adjust.
10072         (read_known_tasks_list): Likewise.
10073         (get_known_tasks_addr): Remove.
10074         (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10075         (ada_tasks_inferior_data_sniffer): ... this.  Use symtab for element
10076         type and array length.  Merge former get_known_tasks_addr code.
10077
10078 2012-02-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
10079
10080         PR backtrace/13716
10081         * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10082         it after set_momentary_breakpoint.
10083
10084 2012-02-22  Sterling Augustine  <saugustine@google.com>
10085
10086         PR 13689:
10087         * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10088
10089 2012-02-22  Gary Benson  <gbenson@redhat.com>
10090
10091         * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10092         (find_slot_in_mapped_hash): Likewise.
10093
10094 2012-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
10095
10096         PR build/13638
10097         * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10098         (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10099         * configure: Regenerate.
10100
10101 2012-02-21  Tristan Gingold  <gingold@adacore.com>
10102             Pedro Alves  <palves@redhat.com>
10103
10104         * ia64-tdep.c: Do not include libunwind-ia64.h.
10105         * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10106         Include libunwind-ia64.h instead of libunwind.h.
10107         * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10108         for libunwind.h existence.
10109         * configure, config.in: Regenerate.
10110
10111 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
10112
10113         * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10114         instead of value_rtti_target_type.
10115         * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10116         instead of value_rtti_target_type.
10117         * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10118         value_rtti_target_type.
10119         * valops.c (value_ind): Extract function readjust_indirect_value_type.
10120         (value_rtti_target_type): Rename to ...
10121         (value_rtti_indirect_type): ... here and make it indirect.  Update
10122         function comment.
10123         * value.c (readjust_indirect_value_type): New function.
10124         (coerce_ref): Support for enclosing type setting for references
10125         with readjust_indirect_value_type.
10126         * value.h (readjust_value_type): New declaration.
10127         (value_rtti_target_type): Rename to ...
10128         (value_rtti_indirect_type): ... here.
10129
10130 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
10131
10132         * MAINTAINERS (Write After Approval): Add myself to the list.
10133
10134 2012-02-20  Doug Evans  <dje@google.com>
10135
10136         * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10137         Rename objfile_p_char parameter to objfilep.
10138         (build_objfile_section_table): Result is now void.  All callers
10139         updated.
10140         * objfiles.h (struct objfile): Tweak comments, whitespace.
10141         (build_objfile_section_table): Update.
10142
10143         * elfread.c (elf_symfile_segments): Fix warning text.
10144
10145 2012-02-20  Tom Tromey  <tromey@redhat.com>
10146
10147         PR gdb/13498:
10148         * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10149         particular set of file names once.
10150         (dw2_map_symbol_filenames): Likewise.
10151
10152 2012-02-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
10153
10154         Code cleanup.
10155         * main.c (write_files): Remove the declaration.
10156         (external_editor_command): Move the declaration ...
10157         [GDBTK] (external_editor_command): ... here.  Fix the comment.
10158
10159 2012-02-20  Tom Tromey  <tromey@redhat.com>
10160
10161         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10162         extraneous block.
10163
10164 2012-02-20  Tristan Gingold  <gingold@adacore.com>
10165
10166         * darwin-nat.h (enum darwin_msg_state): Add comments.
10167
10168 2012-02-20  Tristan Gingold  <gingold@adacore.com>
10169
10170         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10171         value.
10172
10173 2012-20-18  Joel Brobecker  <brobecker@adacore.com>
10174
10175         * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10176         between function description and implementation.
10177
10178 2012-02-17  Tom Tromey  <tromey@redhat.com>
10179
10180         PR python/12070:
10181         * python/py-event.c (event_object_getset): New global.
10182         (event_object_type): Reference it.
10183         * python/py-type.c (field_object_getset): New global.
10184         (field_object_type): Reference it.
10185         * python/python-internal.h (gdb_py_generic_dict): Declare.
10186         * python/py-utils.c (gdb_py_generic_dict): New function.
10187
10188 2012-02-17  Tristan Gingold  <gingold@adacore.com>
10189
10190         * solib-darwin.c (darwin_current_sos): Check magic and filetype
10191
10192 2012-02-17  Thomas Schwinge  <thomas@codesourcery.com>
10193
10194         * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10195         TYPE_CALLING_CONVENTION annotation.
10196
10197 2012-02-16  Kevin Buettner  <kevinb@redhat.com>
10198
10199         * MAINTAINERS: Add rx to target ISA section.
10200         * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10201         (ALLDEPFILES): Add rx-tdep.c.
10202
10203 2012-02-16  Tom Tromey  <tromey@redhat.com>
10204
10205         * symfile.c (symbol_file_add_main_1): Use inferior's
10206         symfile_flags.
10207         * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10208         * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10209         inferior.
10210         * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10211         inferior.
10212         (follow_exec): Use inferior's symfile_flags.
10213         * inferior.h (struct inferior) <symfile_flags>: New field.
10214
10215 2012-02-16  Mike Frysinger  <vapier@gentoo.org>
10216
10217         PR gdb/9734:
10218         * remote-sim.c (gdbsim_create_inferior): Call error() when
10219         sim_create_inferior() fails.
10220
10221 2012-02-16  Josh Matthews  <josh@joshmatthews.net>
10222
10223         * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10224
10225 2012-02-16  Tom Tromey  <tromey@redhat.com>
10226
10227         PR c++/13653:
10228         * thread.c (struct current_thread_cleanup) <was_removable>: New
10229         field.
10230         (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10231         (make_cleanup_restore_current_thread): Initialize new field.
10232
10233 2012-02-15  Kevin Buettner  <kevinb@redhat.com>
10234
10235         * MAINTAINERS: Add rl78 to target ISA section.
10236         * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10237         (ALLDEPFILES): Add rl78-tdep.c.
10238         * NEWS: Mention rl78 as a new target.
10239
10240 2012-02-15  Aleksandar Ristovski  <aristovski@qnx.com>
10241
10242         * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10243         data.
10244         * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10245
10246 2012-02-15  Tom Tromey  <tromey@redhat.com>
10247
10248         PR gdb/12659:
10249         * infcmd.c (registers_info): Print just the current register's
10250         name.
10251
10252 2012-02-15  Tom Tromey  <tromey@redhat.com>
10253
10254         * python/py-symbol.c (sympy_value): Use _().
10255
10256 2012-02-15  Pedro Alves  <palves@redhat.com>
10257
10258         * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10259         output to be like native targets'.
10260         (remote_pid_to_str): Special case the null ptid.
10261
10262 2012-02-14  Stan Shebs  <stan@codesourcery.com>
10263
10264         * NEWS: Mention enable count command.
10265         * breakpoint.h (struct breakpoint): New field enable_count.
10266         * breakpoint.c (enable_breakpoint_disp): Add count argument.
10267         (enable_breakpoint): Add arg to call.
10268         (struct disp_data): New struct.
10269         (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
10270         (do_map_enable_once_breakpoint): Create a struct and pass it.
10271         (do_map_enable_delete_breakpoint): Ditto.
10272         (do_map_enable_count_breakpoint): New function.
10273         (enable_count_command): New function.
10274         (bpstat_stop_status): Decrement enable_count.
10275         (print_one_breakpoint_location): Report enable count.
10276         (_initialize_breakpoint): Add enable count command.
10277
10278 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
10279
10280         * rl78-tdep.c (reggroups.h): Include.
10281         (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
10282         (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
10283         (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
10284         (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
10285         (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
10286         (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
10287         (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
10288         (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
10289         (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
10290         (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
10291         (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
10292         (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
10293         (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
10294         (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
10295         (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
10296         (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
10297         beginning of register list.
10298         (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
10299         (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
10300         (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
10301         (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
10302         (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
10303         (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
10304         (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
10305         (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
10306         (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
10307         (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
10308         (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
10309         the pseudo registers.  Rearrange other pseudo registers too so
10310         that the bank registers appear at the end.
10311         (rl78_register_type): Account for the fact that the byte sized
10312         bank registers are now pseudo-registers.
10313         (rl78_register_name): Rearrange the register name array.  Make
10314         initial set of raw banked registers inaccessible.
10315         (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
10316         (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
10317         case for copying bytes back and forth between raw and pseudo
10318         versions of the banked registers.  Update other cases to reflect
10319         the changed names.
10320         (rl78_return_value): Update to account for changed names of
10321         raw registers.
10322         (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
10323         rl78_register_sim_regno().
10324
10325 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
10326
10327         * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
10328         the name parameter being passed to find_pc_partial_function().
10329
10330 2012-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10331
10332         * MAINTAINERS: Step down from being ia64 target maintainer.
10333
10334 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
10335
10336         * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10337         compilation warning.
10338
10339 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
10340
10341         Fix crash on loaded shlibs without loaded exec_bfd.
10342         * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10343         (set_section_command): Replace exec_bfd by p->bfd.
10344
10345 2012-02-10  Tom Tromey  <tromey@redhat.com>
10346
10347         * linespec.c (decode_line_internal): Skip symtabs_from_filename
10348         when we have a C++ qualified name.
10349
10350 2012-02-10  Pedro Alves  <palves@redhat.com>
10351
10352         * inferior.c (inferior_pid_to_str): New.
10353         (print_inferior, inferior_command): Use it.
10354
10355 2012-02-10  Pedro Alves  <palves@redhat.com>
10356
10357         * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10358         the test CFLAGS.
10359         * configure: Regenerate.
10360
10361 2012-02-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10362
10363         * linespec.c (decode_line_internal): Fix comment correctness.
10364
10365 2012-02-09  Valery Khromov  <valery.khromov@gmail.com>
10366
10367         PR gdb/12953
10368         * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10369         * amd64bsd-nat.c: Add support for debug registers (adapted from
10370         i386bsd-nat.c).
10371         [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10372         (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10373         (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10374         (amd64bsd_dr_get_control): New functions.
10375         * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10376         * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10377         [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10378         watchpoints initialization.
10379         * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10380
10381 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
10382
10383         * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10384         flds_bnds.fields.
10385         (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10386
10387 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
10388
10389         * breakpoint.c (bp_location_compare): Fix comment.  Reindent the code.
10390
10391 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
10392
10393         * language.h (symbol_name_cmp_ftype): Renames
10394         symbol_name_match_p_ftype.
10395         (struct language_defn)[la_get_symbol_name_cmp]: Renames
10396         la_get_symbol_name_match_p.
10397         * ada-lang.c (ada_get_symbol_name_cmp): Renames
10398         ada_get_symbol_name_match_p.  Update comment.
10399         (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10400         * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10401         Renames symbol_name_match_p.  Update field type.
10402         (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10403         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10404         opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10405         "la_get_symbol_name_cmp" in comments.
10406         * language.c: Likewise.
10407
10408 2012-02-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10409
10410         * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10411         %eflags offset.
10412         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10413         (amd64_sol2_gregset32_reg_offs): Likewise.
10414
10415 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
10416
10417         * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10418         of the returned BFD is allocated by GDB.
10419
10420 2012-02-07  Tom Tromey  <tromey@redhat.com>
10421
10422         PR python/12027:
10423         * python/python-internal.h (frame_object_type): Declare.
10424         * python/py-symbol.c (sympy_needs_frame): New function.
10425         (sympy_value): New function.
10426         (symbol_object_getset): Add "needs_frame".
10427         (symbol_object_methods): Add "value".
10428         * python/py-frame.c (frame_object_type): No longer static.
10429
10430 2012-02-07  Tom Tromey  <tromey@redhat.com>
10431
10432         PR python/13599:
10433         * python/py-symbol.c (sympy_line): New function.
10434         (symbol_object_getset): Add "line".
10435
10436 2012-02-07  Tom Tromey  <tromey@redhat.com>
10437
10438         * charset.c (find_charset_names): Check 'in' against NULL.
10439
10440 2012-02-06  Doug Evans  <dje@google.com>
10441
10442         * gdbtypes.h (struct main_type): Change type of name,tag_name,
10443         and fields.name members from char * to const char *.  All uses updated.
10444         (struct cplus_struct_type): Change type of fn_fieldlists.name member
10445         from char * to const char *.  All uses updated.
10446         (type_name_no_tag): Update.
10447         (lookup_unsigned_typename, lookup_signed_typename): Update.
10448         * gdbtypes.c (type_name_no_tag): Change result type
10449         from char * to const char *.  All callers updated.
10450         (lookup_unsigned_typename, lookup_signed_typename): Change type of
10451         name parameter from char * to const char *.
10452         * symtab.h (struct cplus_specific): Change type of demangled_name
10453         member from char * to const char *.  All uses updated.
10454         (struct general_symbol_info): Change type of name and
10455         mangled_lang.demangled_name members from char * to const char *.
10456         All uses updated.
10457         (symbol_get_demangled_name, symbol_natural_name): Update.
10458         (symbol_demangled_name, symbol_search_name): Update.
10459         * symtab.c (symbol_get_demangled_name): Change result type
10460         from char * to const char *.  All callers updated.
10461         (symbol_natural_name, symbol_demangled_name): Ditto.
10462         (symbol_search_name): Ditto.
10463         (completion_list_add_name): Change type of symname,sym_text,
10464         text,word parameters from char * to const char *.
10465         (completion_list_objc_symbol): Change type of sym_text,
10466         text,word parameters from char * to const char *.
10467         * ada-lang.c (find_struct_field): Change type of name parameter
10468         from char * to const char *.
10469         (encoded_ordered_before): Similarly for N0,N1 parameters.
10470         (old_renaming_is_invisible): Similarly for function_name parameter.
10471         (ada_type_name): Change result type from char * to const char *.
10472         All callers updated.
10473         * ada-lang.h (ada_type_name): Update.
10474         * buildsym.c (hashname): Change type of name parameter
10475         from char * to const char *.
10476         * buildsym.h (hashname): Update.
10477         * dbxread.c (end_psymtab): Change type of include_list parameter
10478         from char ** to const char **.
10479         * dwarf2read.c (determine_prefix): Change result type
10480         from char * to const char *.  All callers updated.
10481         * f-lang.c (find_common_for_function): Change type of name, funcname
10482         parameters from char * to const char *.
10483         * f-lang.c (find_common_for_function): Update.
10484         * f-valprint.c (list_all_visible_commons): Change type of funcname
10485         parameters from char * to const char *.
10486         * gdbarch.sh (static_transform_name): Change type of name parameter
10487         and result from char * to const char *.
10488         * gdbarch.c: Regenerate.
10489         * gdbarch.h: Regenerate.
10490         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10491         of name parameter from char * to const char *.
10492         * jv-lang.c (java_primitive_type_from_name): Ditto.
10493         (java_demangled_signature_length): Similarly for signature parameter.
10494         (java_demangled_signature_copy): Ditto.
10495         (java_demangle_type_signature): Ditto.
10496         * jv-lang.h (java_primitive_type_from_name): Update.
10497         (java_demangle_type_signature): Update.
10498         * objc-lang.c (specialcmp): Change type of a,b parameters
10499         from char * to const char *.
10500         * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10501         from char * to const char *.  All callers updated.
10502         * p-lang.h (is_pascal_string_type): Update.
10503         * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10504         of name parameter from char * to const char *.
10505         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10506         * utils.c (fprintf_symbol_filtered): Ditto.
10507         * defs.h (fprintf_symbol_filtered): Update.
10508         * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10509         * stabsread.h (end_psymtab): Update.
10510         * stack.c (find_frame_funname): Change type of funname parameter
10511         from char ** to const char **.
10512         * stack.h (find_frame_funname): Update.
10513         * typeprint.c (type_print): Change type of varstring parameter
10514         from char * to const char *.
10515         * value.h (type_print): Update.
10516         * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10517         from char * to const char *.  All callers updated.
10518         (xcoff_end_psymtab): Change type of include_list parameter
10519         from char ** to const char **.  All callers updated.
10520         (swap_sym): Similarly for name parameter.  All callers updated.
10521         * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10522         Use xstrdup.
10523         (process_coff_symbol): Use xstrdup.
10524         * stabsread.c (stabs_method_name_from_physname): Renamed from
10525         update_method_name_from_physname.  Change result type from void
10526         to char *.  All callers updated.
10527         (read_member_functions): In has_destructor case, store name in objfile
10528         obstack instead of malloc space.  In !has_stub case, fix mem leak.
10529
10530 2012-02-06  Luca Pizzamiglio  <luca.pizzamiglio@gmail.com>
10531
10532         * configure: Rebuild.
10533         * configure.ac: Put -L../bfd and -L../libiberty at the front of
10534         LDFLAGS.
10535
10536 2012-02-03  Kevin Buettner  <kevinb@redhat.com>
10537
10538         * configure.tgt (rl78-*-elf): New target.
10539         * rl78-tdep.c: New file.
10540
10541 2012-02-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
10542
10543         * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10544         and continue the loop.  Add QUIT statement.
10545
10546 2012-02-03  Tom Tromey  <tromey@redhat.com>
10547
10548         PR gdb/13596:
10549         * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10550         bfd_lookup_symbol_from_symtab.
10551         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10552         gdb_bfd_lookup_symbol_from_symtab.
10553
10554 2012-02-03  Joel Brobecker  <brobecker@adacore.com>
10555
10556         * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10557         use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10558         symbol.  Add assertion that sym2 is never NULL.
10559
10560 2012-02-02  Doug Evans  <dje@google.com>
10561
10562         * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10563         "name" parameter to const char ** from char **.  All callers updated.
10564         (find_pc_partial_function): Ditto.
10565         (cache_pc_function_name): Change type to const char * from char *.
10566         * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10567         (find_pc_partial_function): Update.
10568         * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10569         type of "name" parameter to const char * from char *.
10570         All uses updated.
10571         * arch-utils.c (generic_in_solib_return_trampoline): Change
10572         type of "name" parameter to const char * from char *.
10573         * arch-utils.h (generic_in_solib_return_trampoline): Update.
10574         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10575         type of "name" parameter to const char * from char *.
10576         * gdbarch.sh (in_solib_return_trampoline): Ditto.
10577         * gdbarch.c: Regenerate.
10578         * gdbarch.h: Regenerate.
10579         * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10580         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10581         * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10582         type of "name" parameter to const char * from char *.
10583         * skip.c (skip_function_pc): Ditto.
10584         * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10585         * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10586         * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10587         * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10588         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10589         * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10590         * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10591         * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10592         * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10593
10594 2012-02-02  Pedro Alves  <palves@redhat.com>
10595
10596         * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10597         the current inferior has no execution.  Make sure the current
10598         remote process matches gdb's current inferior.
10599
10600 2012-02-02  Tom Tromey  <tromey@redhat.com>
10601
10602         PR gdb/13405:
10603         * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10604         read-only memory.
10605
10606 2012-02-02  Tom Tromey  <tromey@redhat.com>
10607
10608         PR gdb/9307:
10609         * symtab.c (lookup_language_this): Set block_found.
10610
10611 2012-02-01  Tom Tromey  <tromey@redhat.com>
10612
10613         PR gdb/13431:
10614         * jit.c (struct jit_inferior_data): Rewrite.
10615         (struct jit_objfile_data): New.
10616         (get_jit_objfile_data): New function.
10617         (add_objfile_entry): Update.
10618         (jit_read_descriptor): Return int.  Replace descriptor_addr
10619         argument with inf_data.  Update.  Don't call error.
10620         (jit_breakpoint_re_set_internal): Reorder logic.  Update.  Look up
10621         descriptor here.
10622         (jit_inferior_init): Don't look up descriptor.  Don't call error.
10623         (jit_reset_inferior_data_and_breakpoints)
10624         (jit_inferior_created_observer): Remove.
10625         (jit_inferior_exit_hook): Update.
10626         (jit_executable_changed_observer): Remove.
10627         (jit_event_handler): Update.
10628         (free_objfile_data): Reset inferior data if needed.
10629         (_initialize_jit): Update.
10630
10631 2012-02-01  Tom Tromey  <tromey@redhat.com>
10632
10633         * jit.c (bfd_open_from_target_memory): Move higher in file.
10634
10635 2012-02-01  Tristan Gingold  <gingold@adacore.com>
10636
10637         * libunwind-frame.c (libunwind_load): Display message if dlopen
10638         failed.
10639
10640 2012-02-01  Gary Benson  <gbenson@redhat.com>
10641
10642         * symtab.h (symbol_found_callback_ftype): New typedef.
10643         (iterate_over_symbols): Use the above.
10644         * symtab.c (iterate_over_symbols): Likewise.
10645         * language.h (language_defn->la_iterate_over_symbols): Likewise.
10646         * ada-lang.c (ada_iterate_over_symbols): Likewise.
10647         * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10648         (iterate_name_matcher): Document return values.
10649         (collect_one_symbol): Likewise.
10650         (collect_function_symbols): Likewise.
10651         (collect_symbols): Likewise.
10652
10653 2012-02-01  Tom Tromey  <tromey@redhat.com>
10654
10655         * ada-lang.c (resolve_subexp): Update.
10656         (ada_lookup_symbol_list): Add 'full_search' argument.
10657         (ada_iterate_over_symbols): Pass 0 as full_search argument to
10658         ada_lookup_symbol_list.
10659         (ada_lookup_encoded_symbol): Update.
10660         (get_var_value): Update.
10661         * ada-exp.y (block_lookup): Update.
10662         (write_var_or_type): Update.
10663         (write_name_assoc): Update.
10664         * ada-lang.h (ada_lookup_symbol_list): Update.
10665
10666 2012-01-31  Tom Tromey  <tromey@redhat.com>
10667
10668         * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10669         comment.
10670
10671 2012-01-31  Doug Evans  <dje@google.com>
10672
10673         * symtab.h: Remove outdated comment.
10674         (SYMBOL_MATCHES_NATURAL_NAME): Delete.
10675
10676 2012-02-01  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
10677
10678         Fix build error in Darwin port.
10679         * i386-darwin-nat.c: Include i386-nat.h.
10680
10681 2012-01-30  Tom Tromey  <tromey@redhat.com>
10682
10683         PR breakpoints/13568:
10684         * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10685         argument.  Check for recursive includes.
10686         (dwarf_decode_macros): Create an include hash.
10687
10688 2012-01-30  Michael Eager  <eager@eagercon.com>
10689
10690         * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10691         * ppc-linux-tdep.c: Include glibc-tdep.h.
10692         (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
10693         (powerpc_linux_in_plt_stub): New function.
10694         (powerpc_linux_in_dynsym_resolve_code): New function.
10695         (ppc_skip_trampoline_code): New function.
10696         (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10697         Use glibc_skip_solib_resolver.
10698
10699 2012-01-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
10700
10701         Code cleanup: Make 1440 bytes of data segment read-only.
10702         * arch-utils.c (endian_enum): Make it const char *const [].
10703         * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10704         Likewise.
10705         * breakpoint.c (always_inserted_enums): Likewise.
10706         * cli/cli-cmds.c (script_ext_enums): Likewise.
10707         * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10708         enumlist parameter const char *const *.
10709         * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10710         const char *const *.
10711         * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10712         parameter const char *const *.
10713         * cris-tdep.c (cris_modes): Make it const char *const [].
10714         * filesystem.c (target_file_system_kinds): Likewise.
10715         * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10716         * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10717         (can_use_displaced_stepping_enum, scheduler_enums)
10718         (exec_direction_names): Likewise.
10719         * language.c (_initialize_language): Make the type_or_range_names and
10720         case_sensitive_names variables const char *const [].
10721         * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10722         * python/python.c (python_excp_enums): Likewise.
10723         * remote.c (interrupt_sequence_modes): Likewise.
10724         * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10725         * serial.c (logbase_enums): Likewise.
10726         * sh-tdep.c (sh_cc_enum): Likewise.
10727         * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10728         Likewise.
10729         * symtab.c (multiple_symbols_modes): Likewise.
10730         * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10731         Likewise.
10732         * utils.c (internal_problem_modes): Likewise.
10733
10734 2012-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
10735
10736         Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10737         * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10738         result.
10739
10740 2012-01-27  Doug Evans  <dje@google.com>
10741
10742         * configure.ac (with_python): Fix absolute path handling for win32.
10743         * configure: Regenerate.
10744
10745 2012-01-26  Doug Evans  <dje@google.com>
10746
10747         * symtab.c: Whitespace cleanup, no code changes.
10748
10749         * symtab.c (lookup_symbol_in_language): Improve comment.
10750         (lookup_symbol_aux): Fix comment.
10751
10752         * psymtab.c (add_psymbol_to_list): Result is now "void".
10753         * psympriv.h (add_psymbol_to_list): Update.
10754
10755         * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10756
10757 2012-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10758
10759         Do not open script filenames twice.
10760         * cli/cli-cmds.c (source_script_from_stream): Pass to
10761         source_python_script also STREAM.
10762         * python/py-auto-load.c (source_section_scripts): Pass to
10763         source_python_script_for_objfile also STREAM.
10764         (auto_load_objfile_script): Pass to source_python_script_for_objfile
10765         also INPUT.
10766         * python/python-internal.h (source_python_script_for_objfile): New
10767         parameter file, rename parameter file to filename.
10768         * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10769         instead if !_WIN32.  Update the function comment.
10770         (source_python_script, source_python_script_for_objfile)
10771         (source_python_script): New parameter file, rename parameter file to
10772         filename.  Pass FILENAME to python_run_simple_file.
10773         * python/python.h (source_python_script): New parameter file, rename
10774         parameter file to filename.
10775
10776 2012-01-26  Pedro Alves  <palves@redhat.com>
10777
10778         * corelow.c (core_has_fake_pid): Delete.
10779         (core_close): Delete references to `core_has_fake_pid'.
10780         (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10781         (core_open): Delete references to `core_has_fake_pid'.
10782         (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10783         the removed global.
10784
10785 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
10786
10787         * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10788         Remove language parameter from name_matcher.  Adjust the comment.
10789         * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10790         Remove language parameter.
10791         * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10792         * linespec.c (iterate_name_matcher): Likewise.
10793         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10794         name_matcher.  Adjust call accordingly.
10795         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10796         (maintenance_check_symtabs): Adjust type of parameter "fun".
10797         * psymtab.h (maintenance_check_symtabs): Likewise.
10798
10799 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
10800
10801         * language.h (symbol_name_match_p_ftype): New typedef.
10802         (struct language_defn): Replace field la_symbol_name_compare
10803         by la_get_symbol_name_match_p.
10804         * ada-lang.c (ada_get_symbol_name_match_p): New function.
10805         (ada_language_defn): Use it.
10806         * linespec.c (struct symbol_matcher_data): New type.
10807         (iterate_name_matcher): Rewrite.
10808         (iterate_over_all_matching_symtabs): Pass a pointer to
10809         a symbol_matcher_data struct to expand_symtabs_matching
10810         instead of just the lookup name.
10811         * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10812         opencl-lang.c, p-lang.c, language.c: Delete field
10813         la_symbol_name_compare, and replace by NULL for new field
10814         la_get_symbol_name_match_p.
10815         * symfile.h (struct quick_symbol_functions): Update comment.
10816
10817 2012-01-25  Tom Tromey  <tromey@redhat.com>
10818
10819         * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10820         dereferencing.
10821
10822 2012-01-24  Tom Tromey  <tromey@redhat.com>
10823
10824         PR symtab/12406:
10825         * solib.c (update_solib_list): Update the program space's
10826         added_solibs and deleted_solibs fields.
10827         * progspace.h (struct program_space) <added_solibs,
10828         deleted_solibs>: New fields.
10829         (clear_program_space_solib_cache): Declare.
10830         * progspace.c (release_program_space): Call
10831         clear_program_space_solib_cache.
10832         (clear_program_space_solib_cache): New function.
10833         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10834         bpstat_stop_status.  Use handle_solib_event.
10835         * breakpoint.c: Include gdb_regex.h.
10836         (print_solib_event): New function.
10837         (bpstat_print): Use print_solib_event.
10838         (bpstat_stop_status): Add special case for bp_shlib_event.
10839         (handle_solib_event): New function.
10840         (bpstat_what): Use handle_solib_event.
10841         (struct solib_catchpoint): New.
10842         (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10843         (breakpoint_hit_catch_solib, check_status_catch_solib)
10844         (print_it_catch_solib, print_one_catch_solib)
10845         (print_mention_catch_solib, print_recreate_catch_solib): New
10846         functions.
10847         (catch_solib_breakpoint_ops): New global.
10848         (catch_load_or_unload, catch_load_command_1)
10849         (catch_unload_command_1): New functions.
10850         (internal_bkpt_check_status): Add special case for
10851         bp_shlib_event.
10852         (internal_bkpt_print_it): Use print_solib_event.
10853         (initialize_breakpoint_ops): Initialize
10854         catch_solib_breakpoint_ops.
10855         (_initialize_breakpoint): Register "catch load" and "catch
10856         unload".
10857         * breakpoint.h (handle_solib_event): Declare.
10858         * NEWS: Add entry for "catch load" and "catch unload".
10859
10860 2012-01-24  Tom Tromey  <tromey@redhat.com>
10861
10862         * ada-lang.c: Include gdb_vecs.h.
10863         * charset.c: Include gdb_vecs.h.
10864         * tracepoint.h: Include gdb_vecs.h.
10865         * gdb_vecs.h: New file.
10866
10867 2012-01-24  Pedro Alves  <pedro@codesourcery.com>
10868
10869         * breakpoint.c (breakpoint_hit_catch_fork)
10870         (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10871         (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10872         * infrun.c (inferior_has_forked, inferior_has_vforked)
10873         (inferior_has_execd, inferior_has_called_syscall): Delete.
10874         (handle_syscall_event): Get syscall_number from the execution
10875         control state's wait status.
10876         (wait_for_inferior): Don't clear syscall_number.
10877
10878 2012-01-24  Pedro Alves  <palves@redhat.com>
10879
10880         * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10881         pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10882         (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10883         (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10884         `ws' parameter.
10885         (breakpoint_hit_ranged_breakpoint): Add `ws' parameter.  Return
10886         false for events other than TARGET_SIGNAL_TRAP.
10887         (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10888         Add `ws' parameter.
10889         (bkpt_breakpoint_hit): Add `ws' parameter.  Return false for
10890         events other than TARGET_SIGNAL_TRAP.
10891         (tracepoint_breakpoint_hit): Add `ws' parameter.
10892         * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10893         parameter.
10894         (bpstat_stop_status): Same.
10895         (pc_at_non_inline_function): Same.
10896         * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10897         to pass the current event's waitstatus to bpstat_stop_status
10898         and pc_at_non_inline_function.
10899
10900 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10901
10902         Code cleanup.
10903         * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10904         Update the function comment for it.
10905         (source_script_with_search): Call make_cleanup_fclose for STREAM.
10906         * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10907         for STREAM.
10908
10909 2012-01-24  Pedro Alves  <palves@redhat.com>
10910
10911         * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10912         outside `bs->stop' block.
10913         (bpstat_what): Rework bp_shlib_event handling.
10914         (internal_bkpt_check_status): If the breakpoint is a
10915         bp_shlib_event, then set bs->stop and bs->print if
10916         stop_on_solib_events is set.
10917
10918 2012-01-24  Gary Benson  <gbenson@redhat.com>
10919
10920         Delete #if 0'd out code.
10921         * stack.c (print_frame_label_vars): Remove.
10922         (catch_info): Likewise.
10923         (_initialize_stack): Remove "info catch" command.
10924         * NEWS: Mention the above.
10925
10926 2012-01-24  Pedro Alves  <palves@redhat.com>
10927
10928         * remote.c (remote_add_inferior): New `fake_pid_p' parameter.  Use
10929         it.
10930         (remote_notice_new_inferior): If the remote end doesn't support
10931         the multiprocess extensions, then the PID is fake.
10932         (add_current_inferior_and_thread): New.
10933         (remote_start_remote): Use it.
10934         (extended_remote_attach_1): Adjust.
10935         (extended_remote_create_inferior_1): Use
10936         add_current_inferior_and_thread.
10937
10938 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10939
10940         Fix watchpoints to be specific for each inferior.
10941         * breakpoint.c (watchpoint_in_thread_scope): Verify also
10942         current_program_space.
10943         * i386-nat.c (i386_inferior_data_cleanup): New.
10944         (i386_inferior_data_get): Replace variable inf_data_local by an
10945         inferior_data call.
10946         (i386_use_watchpoints): Initialize i386_inferior_data.
10947         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10948         specific iterate_over_lwps.
10949
10950 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10951
10952         Fix watchpoints across inferior fork.
10953         * amd64-linux-nat.c (update_debug_registers_callback): Update the
10954         comment for linux_nat_iterate_watchpoint_lwps.
10955         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10956         linux_nat_iterate_watchpoint_lwps.
10957         (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10958         * i386-linux-nat.c (update_debug_registers_callback): Update the
10959         comment for linux_nat_iterate_watchpoint_lwps.
10960         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10961         linux_nat_iterate_watchpoint_lwps.
10962         (i386_linux_prepare_to_resume): New comment on Linux kernel.
10963         * i386-nat.c: Include inferior.h.
10964         (dr_mirror): Remove.
10965         (i386_inferior_data, struct i386_inferior_data)
10966         (i386_inferior_data_get): New.
10967         (i386_debug_reg_state): Use i386_inferior_data_get.
10968         (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10969         (i386_insert_watchpoint, i386_remove_watchpoint)
10970         (i386_stopped_data_address, i386_insert_hw_breakpoint)
10971         (i386_remove_hw_breakpoint): New variable state, use
10972         i386_debug_reg_state instead of DR_MIRROR.
10973         * linux-nat.c (delete_lwp): New declaration.
10974         (num_lwps): Move here from downwards.
10975         (delete_lwp_cleanup): New.
10976         (linux_child_follow_fork): Create new child_lp, call
10977         linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10978         PTRACE_DETACH.
10979         (num_lwps): Move upwards.
10980         (linux_nat_iterate_watchpoint_lwps): New.
10981         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10982         (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10983
10984 2012-01-24  Joel Brobecker  <brobecker@adacore.com>
10985
10986         GDB 7.4 released.
10987
10988 2012-01-23  Pedro Alves  <palves@redhat.com>
10989
10990         * top.c (caution): Rename to ...
10991         (confirm): ... this.
10992         (show_caution): Rename to ...
10993         (show_confirm): ... this.
10994         (quit_cover): Adjust.
10995         (init_main): Adjust.
10996         * top.h (caution): Rename to ...
10997         (confirm): ... this.
10998         * utils.c (internal_vproblem, defaulted_query): Adjust.
10999
11000 2012-01-23  Pedro Alves  <palves@redhat.com>
11001
11002         * top.c (caution): Update comment.
11003         (execute_command): Don't consider the current value of `caution'.
11004
11005 2012-01-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
11006
11007         * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11008
11009 2012-01-23  Ulrich Weigand  <ulrich.weigand@linaro.org>
11010
11011         * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11012         * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11013         * target.c (target_fileio_pwrite): Remove buffer address from
11014         debug output.
11015         (target_fileio_pread): Likewise.
11016
11017 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
11018
11019         * NEWS: Document remote "info proc" and "generate-core-file".
11020
11021 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
11022
11023         * gdbarch.sh (find_memory_regions): New callback.
11024         * gdbarch.c, gdbarch.h: Regenerate.
11025
11026         * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11027         callback before falling back to target method.
11028
11029         * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11030         (linux_target_install_ops): No longer install it.
11031
11032         * linux-tdep.c (linux_find_memory_regions): New function.
11033         (linux_init_abi): Install it.
11034
11035 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
11036
11037         * gdbarch.sh (make_corefile_notes): New architecture callback.
11038         * gdbarch.c: Regenerate.
11039         * gdbarch.h: Likewise.
11040
11041         * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11042         before target_make_corefile_notes.  If NULL is returned, the
11043         target does not support core file generation.
11044
11045         * linux-nat.c: Include "linux-tdep.h".
11046         (find_signalled_thread, find_stop_signal): Remove.
11047         (linux_nat_do_thread_registers): Likewise.
11048         (struct linux_nat_corefile_thread_data): Likewise.
11049         (linux_nat_corefile_thread_callback): Likewise.
11050         (iterate_over_spus): Likewise.
11051         (struct linux_spu_corefile_data): Likewise.
11052         (linux_spu_corefile_callback): Likewise.
11053         (linux_spu_make_corefile_notes): Likewise.
11054         (linux_nat_collect_thread_registers): New function.
11055         (linux_nat_make_corefile_notes): Replace contents by call to
11056         linux_make_corefile_notes passing linux_nat_collect_thread_registers
11057         as native-only callback.
11058
11059         * linux-tdep.h: Include "bfd.h".
11060         (struct regcache): Add forward declaration.
11061         (linux_collect_thread_registers_ftype): New typedef.
11062         (linux_make_corefile_notes): Add prototype.
11063         * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11064         "regset.h", and "elf-bfd.h".
11065         (find_signalled_thread, find_stop_signal): New functions.
11066         (linux_spu_make_corefile_notes): Likewise.
11067         (linux_collect_thread_registers): Likewise.
11068         (struct linux_corefile_thread_data): New data structure.
11069         (linux_corefile_thread_callback): New funcion.
11070         (linux_make_corefile_notes): Likewise.
11071         (linux_make_corefile_notes_1): Likewise.
11072         (linux_init_abi): Install it.
11073
11074 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
11075
11076         * gdbarch.sh (info_proc): New callback.
11077         * gdbarch.c, gdbarch.h: Regenerate.
11078
11079         * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11080         before falling back to the target info_proc callback.
11081
11082         * linux-nat.c: Do not include "cli/cli-utils.h".
11083         (linux_nat_info_proc): Remove.
11084         (linux_target_install_ops): No longer install it.
11085
11086         * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11087         (read_mapping): New function.
11088         (linux_info_proc): Likewise.
11089         (linux_init_abi): Install it.
11090
11091 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
11092
11093         * defs.h (enum info_proc_what): Moved here from linux-nat.c
11094         * infcmd.c: (info_proc_cmd_1): New function.
11095         (info_proc_cmd): New function, moved here from equivalent routine
11096         orignally in linux-nat.c.
11097         (info_proc_cmd_mappings): Likewise.
11098         (info_proc_cmd_stat): Likewise.
11099         (info_proc_cmd_status): Likewise.
11100         (info_proc_cmd_cwd): Likewise.
11101         (info_proc_cmd_cmdline): Likewise.
11102         (info_proc_cmd_exe): Likewise.
11103         (info_proc_cmd_all): Likewise.
11104         (_initialize_infcmd): Install "info proc" command and subcommands.
11105
11106         * target.h (struct target_ops): Add to_info_proc.
11107         (target_info_proc): Add prototype.
11108         * target.c (target_info_proc): New function.
11109
11110         * procfs.c (procfs_info_proc): Add prototype.
11111         (info_proc_cmd): Rename into ...
11112         (procfs_info_proc): ... this.  Update argument types as appropriate
11113         for a to_info_proc implementation.  Handle "what" argument.
11114         (procfs_target): Install procfs_info_proc.
11115         (_initialize_procfs): No longer install "info proc" command.
11116
11117         * linux-nat.c: (enum info_proc_what): Remove.
11118         (linux_nat_info_proc_cmd_1): Rename into ...
11119         (linux_nat_info_proc): ... this.  Update argument types as appropriate
11120         for a to_info_proc implementation.
11121         (linux_nat_info_proc_cmd): Remove.
11122         (linux_nat_info_proc_cmd_mappings): Likewise.
11123         (linux_nat_info_proc_cmd_stat): Likewise.
11124         (linux_nat_info_proc_cmd_status): Likewise.
11125         (linux_nat_info_proc_cmd_cwd): Likewise.
11126         (linux_nat_info_proc_cmd_cmdline): Likewise.
11127         (linux_nat_info_proc_cmd_exe): Likewise.
11128         (linux_nat_info_proc_cmd_all): Likewise.
11129         (linux_target_install_ops): Install linux_nat_info_proc.
11130         (_initialize_linux_nat): No longer install "info proc" command
11131         and subcommands.
11132
11133 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
11134
11135         * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11136         * config.in, configure: Regenerate.
11137
11138         * target.h (struct target_ops): Add to_fileio_readlink.
11139         (target_fileio_readlink): Add prototype.
11140         * target.c (target_fileio_readlink): New function.
11141
11142         * inf-child.c: Conditionally include <sys/param.h>.
11143         (inf_child_fileio_readlink): New function.
11144         (inf_child_target): Install it.
11145
11146         * remote.c (PACKET_vFile_readlink): New enum value.
11147         (remote_hostio_readlink): New function.
11148         (init_remote_ops): Install it.
11149         (_initialize_remote): Handle vFile:readlink packet type.
11150
11151 2012-01-20  Pedro Alves  <palves@redhat.com>
11152             Ulrich Weigand  <ulrich.weigand@linaro.org>
11153
11154         * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11155         * config.in, configure: Regenerate.
11156
11157         * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11158         to_fileio_pread, to_fileio_close, to_fileio_unlink.
11159         (target_fileio_open): Add prototype.
11160         (target_fileio_pwrite): Likewise.
11161         (target_fileio_pread): Likewise.
11162         (target_fileio_close): Likewise.
11163         (target_fileio_unlink): Likewise.
11164         (target_fileio_read_alloc): Likewise.
11165         (target_fileio_read_stralloc): Likewise.
11166
11167         * target.c: Include "gdb/fileio.h".
11168         (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11169         (default_fileio_target): New function.
11170         (target_fileio_open): Likewise.
11171         (target_fileio_pwrite): Likewise.
11172         (target_fileio_pread): Likewise.
11173         (target_fileio_close): Likewise.
11174         (target_fileio_unlink): Likewise.
11175         (target_fileio_close_cleanup): Likewise.
11176         (target_fileio_read_alloc_1): Likewise.
11177         (target_fileio_read_alloc): Likewise.
11178         (target_fileio_read_stralloc): Likewise.
11179
11180         * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11181         <fcntl.h>, and <unistd.h>.
11182         (inf_child_fileio_open_flags_to_host): New function.
11183         (inf_child_errno_to_fileio_error): Likewise.
11184         (inf_child_fileio_open): Likewise.
11185         (inf_child_fileio_pwrite): Likewise.
11186         (inf_child_fileio_pread): Likewise.
11187         (inf_child_fileio_close): Likewise.
11188         (inf_child_fileio_unlink): Likewise.
11189         (inf_child_target): Install to_fileio routines.
11190
11191         * remote.c (init_remote_ops): Install to_fileio routines.
11192
11193 2012-01-20  Pedro Alves  <palves@redhat.com>
11194             Ulrich Weigand  <ulrich.weigand@linaro.org>
11195
11196         * remote.c (remote_multi_process_p): Only check for multi-process
11197         protocol feature, do not check for extended protocol.
11198         (remote_supports_multi_process): Check for extended protocol here.
11199         (set_general_process): Likewise.
11200         (extended_remote_kill): Likewise.
11201         (remote_pid_to_str): Likewise.
11202         (remote_query_supported): Always query multiprocess mode.
11203
11204 2012-01-20  Pedro Alves  <palves@redhat.com>
11205             Ulrich Weigand  <ulrich.weigand@linaro.org>
11206
11207         * inferior.h (struct inferior): Add fake_pid_p.
11208         * inferior.c (exit_inferior_1): Clear fake_pid_p.
11209         * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11210         magic_null_ptid since the remote side doesn't provide a real PID.
11211
11212 2012-01-19  Tom Tromey  <tromey@redhat.com>
11213
11214         * NEWS: Combine the two Python sections.
11215
11216 2012-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
11217
11218         * target.h (target_close): Update comment on the target's unpush state.
11219
11220 2012-01-19  Pedro Alves  <palves@redhat.com>
11221
11222         * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11223         linux_nat_async directly instead of going through the target
11224         vector.
11225         * target.c (unpush_target): Close target after unpushing it, not
11226         before.
11227
11228 2012-01-19  Gary Benson  <gbenson@redhat.com>
11229
11230         * mdebugread.c (sort_blocks): Replace integer constants with ones
11231         derived from FIRST_LOCAL_BLOCK.
11232
11233 2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
11234             Jan Kratochvil  <jan.kratochvil@redhat.com>
11235
11236         PR gdb/9538
11237         * symfile.c (find_separate_debug_file): New function.
11238         (terminate_after_last_dir_separator): Likewise.
11239         (find_separate_debug_file_by_debuglink): Also try realpath.
11240         * configure.ac (AC_CHECK_FUNCS): Add lstat.
11241         * configure: Regenerate.
11242         * config.in: Regenerate.
11243
11244 2012-01-18  Doug Evans  <dje@google.com>
11245
11246         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11247         (main.o): Remove rule.
11248         * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11249         (--with-sysroot): Rewrite.
11250         * configure: Regenerate.
11251         * config.in: Regenerate.
11252
11253 2012-01-18  Sergio Durigan Junior  <sergiodj@redhat.com>
11254
11255         * parse.c (initialize_expout): New function.
11256         (reallocate_expout): Likewise.
11257         (parse_exp_in_context): Use `initialize_expout' and
11258         `reallocate_expout' when appropriate.
11259
11260 2012-01-18  Pedro Alves  <palves@redhat.com>
11261
11262         * record.c (struct record_breakpoint, record_breakpoint_p)
11263         (record_breakpoints): New.
11264         (record_insert_breakpoint, record_remove_breakpoint): Manage
11265         record breakpoints list.  Only remove breakpoints from the
11266         inferior if they had been inserted there in the first place.
11267
11268 2012-01-17  Doug Evans  <dje@google.com>
11269
11270         * linespec.c (decode_line_internal): Don't call symtabs_from_filename
11271         if we know we don't have a file name to look for.
11272
11273 2012-01-17  Pedro Alves  <palves@redhat.com>
11274
11275         * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
11276         the frame's stop reason is UNWIND_UNAVAILABLE.
11277
11278 2012-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
11279
11280         Fix compilation error.
11281         * m2-exp.y (yyerror): Use ANSI C prototype.
11282
11283 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
11284
11285         * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
11286         (growbuf_by_size): Likewise.
11287         (yyerror): Likewise.
11288         * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
11289         (modblock): Remove variable (was #if 0'ed).
11290         (parse_number): Convert prototype from K&R to ANSI C.
11291         (yyerror): Likewise.
11292         * objc-exp.y (parse_number): Likewise.
11293         (yyerror): Likewise.
11294         (yylex): Remove #if 0'ed code.
11295         * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
11296         (yyerror): Likewise.
11297
11298 2012-01-16  Tom Tromey  <tromey@redhat.com>
11299
11300         * NEWS: Add item.
11301         * symtab.h (compare_filenames_for_search): Declare.
11302         * symtab.c (compare_filenames_for_search): New function.
11303         (iterate_over_some_symtabs): Use it.
11304         * symfile.h (struct quick_symbol_functions)
11305         <map_symtabs_matching_filename>: Change spec.
11306         * psymtab.c (partial_map_symtabs_matching_filename): Use
11307         compare_filenames_for_search.  Update for new spec.
11308         * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
11309         compare_filenames_for_search.  Update for new spec.
11310         * breakpoint.c (clear_command): Use compare_filenames_for_search.
11311
11312 2012-01-16  Tom Tromey  <tromey@redhat.com>
11313
11314         PR python/13281:
11315         * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
11316         (struct main_type) <flag_flag_enum>: New field.
11317         * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
11318         * NEWS: Add entries.
11319         * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
11320         enums.
11321         * python/lib/gdb/printing.py (_EnumInstance): New class.
11322         (FlagEnumerationPrinter): Likewise.
11323
11324 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
11325
11326         * breakpoint.c (create_sals_from_address_default): New function.
11327         (create_breakpoints_sal_default): Likewise.
11328         (decode_linespec_default): Likewise.
11329         (is_marker_spec): Removed.
11330         (strace_marker_p): New function.
11331         (init_breakpoint_sal): Using `strace_marker_p' instead of
11332         `is_marker_spec'.
11333         (create_breakpoint): Call method `create_sals_from_address' from
11334         breakpoint_ops, replacing code that created SALs conditionally
11335         on the type of the breakpoint.  Call method `create_breakpoints_sal',
11336         replacing code that created breakpoints conditionally on the type
11337         wanted.
11338         (base_breakpoint_create_sals_from_address): New function.
11339         (base_breakpoint_create_breakpoints_sal): Likewise.
11340         (base_breakpoint_decode_linespec): Likewise.
11341         (base_breakpoint_ops): Add methods
11342         `base_breakpoint_create_sals_from_address',
11343         `base_breakpoint_create_breakpoints_sal' and
11344         `base_breakpoint_decode_linespec'.
11345         (bkpt_create_sals_from_address): New function.
11346         (bkpt_create_breakpoints_sal): Likewise.
11347         (bkpt_decode_linespec): Likewise.
11348         (tracepoint_create_sals_from_address): Likewise.
11349         (tracepoint_create_breakpoints_sal): Likewise.
11350         (tracepoint_decode_linespec): Likewise.
11351         (strace_marker_create_sals_from_address): Likewise.
11352         (strace_marker_create_breakpoints_sal): Likewise.
11353         (strace_marker_decode_linespec): Likewise.
11354         (strace_marker_breakpoint_ops): New variable.
11355         (addr_string_to_sals): Remove `marker_spec'.  Call method
11356         `decode_linespec' from breakpoint_ops, replacing code that decoded
11357         an address string into a SAL.  Use `strace_marker_p' instead of
11358         `marker_spec'.
11359         (strace_command): Decide whether we are dealing with a static
11360         tracepoint with marker or not.  Use the appropriate breakpoint_ops.
11361         (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11362         * breakpoint.h (linespec_result, linespec_sals): New forward
11363         declarations.
11364         (breakpoint_ops) <create_sals_from_address>,
11365         <create_breakpoints_sal>, <decode_linespec>: New methods.
11366
11367 2012-01-14  Doug Evans  <dje@google.com>
11368
11369         * NEWS: Update text for "maint set python print-stack".
11370         It is deprecated in gdb 7.4 and deleted in 7.5.
11371
11372 2012-01-13  Eli Zaretskii  <eliz@gnu.org>
11373
11374         * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11375         including curses.h.
11376
11377 2012-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
11378
11379         * configure: Regenerate.
11380         * config.in: Regenerate.
11381
11382 2012-01-12  Keith Seitz  <keiths@redhat.com>
11383
11384         PR mi/10586
11385         * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11386         (ANONYMOUS_UNION_NAME): Define.
11387         (is_path_expr_parent): New function.
11388         (get_path_expr_parent): New function.
11389         (is_anonymous_child): New function.
11390         (create_child_with_value): If the child is anonymous and without
11391         a name, assign an object name to it.
11392         (c_describe_child): Use get_path_expr_parent to determine
11393         the parent expression.
11394         If there field represents an anonymous struct or union and
11395         has no name, set an appropriate display name and expression.
11396         (cplus_describe_child): Likewise.
11397
11398 2012-01-12  Pedro Alves  <palves@redhat.com>
11399
11400         * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11401         available when %ebp is found to be zero (outermost).
11402
11403 2012-01-11  Andreas Tobler  <andreast@fgznet.ch>
11404
11405         * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11406         an internal gdb_static_assert.
11407         * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11408
11409 2012-01-11  Tom Tromey  <tromey@redhat.com>
11410
11411         PR gdb/9598:
11412         * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11413         catch" and "catch throw".
11414
11415 2012-01-11  Paul Hilfinger  <hilfingr@adacore.com>
11416
11417         * blockframe.c (block_innermost_frame): Start search from selected
11418         frame, if present, or otherwise the current frame.
11419
11420         * c-exp.y (variable): Update innermost_block for
11421         'block COLONCOLON NAME' clause.
11422         * m2-exp.y (variable): Ditto.
11423         * objc-exp.y (variable): Ditto.
11424
11425 2012-01-10  Tom Tromey  <tromey@redhat.com>
11426
11427         PR python/13199:
11428         * python/python.c (finish_python_initialization): Set sys.argv.
11429
11430 2012-01-10  Doug Evans  <dje@google.com>
11431
11432         * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd".  New arg
11433         "want_line_info".  All callers updated.
11434         (dwarf_decode_lines_1): New function.
11435         (handle_DW_AT_stmt_list): Add function comment.
11436         New arg "want_line_info".  All callers updated.
11437         (read_file_scope,read_type_unit_scope): Move comment from
11438         handle_DW_AT_stmt_list to here.
11439
11440 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
11441
11442         Fix regression after libiberty/ update for GCC PR 6057 and others.
11443         * c-exp.y (operator) <OPERATOR DELETE>
11444         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11445         * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11446         (make_builtin_type, make_name): New variable i, add gdb_assert.
11447         (operator) <OPERATOR NEW>: Update ARGS to 3.
11448         (operator) <OPERATOR DELETE>: Add trailing space.
11449         (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11450         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11451         * cp-support.c (cp_canonicalize_string): Check NULL from
11452         cp_comp_to_string, call warning and return.
11453
11454 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
11455
11456         Fix duplicate .o files after omitting libbfd.a.
11457         * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11458         (SFILES): Add corelow.c.
11459         (COMMON_OBS): Add corelow.o.
11460         (ALLDEPFILES): Remove corelow.c.
11461         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11462         * config/alpha/alpha-osf3.mh: Likewise.
11463         * config/alpha/fbsd.mh: Likewise.
11464         * config/arm/nbsdaout.mh: Likewise.
11465         * config/arm/nbsdelf.mh: Likewise.
11466         * config/i386/i386gnu.mh: Likewise.
11467         * config/ia64/hpux.mh: Likewise.
11468         * config/ia64/linux.mh: Likewise.
11469         * config/m32r/linux.mh: Likewise.
11470         * config/m68k/linux.mh: Likewise.
11471         * config/mips/irix5.mh: Likewise.
11472         * config/mips/irix6.mh: Likewise.
11473         * config/pa/hpux.mh: Likewise.
11474         * config/pa/linux.mh: Likewise.
11475         * config/powerpc/aix.mh: Likewise.
11476         * config/sparc/linux.mh: Likewise.
11477         * config/sparc/linux64.mh: Likewise.
11478         * config/sparc/sol2.mh: Likewise.
11479         * config/vax/vax.mh: Likewise.
11480         * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11481         (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11482         (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11483         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11484         (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11485         (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11486         (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11487         (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11488         (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11489         (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11490         (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11491         (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11492         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11493         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11494         (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11495         (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11496         (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11497         (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11498         (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11499         (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11500         (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11501         (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11502         corelow.o from gdb_target_obs.
11503         * corefile.c (core_target): Update the comment on NULL value.
11504         (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11505         * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11506         MATCHES.  Drop YUMMY set on NULL.
11507         (core_close): Do not call exit_inferior_silent on zero PID.  Do not
11508         reclaim CORE_DATA if it is already NULL.
11509
11510 2012-01-09  Doug Evans  <dje@google.com>
11511
11512         * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11513         * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11514
11515 2012-01-09  Keith Seitz  <keiths@redhat.com>
11516
11517         * breakpoint.c (wrapper.h): Don't include.
11518
11519 2012-01-09  Keith Seitz  <keiths@redhat.com>
11520
11521         * Makefile.in (SFILES): Remove wrapper.c.
11522         (HFILES_NO_SRCDIR): Remove wrapper.h.
11523         (COMMON_OBS): Remove wrapper.o.
11524         * cli/cli-interp.c: Don't inlude wrapper.h.
11525         * corelow.c: Likewise.
11526         (core_open): Replace gdb_target_find_new_threads with
11527         TRY_CATCH around target_find_new_threads.
11528         * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11529         * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11530         * varobj.c (varobj_create): Likewise for parse_exp_1 and
11531         evaluate_expression.
11532         (varobj_set_value): Likewise for evaluate_expression and
11533         value_assign.
11534         (install_new_variable): Likewise for value_fetch_lazy.
11535         (adjust_value_for_child_access): Likewise for value_ind.
11536         (c_describe_child): Likewise for value_subscript and
11537         value_ind.
11538         (c_value_of_root): Likewise for evaluate_expression.
11539         * wrapper.c: Remove.
11540         * wrapper.h: Remove.
11541
11542 2012-01-09  Doug Evans  <dje@google.com>
11543
11544         * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11545         partial_read_comp_unit_head.  Replace "buffer", "buffer_size" and
11546         "abfd" args with "section".  All callers updated.
11547         Error checking code moved ...
11548         (error_check_comp_unit_head): ... here.  New function.
11549         (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11550         Delete arg "abfd".  New arg "type_offset".  All callers updated.
11551         (create_debug_types_hash_table): Simplify by using
11552         read_and_check_type_unit_head.
11553
11554         * parser-defs.h (namecopy): Delete.
11555         * parse.c (namecopy, namecopy_size): Move into copy_name.
11556
11557 2012-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
11558
11559         Partially fix duplicate .o files after omitting libbfd.a.
11560         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11561         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11562         * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11563         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11564         * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11565         * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11566         * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11567
11568 2012-01-09  Pedro Alves  <palves@redhat.com>
11569
11570         * MAINTAINERS: Update my email address.
11571
11572 2012-01-08  Doug Evans  <dje@google.com>
11573
11574         * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11575         n_type_units.  Rename type_comp_units to all_type_units.
11576         All uses updated.
11577         (add_signatured_type_cu_to_table): Renamed from
11578         add_signatured_type_cu_to_list.  All callers updated.
11579
11580         * gdbtypes.h (struct cplus_struct_type): Delete member
11581         nfn_fields_total.  All uses removed.
11582
11583 2012-01-06  Doug Evans  <dje@google.com>
11584
11585         * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11586         to top of file.
11587         (dwarf2_find_comp_unit): Delete.
11588         (process_psymtab_comp_unit): Make result "void".
11589         Delete args buffer, info_ptr, buffer_size, and replace with
11590         "section".  All callers updated.
11591         (dwarf2_build_psymtabs_hard): Simplify.
11592
11593 2012-01-06  Sergio Durigan Junior  <sergiodj@redhat.com>
11594             Thiago Jung Bauermann  <bauerman@br.ibm.com>
11595
11596         * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11597         before `struct gdb_exception'.
11598         * breakpoint.c (update_global_location_list_nothrow)
11599         (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11600         * cp-abi.c (value_rtti_type): Likewise.
11601         * cp-support.c (cp_validate_operator): Likewise.
11602         * infrun.c (insert_exception_resume_breakpoint)
11603         (check_exception_resume, keep_going): Likewise.
11604         * mi-interp.c (mi_breakpoint_created)
11605         (mi_breakpoint_modified): Likewise.
11606         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11607         * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11608         (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11609
11610 2012-01-05  Doug Evans  <dje@google.com>
11611
11612         * dwarf2read.c (statement_prologue): Delete, unused.
11613
11614         * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11615         * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11616
11617         * dwarf2read.c (comp_unit_header): Delete, unused.
11618
11619 2012-01-05  Ulrich Weigand  <uweigand@de.ibm.com>
11620
11621         * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11622         * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11623
11624 2012-01-05  Khoo Yit Phang  <khooyp@cs.umd.edu>
11625
11626         * infrun.c (normal_stop): Don't skip calling the normal_stop
11627         observers if the thread was doing a multi-step, but stopped for
11628         some reason other than stepping.
11629
11630 2012-01-05  Pedro Alves  <alves.ped@gmail.com>
11631
11632         * cli/cli-decode.h: Add comments.
11633         (CMD_LIST_AMBIGUOUS): Moved to command.h
11634         (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11635         (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11636         (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11637         (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11638         (add_com, add_com_alias, add_info, add_info_alias)
11639         (complete_on_cmdlist, complete_on_enum, help_list): Remove
11640         declarations.
11641         * command.h: Add and adjust comments.
11642         (CMD_LIST_AMBIGUOUS): Moved here.
11643         (help_cmd, help_cmd_list): Delete declarations.
11644
11645 2012-01-04  Doug Evans  <dje@google.com>
11646
11647         * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11648         All callers updated.
11649         (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11650         Replace all arguments with "per_cu".  All callers updated.
11651
11652         * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11653
11654         * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11655         New arg "per_cu".  All callers updated.
11656
11657         Delete #if 0'd out code.
11658         * language.c (binop_result_type): Delete.
11659         (simple_type, ordered_type, same_type, integral_type): Delete.
11660         (numeric_type, character_type, string_type, boolean_type): Delete.
11661         (float_type, structured_type): Delete.
11662         * language.h: Update.
11663
11664 2012-01-04  Tom Tromey  <tromey@redhat.com>
11665
11666         * python/py-value.c (valpy_binop): Initialize 'res_val'.
11667
11668 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11669
11670         * corefile.c (close_exec_file): Delete.
11671         (reopen_exec_file): Remove commented out code that seems related
11672         to close_exec_file, which is being deleted here.
11673         * inferior.h (close_exec_file): Delete.
11674         * fork-child.c (fork_inferior): Remove call to fork_inferior.
11675
11676 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11677
11678         * ada-lang.c: #include "cli/cli-utils.h".
11679         (get_selections): Use skip_spaces.
11680         (ada_get_next_arg): Use skip_spaces and skip_to_space.
11681         (catch_ada_exception_command_split): Use skip_spaces.
11682         (ada_decode_assert_location): Likewise.
11683
11684 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11685
11686         * linespec.c (decode_line_internal): Check for C++ or Java
11687         compound constructs only if the current language is C, C++
11688         or Java.
11689
11690 2012-01-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
11691
11692         Revert:
11693         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11694                     Joel Brobecker  <brobecker@adacore.com>
11695         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11696         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11697         3 times.
11698         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11699         fall through into AT_ENTRY_POINT.
11700         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
11701         DUMMY_ADDR with it.
11702         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11703         PPC_INSN_SIZE skip to 3 times.
11704
11705 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11706
11707         * linespec.c (add_minsym): Preserve function descriptors.
11708
11709 2012-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
11710
11711         * breakpoint.c (all_locations_are_pending): Consider locations
11712         in program spaces executing during startup pending as well.
11713
11714 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11715
11716         Copyright year update in most files of the GDB Project.
11717
11718 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11719
11720         * copyright.sh: Delete.
11721         * copyright.py: Rewrite.
11722
11723 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11724
11725         * gnulib/extra/update-copyright: New file, imported from gnulib.
11726
11727 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11728
11729         * README (Copyright and License Notices): New section.
11730
11731 2012-01-03  Tom Tromey  <tromey@redhat.com>
11732
11733         PR python/12533:
11734         * python/py-value.c (valpy_dereference, valpy_get_address
11735         valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11736         (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11737         (valpy_absolute, valpy_richcompare): Free intermediate values.
11738
11739 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
11740
11741         * ada-lang.c: Reformat the copyright notice.
11742
11743 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11744
11745         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11746         * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11747         (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11748         (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11749         Revert this part of:
11750         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11751         Build gdb directly from *.o files not using libgdb.a.
11752         * Makefile.in (COMMON_OBS): Remove solib-target.o.
11753
11754 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11755
11756         * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11757         gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11758         Reformat the copyright header.
11759
11760 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11761
11762         Revert this part of:
11763         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11764         Remove the gdbtui binary.
11765         * gdb.c (main): Remove args.interpreter_p initialization.
11766         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11767         * main.h (struct captured_main_args): Remove interpreter_p.
11768
11769 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11770
11771         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11772
11773 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11774
11775         * top.c (print_gdb_version): Update copyright year.
11776
11777 2012-01-02  Yao Qi  <yao@codesourcery.com>
11778
11779         * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11780
11781 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11782             Joel Brobecker  <brobecker@adacore.com>
11783
11784         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11785         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11786         3 times.
11787         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11788         fall through into AT_ENTRY_POINT.
11789         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
11790         DUMMY_ADDR with it.
11791         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11792         PPC_INSN_SIZE skip to 3 times.
11793
11794 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11795
11796         * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11797         the return value.
11798         * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11799
11800 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11801
11802         Build gdb directly from *.o files not using libgdb.a.
11803         * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11804         (COMMON_OBS): Remove solib-target.o.
11805         (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11806         (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11807         (LIBGDB_OBS, libgdb.a): Move it above.
11808         * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11809         (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11810         (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11811         (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11812         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11813         (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11814         (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11815         (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11816         (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11817         (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11818         (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11819         (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11820         (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11821         (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11822         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11823         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11824         (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11825         (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11826         (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11827         (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11828         (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11829         (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11830         (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11831         (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11832         (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11833         (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11834         (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11835
11836 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11837
11838         Remove the gdbtui binary.
11839         * .gitignore (/gdbtui): Remove.
11840         * Makefile.in (TUI): Remove.
11841         (SUBDIR_TUI_OBS): Remove tui-main.o.
11842         (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11843         (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11844         (tui-main.o): Remove.
11845         (all_object_files): Remove tui-main.o.
11846         * NEWS: New note for the gdbtui removal.
11847         * configure: Rebuilt.
11848         * configure.ac: No longer add all-tui, clean-tui, install-tui and
11849         uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11850         CONFIG_UNINSTALL respectively.
11851         * gdb.c (main): Remove args.interpreter_p initialization.
11852         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11853         * main.h (struct captured_main_args): Remove interpreter_p.
11854         * tui/tui-main.c: Remove.
11855
11856 2012-01-01  Doug Evans  <dje@google.com>
11857
11858         * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11859         (dwarf2_physname, read_import_statement): Ditto.
11860         (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11861         (process_structure_scope read_subroutine_type): Ditto.
11862         (read_typedef, load_partial_dies, read_partial_die): Ditto.
11863         (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11864         (dwarf2_fetch_die_location_block): Ditto.
11865         (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11866
11867         * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11868         All callers updated.
11869         (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11870         (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11871         (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11872
11873         * dwarf2read.c (load_cu): Move assert to more useful location.
11874
11875         * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11876         All callers updated.
11877
11878         * dwarf2read.c (dwarf2_per_objfile): Add comment.
11879         (dwarf2_elf_names): Minor reformat.
11880         (dwarf2_per_cu_data): Tweak comment.
11881         (dwarf2_read_section): Fix comment.
11882         (create_all_comp_units): Fix comment.
11883         (load_full_comp_unit): Fix comment.
11884         (process_full_comp_unit): Fix comment.
11885         (read_signatured_type): Fix comment.
11886
11887 For older changes see ChangeLog-2011.
11888 \f
11889 Local Variables:
11890 mode: change-log
11891 left-margin: 8
11892 fill-column: 74
11893 version-control: never
11894 coding: utf-8
11895 End: