7f0d3e2c9497b689b181d5002380ec11783a0b9f
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2012-11-21  Yao Qi  <yao@codesourcery.com>
2
3         PR tdep/7438
4         * gdbarch.sh (smash_text_address): Remove.
5         * gdbarch.c, gdbarch.h: Regenerate.
6         * arm-tdep.c (arm_smash_text_address): Remove.
7         (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
8         * hppa-tdep.c (hppa_smash_text_address): Remove.
9         (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
10         (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
11         Caller update.
12         * coffread.c (coff_symtab_read): Caller update.
13         * dbxread.c (process_one_symbol): Likewise.
14         * elfread.c (record_minimal_symbol): Likewise.
15         * somread.c (som_symtab_read): Likewise.
16
17 2012-11-20  Pierre Muller  <muller@sourceware.org>
18
19         ARI fixes: sprintf rule.
20         Replace sprintf function calls for char arrays by
21         calls to xsnprintf calls.
22         * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
23         (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
24         (arm_neon_quad_read, arm_pseudo_read): Ditto.
25         (arm_neon_quad_write, arm_pseudo_write): Ditto.
26         * breakpoint.c (condition_completer): Ditto.
27         (create_tracepoint_from_upload): Ditto.
28         * dwarf2read.c (file_full_name): Ditto.
29         * gcore.c (gcore_command): Ditto.
30         * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
31         * go32-nat.c (go32_sysinfo): Ditto.
32         * interps.c (interp_set): Ditto.
33         * m32c-tdep.c (make_types): Ditto.
34         * ppc-linux-nat.c (fetch_register, store_register): Ditto.
35         * remote-m32r-sdi.c (m32r_open): Ditto.
36         * sol-thread.c (td_err_string): Ditto.
37         (td_state_string, solaris_pid_to_str): Ditto.
38         * symtab.c (gdb_mangle_name): Ditto.
39         * cli/cli-script.c (execute_control_command): Ditto.
40         (define_command, document_command): Ditto.
41         * tui/tui-io.c (tui_rl_display_match_list): Ditto.
42         * tui/tui-stack.c (tui_make_status_line): Ditto.
43         * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
44
45 2012-11-20  Mike Frysinger  <vapier@gentoo.org>
46
47         * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
48         it when looking at ptr->func.
49         * command.h (complete_on_cmdlist): Add a fourth arg.
50         * completer.c (complete_line_internal): Add local ignore_help_classes,
51         and set it to 1 when reason is not handle_help.  Pass this down to
52         lookup_cmd_1 and complete_on_cmdlist.
53
54 2012-11-20  Tom Tromey  <tromey@redhat.com>
55
56         * completer.c (count_struct_fields): Remove.
57         (expression_completer): Don't call count_struct_fields.
58
59 2012-11-20  Pedro Alves  <palves@redhat.com>
60
61         * annotate.c (breakpoints_changed): Rename to ...
62         (annotate_breakpoints_changed): ... this.
63         (annotate_stopped, breakpoint_changed): Adjust caller.
64         * annotate.h (breakpoints_changed): Rename to ...
65         (annotate_breakpoints_changed): ... this.
66         * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
67         (do_map_commands_command, init_raw_breakpoint, clear_command)
68         (set_ignore_count, enable_breakpoint_disp): Adjust callers.
69
70 2012-11-20  David S. Miller  <davem@davemloft.net>
71
72         * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
73         (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
74         sysconf.
75         (get_cores_used_by_process): Update comment.
76
77 2012-11-20  Yao Qi  <yao@codesourcery.com>
78
79         * objfiles.c (init_entry_point_info): Remove trailing spaces.
80
81 2012-11-20  Yao Qi  <yao@codesourcery.com>
82
83         * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
84         to deprecated_context_hook.
85
86 2012-11-19  Yao Qi  <yao@codesourcery.com>
87
88         * infrun.c (infwait_state): Add static.
89
90 2012-11-16  Keith Seitz  <keiths@redhat.com>
91
92         PR c++/13615
93         * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
94         parameter and pass it to lookup_symbol_file.
95         (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
96         to search base classes.
97         (cp_lookup_symbol_namespace): Likewise.
98         (lookup_namespace_scope): Likewise.
99         (lookup_symbol_file): Add SEARCH parameter.
100         If SEARCH is non-zero and no symbol is found, lookup the class
101         and call cp_lookup_nested_symbol.
102         (find_symbol_in_baseclass): New function.
103         (cp_lookup_nested_symbol): Do not let
104         cp_lookup_symbol_in_namespace search through base classes.
105         Do that later when there is no global symbol match.
106
107 2012-11-16  Doug Evans  <dje@google.com>
108
109         * main.c (gdb_datadir_provided): New static global.
110         (get_init_files): If --data-directory is provided,
111         and SYSTEM_GDBINIT lives in data-directory, look for it there.
112         * NEWS: Mention it.
113
114 2012-11-15  Pierre Muller  <muller@sourceware.org>
115
116         ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
117         * gdb_stat.h: Delete. Moved to common directory.
118         * common/gdb_stat.h: New file.
119         * gdb_wait.h: Delete. Moved to common directory.
120         * common/gdb_wait.h: New file.
121         * Makefile.in (H_FILES_NO_SRC): Adapt to new header
122         location.
123         * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
124         location.
125         (stat.h rule): Adapt to new gdb_stat.h location.
126         * common/linux-osdata.c: Include "gdb_stat.h" header instead of
127         <sys/stat.h> header.
128         * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
129         <sys/wait.h> header.
130
131 2012-11-15  Pierre Muller  <muller@sourceware.org>
132
133         * configure.ac (AC_HEADER_STAT): Remove.
134         * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
135         and corresponding code.
136         * configure: Regenerate.
137         * config.in: Regenerate.
138
139 2012-11-15  Pierre Muller  <muller@sourceware.org>
140
141         ARI xasprintf rule fixes.
142         * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
143         instead of xasprintf.
144         (open_and_init_dwp_file): Ditto.
145
146 2012-11-14  Luis Machado  <lgustavo@codesourcery.com>
147
148         * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
149         target types.
150
151 2012-11-14  Tom Tromey  <tromey@redhat.com>
152
153         * configure, config.in: Rebuild.
154         * configure.ac: Don't check for ctype.h, time.h.
155         * expprint.c: Don't use HAVE_CTYPE_H.
156
157 2012-11-13  Tom Tromey  <tromey@redhat.com>
158
159         * gdbarch.h, gdbarch.c: Rebuild.
160         * gdbarch.sh (set_target_gdbarch): Rename from
161         deprecated_target_gdbarch_select_hack.
162         * arch-utils.c (gdbarch_update_p): Update.
163         (set_gdbarch_from_file): Update.
164
165 2012-11-14  Pierre Muller  <muller@sourceware.org>
166
167         * MAINTAINERS (Responsible Maintainers/misc): Add myself
168         as responsible of contrib/ari directory.
169
170 2012-11-14  Daniel Jacobowitz  <dan@codesourcery.com>
171             Yao Qi  <yao@codesourcery.com>
172
173         * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
174         bit of EXC_RETURN.
175         (arm_m_exception_cache, arm_m_exception_this_id)
176         (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
177         (arm_m_exception_unwind): New.
178         (arm_gdbarch_init): Register arm_m_exception_unwind.
179
180 2012-11-13  Giuseppe Montalto  <giuseppe.montalto@st.com>
181
182         * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
183         parameter COUNT, for pattern filling of memory regions.
184         * NEWS: Mention it.
185
186 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
187
188         * disasm.h (DISASSEMBLY_FILENAME): New macro.
189         * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
190         to print_source_lines ().
191         * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
192         flag.
193         * source.c (print_source_lines_base): Prefix source line with
194         filename if PRINT_SOURCE_LINES_FILENAME flag is set.
195
196 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
197
198         * symtab.h (print_source_lines_flags): New enum.
199         * source.c (print_source_lines_base): Change noerror to flags.
200         (print_source_lines): Change noerror to flags.
201
202 2012-11-13  Pierre Muller  <muller@sourceware.org>
203
204         ARI fixes: Avoid sprintf function use rule.
205         * charset.c (convert_between_encodings): Use xsnprintf.
206         * cli-out.c (cli_field_int): Likewise.
207         * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
208         * expprint.c (op_name_standard): Likewise.
209         * frv-tdep.c (set_variant_num_gprs): Likewise.
210         (set_variant_num_fprs): Likewise.
211         * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
212         * nto-tdep.c (nto_find_and_open_solib): Likewise.
213         (nto_init_solib_absolute_prefix): Likewise.
214         * source.c (init_source_path): Likewise.
215         (print_source_lines_base): Likewise.
216         * valprint.c (print_wchar): Likewise.
217         * mi/mi-out.c (mi_field_int): Likewise.
218         windows-nat.c (windows_pid_to_exec_file): Likewise.
219         (windows_create_inferior): Likewise.
220         (_initialize_check_for_gdb_ini): Likewise.
221
222 2012-11-12  Joel Brobecker  <brobecker@adacore.com>
223
224         * frame.h (deprecated_frame_register_read): Renames
225         frame_register_read.
226         * frame.c (deprecated_frame_register_read): Renames
227         frame_register_read.  Update all callers.
228         * i386-tdep.c: Update all callers of frame_register_read.
229         * infcmd.c: Likewise.
230         * jit.c: Likewise.
231         * mips-tdep.c: Likewise.
232         * mt-tdep.c: Likewise.
233         * sh64-tdep.c: Likewise.
234
235 2012-11-12  Joel Brobecker  <brobecker@adacore.com>
236
237         * frame.h (frame_register_read): Remove FIXME comment.
238         * frame.c (frame_register_read): Add suggestion explaining
239         which function to use in place of this one.
240
241 2012-11-12  Tom Tromey  <tromey@redhat.com>
242
243         * python/python.c (start_type_printers): Initialize 'result_obj'.
244
245 2012-11-12  Tom Tromey  <tromey@redhat.com>
246
247         * NEWS: Update.
248         * data-directory/Makefile.in (PYTHON_FILES): Add
249         type_printers.py.
250         * python/lib/gdb/command/type_printers.py: New file.
251         * python/lib/gdb/command/types.py (TypePrinter): New class.
252         (_get_some_type_recognizers, get_type_recognizers,
253         apply_type_recognizers, register_type_printer): New
254         functions.
255         * python/py-objfile.c (objfile_object) <type_printers>: New
256         field.
257         (objfpy_dealloc): Decref new field.
258         (objfpy_new): Set new field.
259         (objfpy_get_type_printers, objfpy_set_type_printers): New
260         functions.
261         (objfile_to_objfile_object): Set new field.
262         (objfile_getset): Add "type_printers".
263         * python/py-progspace.c (pspace_object) <type_printers>: New
264         field.
265         (pspy_dealloc): Decref new field.
266         (pspy_new): Set new field.
267         (pspy_get_type_printers, pspy_set_type_printers): New functions.
268         (pspace_to_pspace_object): Set new field.
269         (pspace_getset): Add "type_printers".
270         * python/python.c (start_type_printers, apply_type_printers,
271         free_type_printers): New functions.
272         (_initialize_python): Set gdb.type_printers.
273         * python/python.h (start_type_printers, apply_type_printers,
274         free_type_printers): Declare.
275         * typeprint.c (type_print_raw_options, default_ptype_flags):
276         Update for new fields.
277         (do_free_global_table, create_global_typedef_table,
278         find_global_typedef): New functions.
279         (find_typedef_in_hash): Use find_global_typedef.
280         (whatis_exp): Use create_global_typedef_table.  Change cleanup
281         handling.
282         * typeprint.h (struct type_print_options) <global_typedefs,
283         global_printers>: New fields.
284
285 2012-11-12  Tom Tromey  <tromey@redhat.com>
286
287         * c-typeprint.c (find_typedef_for_canonicalize,
288         print_name_maybe_canonical): New functions.
289         (c_print_type): Look up type name.
290         (cp_type_print_derivation_info): Add flags argument.  Use
291         print_name_maybe_canonical.
292         (cp_type_print_method_args): Add wrapping.
293         (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
294         (c_type_print_template_args): New function.
295         (c_type_print_base): Change wrapping.  Use
296         print_name_maybe_canonical.
297         <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
298         type name lookups.
299         * gdbtypes.c (types_equal): No longer static.
300         * gdbtypes.h (types_equal): Declare.
301         * typeprint.c (type_print_raw_options, default_ptype_flags):
302         Update.
303         (struct typedef_hash_table): New.
304         (hash_typedef_field, eq_typedef_field,
305         recursively_update_typedef_hash, add_template_parameters,
306         create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
307         make_cleanup_free_typedef_hash, copy_typedef_hash_element,
308         copy_typedef_hash, find_typedef_in_hash): New functions.
309         * typeprint.h (struct type_print_options) <local_typedefs>:
310         New field.
311         (recursively_update_typedef_hash, add_template_parameters,
312         create_typedef_hash, free_typedef_hash,
313         make_cleanup_free_typedef_hash, copy_typedef_hash,
314         find_typedef_in_hash): Declare.
315
316 2012-11-12  Tom Tromey  <tromey@redhat.com>
317
318         * cp-support.c (inspect_type,
319         replace_typedefs_qualified_name, replace_typedefs): Add
320         finder, data arguments.  Call as needed.
321         (cp_canonicalize_string_full): New function.
322         (cp_canonicalize_string_no_typedefs): Rewrite.
323         * cp-support.h (canonicalization_ftype): New typedef.
324         (cp_canonicalize_string_full): Declare.
325
326 2012-11-12  Tom Tromey  <tromey@redhat.com>
327
328         * NEWS: Update.
329         * c-typeprint.c (c_type_print_base): Handle print_method and
330         print_typedefs flags.
331         * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
332         * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
333         options.
334         * typeprint.c (type_print_raw_options, default_ptype_flags):
335         Update for new field.s
336         (whatis_exp): Parse flags.  Use LA_PRINT_TYPE.
337         (setprinttypelist, showprinttypelist, print_methods,
338         print_typedefs): New globals.
339         (set_print_type, show_print_type, set_print_type_methods,
340         show_print_type_methods, set_print_type_typedefs,
341         show_print_type_typedefs): New functions.
342         (_initialize_typeprint): Update documentation.  Add "print
343         type methods" and "print type typedefs" parameters.
344         * typeprint.h (struct type_print_options) <print_methods,
345         print_typedefs>: New fields.
346
347 2012-11-12  Tom Tromey  <tromey@redhat.com>
348
349         * c-typeprint.c (cp_type_print_method_args): Add flags
350         argument.  Call c_print_type, not type_print.
351         (c_type_print_base): Call c_print_type, not type_print.
352         Update.
353
354 2012-11-12  Tom Tromey  <tromey@redhat.com>
355
356         * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
357         to type-printing functions.
358         * ada-lang.h (ada_print_type): Add argument.
359         * ada-typeprint.c (print_array_type, print_variant_clauses,
360         print_variant_part, print_selected_record_field_types,
361         print_record_field_types, print_unchecked_union_type,
362         print_func_type, ada_print_type): Add flags argument.
363         (ada_print_typedef): Update.
364         * c-exp.y (OPERATOR conversion_type_id): Update.
365         * c-lang.h (c_print_type, c_type_print_base): Update.
366         * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
367         c_type_print_modifier, c_type_print_args,
368         c_type_print_varspec_suffix, c_type_print_base): Add flags
369         argument.
370         * cp-valprint.c (cp_print_class_member): Update.
371         * dwarf2read.c (dwarf2_compute_name): Update.
372         * f-lang.h (f_print_type): Add argument.
373         * f-typeprint.c (f_print_type): Add flags argument.
374         * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
375         * go-lang.h (go_print_type): Add argument.
376         * go-typeprint.c (go_print_type): Add flags argument.
377         * jv-lang.h (java_print_type): Add argument.
378         * jv-typeprint.c (java_type_print_base, java_print_type): Add
379         flags argument.
380         * language.c (unk_lang_print_type): Add flags argument.
381         * language.h (struct language_defn) <la_print_type>: Add flags
382         argument.
383         (LA_PRINT_TYPE): Likewise.
384         * m2-lang.h (m2_print_type): Add argument.
385         * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
386         m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
387         m2_unbounded_array, m2_record_fields): Add flags argument.
388         * p-lang.h (pascal_print_type, pascal_type_print_base,
389         pascal_type_print_varspec_prefix): Add argument.
390         * p-typeprint.c (pascal_print_type,
391         pascal_type_print_varspec_prefix, pascal_print_func_args,
392         pascal_type_print_varspec_suffix, pascal_type_print_base): Add
393         flags argument.
394         * symmisc.c (print_symbol): Update.
395         * typeprint.c (type_print_raw_options, default_ptype_flags):
396         New globals.
397         (type_print): Update.
398         * typeprint.h (struct type_print_options): New.
399         (type_print_raw_options): Declare.
400         (c_type_print_varspec_suffix, c_type_print_args): Add argument.
401
402 2012-11-10  Keith Seitz  <keiths@redhat.com>
403
404         * breakpoint.c (clear_command): Add cleanup for
405         sals.sals if an argument is given.
406
407         * linespec.c (parse_linespec): Do cleanups after
408         parsing a convenience variable.
409
410 2012-11-10  Keith Seitz  <keiths@redhat.com>
411
412         PR gdb/14288
413         * c-valprint.c (c_val_print): For character arrays
414         with "print null" option on, print ellipses if
415         the output is truncated and the next character is not \000.
416         * valprint.c (MAX_WCHARS): Define.
417         (WCHAR_BUFLEN): Likewise.
418         (WCHAR_BUFLEN_MAX): Likewise.
419         (struct converted_character): New structure.
420         (count_next_character): New function.
421         (print_converted_chars_to_obstack): New function.
422         (generic_printstr): Rewrite using count_next_character
423         and print_converted_chars_to_obstack.
424
425 2012-11-10  Stephane Carrez  <Stephane.Carrez@gmail.com>
426
427         * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
428         while executing the gdb command.
429         (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
430         are called from prompt_for_continue.
431         * tui/tui-io.c (tui_redisplay_readline): Likewise.
432
433 2012-11-10  Stephane Carrez  <Stephane.Carrez@gmail.com>
434
435         PR tui/9584
436
437         * tui/tui.c (tui_rl_command_key): Do not call execute_command
438         but insert the command to execute in readline's buffer.
439
440 2012-11-09  Tom Tromey  <tromey@redhat.com>
441
442         * gdbarch.sh (target_gdbarch): Remove macro.
443         (get_target_gdbarch): Rename to target_gdbarch.
444         * gdbarch.c, gdbarch.h: Rebuild.
445         * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
446         arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
447         darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
448         filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
449         ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
450         linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
451         mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
452         mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
453         nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
454         procfs.c, progspace.c, ravenscar-thread.c, record.c,
455         remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
456         rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
457         solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
458         solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
459         solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
460         spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
461         target-descriptions.c, target.c, target.h, tracepoint.c,
462         windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
463         common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
464         python/py-inferior.c, python/python.c: Update.
465
466 2012-11-09  Andrew Burgess  <aburgess@broadcom.com>
467
468         * source.c (print_source_lines_base): Add fullname field giving
469         full path to file in mi output.
470         * NEWS: Mention the new fullname field.
471
472 2012-11-09  Yao Qi  <yao@codesourcery.com>
473
474         * NEWS: Mention the fix to the ambiguity of 'fo' command.
475
476 2012-11-09  Pedro Alves  <palves@redhat.com>
477
478         PR gdb/14306
479
480         * infrun.c: Include target-descriptions.h.
481         (follow_exec): Fetch new target description.
482
483 2012-11-09  Yao Qi  <yao@codesourcery.com>
484
485         * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
486         0x8d (lea).
487
488 2012-11-09  Yao Qi  <yao@codesourcery.com>
489
490         * breakpoint.c: Declare set_tracepoint_count.
491         (install_breakpoint): Call set_tracepoint_count if B is a
492         tracepoint.
493         (trace_command): Don't call set_tracepoint_count.  Re-indent.
494         (strace_command, ftrace_command):
495         (create_tracepoint_from_upload): Likewise.
496
497 2012-11-09  Pedro Alves  <palves@redhat.com>
498
499         * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
500         (get_target_gdbarch) <gdbarch.h>: New function.
501         (startup_gdbarch) <gdbarch.h>: Declare.
502         <gdbarch.c> (target_gdbarch): Delete.
503         <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
504         current inferior's gdbarch.
505         <gdbarch.c> (get_target_gdbarch): New function.
506         * inferior.c: Include target-descriptions.h.
507         (free_inferior): Free target description info.
508         (add_inferior_with_spaces): Set the inferior's initial
509         architecture.
510         (clone_inferior_command): Copy the original inferior's target
511         description if it was user specified.
512         (initialize_inferiors): Add comment.
513         * inferior.h (struct target_desc_info): Forward declare.
514         (struct inferior) <gdbarch>: New field.
515         * linux-nat.c: Include target-descriptions.h.
516         (linux_child_follow_fork): Copy the parent's architecture and
517         target description to the child.
518         * target-descriptions.c: Include inferior.h.
519         (struct target_desc_info): New structure, holding the equivalents
520         of ...
521         (target_desc_fetched, current_target_desc)
522         (target_description_filename): ... these removed globals.
523         (get_tdesc_info, target_desc_info_from_user_p)
524         (copy_inferior_target_desc_info, target_desc_info_free): New.
525         (target_desc_fetched, current_target_desc)
526         (target_description_filename): Reimplemented as convenience
527         macros.
528         (tdesc_filename_cmd_string): New global.
529         (set_tdesc_filename_cmd): Copy the string manipulated by the "set
530         tdescs filename ..." commands to the per-inferior equivalent.
531         (show_tdesc_filename_cmd): Get the value to show from the
532         per-inferior description filename.
533         (_initilize_target_descriptions): Change the "set/show tdesc
534         filename" commands' variable.
535         * target-descriptions.h (struct target_desc, struct target_desc_info)
536         (struct inferior): Forward declare.
537         (target_find_description, target_clear_description)
538         (target_current_description): Adjust comments.
539         (copy_inferior_target_desc_info, target_desc_info_free)
540         (target_desc_info_from_user_p). Declare.
541
542 2012-11-08  Stephane Carrez  <Stephane.Carrez@gmail.com>
543
544         * tui/tui-hooks.c (tui_about_to_proceed): New function.
545         (tui_target_wait_hook): Remove.
546         (tui_install_hooks): Install the about_to_proceed observer.
547         (tui_remove_hooks): And remove it here.
548
549 2012-11-08  Tom Tromey  <tromey@redhat.com>
550
551         * linux-tdep.c (linux_make_siginfo_note): New function.
552         (linux_make_corefile_notes): Use it.
553         * corelow.c (get_core_siginfo): New function.
554         (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
555
556 2012-11-08  Tom Tromey  <tromey@redhat.com>
557
558         PR gdb/14704:
559         * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
560         (zlib_decompress_section): Remove.
561         (gdb_bfd_map_section): Only check for compressed section
562         in mmap case.  Use bfd_get_full_section_contents.
563         * osabi.c (check_note): Add 'sectsize' argument.  Read
564         section data.
565         (generic_elf_osabi_sniff_abi_tag_sections): Don't read
566         section data.  Update for check_note change.
567         * xcoffread.c (xcoff_initial_scan): Use
568         bfd_get_full_section_contents.
569         * py-auto-load.c (auto_load_section_scripts): Use
570         bfd_get_full_section_contents.
571         * contrib/cc-with-tweaks.sh: Add -Z option.
572
573 2012-11-08  Tom Tromey  <tromey@redhat.com>
574
575         * python/py-bpevent.c: Include defs.h.
576         * python/py-continueevent.c: Include defs.h.
577         * python/py-event.c: Include defs.h.
578         * python/py-event.h: Don't include defs.h.
579         * python/py-events.h: Don't include defs.h.
580         * python/py-evts.c: Include defs.h.
581         * python/py-exitedevent.c: Include defs.h.
582         * python/py-newobjfileevent.c: Include defs.h.
583         * python/py-signalevent.c: Include defs.h.
584         * python/py-stopevent.c: Include defs.h.
585         * python/py-threadevent.c: Include defs.h.
586
587 2012-11-08  Pierre Muller  <muller@sourceware.org>
588
589         * update-web-ari.sh (print_heading): Add number of files
590         checked.
591         (nb_files): New variable counting the number of sources
592         files found by gdb_find.sh script.
593         (debug_awk): New variable to allow extra debug output.
594         (indexes): Add more information if DEBUG_AWK is set.
595
596 2012-11-08  Edjunior Machado  <emachado@linux.vnet.ibm.com>
597
598         * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
599         ppc64_standard_linkage3): Mark ld r11 instructions as optional,
600         following the change in PLT call stubs on linker.
601
602 2012-11-08  Pierre Muller  <muller@sourceware.org>
603
604         * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
605         as default language.
606         (AWK): Use = instead of == for sh test to avoid warning.
607         (Linux rule): Correct [:digit] into [[:digit:]].
608         (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
609         (vasprintf rule): Adapt to common subdirectory moves.
610         (xasprintf rule): Idem.
611         (xvasprintf rule): Idem.
612         (var_boolean rule): Accept occurence in == or != test.
613
614         * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
615
616 2012-11-08  Stephane Carrez  <Stephane.Carrez@gmail.com>
617
618         * tui/tui-hooks.c (tui_inferior_exit): New function.
619         (tui_detach_hook): Remove.
620         (tui_install_hooks): Install the inferior exit observer.
621         (tui_remove_hooks): Remove it.
622
623 2012-11-08  Yao Qi  <yao@codesourcery.com>
624
625         PR gdb/14777.
626         * source.c (_initialize_source): Call add_com_alias to abbreviate
627         'forward-search' as 'fo'.
628
629 2012-11-07  Pedro Alves  <palves@redhat.com>
630
631         * arm-tdep.c: Make defs.h be the first include.
632         * coff-pe-read.c: Ditto.
633         * gnu-nat.c: Ditto.
634         * go32-nat.c: Ditto.
635         * i386-nat.c: Ditto.
636         * ppcnbsd-nat.c: Ditto.
637         * ada-varobj.h: Don't include defs.h.
638         * i386-darwin-tdep.h: Ditto.
639         * i386-nat.h: Ditto.
640
641 2012-11-07  Pedro Alves  <palves@redhat.com>
642
643         * MAINTAINERS: New FSF-appointed maintainers replace the Steering
644         Committee.
645
646 2012-11-07  Pierre Muller  <muller@sourceware.org>
647
648         * common/linux-osdata.c (dirent.h): ARI fix: Remove.
649         File already uses "gdb_dirent.h" header.
650
651 2012-11-07  Yao Qi  <yao@codesourcery.com>
652
653         * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
654         tracepoint_count'.
655
656 2012-11-06  Tom Tromey  <tromey@redhat.com>
657
658         * target.h (inferior_has_forked, inferior_has_vforked)
659         (inferior_has_execd, inferior_has_called_syscall): Remove
660         declarations.
661
662 2012-11-06  Pierre Muller  <muller@sourceware.org>
663
664         * remote.c (remote_insert_hw_breakpoint): ARI fix,
665         add missing internalization markup.
666
667 2012-11-06  Pedro Alves  <palves@redhat.com>
668
669         PR gdb/14810
670
671         * breakpoint.c (bpstat_stop_status): Skip disabled locations.
672
673 2012-11-06  Pierre Muller  <muller@sourceware.org>
674
675         * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
676         is not executable.
677
678 2012-11-05  Joel Brobecker  <brobecker@adacore.com>
679
680         * gnulib/update-gnulib.sh: New script.
681
682 2012-11-05  Stephane Carrez  <Stephane.Carrez@gmail.com>
683
684         * MAINTAINERS: Update my email address.
685
686 2012-11-05  Tom Tromey  <tromey@redhat.com>
687
688         * frame.c (put_frame_register): Don't use temporary buffer.
689
690 2012-11-05  Pedro Alves  <palves@redhat.com>
691
692         * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
693         child.  Clear 'pending_detach'.
694         * infrun.c (handle_vfork_child_exec_or_exit): Clear
695         'pending_detach' in the vfork parent.
696
697 2012-11-05  Doug Evans  <dje@google.com>
698
699         Add support for DWP files.  http://gcc.gnu.org/wiki/DebugFissionDWP
700         * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
701         * dwarf2read.c: #include "elf-bfd.h".
702         (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
703         (dwop_section_names): Renamed from dwo_section names.  All uses
704         updated.  Add entries for .debug_cu_index, .debug_tu_index.
705         (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
706         All uses updated.
707         (struct dwp_sections): New type.
708         (struct virtual_dwo_sections): New type.
709         (struct dwp_hash_table): New type.
710         (struct dwp_file): New type.
711         (init_cutu_and_read_dies): Ensure DWO info/types section has been
712         read in.  Handle DWOs coming from DWP files.
713         (lookup_dwo_file_slot): New function.
714         (dwarf2_locate_dwo_sections): Move definition closer to use.
715         (create_dwo_debug_info_hash_table_reader): Renamed from
716         create_debug_info_hash_table_reader.  All callers updated.
717         (create_dwo_debug_info_hash_table): Renamed from
718         create_debug_info_hash_table.  All callers updated.
719         (create_dwp_hash_table): New function.
720         (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
721         (lookup_dwo_in_dwp): New function.
722         (try_open_dwop_file): Renamed from try_open_dwo_file.  New parameter
723         is_dwp.  All callers updated.
724         (open_dwop_file): Renamed from open_dwo_file.  All callers updated.
725         (open_and_init_dwo_file): Renamed from init_dwo_file.
726         All callers updated.
727         (lookup_dwo_file): Delete.
728         (dwarf2_locate_dwp_sections): New function.
729         (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
730         (allocate_dwp_loaded_cutus_table): New function.
731         (open_and_init_dwp_file): New function.
732         (lookup_dwo_cutu): New function.
733         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
734
735 2012-11-03  Yao Qi  <yao@codesourcery.com>
736
737         Fix PR gdb/14617.
738         * breakpoint.c (trace_pass_set_count): Call
739         observer_notify_breakpoint_modified instead of
740         observer_notify_tracepoint_modified.
741         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
742
743 2012-11-02  Tom Tromey  <tromey@redhat.com>
744
745         * breakpoint.c (catch_syscall_completer): Pass 'word' as second
746         argument to complete_on_enum.
747
748 2012-11-02  Tom Tromey  <tromey@redhat.com>
749
750         * configure: Rebuild.
751         * configure.ac (build_warnings): Add -Wempty-body.
752         * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
753         * remote.c (handle_notification): Use braces for empty 'else' body.
754         * s390-tdep.c (s390_analyze_prologue): Use braces for empty
755         'else' body.
756         * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
757         'else' body.
758         * solib-som.c (som_relocate_section_addresses): Use braces
759         for empty 'else' body.
760         * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
761         (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
762
763 2012-11-02  Pedro Alves  <palves@redhat.com>
764
765         PR gdb/14766
766
767         * infrun.c (handle_inferior_event)
768         <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
769         null_ptid before handling a vfork child exec or exit.  Switch to
770         the event ptid afterwards.
771
772 2012-11-02  Yao Qi  <yao@codesourcery.com>
773
774         * std-operator.def: Remove OP_LABELED.
775         * eval.c: Remove the declaration of 'get_label'.
776         (get_label): Remove.
777         (evaluate_struct_tuple): Remove code handling OP_LABELED.
778         Update comment.
779         Remove local variable 'variantno' and related code.
780         Replace 'substruct_type' with 'struct_type'.  Replace 'subfieldno'
781         with 'fieldno'.
782         * expprint.c (print_subexp_standard): Likewise.
783         (dump_subexp_body_standard): Likewise.
784         * parse.c (operator_length_standard): Likewise.
785
786 2012-11-01  Pierre Muller  <muller@ics.u-strasbg.fr>
787
788         Incorporate ARI web page generator into GDB sources.
789         * contrib/ari/create-web-ari-in-src.sh: New file.
790         * contrib/ari/gdb_ari.sh: New file.
791         * contrib/ari/gdb_find.sh: New file.
792         * contrib/ari/update-web-ari.sh: New file.
793
794 2012-10-31  Tom Tromey  <tromey@redhat.com>
795
796         * gdbarch.c: Rebuild.
797         * gdbarch.sh: Remove references to gdbarch_swap.
798         * corelow.c (core_open): Remove obsolete comment.
799
800 2012-10-31  Andrew Burgess  <aburgess@broadcom.com>
801
802         PR cli/14772
803         * c-typeprint.c (c_print_type): Don't print a space for vector
804         types, this is handled within the suffix.
805         (c_type_print_varspec_suffix): Add a space to vector suffix.
806
807 2012-10-26  Pedro Alves  <palves@redhat.com>
808
809         * amd64-tdep.c (amd64_relocate_instruction): Use
810         store_unsigned_integer instead of memcpy.
811         * i386-tdep.c (i386_relocate_instruction): Ditto.
812
813 2012-10-26  Pedro Alves  <palves@redhat.com>
814
815         * infrun.c (handle_inferior_event): Merge handling of
816         TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
817         switch case.
818
819 2012-10-26  Pedro Alves  <palves@redhat.com>
820
821         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
822         Remove comment.
823
824 2012-10-26  Pedro Alves  <palves@redhat.com>
825
826         * target.c (target_waitstatus_to_string): Handle
827         TARGET_WAITKIND_VFORK_DONE.
828
829 2012-10-26  Pedro Alves  <palves@redhat.com>
830
831         * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
832         as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
833
834 2012-10-24  Tristan Gingold  <gingold@adacore.com>
835
836         * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
837         Add comments.
838
839 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
840
841         * ravenscar-thread.c (ravenscar_wait): Only update the list
842         of threads and inferior_ptid if the inferior is still alive.
843
844 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
845
846         * ada-lang.c (is_known_support_routine): Use lbasename when
847         matching the symtab's filename against
848         known_runtime_file_name_patterns.
849
850 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
851
852         * ada-lang.c (ada_same_array_size_p): New function.
853         (ada_promote_array_of_integrals): New function.
854         (coerce_for_assign): Add handling of arrays where the elements
855         are integrals of a smaller size than the size of the target
856         array element type.
857
858 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
859
860         * doublest.c (convert_doublest_to_floatformat): Fix comparison
861         against maximum exponent value.
862
863 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
864
865         * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
866         "unwind-seh.c".
867
868 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
869
870         * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
871         strip typedef layer when computing the fixed type's field type,
872         only when computing its size.
873
874 2012-10-24  Mark Kettenis  <kettenis@gnu.org>
875
876         PR gdb/12783
877         * i386-tdep.c (i386_return_value): Handle complex double and long
878         double.
879
880 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
881
882         * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
883         New local variable args_len.
884         Quote the name of the executable when computing the command line.
885
886 2012-10-23  Mark Kettenis  <kettenis@gnu.org>
887
888         PR gdb/12796
889         PR gdb/12798
890         PR gdb/12800
891         * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
892         AMD64_FTAG_REGNUM.
893         * amd64-tdep.c (amd64_classify): Classify complex types.
894         (amd64_return_value): Handle the COMPLEX_X87 class.
895
896 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
897
898         * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
899         (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
900
901 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
902
903         * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
904         function.
905         (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
906         to amd64_windows_auto_wide_charset.
907
908 2012-10-23  Yao Qi  <yao@codesourcery.com>
909
910         * event-top.c (mark_async_signal_handler_wrapper): Remove.
911         * event-top.h: Remove its declaration.
912         (async_request_quit): Call mark_async_signal_handler instead of
913         mark_async_signal_handler_wrapper.
914         (async_do_nothing, async_disconnect): Likewise.
915         (async_stop_sig): Likewise.
916         * remote.c (handle_remote_sigint): Likewise.
917         (handle_remote_sigint_twice): Likewise.
918
919 2012-10-23  Yao Qi  <yao@codesourcery.com>
920
921         * event-top.c (sigint_token, sighup_token): Replace 'void *'
922         with 'static struct async_signal_handler *'.
923         (sighup_token, sigquit_token, sigstp_token): Likewise.
924
925 2012-10-22  Ali Anwar  <ali_anwar@codesourcery.com>
926
927         * gdbarch.sh (function_list): Use 'pstring' when printing
928         a variable which could return NULL.
929         * gdbarch.c: Regenerate.
930
931 2012-10-10  Joel Brobecker  <brobecker@adacore.com>
932             Tom Tromey  <tromey@redhat.com>
933
934         * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
935         inneffective if condition by gdb assertion.  Add function
936         description comment.
937
938 2012-10-19  Joel Brobecker  <brobecker@adacore.com>
939
940         * parser-defs.h (struct exp_descriptor): Document constraint
941         on return value for "op_name" callbacks.
942
943 2012-10-18  Tom Tromey  <tromey@redhat.com>
944
945         * tracepoint.c (print_one_static_tracepoint_marker): Constify.
946         * symtab.c (iterate_over_some_symtabs): Constify.
947         * source.h (symtab_to_fullname): Return 'const char *'.
948         * source.c (symtab_to_fullname): Return 'const char *'.
949         * python/py-symtab.c (stpy_fullname): Constify.
950         * cli/cli-cmds.c (edit_command): Constify.
951         * breakpoint.c (print_breakpoint_location)
952         (update_static_tracepoint): Constify.
953
954 2012-10-18  Tom Tromey  <tromey@redhat.com>
955
956         * breakpoint.c (compare_breakpoints): Fix comparison.
957
958 2012-10-18  Tom Tromey  <tromey@redhat.com>
959
960         * valprint.c (generic_emit_char, generic_printstr): Pass size of
961         gdb_wchar_t to convert_between_encodings.
962
963 2012-10-17  Yao Qi  <yao@codesourcery.com>
964
965         * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
966         more parameter 'inferior'.
967         * corefile.c (write_memory_with_notification): Caller update.
968
969         * mi/mi-cmd-var.c: Include "mi-main.h".
970         (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
971         to 1 and restore it later.
972         * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
973         and "data-write-memory-bytes.
974         * mi/mi-interp.c: Include objfiles.h.
975         (mi_interpreter_init): Call observer_attach_memory_changed.
976         (mi_memory_changed): New.
977         * mi/mi-main.h (struct mi_suppress_notification) <memory>:
978         New field.
979
980         * NEWS: Mention new MI notification "memory-changed".
981
982 2012-10-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
983
984         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
985
986 2012-10-15  Doug Evans  <dje@google.com>
987
988         New option -nh: inhibit loading of ~/.gdbinit.
989         * NEWS: Mention -nh.
990         * main.c (captured_main): Recognize and process -nh.
991         (print_gdb_help): Mention -nh.
992         * gdb.1: Mention -nh.  Remove erroneous docs on -nx behavior.
993
994 2012-10-15  H.J. Lu  <hongjiu.lu@intel.com>
995
996         PR backtrace/14646
997         PR gdb/14647
998         * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
999         pc_regnum_from_eax.
1000         * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1001         nor pc_regnum_from_eax.
1002         * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1003         nor pc_regnum_from_eax.
1004
1005 2012-10-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
1006
1007         Fix entry values resolving in inlined frames.
1008         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1009         gdbarch and caller_frame initialization later.  Skip INLINE_FRAME
1010         entries of FRAME.
1011
1012 2012-10-15  Joel Brobecker  <brobecker@adacore.com>
1013
1014         * configure.ac: Build with -DMS_WIN64 if building with Python
1015         enabled using GCC on amd64-windows.
1016         * configure: Regenerate.
1017
1018 2012-10-15  Tom Tromey  <tromey@redhat.com>
1019
1020         PR python/14635:
1021         * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1022         to Py_None.
1023
1024 2012-10-15  Tom Tromey  <tromey@redhat.com>
1025
1026         PR python/14634:
1027         * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1028
1029 2012-10-11  Andrew Burgess  <aburgess@broadcom.com>
1030
1031         * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1032         reset thread numbering back to 1.
1033
1034 2012-10-11  Doug Evans  <dje@google.com>
1035
1036         PR breakpoints/14643.
1037         * linespec.c (struct ls_parser): New member keyword_ok.
1038         (linespec_lexer_lex_string): Add comment.
1039         (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1040         for one.
1041         (parse_linespec): Set keyword_ok.
1042
1043 2012-10-10  Doug Evans  <dje@google.com>
1044
1045         * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1046         "0x" prefix on address in log message.
1047
1048         * dwarf2read.c (read_1_byte): Add const to buf parameter.
1049         (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1050         (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1051         (lookup_dwo_file): Add const to dwo_name parameter.
1052         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1053
1054 2012-10-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
1055
1056         Fix crash during stepping on ppc32.
1057         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1058         SYM.
1059
1060 2012-10-03  Doug Evans  <dje@google.com>
1061
1062         PR symtab/14601
1063         * buildsym.c (buildsym_init): Reset using_directives to NULL.
1064
1065 2012-10-02  Andrew Burgess  <aburgess@broadcom.com>
1066
1067         * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1068         output and use uint32_t not long to ensure 4 byte size.
1069
1070 2012-10-02  Joel Brobecker  <brobecker@adacore.com>
1071
1072         * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1073         unref'ed it.
1074
1075 2012-10-01  Andrew Burgess  <aburgess@broadcom.com>
1076
1077         * target.c (simple_search_memory): Include access length in
1078         warning message.
1079
1080 2012-09-28  Nathan Miller  <nathanm2@us.ibm.com>
1081             Edjunior Machado  <emachado@linux.vnet.ibm.com>
1082
1083         PR gdb/13989
1084         * solib.c (solib_find): Prevent GDB from loading native libraries when
1085         debugging a cross-target corefile.
1086
1087 2012-09-28  selven  <pcthegreat@gmail.com>
1088
1089         Make definition match declaration.
1090
1091         * regcache.c (regcache_register_status): Change return type to
1092         enum register_status.
1093
1094 2012-09-28  Yao Qi  <yao@codesourcery.com>
1095
1096         * mi/mi-main.c (mi_cmd_data_write_memory): Call
1097         write_memory_with_notification instead of write_memory.
1098         (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1099         instead of target_write_memory.
1100
1101 2012-09-28  Yao Qi  <yao@codesourcery.com>
1102
1103         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1104         when the length of content is not an even number.
1105
1106 2012-09-27  Tom Tromey  <tromey@redhat.com>
1107
1108         Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1109         * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1110
1111 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1112
1113         * sol-thread.c (sol_thread_fetch_registers)
1114         (sol_thread_store_registers): Delete commented out code.
1115
1116 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1117
1118         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1119         Move these functions to sparc-sol-thread.c.
1120         * sparc-sol-thread.c: New file.
1121         * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1122         sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1123         configurations.
1124         * configure: Regenerate.
1125
1126 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1127
1128         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1129         Remove commented-out code.
1130
1131 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1132
1133         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1134         Enable this code for sparc hosts only.
1135
1136 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1137
1138         * procfs.h (procfs_find_LDT_entry): Add declaration.
1139         * sol-thread.c (ps_lgetLDT): Delete local declaration of
1140         function procfs_find_LDT_entry.
1141
1142 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1143
1144         * procfs.c (proc_get_LDT_entry): Make static.
1145
1146 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
1147
1148         * procfs.c (proc_find_memory_regions): Fix declaration.
1149
1150 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
1151
1152         * amd64-tdep.c (amd64_return_value): Revert previous change
1153         that used TYPE_LENGTH directly.
1154         * bfin-tdep.c (bfin_extract_return_value): Likewise.
1155         (bfin_store_return_value): Likewise.
1156         * cris-tdep.c (cris_store_return_value): Likewise.
1157         (cris_extract_return_value): Likewise.
1158         * h8300-tdep.c (h8300_extract_return_value): Likewise.
1159         * hppa-tdep.c (hppa64_return_value): Likewise.
1160         * lm32-tdep.c (lm32_store_return_value): Likewise.
1161         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1162         * spu-tdep.c (spu_value_from_register): Likewise.
1163         * vax-tdep.c (vax_return_value): Likewise.
1164
1165 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
1166
1167         * gdbtypes.c (lookup_array_range_type): Expand parameters
1168         LOW_BOUND and HIGH_BOUND to LONGEST.
1169         (lookup_string_range_type): Likewise.
1170         * gdbtypes.h (lookup_array_range_type): Likewise.
1171         (lookup_string_range_type): Likewise.
1172         * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1173         Expand HIGHBOUND to ssize_t.
1174         (value_string): Likewise.
1175         * value.h (value_cstring): Expand parameter LEN to ssize_t.
1176         (value_string): Likewise.
1177
1178 2012-09-27  Yao Qi  <yao@codesourcery.com>
1179
1180         PR breakpoints/13898
1181         * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1182         * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1183         per breakpoint type.
1184
1185 2012-09-26  Pierre Muller  <muller@ics.u-strasbg.fr>
1186
1187         * procfs.c: Add gdb_bfd header.
1188         * rs6000-nat.c: Likewise.
1189         * solib-pa64.c: Likewise.
1190         * spu-linux-nat.c: Likewise.
1191         * windows-nat.c: Likewise.
1192
1193 2012-09-26  Tom Tromey  <tromey@redhat.com>
1194
1195         * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1196
1197 2012-09-26  Tom Tromey  <tromey@redhat.com>
1198
1199         * dwarf2read.c (mark_common_block_symbol_computed): New function.
1200         (read_common_block): Handle child DIEs with
1201         DW_AT_data_member_location.
1202         (new_symbol_full): Add special case for common blocks.
1203
1204 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
1205             Tom Tromey  <tromey@redhat.com>
1206
1207         * dwarf2read.c (read_common_block): Rewrite.
1208         (new_symbol_full): Handle DW_TAG_common_block.
1209         * f-lang.c (head_common_list, find_common_for_function):
1210         Remove.
1211         * f-lang.h (struct common_entry, struct saved_f77_common,
1212         SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1213         COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1214         BLANK_COMMON_NAME_LOCAL): Remove.
1215         (struct common_block): New.
1216         * f-valprint.c (list_all_visible_commons): Remove.
1217         (info_common_command_for_block): New function.
1218         (info_common_command): Use it.
1219         * stack.c (iterate_over_block_locals): Special case for
1220         COMMON_BLOCK_DOMAIN.
1221         * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1222         constant.
1223         (struct general_symbol_info) <value.common_block>: New field.
1224         (SYMBOL_VALUE_COMMON_BLOCK): New define.
1225
1226 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
1227             Tom Tromey  <tromey@redhat.com>
1228
1229         * f-lang.c (allocate_saved_bf_node,
1230         allocate_saved_function_node, allocate_saved_f77_common_node,
1231         allocate_common_entry_node, tail_common_list, current_common,
1232         saved_bf_list, saved_bf_list_end, current_head_bf_list,
1233         tmp_bf_ptr, add_common_block, add_common_entry,
1234         find_first_common_named, patch_common_entries,
1235         patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1236         global_remote_debug, get_bf_for_fcn, saved_function_list,
1237         saved_function_list_end, clear_function_list, struct saved_fcn,
1238         struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1239         SAVED_BF, SAVED_BF_PTR): Remove.
1240         * f-lang.h (tail_common_list, current_common,
1241         UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1242         BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1243         DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1244         real_main_c_value): Remove.
1245         * f-valprint.c (there_is_a_visible_common_named): Remove.
1246
1247 2012-09-26  Andrew Burgess  <aburgess@broadcom.com>
1248
1249         * breakpoint.c (update_global_location_list): Ignore previous
1250         duplicate status of a breakpoint when starting a new scan for
1251         duplicate breakpoints.
1252
1253 2012-09-26  Karthik Bhat  <kv.bhat@samsung.com>
1254         PR breakpoints/14419
1255         * arm-tdep.c (arm_skip_prologue): Extending producer check to
1256         support LLVM compiler.
1257
1258 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1259
1260         * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
1261         * bfin-tdep.c (bfin_extract_return_value): Likewise.
1262         (bfin_store_return_value): Likewise.
1263         * cris-tdep.c (cris_store_return_value): Likewise.
1264         (cris_extract_return_value): Likewise.
1265         * h8300-tdep.c (h8300_extract_return_value): Likewise.
1266         * hppa-tdep.c (hppa64_return_value): Likewise.
1267         * lm32-tdep.c (lm32_store_return_value): Likewise.
1268         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1269         * spu-tdep.c (spu_value_from_register): Likewise.
1270         * vax-tdep.c (vax_return_value): Likewise.
1271
1272 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1273
1274         * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
1275         parameter LEN to ssize_t.
1276
1277 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1278
1279         * ada-valprint.c (ada_val_print_1): Eliminate single-use
1280         variable LEN.
1281         * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
1282         directly.
1283         (alpha_store_return_value): Likewise.
1284         * amd64-tdep.c (amd64_classify_aggregate): Likewise.
1285         (amd64_push_arguments): Likewise.
1286         * ax-gdb.c (gen_trace_static_fields): Likewise.
1287         (gen_traced_pop): Likewise.
1288         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1289         * breakpoint.c (update_watchpoint): Likewise.
1290         * findcmd.c (parse_find_args): Use local variable for type
1291         instead of length.
1292         * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
1293         * h8300-tdep.c (h8300h_extract_return_value): Likewise.
1294         (h8300_store_return_value): Likewise.
1295         * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1296         Use i386_darwin_arg_type_alignment directly.
1297         * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
1298         * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1299         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1300         (m68hc11_extract_return_value): Likewise.
1301         * mep-tdep.c (mep_push_dummy_call): Likewise.
1302         * printcmd.c (float_type_from_length): Likewise.
1303         * s390-tdep.c (s390_value_from_register): Likewise.
1304         * stack.c (read_frame_arg): Likewise.
1305         * tracepoint.c (encode_actions_1): Likewise.
1306         * valops.c (value_fetch_lazy): Use local variable for type
1307         instead of length.  Use TYPE_LENGTH directly.
1308         * value.c (value_contents_equal): Use TYPE_LENGTH directly.
1309
1310 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
1311
1312         * symtab.c (skip_prologue_sal): Fix typo in comment.
1313
1314 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
1315
1316         * linespec.c (create_sals_line_offset): Fix typo in comment.
1317
1318 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1319
1320         * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
1321         use plongest to print the array size.
1322
1323 2012-09-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
1324
1325         * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1326         * p-valprint.c (pascal_type_print_base): Likewise.
1327
1328 2012-09-22  Yao Qi  <yao@codesourcery.com>
1329
1330         * remote.c (remote_get_trace_status): Remove setting default
1331         values of fields of 'ts'.
1332
1333 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
1334
1335         Fix internal error on canonicalization of clang types.
1336         * cp-name-parser.y (operator): New comment at make_operator call for
1337         new, delete, new[] and delete[].
1338         (exp): Use "sizeof ".  Add new comment at make_operator call.
1339
1340 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
1341
1342         Fix disassemble without parameters in tailcall frame.
1343         * cli/cli-cmds.c (disassemble_current_function): Use
1344         get_frame_address_in_block.
1345
1346 2012-09-21  Tom Tromey  <tromey@redhat.com>
1347
1348         * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1349         TYPE_CODE_UNION>: Unify, removing a goto.
1350
1351 2012-09-21  Tom Tromey  <tromey@redhat.com>
1352
1353         * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1354
1355 2012-09-21  Andrew Burgess  <aburgess@broadcom.com>
1356
1357         * findvar.c (read_frame_register_value): Mark the result value as
1358         optimized out if any of the input registers have been optimized out.
1359
1360 2012-09-21  Andreas Schwab  <schwab@linux-m68k.org>
1361
1362         * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1363
1364 2012-09-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
1365
1366         * eval.c (evaluate_subexp_standard): Eliminate single-use
1367         variable LOWER.
1368
1369 2012-09-21  Yao Qi  <yao@codesourcery.com>
1370
1371         * mi/mi-interp.c: Declare mi_record_changed.
1372         (mi_interpreter_init): Call observer_attach_record_changed.
1373         (mi_record_changed): New.
1374         * record.c (record_open): Call observer_notify_record_changed.
1375         (cmd_record_stop): Call observer_notify_record_changed.
1376         * NEWS: Mention it.
1377
1378 2012-09-20  Tom Tromey  <tromey@redhat.com>
1379
1380         * NEWS: Update.
1381         * python/python.c (finalize_python): New function.
1382         (_initialize_python): Make a final cleanup.
1383
1384 2012-09-19  Doug Evans  <dje@google.com>
1385
1386         * buildsym.h (param_symbols): Delete, unused.
1387         (context_stack): Delete member "params", unused.
1388         * buildsym.c (push_context): Update.
1389         * dwarf2read.c (read_func_scope): Update.
1390
1391 2012-09-19  Thomas Schwinge  <thomas@codesourcery.com>
1392
1393         * sh-tdep.c (sh_register_convert_to_virtual)
1394         (sh_register_convert_to_raw): Add a gdbarch parameter.  Update
1395         all callers.  Just do a memcpy if not the little-endian case.
1396
1397         * h8300-tdep.c (h8300_gdbarch_init): Invoke
1398         set_gdbarch_double_format and set_gdbarch_long_double_format.
1399         * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1400         set_gdbarch_double_format.
1401         * sh-tdep.c (sh_gdbarch_init): Likewise.
1402
1403         * NEWS: Document the removal of SH's 'regs' command.
1404         * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1405         command.
1406
1407 2012-09-18  Sergio Durigan Junior  <sergiodj@redhat.com>
1408
1409         * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1410         `jump'.
1411
1412 2012-09-18  Joel Brobecker  <brobecker@adacore.com>
1413
1414         * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1415         language when iterating over symbols.
1416
1417 2012-09-18  Yao Qi  <yao@codesourcery.com>
1418
1419         * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1420         (mi_interpreter_init): Call observer_attach_tsv_created and
1421         observer_attach_tsv_deleted.
1422         (mi_tsv_created, mi_tsv_deleted): New.
1423         * tracepoint.c (delete_trace_state_variable): Call
1424         observer_notify_tsv_deleted.
1425         (trace_variable_command): Call observer_notify_tsv_created.
1426         (delete_trace_variable_command): Call
1427         observer_notify_tsv_deleted.
1428         (create_tsv_from_upload): Call observer_notify_tsv_created.
1429         * NEWS: Mention it.
1430
1431 2012-09-18  Yao Qi  <yao@codesourcery.com>
1432
1433         * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1434         if traceframe changed.
1435         * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1436         "trace-find".
1437         * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1438         (mi_interpreter_init): Hook mi_traceframe_changed to observer
1439         'traceframe_changed'.
1440         (mi_traceframe_changed): New.
1441         * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1442         New field.
1443         * NEWS: Mention the new MI notification.
1444
1445 2012-09-17  Mike Wrighton  <wrighton@codesourcery.com>
1446
1447         * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1448
1449 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1450
1451         * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1452         (linux_ptrace_test_ret_to_nx): Extend comment for x86_64.  Change
1453         __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1454         Extend code also for PaX support.  Convert all gdb_assert to warning
1455         calls.
1456
1457 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1458
1459         Implement auto-load user conveniences suggested by Doug Evans.
1460         * auto-load.c: Include top.h.
1461         (file_is_auto_load_safe): New variable advice_printed.  Print advice.
1462         (_initialize_auto_load): New variable scripts_directory_help.  Mention
1463         GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1464         scripts-directory.  Document in online help one can use also files for
1465         set auto-load safe-path.
1466         * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1467         * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1468
1469 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
1470
1471         * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1472         of LEN.
1473
1474 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
1475
1476         * m2-valprint.c (m2_print_array_contents): Eliminate variable
1477         ELTLEN and use TYPE_LENGTH directly.
1478         (m2_val_print): Likewise.
1479         * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1480         variable LEN and use TYPE_LENGTH directly.
1481         (m68k_svr4_store_return_value): Likewise.
1482         * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1483         ARGLEN and use TYPE_LENGTH directly.
1484         (mips_o64_push_dummy_call): Likewise.
1485         * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1486         variable LENGTH and use TYPE_LENGTH directly.
1487         (s390_function_arg_float): Likewise.
1488         (s390_function_arg_integer): Likewise.
1489         (s390_push_dummy_call): Likewise.
1490         (s390_return_value_convention): Likewise.
1491         * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1492         TYPE_LENGTH directly.
1493
1494 2012-09-17  Yao Qi  <yao@codesourcery.com>
1495
1496         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1497         Update comment to add_setshow_integer_cmd.
1498         * cli/cli-setshow.c (do_set_command): Handle case
1499         'var_zuinteger_unlimited'.
1500         (do_show_command): Likewise.
1501         * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1502         for command 'remotetimeout'.
1503         * command.h (enum var_types): New zuinteger_unlimited.  Update comment
1504         to var_integer.
1505         * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1506         for command 'set listsize'.
1507
1508 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
1509
1510         * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1511         variable LEN.
1512
1513 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1514
1515         PR 14119
1516         * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1517         (frame_pop): Drop also TAILCALL_FRAME frames.
1518         * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1519
1520 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1521             Pedro Alves  <palves@redhat.com>
1522
1523         PR 14548
1524         * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1525         function start if we are already at function start.  Both for
1526         reverse-next and for reverse-step into function without line number
1527         info.
1528
1529 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1530
1531         Code cleanup - rename 'inline' depth to 'artificial' depth.
1532         * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1533         frame_id_artificial_p, extend the comment.
1534         * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1535         * frame.c (fprint_frame_id): Rename at a user, change debug output
1536         text to "artificial=".
1537         (skip_inlined_frames): Rename to ...
1538         (skip_artificial_frames): ... here.  Extend the comment.
1539         (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1540         (frame_id_inlined_p): Rename to ...
1541         (frame_id_artificial_p): ... here.  Rename at a user.
1542         (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1543         (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1544         at a user.
1545         * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1546         Extend the comment.
1547         (frame_id_inlined_p): Rename to ...
1548         (frame_id_artificial_p): ... here.
1549         * inline-frame.c (inline_frame_this_id): Rename at a user.
1550
1551 2012-09-14  Andrew Burgess  <aburgess@broadcom.com>
1552
1553         * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1554         vector variables using vector_size syntax rather than array
1555         syntax.
1556
1557 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
1558
1559         * valarith.c (value_concat): Replace unsafe ALLOCA with
1560         XMALLOC/XFREE.
1561
1562 2012-09-14  Pedro Alves  <palves@redhat.com>
1563
1564         * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1565
1566 2012-09-14  Khoo Yit Phang  <khooyp@cs.umd.edu>
1567
1568         Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1569         * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1570         data-directory as appropriate.
1571
1572 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
1573
1574         * printcmd.c (ui_printf): Eliminate single-use variable
1575         PARAM_LEN.
1576
1577 2012-09-14  Yao Qi  <yao@codesourcery.com>
1578             Pedro Alves  <palves@redhat.com>
1579
1580         * valops.c (value_assign): Move observer_notify_target_changed
1581         below to replace reinit_frame_cache.
1582
1583 2012-09-13  Khoo Yit Phang  <khooyp@cs.umd.edu>
1584
1585         Refactor Python "gdb" module into a proper Python package, by
1586         introducing a new "_gdb" module for code implemented in C, and
1587         using reload/__import__ instead of exec.
1588         * python/lib/gdb/__init__.py: Import * from _gdb.
1589         (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1590         prompt_hook, sys.argv): Moved from finish_python_initialization.
1591         (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1592         (packages, auto_load_packages): New list and function replacing
1593         module_dict and auto-loading code, using __file__ instead of
1594         gdb.PYTHONDIR and reload/__import__ instead of exec.
1595         (GdbSetPythonDirectory): Replacing function of the same name
1596         from finish_python_initialization, using reload/__import__ instead
1597         of exec, as well as call auto_load_packages.
1598         * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1599         gdb_python_module and not gdb_module.
1600         * python/python-internal.h (gdb_python_module): Declare.
1601         * python/python.c (gdb_python_module): New global.
1602         (before_prompt_hook): Check gdb_python_module and not gdb_module.
1603         (_initialize_python): Rename gdb module to _gdb.
1604         Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1605         (finish_python_initialization): Move Python code to
1606         lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1607         __main__.
1608
1609 2012-09-13  Pedro Alves  <palves@redhat.com>
1610
1611         * Makefile.in (COMMON_OBS): Add registry.o.
1612         * registry.c: New file.
1613         * registry.h (struct registry_container): Declare.
1614         (registry_data_callback): New typedef.
1615         (struct registry_data, struct registry_data_registration, struct
1616         registry_data_registry): New type.
1617         (register_data_with_cleanup, registry_alloc_data)
1618         (registry_callback_adaptor, registry_clear_data)
1619         (registry_container_free_data, registry_set_data, registry_data):
1620         Declare.
1621         (DEFINE_REGISTRY): Refactor structures and functions as shims over
1622         the new common structures and functions.
1623         (DECLARE_REGISTRY): Declare struct TAG ## _data.  Use the tagged
1624         callback typedefs.
1625
1626 2012-09-12  Mike Wrighton  <wrighton@codesourcery.com>
1627
1628         * remote.c (remote_insert_hw_breakpoint): Throw exception if
1629         there is an error inserting hardware breakpoints and use the
1630         error message from the target.
1631
1632         * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1633         Catch this exception and print the error message contained within. Do not
1634         print the default hardware error breakpoint message in this case.
1635
1636 2012-09-12  Doug Evans  <dje@google.com>
1637
1638         * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1639         cu == NULL.
1640
1641 2012-09-11  Doug Evans  <dje@google.com>
1642
1643         * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1644         .gdb_index symbol attributes if there are none.
1645
1646 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
1647
1648         * symtab.h (struct minimal_symbol) [has_size]: New field.
1649         (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1650         (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1651         * printcmd.c (build_address_symbolic): Only filter out zero-sized
1652         minimal symbols if the symbol's size is actually known.
1653         * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1654         of msymbol's size field.  Add comment.
1655         * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1656         SET_MSYMBOL_SIZE to set the minimal symbol size.
1657
1658 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
1659
1660         * minsyms.c (install_minimal_symbols): Use memset to fill entire
1661         minimal_symbol struct object, rather than setting some of its
1662         fields one by one.
1663
1664 2012-09-11  Andrew Burgess  <aburgess@broadcom.com>
1665
1666         * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1667         passed_a_ptr flag when displaying typedef types.
1668
1669 2012-09-10  Joel Brobecker  <brobecker@adacore.com>
1670
1671         * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1672         the optimized_out flag is preserved.
1673
1674 2012-09-10  Anthony Green  <green@moxielogic.com>
1675
1676         * moxie-tdep.c (moxie_analyze_prologue): Update for function
1677         prologue changes in GCC.
1678
1679 2012-09-10  Keith Seitz  <keiths@redhat.com>
1680
1681         PR gdb/13483
1682         * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1683         (BOOL_CONVERSION_BADNESS): ... this.
1684         * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1685         (rank_one_type): Allow all boolean conversions
1686         permitted by the standard.
1687
1688 2012-09-06  Tom Tromey  <tromey@redhat.com>
1689
1690         * python/py-newobjfileevent.c (create_new_objfile_event_object):
1691         Don't decref py_objfile.
1692
1693 2012-09-02  Khoo Yit Phang  <khooyp@cs.umd.edu>
1694
1695         Do not enable -lmcheck by default when Python is enabled with
1696         threading support.
1697         * configure.ac: (python_has_threads) New variable, by testing
1698         if WITH_THREAD is defined in Python.h.
1699         Move --enable-lmcheck after --with-python.
1700         Do not enable -lmcheck by default if python_has_threads=yes.
1701         Warn if --enable-lmcheck and python_has_threads=yes.
1702         * configure: Regenerate.
1703
1704 2012-08-31  Yao Qi  <yao@codesourcery.com>
1705
1706         * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1707         DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1708         Update some commands.
1709         * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1710         * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1711         to 1.
1712
1713 2012-08-31  Yao Qi  <yao@codesourcery.com>
1714
1715         * mi/mi-cmds.c (mi_cmds): Add 'static'.
1716
1717 2012-08-30  Khoo Yit Phang  <khooyp@cs.umd.edu>
1718
1719         * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1720
1721 2012-08-29  Doug Evans  <dje@google.com>
1722
1723         * main.c (print_gdb_help): Remove reference to
1724         --use-deprecated-index-sections.
1725
1726 2012-08-28  Yao Qi  <yao@codesourcery.com>
1727
1728         * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1729         (init_cmds): Call add_setshow_uinteger_cmd for command
1730         'max-user-call-depth'.
1731         * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1732         declaration of 'max_user_call_depth'.
1733         * frame.c (backtrace_limit): Add 'unsigned'.
1734         (_initialize_frame): Call add_setshow_uinteger_cmd for command
1735         'limit'.
1736         * remote.c (remoteaddresssize): Add 'unsigned'.
1737         (remote_address_masked): Change local var 'address_size' to
1738         'unsigned'.
1739         (_initialize_remote): Call add_setshow_uinteger_cmd for
1740         'remoteaddresssize'.
1741         * top.c (history_size): Add 'unsigned'.
1742         (show_commands): Change local variables to 'unsigned'.
1743         (set_history_size_command): Don't check history_size is negative.
1744         Adjust the condition to call unstifle_history and set history_size
1745         to UNIT_MAX.
1746
1747 2012-08-28  Pedro Alves  <palves@redhat.com>
1748
1749         PR gdb/14428
1750
1751         * infcmd.c (default_print_one_register_info): New, factored out
1752         from default_print_registers_info.
1753         (default_print_registers_info): Use it.  Mark value unavailable if
1754         necessary.
1755         (registers_info): Print user registers with
1756         default_print_one_register_info.
1757
1758 2010-08-27  H.J. Lu  <hongjiu.lu@intel.com>
1759
1760         PR tui/14486
1761         * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1762         is not NULL before referencing it.
1763
1764 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1765
1766         * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1767         variable pc.  Call find_pc_line instead of find_pc_overlay, restore
1768         original PC for it.
1769
1770 2012-08-27  Eli Zaretskii  <eliz@gnu.org>
1771             Jan Kratochvil  <jan.kratochvil@redhat.com>
1772
1773         * auto-load.c (auto_load_objfile_script): Rename to ...
1774         (auto_load_objfile_script_1): ... here, change variable realname to
1775         parameter realname, document it, add return value, add variable retval.
1776         (auto_load_objfile_script): New function.
1777
1778 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1779
1780         * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1781         followed by a whitespace.
1782
1783 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1784
1785         PR gdb/14494.
1786         * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1787         Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1788         (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1789         here.
1790
1791 2012-08-27  Wei-cheng Wang  <cole945@gmail.com>
1792
1793         * memattr.c (create_mem_region): Fix memory region overlapping
1794         checking.
1795
1796 2012-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
1797
1798         * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1799         with xmalloc/cleanup.
1800         * mt-tdep.c (mt_push_dummy_call): Likewise.
1801         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1802         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1803
1804 2012-08-24  Yao Qi  <yao@codesourcery.com>
1805
1806         * jv-exp.y (push_expression_name): Add "." at the end of error
1807         message.
1808
1809 2012-08-23  Khoo Yit Phang <khooyp@cs.umd.edu>
1810
1811         Document how to return from "python-interactive" to GDB.
1812         * python/python.c (_initialize_python): Update documentation.
1813
1814 2012-08-23  Pedro Alves  <palves@redhat.com>
1815
1816         * infrun.c (_initialize_infrun) <handle command help text>:
1817         Mention that multiple signals are supported.
1818
1819 2012-08-23  Pedro Alves  <palves@redhat.com>
1820
1821         * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1822         string.
1823
1824 2012-08-23  Yao Qi  <yao@codesourcery.com>
1825
1826         * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1827         (tfind_1): Don't call registers_changed, set_traceframe_num,
1828         and clear_traceframe_info.
1829         Call set_current_traceframe.
1830         (set_current_traceframe): call set_traceframe_num.
1831
1832 2012-08-22  Sergio Durigan Junior  <sergiodj@redhat.com>
1833
1834         * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1835         `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1836
1837 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
1838
1839         Enable readline in Python in a GDB-specific way and block the
1840         standard Python readline module to prevent conflicts with GDB.
1841         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1842         (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1843         (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1844         * python/py-gdb-readline.c: New file.
1845         * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1846         prototype.
1847         * python/python.c (_initialize_python): Call
1848         gdbpy_initialize_gdb_readline.
1849
1850 2012-08-22  Keith Seitz  <keiths@redhat.com>
1851
1852         * defs.h: Include build-gnulib/config.h
1853
1854 2012-08-22  Joseph Myers  <joseph@codesourcery.com>
1855
1856         * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1857         and blx pc.
1858
1859 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
1860
1861         Add a new "python-interactive" command that starts a standard
1862         Python interactive prompt with "pi" as alias, and add "py" as
1863         an alias to "python".
1864         * NEWS: Mention the new commands.
1865         * python/python.c (eval_python_command): New function.
1866         (python_interactive_command): For "python-interactive" with
1867         arguments, call eval_python_command.  For "python-interactive"
1868         without arguments, call PyRun_InteractiveLoop.
1869         (_initialize_python): Add "python-interactive" command with
1870         "pi" as alias, and add "py" as an alias to "python".
1871
1872 2012-08-22  Tom Tromey  <tromey@redhat.com>
1873
1874         * defs.h (quit_flag): Don't declare.
1875         (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1876         (QUIT): Use new functions.
1877         * event-top.c (command_handler): Use clear_quit_flag.
1878         (handle_sigint): Use set_quit_flag.
1879         (async_request_quit): Use check_quit_flag.  Don't check
1880         immediate_quit.
1881         * exceptions.c (throw_exception): Use clear_quit_flag.
1882         * main.c (captured_main): Use clear_quit_flag.
1883         * python/python.c (clear_quit_flag, set_quit_flag)
1884         (check_quit_flag): New functions.
1885         * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1886         clear_quit_flag.
1887         * remote.c (remote_wait_as): Use check_quit_flag,
1888         clear_quit_flag.
1889         (remote_start_remote): Call QUIT.
1890         * symfile.c (load_progress): Use check_quit_flag.
1891         * top.c (command_loop): Use clear_quit_flag.
1892         (command_line_input): Call QUIT.
1893         * utils.c (quit_flag): Conditionally define.
1894         (clear_quit_flag, check_quit_flag, set_quit_flag): New
1895         functions.
1896         (prompt_for_continue): Call QUIT.  Use quit, not
1897         async_request_quit.
1898         * remote-mips.c (mips_expect_timeout): Call QUIT.
1899         * monitor.c (monitor_expect): Call QUIT.
1900
1901 2012-08-22  Tom Tromey  <tromey@redhat.com>
1902
1903         * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1904         (async_init_signals): Update.
1905         * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1906         (SIGWINCH_HANDLER_BODY): Remove.
1907
1908 2012-08-22  Tom Tromey  <tromey@redhat.com>
1909
1910         * jit.c (jit_object_close_impl): Don't malloc the objfile
1911         name.
1912         * objfiles.c (allocate_objfile): Don't malloc the objfile
1913         name.
1914         (free_objfile): Don't free the objfile name.
1915         * objfiles.h (struct objfile) <name>: Update comment.
1916         * symfile.c (reread_symbols): Fix reference counting.  Don't
1917         malloc objfile name.
1918
1919 2012-08-22  Tom Tromey  <tromey@redhat.com>
1920
1921         * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1922         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1923         (symfile_bfd_open): Likewise.
1924         (generic_load): Likewise.
1925         * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1926         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1927         gdb_bfd_open.
1928         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1929         Use gdb_bfd_open.
1930         * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1931         * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1932         (pmon_load_fast): Likewise.
1933         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1934         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1935         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1936         (macho_check_dsym): Likewise.
1937         * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1938         (m32r_upload_command): Likewise.
1939         * gdb_bfd.h (gdb_bfd_cache): Declare.
1940         * gdb_bfd.c (struct gdb_bfd_data): New.
1941         (gdb_bfd_cache): New global.
1942         (struct gdb_bfd_cache_search): New.
1943         (hash_bfd): New function.
1944         (eq_bfd): Likewise.
1945         (gdb_bfd_open): Likewise.
1946         (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1947         (gdb_bfd_unref): Remove closed BFD from cache.  Update for
1948         gdb_bfd_data.
1949         * exec.c (exec_file_attach): Use gdb_bfd_open.
1950         * dsrec.c (load_srec): Use gdb_bfd_open.
1951
1952 2012-08-22  Tom Tromey  <tromey@redhat.com>
1953
1954         * dwarf2read.c (macro_start_file): Update.
1955         * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1956         (free_objfile_per_bfd_storage): Destroy macro_cache.
1957         (allocate_objfile, free_objfile): Update.
1958         * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1959         New field.
1960         (struct objfile) <macro_cache>: Remove.
1961         * symfile.c (reread_symbols): Update.
1962         * symmisc.c (print_symbol_bcache_statistics): Update.
1963         (print_objfile_statistics): Update.
1964
1965 2012-08-22  Tom Tromey  <tromey@redhat.com>
1966
1967         * elfread.c (elf_symtab_read): Update.
1968         * objfiles.c (objfiles_bfd_data): New global.
1969         (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1970         (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1971         (allocate_objfile, free_objfile): Update.
1972         (_initialize_objfiles): Initialize objfiles_bfd_data.
1973         * objfiles.h (struct objfile_per_bfd_storage): New.
1974         (struct objfile) <per_bfd>: New field.
1975         <filename_cache>: Remove.
1976         (set_objfile_per_bfd): Declare.
1977         * symfile.c (reread_symbols): Update.  Call
1978         set_objfile_per_bfd.
1979         (allocate_symtab): Update.
1980         * symmisc.c (print_symbol_bcache_statistics): Update.
1981         (print_objfile_statistics): Print the size of the BFD obstack.
1982
1983 2012-08-22  Tom Tromey  <tromey@redhat.com>
1984
1985         * gdb_bfd.h: Include registry.h.  Use DECLARE_REGISTRY.
1986         * gdb_bfd.c: Use DEFINE_REGISTRY.
1987         (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1988         (gdb_bfd_ref): Call bfd_alloc_data.
1989         (gdb_bfd_unref): Call bfd_free_data.
1990
1991 2012-08-22  Tom Tromey  <tromey@redhat.com>
1992
1993         * registry.h (struct registry_fields): New.
1994         (REGISTRY_FIELDS): Redefine.
1995         (REGISTRY_ACCESS_FIELD): New macro.
1996         (DEFINE_REGISTRY): Add ACCESS argument.  Update defined
1997         functions.
1998
1999 2012-08-22  Tom Tromey  <tromey@redhat.com>
2000
2001         * auto-load.c (_initialize_auto_load): Update.
2002         * solib-svr4.c (_initialize_svr4_solib): Update
2003         * solib-dsbt.c (_initialize_dsbt_solib): Update.
2004         * solib-darwin.c (_initialize_darwin_solib): Update.
2005         * registry.h: New file.
2006         * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2007         * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2008         * progspace.h: Include registry.h.  Use DECLARE_REGISTRY.
2009         (register_program_space_data_with_cleanup)
2010         (register_program_space_data, program_space_alloc_data)
2011         (clear_program_space_data, set_program_space_data)
2012         (program_space_data): Don't declare.
2013         * progspace.c: Use DEFINE_REGISTRY.
2014         (struct program_space_data, struct
2015         program_space_data_registration, struct
2016         program_space_data_registry, program_space_data_registry)
2017         (register_program_space_data_with_cleanup)
2018         (register_program_space_data, program_space_alloc_data)
2019         (program_space_free_data, clear_program_space_data)
2020         (set_program_space_data, program_space_data): Remove.
2021         * objfiles.h: Include registry.h.  Use DECLARE_REGISTRY.
2022         (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2023         (register_objfile_data_with_cleanup, register_objfile_data)
2024         (clear_objfile_data, set_objfile_data, objfile_data): Don't
2025         declare.
2026         * objfiles.c: Use DEFINE_REGISTRY.
2027         (struct objfile_data, struct objfile_data_registration, struct
2028         objfile_data_registry, objfile_data_registry)
2029         (register_objfile_data_with_cleanup, register_objfile_data)
2030         (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2031         (set_objfile_data, objfile_data): Remove.
2032         (_initialize_objfiles): Update.
2033         * jit.c (_initialize_jit): Update.
2034         * inflow.c (_initialize_inflow): Update.
2035         * inferior.h: Include registry.h.  Use DECLARE_REGISTRY.
2036         (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2037         (register_inferior_data_with_cleanup, register_inferior_data)
2038         (clear_inferior_data, set_inferior_data, inferior_data): Don't
2039         declare.
2040         * inferior.c: Use DEFINE_REGISTRY.
2041         (struct inferior_data, struct inferior_data_registration, struct
2042         inferior_data_registry, inferior_data_registry)
2043         (register_inferior_data_with_cleanup, register_inferior_data)
2044         (inferior_alloc_data, inferior_free_data  clear_inferior_data)
2045         (set_inferior_data, inferior_data): Remove.
2046         * auxv.c (_initialize_auxv): Update.
2047         * ada-lang.c (_initialize_ada_language): Update.
2048         * breakpoint.c (_initialize_breakpoint): Update.
2049         * i386-nat.c (i386_use_watchpoints): Update.
2050
2051 2012-08-22  Tom Tromey  <tromey@redhat.com>
2052
2053         * exec.c (exec_close, exec_file_attach): Update.
2054         (add_to_section_table): Initialize 'key' field.
2055         (add_target_sections, remove_target_sections): Add 'key' argument.
2056         * exec.h (add_target_sections, remove_target_sections): Add
2057         'key' argument.
2058         * solib.c (solib_map_sections, update_solib_list, clear_solib)
2059         (reload_shared_libraries_1): Update.
2060         * target.h (struct target_section) <key>: New field.
2061
2062 2012-08-22  Tom Tromey  <tromey@redhat.com>
2063
2064         * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2065
2066 2012-08-21  Pierre Muller  <muller@ics.u-strasbg.fr>
2067
2068         * symfile.c (allocate_symtab): Use host_address_to_string
2069         function instead of cast of pointer to long which is not
2070         compatible with x86_64-w64-mingw32 build.
2071
2072 2012-08-19  Andrew Pinski  <apinski@cavium.com>
2073
2074         * mips-tdep.c (is_octeon): New function.
2075         (is_octeon_bbit_op): New function.
2076         (mips32_next_pc): Handle Octeon's bbit instructions.
2077         (mips32_instruction_has_delay_slot): Likewise.
2078
2079 2012-08-19  Andrew Pinski  <apinski@cavium.com>
2080
2081         * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2082         before the function.
2083
2084 2012-08-19  Andrew Pinski  <apinski@cavium.com>
2085
2086         * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2087
2088 2012-08-19  Keith Seitz  <keiths@redhat.com>
2089
2090         PR c++/14365
2091         * c-typeprint.c (c_type_print_varspec_prefix): Pass
2092         -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2093
2094 2012-08-18  Eli Zaretskii  <eliz@gnu.org>
2095
2096         * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2097         The typo broke "make TAGS".
2098
2099 2012-08-17  Joel Brobecker  <brobecker@adacore.com>
2100
2101         GDB 7.5 released.
2102
2103 2012-08-17  Keith Seitz  <keiths@redhat.com>
2104
2105         PR c++/13356
2106         * gdbtypes.c (strict_type_checking): New variable.
2107         (show_strict_type_checking): New function.
2108         (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2109         if strict type checking is disabled.
2110         (_initialize_gdbtypes): Add "check type" subcommand.
2111         * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2112
2113 2012-08-17  Keith Seitz  <keiths@redhat.com>
2114
2115         * language.h (type_mode): Remove.
2116         (type_check): Remove.
2117         (struct language_defn): Remove la_type_check.
2118         (STRICT_TYPE): Remove unused macro.
2119         (type_error): Remove.
2120         * language.c (set_type_range_case): Renamed to ...
2121         (set_range_case): ... this.  Update all callers.
2122         Remove type_mode/type_check.
2123         (type_mode): Remove.
2124         (type_check): Remove.
2125         (show_type_command): Remove.
2126         (set_type_command): Remove.
2127         (language_info): Remove type checking output.
2128         (type_error): Remove unused function.
2129         (range_error): Update comment.
2130         (unknown_language_defn): Remove la_type_check.
2131         (auto_language_defn): Likewise.
2132         (local_language_defn): Likewise.
2133         (_initialize_language): Remove "check type" subcommand.
2134         * ada-lang.c (ada_language_defn): Remove la_type_check.
2135         * c-lang.c (c_language_defn): Likewise.
2136         (cplus_language_defn): Likewise.
2137         (asm_language_defn): Likewise.
2138         (minimal_language_defn): Likewise.
2139         * d-lang.c (d_language_defn): Likewise.
2140         * f-lang.c (f_language_defn): Likewise.
2141         * go-lang.c (go_language_defn): Likewise.
2142         * jv-lang.c (java_language_defn): Likewise.
2143         * m2-lang.c (m2_language_defn): Likewise.
2144         * objc-lang.c (objc_language_defn): Likewise.
2145         * opencl-lang.c (opencl_language_defn): Likewise.
2146         * p-lang.c (pascal_language_defn): Likewise.
2147
2148 2012-08-16  Mike Frysinger  <vapier@gentoo.org>
2149
2150         * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2151
2152 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
2153
2154         * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2155         New function.
2156         (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2157         using the regache.  Use ia64_hpux_get_register_from_save_state_t
2158         to access the bsp and bspstore registers if not.
2159
2160 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
2161
2162         * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2163         * breakpoint.c (detach_breakpoints): Change pid parameter into
2164         a ptid.  Adjust code accordingly.
2165         * infrun.c (handle_inferior_event): Delete variable child_pid.
2166         Update call to detach_breakpoints to pass the child ptid for
2167         fork events.
2168         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2169         assert that inferior_ptid's lwp is zero.
2170         (linux_handle_extended_wait): Update call to detach_breakpoints.
2171         * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2172         detach_breakpoints.
2173
2174 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
2175
2176         * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2177         parent, only call detach_breakpoints if tts.tts_event ==
2178         TTEVT_VFORK.
2179
2180 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
2181
2182         * dwarf2-frame.c (dwarf2_frame_cache): Use
2183         get_frame_address_in_block instead of get_frame_pc as
2184         the bound for executing the frame's FDE.
2185
2186 2012-08-16  Yao Qi  <yao@codesourcery.com>
2187
2188         * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2189         * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2190         * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2191         (c_type_print_varspec_suffix): Likewise.
2192         * eval.c (evaluate_subexp_standard): Likewise.
2193         * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2194         (f_type_print_varspec_suffix): Likewise.
2195         * gdbtypes.c (is_scalar_type): Likewise.
2196         (recursive_dump_type): Likewise.
2197         * infcall.c (value_arg_coerce): Likewise.
2198         * m2-valprint.c (m2_val_print): Likewise.
2199         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2200         (pascal_type_print_varspec_suffix): Likewise.
2201         (pascal_type_print_base): Likewise.
2202         * p-valprint.c (pascal_val_print): Likewise.
2203         (pascal_val_print): Likewise.
2204         * valops.c (value_slice): Likewise.
2205         * valprint.c (scalar_type_p): Likewise.
2206         * valarith.c (value_bitstring_subscript): Remove.
2207         (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2208         Remove comment on TYPE_CODE_BITSTRING.
2209
2210         * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2211         TYPE_CODE_BITSTRING.
2212
2213         * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2214         slot 0.
2215
2216 2012-08-16  Yao Qi  <yao@codesourcery.com>
2217
2218         * tracepoint.c (trace_find_none_command): Remove.
2219         (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2220
2221 2012-08-16  Yao Qi  <yao@codesourcery.com>
2222
2223         * remote.c (handle_notification): Remove parameter 'length'.
2224         (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2225
2226 2012-08-15  Keith Seitz  <keiths@redhat.com>
2227
2228         * gdbtypes.c (opaque_type_resolution): Make static.
2229         Add missing comment.
2230         (overload_debug): Add missing comment.
2231         (show_opaque_type_resolution): Likewise.
2232         (show_overload_debug): Likewise.
2233         (print_bit_vector): Remove unnecessary forward declaration.
2234         (print_arg_types): Likewise.
2235         (dump_fn_fieldlists): Likewise.
2236         (print_cplus_stuff): Likewise.
2237
2238 2012-08-15  Tom Tromey  <tromey@redhat.com>
2239
2240         * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2241         (gdb_bfd_ref): Initialize new field.
2242         (gdb_bfd_unref): Unref the archive BFD.
2243         (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2244         parent archive.
2245
2246 2012-08-15  Tom Tromey  <tromey@redhat.com>
2247
2248         PR python/14387:
2249         * python/py-bpevent.c (create_breakpoint_event_object): Update
2250         comment.
2251         * python/py-event.c (evpy_add_attribute): Update comment.
2252         * python/py-exitedevent.c (create_exited_event_object): Fix
2253         reference counting and error handling.
2254         * python/py-newobjfileevent.c (create_new_objfile_event_object):
2255         Fix reference counting.
2256         * python/py-signalevent.c (create_signal_event_object): Fix
2257         reference counting and error handling.
2258         * python/py-stopevent.c (emit_stop_event): Fix reference
2259         counting.
2260         * python/py-threadevent.c (get_event_thread): Return a
2261         borrowed reference.
2262         * python/py-type.c (convert_field): Fix reference counting.
2263
2264 2012-08-15  Tom Tromey  <tromey@redhat.com>
2265
2266         * dwarf2read.c (dwarf_decode_macro_bytes)
2267         <DW_MACRO_GNU_transparent_include>: Use pointer to included data
2268         as hash key.
2269
2270 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
2271
2272         * infcmd.c (_initialize_infcmd): Update help text for the signal,
2273         stepi, nexti, finish, next, step, jump, and continue commands.
2274         * infrun.c (_initialize_infrun): Update help text for the handle
2275         command.
2276
2277 2012-08-14  Doug Evans  <dje@google.com>
2278
2279         * gdbtypes.c (struct extra): Delete, unused.
2280
2281         * gdbtypes.c: Whitespace cleanup.
2282         (address_space_name_to_int): Remove "extern" from definition.
2283         (_initialize_gdbtypes): Declare with initialize_file_ftype.
2284
2285         * gdbtypes.c (make_pointer_type): Remove redundant setting of
2286         TYPE_POINTER_TYPE (type).
2287
2288 2012-08-14  Gary Benson  <gbenson@redhat.com>
2289
2290         * solib-svr4.c (svr4_free_library_list): Use free_so.
2291
2292 2012-08-13  Mike Frysinger  <vapier@gentoo.org>
2293
2294         * .gitignore: Add go-exp.c.
2295
2296 2012-08-13  Doug Evans  <dje@google.com>
2297
2298         * value.c (show_convenience): Tweak comment.
2299         (_initialize_values): Mention convenience functions in the help text
2300         for "show convenience".
2301
2302 2012-08-13  Yao Qi  <yao@codesourcery.com>
2303
2304         * std-operator.def: Remove TERNOP_SLICE_COUNT.
2305         * breakpoint.c (watchpoint_exp_is_const): Remove handling to
2306         TERNOP_SLICE_COUNT.
2307         * eval.c (evaluate_subexp_standard): Likewise.
2308         * expprint.c (print_subexp_standard): Likewise.
2309         (dump_subexp_body_standard): Likewise.
2310         * parse.c (operator_length_standard): Likewise.
2311
2312 2012-08-13  Yao Qi  <yao@codesourcery.com>
2313
2314         * std-operator.def: Remove OP_BITSTRING.
2315         * breakpoint.c (watchpoint_exp_is_const): Update.
2316         * eval.c (evaluate_subexp_standard): Remove handling to
2317         OP_BITSTRING.
2318         * expprint.c (print_subexp_standard): Likewise.
2319         (dump_subexp_body_standard): Likewise.
2320         * parse.c (operator_length_standard): Likewise.
2321         * valops.c (value_bitstring): Remove.
2322         * value.h: Remove the declaration of 'value_bitstring'.
2323
2324 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
2325
2326         * linespec.c (find_methods): Remove unused variables `i1' and
2327         `name_len'.
2328         (decode_line_full): Likewise for `arg_start'.
2329
2330 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
2331
2332         * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2333         (zlib_decompress_section): Likewise for `section_data'.
2334         (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2335
2336 2012-08-10  Doug Evans  <dje@google.com>
2337
2338         Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2339         * NEWS: Document them.
2340         * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2341         function/strfns.py.
2342         * python/py-type.c (typy_array_1): New function.
2343         (typy_array): Call it.
2344         (typy_vector): New function.
2345         (type_object_methods): Add "vector".
2346         * python/lib/gdb/function/__init__.py: New file.
2347         * python/lib/gdb/function/strfns.py: New file.
2348
2349 2012-08-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
2350
2351         * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2352         for TYPE_FIELD_BITPOS.
2353         (typy_get_sizeof): Likewise for TYPE_LENGTH.
2354
2355 2012-08-10  Mike Frysinger  <vapier@gentoo.org>
2356
2357         PR cli/10436:
2358         * common/vec.h (VEC_merge): Define.
2359         (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2360         (DEF_VEC_ALLOC_FUNC_P): Likewise.
2361         (DEF_VEC_ALLOC_FUNC_O): Likewise.
2362         * completer.c: Include gdb_signals.h.
2363         (signal_completer): Define.
2364         * completer.h (signal_completer): Add prototype.
2365         * infcmd.c (_initialize_infcmd): Assign the command
2366         completer for "signal" to handle_completer.
2367         * infrun.c: Include completer.h.
2368         (handle_completer): Define.
2369         (_initialize_infrun): Declare a new local variable c.  Store the
2370         result of add_com("handle") to it.  Assign the command
2371         completer for "handle" to handle_completer.
2372
2373 2012-08-09  Yao Qi  <yao@codesourcery.com>
2374
2375         * cli/cli-decode.c (set_cmd_prefix): New.
2376         (lookup_cmd_for_prefixlist): New.
2377         (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2378         of each cmd_list_element in *prefixlist.
2379         (add_setshow_cmd_full): set_cmd_prefix.
2380         (add_alias_cmd): Likewise.
2381         * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2382         Declare 'auto_boolean_enums'.
2383         * cli/cli-setshow.c: Include "observer.h".
2384         (notify_command_param_changed_p): New.
2385         (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2386         Remove 'static'.
2387         (do_setshow_command): Split it to ...
2388         (do_set_command, do_show_command): ... them.  New.
2389         (do_set_command): Call observer_notify_command_param_changed if
2390         notify_command_param_changed_p returns true.
2391         (cmd_show_list): Caller update.
2392         * auto-load.c (set_auto_load_cmd): Likewise.
2393         * remote.c (show_remote_cmd): Likewise.
2394         * cli/cli-setshow.h: Update declarations.
2395         * top.c (execute_command): Call do_set_command and do_show_command.
2396
2397         * NEWS: Mention new MI notification.
2398         * mi/mi-interp.c: Declare mi_command_param_changed.
2399         (mi_interpreter_init): Attach mi_command_param_changed to
2400         observer command_param_changed.
2401         (mi_command_param_changed): New.
2402         Remove mi_suppress_breakpoint_notifications.
2403         Define global variable mi_suppress_notification.
2404         (mi_breakpoint_created): Update.
2405         (mi_breakpoint_deleted): Likewise.
2406         (mi_breakpoint_modified): Likewise.
2407         * mi/mi-main.c (mi_cmd_execute): Likewise.  Check command
2408         'gdb-set' and set mi_suppress_notification.
2409         * mi/mi-main.h: (mi_suppress_notification): New struct.
2410
2411 2012-08-09  Andreas Tobler  <andreast@fgznet.ch>
2412             Jan Kratochvil  <jan.kratochvil@redhat.com>
2413
2414         * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2415
2416 2012-08-09  Yao Qi  <yao@codesourcery.com>
2417
2418         * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2419         (skiplist): Move it to skip.c.
2420         (init_cmd_lists): Remove code setting enablebreaklist and
2421         skiplist to NULL.
2422         * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2423         * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2424         skiplist.
2425         * gdbcmd.h: Likewise.
2426         * skip.c (_initialize_step_skip): Move 'skiplist' from
2427         cli/cli-cmds.c.
2428
2429 2012-08-09  Yao Qi  <yao@codesourcery.com>
2430
2431         * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2432         * gnu-nat.c, symfile.c: Likewise.
2433
2434 2012-08-08  Aaron Gamble  <agamble@google.com>
2435
2436         * utils.c (prompt_for_continue_wait_time): New static global.
2437         (make_command_stats_cleanup): Initialize it.
2438         (report_command_stats): Subtract time waiting for user.
2439         (prompt_for_continue): Track time waiting for user.
2440         (defaulted_query): Track time waiting for user.
2441
2442 2012-08-08  Doug Evans  <dje@google.com>
2443
2444         * eval.c (evaluate_subexp_standard): Fix thinko in handling
2445         UNOP_MEMVAL_TYPE.
2446         * expprint.c (print_subexp_standard, case OP_TYPE): New.
2447         (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2448         (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2449         (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2450         (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2451         (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2452         elt.
2453         (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2454         (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2455         (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2456         (dump_prefix_expression): Handle OP_TYPE.
2457
2458 2012-08-08  Keith Seitz  <keiths@redhat.com>
2459
2460         * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2461         addr_start.
2462
2463 2012-08-08  Doug Evans  <dje@google.com>
2464
2465         * linux-thread-db.c: #include "gdb_vecs.h".
2466         (try_thread_db_load_from_pdir_1): New arg "subdir".  All callers
2467         updated.
2468         (try_thread_db_load_from_pdir): New arg "subdir".  All callers updated.
2469         (thread_db_load_search): Use a vector to iterate over path elements.
2470         Handle text appearing after "$pdir".
2471
2472         * gdb_string.h: Moved to ...
2473         * common/gdb_string.h: ... here.
2474         * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2475         gdb_string.h and gdb_assert.h.
2476
2477 2012-08-08  Yao Qi  <yao@codesourcery.com>
2478
2479         * tic6x-tdep.c (tic6x_register_to_value): Remove.
2480         (tic6x_value_to_register): Likewise.
2481         (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2482         and set_gdbarch_value_to_register.
2483
2484 2012-08-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
2485             Jean-Marc Saffroy  <saffroy@gmail.com>
2486
2487         PR 11804
2488         * defs.h (find_memory_region_ftype): New comment.  New arg modified.
2489         * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2490         * gcore.c (gcore_create_callback): New function comment.  Add modified
2491         parameter.  Only write modified regions.  Set SEC_READONLY exactly
2492         according to MODIFIED.
2493         (objfile_find_memory_regions): Ignore separate debug info files.  Ass
2494         the passed modified value to FUNC.
2495         * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2496         * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2497         first.  New variables modified and has_anonymous.  Parse the lines of
2498         smaps file.  Add the passed MODIFIED value to FUNC.
2499         * procfs.c (find_memory_regions_callback): Add the passed modified
2500         value.
2501
2502 2012-08-06  Tom Tromey  <tromey@redhat.com>
2503
2504         * dwarf2-frame.c (clear_pointer_cleanup): New function.
2505         (dwarf2_frame_cache): Use it.
2506         * frame-unwind.h (frame_sniffer_ftype): Document prologue
2507         cache initialization constraint.
2508
2509 2012-08-06  Tom Tromey  <tromey@redhat.com>
2510
2511         PR python/14386:
2512         * varobj.c (update_dynamic_varobj_children): Don't call
2513         PyIter_Check.
2514
2515 2012-08-06  Tom Tromey  <tromey@redhat.com>
2516
2517         PR cli/14392:
2518         * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2519
2520 2012-08-06  Nathaniel Flath  <flat0103@gmail.com>
2521
2522         * NEWS: New entry for 'cd' default parameters.
2523         * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2524
2525 2012-08-03  Tom Tromey  <tromey@redhat.com>
2526
2527         * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2528         return.
2529
2530 2012-08-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
2531
2532         * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2533         to attempting lseek/write.
2534         (inf_child_fileio_pread): Likewise for pread.
2535
2536 2012-08-02  Yao Qi  <yao@codesourcery.com>
2537
2538         * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2539         (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2540         add_setshow_zinteger_cmd.
2541         * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2542         * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2543         (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2544         instead of add_setshow_zinteger_cmd.
2545         * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2546         (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2547         instead of add_setshow_zinteger_cmd.
2548         * frame.c (frame_debug): Add 'unsigned'.
2549         (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2550         add_setshow_zinteger_cmd.
2551         * frame.h: Update the declaration of 'frame_debug'.
2552         * gdbtypes.c (overload_debug): Add 'unsigned'.
2553         (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2554         add_setshow_zinteger_cmd.
2555         * inferior.h: Update declaration of 'debug_infrun'.
2556         * infrun.c (debug_infrun): Add 'unsigned'.
2557         (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2558         add_setshow_zinteger_cmd.
2559         * jit.c (jit_debug): Add 'unsigned'.
2560         (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2561         add_setshow_zinteger_cmd.
2562         * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2563         (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2564         instead of add_setshow_zinteger_cmd.
2565         * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2566         (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2567         add_setshow_zinteger_cmd.
2568         * machoread.c (mach_o_debug_level): Add 'unsigned'.
2569         (_initialize_machoread): Call add_setshow_zuinteger_cmd
2570         instead of add_setshow_zinteger_cmd.
2571         * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2572         * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2573         (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2574         intead of add_setshow_zinteger_cmd.
2575         * mips-tdep.c (mips_debug): Add 'unsigned'.
2576         (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2577         instead of add_setshow_zinteger_cmd.
2578         * monitor.c (monitor_debug): Add 'unsigned'.
2579         (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2580         add_setshow_zinteger_cmd.
2581         * observer.c (observer_debug): Add 'unsigned'.
2582         (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2583         add_setshow_zinteger_cmd.
2584         * parse.c (expressiondebug): Add 'unsigned'.
2585         (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2586         add_setshow_zinteger_cmd.
2587         * record.c (record_debug): Add 'unsigned'.
2588         (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2589         add_setshow_zinteger_cmd.
2590         * record.h: Update the declaration of 'record_debug'.
2591         * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2592         (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2593         add_setshow_zinteger_cmd.
2594         * serial.c (global_serial_debug_p): Add 'unsigned'.
2595         (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2596         add_setshow_zinteger_cmd.
2597         * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2598         (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2599         add_setshow_zinteger_cmd.
2600         * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2601         (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2602         add_setshow_zinteger_cmd.
2603         * target.c (targetdebug): Add 'unsigned'.
2604         (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2605         add_setshow_zinteger_cmd.
2606         * valops.c (overload_debug): Add 'unsigned'.
2607         * varobj.c (varobjdebug): Add 'unsigned'.
2608         (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2609         add_setshow_zinteger_cmd.
2610         * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2611         (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2612         instead of add_setshow_zinteger_cmd.
2613
2614         * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2615         * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2616         (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2617         instead of add_setshow_zinteger_cmd.
2618         * gdbarch.c, gdbarch.h: Re-generated.
2619
2620 2012-08-02  Yao Qi  <yao@codesourcery.com>
2621
2622         * nto-tdep.c: Don't include cli/cli-decode.h and
2623         cli/cli-cmds.h.
2624         (_initialize_nto_tdep): Remove.
2625         * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2626         Remove field.
2627         Remove macro nto_internal_debugging.
2628
2629 2012-08-01  Richard Henderson  <rth@redhat.com>
2630
2631         * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2632         (mep-*-*) [gdb_target_obs]: Likewise.
2633
2634 2012-07-31  Andreas Schwab  <schwab@linux-m68k.org>
2635
2636         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2637         linux_get_siginfo_type.
2638
2639 2012-07-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
2640
2641         * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2642         AT_ENTRY_POINT.
2643         (call_function_by_hand) <ON_STACK>: Call write_memory with
2644         gdbarch_breakpoint_from_pc, if possible.
2645         (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2646         here.
2647
2648 2012-07-31  Yao Qi  <yao@codesourcery.com>
2649
2650         * tracepoint.c: Add 'static' for some variables.
2651
2652 2012-07-31  Yao Qi  <yao@codesourcery.com>
2653
2654         * go32-nat.c: Declare _initialize_go32_nat.
2655         * ser-go32.c: Declare _initialize_ser_dos.
2656         * top.c (do_chdir_cleanup): Add 'static'.
2657
2658 2012-07-30  Keith Seitz  <keiths@redhat.com>
2659
2660         * linespec.c (linespec_lex_number): A number followed
2661         by quotes is a valid number, too.
2662
2663 2012-07-30  Tom Tromey  <tromey@redhat.com>
2664
2665         * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2666
2667 2012-07-30  Ulrich Weigand  <ulrich.weigand@linaro.org>
2668
2669         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2670         attempt to 4-byte-align HW breakpoint addresses for Thumb.
2671
2672 2012-07-30  Andrew Burgess  <aburgess@broadcom.com>
2673
2674         * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2675         invalid or reevaluated to prevent prevent references to possibly
2676         delete'd type objects being left in the varobj.
2677
2678 2012-07-27  Tom Tromey  <tromey@redhat.com>
2679             Jan Kratochvil  <jan.kratochvil@redhat.com>
2680
2681         * copying.awk: Print buffer-read-only and vi ro markers.
2682         * copying.c: Rebuild.
2683         * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2684         * gdbarch.c, gdbarch.h: Rebuild.
2685         * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2686         buffer-read-only and vi ro markers.
2687         * features/arm-with-iwmmxt.c: Rebuild.
2688         * features/arm-with-m-fpa-layout.c: Rebuild.
2689         * features/arm-with-m-vfp-d16.c: Rebuild.
2690         * features/arm-with-m.c: Rebuild.
2691         * features/arm-with-neon.c: Rebuild.
2692         * features/arm-with-vfpv2.c: Rebuild.
2693         * features/arm-with-vfpv3.c: Rebuild.
2694         * features/i386/amd64-avx-linux.c: Rebuild.
2695         * features/i386/amd64-avx.c: Rebuild.
2696         * features/i386/amd64-linux.c: Rebuild.
2697         * features/i386/amd64.c: Rebuild.
2698         * features/i386/i386-avx-linux.c: Rebuild.
2699         * features/i386/i386-avx.c: Rebuild.
2700         * features/i386/i386-linux.c: Rebuild.
2701         * features/i386/i386-mmx-linux.c: Rebuild.
2702         * features/i386/i386-mmx.c: Rebuild.
2703         * features/i386/i386.c: Rebuild.
2704         * features/i386/x32-avx-linux.c: Rebuild.
2705         * features/i386/x32-avx.c: Rebuild.
2706         * features/i386/x32-linux.c: Rebuild.
2707         * features/i386/x32.c: Rebuild.
2708         * features/mips-dsp-linux.c: Rebuild.
2709         * features/mips-linux.c: Rebuild.
2710         * features/mips64-dsp-linux.c: Rebuild.
2711         * features/mips64-linux.c: Rebuild.
2712         * features/rs6000/powerpc-32.c: Rebuild.
2713         * features/rs6000/powerpc-32l.c: Rebuild.
2714         * features/rs6000/powerpc-403.c: Rebuild.
2715         * features/rs6000/powerpc-403gc.c: Rebuild.
2716         * features/rs6000/powerpc-405.c: Rebuild.
2717         * features/rs6000/powerpc-505.c: Rebuild.
2718         * features/rs6000/powerpc-601.c: Rebuild.
2719         * features/rs6000/powerpc-602.c: Rebuild.
2720         * features/rs6000/powerpc-603.c: Rebuild.
2721         * features/rs6000/powerpc-604.c: Rebuild.
2722         * features/rs6000/powerpc-64.c: Rebuild.
2723         * features/rs6000/powerpc-64l.c: Rebuild.
2724         * features/rs6000/powerpc-7400.c: Rebuild.
2725         * features/rs6000/powerpc-750.c: Rebuild.
2726         * features/rs6000/powerpc-860.c: Rebuild.
2727         * features/rs6000/powerpc-altivec32.c: Rebuild.
2728         * features/rs6000/powerpc-altivec32l.c: Rebuild.
2729         * features/rs6000/powerpc-altivec64.c: Rebuild.
2730         * features/rs6000/powerpc-altivec64l.c: Rebuild.
2731         * features/rs6000/powerpc-cell32l.c: Rebuild.
2732         * features/rs6000/powerpc-cell64l.c: Rebuild.
2733         * features/rs6000/powerpc-e500.c: Rebuild.
2734         * features/rs6000/powerpc-e500l.c: Rebuild.
2735         * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2736         * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2737         * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2738         * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2739         * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2740         * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2741         * features/rs6000/powerpc-vsx32.c: Rebuild.
2742         * features/rs6000/powerpc-vsx32l.c: Rebuild.
2743         * features/rs6000/powerpc-vsx64.c: Rebuild.
2744         * features/rs6000/powerpc-vsx64l.c: Rebuild.
2745         * features/rs6000/rs6000.c: Rebuild.
2746         * features/s390-linux32.c: Rebuild.
2747         * features/s390-linux32v1.c: Rebuild.
2748         * features/s390-linux32v2.c: Rebuild.
2749         * features/s390-linux64.c: Rebuild.
2750         * features/s390-linux64v1.c: Rebuild.
2751         * features/s390-linux64v2.c: Rebuild.
2752         * features/s390x-linux64.c: Rebuild.
2753         * features/s390x-linux64v1.c: Rebuild.
2754         * features/s390x-linux64v2.c: Rebuild.
2755         * features/tic6x-c62x-linux.c: Rebuild.
2756         * features/tic6x-c62x.c: Rebuild.
2757         * features/tic6x-c64x-linux.c: Rebuild.
2758         * features/tic6x-c64x.c: Rebuild.
2759         * features/tic6x-c64xp-linux.c: Rebuild.
2760         * features/tic6x-c64xp.c: Rebuild.
2761
2762 2012-07-27  Tom Tromey  <tromey@redhat.com>
2763
2764         * c-exp.y (classify_name): Avoid assignment in condition.
2765
2766 2012-07-27  Roland Schwingel  <roland.schwingel@onevision.com>
2767
2768         * amd64-windows-tdep.c: Include "frame.h".
2769         (amd64_windows_skip_trampoline_code): New function.
2770         (amd64_windows_init_abi): Add trampoline registration.
2771
2772 2012-07-27  Yao Qi  <yao@codesourcery.com>
2773
2774         * tracepoint.c (cur_traceframe_number): Remove.
2775         (set_tfile_traceframe): Remove.
2776         (tfile_trace_find, tfile_fetch_registers): Update callers.
2777         (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2778         (tfile_open, tfile_trace_find): Likewise.
2779
2780 2012-07-27  Yao Qi  <yao@codesourcery.com>
2781
2782         * thread.c (switch_to_thread): Don't call registers_changed.
2783
2784 2012-07-26  Tom Tromey  <tromey@redhat.com>
2785
2786         * Makefile.in (SFILES): Remove objc-exp.y.
2787         (YYFILES): Remove objc-exp.c.
2788         (YYOBJ): Remove objc-exp.o.
2789         (local-maintainer-clean): Don't mention objc-exp.c.
2790         * c-exp.y: Include objc-lang.h.
2791         (%union) <class>: New field.
2792         (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2793         (exp): Clone subscript production for OBJC_LBRAC.  Add various
2794         Objective C productions.
2795         (msglist, msgarglist, msgarg): New productions.
2796         (array_mod, func_mod, operator): Clone productions for
2797         OBJC_LBRAC.
2798         (parse_string_or_char): Handle '@' strings.
2799         (lex_one_token): Return OBJC_LBRAC.  Recognize @selector.
2800         (classify_name): Check la_name_of_this.  Recognize ObjC class
2801         names.
2802         * objc-exp.y: Remove.
2803         * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2804         * objc-lang.h (objc_parse, objc_error): Don't declare.
2805
2806 2012-07-26  Markus Metzger  <markus.t.metzger@intel.com>
2807
2808         * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2809
2810 2012-07-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
2811
2812         * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2813         and decrement.
2814
2815 2012-07-26  Tom Tromey  <tromey@redhat.com>
2816
2817         * copying.c: Rebuild.
2818         * copying.awk: Don't use immediate_quit.  Use 'no_set_class', not
2819         'no_class'.
2820
2821 2012-07-26  Tom Tromey  <tromey@redhat.com>
2822
2823         * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2824         immediate_quit.
2825         (print_objfile_statistics): Likewise.
2826         (maintenance_print_symbols): Likewise.
2827         (maintenance_print_msymbols): Likewise.
2828         (maintenance_print_objfiles): Likewise.
2829         * psymtab.c (print_partial_symbols): Call QUIT.
2830         (maintenance_print_psymbols): Likewise.  Don't modify
2831         immediate_quit.
2832         * copying.c (show_copying_command): Don't modify immediate_quit.
2833         (show_warranty_command): Likewise.
2834         * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2835
2836 2012-07-26  Keith Seitz  <keiths@redhat.com>
2837
2838         * linespec.c (linespec_lexer_lex_number): The input
2839         is also a valid number if the next character is a comma
2840         or colon.
2841
2842 2012-07-26  Joel Brobecker  <brobecker@adacore.com>
2843
2844         * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2845         configure options.
2846
2847 2012-07-26  Tristan Gingold  <gingold@adacore.com>
2848
2849         * machoread.c: Include gdb_bfd.h.
2850
2851 2012-07-26  Tristan Gingold  <gingold@adacore.com>
2852
2853         * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2854         offset.
2855
2856 2012-07-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2857
2858         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2859         SIZE to size_t.
2860         (dwarf2_evaluate_loc_desc): Likewise.
2861         (dwarf2_loc_desc_needs_frame): Likewise.
2862         (locexpr_describe_location_1): Likewise.
2863         * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2864         size_t.
2865         (struct dwarf2_loclist_baton): Likewise.
2866         * dwarf2read.c (struct dwarf_block): Likewise.
2867         (dump_die_shallow): Use pulongest to print dwarf_block.size.
2868         (decode_locdesc): Expand SIZE and I to size_t.
2869
2870 2012-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2871
2872         * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2873
2874 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
2875
2876         * doublest.c (convert_doublest_to_floatformat): If the exponent
2877         is too small, treat the value as zero.  If the exponent is too
2878         large, treat the value as infinity.
2879
2880 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
2881
2882         * configure.ac: Add --enable-lmcheck configure option.
2883         * configure: Regenerate.
2884
2885 2012-07-25  Tom Tromey  <tromey@redhat.com>
2886
2887         * NEWS: Mention maint info bfds.
2888         * gdb_bfd.c (all_bfds): New global.
2889         (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2890         (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2891         New functions.
2892
2893 2012-07-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
2894
2895         * configure.tgt: Add v850*-*-rtems*.
2896
2897 2012-07-25  Tom Tromey  <tromey@redhat.com>
2898
2899         * macrotab.c (macro_bcache_str): Remove cast.
2900
2901 2012-07-25  Hui Zhu  <hui_zhu@mentor.com>
2902
2903         * linespec.c (linespec_lexer_lex_number): Update comments,
2904         change the return and add check to make sure the input is
2905         the decimal numbers.
2906         (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2907         false, call linespec_lexer_lex_string.
2908
2909 2012-07-24  Tom Tromey  <tromey@redhat.com>
2910
2911         * symfile.c (symbol_file_add): Don't open BFD twice.
2912
2913 2012-07-24  Marc Khouzam  <marc.khouzam@ericsson.com>
2914
2915         * breakpoint.c (create_breakpoint): Store condition for pending
2916         breakpoints.
2917
2918 2012-07-24  Andreas Schwab  <schwab@linux-m68k.org>
2919
2920         * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2921         (m68k_return_value): Handle complex types like structures.
2922         (m68k_svr4_return_value): Likewise.
2923
2924 2012-07-24  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2925
2926         * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2927         parameters to bfd_get_section_name.
2928
2929 2012-07-24  Yao Qi  <yao@codesourcery.com>
2930
2931         * cli/cli-setshow.c: Handle case 'var_uinteger'
2932         and 'var_zuninteger' together.  Handle case 'var_integer' and
2933         'var_zinteger' together.
2934
2935 2012-07-23  Keith Seitz  <keiths@redhat.com>
2936
2937         * linespec.c (convert_linespec_to_sal): Don't add
2938         any symbols to the result vector if symbol_to_sal
2939         returns zero.
2940
2941 2012-07-23  Keith Seitz  <keiths@redhat.com>
2942
2943         * linespec.c (decode_objc): Record the function name
2944         in the linespec.
2945
2946 2012-07-23  Tom Tromey  <tromey@redhat.com>
2947
2948         * rs6000-nat.c (add_vmap): Rewrite archive loop.  Fix reference
2949         counting.
2950         * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2951         (map_vmap): Acquire a reference to the BFD.
2952
2953 2012-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
2954
2955         * p-valprint.c (pascal_object_print_value): Replace potentially
2956         unsafe alloca with xmalloc/xfree.
2957         * valops.c (search_struct_method): Likewise.
2958
2959 2012-07-23  Tom Tromey  <tromey@redhat.com>
2960
2961         * solib-svr4.c (enable_break): Update.
2962         * bfd-target.h (target_bfd_reopen): Update documentation.
2963
2964 2012-07-23  Tom Tromey  <tromey@redhat.com>
2965
2966         * symfile.c (separate_debug_file_exists): Update.
2967         (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2968         (reread_symbols): Update.
2969         * elfread.c (build_id_verify): Update.
2970         * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2971         bfd_open_maybe_remote.
2972
2973 2012-07-23  Tom Tromey  <tromey@redhat.com>
2974
2975         * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2976
2977 2012-07-23  Tom Tromey  <tromey@redhat.com>
2978
2979         * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2980         and 'abfd'.
2981         * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2982         and 'abfd'.
2983         * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2984         * machoread.c (macho_add_oso_symfile): Make a cleanup for
2985         'abfd'.
2986         (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2987         * objfiles.c (allocate_objfile): Acquire a new reference.
2988         * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2989         * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2990         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2991         a cleanup for 'nbfd'.
2992         * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2993         for 'nbfd'.
2994         * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2995         make a cleanup for 'abfd'.
2996         (symbol_file_add): Make a BFD cleanup.
2997
2998 2012-07-23  Tom Tromey  <tromey@redhat.com>
2999
3000         * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3001         (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3002         * corelow.c (core_open): Use gdb_bfd_fopen.
3003         * dsrec.c (load_srec): Use gdb_bfd_openr.
3004         * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3005         * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3006         * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3007         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3008         (gdb_bfd_fdopenr): New functions.
3009         * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3010         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3011         (gdb_bfd_fdopenr): Declare.
3012         * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3013         * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3014         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3015         gdb_bfd_openr_next_archived_file.
3016         (macho_check_dsym): Use gdb_bfd_openr.
3017         (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3018         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3019         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3020         * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3021         gdb_bfd_openr.
3022         * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3023         * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3024         gdb_bfd_openr_next_archived_file.
3025         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3026         Use gdb_bfd_openr.
3027         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3028         gdb_bfd_openr.
3029         * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3030         * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3031         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3032         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3033         (symfile_bfd_open): Use gdb_bfd_fopen.
3034         (generic_load): Use gdb_bfd_openr.
3035         * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3036
3037 2012-07-23  Tom Tromey  <tromey@redhat.com>
3038
3039         * bfd-target.c (target_bfd_reopen): Update.
3040         * cli/cli-dump.c (bfd_openr_with_cleanup)
3041         (bfd_openw_with_cleanup): Update.
3042         * corelow.c (core_open): Update.
3043         * dsrec.c (load_srec): Update.
3044         * exec.c (exec_file_attach): Update.
3045         * gcore.c (create_gcore_bfd): Update.
3046         * gdb_bfd.c (gdb_bfd_ref): Return void.
3047         (gdb_bfd_open): Update.
3048         * gdb_bfd.h (gdb_bfd_ref): Return void.
3049         Update comments.
3050         * jit.c (jit_bfd_try_read_symtab): Update.
3051         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3052         * machoread.c (macho_symfile_read_all_oso): Update.
3053         (macho_check_dsym): Update.
3054         * procfs.c (insert_dbx_link_bpt_in_file): Update.
3055         * remote-m32r-sdi.c (m32r_load): Update.
3056         * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3057         * rs6000-nat.c (add_vmap): Update.
3058         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3059         Update.
3060         * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3061         * solib-spu.c (spu_bfd_open): Update.
3062         * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3063         * spu-linux-nat.c (spu_bfd_open): Update.
3064         * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3065         (generic_load): Update.
3066         * windows-nat.c (windows_make_so): Update.
3067
3068 2012-07-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
3069
3070         * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3071
3072 2012-07-20  Jeff Kenton  <jkenton@tilera.com>
3073
3074         * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3075         SIGTRAMP_FRAME unwinding.
3076
3077 2012-07-20  Doug Evans  <dje@google.com>
3078
3079         * NEWS: Document new options "set/show use-deprecated-index-sections",
3080         and delete reference to --use-deprecated-index-sections.
3081         * symfile.h (use_deprecated_index_sections): Delete.
3082         * dwarf2read.c (use_deprecated_index_sections): Make static.
3083         (read_index_from_section): Update wording of how to load
3084         deprecated index sections.
3085         (_initialize_dwarf2_read): New options
3086         "set/show use-deprecated-index-sections".
3087         * main.c (captured_main): Delete --use-deprecated-index-sections.
3088
3089 2012-07-20  Pedro Alves  <palves@redhat.com>
3090
3091         PR threads/11692
3092         PR gdb/12203
3093
3094         * infrun.c (handle_inferior_event) <new thread>: Don't special
3095         case minus_one_ptid.
3096         <TARGET_WAITKIND_SPURIOUS>: Ditto.
3097         * linux-thread-db.c (thread_get_info_callback): Don't return early
3098         if the thread is zombie.
3099         (thread_from_lwp): Change return type to void.  Rewrite stale
3100         comment.
3101         (attach_thread): Don't return early if the thread is zombie,
3102         instead set its "dying" flag.
3103         (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3104         (find_new_threads_callback): Don't return early if the thread is
3105         zombie.
3106
3107 2012-07-20  Pedro Alves  <palves@redhat.com>
3108
3109         * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3110         * target.c (target_wait): Likewise.
3111         (str_comma_list_concat_elem, do_option, target_options_to_string):
3112         New functions.
3113         * target.h (target_options_to_string): Declare.
3114
3115 2012-07-20  Jan Kratochvil <jan.kratochvil@redhat.com>
3116             Tom Tromey  <tromey@redhat.com>
3117
3118         * dwarf2read.c (dwarf_decode_macros)
3119         <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3120         DW_MACRO_GNU_transparent_include_alt>: New cases.
3121         (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3122         DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3123
3124 2012-07-20  Tom Tromey  <tromey@redhat.com>
3125
3126         * dwarf2read.c (try_open_dwo_file): Don't call
3127         gdb_bfd_stash_filename.
3128
3129 2012-07-20  Pedro Alves  <palves@redhat.com>
3130
3131         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3132         (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3133         (i386_process_record): Tweak description comments.
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_process_record): Use record_read_memory.
3139         * record.c (record_read_memory): New function.
3140         (record_arch_list_add_mem, record_exec_insn): Use
3141         record_read_memory.
3142         * record.h (record_read_memory): Declare.
3143
3144 2012-07-20  Yao Qi  <yao@codesourcery.com>
3145
3146         * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3147         NULL for xfree.
3148
3149 2012-07-19  Pedro Alves  <palves@redhat.com>
3150
3151         * record.c (record_resume): Ask the target beneath to report all
3152         signals.
3153
3154 2012-07-19  Doug Evans  <dje@google.com>
3155
3156         * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3157         there's no section at address zero.
3158         (dwarf2_record_block_ranges): Ditto.
3159
3160 2012-07-19  Yao Qi  <yao@codesourcery.com>
3161
3162         * command.h, remote.c: Fix a typo in comment.
3163
3164 2012-07-19  Tom Tromey  <tromey@redhat.com>
3165
3166         PR exp/13206:
3167         * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3168         * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3169         OP_DECLTYPE>: New cases.
3170         * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3171         (type_exp): Add new productions.
3172         (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3173         and decltype.
3174         * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3175         New case.
3176         * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3177         OP_DECLTYPE>: New case.
3178         * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3179         New case.
3180         * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3181         * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3182
3183 2012-07-19  Tom Tromey  <tromey@redhat.com>
3184
3185         * c-exp.y (enum token_flags): New.
3186         (struct token) <cxx_only>: Remove.
3187         <flags>: New field.
3188         (tokentab3, tokentab2, ident_tokens): Update.
3189         (lex_one_token): Update.  Handle FLAG_SHADOW.
3190
3191 2012-07-19  Tom Tromey  <tromey@redhat.com>
3192
3193         * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3194         * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3195         UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3196         * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE.  Update
3197         for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.  Use
3198         type_exp production where appropriate.
3199         * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3200         <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3201         <UNOP_MEMVAL_TYPE>: New case.
3202         (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3203         (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3204         * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3205         <UNOP_MEMVAL_TYPE>: New case.
3206         (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3207         UNOP_REINTERPRET_CAST>: Update.
3208         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3209         * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3210         UNOP_REINTERPRET_CAST>: Update.
3211         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3212         * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3213         * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3214         constants.
3215
3216 2012-07-19  Yao Qi  <yao@codesourcery.com>
3217             Jan Kratochvil <jan.kratochvil@redhat.com>
3218
3219         * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3220         and case 'var_optional_filename' together.
3221         * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3222         instead of add_setshow_optional_filename_cmd for setshow command
3223         'args'.  Set completer for 'set args'.
3224
3225 2012-07-18  Doug Evans  <dje@google.com>
3226
3227         * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3228         * common/gdb_vecs.c: New file, contents from utils.c.
3229         * common/host-defs.h: New file, contents from defs.h.
3230         * utils.h: New file, contents from defs.h.
3231         * defs.h: Move all declarations of objects defined in utils.c
3232         to utils.h (except QUIT() and related).
3233         #include "utils.h", "host-defs.h".
3234         * probe.h (probe_p): Move here from gdb_vecs.h.
3235         * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3236         * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3237         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3238         * Makefile.in (SFILES): Add common/gdb_vecs.c.
3239         (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3240         (COMMON_OBS): Add gdb_vecs.o.
3241         (gdb_vecs.o): New rule.
3242
3243 2012-07-18  Keith Seitz  <keiths@redhat.com>
3244
3245         * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3246         parameter.  If non-zero, use SYMNAME as the canonical name
3247         for the SaL.
3248         Update all callers.
3249         (convert_linespec_to_sals): Use add_sal_to_sals for
3250         expressions, too.
3251         (decode_line_full): No need to "fill in missing canonical names"
3252         anymore. Simply make cleanups for the allocated names.
3253
3254 2012-07-18  Keith Seitz  <keiths@redhat.com>
3255
3256         * linespec.c (struct linespec): Constify expression,
3257         source_filename, function_name, and label_name.
3258         (symbol_not_found_error): Make all parameters const.
3259         (linespec_parser_delete): No need to check for NULL
3260         when using xfree. Cast const char * to char * for xfree.
3261
3262 2012-07-18  Keith Seitz  <keiths@redhat.com>
3263
3264         * breakpoint.c (invalid_thread_id_error): New function.
3265         (find_condition_and_thread): Use invalid_thread_id_error.
3266         (watch_command_1): Likewise.
3267
3268 2012-07-18  Tom Tromey  <tromey@redhat.com>
3269
3270         * cc-with-index.sh, cc-with-dwz.sh: Remove.
3271         * contrib/cc-with-tweaks.sh: New file.
3272
3273 2012-07-18  Tom Tromey  <tromey@redhat.com>
3274
3275         * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
3276         (locate_dwz_sections): Recognize .gdb_index.
3277         (create_cus_from_index_list): New function.
3278         (create_cus_from_index): Use it.  Handle .dwz data.
3279         (read_index_from_section): New function, extracted from
3280         dwarf2_read_index.
3281         (dwarf2_read_index): Use it.  Read .gdb_index from dwz file,
3282         if needed.
3283
3284 2012-07-18  Tom Tromey  <tromey@redhat.com>
3285
3286         * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
3287         (struct dwarf2_per_cu_data) <length>: No longer bitfield.
3288         <is_dwz>: New field.
3289         (struct dwz_file): New.
3290         (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
3291         (locate_dwz_sections, dwarf2_get_dwz_file)
3292         (get_abbrev_section_for_cu): New functions.
3293         (error_check_comp_unit_head, read_and_check_comp_unit_head)
3294         (read_and_check_type_unit_head): Add abbrev_section argument.
3295         (create_debug_types_hash_table): Update.
3296         (init_cutu_and_read_dies): Use proper abbrev section.
3297         (init_cutu_and_read_dies_no_follow): Likewise.
3298         (set_partial_user): Do nothing if PST==NULL.
3299         (read_comp_units_from_section): New function.
3300         (create_all_comp_units): Use it.
3301         (scan_partial_symbols, partial_die_parent_scope): Update.
3302         (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3303         (process_imported_unit_die, read_partial_die): Handle .dwz files.
3304         (find_partial_die): Add offset_in_dwz argument.  Update.
3305         (guess_partial_die_structure_name, fixup_partial_die): Update.
3306         (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
3307         DW_FORM_GNU_strp_alt.
3308         (read_indirect_string_from_dwz): New function.
3309         (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
3310         (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3311         (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
3312         (follow_die_offset): Add offset_in_dwz argument.
3313         (follow_die_ref, dwarf2_fetch_die_location_block): Update.
3314         (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
3315         (dwarf_decode_macro_bytes): Add section_is_dwz argument.
3316         Handle new macro forms.
3317         (dwarf_decode_macros): Update.
3318         (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
3319         (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
3320         (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
3321         (create_debug_types_hash_table): Use correct abbrev section.
3322         (get_debug_line_section): New function.
3323         (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
3324         (process_full_comp_unit): Pass 'required' argument to
3325         end_symtab_get_static_block.
3326         * buildsym.h (end_symtab_get_static_block): Update.
3327         * buildsym.c (end_symtab_get_static_block): Add 'required'
3328         argument.
3329         (end_symtab, end_expandable_symtab): Update.
3330
3331 2012-07-18  Tom Tromey  <tromey@redhat.com>
3332
3333         * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3334         (pagesize): Remove.
3335         (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3336         (zlib_decompress_section): Remove.
3337         (dwarf2_read_section): Use gdb_bfd_map_section.
3338         (munmap_section_buffer): Remove.
3339         (free_dwo_file, dwarf2_per_objfile_free): Don't use
3340         munmap_section_buffer.
3341         * gdb_bfd.c: Include zlib.h, sys/mman.h.
3342         (struct gdb_bfd_section_data): New.
3343         (free_one_bfd_section): New function.
3344         (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3345         (get_section_descriptor, zlib_decompress_section)
3346         (gdb_bfd_map_section): New functions.
3347         * gdb_bfd.h (gdb_bfd_map_section): Declare.
3348
3349 2012-07-18  Tom Tromey  <tromey@redhat.com>
3350
3351         * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3352
3353 2012-07-18  Tom Tromey  <tromey@redhat.com>
3354
3355         * gdb_bfd.c (struct gdb_bfd_data): New.
3356         (gdb_bfd_cache): New global.
3357         (struct gdb_bfd_cache_search): New.
3358         (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3359         (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3360         * gdb_bfd.h (gdb_bfd_open): Declare.
3361
3362 2012-07-18  Tom Tromey  <tromey@redhat.com>
3363
3364         * utils.c (make_cleanup_bfd_unref): Rename from
3365         make_cleanup_bfd_close.
3366         * defs.h (make_cleanup_bfd_unref): Rename from
3367         make_cleanup_bfd_close.
3368         * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3369         (bfd_openw_with_cleanup): Update.
3370         * corelow.c (core_open): Update.
3371         * dsrec.c (load_srec): Update.
3372         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3373         * remote-m32r-sdi.c (m32r_load): Update.
3374         * remote-mips.c (mips_load_srec): Update.
3375         (pmon_load_fast): Update.
3376         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3377         Update.
3378         (darwin_bfd_open): Update.
3379         * solib.c (solib_bfd_fopen): Update.
3380         * symfile-mem.c (symbol_file_add_from_memory): Update.
3381         * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3382         (symfile_bfd_open): Update.
3383         (generic_load): Update.
3384
3385 2012-07-18  Tom Tromey  <tromey@redhat.com>
3386
3387         * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3388         (pmon_load_fast): Likewise.
3389         * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3390         (m32r_upload_command): Likewise.
3391         * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3392         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3393         Use make_cleanup_bfd_close.
3394
3395 2012-07-18  Tom Tromey  <tromey@redhat.com>
3396
3397         * symfile.c (symfile_bfd_open): Don't copy name.  Call
3398         gdb_bfd_stash_filename.
3399         (load_command): Open the new BFD before freeing the old.
3400         (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3401         * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3402         Call gdb_bfd_stash_filename.
3403         * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3404         * solib-spu.c (spu_bfd_fopen): Don't copy name.  Call
3405         gdb_bfd_stash_filename.
3406         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3407         Free found_pathname.
3408         * rs6000-nat.c (add_vmap): Don't copy filename.  Call
3409         gdb_bfd_stash_filename.
3410         * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3411         * machoread.c (macho_add_oso_symfile): Call
3412         gdb_bfd_stash_filename.
3413         (macho_symfile_read_all_oso): Arrange to free archive_name.  Call
3414         gdb_bfd_stash_filename.
3415         (macho_check_dsym): Don't copy filename.  Call
3416         gdb_bfd_stash_filename.
3417         * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3418         * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3419         * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3420         * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3421         * exec.c (exec_close): Don't free the BFD's filename.
3422         (exec_file_attach): Don't copy the filename.  Call
3423         gdb_bfd_stash_filename.
3424         * corelow.c (core_close): Don't free the BFD's filename.
3425         (core_open): Call gdb_bfd_stash_filename.
3426         * corefile.c (reopen_exec_file): Remove #if 0 code.
3427         * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename.  Free
3428         pathname.
3429         * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3430
3431 2012-07-18  Tom Tromey  <tromey@redhat.com>
3432
3433         * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3434         gdb_bfd_unref.
3435         (free_dwo_file): Use gdb_bfd_unref.
3436         * cli/cli-dump.c: Include gdb_bfd.h.
3437         (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3438         (bfd_openr_with_cleanup): Likewise.
3439         * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3440         gdb_bfd_unref.
3441         * utils.c: Include gdb_bfd.h.
3442         (do_bfd_close_cleanup): Use gdb_bfd_unref.
3443         * symfile.c: Include gdb_bfd.h.
3444         (separate_debug_file_exists): Use gdb_bfd_unref.
3445         (bfd_open_maybe_remote): Use gdb_bfd_ref.
3446         (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3447         (generic_load): Use gdb_bfd_ref.
3448         (reread_symbols): Use gdb_bfd_unref.
3449         * symfile-mem.c: Include gdb_bfd.h.
3450         (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3451         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3452         * solib.c: Include gdb_bfd.h.
3453         (solib_bfd_fopen): Use gdb_bfd_ref.
3454         (solib_bfd_open): Use gdb_bfd_unref.
3455         (free_so_symbols): Use gdb_bfd_unref.
3456         (reload_shared_libraries_1): Use gdb_bfd_unref.
3457         * solib-spu.c: Include gdb_bfd.h.
3458         (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3459         * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3460         gdb_bfd_unref.
3461         * solib-frv.c: Include gdb_bfd.h.
3462         (enable_break2): Use gdb_bfd_unref.
3463         * solib-dsbt.c: Include gdb_bfd.h.
3464         (enable_break2): Use gdb_bfd_unref.
3465         * solib-darwin.c: Include gdb_bfd.h.
3466         (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3467         gdb_bfd_unref.
3468         (darwin_bfd_open): Use gdb_bfd_unref.
3469         * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3470         * remote-mips.c: Include gdb_bfd.h.
3471         (mips_load_srec): Use gdb_bfd_ref.
3472         (pmon_load_fast): Use gdb_bfd_ref.
3473         * remote-m32r-sdi.c: Include gdb_bfd.h.
3474         (m32r_load): Use gdb_bfd_ref.
3475         * record.c: Include gdb_bfd.h.
3476         (record_save_cleanups): Use gdb_bfd_unref.
3477         (cmd_record_save): Use gdb_bfd_unref.
3478         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3479         gdb_bfd_unref.
3480         * objfiles.h (gdb_bfd_close_or_warn): Remove.
3481         (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3482         * objfiles.c: Include gdb_bfd.h.
3483         (free_objfile): Use gdb_bfd_unref.
3484         (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3485         gdb_bfd.c.
3486         * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3487         (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3488         (macho_check_dsym): Likewise.
3489         * m32r-rom.c: Include gdb_bfd.h.
3490         (m32r_load): Use gdb_bfd_ref.
3491         (m32r_upload_command): Use gdb_bfd_ref.
3492         * jit.c: Include gdb_bfd.h.
3493         (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3494         * gdb_bfd.h: New file.
3495         * gdb_bfd.c: New file.
3496         * gcore.c: Include gdb_bfd.h.
3497         (create_gcore_bfd): Use gdb_bfd_ref.
3498         (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3499         (gcore_command): Use gdb_bfd_unref.
3500         * exec.c: Include gdb_bfd.h.
3501         (exec_close): Use gdb_bfd_unref.
3502         (exec_close_1): Use gdb_bfd_unref.
3503         (exec_file_attach): Use gdb_bfd_ref.
3504         * elfread.c: Include gdb_bfd.h.
3505         (build_id_verify): Use gdb_bfd_unref.
3506         * dsrec.c: Include gdb_bfd.h.
3507         (load_srec): Use gdb_bfd_ref.
3508         * corelow.c: Include gdb_bfd.h.
3509         (core_close): Use gdb_bfd_unref.
3510         (core_open): Use gdb_bfd_ref.
3511         * bfd-target.c: Include gdb_bfd.h.
3512         (target_bfd_xclose): Use gdb_bfd_unref.
3513         (target_bfd_reopen): Use gdb_bfd_ref.
3514         * Makefile.in (SFILES): Add gdb_bfd.c.
3515         (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3516         (COMMON_OBS): Add gdb_bfd.o.
3517
3518 2012-07-18  Keith Seitz  <keiths@redhat.com>
3519
3520         * breakpoint.c (find_condition_and_thread): Initialize
3521         TASK and REST.
3522         (create_breakpiont): find_condition_and_thread will now
3523         initialize COND_STRING, THREAD, and REST (and TASK).
3524         (addr_string_to_sals): Likewise.
3525
3526 2012-07-18  Pedro Alves  <palves@redhat.com>
3527
3528         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3529         Pull the single step breakpoints out of the target.
3530
3531 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
3532
3533         * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3534         * stap-probe.c (compile_probe_arg): Likewise.
3535
3536 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
3537
3538         * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3539         (elf_compile_to_ax): Likewise.
3540         * infrun.c (insert_exception_resume_from_probe): Likewise.
3541         (check_exception_resume): Remove `objfile' variable.
3542         * probe.c (find_probe_by_pc): Remove `objfile' argument.
3543         (struct probe_and_objfile, probe_and_objfile_s): Delete.
3544         (collect_probes): Adjust return value to `VEC (probe_p) *'.
3545         (compare_entries): Rename to...
3546         (compare_probes): ...this.  Adjust function to work with
3547         `struct probe *'.  Rename variables `ea' and `eb' to `pa' and `pb'
3548         respectively.
3549         (gen_ui_out_table_header_info): Adjust `probes' argument to be
3550         `VEC (probe_p) *'.
3551         (print_ui_out_info): Adjust argument to be `struct probe *'.
3552         (info_probes_for_ops): Adjust internal computations to use
3553         `VEC (probe_p) *'.
3554         (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3555         * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3556         gen_info_probes_table_values>: Remove `objfile' argument.
3557         (struct probe) <objfile>: New field.
3558         (find_probe_by_pc): Remove `objfile' argument.
3559         * stap-probe.c (stap_parse_probe_arguments): Likewise.
3560         (stap_get_probe_argument_count): Likewise.
3561         (stap_get_arg): Likewise.
3562         (stap_evaluate_probe_argument): Likewise.
3563         (stap_compile_to_ax): Likewise.
3564         (compile_probe_arg): Refactor not to pass `objfile' anymore.
3565         (handle_stap_probe): Fill `objfile' field from `struct probe'.
3566         (stap_gen_info_probes_table_header): Remove `objfile' argument.
3567         * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3568         sym_compile_to_ax>: Likewise.
3569
3570 2012-07-18  Terry Guo  <terry.guo@arm.com>
3571
3572         PR 14329
3573         * defs.h (GDB_MI_MSG_WIDTH): New.
3574         * ser_base (ser_base_read_error_fd): New function.
3575         (do_ser_base_readchar): Poll error file descriptor as well as
3576         standard output.
3577         (generic_readchar): Refactor error handling.
3578
3579 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
3580
3581         * NEWS: Create a new section for the next release branch.
3582         Rename the section of the current branch, now that it has
3583         been cut.
3584
3585 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
3586
3587         GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3588         * version.in: Bump version to 7.5.50.20120718-cvs.
3589
3590 2012-07-17  Keith Seitz  <keiths@redhat.com>
3591
3592         * linespec.c (linespec_parse_line_offset): Make parameter
3593         const.
3594
3595 2012-07-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
3596
3597         PR 11914
3598         * f-valprint.c (info_common_command): New variable frame_id.
3599         Reinitialize FI form FRAME_ID after each print_variable_and_value.
3600         * printcmd.c (print_variable_and_value): Extend function comment.
3601         Add comment for invalidated FRAME.
3602         * stack.c (backtrace_command_1): New variable frame_id.  Reinitialize
3603         FI form FRAME_ID after each print_frame_local_vars.
3604         (struct print_variable_and_value_data): Change frame to frame_id.
3605         (do_print_variable_and_value): New variable frame, initialize it from
3606         p->frame_id.  Add comment for invalidated FRAME.
3607         (print_frame_local_vars, print_frame_arg_vars): New function comment.
3608         Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization.  Add comment
3609         for invalidated FRAME.
3610
3611 2012-07-16  Marc Khouzam  <marc.khouzam@ericsson.com>
3612             Pedro Alves  <palves@redhat.com>
3613
3614         * linux-nat.c (linux_nat_detach): Don't unregister from the event
3615         loop.
3616
3617 2012-07-16  Tom Tromey  <tromey@redhat.com>
3618
3619         * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3620
3621 2012-07-15  Doug Evans  <dje@google.com>
3622
3623         * dwarf2read.c (stmt_list_hash): New struct.
3624         (type_unit_group): Embed "per_cu" member, remove pointer.
3625         New union member "t", move member "tus" into it, all uses updated.
3626         New member "hash", replaces member "line_offset, all uses updated.
3627         (quick_file_names): Replace member "offset" with "hash", all uses
3628         updated.
3629         (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3630         (hash_file_name_entry, eq_file_name_entry): Call them.
3631         (hash_type_unit_group, eq_type_unit_group): Ditto.
3632         (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3633         (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3634         (dw2_get_file_names): Update.
3635         (create_type_unit_group): Replace "per_cu" arg with "cu".
3636         All callers updated.  Fix "quick" (.gdb_index) handling.
3637         (get_type_unit_group): Replace "per_cu" arg with "cu".
3638         All callers updated.
3639         (build_type_unit_groups): Don't reset tu_stats.
3640
3641         * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3642         "tab_cur_size".  Change member "tab" to be a htab_t.
3643         (create_filename_seen_cache): Update.
3644         (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3645         (filename_seen): Update.
3646
3647 2012-07-13  Doug Evans  <dje@google.com>
3648
3649         * symtab.c (filename_seen): Update comment.
3650
3651 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3652             Doug Evans  <dje@google.com>
3653
3654         * buildsym.c (end_symtab_1): Split it to ...
3655         (end_symtab_get_static_block): ... this ...
3656         (end_symtab_from_static_block): ... and this function.
3657         (end_symtab, end_expandable_symtab): Call them.
3658         * buildsym.h (end_symtab_get_static_block)
3659         (end_symtab_from_static_block): New declarations.
3660         * dwarf2read.c (process_full_comp_unit): New variable static_block.
3661         Set its valid CU ranges.
3662
3663 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3664
3665         * dwarf2loc.c (disassemble_dwarf_expression): Handle
3666         DW_OP_GNU_parameter_ref.
3667
3668 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3669
3670         * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3671         read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3672
3673 2012-07-13  Doug Evans  <dje@google.com>
3674
3675         * symtab.c (output_source_filename): Delete unnecessary forward decl.
3676         (filename_seen_cache): New struct.
3677         (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3678         (create_filename_seen_cache): New function.
3679         (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3680         (filename_seen): Delete arg "first".  New arg "cache".  All callers
3681         updated.
3682         (output_source_filename_data): New struct.
3683         (output_source_filename): Delete arg "first".  New arg "data".
3684         All callers updated.
3685         (sources_info): Delete local "first".  New locals "data", "cleanups".
3686         Rewrite to use filename_seen_cache.
3687         (add_partial_filename_data): Delete member "first".  New member
3688         "filename_seen_cache".  All uses updated.
3689         (make_source_files_completion_list): Rewrite to use
3690         filename_seen_cache.
3691
3692 2012-07-12  Doug Evans  <dje@google.com>
3693
3694         * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3695
3696 2012-07-10  Doug Evans  <dje@google.com>
3697
3698         PR gdb/13498
3699         * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3700         all_type_unit_groups, type_unit_groups, tu_stats.
3701         (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3702         All uses updated.  Add type_unit_group to union "s".
3703         (type_unit_group): New struct.
3704         (IS_TYPE_UNIT_GROUP): New macro.
3705         (abbrev_table): Delete unused member "section".
3706         (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3707         (dw2_get_cu): Assert not used with type_unit_group.
3708         (dw2_get_primary_cu): New function.
3709         (dw2_build_type_unit_groups_reader): New function.
3710         (dw2_build_type_unit_groups): New function.
3711         (dw2_get_file_names): Assert not called on type units.
3712         (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3713         Redo loop to iterate over type unit groups instead of type units.
3714         (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3715         (read_abbrev_offset): New function.
3716         (init_cutu_and_read_dies): New arg "abbrev_table".  All callers
3717         updated.
3718         (create_partial_symtab): New function.
3719         (process_psymtab_comp_unit_reader): Assert not used with type units.
3720         Call create_partial_symtab.
3721         (process_psymtab_type_unit): Delete.
3722         (hash_type_unit_group, eq_type_unit_group): New functions.
3723         (allocate_type_unit_groups_table): New function.
3724         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3725         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3726         (create_type_unit_group, get_type_unit_group): New functions.
3727         (tu_abbrev_offset): New struct.
3728         (sort_tu_by_abbrev_offset): New function.
3729         (add_type_unit_group_to_table): New function.
3730         (build_type_unit_groups): New function.
3731         (build_type_psymtabs_reader): New function.
3732         (build_type_psymtab_dependencies): New function.
3733         (build_type_psymtabs): Rewrite.
3734         (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3735         is seen in a type unit.
3736         (process_queue): Move symtab expansion debugging printfs here.
3737         Call process_full_type_unit for type units.
3738         (compute_symtab_includes): Assert not called for type units.
3739         (process_cu_includes): Don't call compute_symtab_includes for
3740         type units.
3741         (process_full_type_unit): New function.
3742         (process_imported_unit_die): Flag an error if called for type units.
3743         (handle_DW_AT_stmt_list): Delete arg "want_line_info".  All callers
3744         updated.  Assert not called for type units.
3745         (read_file_scope): Call dwarf2_start_symtab.
3746         (setup_type_unit_groups): New function.
3747         (read_type_unit_scope): Rewrite.
3748         (abbrev_table_read_table): Initialize abbrev_table->offset.
3749         (abbrev_table_free_cleanup): New function.
3750         (dwarf2_start_symtab): New function.
3751         (load_full_type_unit): Assert not called for type unit groups.
3752         * buildsym.c (finish_block_internal): New arg "expandable".
3753         All callers updated.
3754         (start_symtab): Move most contents to ...
3755         (restart_symtab): ... here.  New function.
3756         (reset_symtab_globals): New function.
3757         (end_symtab_1): Renamed from end_symtab.  New arg "expandable".
3758         Call reset_symtab_globals.
3759         (end_symtab, end_expandable_symtab): New functions.
3760         (set_missing_symtab, augment_type_symtab): New functions.
3761         * buildsym.h (end_expandable_symtab): Declare.
3762         (augment_type_symtab, restart_symtab): Declare.
3763         * psympriv.h (struct partial_symtab): New member "anonymous".
3764         * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3765         anonymous psymtabs.
3766         (read_psymtabs_with_filename): Ditto.
3767         (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3768         (expand_symtabs_matching_via_partial): Ditto.
3769         (dump_psymtab): Update.
3770         * dictionary.c (dict_add_pending): New function.
3771         * dictionary.h (dict_add_pending): Declare.
3772
3773 2012-07-09  Doug Evans  <dje@google.com>
3774
3775         * buildsym.c (start_subfile): Remove unnecessary check for
3776         name == NULL.
3777
3778         * psymtab.c (allocate_psymtab): Use host_address_to_string.
3779
3780         * dwarf2read.c (load_full_type_unit): Simplify.
3781
3782         * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3783         to struct signatured_type **.  All uses updated.
3784
3785         * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3786         All callers updated.
3787
3788 2012-07-09  Tom Tromey  <tromey@redhat.com>
3789
3790         * c-exp.y (check_parameter_typelist): New function.
3791         (parameter_typelist): Call it.
3792         * eval.c (make_params): Handle '(void)' case.
3793         * gdbtypes.c (lookup_function_type_with_arguments): Handle
3794         '(void)' case.
3795
3796 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3797
3798         * common/linux-ptrace.c: Include gdb_assert.h.
3799         <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3800         <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3801         stdint.h.
3802         (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3803         functions.
3804         * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3805         * linux-nat.c (linux_child_post_attach)
3806         (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3807
3808 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3809
3810         * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3811         nptl <2.7 bug workaround for core files.
3812
3813 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3814
3815         * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3816         clearing.
3817         (save_siginfo): Remove.
3818         (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3819         call.
3820         (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3821         (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3822         * linux-nat.h (struct lwp_info): Remove field siginfo.
3823
3824 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3825
3826         Code cleanup for the next patch.
3827         * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3828         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3829         call for it.
3830         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3831         (ia64_linux_stopped_data_address):
3832         * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3833         the return value.
3834         * linux-nat.h (linux_nat_get_siginfo): Likewise.
3835         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3836         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3837         call for it.
3838
3839 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3840
3841         PR 14321
3842         * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3843         Increase buffer sizes to 2x we need, not just 2x of the previous size.
3844
3845 2012-07-06  Tom Tromey  <tromey@redhat.com>
3846
3847         * c-exp.y (DOTDOTDOT): New token.
3848         (func_mod, exp): Use parameter_typelist.
3849         (parameter_typelist): New production.
3850         (tokentab3): Add "..." token.
3851         * eval.c (make_params): Handle varargs.
3852         * gdbtypes.c (lookup_function_type_with_arguments): Handle
3853         varargs.
3854
3855 2012-07-06  Tom Tromey  <tromey@redhat.com>
3856
3857         PR exp/9608:
3858         * c-exp.y (%union) <tvec>: Change type.
3859         (func_mod): Now uses <tvec> type.
3860         (exp): Update for tvec change.
3861         (direct_abs_decl): Push the typelist.
3862         (func_mod): Return a typelist.
3863         (nonempty_typelist): Update for tvec change.
3864         * gdbtypes.c (lookup_function_type_with_arguments): New function.
3865         * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3866         * parse.c (pop_type_list): New function.
3867         (push_typelist): New function.
3868         (follow_types): Handle tp_function_with_arguments.
3869         * parser-defs.h (type_ptr): New typedef.  Define a VEC.
3870         (enum type_pieces) <tp_function_with_arguments>: New constant.
3871         (union type_stack_elt) <typelist_val>: New field.
3872         (push_typelist): Declare.
3873
3874 2012-07-06  Tom Tromey  <tromey@redhat.com>
3875
3876         * c-exp.y (%union) <type_stack>: New field.
3877         (abs_decl, direct_abs_decl): Use <type_stack> type.  Update.
3878         (ptr_operator_ts): New production.
3879         (ptype): Update.
3880         * parse.c (type_stack_reserve): New function.
3881         (check_type_stack_depth): Use it.
3882         (pop_type_stack, append_type_stack, push_type_stack)
3883         (get_type_stack, type_stack_cleanup): New functions.
3884         (follow_types): Handle tp_type_stack.
3885         (_initialize_parse): Simplify initialization.
3886         * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3887         constant.
3888         (union type_stack_elt) <stack_val>: New field.
3889         (get_type_stack, append_type_stack, push_type_stack)
3890         (type_stack_cleanup): Declare.
3891
3892 2012-07-06  Tom Tromey  <tromey@redhat.com>
3893
3894         * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3895         Remove.
3896         (struct type_stack): New.
3897         * parse.c (type_stack, type_stack_size, type_stack_depth):
3898         Remove.
3899         (type_stack): New global.
3900         (parse_exp_in_context, check_type_stack_depth)
3901         (insert_into_type_stack, insert_type, push_type, push_type_int)
3902         (insert_type_address_space, pop_type, pop_type_int)
3903         (_initialize_parse): Update.
3904
3905 2012-07-06  Tom Tromey  <tromey@redhat.com>
3906
3907         * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3908         Remove %type.
3909
3910 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3911
3912         * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3913
3914 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3915             Jan Kratochvil  <jan.kratochvil@redhat.com>
3916
3917         * cp-valprint.c (cp_print_value): Replace potentially unsafe
3918         alloca with xmalloc/xfree.
3919
3920 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3921
3922         * MAINTAINERS (Write After Approval): Add myself to the list.
3923
3924 2012-07-05  Doug Evans  <dje@google.com>
3925
3926         * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3927
3928 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
3929
3930         * ax-gdb.c (cli/cli-utils.h): New include.
3931         (linespec.h): Ditto.
3932         (agent_eval_command_one): New function.
3933         (agent_command_1): Ditto.
3934         (agent_command): Call function agent_command_1.
3935         (agent_eval_command): Ditto.
3936         (_initialize_ax_gdb): Change help for "maint agent"
3937         and "maint agent-eval".
3938
3939 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
3940
3941         * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3942         * cli/cli-utils.c (check_for_argument): New function.
3943         * cli/cli-utils.h (check_for_argument): Ditto.
3944
3945 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
3946
3947         * NEWS: Mention x32 ABI support.
3948
3949 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
3950
3951         * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3952         AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3953
3954         * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3955         and pc_regnum_from_eax to -1.  Update SP regnum from
3956         sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3957         needed.
3958
3959         * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3960         pc_regnum_from_eax.
3961
3962 2012-07-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3963
3964         Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3965         * dwarf2expr.h: Include gdbtypes.h.
3966         (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3967         these forward declarations.
3968         (cu_offset, sect_offset): Move these ...
3969         * gdbtypes.h: Remove include dwarf2expr.h.
3970         (cu_offset, sect_offset): ... here.
3971
3972 2012-07-03  H.J. Lu  <hongjiu.lu@intel.com>
3973
3974         * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3975         (amd64_linux_sigtramp_code): This.
3976         (amd64_x32_linux_sigtramp_code): New.
3977         (LINUX_SIGTRAMP_LEN): Updated.
3978         (amd64_linux_sigtramp_start): Check x32 sigtramp.
3979
3980 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3981
3982         * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3983
3984 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3985
3986         * config.in: Regenerate.
3987         * configure: Regenerate.
3988         * configure.ac: Remove check for gnu/libc-version.h.
3989         * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3990         gnu/libc-version.h.
3991         (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3992         variables libc_version, libc_major and libc_minor.  Replace sscanf by
3993         inferior_has_bug.  Extend the comment.
3994
3995 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3996
3997         * linux-thread-db.c (inferior_has_bug): New function.
3998         (thread_db_find_new_threads_silently): Return boolean as checked by
3999         inferior_has_bug, describe it in the comments.
4000         (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4001         earlier.  Abort the initialization if it returned non-zero.
4002         (thread_db_new_objfile): Exclude debug files.
4003         (thread_db_find_new_threads_2): Preinitialize ERR.  Check errors also
4004         if UNTIL_NO_NEW,
4005
4006 2012-07-02  Doug Evans  <dje@google.com>
4007
4008         * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4009         related to queue management.
4010
4011         * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4012         instead of "debug dwarf2-die" in debugging printfs.
4013         (create_debug_info_hash_table_reader): Ditto.
4014         (create_debug_info_hash_table): Ditto.
4015         (init_dwo_file): Ditto.
4016         (init_cutu_and_read_dies): Add debugging printf.
4017         (init_cutu_and_read_dies_no_follow): Ditto.
4018         (process_psymtab_comp_unit_reader): Ditto.
4019
4020 2012-07-02  Stan Shebs  <stan@codesourcery.com>
4021
4022         Add target-side support for dynamic printf.
4023         * NEWS: Mention the additional style.
4024         * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4025         (struct bp_location): New field cmd_bytecode.
4026         * breakpoint.c: Include format.h.
4027         (disconnected_dprintf): New global.
4028         (parse_cmd_to_aexpr): New function.
4029         (build_target_command_list): New function.
4030         (insert_bp_location): Call it.
4031         (remove_breakpoints_pid): Skip dprintf breakpoints.
4032         (print_one_breakpoint_location): Ditto.
4033         (dprintf_style_agent): New global.
4034         (dprintf_style_enums): Add dprintf_style_agent.
4035         (update_dprintf_command_list): Add agent case.
4036         (agent_printf_command): New function.
4037         (_initialize_breakpoint): Add new commands.
4038         * common/ax.def (printf): New bytecode.
4039         * ax.h (ax_string): Declare.
4040         * ax-gdb.h (gen_printf): Declare.
4041         * ax-gdb.c: Include cli-utils.h, format.h.
4042         (gen_printf): New function.
4043         (maint_agent_print_command): New function.
4044         (_initialize_ax_gdb): Add maint agent-printf command.
4045         * ax-general.c (ax_string): New function.
4046         (ax_print): Add printf disassembly.
4047         * Makefile.in (SFILES): Add format.c
4048         (COMMON_OBS): Add format.o.
4049         * common/format.h: New file.
4050         * common/format.c: New file.
4051         * printcmd.c: Include format.h.
4052         (ui_printf): Call parse_format_string.
4053         * remote.c (remote_state): New field breakpoint_commands.
4054         (PACKET_BreakpointCommands): New enum.
4055         (remote_breakpoint_commands_feature): New function.
4056         (remote_protocol_features): Add new BreakpointCommands entry.
4057         (remote_can_run_breakpoint_commands): New function.
4058         (remote_add_target_side_commands): New function.
4059         (remote_insert_breakpoint): Call it.
4060         (remote_insert_hw_breakpoint): Ditto.
4061         (_initialize_remote): Add new packet configuration for
4062         target-side breakpoint commands.
4063         * target.h (struct target_ops): New field
4064         to_can_run_breakpoint_commands.
4065         (target_can_run_breakpoint_commands): New macro.
4066         * target.c (update_current_target): Handle
4067         to_can_run_breakpoint_commands.
4068
4069 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4070
4071         Execute -ix and -iex only after system and user gdbinit files.
4072         * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4073         processing down after gdbinit files.
4074
4075 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4076
4077         Add fnmatch-gnu module.
4078         * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4079         * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4080         * gnulib/aclocal.m4: Regenerate.
4081         * gnulib/config.in: Regenerate.
4082         * gnulib/configure: Regenerate.
4083         * gnulib/import/dummy.c: Remove.
4084         * gnulib/import/Makefile.am: Regenerate.
4085         * gnulib/import/Makefile.in: Likewise.
4086         * gnulib/import/m4/gnulib-cache.m4: Likewise.
4087         * gnulib/import/m4/gnulib-comp.m4: Likewise.
4088         * gnulib/import/alloca.c: New file.
4089         * gnulib/import/alloca.in.h: Likewise.
4090         * gnulib/import/config.charset: Likewise.
4091         * gnulib/import/fnmatch.c: Likewise.
4092         * gnulib/import/fnmatch.in.h: Likewise.
4093         * gnulib/import/fnmatch_loop.c: Likewise.
4094         * gnulib/import/localcharset.c: Likewise.
4095         * gnulib/import/localcharset.h: Likewise.
4096         * gnulib/import/m4/alloca.m4: Likewise.
4097         * gnulib/import/m4/codeset.m4: Likewise.
4098         * gnulib/import/m4/configmake.m4: Likewise.
4099         * gnulib/import/m4/fcntl-o.m4: Likewise.
4100         * gnulib/import/m4/fnmatch.m4: Likewise.
4101         * gnulib/import/m4/glibc21.m4: Likewise.
4102         * gnulib/import/m4/localcharset.m4: Likewise.
4103         * gnulib/import/m4/locale-fr.m4: Likewise.
4104         * gnulib/import/m4/locale-ja.m4: Likewise.
4105         * gnulib/import/m4/locale-zh.m4: Likewise.
4106         * gnulib/import/m4/mbrtowc.m4: Likewise.
4107         * gnulib/import/m4/mbsinit.m4: Likewise.
4108         * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4109         * gnulib/import/m4/mbstate_t.m4: Likewise.
4110         * gnulib/import/m4/stdbool.m4: Likewise.
4111         * gnulib/import/m4/wchar_h.m4: Likewise.
4112         * gnulib/import/m4/wctype_h.m4: Likewise.
4113         * gnulib/import/m4/wint_t.m4: Likewise.
4114         * gnulib/import/mbrtowc.c: Likewise.
4115         * gnulib/import/mbsinit.c: Likewise.
4116         * gnulib/import/mbsrtowcs-impl.h: Likewise.
4117         * gnulib/import/mbsrtowcs-state.c: Likewise.
4118         * gnulib/import/mbsrtowcs.c: Likewise.
4119         * gnulib/import/ref-add.sin: Likewise.
4120         * gnulib/import/ref-del.sin: Likewise.
4121         * gnulib/import/stdbool.in.h: Likewise.
4122         * gnulib/import/streq.h: Likewise.
4123         * gnulib/import/strnlen1.c: Likewise.
4124         * gnulib/import/strnlen1.h: Likewise.
4125         * gnulib/import/verify.h: Likewise.
4126         * gnulib/import/wchar.in.h: Likewise.
4127         * gnulib/import/wctype.in.h: Likewise.
4128
4129 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
4130
4131         Support shell wildcards for 'set auto-load safe-path'.
4132         * auto-load.c: Include fnmatch.h.
4133         (filename_is_in_dir): Rename to ...
4134         (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4135         it.  Update function comment.  Rename dir_len to pattern_len.  New
4136         variables filename_len, pattern and filename.  Add more DEBUG_AUTO_LOAD
4137         messages.  Use gdb_filename_fnmatch.
4138         (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4139         pattern.
4140         (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4141         * defs.h (gdb_filename_fnmatch): New declaration.
4142         * utils.c: Include fnmatch.h.
4143         (gdb_filename_fnmatch): New function.
4144
4145 2012-07-02  Sergio Durigan Junior  <sergiodj@redhat.com>
4146
4147         * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4148         `-probe' and `-probe-stap' options.
4149
4150 2012-07-01  Yao Qi  <yao@codesourcery.com>
4151
4152         * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4153         always_inserted_off, and always_inserted_enums.
4154         Change always_inserted_mode's type to 'enum auto_boolean'.
4155         (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4156         callers.
4157         (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4158         of add_setshow_enum_cmd.
4159         * infrun.c: Remove can_use_displaced_stepping_auto,
4160         can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4161         can_use_displaced_stepping_enum.
4162         Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4163         (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4164         (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4165         add_setshow_enum_cmd.
4166
4167 2012-06-30  Doug Evans  <dje@google.com>
4168
4169         * dwarf2read.c (signatured_type): Make "per_cu" member first.
4170         (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4171         currently being read.  Propagate DW_AT_comp_dir to DWO DIE.
4172
4173 2012-06-29  Doug Evans  <dje@google.com>
4174
4175         * linespec.c: #include "stack.h".
4176         (decode_line_with_current_source): Moved here from symtab.c and
4177         renamed from decode_line_spec.  All callers updated.
4178         (decode_line_with_last_displayed): Moved here from breakpoint.c and
4179         renamed from decode_line_spec_1.  All callers updated.
4180         * linespec.h (decode_line_with_current_source): Move declaration here
4181         from symtab.h and renamed from decode_line_spec.
4182         (decode_line_with_last_displayed): Move declaration here from symtab.h
4183         and renamed from decode_line_spec_1.
4184         * macrocmd.c: #include "linespec.h".
4185         * symtab.c: Remove #include "linespec.h".
4186
4187 2012-06-28  Doug Evans  <dje@google.com>
4188
4189         * dwarf2read.c (get_cu_length): New function.
4190         (offset_in_cu_p, error_check_comp_unit_head): Call it.
4191         (create_debug_types_hash_table): Ditto.
4192         (init_cutu_and_read_dies): Ditto.
4193         (init_cutu_and_read_dies_no_follow): Ditto.
4194
4195         * dwarf2read.c (dwarf2_find_base_address): Move definition.
4196
4197         * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4198         (struct abbrev_table): Define.
4199         (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4200         abbrev_table.
4201         (init_cutu_and_read_dies): Update.
4202         (abbrev_table_alloc_abbrev): New function.  Replaces
4203         dwarf_alloc_abbrev.  All callers updated.
4204         (abbrev_table_add_abbrev): New function.
4205         (abbrev_table_lookup_abbrev): New function.  Replaces
4206         dwarf2_lookup_abbrev.  All callers updated.
4207         (abbrev_table_read_table): New function.  Contents moved here from
4208         dwarf2_read_abbrevs.
4209         (dwarf2_read_abbrevs): Call it.
4210         (abbrev_table_free): New function.
4211         (dwarf2_free_abbrev_table): Call it.
4212
4213 2012-06-28  Stan Shebs  <stan@codesourcery.com>
4214
4215         * osdata.c (info_osdata_command): Filter out "Title" columns
4216         from non-MI uses.
4217         * common/linux-osdata.c (struct osdata_type): Add title field.
4218         (osdata_table): Add titles to each entry.
4219         (linux_command_xfer_osdata): Add a column for title data.
4220
4221 2012-06-28  Stan Shebs  <stan@codesourcery.com>
4222
4223         Make logging work for MI.
4224         * NEWS: Mention it.
4225         * interps.h (interp_set_logging_ftype): New typedef.
4226         (struct interp_procs): New field set_logging_proc.
4227         (current_interp_set_logging): Declare.
4228         * interps.c (current_interp_set_logging): New function.
4229         * cli/cli-logging.c: Include interps.h.
4230         (set_logging_redirect): Call current_interp_set_logging.
4231         (pop_output_files): Ditto.
4232         (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4233         * mi/mi-console.h (mi_console_set_raw): Declare.
4234         * mi/mi-console.c (mi_console_set_raw): New function.
4235         * mi/mi-interp.c (saved_raw_stdout): New global.
4236         (mi_set_logging): New function.
4237         (_initialize_mi_interp): Add it to interp procs.
4238
4239 2012-06-28  Doug Evans  <dje@google.com>
4240
4241         * symtab.c (lookup_symbol_aux_objfile): Use
4242         ALL_OBJFILE_PRIMARY_SYMTABS.
4243
4244         * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4245
4246 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4247
4248         * common/buffer.c: Include inttypes.h and stdint.h.
4249         (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4250
4251 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4252             Pedro Alves  <palves@redhat.com>
4253
4254         * gdbthread.h (ALL_THREADS): New macro.
4255         (thread_list): Declare.
4256         * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4257         going, but instead fall through to the stepping handling.
4258         * linux-nat.c (resume_lwp): New parameter 'signo'.  Resume with
4259         the passed in signal.  Adjust debug output.
4260         (resume_callback): Rename to ...
4261         (linux_nat_resume_callback): ... this.  Pass the thread's last
4262         stop signal, if in "pass" state.
4263         (linux_nat_resume): Adjust to rename.
4264         (stop_wait_callback): New assertion.  Don't respawn signals;
4265         instead let the LWP remain with SIGNALLED set.
4266         (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
4267         * remote.c (append_pending_thread_resumptions): New.
4268         (remote_vcont_resume): Call it.
4269         * target.h (target_resume): Extend comment.
4270
4271 2012-06-28  Iain Sandoe  <iain@codesourcery.com>
4272
4273         * auxv.c (fprint_target_auxv): Handle extended cache data tags.
4274
4275 2012-06-27  Doug Evans  <dje@google.com>
4276
4277         * dwarf2read.c (dwarf2_cu): Add ranges_base.
4278         Delete have_addr_base, unused.  All uses updated.
4279         (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
4280         (dwarf2_get_pc_bounds): Add ranges_base.
4281         (dwarf2_record_block_ranges): Ditto.
4282
4283 2012-06-27  Tom Tromey  <tromey@redhat.com>
4284
4285         PR macros/7961:
4286         * varobj.c (varobj_create): Update.
4287         (varobj_set_value): Update.
4288         * tracepoint.c (validate_actionline): Update.
4289         (encode_actions_1): Update.
4290         * parse.c (parse_exp_1): Add 'pc' argument.
4291         (parse_exp_in_context): Add 'pc' argument.  Change how
4292         expression_context_pc is set.
4293         (parse_expression): Update.
4294         (parse_field_expression): Update.
4295         * expression.h (parse_exp_1): Update.
4296         * eval.c (parse_to_comma_and_eval): Update.
4297         * breakpoint.c (set_breakpoint_condition): Update.
4298         (update_watchpoint): Update.
4299         (init_breakpoint_sal): Update
4300         (find_condition_and_thread): Update.
4301         (watch_command_1): Update.
4302         (update_breakpoint_locations): Update.
4303         * ada-lang.c (ada_read_renaming_var_value): Update.
4304         (create_excep_cond_exprs): Update.
4305
4306 2012-06-27  Doug Evans  <dje@google.com>
4307
4308         * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
4309         type units.
4310
4311 2012-06-26  Doug Evans  <dje@google.com>
4312
4313         * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
4314         prototype.
4315         (error_check_comp_unit_head): New arg abbrev_section.  All callers
4316         updated.
4317         (read_and_check_comp_unit_head): Ditto.
4318         (read_and_check_type_unit_head): Ditto.
4319
4320 2012-06-26  Siva Chandra Reddy  <sivachandra@google.com>
4321
4322         New attribute 'last' for gdb.Symtab_and_line.
4323         * NEWS (Python Scripting): Add entry about the new attribute.
4324         * python/py-symtab.c (salpy_get_last): New function which
4325         implements the get method for the 'last' attribute of
4326         gdb.Symtab_and_line.
4327         (sal_object_getset): Add entry for the 'last' attribute.
4328
4329 2012-06-26  Doug Evans  <dje@google.com>
4330
4331         * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4332         (dwo_sections): Add macinfo, macro.
4333         (dwarf2_locate_dwo_sections): Watch for macro sections.
4334         (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4335         All callers updated.  Handle DWO files.
4336
4337         * NEWS: Mention new options "set debug dwarf2-read" and
4338         "set debug symtab-create".
4339         * dwarf2read.c (dwarf2_read_debug): New static global.
4340         (dwarf2_build_psymtabs_hard): Add debugging printfs.
4341         (process_queue): Ditto.
4342         (process_full_comp_unit): Ditto.
4343         (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4344         * elfread.c (elf_symfile_read): Add debugging printf.
4345         * minsyms.c (install_minimal_symbols): Ditto.
4346         * psymtab.c (allocate_psymtab): Ditto.
4347         * symfile.c (allocate_symtab): Ditto.
4348         * symtab.c (symtab_create_debug): New global.
4349         (_initialize_symtab): Add new option "set debug symtab-create".
4350         * symtab.h (symtab_create_debug): Declare.
4351
4352         * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4353         (lookup_dwo_type_unit): Ditto.
4354
4355 2012-06-26  Roland McGrath  <roland@hack.frob.com>
4356             H.J. Lu  <hongjiu.lu@intel.com>
4357
4358         * amd64-linux-nat.c: Include <sys/user.h>.
4359         (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4360         if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4361         HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4362
4363         * configure.ac: Check if the fs_base and gs_base members of
4364         `struct user_regs_struct' exist.
4365         * config.in: Regenerated.
4366         * configure: Likewise.
4367
4368 2012-06-25  Michael Eager  <eager@eagercon.com>
4369
4370         PR python/14291
4371         * python/python.c (gdbpy_write): Check for interrupted output.
4372
4373 2012-06-25  Greta Yorsh  <greta.yorsh@arm.com>
4374
4375         * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4376         register as a stack alignment in ARM mode.
4377
4378 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4379
4380         Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4381         * gnulib/config.in: Regenerate.
4382         * gnulib/configure: Likewise.
4383         * gnulib/import/m4/extensions.m4: Update it.
4384         * gnulib/import/m4/gnulib-common.m4: Likewise.
4385         * gnulib/import/m4/memmem.m4: Likewise.
4386         * gnulib/import/m4/mmap-anon.m4: Likewise.
4387         * gnulib/import/m4/multiarch.m4: Likewise.
4388         * gnulib/import/stdint.in.h: Likewise.
4389
4390 2012-06-24  Yao Qi  <yao@codesourcery.com>
4391
4392         * corefile.c (write_memory_with_notification): New.
4393         * gdbcore.h: Declare write_memory_with_notification.
4394         * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4395         'observer_notify_memory_changed' with 'write_memory_with_notification'.
4396         * valops.c (value_assign): Likewise.
4397         * python/py-inferior.c (infpy_write_memory): Call
4398         'write_memory_with_notification'.
4399
4400 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4401
4402         * cc-with-index.sh: Use also -ex "set auto-load no".
4403
4404 2012-06-23  Doug Evans  <dje@google.com>
4405
4406         PR 14125
4407         * NEWS: Document additions to .gdb_index.
4408         * dwarf2read.c: #include "gdb/gdb-index.h".
4409         (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4410         (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4411         (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4412         (dwarf2_read_index): Recognize version 7.
4413         (dw2_do_expand_symtabs_matching): New args want_specific_block,
4414         block_kind, domain): All callers updated.
4415         (dw2_find_symbol_file): Handle new index CU values.
4416         (dw2_expand_symtabs_matching): Match symbol kind if requested.
4417         (add_index_entry): New args is_static, kind.  All callers updated.
4418         (offset_type_compare, uniquify_cu_indices): New functions
4419         (symbol_kind): New function.
4420         (write_psymtabs_to_index): Remove duplicate CU values.
4421         (write_psymtabs_to_index): Write .gdb_index version 7.
4422
4423 2012-06-22  Joel Brobecker  <brobecker@adacore.com>
4424
4425         * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4426         * configure: Regenerate.
4427
4428 2012-06-20  Yao Qi  <yao@codesourcery.com>
4429
4430         * python/py-inferior.c: Update comments of infpy_read_memory
4431         and infpy_write_memory.
4432
4433 2012-06-19  Tom Tromey  <tromey@redhat.com>
4434
4435         PR exp/9514:
4436         * parser-defs.h (insert_type, insert_type_address_space): Declare.
4437         (push_type_address_space): Remove.
4438         * parse.c (insert_into_type_stack): New function.
4439         (insert_type): Likewise.
4440         (insert_type_address_space): Rename from push_type_address_space.
4441         Insert tp_space_identifier.
4442         * c-exp.y (ptr_operator): New production.
4443         (abs_decl): Use ptr_operator.
4444         (space_identifier): Call insert_type_address_space.
4445         (ptype): Don't use const_or_volatile_or_space_identifier.
4446         (const_or_volatile_noopt): Call insert_type.
4447         (conversion_type_id, conversion_declarator): New productions.
4448         (operator): Use conversion_type_id.
4449
4450 2012-06-18  Doug Evans  <dje@google.com>
4451
4452         * symtab.h (minimal_symbol): New member created_by_gdb.
4453         * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4454         created by gdb.
4455         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4456         (search_symbols): Call it instead of lookup_symbol.
4457         Skip symbols created by gdb.  Only scan minsyms if nfiles == 0.
4458
4459         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4460         Adjust address for DW_OP_GNU_addr_index.
4461         * dwarf2expr.h (dwarf_expr_context): Update comment.
4462         * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4463         all callers updated.  Handle TLS vars described with
4464         DW_OP_GNU_const_index.
4465         (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4466         and DW_OP_GNU_const_index.
4467         * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4468
4469         * block.c (find_block_in_blockvector): Make explicit the fact that we
4470         ignore GLOBAL_BLOCK.
4471
4472 2012-06-18  Tom Tromey  <tromey@redhat.com>
4473
4474         * c-exp.y (operator): Remove trailing space after "delete" and
4475         "delete[]".
4476
4477 2012-06-18  Mark Kettenis  <kettenis@gnu.org>
4478             Jan Kratochvil  <jan.kratochvil@redhat.com>
4479
4480         Switch i386 and derived targets to ON_STACK.
4481         * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4482         (amd64_dicos_init_abi): Remove its installment.
4483         * dicos-tdep.c (dicos_init_abi): Remove the
4484         set_gdbarch_call_dummy_location call.  Update the comment here.
4485         * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4486         (i386_dicos_init_abi): Remove its installment.
4487         * i386-tdep.c (i386_push_dummy_code): New function.
4488         (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4489         i386_push_dummy_code.
4490
4491 2012-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
4492
4493         Remove stale dummy frames.
4494         * breakpoint.c: Include dummy-frame.h.
4495         (longjmp_breakpoint_ops): New variable.
4496         (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4497         bp_longjmp_call_dummy.
4498         (bpstat_what, bptype_string, print_one_breakpoint_location)
4499         (init_bp_location): Support bp_longjmp_call_dummy.
4500         (set_longjmp_breakpoint): Use longjmp_breakpoint_ops.  Comment why.
4501         (set_longjmp_breakpoint_for_call_dummy)
4502         (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4503         functions.
4504         (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4505         * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy.  Delete
4506         FIXME comment and extend the other comment for bp_call_dummy.
4507         (set_longjmp_breakpoint_for_call_dummy)
4508         (check_longjmp_breakpoint_for_call_dummy): New declarations.
4509         * dummy-frame.c: Include gdbthread.h.
4510         (pop_dummy_frame_bpt): New function.
4511         (pop_dummy_frame): Call pop_dummy_frame_bpt.
4512         (dummy_frame_discard): New function.
4513         (cleanup_dummy_frames): Update the comment about longjmps.
4514         * dummy-frame.h (dummy_frame_discard): New declaration.
4515         * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4516         * infcall.c (call_function_by_hand): New variable longjmp_b.  Call
4517         set_longjmp_breakpoint_for_call_dummy.  Chain its breakpoints with BPT.
4518         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4519         Add case 4 comment.  Call check_longjmp_breakpoint_for_call_dummy and
4520         keep_going if IS_LONGJMP and there is no other reason to stop.
4521
4522 2012-06-18  Greta Yorsh  <Greta.Yorsh@arm.com>
4523
4524         * remote-sim.c (sim_command_completer): Initialize
4525         variable 'result'.
4526
4527 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4528
4529         * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4530         * dwarf2loc.c (call_site_parameter_matches): Support
4531         CALL_SITE_PARAMETER_PARAM_OFFSET.
4532         (needs_dwarf_reg_entry_value): Push stub value.
4533         * dwarf2read.c (read_call_site_scope): New variable origin.  Support
4534         CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4535         * gdbtypes.h (enum call_site_parameter_kind): New item
4536         CALL_SITE_PARAMETER_PARAM_OFFSET.
4537         (struct call_site.parameter.u): New field param_offset.
4538
4539 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4540
4541         Code cleanup: Generalize call_site.parameter key.
4542         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4543         variable dwarf_reg.  New variable kind_u.  Update parameters to
4544         push_dwarf_reg_entry_value.
4545         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4546         * dwarf2expr.h (enum call_site_parameter_kind)
4547         (union call_site_parameter_u): Forward declarations.
4548         (struct dwarf_expr_context_funcs): Update parameters and their
4549         description for push_dwarf_reg_entry_value.
4550         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4551         * dwarf2loc.c (call_site_parameter_matches): New function.
4552         (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4553         description.  Use call_site_parameter_matches.
4554         (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4555         Update parameters and their description.
4556         (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4557         New variable kind_u.  Adjust the caller for updated parameters.
4558         (needs_dwarf_reg_entry_value): Update parameters.
4559         * dwarf2read.c (read_call_site_scope): New variable loc.  Use it
4560         instead of attr.  Update for the changed fields of struct
4561         call_site_parameter.
4562         * gdbtypes.h: Include dwarf2expr.h.
4563         (enum call_site_parameter_kind): New.
4564         (struct call_site.parameter): New field kind.  Wrap dwarf_reg and
4565         fb_offset into new union u.
4566
4567 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
4568
4569         * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4570         (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4571         for x32.
4572
4573 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
4574
4575         * amd64-linux-nat.c (compat_x32_clock_t): New.
4576         (compat_x32_siginfo_t): Likewise.
4577         (compat_x32_siginfo_from_siginfo): Likewise.
4578         (siginfo_from_compat_x32_siginfo): Likewise.
4579         (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4580         and siginfo_from_compat_x32_siginfo for x32.
4581
4582 2012-06-15  Hui Zhu  <hui_zhu@mentor.com>
4583
4584         * tracepoint.c (tfile_xfer_partial): Add a lseek.
4585
4586 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
4587
4588         * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4589         instead of gdbarch_ptr_bit.
4590         * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4591         (amd64_supply_native_gregset): Likewise.
4592         (amd64_collect_native_gregset): Likewise.
4593         * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4594         (amd64_supply_xsave): Likewise.
4595         (amd64_collect_fxsave): Likewise.
4596         (amd64_collect_xsave): Likewise.
4597
4598 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
4599
4600         * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4601         (amd64_linux_read_description): Check DS segment register for
4602         x32 process.
4603
4604 2012-06-15  Tom Tromey  <tromey@redhat.com>
4605
4606         * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4607         init_cutu_and_read_dies.
4608
4609 2012-06-15  Iain Sandoe <iain@codesourcery.com>
4610
4611         * MAINTAINERS (Write After Approval): Add myself to the list.
4612
4613 2012-06-15  Tom Tromey  <tromey@redhat.com>
4614
4615         * valops.c (value_find_oload_method_list): Now static.
4616         * value.h (value_find_oload_method_list): Don't declare.
4617
4618 2012-06-15  Tom Tromey  <tromey@redhat.com>
4619
4620         * valops.c (find_overload_match): Use value_ind.
4621
4622 2012-06-15  Maciej W. Rozycki  <macro@codesourcery.com>
4623
4624         * infrun.c (handle_inferior_event): Correct indentation.
4625
4626 2012-06-14  Doug Evans  <dje@google.com>
4627
4628         * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4629         (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4630         All uses updated.
4631         (decode_debug_loc_dwo_addresses): New arg "byte_order".  All callers
4632         updated.  Handle DEBUG_LOC_START_LENGTH.
4633         (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4634         (loclist_describe_location): Ditto.
4635
4636 2012-06-14  Maciej W. Rozycki  <macro@codesourcery.com>
4637
4638         PR backtrace/13866
4639         * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4640         after hiding inline functions.
4641
4642 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
4643
4644         * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4645         _initialize_inf_ttrace.
4646
4647 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
4648
4649         * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4650         _initialize_hppa_hpux_nat.
4651
4652 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
4653
4654         * remote-sim.c (sim_command_completer): Change type of return
4655         value to "VEC (char_ptr) *".  Adjust implementation accordingly.
4656
4657 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
4658             Jan Kratochvil  <jan.kratochvil@redhat.com>
4659
4660         PR tdep/14222
4661         * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4662         stack on a 16-byte boundary.
4663
4664 2012-06-13  Kaushik Srenevasan  <kaushik@twitter.com>
4665
4666         * jit.c (finalize_symtab): Set function's return type to 'void' by
4667         default.
4668
4669 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
4670             H.J. Lu  <hongjiu.lu@intel.com>
4671
4672         * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4673         Move bits common to both the classic LP64 and the new x32 ILP32
4674         ABI here.
4675         (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4676         (amd64_x32_linux_init_abi): New function.
4677         (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4678         subtype.
4679
4680         * i386-tdep.h (i386_pseudo_register_name): New prototype.
4681         * i386-tdep.c (i386_pseudo_register_name): Make public.
4682         * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4683         * amd64-tdep.c (amd64_dword_names): Add "eip".
4684         (amd64_x32_pseudo_register_type): New function
4685         (amd64_x32_init_abi): New function.
4686
4687 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4688
4689         PR build/14003
4690         * inferior.h (struct inferior_suspend_state): Comment out.
4691         (struct inferior): Comment out the field suspend.
4692         * infrun.c (struct infcall_suspend_state): Comment out the field
4693         inferior_suspend.
4694         (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4695         out its assignment.
4696
4697 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4698
4699         PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4700         * c-exp.y (classify_inner_name): Remove caller assumptions in the
4701         function comment.  Return ERROR for unresolved cases.  Implement
4702         returning proper NAME.
4703         (yylex): Accept also NAME from classify_inner_name.
4704         * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4705         (cp_lookup_nested_symbol): ... here.  Return any found symbol, not just
4706         LOC_TYPEDEF type.
4707         * cp-support.h (cp_lookup_nested_type): Update its declaration.
4708
4709 2012-06-13  Tom Tromey  <tromey@redhat.com>
4710
4711         * breakpoint.c (condition_completer): New function.
4712         (_initialize_breakpoint): Use it.
4713         * value.c (complete_internalvar): New function.
4714         * value.h (complete_internalvar): Declare.
4715
4716 2012-06-13  Tom Tromey  <tromey@redhat.com>
4717
4718         * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4719         * breakpoint.c (catch_syscall_completer): Return a VEC.
4720         * cli/cli-cmds.c (complete_command): Update.
4721         * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4722         (complete_on_enum): Likewise.
4723         * command.h: Include gdb_vecs.h.
4724         (completer_ftype): Change return type.
4725         (complete_on_cmdlist, complete_on_enum): Likewise.
4726         * completer.c (noop_completer, filename_completer)
4727         (location_completer): Return a VEC.
4728         (add_struct_fields): Remove 'nextp' argument.  Change 'output'
4729         to a VEC.
4730         (expression_completer, complete_line_internal, complete_line)
4731         (command_completer): Return a VEC.
4732         (gdb_completion_word_break_characters, line_completion_function):
4733         Update.
4734         * completer.h: Include gdb_vecs.h.
4735         (complete_line, noop_completer, filename_completer)
4736         (expression_completer, location_completer, command_completer):
4737         Update.
4738         * f-lang.c (f_word_break_characters): Return a VEC.
4739         * interps.c (interpreter_completer): Return a VEC.
4740         * language.h (struct language_defn)
4741         <la_make_symbol_completion_list>: Return a VEC.
4742         * python/py-cmd.c (cmdpy_completer): Return a VEC.
4743         * symtab.c (free_completion_list): Take a VEC.
4744         (return_val_size, return_val_index): Remove.
4745         (return_val): Now a VEC.
4746         (completion_list_add_name): Update.
4747         (default_make_symbol_completion_list_break_on)
4748         (default_make_symbol_completion_list, make_symbol_completion_list)
4749         (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4750         Return a VEC.
4751         (add_filename_to_list): Update.
4752         (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4753         <list>: Now a VEC.
4754         (maybe_add_partial_symtab_filename): Update.
4755         (make_source_files_completion_list): Return a VEC.
4756         * symtab.h (default_make_symbol_completion_list_break_on)
4757         (default_make_symbol_completion_list, make_symbol_completion_list)
4758         (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4759         (make_source_files_completion_list): Update.
4760
4761 2012-06-13  Tom Tromey  <tromey@redhat.com>
4762
4763         * breakpoint.c (add_catch_command): Use completer_ftype.
4764         * breakpoint.h: Include command.h.
4765         (add_catch_command): Use completer_ftype.
4766         * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4767         * cli/cli-decode.h (struct cmd_list_element) <completer>:
4768         Use completer_ftype.
4769         * command.h (completer_ftype): New typedef.
4770         (set_cmd_completer): Use it.
4771         * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4772         completer_ftype.
4773
4774 2012-06-13  Pedro Alves  <palves@redhat.com>
4775
4776         Partial revert of previous change.
4777
4778         * serial.c (scb_base): New global.
4779         (serial_for_fd): New.
4780         (serial_open, serial_fdopen_ops): Link new serial in open serials
4781         chain.
4782         (do_serial_close): Unlink serial from the open serials chain.
4783
4784 2012-06-12  Pedro Alves  <palves@redhat.com>
4785
4786         * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4787         threads here.
4788         (prepare_for_detach): No longer context switch here in non-stop
4789         mode.
4790         (fetch_inferior_event): Ditto.
4791         (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4792         to the event thread before removing breakpoints.  Switch to the
4793         event thread before inserting breakpoints and resuming.
4794         (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4795         event thread before resuming.
4796         (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4797         Switch to the event thread before removing breakpoints.
4798
4799 2012-06-12  Eli Zaretskii  <eliz@gnu.org>
4800
4801         * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4802         special characters correctly for the Windows shells.  See
4803         http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4804         report.
4805         [!__MINGW32__]: Remove extra double quote character from special
4806         characters.
4807
4808 2012-06-11  Stan Shebs  <stan@codesourcery.com>
4809
4810         * ui-out.h: Remove #if 0 declarations.
4811         * ui-out.c: Remove #if 0 functions.
4812
4813 2012-06-11  Pedro Alves  <palves@redhat.com>
4814
4815         * ser-base.c (run_async_handler_and_reschedule): New.
4816         (fd_event, push_event): Use it.
4817         * serial.c (serial_open, serial_fdopen_ops): Set the initial
4818         reference count to 1.
4819         (do_serial_close): Set the bufp field to NULL.  Use serial_unref
4820         instead of xfree.
4821         (serial_is_open, serial_ref, serial_unref): New.
4822         * serial.h (serial_open): Adjust comment.
4823         (serial_is_open): Declare.
4824         (serial_close): Adjust comment.
4825         (serial_ref, serial_unref) Declare.
4826         (struct serial): New field 'refcnt'.
4827
4828 2012-06-11  Pedro Alves  <palves@redhat.com>
4829
4830         Remove #if 0'd "connect" command, and unnecessary associated
4831         refcounting and serial reuse bits.
4832
4833         * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4834         * serial.c (last_serial_opened): Delete.
4835         (scb_base): Delete.
4836         (serial_open): Adjust.
4837         (serial_for_fd): Delete.
4838         (serial_fdopen_ops, do_serial_close): Adjust.
4839         (serial_fdopen_ops): Adjust.
4840
4841 2012-06-11  Pedro Alves  <palves@redhat.com>
4842
4843         * serial.c (do_serial_close): Remove early return when SCB is
4844         null.
4845
4846 2012-06-11  Tom Tromey  <tromey@redhat.com>
4847
4848         * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4849
4850 2012-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4851
4852         Fix regression by the "ambiguous linespec" series.
4853         * breakpoint.c (parse_breakpoint_sals): New variable cursal.  Use
4854         get_last_displayed_symtab and get_last_displayed_line and depending
4855         on CURSAL.
4856
4857 2012-06-11  Tom Tromey  <tromey@redhat.com>
4858
4859         * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4860         (dw2_find_symbol_file): Use it.
4861
4862 2012-06-11  Michael Eager  <eager@eagercon.com>
4863
4864         * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4865         * mips-linux-tdep.h (mips_signals): New
4866
4867 2012-06-11  Tom Tromey  <tromey@redhat.com>
4868
4869         * infrun.c (handle_inferior_event)
4870         <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4871         breakpoint.
4872         <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4873         exception logic in all cases.  Update comments.
4874         (insert_longjmp_resume_breakpoint): Set the exception resume
4875         breakpoint.
4876
4877 2012-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
4878
4879         * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4880
4881 2012-06-09  Siva Chandra Reddy  <sivachandra@google.com>
4882
4883         * valarith.c (binop_types_user_defined_p): Fix a typo.
4884
4885 2012-06-08  Yao Qi  <yao@codesourcery.com>
4886             Chung-Lin Tang <cltang@codesourcery.com>
4887
4888         * arch-utils.c (default_return_in_first_hidden_param_p): New.
4889         * arch-utils.h: Declare.
4890         * gdbarch.sh: Add return_in_first_hidden_param_p.
4891         * gdbarch.c, gdbarch.h: Regenerated.
4892         * infcall.c (call_function_by_hand): Call
4893         gdbarch_return_in_first_hidden_param_p instead of
4894         language_pass_by_reference.
4895
4896         * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4897         (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4898         * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4899         (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4900         * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4901         `cplus_return_struct_by_reference'.
4902         (tic6x_return_value): Handle language cplusplus.
4903         (tic6x_return_in_first_hidden_param_p): New.
4904         (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4905
4906 2012-06-07  Doug Evans  <dje@google.com>
4907
4908         * dwarf2read.c (dwarf2_cu): Add comment.
4909
4910 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4911
4912         * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4913         variable.
4914         (mips_eabi_push_dummy_call): Likewise.
4915         (mips_n32n64_push_dummy_call): Likewise.
4916         (mips_o32_push_dummy_call): Likewise.
4917         (mips_o64_push_dummy_call): Likewise.
4918
4919 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4920
4921         * mips-tdep.c (mips_convert_register_p): Correct coding style.
4922
4923 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4924
4925         * mips-tdep.c (mips_pseudo_register_type): Use
4926         mips_float_register_p.
4927
4928 2012-06-06  Pedro Alves  <palves@redhat.com>
4929
4930         * infrun.c (handle_inferior_event): Remove calls to
4931         reinit_frame_cache that follow a context_switch call.
4932
4933 2012-06-06  Pedro Alves  <palves@redhat.com>
4934
4935         * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4936         context_switch and remove stale comment.
4937
4938 2012-06-06  Pedro Alves  <palves@redhat.com>
4939
4940         * infrun.c (struct execution_control_state): Remove
4941         `new_thread_event' field.
4942         (handle_inferior_event): Simplify new threads handling; don't
4943         resume the inferior if we find a new thread.
4944
4945 2012-06-06  Thomas Schwinge  <thomas@codesourcery.com>
4946
4947         * NEWS: Document the deprecation of SH's 'regs' command.
4948         * inferior.h (all_registers_info): Add function declaration.
4949         * sh-tdep.c (sh_show_regs): Remove variable.
4950         (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4951         (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4952         (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4953         (sh_show_regs_command): Remove functions.
4954         (sh_gdbarch_init): Don't set sh_show_regs.
4955         (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4956         'info all-registers'.
4957         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4958         (sh64_show_regs): Remove functions.
4959         * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4960
4961 2012-06-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
4962
4963         * configure.ac: Move development=true below AC_INIT.
4964         * configure: Regenerate.
4965
4966 2012-06-05  Stan Shebs  <stan@codesourcery.com>
4967
4968         * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4969         gdb_stdout.
4970
4971 2012-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
4972
4973         * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4974         argument as ssize_t.
4975         * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4976         * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4977         * target.c (target_read_stack, target_write_memory)
4978         (target_write_raw_memory): Likewise.
4979         * target.h (target_read_stack, target_write_memory)
4980         (target_write_raw_memory): Likewise.
4981
4982 2012-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
4983
4984         * symfile-mem.c: Change gdb_static_assert to ssize_t.
4985         (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4986         * target.c (target_read_memory): Change LEN to ssize_t.
4987         * target.h (target_read_memory): Change LEN to ssize_t.
4988
4989 2012-06-05  Pedro Alves  <palves@redhat.com>
4990
4991         PR backtrace/13866
4992
4993         * breakpoint.c (until_break_command): Only fetch the selected
4994         frame after decode_line_1.
4995
4996 2012-06-05  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
4997
4998         * solib-svr4.c (enable_break): Don't fallback to setting the solib
4999         event breakpoint at _start, __start or main if a program
5000         interpreter is not found.
5001
5002 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5003
5004         * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5005         Add declaration.
5006         * windows-tdep.c: #include "objfiles.h".
5007         (windows_iterate_over_objfiles_in_search_order): New function.
5008         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5009         iterate_over_objfiles_in_search_order gdbarch method to
5010         windows_iterate_over_objfiles_in_search_order.
5011         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5012
5013 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5014
5015         * gdbarch.sh: Add generation of
5016         "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5017         gdbarch.h.  Add include of "objfiles.h" in gdbarch.c.
5018         (iterate_over_objfiles_in_search_order): New gdbarch method.
5019         * gdbarch.h, gdbarch.c: Regenerate.
5020         * objfiles.h (default_iterate_over_objfiles_in_search_order):
5021         Add declaration.
5022         * objfiles.c (default_iterate_over_objfiles_in_search_order):
5023         New function.
5024         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5025         out of lookup_symbol_aux_symtabs.
5026         (lookup_symbol_aux_symtabs): Replace extracted-out code by
5027         call to lookup_symbol_aux_objfile.
5028         (struct global_sym_lookup_data): New type.
5029         (lookup_symbol_global_iterator_cb): New function.
5030         (lookup_symbol_global): Search for symbol using
5031         gdbarch_iterate_over_objfiles_in_search_order and
5032         lookup_symbol_global_iterator_cb.
5033         * findvar.c (struct minsym_lookup_data): New type.
5034         (minsym_lookup_iterator_cb): New function.
5035         (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5036         symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5037         and minsym_lookup_iterator_cb.
5038
5039 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5040
5041         Revert the following patch:
5042         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5043         try locating the symbol in the symbol's own objfile first, before
5044         extending the search to all objfiles.
5045         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5046         out of lookup_symbol_aux_symtabs.
5047         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5048         Replace extracted-out code by call to lookup_symbol_aux_objfile.
5049         Do not search EXCLUDE_OBJFILE.
5050         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5051         (lookup_symbol_global): Search for matches in the block's objfile
5052         first, before searching all other objfiles.
5053
5054 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5055
5056         * breakpoint.c (find_condition_and_thread): Stop parsing
5057         as soon as the first invalid keyword is found.
5058
5059 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5060
5061         * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5062
5063 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5064
5065         * config/djgpp/djcheck.sh: Add copyright header.
5066
5067 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5068
5069         * copyright.py (update_files, main): Fix path to update-copyright
5070         script.
5071
5072 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
5073
5074         * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5075         (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5076         for which a reminder to update by hand is printed.
5077
5078 2012-06-04  Doug Evans  <dje@google.com>
5079
5080         * buildsym.c (make_blockvector): Add comment.
5081
5082 2012-06-04  Pedro Alves  <palves@redhat.com>
5083
5084         * arch-utils.c (default_gdb_signal_from_target): Delete.
5085         * arch-utils.h (default_gdb_signal_from_target): Delete.
5086         * corelow.c (core_open) <signal mapping>: Extended comment.  Check
5087         gdbarch_gdb_signal_from_target_p.
5088         * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5089         predicate).
5090         * gdbarch.h: Regenerate.
5091         * gdbarch.c: Regenerate.
5092
5093 2012-06-04  Pedro Alves  <palves@redhat.com>
5094
5095         * gdbarch.sh (gdb_signal_from_target): Mention that the
5096         implementation of the method must be host independent.
5097         * gdbarch.h: Regenerate.
5098
5099 2012-06-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5100
5101         * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5102         parameters.
5103         (target_read_memory_bfd): New function.
5104         (symbol_file_add_from_memory): Use it.
5105
5106 2012-06-03  Doug Evans  <dje@google.com>
5107
5108         * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5109         of primary symtab.
5110         (basic_lookup_transparent_type): Ditto.
5111
5112         * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5113         (ALL_PRIMARY_SYMTABS): Use it.
5114         (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5115         * dwarf2read.c (dw2_find_symbol_file): Ditto.
5116         * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5117         * symtab.c (lookup_symbol_aux_objfile): Ditto.
5118         (basic_lookup_transparent_type): Ditto.
5119
5120 2012-06-02  Sergio Durigan Junior  <sergiodj@redhat.com>
5121
5122         * symtab.c (symbol_demangled_name): New variable `dem_name'.  Use
5123         it to optimize resolution of demangled name.
5124
5125 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5126
5127         * configure.ac (development): Define new variable.
5128         Call AC_CHECK_LIB for mcheck if $development.
5129         (ERROR_ON_WARNING): Enable it by default only if $development.
5130         * config.in: Regenerate.
5131         * configure: Regenerate.
5132
5133 2012-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
5134
5135         * target.c (target_read_memory): Make LEN argument as size_t.
5136         * target.h (target_read_memory): Likewise.
5137
5138 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
5139
5140         * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5141
5142 2012-05-31  Edjunior Machado  <emachado@linux.vnet.ibm.com>
5143
5144         * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5145         BookE interface for PowerPC server processors if not available
5146         in the Linux Kernel.
5147
5148 2012-05-31  Keith Seitz  <keiths@redhat.com>
5149
5150         * linespec.c (decode_objc): Add cleanup to free
5151         INFO.FILE_SYMTABS.
5152         (find_linespec_symbols): Add cleanup to free CLASSES.
5153         * symfile.c (find_separate_debug_file_by_debuglink): Add
5154         cleanup to free DEBUGLINK.
5155         * ui-out.c (clear_header_list): No need to check if
5156         HEADER_NEXT.COLHDR is NULL.
5157         Free HEADER_NEXT.COL_NAME.
5158
5159 2012-05-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
5160
5161         * ada-lang.c (standard_lookup): Prevent uninitialized variable
5162         warning.
5163
5164 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
5165
5166         * configure.host (gdb_host_cpu): Handle tilegx*.
5167         (gdb_host): Handle tilegx-*-linux*.
5168         * tilegx-linux-nat.c: New file.
5169         * config/tilegx/linux.mh: New file.
5170
5171 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
5172
5173         * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5174         tilegx-linux-tdep.o.
5175         (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5176         tilegx-linux-tdep.c.
5177         * configure.tgt: Handle tilegx-*-linux*.
5178         * tilegx-tdep.h: New file.
5179         * tilegx-tdep.c: New file.
5180         * tilegx-linux-tdep.c: New file.
5181         * regformats/reg-tilegx.dat: New file.
5182
5183 2012-05-30  Edjunior Machado  <emachado@linux.vnet.ibm.com>
5184
5185         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5186         accounting of hw watchpoints on ppc.
5187
5188 2012-05-30  Thiago Jung Bauermann  <thiago.bauermann@linaro.org>
5189
5190         * source.c (openp): Expand tilde in path entries.
5191
5192 2012-05-29  Doug Evans  <dje@google.com>
5193
5194         * buildsym.c (block_compar): Fix comment.
5195         (end_symtab): Fix and clarify some comments.
5196
5197         * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5198         cleanup_undefined_types.
5199         * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5200         All callers updated.
5201
5202 2012-05-29  Tom Tromey  <tromey@redhat.com>
5203
5204         * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5205         fails.
5206         * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5207         * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5208         fails.
5209         * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5210         fails.
5211
5212 2012-05-29  Tristan Gingold  <gingold@adacore.com>
5213
5214         * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5215         (struct darwin_info): ... New struct.
5216         (solib_darwin_pspace_data): New variable.
5217         (darwin_pspace_data_cleanup): New function.
5218         (get_darwin_info): Likewise.
5219         (darwin_dyld_version_ok, darwin_load_image_infos)
5220         (darwin_solib_get_all_image_info_addr_at_init)
5221         (darwin_solib_read_all_image_info_addr): Add info argument.
5222         Adjust code.
5223         (darwin_current_sos): Use per pspace structure.
5224         (darwin_solib_create_inferior_hook): Likewise.
5225         (darwin_clear_solib): Likewise.
5226         (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5227
5228 2012-05-28  Pedro Alves  <palves@redhat.com>
5229
5230         * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5231         block that uses them.  Clear ecss before handling each event.
5232
5233 2012-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
5234
5235         * solib-svr4.c (svr4_current_sos): New comment on
5236         svr4_current_sos_via_xfer_libraries fall back.
5237
5238 2012-05-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
5239
5240         * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best.  Use
5241         it as a fallback for TYPE_IS_OPAQUE.
5242         * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5243         symbols for lookup_symbol.
5244
5245 2012-05-24  John Steele Scott  <toojays@toojays.net>
5246
5247         PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5248         * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5249         (producer_is_gxx_lt_4_6): Move the checking and caching to...
5250         (check_producer): ... this new function, which also checks for ICC
5251         and caches the result.
5252         (producer_is_icc): New function.
5253         (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5254         producer was ICC.
5255
5256 2012-05-24  Pedro Alves  <palves@redhat.com>
5257
5258         PR gdb/7205
5259
5260         * arch-utils.c (default_gdb_signal_to_host): Rename to ...
5261         (default_gdb_signal_to_target): ... this.  Add comment.
5262         (default_gdb_signal_from_host): Rename to ...
5263         (default_gdb_signal_from_target): ... this.  Add comment.
5264         * arch-utils.h (default_gdb_signal_to_host): Rename to ...
5265         (default_gdb_signal_to_target): ... this.
5266         (default_gdb_signal_from_host): Rename to ...
5267         (default_gdb_signal_from_target): ... this.
5268         * corelow.c (core_open): Adjust to naming change.  Replace comment.
5269         * gdbarch.sh (gdb_signal_from_host): Rename to ...
5270         (gdb_signal_from_target): ... this.  Adjust to
5271         default_gdb_signal_from_host naming change.  Extend comment.
5272         (gdb_signal_to_host): Rename to ...
5273         (gdb_signal_to_target): ... this.  Adjust to
5274         default_gdb_signal_to_host naming change.
5275         * gdbarch.h, gdbarch.c: Renegerate.
5276
5277 2012-05-24  Pedro Alves  <palves@redhat.com>
5278
5279         PR gdb/7205
5280
5281         Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
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 tui/14159
5292
5293         * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
5294         string, instead of reusing the va_list argument.
5295
5296 2012-05-24  Tom Tromey  <tromey@redhat.com>
5297
5298         * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
5299         Remove.
5300
5301 2012-05-23  Doug Evans  <dje@google.com>
5302
5303         * symtab.c (search_symbols): Formatting fixes.
5304         (print_symbol_info): Formatting fixes.
5305
5306         * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
5307         int64_t change to leb128 API.
5308         (read_encoded_value, decode_frame_entry_1): Ditto.
5309         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
5310         (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
5311         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5312         (execute_stack_op): Ditto.
5313         * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
5314         (safe_read_uleb128, safe_read_sleb128): Ditto.
5315         * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
5316         (dwarf2_compile_expr_to_ax): Ditto.
5317         (locexpr_describe_location_piece): Ditto.
5318         (disassemble_dwarf_expression): Ditto.
5319         (locexpr_describe_location_1): Ditto.
5320
5321 2012-05-23  Stan Shebs  <stan@codesourcery.com>
5322             Kwok Cheung Yeung  <kcy@codesourcery.com>
5323
5324         * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5325         (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5326         (mi-cmd-info.o): New rule.
5327         * osdata.h (info_osdata_command): New declaration.
5328         * osdata.c (info_osdata_command): Change to non-static.
5329         * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5330         * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5331         * mi/mi-cmd-info.c: New file.
5332
5333 2012-05-23  Doug Evans  <dje@google.com>
5334
5335         * symtab.c (search_symbols): Pass NULL for file_matcher to
5336         expand_symtabs_matching if there are no files to match.
5337
5338         * gdbtypes.c (lookup_typename): Simplify.
5339
5340 2012-05-23  Pedro Alves  <palves@redhat.com>
5341
5342         * arch-utils.h (default_target_signal_to_host): Delete.
5343         * arch-utils.c (default_target_signal_to_host): Delete.
5344         * gdbarch.sh (target_signal_to_host): Remove.
5345         * gdbarch.h, gdbarch.c: Regenerate.
5346
5347 2012-05-22  Doug Evans  <dje@google.com>
5348
5349         * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5350         "const gdb_byte *".
5351         (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5352         (execute_cfa_program): Update to match API of leb128 functions.
5353         (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5354         "const gdb_byte *".
5355         (read_unsigned_leb128, read_signed_leb128): Delete.
5356         (read_initial_length): Change type of buf argument to
5357         "const gdb_byte *".
5358         (read_encoded_value): Update to match API of leb128 functions.
5359         (decode_frame_entry): Change result to "const gdb_byte *", and
5360         similarly for "start" parameter.
5361         (decode_frame_entry_1): Ditto.  Use new leb128 reader functions.
5362         (dwarf2_build_frame_info): Change local frame_ptr to
5363         "const gdb_byte *".
5364         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5365         read_uleb128, read_sleb128.  All callers updated.
5366         (safe_skip_leb128): New function.
5367         (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5368         Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5369         (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5370         functions.  Call gdb_read_uleb128, gdb_read_sleb128 instead of
5371         read_uleb128, read_sleb128.
5372         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5373         (execute_stack_op): Update to match API of leb128 functions.
5374         * dwarf2expr.h: #include "leb128.h".
5375         (read_uleb128, read_sleb128): Delete.
5376         (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5377         (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5378         * dwarf2loc.c (debug_loc_kind): New enum.
5379         (decode_debug_loc_addresses): New function.
5380         (decode_debug_loc_dwo_addresses): New function.
5381         (dwarf2_find_location_expression): Rewrite.
5382         (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5383         (locexpr_describe_location_piece): Ditto.
5384         (disassemble_dwarf_expression): Ditto.
5385         (locexpr_describe_location_1): Ditto.
5386         (loclist_describe_location): Rewrite.
5387         * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5388         * dwarf2read.c (die_reader_specs): New member "buffer_end".
5389         (dwarf2_section_buffer_overflow_complaint): Renamed from
5390         dwarf2_macros_too_long_complaint.  All callers updated.
5391         (skip_leb128): Delete.
5392         (init_cu_die_reader): Initialize reader->buffer_end.
5393         (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5394         (skip_form_bytes): New arg buffer_end.  All callers updated.
5395         Replace call to skip_leb128 with gdb_skip_leb128.
5396         (skip_unknown_opcode): New arg mac_end.  All callers updated.
5397         (fill_in_loclist_baton): Initialize baton->from_dwo.
5398
5399 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
5400
5401         * mips-linux-nat.c (mips_linux_read_description): Use a more
5402         verbose error message.
5403
5404 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
5405
5406         * NEWS: Add MIPS/Linux DSP support.
5407         * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5408         (SIGCONTEXT_DSPCTL): New macro.
5409         (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5410         (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5411         (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5412         (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5413         (N64_SIGCONTEXT_HI3): Likewise.
5414         (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5415         (N64_SIGCONTEXT_LO3): Likewise.
5416         (N64_SIGCONTEXT_DSPCTL): Likewise.
5417         (N64_SIGCONTEXT_FPCSR): Clarify definition.
5418         (mips_linux_o32_sigframe_init): Handle DSP registers.
5419         (mips_linux_n32n64_sigframe_init): Likewise.
5420
5421 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
5422
5423         * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5424         call to abort.
5425
5426 2012-05-22  Pedro Alves  <palves@redhat.com>
5427
5428         * target.h (store_waitstatus): Move declaration ...
5429         * inf-child.h (store_waitstatus): ... here.
5430         * target.c: Move inclusion of gdb_wait.h, and ...
5431         (store_waitstatus): ... this ...
5432         * inf-child.c: ... here.
5433         * linux-nat.c: Include inf-child.h.
5434         * rs6000-nat.c: Include inf-child.h.
5435         * spu-linux-nat.c: Include inf-child.h.
5436
5437 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
5438
5439         * tracepoint.c (start_tracing): Add missing i18n markup.
5440         (stop_tracing, set_trace_user): Ditto.
5441         (set_trace_notes, set_trace_stop_notes): Ditto.
5442
5443 2012-05-21  Tom Tromey  <tromey@redhat.com>
5444
5445         PR c++/7173:
5446         * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5447         types.
5448         * value.h (value_cast_pointers): Update.
5449         * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5450         (value_cast): Update.
5451         (update_search_result): New function.
5452         (do_search_struct_field): New, from search_struct_field.  Check
5453         for ambiguous results.
5454         (search_struct_field): Rewrite.
5455         * infcall.c (value_arg_coerce): Update.
5456         * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5457         value_cast_pointers.
5458         * ada-lang.c (ada_convert_actual): Update.
5459
5460 2012-05-21  Tom Tromey  <tromey@redhat.com>
5461
5462         * macroexp.c (macro_stringify): Terminate the string.
5463
5464 2012-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
5465
5466         * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5467         Describe it.
5468         * auto-load.c (auto_load_expand_dir_vars): New function.
5469         (auto_load_safe_path_vec_update): Use it, remove the
5470         substitute_path_component call thanks to it.
5471         (auto_load_objfile_script): Remove the debug_file_directory processing.
5472         Use auto_load_expand_dir_vars, remove the substitute_path_component
5473         call thanks to it.
5474         * configure: Regenerate.
5475         * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5476         path.  Escape $ also for $debugdir.
5477         (--with_auto_load_safe_path): Escape $ also for $debugdir.
5478         * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5479
5480 2012-05-20  Doug Evans  <dje@google.com>
5481
5482         * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5483         before use.  Check for symtab->includes == NULL before scanning it.
5484
5485 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5486
5487         * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5488
5489 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5490
5491         * NEWS: Add microMIPS support and "set mips compression",
5492         "show mips compression" commands.
5493         * mips-tdep.h (mips_isa): New enum.
5494         (gdbarch_tdep): Add mips_isa.
5495         (mips_pc_is_mips16): Update prototype.
5496         (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5497         * mips-tdep.c (mips_compression_mips16): New variable.
5498         (mips_compression_micromips): Likewise.
5499         (mips_compression_strings): Likewise.
5500         (mips_compression_string): Likewise.
5501         (is_mips16_isa, is_micromips_isa): New functions.
5502         (is_mips16_addr): Rename to...
5503         (is_compact_addr): ... this.
5504         (unmake_mips16_addr): Likewise to...
5505         (unmake_compact_addr): ... this.
5506         (make_mips16_addr): Likewise to...
5507         (make_compact_addr): ... this.
5508         (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5509         functions.
5510         (mips_elf_make_msymbol_special): Handle microMIPS code.
5511         (msymbol_is_special): Rename to...
5512         (msymbol_is_mips16): ... this.
5513         (mips_make_symbol_special, mips_pc_is_mips16): Update
5514         accordingly.
5515         (msymbol_is_mips, msymbol_is_micromips): New functions.
5516         (mips16_to_32_reg): Rename to...
5517         (mips_reg3_to_reg): ... this.
5518         (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5519         (mips_pc_isa): Likewise.
5520         (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5521         code.
5522         (mips_fetch_instruction): Pass return status instead of printing
5523         an error message if requested.  Handle microMIPS code.  Bail out
5524         on an invalid ISA.
5525         (micromips_op): New macro.
5526         (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5527         (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5528         (b6s4_op, b7s3_reg): Likewise.
5529         (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5530         (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5531         (mips_insn_size): New function.
5532         (mips32_next_pc): Update mips_fetch_instruction call.
5533         (micromips_relative_offset7): New function.
5534         (micromips_relative_offset10): Likewise.
5535         (micromips_relative_offset16): Likewise.
5536         (micromips_pc_insn_size): Likewise.
5537         (micromips_bc1_pc): Likewise.
5538         (micromips_next_pc): Likewise.
5539         (unpack_mips16): Update mips_fetch_instruction call.
5540         (extended_mips16_next_pc): Update according to change to
5541         mips16_to_32_reg.
5542         (mips_next_pc): Update mips_pc_is_mips16 call.  Handle microMIPS
5543         code.
5544         (mips16_scan_prologue): Update mips_fetch_instruction call.
5545         Update according to change to mips16_to_32_reg.
5546         (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5547         (mips_insn16_frame_base_sniffer): Likewise.
5548         (micromips_decode_imm9): New function.
5549         (micromips_scan_prologue): Likewise.
5550         (mips_micro_frame_cache): Likewise.
5551         (mips_micro_frame_this_id): Likewise.
5552         (mips_micro_frame_prev_register): Likewise.
5553         (mips_micro_frame_sniffer): Likewise.
5554         (mips_micro_frame_unwind): New variable.
5555         (mips_micro_frame_base_address): New function.
5556         (mips_micro_frame_base): New variable.
5557         (mips_micro_frame_base_sniffer): New function.
5558         (mips32_scan_prologue): Update mips_fetch_instruction call.
5559         (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5560         rather than for MIPS16.
5561         (mips_insn32_frame_base_sniffer): Likewise.
5562         (mips_addr_bits_remove): Handle microMIPS code.
5563         (deal_with_atomic_sequence): Rename to...
5564         (mips_deal_with_atomic_sequence): ... this.  Update the type
5565         of the variable used to hold an instruction.  Remove the ISA bit
5566         check.  Update mips_fetch_instruction call.
5567         (micromips_deal_with_atomic_sequence): New function.
5568         (deal_with_atomic_sequence): Likewise.
5569         (mips_about_to_return): Handle microMIPS code.  Update
5570         mips_fetch_instruction call.
5571         (heuristic_proc_start): Check for the standard MIPS ISA rather
5572         than for MIPS16.  Update mips_pc_is_mips16 and
5573         mips_fetch_instruction calls.  Handle microMIPS code.
5574         (mips_push_dummy_code): Handle microMIPS code.
5575         (mips_eabi_push_dummy_call): Likewise.
5576         (mips_o32_return_value): Update mips_pc_is_mips16 call.
5577         (mips_o64_push_dummy_call): Handle microMIPS code.
5578         (mips_o64_return_value): Update mips_pc_is_mips16 call.
5579         (is_delayed): Remove function.
5580         (mips_single_step_through_delay): Replace the call to is_delayed
5581         with mips32_instruction_has_delay_slot.  Correct MIPS16 handling.
5582         Handle microMIPS code.
5583         (mips_skip_prologue): Update mips_pc_is_mips16 call.  Handle
5584         microMIPS code.
5585         (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5586         call.
5587         (micromips_in_function_epilogue_p): New function.
5588         (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5589         call.
5590         (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5591         Handle microMIPS.
5592         (gdb_print_insn_mips): Likewise.
5593         (mips_breakpoint_from_pc): Likewise.
5594         (mips_remote_breakpoint_from_pc): New function.
5595         (mips32_instruction_has_delay_slot): Simplify making use of the
5596         updated mips_fetch_instruction interface.
5597         (micromips_instruction_has_delay_slot): New function.
5598         (mips16_instruction_has_delay_slot): Simplify making use of the
5599         updated mips_fetch_instruction interface.
5600         (mips_adjust_breakpoint_address): Check for the standard MIPS
5601         ISA rather than for MIPS16 ISA.  Update for unmake_compact_addr
5602         calls.  Handle microMIPS code.
5603         (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5604         (mips_skip_trampoline_code): Handle microMIPS code.
5605         (global_mips_compression): New function.
5606         (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5607         file flags.  Register the microMIPS remote breakpoint handler
5608         and heuristic frame unwinder.
5609         (show_mips_compression): New function.
5610         (_initialize_mips_tdep): Add the "set mips compression" and
5611         "show mips compression" commands.
5612
5613 2012-05-18  Sergio Durigan Junior  <sergiodj@redhat.com>
5614
5615         * ada-lang.c:
5616         * ada-tasks.c:
5617         * ada-varobj.c:
5618         * amd64-darwin-tdep.c:
5619         * arm-symbian-tdep.c:
5620         * arm-tdep.c:
5621         * avr-tdep.c:
5622         * ax-gdb.c:
5623         * bfin-linux-tdep.c:
5624         * breakpoint.c:
5625         * c-valprint.c:
5626         * cli/cli-cmds.c:
5627         * coffread.c:
5628         * cp-support.c:
5629         * cris-tdep.c:
5630         * dwarf2-frame-tailcall.c:
5631         * dwarf2-frame.c:
5632         * dwarf2expr.c:
5633         * dwarf2loc.c:
5634         * dwarf2read.c:
5635         * elfread.c:
5636         * eval.c:
5637         * expprint.c:
5638         * f-valprint.c:
5639         * frv-tdep.c:
5640         * h8300-tdep.c:
5641         * hppa-hpux-tdep.c:
5642         * hppa-tdep.c:
5643         * hppanbsd-tdep.c:
5644         * i386-nto-tdep.c:
5645         * i386-tdep.c:
5646         * i387-tdep.c:
5647         * ia64-tdep.c:
5648         * jit.c:
5649         * linespec.c:
5650         * linux-tdep.c:
5651         * lm32-tdep.c:
5652         * m2-valprint.c:
5653         * m32c-tdep.c:
5654         * m32r-rom.c:
5655         * m32r-tdep.c:
5656         * m68k-tdep.c:
5657         * m68klinux-tdep.c:
5658         * mi/mi-main.c:
5659         * microblaze-tdep.c:
5660         * mips-linux-tdep.c:
5661         * mips-tdep.c:
5662         * mn10300-tdep.c:
5663         * p-valprint.c:
5664         * parse.c:
5665         * ppc-linux-tdep.c:
5666         * ppc-sysv-tdep.c:
5667         * printcmd.c:
5668         * python/py-finishbreakpoint.c:
5669         * python/py-inferior.c:
5670         * python/py-infthread.c:
5671         * python/py-type.c:
5672         * python/python.c:
5673         * remote-fileio.c:
5674         * remote-m32r-sdi.c:
5675         * remote-mips.c:
5676         * reverse.c:
5677         * rl78-tdep.c:
5678         * rs6000-aix-tdep.c:
5679         * rs6000-tdep.c:
5680         * s390-tdep.c:
5681         * score-tdep.c:
5682         * sh64-tdep.c:
5683         * skip.c:
5684         * solib-darwin.c:
5685         * solib-dsbt.c:
5686         * solib-frv.c:
5687         * sparc-tdep.c:
5688         * spu-multiarch.c:
5689         * spu-tdep.c:
5690         * stack.c:
5691         * symfile.c:
5692         * symtab.c:
5693         * tic6x-tdep.c:
5694         * tracepoint.c:
5695         * v850-tdep.c:
5696         * valarith.c:
5697         * valprint.c:
5698         * value.c:
5699         * xcoffread.c:
5700         * xtensa-tdep.c:
5701         * ada-lang.c:
5702         * ada-tasks.c:
5703         * ada-varobj.c:
5704         * amd64-darwin-tdep.c:
5705         * arm-symbian-tdep.c:
5706         * arm-tdep.c: Delete unused variables.
5707
5708 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5709
5710         Rename $ddir to $datadir.
5711         * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5712         * auto-load.c (auto_load_safe_path_vec_update)
5713         (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5714         * configure: Regenerate.
5715         * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5716         Likewise.  Remove the 'use $ddir' help string.
5717
5718 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5719
5720         * auto-load.c (show_auto_load_safe_path): Accept any combination of
5721         DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5722
5723 2012-05-18  Tom Tromey  <tromey@redhat.com>
5724
5725         PR exp/13907:
5726         * valprint.h (struct value_print_options) <symbol_print>: New
5727         field.
5728         * valprint.c (user_print_options): Add default for symbol_print.
5729         (show_symbol_print): New function.
5730         (generic_val_print): Respect symbol_print.
5731         (_initialize_valprint): Add "print symbol" setting.
5732         * f-valprint.c (f_val_print): Respect symbol_print.
5733         * c-valprint.c (c_val_print): Respect symbol_print.
5734         * NEWS: Update.
5735         * printcmd.c (print_address_symbolic): Return int.  Ignore some
5736         zero-size symbols.
5737         (print_address_demangle): Return int.
5738         * defs.h: (print_address_symbolic): Return int.
5739         * value.h (print_address_demangle): Return int.
5740
5741 2012-05-18  Tom Tromey  <tromey@redhat.com>
5742
5743         * valprint.c (val_print_string): Don't print leading space.
5744         * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5745         print space before string or vtbl.
5746         * m2-valprint.c (print_unpacked_pointer): Optionally print space
5747         before string.
5748         * jv-valprint.c (java_value_print): Print space before string.
5749         * go-valprint.c (print_go_string): Print space before string.
5750         * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5751         space before string.
5752         * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5753         space before string or vtbl.
5754         * auxv.c (fprint_target_auxv): Print space after address.
5755
5756 2012-05-18  Tom Tromey  <tromey@redhat.com>
5757
5758         * printcmd.c (print_address_demangle): Remove special case for 0.
5759
5760 2012-05-18  Tom Tromey  <tromey@redhat.com>
5761
5762         * printcmd.c (print_address_demangle): Add 'opts' argument.
5763         * p-valprint.c (pascal_val_print): Update.
5764         * jv-valprint.c (java_val_print): Update.
5765         * value.h: Update.
5766         * valprint.c (generic_val_print): Update.
5767         (print_function_pointer_address): Add 'options' argument.  Remove
5768         'addressprint' argument.  Update.
5769         * m2-valprint.c (print_unpacked_pointer): Update.
5770         * gnu-v3-abi.c (print_one_vtable): Update.
5771         (gnuv3_print_method_ptr): Update.
5772         * f-valprint.c (f_val_print): Update.
5773         * cp-valprint.c (cp_print_value_fields): Update.
5774         * valprint.h (print_function_pointer_address): Update.
5775         * c-valprint.c (c_val_print): Update.
5776
5777 2012-05-18  Tom Tromey  <tromey@redhat.com>
5778
5779         * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5780         directly corresponding to the found psymtab.
5781         * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5782         (dw2_find_pc_sect_symtab): Use it.
5783         * block.h (blockvector_contains_pc): Declare.
5784         * block.c (find_block_in_blockvector): New function.
5785         (blockvector_for_pc_sect): Use it.
5786         (blockvector_contains_pc): New function.
5787
5788 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5789
5790         * mips-tdep.h (mips_write_pc): New prototype.
5791         * mips-tdep.c (mips_write_pc): Make external, add description.
5792         * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5793         add description.
5794
5795 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5796
5797         * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5798         mips_regnum->pc.
5799         (mips_unwind_pc, mips_write_pc): Likewise.
5800         (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5801         gdbarch_read_pc.
5802
5803 2012-05-17  Joel Brobecker  <brobecker@adacore.com>
5804
5805         * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5806         proc_warn, proc_error, proc_get_status, proc_flags,
5807         proc_why, proc_what, proc_nsysarg, proc_sysargs,
5808         proc_set_run_on_last_close, proc_unset_run_on_last_close,
5809         proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5810         proc_stop_process, proc_wait_for_stop, proc_run_process,
5811         proc_set_traced_signals, proc_set_traced_faults,
5812         proc_set_traced_sysentry, proc_set_traced_sysexit,
5813         proc_set_held_signals, proc_get_held_signals,
5814         proc_get_traced_signals, proc_get_traced_faults,
5815         proc_get_traced_sysentry, proc_get_traced_sysexit,
5816         proc_clear_current_fault, proc_set_current_signal,
5817         proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5818         proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5819         proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5820         proc_get_current_thread, proc_get_current_thread,
5821         proc_get_current_thread, proc_update_threads,
5822         proc_update_threads, proc_update_threads, proc_update_threads,
5823         proc_iterate_over_threads, procfs_find_new_threads,
5824         procfs_pid_to_str): Make static.  Remove advance declaration.
5825         (proc_cursig): Make static.  Conditionalized defintion on
5826         PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5827         (proc_syscall, proc_set_kill_on_last_close,
5828         proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5829         proc_get_pending_signals, proc_get_signal_actions,
5830         proc_trace_signal, proc_ignore_signal): Delete.
5831
5832 2012-05-16  Sergio Durigan Junior  <sergiodj@redhat.com>
5833
5834         * coffread.c (cs_section_address): Passing proper argument for
5835         `bfd_get_section_vma'.
5836         * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5837         `bfd_get_section_flags'.
5838         * remote.c (remote_trace_set_readonly_regions): Likewise, for
5839         `bfd_get_section_vma'.
5840
5841 2012-05-16  Tom Tromey  <tromey@redhat.com>
5842
5843         PR macros/13205:
5844         * macrotab.h: (macro_define_special): Declare.
5845         (enum macro_special_kind): New.
5846         (struct macro_definition) <argc, replacement>: Update comments.
5847         * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5848         (macro_define_object_internal): New function.
5849         (macro_define_object): Use it.
5850         (macro_define_special): New function.
5851         (fixup_definition): New function.
5852         (macro_lookup_definition, foreach_macro_in_scope)
5853         (foreach_macro): Use fixup_definition.
5854         * macroexp.h (macro_stringify): Declare.
5855         * macroexp.c (free_buffer_return_text): New function.
5856         (stringify): Constify "arg".
5857         (macro_stringify): New function.
5858         * dwarf2read.c (macro_start_file): Call macro_define_special.
5859
5860 2012-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
5861             Maciej W. Rozycki  <macro@mips.com>
5862
5863         * breakpoint.h (bp_location): Add related_address member.
5864         * inferior.h (get_return_value): Take a pointer to struct value
5865         instead of struct type for the function requested.
5866         * value.h (using_struct_return): Likewise.
5867         * gdbarch.sh (return_value): Take a pointer to struct value
5868         instead of struct type for the function requested.
5869         * breakpoint.c (set_breakpoint_location_function): Initialize
5870         related_address for bp_gnu_ifunc_resolver breakpoints.
5871         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5872         requested function's address to gdbarch_return_value.
5873         * eval.c (evaluate_subexp_standard): Pass the requested
5874         function's address to using_struct_return.
5875         * infcall.c (call_function_by_hand): Pass the requested
5876         function's address to using_struct_return and
5877         gdbarch_return_value.
5878         * infcmd.c (get_return_value): Take a pointer to struct value
5879         instead of struct type for the function requested.
5880         (print_return_value): Update accordingly.
5881         (finish_command_continuation): Likewise.
5882         * stack.c (return_command): Pass the requested function's
5883         address to using_struct_return and gdbarch_return_value.
5884         * value.c (using_struct_return): Take a pointer to struct value
5885         instead of struct type for the function requested.  Pass the
5886         requested function's address to gdbarch_return_value.
5887         * python/py-finishbreakpoint.c (finish_breakpoint_object):
5888         New function_value member, replacing function_type.
5889         (bpfinishpy_dealloc): Update accordingly.
5890         (bpfinishpy_pre_stop_hook): Likewise.
5891         (bpfinishpy_init): Likewise.  Record the requested function's
5892         address.
5893         * mips-tdep.c (mips_fval_reg): New enum.
5894         (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5895         words put in GP registers.
5896         (mips_o64_push_dummy_call): Update a comment.
5897         (mips_o32_return_value): Take a pointer to struct value instead
5898         of struct type for the function requested and use it to check if
5899         using the MIPS16 calling convention.  Return the designated
5900         general purpose registers for floating-point values returned in
5901         MIPS16 mode.
5902         (mips_o64_return_value): Likewise.
5903         * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5904         (ppc_sysv_abi_broken_return_value): Likewise.
5905         (ppc64_sysv_abi_return_value): Likewise.
5906         * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5907         value instead of struct type for the function requested.
5908         * amd64-tdep.c (amd64_return_value): Likewise.
5909         * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5910         * arm-tdep.c (arm_return_value): Likewise.
5911         * avr-tdep.c (avr_return_value): Likewise.
5912         * bfin-tdep.c (bfin_return_value): Likewise.
5913         * cris-tdep.c (cris_return_value): Likewise.
5914         * frv-tdep.c (frv_return_value): Likewise.
5915         * h8300-tdep.c (h8300_return_value): Likewise.
5916         (h8300h_return_value): Likewise.
5917         * hppa-tdep.c (hppa32_return_value): Likewise.
5918         (hppa64_return_value): Likewise.
5919         * i386-tdep.c (i386_return_value): Likewise.
5920         * ia64-tdep.c (ia64_return_value): Likewise.
5921         * iq2000-tdep.c (iq2000_return_value): Likewise.
5922         * lm32-tdep.c (lm32_return_value): Likewise.
5923         * m32c-tdep.c (m32c_return_value): Likewise.
5924         * m32r-tdep.c (m32r_return_value): Likewise.
5925         * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5926         * m68k-tdep.c (m68k_return_value): Likewise.
5927         (m68k_svr4_return_value): Likewise.
5928         * m88k-tdep.c (m88k_return_value): Likewise.
5929         * mep-tdep.c (mep_return_value): Likewise.
5930         * microblaze-tdep.c (microblaze_return_value): Likewise.
5931         * mn10300-tdep.c (mn10300_return_value): Likewise.
5932         * moxie-tdep.c (moxie_return_value): Likewise.
5933         * mt-tdep.c (mt_return_value): Likewise.
5934         * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5935         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5936         (ppc_sysv_abi_broken_return_value): Likewise.
5937         (ppc64_sysv_abi_return_value): Likewise.
5938         * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5939         * rl78-tdep.c (rl78_return_value): Likewise.
5940         * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5941         * rx-tdep.c (rx_return_value): Likewise.
5942         * s390-tdep.c (s390_return_value): Likewise.
5943         * score-tdep.c (score_return_value): Likewise.
5944         * sh-tdep.c (sh_return_value_nofpu): Likewise.
5945         (sh_return_value_fpu): Likewise.
5946         * sh64-tdep.c (sh64_return_value): Likewise.
5947         * sparc-tdep.c (sparc32_return_value): Likewise.
5948         * sparc64-tdep.c (sparc64_return_value): Likewise.
5949         * spu-tdep.c (spu_return_value): Likewise.
5950         * tic6x-tdep.c (tic6x_return_value): Likewise.
5951         * v850-tdep.c (v850_return_value): Likewise.
5952         * vax-tdep.c (vax_return_value): Likewise.
5953         * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5954         * xtensa-tdep.c (xtensa_return_value): Likewise.
5955         * gdbarch.c: Regenerate.
5956         * gdbarch.h: Regenerate.
5957
5958 2012-05-15  Tom Tromey  <tromey@redhat.com>
5959
5960         * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5961
5962 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5963
5964         * breakpoint.c (init_breakpoint_sal): Add quotes around part
5965         of command in two error message.
5966
5967 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5968
5969         * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5970
5971 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5972
5973         * breakpoint.c (find_condition_and_thread): Minor reformatting.
5974
5975 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5976
5977         * NEWS (show auto-load scripts-directory): Add forgotten command.
5978
5979 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5980
5981         * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5982         parameters.
5983
5984 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5985
5986         * amd64-tdep.c: Include features/i386/x32.c and
5987         features/i386/x32-avx.c.
5988         (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5989         initialize_tdesc_x32_avx.
5990
5991 2012-05-14  Stan Shebs  <stan@codesourcery.com>
5992
5993         Add dynamic printf.
5994         * breakpoint.h (enum bptype): New type bp_dprintf.
5995         (struct breakpoint): New field extra_string.
5996         (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5997         (create_breakpoint): Add extra_string arg.
5998         * breakpoint.c (dprintf_breakpoint_ops): New.
5999         (is_breakpoint): Add bp_dprintf.
6000         (bpstat_what): Add dprintf case.
6001         (bptype_string): Ditto.
6002         (print_one_breakpoint_location): Ditto.
6003         (init_bp_location): Ditto.
6004         (bkpt_print_mention): Ditto.
6005         (dprintf_style_enums): New array.
6006         (dprintf_style): New global.
6007         (dprintf_function): New global.
6008         (dprintf_channel): New global.
6009         (update_dprintf_command_list): New function.
6010         (update_dprintf_commands): New function.
6011         (init_breakpoint_sal): Add extra_string argument, handle it.
6012         (create_breakpoint_sal): Add extra_string argument.
6013         (create_breakpoints_sal): Add extra_string argument, update callers.
6014         (find_condition_and_thread): Add extra argument.
6015         (create_breakpoint): Add extra_string argument, record it.
6016         (dprintf_command): New function.
6017         (break_command_1): Add arg to create_breakpoint call.
6018         (handle_gnu_v3_exceptions): Ditto.
6019         (trace_command): Ditto.
6020         (ftrace_command): Ditto.
6021         (strace_command): Ditto.
6022         (bkpt_print_mention): Add dprintf case.
6023         (create_breakpoint_sal_default): Add extra_string argument.
6024         (_initialize_breakpoint): Add new commands.
6025         * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6026         * python/py-breakpoint.c (bppy_init): Ditto.
6027         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6028
6029 2012-05-14  Maciej W. Rozycki  <macro@codesourcery.com>
6030
6031         * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6032
6033 2012-05-14  Siva Chandra Reddy  <sivachandra@google.com>
6034
6035         * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6036         unsigned long long.
6037
6038 2012-05-13  Siva Chandra Reddy  <sivachandra@google.com>
6039
6040         Add a new function gdb.find_pc_line to the Python API.
6041         * NEWS (Python Scripting): Add entry about the new function.
6042         * python/python.c (gdbpy_find_pc_line): New function which
6043         implements gdb.find_pc_line.
6044         (GdbMethods): Add entry for the new function.
6045
6046 2012-05-12  Pedro Alves  <palves@redhat.com>
6047
6048         * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6049         initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6050
6051 2012-05-12  Eli Zaretskii  <eliz@gnu.org>
6052
6053         * inferior.c: Include completer.h
6054         (initialize_inferiors): Set completer of add-inferior to
6055         filename_completer.
6056
6057 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6058
6059         * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6060         gdbarch_ptr_bit for x32 core dump.
6061
6062 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6063
6064         * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6065         and features/i386/x32-avx-linux.c.
6066
6067 2012-05-11  Stan Shebs  <stan@codesourcery.com>
6068             Kwok Cheung Yeung  <kcy@codesourcery.com>
6069
6070         * NEWS: Describe new info os commands.
6071         * common/linux-osdata.c (PID_T, TIME_T): Define.
6072         (MAX_PID_T_STRLEN): New.
6073         (linux_common_core_of_thread): Add comment.  Change to use PID_T and
6074         MAX_PID_T_STRLEN.
6075         (command_from_pid): Add comment.  Change to use PID_T.
6076         (commandline_from_pid):  Change to use PID_T.
6077         (user_from_pid): Add comment.
6078         (get_process_owner): Add comment. Change to use PID_T and
6079         MAX_PID_T_STRLEN.
6080         (get_number_of_cpu_cores): Add comment.
6081         (get_cores_used_by_process): Add comment.  Change to use PID_T and
6082         MAX_PID_T_STRLEN.
6083         (linux_xfer_osdata_processes): Change to use PID_T and
6084         MAX_PID_T_STRLEN.
6085         (compare_processes): New function.
6086         (linux_xfer_osdata_processgroups): New function.
6087         (linux_xfer_osdata_threads): Change to use PID_T.
6088         (linux_xfer_osdata_fds): New function.
6089         (format_socket_state, print_sockets): New functions.
6090         (union socket_addr): New union.
6091         (linux_xfer_osdata_isockets): New function.
6092         (time_from_time_t, group_from_gid): New functions.
6093         (linux_xfer_osdata_shm): New function.
6094         (linux_xfer_osdata_sem): New function.
6095         (linux_xfer_osdata_msg): New function.
6096         (linux_xfer_osdata_modules): New function.
6097         (osdata_table): Add new entries.
6098         * common/buffer.c (buffer_xml_printf): Add support for long and
6099         long long format specifiers.
6100
6101 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6102
6103         * amd64-linux-tdep.h (tdesc_x32_linux): New.
6104         (tdesc_x32_avx_linux): Likewise.
6105
6106 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6107
6108         Implement multi-component --with-auto-load-dir.
6109         * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6110         entries.
6111         (--with-auto-load-safe-path): Update the default value description.
6112         * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6113         New.
6114         (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output.  Remove
6115         GDB_DATADIR NULL check.  Replace GDB_DATADIR/auto-load by
6116         AUTO_LOAD_DIR.  Support $ddir and multiple components in it.
6117         (_initialize_auto_load): Initialize also auto_load_dir.  Install new
6118         "set auto-load scripts-directory".
6119         * config.in: Regenerate.
6120         * configure: Regenerate.
6121         * configure.ac (--with-auto-load-dir): New configure option.
6122         (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6123
6124 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6125
6126         Provide $ddir substitution for --with-auto-load-safe-path.
6127         * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6128         entries.
6129         * auto-load.c: Include observer.h.
6130         (auto_load_safe_path_vec_update): Call substitute_path_component for
6131         each component.  New variable ddir_subst.
6132         (auto_load_gdb_datadir_changed): New function.
6133         (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6134         AUTO_LOAD_SAFE_PATH.  New comment.
6135         (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6136         AUTO_LOAD_SAFE_PATH.  Install auto_load_gdb_datadir_changed.
6137         * config.in: Regenerate.
6138         * configure: Regenerate.
6139         * configure.ac (--auto-load-safe-path): Rename
6140         DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH.  Default to
6141         GDB_DATADIR/auto-load.
6142         * defs.h (substitute_path_component): New declaration.
6143         * top.c: Include observer.h.
6144         (set_gdb_datadir): New function.
6145         (init_main): Install it for "set data-directory".
6146         * utils.c (substitute_path_component): New function.
6147
6148 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6149
6150         Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6151         * auto-load.c (auto_load_objfile_script): Remove check for NULL
6152         DEBUG_FILE_DIRECTORY.  Handle multiple components of
6153         DEBUG_FILE_DIRECTORY.
6154
6155 2012-05-10  Tom Tromey  <tromey@redhat.com>
6156
6157         * dwarf2read.c (recursively_write_psymbols): New function.
6158         (write_psymtabs_to_index): Use it.
6159
6160         * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6161         field.
6162         (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6163         (load_partial_comp_unit): Update.
6164         (queue_comp_unit): Add argument 'pretend_language'.
6165         (process_queue): Update.
6166         (psymtab_to_symtab_1): Skip dependencies that have a user.
6167         (load_partial_comp_unit_reader): Give meaning to the 'data'
6168         argument.
6169         (load_full_comp_unit): Add 'pretend_language' argument.
6170         (process_full_comp_unit): Add 'pretend_language' argument.  Set
6171         language on CU.
6172         (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6173         Update.
6174         (maybe_queue_comp_unit): Add 'pretend_language' argument.
6175         (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6176         Update.
6177         (prepare_one_comp_unit): Add 'pretend_language' argument.
6178
6179         * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6180         (struct dwarf2_per_objfile) <just_read_cus>: New field.
6181         (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6182         (dw2_do_instantiate_symtab): Check whether symtab was read in
6183         before queueing.
6184         (dw2_instantiate_symtab): Add assertion.  Call
6185         process_cu_includes.
6186         (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6187         (partial_symtab_p): New typedef.
6188         (set_partial_user): New function.
6189         (dwarf2_build_psymtabs_hard): Use set_partial_user.
6190         (scan_partial_symbols): Add imported CU to imported_symtabs.
6191         (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6192         (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6193         (get_symtab, recursively_compute_inclusions)
6194         (compute_symtab_includes, process_cu_includes)
6195         (process_imported_unit_die): New functions.
6196         (process_die) <DW_TAG_imported_unit>: New case.
6197         (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6198
6199         * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6200         comment.
6201         (struct partial_die_info) <locdesc>: Remove.
6202         <d>: New field.
6203         (process_psymtab_comp_unit): Add 'read_partial' argument.
6204         Update.
6205         (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6206         (scan_partial_symbols): Handle DW_TAG_imported_unit.
6207         (add_partial_symbol): Update.
6208         (process_die): Handle DW_TAG_partial_unit.
6209         (read_file_scope): Update comment.
6210         (load_partial_dies): Handle DW_TAG_imported_unit.
6211         (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6212         (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6213
6214 2012-05-10  Tom Tromey  <tromey@redhat.com>
6215
6216         * cc-with-dwz.sh: New file.
6217
6218 2012-05-10  Tom Tromey  <tromey@redhat.com>
6219
6220         * symtab.h (struct symtab) <includes, user>: New fields.
6221         * block.h (struct block_iterator) <d, idx, which>: New fields.
6222         * block.c (initialize_block_iterator, find_iterator_symtab)
6223         (block_iterator_step, block_iter_name_step)
6224         (block_iter_match_step): New functions.
6225         (block_iterator_first, block_iterator_next)
6226         (block_iter_name_first, block_iter_name_next)
6227         (block_iter_match_first, block_iter_match_next): Rewrite.
6228         (get_block_symtab): New function.
6229
6230 2012-05-10  Tom Tromey  <tromey@redhat.com>
6231
6232         * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6233         set_block_symtab.
6234         * jit.c (finalize_symtab): Use allocate_global_block,
6235         set_block_symtab.
6236         * buildsym.c (finish_block_internal): New function, from old
6237         finish_block.
6238         (finish_block): Rewrite.
6239         (end_symtab): Use finish_block_internal, set_block_symtab.
6240         * block.h (struct global_block): New.
6241         (allocate_global_block, set_block_symtab): Declare.
6242         * block.c (allocate_global_block, set_block_symtab): New
6243         functions.
6244
6245 2012-05-10  Tom Tromey  <tromey@redhat.com>
6246
6247         * psymtab.c (partial_map_expand_apply): Add assertion.
6248         (partial_map_symtabs_matching_filename): Skip included psymtabs.
6249         (psymtab_to_symtab): Find unshared psymtab.
6250         (dump_psymtab): Print including psymtabs.
6251         (recursively_search_psymtabs): New function.
6252         (expand_symtabs_matching_via_partial): Use it.
6253         * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6254         fields.
6255         (enum psymtab_search_status): New.
6256
6257 2012-05-10  Tom Tromey  <tromey@redhat.com>
6258
6259         * tracepoint.c (scope_info): Update.
6260         * symtab.c (lookup_block_symbol, iterate_over_symbols)
6261         (find_pc_sect_symtab, search_symbols)
6262         (default_make_symbol_completion_list_break_on)
6263         (make_file_symbol_completion_list): Update.
6264         * symmisc.c (dump_symtab_1): Update.
6265         * stack.c (print_frame_args, iterate_over_block_locals)
6266         (print_frame_labels, iterate_over_block_arg_vars): Update.
6267         * python/py-block.c (block_object) <dict>: Remove.
6268         <block>: New field.
6269         <iter>: Change type.
6270         (blpy_iter): Update.
6271         (blpy_block_syms_iternext): Update.
6272         * psymtab.c (map_block): Use block iterators.
6273         * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
6274         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6275         * mdebugread.c (parse_symbol, mylookup_symbol): Update.
6276         * infrun.c (check_exception_resume): Update.
6277         * cp-support.c (make_symbol_overload_list_block): Update.
6278         * coffread.c (patch_opaque_types): Update.
6279         * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
6280         * block.h (struct block_iterator): New.
6281         (block_iterator_first, block_iterator_next, block_iter_name_first)
6282         (block_iter_name_next, block_iter_match_first)
6283         (block_iter_match_next): Declare.
6284         (ALL_BLOCK_SYMBOLS): Redefine.
6285         * block.c (block_iterator_first, block_iterator_next)
6286         (block_iter_name_first, block_iter_name_next)
6287         (block_iter_match_first, block_iter_match_next): New functions.
6288         * ada-lang.c (ada_add_block_symbols)
6289         (ada_make_symbol_completion_list): Use block iterator.
6290
6291 2012-05-10  Tom Tromey  <tromey@redhat.com>
6292
6293         * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
6294         (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
6295         (lookup_partial_symbol, find_last_source_symtab_from_partial)
6296         (read_psymtabs_with_filename, map_matching_symbols_psymtab)
6297         (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
6298         Update.
6299
6300 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
6301
6302         * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
6303         print-file-var-lib2.c, print-file-var-main.c and
6304         print-file-var.exp (located in gdb/testsuite/gdb.base).
6305
6306 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
6307
6308         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6309         try locating the symbol in the symbol's own objfile first, before
6310         extending the search to all objfiles.
6311         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6312         out of lookup_symbol_aux_symtabs.
6313         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6314         Replace extracted-out code by call to lookup_symbol_aux_objfile.
6315         Do not search EXCLUDE_OBJFILE.
6316         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6317         (lookup_symbol_global): Search for matches in the block's objfile
6318         first, before searching all other objfiles.
6319
6320 2012-05-10  Tristan Gingold  <gingold@adacore.com>
6321
6322         * printcmd.c (set_command): Add pre/post inc/dec.
6323
6324 2012-05-09  Frank Ch. Eigler  <fche@redhat.com>
6325
6326         * gdb.1: Document -ex option.
6327
6328 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
6329
6330         * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6331         * inferior.h (AT_SYMBOL): Delete.
6332
6333 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
6334
6335         * mips-tdep.c (mips_push_dummy_code): New function.
6336         (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6337         ON_STACK and install mips_push_dummy_code as our gdbarch
6338         push_dummy_code routine.
6339
6340 2012-05-09  Pedro Alves  <palves@redhat.com>
6341
6342         * target.c (set_maintenance_target_async_permitted): Rename to ...
6343         (set_target_async_command): ... this.
6344         (show_maintenance_target_async_permitted): Rename to ...
6345         (show_target_async_command): ... this.
6346         (initialize_targets): Adjust.
6347
6348 2012-05-08  Doug Evans  <dje@google.com>
6349
6350         * go-exp.y (classify_name): Add missing assignment of fields of
6351         yylval.ssym.
6352
6353 2012-05-08  Eli Zaretskii  <eliz@gnu.org>
6354
6355         Display the ">" prompt in interactive mode while reading canned
6356         commands, even when the current interpreter is MI.
6357
6358         * interps.c (interp_set_temp): New function.
6359
6360         * interps.h (interp_set_temp): Add prototype.
6361
6362         * cli/cli-script.c (restore_interp): New cleanup function.
6363         (read_command_lines): Temporarily override the current interpreter
6364         with CLI and arrange for restoring the original one.
6365
6366 2012-05-12  Joel Sherrill <joel.sherrill@oarcorp.com>
6367
6368         * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6369
6370 2012-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
6371
6372         * probe.c (parse_probes): Move conditional to check for
6373         debuginfo files from here...
6374         * stap-probe.c (stap_get_probes): ... to here.
6375
6376 2012-05-07  Mark Kettenis  <kettenis@gnu.org>
6377             H.J. Lu  <hongjiu.lu@intel.com>
6378
6379         * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6380         `movl %esp, %ebp' for the X32 ABI.
6381
6382 2012-05-07  Tom Tromey  <tromey@redhat.com>
6383
6384         * dwarf2read.c (dwarf_tag_name): Return const char *.  Use
6385         get_DW_TAG_name.
6386         (dwarf_attr_name): Return const char *.  Use get_DW_AT_name.
6387         (dwarf_form_name): Return const char *.  Use get_DW_FORM_name.
6388         (dwarf_stack_op_name): Remove.
6389         (dwarf_cfi_name): Return const char *.  Use get_DW_ATE_name.
6390         (decode_locdesc): Use get_DW_OP_name.
6391         * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6392         (dwarf2_compile_expr_to_ax): Likewise.
6393         (disassemble_dwarf_expression): Likewise.
6394         * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6395
6396 2012-05-07  Chung-Lin Tang  <cltang@codesourcery.com>
6397
6398         * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6399         (sh_linux_sigtramp_cache): New function.
6400         (sh_linux_sigreturn_init): New function.
6401         (sh_linux_rt_sigreturn_init): New function.
6402         (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6403         patterns.
6404         (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6405         syscall codes.
6406         (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6407         (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6408         (sh_linux_init_abi): Add init calls to register new tramp_frame
6409         definitions under 32-bit SH, update comments.
6410
6411 2012-05-07  Pedro Alves  <palves@redhat.com>
6412
6413         PR gdb/10952
6414
6415         * amd64-linux-tdep.c: Include glibc-tdep.h.
6416         (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6417         gdbarch_skip_solib_resolver callback.
6418
6419 2012-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
6420
6421         * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6422         back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6423         (show_auto_load_safe_path): Check any-directory by comparison with "/".
6424         (add_auto_load_safe_path): Change the error message.
6425         (_initialize_auto_load): Change the "safe-path" help text.
6426         * configure: Regenerate
6427         * configure.ac (--without-auto-load-safe-path): Set
6428         WITH_AUTO_LOAD_SAFE_PATH to /.
6429
6430 2012-05-05  Sergio Durigan Junior  <sergiodj@redhat.com>
6431
6432         * stap-probe.h: Do not include unecessary `probe.h'.
6433
6434 2012-05-05  Alan Modra  <amodra@gmail.com>
6435
6436         * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6437         bfd_und_section_ptr.
6438         * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6439         and bfd_com_section_ptr.
6440
6441 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
6442
6443         * MAINTAINERS (Past Maintainers): Add Chris Faylor.
6444
6445 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
6446
6447         * windows-nat.h (segment_register_p_ftype): New typedef.
6448         (windows_set_segment_register_p): Add declaration.
6449         * windows-nat.c (segment_register_p): New static global.
6450         (windows_set_segment_register_p): New function.
6451         (do_windows_fetch_inferior_registers): Add special handling
6452         for segment registers.
6453         * amd64-windows-nat.c: #include "amd64-tdep.h".
6454         (amd64_windows_segment_register_p): New function.
6455         (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6456         * i386-windows-nat.c: #include "i386-tdep.h".
6457         (i386_windows_segment_register_p): New function.
6458         (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6459
6460 2012-05-04  Tristan Gingold  <gingold@adacore.com>
6461
6462         * printcmd.c (set_command): Emit a warning if the expression is not
6463         an assignment.
6464
6465 2012-05-03  Joel Brobecker  <brobecker@adacore.com>
6466
6467         * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6468         Make static.
6469
6470 2012-05-03  Sergio Durigan Junior  <sergiodj@redhat.com>
6471
6472         * stap-probe.c (stap_is_operator): Change declaration.
6473         (stap_get_opcode): Change return value.
6474         (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6475         `stap_parse_argument_1'.
6476
6477 2012-05-03  Pedro Alves  <pedro@codesourcery.com>
6478
6479         * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6480         debug log.
6481
6482 2012-05-03  Siva Chandra Reddy  <sivachandra@google.com>
6483
6484         Add two new methods global_block and static_block to gdb.Symtab
6485         objects.
6486         * NEWS (Python scripting): Add entry about the new methods.
6487         * python/py-symtab.c (stpy_global_block): New function which
6488         implements the gdb.Symtab.global_block() method.
6489         (stpy_static_block): New function which implements the
6490         gdb.Symtab.static_block() method.
6491         (symtab_object_methods): Add entries for the two new methods.
6492
6493 2012-05-03  Doug Evans  <dje@google.com>
6494
6495         * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6496         files.
6497
6498 2012-05-03  Yao Qi  <yao@codesourcery.com>
6499
6500         * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6501         space.
6502         (i386_process_record): Ditto.
6503
6504 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
6505
6506         * infcall.c (unwind_on_signal_p): Make static.
6507
6508 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
6509
6510         * sol-thread.c (solaris_pid_to_str): Make static.
6511         (_initialize_sol_thread): Add prototype.
6512
6513 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
6514
6515         * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6516
6517 2012-05-02  Christopher Faylor  <me.cygwin2012@cgf.cx>
6518
6519         * MAINTAINERS: Remove myself.
6520
6521 2012-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6522
6523         Fix --without-auto-load-safe-path for MS-Windows host platform.
6524         * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6525
6526 2012-05-02  Eli Zaretskii  <eliz@gnu.org>
6527
6528         * gdb_curses.h: Undefine KEY_EVENT before including curses
6529         headers.  Move "#undef MOUSE_MOVED" before any curses header
6530         inclusion.
6531
6532 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
6533
6534         * features/i386/i386-mmx-linux.c: Regenerate.
6535         * features/rs6000/powerpc-32.c: Likewise.
6536         * features/rs6000/powerpc-32l.c: Likewise.
6537         * features/rs6000/powerpc-403.c: Likewise.
6538         * features/rs6000/powerpc-403gc.c: Likewise.
6539         * features/rs6000/powerpc-405.c: Likewise.
6540         * features/rs6000/powerpc-505.c: Likewise.
6541         * features/rs6000/powerpc-601.c: Likewise.
6542         * features/rs6000/powerpc-602.c: Likewise.
6543         * features/rs6000/powerpc-603.c: Likewise.
6544         * features/rs6000/powerpc-604.c: Likewise.
6545         * features/rs6000/powerpc-64.c: Likewise.
6546         * features/rs6000/powerpc-64l.c: Likewise.
6547         * features/rs6000/powerpc-750.c: Likewise.
6548         * features/rs6000/powerpc-860.c: Likewise.
6549         * features/rs6000/powerpc-e500.c: Likewise.
6550         * features/rs6000/powerpc-e500l.c: Likewise.
6551         * features/rs6000/powerpc-isa205-32l.c: Likewise.
6552         * features/rs6000/powerpc-isa205-64l.c: Likewise.
6553         * features/rs6000/rs6000.c: Likewise.
6554
6555 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
6556
6557         * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6558         variable.
6559         * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6560         reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6561         (stap_parse_argument) <e>: Likewise.
6562         (handle_stap_probe) <byte_order>: Likewise.
6563
6564 2012-04-30  Doug Evans  <dje@google.com>
6565
6566         * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6567         init_and_read_dies_worker.  All callers updated.
6568         (init_cu_and_read_dies, init_tu_and_read_dies): Delete.  All calls
6569         replaced with init_cutu_and_read_dies.
6570         (load_partial_comp_unit): Pass 1 for use_existing_cu.
6571         (find_partial_die): Remove FIXME.  Don't free current CU.
6572
6573 2012-04-30  Sterling Augustine  <saugustine@google.com>
6574
6575         * contrib: New directory.
6576         * contrib/test_pubnames_and_indexes.py: New file.
6577
6578 2012-04-30  Doug Evans  <dje@google.com>
6579
6580         * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6581         All callers updated.
6582         (init_cu_die_reader): Verify the section is non-empty.
6583         (dwarf_decode_line_header): Don't dereference section->asection
6584         until we know the section is present.
6585
6586 2012-04-29  Sergio Durigan Junior  <sergiodj@redhat.com>
6587
6588         * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6589         probes.
6590
6591 2012-04-29  Yao Qi  <yao@codesourcery.com>
6592
6593         * gdb-code-style.el: New hook gdb-markup-hook
6594         and gdb-comment-hook.
6595
6596 2012-04-28  Doug Evans  <dje@google.com>
6597
6598         Initial support for Fission.  http://gcc.gnu.org/wiki/DebugFission
6599         * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6600         objfile->obfd.
6601         * symfile.h (dwarf2_debug_sections): New member addr.
6602         * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6603         (ctx_no_get_addr_index): New function.
6604         * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6605         (ctx_no_get_addr_index): Declare.
6606         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6607         * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6608         (dwarf_expr_ctx_funcs): Update.
6609         (needs_get_addr_index): New function.
6610         (needs_frame_ctx_funcs): Update.
6611         * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6612         * dwarf2read.c: #include "gdbcore.h".
6613         (dwarf2_per_objfile): New members addr, dwo_files.
6614         (dwarf2_elf_names): Add entry for addr.
6615         (struct dwo_section_names): New type.
6616         (dwo_section_names): New static global.
6617         (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6618         (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6619         old debug_types_section member updated to use this.
6620         Rename member debug_types_section to info_or_types_section,
6621         all uses updated.
6622         (signatured_type): Rename member type_offset to type_offset_in_tu,
6623         all uses updated.  New member type_offset_in_section.
6624         (struct dwo_sections): New type.
6625         (struct dwo_unit): New type.
6626         (struct dwo_file): New type.
6627         (die_reader_specs): New member dwo_file.
6628         (dwarf2_locate_sections): Watch for .debug_addr.
6629         (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6630         (dwarf2_read_section): Get bfd of section from bfd's asection,
6631         instead of objfile.
6632         (create_cus_from_index): Initialize the_cu->info_or_types_section.
6633         (create_signatured_type_table_from_index): Initialize
6634         sig_type->info_or_types_section.
6635         (dw2_get_file_names): Statement lists for type units with DWO files
6636         live in the DWO file.
6637         (create_debug_types_hash_table): New function.
6638         (create_all_type_units): Rewrite.
6639         (init_cu_die_reader): New arg dwo_file, all callers updated.
6640         (init_and_read_dies_worker): Get section from
6641         this_cu->info_or_types_section.  Set sig_type->type_offset_in_section.
6642         Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6643         continue reading the CU/TU from there.
6644         (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6645         updated.  Get section from this_cu->info_or_types_section.
6646         (create_all_comp_units): Initialize this_cu->info_or_types_section.
6647         (skip_one_die): New cases DW_FORM_GNU_addr_index,
6648         DW_FORM_GNU_str_index.
6649         (hash_dwo_file, eq_dwo_file): New functions.
6650         (allocate_dwo_file_hash_table): New function.
6651         (hash_dwo_unit, eq_dwo_unit): New functions.
6652         (allocate_dwo_unit_table): New function.
6653         (dwarf2_locate_dwo_sections): New function.
6654         (struct create_dwo_info_table_data): New type.
6655         (create_debug_info_hash_table_reader): New function.
6656         (create_debug_info_hash_table): New function.
6657         (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6658         (lookup_dwo_file): New function.
6659         (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6660         (free_dwo_file, free_dwo_file_cleanup): New functions.
6661         (free_dwo_file_from_slot, free_dwo_files): New functions.
6662         (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6663         (dwarf2_record_block_ranges): Ditto.
6664         (read_partial_die): Ditto.
6665         (process_enumeration_scope): Update to use type_offset_in_section.
6666         (read_full_die_1): New function.
6667         (read_full_die): Rewrite.
6668         (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6669         DW_FORM_GNU_str_index.
6670         (read_addr_index_1, read_addr_index): New functions.
6671         (read_addr_index_from_leb128): New function.
6672         (struct dwarf2_read_addr_index_data): New type.
6673         (dwarf2_read_addr_index_reader): New function.
6674         (dwarf2_read_addr_index): New function.
6675         (read_str_index): New function.
6676         (leb128_size): New function.
6677         (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6678         If processing a type unit from a DWO file, get the line section
6679         from the DWO file.
6680         (var_decode_location): Watch for DW_OP_GNU_addr_index.
6681         (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6682         DW_FORM_GNU_str_index.
6683         (lookup_die_type): Check whether section offset of type's die is
6684         known before looking it up.  Remove assert.  Condition can
6685         legimately happen for inter-cu type references.
6686         (dwarf_attr_name): Handle Fission attributes.
6687         (dwarf_form_name): Handle Fission forms.
6688         (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6689         DW_FORM_GNU_str_index.
6690         (follow_die_sig): Update to use type_offset_in_section.
6691         (decode_locdesc): New case DW_OP_GNU_addr_index.
6692         (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6693         DW_FORM_GNU_str_index.
6694         (cu_debug_loc_section): New function.
6695         (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6696         (dwarf2_per_objfile_free): Unmap .debug_addr section.
6697         Free DWO files if present.
6698         * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6699
6700         Refactor DIE reading.
6701         * dwarf2read.c (dwarf2_per_objfile): Replace members
6702         debug_info_type_hash and debug_types_type_hash with die_type_hash.
6703         (die_reader_specs): New member "die_section".  Temporarily make
6704         member "buffer" non-const, pending constifying all info_ptr uses.
6705         (die_reader_func_ftype): New typedef.
6706         (dw2_get_file_names_reader): New function.
6707         (dw2_get_file_names): Rewrite.
6708         (read_and_check_type_unit_head): Rename arg type_offset to
6709         type_offset_in_tu.
6710         (create_all_type_units): Improve debugging message.
6711         Improve dummy type unit check.
6712         (init_cu_die_reader): New arg "section".  All callers updated.
6713         (init_and_read_dies_worker): New function.
6714         (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6715         (init_cutu_and_read_dies_no_follow): New function.
6716         (init_cutu_and_read_dies_simple): New function.
6717         (process_psymtab_comp_unit_reader): New function.
6718         (process_psymtab_comp_unit): Delete args section,
6719         is_debug_types_section.  Rewrite.  All callers updated.
6720         (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6721         All callers updated.  Rewrite.
6722         (load_partial_comp_unit_reader): New function.
6723         (load_partial_comp_unit): Rewrite.
6724         (skip_children): New arg reader.  Delete args buffer, cu.
6725         All callers updated.
6726         (skip_one_die): New arg reader.  Delete args buffer, cu.
6727         All callers updated.
6728         (locate_pdi_sibling): New arg reader.  Delete args buffer, abfd, cu.
6729         All callers updated.
6730         (load_full_comp_unit_reader): New function.
6731         (load_full_comp_unit): Rewrite.
6732         (read_comp_unit): Delete.
6733         (read_die_and_children_1): Delete, contents moved ...
6734         (read_die_and_children): ... here.
6735         (dwarf2_read_abbrevs): New arg abbrev_section.  All callers updated.
6736         (load_partial_dies): New arg reader.  Delete args abfd, buffer, cu.
6737         All callers updated.
6738         (read_partial_die): New arg reader.  Delete args abfd, buffer, cu.
6739         All callers updated.
6740         (find_partial_die): Rewrite load_all_dies support.
6741         (read_attribute_value): New arg reader.  Delete args abfd, cu.
6742         All callers updated.
6743         (read_attribute): New arg reader.  Delete args abfd, cu.
6744         All callers updated.
6745         (load_full_type_unit): Add assert.
6746         (read_signatured_type_reader): New function.
6747         (read_signatured_type): Rewrite.
6748         (free_stack_comp_unit): Remove call to age_cached_comp_units.
6749         (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6750         All callers updated.  Set per_cu->cu = NULL after freeing it.
6751         (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6752         (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6753         (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6754         (set_die_type): Update.
6755         (get_die_type_at_offset): Update.
6756         (read_file_scope): Call prepare_one_comp_unit.
6757         (read_type_unit_scope): Ditto.
6758         (prepare_one_comp_unit): Set producer if present.
6759
6760 2012-04-28  Sergio Durigan Junior  <sergiodj@redhat.com>
6761
6762         * probe.c (compile_rx_or_error): Silence ARI warning about missing
6763          gettext function on `error'.
6764
6765 2012-04-27  Doug Evans  <dje@google.com>
6766
6767         * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6768         is empty.
6769
6770 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6771             Tom Tromey  <tromey@redhat.com>
6772
6773         * breakpoint.c (struct breakpoint_objfile_data)
6774         <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6775         <exception_probes>: New fields.
6776         (free_breakpoint_probes): New function.
6777         (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6778         `_Unwind_DebugHook'.
6779         (create_exception_master_breakpoint): Likewise.
6780         (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6781         * infrun.c: Including necessary header files for handling SystemTap
6782         probes.
6783         (handle_inferior_event): Handling longjmp breakpoint and exceptions
6784         via SystemTap probes.
6785         (check_exception_resume): Remove `func' argument.  Handle exception
6786         unwinding breakpoint set via a SystemTap probe.
6787         (insert_exception_resume_from_probe): New function.
6788
6789 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6790             Tom Tromey  <tromey@redhat.com>
6791             Jan Kratochvil  <jan.kratochvil@redhat.com>
6792
6793         * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6794         (COMMON_OBS): Likewise.
6795         (HFILES_NO_SRCDIR): Add `probe'.
6796         * NEWS: Mention support for static and SystemTap probes.
6797         * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6798         SystemTap probes' arguments parser.
6799         * arm-linux-tdep.c: Including headers needed to perform the parsing
6800         of SystemTap probes' arguments.
6801         (arm_stap_is_single_operand): New function.
6802         (arm_stap_parse_special_token): Likewise.
6803         (arm_linux_init_abi): Initializing proper fields used by SystemTap
6804         probes' arguments parser.
6805         * ax-gdb.c (require_rvalue): Removing static declaration.
6806         (gen_expr): Likewise.
6807         * ax-gdb.h (gen_expr): Declaring function.
6808         (require_rvalue): Likewise.
6809         * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6810         (bkpt_probe_breakpoint_ops): New variable.
6811         (momentary_breakpoint_from_master): Set the `probe' value.
6812         (add_location_to_breakpoint): Likewise.
6813         (break_command_1): Using proper breakpoint_ops according to the
6814         argument passed by the user in the command line.
6815         (bkpt_probe_insert_location): New function.
6816         (bkpt_probe_remove_location): Likewise.
6817         (bkpt_probe_create_sals_from_address): Likewise.
6818         (bkpt_probe_decode_linespec): Likewise.
6819         (tracepoint_probe_create_sals_from_address): Likewise.
6820         (tracepoint_probe_decode_linespec): Likewise.
6821         (tracepoint_probe_breakpoint_ops): New variable.
6822         (trace_command): Using proper breakpoint_ops according to the
6823         argument passed by the user in the command line.
6824         (initialize_breakpoint_ops): Initializing breakpoint_ops for
6825         static probes on breakpoints and tracepoints.
6826         * breakpoint.h (struct bp_location) <probe>: New field.
6827         * cli-utils.c (skip_spaces_const): New function.
6828         (extract_arg): Likewise.
6829         * cli-utils.h (skip_spaces_const): Likewise.
6830         (extract_arg): Likewise.
6831         * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6832         * configure.ac: Append `stap-probe.o' to be generated when ELF
6833         support is present.
6834         * configure: Regenerate.
6835         * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6836         * elfread.c: Include `probe.h' and `arch-utils.h'.
6837         (probe_key): New variable.
6838         (elf_get_probes): New function.
6839         (elf_get_probe_argument_count): Likewise.
6840         (elf_evaluate_probe_argument): Likewise.
6841         (elf_compile_to_ax): Likewise.
6842         (elf_symfile_relocate_probe): Likewise.
6843         (stap_probe_key_free): Likewise.
6844         (elf_probe_fns): New variable.
6845         (elf_sym_fns): Add `sym_probe_fns' value.
6846         (elf_sym_fns_lazy_psyms): Likewise.
6847         (elf_sym_fns_gdb_index): Likewise.
6848         (_initialize_elfread): Initialize objfile cache for static
6849         probes.
6850         * gdb_vecs.h (struct probe): New forward declaration.
6851         (probe_p): New VEC declaration.
6852         * gdbarch.c: Regenerate.
6853         * gdbarch.h: Regenerate.
6854         * gdbarch.sh (stap_integer_prefix): New variable.
6855         (stap_integer_suffix): Likewise.
6856         (stap_register_prefix): Likewise.
6857         (stap_register_suffix): Likewise.
6858         (stap_register_indirection_prefix): Likewise.
6859         (stap_register_indirection_suffix): Likewise.
6860         (stap_gdb_register_prefix): Likewise.
6861         (stap_gdb_register_suffix): Likewise.
6862         (stap_is_single_operand): New function.
6863         (stap_parse_special_token): Likewise.
6864         (struct stap_parse_info): Forward declaration.
6865         * i386-tdep.c: Including headers needed to perform the parsing
6866         of SystemTap probes' arguments.
6867         (i386_stap_is_single_operand): New function.
6868         (i386_stap_parse_special_token): Likewise.
6869         (i386_elf_init_abi): Initializing proper fields used by SystemTap
6870         probes' arguments parser.
6871         * i386-tdep.h (i386_stap_is_single_operand): New function.
6872         (i386_stap_parse_special_token): Likewise.
6873         * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6874         * mipsread.c (ecoff_sym_fns): Likewise.
6875         * objfiles.c (objfile_relocate1): Support relocation for static
6876         probes.
6877         * parse.c (prefixify_expression): Remove static declaration.
6878         (initialize_expout): Likewise.
6879         (reallocate_expout): Likewise.
6880         * parser-defs.h (initialize_expout): Declare function.
6881         (reallocate_expout): Likewise.
6882         (prefixify_expression): Likewise.
6883         * ppc-linux-tdep.c: Including headers needed to perform the parsing
6884         of SystemTap probes' arguments.
6885         (ppc_stap_is_single_operand): New function.
6886         (ppc_stap_parse_special_token): Likewise.
6887         (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6888         probes' arguments parser.
6889         * probe.c: New file, for generic statically defined probe support.
6890         * probe.h: Likewise.
6891         * s390-tdep.c: Including headers needed to perform the parsing of
6892         SystemTap probes' arguments.
6893         (s390_stap_is_single_operand): New function.
6894         (s390_gdbarch_init): Initializing proper fields used by SystemTap
6895         probes' arguments parser.
6896         * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6897         * stap-probe.c: New file, for SystemTap probe support.
6898         * stap-probe.h: Likewise.
6899         * symfile.h: Include `gdb_vecs.h'.
6900         (struct sym_probe_fns): New struct.
6901         (struct sym_fns) <sym_probe_fns>: New field.
6902         * symtab.c (init_sal): Initialize `probe' field.
6903         * symtab.h (struct probe): Forward declaration.
6904         (struct symtab_and_line) <probe>: New field.
6905         * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6906         locations.
6907         (stop_tracing): Likewise.
6908         * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6909
6910 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6911             Tom Tromey  <tromey@redhat.com>
6912
6913         * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6914         and to compile agent expressions.
6915         * infrun.c (siginfo_make_value): New argument `ignore'.
6916         (siginfo_funcs): New struct.
6917         (_initialize_infrun): New argument when calling
6918         `create_internalvar_type_lazy'.
6919         * thread.c (thread_id_make_value): New argument `ignore'.
6920         (thread_funcs): New struct.
6921         (_initialize_thread): New argument when calling
6922         `create_internalvar_type_lazy'.
6923         * tracepoint.c (sdata_make_value): New argument `ignore'.
6924         (sdata_funcs): New struct.
6925         (_initialize_tracepoint): New argument when calling
6926         `create_internalvar_type_lazy'.
6927         * value.c (make_value): New struct.
6928         (create_internalvar_type_lazy): New argument `data'.
6929         (compile_internalvar_to_ax): New function.
6930         (value_of_internalvar): Properly handling `make_value' case.
6931         (clear_internalvar): Likewise.
6932         (show_convenience): Adding `TRY_CATCH' block.
6933         * value.h (internalvar_make_value): Delete, replace by...
6934         (struct internalvar_funcs): ... this.
6935         (create_internalvar_type_lazy) <fun>: Delete argument.
6936         (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6937         (compile_internalvar_to_ax): New function.
6938         * windows-tdep.c (tlb_make_value): New argument `ignore'.
6939         (tlb_funcs): New struct.
6940         (_initialize_windows_tdep): New argument when calling
6941         `create_internalvar_type_lazy'.
6942
6943 2012-04-27  Mark Wielaard  <mjw@redhat.com>
6944
6945         * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6946         see whether it is an address or a constant offset from DW_AT_low_pc.
6947         (dwarf2_record_block_ranges): Likewise.
6948         (read_partial_die): Likewise.
6949
6950 2012-04-26  Mark Wielaard  <mjw@redhat.com>
6951
6952         * MAINTAINERS (Write After Approval): Add myself to the list.
6953
6954 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
6955
6956         * proc-utils.h (proc_prettyprint_signalset): New prototype.
6957         (proc_prettyprint_signal): Likewise.
6958         (proc_prettyprint_faultset): Likewise.
6959         (proc_prettyprint_fault): Likewise.
6960         (proc_prettyprint_actionset): Likewise.
6961         (proc_prettyprint_flags): Move to new proc-flags.c section.
6962         (proc_prettyfprint_flags): New prototype.
6963         * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6964         (proc_syscall, proc_cursig): Likewise.
6965         (proc_set_kill_on_last_close): Likewise.
6966         (proc_unset_kill_on_last_close): Likewise.
6967         (proc_set_watchpoint): Make static.
6968         (proc_delete_dead_threads): Likewise.
6969         (procfs_set_watchpoint): Likewise.
6970         (_initialize_procfs): Add prototype.
6971         * proc-events.c: Include proc-utils.h.
6972         (init_syscall_table): Make static.
6973         * proc-api.c (_initialize_proc_api): Add prototype.
6974         * proc-flags.c: Include proc-utils.h.
6975
6976 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
6977
6978         * configure.ac: Add AC_ARG_PROGRAM.
6979         * configure: Regenerate.
6980
6981 2012-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6982
6983         Fix DW_AT_lower_bound defaults for DWARF-4+.
6984         * dwarf2read.c (read_subrange_type): Remove initialization of low and
6985         high.  New variable low_default_is_valid.  Implement DWARF-4+
6986         DW_AT_lower_bound defaults.  Print complaint for DW_AT_lower_bound with
6987         no default by the DWARF standard.
6988
6989 2012-04-26  Maciej W. Rozycki  <macro@mips.com>
6990             Maciej W. Rozycki  <macro@codesourcery.com>
6991
6992         * infrun.c (handle_inferior_event): Move the check for return
6993         trampolines ahead of the check for function trampolines.
6994         * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6995         * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6996         (mips_str_mips16_ret_stub): Likewise.
6997         (mips_str_call_fp_stub): Likewise.
6998         (mips_str_call_stub): Likewise.
6999         (mips_str_fn_stub): Likewise.
7000         (mips_str_pic): Likewise.
7001         (mips_in_frame_stub): New function.
7002         (mips_unwind_pc): Return the return address rather than the PC
7003         if the PC of an intermediate frame is inside a call thunk.
7004         (mips_is_stub_suffix): New function.
7005         (mips_is_stub_mode): Likewise.
7006         (mips_get_mips16_fn_stub_pc): Likewise.
7007         (mips_skip_mips16_trampoline_code): Update to handle all the
7008         currently generated stub types.  Don't recurse into __fn_stub
7009         thunks.  Remove heuristics to handle stubs beyond etext/_etext.
7010         Use cooked register accesses.
7011         (mips_in_return_stub): Reintroduce function.
7012         (mips_skip_trampoline_code): Traverse trampolines recursively.
7013         (mips_gdbarch_init): Handle MIPS16 return trampolines.
7014
7015 2012-04-26  Joel Brobecker  <brobecker@adacore.com>
7016
7017         GDB 7.4.1 released.
7018
7019 2012-04-26  Jonathan Larmour  <jifl@eCosCentric.com>
7020
7021         * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7022         * features/arm-with-m-vfp-d16.xml: New file. Describes
7023         Cortex-M with VFPv4-sp-d16 FPU register layout.
7024         * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7025         * features/arm-with-m-vfp-d16.c: New. Generated from above.
7026         * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7027         (arm-register_g_packet_guesses): Add vfp-d16 guess.
7028         (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7029
7030 2012-04-25  Doug Evans  <dje@google.com>
7031
7032         * cli/cli-decode.c (print_doc_line): Use stream instead of
7033         current_uiout.
7034
7035 2012-04-25  Sergio Durigan Junior  <sergiodj@redhat.com>
7036
7037         * features/arm-with-iwmmxt.c: Regenerate.
7038         * features/arm-with-m-fpa-layout.c: Likewise.
7039         * features/arm-with-m.c: Likewise.
7040         * features/arm-with-neon.c: Likewise.
7041         * features/arm-with-vfpv2.c: Likewise.
7042         * features/arm-with-vfpv3.c: Likewise.
7043         * features/mips-dsp-linux.c: Likewise.
7044         * features/mips-linux.c: Likewise.
7045         * features/mips64-dsp-linux.c: Likewise.
7046         * features/mips64-linux.c: Likewise.
7047         * features/s390-linux32.c: Likewise.
7048         * features/s390-linux32v1.c: Likewise.
7049         * features/s390-linux32v2.c: Likewise.
7050         * features/s390-linux64.c: Likewise.
7051         * features/s390-linux64v1.c: Likewise.
7052         * features/s390-linux64v2.c: Likewise.
7053         * features/s390x-linux64.c: Likewise.
7054         * features/s390x-linux64v1.c: Likewise.
7055         * features/s390x-linux64v2.c: Likewise.
7056         * features/tic6x-c62x-linux.c: Likewise.
7057         * features/tic6x-c62x.c: Likewise.
7058         * features/tic6x-c64x-linux.c: Likewise.
7059         * features/tic6x-c64x.c: Likewise.
7060         * features/tic6x-c64xp-linux.c: Likewise.
7061         * features/tic6x-c64xp.c: Likewise.
7062         * target-descriptions.c: Only generate `field_type' and `type'
7063         variables when needed.
7064
7065 2012-04-25  Fredrik Hederstierna  <fredrikh.hederstierna@securitas-direct.com>
7066
7067         * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7068
7069 2012-04-25  Doug Evans  <dje@google.com>
7070
7071         Initial pass at Go language support.
7072         * NEWS: Mention Go.
7073         * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7074         go-valprint.c.
7075         (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7076         (YYFILES): Add go-exp.c.
7077         (YYOBJ): Add go-exp.o.
7078         (local-maintainer-clean): Delete go-exp.c.
7079         * defs.h (enum language): Add language_go.
7080         * dwarf2read.c: #include "go-lang.h".
7081         (fixup_go_packaging): New function.
7082         (process_full_comp_unit): Call it when processing Go CUs.
7083         (dwarf2_physname): Add Go support.
7084         (read_file_scope): Handle missing language spec for GNU Go.
7085         (set_cu_language): Handle DW_LANG_Go.
7086         * go-exp.y: New file.
7087         * go-lang.h: New file.
7088         * go-lang.c: New file.
7089         * go-typeprint.c: New file.
7090         * go-valprint.c: New file.
7091         * symtab.c: #include "go-lang.h".
7092         (symbol_set_language): Handle language_go.
7093         (symbol_find_demangled_name, symbol_set_names): Ditto.
7094         (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7095
7096 2012-04-24  Jim Meyering  <meyering@redhat.com>
7097
7098         avoid a few strncpy-induced buffer overruns
7099         * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7100         fname and psargs before trying to concatenate.
7101         * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7102         "name" before applying strchr.
7103
7104 2012-04-25  Siva Chandra Reddy  <sivachandra@google.com>
7105
7106         * CONTRIBUTE: Use unified diff instead of context diff when
7107         generating patches.
7108
7109 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
7110
7111         * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7112         code.  Handle JR.HB correctly.
7113
7114 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
7115
7116         * mips-tdep.c
7117         (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7118         with the other MIPS16 helpers.
7119
7120 2012-04-24  Sergio Durigan Junior  <sergiodj@redhat.com>
7121
7122         * observer.sh: Conditionally declare `args', thus cleaning up
7123         unused instances of this variable.
7124
7125 2012-04-24  Yao Qi  <yao@codesourcery.com>
7126
7127         Revert this patch to allow breakpoint always-inserted
7128         in record target.
7129         2011-12-05  Pedro Alves  <pedro@codesourcery.com>
7130         * breakpoint.c: Include record.h.
7131         (breakpoints_always_inserted_mode): Return false when the record
7132         target is in use.
7133
7134         * breakpoint.c (iterate_over_bp_locations): New.
7135         * breakpoint.h: Declare.
7136         New typedef walk_bp_location_callback.
7137         * record.c (record_open): Call record_init_record_breakpoints.
7138         (record_sync_record_breakpoints): New.
7139         (record_init_record_breakpoints): New.
7140         * NEWS: Mention supporting breakpoint always-inserted mode in
7141         record target.
7142
7143 2012-04-24  Marc Khouzam  <marc.khouzam@ericsson.com>
7144
7145         * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7146         any thread.
7147
7148 2012-04-24  Yao Qi  <yao@codesourcery.com>
7149
7150         * breakpoint.c (ep_is_catchpoint): Renamed to ...
7151         (is_catchpoint): ... it.
7152         (print_one_breakpoint_location): Caller update.
7153         * breakpoint.h: Update declaration.
7154
7155 2012-04-23  David S. Miller  <davem@davemloft.net>
7156
7157         * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7158
7159 2012-04-23  Tom Tromey  <tromey@redhat.com>
7160
7161         * buildsym.c (add_free_pendings): Remove.
7162         * buildsym.h (add_free_pendings): Remove.
7163
7164 2012-04-23  Doug Evans  <dje@google.com>
7165
7166         * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7167         attr.u.unsnd instead of attr.u.addr.
7168         (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7169         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7170         DW_FORM_ref_udata.
7171         (dump_die_shallow): Update cases DW_FORM_ref_addr,
7172         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4.  Add cases DW_FORM_ref8,
7173         DW_FORM_ref_udata.
7174         (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7175
7176 2012-04-23  Maciej W. Rozycki  <macro@codesourcery.com>
7177
7178         * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7179         (mips_o32_return_value): Likewise.
7180         (mips_o64_return_value): Likewise.
7181
7182 2012-04-21  Paul Hilfinger  <hilfinger@adacore.com>
7183
7184         * ada-lang.c (ada_evaluate_subexp): Add cases for
7185         TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7186         their treatment in eval.c.
7187
7188 2012-04-21  David S. Miller  <davem@davemloft.net>
7189
7190         * sparc-tdep.c (X_DISP10): Define.
7191         (sparc_analyze_control_transfer): Handle compare-and-branch.
7192
7193 2012-04-21  Jonathan Larmour  <jifl@eCosCentric.com>
7194
7195         * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7196         * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7197
7198 2012-04-20  Nigel Stephens  <nigel@mips.com>
7199             Maciej W. Rozycki  <macro@codesourcery.com>
7200
7201         * mips-tdep.c (mips_float_register_p): New function.
7202         (mips_convert_register_float_case_p): Use mips_float_register_p.
7203         (mips_register_type): Likewise.
7204         (mips_print_register): Likewise.
7205         (print_gp_register_row): Likewise.
7206         (mips_print_registers_info): Likewise.
7207
7208 2012-04-20  Shun-Yen Lu  <dark.asparagus@gmail.com>
7209
7210         * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7211         of mips16 symbols.
7212
7213 2012-04-20  Andrew Pinski  <apinski@cavium.com>
7214
7215         * MAINTAINERS (Write After Approval): Add myself to the list.
7216
7217 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
7218
7219         * MAINTAINERS: Update my e-mail address.
7220
7221 2012-04-20  Pedro Alves  <palves@redhat.com>
7222
7223         * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7224         $srcdir.
7225         * configure: Regenerate.
7226
7227 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
7228
7229         * cp-support.h: Include `gdb_vecs.h'.  Delete `const_char_ptr' VEC
7230         declaration.
7231         * gdb_vecs.h: Declare `const_char_ptr' VEC.
7232
7233 2012-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
7234
7235         Fix compilation compatibility with python-2.4
7236         * python/py-type.c (convert_field): Cast ADDRSTRING for
7237         PyObject_SetAttrString as non-const.  New comment.
7238
7239 2012-04-19  Tom Tromey  <tromey@redhat.com>
7240
7241         * top.c (quit_target): Use all_cleanups.
7242         * main.c (captured_command_loop): Use all_cleanups.
7243         * exceptions.c (throw_exception): Use all_cleanups.
7244
7245 2012-04-19  Pedro Alves  <palves@redhat.com>
7246
7247         * Makefile.in (GNULIB_BUILDDIR): New.
7248         (LIBGNU, INCGNU, GNULIB_H): Adjust.
7249         (SUBDIRS): Add $(GNULIB_BUILDDIR).
7250         (CLEANDIRS). Remove gnulib/import.
7251         (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7252         (all-lib): Ditto.
7253         (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7254         (gnulib/import/Makefile): Replace gnulib/import with
7255         $(GNULIB_BUILDDIR).  Set CONFIG_FILES to just Makefile.
7256         (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7257         (aclocal_m4_deps): Remove the gnulib dependencies.  Add
7258         acx_configure_dir.m4.
7259         * acinclude.m4: Include acx_configure_dir.m4.
7260         * acx_configure_dir.m4: New file.
7261         * aclocal.m4: Regenerate.
7262         * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
7263         calls.  Configure gnulib using ACX_CONFIGURE_DIR.
7264         (GNULIB): New variable.
7265         (GNULIB_STDINT_H): Adjust.
7266         (AC_OUTPUT): Don't output gnulib/Makefile.
7267         * gdb/defs.h: Include build-gnulib/config.h.
7268         * aclocal.m4: Regenerate.
7269         * config.in: Regenerate.
7270         * configure: Regenerate.
7271
7272         * gnulib/Makefile.in: New file.
7273         * gnulib/configure.ac: New file.
7274         * gnulib/aclocal.m4: New file.
7275         * gnulib/config.in: New file.
7276         * gnulib/configure: New file.
7277         * gnulib/: Re-run gnulib-tool to adjust.
7278
7279 2012-04-19  Doug Evans  <dje@google.com>
7280
7281         * cleanups.h (struct cleanup): Move to cleanups.c.
7282         (make_cleanup_dtor_ftype): New typedef.
7283         (make_cleanup_dtor): Use it.
7284         (ALL_CLEANUPS): Replace with ...
7285         (all_cleanups): ... this.  Declare.  All uses updated.
7286         * cleanups.c: #include "gdb_assert.h".
7287         (sentinel_cleanup): New static global.
7288         (SENTINEL_CLEANUP): Define.
7289         (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
7290         (make_my_cleanup2): Assert result is non-NULL.
7291         (all_cleanups): New function.
7292         (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
7293         of NULL.
7294
7295 2012-04-19  Pedro Alves  <palves@redhat.com>
7296
7297         * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
7298         Adjust paths to gnulib imported files.
7299
7300 2012-04-19  Pedro Alves  <palves@redhat.com>
7301
7302         * gnulib/: Move whole directory ...
7303         * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
7304         * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
7305         (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
7306         (aclocal_m4_deps): Adjust.
7307         * aclocal.m4: Regenerate.
7308         * configure: Regenerate.
7309         * configure.ac: Adjust AC_OUTPUT output.
7310
7311 2012-04-19  Yao Qi  <yao@codesourcery.com>
7312
7313         * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
7314         (vec.o): New rule.
7315         * vec.c: Move it ...
7316         * common/vec.c: ... here.
7317         * vec.h: Move it ...
7318         * common/vec.h: ... here.
7319
7320 2012-04-19  Yao Qi  <yao@codesourcery.com>
7321
7322         * gdb-code-style.el: New.
7323
7324 2012-04-18  Pedro Alves  <palves@redhat.com>
7325
7326         Update gnulib from latest git.
7327         (639ea5ae15e39fe48d43e04864b2997301e4b969)
7328
7329         * gnulib/Makefile.am: Update.
7330         * gnulib/dummy.c: Update.
7331         * gnulib/extra/arg-nonnull.h: Update.
7332         * gnulib/extra/c++defs.h: Update.
7333         * gnulib/extra/update-copyright: Update.
7334         * gnulib/extra/warn-on-use.h: Update.
7335         * gnulib/inttypes.in.h: Update.
7336         * gnulib/m4/00gnulib.m4: Update.
7337         * gnulib/m4/extensions.m4: Update.
7338         * gnulib/m4/gnulib-cache.m4: Update.
7339         * gnulib/m4/gnulib-common.m4: Update.
7340         * gnulib/m4/gnulib-comp.m4: Update.
7341         * gnulib/m4/gnulib-tool.m4: Update.
7342         * gnulib/m4/include_next.m4: Update.
7343         * gnulib/m4/inttypes-pri.m4: Update.
7344         * gnulib/m4/inttypes.m4: Update.
7345         * gnulib/m4/longlong.m4: Update.
7346         * gnulib/m4/memchr.m4: Update.
7347         * gnulib/m4/memmem.m4: Update.
7348         * gnulib/m4/mmap-anon.m4: Update.
7349         * gnulib/m4/multiarch.m4: Update.
7350         * gnulib/m4/onceonly.m4: Update.
7351         * gnulib/m4/stddef_h.m4: Update.
7352         * gnulib/m4/stdint.m4: Update.
7353         * gnulib/m4/string_h.m4: Update.
7354         * gnulib/m4/warn-on-use.m4: Update.
7355         * gnulib/m4/wchar_h.m4: Update.
7356         * gnulib/m4/wchar_t.m4: Update.
7357         * gnulib/m4/wint_t.m4: Update.
7358         * gnulib/memchr.c: Update.
7359         * gnulib/memmem.c: Update.
7360         * gnulib/stddef.in.h: Update.
7361         * gnulib/stdint.in.h: Update.
7362         * gnulib/str-two-way.h: Update.
7363         * gnulib/string.in.h: Update.
7364         * gnulib/wchar.in.h: Update.
7365
7366         * gnulib/extra/arg-nonnull.h: Delete.
7367         * gnulib/extra/c++defs.h: Delete.
7368         * gnulib/extra/warn-on-use.h: Delete.
7369         * gnulib/m4/wchar_h.m4: Delete.
7370         * gnulib/m4/wint_t.m4: Delete.
7371         * gnulib/wchar.in.h: Delete.
7372
7373         * gnulib/extra/snippets/arg-nonnull.h: New.
7374         * gnulib/extra/snippets/c++defs.h: New.
7375         * gnulib/extra/snippets/warn-on-use.h: New.
7376
7377         * aclocal.m4: Regenerate.
7378         * config.in: Regenerate.
7379         * configure: Regenerate.
7380         * gnulib/Makefile.in: Regenerate.
7381
7382 2012-04-18  Pedro Alves  <palves@redhat.com>
7383
7384         Reimport the update-copyright module from gnulib
7385         (250b80067c1e1d8faa0c42fb572f721975b929c5).
7386
7387         * configure: Regenerate.
7388         * gnulib/Makefile.am: Update.
7389         * gnulib/Makefile.in: Regenerate.
7390         * gnulib/extra/update-copyright: Update.
7391         * gnulib/m4/gnulib-cache.m4: Update.
7392         * gnulib/m4/gnulib-comp.m4: Update.
7393
7394 2012-04-18  Tristan Gingold  <gingold@adacore.com>
7395
7396         * configure.ac (aix): Put -lpthread into libs.
7397         * configure: Regenerate.
7398
7399 2012-04-18  Tom Tromey  <tromey@redhat.com>
7400
7401         * linespec.c (convert_linespec_to_sals): Don't use
7402         SYMBOL_OBJ_SECTION.
7403         (compare_msymbols): Arguments are minsym_and_objfile, not
7404         minimal_symbol*.  Don't use SYMBOL_OBJ_SECTION.
7405
7406 2012-04-18  Pedro Alves  <palves@redhat.com>
7407
7408         Revert gnulib/ part of:
7409         2011-01-01  Joel Brobecker  <brobecker@adacore.com>
7410         Copyright year update in most files (performed by copyright.sh).
7411
7412 2012-04-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
7413
7414         Fix 64-bit constants on 32-bit hosts.
7415         * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7416         from unsigned long to ULONGEST.
7417         (read_signed_leb128): Change declaration return type from long to
7418         LONGEST.
7419         (dwarf2_const_value_attr): Change declaration parameter value from long
7420         to LONGEST.
7421         (dwarf2_compute_name): Change variable value from long to LONGEST.
7422         (read_unsigned_leb128): Change return type, variable result and some
7423         casts from unsigned long to ULONGEST.
7424         (read_signed_leb128): Change return type, variable result and some
7425         casts from long to LONGEST.
7426         (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7427         value from long to LONGEST.
7428         (dwarf2_const_value): Change variable value from long to LONGEST.
7429         * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7430         plongest and hex_string.
7431         * symtab.h (struct general_symbol_info): Change ivalue from long to
7432         LONGEST, remove the comment.
7433         * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7434         Change SYMBOL_VALUE format strings to use plongest and hex_string.
7435
7436 2012-04-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
7437
7438         PR symtab/7259:
7439         * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7440         * ada-lang.c (ada_discrete_type_high_bound)
7441         (ada_discrete_type_low_bound): Fix function comment.  Use
7442         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7443         (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7444         (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7445         * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7446         Use TYPE_FIELD_ENUMVAL.
7447         * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7448         (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7449         * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7450         block, change it to LONGEST.  Use TYPE_FIELD_ENUMVAL for
7451         TYPE_CODE_ENUM.
7452         * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7453         * dwarf2read.c (process_enumeration_scope): Likewise.
7454         * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7455         field.bitpos.
7456         (class StructMainTypePrettyPrinter): Support also
7457         FIELD_LOC_KIND_ENUMVAL.
7458         * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7459         TYPE_CODE_ENUM.
7460         (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7461         (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7462         * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7463         (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment.  New
7464         field enumval.
7465         (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7466         accommodate enumval.
7467         (struct call_site): Adjust loc_kind to accommodate enumval.
7468         (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7469         (TYPE_FIELD_ENUMVAL): New macros.
7470         * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7471         * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7472         TYPE_CODE_ENUM.
7473         * p-typeprint.c (pascal_type_print_base): Likewise.
7474         * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7475         enumval.
7476         * python/lib/gdb/types.py (make_enum_dict): Likewise.
7477         * python/py-type.c (convert_field): New variable addrstring.  Use
7478         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7479         (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7480         * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7481         * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7482         TYPE_CODE_ENUM.
7483         * valprint.c (generic_val_print): Likewise.
7484
7485 2012-04-17  Doug Evans  <dje@google.com>
7486
7487         * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7488
7489         * dwarf2read.c: Whitespace fixes.
7490         (lookup_signatured_type): Tweak comment.
7491         (get_die_type_at_offset): Fix comment.
7492
7493 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
7494
7495         * xcoffread.c (xcoff_secnum_to_sections): New function.
7496         (secnum_to_section, secnum_to_bfd_section): Reimplement
7497         using xcoff_secnum_to_sections.  Rename "secnum" parameter
7498         into "n_scnum".
7499         (RECORD_MINIMAL_SYMBOL): Delete.
7500         (record_minimal_symbol): New function.
7501         (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7502         by call to record_minimal_symbol and set misc_func_recorded
7503         to 1.  Set last_csect_sec to the XCOFF section index instead
7504         of GDB's section_offset index.  Update calls to
7505         prim_record_minimal_symbol_and_info to pass the BFD section
7506         as well.
7507
7508 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
7509
7510         * xcoffread.c (read_xcoff_symtab): Delete variables
7511         last_csect_val and last_csect_sec and associated code.
7512
7513 2012-04-17  Doug Evans  <dje@google.com>
7514
7515         * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7516         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7517         * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7518         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7519
7520         * cleanups.h: New file.
7521         * cleanups.c: New file.
7522         * Makefile.in (SFILES): Add cleanups.c.
7523         (HFILES_NO_SRCDIR): Add cleanups.h.
7524         (COMMON_OBS): Add cleanups.o.
7525         * defs.h (struct cleanup): Moved to cleanups.h.
7526         (do_cleanups,do_final_cleanups): Ditto.
7527         (discard_cleanups,discard_final_cleanups): Ditto
7528         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7529         (save_cleanups,save_final_cleanups): Ditto.
7530         (restore_cleanups,restore_final_cleanups): Ditto.
7531         (null_cleanup): Ditto.
7532         (make_my_cleanup,make_my_cleanup2): Ditto.
7533         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7534         * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7535         (do_cleanups,do_final_cleanups): Ditto.
7536         (discard_cleanups,discard_final_cleanups): Ditto
7537         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7538         (save_cleanups,save_final_cleanups): Ditto.
7539         (restore_cleanups,restore_final_cleanups): Ditto.
7540         (null_cleanup): Ditto.
7541         (make_my_cleanup,make_my_cleanup2): Ditto.
7542         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7543
7544         * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7545         make_my_cleanup.
7546         (make_cleanup_dyn_string_delete): Ditto.
7547         (make_cleanup_ui_file_delete): Ditto.
7548         (make_cleanup_ui_out_redirect_pop): Ditto.
7549         (make_cleanup_free_section_addr_info): Ditto.
7550         (make_cleanup_restore_integer): Ditto.
7551         (make_cleanup_unpush_target): Ditto.
7552         (make_cleanup_value_free_to_mark): Ditto.
7553         (make_cleanup_value_free): Ditto.
7554         (make_cleanup_free_so): Ditto.
7555
7556 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7557
7558         New option "set debug auto-load".
7559         * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7560         * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7561         (auto_load_safe_path_vec_update)
7562         (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7563         if DEBUG_AUTO_LOAD.
7564         (file_is_auto_load_safe): New parameters debug_fmt and ....
7565         Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7566         (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7567         caller by explanatory string.
7568         (_initialize_auto_load): Register "set debug auto-load".
7569         * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7570         and ....
7571         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7572         (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7573         by explanatory string.
7574         * main.c (captured_main): Likewise.
7575         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7576         (source_section_scripts): Likewise.
7577
7578 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7579
7580         New option "set auto-load safe-path".
7581         * NEWS: New commands "set auto-load safe-path"
7582         and "show auto-load safe-path".
7583         * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7584         (auto_load_safe_path, auto_load_safe_path_vec)
7585         (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7586         (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7587         (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7588         (source_gdb_script_for_objfile): New variable is_safe.  Call
7589         file_is_auto_load_safe.  Return if it is not.
7590         (struct loaded_script): New field loaded.
7591         (maybe_add_script): Add parameter loaded.  Initialize SLOT with it.
7592         (print_script): Use LOADED indicator instead of FULL_PATH.  Change
7593         output "Missing" to "No".
7594         (_initialize_auto_load): New variable cmd.  Initialize
7595         auto_load_safe_path.  Register "set auto-load safe-path",
7596         "show auto-load safe-path" and "add-auto-load-safe-path".
7597         * auto-load.h (maybe_add_script): Add parameter loaded.
7598         (file_is_auto_load_safe): New declaration.
7599         * config.in: Regenerate.
7600         * configure: Regenerate.
7601         * configure.ac: New parameters --with-auto-load-safe-path
7602         and --without-auto-load-safe-path.
7603         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7604         (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7605         * main.c (captured_main): Check file_is_auto_load_safe for
7606         LOCAL_GDBINIT.
7607         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7608         variable is_safe.  Call file_is_auto_load_safe.  Return if it is not.
7609         (source_section_scripts): Call file_is_auto_load_safe.  Return if it is
7610         not.
7611
7612 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7613
7614         auto-load: Implementation.
7615         * NEWS: New descriptions for "info auto-load",
7616         "info auto-load gdb-scripts", "info auto-load python-scripts",
7617         "info auto-load local-gdbinit" and "info auto-load libthread-db".
7618         Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7619         and "show auto-load-scripts".  New description for "set auto-load",
7620         "show auto-load", "set auto-load gdb-scripts",
7621         "show auto-load gdb-scripts", "set auto-load python-scripts",
7622         "show auto-load python-scripts", "set auto-load local-gdbinit",
7623         "show auto-load local-gdbinit", "set auto-load libthread-db" and
7624         "show auto-load libthread-db".
7625         * auto-load.c: Remove include python/python-internal.h.  Add includes
7626         exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7627         cli/cli-setshow.h.
7628         (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7629         (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7630         (gdbpy_global_auto_load): Rename to ...
7631         (global_auto_load): ... here.
7632         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7633         (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7634         (script_language_gdb, source_gdb_script_for_objfile): New.
7635         (struct loaded_script): New field language.
7636         (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7637         LANGUAGE.
7638         (maybe_add_script): Add parameter language.  Drop redundant
7639         entry.full_path initialization.  Initialize entry.language and
7640         (*slot)->language.
7641         (auto_load_objfile_script): Change parameter suffix to language.
7642         Remove the call of maybe_add_script.
7643         Call language->source_script_for_objfile.
7644         (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7645         New.
7646         (collect_matching_scripts): Adjust it for
7647         struct collect_matching_scripts_data.
7648         (auto_load_info_scripts_pattern_nl): New variable.
7649         (info_auto_load_scripts): Rename to ...
7650         (auto_load_info_scripts): ... here, add parameter language.  Adjust it
7651         for struct collect_matching_scripts_data.
7652         (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7653         (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7654         (auto_load_show_cmdlist_get, info_auto_load_cmd)
7655         (auto_load_info_cmdlist_get): New.
7656         (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7657         python/py-auto-load.c.  New installment for "set auto-load gdb-scripts",
7658         "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7659         "info auto-load local-gdbinit".
7660         * auto-load.h (struct script_language): New.
7661         (gdbpy_global_auto_load): Rename to ...
7662         (global_auto_load): ... here.
7663         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7664         (auto_load_local_gdbinit_loaded): New declarations.
7665         (maybe_add_script): New parameter language.
7666         (auto_load_objfile_script): Change parameter suffix to language.
7667         (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7668         (auto_load_info_scripts, auto_load_set_cmdlist_get)
7669         (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7670         declarations.
7671         * linux-thread-db.c: Include auto-load.h and ctype.h.
7672         (auto_load_thread_db, show_auto_load_thread_db): New.
7673         (struct thread_db_info): New field filename.
7674         (delete_thread_db_info): Call xfree for FILENAME.
7675         (try_thread_db_load): Initialize FILENAME.
7676         (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7677         if !AUTO_LOAD_THREAD_DB.
7678         (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7679         (_initialize_thread_db): Install auto_load_thread_db
7680         as "set auto-load libthread-db" and install info_auto_load_libthread_db
7681         as "info auto-load libthread-db".
7682         * main.c (captured_main): Rename gdbpy_global_auto_load to
7683         global_auto_load.  Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7684         AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7685         (print_gdb_help): Extend the help for 'local init file'.
7686         * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7687         (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7688         (auto_load_scripts): Rename to ...
7689         (auto_load_python_scripts): ... here, update the comment.
7690         (gdbpy_load_auto_script_for_objfile): New declaration.
7691         (show_auto_load_python_scripts, script_language_python)
7692         (gdbpy_load_auto_script_for_objfile): New.
7693         (source_section_scripts): Refactor the code.
7694         (load_auto_scripts_for_objfile): Rename to ...
7695         (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7696         auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7697         (info_auto_load_python_scripts): New.
7698         (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7699         Rename "set auto-load-scripts" to "set auto-load python-scripts".
7700         Register "set auto-load-scripts" as its deprecated alias.  Register
7701         "info auto-load python-scripts".  Register "info auto-load-scripts" as
7702         its deprecated alias.
7703         (load_auto_scripts_for_objfile): Rename to ...
7704         (gdbpy_load_auto_scripts_for_objfile): ... here.
7705         * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7706         (gdbpy_load_auto_scripts_for_objfile): ... here.
7707
7708 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7709
7710         auto-load: Move files.
7711         * Makefile.in (SFILES): Add auto-load.c.
7712         (HFILES_NO_SRCDIR): Add auto-load.h.
7713         (COMMON_OBS): Add auto-load.o.
7714         (distclean): Change .gdbinit for gdb-gdb.gdb.
7715         * auto-load.c: New file, with parts from python/py-auto-load.c.
7716         * auto-load.h: New file, with parts from python/python.h.
7717         * configure: Regenerate.
7718         * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7719         * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7720         * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7721         * main.c: Include auto-load.h.
7722         * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7723         command.h, observer.h and progspace.h to auto-load.c.  Add include
7724         auto-load.h.
7725         (gdbpy_global_auto_load, struct auto_load_pspace_info)
7726         (struct loaded_script, auto_load_pspace_data)
7727         (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7728         (hash_loaded_script_entry, eq_loaded_script_entry)
7729         (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7730         (maybe_add_script): Move to auto-load.c.
7731         (source_section_scripts): Change maybe_add_script parameters passing,
7732         use script_not_found_warning_print.
7733         (clear_section_scripts, auto_load_objfile_script)
7734         (auto_load_new_objfile, loaded_script_ptr)
7735         (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7736         (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7737         (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7738         auto_load_new_objfile and info_auto_load_scripts initizations to
7739         auto-load.c.
7740         * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7741
7742 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7743
7744         Code cleanup.
7745         * charset.c (find_charset_names): Remove variables ix and elt.
7746         Use free_char_ptr_vec.
7747         * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7748         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
7749         debugdir_end.  New variable debugdir_len.
7750         * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7751         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7752         declarations.
7753         * progspace.c (clear_program_space_solib_cache): Remove variables ix
7754         and elt.  Use free_char_ptr_vec.
7755         * source.c (add_path): Remove variables argv, arg and argv_index.
7756         New variables dir_vec, back_to, ix and name.
7757         Use dirnames_to_char_ptr_vec_append.  Use freeargv instead of
7758         make_cleanup_freeargv.  Remove variable separator.  Simplify the code
7759         no longer expecting DIRNAME_SEPARATOR.
7760         (openp): Remove variable p, p1 and len.  New variables dir_vec,
7761         back_to, ix and dir.  Use dirnames_to_char_ptr_vec.  Simplify the code
7762         no longer expecting DIRNAME_SEPARATOR.
7763         * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7764         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
7765         debugdir_end.
7766         * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7767         (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7768         (dirnames_to_char_ptr_vec): New functions.
7769
7770 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7771
7772         Code cleanup.
7773         * source.c (add_path): Remove always true conditional 'p == 0' and
7774         unindent its code block.
7775
7776 2012-04-17  Pedro Alves  <palves@redhat.com>
7777
7778         * gdbtypes.h (FIELD_BITPOS): Rename to ...
7779         (FIELD_BITPOS_LVAL): ... this.
7780         (FIELD_BITPOS): New.
7781         (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7782         * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7783         * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7784         SET_FIELD_BITPOS.
7785         * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7786         SET_FIELD_BITPOS.
7787         * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7788         (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7789         * target-descriptions.c (tdesc_gdb_type): Adjust to use
7790         SET_FIELD_BITPOS.
7791
7792 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7793
7794         Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7795         * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7796         TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7797         * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7798         * jv-lang.c (java_link_class_type): Likewise, once.
7799         * stabsread.c (read_enum_type): Likewise.
7800
7801 2012-04-16  Yao Qi  <yao@codesourcery.com>
7802
7803         * common/agent.c (agent_run_command): Add one more parameter `len'.
7804         Update callers.
7805         * common/agent.h: Update declaration.
7806         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7807         Update.
7808         (linux_child_static_tracepoint_markers_by_strid): Ditto.
7809
7810 2012-04-14  Anton Gorenkov <xgsa@yandex.ru>
7811
7812         PR mi/13393
7813         * value.c (value_actual_type): New function.
7814         * value.h (value_actual_type): New declaration.
7815         * varobj.c (update_type_if_necessary): New function.
7816         (varobj_create): Call value_actual_type instead of
7817         value_type.
7818         (install_dynamic_child): distinct changed and type changed MI variable
7819         objects.
7820         (update_dynamic_varobj_children): Updated for install_dynamic_child
7821         change.  All callers updated.
7822         (varobj_update): Support for MI variable object type change if
7823         the value changed and RTTI is used to determine the type.
7824         (create_child_with_value): Call value_actual_type instead of
7825         value_type.
7826         (adjust_value_for_child_access): Extended with a new parameter which
7827         specify whether the given value should be casted to enclosing type.
7828         All callers updated.
7829
7830 2012-04-14  Yao Qi  <yao@codesourcery.com>
7831
7832         Import gnulib module inttypes from git
7833         (250b80067c1e1d8faa0c42fb572f721975b929c5)
7834         * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7835         (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7836         gnulib/m4/inttypes-pri.m4
7837         * aclocal.m4, config.in, configure: Regenerated.
7838         * gnulib/Makefile.am: Update.
7839         * gnulib/Makefile.in: Update.
7840         * gnulib/m4/gnulib-cache.m4: Update.
7841         * gnulib/m4/gnulib-comp.m4: Update.
7842         * gnulib/inttypes.in.h: New.
7843         * gnulib/m4/inttypes-pri.m4: New.
7844         * gnulib/m4/inttypes.m4: New.
7845
7846 2012-04-13  Luis Machado  <lgustavo@codesourcery.com>
7847
7848         * infrun.c (resume): Update PC address to the real PC after
7849         preparing to do displaced stepping.
7850
7851 2012-04-12  Doug Evans  <dje@google.com>
7852
7853         * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7854         All callers updated.
7855
7856 2012-04-12  Mark Kettenis  <kettenis@gnu.org>
7857
7858         * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7859
7860 2012-04-12  Doug Evans  <dje@google.com>
7861
7862         * dwarf2read.c (create_all_type_units): Renamed from
7863         create_debug_types_hash_table.  All callers updated.
7864
7865         * dwarf2read.c (create_signatured_type_table_from_index): Rename
7866         local type_sig to sig_type, type_offset to type_offset_in_tu.
7867         (hash_signatured_type): Renamed from hash_type_signature,
7868         all callers updated.
7869         (eq_signatured_type): Renamed from eq_type_signature,
7870         all callers updated.
7871         (create_debug_types_hash_table): Rename local type_sig to sig_type.
7872         (process_enumeration_scope): Ditto.
7873         (lookup_signatured_type_at_offset): Ditto.
7874         (load_full_type_unit, read_signatured_type): Ditto.
7875
7876 2012-04-12  Yao Qi  <yao@codesourcery.com>
7877
7878         * remote.c (async_remote_interrupt): Correct function name in
7879         debug message.
7880         (async_remote_interrupt_twice): Ditto.
7881
7882 2012-04-11  Yuanhui Zhang  <asmwarrior@gmail.com>
7883
7884         * source.c (find_and_open_source): Consistently pass resulting
7885         full path through xfullpath.
7886
7887 2012-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7888
7889         Provide more specific displaced-stepping memory error message.
7890         * infrun.c (displaced_step_prepare): New variable status.  Call
7891         target_read_memory instead of read_memory, provide more specific
7892         error message.
7893
7894 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7895
7896         PR gdb/13901
7897         * darwin-nat.c (darwin_execvp): Revert previous patch.
7898
7899 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7900
7901         PR gdb/13901
7902         * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7903         in case of change.
7904
7905 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7906
7907         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7908         warning.
7909
7910 2012-04-11  Siva Chandra Reddy  <sivachandra@google.com>
7911
7912         New command 'explore' which helps explore values and types in
7913         scope.
7914         * NEWS: Add an entry about the new 'explore' command.
7915         * data-directory/Makefile.in: Add gdb/command/explore.py
7916         * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7917         command using the GDB Python API.
7918
7919 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
7920
7921         * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7922         extension in jump target calculation.
7923
7924 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
7925
7926         * mips-tdep.c (mips32_next_pc): Handle JALX.
7927
7928 2012-04-10  Yao Qi  <yao@codesourcery.com>
7929
7930         * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7931
7932 2012-04-10  Yao Qi  <yao@codesourcery.com>
7933
7934         * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7935         and gnulib/m4/gnulib-tool.m4.
7936
7937 2012-04-10  Doug Evans  <dje@google.com>
7938
7939         * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7940         (load_partial_dies): Clarify comment.
7941         (find_partial_die): Support rereading type units.
7942         Clarify CU handling, if we know offset is in CU, don't search for the
7943         containing CU.  Add comment regarding memory waste.
7944
7945 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7946
7947         * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7948         i386/x32-avx and i386/x32-avx-linux.
7949         (i386/x32-expedite): New.
7950         (i386/x32-linux-expedite): Likewise.
7951         (i386/x32-avx-expedite): Likewise.
7952         (i386/x32-avx-linux-expedite): Likewise.
7953         ($(outdir)/i386/x32.dat): Likewise.
7954         ($(outdir)/i386/x32-linux.dat): Likewise.
7955         ($(outdir)/i386/x32-avx.dat): Likewise.
7956         ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7957
7958         * features/i386/x32-avx-linux.xml: New file.
7959         * features/i386/x32-avx.xml: Likewise.
7960         * features/i386/x32-core.xml: Likewise.
7961         * features/i386/x32-linux.xml: Likewise.
7962         * features/i386/x32.xml: Likewise.
7963
7964         * features/i386/x32-avx-linux.c: New.  Generated.
7965         * features/i386/x32-avx.c: Likewise.
7966         * features/i386/x32-linux.c: Likewise.
7967         * features/i386/x32.c: Likewise.
7968         * regformats/i386/x32-avx-linux.dat: Likewise.
7969         * regformats/i386/x32-avx.dat: Likewise.
7970         * regformats/i386/x32-linux.dat: Likewise.
7971         * regformats/i386/x32.dat: Likewise.
7972
7973 2012-04-10  Tristan Gingold  <gingold@adacore.com>
7974
7975         * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7976         code to kill the inferior.
7977
7978 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
7979
7980         * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7981         defines.
7982         * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7983         defines.
7984         * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7985         (yyvsp): New defines.
7986         * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7987         defines.
7988         * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7989         defines.
7990         * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7991         defines.
7992         * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7993         defines.
7994         * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7995         defines.
7996
7997 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
7998
7999         * sparc64-tdep.c (sparc64_store_arguments)
8000         (sparc64_store_arguments): Fix coding style.
8001
8002 2012-04-07  Mark Kettenis  <kettenis@gnu.org>
8003
8004         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8005         complex floats, adjust some related comments and tighten a related
8006         assertion.
8007         (sparc64_extract_return_value): Handle complex floats.
8008
8009 2012-04-07  Doug Evans  <dje@google.com>
8010
8011         * dwarf2read.c (load_partial_dies): Change condition to assert.
8012
8013 2012-04-06  Doug Evans  <dje@google.com>
8014
8015         * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8016         "mov %rsp,%rbp".
8017
8018 2012-04-05  Kevin Buettner  <kevinb@redhat.com>
8019
8020         * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8021         fencepost error.
8022         (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8023         (v850_gdbarch_init): Set `num_regs' as appropriate for the
8024         architecture.
8025
8026 2012-04-05  Keith Seitz  <keiths@redhat.com>
8027
8028         * linespec.c (decode_compound): Remove.
8029         (enum offset_relative_sign): New enum.
8030         (struct line_offset): New struct.
8031         (struct linespec): New struct.
8032         (struct linespec_state): Move file_symtabs,
8033         user_filename, and user_function into struct linespec.
8034         Make result an anonymous struct holding vectors of
8035         symbolp and minsym_and_objfile_d.
8036         Add language member.
8037         (enum ls_token_type): New enum.
8038         (linespec_keywords): New array.
8039         (struct ls_token): New struct.
8040         (struct ls_parser): New struct.
8041         (linespec_lexer_lex_number): New function.
8042         (linespec_lexer_lex_keyword): New function.
8043         (is_ada_operator): New function.
8044         (skip_quote_char): New function.
8045         (copy_token_string): New function.
8046         (is_closing_quote_enclosed): New function.
8047         (find_parameter_list_end): New function.
8048         (linespec_lexer_lex_string): New function.
8049         (linespec_lexer_lex_one): New function.
8050         (linespec_lexer_consume_token): New function.
8051         (linespec_lexer_peek_token): New function.
8052         (cplusplus_error): Remove unused function.
8053         (find_methods): Update comment.
8054         (find_toplevel_char): Return const.
8055         (is_objc_method_format): Remove unused function.
8056         (find_toplevel_string): New function.
8057         (is_linespec_boundary): Remove.
8058         (symbol_not_found_error): New function.
8059         (find_method_overload_end): Remove function.
8060         (unexpected_linespec_error): New function.
8061         (keep_name_info): Remove.
8062         (linespec_parse_line_offset): New function.
8063         (linespec_parse_basic): New function.
8064         (canonicalize_linespec): New function.
8065         (decode_line_internal): Remove.
8066         (create_sals_line_offset): New function adapted from
8067         decode_all_digits.
8068         (convert_linespec_to_sals): New function.
8069         (parse_linespec): New function.
8070         (linespec_parser_new): New function.
8071         (linespec_state_destructor): Change parameter type to
8072         struct linespec_state *.
8073         Add language parameter.
8074         Remove freeing of moved members.
8075         (linespec_parser_delete): New function.
8076         (decode_line_full): Use parse_linespec and linespec_parser_new.
8077         (decode_line_1): Likewise.
8078         (decode_indirect): Rename to ...
8079         (linespec_expression_to_pc): ... this and rewrite
8080         to simply find CORE_ADDR, storing this result for later
8081         conversion to SALs.
8082         (locate_first_half): Remove.
8083         (deocde_objc): Add parameter LS.
8084         Initialize new struct collect_info members.
8085         Handle minimal symbols, too.
8086         (decode_compound): Delete.
8087         (lookup_prefix_sym): Rewrite.
8088         (compare_msymbols): New function.
8089         (find_method): Rewrite.
8090         Do not call cplusplus_error.
8091         (symtabs_from_filename): Rewrite.
8092         (collect_function_symbols): Delete.
8093         (find_function_symbols): Rewrite without ARGPTR-style
8094         processing.
8095         (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8096         (decode_dollar): Adapted and renamed to ...
8097         (linespec_parse_variable): ... this.
8098         (find_linespec_symbols): New function.
8099         (decode_label): Adapted and renamed to ...
8100         (find_label_symbols): ... this.
8101         (decode_digits_list_mode): Add and use LS argument.
8102         (decode_digits_ordinary): Likewise.
8103         (collect_symbols): Do not collect SALs, just symbols and msymbols.
8104         If in list mode, allow any symbol class.  Otherwise, only
8105         permit LOC_BLOCK symbols.
8106         (minsym_found): Update comments.
8107         (search_minsyms_for_name): Do not convert the matching symbol
8108         into a SAL.  Simply push the symbol and objfile into the
8109         result vector.
8110         (decode_variable): Delete. Contents adapted into
8111         find_linespec_symbols.
8112
8113         * cp-support.c (SKIP_SPACE): Remove.
8114         (operator_tokens): Remove unused global.
8115         (cp_validate_operator): Remove.
8116         * cp-support.h (cp_validate_operator): Remove declaration.
8117
8118 2012-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
8119
8120         * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8121         for TYPE_VPTR_FIELDNO.
8122         * valprint.c (valprint_check_validity): Make it global, move the
8123         function comment ...
8124         * value.h (valprint_check_validity): ... to this new declaration.
8125
8126 2012-04-02  Tristan Gingold  <gingold@adacore.com>
8127
8128         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8129         the STATE32 api for i386 state.
8130         (i386_darwin_store_inferior_registers): Likewise.
8131
8132 2012-04-02  Tristan Gingold  <gingold@adacore.com>
8133
8134         * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8135         SS offset.
8136         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8137         format_string.
8138
8139 2012-04-02  Tristan Gingold  <gingold@adacore.com>
8140
8141         PR gdb/13901
8142         * darwin-nat.c (darwin_execvp): Set binary preference.
8143
8144 2012-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8145
8146         * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8147
8148 2012-03-30  Tom Tromey  <tromey@redhat.com>
8149
8150         * python/python.c (gdbpy_decode_line): Move cleanup creation out
8151         of TRY_CATCH.  Fix error handling.
8152         * python/py-value.c (convert_value_from_python): Move 'old'
8153         declaration to innermost scope.
8154
8155 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8156             Andrey Smirnov  <andrew.smirnov@gmail.com>
8157
8158         -Wshadow warning fix.
8159         * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8160         "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8161         Adjust code accordingly.
8162
8163 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8164
8165         * ada-lang.c (symbol_completion_add): Rename parameter
8166         "encoded" into "encoded_p".  Ajust code and documentation
8167         accordingly.
8168
8169 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8170             Andrey Smirnov  <andrew.smirnov@gmail.com>
8171
8172         -Wshadow warning fix.
8173         * ada-lang.c (symbol_completion_add): Rename parameter
8174         "wild_match" into wild_match_p.  Update code and documentation
8175         accordingly.
8176
8177 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8178
8179         * ada-lang.c (symbol_completion_match): Rename parameter
8180         "encoded" into "encoded_p".  Ajust code and documentation
8181         accordingly.
8182
8183 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8184             Andrey Smirnov  <andrew.smirnov@gmail.com>
8185
8186         -Wshadow warning fix.
8187         * ada-lang.c (symbol_completion_match): Rename parameter
8188         "wild_match" into "wild_match_p".  Adjust code and function
8189         documentation accordingly.
8190
8191 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8192             Andrey Smirnov  <andrew.smirnov@gmail.com>
8193
8194         -Wshadow warning fix.
8195         * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8196         "symbol_info" into "info".  Adjust code accordingly.
8197         (ada_lookup_symbol): Likewise.
8198
8199 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8200
8201         * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8202         of this function's documentation.
8203
8204 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8205             Andrey Smirnov  <andrew.smirnov@gmail.com>
8206
8207         -Wshadow warning fix.
8208         * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8209         variable into "wild_match_p".  Adjust code accordingly.
8210
8211 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8212             Andrey Smirnov  <andrew.smirnov@gmail.com>
8213
8214         -Wshadow warning fix.
8215         * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8216         parameter into "wild_match_p".  Adjust code accordingly.
8217         Document this parameter in the function description.
8218
8219 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8220             Andrey Smirnov  <andrew.smirnov@gmail.com>
8221
8222         -Wshadow warning fix.
8223         * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8224         "wild_match" parameter to "wild_match_p" (-Wshadow).
8225
8226 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8227
8228         * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8229         in function documentation.
8230
8231 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8232             Andrey Smirnov  <andrew.smirnov@gmail.com>
8233
8234         -Wshadow warning fix.
8235         * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8236         variable into wild_match_p.  Adjust code accordingly.
8237
8238 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8239             Andrey Smirnov  <andrew.smirnov@gmail.com>
8240
8241         * ada-valprint.c (ada_val_print_1): Move the code handling
8242         TYPE_CODE_ENUM inside its own lexical block.  Declare
8243         variables len and val there, instead of in the function's
8244         top level block.  Avoid declaring deref_val again in a way
8245         that shadows another variable of the same name declared
8246         in one of the up-level blocks.  Just re-use the up-level
8247         variable instead.
8248
8249 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8250
8251         * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8252         Replace block_found argument by symbol_info.  Adjust
8253         implementation accordingly.  Add function documentation.
8254         (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8255         Fix documentation.
8256         * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8257         * ada-exp.y (write_object_renaming): Adjust to new
8258         ada_lookup_encoded_symbol API.
8259
8260 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
8261
8262         * ada-lang.h (struct ada_symbol_info): Reformat.  Improve
8263         documentation.
8264
8265 2012-03-28  Rathish C  <rathish.c@kpitcummins.com>
8266
8267         * v850-tdep.c: Add the enum values for mpu and fpu registers.
8268         (v850_register_name): Add the mpu and fpu register names.
8269         (v850e_register_name): Add the mpu and fpu register names.
8270         (v850e2_register_name): New function.
8271         (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
8272         bfd_mach_v850e2v3.
8273
8274 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
8275
8276         * NEWS: Add entry for Ada varobj support.
8277
8278 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
8279
8280         * varobj.c (default_value_is_changeable_p): New function,
8281         extracted from varobj_value_is_changeable_p.  Add declaration.
8282         (ada_value_is_changeable_p): New function, extracted from
8283         varobj_value_is_changeable_p.  Add declaration.
8284         (struct language_specific): New field "value_is_changeable_p".
8285         (languages): Add entries for new field.
8286         (varobj_create): Set language before calling install_new_value.
8287         (varobj_value_is_changeable_p): Reimplement to call the varobj's
8288         "value_is_changeable_p" language callback.
8289
8290 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
8291
8292         * ada-varobj.h, ada-varobj.c: New files.
8293         * Makefile.in (SFILES): Add ada-varobj.c.
8294         (HFILES_NO_SRCDIR): Add ada-varobj.h.
8295         (COMMON_OBS): Add ada-varobj.o.
8296
8297 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
8298
8299         * varobj.c (ada_value_has_mutated): Add declaration.  New function.
8300         (struct language_specific): New field "value_has_mutated".
8301         (languages): Set field "value_has_mutated" in each entry of array.
8302         (varobj_value_has_mutated): New function.
8303         (varobj_udpdate): Add handling of type mutation.
8304         (value_of_root): Add handling of type mutation.
8305         (ada_value_has_mutated): New function.
8306
8307 2012-03-28  Pedro Alves  <palves@redhat.com>
8308
8309         * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
8310         Always supply $fr0 as 0.0 and $fr1 as 1.0.
8311
8312 2012-03-28  Tom Tromey  <tromey@redhat.com>
8313
8314         * python/py-inferior.c (infpy_read_memory): Remove cleanups and
8315         explicitly free 'buffer' on exit paths.  Decref 'membuf_object'
8316         before returning.
8317
8318 2012-03-28  Tom Tromey  <tromey@redhat.com>
8319
8320         * .dir-locals.el: New file.
8321
8322 2012-03-28  Pedro Alves  <palves@redhat.com>
8323
8324         * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8325
8326 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
8327
8328         * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8329         handling for r0.
8330
8331 2012-03-27  Pedro Alves  <palves@redhat.com>
8332
8333         Eliminate struct ui_stream.
8334
8335         * ui-out.h (struct ui_stream): Delete.
8336         (ui_out_field_stream): Adjust prototype.
8337         (ui_out_stream_new, ui_out_stream_delete)
8338         (make_cleanup_ui_out_stream_delete): Delete declarations.
8339         * ui-out.c (ui_out_field_stream): Change prototype to take a
8340         ui_file instead of a ui_stream.  Adjust.
8341         (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8342         (make_cleanup_ui_out_stream_delete): Delete.
8343         * breakpoint.c (print_breakpoint_location)
8344         (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8345         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8346         * disasm.c (dump_insns): Ditto.
8347         (do_mixed_source_and_assembly, do_assembly_only): Adjust
8348         prototype.
8349         (gdb_disassembly): Use ui_file/mem_fileopen instead of
8350         ui_stream/ui_out_stream_new.
8351         * infcmd.c (print_return_value): Ditto.
8352         * osdata.c (info_osdata_command): Don't allocate a local
8353         ui_stream.
8354         * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8355         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8356         * tracepoint.c (print_one_static_tracepoint_marker): Don't
8357         allocate a local ui_stream.
8358         * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8359         instead of ui_stream/ui_out_stream_new.
8360         (list_args_or_locals): Don't allocate a local ui_stream.
8361         * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8362         (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8363         ui_stream/ui_out_stream_new.
8364         * cli/cli-setshow.c (do_setshow_command): Ditto.
8365
8366 2012-03-27  Oza Pawandeep  <oza.pawandeep@gmail.com>
8367
8368         * arm-linux-tdep.c (arm_linux_init_abi): Call
8369         set_gdbarch_process_record.  Initialize `arm_swi_record' field.
8370         * arm-tdep.c (arm_process_record): New function.
8371         (deallocate_reg_mem): New function.
8372         (decode_insn): New function.
8373         (thumb_record_branch): New function.
8374         (thumb_record_ldm_stm_swi(): New function.
8375         (thumb_record_misc): New function.
8376         (thumb_record_ld_st_stack): New function.
8377         (thumb_record_ld_st_imm_offset): New function.
8378         (thumb_record_ld_st_reg_offset(): New function.
8379         (thumb_record_add_sub_cmp_mov): New function.
8380         (thumb_record_shift_add_sub): New function.
8381         (arm_record_coproc_data_proc): New function.
8382         (arm_record_coproc): New function.
8383         (arm_record_b_bl): New function.
8384         (arm_record_ld_st_multiple): New function.
8385         (arm_record_ld_st_reg_offset): New function.
8386         (arm_record_ld_st_imm_offset): New function.
8387         (arm_record_data_proc_imm): New function.
8388         (arm_record_data_proc_misc_ld_str): New function.
8389         (arm_record_extension_space): New function.
8390         (arm_record_strx): New function.
8391         (sbo_sbz): New function.
8392         (struct insn_decode_record): New structure for arm insn record.
8393         (REG_ALLOC): New macro for reg allocations.
8394         (MEM_ALLOC): New macro for memory allocations.
8395         * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
8396
8397 2012-03-27  Andreas Schwab  <schwab@linux-m68k.org>
8398
8399         * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8400         (store_register): Likewise.
8401
8402 2012-03-26  Oza Pawandeep  <oza.pawandeep@gmail.com>
8403
8404         * MAINTAINERS (Write After Approval): Add myself to the list.
8405
8406 2012-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
8407
8408         * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8409         Describe also the option "auto".
8410
8411 2012-03-22  Richard Henderson  <rth@redhat.com>
8412
8413         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8414         * sparc-nat.c (sparc_xfer_wcookie): Make static.
8415
8416 2012-03-22  Richard Henderson  <rth@redhat.com>
8417
8418         * jit.c (jit_read_code_entry): Compute alignment and offset of
8419         int64_t member before computing entry_size.
8420
8421 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
8422
8423         Python scripting: Add new method Value.referenced_value to
8424         gdb.Value which can dereference pointer as well as reference
8425         values.
8426         * NEWS: Add entry under 'Python scripting' about the new method
8427         Value.referenced_value on gdb.Value objects.
8428         * python/py-value.c (valpy_referenced_value): New function
8429         defining a new method on gdb.Value objects which can dereference
8430         pointer and reference values.
8431
8432 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
8433
8434         * MAINTAINERS (Write After Approval): Add myself to the list.
8435
8436 2012-03-21  Kevin Buettner  <kevinb@redhat.com>
8437
8438         * symtab.c (skip_prologue_sal): Change test to check for "main()"
8439         in addition to "main".
8440
8441 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
8442
8443         * expression.h (op_name): Add declaration.
8444         * expprint.c (op_name): Remove declaration.  Make non-static.
8445         * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8446
8447 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
8448
8449         * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8450         of struct siginfo.
8451         * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8452         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8453         * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8454         (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8455         (linux_nat_get_siginfo): Likewise.
8456         * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8457         (linux_nat_get_siginfo): Likewise.
8458         * linux-tdep.c (linux_get_siginfo_type): Likewise.
8459         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8460         * procfs.c (gdb_siginfo_t): Likewise.
8461
8462 2012-03-21  Mike Frysinger  <vapier@gentoo.org>
8463
8464         * .gitignore: Ignore more files.
8465
8466 2012-03-20  Pedro Alves  <palves@redhat.com>
8467
8468         * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8469         returns.
8470
8471 2012-03-20  Yao Qi  <yao@codesourcery.com>
8472
8473         * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8474         comment.
8475
8476 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8477
8478         Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8479         * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8480         (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8481         sect_offset.
8482         * dwarf2expr.h (cu_offset, sect_offset): New types.
8483         (struct dwarf_expr_context_funcs) <dwarf_call>
8484         (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8485         sect_offset.
8486         (struct dwarf_expr_context) <len>: Improve the comment.
8487         (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8488         cu_offset and sect_offset.
8489         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8490         (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8491         (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8492         * dwarf2loc.h: Include dwarf2expr.h.
8493         (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8494         and sect_offset.
8495         * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8496         Improve the comment.
8497         (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8498         (struct signatured_type, struct line_header, struct partial_die_info)
8499         (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8500         (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8501         (get_die_type_at_offset, create_cus_from_index)
8502         (create_signatured_type_table_from_index, dw2_get_file_names)
8503         (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8504         (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8505         (create_debug_types_hash_table, process_psymtab_comp_unit)
8506         (load_partial_comp_unit, create_all_comp_units)
8507         (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8508         (load_full_comp_unit, dwarf2_physname, read_import_statement)
8509         (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8510         (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8511         (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8512         (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8513         (find_partial_die, read_attribute_value, lookup_die_type)
8514         (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8515         (is_ref_attr): New function comment.
8516         (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8517         Use cu_offset and sect_offset.
8518         (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8519         (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8520         (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8521         (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8522         (offset_and_type_hash, offset_and_type_eq, set_die_type)
8523         (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8524         (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8525         sect_offset.
8526
8527 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8528
8529         Code cleanup.
8530         * python/py-auto-load.c (source_section_scripts): New variable back_to.
8531         Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8532         with xfree.
8533         (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8534
8535 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8536
8537         * NEWS: Describe new options --init-command=FILE, -ix and
8538         --init-eval-command=COMMAND, -iex.
8539         * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8540         CMDARG_INIT_COMMAND.
8541         (captured_main): New enum items OPT_IX and OPT_IEX.  Add
8542         "init-command", "init-eval-command", "ix" and "iex" to the variable
8543         long_options.  Handle OPT_IX and OPT_IEX.  Process them from CMDARG_VEC.
8544         New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8545         (print_gdb_help): Describe --init-command=FILE, -ix and
8546         --init-eval-command=COMMAND, -iex.
8547
8548 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8549
8550         Code cleanup.
8551         * main.c (struct cmdarg): Move it here from main.  Add more comments.
8552         (cmdarg_s, VEC (cmdarg_s)): New.
8553         (main): Move struct cmdarg from here.  New variables cmdarg_vec and
8554         cmdarg_p.  Remove variables cmdsize and ncmd and their initialization.
8555         Install cleanup for cmdarg_vec.  Update filling for options 'x' and
8556         'X'.  Replace cmdarg processing by cmdarg_vec processing.  Remove xfree
8557         of CMDARG.
8558
8559 2012-03-19  Tom Tromey  <tromey@redhat.com>
8560
8561         * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8562
8563 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8564
8565         PR symtab/13777
8566         * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8567         GCC >=4.5.
8568
8569 2012-03-16  Chris January  <chris.january@allinea.com>
8570
8571         * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8572         of clear.
8573
8574 2012-03-16  Chris January  <chris.january@allinea.com>
8575
8576         * source.c (add_path): Use memmove instead of strcpy because the
8577         strings overlap.
8578
8579 2012-03-16  Joel Brobecker  <brobecker@adacore.com>
8580
8581         * value.h (set_value_parent): Add declaration.
8582         * value.c (set_value_parent): New function.
8583         (value_address): If VALUE->PARENT is not NULL, then use it as
8584         the base address instead of VALUE->LOCATION.address.
8585         * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8586         the same as OBJ's address.  Adjust V's offset accordingly.
8587         Set V's parent.
8588
8589 2012-03-16  Gary Benson  <gbenson@redhat.com>
8590
8591         PR breakpoints/10738
8592         * dwarf2read.c (use_deprecated_index_sections): New global.
8593         (struct partial_die_info): New member may_be_inlined.
8594         (read_partial_die): Set may_be_inlined where appropriate.
8595         (add_partial_subprogram): Add partial symbols for partial
8596         DIEs that may be inlined.
8597         (new_symbol_full): Add inlined subroutines to the current
8598         scope.
8599         (write_psymtabs_to_index): Bump version number.
8600         (dwarf2_read_index): Read only version 6 indices unless
8601         use_deprecated_index_sections is set.
8602         * linespec.c (symbol_and_data_callback): New structure.
8603         (iterate_inline_only): New function.
8604         (iterate_over_all_matching_symtabs): New argument
8605         "include_inline".  If nonzero, also call the callback for
8606         symbols representing inlined subroutines.
8607         (lookup_prefix_sym): Pass extra argument to the above.
8608         (find_function_symbols): Likewise.
8609         (add_matching_symbols_to_info): Likewise.
8610         * NEWS: Mention that GDB can now set breakpoints on inlined
8611         functions.
8612
8613 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
8614
8615         * p-typeprint.c (pascal_type_print_method_args):
8616         Fix display of parameter of methods.
8617
8618 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
8619
8620         * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8621         Add missing prototype.
8622
8623 2012-03-16  Yao Qi  <yao@codesourcery.com>
8624             Jan Kratochvil  <jan.kratochvil@redhat.com>
8625
8626         Fix false compilation warning.
8627         * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8628
8629 2012-03-15  Jonathan Larmour  <jifl@eCosCentric.com>
8630             Pedro Alves  <pedro@codesourcery.com>
8631
8632         * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8633         (arm_register_g_packet_guesses): New function.
8634         (arm_gdbarch_init): Don't force a target description with
8635         registers when the executable is detected as M-profile.  Instead
8636         set gdbarch->tdep->is_m.  Register `g' packet guesses.
8637         (_initialize_arm_tdep): Initialize the new target description.
8638         * features/arm-with-m-fpa-layout.xml: New description.
8639         * features/arm-with-m-fpa-layout.c: New, generated.
8640
8641 2012-03-15  Joel Brobecker  <brobecker@adacore.com>
8642
8643         * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8644         Update function description.
8645         (insert_bp_location): Do not wipe bl->target_info out.
8646         * mem-break.c: #include "gdb_string.h".
8647         (default_memory_insert_breakpoint): Do not call target_read_memory
8648         with a pointer to the breakpoint's shadow_contents buffer.  Use
8649         a local buffer instead.
8650         * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8651
8652 2012-03-15  Tom Tromey  <tromey@redhat.com>
8653
8654         * NEWS: Mention "info vtbl", not "info vtable".
8655         * cp-support.c (info_vtbl_command): Fix comment.
8656         (_initialize_cp_support): Fix text.
8657
8658 2012-03-15  Tom Tromey  <tromey@redhat.com>
8659
8660         * cp-valprint.c (cp_print_value_fields): Use
8661         print_function_pointer_address for vtable slot.
8662
8663 2012-03-15  Tom Tromey  <tromey@redhat.com>
8664
8665         * gnu-v3-abi.c (struct value_and_voffset): New.
8666         (hash_value_and_voffset, eq_value_and_voffset)
8667         (compare_value_and_voffset, compute_vtable_size)
8668         (print_one_vtable, gnuv3_print_vtable): New functions.
8669         (init_gnuv3_ops): Initialize 'print_vtable' field.
8670         * cp-support.c (info_vtbl_command): New function.
8671         (_initialize_cp_support): Add "info vtbl".
8672         * cp-abi.h (cplus_print_vtable): Declare.
8673         (struct cp_abi_ops) <print_vtable>: New field.
8674         * cp-abi.c (cplus_print_vtable): New function.
8675         * NEWS: Update.
8676
8677 2012-03-15  Tom Tromey  <tromey@redhat.com>
8678
8679         * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8680         iterate_over_symbols.
8681
8682 2012-03-14  Doug Evans  <dje@google.com>
8683
8684         * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8685         DW_OP_GNU_parameter_ref.
8686
8687 2012-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
8688
8689         Fix double prompt of 'interpreter-exec mi'.
8690         * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8691         (mi_interpreter_resume): use it.
8692         (mi_execute_command_input_handler): New function.
8693         * mi/mi-main.c (mi_execute_command): Move prompt printing to
8694         mi_execute_command_input_handler.
8695
8696 2012-03-13  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
8697
8698         * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8699         prototype.
8700         (darwin_debug_port_info): Make static.
8701         * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8702         * machoread.c (_initialize_machoread): Add prototype.
8703         * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8704         (i386_darwin_set_control, i386_darwin_get_control)
8705         i386_darwin_dr_set_addr, i386_darwin_get_addr)
8706         i386_darwin_get_status, i386_darwin_get_control):
8707         Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8708
8709 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
8710
8711         * ax-gdb.c (gen_usual_unary): Remove special handling of
8712         enum and bool types.
8713
8714 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
8715
8716         * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8717
8718 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
8719
8720         * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8721
8722 2012-03-13  Chris January  <chris.january@allinea.com>
8723
8724         * aix-thread.c (fill_sprs): Store the floating point registers
8725         at the correct offsets into vals.
8726
8727 2012-03-13  Doug Evans  <dje@google.com>
8728
8729         * NEWS: Mention symbol-reloading has been deleted.
8730         * symfile.c (symbol_reloading): Delete.
8731         (show_symbol_reloading): Delete.
8732         (_initialize_symfile): Delete set/show symbol-reloading.
8733
8734         * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8735         read_in_chain until we have successfully read it in.
8736         (load_full_comp_unit): Ditto.
8737         (read_signatured_type): Add comment.
8738
8739 2012-03-13  Chris January  <chris.january@allinea.com>
8740
8741         * stabsread.c (fix_common_block): Change type of valu argument
8742         to CORE_ADDR.
8743
8744 2012-03-13  Chris January  <chris.january@allinea.com>
8745
8746         * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8747         instruction.
8748
8749 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8750
8751         * common/linux-procfs.c (linux_proc_get_int): New, from
8752         linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8753         field.
8754         (linux_proc_get_tgid): Only call linux_proc_get_int.
8755         (linux_proc_get_tracerpid): New.
8756         (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8757         (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8758         linux_proc_pid_has_state.
8759         * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8760         * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8761         (linux_ptrace_attach_warnings): New.
8762         * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8763         New declaration.
8764         * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8765         (linux_nat_attach): New variables ex, buffer, message and message_s.
8766         Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8767
8768 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8769
8770         * Makefile.in (linux-ptrace.o): New.
8771         * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8772         from linux-nat.c.
8773         * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8774         * common/linux-ptrace.c: New file.
8775         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8776         * config/arm/linux.mh: Likewise.
8777         * config/i386/linux.mh: Likewise.
8778         * config/i386/linux64.mh: Likewise.
8779         * config/ia64/linux.mh: Likewise.
8780         * config/m32r/linux.mh: Likewise.
8781         * config/m68k/linux.mh: Likewise.
8782         * config/mips/linux.mh: Likewise.
8783         * config/pa/linux.mh: Likewise.
8784         * config/powerpc/linux.mh: Likewise.
8785         * config/powerpc/ppc64-linux.mh: Likewise.
8786         * config/powerpc/spu-linux.mh: Likewise.
8787         * config/s390/s390.mh: Likewise.
8788         * config/sparc/linux.mh: Likewise.
8789         * config/sparc/linux64.mh: Likewise.
8790         * config/xtensa/linux.mh: Likewise.
8791         * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8792         common/linux-procfs.c.
8793         (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8794
8795 2012-03-13  Hui Zhu  <teawater@gmail.com>
8796             Pedro Alves  <palves@redhat.com>
8797
8798         * breakpoint.c (init_breakpoint_sal): New flags parameter.  Handle
8799         CREATE_BREAKPOINT_FLAGS_INSERTED.
8800         (create_breakpoint_sal, create_breakpoints_sal)
8801         (base_breakpoint_create_breakpoints_sal)
8802         (tracepoint_create_breakpoints_sal)
8803         (strace_marker_create_breakpoints_sal): New flags parameter.  Pass
8804         down.
8805         (break_command_1, handle_gnu_v3_exceptions, trace_command)
8806         (ftrace_command, strace_command): Adjust.
8807         (create_tracepoint_from_upload): Pass
8808         CREATE_BREAKPOINT_FLAGS_INSERTED.
8809         * breakpoint.h (enum breakpoint_create_flags): New.
8810         (create_breakpoint): New flags parameter.
8811         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8812         * python/py-breakpoint.c (bppy_init): Adjust.
8813         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8814         * spu-tdep.c (spu_catch_start): Adjust.
8815
8816 2012-03-13  Pedro Alves  <palves@redhat.com>
8817             Hui Zhu  <teawater@gmail.com>
8818             Yao Qi  <yao@codesourcery.com>
8819
8820         * remote.c (struct remote_state): New field `starting_up'.
8821         (remote_start_remote): Set and clear it.
8822         (remote_can_download_tracepoint): If starting up, return false.
8823
8824 2012-03-13  Yao Qi  <yao@codesourcery.com>
8825
8826         * inferior.h (struct inferior): Remove fields any_syscall_count,
8827         syscalls_counts and total_syscalls_count.  Move them to new
8828         struct catch_syscall_inferior_data in breakpoint.c.
8829         * breakpoint.c: Call DEF_VEC_I(int).
8830         (struct catch_syscall_inferior_data): New.
8831         (get_catch_syscall_inferior_data): New.
8832         (catch_syscall_inferior_data_cleanup): New.
8833         (insert_catch_syscall): Update to access data in
8834         struct catch_syscall_inferior_data.
8835         (insert_catch_syscall): Likewise.
8836         (remove_catch_syscall): Likewise.
8837         (remove_catch_syscall): Likewise.
8838         (is_syscall_catchpoint_enabled): Likewise.
8839         (add_catch_command): Likewise.
8840         (_initialize_breakpoint): Register cleanup.
8841         * breakpoint.h: Removed DEF_VEC_I(int).
8842         * dwarf2loc.c: Call DEF_VEC_I(int).
8843         * mi/mi-main.c: Likewise.
8844
8845 2012-03-12  Mark Kettenis  <kettenis@gnu.org>
8846
8847         * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8848
8849 2012-03-12  Chris January  <chris.january@allinea.com>
8850
8851         * aix-thread.c (_initialize_aix_thread): Add prototype.
8852         * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8853         * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8854
8855 2012-03-12  Joel Brobecker  <brobecker@adacore.com>
8856
8857         * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8858         include of "amd64-nat.h".
8859
8860 2012-03-12  Tom Tromey  <tromey@redhat.com>
8861
8862         * buildsym.c (record_pending_block): Now static.
8863         * buildsym.h: (record_pending_block): Remove.
8864
8865 2012-03-12  Andreas Tobler  <andreast@fgznet.ch>
8866
8867         * amd64bsd-nat.c: Include amd64bsd-nat.h.
8868
8869 2012-03-09  Tom Tromey  <tromey@redhat.com>
8870
8871         * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8872         producer_is_gxx_lt_4_6>: New fields.
8873         (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8874
8875 2012-03-09  Tom Tromey  <tromey@redhat.com>
8876
8877         * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8878
8879 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8880
8881         * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8882         prototype.
8883
8884 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8885
8886         * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8887
8888 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8889
8890         Fix -Wmissing-prototypes build.
8891         * arm-linux-nat.c (get_thread_id): Make it static.
8892         * xtensa-linux-nat.c (get_thread_id): Likewise.
8893
8894 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8895
8896         * server.c (process_point_options): If a conditional expression
8897         is found, only print a message if remote_debug is nonzero.
8898
8899 2012-03-08  Luis Machado  <lgustavo@codesourcery.com>
8900
8901         * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8902         of internal error for unknown/unsupported types.
8903
8904 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8905
8906         Fix CU relative vs. absolute DIE offsets.
8907         * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8908         offset to offset_in_cu.
8909         * dwarf2read.c (process_enumeration_scope): Add CU offset to
8910         TYPE_OFFSET.
8911         (dwarf2_fetch_die_location_block): Rename parameter offset to
8912         offset_in_cu.  New variable offset, add CU offset to OFFSET_IN_CU.
8913
8914 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8915
8916         * libunwind-frame.c: Rename to ...
8917         * ia64-libunwind-tdep.c: ... here.
8918         * libunwind-frame.h: Rename to ...
8919         * ia64-libunwind-tdep.h: ... here.
8920         * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8921         ia64-libunwind-tdep.h.
8922         (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8923         * README (--with-libunwind): Rename to ...
8924         (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8925         * config.in: Regenerate.
8926         * configure: Regenerate.
8927         * configure.ac: New option --with-libunwind-ia64, make the
8928         AS_HELP_STRING ia64 specific.  Deprecate option --with-libunwind.
8929         Remove AC_DEFINE for HAVE_LIBUNWIND.
8930         * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8931         Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8932         Rename libunwind-frame in the general comment.
8933         * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8934         Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8935         Move forward declarations inside #ifndef.  Rename libunwind-frame in
8936         the general comment.
8937         * ia64-tdep.c: Rename libunwind-frame.h #include to
8938         ia64-libunwind-tdep.h.
8939         (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8940         (ia64_libunwind_descr): Rename libunwind-frame to
8941         ia64-libunwind-tdep in these function comments.
8942         * ia64-tdep.h: Rename libunwind-frame.h #include to
8943         ia64-libunwind-tdep.h.
8944         * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8945         ia64-libunwind-tdep in that data comment.
8946
8947 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8948
8949         * libunwind-frame.h (struct frame_unwind): New declaration.
8950
8951 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8952
8953         * breakpoint.c (_initialize_breakpoint): Fix error in help of
8954         "set breakpoint condition-evaluation" command.
8955
8956 2012-03-08  Tristan Gingold  <gingold@adacore.com>
8957
8958         * sparc-stub.c: Move to stubs/
8959         * sh-stub.c: Likewise.
8960         * m68k-stub.c: Likewise.
8961         * m32r-stub.c: Likewise.
8962         * i386-stub.c: Likewise.
8963
8964 2012-03-08  Andreas Schwab  <schwab@linux-m68k.org>
8965
8966         * m68klinux-tdep.c (m68k_linux_init_abi): Register
8967         linux_get_siginfo_type.
8968
8969         * m68klinux-nat.c: Include "gdb_proc_service.h".
8970         (PTRACE_GET_THREAD_AREA): Define.
8971         (ps_get_thread_area): New function.
8972
8973 2012-03-08  Yao Qi  <yao@codesourcery.com>
8974
8975         * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8976         `xsnprintf'.
8977         (remote_query_attached): Likewise.
8978         (remote_static_tracepoint_marker_at): Likewise.
8979         (remote_set_permissions): Likewise.
8980         (remote_detach_1, extended_remote_attach_1): Likewise.
8981         (send_g_packet, remote_vkill): Likewise.
8982         (extended_remote_disable_randomization): Likewise.
8983         (remote_add_target_side_condition): Likewise.
8984         (remote_insert_breakpoint): Likewise.
8985         (remote_remove_breakpoint): Likewise.
8986         (remote_insert_watchpoint): Likewise.
8987         (remote_remove_watchpoint): Likewise.
8988         (remote_insert_hw_breakpoint): Likewise.
8989         (remote_insert_hw_breakpoint): Likewise.
8990         (remote_remove_hw_breakpoint): Likewise.
8991         (remote_download_command_source): Likewise.
8992         (remote_download_tracepoint): Likewise.
8993         (remote_download_trace_state_variable): Likewise.
8994         (remote_disable_tracepoint): Likewise.
8995         (remote_trace_set_readonly_regions): Likewise.
8996         (remote_get_tracepoint_status): Likewise.
8997         (remote_trace_find): Likewise.
8998         (remote_get_trace_state_variable_value): Likewise.
8999         (remote_set_disconnected_tracing): Likewise.
9000         (remote_set_circular_trace_buffer): Likewise.
9001         (remote_get_min_fast_tracepoint_insn_len): Likewise.
9002         (remote_use_agent): Likewise.
9003         (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9004         Update callers.
9005
9006 2012-03-07  Pedro Alves  <palves@redhat.com>
9007
9008         * NEWS: Mention QProgramSignals.
9009         * inferior.h (update_signals_program_target): Declare.
9010         * infrun.c: (update_signals_program_target): New.
9011         (handle_command): Update the target of the new program signals
9012         array changes.
9013         * remote.c (PACKET_QProgramSignals): New enum.
9014         (last_program_signals_packet): New global.
9015         (remote_program_signals): New.
9016         (remote_start_remote): Update the target with the program signals
9017         list.
9018         (remote_protocol_features): Add entry for QPassSignals.
9019         (remote_open_1): Free anc clear last_program_signals_packet.
9020         (init_remote_ops): Install remote_program_signals.
9021         * target.c (update_current_target): Adjust.
9022         (target_program_signals): New.
9023         * target.h (struct target_ops) <to_program_signals>: New field.
9024         (target_program_signals): Declare.
9025
9026 2012-03-07  Pedro Alves  <palves@redhat.com>
9027
9028         * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9029         extensions.
9030
9031 2012-03-07  Andreas Schwab  <schwab@linux-m68k.org>
9032
9033         * m68klinux-nat.c (getregs_supplies): Make static.
9034         (getfpregs_supplies): Likewise.
9035         (have_ptrace_getregs): Likewise.
9036
9037 2012-03-06  Joel Brobecker  <brobecker@adacore.com>
9038
9039         * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9040         in call to get_die_type_at_offset.
9041
9042 2012-03-06  Stan Shebs  <stan@codesourcery.com>
9043
9044         * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9045         * mi/mi-cmd-disas.c: Ditto.
9046         * mi/mi-cmd-env.c: Ditto.
9047         * mi/mi-cmd-file.c: Ditto.
9048         * mi/mi-cmd-stack.c: Ditto.
9049         * mi/mi-cmd-target.c: Ditto.
9050         * mi/mi-cmd-var.c: Ditto.
9051         * mi/mi-cmds.c: Ditto.
9052         * mi/mi-cmds.h: Ditto.
9053         * mi/mi-console.c: Ditto.
9054         * mi/mi-getopt.c: Ditto.
9055         * mi/mi-getopt.h: Ditto.
9056         * mi/mi-interp.c: Ditto.
9057         * mi/mi-main.c: Ditto.
9058         * mi/mi-out.c: Ditto.
9059         * mi/mi-parse.c: Ditto.
9060         * mi/mi-parse.h: Ditto.
9061         * mi/mi-symbol-cmds.c: Ditto.
9062
9063         * mi/mi-getopt.h: Move mi_opt struct up.
9064         * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9065         return.
9066         * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9067
9068 2012-03-06  Tom Tromey  <tromey@redhat.com>
9069
9070         * proc-service.c (ps_pglobal_lookup): Set the current program
9071         space.
9072
9073 2012-03-06  Pedro Alves  <palves@redhat.com>
9074
9075         * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9076
9077 2012-03-05  Joel Brobecker  <brobecker@adacore.com>
9078
9079         * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9080
9081 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
9082
9083         Code cleanup.
9084         * common/linux-osdata.c (linux_common_core_of_thread): New function
9085         comment.
9086         * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9087         call by linux_common_core_of_thread.
9088         (linux_nat_core_of_thread_1): Remove.
9089         * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9090         * linux-thread-db.c: Include linux-osdata.h.
9091         (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9092         linux_common_core_of_thread.
9093
9094 2012-03-05  Tom Tromey  <tromey@redhat.com>
9095
9096         * value.c (value_primitive_field): Don't fetch contents for
9097         non-virtual bases.
9098
9099 2012-03-05  Tom Tromey  <tromey@redhat.com>
9100
9101         * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9102
9103 2012-03-05  Andreas Arnez  <arnez@linux.vnet.ibm.com>
9104
9105         * s390-nat.c: Include "gregset.h".
9106
9107 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
9108
9109         * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9110         [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9111         (libunwind_load): New variable so_error, use it for dlerror.  Try to
9112         load also LIBUNWIND_SO_7.
9113
9114 2012-03-05  Pedro Alves  <palves@redhat.com>
9115
9116         * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9117         is not NULL, and remove resulting dead code.
9118
9119 2012-03-05  Thomas Schwinge  <thomas@codesourcery.com>
9120
9121         * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9122         prologue to sh_analyze_prologue.
9123         (sh_analyze_prologue): Make better use of such an upper limit, and
9124         generally be more cautious about accessing memory.
9125
9126 2012-03-05  Tom Tromey  <tromey@redhat.com>
9127
9128         * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9129         _initialize_ia64_hpux_tdep.
9130
9131 2012-03-05  Pedro Alves  <palves@redhat.com>
9132
9133         PR gdb/13766
9134
9135         * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9136         the register state is clear, supply explicit zero, instead of
9137         marking the register unavailable.
9138
9139 2012-03-05  Tristan Gingold  <gingold@adacore.com>
9140
9141         * NEWS: Mention OpenVMS ia64 new target.
9142
9143 2012-03-05  Tristan Gingold  <gingold@adacore.com>
9144
9145         * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9146         (ia64_unw_accessors, ia64_unw_rse_accessors)
9147         (ia64_libunwind_descr): Declare.
9148         * ia64-vms-tdep.c: New file.
9149         * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9150         (ia64_libunwind_descr): Make them public.
9151         * configure.tgt: Add ia64-*-*vms*.
9152         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9153         (ALLDEPFILES): Add ia64-vms-tdep.c
9154
9155 2012-03-05  Tristan Gingold  <gingold@adacore.com>
9156
9157         * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9158         * remote.c (PACKET_qXfer_uib): New enum value.
9159         (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9160         (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9161         (_initialize_remote): Call add_packet_config_cmd for
9162         xfer:uib packet.
9163
9164 2012-03-05  Tristan Gingold  <gingold@adacore.com>
9165
9166         * osabi.c (gdb_osabi_names): Add OpenVMS.
9167         (generic_elf_osabi_sniffer): Likewise.
9168         * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
9169
9170 2012-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
9171
9172         Removed unused code.
9173         * libunwind-frame.c (libunwind_frame_unwind)
9174         (libunwind_frame_base_address): Remove.
9175         * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9176
9177 2012-03-04  Yao Qi  <yao@codesourcery.com>
9178
9179         * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9180         remove trailing new line.
9181         (agent_run_command, agent_run_command): Add _ markup.
9182         (agent_capability_check): Likewise.
9183
9184 2012-03-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
9185
9186         * breakpoint.c (set_condition_evaluation_mode): Set
9187         CONDITION_EVALUATION_MODE unconditionally.
9188
9189 2012-03-03  Yao Qi  <yao@codesourcery.com>
9190
9191         * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9192         * common/agent.h: Update declaration.
9193         * inf-child.c (inf_child_use_agent): New.
9194         (inf_child_can_use_agent): New.
9195         (inf_child_target): Initialize fields `to_use_agent'
9196         and `to_can_use_agent'.
9197         * agent.c (agent_new_objfile): New.
9198         (_initialize_agent): Add agent_new_objfile to new_objfile
9199         observer.
9200
9201         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9202         New.
9203         (linux_target_install_ops): Initialize field
9204         `to_static_tracepoint_markers_by_strid'.
9205         * remote.c (free_current_marker): Move it to ...
9206         * tracepoint.c (free_current_marker): ... here.  New.
9207         (cleanup_target_stop): New.
9208         * tracepoint.h: Declare free_current_marker.
9209         * NEWS: Add one entry about `info static-tracepoint-marker'.
9210
9211 2012-03-03  Yao Qi  <yao@codesourcery.com>
9212
9213         * common/agent.c (agent_loaded_p): New.
9214         (agent_look_up_symbols): New global.
9215         * common/agent.h: Declare agent_loaded_p.
9216
9217 2012-03-03  Yao Qi  <yao@codesourcery.com>
9218
9219         * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9220         (agent_capability_check, agent_capability_invalidate): New.
9221         (symbol_list): New array element.
9222         * common/agent.h (enum agent_capa): New.
9223         * target.c (target_pre_inferior): Call agent_capability_invalidate.
9224
9225 2012-03-03  Yao Qi  <yao@codesourcery.com>
9226
9227         * target.h (struct target_ops) <to_use_agent>: New field.
9228         (struct target_ops) <to_can_use_agent>: New field.
9229         (target_use_agent, target_can_use_agent): New macro.
9230         * target.c (update_current_target): Update.
9231         * remote.c: New enum `PACKET_QAgent'.
9232         (remote_protocol_features): Add a new element.
9233         (remote_use_agent, remote_can_use_agent): New.
9234         (init_remote_ops): Initialize field `can_use_agent' with
9235         remote_can_use_agent.  Intiailize field `use_agent' with
9236         remote_use_agent.
9237         * common/agent.c (use_agent): New global.
9238         * common/agent.h: Declare it.
9239         * tracepoint.c (info_static_tracepoint_markers_command): Add
9240         comment.
9241         * Makefile.in (SFILES): Add common/agent.c and agent.c.
9242         (COMMON_OBS): Add common/agent.o and agent.o
9243         (common-agent.o): New rule.
9244         * agent.c: New.
9245
9246 2012-03-03  Yao Qi  <yao@codesourcery.com>
9247
9248         * common/agent.c: New.
9249         * common/agent.h: New.
9250         * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9251         AC_CHECK_HEADERS.
9252         * configure, configh.in: Regenerated.
9253
9254 2012-03-02  Kevin Buettner  <kevinb@redhat.com>
9255
9256         * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9257         unless it exists for this architecture.
9258
9259 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
9260
9261         * language.h (struct language_defn): New "method" la_read_var_value.
9262         * findvar.c: #include "language.h".
9263         (default_read_var_value): Renames read_var_value.  Rewrite
9264         function description.
9265         (read_var_value): New function.
9266         * value.h (default_read_var_value): Add prototype.
9267         * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
9268         New functions.
9269         (ada_language_defn): Add entry for la_read_var_value.
9270         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
9271         * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
9272         language_defn structures to add entry for new la_read_var_value
9273         field.
9274
9275 2012-03-02  Tom Tromey  <tromey@redhat.com>
9276             Pedro Alves  <palves@redhat.com>
9277
9278         PR breakpoints/13776:
9279         * breakpoint.c (breakpoint_init_inferior): Delete step-resume
9280         breakpoints.
9281         (delete_longjmp_breakpoint_at_next_stop): New.
9282         * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
9283         * target.c (generic_mourn_inferior): Call mark_breakpoints_out
9284         before deleting the inferior.  Add comments.
9285         * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
9286         breakpoints immediately, but only on next stop.  Move that code
9287         next to where we mark other breakpoints for deletion.
9288
9289 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
9290
9291         * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
9292         marker.
9293         * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
9294         violation.
9295
9296 2012-03-02  Pedro Alves  <palves@redhat.com>
9297
9298         * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
9299
9300 2012-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
9301
9302         Fix -Wmissing-prototypes build.
9303         * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
9304         * remote-sim.c (gdbsim_has_all_memory): Likewise.
9305         (gdbsim_has_memory): Likewise.
9306
9307 2012-03-02  Yao Qi  <yao@codesourcery.com>
9308
9309         Fix -Wmissing-prototypes build.
9310         * charset.c (phony_iconv_open): Make static.
9311         (phony_iconv_close, phony_iconv): Likewise.
9312         * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
9313         * i386-windows-nat.c (_initialize_i386_windows_nat): New
9314         prototype.
9315         * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
9316         * ser-mingw.c (create_select_thread): Make static.
9317         * windows-termcap.c (tgetent): New prototype.
9318         (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
9319
9320 2012-03-02  Zhang Yuanhui  <asmwarrior@gmail.com>
9321
9322         Fix -Wmissing-prototypes build.
9323         * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
9324         (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9325         (_initialize_loadable): New prototypes.
9326
9327 2012-03-02  Doug Evans  <dje@google.com>
9328
9329         * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9330         abbrev table, read_comp_unit will do it.
9331
9332 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
9333
9334         Fix -Wmissing-prototypes build.
9335         * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9336         * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9337         * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9338         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9339         (_initialize_arm_symbian_tdep): New prototype.
9340         * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9341         * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9342         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9343         static.
9344         * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9345         * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9346         prototype.
9347         * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9348         (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9349         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9350         static.
9351         * moxie-tdep.c (moxie_process_record): Likewise.
9352         * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9353         (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9354         * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9355         (_initialize_rl78_tdep): New prototype.
9356         * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9357         (_initialize_rx_tdep): New prototype.
9358         * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9359         (_initialize_darwin_solib): New prototype.
9360         * solib-spu.c: Include solib-spu.h.
9361         (_initialize_spu_solib): New prototype.
9362         * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9363         * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9364         (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9365         (tic6x_software_single_step): Make it static.
9366         (_initialize_tic6x_tdep): New prototype.
9367
9368 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
9369
9370         Fix -Wmissing-prototypes build.
9371         * cris-tdep.c (cris_can_use_hardware_watchpoint)
9372         (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9373
9374 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
9375
9376         Fix -Wmissing-prototypes build.
9377         * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9378         (frv_have_stopped_data_address): Remove.
9379
9380 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
9381
9382         Fix -Wmissing-prototypes build.
9383         * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9384         * sh-tdep.c: Include sh64-tdep.h.
9385         * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9386         * sh64-tdep.c: Include sh64-tdep.h.
9387         * sh64-tdep.h: New file.
9388
9389 2012-03-01  Maciej W. Rozycki <macro@codesourcery.com>
9390
9391         * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9392
9393 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
9394
9395         * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9396         sp_regnum once the gdbarch_init_osabi hook has been called.
9397
9398 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
9399
9400         * mips-tdep.c (mips32_bc1_pc): New function.
9401         (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9402         BPOSGE32 and BPOSGE64 instructions.
9403         (deal_with_atomic_sequence): Likewise.
9404         (mips32_instruction_has_delay_slot): Likewise.
9405
9406 2012-03-01  Maciej W. Rozycki  <macro@mips.com>
9407             Chris Dearman  <chris@mips.com>
9408             Maciej W. Rozycki  <macro@codesourcery.com>
9409             Joseph Myers  <joseph@codesourcery.com>
9410
9411         * features/mips-dsp.xml: New file.
9412         * features/mips64-dsp.xml: New file.
9413         * features/mips-dsp-linux.xml: New file.
9414         * features/mips64-dsp-linux.xml: New file.
9415         * features/Makefile (WHICH): Add mips-dsp-linux and
9416         mips64-dsp-linux.
9417         (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9418         * features/mips-dsp-linux.c: New file.
9419         * features/mips64-dsp-linux.c: New file.
9420         * regformats/mips-dsp-linux.dat: New file.
9421         * regformats/mips64-dsp-linux.dat: New file.
9422         * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9423         registers.
9424         (mips64_linux_register_addr): Likewise.
9425         (mips64_linux_regsets_fetch_registers): Likewise.
9426         (mips64_linux_regsets_store_registers): Likewise.
9427         (mips64_linux_fetch_registers): Update call to
9428         mips64_linux_regsets_fetch_registers.
9429         (mips64_linux_store_registers): Update call to
9430         mips64_linux_regsets_store_registers.
9431         (mips_linux_read_description): Probe for DSP registers.
9432         (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9433         and initialize_tdesc_mips64_dsp_linux.
9434         * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9435         Remove padding of no longer used embedded register slots.
9436         * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9437         (MIPS_RESTART_REGNUM): Redefine enum value.
9438         * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9439         strings.
9440         (mips_tx39_reg_names): Likewise.
9441         (mips_linux_reg_names): New array of register names for Linux
9442         targets.
9443         (mips_register_name): Check for a null pointer in
9444         mips_processor_reg_names and return an empty string.
9445         (mips_register_type): Exclude embedded registers for the IRIX
9446         and Linux ABIs.
9447         (mips_pseudo_register_type): Likewise.  Use dynamic numbers to
9448         refer to FP registers, LO, HI, BadVAddr, Cause and PC.  Handle
9449         DSP registers.
9450         (mips_stab_reg_to_regnum): Handle DSP accumulators.
9451         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9452         (mips_gdbarch_init): Likewise.  Initialize internal register
9453         indices for the Linux ABI.  Use dynamic numbers to refer to
9454         registers, as applicable, while parsing the target description.
9455         * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9456
9457 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9458
9459         * frame.h (read_frame_register_unsigned): Fix typo in function
9460         description.
9461
9462 2012-03-01  Pedro Alves  <palves@redhat.com>
9463
9464         * jit-reader.in [!__cplusplus]
9465         (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9466
9467 2012-03-01  Pedro Alves  <palves@redhat.com>
9468
9469         * configure.ac (build_warnings): Add -Wmissing-prototypes.
9470         * configure: Regenerate.
9471
9472 2012-03-01  Pedro Alves  <palves@redhat.com>
9473
9474         * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9475         * breakpoint.c (create_exception_master_breakpoint, trace_command)
9476         (ftrace_command, strace_command): Make static.
9477         * d-lang.c (_initialize_d_language): Declare.
9478         * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9479         * dwarf2loc.c (_initialize_dwarf2loc):
9480         * dwarf2read.c (process_psymtab_comp_unit): Make static.
9481         * exec.c (exec_get_section_table): Make static.
9482         * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9483         * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9484         * inferior.c (remove_inferior_command, add_inferior_command)
9485         (clone_inferior_command): Make static.
9486         * linux-nat.c (linux_nat_thread_address_space)
9487         (linux_nat_core_of_thread): Make static.
9488         * linux-tdep.c (_initialize_linux_tdep): Declare.
9489         * objc-lang.c (_initialize_objc_lang): Declare.
9490         * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9491         Make static.
9492         (_initialize_opencl_language): Declare.
9493         * record.c (_initialize_record): Declare.
9494         * remote.c (demand_private_info, remote_get_tib_address)
9495         (remote_supports_cond_tracepoints)
9496         (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9497         Make static.
9498         * skip.c (_initialize_step_skip): Declare.
9499         * symtab.c (skip_prologue_using_lineinfo): Make static.
9500         * tracepoint.c (delete_trace_state_variable)
9501         (trace_variable_command, delete_trace_variable_command)
9502         (get_uploaded_tsv, find_matching_tracepoint_location)
9503         (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9504         Make static.
9505         * value.c (pack_unsigned_long): Make static.
9506         * varobj.c (varobj_ensure_python_env): Make static.
9507         * windows-tdep.c (_initialize_windows_tdep): Declare.
9508         * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9509
9510 2012-03-01  Pedro Alves  <palves@redhat.com>
9511
9512         * linux-tdep.c (linux_has_shared_address_space): Make static.  Add
9513         gdbarch parameter.
9514         (linux_init_abi): Install it as has_shared_address_space gdbarch
9515         callback.
9516
9517 2012-03-01  Pedro Alves  <palves@redhat.com>
9518
9519         * observer.c (observer_test_first_notification_function)
9520         (observer_test_second_notification_function)
9521         (observer_test_third_notification_function): Add declarations.
9522
9523 2012-03-01  Pedro Alves  <palves@redhat.com>
9524
9525         * common/signals.c (default_target_signal_to_host)
9526         (default_target_signal_from_host): Move ...
9527         * arch-utils.c: ... here.
9528         * arch-utils.h (default_target_signal_to_host)
9529         (default_target_signal_from_host): Declare.
9530
9531         * common/signals.c (target_signal_from_command): Move ...
9532         * infrun.c: ... here.
9533         * inferior.h (target_signal_from_command): Declare.
9534         * target.h (target_signal_from_command)
9535         (default_target_signal_from_host, default_target_signal_to_host):
9536         Delete declarations.
9537
9538         * common/signals.c (_initialize_signals): Delete.
9539
9540 2012-03-01  Pedro Alves  <palves@redhat.com>
9541
9542         * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9543         both __cplusplus and !__cplusplus.
9544
9545 2012-03-01  Pedro Alves  <palves@redhat.com>
9546
9547         * psymtab.c (find_and_open_source): Delete declaration.
9548         * source.c (find_and_open_source): Move comment ...
9549         * source.h (find_and_open_source): ... to this new declaration.
9550
9551 2012-03-01  Pedro Alves  <palves@redhat.com>
9552
9553         * inline-frame.c: Include inline-frame.h.
9554
9555 2012-03-01  Pedro Alves  <palves@redhat.com>
9556
9557         * tui/tui-data.c (set_gen_win_origin): Delete.
9558         * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9559         * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9560
9561 2012-03-01  Pedro Alves  <palves@redhat.com>
9562
9563         * remote.c (encode_actions): Delete declaration.
9564         * tracepoint.c (encode_actions): Make extern.
9565         * tracepoint.h (encode_actions): Declare.
9566
9567 2012-03-01  Pedro Alves  <palves@redhat.com>
9568
9569         * python/py-breakpoint.c: Include python.h.
9570         * python/py-continueevent.c (create_continue_event_object): Make
9571         static.
9572         * python/py-lazy-string.c (stpy_get_type): Make static.
9573         * python/py-newobjfileevent.c (create_new_objfile_event_object):
9574         Make static.
9575         * python/py-utils.c (unicode_to_target_python_string): Make
9576         static.
9577         * python/py-value.c: Include python.h.
9578
9579 2012-03-01  Pedro Alves  <palves@redhat.com>
9580
9581         * inferior.c (delete_threads_of_inferior): Delete.
9582
9583 2012-03-01  Pedro Alves  <palves@redhat.com>
9584
9585         Import fallback definitions from glibc.
9586
9587         * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9588         ps_prochandle): Forward declare.
9589         (ps_err_e): Use glibc's comments.
9590         [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9591         (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9592         (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9593         (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9594         (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9595         (struct ps_prochandle): Adjust comment.
9596
9597 2012-03-01  Pedro Alves  <palves@redhat.com>
9598
9599         * ada-lang.c (ada_modulus_from_name): Delete.
9600         * ada-lex.l (lexer_init): Make static.
9601
9602 2012-03-01  Pedro Alves  <palves@redhat.com>
9603
9604         PR gdb/13767
9605
9606         * frame.c (read_frame_register_unsigned): New.
9607         * frame.h (read_frame_register_unsigned): Declare.
9608         * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9609         Handle it.
9610         (print_i387_control_word): New parameter `control_p'.  Handle it.
9611         (i387_print_float_info): Handle unavailable float registers.
9612
9613 2012-03-01  Keith Seitz  <keiths@redhat.com>
9614
9615         * linespec.c (decode_line_2): Sort the list of methods
9616         alphabetically before presenting the user with a selection
9617         menu.
9618
9619 2012-03-01  Doug Evans  <dje@google.com>
9620
9621         * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9622         has_namespace_info.
9623         (dwarf2_read_abbrevs): Remove corresponding initialization.
9624
9625 2012-03-01  Scott J. Goldman <scottjg@vmware.com>
9626
9627         * NEWS: Mention new python command class gdb.COMMAND_USER.
9628         * cli/cli-cmds.c (show_user): Print error when used on a python
9629         command.
9630         (init_cli_cmds): Update documentation strings for "show user" and
9631         "set/show max-user-call-depth" to clarify that it does not apply to
9632         python commands.
9633         * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9634         error check.
9635         (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9636         gdb python api.
9637         * top.c (execute_command): Only execute a user-defined command as a
9638         legacy macro if c->user_commands is set.
9639
9640 2012-03-01  Tom Tromey  <tromey@redhat.com>
9641
9642         * valprint.h (struct generic_val_print_decorations): New.
9643         (generic_val_print): Declare.
9644         * valprint.c (generic_val_print): New function.
9645         * p-valprint.c (p_decorations): New global.
9646         (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9647         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9648         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9649         TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9650         * m2-valprint.c (m2_decorations): New global.
9651         (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9652         TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9653         TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9654         TYPE_CODE_ERROR>: Call generic_val_print.
9655         * f-valprint.c (f_decorations): New global.
9656         (f_val_print): Use print_function_pointer_address.
9657         <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9658         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9659         TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9660         generic_val_print.
9661         * c-valprint.c (c_decorations): New global.
9662         (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9663         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9664         TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9665         TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9666         TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9667         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9668         case.
9669
9670 2012-03-01  Tom Tromey  <tromey@redhat.com>
9671
9672         * valprint.c (val_print): Update.
9673         * p-valprint (pascal_val_print): Return void.
9674         * p-lang.h (pascal_val_print): Return void.
9675         * m2-valprint.c (m2_val_print): Return void.
9676         * m2-lang.h (m2_val_print): Return void.
9677         * language.h (struct language_defn) <la_val_print>: Return void.
9678         * language.c (unk_lang_val_print): Return void.
9679         * jv-valprint.c (java_val_print): Return void.
9680         * jv-lang.h (java_val_print): Return void.
9681         * f-valprint.c (f_val_print): Return void.
9682         * f-lang.h (f_val_print): Return void.
9683         * d-valprint.c (d_val_print): Return void.
9684         (dynamic_array_type): Update.
9685         * d-lang.h (d_val_print): Return void.
9686         * c-valprint.c (c_val_print): Return void.
9687         * c-lang.h (c_val_print): Return void.
9688         * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9689         void.
9690         * ada-lang.h (ada_val_print): Return void.
9691
9692 2012-03-01  Tom Tromey  <tromey@redhat.com>
9693
9694         * value.h (val_print): Return void.
9695         * valprint.c (val_print): Return void.
9696
9697 2012-03-01  Tom Tromey  <tromey@redhat.com>
9698
9699         * value.h (common_val_print): Return void.
9700         * valprint.c (common_val_print): Return void.
9701
9702 2012-03-01  Tom Tromey  <tromey@redhat.com>
9703
9704         * value.h (value_print): Return void.
9705         * valprint.c (value_print): Return void.
9706         * p-valprint.c (pascal_value_print): Return void.
9707         * p-lang.h (pascal_value_print): Return void.
9708         * language.h (struct language_defn) <la_value_print>: Return
9709         void.
9710         * language.c (unk_lang_value_print): Return void.
9711         * jv-valprint.c (java_value_print): Return void.
9712         * jv-lang.h (java_value_print): Return void.
9713         * f-valprint.c (c_value_print): Don't declare.
9714         Include c-lang.h.
9715         * c-valprint.c (c_value_print): Return void.
9716         * c-lang.h (c_value_print): Return void.
9717         * ada-valprint.c (ada_value_print): Return void.
9718         * ada-lang.h (ada_value_print): Return void.
9719
9720 2012-03-01  Tom Tromey  <tromey@redhat.com>
9721
9722         * value.c (value_primitive_field): Handle virtual base classes.
9723
9724 2012-03-01  Tom Tromey  <tromey@redhat.com>
9725
9726         * gdbtypes.h (struct vbase): Remove.
9727
9728 2012-03-01  Tom Tromey  <tromey@redhat.com>
9729
9730         * c-valprint.c (print_function_pointer_address): Move...
9731         * valprint.c: ... here.  Make non-static.
9732         * m2-valprint.c (print_function_pointer_address): Remove.
9733         * valprint.h (print_function_pointer_address): Declare.
9734
9735 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9736
9737         * NEWS: Document the fact that one can provide a condition when
9738         creating an Ada exception catchpoint.
9739
9740 2012-03-01  Tom Tromey  <tromey@redhat.com>
9741
9742         * valprint.c (val_print_type_code_flags): Fix placement of
9743         trailing brace.
9744
9745 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9746
9747         * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9748         (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9749         environment variable before calling update-copyright.
9750
9751 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9752
9753         * gnulib/extra/update-copyright: Update to the latest from
9754         gnulib's git repository.
9755         * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9756         variable to 2 instead of 1.
9757
9758 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9759
9760         * varobj.c (c_value_of_variable): Remove dead code.
9761
9762 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9763
9764         * ada-lex.p (processId): Do not modify already encoded IDs.
9765         Update function documentation.
9766
9767 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9768
9769         * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9770         "name" with "struct symbol *name_sym".
9771         * ada-exp.y (write_var_or_type): Update call to
9772         ada_find_renaming_symbol.
9773         "name" with "struct symbol *name_sym". Adjust Implementation
9774         accordingly.  Adjust the function documentation.
9775
9776 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9777
9778         * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9779         * ada-lang.c (ada_find_any_type): Add advance declaration.
9780         Make static.  Replace ada_find_any_symbol by
9781         ada_find_any_type_symbol.
9782         (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9783         Improve function description.  Make static.
9784         (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9785         Replace ada_find_any_symbol by ada_find_any_type_symbol.
9786
9787 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9788
9789         * ada-lang.c (struct tag_args): Delete.
9790         (ada_get_tsd_type): Function body moved up in source file.
9791         (ada_tag_name_1, ada_tag_name_2): Delete.
9792         (ada_get_tsd_from_tag): New function.
9793         (ada_tag_name_from_tsd): New function.
9794         (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9795         to determine the tag name.
9796
9797 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9798
9799         * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9800         declaration.
9801         * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9802         function.
9803
9804 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9805
9806         * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9807
9808 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9809
9810         * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9811         full searches.
9812
9813 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9814
9815         * ada-lang.c (constrained_packed_array_type): If there is a
9816         parallel XA type, use it to determine the array index type.
9817
9818 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9819
9820         * ada-valprint.c (ada_val_print_1): If our value is a reference
9821         to an array descriptor, dereference it before converting it
9822         to a simple array.
9823
9824 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9825
9826         * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9827         creating fixed value.
9828         (ada_value_ind, ada_coerce_ref, assign_component)
9829         (ada_evaluate_subexp): Remove call to unwrap_value before
9830         call to ada_to_fixed_value.
9831
9832 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9833
9834         * ada-lang.c (to_fixed_array_type): Set result's type name.
9835
9836 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9837
9838         * ada-lang.c (catch_ada_exception_command_split): Add new
9839         argument cond_string.  Add support for condition at end of
9840         "catch exception" commands.
9841         (ada_decode_exception_location): Add new argument cond_string.
9842         Update call to catch_ada_exception_command_split.
9843         (create_ada_exception_catchpoint): Add new argument cond_string.
9844         Set the breakpoint condition if needed.
9845         (catch_ada_exception_command): Update call to
9846         ada_decode_exception_location.
9847         (ada_decode_assert_location): Add function documentation.
9848         Add support for condition at end of "catch assert" command.
9849         (catch_assert_command): Update calls to ada_decode_assert_location
9850         and create_ada_exception_catchpoint.
9851
9852 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9853
9854         Fix disp-step-syscall.exp: fork: single step over fork.
9855         * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9856         (i386_linux_get_syscall_number_from_regcache): ... here, new function
9857         comment, change parameters gdbarch and ptid to regcache.  Remove
9858         parameter regcache, initialize gdbarch from regcache here.
9859         (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9860         New functions.
9861         (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9862         instead.
9863         * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9864         'syscall'.  Make the 'int' check more strict.
9865
9866 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9867
9868         Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9869         * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9870         (i386_linux_intx80_sysenter_syscall_record): ... here.
9871         (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9872         Use the renamed function name.
9873
9874 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9875
9876         * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9877         * breakpoint.c (until_break_command): Likewise.
9878         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9879         * infcall.c (call_function_by_hand): Likewise.
9880         * infcmd.c (finish_forward): Likewise.
9881         * infrun.c (insert_exception_resume_breakpoint): Likewise.
9882
9883 2012-02-28  Tristan Gingold  <gingold@adacore.com>
9884
9885         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9886         avoid variable assignments inside condition.
9887
9888 2012-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9889
9890         Fix static analysis issue found by cppcheck.
9891         * microblaze-tdep.c (microblaze_extract_return_value): Fix
9892         uninitialized BUF for size 2.
9893
9894 2012-02-27  Chris Dearman  <chris@mips.com>
9895             Nathan Froyd  <froydnj@codesourcery.com>
9896             Maciej W. Rozycki  <macro@codesourcery.com>
9897
9898         * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9899         (mips16_instruction_has_delay_slot): Likewise.
9900         (mips_segment_boundary): Likewise.
9901         (mips_adjust_breakpoint_address): Likewise.
9902         (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9903
9904 2012-02-27  Maciej W. Rozycki  <macro@mips.com>
9905             Maciej W. Rozycki  <macro@codesourcery.com>
9906
9907         * infrun.c (handle_inferior_event): Don't proceed through
9908         shared library trampolines if stepping at the machine
9909         instruction level.
9910
9911 2012-02-27  Maciej W. Rozycki  <macro@codesourcery.com>
9912
9913         * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9914         too.
9915
9916 2012-02-27  Thomas Schwinge  <thomas@codesourcery.com>
9917
9918         * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9919         (sh_stub_unwind_sniffer): New functions.
9920         (sh_stub_unwind): New variable.
9921         (sh_gdbarch_init): Wire everything.
9922
9923 2012-02-27  Pedro Alves  <palves@redhat.com>
9924
9925         * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9926         (linux_nat_post_attach_wait): Adjust to use
9927         linux_proc_pid_is_stopped.
9928         * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9929         * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9930         based on pid_is_stopped from both linux-nat.c and
9931         gdbserver/linux-low.c, and renamed.
9932
9933 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
9934
9935         * remote.c (remote_watchpoint_addr_within_range): New function.
9936         (init_remote_ops): Use it.
9937
9938 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
9939
9940         * target.h (target_watchpoint_addr_within_range): Document macro.
9941
9942 2012-02-24  Pedro Alves  <palves@redhat.com>
9943
9944         * stack.c (set_last_displayed_sal): Issue internal_error instead
9945         of warning, and issue it after clearing the last displayed sal.
9946
9947 2012-02-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
9948             Pedro Alves  <palves@redhat.com>
9949
9950         * breakpoint.c (until_break_command): Install breakpoints after
9951         all frame manipulations.
9952
9953 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9954
9955         * remote.c (remote_supports_cond_breakpoints): New forward
9956         declaration.
9957         (remote_add_target_side_condition): New function.
9958         (remote_insert_breakpoint): Add target-side breakpoint
9959         conditional if supported.
9960         (remote_insert_hw_breakpoint): Likewise.
9961         (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9962         hook.
9963
9964         * target.c (update_current_target): Inherit
9965         to_supports_evaluation_of_breakpoint_conditions.
9966         Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9967
9968         * target.h (struct target_ops)
9969         <to_supports_evaluation_of_breakpoint_conditions>: New field.
9970         (target_supports_evaluation_of_breakpoint_conditions): New #define.
9971
9972         * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9973         (condition_evaluation_both, condition_evaluation_auto,
9974         condition_evaluation_host, condition_evaluation_target,
9975         condition_evaluation_enums, condition_evaluation_mode_1,
9976         condition_evaluation_mode): New static globals.
9977         (translate_condition_evaluation_mode): New function.
9978         (breakpoint_condition_evaluation_mode): New function.
9979         (gdb_evaluates_breakpoint_condition_p): New function.
9980         (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9981         (mark_breakpoint_modified): New function.
9982         (mark_breakpoint_location_modified): New function.
9983         (set_condition_evaluation_mode): New function.
9984         (show_condition_evaluation_mode): New function.
9985         (bp_location_compare_addrs): New function.
9986         (get_first_location_gte_addr): New helper function.
9987         (set_breakpoint_condition): Free condition bytecode if locations
9988         has become unconditional.  Call mark_breakpoint_modified (...).
9989         (condition_command): Call update_global_location_list (1) for
9990         breakpoints.
9991         (breakpoint_xfer_memory): Use is_breakpoint (...).
9992         (is_breakpoint): New function.
9993         (parse_cond_to_aexpr): New function.
9994         (build_target_condition_list): New function.
9995         (insert_bp_location): Handle target-side conditional
9996         breakpoints and call build_target_condition_list (...).
9997         (update_inserted_breakpoint_locations): New function.
9998         (insert_breakpoint_locations): Handle target-side conditional
9999         breakpoints.
10000         (bpstat_check_breakpoint_conditions): Add comment.
10001         (bp_condition_evaluator): New function.
10002         (bp_location_condition_evaluator): New function.
10003         (print_breakpoint_location): Print information on where the condition
10004         will be evaluated.
10005         (print_one_breakpoint_location): Likewise.
10006         (init_bp_location): Call mark_breakpoint_location_modified (...) for
10007         breakpoint location.
10008         (force_breakpoint_reinsertion): New functions.
10009         (update_global_location_list): Handle target-side breakpoint
10010         conditions.
10011         Reinsert locations that are already inserted if conditions have
10012         changed.
10013         (bp_location_dtor): Free agent expression bytecode.
10014         (disable_breakpoint): Call mark_breakpoint_modified (...).
10015         Call update_global_location_list (...) with parameter 1 for breakpoints.
10016         (disable_command): Call mark_breakpoint_location_modified (...).
10017         Call update_global_location_list (...) with parameter 1 for breakpoints.
10018         (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10019         (enable_command): mark_breakpoint_location_modified (...).
10020         (_initialize_breakpoint): Update documentation and add
10021         condition-evaluation breakpoint subcommand.
10022
10023         * breakpoint.h: Include ax.h.
10024         (condition_list): New data structure.
10025         (condition_status): New enum.
10026         (bp_target_info) <cond_list>: New field.
10027         (bp_location) <condition_changed, cond_bytecode>: New fields.
10028         (is_breakpoint): New prototype.
10029
10030 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
10031
10032         * remote.c (remote_state) <cond_breakpoints>: New field.
10033         (PACKET_ConditionalBreakpoints): New enum.
10034         (remote_cond_breakpoint_feature): New function.
10035         (remote_protocol_features): Add new ConditionalBreakpoints entry.
10036         (remote_supports_cond_breakpoints): New function.
10037         (_initialize_remote): Add new packet configuration for
10038         target-side conditional breakpoints.
10039
10040 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
10041
10042         * NEWS: Mention target-side conditional breakpoint support,
10043         new condition-evaluation breakpoint subcommand and remote
10044         packet extensions.
10045
10046 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
10047
10048         * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10049         number.
10050
10051 2012-02-24  Thomas Schwinge  <thomas@codesourcery.com>
10052
10053         * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10054         (after_prologue): Remove.
10055
10056 2012-02-23  Tom Tromey  <tromey@redhat.com>
10057
10058         * jv-valprint.c (java_val_print): Remove dead code.
10059
10060 2012-02-23  Tristan Gingold  <gingold@adacore.com>
10061
10062         * ada-tasks.c (struct ada_tasks_inferior_data): Add
10063         known_tasks_element and known_tasks_length fields.
10064         (read_known_tasks_array): Change argument type.  Use pointer type
10065         and number of elements from DATA.  Adjust.
10066         (read_known_tasks_list): Likewise.
10067         (get_known_tasks_addr): Remove.
10068         (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10069         (ada_tasks_inferior_data_sniffer): ... this.  Use symtab for element
10070         type and array length.  Merge former get_known_tasks_addr code.
10071
10072 2012-02-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
10073
10074         PR backtrace/13716
10075         * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10076         it after set_momentary_breakpoint.
10077
10078 2012-02-22  Sterling Augustine  <saugustine@google.com>
10079
10080         PR 13689:
10081         * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10082
10083 2012-02-22  Gary Benson  <gbenson@redhat.com>
10084
10085         * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10086         (find_slot_in_mapped_hash): Likewise.
10087
10088 2012-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
10089
10090         PR build/13638
10091         * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10092         (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10093         * configure: Regenerate.
10094
10095 2012-02-21  Tristan Gingold  <gingold@adacore.com>
10096             Pedro Alves  <palves@redhat.com>
10097
10098         * ia64-tdep.c: Do not include libunwind-ia64.h.
10099         * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10100         Include libunwind-ia64.h instead of libunwind.h.
10101         * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10102         for libunwind.h existence.
10103         * configure, config.in: Regenerate.
10104
10105 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
10106
10107         * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10108         instead of value_rtti_target_type.
10109         * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10110         instead of value_rtti_target_type.
10111         * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10112         value_rtti_target_type.
10113         * valops.c (value_ind): Extract function readjust_indirect_value_type.
10114         (value_rtti_target_type): Rename to ...
10115         (value_rtti_indirect_type): ... here and make it indirect.  Update
10116         function comment.
10117         * value.c (readjust_indirect_value_type): New function.
10118         (coerce_ref): Support for enclosing type setting for references
10119         with readjust_indirect_value_type.
10120         * value.h (readjust_value_type): New declaration.
10121         (value_rtti_target_type): Rename to ...
10122         (value_rtti_indirect_type): ... here.
10123
10124 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
10125
10126         * MAINTAINERS (Write After Approval): Add myself to the list.
10127
10128 2012-02-20  Doug Evans  <dje@google.com>
10129
10130         * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10131         Rename objfile_p_char parameter to objfilep.
10132         (build_objfile_section_table): Result is now void.  All callers
10133         updated.
10134         * objfiles.h (struct objfile): Tweak comments, whitespace.
10135         (build_objfile_section_table): Update.
10136
10137         * elfread.c (elf_symfile_segments): Fix warning text.
10138
10139 2012-02-20  Tom Tromey  <tromey@redhat.com>
10140
10141         PR gdb/13498:
10142         * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10143         particular set of file names once.
10144         (dw2_map_symbol_filenames): Likewise.
10145
10146 2012-02-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
10147
10148         Code cleanup.
10149         * main.c (write_files): Remove the declaration.
10150         (external_editor_command): Move the declaration ...
10151         [GDBTK] (external_editor_command): ... here.  Fix the comment.
10152
10153 2012-02-20  Tom Tromey  <tromey@redhat.com>
10154
10155         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10156         extraneous block.
10157
10158 2012-02-20  Tristan Gingold  <gingold@adacore.com>
10159
10160         * darwin-nat.h (enum darwin_msg_state): Add comments.
10161
10162 2012-02-20  Tristan Gingold  <gingold@adacore.com>
10163
10164         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10165         value.
10166
10167 2012-20-18  Joel Brobecker  <brobecker@adacore.com>
10168
10169         * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10170         between function description and implementation.
10171
10172 2012-02-17  Tom Tromey  <tromey@redhat.com>
10173
10174         PR python/12070:
10175         * python/py-event.c (event_object_getset): New global.
10176         (event_object_type): Reference it.
10177         * python/py-type.c (field_object_getset): New global.
10178         (field_object_type): Reference it.
10179         * python/python-internal.h (gdb_py_generic_dict): Declare.
10180         * python/py-utils.c (gdb_py_generic_dict): New function.
10181
10182 2012-02-17  Tristan Gingold  <gingold@adacore.com>
10183
10184         * solib-darwin.c (darwin_current_sos): Check magic and filetype
10185
10186 2012-02-17  Thomas Schwinge  <thomas@codesourcery.com>
10187
10188         * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10189         TYPE_CALLING_CONVENTION annotation.
10190
10191 2012-02-16  Kevin Buettner  <kevinb@redhat.com>
10192
10193         * MAINTAINERS: Add rx to target ISA section.
10194         * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10195         (ALLDEPFILES): Add rx-tdep.c.
10196
10197 2012-02-16  Tom Tromey  <tromey@redhat.com>
10198
10199         * symfile.c (symbol_file_add_main_1): Use inferior's
10200         symfile_flags.
10201         * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10202         * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10203         inferior.
10204         * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10205         inferior.
10206         (follow_exec): Use inferior's symfile_flags.
10207         * inferior.h (struct inferior) <symfile_flags>: New field.
10208
10209 2012-02-16  Mike Frysinger  <vapier@gentoo.org>
10210
10211         PR gdb/9734:
10212         * remote-sim.c (gdbsim_create_inferior): Call error() when
10213         sim_create_inferior() fails.
10214
10215 2012-02-16  Josh Matthews  <josh@joshmatthews.net>
10216
10217         * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10218
10219 2012-02-16  Tom Tromey  <tromey@redhat.com>
10220
10221         PR c++/13653:
10222         * thread.c (struct current_thread_cleanup) <was_removable>: New
10223         field.
10224         (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10225         (make_cleanup_restore_current_thread): Initialize new field.
10226
10227 2012-02-15  Kevin Buettner  <kevinb@redhat.com>
10228
10229         * MAINTAINERS: Add rl78 to target ISA section.
10230         * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10231         (ALLDEPFILES): Add rl78-tdep.c.
10232         * NEWS: Mention rl78 as a new target.
10233
10234 2012-02-15  Aleksandar Ristovski  <aristovski@qnx.com>
10235
10236         * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10237         data.
10238         * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10239
10240 2012-02-15  Tom Tromey  <tromey@redhat.com>
10241
10242         PR gdb/12659:
10243         * infcmd.c (registers_info): Print just the current register's
10244         name.
10245
10246 2012-02-15  Tom Tromey  <tromey@redhat.com>
10247
10248         * python/py-symbol.c (sympy_value): Use _().
10249
10250 2012-02-15  Pedro Alves  <palves@redhat.com>
10251
10252         * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10253         output to be like native targets'.
10254         (remote_pid_to_str): Special case the null ptid.
10255
10256 2012-02-14  Stan Shebs  <stan@codesourcery.com>
10257
10258         * NEWS: Mention enable count command.
10259         * breakpoint.h (struct breakpoint): New field enable_count.
10260         * breakpoint.c (enable_breakpoint_disp): Add count argument.
10261         (enable_breakpoint): Add arg to call.
10262         (struct disp_data): New struct.
10263         (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
10264         (do_map_enable_once_breakpoint): Create a struct and pass it.
10265         (do_map_enable_delete_breakpoint): Ditto.
10266         (do_map_enable_count_breakpoint): New function.
10267         (enable_count_command): New function.
10268         (bpstat_stop_status): Decrement enable_count.
10269         (print_one_breakpoint_location): Report enable count.
10270         (_initialize_breakpoint): Add enable count command.
10271
10272 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
10273
10274         * rl78-tdep.c (reggroups.h): Include.
10275         (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
10276         (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
10277         (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
10278         (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
10279         (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
10280         (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
10281         (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
10282         (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
10283         (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
10284         (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
10285         (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
10286         (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
10287         (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
10288         (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
10289         (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
10290         (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
10291         beginning of register list.
10292         (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
10293         (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
10294         (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
10295         (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
10296         (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
10297         (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
10298         (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
10299         (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
10300         (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
10301         (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
10302         (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
10303         the pseudo registers.  Rearrange other pseudo registers too so
10304         that the bank registers appear at the end.
10305         (rl78_register_type): Account for the fact that the byte sized
10306         bank registers are now pseudo-registers.
10307         (rl78_register_name): Rearrange the register name array.  Make
10308         initial set of raw banked registers inaccessible.
10309         (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
10310         (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
10311         case for copying bytes back and forth between raw and pseudo
10312         versions of the banked registers.  Update other cases to reflect
10313         the changed names.
10314         (rl78_return_value): Update to account for changed names of
10315         raw registers.
10316         (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
10317         rl78_register_sim_regno().
10318
10319 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
10320
10321         * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
10322         the name parameter being passed to find_pc_partial_function().
10323
10324 2012-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10325
10326         * MAINTAINERS: Step down from being ia64 target maintainer.
10327
10328 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
10329
10330         * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10331         compilation warning.
10332
10333 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
10334
10335         Fix crash on loaded shlibs without loaded exec_bfd.
10336         * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10337         (set_section_command): Replace exec_bfd by p->bfd.
10338
10339 2012-02-10  Tom Tromey  <tromey@redhat.com>
10340
10341         * linespec.c (decode_line_internal): Skip symtabs_from_filename
10342         when we have a C++ qualified name.
10343
10344 2012-02-10  Pedro Alves  <palves@redhat.com>
10345
10346         * inferior.c (inferior_pid_to_str): New.
10347         (print_inferior, inferior_command): Use it.
10348
10349 2012-02-10  Pedro Alves  <palves@redhat.com>
10350
10351         * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10352         the test CFLAGS.
10353         * configure: Regenerate.
10354
10355 2012-02-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10356
10357         * linespec.c (decode_line_internal): Fix comment correctness.
10358
10359 2012-02-09  Valery Khromov  <valery.khromov@gmail.com>
10360
10361         PR gdb/12953
10362         * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10363         * amd64bsd-nat.c: Add support for debug registers (adapted from
10364         i386bsd-nat.c).
10365         [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10366         (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10367         (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10368         (amd64bsd_dr_get_control): New functions.
10369         * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10370         * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10371         [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10372         watchpoints initialization.
10373         * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10374
10375 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
10376
10377         * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10378         flds_bnds.fields.
10379         (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10380
10381 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
10382
10383         * breakpoint.c (bp_location_compare): Fix comment.  Reindent the code.
10384
10385 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
10386
10387         * language.h (symbol_name_cmp_ftype): Renames
10388         symbol_name_match_p_ftype.
10389         (struct language_defn)[la_get_symbol_name_cmp]: Renames
10390         la_get_symbol_name_match_p.
10391         * ada-lang.c (ada_get_symbol_name_cmp): Renames
10392         ada_get_symbol_name_match_p.  Update comment.
10393         (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10394         * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10395         Renames symbol_name_match_p.  Update field type.
10396         (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10397         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10398         opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10399         "la_get_symbol_name_cmp" in comments.
10400         * language.c: Likewise.
10401
10402 2012-02-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10403
10404         * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10405         %eflags offset.
10406         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10407         (amd64_sol2_gregset32_reg_offs): Likewise.
10408
10409 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
10410
10411         * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10412         of the returned BFD is allocated by GDB.
10413
10414 2012-02-07  Tom Tromey  <tromey@redhat.com>
10415
10416         PR python/12027:
10417         * python/python-internal.h (frame_object_type): Declare.
10418         * python/py-symbol.c (sympy_needs_frame): New function.
10419         (sympy_value): New function.
10420         (symbol_object_getset): Add "needs_frame".
10421         (symbol_object_methods): Add "value".
10422         * python/py-frame.c (frame_object_type): No longer static.
10423
10424 2012-02-07  Tom Tromey  <tromey@redhat.com>
10425
10426         PR python/13599:
10427         * python/py-symbol.c (sympy_line): New function.
10428         (symbol_object_getset): Add "line".
10429
10430 2012-02-07  Tom Tromey  <tromey@redhat.com>
10431
10432         * charset.c (find_charset_names): Check 'in' against NULL.
10433
10434 2012-02-06  Doug Evans  <dje@google.com>
10435
10436         * gdbtypes.h (struct main_type): Change type of name,tag_name,
10437         and fields.name members from char * to const char *.  All uses updated.
10438         (struct cplus_struct_type): Change type of fn_fieldlists.name member
10439         from char * to const char *.  All uses updated.
10440         (type_name_no_tag): Update.
10441         (lookup_unsigned_typename, lookup_signed_typename): Update.
10442         * gdbtypes.c (type_name_no_tag): Change result type
10443         from char * to const char *.  All callers updated.
10444         (lookup_unsigned_typename, lookup_signed_typename): Change type of
10445         name parameter from char * to const char *.
10446         * symtab.h (struct cplus_specific): Change type of demangled_name
10447         member from char * to const char *.  All uses updated.
10448         (struct general_symbol_info): Change type of name and
10449         mangled_lang.demangled_name members from char * to const char *.
10450         All uses updated.
10451         (symbol_get_demangled_name, symbol_natural_name): Update.
10452         (symbol_demangled_name, symbol_search_name): Update.
10453         * symtab.c (symbol_get_demangled_name): Change result type
10454         from char * to const char *.  All callers updated.
10455         (symbol_natural_name, symbol_demangled_name): Ditto.
10456         (symbol_search_name): Ditto.
10457         (completion_list_add_name): Change type of symname,sym_text,
10458         text,word parameters from char * to const char *.
10459         (completion_list_objc_symbol): Change type of sym_text,
10460         text,word parameters from char * to const char *.
10461         * ada-lang.c (find_struct_field): Change type of name parameter
10462         from char * to const char *.
10463         (encoded_ordered_before): Similarly for N0,N1 parameters.
10464         (old_renaming_is_invisible): Similarly for function_name parameter.
10465         (ada_type_name): Change result type from char * to const char *.
10466         All callers updated.
10467         * ada-lang.h (ada_type_name): Update.
10468         * buildsym.c (hashname): Change type of name parameter
10469         from char * to const char *.
10470         * buildsym.h (hashname): Update.
10471         * dbxread.c (end_psymtab): Change type of include_list parameter
10472         from char ** to const char **.
10473         * dwarf2read.c (determine_prefix): Change result type
10474         from char * to const char *.  All callers updated.
10475         * f-lang.c (find_common_for_function): Change type of name, funcname
10476         parameters from char * to const char *.
10477         * f-lang.c (find_common_for_function): Update.
10478         * f-valprint.c (list_all_visible_commons): Change type of funcname
10479         parameters from char * to const char *.
10480         * gdbarch.sh (static_transform_name): Change type of name parameter
10481         and result from char * to const char *.
10482         * gdbarch.c: Regenerate.
10483         * gdbarch.h: Regenerate.
10484         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10485         of name parameter from char * to const char *.
10486         * jv-lang.c (java_primitive_type_from_name): Ditto.
10487         (java_demangled_signature_length): Similarly for signature parameter.
10488         (java_demangled_signature_copy): Ditto.
10489         (java_demangle_type_signature): Ditto.
10490         * jv-lang.h (java_primitive_type_from_name): Update.
10491         (java_demangle_type_signature): Update.
10492         * objc-lang.c (specialcmp): Change type of a,b parameters
10493         from char * to const char *.
10494         * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10495         from char * to const char *.  All callers updated.
10496         * p-lang.h (is_pascal_string_type): Update.
10497         * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10498         of name parameter from char * to const char *.
10499         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10500         * utils.c (fprintf_symbol_filtered): Ditto.
10501         * defs.h (fprintf_symbol_filtered): Update.
10502         * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10503         * stabsread.h (end_psymtab): Update.
10504         * stack.c (find_frame_funname): Change type of funname parameter
10505         from char ** to const char **.
10506         * stack.h (find_frame_funname): Update.
10507         * typeprint.c (type_print): Change type of varstring parameter
10508         from char * to const char *.
10509         * value.h (type_print): Update.
10510         * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10511         from char * to const char *.  All callers updated.
10512         (xcoff_end_psymtab): Change type of include_list parameter
10513         from char ** to const char **.  All callers updated.
10514         (swap_sym): Similarly for name parameter.  All callers updated.
10515         * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10516         Use xstrdup.
10517         (process_coff_symbol): Use xstrdup.
10518         * stabsread.c (stabs_method_name_from_physname): Renamed from
10519         update_method_name_from_physname.  Change result type from void
10520         to char *.  All callers updated.
10521         (read_member_functions): In has_destructor case, store name in objfile
10522         obstack instead of malloc space.  In !has_stub case, fix mem leak.
10523
10524 2012-02-06  Luca Pizzamiglio  <luca.pizzamiglio@gmail.com>
10525
10526         * configure: Rebuild.
10527         * configure.ac: Put -L../bfd and -L../libiberty at the front of
10528         LDFLAGS.
10529
10530 2012-02-03  Kevin Buettner  <kevinb@redhat.com>
10531
10532         * configure.tgt (rl78-*-elf): New target.
10533         * rl78-tdep.c: New file.
10534
10535 2012-02-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
10536
10537         * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10538         and continue the loop.  Add QUIT statement.
10539
10540 2012-02-03  Tom Tromey  <tromey@redhat.com>
10541
10542         PR gdb/13596:
10543         * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10544         bfd_lookup_symbol_from_symtab.
10545         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10546         gdb_bfd_lookup_symbol_from_symtab.
10547
10548 2012-02-03  Joel Brobecker  <brobecker@adacore.com>
10549
10550         * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10551         use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10552         symbol.  Add assertion that sym2 is never NULL.
10553
10554 2012-02-02  Doug Evans  <dje@google.com>
10555
10556         * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10557         "name" parameter to const char ** from char **.  All callers updated.
10558         (find_pc_partial_function): Ditto.
10559         (cache_pc_function_name): Change type to const char * from char *.
10560         * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10561         (find_pc_partial_function): Update.
10562         * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10563         type of "name" parameter to const char * from char *.
10564         All uses updated.
10565         * arch-utils.c (generic_in_solib_return_trampoline): Change
10566         type of "name" parameter to const char * from char *.
10567         * arch-utils.h (generic_in_solib_return_trampoline): Update.
10568         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10569         type of "name" parameter to const char * from char *.
10570         * gdbarch.sh (in_solib_return_trampoline): Ditto.
10571         * gdbarch.c: Regenerate.
10572         * gdbarch.h: Regenerate.
10573         * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10574         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10575         * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10576         type of "name" parameter to const char * from char *.
10577         * skip.c (skip_function_pc): Ditto.
10578         * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10579         * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10580         * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10581         * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10582         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10583         * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10584         * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10585         * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10586         * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10587
10588 2012-02-02  Pedro Alves  <palves@redhat.com>
10589
10590         * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10591         the current inferior has no execution.  Make sure the current
10592         remote process matches gdb's current inferior.
10593
10594 2012-02-02  Tom Tromey  <tromey@redhat.com>
10595
10596         PR gdb/13405:
10597         * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10598         read-only memory.
10599
10600 2012-02-02  Tom Tromey  <tromey@redhat.com>
10601
10602         PR gdb/9307:
10603         * symtab.c (lookup_language_this): Set block_found.
10604
10605 2012-02-01  Tom Tromey  <tromey@redhat.com>
10606
10607         PR gdb/13431:
10608         * jit.c (struct jit_inferior_data): Rewrite.
10609         (struct jit_objfile_data): New.
10610         (get_jit_objfile_data): New function.
10611         (add_objfile_entry): Update.
10612         (jit_read_descriptor): Return int.  Replace descriptor_addr
10613         argument with inf_data.  Update.  Don't call error.
10614         (jit_breakpoint_re_set_internal): Reorder logic.  Update.  Look up
10615         descriptor here.
10616         (jit_inferior_init): Don't look up descriptor.  Don't call error.
10617         (jit_reset_inferior_data_and_breakpoints)
10618         (jit_inferior_created_observer): Remove.
10619         (jit_inferior_exit_hook): Update.
10620         (jit_executable_changed_observer): Remove.
10621         (jit_event_handler): Update.
10622         (free_objfile_data): Reset inferior data if needed.
10623         (_initialize_jit): Update.
10624
10625 2012-02-01  Tom Tromey  <tromey@redhat.com>
10626
10627         * jit.c (bfd_open_from_target_memory): Move higher in file.
10628
10629 2012-02-01  Tristan Gingold  <gingold@adacore.com>
10630
10631         * libunwind-frame.c (libunwind_load): Display message if dlopen
10632         failed.
10633
10634 2012-02-01  Gary Benson  <gbenson@redhat.com>
10635
10636         * symtab.h (symbol_found_callback_ftype): New typedef.
10637         (iterate_over_symbols): Use the above.
10638         * symtab.c (iterate_over_symbols): Likewise.
10639         * language.h (language_defn->la_iterate_over_symbols): Likewise.
10640         * ada-lang.c (ada_iterate_over_symbols): Likewise.
10641         * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10642         (iterate_name_matcher): Document return values.
10643         (collect_one_symbol): Likewise.
10644         (collect_function_symbols): Likewise.
10645         (collect_symbols): Likewise.
10646
10647 2012-02-01  Tom Tromey  <tromey@redhat.com>
10648
10649         * ada-lang.c (resolve_subexp): Update.
10650         (ada_lookup_symbol_list): Add 'full_search' argument.
10651         (ada_iterate_over_symbols): Pass 0 as full_search argument to
10652         ada_lookup_symbol_list.
10653         (ada_lookup_encoded_symbol): Update.
10654         (get_var_value): Update.
10655         * ada-exp.y (block_lookup): Update.
10656         (write_var_or_type): Update.
10657         (write_name_assoc): Update.
10658         * ada-lang.h (ada_lookup_symbol_list): Update.
10659
10660 2012-01-31  Tom Tromey  <tromey@redhat.com>
10661
10662         * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10663         comment.
10664
10665 2012-01-31  Doug Evans  <dje@google.com>
10666
10667         * symtab.h: Remove outdated comment.
10668         (SYMBOL_MATCHES_NATURAL_NAME): Delete.
10669
10670 2012-02-01  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
10671
10672         Fix build error in Darwin port.
10673         * i386-darwin-nat.c: Include i386-nat.h.
10674
10675 2012-01-30  Tom Tromey  <tromey@redhat.com>
10676
10677         PR breakpoints/13568:
10678         * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10679         argument.  Check for recursive includes.
10680         (dwarf_decode_macros): Create an include hash.
10681
10682 2012-01-30  Michael Eager  <eager@eagercon.com>
10683
10684         * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10685         * ppc-linux-tdep.c: Include glibc-tdep.h.
10686         (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
10687         (powerpc_linux_in_plt_stub): New function.
10688         (powerpc_linux_in_dynsym_resolve_code): New function.
10689         (ppc_skip_trampoline_code): New function.
10690         (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10691         Use glibc_skip_solib_resolver.
10692
10693 2012-01-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
10694
10695         Code cleanup: Make 1440 bytes of data segment read-only.
10696         * arch-utils.c (endian_enum): Make it const char *const [].
10697         * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10698         Likewise.
10699         * breakpoint.c (always_inserted_enums): Likewise.
10700         * cli/cli-cmds.c (script_ext_enums): Likewise.
10701         * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10702         enumlist parameter const char *const *.
10703         * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10704         const char *const *.
10705         * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10706         parameter const char *const *.
10707         * cris-tdep.c (cris_modes): Make it const char *const [].
10708         * filesystem.c (target_file_system_kinds): Likewise.
10709         * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10710         * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10711         (can_use_displaced_stepping_enum, scheduler_enums)
10712         (exec_direction_names): Likewise.
10713         * language.c (_initialize_language): Make the type_or_range_names and
10714         case_sensitive_names variables const char *const [].
10715         * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10716         * python/python.c (python_excp_enums): Likewise.
10717         * remote.c (interrupt_sequence_modes): Likewise.
10718         * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10719         * serial.c (logbase_enums): Likewise.
10720         * sh-tdep.c (sh_cc_enum): Likewise.
10721         * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10722         Likewise.
10723         * symtab.c (multiple_symbols_modes): Likewise.
10724         * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10725         Likewise.
10726         * utils.c (internal_problem_modes): Likewise.
10727
10728 2012-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
10729
10730         Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10731         * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10732         result.
10733
10734 2012-01-27  Doug Evans  <dje@google.com>
10735
10736         * configure.ac (with_python): Fix absolute path handling for win32.
10737         * configure: Regenerate.
10738
10739 2012-01-26  Doug Evans  <dje@google.com>
10740
10741         * symtab.c: Whitespace cleanup, no code changes.
10742
10743         * symtab.c (lookup_symbol_in_language): Improve comment.
10744         (lookup_symbol_aux): Fix comment.
10745
10746         * psymtab.c (add_psymbol_to_list): Result is now "void".
10747         * psympriv.h (add_psymbol_to_list): Update.
10748
10749         * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10750
10751 2012-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10752
10753         Do not open script filenames twice.
10754         * cli/cli-cmds.c (source_script_from_stream): Pass to
10755         source_python_script also STREAM.
10756         * python/py-auto-load.c (source_section_scripts): Pass to
10757         source_python_script_for_objfile also STREAM.
10758         (auto_load_objfile_script): Pass to source_python_script_for_objfile
10759         also INPUT.
10760         * python/python-internal.h (source_python_script_for_objfile): New
10761         parameter file, rename parameter file to filename.
10762         * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10763         instead if !_WIN32.  Update the function comment.
10764         (source_python_script, source_python_script_for_objfile)
10765         (source_python_script): New parameter file, rename parameter file to
10766         filename.  Pass FILENAME to python_run_simple_file.
10767         * python/python.h (source_python_script): New parameter file, rename
10768         parameter file to filename.
10769
10770 2012-01-26  Pedro Alves  <palves@redhat.com>
10771
10772         * corelow.c (core_has_fake_pid): Delete.
10773         (core_close): Delete references to `core_has_fake_pid'.
10774         (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10775         (core_open): Delete references to `core_has_fake_pid'.
10776         (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10777         the removed global.
10778
10779 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
10780
10781         * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10782         Remove language parameter from name_matcher.  Adjust the comment.
10783         * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10784         Remove language parameter.
10785         * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10786         * linespec.c (iterate_name_matcher): Likewise.
10787         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10788         name_matcher.  Adjust call accordingly.
10789         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10790         (maintenance_check_symtabs): Adjust type of parameter "fun".
10791         * psymtab.h (maintenance_check_symtabs): Likewise.
10792
10793 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
10794
10795         * language.h (symbol_name_match_p_ftype): New typedef.
10796         (struct language_defn): Replace field la_symbol_name_compare
10797         by la_get_symbol_name_match_p.
10798         * ada-lang.c (ada_get_symbol_name_match_p): New function.
10799         (ada_language_defn): Use it.
10800         * linespec.c (struct symbol_matcher_data): New type.
10801         (iterate_name_matcher): Rewrite.
10802         (iterate_over_all_matching_symtabs): Pass a pointer to
10803         a symbol_matcher_data struct to expand_symtabs_matching
10804         instead of just the lookup name.
10805         * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10806         opencl-lang.c, p-lang.c, language.c: Delete field
10807         la_symbol_name_compare, and replace by NULL for new field
10808         la_get_symbol_name_match_p.
10809         * symfile.h (struct quick_symbol_functions): Update comment.
10810
10811 2012-01-25  Tom Tromey  <tromey@redhat.com>
10812
10813         * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10814         dereferencing.
10815
10816 2012-01-24  Tom Tromey  <tromey@redhat.com>
10817
10818         PR symtab/12406:
10819         * solib.c (update_solib_list): Update the program space's
10820         added_solibs and deleted_solibs fields.
10821         * progspace.h (struct program_space) <added_solibs,
10822         deleted_solibs>: New fields.
10823         (clear_program_space_solib_cache): Declare.
10824         * progspace.c (release_program_space): Call
10825         clear_program_space_solib_cache.
10826         (clear_program_space_solib_cache): New function.
10827         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10828         bpstat_stop_status.  Use handle_solib_event.
10829         * breakpoint.c: Include gdb_regex.h.
10830         (print_solib_event): New function.
10831         (bpstat_print): Use print_solib_event.
10832         (bpstat_stop_status): Add special case for bp_shlib_event.
10833         (handle_solib_event): New function.
10834         (bpstat_what): Use handle_solib_event.
10835         (struct solib_catchpoint): New.
10836         (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10837         (breakpoint_hit_catch_solib, check_status_catch_solib)
10838         (print_it_catch_solib, print_one_catch_solib)
10839         (print_mention_catch_solib, print_recreate_catch_solib): New
10840         functions.
10841         (catch_solib_breakpoint_ops): New global.
10842         (catch_load_or_unload, catch_load_command_1)
10843         (catch_unload_command_1): New functions.
10844         (internal_bkpt_check_status): Add special case for
10845         bp_shlib_event.
10846         (internal_bkpt_print_it): Use print_solib_event.
10847         (initialize_breakpoint_ops): Initialize
10848         catch_solib_breakpoint_ops.
10849         (_initialize_breakpoint): Register "catch load" and "catch
10850         unload".
10851         * breakpoint.h (handle_solib_event): Declare.
10852         * NEWS: Add entry for "catch load" and "catch unload".
10853
10854 2012-01-24  Tom Tromey  <tromey@redhat.com>
10855
10856         * ada-lang.c: Include gdb_vecs.h.
10857         * charset.c: Include gdb_vecs.h.
10858         * tracepoint.h: Include gdb_vecs.h.
10859         * gdb_vecs.h: New file.
10860
10861 2012-01-24  Pedro Alves  <pedro@codesourcery.com>
10862
10863         * breakpoint.c (breakpoint_hit_catch_fork)
10864         (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10865         (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10866         * infrun.c (inferior_has_forked, inferior_has_vforked)
10867         (inferior_has_execd, inferior_has_called_syscall): Delete.
10868         (handle_syscall_event): Get syscall_number from the execution
10869         control state's wait status.
10870         (wait_for_inferior): Don't clear syscall_number.
10871
10872 2012-01-24  Pedro Alves  <palves@redhat.com>
10873
10874         * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10875         pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10876         (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10877         (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10878         `ws' parameter.
10879         (breakpoint_hit_ranged_breakpoint): Add `ws' parameter.  Return
10880         false for events other than TARGET_SIGNAL_TRAP.
10881         (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10882         Add `ws' parameter.
10883         (bkpt_breakpoint_hit): Add `ws' parameter.  Return false for
10884         events other than TARGET_SIGNAL_TRAP.
10885         (tracepoint_breakpoint_hit): Add `ws' parameter.
10886         * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10887         parameter.
10888         (bpstat_stop_status): Same.
10889         (pc_at_non_inline_function): Same.
10890         * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10891         to pass the current event's waitstatus to bpstat_stop_status
10892         and pc_at_non_inline_function.
10893
10894 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10895
10896         Code cleanup.
10897         * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10898         Update the function comment for it.
10899         (source_script_with_search): Call make_cleanup_fclose for STREAM.
10900         * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10901         for STREAM.
10902
10903 2012-01-24  Pedro Alves  <palves@redhat.com>
10904
10905         * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10906         outside `bs->stop' block.
10907         (bpstat_what): Rework bp_shlib_event handling.
10908         (internal_bkpt_check_status): If the breakpoint is a
10909         bp_shlib_event, then set bs->stop and bs->print if
10910         stop_on_solib_events is set.
10911
10912 2012-01-24  Gary Benson  <gbenson@redhat.com>
10913
10914         Delete #if 0'd out code.
10915         * stack.c (print_frame_label_vars): Remove.
10916         (catch_info): Likewise.
10917         (_initialize_stack): Remove "info catch" command.
10918         * NEWS: Mention the above.
10919
10920 2012-01-24  Pedro Alves  <palves@redhat.com>
10921
10922         * remote.c (remote_add_inferior): New `fake_pid_p' parameter.  Use
10923         it.
10924         (remote_notice_new_inferior): If the remote end doesn't support
10925         the multiprocess extensions, then the PID is fake.
10926         (add_current_inferior_and_thread): New.
10927         (remote_start_remote): Use it.
10928         (extended_remote_attach_1): Adjust.
10929         (extended_remote_create_inferior_1): Use
10930         add_current_inferior_and_thread.
10931
10932 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10933
10934         Fix watchpoints to be specific for each inferior.
10935         * breakpoint.c (watchpoint_in_thread_scope): Verify also
10936         current_program_space.
10937         * i386-nat.c (i386_inferior_data_cleanup): New.
10938         (i386_inferior_data_get): Replace variable inf_data_local by an
10939         inferior_data call.
10940         (i386_use_watchpoints): Initialize i386_inferior_data.
10941         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10942         specific iterate_over_lwps.
10943
10944 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10945
10946         Fix watchpoints across inferior fork.
10947         * amd64-linux-nat.c (update_debug_registers_callback): Update the
10948         comment for linux_nat_iterate_watchpoint_lwps.
10949         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10950         linux_nat_iterate_watchpoint_lwps.
10951         (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10952         * i386-linux-nat.c (update_debug_registers_callback): Update the
10953         comment for linux_nat_iterate_watchpoint_lwps.
10954         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10955         linux_nat_iterate_watchpoint_lwps.
10956         (i386_linux_prepare_to_resume): New comment on Linux kernel.
10957         * i386-nat.c: Include inferior.h.
10958         (dr_mirror): Remove.
10959         (i386_inferior_data, struct i386_inferior_data)
10960         (i386_inferior_data_get): New.
10961         (i386_debug_reg_state): Use i386_inferior_data_get.
10962         (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10963         (i386_insert_watchpoint, i386_remove_watchpoint)
10964         (i386_stopped_data_address, i386_insert_hw_breakpoint)
10965         (i386_remove_hw_breakpoint): New variable state, use
10966         i386_debug_reg_state instead of DR_MIRROR.
10967         * linux-nat.c (delete_lwp): New declaration.
10968         (num_lwps): Move here from downwards.
10969         (delete_lwp_cleanup): New.
10970         (linux_child_follow_fork): Create new child_lp, call
10971         linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10972         PTRACE_DETACH.
10973         (num_lwps): Move upwards.
10974         (linux_nat_iterate_watchpoint_lwps): New.
10975         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10976         (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10977
10978 2012-01-24  Joel Brobecker  <brobecker@adacore.com>
10979
10980         GDB 7.4 released.
10981
10982 2012-01-23  Pedro Alves  <palves@redhat.com>
10983
10984         * top.c (caution): Rename to ...
10985         (confirm): ... this.
10986         (show_caution): Rename to ...
10987         (show_confirm): ... this.
10988         (quit_cover): Adjust.
10989         (init_main): Adjust.
10990         * top.h (caution): Rename to ...
10991         (confirm): ... this.
10992         * utils.c (internal_vproblem, defaulted_query): Adjust.
10993
10994 2012-01-23  Pedro Alves  <palves@redhat.com>
10995
10996         * top.c (caution): Update comment.
10997         (execute_command): Don't consider the current value of `caution'.
10998
10999 2012-01-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
11000
11001         * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11002
11003 2012-01-23  Ulrich Weigand  <ulrich.weigand@linaro.org>
11004
11005         * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11006         * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11007         * target.c (target_fileio_pwrite): Remove buffer address from
11008         debug output.
11009         (target_fileio_pread): Likewise.
11010
11011 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
11012
11013         * NEWS: Document remote "info proc" and "generate-core-file".
11014
11015 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
11016
11017         * gdbarch.sh (find_memory_regions): New callback.
11018         * gdbarch.c, gdbarch.h: Regenerate.
11019
11020         * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11021         callback before falling back to target method.
11022
11023         * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11024         (linux_target_install_ops): No longer install it.
11025
11026         * linux-tdep.c (linux_find_memory_regions): New function.
11027         (linux_init_abi): Install it.
11028
11029 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
11030
11031         * gdbarch.sh (make_corefile_notes): New architecture callback.
11032         * gdbarch.c: Regenerate.
11033         * gdbarch.h: Likewise.
11034
11035         * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11036         before target_make_corefile_notes.  If NULL is returned, the
11037         target does not support core file generation.
11038
11039         * linux-nat.c: Include "linux-tdep.h".
11040         (find_signalled_thread, find_stop_signal): Remove.
11041         (linux_nat_do_thread_registers): Likewise.
11042         (struct linux_nat_corefile_thread_data): Likewise.
11043         (linux_nat_corefile_thread_callback): Likewise.
11044         (iterate_over_spus): Likewise.
11045         (struct linux_spu_corefile_data): Likewise.
11046         (linux_spu_corefile_callback): Likewise.
11047         (linux_spu_make_corefile_notes): Likewise.
11048         (linux_nat_collect_thread_registers): New function.
11049         (linux_nat_make_corefile_notes): Replace contents by call to
11050         linux_make_corefile_notes passing linux_nat_collect_thread_registers
11051         as native-only callback.
11052
11053         * linux-tdep.h: Include "bfd.h".
11054         (struct regcache): Add forward declaration.
11055         (linux_collect_thread_registers_ftype): New typedef.
11056         (linux_make_corefile_notes): Add prototype.
11057         * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11058         "regset.h", and "elf-bfd.h".
11059         (find_signalled_thread, find_stop_signal): New functions.
11060         (linux_spu_make_corefile_notes): Likewise.
11061         (linux_collect_thread_registers): Likewise.
11062         (struct linux_corefile_thread_data): New data structure.
11063         (linux_corefile_thread_callback): New funcion.
11064         (linux_make_corefile_notes): Likewise.
11065         (linux_make_corefile_notes_1): Likewise.
11066         (linux_init_abi): Install it.
11067
11068 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
11069
11070         * gdbarch.sh (info_proc): New callback.
11071         * gdbarch.c, gdbarch.h: Regenerate.
11072
11073         * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11074         before falling back to the target info_proc callback.
11075
11076         * linux-nat.c: Do not include "cli/cli-utils.h".
11077         (linux_nat_info_proc): Remove.
11078         (linux_target_install_ops): No longer install it.
11079
11080         * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11081         (read_mapping): New function.
11082         (linux_info_proc): Likewise.
11083         (linux_init_abi): Install it.
11084
11085 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
11086
11087         * defs.h (enum info_proc_what): Moved here from linux-nat.c
11088         * infcmd.c: (info_proc_cmd_1): New function.
11089         (info_proc_cmd): New function, moved here from equivalent routine
11090         orignally in linux-nat.c.
11091         (info_proc_cmd_mappings): Likewise.
11092         (info_proc_cmd_stat): Likewise.
11093         (info_proc_cmd_status): Likewise.
11094         (info_proc_cmd_cwd): Likewise.
11095         (info_proc_cmd_cmdline): Likewise.
11096         (info_proc_cmd_exe): Likewise.
11097         (info_proc_cmd_all): Likewise.
11098         (_initialize_infcmd): Install "info proc" command and subcommands.
11099
11100         * target.h (struct target_ops): Add to_info_proc.
11101         (target_info_proc): Add prototype.
11102         * target.c (target_info_proc): New function.
11103
11104         * procfs.c (procfs_info_proc): Add prototype.
11105         (info_proc_cmd): Rename into ...
11106         (procfs_info_proc): ... this.  Update argument types as appropriate
11107         for a to_info_proc implementation.  Handle "what" argument.
11108         (procfs_target): Install procfs_info_proc.
11109         (_initialize_procfs): No longer install "info proc" command.
11110
11111         * linux-nat.c: (enum info_proc_what): Remove.
11112         (linux_nat_info_proc_cmd_1): Rename into ...
11113         (linux_nat_info_proc): ... this.  Update argument types as appropriate
11114         for a to_info_proc implementation.
11115         (linux_nat_info_proc_cmd): Remove.
11116         (linux_nat_info_proc_cmd_mappings): Likewise.
11117         (linux_nat_info_proc_cmd_stat): Likewise.
11118         (linux_nat_info_proc_cmd_status): Likewise.
11119         (linux_nat_info_proc_cmd_cwd): Likewise.
11120         (linux_nat_info_proc_cmd_cmdline): Likewise.
11121         (linux_nat_info_proc_cmd_exe): Likewise.
11122         (linux_nat_info_proc_cmd_all): Likewise.
11123         (linux_target_install_ops): Install linux_nat_info_proc.
11124         (_initialize_linux_nat): No longer install "info proc" command
11125         and subcommands.
11126
11127 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
11128
11129         * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11130         * config.in, configure: Regenerate.
11131
11132         * target.h (struct target_ops): Add to_fileio_readlink.
11133         (target_fileio_readlink): Add prototype.
11134         * target.c (target_fileio_readlink): New function.
11135
11136         * inf-child.c: Conditionally include <sys/param.h>.
11137         (inf_child_fileio_readlink): New function.
11138         (inf_child_target): Install it.
11139
11140         * remote.c (PACKET_vFile_readlink): New enum value.
11141         (remote_hostio_readlink): New function.
11142         (init_remote_ops): Install it.
11143         (_initialize_remote): Handle vFile:readlink packet type.
11144
11145 2012-01-20  Pedro Alves  <palves@redhat.com>
11146             Ulrich Weigand  <ulrich.weigand@linaro.org>
11147
11148         * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11149         * config.in, configure: Regenerate.
11150
11151         * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11152         to_fileio_pread, to_fileio_close, to_fileio_unlink.
11153         (target_fileio_open): Add prototype.
11154         (target_fileio_pwrite): Likewise.
11155         (target_fileio_pread): Likewise.
11156         (target_fileio_close): Likewise.
11157         (target_fileio_unlink): Likewise.
11158         (target_fileio_read_alloc): Likewise.
11159         (target_fileio_read_stralloc): Likewise.
11160
11161         * target.c: Include "gdb/fileio.h".
11162         (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11163         (default_fileio_target): New function.
11164         (target_fileio_open): Likewise.
11165         (target_fileio_pwrite): Likewise.
11166         (target_fileio_pread): Likewise.
11167         (target_fileio_close): Likewise.
11168         (target_fileio_unlink): Likewise.
11169         (target_fileio_close_cleanup): Likewise.
11170         (target_fileio_read_alloc_1): Likewise.
11171         (target_fileio_read_alloc): Likewise.
11172         (target_fileio_read_stralloc): Likewise.
11173
11174         * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11175         <fcntl.h>, and <unistd.h>.
11176         (inf_child_fileio_open_flags_to_host): New function.
11177         (inf_child_errno_to_fileio_error): Likewise.
11178         (inf_child_fileio_open): Likewise.
11179         (inf_child_fileio_pwrite): Likewise.
11180         (inf_child_fileio_pread): Likewise.
11181         (inf_child_fileio_close): Likewise.
11182         (inf_child_fileio_unlink): Likewise.
11183         (inf_child_target): Install to_fileio routines.
11184
11185         * remote.c (init_remote_ops): Install to_fileio routines.
11186
11187 2012-01-20  Pedro Alves  <palves@redhat.com>
11188             Ulrich Weigand  <ulrich.weigand@linaro.org>
11189
11190         * remote.c (remote_multi_process_p): Only check for multi-process
11191         protocol feature, do not check for extended protocol.
11192         (remote_supports_multi_process): Check for extended protocol here.
11193         (set_general_process): Likewise.
11194         (extended_remote_kill): Likewise.
11195         (remote_pid_to_str): Likewise.
11196         (remote_query_supported): Always query multiprocess mode.
11197
11198 2012-01-20  Pedro Alves  <palves@redhat.com>
11199             Ulrich Weigand  <ulrich.weigand@linaro.org>
11200
11201         * inferior.h (struct inferior): Add fake_pid_p.
11202         * inferior.c (exit_inferior_1): Clear fake_pid_p.
11203         * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11204         magic_null_ptid since the remote side doesn't provide a real PID.
11205
11206 2012-01-19  Tom Tromey  <tromey@redhat.com>
11207
11208         * NEWS: Combine the two Python sections.
11209
11210 2012-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
11211
11212         * target.h (target_close): Update comment on the target's unpush state.
11213
11214 2012-01-19  Pedro Alves  <palves@redhat.com>
11215
11216         * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11217         linux_nat_async directly instead of going through the target
11218         vector.
11219         * target.c (unpush_target): Close target after unpushing it, not
11220         before.
11221
11222 2012-01-19  Gary Benson  <gbenson@redhat.com>
11223
11224         * mdebugread.c (sort_blocks): Replace integer constants with ones
11225         derived from FIRST_LOCAL_BLOCK.
11226
11227 2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
11228             Jan Kratochvil  <jan.kratochvil@redhat.com>
11229
11230         PR gdb/9538
11231         * symfile.c (find_separate_debug_file): New function.
11232         (terminate_after_last_dir_separator): Likewise.
11233         (find_separate_debug_file_by_debuglink): Also try realpath.
11234         * configure.ac (AC_CHECK_FUNCS): Add lstat.
11235         * configure: Regenerate.
11236         * config.in: Regenerate.
11237
11238 2012-01-18  Doug Evans  <dje@google.com>
11239
11240         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11241         (main.o): Remove rule.
11242         * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11243         (--with-sysroot): Rewrite.
11244         * configure: Regenerate.
11245         * config.in: Regenerate.
11246
11247 2012-01-18  Sergio Durigan Junior  <sergiodj@redhat.com>
11248
11249         * parse.c (initialize_expout): New function.
11250         (reallocate_expout): Likewise.
11251         (parse_exp_in_context): Use `initialize_expout' and
11252         `reallocate_expout' when appropriate.
11253
11254 2012-01-18  Pedro Alves  <palves@redhat.com>
11255
11256         * record.c (struct record_breakpoint, record_breakpoint_p)
11257         (record_breakpoints): New.
11258         (record_insert_breakpoint, record_remove_breakpoint): Manage
11259         record breakpoints list.  Only remove breakpoints from the
11260         inferior if they had been inserted there in the first place.
11261
11262 2012-01-17  Doug Evans  <dje@google.com>
11263
11264         * linespec.c (decode_line_internal): Don't call symtabs_from_filename
11265         if we know we don't have a file name to look for.
11266
11267 2012-01-17  Pedro Alves  <palves@redhat.com>
11268
11269         * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
11270         the frame's stop reason is UNWIND_UNAVAILABLE.
11271
11272 2012-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
11273
11274         Fix compilation error.
11275         * m2-exp.y (yyerror): Use ANSI C prototype.
11276
11277 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
11278
11279         * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
11280         (growbuf_by_size): Likewise.
11281         (yyerror): Likewise.
11282         * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
11283         (modblock): Remove variable (was #if 0'ed).
11284         (parse_number): Convert prototype from K&R to ANSI C.
11285         (yyerror): Likewise.
11286         * objc-exp.y (parse_number): Likewise.
11287         (yyerror): Likewise.
11288         (yylex): Remove #if 0'ed code.
11289         * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
11290         (yyerror): Likewise.
11291
11292 2012-01-16  Tom Tromey  <tromey@redhat.com>
11293
11294         * NEWS: Add item.
11295         * symtab.h (compare_filenames_for_search): Declare.
11296         * symtab.c (compare_filenames_for_search): New function.
11297         (iterate_over_some_symtabs): Use it.
11298         * symfile.h (struct quick_symbol_functions)
11299         <map_symtabs_matching_filename>: Change spec.
11300         * psymtab.c (partial_map_symtabs_matching_filename): Use
11301         compare_filenames_for_search.  Update for new spec.
11302         * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
11303         compare_filenames_for_search.  Update for new spec.
11304         * breakpoint.c (clear_command): Use compare_filenames_for_search.
11305
11306 2012-01-16  Tom Tromey  <tromey@redhat.com>
11307
11308         PR python/13281:
11309         * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
11310         (struct main_type) <flag_flag_enum>: New field.
11311         * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
11312         * NEWS: Add entries.
11313         * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
11314         enums.
11315         * python/lib/gdb/printing.py (_EnumInstance): New class.
11316         (FlagEnumerationPrinter): Likewise.
11317
11318 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
11319
11320         * breakpoint.c (create_sals_from_address_default): New function.
11321         (create_breakpoints_sal_default): Likewise.
11322         (decode_linespec_default): Likewise.
11323         (is_marker_spec): Removed.
11324         (strace_marker_p): New function.
11325         (init_breakpoint_sal): Using `strace_marker_p' instead of
11326         `is_marker_spec'.
11327         (create_breakpoint): Call method `create_sals_from_address' from
11328         breakpoint_ops, replacing code that created SALs conditionally
11329         on the type of the breakpoint.  Call method `create_breakpoints_sal',
11330         replacing code that created breakpoints conditionally on the type
11331         wanted.
11332         (base_breakpoint_create_sals_from_address): New function.
11333         (base_breakpoint_create_breakpoints_sal): Likewise.
11334         (base_breakpoint_decode_linespec): Likewise.
11335         (base_breakpoint_ops): Add methods
11336         `base_breakpoint_create_sals_from_address',
11337         `base_breakpoint_create_breakpoints_sal' and
11338         `base_breakpoint_decode_linespec'.
11339         (bkpt_create_sals_from_address): New function.
11340         (bkpt_create_breakpoints_sal): Likewise.
11341         (bkpt_decode_linespec): Likewise.
11342         (tracepoint_create_sals_from_address): Likewise.
11343         (tracepoint_create_breakpoints_sal): Likewise.
11344         (tracepoint_decode_linespec): Likewise.
11345         (strace_marker_create_sals_from_address): Likewise.
11346         (strace_marker_create_breakpoints_sal): Likewise.
11347         (strace_marker_decode_linespec): Likewise.
11348         (strace_marker_breakpoint_ops): New variable.
11349         (addr_string_to_sals): Remove `marker_spec'.  Call method
11350         `decode_linespec' from breakpoint_ops, replacing code that decoded
11351         an address string into a SAL.  Use `strace_marker_p' instead of
11352         `marker_spec'.
11353         (strace_command): Decide whether we are dealing with a static
11354         tracepoint with marker or not.  Use the appropriate breakpoint_ops.
11355         (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11356         * breakpoint.h (linespec_result, linespec_sals): New forward
11357         declarations.
11358         (breakpoint_ops) <create_sals_from_address>,
11359         <create_breakpoints_sal>, <decode_linespec>: New methods.
11360
11361 2012-01-14  Doug Evans  <dje@google.com>
11362
11363         * NEWS: Update text for "maint set python print-stack".
11364         It is deprecated in gdb 7.4 and deleted in 7.5.
11365
11366 2012-01-13  Eli Zaretskii  <eliz@gnu.org>
11367
11368         * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11369         including curses.h.
11370
11371 2012-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
11372
11373         * configure: Regenerate.
11374         * config.in: Regenerate.
11375
11376 2012-01-12  Keith Seitz  <keiths@redhat.com>
11377
11378         PR mi/10586
11379         * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11380         (ANONYMOUS_UNION_NAME): Define.
11381         (is_path_expr_parent): New function.
11382         (get_path_expr_parent): New function.
11383         (is_anonymous_child): New function.
11384         (create_child_with_value): If the child is anonymous and without
11385         a name, assign an object name to it.
11386         (c_describe_child): Use get_path_expr_parent to determine
11387         the parent expression.
11388         If there field represents an anonymous struct or union and
11389         has no name, set an appropriate display name and expression.
11390         (cplus_describe_child): Likewise.
11391
11392 2012-01-12  Pedro Alves  <palves@redhat.com>
11393
11394         * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11395         available when %ebp is found to be zero (outermost).
11396
11397 2012-01-11  Andreas Tobler  <andreast@fgznet.ch>
11398
11399         * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11400         an internal gdb_static_assert.
11401         * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11402
11403 2012-01-11  Tom Tromey  <tromey@redhat.com>
11404
11405         PR gdb/9598:
11406         * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11407         catch" and "catch throw".
11408
11409 2012-01-11  Paul Hilfinger  <hilfingr@adacore.com>
11410
11411         * blockframe.c (block_innermost_frame): Start search from selected
11412         frame, if present, or otherwise the current frame.
11413
11414         * c-exp.y (variable): Update innermost_block for
11415         'block COLONCOLON NAME' clause.
11416         * m2-exp.y (variable): Ditto.
11417         * objc-exp.y (variable): Ditto.
11418
11419 2012-01-10  Tom Tromey  <tromey@redhat.com>
11420
11421         PR python/13199:
11422         * python/python.c (finish_python_initialization): Set sys.argv.
11423
11424 2012-01-10  Doug Evans  <dje@google.com>
11425
11426         * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd".  New arg
11427         "want_line_info".  All callers updated.
11428         (dwarf_decode_lines_1): New function.
11429         (handle_DW_AT_stmt_list): Add function comment.
11430         New arg "want_line_info".  All callers updated.
11431         (read_file_scope,read_type_unit_scope): Move comment from
11432         handle_DW_AT_stmt_list to here.
11433
11434 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
11435
11436         Fix regression after libiberty/ update for GCC PR 6057 and others.
11437         * c-exp.y (operator) <OPERATOR DELETE>
11438         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11439         * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11440         (make_builtin_type, make_name): New variable i, add gdb_assert.
11441         (operator) <OPERATOR NEW>: Update ARGS to 3.
11442         (operator) <OPERATOR DELETE>: Add trailing space.
11443         (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11444         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11445         * cp-support.c (cp_canonicalize_string): Check NULL from
11446         cp_comp_to_string, call warning and return.
11447
11448 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
11449
11450         Fix duplicate .o files after omitting libbfd.a.
11451         * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11452         (SFILES): Add corelow.c.
11453         (COMMON_OBS): Add corelow.o.
11454         (ALLDEPFILES): Remove corelow.c.
11455         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11456         * config/alpha/alpha-osf3.mh: Likewise.
11457         * config/alpha/fbsd.mh: Likewise.
11458         * config/arm/nbsdaout.mh: Likewise.
11459         * config/arm/nbsdelf.mh: Likewise.
11460         * config/i386/i386gnu.mh: Likewise.
11461         * config/ia64/hpux.mh: Likewise.
11462         * config/ia64/linux.mh: Likewise.
11463         * config/m32r/linux.mh: Likewise.
11464         * config/m68k/linux.mh: Likewise.
11465         * config/mips/irix5.mh: Likewise.
11466         * config/mips/irix6.mh: Likewise.
11467         * config/pa/hpux.mh: Likewise.
11468         * config/pa/linux.mh: Likewise.
11469         * config/powerpc/aix.mh: Likewise.
11470         * config/sparc/linux.mh: Likewise.
11471         * config/sparc/linux64.mh: Likewise.
11472         * config/sparc/sol2.mh: Likewise.
11473         * config/vax/vax.mh: Likewise.
11474         * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11475         (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11476         (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11477         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11478         (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11479         (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11480         (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11481         (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11482         (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11483         (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11484         (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11485         (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11486         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11487         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11488         (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11489         (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11490         (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11491         (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11492         (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11493         (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11494         (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11495         (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11496         corelow.o from gdb_target_obs.
11497         * corefile.c (core_target): Update the comment on NULL value.
11498         (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11499         * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11500         MATCHES.  Drop YUMMY set on NULL.
11501         (core_close): Do not call exit_inferior_silent on zero PID.  Do not
11502         reclaim CORE_DATA if it is already NULL.
11503
11504 2012-01-09  Doug Evans  <dje@google.com>
11505
11506         * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11507         * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11508
11509 2012-01-09  Keith Seitz  <keiths@redhat.com>
11510
11511         * breakpoint.c (wrapper.h): Don't include.
11512
11513 2012-01-09  Keith Seitz  <keiths@redhat.com>
11514
11515         * Makefile.in (SFILES): Remove wrapper.c.
11516         (HFILES_NO_SRCDIR): Remove wrapper.h.
11517         (COMMON_OBS): Remove wrapper.o.
11518         * cli/cli-interp.c: Don't inlude wrapper.h.
11519         * corelow.c: Likewise.
11520         (core_open): Replace gdb_target_find_new_threads with
11521         TRY_CATCH around target_find_new_threads.
11522         * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11523         * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11524         * varobj.c (varobj_create): Likewise for parse_exp_1 and
11525         evaluate_expression.
11526         (varobj_set_value): Likewise for evaluate_expression and
11527         value_assign.
11528         (install_new_variable): Likewise for value_fetch_lazy.
11529         (adjust_value_for_child_access): Likewise for value_ind.
11530         (c_describe_child): Likewise for value_subscript and
11531         value_ind.
11532         (c_value_of_root): Likewise for evaluate_expression.
11533         * wrapper.c: Remove.
11534         * wrapper.h: Remove.
11535
11536 2012-01-09  Doug Evans  <dje@google.com>
11537
11538         * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11539         partial_read_comp_unit_head.  Replace "buffer", "buffer_size" and
11540         "abfd" args with "section".  All callers updated.
11541         Error checking code moved ...
11542         (error_check_comp_unit_head): ... here.  New function.
11543         (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11544         Delete arg "abfd".  New arg "type_offset".  All callers updated.
11545         (create_debug_types_hash_table): Simplify by using
11546         read_and_check_type_unit_head.
11547
11548         * parser-defs.h (namecopy): Delete.
11549         * parse.c (namecopy, namecopy_size): Move into copy_name.
11550
11551 2012-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
11552
11553         Partially fix duplicate .o files after omitting libbfd.a.
11554         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11555         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11556         * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11557         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11558         * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11559         * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11560         * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11561
11562 2012-01-09  Pedro Alves  <palves@redhat.com>
11563
11564         * MAINTAINERS: Update my email address.
11565
11566 2012-01-08  Doug Evans  <dje@google.com>
11567
11568         * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11569         n_type_units.  Rename type_comp_units to all_type_units.
11570         All uses updated.
11571         (add_signatured_type_cu_to_table): Renamed from
11572         add_signatured_type_cu_to_list.  All callers updated.
11573
11574         * gdbtypes.h (struct cplus_struct_type): Delete member
11575         nfn_fields_total.  All uses removed.
11576
11577 2012-01-06  Doug Evans  <dje@google.com>
11578
11579         * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11580         to top of file.
11581         (dwarf2_find_comp_unit): Delete.
11582         (process_psymtab_comp_unit): Make result "void".
11583         Delete args buffer, info_ptr, buffer_size, and replace with
11584         "section".  All callers updated.
11585         (dwarf2_build_psymtabs_hard): Simplify.
11586
11587 2012-01-06  Sergio Durigan Junior  <sergiodj@redhat.com>
11588             Thiago Jung Bauermann  <bauerman@br.ibm.com>
11589
11590         * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11591         before `struct gdb_exception'.
11592         * breakpoint.c (update_global_location_list_nothrow)
11593         (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11594         * cp-abi.c (value_rtti_type): Likewise.
11595         * cp-support.c (cp_validate_operator): Likewise.
11596         * infrun.c (insert_exception_resume_breakpoint)
11597         (check_exception_resume, keep_going): Likewise.
11598         * mi-interp.c (mi_breakpoint_created)
11599         (mi_breakpoint_modified): Likewise.
11600         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11601         * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11602         (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11603
11604 2012-01-05  Doug Evans  <dje@google.com>
11605
11606         * dwarf2read.c (statement_prologue): Delete, unused.
11607
11608         * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11609         * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11610
11611         * dwarf2read.c (comp_unit_header): Delete, unused.
11612
11613 2012-01-05  Ulrich Weigand  <uweigand@de.ibm.com>
11614
11615         * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11616         * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11617
11618 2012-01-05  Khoo Yit Phang  <khooyp@cs.umd.edu>
11619
11620         * infrun.c (normal_stop): Don't skip calling the normal_stop
11621         observers if the thread was doing a multi-step, but stopped for
11622         some reason other than stepping.
11623
11624 2012-01-05  Pedro Alves  <alves.ped@gmail.com>
11625
11626         * cli/cli-decode.h: Add comments.
11627         (CMD_LIST_AMBIGUOUS): Moved to command.h
11628         (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11629         (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11630         (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11631         (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11632         (add_com, add_com_alias, add_info, add_info_alias)
11633         (complete_on_cmdlist, complete_on_enum, help_list): Remove
11634         declarations.
11635         * command.h: Add and adjust comments.
11636         (CMD_LIST_AMBIGUOUS): Moved here.
11637         (help_cmd, help_cmd_list): Delete declarations.
11638
11639 2012-01-04  Doug Evans  <dje@google.com>
11640
11641         * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11642         All callers updated.
11643         (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11644         Replace all arguments with "per_cu".  All callers updated.
11645
11646         * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11647
11648         * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11649         New arg "per_cu".  All callers updated.
11650
11651         Delete #if 0'd out code.
11652         * language.c (binop_result_type): Delete.
11653         (simple_type, ordered_type, same_type, integral_type): Delete.
11654         (numeric_type, character_type, string_type, boolean_type): Delete.
11655         (float_type, structured_type): Delete.
11656         * language.h: Update.
11657
11658 2012-01-04  Tom Tromey  <tromey@redhat.com>
11659
11660         * python/py-value.c (valpy_binop): Initialize 'res_val'.
11661
11662 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11663
11664         * corefile.c (close_exec_file): Delete.
11665         (reopen_exec_file): Remove commented out code that seems related
11666         to close_exec_file, which is being deleted here.
11667         * inferior.h (close_exec_file): Delete.
11668         * fork-child.c (fork_inferior): Remove call to fork_inferior.
11669
11670 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11671
11672         * ada-lang.c: #include "cli/cli-utils.h".
11673         (get_selections): Use skip_spaces.
11674         (ada_get_next_arg): Use skip_spaces and skip_to_space.
11675         (catch_ada_exception_command_split): Use skip_spaces.
11676         (ada_decode_assert_location): Likewise.
11677
11678 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11679
11680         * linespec.c (decode_line_internal): Check for C++ or Java
11681         compound constructs only if the current language is C, C++
11682         or Java.
11683
11684 2012-01-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
11685
11686         Revert:
11687         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11688                     Joel Brobecker  <brobecker@adacore.com>
11689         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11690         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11691         3 times.
11692         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11693         fall through into AT_ENTRY_POINT.
11694         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
11695         DUMMY_ADDR with it.
11696         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11697         PPC_INSN_SIZE skip to 3 times.
11698
11699 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11700
11701         * linespec.c (add_minsym): Preserve function descriptors.
11702
11703 2012-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
11704
11705         * breakpoint.c (all_locations_are_pending): Consider locations
11706         in program spaces executing during startup pending as well.
11707
11708 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11709
11710         Copyright year update in most files of the GDB Project.
11711
11712 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11713
11714         * copyright.sh: Delete.
11715         * copyright.py: Rewrite.
11716
11717 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11718
11719         * gnulib/extra/update-copyright: New file, imported from gnulib.
11720
11721 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11722
11723         * README (Copyright and License Notices): New section.
11724
11725 2012-01-03  Tom Tromey  <tromey@redhat.com>
11726
11727         PR python/12533:
11728         * python/py-value.c (valpy_dereference, valpy_get_address
11729         valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11730         (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11731         (valpy_absolute, valpy_richcompare): Free intermediate values.
11732
11733 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
11734
11735         * ada-lang.c: Reformat the copyright notice.
11736
11737 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11738
11739         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11740         * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11741         (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11742         (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11743         Revert this part of:
11744         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11745         Build gdb directly from *.o files not using libgdb.a.
11746         * Makefile.in (COMMON_OBS): Remove solib-target.o.
11747
11748 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11749
11750         * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11751         gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11752         Reformat the copyright header.
11753
11754 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11755
11756         Revert this part of:
11757         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11758         Remove the gdbtui binary.
11759         * gdb.c (main): Remove args.interpreter_p initialization.
11760         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11761         * main.h (struct captured_main_args): Remove interpreter_p.
11762
11763 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11764
11765         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11766
11767 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11768
11769         * top.c (print_gdb_version): Update copyright year.
11770
11771 2012-01-02  Yao Qi  <yao@codesourcery.com>
11772
11773         * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11774
11775 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11776             Joel Brobecker  <brobecker@adacore.com>
11777
11778         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11779         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11780         3 times.
11781         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11782         fall through into AT_ENTRY_POINT.
11783         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
11784         DUMMY_ADDR with it.
11785         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11786         PPC_INSN_SIZE skip to 3 times.
11787
11788 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11789
11790         * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11791         the return value.
11792         * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11793
11794 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11795
11796         Build gdb directly from *.o files not using libgdb.a.
11797         * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11798         (COMMON_OBS): Remove solib-target.o.
11799         (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11800         (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11801         (LIBGDB_OBS, libgdb.a): Move it above.
11802         * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11803         (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11804         (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11805         (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11806         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11807         (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11808         (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11809         (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11810         (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11811         (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11812         (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11813         (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11814         (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11815         (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11816         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11817         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11818         (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11819         (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11820         (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11821         (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11822         (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11823         (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11824         (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11825         (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11826         (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11827         (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11828         (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11829
11830 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11831
11832         Remove the gdbtui binary.
11833         * .gitignore (/gdbtui): Remove.
11834         * Makefile.in (TUI): Remove.
11835         (SUBDIR_TUI_OBS): Remove tui-main.o.
11836         (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11837         (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11838         (tui-main.o): Remove.
11839         (all_object_files): Remove tui-main.o.
11840         * NEWS: New note for the gdbtui removal.
11841         * configure: Rebuilt.
11842         * configure.ac: No longer add all-tui, clean-tui, install-tui and
11843         uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11844         CONFIG_UNINSTALL respectively.
11845         * gdb.c (main): Remove args.interpreter_p initialization.
11846         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11847         * main.h (struct captured_main_args): Remove interpreter_p.
11848         * tui/tui-main.c: Remove.
11849
11850 2012-01-01  Doug Evans  <dje@google.com>
11851
11852         * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11853         (dwarf2_physname, read_import_statement): Ditto.
11854         (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11855         (process_structure_scope read_subroutine_type): Ditto.
11856         (read_typedef, load_partial_dies, read_partial_die): Ditto.
11857         (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11858         (dwarf2_fetch_die_location_block): Ditto.
11859         (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11860
11861         * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11862         All callers updated.
11863         (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11864         (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11865         (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11866
11867         * dwarf2read.c (load_cu): Move assert to more useful location.
11868
11869         * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11870         All callers updated.
11871
11872         * dwarf2read.c (dwarf2_per_objfile): Add comment.
11873         (dwarf2_elf_names): Minor reformat.
11874         (dwarf2_per_cu_data): Tweak comment.
11875         (dwarf2_read_section): Fix comment.
11876         (create_all_comp_units): Fix comment.
11877         (load_full_comp_unit): Fix comment.
11878         (process_full_comp_unit): Fix comment.
11879         (read_signatured_type): Fix comment.
11880
11881 For older changes see ChangeLog-2011.
11882 \f
11883 Local Variables:
11884 mode: change-log
11885 left-margin: 8
11886 fill-column: 74
11887 version-control: never
11888 coding: utf-8
11889 End: