b7943653236532d622248b6d0bdee515bc912e5a
[external/binutils.git] / gdb / ChangeLog
1 2012-11-09  Yao Qi  <yao@codesourcery.com>
2
3         * NEWS: Mention the fix to the ambiguity of 'fo' command.
4
5 2012-11-09  Pedro Alves  <palves@redhat.com>
6
7         PR gdb/14306
8
9         * infrun.c: Include target-descriptions.h.
10         (follow_exec): Fetch new target description.
11
12 2012-11-09  Yao Qi  <yao@codesourcery.com>
13
14         * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
15         0x8d (lea).
16
17 2012-11-09  Yao Qi  <yao@codesourcery.com>
18
19         * breakpoint.c: Declare set_tracepoint_count.
20         (install_breakpoint): Call set_tracepoint_count if B is a
21         tracepoint.
22         (trace_command): Don't call set_tracepoint_count.  Re-indent.
23         (strace_command, ftrace_command):
24         (create_tracepoint_from_upload): Likewise.
25
26 2012-11-09  Pedro Alves  <palves@redhat.com>
27
28         * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
29         (get_target_gdbarch) <gdbarch.h>: New function.
30         (startup_gdbarch) <gdbarch.h>: Declare.
31         <gdbarch.c> (target_gdbarch): Delete.
32         <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
33         current inferior's gdbarch.
34         <gdbarch.c> (get_target_gdbarch): New function.
35         * inferior.c: Include target-descriptions.h.
36         (free_inferior): Free target description info.
37         (add_inferior_with_spaces): Set the inferior's initial
38         architecture.
39         (clone_inferior_command): Copy the original inferior's target
40         description if it was user specified.
41         (initialize_inferiors): Add comment.
42         * inferior.h (struct target_desc_info): Forward declare.
43         (struct inferior) <gdbarch>: New field.
44         * linux-nat.c: Include target-descriptions.h.
45         (linux_child_follow_fork): Copy the parent's architecture and
46         target description to the child.
47         * target-descriptions.c: Include inferior.h.
48         (struct target_desc_info): New structure, holding the equivalents
49         of ...
50         (target_desc_fetched, current_target_desc)
51         (target_description_filename): ... these removed globals.
52         (get_tdesc_info, target_desc_info_from_user_p)
53         (copy_inferior_target_desc_info, target_desc_info_free): New.
54         (target_desc_fetched, current_target_desc)
55         (target_description_filename): Reimplemented as convenience
56         macros.
57         (tdesc_filename_cmd_string): New global.
58         (set_tdesc_filename_cmd): Copy the string manipulated by the "set
59         tdescs filename ..." commands to the per-inferior equivalent.
60         (show_tdesc_filename_cmd): Get the value to show from the
61         per-inferior description filename.
62         (_initilize_target_descriptions): Change the "set/show tdesc
63         filename" commands' variable.
64         * target-descriptions.h (struct target_desc, struct target_desc_info)
65         (struct inferior): Forward declare.
66         (target_find_description, target_clear_description)
67         (target_current_description): Adjust comments.
68         (copy_inferior_target_desc_info, target_desc_info_free)
69         (target_desc_info_from_user_p). Declare.
70
71 2012-11-08  Stephane Carrez  <Stephane.Carrez@gmail.com>
72
73         * tui/tui-hooks.c (tui_about_to_proceed): New function.
74         (tui_target_wait_hook): Remove.
75         (tui_install_hooks): Install the about_to_proceed observer.
76         (tui_remove_hooks): And remove it here.
77
78 2012-11-08  Tom Tromey  <tromey@redhat.com>
79
80         * linux-tdep.c (linux_make_siginfo_note): New function.
81         (linux_make_corefile_notes): Use it.
82         * corelow.c (get_core_siginfo): New function.
83         (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
84
85 2012-11-08  Tom Tromey  <tromey@redhat.com>
86
87         PR gdb/14704:
88         * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
89         (zlib_decompress_section): Remove.
90         (gdb_bfd_map_section): Only check for compressed section
91         in mmap case.  Use bfd_get_full_section_contents.
92         * osabi.c (check_note): Add 'sectsize' argument.  Read
93         section data.
94         (generic_elf_osabi_sniff_abi_tag_sections): Don't read
95         section data.  Update for check_note change.
96         * xcoffread.c (xcoff_initial_scan): Use
97         bfd_get_full_section_contents.
98         * py-auto-load.c (auto_load_section_scripts): Use
99         bfd_get_full_section_contents.
100         * contrib/cc-with-tweaks.sh: Add -Z option.
101
102 2012-11-08  Tom Tromey  <tromey@redhat.com>
103
104         * python/py-bpevent.c: Include defs.h.
105         * python/py-continueevent.c: Include defs.h.
106         * python/py-event.c: Include defs.h.
107         * python/py-event.h: Don't include defs.h.
108         * python/py-events.h: Don't include defs.h.
109         * python/py-evts.c: Include defs.h.
110         * python/py-exitedevent.c: Include defs.h.
111         * python/py-newobjfileevent.c: Include defs.h.
112         * python/py-signalevent.c: Include defs.h.
113         * python/py-stopevent.c: Include defs.h.
114         * python/py-threadevent.c: Include defs.h.
115
116 2012-11-08  Pierre Muller  <muller@sourceware.org>
117
118         * update-web-ari.sh (print_heading): Add number of files
119         checked.
120         (nb_files): New variable counting the number of sources
121         files found by gdb_find.sh script.
122         (debug_awk): New variable to allow extra debug output.
123         (indexes): Add more information if DEBUG_AWK is set.
124
125 2012-11-08  Edjunior Machado  <emachado@linux.vnet.ibm.com>
126
127         * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
128         ppc64_standard_linkage3): Mark ld r11 instructions as optional,
129         following the change in PLT call stubs on linker.
130
131 2012-11-08  Pierre Muller  <muller@sourceware.org>
132
133         * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
134         as default language.
135         (AWK): Use = instead of == for sh test to avoid warning.
136         (Linux rule): Correct [:digit] into [[:digit:]].
137         (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
138         (vasprintf rule): Adapt to common subdirectory moves.
139         (xasprintf rule): Idem.
140         (xvasprintf rule): Idem.
141         (var_boolean rule): Accept occurence in == or != test.
142
143         * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
144
145 2012-11-08  Stephane Carrez  <Stephane.Carrez@gmail.com>
146
147         * tui/tui-hooks.c (tui_inferior_exit): New function.
148         (tui_detach_hook): Remove.
149         (tui_install_hooks): Install the inferior exit observer.
150         (tui_remove_hooks): Remove it.
151
152 2012-11-08  Yao Qi  <yao@codesourcery.com>
153
154         PR gdb/14777.
155         * source.c (_initialize_source): Call add_com_alias to abbreviate
156         'forward-search' as 'fo'.
157
158 2012-11-07  Pedro Alves  <palves@redhat.com>
159
160         * arm-tdep.c: Make defs.h be the first include.
161         * coff-pe-read.c: Ditto.
162         * gnu-nat.c: Ditto.
163         * go32-nat.c: Ditto.
164         * i386-nat.c: Ditto.
165         * ppcnbsd-nat.c: Ditto.
166         * ada-varobj.h: Don't include defs.h.
167         * i386-darwin-tdep.h: Ditto.
168         * i386-nat.h: Ditto.
169
170 2012-11-07  Pedro Alves  <palves@redhat.com>
171
172         * MAINTAINERS: New FSF-appointed maintainers replace the Steering
173         Committee.
174
175 2012-11-07  Pierre Muller  <muller@sourceware.org>
176
177         * common/linux-osdata.c (dirent.h): ARI fix: Remove.
178         File already uses "gdb_dirent.h" header.
179
180 2012-11-07  Yao Qi  <yao@codesourcery.com>
181
182         * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
183         tracepoint_count'.
184
185 2012-11-06  Tom Tromey  <tromey@redhat.com>
186
187         * target.h (inferior_has_forked, inferior_has_vforked)
188         (inferior_has_execd, inferior_has_called_syscall): Remove
189         declarations.
190
191 2012-11-06  Pierre Muller  <muller@sourceware.org>
192
193         * remote.c (remote_insert_hw_breakpoint): ARI fix,
194         add missing internalization markup.
195
196 2012-11-06  Pedro Alves  <palves@redhat.com>
197
198         PR gdb/14810
199
200         * breakpoint.c (bpstat_stop_status): Skip disabled locations.
201
202 2012-11-06  Pierre Muller  <muller@sourceware.org>
203
204         * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
205         is not executable.
206
207 2012-11-05  Joel Brobecker  <brobecker@adacore.com>
208
209         * gnulib/update-gnulib.sh: New script.
210
211 2012-11-05  Stephane Carrez  <Stephane.Carrez@gmail.com>
212
213         * MAINTAINERS: Update my email address.
214
215 2012-11-05  Tom Tromey  <tromey@redhat.com>
216
217         * frame.c (put_frame_register): Don't use temporary buffer.
218
219 2012-11-05  Pedro Alves  <palves@redhat.com>
220
221         * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
222         child.  Clear 'pending_detach'.
223         * infrun.c (handle_vfork_child_exec_or_exit): Clear
224         'pending_detach' in the vfork parent.
225
226 2012-11-05  Doug Evans  <dje@google.com>
227
228         Add support for DWP files.  http://gcc.gnu.org/wiki/DebugFissionDWP
229         * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
230         * dwarf2read.c: #include "elf-bfd.h".
231         (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
232         (dwop_section_names): Renamed from dwo_section names.  All uses
233         updated.  Add entries for .debug_cu_index, .debug_tu_index.
234         (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
235         All uses updated.
236         (struct dwp_sections): New type.
237         (struct virtual_dwo_sections): New type.
238         (struct dwp_hash_table): New type.
239         (struct dwp_file): New type.
240         (init_cutu_and_read_dies): Ensure DWO info/types section has been
241         read in.  Handle DWOs coming from DWP files.
242         (lookup_dwo_file_slot): New function.
243         (dwarf2_locate_dwo_sections): Move definition closer to use.
244         (create_dwo_debug_info_hash_table_reader): Renamed from
245         create_debug_info_hash_table_reader.  All callers updated.
246         (create_dwo_debug_info_hash_table): Renamed from
247         create_debug_info_hash_table.  All callers updated.
248         (create_dwp_hash_table): New function.
249         (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
250         (lookup_dwo_in_dwp): New function.
251         (try_open_dwop_file): Renamed from try_open_dwo_file.  New parameter
252         is_dwp.  All callers updated.
253         (open_dwop_file): Renamed from open_dwo_file.  All callers updated.
254         (open_and_init_dwo_file): Renamed from init_dwo_file.
255         All callers updated.
256         (lookup_dwo_file): Delete.
257         (dwarf2_locate_dwp_sections): New function.
258         (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
259         (allocate_dwp_loaded_cutus_table): New function.
260         (open_and_init_dwp_file): New function.
261         (lookup_dwo_cutu): New function.
262         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
263
264 2012-11-03  Yao Qi  <yao@codesourcery.com>
265
266         Fix PR gdb/14617.
267         * breakpoint.c (trace_pass_set_count): Call
268         observer_notify_breakpoint_modified instead of
269         observer_notify_tracepoint_modified.
270         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
271
272 2012-11-02  Tom Tromey  <tromey@redhat.com>
273
274         * breakpoint.c (catch_syscall_completer): Pass 'word' as second
275         argument to complete_on_enum.
276
277 2012-11-02  Tom Tromey  <tromey@redhat.com>
278
279         * configure: Rebuild.
280         * configure.ac (build_warnings): Add -Wempty-body.
281         * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
282         * remote.c (handle_notification): Use braces for empty 'else' body.
283         * s390-tdep.c (s390_analyze_prologue): Use braces for empty
284         'else' body.
285         * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
286         'else' body.
287         * solib-som.c (som_relocate_section_addresses): Use braces
288         for empty 'else' body.
289         * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
290         (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
291
292 2012-11-02  Pedro Alves  <palves@redhat.com>
293
294         PR gdb/14766
295
296         * infrun.c (handle_inferior_event)
297         <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
298         null_ptid before handling a vfork child exec or exit.  Switch to
299         the event ptid afterwards.
300
301 2012-11-02  Yao Qi  <yao@codesourcery.com>
302
303         * std-operator.def: Remove OP_LABELED.
304         * eval.c: Remove the declaration of 'get_label'.
305         (get_label): Remove.
306         (evaluate_struct_tuple): Remove code handling OP_LABELED.
307         Update comment.
308         Remove local variable 'variantno' and related code.
309         Replace 'substruct_type' with 'struct_type'.  Replace 'subfieldno'
310         with 'fieldno'.
311         * expprint.c (print_subexp_standard): Likewise.
312         (dump_subexp_body_standard): Likewise.
313         * parse.c (operator_length_standard): Likewise.
314
315 2012-11-01  Pierre Muller  <muller@ics.u-strasbg.fr>
316
317         Incorporate ARI web page generator into GDB sources.
318         * contrib/ari/create-web-ari-in-src.sh: New file.
319         * contrib/ari/gdb_ari.sh: New file.
320         * contrib/ari/gdb_find.sh: New file.
321         * contrib/ari/update-web-ari.sh: New file.
322
323 2012-10-31  Tom Tromey  <tromey@redhat.com>
324
325         * gdbarch.c: Rebuild.
326         * gdbarch.sh: Remove references to gdbarch_swap.
327         * corelow.c (core_open): Remove obsolete comment.
328
329 2012-10-31  Andrew Burgess  <aburgess@broadcom.com>
330
331         PR cli/14772
332         * c-typeprint.c (c_print_type): Don't print a space for vector
333         types, this is handled within the suffix.
334         (c_type_print_varspec_suffix): Add a space to vector suffix.
335
336 2012-10-26  Pedro Alves  <palves@redhat.com>
337
338         * amd64-tdep.c (amd64_relocate_instruction): Use
339         store_unsigned_integer instead of memcpy.
340         * i386-tdep.c (i386_relocate_instruction): Ditto.
341
342 2012-10-26  Pedro Alves  <palves@redhat.com>
343
344         * infrun.c (handle_inferior_event): Merge handling of
345         TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
346         switch case.
347
348 2012-10-26  Pedro Alves  <palves@redhat.com>
349
350         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
351         Remove comment.
352
353 2012-10-26  Pedro Alves  <palves@redhat.com>
354
355         * target.c (target_waitstatus_to_string): Handle
356         TARGET_WAITKIND_VFORK_DONE.
357
358 2012-10-26  Pedro Alves  <palves@redhat.com>
359
360         * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
361         as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
362
363 2012-10-24  Tristan Gingold  <gingold@adacore.com>
364
365         * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
366         Add comments.
367
368 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
369
370         * ravenscar-thread.c (ravenscar_wait): Only update the list
371         of threads and inferior_ptid if the inferior is still alive.
372
373 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
374
375         * ada-lang.c (is_known_support_routine): Use lbasename when
376         matching the symtab's filename against
377         known_runtime_file_name_patterns.
378
379 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
380
381         * ada-lang.c (ada_same_array_size_p): New function.
382         (ada_promote_array_of_integrals): New function.
383         (coerce_for_assign): Add handling of arrays where the elements
384         are integrals of a smaller size than the size of the target
385         array element type.
386
387 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
388
389         * doublest.c (convert_doublest_to_floatformat): Fix comparison
390         against maximum exponent value.
391
392 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
393
394         * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
395         "unwind-seh.c".
396
397 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
398
399         * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
400         strip typedef layer when computing the fixed type's field type,
401         only when computing its size.
402
403 2012-10-24  Mark Kettenis  <kettenis@gnu.org>
404
405         PR gdb/12783
406         * i386-tdep.c (i386_return_value): Handle complex double and long
407         double.
408
409 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
410
411         * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
412         New local variable args_len.
413         Quote the name of the executable when computing the command line.
414
415 2012-10-23  Mark Kettenis  <kettenis@gnu.org>
416
417         PR gdb/12796
418         PR gdb/12798
419         PR gdb/12800
420         * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
421         AMD64_FTAG_REGNUM.
422         * amd64-tdep.c (amd64_classify): Classify complex types.
423         (amd64_return_value): Handle the COMPLEX_X87 class.
424
425 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
426
427         * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
428         (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
429
430 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
431
432         * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
433         function.
434         (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
435         to amd64_windows_auto_wide_charset.
436
437 2012-10-23  Yao Qi  <yao@codesourcery.com>
438
439         * event-top.c (mark_async_signal_handler_wrapper): Remove.
440         * event-top.h: Remove its declaration.
441         (async_request_quit): Call mark_async_signal_handler instead of
442         mark_async_signal_handler_wrapper.
443         (async_do_nothing, async_disconnect): Likewise.
444         (async_stop_sig): Likewise.
445         * remote.c (handle_remote_sigint): Likewise.
446         (handle_remote_sigint_twice): Likewise.
447
448 2012-10-23  Yao Qi  <yao@codesourcery.com>
449
450         * event-top.c (sigint_token, sighup_token): Replace 'void *'
451         with 'static struct async_signal_handler *'.
452         (sighup_token, sigquit_token, sigstp_token): Likewise.
453
454 2012-10-22  Ali Anwar  <ali_anwar@codesourcery.com>
455
456         * gdbarch.sh (function_list): Use 'pstring' when printing
457         a variable which could return NULL.
458         * gdbarch.c: Regenerate.
459
460 2012-10-10  Joel Brobecker  <brobecker@adacore.com>
461             Tom Tromey  <tromey@redhat.com>
462
463         * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
464         inneffective if condition by gdb assertion.  Add function
465         description comment.
466
467 2012-10-19  Joel Brobecker  <brobecker@adacore.com>
468
469         * parser-defs.h (struct exp_descriptor): Document constraint
470         on return value for "op_name" callbacks.
471
472 2012-10-18  Tom Tromey  <tromey@redhat.com>
473
474         * tracepoint.c (print_one_static_tracepoint_marker): Constify.
475         * symtab.c (iterate_over_some_symtabs): Constify.
476         * source.h (symtab_to_fullname): Return 'const char *'.
477         * source.c (symtab_to_fullname): Return 'const char *'.
478         * python/py-symtab.c (stpy_fullname): Constify.
479         * cli/cli-cmds.c (edit_command): Constify.
480         * breakpoint.c (print_breakpoint_location)
481         (update_static_tracepoint): Constify.
482
483 2012-10-18  Tom Tromey  <tromey@redhat.com>
484
485         * breakpoint.c (compare_breakpoints): Fix comparison.
486
487 2012-10-18  Tom Tromey  <tromey@redhat.com>
488
489         * valprint.c (generic_emit_char, generic_printstr): Pass size of
490         gdb_wchar_t to convert_between_encodings.
491
492 2012-10-17  Yao Qi  <yao@codesourcery.com>
493
494         * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
495         more parameter 'inferior'.
496         * corefile.c (write_memory_with_notification): Caller update.
497
498         * mi/mi-cmd-var.c: Include "mi-main.h".
499         (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
500         to 1 and restore it later.
501         * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
502         and "data-write-memory-bytes.
503         * mi/mi-interp.c: Include objfiles.h.
504         (mi_interpreter_init): Call observer_attach_memory_changed.
505         (mi_memory_changed): New.
506         * mi/mi-main.h (struct mi_suppress_notification) <memory>:
507         New field.
508
509         * NEWS: Mention new MI notification "memory-changed".
510
511 2012-10-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
512
513         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
514
515 2012-10-15  Doug Evans  <dje@google.com>
516
517         New option -nh: inhibit loading of ~/.gdbinit.
518         * NEWS: Mention -nh.
519         * main.c (captured_main): Recognize and process -nh.
520         (print_gdb_help): Mention -nh.
521         * gdb.1: Mention -nh.  Remove erroneous docs on -nx behavior.
522
523 2012-10-15  H.J. Lu  <hongjiu.lu@intel.com>
524
525         PR backtrace/14646
526         PR gdb/14647
527         * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
528         pc_regnum_from_eax.
529         * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
530         nor pc_regnum_from_eax.
531         * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
532         nor pc_regnum_from_eax.
533
534 2012-10-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
535
536         Fix entry values resolving in inlined frames.
537         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
538         gdbarch and caller_frame initialization later.  Skip INLINE_FRAME
539         entries of FRAME.
540
541 2012-10-15  Joel Brobecker  <brobecker@adacore.com>
542
543         * configure.ac: Build with -DMS_WIN64 if building with Python
544         enabled using GCC on amd64-windows.
545         * configure: Regenerate.
546
547 2012-10-15  Tom Tromey  <tromey@redhat.com>
548
549         PR python/14635:
550         * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
551         to Py_None.
552
553 2012-10-15  Tom Tromey  <tromey@redhat.com>
554
555         PR python/14634:
556         * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
557
558 2012-10-11  Andrew Burgess  <aburgess@broadcom.com>
559
560         * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
561         reset thread numbering back to 1.
562
563 2012-10-11  Doug Evans  <dje@google.com>
564
565         PR breakpoints/14643.
566         * linespec.c (struct ls_parser): New member keyword_ok.
567         (linespec_lexer_lex_string): Add comment.
568         (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
569         for one.
570         (parse_linespec): Set keyword_ok.
571
572 2012-10-10  Doug Evans  <dje@google.com>
573
574         * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
575         "0x" prefix on address in log message.
576
577         * dwarf2read.c (read_1_byte): Add const to buf parameter.
578         (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
579         (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
580         (lookup_dwo_file): Add const to dwo_name parameter.
581         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
582
583 2012-10-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
584
585         Fix crash during stepping on ppc32.
586         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
587         SYM.
588
589 2012-10-03  Doug Evans  <dje@google.com>
590
591         PR symtab/14601
592         * buildsym.c (buildsym_init): Reset using_directives to NULL.
593
594 2012-10-02  Andrew Burgess  <aburgess@broadcom.com>
595
596         * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
597         output and use uint32_t not long to ensure 4 byte size.
598
599 2012-10-02  Joel Brobecker  <brobecker@adacore.com>
600
601         * rs6000-nat.c (add_vmap): Set "last" to "next" after having
602         unref'ed it.
603
604 2012-10-01  Andrew Burgess  <aburgess@broadcom.com>
605
606         * target.c (simple_search_memory): Include access length in
607         warning message.
608
609 2012-09-28  Nathan Miller  <nathanm2@us.ibm.com>
610             Edjunior Machado  <emachado@linux.vnet.ibm.com>
611
612         PR gdb/13989
613         * solib.c (solib_find): Prevent GDB from loading native libraries when
614         debugging a cross-target corefile.
615
616 2012-09-28  selven  <pcthegreat@gmail.com>
617
618         Make definition match declaration.
619
620         * regcache.c (regcache_register_status): Change return type to
621         enum register_status.
622
623 2012-09-28  Yao Qi  <yao@codesourcery.com>
624
625         * mi/mi-main.c (mi_cmd_data_write_memory): Call
626         write_memory_with_notification instead of write_memory.
627         (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
628         instead of target_write_memory.
629
630 2012-09-28  Yao Qi  <yao@codesourcery.com>
631
632         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
633         when the length of content is not an even number.
634
635 2012-09-27  Tom Tromey  <tromey@redhat.com>
636
637         Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
638         * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
639
640 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
641
642         * sol-thread.c (sol_thread_fetch_registers)
643         (sol_thread_store_registers): Delete commented out code.
644
645 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
646
647         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
648         Move these functions to sparc-sol-thread.c.
649         * sparc-sol-thread.c: New file.
650         * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
651         sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
652         configurations.
653         * configure: Regenerate.
654
655 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
656
657         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
658         Remove commented-out code.
659
660 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
661
662         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
663         Enable this code for sparc hosts only.
664
665 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
666
667         * procfs.h (procfs_find_LDT_entry): Add declaration.
668         * sol-thread.c (ps_lgetLDT): Delete local declaration of
669         function procfs_find_LDT_entry.
670
671 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
672
673         * procfs.c (proc_get_LDT_entry): Make static.
674
675 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
676
677         * procfs.c (proc_find_memory_regions): Fix declaration.
678
679 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
680
681         * amd64-tdep.c (amd64_return_value): Revert previous change
682         that used TYPE_LENGTH directly.
683         * bfin-tdep.c (bfin_extract_return_value): Likewise.
684         (bfin_store_return_value): Likewise.
685         * cris-tdep.c (cris_store_return_value): Likewise.
686         (cris_extract_return_value): Likewise.
687         * h8300-tdep.c (h8300_extract_return_value): Likewise.
688         * hppa-tdep.c (hppa64_return_value): Likewise.
689         * lm32-tdep.c (lm32_store_return_value): Likewise.
690         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
691         * spu-tdep.c (spu_value_from_register): Likewise.
692         * vax-tdep.c (vax_return_value): Likewise.
693
694 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
695
696         * gdbtypes.c (lookup_array_range_type): Expand parameters
697         LOW_BOUND and HIGH_BOUND to LONGEST.
698         (lookup_string_range_type): Likewise.
699         * gdbtypes.h (lookup_array_range_type): Likewise.
700         (lookup_string_range_type): Likewise.
701         * valops.c (value_cstring): Expand parameter LEN to ssize_t.
702         Expand HIGHBOUND to ssize_t.
703         (value_string): Likewise.
704         * value.h (value_cstring): Expand parameter LEN to ssize_t.
705         (value_string): Likewise.
706
707 2012-09-27  Yao Qi  <yao@codesourcery.com>
708
709         PR breakpoints/13898
710         * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
711         * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
712         per breakpoint type.
713
714 2012-09-26  Pierre Muller  <muller@ics.u-strasbg.fr>
715
716         * procfs.c: Add gdb_bfd header.
717         * rs6000-nat.c: Likewise.
718         * solib-pa64.c: Likewise.
719         * spu-linux-nat.c: Likewise.
720         * windows-nat.c: Likewise.
721
722 2012-09-26  Tom Tromey  <tromey@redhat.com>
723
724         * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
725
726 2012-09-26  Tom Tromey  <tromey@redhat.com>
727
728         * dwarf2read.c (mark_common_block_symbol_computed): New function.
729         (read_common_block): Handle child DIEs with
730         DW_AT_data_member_location.
731         (new_symbol_full): Add special case for common blocks.
732
733 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
734             Tom Tromey  <tromey@redhat.com>
735
736         * dwarf2read.c (read_common_block): Rewrite.
737         (new_symbol_full): Handle DW_TAG_common_block.
738         * f-lang.c (head_common_list, find_common_for_function):
739         Remove.
740         * f-lang.h (struct common_entry, struct saved_f77_common,
741         SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
742         COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
743         BLANK_COMMON_NAME_LOCAL): Remove.
744         (struct common_block): New.
745         * f-valprint.c (list_all_visible_commons): Remove.
746         (info_common_command_for_block): New function.
747         (info_common_command): Use it.
748         * stack.c (iterate_over_block_locals): Special case for
749         COMMON_BLOCK_DOMAIN.
750         * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
751         constant.
752         (struct general_symbol_info) <value.common_block>: New field.
753         (SYMBOL_VALUE_COMMON_BLOCK): New define.
754
755 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
756             Tom Tromey  <tromey@redhat.com>
757
758         * f-lang.c (allocate_saved_bf_node,
759         allocate_saved_function_node, allocate_saved_f77_common_node,
760         allocate_common_entry_node, tail_common_list, current_common,
761         saved_bf_list, saved_bf_list_end, current_head_bf_list,
762         tmp_bf_ptr, add_common_block, add_common_entry,
763         find_first_common_named, patch_common_entries,
764         patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
765         global_remote_debug, get_bf_for_fcn, saved_function_list,
766         saved_function_list_end, clear_function_list, struct saved_fcn,
767         struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
768         SAVED_BF, SAVED_BF_PTR): Remove.
769         * f-lang.h (tail_common_list, current_common,
770         UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
771         BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
772         DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
773         real_main_c_value): Remove.
774         * f-valprint.c (there_is_a_visible_common_named): Remove.
775
776 2012-09-26  Andrew Burgess  <aburgess@broadcom.com>
777
778         * breakpoint.c (update_global_location_list): Ignore previous
779         duplicate status of a breakpoint when starting a new scan for
780         duplicate breakpoints.
781
782 2012-09-26  Karthik Bhat  <kv.bhat@samsung.com>
783         PR breakpoints/14419
784         * arm-tdep.c (arm_skip_prologue): Extending producer check to
785         support LLVM compiler.
786
787 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
788
789         * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
790         * bfin-tdep.c (bfin_extract_return_value): Likewise.
791         (bfin_store_return_value): Likewise.
792         * cris-tdep.c (cris_store_return_value): Likewise.
793         (cris_extract_return_value): Likewise.
794         * h8300-tdep.c (h8300_extract_return_value): Likewise.
795         * hppa-tdep.c (hppa64_return_value): Likewise.
796         * lm32-tdep.c (lm32_store_return_value): Likewise.
797         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
798         * spu-tdep.c (spu_value_from_register): Likewise.
799         * vax-tdep.c (vax_return_value): Likewise.
800
801 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
802
803         * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
804         parameter LEN to ssize_t.
805
806 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
807
808         * ada-valprint.c (ada_val_print_1): Eliminate single-use
809         variable LEN.
810         * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
811         directly.
812         (alpha_store_return_value): Likewise.
813         * amd64-tdep.c (amd64_classify_aggregate): Likewise.
814         (amd64_push_arguments): Likewise.
815         * ax-gdb.c (gen_trace_static_fields): Likewise.
816         (gen_traced_pop): Likewise.
817         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
818         * breakpoint.c (update_watchpoint): Likewise.
819         * findcmd.c (parse_find_args): Use local variable for type
820         instead of length.
821         * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
822         * h8300-tdep.c (h8300h_extract_return_value): Likewise.
823         (h8300_store_return_value): Likewise.
824         * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
825         Use i386_darwin_arg_type_alignment directly.
826         * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
827         * lm32-tdep.c (lm32_push_dummy_call): Likewise.
828         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
829         (m68hc11_extract_return_value): Likewise.
830         * mep-tdep.c (mep_push_dummy_call): Likewise.
831         * printcmd.c (float_type_from_length): Likewise.
832         * s390-tdep.c (s390_value_from_register): Likewise.
833         * stack.c (read_frame_arg): Likewise.
834         * tracepoint.c (encode_actions_1): Likewise.
835         * valops.c (value_fetch_lazy): Use local variable for type
836         instead of length.  Use TYPE_LENGTH directly.
837         * value.c (value_contents_equal): Use TYPE_LENGTH directly.
838
839 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
840
841         * symtab.c (skip_prologue_sal): Fix typo in comment.
842
843 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
844
845         * linespec.c (create_sals_line_offset): Fix typo in comment.
846
847 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
848
849         * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
850         use plongest to print the array size.
851
852 2012-09-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
853
854         * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
855         * p-valprint.c (pascal_type_print_base): Likewise.
856
857 2012-09-22  Yao Qi  <yao@codesourcery.com>
858
859         * remote.c (remote_get_trace_status): Remove setting default
860         values of fields of 'ts'.
861
862 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
863
864         Fix internal error on canonicalization of clang types.
865         * cp-name-parser.y (operator): New comment at make_operator call for
866         new, delete, new[] and delete[].
867         (exp): Use "sizeof ".  Add new comment at make_operator call.
868
869 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
870
871         Fix disassemble without parameters in tailcall frame.
872         * cli/cli-cmds.c (disassemble_current_function): Use
873         get_frame_address_in_block.
874
875 2012-09-21  Tom Tromey  <tromey@redhat.com>
876
877         * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
878         TYPE_CODE_UNION>: Unify, removing a goto.
879
880 2012-09-21  Tom Tromey  <tromey@redhat.com>
881
882         * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
883
884 2012-09-21  Andrew Burgess  <aburgess@broadcom.com>
885
886         * findvar.c (read_frame_register_value): Mark the result value as
887         optimized out if any of the input registers have been optimized out.
888
889 2012-09-21  Andreas Schwab  <schwab@linux-m68k.org>
890
891         * python/python.c (finalize_python): Only define if HAVE_PYTHON.
892
893 2012-09-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
894
895         * eval.c (evaluate_subexp_standard): Eliminate single-use
896         variable LOWER.
897
898 2012-09-21  Yao Qi  <yao@codesourcery.com>
899
900         * mi/mi-interp.c: Declare mi_record_changed.
901         (mi_interpreter_init): Call observer_attach_record_changed.
902         (mi_record_changed): New.
903         * record.c (record_open): Call observer_notify_record_changed.
904         (cmd_record_stop): Call observer_notify_record_changed.
905         * NEWS: Mention it.
906
907 2012-09-20  Tom Tromey  <tromey@redhat.com>
908
909         * NEWS: Update.
910         * python/python.c (finalize_python): New function.
911         (_initialize_python): Make a final cleanup.
912
913 2012-09-19  Doug Evans  <dje@google.com>
914
915         * buildsym.h (param_symbols): Delete, unused.
916         (context_stack): Delete member "params", unused.
917         * buildsym.c (push_context): Update.
918         * dwarf2read.c (read_func_scope): Update.
919
920 2012-09-19  Thomas Schwinge  <thomas@codesourcery.com>
921
922         * sh-tdep.c (sh_register_convert_to_virtual)
923         (sh_register_convert_to_raw): Add a gdbarch parameter.  Update
924         all callers.  Just do a memcpy if not the little-endian case.
925
926         * h8300-tdep.c (h8300_gdbarch_init): Invoke
927         set_gdbarch_double_format and set_gdbarch_long_double_format.
928         * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
929         set_gdbarch_double_format.
930         * sh-tdep.c (sh_gdbarch_init): Likewise.
931
932         * NEWS: Document the removal of SH's 'regs' command.
933         * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
934         command.
935
936 2012-09-18  Sergio Durigan Junior  <sergiodj@redhat.com>
937
938         * infcmd.c (_initialize_infcmd): Register `j' as an alias for
939         `jump'.
940
941 2012-09-18  Joel Brobecker  <brobecker@adacore.com>
942
943         * linespec.c (iterate_over_all_matching_symtabs): Use the correct
944         language when iterating over symbols.
945
946 2012-09-18  Yao Qi  <yao@codesourcery.com>
947
948         * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
949         (mi_interpreter_init): Call observer_attach_tsv_created and
950         observer_attach_tsv_deleted.
951         (mi_tsv_created, mi_tsv_deleted): New.
952         * tracepoint.c (delete_trace_state_variable): Call
953         observer_notify_tsv_deleted.
954         (trace_variable_command): Call observer_notify_tsv_created.
955         (delete_trace_variable_command): Call
956         observer_notify_tsv_deleted.
957         (create_tsv_from_upload): Call observer_notify_tsv_created.
958         * NEWS: Mention it.
959
960 2012-09-18  Yao Qi  <yao@codesourcery.com>
961
962         * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
963         if traceframe changed.
964         * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
965         "trace-find".
966         * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
967         (mi_interpreter_init): Hook mi_traceframe_changed to observer
968         'traceframe_changed'.
969         (mi_traceframe_changed): New.
970         * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
971         New field.
972         * NEWS: Mention the new MI notification.
973
974 2012-09-17  Mike Wrighton  <wrighton@codesourcery.com>
975
976         * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
977
978 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
979
980         * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
981         (linux_ptrace_test_ret_to_nx): Extend comment for x86_64.  Change
982         __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
983         Extend code also for PaX support.  Convert all gdb_assert to warning
984         calls.
985
986 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
987
988         Implement auto-load user conveniences suggested by Doug Evans.
989         * auto-load.c: Include top.h.
990         (file_is_auto_load_safe): New variable advice_printed.  Print advice.
991         (_initialize_auto_load): New variable scripts_directory_help.  Mention
992         GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
993         scripts-directory.  Document in online help one can use also files for
994         set auto-load safe-path.
995         * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
996         * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
997
998 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
999
1000         * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1001         of LEN.
1002
1003 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
1004
1005         * m2-valprint.c (m2_print_array_contents): Eliminate variable
1006         ELTLEN and use TYPE_LENGTH directly.
1007         (m2_val_print): Likewise.
1008         * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1009         variable LEN and use TYPE_LENGTH directly.
1010         (m68k_svr4_store_return_value): Likewise.
1011         * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1012         ARGLEN and use TYPE_LENGTH directly.
1013         (mips_o64_push_dummy_call): Likewise.
1014         * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1015         variable LENGTH and use TYPE_LENGTH directly.
1016         (s390_function_arg_float): Likewise.
1017         (s390_function_arg_integer): Likewise.
1018         (s390_push_dummy_call): Likewise.
1019         (s390_return_value_convention): Likewise.
1020         * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1021         TYPE_LENGTH directly.
1022
1023 2012-09-17  Yao Qi  <yao@codesourcery.com>
1024
1025         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1026         Update comment to add_setshow_integer_cmd.
1027         * cli/cli-setshow.c (do_set_command): Handle case
1028         'var_zuinteger_unlimited'.
1029         (do_show_command): Likewise.
1030         * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1031         for command 'remotetimeout'.
1032         * command.h (enum var_types): New zuinteger_unlimited.  Update comment
1033         to var_integer.
1034         * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1035         for command 'set listsize'.
1036
1037 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
1038
1039         * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1040         variable LEN.
1041
1042 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1043
1044         PR 14119
1045         * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1046         (frame_pop): Drop also TAILCALL_FRAME frames.
1047         * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1048
1049 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1050             Pedro Alves  <palves@redhat.com>
1051
1052         PR 14548
1053         * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1054         function start if we are already at function start.  Both for
1055         reverse-next and for reverse-step into function without line number
1056         info.
1057
1058 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1059
1060         Code cleanup - rename 'inline' depth to 'artificial' depth.
1061         * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1062         frame_id_artificial_p, extend the comment.
1063         * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1064         * frame.c (fprint_frame_id): Rename at a user, change debug output
1065         text to "artificial=".
1066         (skip_inlined_frames): Rename to ...
1067         (skip_artificial_frames): ... here.  Extend the comment.
1068         (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1069         (frame_id_inlined_p): Rename to ...
1070         (frame_id_artificial_p): ... here.  Rename at a user.
1071         (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1072         (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1073         at a user.
1074         * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1075         Extend the comment.
1076         (frame_id_inlined_p): Rename to ...
1077         (frame_id_artificial_p): ... here.
1078         * inline-frame.c (inline_frame_this_id): Rename at a user.
1079
1080 2012-09-14  Andrew Burgess  <aburgess@broadcom.com>
1081
1082         * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1083         vector variables using vector_size syntax rather than array
1084         syntax.
1085
1086 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
1087
1088         * valarith.c (value_concat): Replace unsafe ALLOCA with
1089         XMALLOC/XFREE.
1090
1091 2012-09-14  Pedro Alves  <palves@redhat.com>
1092
1093         * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1094
1095 2012-09-14  Khoo Yit Phang  <khooyp@cs.umd.edu>
1096
1097         Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1098         * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1099         data-directory as appropriate.
1100
1101 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
1102
1103         * printcmd.c (ui_printf): Eliminate single-use variable
1104         PARAM_LEN.
1105
1106 2012-09-14  Yao Qi  <yao@codesourcery.com>
1107             Pedro Alves  <palves@redhat.com>
1108
1109         * valops.c (value_assign): Move observer_notify_target_changed
1110         below to replace reinit_frame_cache.
1111
1112 2012-09-13  Khoo Yit Phang  <khooyp@cs.umd.edu>
1113
1114         Refactor Python "gdb" module into a proper Python package, by
1115         introducing a new "_gdb" module for code implemented in C, and
1116         using reload/__import__ instead of exec.
1117         * python/lib/gdb/__init__.py: Import * from _gdb.
1118         (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1119         prompt_hook, sys.argv): Moved from finish_python_initialization.
1120         (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1121         (packages, auto_load_packages): New list and function replacing
1122         module_dict and auto-loading code, using __file__ instead of
1123         gdb.PYTHONDIR and reload/__import__ instead of exec.
1124         (GdbSetPythonDirectory): Replacing function of the same name
1125         from finish_python_initialization, using reload/__import__ instead
1126         of exec, as well as call auto_load_packages.
1127         * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1128         gdb_python_module and not gdb_module.
1129         * python/python-internal.h (gdb_python_module): Declare.
1130         * python/python.c (gdb_python_module): New global.
1131         (before_prompt_hook): Check gdb_python_module and not gdb_module.
1132         (_initialize_python): Rename gdb module to _gdb.
1133         Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1134         (finish_python_initialization): Move Python code to
1135         lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1136         __main__.
1137
1138 2012-09-13  Pedro Alves  <palves@redhat.com>
1139
1140         * Makefile.in (COMMON_OBS): Add registry.o.
1141         * registry.c: New file.
1142         * registry.h (struct registry_container): Declare.
1143         (registry_data_callback): New typedef.
1144         (struct registry_data, struct registry_data_registration, struct
1145         registry_data_registry): New type.
1146         (register_data_with_cleanup, registry_alloc_data)
1147         (registry_callback_adaptor, registry_clear_data)
1148         (registry_container_free_data, registry_set_data, registry_data):
1149         Declare.
1150         (DEFINE_REGISTRY): Refactor structures and functions as shims over
1151         the new common structures and functions.
1152         (DECLARE_REGISTRY): Declare struct TAG ## _data.  Use the tagged
1153         callback typedefs.
1154
1155 2012-09-12  Mike Wrighton  <wrighton@codesourcery.com>
1156
1157         * remote.c (remote_insert_hw_breakpoint): Throw exception if
1158         there is an error inserting hardware breakpoints and use the
1159         error message from the target.
1160
1161         * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1162         Catch this exception and print the error message contained within. Do not
1163         print the default hardware error breakpoint message in this case.
1164
1165 2012-09-12  Doug Evans  <dje@google.com>
1166
1167         * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1168         cu == NULL.
1169
1170 2012-09-11  Doug Evans  <dje@google.com>
1171
1172         * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1173         .gdb_index symbol attributes if there are none.
1174
1175 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
1176
1177         * symtab.h (struct minimal_symbol) [has_size]: New field.
1178         (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1179         (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1180         * printcmd.c (build_address_symbolic): Only filter out zero-sized
1181         minimal symbols if the symbol's size is actually known.
1182         * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1183         of msymbol's size field.  Add comment.
1184         * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1185         SET_MSYMBOL_SIZE to set the minimal symbol size.
1186
1187 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
1188
1189         * minsyms.c (install_minimal_symbols): Use memset to fill entire
1190         minimal_symbol struct object, rather than setting some of its
1191         fields one by one.
1192
1193 2012-09-11  Andrew Burgess  <aburgess@broadcom.com>
1194
1195         * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1196         passed_a_ptr flag when displaying typedef types.
1197
1198 2012-09-10  Joel Brobecker  <brobecker@adacore.com>
1199
1200         * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1201         the optimized_out flag is preserved.
1202
1203 2012-09-10  Anthony Green  <green@moxielogic.com>
1204
1205         * moxie-tdep.c (moxie_analyze_prologue): Update for function
1206         prologue changes in GCC.
1207
1208 2012-09-10  Keith Seitz  <keiths@redhat.com>
1209
1210         PR gdb/13483
1211         * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1212         (BOOL_CONVERSION_BADNESS): ... this.
1213         * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1214         (rank_one_type): Allow all boolean conversions
1215         permitted by the standard.
1216
1217 2012-09-06  Tom Tromey  <tromey@redhat.com>
1218
1219         * python/py-newobjfileevent.c (create_new_objfile_event_object):
1220         Don't decref py_objfile.
1221
1222 2012-09-02  Khoo Yit Phang  <khooyp@cs.umd.edu>
1223
1224         Do not enable -lmcheck by default when Python is enabled with
1225         threading support.
1226         * configure.ac: (python_has_threads) New variable, by testing
1227         if WITH_THREAD is defined in Python.h.
1228         Move --enable-lmcheck after --with-python.
1229         Do not enable -lmcheck by default if python_has_threads=yes.
1230         Warn if --enable-lmcheck and python_has_threads=yes.
1231         * configure: Regenerate.
1232
1233 2012-08-31  Yao Qi  <yao@codesourcery.com>
1234
1235         * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1236         DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1237         Update some commands.
1238         * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1239         * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1240         to 1.
1241
1242 2012-08-31  Yao Qi  <yao@codesourcery.com>
1243
1244         * mi/mi-cmds.c (mi_cmds): Add 'static'.
1245
1246 2012-08-30  Khoo Yit Phang  <khooyp@cs.umd.edu>
1247
1248         * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1249
1250 2012-08-29  Doug Evans  <dje@google.com>
1251
1252         * main.c (print_gdb_help): Remove reference to
1253         --use-deprecated-index-sections.
1254
1255 2012-08-28  Yao Qi  <yao@codesourcery.com>
1256
1257         * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1258         (init_cmds): Call add_setshow_uinteger_cmd for command
1259         'max-user-call-depth'.
1260         * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1261         declaration of 'max_user_call_depth'.
1262         * frame.c (backtrace_limit): Add 'unsigned'.
1263         (_initialize_frame): Call add_setshow_uinteger_cmd for command
1264         'limit'.
1265         * remote.c (remoteaddresssize): Add 'unsigned'.
1266         (remote_address_masked): Change local var 'address_size' to
1267         'unsigned'.
1268         (_initialize_remote): Call add_setshow_uinteger_cmd for
1269         'remoteaddresssize'.
1270         * top.c (history_size): Add 'unsigned'.
1271         (show_commands): Change local variables to 'unsigned'.
1272         (set_history_size_command): Don't check history_size is negative.
1273         Adjust the condition to call unstifle_history and set history_size
1274         to UNIT_MAX.
1275
1276 2012-08-28  Pedro Alves  <palves@redhat.com>
1277
1278         PR gdb/14428
1279
1280         * infcmd.c (default_print_one_register_info): New, factored out
1281         from default_print_registers_info.
1282         (default_print_registers_info): Use it.  Mark value unavailable if
1283         necessary.
1284         (registers_info): Print user registers with
1285         default_print_one_register_info.
1286
1287 2010-08-27  H.J. Lu  <hongjiu.lu@intel.com>
1288
1289         PR tui/14486
1290         * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1291         is not NULL before referencing it.
1292
1293 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1294
1295         * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1296         variable pc.  Call find_pc_line instead of find_pc_overlay, restore
1297         original PC for it.
1298
1299 2012-08-27  Eli Zaretskii  <eliz@gnu.org>
1300             Jan Kratochvil  <jan.kratochvil@redhat.com>
1301
1302         * auto-load.c (auto_load_objfile_script): Rename to ...
1303         (auto_load_objfile_script_1): ... here, change variable realname to
1304         parameter realname, document it, add return value, add variable retval.
1305         (auto_load_objfile_script): New function.
1306
1307 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1308
1309         * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1310         followed by a whitespace.
1311
1312 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1313
1314         PR gdb/14494.
1315         * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1316         Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1317         (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1318         here.
1319
1320 2012-08-27  Wei-cheng Wang  <cole945@gmail.com>
1321
1322         * memattr.c (create_mem_region): Fix memory region overlapping
1323         checking.
1324
1325 2012-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
1326
1327         * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1328         with xmalloc/cleanup.
1329         * mt-tdep.c (mt_push_dummy_call): Likewise.
1330         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1331         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1332
1333 2012-08-24  Yao Qi  <yao@codesourcery.com>
1334
1335         * jv-exp.y (push_expression_name): Add "." at the end of error
1336         message.
1337
1338 2012-08-23  Khoo Yit Phang <khooyp@cs.umd.edu>
1339
1340         Document how to return from "python-interactive" to GDB.
1341         * python/python.c (_initialize_python): Update documentation.
1342
1343 2012-08-23  Pedro Alves  <palves@redhat.com>
1344
1345         * infrun.c (_initialize_infrun) <handle command help text>:
1346         Mention that multiple signals are supported.
1347
1348 2012-08-23  Pedro Alves  <palves@redhat.com>
1349
1350         * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1351         string.
1352
1353 2012-08-23  Yao Qi  <yao@codesourcery.com>
1354
1355         * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1356         (tfind_1): Don't call registers_changed, set_traceframe_num,
1357         and clear_traceframe_info.
1358         Call set_current_traceframe.
1359         (set_current_traceframe): call set_traceframe_num.
1360
1361 2012-08-22  Sergio Durigan Junior  <sergiodj@redhat.com>
1362
1363         * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1364         `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1365
1366 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
1367
1368         Enable readline in Python in a GDB-specific way and block the
1369         standard Python readline module to prevent conflicts with GDB.
1370         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1371         (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1372         (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1373         * python/py-gdb-readline.c: New file.
1374         * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1375         prototype.
1376         * python/python.c (_initialize_python): Call
1377         gdbpy_initialize_gdb_readline.
1378
1379 2012-08-22  Keith Seitz  <keiths@redhat.com>
1380
1381         * defs.h: Include build-gnulib/config.h
1382
1383 2012-08-22  Joseph Myers  <joseph@codesourcery.com>
1384
1385         * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1386         and blx pc.
1387
1388 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
1389
1390         Add a new "python-interactive" command that starts a standard
1391         Python interactive prompt with "pi" as alias, and add "py" as
1392         an alias to "python".
1393         * NEWS: Mention the new commands.
1394         * python/python.c (eval_python_command): New function.
1395         (python_interactive_command): For "python-interactive" with
1396         arguments, call eval_python_command.  For "python-interactive"
1397         without arguments, call PyRun_InteractiveLoop.
1398         (_initialize_python): Add "python-interactive" command with
1399         "pi" as alias, and add "py" as an alias to "python".
1400
1401 2012-08-22  Tom Tromey  <tromey@redhat.com>
1402
1403         * defs.h (quit_flag): Don't declare.
1404         (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1405         (QUIT): Use new functions.
1406         * event-top.c (command_handler): Use clear_quit_flag.
1407         (handle_sigint): Use set_quit_flag.
1408         (async_request_quit): Use check_quit_flag.  Don't check
1409         immediate_quit.
1410         * exceptions.c (throw_exception): Use clear_quit_flag.
1411         * main.c (captured_main): Use clear_quit_flag.
1412         * python/python.c (clear_quit_flag, set_quit_flag)
1413         (check_quit_flag): New functions.
1414         * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1415         clear_quit_flag.
1416         * remote.c (remote_wait_as): Use check_quit_flag,
1417         clear_quit_flag.
1418         (remote_start_remote): Call QUIT.
1419         * symfile.c (load_progress): Use check_quit_flag.
1420         * top.c (command_loop): Use clear_quit_flag.
1421         (command_line_input): Call QUIT.
1422         * utils.c (quit_flag): Conditionally define.
1423         (clear_quit_flag, check_quit_flag, set_quit_flag): New
1424         functions.
1425         (prompt_for_continue): Call QUIT.  Use quit, not
1426         async_request_quit.
1427         * remote-mips.c (mips_expect_timeout): Call QUIT.
1428         * monitor.c (monitor_expect): Call QUIT.
1429
1430 2012-08-22  Tom Tromey  <tromey@redhat.com>
1431
1432         * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1433         (async_init_signals): Update.
1434         * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1435         (SIGWINCH_HANDLER_BODY): Remove.
1436
1437 2012-08-22  Tom Tromey  <tromey@redhat.com>
1438
1439         * jit.c (jit_object_close_impl): Don't malloc the objfile
1440         name.
1441         * objfiles.c (allocate_objfile): Don't malloc the objfile
1442         name.
1443         (free_objfile): Don't free the objfile name.
1444         * objfiles.h (struct objfile) <name>: Update comment.
1445         * symfile.c (reread_symbols): Fix reference counting.  Don't
1446         malloc objfile name.
1447
1448 2012-08-22  Tom Tromey  <tromey@redhat.com>
1449
1450         * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1451         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1452         (symfile_bfd_open): Likewise.
1453         (generic_load): Likewise.
1454         * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1455         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1456         gdb_bfd_open.
1457         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1458         Use gdb_bfd_open.
1459         * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1460         * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1461         (pmon_load_fast): Likewise.
1462         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1463         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1464         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1465         (macho_check_dsym): Likewise.
1466         * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1467         (m32r_upload_command): Likewise.
1468         * gdb_bfd.h (gdb_bfd_cache): Declare.
1469         * gdb_bfd.c (struct gdb_bfd_data): New.
1470         (gdb_bfd_cache): New global.
1471         (struct gdb_bfd_cache_search): New.
1472         (hash_bfd): New function.
1473         (eq_bfd): Likewise.
1474         (gdb_bfd_open): Likewise.
1475         (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1476         (gdb_bfd_unref): Remove closed BFD from cache.  Update for
1477         gdb_bfd_data.
1478         * exec.c (exec_file_attach): Use gdb_bfd_open.
1479         * dsrec.c (load_srec): Use gdb_bfd_open.
1480
1481 2012-08-22  Tom Tromey  <tromey@redhat.com>
1482
1483         * dwarf2read.c (macro_start_file): Update.
1484         * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1485         (free_objfile_per_bfd_storage): Destroy macro_cache.
1486         (allocate_objfile, free_objfile): Update.
1487         * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1488         New field.
1489         (struct objfile) <macro_cache>: Remove.
1490         * symfile.c (reread_symbols): Update.
1491         * symmisc.c (print_symbol_bcache_statistics): Update.
1492         (print_objfile_statistics): Update.
1493
1494 2012-08-22  Tom Tromey  <tromey@redhat.com>
1495
1496         * elfread.c (elf_symtab_read): Update.
1497         * objfiles.c (objfiles_bfd_data): New global.
1498         (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1499         (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1500         (allocate_objfile, free_objfile): Update.
1501         (_initialize_objfiles): Initialize objfiles_bfd_data.
1502         * objfiles.h (struct objfile_per_bfd_storage): New.
1503         (struct objfile) <per_bfd>: New field.
1504         <filename_cache>: Remove.
1505         (set_objfile_per_bfd): Declare.
1506         * symfile.c (reread_symbols): Update.  Call
1507         set_objfile_per_bfd.
1508         (allocate_symtab): Update.
1509         * symmisc.c (print_symbol_bcache_statistics): Update.
1510         (print_objfile_statistics): Print the size of the BFD obstack.
1511
1512 2012-08-22  Tom Tromey  <tromey@redhat.com>
1513
1514         * gdb_bfd.h: Include registry.h.  Use DECLARE_REGISTRY.
1515         * gdb_bfd.c: Use DEFINE_REGISTRY.
1516         (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1517         (gdb_bfd_ref): Call bfd_alloc_data.
1518         (gdb_bfd_unref): Call bfd_free_data.
1519
1520 2012-08-22  Tom Tromey  <tromey@redhat.com>
1521
1522         * registry.h (struct registry_fields): New.
1523         (REGISTRY_FIELDS): Redefine.
1524         (REGISTRY_ACCESS_FIELD): New macro.
1525         (DEFINE_REGISTRY): Add ACCESS argument.  Update defined
1526         functions.
1527
1528 2012-08-22  Tom Tromey  <tromey@redhat.com>
1529
1530         * auto-load.c (_initialize_auto_load): Update.
1531         * solib-svr4.c (_initialize_svr4_solib): Update
1532         * solib-dsbt.c (_initialize_dsbt_solib): Update.
1533         * solib-darwin.c (_initialize_darwin_solib): Update.
1534         * registry.h: New file.
1535         * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1536         * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1537         * progspace.h: Include registry.h.  Use DECLARE_REGISTRY.
1538         (register_program_space_data_with_cleanup)
1539         (register_program_space_data, program_space_alloc_data)
1540         (clear_program_space_data, set_program_space_data)
1541         (program_space_data): Don't declare.
1542         * progspace.c: Use DEFINE_REGISTRY.
1543         (struct program_space_data, struct
1544         program_space_data_registration, struct
1545         program_space_data_registry, program_space_data_registry)
1546         (register_program_space_data_with_cleanup)
1547         (register_program_space_data, program_space_alloc_data)
1548         (program_space_free_data, clear_program_space_data)
1549         (set_program_space_data, program_space_data): Remove.
1550         * objfiles.h: Include registry.h.  Use DECLARE_REGISTRY.
1551         (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1552         (register_objfile_data_with_cleanup, register_objfile_data)
1553         (clear_objfile_data, set_objfile_data, objfile_data): Don't
1554         declare.
1555         * objfiles.c: Use DEFINE_REGISTRY.
1556         (struct objfile_data, struct objfile_data_registration, struct
1557         objfile_data_registry, objfile_data_registry)
1558         (register_objfile_data_with_cleanup, register_objfile_data)
1559         (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1560         (set_objfile_data, objfile_data): Remove.
1561         (_initialize_objfiles): Update.
1562         * jit.c (_initialize_jit): Update.
1563         * inflow.c (_initialize_inflow): Update.
1564         * inferior.h: Include registry.h.  Use DECLARE_REGISTRY.
1565         (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1566         (register_inferior_data_with_cleanup, register_inferior_data)
1567         (clear_inferior_data, set_inferior_data, inferior_data): Don't
1568         declare.
1569         * inferior.c: Use DEFINE_REGISTRY.
1570         (struct inferior_data, struct inferior_data_registration, struct
1571         inferior_data_registry, inferior_data_registry)
1572         (register_inferior_data_with_cleanup, register_inferior_data)
1573         (inferior_alloc_data, inferior_free_data  clear_inferior_data)
1574         (set_inferior_data, inferior_data): Remove.
1575         * auxv.c (_initialize_auxv): Update.
1576         * ada-lang.c (_initialize_ada_language): Update.
1577         * breakpoint.c (_initialize_breakpoint): Update.
1578         * i386-nat.c (i386_use_watchpoints): Update.
1579
1580 2012-08-22  Tom Tromey  <tromey@redhat.com>
1581
1582         * exec.c (exec_close, exec_file_attach): Update.
1583         (add_to_section_table): Initialize 'key' field.
1584         (add_target_sections, remove_target_sections): Add 'key' argument.
1585         * exec.h (add_target_sections, remove_target_sections): Add
1586         'key' argument.
1587         * solib.c (solib_map_sections, update_solib_list, clear_solib)
1588         (reload_shared_libraries_1): Update.
1589         * target.h (struct target_section) <key>: New field.
1590
1591 2012-08-22  Tom Tromey  <tromey@redhat.com>
1592
1593         * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1594
1595 2012-08-21  Pierre Muller  <muller@ics.u-strasbg.fr>
1596
1597         * symfile.c (allocate_symtab): Use host_address_to_string
1598         function instead of cast of pointer to long which is not
1599         compatible with x86_64-w64-mingw32 build.
1600
1601 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1602
1603         * mips-tdep.c (is_octeon): New function.
1604         (is_octeon_bbit_op): New function.
1605         (mips32_next_pc): Handle Octeon's bbit instructions.
1606         (mips32_instruction_has_delay_slot): Likewise.
1607
1608 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1609
1610         * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1611         before the function.
1612
1613 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1614
1615         * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1616
1617 2012-08-19  Keith Seitz  <keiths@redhat.com>
1618
1619         PR c++/14365
1620         * c-typeprint.c (c_type_print_varspec_prefix): Pass
1621         -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1622
1623 2012-08-18  Eli Zaretskii  <eliz@gnu.org>
1624
1625         * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1626         The typo broke "make TAGS".
1627
1628 2012-08-17  Joel Brobecker  <brobecker@adacore.com>
1629
1630         GDB 7.5 released.
1631
1632 2012-08-17  Keith Seitz  <keiths@redhat.com>
1633
1634         PR c++/13356
1635         * gdbtypes.c (strict_type_checking): New variable.
1636         (show_strict_type_checking): New function.
1637         (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1638         if strict type checking is disabled.
1639         (_initialize_gdbtypes): Add "check type" subcommand.
1640         * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1641
1642 2012-08-17  Keith Seitz  <keiths@redhat.com>
1643
1644         * language.h (type_mode): Remove.
1645         (type_check): Remove.
1646         (struct language_defn): Remove la_type_check.
1647         (STRICT_TYPE): Remove unused macro.
1648         (type_error): Remove.
1649         * language.c (set_type_range_case): Renamed to ...
1650         (set_range_case): ... this.  Update all callers.
1651         Remove type_mode/type_check.
1652         (type_mode): Remove.
1653         (type_check): Remove.
1654         (show_type_command): Remove.
1655         (set_type_command): Remove.
1656         (language_info): Remove type checking output.
1657         (type_error): Remove unused function.
1658         (range_error): Update comment.
1659         (unknown_language_defn): Remove la_type_check.
1660         (auto_language_defn): Likewise.
1661         (local_language_defn): Likewise.
1662         (_initialize_language): Remove "check type" subcommand.
1663         * ada-lang.c (ada_language_defn): Remove la_type_check.
1664         * c-lang.c (c_language_defn): Likewise.
1665         (cplus_language_defn): Likewise.
1666         (asm_language_defn): Likewise.
1667         (minimal_language_defn): Likewise.
1668         * d-lang.c (d_language_defn): Likewise.
1669         * f-lang.c (f_language_defn): Likewise.
1670         * go-lang.c (go_language_defn): Likewise.
1671         * jv-lang.c (java_language_defn): Likewise.
1672         * m2-lang.c (m2_language_defn): Likewise.
1673         * objc-lang.c (objc_language_defn): Likewise.
1674         * opencl-lang.c (opencl_language_defn): Likewise.
1675         * p-lang.c (pascal_language_defn): Likewise.
1676
1677 2012-08-16  Mike Frysinger  <vapier@gentoo.org>
1678
1679         * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1680
1681 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1682
1683         * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1684         New function.
1685         (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1686         using the regache.  Use ia64_hpux_get_register_from_save_state_t
1687         to access the bsp and bspstore registers if not.
1688
1689 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1690
1691         * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1692         * breakpoint.c (detach_breakpoints): Change pid parameter into
1693         a ptid.  Adjust code accordingly.
1694         * infrun.c (handle_inferior_event): Delete variable child_pid.
1695         Update call to detach_breakpoints to pass the child ptid for
1696         fork events.
1697         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1698         assert that inferior_ptid's lwp is zero.
1699         (linux_handle_extended_wait): Update call to detach_breakpoints.
1700         * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1701         detach_breakpoints.
1702
1703 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1704
1705         * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1706         parent, only call detach_breakpoints if tts.tts_event ==
1707         TTEVT_VFORK.
1708
1709 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1710
1711         * dwarf2-frame.c (dwarf2_frame_cache): Use
1712         get_frame_address_in_block instead of get_frame_pc as
1713         the bound for executing the frame's FDE.
1714
1715 2012-08-16  Yao Qi  <yao@codesourcery.com>
1716
1717         * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1718         * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1719         * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1720         (c_type_print_varspec_suffix): Likewise.
1721         * eval.c (evaluate_subexp_standard): Likewise.
1722         * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1723         (f_type_print_varspec_suffix): Likewise.
1724         * gdbtypes.c (is_scalar_type): Likewise.
1725         (recursive_dump_type): Likewise.
1726         * infcall.c (value_arg_coerce): Likewise.
1727         * m2-valprint.c (m2_val_print): Likewise.
1728         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1729         (pascal_type_print_varspec_suffix): Likewise.
1730         (pascal_type_print_base): Likewise.
1731         * p-valprint.c (pascal_val_print): Likewise.
1732         (pascal_val_print): Likewise.
1733         * valops.c (value_slice): Likewise.
1734         * valprint.c (scalar_type_p): Likewise.
1735         * valarith.c (value_bitstring_subscript): Remove.
1736         (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1737         Remove comment on TYPE_CODE_BITSTRING.
1738
1739         * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1740         TYPE_CODE_BITSTRING.
1741
1742         * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1743         slot 0.
1744
1745 2012-08-16  Yao Qi  <yao@codesourcery.com>
1746
1747         * tracepoint.c (trace_find_none_command): Remove.
1748         (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1749
1750 2012-08-16  Yao Qi  <yao@codesourcery.com>
1751
1752         * remote.c (handle_notification): Remove parameter 'length'.
1753         (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1754
1755 2012-08-15  Keith Seitz  <keiths@redhat.com>
1756
1757         * gdbtypes.c (opaque_type_resolution): Make static.
1758         Add missing comment.
1759         (overload_debug): Add missing comment.
1760         (show_opaque_type_resolution): Likewise.
1761         (show_overload_debug): Likewise.
1762         (print_bit_vector): Remove unnecessary forward declaration.
1763         (print_arg_types): Likewise.
1764         (dump_fn_fieldlists): Likewise.
1765         (print_cplus_stuff): Likewise.
1766
1767 2012-08-15  Tom Tromey  <tromey@redhat.com>
1768
1769         * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1770         (gdb_bfd_ref): Initialize new field.
1771         (gdb_bfd_unref): Unref the archive BFD.
1772         (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1773         parent archive.
1774
1775 2012-08-15  Tom Tromey  <tromey@redhat.com>
1776
1777         PR python/14387:
1778         * python/py-bpevent.c (create_breakpoint_event_object): Update
1779         comment.
1780         * python/py-event.c (evpy_add_attribute): Update comment.
1781         * python/py-exitedevent.c (create_exited_event_object): Fix
1782         reference counting and error handling.
1783         * python/py-newobjfileevent.c (create_new_objfile_event_object):
1784         Fix reference counting.
1785         * python/py-signalevent.c (create_signal_event_object): Fix
1786         reference counting and error handling.
1787         * python/py-stopevent.c (emit_stop_event): Fix reference
1788         counting.
1789         * python/py-threadevent.c (get_event_thread): Return a
1790         borrowed reference.
1791         * python/py-type.c (convert_field): Fix reference counting.
1792
1793 2012-08-15  Tom Tromey  <tromey@redhat.com>
1794
1795         * dwarf2read.c (dwarf_decode_macro_bytes)
1796         <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1797         as hash key.
1798
1799 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
1800
1801         * infcmd.c (_initialize_infcmd): Update help text for the signal,
1802         stepi, nexti, finish, next, step, jump, and continue commands.
1803         * infrun.c (_initialize_infrun): Update help text for the handle
1804         command.
1805
1806 2012-08-14  Doug Evans  <dje@google.com>
1807
1808         * gdbtypes.c (struct extra): Delete, unused.
1809
1810         * gdbtypes.c: Whitespace cleanup.
1811         (address_space_name_to_int): Remove "extern" from definition.
1812         (_initialize_gdbtypes): Declare with initialize_file_ftype.
1813
1814         * gdbtypes.c (make_pointer_type): Remove redundant setting of
1815         TYPE_POINTER_TYPE (type).
1816
1817 2012-08-14  Gary Benson  <gbenson@redhat.com>
1818
1819         * solib-svr4.c (svr4_free_library_list): Use free_so.
1820
1821 2012-08-13  Mike Frysinger  <vapier@gentoo.org>
1822
1823         * .gitignore: Add go-exp.c.
1824
1825 2012-08-13  Doug Evans  <dje@google.com>
1826
1827         * value.c (show_convenience): Tweak comment.
1828         (_initialize_values): Mention convenience functions in the help text
1829         for "show convenience".
1830
1831 2012-08-13  Yao Qi  <yao@codesourcery.com>
1832
1833         * std-operator.def: Remove TERNOP_SLICE_COUNT.
1834         * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1835         TERNOP_SLICE_COUNT.
1836         * eval.c (evaluate_subexp_standard): Likewise.
1837         * expprint.c (print_subexp_standard): Likewise.
1838         (dump_subexp_body_standard): Likewise.
1839         * parse.c (operator_length_standard): Likewise.
1840
1841 2012-08-13  Yao Qi  <yao@codesourcery.com>
1842
1843         * std-operator.def: Remove OP_BITSTRING.
1844         * breakpoint.c (watchpoint_exp_is_const): Update.
1845         * eval.c (evaluate_subexp_standard): Remove handling to
1846         OP_BITSTRING.
1847         * expprint.c (print_subexp_standard): Likewise.
1848         (dump_subexp_body_standard): Likewise.
1849         * parse.c (operator_length_standard): Likewise.
1850         * valops.c (value_bitstring): Remove.
1851         * value.h: Remove the declaration of 'value_bitstring'.
1852
1853 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
1854
1855         * linespec.c (find_methods): Remove unused variables `i1' and
1856         `name_len'.
1857         (decode_line_full): Likewise for `arg_start'.
1858
1859 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
1860
1861         * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1862         (zlib_decompress_section): Likewise for `section_data'.
1863         (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1864
1865 2012-08-10  Doug Evans  <dje@google.com>
1866
1867         Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1868         * NEWS: Document them.
1869         * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1870         function/strfns.py.
1871         * python/py-type.c (typy_array_1): New function.
1872         (typy_array): Call it.
1873         (typy_vector): New function.
1874         (type_object_methods): Add "vector".
1875         * python/lib/gdb/function/__init__.py: New file.
1876         * python/lib/gdb/function/strfns.py: New file.
1877
1878 2012-08-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
1879
1880         * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1881         for TYPE_FIELD_BITPOS.
1882         (typy_get_sizeof): Likewise for TYPE_LENGTH.
1883
1884 2012-08-10  Mike Frysinger  <vapier@gentoo.org>
1885
1886         PR cli/10436:
1887         * common/vec.h (VEC_merge): Define.
1888         (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1889         (DEF_VEC_ALLOC_FUNC_P): Likewise.
1890         (DEF_VEC_ALLOC_FUNC_O): Likewise.
1891         * completer.c: Include gdb_signals.h.
1892         (signal_completer): Define.
1893         * completer.h (signal_completer): Add prototype.
1894         * infcmd.c (_initialize_infcmd): Assign the command
1895         completer for "signal" to handle_completer.
1896         * infrun.c: Include completer.h.
1897         (handle_completer): Define.
1898         (_initialize_infrun): Declare a new local variable c.  Store the
1899         result of add_com("handle") to it.  Assign the command
1900         completer for "handle" to handle_completer.
1901
1902 2012-08-09  Yao Qi  <yao@codesourcery.com>
1903
1904         * cli/cli-decode.c (set_cmd_prefix): New.
1905         (lookup_cmd_for_prefixlist): New.
1906         (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1907         of each cmd_list_element in *prefixlist.
1908         (add_setshow_cmd_full): set_cmd_prefix.
1909         (add_alias_cmd): Likewise.
1910         * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1911         Declare 'auto_boolean_enums'.
1912         * cli/cli-setshow.c: Include "observer.h".
1913         (notify_command_param_changed_p): New.
1914         (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1915         Remove 'static'.
1916         (do_setshow_command): Split it to ...
1917         (do_set_command, do_show_command): ... them.  New.
1918         (do_set_command): Call observer_notify_command_param_changed if
1919         notify_command_param_changed_p returns true.
1920         (cmd_show_list): Caller update.
1921         * auto-load.c (set_auto_load_cmd): Likewise.
1922         * remote.c (show_remote_cmd): Likewise.
1923         * cli/cli-setshow.h: Update declarations.
1924         * top.c (execute_command): Call do_set_command and do_show_command.
1925
1926         * NEWS: Mention new MI notification.
1927         * mi/mi-interp.c: Declare mi_command_param_changed.
1928         (mi_interpreter_init): Attach mi_command_param_changed to
1929         observer command_param_changed.
1930         (mi_command_param_changed): New.
1931         Remove mi_suppress_breakpoint_notifications.
1932         Define global variable mi_suppress_notification.
1933         (mi_breakpoint_created): Update.
1934         (mi_breakpoint_deleted): Likewise.
1935         (mi_breakpoint_modified): Likewise.
1936         * mi/mi-main.c (mi_cmd_execute): Likewise.  Check command
1937         'gdb-set' and set mi_suppress_notification.
1938         * mi/mi-main.h: (mi_suppress_notification): New struct.
1939
1940 2012-08-09  Andreas Tobler  <andreast@fgznet.ch>
1941             Jan Kratochvil  <jan.kratochvil@redhat.com>
1942
1943         * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1944
1945 2012-08-09  Yao Qi  <yao@codesourcery.com>
1946
1947         * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1948         (skiplist): Move it to skip.c.
1949         (init_cmd_lists): Remove code setting enablebreaklist and
1950         skiplist to NULL.
1951         * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1952         * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1953         skiplist.
1954         * gdbcmd.h: Likewise.
1955         * skip.c (_initialize_step_skip): Move 'skiplist' from
1956         cli/cli-cmds.c.
1957
1958 2012-08-09  Yao Qi  <yao@codesourcery.com>
1959
1960         * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1961         * gnu-nat.c, symfile.c: Likewise.
1962
1963 2012-08-08  Aaron Gamble  <agamble@google.com>
1964
1965         * utils.c (prompt_for_continue_wait_time): New static global.
1966         (make_command_stats_cleanup): Initialize it.
1967         (report_command_stats): Subtract time waiting for user.
1968         (prompt_for_continue): Track time waiting for user.
1969         (defaulted_query): Track time waiting for user.
1970
1971 2012-08-08  Doug Evans  <dje@google.com>
1972
1973         * eval.c (evaluate_subexp_standard): Fix thinko in handling
1974         UNOP_MEMVAL_TYPE.
1975         * expprint.c (print_subexp_standard, case OP_TYPE): New.
1976         (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1977         (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1978         (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1979         (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1980         (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1981         elt.
1982         (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1983         (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1984         (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1985         (dump_prefix_expression): Handle OP_TYPE.
1986
1987 2012-08-08  Keith Seitz  <keiths@redhat.com>
1988
1989         * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1990         addr_start.
1991
1992 2012-08-08  Doug Evans  <dje@google.com>
1993
1994         * linux-thread-db.c: #include "gdb_vecs.h".
1995         (try_thread_db_load_from_pdir_1): New arg "subdir".  All callers
1996         updated.
1997         (try_thread_db_load_from_pdir): New arg "subdir".  All callers updated.
1998         (thread_db_load_search): Use a vector to iterate over path elements.
1999         Handle text appearing after "$pdir".
2000
2001         * gdb_string.h: Moved to ...
2002         * common/gdb_string.h: ... here.
2003         * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2004         gdb_string.h and gdb_assert.h.
2005
2006 2012-08-08  Yao Qi  <yao@codesourcery.com>
2007
2008         * tic6x-tdep.c (tic6x_register_to_value): Remove.
2009         (tic6x_value_to_register): Likewise.
2010         (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2011         and set_gdbarch_value_to_register.
2012
2013 2012-08-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
2014             Jean-Marc Saffroy  <saffroy@gmail.com>
2015
2016         PR 11804
2017         * defs.h (find_memory_region_ftype): New comment.  New arg modified.
2018         * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2019         * gcore.c (gcore_create_callback): New function comment.  Add modified
2020         parameter.  Only write modified regions.  Set SEC_READONLY exactly
2021         according to MODIFIED.
2022         (objfile_find_memory_regions): Ignore separate debug info files.  Ass
2023         the passed modified value to FUNC.
2024         * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2025         * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2026         first.  New variables modified and has_anonymous.  Parse the lines of
2027         smaps file.  Add the passed MODIFIED value to FUNC.
2028         * procfs.c (find_memory_regions_callback): Add the passed modified
2029         value.
2030
2031 2012-08-06  Tom Tromey  <tromey@redhat.com>
2032
2033         * dwarf2-frame.c (clear_pointer_cleanup): New function.
2034         (dwarf2_frame_cache): Use it.
2035         * frame-unwind.h (frame_sniffer_ftype): Document prologue
2036         cache initialization constraint.
2037
2038 2012-08-06  Tom Tromey  <tromey@redhat.com>
2039
2040         PR python/14386:
2041         * varobj.c (update_dynamic_varobj_children): Don't call
2042         PyIter_Check.
2043
2044 2012-08-06  Tom Tromey  <tromey@redhat.com>
2045
2046         PR cli/14392:
2047         * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2048
2049 2012-08-06  Nathaniel Flath  <flat0103@gmail.com>
2050
2051         * NEWS: New entry for 'cd' default parameters.
2052         * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2053
2054 2012-08-03  Tom Tromey  <tromey@redhat.com>
2055
2056         * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2057         return.
2058
2059 2012-08-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
2060
2061         * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2062         to attempting lseek/write.
2063         (inf_child_fileio_pread): Likewise for pread.
2064
2065 2012-08-02  Yao Qi  <yao@codesourcery.com>
2066
2067         * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2068         (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2069         add_setshow_zinteger_cmd.
2070         * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2071         * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2072         (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2073         instead of add_setshow_zinteger_cmd.
2074         * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2075         (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2076         instead of add_setshow_zinteger_cmd.
2077         * frame.c (frame_debug): Add 'unsigned'.
2078         (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2079         add_setshow_zinteger_cmd.
2080         * frame.h: Update the declaration of 'frame_debug'.
2081         * gdbtypes.c (overload_debug): Add 'unsigned'.
2082         (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2083         add_setshow_zinteger_cmd.
2084         * inferior.h: Update declaration of 'debug_infrun'.
2085         * infrun.c (debug_infrun): Add 'unsigned'.
2086         (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2087         add_setshow_zinteger_cmd.
2088         * jit.c (jit_debug): Add 'unsigned'.
2089         (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2090         add_setshow_zinteger_cmd.
2091         * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2092         (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2093         instead of add_setshow_zinteger_cmd.
2094         * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2095         (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2096         add_setshow_zinteger_cmd.
2097         * machoread.c (mach_o_debug_level): Add 'unsigned'.
2098         (_initialize_machoread): Call add_setshow_zuinteger_cmd
2099         instead of add_setshow_zinteger_cmd.
2100         * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2101         * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2102         (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2103         intead of add_setshow_zinteger_cmd.
2104         * mips-tdep.c (mips_debug): Add 'unsigned'.
2105         (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2106         instead of add_setshow_zinteger_cmd.
2107         * monitor.c (monitor_debug): Add 'unsigned'.
2108         (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2109         add_setshow_zinteger_cmd.
2110         * observer.c (observer_debug): Add 'unsigned'.
2111         (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2112         add_setshow_zinteger_cmd.
2113         * parse.c (expressiondebug): Add 'unsigned'.
2114         (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2115         add_setshow_zinteger_cmd.
2116         * record.c (record_debug): Add 'unsigned'.
2117         (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2118         add_setshow_zinteger_cmd.
2119         * record.h: Update the declaration of 'record_debug'.
2120         * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2121         (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2122         add_setshow_zinteger_cmd.
2123         * serial.c (global_serial_debug_p): Add 'unsigned'.
2124         (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2125         add_setshow_zinteger_cmd.
2126         * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2127         (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2128         add_setshow_zinteger_cmd.
2129         * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2130         (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2131         add_setshow_zinteger_cmd.
2132         * target.c (targetdebug): Add 'unsigned'.
2133         (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2134         add_setshow_zinteger_cmd.
2135         * valops.c (overload_debug): Add 'unsigned'.
2136         * varobj.c (varobjdebug): Add 'unsigned'.
2137         (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2138         add_setshow_zinteger_cmd.
2139         * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2140         (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2141         instead of add_setshow_zinteger_cmd.
2142
2143         * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2144         * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2145         (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2146         instead of add_setshow_zinteger_cmd.
2147         * gdbarch.c, gdbarch.h: Re-generated.
2148
2149 2012-08-02  Yao Qi  <yao@codesourcery.com>
2150
2151         * nto-tdep.c: Don't include cli/cli-decode.h and
2152         cli/cli-cmds.h.
2153         (_initialize_nto_tdep): Remove.
2154         * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2155         Remove field.
2156         Remove macro nto_internal_debugging.
2157
2158 2012-08-01  Richard Henderson  <rth@redhat.com>
2159
2160         * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2161         (mep-*-*) [gdb_target_obs]: Likewise.
2162
2163 2012-07-31  Andreas Schwab  <schwab@linux-m68k.org>
2164
2165         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2166         linux_get_siginfo_type.
2167
2168 2012-07-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
2169
2170         * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2171         AT_ENTRY_POINT.
2172         (call_function_by_hand) <ON_STACK>: Call write_memory with
2173         gdbarch_breakpoint_from_pc, if possible.
2174         (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2175         here.
2176
2177 2012-07-31  Yao Qi  <yao@codesourcery.com>
2178
2179         * tracepoint.c: Add 'static' for some variables.
2180
2181 2012-07-31  Yao Qi  <yao@codesourcery.com>
2182
2183         * go32-nat.c: Declare _initialize_go32_nat.
2184         * ser-go32.c: Declare _initialize_ser_dos.
2185         * top.c (do_chdir_cleanup): Add 'static'.
2186
2187 2012-07-30  Keith Seitz  <keiths@redhat.com>
2188
2189         * linespec.c (linespec_lex_number): A number followed
2190         by quotes is a valid number, too.
2191
2192 2012-07-30  Tom Tromey  <tromey@redhat.com>
2193
2194         * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2195
2196 2012-07-30  Ulrich Weigand  <ulrich.weigand@linaro.org>
2197
2198         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2199         attempt to 4-byte-align HW breakpoint addresses for Thumb.
2200
2201 2012-07-30  Andrew Burgess  <aburgess@broadcom.com>
2202
2203         * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2204         invalid or reevaluated to prevent prevent references to possibly
2205         delete'd type objects being left in the varobj.
2206
2207 2012-07-27  Tom Tromey  <tromey@redhat.com>
2208             Jan Kratochvil  <jan.kratochvil@redhat.com>
2209
2210         * copying.awk: Print buffer-read-only and vi ro markers.
2211         * copying.c: Rebuild.
2212         * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2213         * gdbarch.c, gdbarch.h: Rebuild.
2214         * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2215         buffer-read-only and vi ro markers.
2216         * features/arm-with-iwmmxt.c: Rebuild.
2217         * features/arm-with-m-fpa-layout.c: Rebuild.
2218         * features/arm-with-m-vfp-d16.c: Rebuild.
2219         * features/arm-with-m.c: Rebuild.
2220         * features/arm-with-neon.c: Rebuild.
2221         * features/arm-with-vfpv2.c: Rebuild.
2222         * features/arm-with-vfpv3.c: Rebuild.
2223         * features/i386/amd64-avx-linux.c: Rebuild.
2224         * features/i386/amd64-avx.c: Rebuild.
2225         * features/i386/amd64-linux.c: Rebuild.
2226         * features/i386/amd64.c: Rebuild.
2227         * features/i386/i386-avx-linux.c: Rebuild.
2228         * features/i386/i386-avx.c: Rebuild.
2229         * features/i386/i386-linux.c: Rebuild.
2230         * features/i386/i386-mmx-linux.c: Rebuild.
2231         * features/i386/i386-mmx.c: Rebuild.
2232         * features/i386/i386.c: Rebuild.
2233         * features/i386/x32-avx-linux.c: Rebuild.
2234         * features/i386/x32-avx.c: Rebuild.
2235         * features/i386/x32-linux.c: Rebuild.
2236         * features/i386/x32.c: Rebuild.
2237         * features/mips-dsp-linux.c: Rebuild.
2238         * features/mips-linux.c: Rebuild.
2239         * features/mips64-dsp-linux.c: Rebuild.
2240         * features/mips64-linux.c: Rebuild.
2241         * features/rs6000/powerpc-32.c: Rebuild.
2242         * features/rs6000/powerpc-32l.c: Rebuild.
2243         * features/rs6000/powerpc-403.c: Rebuild.
2244         * features/rs6000/powerpc-403gc.c: Rebuild.
2245         * features/rs6000/powerpc-405.c: Rebuild.
2246         * features/rs6000/powerpc-505.c: Rebuild.
2247         * features/rs6000/powerpc-601.c: Rebuild.
2248         * features/rs6000/powerpc-602.c: Rebuild.
2249         * features/rs6000/powerpc-603.c: Rebuild.
2250         * features/rs6000/powerpc-604.c: Rebuild.
2251         * features/rs6000/powerpc-64.c: Rebuild.
2252         * features/rs6000/powerpc-64l.c: Rebuild.
2253         * features/rs6000/powerpc-7400.c: Rebuild.
2254         * features/rs6000/powerpc-750.c: Rebuild.
2255         * features/rs6000/powerpc-860.c: Rebuild.
2256         * features/rs6000/powerpc-altivec32.c: Rebuild.
2257         * features/rs6000/powerpc-altivec32l.c: Rebuild.
2258         * features/rs6000/powerpc-altivec64.c: Rebuild.
2259         * features/rs6000/powerpc-altivec64l.c: Rebuild.
2260         * features/rs6000/powerpc-cell32l.c: Rebuild.
2261         * features/rs6000/powerpc-cell64l.c: Rebuild.
2262         * features/rs6000/powerpc-e500.c: Rebuild.
2263         * features/rs6000/powerpc-e500l.c: Rebuild.
2264         * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2265         * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2266         * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2267         * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2268         * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2269         * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2270         * features/rs6000/powerpc-vsx32.c: Rebuild.
2271         * features/rs6000/powerpc-vsx32l.c: Rebuild.
2272         * features/rs6000/powerpc-vsx64.c: Rebuild.
2273         * features/rs6000/powerpc-vsx64l.c: Rebuild.
2274         * features/rs6000/rs6000.c: Rebuild.
2275         * features/s390-linux32.c: Rebuild.
2276         * features/s390-linux32v1.c: Rebuild.
2277         * features/s390-linux32v2.c: Rebuild.
2278         * features/s390-linux64.c: Rebuild.
2279         * features/s390-linux64v1.c: Rebuild.
2280         * features/s390-linux64v2.c: Rebuild.
2281         * features/s390x-linux64.c: Rebuild.
2282         * features/s390x-linux64v1.c: Rebuild.
2283         * features/s390x-linux64v2.c: Rebuild.
2284         * features/tic6x-c62x-linux.c: Rebuild.
2285         * features/tic6x-c62x.c: Rebuild.
2286         * features/tic6x-c64x-linux.c: Rebuild.
2287         * features/tic6x-c64x.c: Rebuild.
2288         * features/tic6x-c64xp-linux.c: Rebuild.
2289         * features/tic6x-c64xp.c: Rebuild.
2290
2291 2012-07-27  Tom Tromey  <tromey@redhat.com>
2292
2293         * c-exp.y (classify_name): Avoid assignment in condition.
2294
2295 2012-07-27  Roland Schwingel  <roland.schwingel@onevision.com>
2296
2297         * amd64-windows-tdep.c: Include "frame.h".
2298         (amd64_windows_skip_trampoline_code): New function.
2299         (amd64_windows_init_abi): Add trampoline registration.
2300
2301 2012-07-27  Yao Qi  <yao@codesourcery.com>
2302
2303         * tracepoint.c (cur_traceframe_number): Remove.
2304         (set_tfile_traceframe): Remove.
2305         (tfile_trace_find, tfile_fetch_registers): Update callers.
2306         (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2307         (tfile_open, tfile_trace_find): Likewise.
2308
2309 2012-07-27  Yao Qi  <yao@codesourcery.com>
2310
2311         * thread.c (switch_to_thread): Don't call registers_changed.
2312
2313 2012-07-26  Tom Tromey  <tromey@redhat.com>
2314
2315         * Makefile.in (SFILES): Remove objc-exp.y.
2316         (YYFILES): Remove objc-exp.c.
2317         (YYOBJ): Remove objc-exp.o.
2318         (local-maintainer-clean): Don't mention objc-exp.c.
2319         * c-exp.y: Include objc-lang.h.
2320         (%union) <class>: New field.
2321         (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2322         (exp): Clone subscript production for OBJC_LBRAC.  Add various
2323         Objective C productions.
2324         (msglist, msgarglist, msgarg): New productions.
2325         (array_mod, func_mod, operator): Clone productions for
2326         OBJC_LBRAC.
2327         (parse_string_or_char): Handle '@' strings.
2328         (lex_one_token): Return OBJC_LBRAC.  Recognize @selector.
2329         (classify_name): Check la_name_of_this.  Recognize ObjC class
2330         names.
2331         * objc-exp.y: Remove.
2332         * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2333         * objc-lang.h (objc_parse, objc_error): Don't declare.
2334
2335 2012-07-26  Markus Metzger  <markus.t.metzger@intel.com>
2336
2337         * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2338
2339 2012-07-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
2340
2341         * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2342         and decrement.
2343
2344 2012-07-26  Tom Tromey  <tromey@redhat.com>
2345
2346         * copying.c: Rebuild.
2347         * copying.awk: Don't use immediate_quit.  Use 'no_set_class', not
2348         'no_class'.
2349
2350 2012-07-26  Tom Tromey  <tromey@redhat.com>
2351
2352         * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2353         immediate_quit.
2354         (print_objfile_statistics): Likewise.
2355         (maintenance_print_symbols): Likewise.
2356         (maintenance_print_msymbols): Likewise.
2357         (maintenance_print_objfiles): Likewise.
2358         * psymtab.c (print_partial_symbols): Call QUIT.
2359         (maintenance_print_psymbols): Likewise.  Don't modify
2360         immediate_quit.
2361         * copying.c (show_copying_command): Don't modify immediate_quit.
2362         (show_warranty_command): Likewise.
2363         * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2364
2365 2012-07-26  Keith Seitz  <keiths@redhat.com>
2366
2367         * linespec.c (linespec_lexer_lex_number): The input
2368         is also a valid number if the next character is a comma
2369         or colon.
2370
2371 2012-07-26  Joel Brobecker  <brobecker@adacore.com>
2372
2373         * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2374         configure options.
2375
2376 2012-07-26  Tristan Gingold  <gingold@adacore.com>
2377
2378         * machoread.c: Include gdb_bfd.h.
2379
2380 2012-07-26  Tristan Gingold  <gingold@adacore.com>
2381
2382         * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2383         offset.
2384
2385 2012-07-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2386
2387         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2388         SIZE to size_t.
2389         (dwarf2_evaluate_loc_desc): Likewise.
2390         (dwarf2_loc_desc_needs_frame): Likewise.
2391         (locexpr_describe_location_1): Likewise.
2392         * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2393         size_t.
2394         (struct dwarf2_loclist_baton): Likewise.
2395         * dwarf2read.c (struct dwarf_block): Likewise.
2396         (dump_die_shallow): Use pulongest to print dwarf_block.size.
2397         (decode_locdesc): Expand SIZE and I to size_t.
2398
2399 2012-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2400
2401         * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2402
2403 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
2404
2405         * doublest.c (convert_doublest_to_floatformat): If the exponent
2406         is too small, treat the value as zero.  If the exponent is too
2407         large, treat the value as infinity.
2408
2409 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
2410
2411         * configure.ac: Add --enable-lmcheck configure option.
2412         * configure: Regenerate.
2413
2414 2012-07-25  Tom Tromey  <tromey@redhat.com>
2415
2416         * NEWS: Mention maint info bfds.
2417         * gdb_bfd.c (all_bfds): New global.
2418         (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2419         (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2420         New functions.
2421
2422 2012-07-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
2423
2424         * configure.tgt: Add v850*-*-rtems*.
2425
2426 2012-07-25  Tom Tromey  <tromey@redhat.com>
2427
2428         * macrotab.c (macro_bcache_str): Remove cast.
2429
2430 2012-07-25  Hui Zhu  <hui_zhu@mentor.com>
2431
2432         * linespec.c (linespec_lexer_lex_number): Update comments,
2433         change the return and add check to make sure the input is
2434         the decimal numbers.
2435         (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2436         false, call linespec_lexer_lex_string.
2437
2438 2012-07-24  Tom Tromey  <tromey@redhat.com>
2439
2440         * symfile.c (symbol_file_add): Don't open BFD twice.
2441
2442 2012-07-24  Marc Khouzam  <marc.khouzam@ericsson.com>
2443
2444         * breakpoint.c (create_breakpoint): Store condition for pending
2445         breakpoints.
2446
2447 2012-07-24  Andreas Schwab  <schwab@linux-m68k.org>
2448
2449         * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2450         (m68k_return_value): Handle complex types like structures.
2451         (m68k_svr4_return_value): Likewise.
2452
2453 2012-07-24  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2454
2455         * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2456         parameters to bfd_get_section_name.
2457
2458 2012-07-24  Yao Qi  <yao@codesourcery.com>
2459
2460         * cli/cli-setshow.c: Handle case 'var_uinteger'
2461         and 'var_zuninteger' together.  Handle case 'var_integer' and
2462         'var_zinteger' together.
2463
2464 2012-07-23  Keith Seitz  <keiths@redhat.com>
2465
2466         * linespec.c (convert_linespec_to_sal): Don't add
2467         any symbols to the result vector if symbol_to_sal
2468         returns zero.
2469
2470 2012-07-23  Keith Seitz  <keiths@redhat.com>
2471
2472         * linespec.c (decode_objc): Record the function name
2473         in the linespec.
2474
2475 2012-07-23  Tom Tromey  <tromey@redhat.com>
2476
2477         * rs6000-nat.c (add_vmap): Rewrite archive loop.  Fix reference
2478         counting.
2479         * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2480         (map_vmap): Acquire a reference to the BFD.
2481
2482 2012-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
2483
2484         * p-valprint.c (pascal_object_print_value): Replace potentially
2485         unsafe alloca with xmalloc/xfree.
2486         * valops.c (search_struct_method): Likewise.
2487
2488 2012-07-23  Tom Tromey  <tromey@redhat.com>
2489
2490         * solib-svr4.c (enable_break): Update.
2491         * bfd-target.h (target_bfd_reopen): Update documentation.
2492
2493 2012-07-23  Tom Tromey  <tromey@redhat.com>
2494
2495         * symfile.c (separate_debug_file_exists): Update.
2496         (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2497         (reread_symbols): Update.
2498         * elfread.c (build_id_verify): Update.
2499         * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2500         bfd_open_maybe_remote.
2501
2502 2012-07-23  Tom Tromey  <tromey@redhat.com>
2503
2504         * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2505
2506 2012-07-23  Tom Tromey  <tromey@redhat.com>
2507
2508         * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2509         and 'abfd'.
2510         * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2511         and 'abfd'.
2512         * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2513         * machoread.c (macho_add_oso_symfile): Make a cleanup for
2514         'abfd'.
2515         (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2516         * objfiles.c (allocate_objfile): Acquire a new reference.
2517         * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2518         * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2519         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2520         a cleanup for 'nbfd'.
2521         * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2522         for 'nbfd'.
2523         * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2524         make a cleanup for 'abfd'.
2525         (symbol_file_add): Make a BFD cleanup.
2526
2527 2012-07-23  Tom Tromey  <tromey@redhat.com>
2528
2529         * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2530         (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2531         * corelow.c (core_open): Use gdb_bfd_fopen.
2532         * dsrec.c (load_srec): Use gdb_bfd_openr.
2533         * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2534         * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2535         * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2536         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2537         (gdb_bfd_fdopenr): New functions.
2538         * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2539         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2540         (gdb_bfd_fdopenr): Declare.
2541         * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2542         * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2543         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2544         gdb_bfd_openr_next_archived_file.
2545         (macho_check_dsym): Use gdb_bfd_openr.
2546         (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2547         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2548         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2549         * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2550         gdb_bfd_openr.
2551         * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2552         * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2553         gdb_bfd_openr_next_archived_file.
2554         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2555         Use gdb_bfd_openr.
2556         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2557         gdb_bfd_openr.
2558         * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2559         * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2560         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2561         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2562         (symfile_bfd_open): Use gdb_bfd_fopen.
2563         (generic_load): Use gdb_bfd_openr.
2564         * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2565
2566 2012-07-23  Tom Tromey  <tromey@redhat.com>
2567
2568         * bfd-target.c (target_bfd_reopen): Update.
2569         * cli/cli-dump.c (bfd_openr_with_cleanup)
2570         (bfd_openw_with_cleanup): Update.
2571         * corelow.c (core_open): Update.
2572         * dsrec.c (load_srec): Update.
2573         * exec.c (exec_file_attach): Update.
2574         * gcore.c (create_gcore_bfd): Update.
2575         * gdb_bfd.c (gdb_bfd_ref): Return void.
2576         (gdb_bfd_open): Update.
2577         * gdb_bfd.h (gdb_bfd_ref): Return void.
2578         Update comments.
2579         * jit.c (jit_bfd_try_read_symtab): Update.
2580         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2581         * machoread.c (macho_symfile_read_all_oso): Update.
2582         (macho_check_dsym): Update.
2583         * procfs.c (insert_dbx_link_bpt_in_file): Update.
2584         * remote-m32r-sdi.c (m32r_load): Update.
2585         * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2586         * rs6000-nat.c (add_vmap): Update.
2587         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2588         Update.
2589         * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2590         * solib-spu.c (spu_bfd_open): Update.
2591         * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2592         * spu-linux-nat.c (spu_bfd_open): Update.
2593         * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2594         (generic_load): Update.
2595         * windows-nat.c (windows_make_so): Update.
2596
2597 2012-07-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
2598
2599         * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2600
2601 2012-07-20  Jeff Kenton  <jkenton@tilera.com>
2602
2603         * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2604         SIGTRAMP_FRAME unwinding.
2605
2606 2012-07-20  Doug Evans  <dje@google.com>
2607
2608         * NEWS: Document new options "set/show use-deprecated-index-sections",
2609         and delete reference to --use-deprecated-index-sections.
2610         * symfile.h (use_deprecated_index_sections): Delete.
2611         * dwarf2read.c (use_deprecated_index_sections): Make static.
2612         (read_index_from_section): Update wording of how to load
2613         deprecated index sections.
2614         (_initialize_dwarf2_read): New options
2615         "set/show use-deprecated-index-sections".
2616         * main.c (captured_main): Delete --use-deprecated-index-sections.
2617
2618 2012-07-20  Pedro Alves  <palves@redhat.com>
2619
2620         PR threads/11692
2621         PR gdb/12203
2622
2623         * infrun.c (handle_inferior_event) <new thread>: Don't special
2624         case minus_one_ptid.
2625         <TARGET_WAITKIND_SPURIOUS>: Ditto.
2626         * linux-thread-db.c (thread_get_info_callback): Don't return early
2627         if the thread is zombie.
2628         (thread_from_lwp): Change return type to void.  Rewrite stale
2629         comment.
2630         (attach_thread): Don't return early if the thread is zombie,
2631         instead set its "dying" flag.
2632         (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2633         (find_new_threads_callback): Don't return early if the thread is
2634         zombie.
2635
2636 2012-07-20  Pedro Alves  <palves@redhat.com>
2637
2638         * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2639         * target.c (target_wait): Likewise.
2640         (str_comma_list_concat_elem, do_option, target_options_to_string):
2641         New functions.
2642         * target.h (target_options_to_string): Declare.
2643
2644 2012-07-20  Jan Kratochvil <jan.kratochvil@redhat.com>
2645             Tom Tromey  <tromey@redhat.com>
2646
2647         * dwarf2read.c (dwarf_decode_macros)
2648         <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2649         DW_MACRO_GNU_transparent_include_alt>: New cases.
2650         (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2651         DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2652
2653 2012-07-20  Tom Tromey  <tromey@redhat.com>
2654
2655         * dwarf2read.c (try_open_dwo_file): Don't call
2656         gdb_bfd_stash_filename.
2657
2658 2012-07-20  Pedro Alves  <palves@redhat.com>
2659
2660         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2661         (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2662         (i386_process_record): Tweak description comments.
2663
2664 2012-07-20  Pedro Alves  <palves@redhat.com>
2665
2666         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2667         (i386_process_record): Use record_read_memory.
2668         * record.c (record_read_memory): New function.
2669         (record_arch_list_add_mem, record_exec_insn): Use
2670         record_read_memory.
2671         * record.h (record_read_memory): Declare.
2672
2673 2012-07-20  Yao Qi  <yao@codesourcery.com>
2674
2675         * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2676         NULL for xfree.
2677
2678 2012-07-19  Pedro Alves  <palves@redhat.com>
2679
2680         * record.c (record_resume): Ask the target beneath to report all
2681         signals.
2682
2683 2012-07-19  Doug Evans  <dje@google.com>
2684
2685         * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2686         there's no section at address zero.
2687         (dwarf2_record_block_ranges): Ditto.
2688
2689 2012-07-19  Yao Qi  <yao@codesourcery.com>
2690
2691         * command.h, remote.c: Fix a typo in comment.
2692
2693 2012-07-19  Tom Tromey  <tromey@redhat.com>
2694
2695         PR exp/13206:
2696         * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2697         * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2698         OP_DECLTYPE>: New cases.
2699         * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2700         (type_exp): Add new productions.
2701         (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2702         and decltype.
2703         * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2704         New case.
2705         * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2706         OP_DECLTYPE>: New case.
2707         * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2708         New case.
2709         * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2710         * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2711
2712 2012-07-19  Tom Tromey  <tromey@redhat.com>
2713
2714         * c-exp.y (enum token_flags): New.
2715         (struct token) <cxx_only>: Remove.
2716         <flags>: New field.
2717         (tokentab3, tokentab2, ident_tokens): Update.
2718         (lex_one_token): Update.  Handle FLAG_SHADOW.
2719
2720 2012-07-19  Tom Tromey  <tromey@redhat.com>
2721
2722         * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2723         * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2724         UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2725         * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE.  Update
2726         for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.  Use
2727         type_exp production where appropriate.
2728         * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2729         <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2730         <UNOP_MEMVAL_TYPE>: New case.
2731         (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2732         (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2733         * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2734         <UNOP_MEMVAL_TYPE>: New case.
2735         (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2736         UNOP_REINTERPRET_CAST>: Update.
2737         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2738         * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2739         UNOP_REINTERPRET_CAST>: Update.
2740         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2741         * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2742         * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2743         constants.
2744
2745 2012-07-19  Yao Qi  <yao@codesourcery.com>
2746             Jan Kratochvil <jan.kratochvil@redhat.com>
2747
2748         * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2749         and case 'var_optional_filename' together.
2750         * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2751         instead of add_setshow_optional_filename_cmd for setshow command
2752         'args'.  Set completer for 'set args'.
2753
2754 2012-07-18  Doug Evans  <dje@google.com>
2755
2756         * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2757         * common/gdb_vecs.c: New file, contents from utils.c.
2758         * common/host-defs.h: New file, contents from defs.h.
2759         * utils.h: New file, contents from defs.h.
2760         * defs.h: Move all declarations of objects defined in utils.c
2761         to utils.h (except QUIT() and related).
2762         #include "utils.h", "host-defs.h".
2763         * probe.h (probe_p): Move here from gdb_vecs.h.
2764         * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2765         * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2766         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2767         * Makefile.in (SFILES): Add common/gdb_vecs.c.
2768         (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2769         (COMMON_OBS): Add gdb_vecs.o.
2770         (gdb_vecs.o): New rule.
2771
2772 2012-07-18  Keith Seitz  <keiths@redhat.com>
2773
2774         * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2775         parameter.  If non-zero, use SYMNAME as the canonical name
2776         for the SaL.
2777         Update all callers.
2778         (convert_linespec_to_sals): Use add_sal_to_sals for
2779         expressions, too.
2780         (decode_line_full): No need to "fill in missing canonical names"
2781         anymore. Simply make cleanups for the allocated names.
2782
2783 2012-07-18  Keith Seitz  <keiths@redhat.com>
2784
2785         * linespec.c (struct linespec): Constify expression,
2786         source_filename, function_name, and label_name.
2787         (symbol_not_found_error): Make all parameters const.
2788         (linespec_parser_delete): No need to check for NULL
2789         when using xfree. Cast const char * to char * for xfree.
2790
2791 2012-07-18  Keith Seitz  <keiths@redhat.com>
2792
2793         * breakpoint.c (invalid_thread_id_error): New function.
2794         (find_condition_and_thread): Use invalid_thread_id_error.
2795         (watch_command_1): Likewise.
2796
2797 2012-07-18  Tom Tromey  <tromey@redhat.com>
2798
2799         * cc-with-index.sh, cc-with-dwz.sh: Remove.
2800         * contrib/cc-with-tweaks.sh: New file.
2801
2802 2012-07-18  Tom Tromey  <tromey@redhat.com>
2803
2804         * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2805         (locate_dwz_sections): Recognize .gdb_index.
2806         (create_cus_from_index_list): New function.
2807         (create_cus_from_index): Use it.  Handle .dwz data.
2808         (read_index_from_section): New function, extracted from
2809         dwarf2_read_index.
2810         (dwarf2_read_index): Use it.  Read .gdb_index from dwz file,
2811         if needed.
2812
2813 2012-07-18  Tom Tromey  <tromey@redhat.com>
2814
2815         * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2816         (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2817         <is_dwz>: New field.
2818         (struct dwz_file): New.
2819         (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2820         (locate_dwz_sections, dwarf2_get_dwz_file)
2821         (get_abbrev_section_for_cu): New functions.
2822         (error_check_comp_unit_head, read_and_check_comp_unit_head)
2823         (read_and_check_type_unit_head): Add abbrev_section argument.
2824         (create_debug_types_hash_table): Update.
2825         (init_cutu_and_read_dies): Use proper abbrev section.
2826         (init_cutu_and_read_dies_no_follow): Likewise.
2827         (set_partial_user): Do nothing if PST==NULL.
2828         (read_comp_units_from_section): New function.
2829         (create_all_comp_units): Use it.
2830         (scan_partial_symbols, partial_die_parent_scope): Update.
2831         (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2832         (process_imported_unit_die, read_partial_die): Handle .dwz files.
2833         (find_partial_die): Add offset_in_dwz argument.  Update.
2834         (guess_partial_die_structure_name, fixup_partial_die): Update.
2835         (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2836         DW_FORM_GNU_strp_alt.
2837         (read_indirect_string_from_dwz): New function.
2838         (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2839         (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2840         (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2841         (follow_die_offset): Add offset_in_dwz argument.
2842         (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2843         (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2844         (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2845         Handle new macro forms.
2846         (dwarf_decode_macros): Update.
2847         (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2848         (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2849         (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2850         (create_debug_types_hash_table): Use correct abbrev section.
2851         (get_debug_line_section): New function.
2852         (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2853         (process_full_comp_unit): Pass 'required' argument to
2854         end_symtab_get_static_block.
2855         * buildsym.h (end_symtab_get_static_block): Update.
2856         * buildsym.c (end_symtab_get_static_block): Add 'required'
2857         argument.
2858         (end_symtab, end_expandable_symtab): Update.
2859
2860 2012-07-18  Tom Tromey  <tromey@redhat.com>
2861
2862         * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2863         (pagesize): Remove.
2864         (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2865         (zlib_decompress_section): Remove.
2866         (dwarf2_read_section): Use gdb_bfd_map_section.
2867         (munmap_section_buffer): Remove.
2868         (free_dwo_file, dwarf2_per_objfile_free): Don't use
2869         munmap_section_buffer.
2870         * gdb_bfd.c: Include zlib.h, sys/mman.h.
2871         (struct gdb_bfd_section_data): New.
2872         (free_one_bfd_section): New function.
2873         (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2874         (get_section_descriptor, zlib_decompress_section)
2875         (gdb_bfd_map_section): New functions.
2876         * gdb_bfd.h (gdb_bfd_map_section): Declare.
2877
2878 2012-07-18  Tom Tromey  <tromey@redhat.com>
2879
2880         * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2881
2882 2012-07-18  Tom Tromey  <tromey@redhat.com>
2883
2884         * gdb_bfd.c (struct gdb_bfd_data): New.
2885         (gdb_bfd_cache): New global.
2886         (struct gdb_bfd_cache_search): New.
2887         (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2888         (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2889         * gdb_bfd.h (gdb_bfd_open): Declare.
2890
2891 2012-07-18  Tom Tromey  <tromey@redhat.com>
2892
2893         * utils.c (make_cleanup_bfd_unref): Rename from
2894         make_cleanup_bfd_close.
2895         * defs.h (make_cleanup_bfd_unref): Rename from
2896         make_cleanup_bfd_close.
2897         * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2898         (bfd_openw_with_cleanup): Update.
2899         * corelow.c (core_open): Update.
2900         * dsrec.c (load_srec): Update.
2901         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2902         * remote-m32r-sdi.c (m32r_load): Update.
2903         * remote-mips.c (mips_load_srec): Update.
2904         (pmon_load_fast): Update.
2905         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2906         Update.
2907         (darwin_bfd_open): Update.
2908         * solib.c (solib_bfd_fopen): Update.
2909         * symfile-mem.c (symbol_file_add_from_memory): Update.
2910         * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2911         (symfile_bfd_open): Update.
2912         (generic_load): Update.
2913
2914 2012-07-18  Tom Tromey  <tromey@redhat.com>
2915
2916         * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2917         (pmon_load_fast): Likewise.
2918         * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2919         (m32r_upload_command): Likewise.
2920         * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2921         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2922         Use make_cleanup_bfd_close.
2923
2924 2012-07-18  Tom Tromey  <tromey@redhat.com>
2925
2926         * symfile.c (symfile_bfd_open): Don't copy name.  Call
2927         gdb_bfd_stash_filename.
2928         (load_command): Open the new BFD before freeing the old.
2929         (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2930         * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2931         Call gdb_bfd_stash_filename.
2932         * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2933         * solib-spu.c (spu_bfd_fopen): Don't copy name.  Call
2934         gdb_bfd_stash_filename.
2935         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2936         Free found_pathname.
2937         * rs6000-nat.c (add_vmap): Don't copy filename.  Call
2938         gdb_bfd_stash_filename.
2939         * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2940         * machoread.c (macho_add_oso_symfile): Call
2941         gdb_bfd_stash_filename.
2942         (macho_symfile_read_all_oso): Arrange to free archive_name.  Call
2943         gdb_bfd_stash_filename.
2944         (macho_check_dsym): Don't copy filename.  Call
2945         gdb_bfd_stash_filename.
2946         * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2947         * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2948         * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2949         * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2950         * exec.c (exec_close): Don't free the BFD's filename.
2951         (exec_file_attach): Don't copy the filename.  Call
2952         gdb_bfd_stash_filename.
2953         * corelow.c (core_close): Don't free the BFD's filename.
2954         (core_open): Call gdb_bfd_stash_filename.
2955         * corefile.c (reopen_exec_file): Remove #if 0 code.
2956         * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename.  Free
2957         pathname.
2958         * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2959
2960 2012-07-18  Tom Tromey  <tromey@redhat.com>
2961
2962         * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2963         gdb_bfd_unref.
2964         (free_dwo_file): Use gdb_bfd_unref.
2965         * cli/cli-dump.c: Include gdb_bfd.h.
2966         (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2967         (bfd_openr_with_cleanup): Likewise.
2968         * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2969         gdb_bfd_unref.
2970         * utils.c: Include gdb_bfd.h.
2971         (do_bfd_close_cleanup): Use gdb_bfd_unref.
2972         * symfile.c: Include gdb_bfd.h.
2973         (separate_debug_file_exists): Use gdb_bfd_unref.
2974         (bfd_open_maybe_remote): Use gdb_bfd_ref.
2975         (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2976         (generic_load): Use gdb_bfd_ref.
2977         (reread_symbols): Use gdb_bfd_unref.
2978         * symfile-mem.c: Include gdb_bfd.h.
2979         (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2980         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2981         * solib.c: Include gdb_bfd.h.
2982         (solib_bfd_fopen): Use gdb_bfd_ref.
2983         (solib_bfd_open): Use gdb_bfd_unref.
2984         (free_so_symbols): Use gdb_bfd_unref.
2985         (reload_shared_libraries_1): Use gdb_bfd_unref.
2986         * solib-spu.c: Include gdb_bfd.h.
2987         (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2988         * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2989         gdb_bfd_unref.
2990         * solib-frv.c: Include gdb_bfd.h.
2991         (enable_break2): Use gdb_bfd_unref.
2992         * solib-dsbt.c: Include gdb_bfd.h.
2993         (enable_break2): Use gdb_bfd_unref.
2994         * solib-darwin.c: Include gdb_bfd.h.
2995         (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2996         gdb_bfd_unref.
2997         (darwin_bfd_open): Use gdb_bfd_unref.
2998         * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2999         * remote-mips.c: Include gdb_bfd.h.
3000         (mips_load_srec): Use gdb_bfd_ref.
3001         (pmon_load_fast): Use gdb_bfd_ref.
3002         * remote-m32r-sdi.c: Include gdb_bfd.h.
3003         (m32r_load): Use gdb_bfd_ref.
3004         * record.c: Include gdb_bfd.h.
3005         (record_save_cleanups): Use gdb_bfd_unref.
3006         (cmd_record_save): Use gdb_bfd_unref.
3007         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3008         gdb_bfd_unref.
3009         * objfiles.h (gdb_bfd_close_or_warn): Remove.
3010         (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3011         * objfiles.c: Include gdb_bfd.h.
3012         (free_objfile): Use gdb_bfd_unref.
3013         (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3014         gdb_bfd.c.
3015         * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3016         (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3017         (macho_check_dsym): Likewise.
3018         * m32r-rom.c: Include gdb_bfd.h.
3019         (m32r_load): Use gdb_bfd_ref.
3020         (m32r_upload_command): Use gdb_bfd_ref.
3021         * jit.c: Include gdb_bfd.h.
3022         (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3023         * gdb_bfd.h: New file.
3024         * gdb_bfd.c: New file.
3025         * gcore.c: Include gdb_bfd.h.
3026         (create_gcore_bfd): Use gdb_bfd_ref.
3027         (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3028         (gcore_command): Use gdb_bfd_unref.
3029         * exec.c: Include gdb_bfd.h.
3030         (exec_close): Use gdb_bfd_unref.
3031         (exec_close_1): Use gdb_bfd_unref.
3032         (exec_file_attach): Use gdb_bfd_ref.
3033         * elfread.c: Include gdb_bfd.h.
3034         (build_id_verify): Use gdb_bfd_unref.
3035         * dsrec.c: Include gdb_bfd.h.
3036         (load_srec): Use gdb_bfd_ref.
3037         * corelow.c: Include gdb_bfd.h.
3038         (core_close): Use gdb_bfd_unref.
3039         (core_open): Use gdb_bfd_ref.
3040         * bfd-target.c: Include gdb_bfd.h.
3041         (target_bfd_xclose): Use gdb_bfd_unref.
3042         (target_bfd_reopen): Use gdb_bfd_ref.
3043         * Makefile.in (SFILES): Add gdb_bfd.c.
3044         (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3045         (COMMON_OBS): Add gdb_bfd.o.
3046
3047 2012-07-18  Keith Seitz  <keiths@redhat.com>
3048
3049         * breakpoint.c (find_condition_and_thread): Initialize
3050         TASK and REST.
3051         (create_breakpiont): find_condition_and_thread will now
3052         initialize COND_STRING, THREAD, and REST (and TASK).
3053         (addr_string_to_sals): Likewise.
3054
3055 2012-07-18  Pedro Alves  <palves@redhat.com>
3056
3057         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3058         Pull the single step breakpoints out of the target.
3059
3060 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
3061
3062         * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3063         * stap-probe.c (compile_probe_arg): Likewise.
3064
3065 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
3066
3067         * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3068         (elf_compile_to_ax): Likewise.
3069         * infrun.c (insert_exception_resume_from_probe): Likewise.
3070         (check_exception_resume): Remove `objfile' variable.
3071         * probe.c (find_probe_by_pc): Remove `objfile' argument.
3072         (struct probe_and_objfile, probe_and_objfile_s): Delete.
3073         (collect_probes): Adjust return value to `VEC (probe_p) *'.
3074         (compare_entries): Rename to...
3075         (compare_probes): ...this.  Adjust function to work with
3076         `struct probe *'.  Rename variables `ea' and `eb' to `pa' and `pb'
3077         respectively.
3078         (gen_ui_out_table_header_info): Adjust `probes' argument to be
3079         `VEC (probe_p) *'.
3080         (print_ui_out_info): Adjust argument to be `struct probe *'.
3081         (info_probes_for_ops): Adjust internal computations to use
3082         `VEC (probe_p) *'.
3083         (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3084         * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3085         gen_info_probes_table_values>: Remove `objfile' argument.
3086         (struct probe) <objfile>: New field.
3087         (find_probe_by_pc): Remove `objfile' argument.
3088         * stap-probe.c (stap_parse_probe_arguments): Likewise.
3089         (stap_get_probe_argument_count): Likewise.
3090         (stap_get_arg): Likewise.
3091         (stap_evaluate_probe_argument): Likewise.
3092         (stap_compile_to_ax): Likewise.
3093         (compile_probe_arg): Refactor not to pass `objfile' anymore.
3094         (handle_stap_probe): Fill `objfile' field from `struct probe'.
3095         (stap_gen_info_probes_table_header): Remove `objfile' argument.
3096         * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3097         sym_compile_to_ax>: Likewise.
3098
3099 2012-07-18  Terry Guo  <terry.guo@arm.com>
3100
3101         PR 14329
3102         * defs.h (GDB_MI_MSG_WIDTH): New.
3103         * ser_base (ser_base_read_error_fd): New function.
3104         (do_ser_base_readchar): Poll error file descriptor as well as
3105         standard output.
3106         (generic_readchar): Refactor error handling.
3107
3108 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
3109
3110         * NEWS: Create a new section for the next release branch.
3111         Rename the section of the current branch, now that it has
3112         been cut.
3113
3114 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
3115
3116         GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3117         * version.in: Bump version to 7.5.50.20120718-cvs.
3118
3119 2012-07-17  Keith Seitz  <keiths@redhat.com>
3120
3121         * linespec.c (linespec_parse_line_offset): Make parameter
3122         const.
3123
3124 2012-07-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
3125
3126         PR 11914
3127         * f-valprint.c (info_common_command): New variable frame_id.
3128         Reinitialize FI form FRAME_ID after each print_variable_and_value.
3129         * printcmd.c (print_variable_and_value): Extend function comment.
3130         Add comment for invalidated FRAME.
3131         * stack.c (backtrace_command_1): New variable frame_id.  Reinitialize
3132         FI form FRAME_ID after each print_frame_local_vars.
3133         (struct print_variable_and_value_data): Change frame to frame_id.
3134         (do_print_variable_and_value): New variable frame, initialize it from
3135         p->frame_id.  Add comment for invalidated FRAME.
3136         (print_frame_local_vars, print_frame_arg_vars): New function comment.
3137         Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization.  Add comment
3138         for invalidated FRAME.
3139
3140 2012-07-16  Marc Khouzam  <marc.khouzam@ericsson.com>
3141             Pedro Alves  <palves@redhat.com>
3142
3143         * linux-nat.c (linux_nat_detach): Don't unregister from the event
3144         loop.
3145
3146 2012-07-16  Tom Tromey  <tromey@redhat.com>
3147
3148         * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3149
3150 2012-07-15  Doug Evans  <dje@google.com>
3151
3152         * dwarf2read.c (stmt_list_hash): New struct.
3153         (type_unit_group): Embed "per_cu" member, remove pointer.
3154         New union member "t", move member "tus" into it, all uses updated.
3155         New member "hash", replaces member "line_offset, all uses updated.
3156         (quick_file_names): Replace member "offset" with "hash", all uses
3157         updated.
3158         (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3159         (hash_file_name_entry, eq_file_name_entry): Call them.
3160         (hash_type_unit_group, eq_type_unit_group): Ditto.
3161         (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3162         (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3163         (dw2_get_file_names): Update.
3164         (create_type_unit_group): Replace "per_cu" arg with "cu".
3165         All callers updated.  Fix "quick" (.gdb_index) handling.
3166         (get_type_unit_group): Replace "per_cu" arg with "cu".
3167         All callers updated.
3168         (build_type_unit_groups): Don't reset tu_stats.
3169
3170         * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3171         "tab_cur_size".  Change member "tab" to be a htab_t.
3172         (create_filename_seen_cache): Update.
3173         (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3174         (filename_seen): Update.
3175
3176 2012-07-13  Doug Evans  <dje@google.com>
3177
3178         * symtab.c (filename_seen): Update comment.
3179
3180 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3181             Doug Evans  <dje@google.com>
3182
3183         * buildsym.c (end_symtab_1): Split it to ...
3184         (end_symtab_get_static_block): ... this ...
3185         (end_symtab_from_static_block): ... and this function.
3186         (end_symtab, end_expandable_symtab): Call them.
3187         * buildsym.h (end_symtab_get_static_block)
3188         (end_symtab_from_static_block): New declarations.
3189         * dwarf2read.c (process_full_comp_unit): New variable static_block.
3190         Set its valid CU ranges.
3191
3192 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3193
3194         * dwarf2loc.c (disassemble_dwarf_expression): Handle
3195         DW_OP_GNU_parameter_ref.
3196
3197 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3198
3199         * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3200         read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3201
3202 2012-07-13  Doug Evans  <dje@google.com>
3203
3204         * symtab.c (output_source_filename): Delete unnecessary forward decl.
3205         (filename_seen_cache): New struct.
3206         (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3207         (create_filename_seen_cache): New function.
3208         (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3209         (filename_seen): Delete arg "first".  New arg "cache".  All callers
3210         updated.
3211         (output_source_filename_data): New struct.
3212         (output_source_filename): Delete arg "first".  New arg "data".
3213         All callers updated.
3214         (sources_info): Delete local "first".  New locals "data", "cleanups".
3215         Rewrite to use filename_seen_cache.
3216         (add_partial_filename_data): Delete member "first".  New member
3217         "filename_seen_cache".  All uses updated.
3218         (make_source_files_completion_list): Rewrite to use
3219         filename_seen_cache.
3220
3221 2012-07-12  Doug Evans  <dje@google.com>
3222
3223         * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3224
3225 2012-07-10  Doug Evans  <dje@google.com>
3226
3227         PR gdb/13498
3228         * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3229         all_type_unit_groups, type_unit_groups, tu_stats.
3230         (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3231         All uses updated.  Add type_unit_group to union "s".
3232         (type_unit_group): New struct.
3233         (IS_TYPE_UNIT_GROUP): New macro.
3234         (abbrev_table): Delete unused member "section".
3235         (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3236         (dw2_get_cu): Assert not used with type_unit_group.
3237         (dw2_get_primary_cu): New function.
3238         (dw2_build_type_unit_groups_reader): New function.
3239         (dw2_build_type_unit_groups): New function.
3240         (dw2_get_file_names): Assert not called on type units.
3241         (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3242         Redo loop to iterate over type unit groups instead of type units.
3243         (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3244         (read_abbrev_offset): New function.
3245         (init_cutu_and_read_dies): New arg "abbrev_table".  All callers
3246         updated.
3247         (create_partial_symtab): New function.
3248         (process_psymtab_comp_unit_reader): Assert not used with type units.
3249         Call create_partial_symtab.
3250         (process_psymtab_type_unit): Delete.
3251         (hash_type_unit_group, eq_type_unit_group): New functions.
3252         (allocate_type_unit_groups_table): New function.
3253         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3254         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3255         (create_type_unit_group, get_type_unit_group): New functions.
3256         (tu_abbrev_offset): New struct.
3257         (sort_tu_by_abbrev_offset): New function.
3258         (add_type_unit_group_to_table): New function.
3259         (build_type_unit_groups): New function.
3260         (build_type_psymtabs_reader): New function.
3261         (build_type_psymtab_dependencies): New function.
3262         (build_type_psymtabs): Rewrite.
3263         (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3264         is seen in a type unit.
3265         (process_queue): Move symtab expansion debugging printfs here.
3266         Call process_full_type_unit for type units.
3267         (compute_symtab_includes): Assert not called for type units.
3268         (process_cu_includes): Don't call compute_symtab_includes for
3269         type units.
3270         (process_full_type_unit): New function.
3271         (process_imported_unit_die): Flag an error if called for type units.
3272         (handle_DW_AT_stmt_list): Delete arg "want_line_info".  All callers
3273         updated.  Assert not called for type units.
3274         (read_file_scope): Call dwarf2_start_symtab.
3275         (setup_type_unit_groups): New function.
3276         (read_type_unit_scope): Rewrite.
3277         (abbrev_table_read_table): Initialize abbrev_table->offset.
3278         (abbrev_table_free_cleanup): New function.
3279         (dwarf2_start_symtab): New function.
3280         (load_full_type_unit): Assert not called for type unit groups.
3281         * buildsym.c (finish_block_internal): New arg "expandable".
3282         All callers updated.
3283         (start_symtab): Move most contents to ...
3284         (restart_symtab): ... here.  New function.
3285         (reset_symtab_globals): New function.
3286         (end_symtab_1): Renamed from end_symtab.  New arg "expandable".
3287         Call reset_symtab_globals.
3288         (end_symtab, end_expandable_symtab): New functions.
3289         (set_missing_symtab, augment_type_symtab): New functions.
3290         * buildsym.h (end_expandable_symtab): Declare.
3291         (augment_type_symtab, restart_symtab): Declare.
3292         * psympriv.h (struct partial_symtab): New member "anonymous".
3293         * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3294         anonymous psymtabs.
3295         (read_psymtabs_with_filename): Ditto.
3296         (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3297         (expand_symtabs_matching_via_partial): Ditto.
3298         (dump_psymtab): Update.
3299         * dictionary.c (dict_add_pending): New function.
3300         * dictionary.h (dict_add_pending): Declare.
3301
3302 2012-07-09  Doug Evans  <dje@google.com>
3303
3304         * buildsym.c (start_subfile): Remove unnecessary check for
3305         name == NULL.
3306
3307         * psymtab.c (allocate_psymtab): Use host_address_to_string.
3308
3309         * dwarf2read.c (load_full_type_unit): Simplify.
3310
3311         * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3312         to struct signatured_type **.  All uses updated.
3313
3314         * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3315         All callers updated.
3316
3317 2012-07-09  Tom Tromey  <tromey@redhat.com>
3318
3319         * c-exp.y (check_parameter_typelist): New function.
3320         (parameter_typelist): Call it.
3321         * eval.c (make_params): Handle '(void)' case.
3322         * gdbtypes.c (lookup_function_type_with_arguments): Handle
3323         '(void)' case.
3324
3325 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3326
3327         * common/linux-ptrace.c: Include gdb_assert.h.
3328         <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3329         <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3330         stdint.h.
3331         (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3332         functions.
3333         * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3334         * linux-nat.c (linux_child_post_attach)
3335         (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3336
3337 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3338
3339         * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3340         nptl <2.7 bug workaround for core files.
3341
3342 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3343
3344         * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3345         clearing.
3346         (save_siginfo): Remove.
3347         (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3348         call.
3349         (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3350         (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3351         * linux-nat.h (struct lwp_info): Remove field siginfo.
3352
3353 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3354
3355         Code cleanup for the next patch.
3356         * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3357         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3358         call for it.
3359         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3360         (ia64_linux_stopped_data_address):
3361         * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3362         the return value.
3363         * linux-nat.h (linux_nat_get_siginfo): Likewise.
3364         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3365         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3366         call for it.
3367
3368 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3369
3370         PR 14321
3371         * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3372         Increase buffer sizes to 2x we need, not just 2x of the previous size.
3373
3374 2012-07-06  Tom Tromey  <tromey@redhat.com>
3375
3376         * c-exp.y (DOTDOTDOT): New token.
3377         (func_mod, exp): Use parameter_typelist.
3378         (parameter_typelist): New production.
3379         (tokentab3): Add "..." token.
3380         * eval.c (make_params): Handle varargs.
3381         * gdbtypes.c (lookup_function_type_with_arguments): Handle
3382         varargs.
3383
3384 2012-07-06  Tom Tromey  <tromey@redhat.com>
3385
3386         PR exp/9608:
3387         * c-exp.y (%union) <tvec>: Change type.
3388         (func_mod): Now uses <tvec> type.
3389         (exp): Update for tvec change.
3390         (direct_abs_decl): Push the typelist.
3391         (func_mod): Return a typelist.
3392         (nonempty_typelist): Update for tvec change.
3393         * gdbtypes.c (lookup_function_type_with_arguments): New function.
3394         * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3395         * parse.c (pop_type_list): New function.
3396         (push_typelist): New function.
3397         (follow_types): Handle tp_function_with_arguments.
3398         * parser-defs.h (type_ptr): New typedef.  Define a VEC.
3399         (enum type_pieces) <tp_function_with_arguments>: New constant.
3400         (union type_stack_elt) <typelist_val>: New field.
3401         (push_typelist): Declare.
3402
3403 2012-07-06  Tom Tromey  <tromey@redhat.com>
3404
3405         * c-exp.y (%union) <type_stack>: New field.
3406         (abs_decl, direct_abs_decl): Use <type_stack> type.  Update.
3407         (ptr_operator_ts): New production.
3408         (ptype): Update.
3409         * parse.c (type_stack_reserve): New function.
3410         (check_type_stack_depth): Use it.
3411         (pop_type_stack, append_type_stack, push_type_stack)
3412         (get_type_stack, type_stack_cleanup): New functions.
3413         (follow_types): Handle tp_type_stack.
3414         (_initialize_parse): Simplify initialization.
3415         * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3416         constant.
3417         (union type_stack_elt) <stack_val>: New field.
3418         (get_type_stack, append_type_stack, push_type_stack)
3419         (type_stack_cleanup): Declare.
3420
3421 2012-07-06  Tom Tromey  <tromey@redhat.com>
3422
3423         * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3424         Remove.
3425         (struct type_stack): New.
3426         * parse.c (type_stack, type_stack_size, type_stack_depth):
3427         Remove.
3428         (type_stack): New global.
3429         (parse_exp_in_context, check_type_stack_depth)
3430         (insert_into_type_stack, insert_type, push_type, push_type_int)
3431         (insert_type_address_space, pop_type, pop_type_int)
3432         (_initialize_parse): Update.
3433
3434 2012-07-06  Tom Tromey  <tromey@redhat.com>
3435
3436         * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3437         Remove %type.
3438
3439 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3440
3441         * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3442
3443 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3444             Jan Kratochvil  <jan.kratochvil@redhat.com>
3445
3446         * cp-valprint.c (cp_print_value): Replace potentially unsafe
3447         alloca with xmalloc/xfree.
3448
3449 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3450
3451         * MAINTAINERS (Write After Approval): Add myself to the list.
3452
3453 2012-07-05  Doug Evans  <dje@google.com>
3454
3455         * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3456
3457 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
3458
3459         * ax-gdb.c (cli/cli-utils.h): New include.
3460         (linespec.h): Ditto.
3461         (agent_eval_command_one): New function.
3462         (agent_command_1): Ditto.
3463         (agent_command): Call function agent_command_1.
3464         (agent_eval_command): Ditto.
3465         (_initialize_ax_gdb): Change help for "maint agent"
3466         and "maint agent-eval".
3467
3468 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
3469
3470         * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3471         * cli/cli-utils.c (check_for_argument): New function.
3472         * cli/cli-utils.h (check_for_argument): Ditto.
3473
3474 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
3475
3476         * NEWS: Mention x32 ABI support.
3477
3478 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
3479
3480         * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3481         AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3482
3483         * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3484         and pc_regnum_from_eax to -1.  Update SP regnum from
3485         sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3486         needed.
3487
3488         * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3489         pc_regnum_from_eax.
3490
3491 2012-07-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3492
3493         Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3494         * dwarf2expr.h: Include gdbtypes.h.
3495         (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3496         these forward declarations.
3497         (cu_offset, sect_offset): Move these ...
3498         * gdbtypes.h: Remove include dwarf2expr.h.
3499         (cu_offset, sect_offset): ... here.
3500
3501 2012-07-03  H.J. Lu  <hongjiu.lu@intel.com>
3502
3503         * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3504         (amd64_linux_sigtramp_code): This.
3505         (amd64_x32_linux_sigtramp_code): New.
3506         (LINUX_SIGTRAMP_LEN): Updated.
3507         (amd64_linux_sigtramp_start): Check x32 sigtramp.
3508
3509 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3510
3511         * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3512
3513 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3514
3515         * config.in: Regenerate.
3516         * configure: Regenerate.
3517         * configure.ac: Remove check for gnu/libc-version.h.
3518         * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3519         gnu/libc-version.h.
3520         (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3521         variables libc_version, libc_major and libc_minor.  Replace sscanf by
3522         inferior_has_bug.  Extend the comment.
3523
3524 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3525
3526         * linux-thread-db.c (inferior_has_bug): New function.
3527         (thread_db_find_new_threads_silently): Return boolean as checked by
3528         inferior_has_bug, describe it in the comments.
3529         (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3530         earlier.  Abort the initialization if it returned non-zero.
3531         (thread_db_new_objfile): Exclude debug files.
3532         (thread_db_find_new_threads_2): Preinitialize ERR.  Check errors also
3533         if UNTIL_NO_NEW,
3534
3535 2012-07-02  Doug Evans  <dje@google.com>
3536
3537         * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3538         related to queue management.
3539
3540         * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3541         instead of "debug dwarf2-die" in debugging printfs.
3542         (create_debug_info_hash_table_reader): Ditto.
3543         (create_debug_info_hash_table): Ditto.
3544         (init_dwo_file): Ditto.
3545         (init_cutu_and_read_dies): Add debugging printf.
3546         (init_cutu_and_read_dies_no_follow): Ditto.
3547         (process_psymtab_comp_unit_reader): Ditto.
3548
3549 2012-07-02  Stan Shebs  <stan@codesourcery.com>
3550
3551         Add target-side support for dynamic printf.
3552         * NEWS: Mention the additional style.
3553         * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3554         (struct bp_location): New field cmd_bytecode.
3555         * breakpoint.c: Include format.h.
3556         (disconnected_dprintf): New global.
3557         (parse_cmd_to_aexpr): New function.
3558         (build_target_command_list): New function.
3559         (insert_bp_location): Call it.
3560         (remove_breakpoints_pid): Skip dprintf breakpoints.
3561         (print_one_breakpoint_location): Ditto.
3562         (dprintf_style_agent): New global.
3563         (dprintf_style_enums): Add dprintf_style_agent.
3564         (update_dprintf_command_list): Add agent case.
3565         (agent_printf_command): New function.
3566         (_initialize_breakpoint): Add new commands.
3567         * common/ax.def (printf): New bytecode.
3568         * ax.h (ax_string): Declare.
3569         * ax-gdb.h (gen_printf): Declare.
3570         * ax-gdb.c: Include cli-utils.h, format.h.
3571         (gen_printf): New function.
3572         (maint_agent_print_command): New function.
3573         (_initialize_ax_gdb): Add maint agent-printf command.
3574         * ax-general.c (ax_string): New function.
3575         (ax_print): Add printf disassembly.
3576         * Makefile.in (SFILES): Add format.c
3577         (COMMON_OBS): Add format.o.
3578         * common/format.h: New file.
3579         * common/format.c: New file.
3580         * printcmd.c: Include format.h.
3581         (ui_printf): Call parse_format_string.
3582         * remote.c (remote_state): New field breakpoint_commands.
3583         (PACKET_BreakpointCommands): New enum.
3584         (remote_breakpoint_commands_feature): New function.
3585         (remote_protocol_features): Add new BreakpointCommands entry.
3586         (remote_can_run_breakpoint_commands): New function.
3587         (remote_add_target_side_commands): New function.
3588         (remote_insert_breakpoint): Call it.
3589         (remote_insert_hw_breakpoint): Ditto.
3590         (_initialize_remote): Add new packet configuration for
3591         target-side breakpoint commands.
3592         * target.h (struct target_ops): New field
3593         to_can_run_breakpoint_commands.
3594         (target_can_run_breakpoint_commands): New macro.
3595         * target.c (update_current_target): Handle
3596         to_can_run_breakpoint_commands.
3597
3598 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3599
3600         Execute -ix and -iex only after system and user gdbinit files.
3601         * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3602         processing down after gdbinit files.
3603
3604 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3605
3606         Add fnmatch-gnu module.
3607         * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3608         * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3609         * gnulib/aclocal.m4: Regenerate.
3610         * gnulib/config.in: Regenerate.
3611         * gnulib/configure: Regenerate.
3612         * gnulib/import/dummy.c: Remove.
3613         * gnulib/import/Makefile.am: Regenerate.
3614         * gnulib/import/Makefile.in: Likewise.
3615         * gnulib/import/m4/gnulib-cache.m4: Likewise.
3616         * gnulib/import/m4/gnulib-comp.m4: Likewise.
3617         * gnulib/import/alloca.c: New file.
3618         * gnulib/import/alloca.in.h: Likewise.
3619         * gnulib/import/config.charset: Likewise.
3620         * gnulib/import/fnmatch.c: Likewise.
3621         * gnulib/import/fnmatch.in.h: Likewise.
3622         * gnulib/import/fnmatch_loop.c: Likewise.
3623         * gnulib/import/localcharset.c: Likewise.
3624         * gnulib/import/localcharset.h: Likewise.
3625         * gnulib/import/m4/alloca.m4: Likewise.
3626         * gnulib/import/m4/codeset.m4: Likewise.
3627         * gnulib/import/m4/configmake.m4: Likewise.
3628         * gnulib/import/m4/fcntl-o.m4: Likewise.
3629         * gnulib/import/m4/fnmatch.m4: Likewise.
3630         * gnulib/import/m4/glibc21.m4: Likewise.
3631         * gnulib/import/m4/localcharset.m4: Likewise.
3632         * gnulib/import/m4/locale-fr.m4: Likewise.
3633         * gnulib/import/m4/locale-ja.m4: Likewise.
3634         * gnulib/import/m4/locale-zh.m4: Likewise.
3635         * gnulib/import/m4/mbrtowc.m4: Likewise.
3636         * gnulib/import/m4/mbsinit.m4: Likewise.
3637         * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3638         * gnulib/import/m4/mbstate_t.m4: Likewise.
3639         * gnulib/import/m4/stdbool.m4: Likewise.
3640         * gnulib/import/m4/wchar_h.m4: Likewise.
3641         * gnulib/import/m4/wctype_h.m4: Likewise.
3642         * gnulib/import/m4/wint_t.m4: Likewise.
3643         * gnulib/import/mbrtowc.c: Likewise.
3644         * gnulib/import/mbsinit.c: Likewise.
3645         * gnulib/import/mbsrtowcs-impl.h: Likewise.
3646         * gnulib/import/mbsrtowcs-state.c: Likewise.
3647         * gnulib/import/mbsrtowcs.c: Likewise.
3648         * gnulib/import/ref-add.sin: Likewise.
3649         * gnulib/import/ref-del.sin: Likewise.
3650         * gnulib/import/stdbool.in.h: Likewise.
3651         * gnulib/import/streq.h: Likewise.
3652         * gnulib/import/strnlen1.c: Likewise.
3653         * gnulib/import/strnlen1.h: Likewise.
3654         * gnulib/import/verify.h: Likewise.
3655         * gnulib/import/wchar.in.h: Likewise.
3656         * gnulib/import/wctype.in.h: Likewise.
3657
3658 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3659
3660         Support shell wildcards for 'set auto-load safe-path'.
3661         * auto-load.c: Include fnmatch.h.
3662         (filename_is_in_dir): Rename to ...
3663         (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3664         it.  Update function comment.  Rename dir_len to pattern_len.  New
3665         variables filename_len, pattern and filename.  Add more DEBUG_AUTO_LOAD
3666         messages.  Use gdb_filename_fnmatch.
3667         (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3668         pattern.
3669         (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3670         * defs.h (gdb_filename_fnmatch): New declaration.
3671         * utils.c: Include fnmatch.h.
3672         (gdb_filename_fnmatch): New function.
3673
3674 2012-07-02  Sergio Durigan Junior  <sergiodj@redhat.com>
3675
3676         * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3677         `-probe' and `-probe-stap' options.
3678
3679 2012-07-01  Yao Qi  <yao@codesourcery.com>
3680
3681         * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3682         always_inserted_off, and always_inserted_enums.
3683         Change always_inserted_mode's type to 'enum auto_boolean'.
3684         (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3685         callers.
3686         (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3687         of add_setshow_enum_cmd.
3688         * infrun.c: Remove can_use_displaced_stepping_auto,
3689         can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3690         can_use_displaced_stepping_enum.
3691         Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3692         (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3693         (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3694         add_setshow_enum_cmd.
3695
3696 2012-06-30  Doug Evans  <dje@google.com>
3697
3698         * dwarf2read.c (signatured_type): Make "per_cu" member first.
3699         (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3700         currently being read.  Propagate DW_AT_comp_dir to DWO DIE.
3701
3702 2012-06-29  Doug Evans  <dje@google.com>
3703
3704         * linespec.c: #include "stack.h".
3705         (decode_line_with_current_source): Moved here from symtab.c and
3706         renamed from decode_line_spec.  All callers updated.
3707         (decode_line_with_last_displayed): Moved here from breakpoint.c and
3708         renamed from decode_line_spec_1.  All callers updated.
3709         * linespec.h (decode_line_with_current_source): Move declaration here
3710         from symtab.h and renamed from decode_line_spec.
3711         (decode_line_with_last_displayed): Move declaration here from symtab.h
3712         and renamed from decode_line_spec_1.
3713         * macrocmd.c: #include "linespec.h".
3714         * symtab.c: Remove #include "linespec.h".
3715
3716 2012-06-28  Doug Evans  <dje@google.com>
3717
3718         * dwarf2read.c (get_cu_length): New function.
3719         (offset_in_cu_p, error_check_comp_unit_head): Call it.
3720         (create_debug_types_hash_table): Ditto.
3721         (init_cutu_and_read_dies): Ditto.
3722         (init_cutu_and_read_dies_no_follow): Ditto.
3723
3724         * dwarf2read.c (dwarf2_find_base_address): Move definition.
3725
3726         * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3727         (struct abbrev_table): Define.
3728         (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3729         abbrev_table.
3730         (init_cutu_and_read_dies): Update.
3731         (abbrev_table_alloc_abbrev): New function.  Replaces
3732         dwarf_alloc_abbrev.  All callers updated.
3733         (abbrev_table_add_abbrev): New function.
3734         (abbrev_table_lookup_abbrev): New function.  Replaces
3735         dwarf2_lookup_abbrev.  All callers updated.
3736         (abbrev_table_read_table): New function.  Contents moved here from
3737         dwarf2_read_abbrevs.
3738         (dwarf2_read_abbrevs): Call it.
3739         (abbrev_table_free): New function.
3740         (dwarf2_free_abbrev_table): Call it.
3741
3742 2012-06-28  Stan Shebs  <stan@codesourcery.com>
3743
3744         * osdata.c (info_osdata_command): Filter out "Title" columns
3745         from non-MI uses.
3746         * common/linux-osdata.c (struct osdata_type): Add title field.
3747         (osdata_table): Add titles to each entry.
3748         (linux_command_xfer_osdata): Add a column for title data.
3749
3750 2012-06-28  Stan Shebs  <stan@codesourcery.com>
3751
3752         Make logging work for MI.
3753         * NEWS: Mention it.
3754         * interps.h (interp_set_logging_ftype): New typedef.
3755         (struct interp_procs): New field set_logging_proc.
3756         (current_interp_set_logging): Declare.
3757         * interps.c (current_interp_set_logging): New function.
3758         * cli/cli-logging.c: Include interps.h.
3759         (set_logging_redirect): Call current_interp_set_logging.
3760         (pop_output_files): Ditto.
3761         (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3762         * mi/mi-console.h (mi_console_set_raw): Declare.
3763         * mi/mi-console.c (mi_console_set_raw): New function.
3764         * mi/mi-interp.c (saved_raw_stdout): New global.
3765         (mi_set_logging): New function.
3766         (_initialize_mi_interp): Add it to interp procs.
3767
3768 2012-06-28  Doug Evans  <dje@google.com>
3769
3770         * symtab.c (lookup_symbol_aux_objfile): Use
3771         ALL_OBJFILE_PRIMARY_SYMTABS.
3772
3773         * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3774
3775 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3776
3777         * common/buffer.c: Include inttypes.h and stdint.h.
3778         (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3779
3780 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3781             Pedro Alves  <palves@redhat.com>
3782
3783         * gdbthread.h (ALL_THREADS): New macro.
3784         (thread_list): Declare.
3785         * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3786         going, but instead fall through to the stepping handling.
3787         * linux-nat.c (resume_lwp): New parameter 'signo'.  Resume with
3788         the passed in signal.  Adjust debug output.
3789         (resume_callback): Rename to ...
3790         (linux_nat_resume_callback): ... this.  Pass the thread's last
3791         stop signal, if in "pass" state.
3792         (linux_nat_resume): Adjust to rename.
3793         (stop_wait_callback): New assertion.  Don't respawn signals;
3794         instead let the LWP remain with SIGNALLED set.
3795         (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3796         * remote.c (append_pending_thread_resumptions): New.
3797         (remote_vcont_resume): Call it.
3798         * target.h (target_resume): Extend comment.
3799
3800 2012-06-28  Iain Sandoe  <iain@codesourcery.com>
3801
3802         * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3803
3804 2012-06-27  Doug Evans  <dje@google.com>
3805
3806         * dwarf2read.c (dwarf2_cu): Add ranges_base.
3807         Delete have_addr_base, unused.  All uses updated.
3808         (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3809         (dwarf2_get_pc_bounds): Add ranges_base.
3810         (dwarf2_record_block_ranges): Ditto.
3811
3812 2012-06-27  Tom Tromey  <tromey@redhat.com>
3813
3814         PR macros/7961:
3815         * varobj.c (varobj_create): Update.
3816         (varobj_set_value): Update.
3817         * tracepoint.c (validate_actionline): Update.
3818         (encode_actions_1): Update.
3819         * parse.c (parse_exp_1): Add 'pc' argument.
3820         (parse_exp_in_context): Add 'pc' argument.  Change how
3821         expression_context_pc is set.
3822         (parse_expression): Update.
3823         (parse_field_expression): Update.
3824         * expression.h (parse_exp_1): Update.
3825         * eval.c (parse_to_comma_and_eval): Update.
3826         * breakpoint.c (set_breakpoint_condition): Update.
3827         (update_watchpoint): Update.
3828         (init_breakpoint_sal): Update
3829         (find_condition_and_thread): Update.
3830         (watch_command_1): Update.
3831         (update_breakpoint_locations): Update.
3832         * ada-lang.c (ada_read_renaming_var_value): Update.
3833         (create_excep_cond_exprs): Update.
3834
3835 2012-06-27  Doug Evans  <dje@google.com>
3836
3837         * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3838         type units.
3839
3840 2012-06-26  Doug Evans  <dje@google.com>
3841
3842         * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3843         prototype.
3844         (error_check_comp_unit_head): New arg abbrev_section.  All callers
3845         updated.
3846         (read_and_check_comp_unit_head): Ditto.
3847         (read_and_check_type_unit_head): Ditto.
3848
3849 2012-06-26  Siva Chandra Reddy  <sivachandra@google.com>
3850
3851         New attribute 'last' for gdb.Symtab_and_line.
3852         * NEWS (Python Scripting): Add entry about the new attribute.
3853         * python/py-symtab.c (salpy_get_last): New function which
3854         implements the get method for the 'last' attribute of
3855         gdb.Symtab_and_line.
3856         (sal_object_getset): Add entry for the 'last' attribute.
3857
3858 2012-06-26  Doug Evans  <dje@google.com>
3859
3860         * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3861         (dwo_sections): Add macinfo, macro.
3862         (dwarf2_locate_dwo_sections): Watch for macro sections.
3863         (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3864         All callers updated.  Handle DWO files.
3865
3866         * NEWS: Mention new options "set debug dwarf2-read" and
3867         "set debug symtab-create".
3868         * dwarf2read.c (dwarf2_read_debug): New static global.
3869         (dwarf2_build_psymtabs_hard): Add debugging printfs.
3870         (process_queue): Ditto.
3871         (process_full_comp_unit): Ditto.
3872         (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3873         * elfread.c (elf_symfile_read): Add debugging printf.
3874         * minsyms.c (install_minimal_symbols): Ditto.
3875         * psymtab.c (allocate_psymtab): Ditto.
3876         * symfile.c (allocate_symtab): Ditto.
3877         * symtab.c (symtab_create_debug): New global.
3878         (_initialize_symtab): Add new option "set debug symtab-create".
3879         * symtab.h (symtab_create_debug): Declare.
3880
3881         * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3882         (lookup_dwo_type_unit): Ditto.
3883
3884 2012-06-26  Roland McGrath  <roland@hack.frob.com>
3885             H.J. Lu  <hongjiu.lu@intel.com>
3886
3887         * amd64-linux-nat.c: Include <sys/user.h>.
3888         (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3889         if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3890         HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3891
3892         * configure.ac: Check if the fs_base and gs_base members of
3893         `struct user_regs_struct' exist.
3894         * config.in: Regenerated.
3895         * configure: Likewise.
3896
3897 2012-06-25  Michael Eager  <eager@eagercon.com>
3898
3899         PR python/14291
3900         * python/python.c (gdbpy_write): Check for interrupted output.
3901
3902 2012-06-25  Greta Yorsh  <greta.yorsh@arm.com>
3903
3904         * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3905         register as a stack alignment in ARM mode.
3906
3907 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3908
3909         Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3910         * gnulib/config.in: Regenerate.
3911         * gnulib/configure: Likewise.
3912         * gnulib/import/m4/extensions.m4: Update it.
3913         * gnulib/import/m4/gnulib-common.m4: Likewise.
3914         * gnulib/import/m4/memmem.m4: Likewise.
3915         * gnulib/import/m4/mmap-anon.m4: Likewise.
3916         * gnulib/import/m4/multiarch.m4: Likewise.
3917         * gnulib/import/stdint.in.h: Likewise.
3918
3919 2012-06-24  Yao Qi  <yao@codesourcery.com>
3920
3921         * corefile.c (write_memory_with_notification): New.
3922         * gdbcore.h: Declare write_memory_with_notification.
3923         * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3924         'observer_notify_memory_changed' with 'write_memory_with_notification'.
3925         * valops.c (value_assign): Likewise.
3926         * python/py-inferior.c (infpy_write_memory): Call
3927         'write_memory_with_notification'.
3928
3929 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3930
3931         * cc-with-index.sh: Use also -ex "set auto-load no".
3932
3933 2012-06-23  Doug Evans  <dje@google.com>
3934
3935         PR 14125
3936         * NEWS: Document additions to .gdb_index.
3937         * dwarf2read.c: #include "gdb/gdb-index.h".
3938         (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3939         (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3940         (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3941         (dwarf2_read_index): Recognize version 7.
3942         (dw2_do_expand_symtabs_matching): New args want_specific_block,
3943         block_kind, domain): All callers updated.
3944         (dw2_find_symbol_file): Handle new index CU values.
3945         (dw2_expand_symtabs_matching): Match symbol kind if requested.
3946         (add_index_entry): New args is_static, kind.  All callers updated.
3947         (offset_type_compare, uniquify_cu_indices): New functions
3948         (symbol_kind): New function.
3949         (write_psymtabs_to_index): Remove duplicate CU values.
3950         (write_psymtabs_to_index): Write .gdb_index version 7.
3951
3952 2012-06-22  Joel Brobecker  <brobecker@adacore.com>
3953
3954         * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3955         * configure: Regenerate.
3956
3957 2012-06-20  Yao Qi  <yao@codesourcery.com>
3958
3959         * python/py-inferior.c: Update comments of infpy_read_memory
3960         and infpy_write_memory.
3961
3962 2012-06-19  Tom Tromey  <tromey@redhat.com>
3963
3964         PR exp/9514:
3965         * parser-defs.h (insert_type, insert_type_address_space): Declare.
3966         (push_type_address_space): Remove.
3967         * parse.c (insert_into_type_stack): New function.
3968         (insert_type): Likewise.
3969         (insert_type_address_space): Rename from push_type_address_space.
3970         Insert tp_space_identifier.
3971         * c-exp.y (ptr_operator): New production.
3972         (abs_decl): Use ptr_operator.
3973         (space_identifier): Call insert_type_address_space.
3974         (ptype): Don't use const_or_volatile_or_space_identifier.
3975         (const_or_volatile_noopt): Call insert_type.
3976         (conversion_type_id, conversion_declarator): New productions.
3977         (operator): Use conversion_type_id.
3978
3979 2012-06-18  Doug Evans  <dje@google.com>
3980
3981         * symtab.h (minimal_symbol): New member created_by_gdb.
3982         * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3983         created by gdb.
3984         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3985         (search_symbols): Call it instead of lookup_symbol.
3986         Skip symbols created by gdb.  Only scan minsyms if nfiles == 0.
3987
3988         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3989         Adjust address for DW_OP_GNU_addr_index.
3990         * dwarf2expr.h (dwarf_expr_context): Update comment.
3991         * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3992         all callers updated.  Handle TLS vars described with
3993         DW_OP_GNU_const_index.
3994         (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3995         and DW_OP_GNU_const_index.
3996         * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3997
3998         * block.c (find_block_in_blockvector): Make explicit the fact that we
3999         ignore GLOBAL_BLOCK.
4000
4001 2012-06-18  Tom Tromey  <tromey@redhat.com>
4002
4003         * c-exp.y (operator): Remove trailing space after "delete" and
4004         "delete[]".
4005
4006 2012-06-18  Mark Kettenis  <kettenis@gnu.org>
4007             Jan Kratochvil  <jan.kratochvil@redhat.com>
4008
4009         Switch i386 and derived targets to ON_STACK.
4010         * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4011         (amd64_dicos_init_abi): Remove its installment.
4012         * dicos-tdep.c (dicos_init_abi): Remove the
4013         set_gdbarch_call_dummy_location call.  Update the comment here.
4014         * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4015         (i386_dicos_init_abi): Remove its installment.
4016         * i386-tdep.c (i386_push_dummy_code): New function.
4017         (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4018         i386_push_dummy_code.
4019
4020 2012-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
4021
4022         Remove stale dummy frames.
4023         * breakpoint.c: Include dummy-frame.h.
4024         (longjmp_breakpoint_ops): New variable.
4025         (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4026         bp_longjmp_call_dummy.
4027         (bpstat_what, bptype_string, print_one_breakpoint_location)
4028         (init_bp_location): Support bp_longjmp_call_dummy.
4029         (set_longjmp_breakpoint): Use longjmp_breakpoint_ops.  Comment why.
4030         (set_longjmp_breakpoint_for_call_dummy)
4031         (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4032         functions.
4033         (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4034         * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy.  Delete
4035         FIXME comment and extend the other comment for bp_call_dummy.
4036         (set_longjmp_breakpoint_for_call_dummy)
4037         (check_longjmp_breakpoint_for_call_dummy): New declarations.
4038         * dummy-frame.c: Include gdbthread.h.
4039         (pop_dummy_frame_bpt): New function.
4040         (pop_dummy_frame): Call pop_dummy_frame_bpt.
4041         (dummy_frame_discard): New function.
4042         (cleanup_dummy_frames): Update the comment about longjmps.
4043         * dummy-frame.h (dummy_frame_discard): New declaration.
4044         * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4045         * infcall.c (call_function_by_hand): New variable longjmp_b.  Call
4046         set_longjmp_breakpoint_for_call_dummy.  Chain its breakpoints with BPT.
4047         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4048         Add case 4 comment.  Call check_longjmp_breakpoint_for_call_dummy and
4049         keep_going if IS_LONGJMP and there is no other reason to stop.
4050
4051 2012-06-18  Greta Yorsh  <Greta.Yorsh@arm.com>
4052
4053         * remote-sim.c (sim_command_completer): Initialize
4054         variable 'result'.
4055
4056 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4057
4058         * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4059         * dwarf2loc.c (call_site_parameter_matches): Support
4060         CALL_SITE_PARAMETER_PARAM_OFFSET.
4061         (needs_dwarf_reg_entry_value): Push stub value.
4062         * dwarf2read.c (read_call_site_scope): New variable origin.  Support
4063         CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4064         * gdbtypes.h (enum call_site_parameter_kind): New item
4065         CALL_SITE_PARAMETER_PARAM_OFFSET.
4066         (struct call_site.parameter.u): New field param_offset.
4067
4068 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4069
4070         Code cleanup: Generalize call_site.parameter key.
4071         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4072         variable dwarf_reg.  New variable kind_u.  Update parameters to
4073         push_dwarf_reg_entry_value.
4074         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4075         * dwarf2expr.h (enum call_site_parameter_kind)
4076         (union call_site_parameter_u): Forward declarations.
4077         (struct dwarf_expr_context_funcs): Update parameters and their
4078         description for push_dwarf_reg_entry_value.
4079         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4080         * dwarf2loc.c (call_site_parameter_matches): New function.
4081         (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4082         description.  Use call_site_parameter_matches.
4083         (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4084         Update parameters and their description.
4085         (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4086         New variable kind_u.  Adjust the caller for updated parameters.
4087         (needs_dwarf_reg_entry_value): Update parameters.
4088         * dwarf2read.c (read_call_site_scope): New variable loc.  Use it
4089         instead of attr.  Update for the changed fields of struct
4090         call_site_parameter.
4091         * gdbtypes.h: Include dwarf2expr.h.
4092         (enum call_site_parameter_kind): New.
4093         (struct call_site.parameter): New field kind.  Wrap dwarf_reg and
4094         fb_offset into new union u.
4095
4096 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
4097
4098         * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4099         (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4100         for x32.
4101
4102 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
4103
4104         * amd64-linux-nat.c (compat_x32_clock_t): New.
4105         (compat_x32_siginfo_t): Likewise.
4106         (compat_x32_siginfo_from_siginfo): Likewise.
4107         (siginfo_from_compat_x32_siginfo): Likewise.
4108         (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4109         and siginfo_from_compat_x32_siginfo for x32.
4110
4111 2012-06-15  Hui Zhu  <hui_zhu@mentor.com>
4112
4113         * tracepoint.c (tfile_xfer_partial): Add a lseek.
4114
4115 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
4116
4117         * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4118         instead of gdbarch_ptr_bit.
4119         * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4120         (amd64_supply_native_gregset): Likewise.
4121         (amd64_collect_native_gregset): Likewise.
4122         * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4123         (amd64_supply_xsave): Likewise.
4124         (amd64_collect_fxsave): Likewise.
4125         (amd64_collect_xsave): Likewise.
4126
4127 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
4128
4129         * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4130         (amd64_linux_read_description): Check DS segment register for
4131         x32 process.
4132
4133 2012-06-15  Tom Tromey  <tromey@redhat.com>
4134
4135         * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4136         init_cutu_and_read_dies.
4137
4138 2012-06-15  Iain Sandoe <iain@codesourcery.com>
4139
4140         * MAINTAINERS (Write After Approval): Add myself to the list.
4141
4142 2012-06-15  Tom Tromey  <tromey@redhat.com>
4143
4144         * valops.c (value_find_oload_method_list): Now static.
4145         * value.h (value_find_oload_method_list): Don't declare.
4146
4147 2012-06-15  Tom Tromey  <tromey@redhat.com>
4148
4149         * valops.c (find_overload_match): Use value_ind.
4150
4151 2012-06-15  Maciej W. Rozycki  <macro@codesourcery.com>
4152
4153         * infrun.c (handle_inferior_event): Correct indentation.
4154
4155 2012-06-14  Doug Evans  <dje@google.com>
4156
4157         * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4158         (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4159         All uses updated.
4160         (decode_debug_loc_dwo_addresses): New arg "byte_order".  All callers
4161         updated.  Handle DEBUG_LOC_START_LENGTH.
4162         (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4163         (loclist_describe_location): Ditto.
4164
4165 2012-06-14  Maciej W. Rozycki  <macro@codesourcery.com>
4166
4167         PR backtrace/13866
4168         * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4169         after hiding inline functions.
4170
4171 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
4172
4173         * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4174         _initialize_inf_ttrace.
4175
4176 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
4177
4178         * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4179         _initialize_hppa_hpux_nat.
4180
4181 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
4182
4183         * remote-sim.c (sim_command_completer): Change type of return
4184         value to "VEC (char_ptr) *".  Adjust implementation accordingly.
4185
4186 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
4187             Jan Kratochvil  <jan.kratochvil@redhat.com>
4188
4189         PR tdep/14222
4190         * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4191         stack on a 16-byte boundary.
4192
4193 2012-06-13  Kaushik Srenevasan  <kaushik@twitter.com>
4194
4195         * jit.c (finalize_symtab): Set function's return type to 'void' by
4196         default.
4197
4198 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
4199             H.J. Lu  <hongjiu.lu@intel.com>
4200
4201         * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4202         Move bits common to both the classic LP64 and the new x32 ILP32
4203         ABI here.
4204         (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4205         (amd64_x32_linux_init_abi): New function.
4206         (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4207         subtype.
4208
4209         * i386-tdep.h (i386_pseudo_register_name): New prototype.
4210         * i386-tdep.c (i386_pseudo_register_name): Make public.
4211         * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4212         * amd64-tdep.c (amd64_dword_names): Add "eip".
4213         (amd64_x32_pseudo_register_type): New function
4214         (amd64_x32_init_abi): New function.
4215
4216 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4217
4218         PR build/14003
4219         * inferior.h (struct inferior_suspend_state): Comment out.
4220         (struct inferior): Comment out the field suspend.
4221         * infrun.c (struct infcall_suspend_state): Comment out the field
4222         inferior_suspend.
4223         (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4224         out its assignment.
4225
4226 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4227
4228         PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4229         * c-exp.y (classify_inner_name): Remove caller assumptions in the
4230         function comment.  Return ERROR for unresolved cases.  Implement
4231         returning proper NAME.
4232         (yylex): Accept also NAME from classify_inner_name.
4233         * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4234         (cp_lookup_nested_symbol): ... here.  Return any found symbol, not just
4235         LOC_TYPEDEF type.
4236         * cp-support.h (cp_lookup_nested_type): Update its declaration.
4237
4238 2012-06-13  Tom Tromey  <tromey@redhat.com>
4239
4240         * breakpoint.c (condition_completer): New function.
4241         (_initialize_breakpoint): Use it.
4242         * value.c (complete_internalvar): New function.
4243         * value.h (complete_internalvar): Declare.
4244
4245 2012-06-13  Tom Tromey  <tromey@redhat.com>
4246
4247         * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4248         * breakpoint.c (catch_syscall_completer): Return a VEC.
4249         * cli/cli-cmds.c (complete_command): Update.
4250         * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4251         (complete_on_enum): Likewise.
4252         * command.h: Include gdb_vecs.h.
4253         (completer_ftype): Change return type.
4254         (complete_on_cmdlist, complete_on_enum): Likewise.
4255         * completer.c (noop_completer, filename_completer)
4256         (location_completer): Return a VEC.
4257         (add_struct_fields): Remove 'nextp' argument.  Change 'output'
4258         to a VEC.
4259         (expression_completer, complete_line_internal, complete_line)
4260         (command_completer): Return a VEC.
4261         (gdb_completion_word_break_characters, line_completion_function):
4262         Update.
4263         * completer.h: Include gdb_vecs.h.
4264         (complete_line, noop_completer, filename_completer)
4265         (expression_completer, location_completer, command_completer):
4266         Update.
4267         * f-lang.c (f_word_break_characters): Return a VEC.
4268         * interps.c (interpreter_completer): Return a VEC.
4269         * language.h (struct language_defn)
4270         <la_make_symbol_completion_list>: Return a VEC.
4271         * python/py-cmd.c (cmdpy_completer): Return a VEC.
4272         * symtab.c (free_completion_list): Take a VEC.
4273         (return_val_size, return_val_index): Remove.
4274         (return_val): Now a VEC.
4275         (completion_list_add_name): Update.
4276         (default_make_symbol_completion_list_break_on)
4277         (default_make_symbol_completion_list, make_symbol_completion_list)
4278         (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4279         Return a VEC.
4280         (add_filename_to_list): Update.
4281         (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4282         <list>: Now a VEC.
4283         (maybe_add_partial_symtab_filename): Update.
4284         (make_source_files_completion_list): Return a VEC.
4285         * symtab.h (default_make_symbol_completion_list_break_on)
4286         (default_make_symbol_completion_list, make_symbol_completion_list)
4287         (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4288         (make_source_files_completion_list): Update.
4289
4290 2012-06-13  Tom Tromey  <tromey@redhat.com>
4291
4292         * breakpoint.c (add_catch_command): Use completer_ftype.
4293         * breakpoint.h: Include command.h.
4294         (add_catch_command): Use completer_ftype.
4295         * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4296         * cli/cli-decode.h (struct cmd_list_element) <completer>:
4297         Use completer_ftype.
4298         * command.h (completer_ftype): New typedef.
4299         (set_cmd_completer): Use it.
4300         * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4301         completer_ftype.
4302
4303 2012-06-13  Pedro Alves  <palves@redhat.com>
4304
4305         Partial revert of previous change.
4306
4307         * serial.c (scb_base): New global.
4308         (serial_for_fd): New.
4309         (serial_open, serial_fdopen_ops): Link new serial in open serials
4310         chain.
4311         (do_serial_close): Unlink serial from the open serials chain.
4312
4313 2012-06-12  Pedro Alves  <palves@redhat.com>
4314
4315         * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4316         threads here.
4317         (prepare_for_detach): No longer context switch here in non-stop
4318         mode.
4319         (fetch_inferior_event): Ditto.
4320         (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4321         to the event thread before removing breakpoints.  Switch to the
4322         event thread before inserting breakpoints and resuming.
4323         (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4324         event thread before resuming.
4325         (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4326         Switch to the event thread before removing breakpoints.
4327
4328 2012-06-12  Eli Zaretskii  <eliz@gnu.org>
4329
4330         * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4331         special characters correctly for the Windows shells.  See
4332         http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4333         report.
4334         [!__MINGW32__]: Remove extra double quote character from special
4335         characters.
4336
4337 2012-06-11  Stan Shebs  <stan@codesourcery.com>
4338
4339         * ui-out.h: Remove #if 0 declarations.
4340         * ui-out.c: Remove #if 0 functions.
4341
4342 2012-06-11  Pedro Alves  <palves@redhat.com>
4343
4344         * ser-base.c (run_async_handler_and_reschedule): New.
4345         (fd_event, push_event): Use it.
4346         * serial.c (serial_open, serial_fdopen_ops): Set the initial
4347         reference count to 1.
4348         (do_serial_close): Set the bufp field to NULL.  Use serial_unref
4349         instead of xfree.
4350         (serial_is_open, serial_ref, serial_unref): New.
4351         * serial.h (serial_open): Adjust comment.
4352         (serial_is_open): Declare.
4353         (serial_close): Adjust comment.
4354         (serial_ref, serial_unref) Declare.
4355         (struct serial): New field 'refcnt'.
4356
4357 2012-06-11  Pedro Alves  <palves@redhat.com>
4358
4359         Remove #if 0'd "connect" command, and unnecessary associated
4360         refcounting and serial reuse bits.
4361
4362         * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4363         * serial.c (last_serial_opened): Delete.
4364         (scb_base): Delete.
4365         (serial_open): Adjust.
4366         (serial_for_fd): Delete.
4367         (serial_fdopen_ops, do_serial_close): Adjust.
4368         (serial_fdopen_ops): Adjust.
4369
4370 2012-06-11  Pedro Alves  <palves@redhat.com>
4371
4372         * serial.c (do_serial_close): Remove early return when SCB is
4373         null.
4374
4375 2012-06-11  Tom Tromey  <tromey@redhat.com>
4376
4377         * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4378
4379 2012-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4380
4381         Fix regression by the "ambiguous linespec" series.
4382         * breakpoint.c (parse_breakpoint_sals): New variable cursal.  Use
4383         get_last_displayed_symtab and get_last_displayed_line and depending
4384         on CURSAL.
4385
4386 2012-06-11  Tom Tromey  <tromey@redhat.com>
4387
4388         * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4389         (dw2_find_symbol_file): Use it.
4390
4391 2012-06-11  Michael Eager  <eager@eagercon.com>
4392
4393         * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4394         * mips-linux-tdep.h (mips_signals): New
4395
4396 2012-06-11  Tom Tromey  <tromey@redhat.com>
4397
4398         * infrun.c (handle_inferior_event)
4399         <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4400         breakpoint.
4401         <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4402         exception logic in all cases.  Update comments.
4403         (insert_longjmp_resume_breakpoint): Set the exception resume
4404         breakpoint.
4405
4406 2012-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
4407
4408         * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4409
4410 2012-06-09  Siva Chandra Reddy  <sivachandra@google.com>
4411
4412         * valarith.c (binop_types_user_defined_p): Fix a typo.
4413
4414 2012-06-08  Yao Qi  <yao@codesourcery.com>
4415             Chung-Lin Tang <cltang@codesourcery.com>
4416
4417         * arch-utils.c (default_return_in_first_hidden_param_p): New.
4418         * arch-utils.h: Declare.
4419         * gdbarch.sh: Add return_in_first_hidden_param_p.
4420         * gdbarch.c, gdbarch.h: Regenerated.
4421         * infcall.c (call_function_by_hand): Call
4422         gdbarch_return_in_first_hidden_param_p instead of
4423         language_pass_by_reference.
4424
4425         * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4426         (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4427         * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4428         (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4429         * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4430         `cplus_return_struct_by_reference'.
4431         (tic6x_return_value): Handle language cplusplus.
4432         (tic6x_return_in_first_hidden_param_p): New.
4433         (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4434
4435 2012-06-07  Doug Evans  <dje@google.com>
4436
4437         * dwarf2read.c (dwarf2_cu): Add comment.
4438
4439 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4440
4441         * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4442         variable.
4443         (mips_eabi_push_dummy_call): Likewise.
4444         (mips_n32n64_push_dummy_call): Likewise.
4445         (mips_o32_push_dummy_call): Likewise.
4446         (mips_o64_push_dummy_call): Likewise.
4447
4448 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4449
4450         * mips-tdep.c (mips_convert_register_p): Correct coding style.
4451
4452 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4453
4454         * mips-tdep.c (mips_pseudo_register_type): Use
4455         mips_float_register_p.
4456
4457 2012-06-06  Pedro Alves  <palves@redhat.com>
4458
4459         * infrun.c (handle_inferior_event): Remove calls to
4460         reinit_frame_cache that follow a context_switch call.
4461
4462 2012-06-06  Pedro Alves  <palves@redhat.com>
4463
4464         * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4465         context_switch and remove stale comment.
4466
4467 2012-06-06  Pedro Alves  <palves@redhat.com>
4468
4469         * infrun.c (struct execution_control_state): Remove
4470         `new_thread_event' field.
4471         (handle_inferior_event): Simplify new threads handling; don't
4472         resume the inferior if we find a new thread.
4473
4474 2012-06-06  Thomas Schwinge  <thomas@codesourcery.com>
4475
4476         * NEWS: Document the deprecation of SH's 'regs' command.
4477         * inferior.h (all_registers_info): Add function declaration.
4478         * sh-tdep.c (sh_show_regs): Remove variable.
4479         (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4480         (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4481         (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4482         (sh_show_regs_command): Remove functions.
4483         (sh_gdbarch_init): Don't set sh_show_regs.
4484         (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4485         'info all-registers'.
4486         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4487         (sh64_show_regs): Remove functions.
4488         * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4489
4490 2012-06-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
4491
4492         * configure.ac: Move development=true below AC_INIT.
4493         * configure: Regenerate.
4494
4495 2012-06-05  Stan Shebs  <stan@codesourcery.com>
4496
4497         * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4498         gdb_stdout.
4499
4500 2012-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
4501
4502         * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4503         argument as ssize_t.
4504         * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4505         * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4506         * target.c (target_read_stack, target_write_memory)
4507         (target_write_raw_memory): Likewise.
4508         * target.h (target_read_stack, target_write_memory)
4509         (target_write_raw_memory): Likewise.
4510
4511 2012-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
4512
4513         * symfile-mem.c: Change gdb_static_assert to ssize_t.
4514         (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4515         * target.c (target_read_memory): Change LEN to ssize_t.
4516         * target.h (target_read_memory): Change LEN to ssize_t.
4517
4518 2012-06-05  Pedro Alves  <palves@redhat.com>
4519
4520         PR backtrace/13866
4521
4522         * breakpoint.c (until_break_command): Only fetch the selected
4523         frame after decode_line_1.
4524
4525 2012-06-05  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
4526
4527         * solib-svr4.c (enable_break): Don't fallback to setting the solib
4528         event breakpoint at _start, __start or main if a program
4529         interpreter is not found.
4530
4531 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4532
4533         * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4534         Add declaration.
4535         * windows-tdep.c: #include "objfiles.h".
4536         (windows_iterate_over_objfiles_in_search_order): New function.
4537         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4538         iterate_over_objfiles_in_search_order gdbarch method to
4539         windows_iterate_over_objfiles_in_search_order.
4540         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4541
4542 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4543
4544         * gdbarch.sh: Add generation of
4545         "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4546         gdbarch.h.  Add include of "objfiles.h" in gdbarch.c.
4547         (iterate_over_objfiles_in_search_order): New gdbarch method.
4548         * gdbarch.h, gdbarch.c: Regenerate.
4549         * objfiles.h (default_iterate_over_objfiles_in_search_order):
4550         Add declaration.
4551         * objfiles.c (default_iterate_over_objfiles_in_search_order):
4552         New function.
4553         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4554         out of lookup_symbol_aux_symtabs.
4555         (lookup_symbol_aux_symtabs): Replace extracted-out code by
4556         call to lookup_symbol_aux_objfile.
4557         (struct global_sym_lookup_data): New type.
4558         (lookup_symbol_global_iterator_cb): New function.
4559         (lookup_symbol_global): Search for symbol using
4560         gdbarch_iterate_over_objfiles_in_search_order and
4561         lookup_symbol_global_iterator_cb.
4562         * findvar.c (struct minsym_lookup_data): New type.
4563         (minsym_lookup_iterator_cb): New function.
4564         (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4565         symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4566         and minsym_lookup_iterator_cb.
4567
4568 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4569
4570         Revert the following patch:
4571         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4572         try locating the symbol in the symbol's own objfile first, before
4573         extending the search to all objfiles.
4574         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4575         out of lookup_symbol_aux_symtabs.
4576         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4577         Replace extracted-out code by call to lookup_symbol_aux_objfile.
4578         Do not search EXCLUDE_OBJFILE.
4579         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4580         (lookup_symbol_global): Search for matches in the block's objfile
4581         first, before searching all other objfiles.
4582
4583 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4584
4585         * breakpoint.c (find_condition_and_thread): Stop parsing
4586         as soon as the first invalid keyword is found.
4587
4588 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4589
4590         * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4591
4592 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4593
4594         * config/djgpp/djcheck.sh: Add copyright header.
4595
4596 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4597
4598         * copyright.py (update_files, main): Fix path to update-copyright
4599         script.
4600
4601 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4602
4603         * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4604         (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4605         for which a reminder to update by hand is printed.
4606
4607 2012-06-04  Doug Evans  <dje@google.com>
4608
4609         * buildsym.c (make_blockvector): Add comment.
4610
4611 2012-06-04  Pedro Alves  <palves@redhat.com>
4612
4613         * arch-utils.c (default_gdb_signal_from_target): Delete.
4614         * arch-utils.h (default_gdb_signal_from_target): Delete.
4615         * corelow.c (core_open) <signal mapping>: Extended comment.  Check
4616         gdbarch_gdb_signal_from_target_p.
4617         * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4618         predicate).
4619         * gdbarch.h: Regenerate.
4620         * gdbarch.c: Regenerate.
4621
4622 2012-06-04  Pedro Alves  <palves@redhat.com>
4623
4624         * gdbarch.sh (gdb_signal_from_target): Mention that the
4625         implementation of the method must be host independent.
4626         * gdbarch.h: Regenerate.
4627
4628 2012-06-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4629
4630         * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4631         parameters.
4632         (target_read_memory_bfd): New function.
4633         (symbol_file_add_from_memory): Use it.
4634
4635 2012-06-03  Doug Evans  <dje@google.com>
4636
4637         * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4638         of primary symtab.
4639         (basic_lookup_transparent_type): Ditto.
4640
4641         * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4642         (ALL_PRIMARY_SYMTABS): Use it.
4643         (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4644         * dwarf2read.c (dw2_find_symbol_file): Ditto.
4645         * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4646         * symtab.c (lookup_symbol_aux_objfile): Ditto.
4647         (basic_lookup_transparent_type): Ditto.
4648
4649 2012-06-02  Sergio Durigan Junior  <sergiodj@redhat.com>
4650
4651         * symtab.c (symbol_demangled_name): New variable `dem_name'.  Use
4652         it to optimize resolution of demangled name.
4653
4654 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4655
4656         * configure.ac (development): Define new variable.
4657         Call AC_CHECK_LIB for mcheck if $development.
4658         (ERROR_ON_WARNING): Enable it by default only if $development.
4659         * config.in: Regenerate.
4660         * configure: Regenerate.
4661
4662 2012-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
4663
4664         * target.c (target_read_memory): Make LEN argument as size_t.
4665         * target.h (target_read_memory): Likewise.
4666
4667 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4668
4669         * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4670
4671 2012-05-31  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4672
4673         * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4674         BookE interface for PowerPC server processors if not available
4675         in the Linux Kernel.
4676
4677 2012-05-31  Keith Seitz  <keiths@redhat.com>
4678
4679         * linespec.c (decode_objc): Add cleanup to free
4680         INFO.FILE_SYMTABS.
4681         (find_linespec_symbols): Add cleanup to free CLASSES.
4682         * symfile.c (find_separate_debug_file_by_debuglink): Add
4683         cleanup to free DEBUGLINK.
4684         * ui-out.c (clear_header_list): No need to check if
4685         HEADER_NEXT.COLHDR is NULL.
4686         Free HEADER_NEXT.COL_NAME.
4687
4688 2012-05-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
4689
4690         * ada-lang.c (standard_lookup): Prevent uninitialized variable
4691         warning.
4692
4693 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
4694
4695         * configure.host (gdb_host_cpu): Handle tilegx*.
4696         (gdb_host): Handle tilegx-*-linux*.
4697         * tilegx-linux-nat.c: New file.
4698         * config/tilegx/linux.mh: New file.
4699
4700 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
4701
4702         * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4703         tilegx-linux-tdep.o.
4704         (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4705         tilegx-linux-tdep.c.
4706         * configure.tgt: Handle tilegx-*-linux*.
4707         * tilegx-tdep.h: New file.
4708         * tilegx-tdep.c: New file.
4709         * tilegx-linux-tdep.c: New file.
4710         * regformats/reg-tilegx.dat: New file.
4711
4712 2012-05-30  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4713
4714         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4715         accounting of hw watchpoints on ppc.
4716
4717 2012-05-30  Thiago Jung Bauermann  <thiago.bauermann@linaro.org>
4718
4719         * source.c (openp): Expand tilde in path entries.
4720
4721 2012-05-29  Doug Evans  <dje@google.com>
4722
4723         * buildsym.c (block_compar): Fix comment.
4724         (end_symtab): Fix and clarify some comments.
4725
4726         * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4727         cleanup_undefined_types.
4728         * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4729         All callers updated.
4730
4731 2012-05-29  Tom Tromey  <tromey@redhat.com>
4732
4733         * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4734         fails.
4735         * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4736         * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4737         fails.
4738         * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4739         fails.
4740
4741 2012-05-29  Tristan Gingold  <gingold@adacore.com>
4742
4743         * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4744         (struct darwin_info): ... New struct.
4745         (solib_darwin_pspace_data): New variable.
4746         (darwin_pspace_data_cleanup): New function.
4747         (get_darwin_info): Likewise.
4748         (darwin_dyld_version_ok, darwin_load_image_infos)
4749         (darwin_solib_get_all_image_info_addr_at_init)
4750         (darwin_solib_read_all_image_info_addr): Add info argument.
4751         Adjust code.
4752         (darwin_current_sos): Use per pspace structure.
4753         (darwin_solib_create_inferior_hook): Likewise.
4754         (darwin_clear_solib): Likewise.
4755         (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4756
4757 2012-05-28  Pedro Alves  <palves@redhat.com>
4758
4759         * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4760         block that uses them.  Clear ecss before handling each event.
4761
4762 2012-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4763
4764         * solib-svr4.c (svr4_current_sos): New comment on
4765         svr4_current_sos_via_xfer_libraries fall back.
4766
4767 2012-05-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4768
4769         * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best.  Use
4770         it as a fallback for TYPE_IS_OPAQUE.
4771         * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4772         symbols for lookup_symbol.
4773
4774 2012-05-24  John Steele Scott  <toojays@toojays.net>
4775
4776         PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4777         * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4778         (producer_is_gxx_lt_4_6): Move the checking and caching to...
4779         (check_producer): ... this new function, which also checks for ICC
4780         and caches the result.
4781         (producer_is_icc): New function.
4782         (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4783         producer was ICC.
4784
4785 2012-05-24  Pedro Alves  <palves@redhat.com>
4786
4787         PR gdb/7205
4788
4789         * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4790         (default_gdb_signal_to_target): ... this.  Add comment.
4791         (default_gdb_signal_from_host): Rename to ...
4792         (default_gdb_signal_from_target): ... this.  Add comment.
4793         * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4794         (default_gdb_signal_to_target): ... this.
4795         (default_gdb_signal_from_host): Rename to ...
4796         (default_gdb_signal_from_target): ... this.
4797         * corelow.c (core_open): Adjust to naming change.  Replace comment.
4798         * gdbarch.sh (gdb_signal_from_host): Rename to ...
4799         (gdb_signal_from_target): ... this.  Adjust to
4800         default_gdb_signal_from_host naming change.  Extend comment.
4801         (gdb_signal_to_host): Rename to ...
4802         (gdb_signal_to_target): ... this.  Adjust to
4803         default_gdb_signal_to_host naming change.
4804         * gdbarch.h, gdbarch.c: Renegerate.
4805
4806 2012-05-24  Pedro Alves  <palves@redhat.com>
4807
4808         PR gdb/7205
4809
4810         Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4811
4812 2012-05-24  Pedro Alves  <palves@redhat.com>
4813
4814         PR gdb/7205
4815
4816         Replace target_signal with gdb_signal throughout.
4817
4818 2012-05-24  Pedro Alves  <palves@redhat.com>
4819
4820         PR tui/14159
4821
4822         * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4823         string, instead of reusing the va_list argument.
4824
4825 2012-05-24  Tom Tromey  <tromey@redhat.com>
4826
4827         * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4828         Remove.
4829
4830 2012-05-23  Doug Evans  <dje@google.com>
4831
4832         * symtab.c (search_symbols): Formatting fixes.
4833         (print_symbol_info): Formatting fixes.
4834
4835         * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4836         int64_t change to leb128 API.
4837         (read_encoded_value, decode_frame_entry_1): Ditto.
4838         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4839         (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4840         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4841         (execute_stack_op): Ditto.
4842         * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4843         (safe_read_uleb128, safe_read_sleb128): Ditto.
4844         * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4845         (dwarf2_compile_expr_to_ax): Ditto.
4846         (locexpr_describe_location_piece): Ditto.
4847         (disassemble_dwarf_expression): Ditto.
4848         (locexpr_describe_location_1): Ditto.
4849
4850 2012-05-23  Stan Shebs  <stan@codesourcery.com>
4851             Kwok Cheung Yeung  <kcy@codesourcery.com>
4852
4853         * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4854         (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4855         (mi-cmd-info.o): New rule.
4856         * osdata.h (info_osdata_command): New declaration.
4857         * osdata.c (info_osdata_command): Change to non-static.
4858         * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4859         * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4860         * mi/mi-cmd-info.c: New file.
4861
4862 2012-05-23  Doug Evans  <dje@google.com>
4863
4864         * symtab.c (search_symbols): Pass NULL for file_matcher to
4865         expand_symtabs_matching if there are no files to match.
4866
4867         * gdbtypes.c (lookup_typename): Simplify.
4868
4869 2012-05-23  Pedro Alves  <palves@redhat.com>
4870
4871         * arch-utils.h (default_target_signal_to_host): Delete.
4872         * arch-utils.c (default_target_signal_to_host): Delete.
4873         * gdbarch.sh (target_signal_to_host): Remove.
4874         * gdbarch.h, gdbarch.c: Regenerate.
4875
4876 2012-05-22  Doug Evans  <dje@google.com>
4877
4878         * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4879         "const gdb_byte *".
4880         (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4881         (execute_cfa_program): Update to match API of leb128 functions.
4882         (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4883         "const gdb_byte *".
4884         (read_unsigned_leb128, read_signed_leb128): Delete.
4885         (read_initial_length): Change type of buf argument to
4886         "const gdb_byte *".
4887         (read_encoded_value): Update to match API of leb128 functions.
4888         (decode_frame_entry): Change result to "const gdb_byte *", and
4889         similarly for "start" parameter.
4890         (decode_frame_entry_1): Ditto.  Use new leb128 reader functions.
4891         (dwarf2_build_frame_info): Change local frame_ptr to
4892         "const gdb_byte *".
4893         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4894         read_uleb128, read_sleb128.  All callers updated.
4895         (safe_skip_leb128): New function.
4896         (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4897         Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4898         (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4899         functions.  Call gdb_read_uleb128, gdb_read_sleb128 instead of
4900         read_uleb128, read_sleb128.
4901         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4902         (execute_stack_op): Update to match API of leb128 functions.
4903         * dwarf2expr.h: #include "leb128.h".
4904         (read_uleb128, read_sleb128): Delete.
4905         (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4906         (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4907         * dwarf2loc.c (debug_loc_kind): New enum.
4908         (decode_debug_loc_addresses): New function.
4909         (decode_debug_loc_dwo_addresses): New function.
4910         (dwarf2_find_location_expression): Rewrite.
4911         (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4912         (locexpr_describe_location_piece): Ditto.
4913         (disassemble_dwarf_expression): Ditto.
4914         (locexpr_describe_location_1): Ditto.
4915         (loclist_describe_location): Rewrite.
4916         * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4917         * dwarf2read.c (die_reader_specs): New member "buffer_end".
4918         (dwarf2_section_buffer_overflow_complaint): Renamed from
4919         dwarf2_macros_too_long_complaint.  All callers updated.
4920         (skip_leb128): Delete.
4921         (init_cu_die_reader): Initialize reader->buffer_end.
4922         (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4923         (skip_form_bytes): New arg buffer_end.  All callers updated.
4924         Replace call to skip_leb128 with gdb_skip_leb128.
4925         (skip_unknown_opcode): New arg mac_end.  All callers updated.
4926         (fill_in_loclist_baton): Initialize baton->from_dwo.
4927
4928 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
4929
4930         * mips-linux-nat.c (mips_linux_read_description): Use a more
4931         verbose error message.
4932
4933 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
4934
4935         * NEWS: Add MIPS/Linux DSP support.
4936         * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4937         (SIGCONTEXT_DSPCTL): New macro.
4938         (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4939         (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4940         (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4941         (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4942         (N64_SIGCONTEXT_HI3): Likewise.
4943         (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4944         (N64_SIGCONTEXT_LO3): Likewise.
4945         (N64_SIGCONTEXT_DSPCTL): Likewise.
4946         (N64_SIGCONTEXT_FPCSR): Clarify definition.
4947         (mips_linux_o32_sigframe_init): Handle DSP registers.
4948         (mips_linux_n32n64_sigframe_init): Likewise.
4949
4950 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
4951
4952         * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4953         call to abort.
4954
4955 2012-05-22  Pedro Alves  <palves@redhat.com>
4956
4957         * target.h (store_waitstatus): Move declaration ...
4958         * inf-child.h (store_waitstatus): ... here.
4959         * target.c: Move inclusion of gdb_wait.h, and ...
4960         (store_waitstatus): ... this ...
4961         * inf-child.c: ... here.
4962         * linux-nat.c: Include inf-child.h.
4963         * rs6000-nat.c: Include inf-child.h.
4964         * spu-linux-nat.c: Include inf-child.h.
4965
4966 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
4967
4968         * tracepoint.c (start_tracing): Add missing i18n markup.
4969         (stop_tracing, set_trace_user): Ditto.
4970         (set_trace_notes, set_trace_stop_notes): Ditto.
4971
4972 2012-05-21  Tom Tromey  <tromey@redhat.com>
4973
4974         PR c++/7173:
4975         * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4976         types.
4977         * value.h (value_cast_pointers): Update.
4978         * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4979         (value_cast): Update.
4980         (update_search_result): New function.
4981         (do_search_struct_field): New, from search_struct_field.  Check
4982         for ambiguous results.
4983         (search_struct_field): Rewrite.
4984         * infcall.c (value_arg_coerce): Update.
4985         * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4986         value_cast_pointers.
4987         * ada-lang.c (ada_convert_actual): Update.
4988
4989 2012-05-21  Tom Tromey  <tromey@redhat.com>
4990
4991         * macroexp.c (macro_stringify): Terminate the string.
4992
4993 2012-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
4994
4995         * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4996         Describe it.
4997         * auto-load.c (auto_load_expand_dir_vars): New function.
4998         (auto_load_safe_path_vec_update): Use it, remove the
4999         substitute_path_component call thanks to it.
5000         (auto_load_objfile_script): Remove the debug_file_directory processing.
5001         Use auto_load_expand_dir_vars, remove the substitute_path_component
5002         call thanks to it.
5003         * configure: Regenerate.
5004         * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5005         path.  Escape $ also for $debugdir.
5006         (--with_auto_load_safe_path): Escape $ also for $debugdir.
5007         * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5008
5009 2012-05-20  Doug Evans  <dje@google.com>
5010
5011         * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5012         before use.  Check for symtab->includes == NULL before scanning it.
5013
5014 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5015
5016         * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5017
5018 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5019
5020         * NEWS: Add microMIPS support and "set mips compression",
5021         "show mips compression" commands.
5022         * mips-tdep.h (mips_isa): New enum.
5023         (gdbarch_tdep): Add mips_isa.
5024         (mips_pc_is_mips16): Update prototype.
5025         (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5026         * mips-tdep.c (mips_compression_mips16): New variable.
5027         (mips_compression_micromips): Likewise.
5028         (mips_compression_strings): Likewise.
5029         (mips_compression_string): Likewise.
5030         (is_mips16_isa, is_micromips_isa): New functions.
5031         (is_mips16_addr): Rename to...
5032         (is_compact_addr): ... this.
5033         (unmake_mips16_addr): Likewise to...
5034         (unmake_compact_addr): ... this.
5035         (make_mips16_addr): Likewise to...
5036         (make_compact_addr): ... this.
5037         (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5038         functions.
5039         (mips_elf_make_msymbol_special): Handle microMIPS code.
5040         (msymbol_is_special): Rename to...
5041         (msymbol_is_mips16): ... this.
5042         (mips_make_symbol_special, mips_pc_is_mips16): Update
5043         accordingly.
5044         (msymbol_is_mips, msymbol_is_micromips): New functions.
5045         (mips16_to_32_reg): Rename to...
5046         (mips_reg3_to_reg): ... this.
5047         (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5048         (mips_pc_isa): Likewise.
5049         (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5050         code.
5051         (mips_fetch_instruction): Pass return status instead of printing
5052         an error message if requested.  Handle microMIPS code.  Bail out
5053         on an invalid ISA.
5054         (micromips_op): New macro.
5055         (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5056         (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5057         (b6s4_op, b7s3_reg): Likewise.
5058         (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5059         (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5060         (mips_insn_size): New function.
5061         (mips32_next_pc): Update mips_fetch_instruction call.
5062         (micromips_relative_offset7): New function.
5063         (micromips_relative_offset10): Likewise.
5064         (micromips_relative_offset16): Likewise.
5065         (micromips_pc_insn_size): Likewise.
5066         (micromips_bc1_pc): Likewise.
5067         (micromips_next_pc): Likewise.
5068         (unpack_mips16): Update mips_fetch_instruction call.
5069         (extended_mips16_next_pc): Update according to change to
5070         mips16_to_32_reg.
5071         (mips_next_pc): Update mips_pc_is_mips16 call.  Handle microMIPS
5072         code.
5073         (mips16_scan_prologue): Update mips_fetch_instruction call.
5074         Update according to change to mips16_to_32_reg.
5075         (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5076         (mips_insn16_frame_base_sniffer): Likewise.
5077         (micromips_decode_imm9): New function.
5078         (micromips_scan_prologue): Likewise.
5079         (mips_micro_frame_cache): Likewise.
5080         (mips_micro_frame_this_id): Likewise.
5081         (mips_micro_frame_prev_register): Likewise.
5082         (mips_micro_frame_sniffer): Likewise.
5083         (mips_micro_frame_unwind): New variable.
5084         (mips_micro_frame_base_address): New function.
5085         (mips_micro_frame_base): New variable.
5086         (mips_micro_frame_base_sniffer): New function.
5087         (mips32_scan_prologue): Update mips_fetch_instruction call.
5088         (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5089         rather than for MIPS16.
5090         (mips_insn32_frame_base_sniffer): Likewise.
5091         (mips_addr_bits_remove): Handle microMIPS code.
5092         (deal_with_atomic_sequence): Rename to...
5093         (mips_deal_with_atomic_sequence): ... this.  Update the type
5094         of the variable used to hold an instruction.  Remove the ISA bit
5095         check.  Update mips_fetch_instruction call.
5096         (micromips_deal_with_atomic_sequence): New function.
5097         (deal_with_atomic_sequence): Likewise.
5098         (mips_about_to_return): Handle microMIPS code.  Update
5099         mips_fetch_instruction call.
5100         (heuristic_proc_start): Check for the standard MIPS ISA rather
5101         than for MIPS16.  Update mips_pc_is_mips16 and
5102         mips_fetch_instruction calls.  Handle microMIPS code.
5103         (mips_push_dummy_code): Handle microMIPS code.
5104         (mips_eabi_push_dummy_call): Likewise.
5105         (mips_o32_return_value): Update mips_pc_is_mips16 call.
5106         (mips_o64_push_dummy_call): Handle microMIPS code.
5107         (mips_o64_return_value): Update mips_pc_is_mips16 call.
5108         (is_delayed): Remove function.
5109         (mips_single_step_through_delay): Replace the call to is_delayed
5110         with mips32_instruction_has_delay_slot.  Correct MIPS16 handling.
5111         Handle microMIPS code.
5112         (mips_skip_prologue): Update mips_pc_is_mips16 call.  Handle
5113         microMIPS code.
5114         (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5115         call.
5116         (micromips_in_function_epilogue_p): New function.
5117         (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5118         call.
5119         (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5120         Handle microMIPS.
5121         (gdb_print_insn_mips): Likewise.
5122         (mips_breakpoint_from_pc): Likewise.
5123         (mips_remote_breakpoint_from_pc): New function.
5124         (mips32_instruction_has_delay_slot): Simplify making use of the
5125         updated mips_fetch_instruction interface.
5126         (micromips_instruction_has_delay_slot): New function.
5127         (mips16_instruction_has_delay_slot): Simplify making use of the
5128         updated mips_fetch_instruction interface.
5129         (mips_adjust_breakpoint_address): Check for the standard MIPS
5130         ISA rather than for MIPS16 ISA.  Update for unmake_compact_addr
5131         calls.  Handle microMIPS code.
5132         (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5133         (mips_skip_trampoline_code): Handle microMIPS code.
5134         (global_mips_compression): New function.
5135         (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5136         file flags.  Register the microMIPS remote breakpoint handler
5137         and heuristic frame unwinder.
5138         (show_mips_compression): New function.
5139         (_initialize_mips_tdep): Add the "set mips compression" and
5140         "show mips compression" commands.
5141
5142 2012-05-18  Sergio Durigan Junior  <sergiodj@redhat.com>
5143
5144         * ada-lang.c:
5145         * ada-tasks.c:
5146         * ada-varobj.c:
5147         * amd64-darwin-tdep.c:
5148         * arm-symbian-tdep.c:
5149         * arm-tdep.c:
5150         * avr-tdep.c:
5151         * ax-gdb.c:
5152         * bfin-linux-tdep.c:
5153         * breakpoint.c:
5154         * c-valprint.c:
5155         * cli/cli-cmds.c:
5156         * coffread.c:
5157         * cp-support.c:
5158         * cris-tdep.c:
5159         * dwarf2-frame-tailcall.c:
5160         * dwarf2-frame.c:
5161         * dwarf2expr.c:
5162         * dwarf2loc.c:
5163         * dwarf2read.c:
5164         * elfread.c:
5165         * eval.c:
5166         * expprint.c:
5167         * f-valprint.c:
5168         * frv-tdep.c:
5169         * h8300-tdep.c:
5170         * hppa-hpux-tdep.c:
5171         * hppa-tdep.c:
5172         * hppanbsd-tdep.c:
5173         * i386-nto-tdep.c:
5174         * i386-tdep.c:
5175         * i387-tdep.c:
5176         * ia64-tdep.c:
5177         * jit.c:
5178         * linespec.c:
5179         * linux-tdep.c:
5180         * lm32-tdep.c:
5181         * m2-valprint.c:
5182         * m32c-tdep.c:
5183         * m32r-rom.c:
5184         * m32r-tdep.c:
5185         * m68k-tdep.c:
5186         * m68klinux-tdep.c:
5187         * mi/mi-main.c:
5188         * microblaze-tdep.c:
5189         * mips-linux-tdep.c:
5190         * mips-tdep.c:
5191         * mn10300-tdep.c:
5192         * p-valprint.c:
5193         * parse.c:
5194         * ppc-linux-tdep.c:
5195         * ppc-sysv-tdep.c:
5196         * printcmd.c:
5197         * python/py-finishbreakpoint.c:
5198         * python/py-inferior.c:
5199         * python/py-infthread.c:
5200         * python/py-type.c:
5201         * python/python.c:
5202         * remote-fileio.c:
5203         * remote-m32r-sdi.c:
5204         * remote-mips.c:
5205         * reverse.c:
5206         * rl78-tdep.c:
5207         * rs6000-aix-tdep.c:
5208         * rs6000-tdep.c:
5209         * s390-tdep.c:
5210         * score-tdep.c:
5211         * sh64-tdep.c:
5212         * skip.c:
5213         * solib-darwin.c:
5214         * solib-dsbt.c:
5215         * solib-frv.c:
5216         * sparc-tdep.c:
5217         * spu-multiarch.c:
5218         * spu-tdep.c:
5219         * stack.c:
5220         * symfile.c:
5221         * symtab.c:
5222         * tic6x-tdep.c:
5223         * tracepoint.c:
5224         * v850-tdep.c:
5225         * valarith.c:
5226         * valprint.c:
5227         * value.c:
5228         * xcoffread.c:
5229         * xtensa-tdep.c:
5230         * ada-lang.c:
5231         * ada-tasks.c:
5232         * ada-varobj.c:
5233         * amd64-darwin-tdep.c:
5234         * arm-symbian-tdep.c:
5235         * arm-tdep.c: Delete unused variables.
5236
5237 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5238
5239         Rename $ddir to $datadir.
5240         * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5241         * auto-load.c (auto_load_safe_path_vec_update)
5242         (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5243         * configure: Regenerate.
5244         * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5245         Likewise.  Remove the 'use $ddir' help string.
5246
5247 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5248
5249         * auto-load.c (show_auto_load_safe_path): Accept any combination of
5250         DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5251
5252 2012-05-18  Tom Tromey  <tromey@redhat.com>
5253
5254         PR exp/13907:
5255         * valprint.h (struct value_print_options) <symbol_print>: New
5256         field.
5257         * valprint.c (user_print_options): Add default for symbol_print.
5258         (show_symbol_print): New function.
5259         (generic_val_print): Respect symbol_print.
5260         (_initialize_valprint): Add "print symbol" setting.
5261         * f-valprint.c (f_val_print): Respect symbol_print.
5262         * c-valprint.c (c_val_print): Respect symbol_print.
5263         * NEWS: Update.
5264         * printcmd.c (print_address_symbolic): Return int.  Ignore some
5265         zero-size symbols.
5266         (print_address_demangle): Return int.
5267         * defs.h: (print_address_symbolic): Return int.
5268         * value.h (print_address_demangle): Return int.
5269
5270 2012-05-18  Tom Tromey  <tromey@redhat.com>
5271
5272         * valprint.c (val_print_string): Don't print leading space.
5273         * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5274         print space before string or vtbl.
5275         * m2-valprint.c (print_unpacked_pointer): Optionally print space
5276         before string.
5277         * jv-valprint.c (java_value_print): Print space before string.
5278         * go-valprint.c (print_go_string): Print space before string.
5279         * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5280         space before string.
5281         * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5282         space before string or vtbl.
5283         * auxv.c (fprint_target_auxv): Print space after address.
5284
5285 2012-05-18  Tom Tromey  <tromey@redhat.com>
5286
5287         * printcmd.c (print_address_demangle): Remove special case for 0.
5288
5289 2012-05-18  Tom Tromey  <tromey@redhat.com>
5290
5291         * printcmd.c (print_address_demangle): Add 'opts' argument.
5292         * p-valprint.c (pascal_val_print): Update.
5293         * jv-valprint.c (java_val_print): Update.
5294         * value.h: Update.
5295         * valprint.c (generic_val_print): Update.
5296         (print_function_pointer_address): Add 'options' argument.  Remove
5297         'addressprint' argument.  Update.
5298         * m2-valprint.c (print_unpacked_pointer): Update.
5299         * gnu-v3-abi.c (print_one_vtable): Update.
5300         (gnuv3_print_method_ptr): Update.
5301         * f-valprint.c (f_val_print): Update.
5302         * cp-valprint.c (cp_print_value_fields): Update.
5303         * valprint.h (print_function_pointer_address): Update.
5304         * c-valprint.c (c_val_print): Update.
5305
5306 2012-05-18  Tom Tromey  <tromey@redhat.com>
5307
5308         * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5309         directly corresponding to the found psymtab.
5310         * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5311         (dw2_find_pc_sect_symtab): Use it.
5312         * block.h (blockvector_contains_pc): Declare.
5313         * block.c (find_block_in_blockvector): New function.
5314         (blockvector_for_pc_sect): Use it.
5315         (blockvector_contains_pc): New function.
5316
5317 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5318
5319         * mips-tdep.h (mips_write_pc): New prototype.
5320         * mips-tdep.c (mips_write_pc): Make external, add description.
5321         * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5322         add description.
5323
5324 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5325
5326         * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5327         mips_regnum->pc.
5328         (mips_unwind_pc, mips_write_pc): Likewise.
5329         (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5330         gdbarch_read_pc.
5331
5332 2012-05-17  Joel Brobecker  <brobecker@adacore.com>
5333
5334         * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5335         proc_warn, proc_error, proc_get_status, proc_flags,
5336         proc_why, proc_what, proc_nsysarg, proc_sysargs,
5337         proc_set_run_on_last_close, proc_unset_run_on_last_close,
5338         proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5339         proc_stop_process, proc_wait_for_stop, proc_run_process,
5340         proc_set_traced_signals, proc_set_traced_faults,
5341         proc_set_traced_sysentry, proc_set_traced_sysexit,
5342         proc_set_held_signals, proc_get_held_signals,
5343         proc_get_traced_signals, proc_get_traced_faults,
5344         proc_get_traced_sysentry, proc_get_traced_sysexit,
5345         proc_clear_current_fault, proc_set_current_signal,
5346         proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5347         proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5348         proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5349         proc_get_current_thread, proc_get_current_thread,
5350         proc_get_current_thread, proc_update_threads,
5351         proc_update_threads, proc_update_threads, proc_update_threads,
5352         proc_iterate_over_threads, procfs_find_new_threads,
5353         procfs_pid_to_str): Make static.  Remove advance declaration.
5354         (proc_cursig): Make static.  Conditionalized defintion on
5355         PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5356         (proc_syscall, proc_set_kill_on_last_close,
5357         proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5358         proc_get_pending_signals, proc_get_signal_actions,
5359         proc_trace_signal, proc_ignore_signal): Delete.
5360
5361 2012-05-16  Sergio Durigan Junior  <sergiodj@redhat.com>
5362
5363         * coffread.c (cs_section_address): Passing proper argument for
5364         `bfd_get_section_vma'.
5365         * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5366         `bfd_get_section_flags'.
5367         * remote.c (remote_trace_set_readonly_regions): Likewise, for
5368         `bfd_get_section_vma'.
5369
5370 2012-05-16  Tom Tromey  <tromey@redhat.com>
5371
5372         PR macros/13205:
5373         * macrotab.h: (macro_define_special): Declare.
5374         (enum macro_special_kind): New.
5375         (struct macro_definition) <argc, replacement>: Update comments.
5376         * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5377         (macro_define_object_internal): New function.
5378         (macro_define_object): Use it.
5379         (macro_define_special): New function.
5380         (fixup_definition): New function.
5381         (macro_lookup_definition, foreach_macro_in_scope)
5382         (foreach_macro): Use fixup_definition.
5383         * macroexp.h (macro_stringify): Declare.
5384         * macroexp.c (free_buffer_return_text): New function.
5385         (stringify): Constify "arg".
5386         (macro_stringify): New function.
5387         * dwarf2read.c (macro_start_file): Call macro_define_special.
5388
5389 2012-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
5390             Maciej W. Rozycki  <macro@mips.com>
5391
5392         * breakpoint.h (bp_location): Add related_address member.
5393         * inferior.h (get_return_value): Take a pointer to struct value
5394         instead of struct type for the function requested.
5395         * value.h (using_struct_return): Likewise.
5396         * gdbarch.sh (return_value): Take a pointer to struct value
5397         instead of struct type for the function requested.
5398         * breakpoint.c (set_breakpoint_location_function): Initialize
5399         related_address for bp_gnu_ifunc_resolver breakpoints.
5400         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5401         requested function's address to gdbarch_return_value.
5402         * eval.c (evaluate_subexp_standard): Pass the requested
5403         function's address to using_struct_return.
5404         * infcall.c (call_function_by_hand): Pass the requested
5405         function's address to using_struct_return and
5406         gdbarch_return_value.
5407         * infcmd.c (get_return_value): Take a pointer to struct value
5408         instead of struct type for the function requested.
5409         (print_return_value): Update accordingly.
5410         (finish_command_continuation): Likewise.
5411         * stack.c (return_command): Pass the requested function's
5412         address to using_struct_return and gdbarch_return_value.
5413         * value.c (using_struct_return): Take a pointer to struct value
5414         instead of struct type for the function requested.  Pass the
5415         requested function's address to gdbarch_return_value.
5416         * python/py-finishbreakpoint.c (finish_breakpoint_object):
5417         New function_value member, replacing function_type.
5418         (bpfinishpy_dealloc): Update accordingly.
5419         (bpfinishpy_pre_stop_hook): Likewise.
5420         (bpfinishpy_init): Likewise.  Record the requested function's
5421         address.
5422         * mips-tdep.c (mips_fval_reg): New enum.
5423         (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5424         words put in GP registers.
5425         (mips_o64_push_dummy_call): Update a comment.
5426         (mips_o32_return_value): Take a pointer to struct value instead
5427         of struct type for the function requested and use it to check if
5428         using the MIPS16 calling convention.  Return the designated
5429         general purpose registers for floating-point values returned in
5430         MIPS16 mode.
5431         (mips_o64_return_value): Likewise.
5432         * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5433         (ppc_sysv_abi_broken_return_value): Likewise.
5434         (ppc64_sysv_abi_return_value): Likewise.
5435         * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5436         value instead of struct type for the function requested.
5437         * amd64-tdep.c (amd64_return_value): Likewise.
5438         * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5439         * arm-tdep.c (arm_return_value): Likewise.
5440         * avr-tdep.c (avr_return_value): Likewise.
5441         * bfin-tdep.c (bfin_return_value): Likewise.
5442         * cris-tdep.c (cris_return_value): Likewise.
5443         * frv-tdep.c (frv_return_value): Likewise.
5444         * h8300-tdep.c (h8300_return_value): Likewise.
5445         (h8300h_return_value): Likewise.
5446         * hppa-tdep.c (hppa32_return_value): Likewise.
5447         (hppa64_return_value): Likewise.
5448         * i386-tdep.c (i386_return_value): Likewise.
5449         * ia64-tdep.c (ia64_return_value): Likewise.
5450         * iq2000-tdep.c (iq2000_return_value): Likewise.
5451         * lm32-tdep.c (lm32_return_value): Likewise.
5452         * m32c-tdep.c (m32c_return_value): Likewise.
5453         * m32r-tdep.c (m32r_return_value): Likewise.
5454         * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5455         * m68k-tdep.c (m68k_return_value): Likewise.
5456         (m68k_svr4_return_value): Likewise.
5457         * m88k-tdep.c (m88k_return_value): Likewise.
5458         * mep-tdep.c (mep_return_value): Likewise.
5459         * microblaze-tdep.c (microblaze_return_value): Likewise.
5460         * mn10300-tdep.c (mn10300_return_value): Likewise.
5461         * moxie-tdep.c (moxie_return_value): Likewise.
5462         * mt-tdep.c (mt_return_value): Likewise.
5463         * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5464         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5465         (ppc_sysv_abi_broken_return_value): Likewise.
5466         (ppc64_sysv_abi_return_value): Likewise.
5467         * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5468         * rl78-tdep.c (rl78_return_value): Likewise.
5469         * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5470         * rx-tdep.c (rx_return_value): Likewise.
5471         * s390-tdep.c (s390_return_value): Likewise.
5472         * score-tdep.c (score_return_value): Likewise.
5473         * sh-tdep.c (sh_return_value_nofpu): Likewise.
5474         (sh_return_value_fpu): Likewise.
5475         * sh64-tdep.c (sh64_return_value): Likewise.
5476         * sparc-tdep.c (sparc32_return_value): Likewise.
5477         * sparc64-tdep.c (sparc64_return_value): Likewise.
5478         * spu-tdep.c (spu_return_value): Likewise.
5479         * tic6x-tdep.c (tic6x_return_value): Likewise.
5480         * v850-tdep.c (v850_return_value): Likewise.
5481         * vax-tdep.c (vax_return_value): Likewise.
5482         * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5483         * xtensa-tdep.c (xtensa_return_value): Likewise.
5484         * gdbarch.c: Regenerate.
5485         * gdbarch.h: Regenerate.
5486
5487 2012-05-15  Tom Tromey  <tromey@redhat.com>
5488
5489         * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5490
5491 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5492
5493         * breakpoint.c (init_breakpoint_sal): Add quotes around part
5494         of command in two error message.
5495
5496 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5497
5498         * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5499
5500 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5501
5502         * breakpoint.c (find_condition_and_thread): Minor reformatting.
5503
5504 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5505
5506         * NEWS (show auto-load scripts-directory): Add forgotten command.
5507
5508 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5509
5510         * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5511         parameters.
5512
5513 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5514
5515         * amd64-tdep.c: Include features/i386/x32.c and
5516         features/i386/x32-avx.c.
5517         (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5518         initialize_tdesc_x32_avx.
5519
5520 2012-05-14  Stan Shebs  <stan@codesourcery.com>
5521
5522         Add dynamic printf.
5523         * breakpoint.h (enum bptype): New type bp_dprintf.
5524         (struct breakpoint): New field extra_string.
5525         (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5526         (create_breakpoint): Add extra_string arg.
5527         * breakpoint.c (dprintf_breakpoint_ops): New.
5528         (is_breakpoint): Add bp_dprintf.
5529         (bpstat_what): Add dprintf case.
5530         (bptype_string): Ditto.
5531         (print_one_breakpoint_location): Ditto.
5532         (init_bp_location): Ditto.
5533         (bkpt_print_mention): Ditto.
5534         (dprintf_style_enums): New array.
5535         (dprintf_style): New global.
5536         (dprintf_function): New global.
5537         (dprintf_channel): New global.
5538         (update_dprintf_command_list): New function.
5539         (update_dprintf_commands): New function.
5540         (init_breakpoint_sal): Add extra_string argument, handle it.
5541         (create_breakpoint_sal): Add extra_string argument.
5542         (create_breakpoints_sal): Add extra_string argument, update callers.
5543         (find_condition_and_thread): Add extra argument.
5544         (create_breakpoint): Add extra_string argument, record it.
5545         (dprintf_command): New function.
5546         (break_command_1): Add arg to create_breakpoint call.
5547         (handle_gnu_v3_exceptions): Ditto.
5548         (trace_command): Ditto.
5549         (ftrace_command): Ditto.
5550         (strace_command): Ditto.
5551         (bkpt_print_mention): Add dprintf case.
5552         (create_breakpoint_sal_default): Add extra_string argument.
5553         (_initialize_breakpoint): Add new commands.
5554         * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5555         * python/py-breakpoint.c (bppy_init): Ditto.
5556         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5557
5558 2012-05-14  Maciej W. Rozycki  <macro@codesourcery.com>
5559
5560         * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5561
5562 2012-05-14  Siva Chandra Reddy  <sivachandra@google.com>
5563
5564         * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5565         unsigned long long.
5566
5567 2012-05-13  Siva Chandra Reddy  <sivachandra@google.com>
5568
5569         Add a new function gdb.find_pc_line to the Python API.
5570         * NEWS (Python Scripting): Add entry about the new function.
5571         * python/python.c (gdbpy_find_pc_line): New function which
5572         implements gdb.find_pc_line.
5573         (GdbMethods): Add entry for the new function.
5574
5575 2012-05-12  Pedro Alves  <palves@redhat.com>
5576
5577         * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5578         initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5579
5580 2012-05-12  Eli Zaretskii  <eliz@gnu.org>
5581
5582         * inferior.c: Include completer.h
5583         (initialize_inferiors): Set completer of add-inferior to
5584         filename_completer.
5585
5586 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5587
5588         * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5589         gdbarch_ptr_bit for x32 core dump.
5590
5591 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5592
5593         * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5594         and features/i386/x32-avx-linux.c.
5595
5596 2012-05-11  Stan Shebs  <stan@codesourcery.com>
5597             Kwok Cheung Yeung  <kcy@codesourcery.com>
5598
5599         * NEWS: Describe new info os commands.
5600         * common/linux-osdata.c (PID_T, TIME_T): Define.
5601         (MAX_PID_T_STRLEN): New.
5602         (linux_common_core_of_thread): Add comment.  Change to use PID_T and
5603         MAX_PID_T_STRLEN.
5604         (command_from_pid): Add comment.  Change to use PID_T.
5605         (commandline_from_pid):  Change to use PID_T.
5606         (user_from_pid): Add comment.
5607         (get_process_owner): Add comment. Change to use PID_T and
5608         MAX_PID_T_STRLEN.
5609         (get_number_of_cpu_cores): Add comment.
5610         (get_cores_used_by_process): Add comment.  Change to use PID_T and
5611         MAX_PID_T_STRLEN.
5612         (linux_xfer_osdata_processes): Change to use PID_T and
5613         MAX_PID_T_STRLEN.
5614         (compare_processes): New function.
5615         (linux_xfer_osdata_processgroups): New function.
5616         (linux_xfer_osdata_threads): Change to use PID_T.
5617         (linux_xfer_osdata_fds): New function.
5618         (format_socket_state, print_sockets): New functions.
5619         (union socket_addr): New union.
5620         (linux_xfer_osdata_isockets): New function.
5621         (time_from_time_t, group_from_gid): New functions.
5622         (linux_xfer_osdata_shm): New function.
5623         (linux_xfer_osdata_sem): New function.
5624         (linux_xfer_osdata_msg): New function.
5625         (linux_xfer_osdata_modules): New function.
5626         (osdata_table): Add new entries.
5627         * common/buffer.c (buffer_xml_printf): Add support for long and
5628         long long format specifiers.
5629
5630 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5631
5632         * amd64-linux-tdep.h (tdesc_x32_linux): New.
5633         (tdesc_x32_avx_linux): Likewise.
5634
5635 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5636
5637         Implement multi-component --with-auto-load-dir.
5638         * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5639         entries.
5640         (--with-auto-load-safe-path): Update the default value description.
5641         * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5642         New.
5643         (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output.  Remove
5644         GDB_DATADIR NULL check.  Replace GDB_DATADIR/auto-load by
5645         AUTO_LOAD_DIR.  Support $ddir and multiple components in it.
5646         (_initialize_auto_load): Initialize also auto_load_dir.  Install new
5647         "set auto-load scripts-directory".
5648         * config.in: Regenerate.
5649         * configure: Regenerate.
5650         * configure.ac (--with-auto-load-dir): New configure option.
5651         (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5652
5653 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5654
5655         Provide $ddir substitution for --with-auto-load-safe-path.
5656         * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5657         entries.
5658         * auto-load.c: Include observer.h.
5659         (auto_load_safe_path_vec_update): Call substitute_path_component for
5660         each component.  New variable ddir_subst.
5661         (auto_load_gdb_datadir_changed): New function.
5662         (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5663         AUTO_LOAD_SAFE_PATH.  New comment.
5664         (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5665         AUTO_LOAD_SAFE_PATH.  Install auto_load_gdb_datadir_changed.
5666         * config.in: Regenerate.
5667         * configure: Regenerate.
5668         * configure.ac (--auto-load-safe-path): Rename
5669         DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH.  Default to
5670         GDB_DATADIR/auto-load.
5671         * defs.h (substitute_path_component): New declaration.
5672         * top.c: Include observer.h.
5673         (set_gdb_datadir): New function.
5674         (init_main): Install it for "set data-directory".
5675         * utils.c (substitute_path_component): New function.
5676
5677 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5678
5679         Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5680         * auto-load.c (auto_load_objfile_script): Remove check for NULL
5681         DEBUG_FILE_DIRECTORY.  Handle multiple components of
5682         DEBUG_FILE_DIRECTORY.
5683
5684 2012-05-10  Tom Tromey  <tromey@redhat.com>
5685
5686         * dwarf2read.c (recursively_write_psymbols): New function.
5687         (write_psymtabs_to_index): Use it.
5688
5689         * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5690         field.
5691         (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5692         (load_partial_comp_unit): Update.
5693         (queue_comp_unit): Add argument 'pretend_language'.
5694         (process_queue): Update.
5695         (psymtab_to_symtab_1): Skip dependencies that have a user.
5696         (load_partial_comp_unit_reader): Give meaning to the 'data'
5697         argument.
5698         (load_full_comp_unit): Add 'pretend_language' argument.
5699         (process_full_comp_unit): Add 'pretend_language' argument.  Set
5700         language on CU.
5701         (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5702         Update.
5703         (maybe_queue_comp_unit): Add 'pretend_language' argument.
5704         (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5705         Update.
5706         (prepare_one_comp_unit): Add 'pretend_language' argument.
5707
5708         * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5709         (struct dwarf2_per_objfile) <just_read_cus>: New field.
5710         (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5711         (dw2_do_instantiate_symtab): Check whether symtab was read in
5712         before queueing.
5713         (dw2_instantiate_symtab): Add assertion.  Call
5714         process_cu_includes.
5715         (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5716         (partial_symtab_p): New typedef.
5717         (set_partial_user): New function.
5718         (dwarf2_build_psymtabs_hard): Use set_partial_user.
5719         (scan_partial_symbols): Add imported CU to imported_symtabs.
5720         (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5721         (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5722         (get_symtab, recursively_compute_inclusions)
5723         (compute_symtab_includes, process_cu_includes)
5724         (process_imported_unit_die): New functions.
5725         (process_die) <DW_TAG_imported_unit>: New case.
5726         (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5727
5728         * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5729         comment.
5730         (struct partial_die_info) <locdesc>: Remove.
5731         <d>: New field.
5732         (process_psymtab_comp_unit): Add 'read_partial' argument.
5733         Update.
5734         (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5735         (scan_partial_symbols): Handle DW_TAG_imported_unit.
5736         (add_partial_symbol): Update.
5737         (process_die): Handle DW_TAG_partial_unit.
5738         (read_file_scope): Update comment.
5739         (load_partial_dies): Handle DW_TAG_imported_unit.
5740         (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5741         (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5742
5743 2012-05-10  Tom Tromey  <tromey@redhat.com>
5744
5745         * cc-with-dwz.sh: New file.
5746
5747 2012-05-10  Tom Tromey  <tromey@redhat.com>
5748
5749         * symtab.h (struct symtab) <includes, user>: New fields.
5750         * block.h (struct block_iterator) <d, idx, which>: New fields.
5751         * block.c (initialize_block_iterator, find_iterator_symtab)
5752         (block_iterator_step, block_iter_name_step)
5753         (block_iter_match_step): New functions.
5754         (block_iterator_first, block_iterator_next)
5755         (block_iter_name_first, block_iter_name_next)
5756         (block_iter_match_first, block_iter_match_next): Rewrite.
5757         (get_block_symtab): New function.
5758
5759 2012-05-10  Tom Tromey  <tromey@redhat.com>
5760
5761         * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5762         set_block_symtab.
5763         * jit.c (finalize_symtab): Use allocate_global_block,
5764         set_block_symtab.
5765         * buildsym.c (finish_block_internal): New function, from old
5766         finish_block.
5767         (finish_block): Rewrite.
5768         (end_symtab): Use finish_block_internal, set_block_symtab.
5769         * block.h (struct global_block): New.
5770         (allocate_global_block, set_block_symtab): Declare.
5771         * block.c (allocate_global_block, set_block_symtab): New
5772         functions.
5773
5774 2012-05-10  Tom Tromey  <tromey@redhat.com>
5775
5776         * psymtab.c (partial_map_expand_apply): Add assertion.
5777         (partial_map_symtabs_matching_filename): Skip included psymtabs.
5778         (psymtab_to_symtab): Find unshared psymtab.
5779         (dump_psymtab): Print including psymtabs.
5780         (recursively_search_psymtabs): New function.
5781         (expand_symtabs_matching_via_partial): Use it.
5782         * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5783         fields.
5784         (enum psymtab_search_status): New.
5785
5786 2012-05-10  Tom Tromey  <tromey@redhat.com>
5787
5788         * tracepoint.c (scope_info): Update.
5789         * symtab.c (lookup_block_symbol, iterate_over_symbols)
5790         (find_pc_sect_symtab, search_symbols)
5791         (default_make_symbol_completion_list_break_on)
5792         (make_file_symbol_completion_list): Update.
5793         * symmisc.c (dump_symtab_1): Update.
5794         * stack.c (print_frame_args, iterate_over_block_locals)
5795         (print_frame_labels, iterate_over_block_arg_vars): Update.
5796         * python/py-block.c (block_object) <dict>: Remove.
5797         <block>: New field.
5798         <iter>: Change type.
5799         (blpy_iter): Update.
5800         (blpy_block_syms_iternext): Update.
5801         * psymtab.c (map_block): Use block iterators.
5802         * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5803         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5804         * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5805         * infrun.c (check_exception_resume): Update.
5806         * cp-support.c (make_symbol_overload_list_block): Update.
5807         * coffread.c (patch_opaque_types): Update.
5808         * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5809         * block.h (struct block_iterator): New.
5810         (block_iterator_first, block_iterator_next, block_iter_name_first)
5811         (block_iter_name_next, block_iter_match_first)
5812         (block_iter_match_next): Declare.
5813         (ALL_BLOCK_SYMBOLS): Redefine.
5814         * block.c (block_iterator_first, block_iterator_next)
5815         (block_iter_name_first, block_iter_name_next)
5816         (block_iter_match_first, block_iter_match_next): New functions.
5817         * ada-lang.c (ada_add_block_symbols)
5818         (ada_make_symbol_completion_list): Use block iterator.
5819
5820 2012-05-10  Tom Tromey  <tromey@redhat.com>
5821
5822         * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5823         (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5824         (lookup_partial_symbol, find_last_source_symtab_from_partial)
5825         (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5826         (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5827         Update.
5828
5829 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
5830
5831         * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5832         print-file-var-lib2.c, print-file-var-main.c and
5833         print-file-var.exp (located in gdb/testsuite/gdb.base).
5834
5835 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
5836
5837         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5838         try locating the symbol in the symbol's own objfile first, before
5839         extending the search to all objfiles.
5840         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5841         out of lookup_symbol_aux_symtabs.
5842         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5843         Replace extracted-out code by call to lookup_symbol_aux_objfile.
5844         Do not search EXCLUDE_OBJFILE.
5845         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5846         (lookup_symbol_global): Search for matches in the block's objfile
5847         first, before searching all other objfiles.
5848
5849 2012-05-10  Tristan Gingold  <gingold@adacore.com>
5850
5851         * printcmd.c (set_command): Add pre/post inc/dec.
5852
5853 2012-05-09  Frank Ch. Eigler  <fche@redhat.com>
5854
5855         * gdb.1: Document -ex option.
5856
5857 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
5858
5859         * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5860         * inferior.h (AT_SYMBOL): Delete.
5861
5862 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
5863
5864         * mips-tdep.c (mips_push_dummy_code): New function.
5865         (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5866         ON_STACK and install mips_push_dummy_code as our gdbarch
5867         push_dummy_code routine.
5868
5869 2012-05-09  Pedro Alves  <palves@redhat.com>
5870
5871         * target.c (set_maintenance_target_async_permitted): Rename to ...
5872         (set_target_async_command): ... this.
5873         (show_maintenance_target_async_permitted): Rename to ...
5874         (show_target_async_command): ... this.
5875         (initialize_targets): Adjust.
5876
5877 2012-05-08  Doug Evans  <dje@google.com>
5878
5879         * go-exp.y (classify_name): Add missing assignment of fields of
5880         yylval.ssym.
5881
5882 2012-05-08  Eli Zaretskii  <eliz@gnu.org>
5883
5884         Display the ">" prompt in interactive mode while reading canned
5885         commands, even when the current interpreter is MI.
5886
5887         * interps.c (interp_set_temp): New function.
5888
5889         * interps.h (interp_set_temp): Add prototype.
5890
5891         * cli/cli-script.c (restore_interp): New cleanup function.
5892         (read_command_lines): Temporarily override the current interpreter
5893         with CLI and arrange for restoring the original one.
5894
5895 2012-05-12  Joel Sherrill <joel.sherrill@oarcorp.com>
5896
5897         * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5898
5899 2012-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
5900
5901         * probe.c (parse_probes): Move conditional to check for
5902         debuginfo files from here...
5903         * stap-probe.c (stap_get_probes): ... to here.
5904
5905 2012-05-07  Mark Kettenis  <kettenis@gnu.org>
5906             H.J. Lu  <hongjiu.lu@intel.com>
5907
5908         * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5909         `movl %esp, %ebp' for the X32 ABI.
5910
5911 2012-05-07  Tom Tromey  <tromey@redhat.com>
5912
5913         * dwarf2read.c (dwarf_tag_name): Return const char *.  Use
5914         get_DW_TAG_name.
5915         (dwarf_attr_name): Return const char *.  Use get_DW_AT_name.
5916         (dwarf_form_name): Return const char *.  Use get_DW_FORM_name.
5917         (dwarf_stack_op_name): Remove.
5918         (dwarf_cfi_name): Return const char *.  Use get_DW_ATE_name.
5919         (decode_locdesc): Use get_DW_OP_name.
5920         * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5921         (dwarf2_compile_expr_to_ax): Likewise.
5922         (disassemble_dwarf_expression): Likewise.
5923         * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5924
5925 2012-05-07  Chung-Lin Tang  <cltang@codesourcery.com>
5926
5927         * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5928         (sh_linux_sigtramp_cache): New function.
5929         (sh_linux_sigreturn_init): New function.
5930         (sh_linux_rt_sigreturn_init): New function.
5931         (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5932         patterns.
5933         (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5934         syscall codes.
5935         (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5936         (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5937         (sh_linux_init_abi): Add init calls to register new tramp_frame
5938         definitions under 32-bit SH, update comments.
5939
5940 2012-05-07  Pedro Alves  <palves@redhat.com>
5941
5942         PR gdb/10952
5943
5944         * amd64-linux-tdep.c: Include glibc-tdep.h.
5945         (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5946         gdbarch_skip_solib_resolver callback.
5947
5948 2012-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5949
5950         * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5951         back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5952         (show_auto_load_safe_path): Check any-directory by comparison with "/".
5953         (add_auto_load_safe_path): Change the error message.
5954         (_initialize_auto_load): Change the "safe-path" help text.
5955         * configure: Regenerate
5956         * configure.ac (--without-auto-load-safe-path): Set
5957         WITH_AUTO_LOAD_SAFE_PATH to /.
5958
5959 2012-05-05  Sergio Durigan Junior  <sergiodj@redhat.com>
5960
5961         * stap-probe.h: Do not include unecessary `probe.h'.
5962
5963 2012-05-05  Alan Modra  <amodra@gmail.com>
5964
5965         * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5966         bfd_und_section_ptr.
5967         * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5968         and bfd_com_section_ptr.
5969
5970 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
5971
5972         * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5973
5974 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
5975
5976         * windows-nat.h (segment_register_p_ftype): New typedef.
5977         (windows_set_segment_register_p): Add declaration.
5978         * windows-nat.c (segment_register_p): New static global.
5979         (windows_set_segment_register_p): New function.
5980         (do_windows_fetch_inferior_registers): Add special handling
5981         for segment registers.
5982         * amd64-windows-nat.c: #include "amd64-tdep.h".
5983         (amd64_windows_segment_register_p): New function.
5984         (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5985         * i386-windows-nat.c: #include "i386-tdep.h".
5986         (i386_windows_segment_register_p): New function.
5987         (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5988
5989 2012-05-04  Tristan Gingold  <gingold@adacore.com>
5990
5991         * printcmd.c (set_command): Emit a warning if the expression is not
5992         an assignment.
5993
5994 2012-05-03  Joel Brobecker  <brobecker@adacore.com>
5995
5996         * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5997         Make static.
5998
5999 2012-05-03  Sergio Durigan Junior  <sergiodj@redhat.com>
6000
6001         * stap-probe.c (stap_is_operator): Change declaration.
6002         (stap_get_opcode): Change return value.
6003         (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6004         `stap_parse_argument_1'.
6005
6006 2012-05-03  Pedro Alves  <pedro@codesourcery.com>
6007
6008         * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6009         debug log.
6010
6011 2012-05-03  Siva Chandra Reddy  <sivachandra@google.com>
6012
6013         Add two new methods global_block and static_block to gdb.Symtab
6014         objects.
6015         * NEWS (Python scripting): Add entry about the new methods.
6016         * python/py-symtab.c (stpy_global_block): New function which
6017         implements the gdb.Symtab.global_block() method.
6018         (stpy_static_block): New function which implements the
6019         gdb.Symtab.static_block() method.
6020         (symtab_object_methods): Add entries for the two new methods.
6021
6022 2012-05-03  Doug Evans  <dje@google.com>
6023
6024         * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6025         files.
6026
6027 2012-05-03  Yao Qi  <yao@codesourcery.com>
6028
6029         * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6030         space.
6031         (i386_process_record): Ditto.
6032
6033 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
6034
6035         * infcall.c (unwind_on_signal_p): Make static.
6036
6037 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
6038
6039         * sol-thread.c (solaris_pid_to_str): Make static.
6040         (_initialize_sol_thread): Add prototype.
6041
6042 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
6043
6044         * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6045
6046 2012-05-02  Christopher Faylor  <me.cygwin2012@cgf.cx>
6047
6048         * MAINTAINERS: Remove myself.
6049
6050 2012-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6051
6052         Fix --without-auto-load-safe-path for MS-Windows host platform.
6053         * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6054
6055 2012-05-02  Eli Zaretskii  <eliz@gnu.org>
6056
6057         * gdb_curses.h: Undefine KEY_EVENT before including curses
6058         headers.  Move "#undef MOUSE_MOVED" before any curses header
6059         inclusion.
6060
6061 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
6062
6063         * features/i386/i386-mmx-linux.c: Regenerate.
6064         * features/rs6000/powerpc-32.c: Likewise.
6065         * features/rs6000/powerpc-32l.c: Likewise.
6066         * features/rs6000/powerpc-403.c: Likewise.
6067         * features/rs6000/powerpc-403gc.c: Likewise.
6068         * features/rs6000/powerpc-405.c: Likewise.
6069         * features/rs6000/powerpc-505.c: Likewise.
6070         * features/rs6000/powerpc-601.c: Likewise.
6071         * features/rs6000/powerpc-602.c: Likewise.
6072         * features/rs6000/powerpc-603.c: Likewise.
6073         * features/rs6000/powerpc-604.c: Likewise.
6074         * features/rs6000/powerpc-64.c: Likewise.
6075         * features/rs6000/powerpc-64l.c: Likewise.
6076         * features/rs6000/powerpc-750.c: Likewise.
6077         * features/rs6000/powerpc-860.c: Likewise.
6078         * features/rs6000/powerpc-e500.c: Likewise.
6079         * features/rs6000/powerpc-e500l.c: Likewise.
6080         * features/rs6000/powerpc-isa205-32l.c: Likewise.
6081         * features/rs6000/powerpc-isa205-64l.c: Likewise.
6082         * features/rs6000/rs6000.c: Likewise.
6083
6084 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
6085
6086         * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6087         variable.
6088         * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6089         reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6090         (stap_parse_argument) <e>: Likewise.
6091         (handle_stap_probe) <byte_order>: Likewise.
6092
6093 2012-04-30  Doug Evans  <dje@google.com>
6094
6095         * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6096         init_and_read_dies_worker.  All callers updated.
6097         (init_cu_and_read_dies, init_tu_and_read_dies): Delete.  All calls
6098         replaced with init_cutu_and_read_dies.
6099         (load_partial_comp_unit): Pass 1 for use_existing_cu.
6100         (find_partial_die): Remove FIXME.  Don't free current CU.
6101
6102 2012-04-30  Sterling Augustine  <saugustine@google.com>
6103
6104         * contrib: New directory.
6105         * contrib/test_pubnames_and_indexes.py: New file.
6106
6107 2012-04-30  Doug Evans  <dje@google.com>
6108
6109         * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6110         All callers updated.
6111         (init_cu_die_reader): Verify the section is non-empty.
6112         (dwarf_decode_line_header): Don't dereference section->asection
6113         until we know the section is present.
6114
6115 2012-04-29  Sergio Durigan Junior  <sergiodj@redhat.com>
6116
6117         * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6118         probes.
6119
6120 2012-04-29  Yao Qi  <yao@codesourcery.com>
6121
6122         * gdb-code-style.el: New hook gdb-markup-hook
6123         and gdb-comment-hook.
6124
6125 2012-04-28  Doug Evans  <dje@google.com>
6126
6127         Initial support for Fission.  http://gcc.gnu.org/wiki/DebugFission
6128         * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6129         objfile->obfd.
6130         * symfile.h (dwarf2_debug_sections): New member addr.
6131         * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6132         (ctx_no_get_addr_index): New function.
6133         * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6134         (ctx_no_get_addr_index): Declare.
6135         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6136         * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6137         (dwarf_expr_ctx_funcs): Update.
6138         (needs_get_addr_index): New function.
6139         (needs_frame_ctx_funcs): Update.
6140         * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6141         * dwarf2read.c: #include "gdbcore.h".
6142         (dwarf2_per_objfile): New members addr, dwo_files.
6143         (dwarf2_elf_names): Add entry for addr.
6144         (struct dwo_section_names): New type.
6145         (dwo_section_names): New static global.
6146         (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6147         (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6148         old debug_types_section member updated to use this.
6149         Rename member debug_types_section to info_or_types_section,
6150         all uses updated.
6151         (signatured_type): Rename member type_offset to type_offset_in_tu,
6152         all uses updated.  New member type_offset_in_section.
6153         (struct dwo_sections): New type.
6154         (struct dwo_unit): New type.
6155         (struct dwo_file): New type.
6156         (die_reader_specs): New member dwo_file.
6157         (dwarf2_locate_sections): Watch for .debug_addr.
6158         (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6159         (dwarf2_read_section): Get bfd of section from bfd's asection,
6160         instead of objfile.
6161         (create_cus_from_index): Initialize the_cu->info_or_types_section.
6162         (create_signatured_type_table_from_index): Initialize
6163         sig_type->info_or_types_section.
6164         (dw2_get_file_names): Statement lists for type units with DWO files
6165         live in the DWO file.
6166         (create_debug_types_hash_table): New function.
6167         (create_all_type_units): Rewrite.
6168         (init_cu_die_reader): New arg dwo_file, all callers updated.
6169         (init_and_read_dies_worker): Get section from
6170         this_cu->info_or_types_section.  Set sig_type->type_offset_in_section.
6171         Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6172         continue reading the CU/TU from there.
6173         (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6174         updated.  Get section from this_cu->info_or_types_section.
6175         (create_all_comp_units): Initialize this_cu->info_or_types_section.
6176         (skip_one_die): New cases DW_FORM_GNU_addr_index,
6177         DW_FORM_GNU_str_index.
6178         (hash_dwo_file, eq_dwo_file): New functions.
6179         (allocate_dwo_file_hash_table): New function.
6180         (hash_dwo_unit, eq_dwo_unit): New functions.
6181         (allocate_dwo_unit_table): New function.
6182         (dwarf2_locate_dwo_sections): New function.
6183         (struct create_dwo_info_table_data): New type.
6184         (create_debug_info_hash_table_reader): New function.
6185         (create_debug_info_hash_table): New function.
6186         (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6187         (lookup_dwo_file): New function.
6188         (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6189         (free_dwo_file, free_dwo_file_cleanup): New functions.
6190         (free_dwo_file_from_slot, free_dwo_files): New functions.
6191         (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6192         (dwarf2_record_block_ranges): Ditto.
6193         (read_partial_die): Ditto.
6194         (process_enumeration_scope): Update to use type_offset_in_section.
6195         (read_full_die_1): New function.
6196         (read_full_die): Rewrite.
6197         (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6198         DW_FORM_GNU_str_index.
6199         (read_addr_index_1, read_addr_index): New functions.
6200         (read_addr_index_from_leb128): New function.
6201         (struct dwarf2_read_addr_index_data): New type.
6202         (dwarf2_read_addr_index_reader): New function.
6203         (dwarf2_read_addr_index): New function.
6204         (read_str_index): New function.
6205         (leb128_size): New function.
6206         (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6207         If processing a type unit from a DWO file, get the line section
6208         from the DWO file.
6209         (var_decode_location): Watch for DW_OP_GNU_addr_index.
6210         (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6211         DW_FORM_GNU_str_index.
6212         (lookup_die_type): Check whether section offset of type's die is
6213         known before looking it up.  Remove assert.  Condition can
6214         legimately happen for inter-cu type references.
6215         (dwarf_attr_name): Handle Fission attributes.
6216         (dwarf_form_name): Handle Fission forms.
6217         (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6218         DW_FORM_GNU_str_index.
6219         (follow_die_sig): Update to use type_offset_in_section.
6220         (decode_locdesc): New case DW_OP_GNU_addr_index.
6221         (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6222         DW_FORM_GNU_str_index.
6223         (cu_debug_loc_section): New function.
6224         (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6225         (dwarf2_per_objfile_free): Unmap .debug_addr section.
6226         Free DWO files if present.
6227         * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6228
6229         Refactor DIE reading.
6230         * dwarf2read.c (dwarf2_per_objfile): Replace members
6231         debug_info_type_hash and debug_types_type_hash with die_type_hash.
6232         (die_reader_specs): New member "die_section".  Temporarily make
6233         member "buffer" non-const, pending constifying all info_ptr uses.
6234         (die_reader_func_ftype): New typedef.
6235         (dw2_get_file_names_reader): New function.
6236         (dw2_get_file_names): Rewrite.
6237         (read_and_check_type_unit_head): Rename arg type_offset to
6238         type_offset_in_tu.
6239         (create_all_type_units): Improve debugging message.
6240         Improve dummy type unit check.
6241         (init_cu_die_reader): New arg "section".  All callers updated.
6242         (init_and_read_dies_worker): New function.
6243         (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6244         (init_cutu_and_read_dies_no_follow): New function.
6245         (init_cutu_and_read_dies_simple): New function.
6246         (process_psymtab_comp_unit_reader): New function.
6247         (process_psymtab_comp_unit): Delete args section,
6248         is_debug_types_section.  Rewrite.  All callers updated.
6249         (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6250         All callers updated.  Rewrite.
6251         (load_partial_comp_unit_reader): New function.
6252         (load_partial_comp_unit): Rewrite.
6253         (skip_children): New arg reader.  Delete args buffer, cu.
6254         All callers updated.
6255         (skip_one_die): New arg reader.  Delete args buffer, cu.
6256         All callers updated.
6257         (locate_pdi_sibling): New arg reader.  Delete args buffer, abfd, cu.
6258         All callers updated.
6259         (load_full_comp_unit_reader): New function.
6260         (load_full_comp_unit): Rewrite.
6261         (read_comp_unit): Delete.
6262         (read_die_and_children_1): Delete, contents moved ...
6263         (read_die_and_children): ... here.
6264         (dwarf2_read_abbrevs): New arg abbrev_section.  All callers updated.
6265         (load_partial_dies): New arg reader.  Delete args abfd, buffer, cu.
6266         All callers updated.
6267         (read_partial_die): New arg reader.  Delete args abfd, buffer, cu.
6268         All callers updated.
6269         (find_partial_die): Rewrite load_all_dies support.
6270         (read_attribute_value): New arg reader.  Delete args abfd, cu.
6271         All callers updated.
6272         (read_attribute): New arg reader.  Delete args abfd, cu.
6273         All callers updated.
6274         (load_full_type_unit): Add assert.
6275         (read_signatured_type_reader): New function.
6276         (read_signatured_type): Rewrite.
6277         (free_stack_comp_unit): Remove call to age_cached_comp_units.
6278         (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6279         All callers updated.  Set per_cu->cu = NULL after freeing it.
6280         (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6281         (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6282         (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6283         (set_die_type): Update.
6284         (get_die_type_at_offset): Update.
6285         (read_file_scope): Call prepare_one_comp_unit.
6286         (read_type_unit_scope): Ditto.
6287         (prepare_one_comp_unit): Set producer if present.
6288
6289 2012-04-28  Sergio Durigan Junior  <sergiodj@redhat.com>
6290
6291         * probe.c (compile_rx_or_error): Silence ARI warning about missing
6292          gettext function on `error'.
6293
6294 2012-04-27  Doug Evans  <dje@google.com>
6295
6296         * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6297         is empty.
6298
6299 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6300             Tom Tromey  <tromey@redhat.com>
6301
6302         * breakpoint.c (struct breakpoint_objfile_data)
6303         <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6304         <exception_probes>: New fields.
6305         (free_breakpoint_probes): New function.
6306         (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6307         `_Unwind_DebugHook'.
6308         (create_exception_master_breakpoint): Likewise.
6309         (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6310         * infrun.c: Including necessary header files for handling SystemTap
6311         probes.
6312         (handle_inferior_event): Handling longjmp breakpoint and exceptions
6313         via SystemTap probes.
6314         (check_exception_resume): Remove `func' argument.  Handle exception
6315         unwinding breakpoint set via a SystemTap probe.
6316         (insert_exception_resume_from_probe): New function.
6317
6318 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6319             Tom Tromey  <tromey@redhat.com>
6320             Jan Kratochvil  <jan.kratochvil@redhat.com>
6321
6322         * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6323         (COMMON_OBS): Likewise.
6324         (HFILES_NO_SRCDIR): Add `probe'.
6325         * NEWS: Mention support for static and SystemTap probes.
6326         * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6327         SystemTap probes' arguments parser.
6328         * arm-linux-tdep.c: Including headers needed to perform the parsing
6329         of SystemTap probes' arguments.
6330         (arm_stap_is_single_operand): New function.
6331         (arm_stap_parse_special_token): Likewise.
6332         (arm_linux_init_abi): Initializing proper fields used by SystemTap
6333         probes' arguments parser.
6334         * ax-gdb.c (require_rvalue): Removing static declaration.
6335         (gen_expr): Likewise.
6336         * ax-gdb.h (gen_expr): Declaring function.
6337         (require_rvalue): Likewise.
6338         * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6339         (bkpt_probe_breakpoint_ops): New variable.
6340         (momentary_breakpoint_from_master): Set the `probe' value.
6341         (add_location_to_breakpoint): Likewise.
6342         (break_command_1): Using proper breakpoint_ops according to the
6343         argument passed by the user in the command line.
6344         (bkpt_probe_insert_location): New function.
6345         (bkpt_probe_remove_location): Likewise.
6346         (bkpt_probe_create_sals_from_address): Likewise.
6347         (bkpt_probe_decode_linespec): Likewise.
6348         (tracepoint_probe_create_sals_from_address): Likewise.
6349         (tracepoint_probe_decode_linespec): Likewise.
6350         (tracepoint_probe_breakpoint_ops): New variable.
6351         (trace_command): Using proper breakpoint_ops according to the
6352         argument passed by the user in the command line.
6353         (initialize_breakpoint_ops): Initializing breakpoint_ops for
6354         static probes on breakpoints and tracepoints.
6355         * breakpoint.h (struct bp_location) <probe>: New field.
6356         * cli-utils.c (skip_spaces_const): New function.
6357         (extract_arg): Likewise.
6358         * cli-utils.h (skip_spaces_const): Likewise.
6359         (extract_arg): Likewise.
6360         * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6361         * configure.ac: Append `stap-probe.o' to be generated when ELF
6362         support is present.
6363         * configure: Regenerate.
6364         * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6365         * elfread.c: Include `probe.h' and `arch-utils.h'.
6366         (probe_key): New variable.
6367         (elf_get_probes): New function.
6368         (elf_get_probe_argument_count): Likewise.
6369         (elf_evaluate_probe_argument): Likewise.
6370         (elf_compile_to_ax): Likewise.
6371         (elf_symfile_relocate_probe): Likewise.
6372         (stap_probe_key_free): Likewise.
6373         (elf_probe_fns): New variable.
6374         (elf_sym_fns): Add `sym_probe_fns' value.
6375         (elf_sym_fns_lazy_psyms): Likewise.
6376         (elf_sym_fns_gdb_index): Likewise.
6377         (_initialize_elfread): Initialize objfile cache for static
6378         probes.
6379         * gdb_vecs.h (struct probe): New forward declaration.
6380         (probe_p): New VEC declaration.
6381         * gdbarch.c: Regenerate.
6382         * gdbarch.h: Regenerate.
6383         * gdbarch.sh (stap_integer_prefix): New variable.
6384         (stap_integer_suffix): Likewise.
6385         (stap_register_prefix): Likewise.
6386         (stap_register_suffix): Likewise.
6387         (stap_register_indirection_prefix): Likewise.
6388         (stap_register_indirection_suffix): Likewise.
6389         (stap_gdb_register_prefix): Likewise.
6390         (stap_gdb_register_suffix): Likewise.
6391         (stap_is_single_operand): New function.
6392         (stap_parse_special_token): Likewise.
6393         (struct stap_parse_info): Forward declaration.
6394         * i386-tdep.c: Including headers needed to perform the parsing
6395         of SystemTap probes' arguments.
6396         (i386_stap_is_single_operand): New function.
6397         (i386_stap_parse_special_token): Likewise.
6398         (i386_elf_init_abi): Initializing proper fields used by SystemTap
6399         probes' arguments parser.
6400         * i386-tdep.h (i386_stap_is_single_operand): New function.
6401         (i386_stap_parse_special_token): Likewise.
6402         * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6403         * mipsread.c (ecoff_sym_fns): Likewise.
6404         * objfiles.c (objfile_relocate1): Support relocation for static
6405         probes.
6406         * parse.c (prefixify_expression): Remove static declaration.
6407         (initialize_expout): Likewise.
6408         (reallocate_expout): Likewise.
6409         * parser-defs.h (initialize_expout): Declare function.
6410         (reallocate_expout): Likewise.
6411         (prefixify_expression): Likewise.
6412         * ppc-linux-tdep.c: Including headers needed to perform the parsing
6413         of SystemTap probes' arguments.
6414         (ppc_stap_is_single_operand): New function.
6415         (ppc_stap_parse_special_token): Likewise.
6416         (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6417         probes' arguments parser.
6418         * probe.c: New file, for generic statically defined probe support.
6419         * probe.h: Likewise.
6420         * s390-tdep.c: Including headers needed to perform the parsing of
6421         SystemTap probes' arguments.
6422         (s390_stap_is_single_operand): New function.
6423         (s390_gdbarch_init): Initializing proper fields used by SystemTap
6424         probes' arguments parser.
6425         * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6426         * stap-probe.c: New file, for SystemTap probe support.
6427         * stap-probe.h: Likewise.
6428         * symfile.h: Include `gdb_vecs.h'.
6429         (struct sym_probe_fns): New struct.
6430         (struct sym_fns) <sym_probe_fns>: New field.
6431         * symtab.c (init_sal): Initialize `probe' field.
6432         * symtab.h (struct probe): Forward declaration.
6433         (struct symtab_and_line) <probe>: New field.
6434         * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6435         locations.
6436         (stop_tracing): Likewise.
6437         * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6438
6439 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6440             Tom Tromey  <tromey@redhat.com>
6441
6442         * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6443         and to compile agent expressions.
6444         * infrun.c (siginfo_make_value): New argument `ignore'.
6445         (siginfo_funcs): New struct.
6446         (_initialize_infrun): New argument when calling
6447         `create_internalvar_type_lazy'.
6448         * thread.c (thread_id_make_value): New argument `ignore'.
6449         (thread_funcs): New struct.
6450         (_initialize_thread): New argument when calling
6451         `create_internalvar_type_lazy'.
6452         * tracepoint.c (sdata_make_value): New argument `ignore'.
6453         (sdata_funcs): New struct.
6454         (_initialize_tracepoint): New argument when calling
6455         `create_internalvar_type_lazy'.
6456         * value.c (make_value): New struct.
6457         (create_internalvar_type_lazy): New argument `data'.
6458         (compile_internalvar_to_ax): New function.
6459         (value_of_internalvar): Properly handling `make_value' case.
6460         (clear_internalvar): Likewise.
6461         (show_convenience): Adding `TRY_CATCH' block.
6462         * value.h (internalvar_make_value): Delete, replace by...
6463         (struct internalvar_funcs): ... this.
6464         (create_internalvar_type_lazy) <fun>: Delete argument.
6465         (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6466         (compile_internalvar_to_ax): New function.
6467         * windows-tdep.c (tlb_make_value): New argument `ignore'.
6468         (tlb_funcs): New struct.
6469         (_initialize_windows_tdep): New argument when calling
6470         `create_internalvar_type_lazy'.
6471
6472 2012-04-27  Mark Wielaard  <mjw@redhat.com>
6473
6474         * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6475         see whether it is an address or a constant offset from DW_AT_low_pc.
6476         (dwarf2_record_block_ranges): Likewise.
6477         (read_partial_die): Likewise.
6478
6479 2012-04-26  Mark Wielaard  <mjw@redhat.com>
6480
6481         * MAINTAINERS (Write After Approval): Add myself to the list.
6482
6483 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
6484
6485         * proc-utils.h (proc_prettyprint_signalset): New prototype.
6486         (proc_prettyprint_signal): Likewise.
6487         (proc_prettyprint_faultset): Likewise.
6488         (proc_prettyprint_fault): Likewise.
6489         (proc_prettyprint_actionset): Likewise.
6490         (proc_prettyprint_flags): Move to new proc-flags.c section.
6491         (proc_prettyfprint_flags): New prototype.
6492         * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6493         (proc_syscall, proc_cursig): Likewise.
6494         (proc_set_kill_on_last_close): Likewise.
6495         (proc_unset_kill_on_last_close): Likewise.
6496         (proc_set_watchpoint): Make static.
6497         (proc_delete_dead_threads): Likewise.
6498         (procfs_set_watchpoint): Likewise.
6499         (_initialize_procfs): Add prototype.
6500         * proc-events.c: Include proc-utils.h.
6501         (init_syscall_table): Make static.
6502         * proc-api.c (_initialize_proc_api): Add prototype.
6503         * proc-flags.c: Include proc-utils.h.
6504
6505 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
6506
6507         * configure.ac: Add AC_ARG_PROGRAM.
6508         * configure: Regenerate.
6509
6510 2012-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6511
6512         Fix DW_AT_lower_bound defaults for DWARF-4+.
6513         * dwarf2read.c (read_subrange_type): Remove initialization of low and
6514         high.  New variable low_default_is_valid.  Implement DWARF-4+
6515         DW_AT_lower_bound defaults.  Print complaint for DW_AT_lower_bound with
6516         no default by the DWARF standard.
6517
6518 2012-04-26  Maciej W. Rozycki  <macro@mips.com>
6519             Maciej W. Rozycki  <macro@codesourcery.com>
6520
6521         * infrun.c (handle_inferior_event): Move the check for return
6522         trampolines ahead of the check for function trampolines.
6523         * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6524         * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6525         (mips_str_mips16_ret_stub): Likewise.
6526         (mips_str_call_fp_stub): Likewise.
6527         (mips_str_call_stub): Likewise.
6528         (mips_str_fn_stub): Likewise.
6529         (mips_str_pic): Likewise.
6530         (mips_in_frame_stub): New function.
6531         (mips_unwind_pc): Return the return address rather than the PC
6532         if the PC of an intermediate frame is inside a call thunk.
6533         (mips_is_stub_suffix): New function.
6534         (mips_is_stub_mode): Likewise.
6535         (mips_get_mips16_fn_stub_pc): Likewise.
6536         (mips_skip_mips16_trampoline_code): Update to handle all the
6537         currently generated stub types.  Don't recurse into __fn_stub
6538         thunks.  Remove heuristics to handle stubs beyond etext/_etext.
6539         Use cooked register accesses.
6540         (mips_in_return_stub): Reintroduce function.
6541         (mips_skip_trampoline_code): Traverse trampolines recursively.
6542         (mips_gdbarch_init): Handle MIPS16 return trampolines.
6543
6544 2012-04-26  Joel Brobecker  <brobecker@adacore.com>
6545
6546         GDB 7.4.1 released.
6547
6548 2012-04-26  Jonathan Larmour  <jifl@eCosCentric.com>
6549
6550         * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6551         * features/arm-with-m-vfp-d16.xml: New file. Describes
6552         Cortex-M with VFPv4-sp-d16 FPU register layout.
6553         * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6554         * features/arm-with-m-vfp-d16.c: New. Generated from above.
6555         * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6556         (arm-register_g_packet_guesses): Add vfp-d16 guess.
6557         (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6558
6559 2012-04-25  Doug Evans  <dje@google.com>
6560
6561         * cli/cli-decode.c (print_doc_line): Use stream instead of
6562         current_uiout.
6563
6564 2012-04-25  Sergio Durigan Junior  <sergiodj@redhat.com>
6565
6566         * features/arm-with-iwmmxt.c: Regenerate.
6567         * features/arm-with-m-fpa-layout.c: Likewise.
6568         * features/arm-with-m.c: Likewise.
6569         * features/arm-with-neon.c: Likewise.
6570         * features/arm-with-vfpv2.c: Likewise.
6571         * features/arm-with-vfpv3.c: Likewise.
6572         * features/mips-dsp-linux.c: Likewise.
6573         * features/mips-linux.c: Likewise.
6574         * features/mips64-dsp-linux.c: Likewise.
6575         * features/mips64-linux.c: Likewise.
6576         * features/s390-linux32.c: Likewise.
6577         * features/s390-linux32v1.c: Likewise.
6578         * features/s390-linux32v2.c: Likewise.
6579         * features/s390-linux64.c: Likewise.
6580         * features/s390-linux64v1.c: Likewise.
6581         * features/s390-linux64v2.c: Likewise.
6582         * features/s390x-linux64.c: Likewise.
6583         * features/s390x-linux64v1.c: Likewise.
6584         * features/s390x-linux64v2.c: Likewise.
6585         * features/tic6x-c62x-linux.c: Likewise.
6586         * features/tic6x-c62x.c: Likewise.
6587         * features/tic6x-c64x-linux.c: Likewise.
6588         * features/tic6x-c64x.c: Likewise.
6589         * features/tic6x-c64xp-linux.c: Likewise.
6590         * features/tic6x-c64xp.c: Likewise.
6591         * target-descriptions.c: Only generate `field_type' and `type'
6592         variables when needed.
6593
6594 2012-04-25  Fredrik Hederstierna  <fredrikh.hederstierna@securitas-direct.com>
6595
6596         * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6597
6598 2012-04-25  Doug Evans  <dje@google.com>
6599
6600         Initial pass at Go language support.
6601         * NEWS: Mention Go.
6602         * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6603         go-valprint.c.
6604         (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6605         (YYFILES): Add go-exp.c.
6606         (YYOBJ): Add go-exp.o.
6607         (local-maintainer-clean): Delete go-exp.c.
6608         * defs.h (enum language): Add language_go.
6609         * dwarf2read.c: #include "go-lang.h".
6610         (fixup_go_packaging): New function.
6611         (process_full_comp_unit): Call it when processing Go CUs.
6612         (dwarf2_physname): Add Go support.
6613         (read_file_scope): Handle missing language spec for GNU Go.
6614         (set_cu_language): Handle DW_LANG_Go.
6615         * go-exp.y: New file.
6616         * go-lang.h: New file.
6617         * go-lang.c: New file.
6618         * go-typeprint.c: New file.
6619         * go-valprint.c: New file.
6620         * symtab.c: #include "go-lang.h".
6621         (symbol_set_language): Handle language_go.
6622         (symbol_find_demangled_name, symbol_set_names): Ditto.
6623         (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6624
6625 2012-04-24  Jim Meyering  <meyering@redhat.com>
6626
6627         avoid a few strncpy-induced buffer overruns
6628         * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6629         fname and psargs before trying to concatenate.
6630         * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6631         "name" before applying strchr.
6632
6633 2012-04-25  Siva Chandra Reddy  <sivachandra@google.com>
6634
6635         * CONTRIBUTE: Use unified diff instead of context diff when
6636         generating patches.
6637
6638 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
6639
6640         * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6641         code.  Handle JR.HB correctly.
6642
6643 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
6644
6645         * mips-tdep.c
6646         (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6647         with the other MIPS16 helpers.
6648
6649 2012-04-24  Sergio Durigan Junior  <sergiodj@redhat.com>
6650
6651         * observer.sh: Conditionally declare `args', thus cleaning up
6652         unused instances of this variable.
6653
6654 2012-04-24  Yao Qi  <yao@codesourcery.com>
6655
6656         Revert this patch to allow breakpoint always-inserted
6657         in record target.
6658         2011-12-05  Pedro Alves  <pedro@codesourcery.com>
6659         * breakpoint.c: Include record.h.
6660         (breakpoints_always_inserted_mode): Return false when the record
6661         target is in use.
6662
6663         * breakpoint.c (iterate_over_bp_locations): New.
6664         * breakpoint.h: Declare.
6665         New typedef walk_bp_location_callback.
6666         * record.c (record_open): Call record_init_record_breakpoints.
6667         (record_sync_record_breakpoints): New.
6668         (record_init_record_breakpoints): New.
6669         * NEWS: Mention supporting breakpoint always-inserted mode in
6670         record target.
6671
6672 2012-04-24  Marc Khouzam  <marc.khouzam@ericsson.com>
6673
6674         * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6675         any thread.
6676
6677 2012-04-24  Yao Qi  <yao@codesourcery.com>
6678
6679         * breakpoint.c (ep_is_catchpoint): Renamed to ...
6680         (is_catchpoint): ... it.
6681         (print_one_breakpoint_location): Caller update.
6682         * breakpoint.h: Update declaration.
6683
6684 2012-04-23  David S. Miller  <davem@davemloft.net>
6685
6686         * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6687
6688 2012-04-23  Tom Tromey  <tromey@redhat.com>
6689
6690         * buildsym.c (add_free_pendings): Remove.
6691         * buildsym.h (add_free_pendings): Remove.
6692
6693 2012-04-23  Doug Evans  <dje@google.com>
6694
6695         * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6696         attr.u.unsnd instead of attr.u.addr.
6697         (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6698         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6699         DW_FORM_ref_udata.
6700         (dump_die_shallow): Update cases DW_FORM_ref_addr,
6701         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4.  Add cases DW_FORM_ref8,
6702         DW_FORM_ref_udata.
6703         (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6704
6705 2012-04-23  Maciej W. Rozycki  <macro@codesourcery.com>
6706
6707         * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6708         (mips_o32_return_value): Likewise.
6709         (mips_o64_return_value): Likewise.
6710
6711 2012-04-21  Paul Hilfinger  <hilfinger@adacore.com>
6712
6713         * ada-lang.c (ada_evaluate_subexp): Add cases for
6714         TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6715         their treatment in eval.c.
6716
6717 2012-04-21  David S. Miller  <davem@davemloft.net>
6718
6719         * sparc-tdep.c (X_DISP10): Define.
6720         (sparc_analyze_control_transfer): Handle compare-and-branch.
6721
6722 2012-04-21  Jonathan Larmour  <jifl@eCosCentric.com>
6723
6724         * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6725         * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6726
6727 2012-04-20  Nigel Stephens  <nigel@mips.com>
6728             Maciej W. Rozycki  <macro@codesourcery.com>
6729
6730         * mips-tdep.c (mips_float_register_p): New function.
6731         (mips_convert_register_float_case_p): Use mips_float_register_p.
6732         (mips_register_type): Likewise.
6733         (mips_print_register): Likewise.
6734         (print_gp_register_row): Likewise.
6735         (mips_print_registers_info): Likewise.
6736
6737 2012-04-20  Shun-Yen Lu  <dark.asparagus@gmail.com>
6738
6739         * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6740         of mips16 symbols.
6741
6742 2012-04-20  Andrew Pinski  <apinski@cavium.com>
6743
6744         * MAINTAINERS (Write After Approval): Add myself to the list.
6745
6746 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
6747
6748         * MAINTAINERS: Update my e-mail address.
6749
6750 2012-04-20  Pedro Alves  <palves@redhat.com>
6751
6752         * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6753         $srcdir.
6754         * configure: Regenerate.
6755
6756 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
6757
6758         * cp-support.h: Include `gdb_vecs.h'.  Delete `const_char_ptr' VEC
6759         declaration.
6760         * gdb_vecs.h: Declare `const_char_ptr' VEC.
6761
6762 2012-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6763
6764         Fix compilation compatibility with python-2.4
6765         * python/py-type.c (convert_field): Cast ADDRSTRING for
6766         PyObject_SetAttrString as non-const.  New comment.
6767
6768 2012-04-19  Tom Tromey  <tromey@redhat.com>
6769
6770         * top.c (quit_target): Use all_cleanups.
6771         * main.c (captured_command_loop): Use all_cleanups.
6772         * exceptions.c (throw_exception): Use all_cleanups.
6773
6774 2012-04-19  Pedro Alves  <palves@redhat.com>
6775
6776         * Makefile.in (GNULIB_BUILDDIR): New.
6777         (LIBGNU, INCGNU, GNULIB_H): Adjust.
6778         (SUBDIRS): Add $(GNULIB_BUILDDIR).
6779         (CLEANDIRS). Remove gnulib/import.
6780         (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6781         (all-lib): Ditto.
6782         (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6783         (gnulib/import/Makefile): Replace gnulib/import with
6784         $(GNULIB_BUILDDIR).  Set CONFIG_FILES to just Makefile.
6785         (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6786         (aclocal_m4_deps): Remove the gnulib dependencies.  Add
6787         acx_configure_dir.m4.
6788         * acinclude.m4: Include acx_configure_dir.m4.
6789         * acx_configure_dir.m4: New file.
6790         * aclocal.m4: Regenerate.
6791         * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6792         calls.  Configure gnulib using ACX_CONFIGURE_DIR.
6793         (GNULIB): New variable.
6794         (GNULIB_STDINT_H): Adjust.
6795         (AC_OUTPUT): Don't output gnulib/Makefile.
6796         * gdb/defs.h: Include build-gnulib/config.h.
6797         * aclocal.m4: Regenerate.
6798         * config.in: Regenerate.
6799         * configure: Regenerate.
6800
6801         * gnulib/Makefile.in: New file.
6802         * gnulib/configure.ac: New file.
6803         * gnulib/aclocal.m4: New file.
6804         * gnulib/config.in: New file.
6805         * gnulib/configure: New file.
6806         * gnulib/: Re-run gnulib-tool to adjust.
6807
6808 2012-04-19  Doug Evans  <dje@google.com>
6809
6810         * cleanups.h (struct cleanup): Move to cleanups.c.
6811         (make_cleanup_dtor_ftype): New typedef.
6812         (make_cleanup_dtor): Use it.
6813         (ALL_CLEANUPS): Replace with ...
6814         (all_cleanups): ... this.  Declare.  All uses updated.
6815         * cleanups.c: #include "gdb_assert.h".
6816         (sentinel_cleanup): New static global.
6817         (SENTINEL_CLEANUP): Define.
6818         (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6819         (make_my_cleanup2): Assert result is non-NULL.
6820         (all_cleanups): New function.
6821         (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6822         of NULL.
6823
6824 2012-04-19  Pedro Alves  <palves@redhat.com>
6825
6826         * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6827         Adjust paths to gnulib imported files.
6828
6829 2012-04-19  Pedro Alves  <palves@redhat.com>
6830
6831         * gnulib/: Move whole directory ...
6832         * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6833         * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6834         (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6835         (aclocal_m4_deps): Adjust.
6836         * aclocal.m4: Regenerate.
6837         * configure: Regenerate.
6838         * configure.ac: Adjust AC_OUTPUT output.
6839
6840 2012-04-19  Yao Qi  <yao@codesourcery.com>
6841
6842         * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6843         (vec.o): New rule.
6844         * vec.c: Move it ...
6845         * common/vec.c: ... here.
6846         * vec.h: Move it ...
6847         * common/vec.h: ... here.
6848
6849 2012-04-19  Yao Qi  <yao@codesourcery.com>
6850
6851         * gdb-code-style.el: New.
6852
6853 2012-04-18  Pedro Alves  <palves@redhat.com>
6854
6855         Update gnulib from latest git.
6856         (639ea5ae15e39fe48d43e04864b2997301e4b969)
6857
6858         * gnulib/Makefile.am: Update.
6859         * gnulib/dummy.c: Update.
6860         * gnulib/extra/arg-nonnull.h: Update.
6861         * gnulib/extra/c++defs.h: Update.
6862         * gnulib/extra/update-copyright: Update.
6863         * gnulib/extra/warn-on-use.h: Update.
6864         * gnulib/inttypes.in.h: Update.
6865         * gnulib/m4/00gnulib.m4: Update.
6866         * gnulib/m4/extensions.m4: Update.
6867         * gnulib/m4/gnulib-cache.m4: Update.
6868         * gnulib/m4/gnulib-common.m4: Update.
6869         * gnulib/m4/gnulib-comp.m4: Update.
6870         * gnulib/m4/gnulib-tool.m4: Update.
6871         * gnulib/m4/include_next.m4: Update.
6872         * gnulib/m4/inttypes-pri.m4: Update.
6873         * gnulib/m4/inttypes.m4: Update.
6874         * gnulib/m4/longlong.m4: Update.
6875         * gnulib/m4/memchr.m4: Update.
6876         * gnulib/m4/memmem.m4: Update.
6877         * gnulib/m4/mmap-anon.m4: Update.
6878         * gnulib/m4/multiarch.m4: Update.
6879         * gnulib/m4/onceonly.m4: Update.
6880         * gnulib/m4/stddef_h.m4: Update.
6881         * gnulib/m4/stdint.m4: Update.
6882         * gnulib/m4/string_h.m4: Update.
6883         * gnulib/m4/warn-on-use.m4: Update.
6884         * gnulib/m4/wchar_h.m4: Update.
6885         * gnulib/m4/wchar_t.m4: Update.
6886         * gnulib/m4/wint_t.m4: Update.
6887         * gnulib/memchr.c: Update.
6888         * gnulib/memmem.c: Update.
6889         * gnulib/stddef.in.h: Update.
6890         * gnulib/stdint.in.h: Update.
6891         * gnulib/str-two-way.h: Update.
6892         * gnulib/string.in.h: Update.
6893         * gnulib/wchar.in.h: Update.
6894
6895         * gnulib/extra/arg-nonnull.h: Delete.
6896         * gnulib/extra/c++defs.h: Delete.
6897         * gnulib/extra/warn-on-use.h: Delete.
6898         * gnulib/m4/wchar_h.m4: Delete.
6899         * gnulib/m4/wint_t.m4: Delete.
6900         * gnulib/wchar.in.h: Delete.
6901
6902         * gnulib/extra/snippets/arg-nonnull.h: New.
6903         * gnulib/extra/snippets/c++defs.h: New.
6904         * gnulib/extra/snippets/warn-on-use.h: New.
6905
6906         * aclocal.m4: Regenerate.
6907         * config.in: Regenerate.
6908         * configure: Regenerate.
6909         * gnulib/Makefile.in: Regenerate.
6910
6911 2012-04-18  Pedro Alves  <palves@redhat.com>
6912
6913         Reimport the update-copyright module from gnulib
6914         (250b80067c1e1d8faa0c42fb572f721975b929c5).
6915
6916         * configure: Regenerate.
6917         * gnulib/Makefile.am: Update.
6918         * gnulib/Makefile.in: Regenerate.
6919         * gnulib/extra/update-copyright: Update.
6920         * gnulib/m4/gnulib-cache.m4: Update.
6921         * gnulib/m4/gnulib-comp.m4: Update.
6922
6923 2012-04-18  Tristan Gingold  <gingold@adacore.com>
6924
6925         * configure.ac (aix): Put -lpthread into libs.
6926         * configure: Regenerate.
6927
6928 2012-04-18  Tom Tromey  <tromey@redhat.com>
6929
6930         * linespec.c (convert_linespec_to_sals): Don't use
6931         SYMBOL_OBJ_SECTION.
6932         (compare_msymbols): Arguments are minsym_and_objfile, not
6933         minimal_symbol*.  Don't use SYMBOL_OBJ_SECTION.
6934
6935 2012-04-18  Pedro Alves  <palves@redhat.com>
6936
6937         Revert gnulib/ part of:
6938         2011-01-01  Joel Brobecker  <brobecker@adacore.com>
6939         Copyright year update in most files (performed by copyright.sh).
6940
6941 2012-04-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
6942
6943         Fix 64-bit constants on 32-bit hosts.
6944         * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6945         from unsigned long to ULONGEST.
6946         (read_signed_leb128): Change declaration return type from long to
6947         LONGEST.
6948         (dwarf2_const_value_attr): Change declaration parameter value from long
6949         to LONGEST.
6950         (dwarf2_compute_name): Change variable value from long to LONGEST.
6951         (read_unsigned_leb128): Change return type, variable result and some
6952         casts from unsigned long to ULONGEST.
6953         (read_signed_leb128): Change return type, variable result and some
6954         casts from long to LONGEST.
6955         (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6956         value from long to LONGEST.
6957         (dwarf2_const_value): Change variable value from long to LONGEST.
6958         * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6959         plongest and hex_string.
6960         * symtab.h (struct general_symbol_info): Change ivalue from long to
6961         LONGEST, remove the comment.
6962         * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6963         Change SYMBOL_VALUE format strings to use plongest and hex_string.
6964
6965 2012-04-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
6966
6967         PR symtab/7259:
6968         * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6969         * ada-lang.c (ada_discrete_type_high_bound)
6970         (ada_discrete_type_low_bound): Fix function comment.  Use
6971         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6972         (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6973         (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6974         * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6975         Use TYPE_FIELD_ENUMVAL.
6976         * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6977         (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6978         * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6979         block, change it to LONGEST.  Use TYPE_FIELD_ENUMVAL for
6980         TYPE_CODE_ENUM.
6981         * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6982         * dwarf2read.c (process_enumeration_scope): Likewise.
6983         * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6984         field.bitpos.
6985         (class StructMainTypePrettyPrinter): Support also
6986         FIELD_LOC_KIND_ENUMVAL.
6987         * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6988         TYPE_CODE_ENUM.
6989         (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6990         (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6991         * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6992         (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment.  New
6993         field enumval.
6994         (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6995         accommodate enumval.
6996         (struct call_site): Adjust loc_kind to accommodate enumval.
6997         (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6998         (TYPE_FIELD_ENUMVAL): New macros.
6999         * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7000         * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7001         TYPE_CODE_ENUM.
7002         * p-typeprint.c (pascal_type_print_base): Likewise.
7003         * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7004         enumval.
7005         * python/lib/gdb/types.py (make_enum_dict): Likewise.
7006         * python/py-type.c (convert_field): New variable addrstring.  Use
7007         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7008         (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7009         * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7010         * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7011         TYPE_CODE_ENUM.
7012         * valprint.c (generic_val_print): Likewise.
7013
7014 2012-04-17  Doug Evans  <dje@google.com>
7015
7016         * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7017
7018         * dwarf2read.c: Whitespace fixes.
7019         (lookup_signatured_type): Tweak comment.
7020         (get_die_type_at_offset): Fix comment.
7021
7022 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
7023
7024         * xcoffread.c (xcoff_secnum_to_sections): New function.
7025         (secnum_to_section, secnum_to_bfd_section): Reimplement
7026         using xcoff_secnum_to_sections.  Rename "secnum" parameter
7027         into "n_scnum".
7028         (RECORD_MINIMAL_SYMBOL): Delete.
7029         (record_minimal_symbol): New function.
7030         (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7031         by call to record_minimal_symbol and set misc_func_recorded
7032         to 1.  Set last_csect_sec to the XCOFF section index instead
7033         of GDB's section_offset index.  Update calls to
7034         prim_record_minimal_symbol_and_info to pass the BFD section
7035         as well.
7036
7037 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
7038
7039         * xcoffread.c (read_xcoff_symtab): Delete variables
7040         last_csect_val and last_csect_sec and associated code.
7041
7042 2012-04-17  Doug Evans  <dje@google.com>
7043
7044         * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7045         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7046         * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7047         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7048
7049         * cleanups.h: New file.
7050         * cleanups.c: New file.
7051         * Makefile.in (SFILES): Add cleanups.c.
7052         (HFILES_NO_SRCDIR): Add cleanups.h.
7053         (COMMON_OBS): Add cleanups.o.
7054         * defs.h (struct cleanup): Moved to cleanups.h.
7055         (do_cleanups,do_final_cleanups): Ditto.
7056         (discard_cleanups,discard_final_cleanups): Ditto
7057         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7058         (save_cleanups,save_final_cleanups): Ditto.
7059         (restore_cleanups,restore_final_cleanups): Ditto.
7060         (null_cleanup): Ditto.
7061         (make_my_cleanup,make_my_cleanup2): Ditto.
7062         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7063         * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7064         (do_cleanups,do_final_cleanups): Ditto.
7065         (discard_cleanups,discard_final_cleanups): Ditto
7066         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7067         (save_cleanups,save_final_cleanups): Ditto.
7068         (restore_cleanups,restore_final_cleanups): Ditto.
7069         (null_cleanup): Ditto.
7070         (make_my_cleanup,make_my_cleanup2): Ditto.
7071         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7072
7073         * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7074         make_my_cleanup.
7075         (make_cleanup_dyn_string_delete): Ditto.
7076         (make_cleanup_ui_file_delete): Ditto.
7077         (make_cleanup_ui_out_redirect_pop): Ditto.
7078         (make_cleanup_free_section_addr_info): Ditto.
7079         (make_cleanup_restore_integer): Ditto.
7080         (make_cleanup_unpush_target): Ditto.
7081         (make_cleanup_value_free_to_mark): Ditto.
7082         (make_cleanup_value_free): Ditto.
7083         (make_cleanup_free_so): Ditto.
7084
7085 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7086
7087         New option "set debug auto-load".
7088         * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7089         * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7090         (auto_load_safe_path_vec_update)
7091         (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7092         if DEBUG_AUTO_LOAD.
7093         (file_is_auto_load_safe): New parameters debug_fmt and ....
7094         Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7095         (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7096         caller by explanatory string.
7097         (_initialize_auto_load): Register "set debug auto-load".
7098         * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7099         and ....
7100         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7101         (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7102         by explanatory string.
7103         * main.c (captured_main): Likewise.
7104         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7105         (source_section_scripts): Likewise.
7106
7107 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7108
7109         New option "set auto-load safe-path".
7110         * NEWS: New commands "set auto-load safe-path"
7111         and "show auto-load safe-path".
7112         * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7113         (auto_load_safe_path, auto_load_safe_path_vec)
7114         (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7115         (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7116         (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7117         (source_gdb_script_for_objfile): New variable is_safe.  Call
7118         file_is_auto_load_safe.  Return if it is not.
7119         (struct loaded_script): New field loaded.
7120         (maybe_add_script): Add parameter loaded.  Initialize SLOT with it.
7121         (print_script): Use LOADED indicator instead of FULL_PATH.  Change
7122         output "Missing" to "No".
7123         (_initialize_auto_load): New variable cmd.  Initialize
7124         auto_load_safe_path.  Register "set auto-load safe-path",
7125         "show auto-load safe-path" and "add-auto-load-safe-path".
7126         * auto-load.h (maybe_add_script): Add parameter loaded.
7127         (file_is_auto_load_safe): New declaration.
7128         * config.in: Regenerate.
7129         * configure: Regenerate.
7130         * configure.ac: New parameters --with-auto-load-safe-path
7131         and --without-auto-load-safe-path.
7132         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7133         (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7134         * main.c (captured_main): Check file_is_auto_load_safe for
7135         LOCAL_GDBINIT.
7136         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7137         variable is_safe.  Call file_is_auto_load_safe.  Return if it is not.
7138         (source_section_scripts): Call file_is_auto_load_safe.  Return if it is
7139         not.
7140
7141 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7142
7143         auto-load: Implementation.
7144         * NEWS: New descriptions for "info auto-load",
7145         "info auto-load gdb-scripts", "info auto-load python-scripts",
7146         "info auto-load local-gdbinit" and "info auto-load libthread-db".
7147         Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7148         and "show auto-load-scripts".  New description for "set auto-load",
7149         "show auto-load", "set auto-load gdb-scripts",
7150         "show auto-load gdb-scripts", "set auto-load python-scripts",
7151         "show auto-load python-scripts", "set auto-load local-gdbinit",
7152         "show auto-load local-gdbinit", "set auto-load libthread-db" and
7153         "show auto-load libthread-db".
7154         * auto-load.c: Remove include python/python-internal.h.  Add includes
7155         exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7156         cli/cli-setshow.h.
7157         (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7158         (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7159         (gdbpy_global_auto_load): Rename to ...
7160         (global_auto_load): ... here.
7161         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7162         (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7163         (script_language_gdb, source_gdb_script_for_objfile): New.
7164         (struct loaded_script): New field language.
7165         (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7166         LANGUAGE.
7167         (maybe_add_script): Add parameter language.  Drop redundant
7168         entry.full_path initialization.  Initialize entry.language and
7169         (*slot)->language.
7170         (auto_load_objfile_script): Change parameter suffix to language.
7171         Remove the call of maybe_add_script.
7172         Call language->source_script_for_objfile.
7173         (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7174         New.
7175         (collect_matching_scripts): Adjust it for
7176         struct collect_matching_scripts_data.
7177         (auto_load_info_scripts_pattern_nl): New variable.
7178         (info_auto_load_scripts): Rename to ...
7179         (auto_load_info_scripts): ... here, add parameter language.  Adjust it
7180         for struct collect_matching_scripts_data.
7181         (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7182         (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7183         (auto_load_show_cmdlist_get, info_auto_load_cmd)
7184         (auto_load_info_cmdlist_get): New.
7185         (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7186         python/py-auto-load.c.  New installment for "set auto-load gdb-scripts",
7187         "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7188         "info auto-load local-gdbinit".
7189         * auto-load.h (struct script_language): New.
7190         (gdbpy_global_auto_load): Rename to ...
7191         (global_auto_load): ... here.
7192         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7193         (auto_load_local_gdbinit_loaded): New declarations.
7194         (maybe_add_script): New parameter language.
7195         (auto_load_objfile_script): Change parameter suffix to language.
7196         (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7197         (auto_load_info_scripts, auto_load_set_cmdlist_get)
7198         (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7199         declarations.
7200         * linux-thread-db.c: Include auto-load.h and ctype.h.
7201         (auto_load_thread_db, show_auto_load_thread_db): New.
7202         (struct thread_db_info): New field filename.
7203         (delete_thread_db_info): Call xfree for FILENAME.
7204         (try_thread_db_load): Initialize FILENAME.
7205         (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7206         if !AUTO_LOAD_THREAD_DB.
7207         (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7208         (_initialize_thread_db): Install auto_load_thread_db
7209         as "set auto-load libthread-db" and install info_auto_load_libthread_db
7210         as "info auto-load libthread-db".
7211         * main.c (captured_main): Rename gdbpy_global_auto_load to
7212         global_auto_load.  Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7213         AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7214         (print_gdb_help): Extend the help for 'local init file'.
7215         * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7216         (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7217         (auto_load_scripts): Rename to ...
7218         (auto_load_python_scripts): ... here, update the comment.
7219         (gdbpy_load_auto_script_for_objfile): New declaration.
7220         (show_auto_load_python_scripts, script_language_python)
7221         (gdbpy_load_auto_script_for_objfile): New.
7222         (source_section_scripts): Refactor the code.
7223         (load_auto_scripts_for_objfile): Rename to ...
7224         (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7225         auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7226         (info_auto_load_python_scripts): New.
7227         (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7228         Rename "set auto-load-scripts" to "set auto-load python-scripts".
7229         Register "set auto-load-scripts" as its deprecated alias.  Register
7230         "info auto-load python-scripts".  Register "info auto-load-scripts" as
7231         its deprecated alias.
7232         (load_auto_scripts_for_objfile): Rename to ...
7233         (gdbpy_load_auto_scripts_for_objfile): ... here.
7234         * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7235         (gdbpy_load_auto_scripts_for_objfile): ... here.
7236
7237 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7238
7239         auto-load: Move files.
7240         * Makefile.in (SFILES): Add auto-load.c.
7241         (HFILES_NO_SRCDIR): Add auto-load.h.
7242         (COMMON_OBS): Add auto-load.o.
7243         (distclean): Change .gdbinit for gdb-gdb.gdb.
7244         * auto-load.c: New file, with parts from python/py-auto-load.c.
7245         * auto-load.h: New file, with parts from python/python.h.
7246         * configure: Regenerate.
7247         * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7248         * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7249         * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7250         * main.c: Include auto-load.h.
7251         * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7252         command.h, observer.h and progspace.h to auto-load.c.  Add include
7253         auto-load.h.
7254         (gdbpy_global_auto_load, struct auto_load_pspace_info)
7255         (struct loaded_script, auto_load_pspace_data)
7256         (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7257         (hash_loaded_script_entry, eq_loaded_script_entry)
7258         (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7259         (maybe_add_script): Move to auto-load.c.
7260         (source_section_scripts): Change maybe_add_script parameters passing,
7261         use script_not_found_warning_print.
7262         (clear_section_scripts, auto_load_objfile_script)
7263         (auto_load_new_objfile, loaded_script_ptr)
7264         (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7265         (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7266         (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7267         auto_load_new_objfile and info_auto_load_scripts initizations to
7268         auto-load.c.
7269         * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7270
7271 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7272
7273         Code cleanup.
7274         * charset.c (find_charset_names): Remove variables ix and elt.
7275         Use free_char_ptr_vec.
7276         * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7277         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
7278         debugdir_end.  New variable debugdir_len.
7279         * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7280         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7281         declarations.
7282         * progspace.c (clear_program_space_solib_cache): Remove variables ix
7283         and elt.  Use free_char_ptr_vec.
7284         * source.c (add_path): Remove variables argv, arg and argv_index.
7285         New variables dir_vec, back_to, ix and name.
7286         Use dirnames_to_char_ptr_vec_append.  Use freeargv instead of
7287         make_cleanup_freeargv.  Remove variable separator.  Simplify the code
7288         no longer expecting DIRNAME_SEPARATOR.
7289         (openp): Remove variable p, p1 and len.  New variables dir_vec,
7290         back_to, ix and dir.  Use dirnames_to_char_ptr_vec.  Simplify the code
7291         no longer expecting DIRNAME_SEPARATOR.
7292         * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7293         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
7294         debugdir_end.
7295         * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7296         (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7297         (dirnames_to_char_ptr_vec): New functions.
7298
7299 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7300
7301         Code cleanup.
7302         * source.c (add_path): Remove always true conditional 'p == 0' and
7303         unindent its code block.
7304
7305 2012-04-17  Pedro Alves  <palves@redhat.com>
7306
7307         * gdbtypes.h (FIELD_BITPOS): Rename to ...
7308         (FIELD_BITPOS_LVAL): ... this.
7309         (FIELD_BITPOS): New.
7310         (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7311         * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7312         * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7313         SET_FIELD_BITPOS.
7314         * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7315         SET_FIELD_BITPOS.
7316         * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7317         (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7318         * target-descriptions.c (tdesc_gdb_type): Adjust to use
7319         SET_FIELD_BITPOS.
7320
7321 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7322
7323         Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7324         * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7325         TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7326         * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7327         * jv-lang.c (java_link_class_type): Likewise, once.
7328         * stabsread.c (read_enum_type): Likewise.
7329
7330 2012-04-16  Yao Qi  <yao@codesourcery.com>
7331
7332         * common/agent.c (agent_run_command): Add one more parameter `len'.
7333         Update callers.
7334         * common/agent.h: Update declaration.
7335         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7336         Update.
7337         (linux_child_static_tracepoint_markers_by_strid): Ditto.
7338
7339 2012-04-14  Anton Gorenkov <xgsa@yandex.ru>
7340
7341         PR mi/13393
7342         * value.c (value_actual_type): New function.
7343         * value.h (value_actual_type): New declaration.
7344         * varobj.c (update_type_if_necessary): New function.
7345         (varobj_create): Call value_actual_type instead of
7346         value_type.
7347         (install_dynamic_child): distinct changed and type changed MI variable
7348         objects.
7349         (update_dynamic_varobj_children): Updated for install_dynamic_child
7350         change.  All callers updated.
7351         (varobj_update): Support for MI variable object type change if
7352         the value changed and RTTI is used to determine the type.
7353         (create_child_with_value): Call value_actual_type instead of
7354         value_type.
7355         (adjust_value_for_child_access): Extended with a new parameter which
7356         specify whether the given value should be casted to enclosing type.
7357         All callers updated.
7358
7359 2012-04-14  Yao Qi  <yao@codesourcery.com>
7360
7361         Import gnulib module inttypes from git
7362         (250b80067c1e1d8faa0c42fb572f721975b929c5)
7363         * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7364         (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7365         gnulib/m4/inttypes-pri.m4
7366         * aclocal.m4, config.in, configure: Regenerated.
7367         * gnulib/Makefile.am: Update.
7368         * gnulib/Makefile.in: Update.
7369         * gnulib/m4/gnulib-cache.m4: Update.
7370         * gnulib/m4/gnulib-comp.m4: Update.
7371         * gnulib/inttypes.in.h: New.
7372         * gnulib/m4/inttypes-pri.m4: New.
7373         * gnulib/m4/inttypes.m4: New.
7374
7375 2012-04-13  Luis Machado  <lgustavo@codesourcery.com>
7376
7377         * infrun.c (resume): Update PC address to the real PC after
7378         preparing to do displaced stepping.
7379
7380 2012-04-12  Doug Evans  <dje@google.com>
7381
7382         * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7383         All callers updated.
7384
7385 2012-04-12  Mark Kettenis  <kettenis@gnu.org>
7386
7387         * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7388
7389 2012-04-12  Doug Evans  <dje@google.com>
7390
7391         * dwarf2read.c (create_all_type_units): Renamed from
7392         create_debug_types_hash_table.  All callers updated.
7393
7394         * dwarf2read.c (create_signatured_type_table_from_index): Rename
7395         local type_sig to sig_type, type_offset to type_offset_in_tu.
7396         (hash_signatured_type): Renamed from hash_type_signature,
7397         all callers updated.
7398         (eq_signatured_type): Renamed from eq_type_signature,
7399         all callers updated.
7400         (create_debug_types_hash_table): Rename local type_sig to sig_type.
7401         (process_enumeration_scope): Ditto.
7402         (lookup_signatured_type_at_offset): Ditto.
7403         (load_full_type_unit, read_signatured_type): Ditto.
7404
7405 2012-04-12  Yao Qi  <yao@codesourcery.com>
7406
7407         * remote.c (async_remote_interrupt): Correct function name in
7408         debug message.
7409         (async_remote_interrupt_twice): Ditto.
7410
7411 2012-04-11  Yuanhui Zhang  <asmwarrior@gmail.com>
7412
7413         * source.c (find_and_open_source): Consistently pass resulting
7414         full path through xfullpath.
7415
7416 2012-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7417
7418         Provide more specific displaced-stepping memory error message.
7419         * infrun.c (displaced_step_prepare): New variable status.  Call
7420         target_read_memory instead of read_memory, provide more specific
7421         error message.
7422
7423 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7424
7425         PR gdb/13901
7426         * darwin-nat.c (darwin_execvp): Revert previous patch.
7427
7428 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7429
7430         PR gdb/13901
7431         * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7432         in case of change.
7433
7434 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7435
7436         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7437         warning.
7438
7439 2012-04-11  Siva Chandra Reddy  <sivachandra@google.com>
7440
7441         New command 'explore' which helps explore values and types in
7442         scope.
7443         * NEWS: Add an entry about the new 'explore' command.
7444         * data-directory/Makefile.in: Add gdb/command/explore.py
7445         * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7446         command using the GDB Python API.
7447
7448 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
7449
7450         * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7451         extension in jump target calculation.
7452
7453 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
7454
7455         * mips-tdep.c (mips32_next_pc): Handle JALX.
7456
7457 2012-04-10  Yao Qi  <yao@codesourcery.com>
7458
7459         * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7460
7461 2012-04-10  Yao Qi  <yao@codesourcery.com>
7462
7463         * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7464         and gnulib/m4/gnulib-tool.m4.
7465
7466 2012-04-10  Doug Evans  <dje@google.com>
7467
7468         * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7469         (load_partial_dies): Clarify comment.
7470         (find_partial_die): Support rereading type units.
7471         Clarify CU handling, if we know offset is in CU, don't search for the
7472         containing CU.  Add comment regarding memory waste.
7473
7474 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7475
7476         * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7477         i386/x32-avx and i386/x32-avx-linux.
7478         (i386/x32-expedite): New.
7479         (i386/x32-linux-expedite): Likewise.
7480         (i386/x32-avx-expedite): Likewise.
7481         (i386/x32-avx-linux-expedite): Likewise.
7482         ($(outdir)/i386/x32.dat): Likewise.
7483         ($(outdir)/i386/x32-linux.dat): Likewise.
7484         ($(outdir)/i386/x32-avx.dat): Likewise.
7485         ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7486
7487         * features/i386/x32-avx-linux.xml: New file.
7488         * features/i386/x32-avx.xml: Likewise.
7489         * features/i386/x32-core.xml: Likewise.
7490         * features/i386/x32-linux.xml: Likewise.
7491         * features/i386/x32.xml: Likewise.
7492
7493         * features/i386/x32-avx-linux.c: New.  Generated.
7494         * features/i386/x32-avx.c: Likewise.
7495         * features/i386/x32-linux.c: Likewise.
7496         * features/i386/x32.c: Likewise.
7497         * regformats/i386/x32-avx-linux.dat: Likewise.
7498         * regformats/i386/x32-avx.dat: Likewise.
7499         * regformats/i386/x32-linux.dat: Likewise.
7500         * regformats/i386/x32.dat: Likewise.
7501
7502 2012-04-10  Tristan Gingold  <gingold@adacore.com>
7503
7504         * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7505         code to kill the inferior.
7506
7507 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
7508
7509         * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7510         defines.
7511         * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7512         defines.
7513         * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7514         (yyvsp): New defines.
7515         * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7516         defines.
7517         * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7518         defines.
7519         * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7520         defines.
7521         * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7522         defines.
7523         * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7524         defines.
7525
7526 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
7527
7528         * sparc64-tdep.c (sparc64_store_arguments)
7529         (sparc64_store_arguments): Fix coding style.
7530
7531 2012-04-07  Mark Kettenis  <kettenis@gnu.org>
7532
7533         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7534         complex floats, adjust some related comments and tighten a related
7535         assertion.
7536         (sparc64_extract_return_value): Handle complex floats.
7537
7538 2012-04-07  Doug Evans  <dje@google.com>
7539
7540         * dwarf2read.c (load_partial_dies): Change condition to assert.
7541
7542 2012-04-06  Doug Evans  <dje@google.com>
7543
7544         * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7545         "mov %rsp,%rbp".
7546
7547 2012-04-05  Kevin Buettner  <kevinb@redhat.com>
7548
7549         * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7550         fencepost error.
7551         (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7552         (v850_gdbarch_init): Set `num_regs' as appropriate for the
7553         architecture.
7554
7555 2012-04-05  Keith Seitz  <keiths@redhat.com>
7556
7557         * linespec.c (decode_compound): Remove.
7558         (enum offset_relative_sign): New enum.
7559         (struct line_offset): New struct.
7560         (struct linespec): New struct.
7561         (struct linespec_state): Move file_symtabs,
7562         user_filename, and user_function into struct linespec.
7563         Make result an anonymous struct holding vectors of
7564         symbolp and minsym_and_objfile_d.
7565         Add language member.
7566         (enum ls_token_type): New enum.
7567         (linespec_keywords): New array.
7568         (struct ls_token): New struct.
7569         (struct ls_parser): New struct.
7570         (linespec_lexer_lex_number): New function.
7571         (linespec_lexer_lex_keyword): New function.
7572         (is_ada_operator): New function.
7573         (skip_quote_char): New function.
7574         (copy_token_string): New function.
7575         (is_closing_quote_enclosed): New function.
7576         (find_parameter_list_end): New function.
7577         (linespec_lexer_lex_string): New function.
7578         (linespec_lexer_lex_one): New function.
7579         (linespec_lexer_consume_token): New function.
7580         (linespec_lexer_peek_token): New function.
7581         (cplusplus_error): Remove unused function.
7582         (find_methods): Update comment.
7583         (find_toplevel_char): Return const.
7584         (is_objc_method_format): Remove unused function.
7585         (find_toplevel_string): New function.
7586         (is_linespec_boundary): Remove.
7587         (symbol_not_found_error): New function.
7588         (find_method_overload_end): Remove function.
7589         (unexpected_linespec_error): New function.
7590         (keep_name_info): Remove.
7591         (linespec_parse_line_offset): New function.
7592         (linespec_parse_basic): New function.
7593         (canonicalize_linespec): New function.
7594         (decode_line_internal): Remove.
7595         (create_sals_line_offset): New function adapted from
7596         decode_all_digits.
7597         (convert_linespec_to_sals): New function.
7598         (parse_linespec): New function.
7599         (linespec_parser_new): New function.
7600         (linespec_state_destructor): Change parameter type to
7601         struct linespec_state *.
7602         Add language parameter.
7603         Remove freeing of moved members.
7604         (linespec_parser_delete): New function.
7605         (decode_line_full): Use parse_linespec and linespec_parser_new.
7606         (decode_line_1): Likewise.
7607         (decode_indirect): Rename to ...
7608         (linespec_expression_to_pc): ... this and rewrite
7609         to simply find CORE_ADDR, storing this result for later
7610         conversion to SALs.
7611         (locate_first_half): Remove.
7612         (deocde_objc): Add parameter LS.
7613         Initialize new struct collect_info members.
7614         Handle minimal symbols, too.
7615         (decode_compound): Delete.
7616         (lookup_prefix_sym): Rewrite.
7617         (compare_msymbols): New function.
7618         (find_method): Rewrite.
7619         Do not call cplusplus_error.
7620         (symtabs_from_filename): Rewrite.
7621         (collect_function_symbols): Delete.
7622         (find_function_symbols): Rewrite without ARGPTR-style
7623         processing.
7624         (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7625         (decode_dollar): Adapted and renamed to ...
7626         (linespec_parse_variable): ... this.
7627         (find_linespec_symbols): New function.
7628         (decode_label): Adapted and renamed to ...
7629         (find_label_symbols): ... this.
7630         (decode_digits_list_mode): Add and use LS argument.
7631         (decode_digits_ordinary): Likewise.
7632         (collect_symbols): Do not collect SALs, just symbols and msymbols.
7633         If in list mode, allow any symbol class.  Otherwise, only
7634         permit LOC_BLOCK symbols.
7635         (minsym_found): Update comments.
7636         (search_minsyms_for_name): Do not convert the matching symbol
7637         into a SAL.  Simply push the symbol and objfile into the
7638         result vector.
7639         (decode_variable): Delete. Contents adapted into
7640         find_linespec_symbols.
7641
7642         * cp-support.c (SKIP_SPACE): Remove.
7643         (operator_tokens): Remove unused global.
7644         (cp_validate_operator): Remove.
7645         * cp-support.h (cp_validate_operator): Remove declaration.
7646
7647 2012-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7648
7649         * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7650         for TYPE_VPTR_FIELDNO.
7651         * valprint.c (valprint_check_validity): Make it global, move the
7652         function comment ...
7653         * value.h (valprint_check_validity): ... to this new declaration.
7654
7655 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7656
7657         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7658         the STATE32 api for i386 state.
7659         (i386_darwin_store_inferior_registers): Likewise.
7660
7661 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7662
7663         * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7664         SS offset.
7665         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7666         format_string.
7667
7668 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7669
7670         PR gdb/13901
7671         * darwin-nat.c (darwin_execvp): Set binary preference.
7672
7673 2012-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7674
7675         * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7676
7677 2012-03-30  Tom Tromey  <tromey@redhat.com>
7678
7679         * python/python.c (gdbpy_decode_line): Move cleanup creation out
7680         of TRY_CATCH.  Fix error handling.
7681         * python/py-value.c (convert_value_from_python): Move 'old'
7682         declaration to innermost scope.
7683
7684 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7685             Andrey Smirnov  <andrew.smirnov@gmail.com>
7686
7687         -Wshadow warning fix.
7688         * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7689         "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7690         Adjust code accordingly.
7691
7692 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7693
7694         * ada-lang.c (symbol_completion_add): Rename parameter
7695         "encoded" into "encoded_p".  Ajust code and documentation
7696         accordingly.
7697
7698 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7699             Andrey Smirnov  <andrew.smirnov@gmail.com>
7700
7701         -Wshadow warning fix.
7702         * ada-lang.c (symbol_completion_add): Rename parameter
7703         "wild_match" into wild_match_p.  Update code and documentation
7704         accordingly.
7705
7706 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7707
7708         * ada-lang.c (symbol_completion_match): Rename parameter
7709         "encoded" into "encoded_p".  Ajust code and documentation
7710         accordingly.
7711
7712 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7713             Andrey Smirnov  <andrew.smirnov@gmail.com>
7714
7715         -Wshadow warning fix.
7716         * ada-lang.c (symbol_completion_match): Rename parameter
7717         "wild_match" into "wild_match_p".  Adjust code and function
7718         documentation accordingly.
7719
7720 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7721             Andrey Smirnov  <andrew.smirnov@gmail.com>
7722
7723         -Wshadow warning fix.
7724         * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7725         "symbol_info" into "info".  Adjust code accordingly.
7726         (ada_lookup_symbol): Likewise.
7727
7728 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7729
7730         * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7731         of this function's documentation.
7732
7733 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7734             Andrey Smirnov  <andrew.smirnov@gmail.com>
7735
7736         -Wshadow warning fix.
7737         * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7738         variable into "wild_match_p".  Adjust code accordingly.
7739
7740 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7741             Andrey Smirnov  <andrew.smirnov@gmail.com>
7742
7743         -Wshadow warning fix.
7744         * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7745         parameter into "wild_match_p".  Adjust code accordingly.
7746         Document this parameter in the function description.
7747
7748 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7749             Andrey Smirnov  <andrew.smirnov@gmail.com>
7750
7751         -Wshadow warning fix.
7752         * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7753         "wild_match" parameter to "wild_match_p" (-Wshadow).
7754
7755 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7756
7757         * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7758         in function documentation.
7759
7760 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7761             Andrey Smirnov  <andrew.smirnov@gmail.com>
7762
7763         -Wshadow warning fix.
7764         * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7765         variable into wild_match_p.  Adjust code accordingly.
7766
7767 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7768             Andrey Smirnov  <andrew.smirnov@gmail.com>
7769
7770         * ada-valprint.c (ada_val_print_1): Move the code handling
7771         TYPE_CODE_ENUM inside its own lexical block.  Declare
7772         variables len and val there, instead of in the function's
7773         top level block.  Avoid declaring deref_val again in a way
7774         that shadows another variable of the same name declared
7775         in one of the up-level blocks.  Just re-use the up-level
7776         variable instead.
7777
7778 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7779
7780         * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7781         Replace block_found argument by symbol_info.  Adjust
7782         implementation accordingly.  Add function documentation.
7783         (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7784         Fix documentation.
7785         * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7786         * ada-exp.y (write_object_renaming): Adjust to new
7787         ada_lookup_encoded_symbol API.
7788
7789 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7790
7791         * ada-lang.h (struct ada_symbol_info): Reformat.  Improve
7792         documentation.
7793
7794 2012-03-28  Rathish C  <rathish.c@kpitcummins.com>
7795
7796         * v850-tdep.c: Add the enum values for mpu and fpu registers.
7797         (v850_register_name): Add the mpu and fpu register names.
7798         (v850e_register_name): Add the mpu and fpu register names.
7799         (v850e2_register_name): New function.
7800         (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7801         bfd_mach_v850e2v3.
7802
7803 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7804
7805         * NEWS: Add entry for Ada varobj support.
7806
7807 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7808
7809         * varobj.c (default_value_is_changeable_p): New function,
7810         extracted from varobj_value_is_changeable_p.  Add declaration.
7811         (ada_value_is_changeable_p): New function, extracted from
7812         varobj_value_is_changeable_p.  Add declaration.
7813         (struct language_specific): New field "value_is_changeable_p".
7814         (languages): Add entries for new field.
7815         (varobj_create): Set language before calling install_new_value.
7816         (varobj_value_is_changeable_p): Reimplement to call the varobj's
7817         "value_is_changeable_p" language callback.
7818
7819 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7820
7821         * ada-varobj.h, ada-varobj.c: New files.
7822         * Makefile.in (SFILES): Add ada-varobj.c.
7823         (HFILES_NO_SRCDIR): Add ada-varobj.h.
7824         (COMMON_OBS): Add ada-varobj.o.
7825
7826 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7827
7828         * varobj.c (ada_value_has_mutated): Add declaration.  New function.
7829         (struct language_specific): New field "value_has_mutated".
7830         (languages): Set field "value_has_mutated" in each entry of array.
7831         (varobj_value_has_mutated): New function.
7832         (varobj_udpdate): Add handling of type mutation.
7833         (value_of_root): Add handling of type mutation.
7834         (ada_value_has_mutated): New function.
7835
7836 2012-03-28  Pedro Alves  <palves@redhat.com>
7837
7838         * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7839         Always supply $fr0 as 0.0 and $fr1 as 1.0.
7840
7841 2012-03-28  Tom Tromey  <tromey@redhat.com>
7842
7843         * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7844         explicitly free 'buffer' on exit paths.  Decref 'membuf_object'
7845         before returning.
7846
7847 2012-03-28  Tom Tromey  <tromey@redhat.com>
7848
7849         * .dir-locals.el: New file.
7850
7851 2012-03-28  Pedro Alves  <palves@redhat.com>
7852
7853         * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7854
7855 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7856
7857         * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7858         handling for r0.
7859
7860 2012-03-27  Pedro Alves  <palves@redhat.com>
7861
7862         Eliminate struct ui_stream.
7863
7864         * ui-out.h (struct ui_stream): Delete.
7865         (ui_out_field_stream): Adjust prototype.
7866         (ui_out_stream_new, ui_out_stream_delete)
7867         (make_cleanup_ui_out_stream_delete): Delete declarations.
7868         * ui-out.c (ui_out_field_stream): Change prototype to take a
7869         ui_file instead of a ui_stream.  Adjust.
7870         (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7871         (make_cleanup_ui_out_stream_delete): Delete.
7872         * breakpoint.c (print_breakpoint_location)
7873         (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7874         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7875         * disasm.c (dump_insns): Ditto.
7876         (do_mixed_source_and_assembly, do_assembly_only): Adjust
7877         prototype.
7878         (gdb_disassembly): Use ui_file/mem_fileopen instead of
7879         ui_stream/ui_out_stream_new.
7880         * infcmd.c (print_return_value): Ditto.
7881         * osdata.c (info_osdata_command): Don't allocate a local
7882         ui_stream.
7883         * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7884         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7885         * tracepoint.c (print_one_static_tracepoint_marker): Don't
7886         allocate a local ui_stream.
7887         * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7888         instead of ui_stream/ui_out_stream_new.
7889         (list_args_or_locals): Don't allocate a local ui_stream.
7890         * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7891         (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7892         ui_stream/ui_out_stream_new.
7893         * cli/cli-setshow.c (do_setshow_command): Ditto.
7894
7895 2012-03-27  Oza Pawandeep  <oza.pawandeep@gmail.com>
7896
7897         * arm-linux-tdep.c (arm_linux_init_abi): Call
7898         set_gdbarch_process_record.  Initialize `arm_swi_record' field.
7899         * arm-tdep.c (arm_process_record): New function.
7900         (deallocate_reg_mem): New function.
7901         (decode_insn): New function.
7902         (thumb_record_branch): New function.
7903         (thumb_record_ldm_stm_swi(): New function.
7904         (thumb_record_misc): New function.
7905         (thumb_record_ld_st_stack): New function.
7906         (thumb_record_ld_st_imm_offset): New function.
7907         (thumb_record_ld_st_reg_offset(): New function.
7908         (thumb_record_add_sub_cmp_mov): New function.
7909         (thumb_record_shift_add_sub): New function.
7910         (arm_record_coproc_data_proc): New function.
7911         (arm_record_coproc): New function.
7912         (arm_record_b_bl): New function.
7913         (arm_record_ld_st_multiple): New function.
7914         (arm_record_ld_st_reg_offset): New function.
7915         (arm_record_ld_st_imm_offset): New function.
7916         (arm_record_data_proc_imm): New function.
7917         (arm_record_data_proc_misc_ld_str): New function.
7918         (arm_record_extension_space): New function.
7919         (arm_record_strx): New function.
7920         (sbo_sbz): New function.
7921         (struct insn_decode_record): New structure for arm insn record.
7922         (REG_ALLOC): New macro for reg allocations.
7923         (MEM_ALLOC): New macro for memory allocations.
7924         * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7925
7926 2012-03-27  Andreas Schwab  <schwab@linux-m68k.org>
7927
7928         * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7929         (store_register): Likewise.
7930
7931 2012-03-26  Oza Pawandeep  <oza.pawandeep@gmail.com>
7932
7933         * MAINTAINERS (Write After Approval): Add myself to the list.
7934
7935 2012-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7936
7937         * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7938         Describe also the option "auto".
7939
7940 2012-03-22  Richard Henderson  <rth@redhat.com>
7941
7942         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7943         * sparc-nat.c (sparc_xfer_wcookie): Make static.
7944
7945 2012-03-22  Richard Henderson  <rth@redhat.com>
7946
7947         * jit.c (jit_read_code_entry): Compute alignment and offset of
7948         int64_t member before computing entry_size.
7949
7950 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
7951
7952         Python scripting: Add new method Value.referenced_value to
7953         gdb.Value which can dereference pointer as well as reference
7954         values.
7955         * NEWS: Add entry under 'Python scripting' about the new method
7956         Value.referenced_value on gdb.Value objects.
7957         * python/py-value.c (valpy_referenced_value): New function
7958         defining a new method on gdb.Value objects which can dereference
7959         pointer and reference values.
7960
7961 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
7962
7963         * MAINTAINERS (Write After Approval): Add myself to the list.
7964
7965 2012-03-21  Kevin Buettner  <kevinb@redhat.com>
7966
7967         * symtab.c (skip_prologue_sal): Change test to check for "main()"
7968         in addition to "main".
7969
7970 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
7971
7972         * expression.h (op_name): Add declaration.
7973         * expprint.c (op_name): Remove declaration.  Make non-static.
7974         * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7975
7976 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
7977
7978         * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7979         of struct siginfo.
7980         * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7981         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7982         * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7983         (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7984         (linux_nat_get_siginfo): Likewise.
7985         * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7986         (linux_nat_get_siginfo): Likewise.
7987         * linux-tdep.c (linux_get_siginfo_type): Likewise.
7988         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7989         * procfs.c (gdb_siginfo_t): Likewise.
7990
7991 2012-03-21  Mike Frysinger  <vapier@gentoo.org>
7992
7993         * .gitignore: Ignore more files.
7994
7995 2012-03-20  Pedro Alves  <palves@redhat.com>
7996
7997         * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7998         returns.
7999
8000 2012-03-20  Yao Qi  <yao@codesourcery.com>
8001
8002         * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8003         comment.
8004
8005 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8006
8007         Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8008         * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8009         (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8010         sect_offset.
8011         * dwarf2expr.h (cu_offset, sect_offset): New types.
8012         (struct dwarf_expr_context_funcs) <dwarf_call>
8013         (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8014         sect_offset.
8015         (struct dwarf_expr_context) <len>: Improve the comment.
8016         (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8017         cu_offset and sect_offset.
8018         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8019         (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8020         (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8021         * dwarf2loc.h: Include dwarf2expr.h.
8022         (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8023         and sect_offset.
8024         * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8025         Improve the comment.
8026         (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8027         (struct signatured_type, struct line_header, struct partial_die_info)
8028         (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8029         (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8030         (get_die_type_at_offset, create_cus_from_index)
8031         (create_signatured_type_table_from_index, dw2_get_file_names)
8032         (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8033         (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8034         (create_debug_types_hash_table, process_psymtab_comp_unit)
8035         (load_partial_comp_unit, create_all_comp_units)
8036         (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8037         (load_full_comp_unit, dwarf2_physname, read_import_statement)
8038         (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8039         (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8040         (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8041         (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8042         (find_partial_die, read_attribute_value, lookup_die_type)
8043         (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8044         (is_ref_attr): New function comment.
8045         (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8046         Use cu_offset and sect_offset.
8047         (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8048         (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8049         (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8050         (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8051         (offset_and_type_hash, offset_and_type_eq, set_die_type)
8052         (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8053         (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8054         sect_offset.
8055
8056 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8057
8058         Code cleanup.
8059         * python/py-auto-load.c (source_section_scripts): New variable back_to.
8060         Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8061         with xfree.
8062         (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8063
8064 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8065
8066         * NEWS: Describe new options --init-command=FILE, -ix and
8067         --init-eval-command=COMMAND, -iex.
8068         * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8069         CMDARG_INIT_COMMAND.
8070         (captured_main): New enum items OPT_IX and OPT_IEX.  Add
8071         "init-command", "init-eval-command", "ix" and "iex" to the variable
8072         long_options.  Handle OPT_IX and OPT_IEX.  Process them from CMDARG_VEC.
8073         New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8074         (print_gdb_help): Describe --init-command=FILE, -ix and
8075         --init-eval-command=COMMAND, -iex.
8076
8077 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8078
8079         Code cleanup.
8080         * main.c (struct cmdarg): Move it here from main.  Add more comments.
8081         (cmdarg_s, VEC (cmdarg_s)): New.
8082         (main): Move struct cmdarg from here.  New variables cmdarg_vec and
8083         cmdarg_p.  Remove variables cmdsize and ncmd and their initialization.
8084         Install cleanup for cmdarg_vec.  Update filling for options 'x' and
8085         'X'.  Replace cmdarg processing by cmdarg_vec processing.  Remove xfree
8086         of CMDARG.
8087
8088 2012-03-19  Tom Tromey  <tromey@redhat.com>
8089
8090         * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8091
8092 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8093
8094         PR symtab/13777
8095         * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8096         GCC >=4.5.
8097
8098 2012-03-16  Chris January  <chris.january@allinea.com>
8099
8100         * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8101         of clear.
8102
8103 2012-03-16  Chris January  <chris.january@allinea.com>
8104
8105         * source.c (add_path): Use memmove instead of strcpy because the
8106         strings overlap.
8107
8108 2012-03-16  Joel Brobecker  <brobecker@adacore.com>
8109
8110         * value.h (set_value_parent): Add declaration.
8111         * value.c (set_value_parent): New function.
8112         (value_address): If VALUE->PARENT is not NULL, then use it as
8113         the base address instead of VALUE->LOCATION.address.
8114         * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8115         the same as OBJ's address.  Adjust V's offset accordingly.
8116         Set V's parent.
8117
8118 2012-03-16  Gary Benson  <gbenson@redhat.com>
8119
8120         PR breakpoints/10738
8121         * dwarf2read.c (use_deprecated_index_sections): New global.
8122         (struct partial_die_info): New member may_be_inlined.
8123         (read_partial_die): Set may_be_inlined where appropriate.
8124         (add_partial_subprogram): Add partial symbols for partial
8125         DIEs that may be inlined.
8126         (new_symbol_full): Add inlined subroutines to the current
8127         scope.
8128         (write_psymtabs_to_index): Bump version number.
8129         (dwarf2_read_index): Read only version 6 indices unless
8130         use_deprecated_index_sections is set.
8131         * linespec.c (symbol_and_data_callback): New structure.
8132         (iterate_inline_only): New function.
8133         (iterate_over_all_matching_symtabs): New argument
8134         "include_inline".  If nonzero, also call the callback for
8135         symbols representing inlined subroutines.
8136         (lookup_prefix_sym): Pass extra argument to the above.
8137         (find_function_symbols): Likewise.
8138         (add_matching_symbols_to_info): Likewise.
8139         * NEWS: Mention that GDB can now set breakpoints on inlined
8140         functions.
8141
8142 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
8143
8144         * p-typeprint.c (pascal_type_print_method_args):
8145         Fix display of parameter of methods.
8146
8147 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
8148
8149         * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8150         Add missing prototype.
8151
8152 2012-03-16  Yao Qi  <yao@codesourcery.com>
8153             Jan Kratochvil  <jan.kratochvil@redhat.com>
8154
8155         Fix false compilation warning.
8156         * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8157
8158 2012-03-15  Jonathan Larmour  <jifl@eCosCentric.com>
8159             Pedro Alves  <pedro@codesourcery.com>
8160
8161         * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8162         (arm_register_g_packet_guesses): New function.
8163         (arm_gdbarch_init): Don't force a target description with
8164         registers when the executable is detected as M-profile.  Instead
8165         set gdbarch->tdep->is_m.  Register `g' packet guesses.
8166         (_initialize_arm_tdep): Initialize the new target description.
8167         * features/arm-with-m-fpa-layout.xml: New description.
8168         * features/arm-with-m-fpa-layout.c: New, generated.
8169
8170 2012-03-15  Joel Brobecker  <brobecker@adacore.com>
8171
8172         * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8173         Update function description.
8174         (insert_bp_location): Do not wipe bl->target_info out.
8175         * mem-break.c: #include "gdb_string.h".
8176         (default_memory_insert_breakpoint): Do not call target_read_memory
8177         with a pointer to the breakpoint's shadow_contents buffer.  Use
8178         a local buffer instead.
8179         * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8180
8181 2012-03-15  Tom Tromey  <tromey@redhat.com>
8182
8183         * NEWS: Mention "info vtbl", not "info vtable".
8184         * cp-support.c (info_vtbl_command): Fix comment.
8185         (_initialize_cp_support): Fix text.
8186
8187 2012-03-15  Tom Tromey  <tromey@redhat.com>
8188
8189         * cp-valprint.c (cp_print_value_fields): Use
8190         print_function_pointer_address for vtable slot.
8191
8192 2012-03-15  Tom Tromey  <tromey@redhat.com>
8193
8194         * gnu-v3-abi.c (struct value_and_voffset): New.
8195         (hash_value_and_voffset, eq_value_and_voffset)
8196         (compare_value_and_voffset, compute_vtable_size)
8197         (print_one_vtable, gnuv3_print_vtable): New functions.
8198         (init_gnuv3_ops): Initialize 'print_vtable' field.
8199         * cp-support.c (info_vtbl_command): New function.
8200         (_initialize_cp_support): Add "info vtbl".
8201         * cp-abi.h (cplus_print_vtable): Declare.
8202         (struct cp_abi_ops) <print_vtable>: New field.
8203         * cp-abi.c (cplus_print_vtable): New function.
8204         * NEWS: Update.
8205
8206 2012-03-15  Tom Tromey  <tromey@redhat.com>
8207
8208         * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8209         iterate_over_symbols.
8210
8211 2012-03-14  Doug Evans  <dje@google.com>
8212
8213         * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8214         DW_OP_GNU_parameter_ref.
8215
8216 2012-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
8217
8218         Fix double prompt of 'interpreter-exec mi'.
8219         * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8220         (mi_interpreter_resume): use it.
8221         (mi_execute_command_input_handler): New function.
8222         * mi/mi-main.c (mi_execute_command): Move prompt printing to
8223         mi_execute_command_input_handler.
8224
8225 2012-03-13  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
8226
8227         * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8228         prototype.
8229         (darwin_debug_port_info): Make static.
8230         * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8231         * machoread.c (_initialize_machoread): Add prototype.
8232         * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8233         (i386_darwin_set_control, i386_darwin_get_control)
8234         i386_darwin_dr_set_addr, i386_darwin_get_addr)
8235         i386_darwin_get_status, i386_darwin_get_control):
8236         Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8237
8238 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
8239
8240         * ax-gdb.c (gen_usual_unary): Remove special handling of
8241         enum and bool types.
8242
8243 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
8244
8245         * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8246
8247 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
8248
8249         * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8250
8251 2012-03-13  Chris January  <chris.january@allinea.com>
8252
8253         * aix-thread.c (fill_sprs): Store the floating point registers
8254         at the correct offsets into vals.
8255
8256 2012-03-13  Doug Evans  <dje@google.com>
8257
8258         * NEWS: Mention symbol-reloading has been deleted.
8259         * symfile.c (symbol_reloading): Delete.
8260         (show_symbol_reloading): Delete.
8261         (_initialize_symfile): Delete set/show symbol-reloading.
8262
8263         * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8264         read_in_chain until we have successfully read it in.
8265         (load_full_comp_unit): Ditto.
8266         (read_signatured_type): Add comment.
8267
8268 2012-03-13  Chris January  <chris.january@allinea.com>
8269
8270         * stabsread.c (fix_common_block): Change type of valu argument
8271         to CORE_ADDR.
8272
8273 2012-03-13  Chris January  <chris.january@allinea.com>
8274
8275         * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8276         instruction.
8277
8278 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8279
8280         * common/linux-procfs.c (linux_proc_get_int): New, from
8281         linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8282         field.
8283         (linux_proc_get_tgid): Only call linux_proc_get_int.
8284         (linux_proc_get_tracerpid): New.
8285         (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8286         (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8287         linux_proc_pid_has_state.
8288         * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8289         * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8290         (linux_ptrace_attach_warnings): New.
8291         * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8292         New declaration.
8293         * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8294         (linux_nat_attach): New variables ex, buffer, message and message_s.
8295         Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8296
8297 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8298
8299         * Makefile.in (linux-ptrace.o): New.
8300         * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8301         from linux-nat.c.
8302         * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8303         * common/linux-ptrace.c: New file.
8304         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8305         * config/arm/linux.mh: Likewise.
8306         * config/i386/linux.mh: Likewise.
8307         * config/i386/linux64.mh: Likewise.
8308         * config/ia64/linux.mh: Likewise.
8309         * config/m32r/linux.mh: Likewise.
8310         * config/m68k/linux.mh: Likewise.
8311         * config/mips/linux.mh: Likewise.
8312         * config/pa/linux.mh: Likewise.
8313         * config/powerpc/linux.mh: Likewise.
8314         * config/powerpc/ppc64-linux.mh: Likewise.
8315         * config/powerpc/spu-linux.mh: Likewise.
8316         * config/s390/s390.mh: Likewise.
8317         * config/sparc/linux.mh: Likewise.
8318         * config/sparc/linux64.mh: Likewise.
8319         * config/xtensa/linux.mh: Likewise.
8320         * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8321         common/linux-procfs.c.
8322         (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8323
8324 2012-03-13  Hui Zhu  <teawater@gmail.com>
8325             Pedro Alves  <palves@redhat.com>
8326
8327         * breakpoint.c (init_breakpoint_sal): New flags parameter.  Handle
8328         CREATE_BREAKPOINT_FLAGS_INSERTED.
8329         (create_breakpoint_sal, create_breakpoints_sal)
8330         (base_breakpoint_create_breakpoints_sal)
8331         (tracepoint_create_breakpoints_sal)
8332         (strace_marker_create_breakpoints_sal): New flags parameter.  Pass
8333         down.
8334         (break_command_1, handle_gnu_v3_exceptions, trace_command)
8335         (ftrace_command, strace_command): Adjust.
8336         (create_tracepoint_from_upload): Pass
8337         CREATE_BREAKPOINT_FLAGS_INSERTED.
8338         * breakpoint.h (enum breakpoint_create_flags): New.
8339         (create_breakpoint): New flags parameter.
8340         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8341         * python/py-breakpoint.c (bppy_init): Adjust.
8342         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8343         * spu-tdep.c (spu_catch_start): Adjust.
8344
8345 2012-03-13  Pedro Alves  <palves@redhat.com>
8346             Hui Zhu  <teawater@gmail.com>
8347             Yao Qi  <yao@codesourcery.com>
8348
8349         * remote.c (struct remote_state): New field `starting_up'.
8350         (remote_start_remote): Set and clear it.
8351         (remote_can_download_tracepoint): If starting up, return false.
8352
8353 2012-03-13  Yao Qi  <yao@codesourcery.com>
8354
8355         * inferior.h (struct inferior): Remove fields any_syscall_count,
8356         syscalls_counts and total_syscalls_count.  Move them to new
8357         struct catch_syscall_inferior_data in breakpoint.c.
8358         * breakpoint.c: Call DEF_VEC_I(int).
8359         (struct catch_syscall_inferior_data): New.
8360         (get_catch_syscall_inferior_data): New.
8361         (catch_syscall_inferior_data_cleanup): New.
8362         (insert_catch_syscall): Update to access data in
8363         struct catch_syscall_inferior_data.
8364         (insert_catch_syscall): Likewise.
8365         (remove_catch_syscall): Likewise.
8366         (remove_catch_syscall): Likewise.
8367         (is_syscall_catchpoint_enabled): Likewise.
8368         (add_catch_command): Likewise.
8369         (_initialize_breakpoint): Register cleanup.
8370         * breakpoint.h: Removed DEF_VEC_I(int).
8371         * dwarf2loc.c: Call DEF_VEC_I(int).
8372         * mi/mi-main.c: Likewise.
8373
8374 2012-03-12  Mark Kettenis  <kettenis@gnu.org>
8375
8376         * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8377
8378 2012-03-12  Chris January  <chris.january@allinea.com>
8379
8380         * aix-thread.c (_initialize_aix_thread): Add prototype.
8381         * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8382         * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8383
8384 2012-03-12  Joel Brobecker  <brobecker@adacore.com>
8385
8386         * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8387         include of "amd64-nat.h".
8388
8389 2012-03-12  Tom Tromey  <tromey@redhat.com>
8390
8391         * buildsym.c (record_pending_block): Now static.
8392         * buildsym.h: (record_pending_block): Remove.
8393
8394 2012-03-12  Andreas Tobler  <andreast@fgznet.ch>
8395
8396         * amd64bsd-nat.c: Include amd64bsd-nat.h.
8397
8398 2012-03-09  Tom Tromey  <tromey@redhat.com>
8399
8400         * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8401         producer_is_gxx_lt_4_6>: New fields.
8402         (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8403
8404 2012-03-09  Tom Tromey  <tromey@redhat.com>
8405
8406         * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8407
8408 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8409
8410         * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8411         prototype.
8412
8413 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8414
8415         * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8416
8417 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8418
8419         Fix -Wmissing-prototypes build.
8420         * arm-linux-nat.c (get_thread_id): Make it static.
8421         * xtensa-linux-nat.c (get_thread_id): Likewise.
8422
8423 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8424
8425         * server.c (process_point_options): If a conditional expression
8426         is found, only print a message if remote_debug is nonzero.
8427
8428 2012-03-08  Luis Machado  <lgustavo@codesourcery.com>
8429
8430         * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8431         of internal error for unknown/unsupported types.
8432
8433 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8434
8435         Fix CU relative vs. absolute DIE offsets.
8436         * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8437         offset to offset_in_cu.
8438         * dwarf2read.c (process_enumeration_scope): Add CU offset to
8439         TYPE_OFFSET.
8440         (dwarf2_fetch_die_location_block): Rename parameter offset to
8441         offset_in_cu.  New variable offset, add CU offset to OFFSET_IN_CU.
8442
8443 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8444
8445         * libunwind-frame.c: Rename to ...
8446         * ia64-libunwind-tdep.c: ... here.
8447         * libunwind-frame.h: Rename to ...
8448         * ia64-libunwind-tdep.h: ... here.
8449         * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8450         ia64-libunwind-tdep.h.
8451         (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8452         * README (--with-libunwind): Rename to ...
8453         (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8454         * config.in: Regenerate.
8455         * configure: Regenerate.
8456         * configure.ac: New option --with-libunwind-ia64, make the
8457         AS_HELP_STRING ia64 specific.  Deprecate option --with-libunwind.
8458         Remove AC_DEFINE for HAVE_LIBUNWIND.
8459         * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8460         Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8461         Rename libunwind-frame in the general comment.
8462         * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8463         Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8464         Move forward declarations inside #ifndef.  Rename libunwind-frame in
8465         the general comment.
8466         * ia64-tdep.c: Rename libunwind-frame.h #include to
8467         ia64-libunwind-tdep.h.
8468         (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8469         (ia64_libunwind_descr): Rename libunwind-frame to
8470         ia64-libunwind-tdep in these function comments.
8471         * ia64-tdep.h: Rename libunwind-frame.h #include to
8472         ia64-libunwind-tdep.h.
8473         * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8474         ia64-libunwind-tdep in that data comment.
8475
8476 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8477
8478         * libunwind-frame.h (struct frame_unwind): New declaration.
8479
8480 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8481
8482         * breakpoint.c (_initialize_breakpoint): Fix error in help of
8483         "set breakpoint condition-evaluation" command.
8484
8485 2012-03-08  Tristan Gingold  <gingold@adacore.com>
8486
8487         * sparc-stub.c: Move to stubs/
8488         * sh-stub.c: Likewise.
8489         * m68k-stub.c: Likewise.
8490         * m32r-stub.c: Likewise.
8491         * i386-stub.c: Likewise.
8492
8493 2012-03-08  Andreas Schwab  <schwab@linux-m68k.org>
8494
8495         * m68klinux-tdep.c (m68k_linux_init_abi): Register
8496         linux_get_siginfo_type.
8497
8498         * m68klinux-nat.c: Include "gdb_proc_service.h".
8499         (PTRACE_GET_THREAD_AREA): Define.
8500         (ps_get_thread_area): New function.
8501
8502 2012-03-08  Yao Qi  <yao@codesourcery.com>
8503
8504         * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8505         `xsnprintf'.
8506         (remote_query_attached): Likewise.
8507         (remote_static_tracepoint_marker_at): Likewise.
8508         (remote_set_permissions): Likewise.
8509         (remote_detach_1, extended_remote_attach_1): Likewise.
8510         (send_g_packet, remote_vkill): Likewise.
8511         (extended_remote_disable_randomization): Likewise.
8512         (remote_add_target_side_condition): Likewise.
8513         (remote_insert_breakpoint): Likewise.
8514         (remote_remove_breakpoint): Likewise.
8515         (remote_insert_watchpoint): Likewise.
8516         (remote_remove_watchpoint): Likewise.
8517         (remote_insert_hw_breakpoint): Likewise.
8518         (remote_insert_hw_breakpoint): Likewise.
8519         (remote_remove_hw_breakpoint): Likewise.
8520         (remote_download_command_source): Likewise.
8521         (remote_download_tracepoint): Likewise.
8522         (remote_download_trace_state_variable): Likewise.
8523         (remote_disable_tracepoint): Likewise.
8524         (remote_trace_set_readonly_regions): Likewise.
8525         (remote_get_tracepoint_status): Likewise.
8526         (remote_trace_find): Likewise.
8527         (remote_get_trace_state_variable_value): Likewise.
8528         (remote_set_disconnected_tracing): Likewise.
8529         (remote_set_circular_trace_buffer): Likewise.
8530         (remote_get_min_fast_tracepoint_insn_len): Likewise.
8531         (remote_use_agent): Likewise.
8532         (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8533         Update callers.
8534
8535 2012-03-07  Pedro Alves  <palves@redhat.com>
8536
8537         * NEWS: Mention QProgramSignals.
8538         * inferior.h (update_signals_program_target): Declare.
8539         * infrun.c: (update_signals_program_target): New.
8540         (handle_command): Update the target of the new program signals
8541         array changes.
8542         * remote.c (PACKET_QProgramSignals): New enum.
8543         (last_program_signals_packet): New global.
8544         (remote_program_signals): New.
8545         (remote_start_remote): Update the target with the program signals
8546         list.
8547         (remote_protocol_features): Add entry for QPassSignals.
8548         (remote_open_1): Free anc clear last_program_signals_packet.
8549         (init_remote_ops): Install remote_program_signals.
8550         * target.c (update_current_target): Adjust.
8551         (target_program_signals): New.
8552         * target.h (struct target_ops) <to_program_signals>: New field.
8553         (target_program_signals): Declare.
8554
8555 2012-03-07  Pedro Alves  <palves@redhat.com>
8556
8557         * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8558         extensions.
8559
8560 2012-03-07  Andreas Schwab  <schwab@linux-m68k.org>
8561
8562         * m68klinux-nat.c (getregs_supplies): Make static.
8563         (getfpregs_supplies): Likewise.
8564         (have_ptrace_getregs): Likewise.
8565
8566 2012-03-06  Joel Brobecker  <brobecker@adacore.com>
8567
8568         * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8569         in call to get_die_type_at_offset.
8570
8571 2012-03-06  Stan Shebs  <stan@codesourcery.com>
8572
8573         * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8574         * mi/mi-cmd-disas.c: Ditto.
8575         * mi/mi-cmd-env.c: Ditto.
8576         * mi/mi-cmd-file.c: Ditto.
8577         * mi/mi-cmd-stack.c: Ditto.
8578         * mi/mi-cmd-target.c: Ditto.
8579         * mi/mi-cmd-var.c: Ditto.
8580         * mi/mi-cmds.c: Ditto.
8581         * mi/mi-cmds.h: Ditto.
8582         * mi/mi-console.c: Ditto.
8583         * mi/mi-getopt.c: Ditto.
8584         * mi/mi-getopt.h: Ditto.
8585         * mi/mi-interp.c: Ditto.
8586         * mi/mi-main.c: Ditto.
8587         * mi/mi-out.c: Ditto.
8588         * mi/mi-parse.c: Ditto.
8589         * mi/mi-parse.h: Ditto.
8590         * mi/mi-symbol-cmds.c: Ditto.
8591
8592         * mi/mi-getopt.h: Move mi_opt struct up.
8593         * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8594         return.
8595         * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8596
8597 2012-03-06  Tom Tromey  <tromey@redhat.com>
8598
8599         * proc-service.c (ps_pglobal_lookup): Set the current program
8600         space.
8601
8602 2012-03-06  Pedro Alves  <palves@redhat.com>
8603
8604         * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8605
8606 2012-03-05  Joel Brobecker  <brobecker@adacore.com>
8607
8608         * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8609
8610 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8611
8612         Code cleanup.
8613         * common/linux-osdata.c (linux_common_core_of_thread): New function
8614         comment.
8615         * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8616         call by linux_common_core_of_thread.
8617         (linux_nat_core_of_thread_1): Remove.
8618         * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8619         * linux-thread-db.c: Include linux-osdata.h.
8620         (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8621         linux_common_core_of_thread.
8622
8623 2012-03-05  Tom Tromey  <tromey@redhat.com>
8624
8625         * value.c (value_primitive_field): Don't fetch contents for
8626         non-virtual bases.
8627
8628 2012-03-05  Tom Tromey  <tromey@redhat.com>
8629
8630         * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8631
8632 2012-03-05  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8633
8634         * s390-nat.c: Include "gregset.h".
8635
8636 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8637
8638         * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8639         [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8640         (libunwind_load): New variable so_error, use it for dlerror.  Try to
8641         load also LIBUNWIND_SO_7.
8642
8643 2012-03-05  Pedro Alves  <palves@redhat.com>
8644
8645         * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8646         is not NULL, and remove resulting dead code.
8647
8648 2012-03-05  Thomas Schwinge  <thomas@codesourcery.com>
8649
8650         * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8651         prologue to sh_analyze_prologue.
8652         (sh_analyze_prologue): Make better use of such an upper limit, and
8653         generally be more cautious about accessing memory.
8654
8655 2012-03-05  Tom Tromey  <tromey@redhat.com>
8656
8657         * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8658         _initialize_ia64_hpux_tdep.
8659
8660 2012-03-05  Pedro Alves  <palves@redhat.com>
8661
8662         PR gdb/13766
8663
8664         * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8665         the register state is clear, supply explicit zero, instead of
8666         marking the register unavailable.
8667
8668 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8669
8670         * NEWS: Mention OpenVMS ia64 new target.
8671
8672 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8673
8674         * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8675         (ia64_unw_accessors, ia64_unw_rse_accessors)
8676         (ia64_libunwind_descr): Declare.
8677         * ia64-vms-tdep.c: New file.
8678         * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8679         (ia64_libunwind_descr): Make them public.
8680         * configure.tgt: Add ia64-*-*vms*.
8681         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8682         (ALLDEPFILES): Add ia64-vms-tdep.c
8683
8684 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8685
8686         * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8687         * remote.c (PACKET_qXfer_uib): New enum value.
8688         (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8689         (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8690         (_initialize_remote): Call add_packet_config_cmd for
8691         xfer:uib packet.
8692
8693 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8694
8695         * osabi.c (gdb_osabi_names): Add OpenVMS.
8696         (generic_elf_osabi_sniffer): Likewise.
8697         * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8698
8699 2012-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
8700
8701         Removed unused code.
8702         * libunwind-frame.c (libunwind_frame_unwind)
8703         (libunwind_frame_base_address): Remove.
8704         * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8705
8706 2012-03-04  Yao Qi  <yao@codesourcery.com>
8707
8708         * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8709         remove trailing new line.
8710         (agent_run_command, agent_run_command): Add _ markup.
8711         (agent_capability_check): Likewise.
8712
8713 2012-03-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
8714
8715         * breakpoint.c (set_condition_evaluation_mode): Set
8716         CONDITION_EVALUATION_MODE unconditionally.
8717
8718 2012-03-03  Yao Qi  <yao@codesourcery.com>
8719
8720         * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8721         * common/agent.h: Update declaration.
8722         * inf-child.c (inf_child_use_agent): New.
8723         (inf_child_can_use_agent): New.
8724         (inf_child_target): Initialize fields `to_use_agent'
8725         and `to_can_use_agent'.
8726         * agent.c (agent_new_objfile): New.
8727         (_initialize_agent): Add agent_new_objfile to new_objfile
8728         observer.
8729
8730         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8731         New.
8732         (linux_target_install_ops): Initialize field
8733         `to_static_tracepoint_markers_by_strid'.
8734         * remote.c (free_current_marker): Move it to ...
8735         * tracepoint.c (free_current_marker): ... here.  New.
8736         (cleanup_target_stop): New.
8737         * tracepoint.h: Declare free_current_marker.
8738         * NEWS: Add one entry about `info static-tracepoint-marker'.
8739
8740 2012-03-03  Yao Qi  <yao@codesourcery.com>
8741
8742         * common/agent.c (agent_loaded_p): New.
8743         (agent_look_up_symbols): New global.
8744         * common/agent.h: Declare agent_loaded_p.
8745
8746 2012-03-03  Yao Qi  <yao@codesourcery.com>
8747
8748         * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8749         (agent_capability_check, agent_capability_invalidate): New.
8750         (symbol_list): New array element.
8751         * common/agent.h (enum agent_capa): New.
8752         * target.c (target_pre_inferior): Call agent_capability_invalidate.
8753
8754 2012-03-03  Yao Qi  <yao@codesourcery.com>
8755
8756         * target.h (struct target_ops) <to_use_agent>: New field.
8757         (struct target_ops) <to_can_use_agent>: New field.
8758         (target_use_agent, target_can_use_agent): New macro.
8759         * target.c (update_current_target): Update.
8760         * remote.c: New enum `PACKET_QAgent'.
8761         (remote_protocol_features): Add a new element.
8762         (remote_use_agent, remote_can_use_agent): New.
8763         (init_remote_ops): Initialize field `can_use_agent' with
8764         remote_can_use_agent.  Intiailize field `use_agent' with
8765         remote_use_agent.
8766         * common/agent.c (use_agent): New global.
8767         * common/agent.h: Declare it.
8768         * tracepoint.c (info_static_tracepoint_markers_command): Add
8769         comment.
8770         * Makefile.in (SFILES): Add common/agent.c and agent.c.
8771         (COMMON_OBS): Add common/agent.o and agent.o
8772         (common-agent.o): New rule.
8773         * agent.c: New.
8774
8775 2012-03-03  Yao Qi  <yao@codesourcery.com>
8776
8777         * common/agent.c: New.
8778         * common/agent.h: New.
8779         * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8780         AC_CHECK_HEADERS.
8781         * configure, configh.in: Regenerated.
8782
8783 2012-03-02  Kevin Buettner  <kevinb@redhat.com>
8784
8785         * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8786         unless it exists for this architecture.
8787
8788 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
8789
8790         * language.h (struct language_defn): New "method" la_read_var_value.
8791         * findvar.c: #include "language.h".
8792         (default_read_var_value): Renames read_var_value.  Rewrite
8793         function description.
8794         (read_var_value): New function.
8795         * value.h (default_read_var_value): Add prototype.
8796         * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8797         New functions.
8798         (ada_language_defn): Add entry for la_read_var_value.
8799         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8800         * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8801         language_defn structures to add entry for new la_read_var_value
8802         field.
8803
8804 2012-03-02  Tom Tromey  <tromey@redhat.com>
8805             Pedro Alves  <palves@redhat.com>
8806
8807         PR breakpoints/13776:
8808         * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8809         breakpoints.
8810         (delete_longjmp_breakpoint_at_next_stop): New.
8811         * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8812         * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8813         before deleting the inferior.  Add comments.
8814         * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8815         breakpoints immediately, but only on next stop.  Move that code
8816         next to where we mark other breakpoints for deletion.
8817
8818 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
8819
8820         * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8821         marker.
8822         * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8823         violation.
8824
8825 2012-03-02  Pedro Alves  <palves@redhat.com>
8826
8827         * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8828
8829 2012-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
8830
8831         Fix -Wmissing-prototypes build.
8832         * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8833         * remote-sim.c (gdbsim_has_all_memory): Likewise.
8834         (gdbsim_has_memory): Likewise.
8835
8836 2012-03-02  Yao Qi  <yao@codesourcery.com>
8837
8838         Fix -Wmissing-prototypes build.
8839         * charset.c (phony_iconv_open): Make static.
8840         (phony_iconv_close, phony_iconv): Likewise.
8841         * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8842         * i386-windows-nat.c (_initialize_i386_windows_nat): New
8843         prototype.
8844         * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8845         * ser-mingw.c (create_select_thread): Make static.
8846         * windows-termcap.c (tgetent): New prototype.
8847         (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8848
8849 2012-03-02  Zhang Yuanhui  <asmwarrior@gmail.com>
8850
8851         Fix -Wmissing-prototypes build.
8852         * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8853         (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8854         (_initialize_loadable): New prototypes.
8855
8856 2012-03-02  Doug Evans  <dje@google.com>
8857
8858         * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8859         abbrev table, read_comp_unit will do it.
8860
8861 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8862
8863         Fix -Wmissing-prototypes build.
8864         * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8865         * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8866         * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8867         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8868         (_initialize_arm_symbian_tdep): New prototype.
8869         * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8870         * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8871         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8872         static.
8873         * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8874         * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8875         prototype.
8876         * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8877         (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8878         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8879         static.
8880         * moxie-tdep.c (moxie_process_record): Likewise.
8881         * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8882         (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8883         * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8884         (_initialize_rl78_tdep): New prototype.
8885         * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8886         (_initialize_rx_tdep): New prototype.
8887         * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8888         (_initialize_darwin_solib): New prototype.
8889         * solib-spu.c: Include solib-spu.h.
8890         (_initialize_spu_solib): New prototype.
8891         * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8892         * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8893         (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8894         (tic6x_software_single_step): Make it static.
8895         (_initialize_tic6x_tdep): New prototype.
8896
8897 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8898
8899         Fix -Wmissing-prototypes build.
8900         * cris-tdep.c (cris_can_use_hardware_watchpoint)
8901         (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8902
8903 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8904
8905         Fix -Wmissing-prototypes build.
8906         * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8907         (frv_have_stopped_data_address): Remove.
8908
8909 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8910
8911         Fix -Wmissing-prototypes build.
8912         * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8913         * sh-tdep.c: Include sh64-tdep.h.
8914         * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8915         * sh64-tdep.c: Include sh64-tdep.h.
8916         * sh64-tdep.h: New file.
8917
8918 2012-03-01  Maciej W. Rozycki <macro@codesourcery.com>
8919
8920         * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8921
8922 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
8923
8924         * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8925         sp_regnum once the gdbarch_init_osabi hook has been called.
8926
8927 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
8928
8929         * mips-tdep.c (mips32_bc1_pc): New function.
8930         (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8931         BPOSGE32 and BPOSGE64 instructions.
8932         (deal_with_atomic_sequence): Likewise.
8933         (mips32_instruction_has_delay_slot): Likewise.
8934
8935 2012-03-01  Maciej W. Rozycki  <macro@mips.com>
8936             Chris Dearman  <chris@mips.com>
8937             Maciej W. Rozycki  <macro@codesourcery.com>
8938             Joseph Myers  <joseph@codesourcery.com>
8939
8940         * features/mips-dsp.xml: New file.
8941         * features/mips64-dsp.xml: New file.
8942         * features/mips-dsp-linux.xml: New file.
8943         * features/mips64-dsp-linux.xml: New file.
8944         * features/Makefile (WHICH): Add mips-dsp-linux and
8945         mips64-dsp-linux.
8946         (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8947         * features/mips-dsp-linux.c: New file.
8948         * features/mips64-dsp-linux.c: New file.
8949         * regformats/mips-dsp-linux.dat: New file.
8950         * regformats/mips64-dsp-linux.dat: New file.
8951         * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8952         registers.
8953         (mips64_linux_register_addr): Likewise.
8954         (mips64_linux_regsets_fetch_registers): Likewise.
8955         (mips64_linux_regsets_store_registers): Likewise.
8956         (mips64_linux_fetch_registers): Update call to
8957         mips64_linux_regsets_fetch_registers.
8958         (mips64_linux_store_registers): Update call to
8959         mips64_linux_regsets_store_registers.
8960         (mips_linux_read_description): Probe for DSP registers.
8961         (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8962         and initialize_tdesc_mips64_dsp_linux.
8963         * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8964         Remove padding of no longer used embedded register slots.
8965         * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8966         (MIPS_RESTART_REGNUM): Redefine enum value.
8967         * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8968         strings.
8969         (mips_tx39_reg_names): Likewise.
8970         (mips_linux_reg_names): New array of register names for Linux
8971         targets.
8972         (mips_register_name): Check for a null pointer in
8973         mips_processor_reg_names and return an empty string.
8974         (mips_register_type): Exclude embedded registers for the IRIX
8975         and Linux ABIs.
8976         (mips_pseudo_register_type): Likewise.  Use dynamic numbers to
8977         refer to FP registers, LO, HI, BadVAddr, Cause and PC.  Handle
8978         DSP registers.
8979         (mips_stab_reg_to_regnum): Handle DSP accumulators.
8980         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8981         (mips_gdbarch_init): Likewise.  Initialize internal register
8982         indices for the Linux ABI.  Use dynamic numbers to refer to
8983         registers, as applicable, while parsing the target description.
8984         * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8985
8986 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
8987
8988         * frame.h (read_frame_register_unsigned): Fix typo in function
8989         description.
8990
8991 2012-03-01  Pedro Alves  <palves@redhat.com>
8992
8993         * jit-reader.in [!__cplusplus]
8994         (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8995
8996 2012-03-01  Pedro Alves  <palves@redhat.com>
8997
8998         * configure.ac (build_warnings): Add -Wmissing-prototypes.
8999         * configure: Regenerate.
9000
9001 2012-03-01  Pedro Alves  <palves@redhat.com>
9002
9003         * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9004         * breakpoint.c (create_exception_master_breakpoint, trace_command)
9005         (ftrace_command, strace_command): Make static.
9006         * d-lang.c (_initialize_d_language): Declare.
9007         * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9008         * dwarf2loc.c (_initialize_dwarf2loc):
9009         * dwarf2read.c (process_psymtab_comp_unit): Make static.
9010         * exec.c (exec_get_section_table): Make static.
9011         * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9012         * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9013         * inferior.c (remove_inferior_command, add_inferior_command)
9014         (clone_inferior_command): Make static.
9015         * linux-nat.c (linux_nat_thread_address_space)
9016         (linux_nat_core_of_thread): Make static.
9017         * linux-tdep.c (_initialize_linux_tdep): Declare.
9018         * objc-lang.c (_initialize_objc_lang): Declare.
9019         * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9020         Make static.
9021         (_initialize_opencl_language): Declare.
9022         * record.c (_initialize_record): Declare.
9023         * remote.c (demand_private_info, remote_get_tib_address)
9024         (remote_supports_cond_tracepoints)
9025         (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9026         Make static.
9027         * skip.c (_initialize_step_skip): Declare.
9028         * symtab.c (skip_prologue_using_lineinfo): Make static.
9029         * tracepoint.c (delete_trace_state_variable)
9030         (trace_variable_command, delete_trace_variable_command)
9031         (get_uploaded_tsv, find_matching_tracepoint_location)
9032         (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9033         Make static.
9034         * value.c (pack_unsigned_long): Make static.
9035         * varobj.c (varobj_ensure_python_env): Make static.
9036         * windows-tdep.c (_initialize_windows_tdep): Declare.
9037         * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9038
9039 2012-03-01  Pedro Alves  <palves@redhat.com>
9040
9041         * linux-tdep.c (linux_has_shared_address_space): Make static.  Add
9042         gdbarch parameter.
9043         (linux_init_abi): Install it as has_shared_address_space gdbarch
9044         callback.
9045
9046 2012-03-01  Pedro Alves  <palves@redhat.com>
9047
9048         * observer.c (observer_test_first_notification_function)
9049         (observer_test_second_notification_function)
9050         (observer_test_third_notification_function): Add declarations.
9051
9052 2012-03-01  Pedro Alves  <palves@redhat.com>
9053
9054         * common/signals.c (default_target_signal_to_host)
9055         (default_target_signal_from_host): Move ...
9056         * arch-utils.c: ... here.
9057         * arch-utils.h (default_target_signal_to_host)
9058         (default_target_signal_from_host): Declare.
9059
9060         * common/signals.c (target_signal_from_command): Move ...
9061         * infrun.c: ... here.
9062         * inferior.h (target_signal_from_command): Declare.
9063         * target.h (target_signal_from_command)
9064         (default_target_signal_from_host, default_target_signal_to_host):
9065         Delete declarations.
9066
9067         * common/signals.c (_initialize_signals): Delete.
9068
9069 2012-03-01  Pedro Alves  <palves@redhat.com>
9070
9071         * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9072         both __cplusplus and !__cplusplus.
9073
9074 2012-03-01  Pedro Alves  <palves@redhat.com>
9075
9076         * psymtab.c (find_and_open_source): Delete declaration.
9077         * source.c (find_and_open_source): Move comment ...
9078         * source.h (find_and_open_source): ... to this new declaration.
9079
9080 2012-03-01  Pedro Alves  <palves@redhat.com>
9081
9082         * inline-frame.c: Include inline-frame.h.
9083
9084 2012-03-01  Pedro Alves  <palves@redhat.com>
9085
9086         * tui/tui-data.c (set_gen_win_origin): Delete.
9087         * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9088         * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9089
9090 2012-03-01  Pedro Alves  <palves@redhat.com>
9091
9092         * remote.c (encode_actions): Delete declaration.
9093         * tracepoint.c (encode_actions): Make extern.
9094         * tracepoint.h (encode_actions): Declare.
9095
9096 2012-03-01  Pedro Alves  <palves@redhat.com>
9097
9098         * python/py-breakpoint.c: Include python.h.
9099         * python/py-continueevent.c (create_continue_event_object): Make
9100         static.
9101         * python/py-lazy-string.c (stpy_get_type): Make static.
9102         * python/py-newobjfileevent.c (create_new_objfile_event_object):
9103         Make static.
9104         * python/py-utils.c (unicode_to_target_python_string): Make
9105         static.
9106         * python/py-value.c: Include python.h.
9107
9108 2012-03-01  Pedro Alves  <palves@redhat.com>
9109
9110         * inferior.c (delete_threads_of_inferior): Delete.
9111
9112 2012-03-01  Pedro Alves  <palves@redhat.com>
9113
9114         Import fallback definitions from glibc.
9115
9116         * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9117         ps_prochandle): Forward declare.
9118         (ps_err_e): Use glibc's comments.
9119         [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9120         (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9121         (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9122         (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9123         (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9124         (struct ps_prochandle): Adjust comment.
9125
9126 2012-03-01  Pedro Alves  <palves@redhat.com>
9127
9128         * ada-lang.c (ada_modulus_from_name): Delete.
9129         * ada-lex.l (lexer_init): Make static.
9130
9131 2012-03-01  Pedro Alves  <palves@redhat.com>
9132
9133         PR gdb/13767
9134
9135         * frame.c (read_frame_register_unsigned): New.
9136         * frame.h (read_frame_register_unsigned): Declare.
9137         * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9138         Handle it.
9139         (print_i387_control_word): New parameter `control_p'.  Handle it.
9140         (i387_print_float_info): Handle unavailable float registers.
9141
9142 2012-03-01  Keith Seitz  <keiths@redhat.com>
9143
9144         * linespec.c (decode_line_2): Sort the list of methods
9145         alphabetically before presenting the user with a selection
9146         menu.
9147
9148 2012-03-01  Doug Evans  <dje@google.com>
9149
9150         * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9151         has_namespace_info.
9152         (dwarf2_read_abbrevs): Remove corresponding initialization.
9153
9154 2012-03-01  Scott J. Goldman <scottjg@vmware.com>
9155
9156         * NEWS: Mention new python command class gdb.COMMAND_USER.
9157         * cli/cli-cmds.c (show_user): Print error when used on a python
9158         command.
9159         (init_cli_cmds): Update documentation strings for "show user" and
9160         "set/show max-user-call-depth" to clarify that it does not apply to
9161         python commands.
9162         * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9163         error check.
9164         (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9165         gdb python api.
9166         * top.c (execute_command): Only execute a user-defined command as a
9167         legacy macro if c->user_commands is set.
9168
9169 2012-03-01  Tom Tromey  <tromey@redhat.com>
9170
9171         * valprint.h (struct generic_val_print_decorations): New.
9172         (generic_val_print): Declare.
9173         * valprint.c (generic_val_print): New function.
9174         * p-valprint.c (p_decorations): New global.
9175         (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9176         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9177         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9178         TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9179         * m2-valprint.c (m2_decorations): New global.
9180         (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9181         TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9182         TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9183         TYPE_CODE_ERROR>: Call generic_val_print.
9184         * f-valprint.c (f_decorations): New global.
9185         (f_val_print): Use print_function_pointer_address.
9186         <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9187         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9188         TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9189         generic_val_print.
9190         * c-valprint.c (c_decorations): New global.
9191         (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9192         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9193         TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9194         TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9195         TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9196         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9197         case.
9198
9199 2012-03-01  Tom Tromey  <tromey@redhat.com>
9200
9201         * valprint.c (val_print): Update.
9202         * p-valprint (pascal_val_print): Return void.
9203         * p-lang.h (pascal_val_print): Return void.
9204         * m2-valprint.c (m2_val_print): Return void.
9205         * m2-lang.h (m2_val_print): Return void.
9206         * language.h (struct language_defn) <la_val_print>: Return void.
9207         * language.c (unk_lang_val_print): Return void.
9208         * jv-valprint.c (java_val_print): Return void.
9209         * jv-lang.h (java_val_print): Return void.
9210         * f-valprint.c (f_val_print): Return void.
9211         * f-lang.h (f_val_print): Return void.
9212         * d-valprint.c (d_val_print): Return void.
9213         (dynamic_array_type): Update.
9214         * d-lang.h (d_val_print): Return void.
9215         * c-valprint.c (c_val_print): Return void.
9216         * c-lang.h (c_val_print): Return void.
9217         * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9218         void.
9219         * ada-lang.h (ada_val_print): Return void.
9220
9221 2012-03-01  Tom Tromey  <tromey@redhat.com>
9222
9223         * value.h (val_print): Return void.
9224         * valprint.c (val_print): Return void.
9225
9226 2012-03-01  Tom Tromey  <tromey@redhat.com>
9227
9228         * value.h (common_val_print): Return void.
9229         * valprint.c (common_val_print): Return void.
9230
9231 2012-03-01  Tom Tromey  <tromey@redhat.com>
9232
9233         * value.h (value_print): Return void.
9234         * valprint.c (value_print): Return void.
9235         * p-valprint.c (pascal_value_print): Return void.
9236         * p-lang.h (pascal_value_print): Return void.
9237         * language.h (struct language_defn) <la_value_print>: Return
9238         void.
9239         * language.c (unk_lang_value_print): Return void.
9240         * jv-valprint.c (java_value_print): Return void.
9241         * jv-lang.h (java_value_print): Return void.
9242         * f-valprint.c (c_value_print): Don't declare.
9243         Include c-lang.h.
9244         * c-valprint.c (c_value_print): Return void.
9245         * c-lang.h (c_value_print): Return void.
9246         * ada-valprint.c (ada_value_print): Return void.
9247         * ada-lang.h (ada_value_print): Return void.
9248
9249 2012-03-01  Tom Tromey  <tromey@redhat.com>
9250
9251         * value.c (value_primitive_field): Handle virtual base classes.
9252
9253 2012-03-01  Tom Tromey  <tromey@redhat.com>
9254
9255         * gdbtypes.h (struct vbase): Remove.
9256
9257 2012-03-01  Tom Tromey  <tromey@redhat.com>
9258
9259         * c-valprint.c (print_function_pointer_address): Move...
9260         * valprint.c: ... here.  Make non-static.
9261         * m2-valprint.c (print_function_pointer_address): Remove.
9262         * valprint.h (print_function_pointer_address): Declare.
9263
9264 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9265
9266         * NEWS: Document the fact that one can provide a condition when
9267         creating an Ada exception catchpoint.
9268
9269 2012-03-01  Tom Tromey  <tromey@redhat.com>
9270
9271         * valprint.c (val_print_type_code_flags): Fix placement of
9272         trailing brace.
9273
9274 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9275
9276         * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9277         (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9278         environment variable before calling update-copyright.
9279
9280 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9281
9282         * gnulib/extra/update-copyright: Update to the latest from
9283         gnulib's git repository.
9284         * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9285         variable to 2 instead of 1.
9286
9287 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9288
9289         * varobj.c (c_value_of_variable): Remove dead code.
9290
9291 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9292
9293         * ada-lex.p (processId): Do not modify already encoded IDs.
9294         Update function documentation.
9295
9296 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9297
9298         * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9299         "name" with "struct symbol *name_sym".
9300         * ada-exp.y (write_var_or_type): Update call to
9301         ada_find_renaming_symbol.
9302         "name" with "struct symbol *name_sym". Adjust Implementation
9303         accordingly.  Adjust the function documentation.
9304
9305 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9306
9307         * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9308         * ada-lang.c (ada_find_any_type): Add advance declaration.
9309         Make static.  Replace ada_find_any_symbol by
9310         ada_find_any_type_symbol.
9311         (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9312         Improve function description.  Make static.
9313         (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9314         Replace ada_find_any_symbol by ada_find_any_type_symbol.
9315
9316 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9317
9318         * ada-lang.c (struct tag_args): Delete.
9319         (ada_get_tsd_type): Function body moved up in source file.
9320         (ada_tag_name_1, ada_tag_name_2): Delete.
9321         (ada_get_tsd_from_tag): New function.
9322         (ada_tag_name_from_tsd): New function.
9323         (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9324         to determine the tag name.
9325
9326 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9327
9328         * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9329         declaration.
9330         * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9331         function.
9332
9333 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9334
9335         * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9336
9337 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9338
9339         * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9340         full searches.
9341
9342 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9343
9344         * ada-lang.c (constrained_packed_array_type): If there is a
9345         parallel XA type, use it to determine the array index type.
9346
9347 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9348
9349         * ada-valprint.c (ada_val_print_1): If our value is a reference
9350         to an array descriptor, dereference it before converting it
9351         to a simple array.
9352
9353 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9354
9355         * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9356         creating fixed value.
9357         (ada_value_ind, ada_coerce_ref, assign_component)
9358         (ada_evaluate_subexp): Remove call to unwrap_value before
9359         call to ada_to_fixed_value.
9360
9361 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9362
9363         * ada-lang.c (to_fixed_array_type): Set result's type name.
9364
9365 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9366
9367         * ada-lang.c (catch_ada_exception_command_split): Add new
9368         argument cond_string.  Add support for condition at end of
9369         "catch exception" commands.
9370         (ada_decode_exception_location): Add new argument cond_string.
9371         Update call to catch_ada_exception_command_split.
9372         (create_ada_exception_catchpoint): Add new argument cond_string.
9373         Set the breakpoint condition if needed.
9374         (catch_ada_exception_command): Update call to
9375         ada_decode_exception_location.
9376         (ada_decode_assert_location): Add function documentation.
9377         Add support for condition at end of "catch assert" command.
9378         (catch_assert_command): Update calls to ada_decode_assert_location
9379         and create_ada_exception_catchpoint.
9380
9381 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9382
9383         Fix disp-step-syscall.exp: fork: single step over fork.
9384         * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9385         (i386_linux_get_syscall_number_from_regcache): ... here, new function
9386         comment, change parameters gdbarch and ptid to regcache.  Remove
9387         parameter regcache, initialize gdbarch from regcache here.
9388         (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9389         New functions.
9390         (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9391         instead.
9392         * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9393         'syscall'.  Make the 'int' check more strict.
9394
9395 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9396
9397         Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9398         * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9399         (i386_linux_intx80_sysenter_syscall_record): ... here.
9400         (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9401         Use the renamed function name.
9402
9403 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9404
9405         * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9406         * breakpoint.c (until_break_command): Likewise.
9407         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9408         * infcall.c (call_function_by_hand): Likewise.
9409         * infcmd.c (finish_forward): Likewise.
9410         * infrun.c (insert_exception_resume_breakpoint): Likewise.
9411
9412 2012-02-28  Tristan Gingold  <gingold@adacore.com>
9413
9414         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9415         avoid variable assignments inside condition.
9416
9417 2012-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9418
9419         Fix static analysis issue found by cppcheck.
9420         * microblaze-tdep.c (microblaze_extract_return_value): Fix
9421         uninitialized BUF for size 2.
9422
9423 2012-02-27  Chris Dearman  <chris@mips.com>
9424             Nathan Froyd  <froydnj@codesourcery.com>
9425             Maciej W. Rozycki  <macro@codesourcery.com>
9426
9427         * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9428         (mips16_instruction_has_delay_slot): Likewise.
9429         (mips_segment_boundary): Likewise.
9430         (mips_adjust_breakpoint_address): Likewise.
9431         (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9432
9433 2012-02-27  Maciej W. Rozycki  <macro@mips.com>
9434             Maciej W. Rozycki  <macro@codesourcery.com>
9435
9436         * infrun.c (handle_inferior_event): Don't proceed through
9437         shared library trampolines if stepping at the machine
9438         instruction level.
9439
9440 2012-02-27  Maciej W. Rozycki  <macro@codesourcery.com>
9441
9442         * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9443         too.
9444
9445 2012-02-27  Thomas Schwinge  <thomas@codesourcery.com>
9446
9447         * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9448         (sh_stub_unwind_sniffer): New functions.
9449         (sh_stub_unwind): New variable.
9450         (sh_gdbarch_init): Wire everything.
9451
9452 2012-02-27  Pedro Alves  <palves@redhat.com>
9453
9454         * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9455         (linux_nat_post_attach_wait): Adjust to use
9456         linux_proc_pid_is_stopped.
9457         * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9458         * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9459         based on pid_is_stopped from both linux-nat.c and
9460         gdbserver/linux-low.c, and renamed.
9461
9462 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
9463
9464         * remote.c (remote_watchpoint_addr_within_range): New function.
9465         (init_remote_ops): Use it.
9466
9467 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
9468
9469         * target.h (target_watchpoint_addr_within_range): Document macro.
9470
9471 2012-02-24  Pedro Alves  <palves@redhat.com>
9472
9473         * stack.c (set_last_displayed_sal): Issue internal_error instead
9474         of warning, and issue it after clearing the last displayed sal.
9475
9476 2012-02-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
9477             Pedro Alves  <palves@redhat.com>
9478
9479         * breakpoint.c (until_break_command): Install breakpoints after
9480         all frame manipulations.
9481
9482 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9483
9484         * remote.c (remote_supports_cond_breakpoints): New forward
9485         declaration.
9486         (remote_add_target_side_condition): New function.
9487         (remote_insert_breakpoint): Add target-side breakpoint
9488         conditional if supported.
9489         (remote_insert_hw_breakpoint): Likewise.
9490         (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9491         hook.
9492
9493         * target.c (update_current_target): Inherit
9494         to_supports_evaluation_of_breakpoint_conditions.
9495         Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9496
9497         * target.h (struct target_ops)
9498         <to_supports_evaluation_of_breakpoint_conditions>: New field.
9499         (target_supports_evaluation_of_breakpoint_conditions): New #define.
9500
9501         * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9502         (condition_evaluation_both, condition_evaluation_auto,
9503         condition_evaluation_host, condition_evaluation_target,
9504         condition_evaluation_enums, condition_evaluation_mode_1,
9505         condition_evaluation_mode): New static globals.
9506         (translate_condition_evaluation_mode): New function.
9507         (breakpoint_condition_evaluation_mode): New function.
9508         (gdb_evaluates_breakpoint_condition_p): New function.
9509         (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9510         (mark_breakpoint_modified): New function.
9511         (mark_breakpoint_location_modified): New function.
9512         (set_condition_evaluation_mode): New function.
9513         (show_condition_evaluation_mode): New function.
9514         (bp_location_compare_addrs): New function.
9515         (get_first_location_gte_addr): New helper function.
9516         (set_breakpoint_condition): Free condition bytecode if locations
9517         has become unconditional.  Call mark_breakpoint_modified (...).
9518         (condition_command): Call update_global_location_list (1) for
9519         breakpoints.
9520         (breakpoint_xfer_memory): Use is_breakpoint (...).
9521         (is_breakpoint): New function.
9522         (parse_cond_to_aexpr): New function.
9523         (build_target_condition_list): New function.
9524         (insert_bp_location): Handle target-side conditional
9525         breakpoints and call build_target_condition_list (...).
9526         (update_inserted_breakpoint_locations): New function.
9527         (insert_breakpoint_locations): Handle target-side conditional
9528         breakpoints.
9529         (bpstat_check_breakpoint_conditions): Add comment.
9530         (bp_condition_evaluator): New function.
9531         (bp_location_condition_evaluator): New function.
9532         (print_breakpoint_location): Print information on where the condition
9533         will be evaluated.
9534         (print_one_breakpoint_location): Likewise.
9535         (init_bp_location): Call mark_breakpoint_location_modified (...) for
9536         breakpoint location.
9537         (force_breakpoint_reinsertion): New functions.
9538         (update_global_location_list): Handle target-side breakpoint
9539         conditions.
9540         Reinsert locations that are already inserted if conditions have
9541         changed.
9542         (bp_location_dtor): Free agent expression bytecode.
9543         (disable_breakpoint): Call mark_breakpoint_modified (...).
9544         Call update_global_location_list (...) with parameter 1 for breakpoints.
9545         (disable_command): Call mark_breakpoint_location_modified (...).
9546         Call update_global_location_list (...) with parameter 1 for breakpoints.
9547         (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9548         (enable_command): mark_breakpoint_location_modified (...).
9549         (_initialize_breakpoint): Update documentation and add
9550         condition-evaluation breakpoint subcommand.
9551
9552         * breakpoint.h: Include ax.h.
9553         (condition_list): New data structure.
9554         (condition_status): New enum.
9555         (bp_target_info) <cond_list>: New field.
9556         (bp_location) <condition_changed, cond_bytecode>: New fields.
9557         (is_breakpoint): New prototype.
9558
9559 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9560
9561         * remote.c (remote_state) <cond_breakpoints>: New field.
9562         (PACKET_ConditionalBreakpoints): New enum.
9563         (remote_cond_breakpoint_feature): New function.
9564         (remote_protocol_features): Add new ConditionalBreakpoints entry.
9565         (remote_supports_cond_breakpoints): New function.
9566         (_initialize_remote): Add new packet configuration for
9567         target-side conditional breakpoints.
9568
9569 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9570
9571         * NEWS: Mention target-side conditional breakpoint support,
9572         new condition-evaluation breakpoint subcommand and remote
9573         packet extensions.
9574
9575 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9576
9577         * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9578         number.
9579
9580 2012-02-24  Thomas Schwinge  <thomas@codesourcery.com>
9581
9582         * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9583         (after_prologue): Remove.
9584
9585 2012-02-23  Tom Tromey  <tromey@redhat.com>
9586
9587         * jv-valprint.c (java_val_print): Remove dead code.
9588
9589 2012-02-23  Tristan Gingold  <gingold@adacore.com>
9590
9591         * ada-tasks.c (struct ada_tasks_inferior_data): Add
9592         known_tasks_element and known_tasks_length fields.
9593         (read_known_tasks_array): Change argument type.  Use pointer type
9594         and number of elements from DATA.  Adjust.
9595         (read_known_tasks_list): Likewise.
9596         (get_known_tasks_addr): Remove.
9597         (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9598         (ada_tasks_inferior_data_sniffer): ... this.  Use symtab for element
9599         type and array length.  Merge former get_known_tasks_addr code.
9600
9601 2012-02-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
9602
9603         PR backtrace/13716
9604         * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9605         it after set_momentary_breakpoint.
9606
9607 2012-02-22  Sterling Augustine  <saugustine@google.com>
9608
9609         PR 13689:
9610         * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9611
9612 2012-02-22  Gary Benson  <gbenson@redhat.com>
9613
9614         * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9615         (find_slot_in_mapped_hash): Likewise.
9616
9617 2012-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
9618
9619         PR build/13638
9620         * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9621         (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9622         * configure: Regenerate.
9623
9624 2012-02-21  Tristan Gingold  <gingold@adacore.com>
9625             Pedro Alves  <palves@redhat.com>
9626
9627         * ia64-tdep.c: Do not include libunwind-ia64.h.
9628         * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9629         Include libunwind-ia64.h instead of libunwind.h.
9630         * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9631         for libunwind.h existence.
9632         * configure, config.in: Regenerate.
9633
9634 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
9635
9636         * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9637         instead of value_rtti_target_type.
9638         * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9639         instead of value_rtti_target_type.
9640         * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9641         value_rtti_target_type.
9642         * valops.c (value_ind): Extract function readjust_indirect_value_type.
9643         (value_rtti_target_type): Rename to ...
9644         (value_rtti_indirect_type): ... here and make it indirect.  Update
9645         function comment.
9646         * value.c (readjust_indirect_value_type): New function.
9647         (coerce_ref): Support for enclosing type setting for references
9648         with readjust_indirect_value_type.
9649         * value.h (readjust_value_type): New declaration.
9650         (value_rtti_target_type): Rename to ...
9651         (value_rtti_indirect_type): ... here.
9652
9653 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
9654
9655         * MAINTAINERS (Write After Approval): Add myself to the list.
9656
9657 2012-02-20  Doug Evans  <dje@google.com>
9658
9659         * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9660         Rename objfile_p_char parameter to objfilep.
9661         (build_objfile_section_table): Result is now void.  All callers
9662         updated.
9663         * objfiles.h (struct objfile): Tweak comments, whitespace.
9664         (build_objfile_section_table): Update.
9665
9666         * elfread.c (elf_symfile_segments): Fix warning text.
9667
9668 2012-02-20  Tom Tromey  <tromey@redhat.com>
9669
9670         PR gdb/13498:
9671         * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9672         particular set of file names once.
9673         (dw2_map_symbol_filenames): Likewise.
9674
9675 2012-02-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
9676
9677         Code cleanup.
9678         * main.c (write_files): Remove the declaration.
9679         (external_editor_command): Move the declaration ...
9680         [GDBTK] (external_editor_command): ... here.  Fix the comment.
9681
9682 2012-02-20  Tom Tromey  <tromey@redhat.com>
9683
9684         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9685         extraneous block.
9686
9687 2012-02-20  Tristan Gingold  <gingold@adacore.com>
9688
9689         * darwin-nat.h (enum darwin_msg_state): Add comments.
9690
9691 2012-02-20  Tristan Gingold  <gingold@adacore.com>
9692
9693         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9694         value.
9695
9696 2012-20-18  Joel Brobecker  <brobecker@adacore.com>
9697
9698         * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9699         between function description and implementation.
9700
9701 2012-02-17  Tom Tromey  <tromey@redhat.com>
9702
9703         PR python/12070:
9704         * python/py-event.c (event_object_getset): New global.
9705         (event_object_type): Reference it.
9706         * python/py-type.c (field_object_getset): New global.
9707         (field_object_type): Reference it.
9708         * python/python-internal.h (gdb_py_generic_dict): Declare.
9709         * python/py-utils.c (gdb_py_generic_dict): New function.
9710
9711 2012-02-17  Tristan Gingold  <gingold@adacore.com>
9712
9713         * solib-darwin.c (darwin_current_sos): Check magic and filetype
9714
9715 2012-02-17  Thomas Schwinge  <thomas@codesourcery.com>
9716
9717         * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9718         TYPE_CALLING_CONVENTION annotation.
9719
9720 2012-02-16  Kevin Buettner  <kevinb@redhat.com>
9721
9722         * MAINTAINERS: Add rx to target ISA section.
9723         * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9724         (ALLDEPFILES): Add rx-tdep.c.
9725
9726 2012-02-16  Tom Tromey  <tromey@redhat.com>
9727
9728         * symfile.c (symbol_file_add_main_1): Use inferior's
9729         symfile_flags.
9730         * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9731         * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9732         inferior.
9733         * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9734         inferior.
9735         (follow_exec): Use inferior's symfile_flags.
9736         * inferior.h (struct inferior) <symfile_flags>: New field.
9737
9738 2012-02-16  Mike Frysinger  <vapier@gentoo.org>
9739
9740         PR gdb/9734:
9741         * remote-sim.c (gdbsim_create_inferior): Call error() when
9742         sim_create_inferior() fails.
9743
9744 2012-02-16  Josh Matthews  <josh@joshmatthews.net>
9745
9746         * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9747
9748 2012-02-16  Tom Tromey  <tromey@redhat.com>
9749
9750         PR c++/13653:
9751         * thread.c (struct current_thread_cleanup) <was_removable>: New
9752         field.
9753         (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9754         (make_cleanup_restore_current_thread): Initialize new field.
9755
9756 2012-02-15  Kevin Buettner  <kevinb@redhat.com>
9757
9758         * MAINTAINERS: Add rl78 to target ISA section.
9759         * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9760         (ALLDEPFILES): Add rl78-tdep.c.
9761         * NEWS: Mention rl78 as a new target.
9762
9763 2012-02-15  Aleksandar Ristovski  <aristovski@qnx.com>
9764
9765         * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9766         data.
9767         * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9768
9769 2012-02-15  Tom Tromey  <tromey@redhat.com>
9770
9771         PR gdb/12659:
9772         * infcmd.c (registers_info): Print just the current register's
9773         name.
9774
9775 2012-02-15  Tom Tromey  <tromey@redhat.com>
9776
9777         * python/py-symbol.c (sympy_value): Use _().
9778
9779 2012-02-15  Pedro Alves  <palves@redhat.com>
9780
9781         * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9782         output to be like native targets'.
9783         (remote_pid_to_str): Special case the null ptid.
9784
9785 2012-02-14  Stan Shebs  <stan@codesourcery.com>
9786
9787         * NEWS: Mention enable count command.
9788         * breakpoint.h (struct breakpoint): New field enable_count.
9789         * breakpoint.c (enable_breakpoint_disp): Add count argument.
9790         (enable_breakpoint): Add arg to call.
9791         (struct disp_data): New struct.
9792         (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9793         (do_map_enable_once_breakpoint): Create a struct and pass it.
9794         (do_map_enable_delete_breakpoint): Ditto.
9795         (do_map_enable_count_breakpoint): New function.
9796         (enable_count_command): New function.
9797         (bpstat_stop_status): Decrement enable_count.
9798         (print_one_breakpoint_location): Report enable count.
9799         (_initialize_breakpoint): Add enable count command.
9800
9801 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
9802
9803         * rl78-tdep.c (reggroups.h): Include.
9804         (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9805         (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9806         (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9807         (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9808         (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9809         (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9810         (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9811         (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9812         (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9813         (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9814         (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9815         (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9816         (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9817         (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9818         (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9819         (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9820         beginning of register list.
9821         (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9822         (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9823         (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9824         (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9825         (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9826         (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9827         (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9828         (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9829         (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9830         (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9831         (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9832         the pseudo registers.  Rearrange other pseudo registers too so
9833         that the bank registers appear at the end.
9834         (rl78_register_type): Account for the fact that the byte sized
9835         bank registers are now pseudo-registers.
9836         (rl78_register_name): Rearrange the register name array.  Make
9837         initial set of raw banked registers inaccessible.
9838         (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9839         (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9840         case for copying bytes back and forth between raw and pseudo
9841         versions of the banked registers.  Update other cases to reflect
9842         the changed names.
9843         (rl78_return_value): Update to account for changed names of
9844         raw registers.
9845         (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9846         rl78_register_sim_regno().
9847
9848 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
9849
9850         * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9851         the name parameter being passed to find_pc_partial_function().
9852
9853 2012-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9854
9855         * MAINTAINERS: Step down from being ia64 target maintainer.
9856
9857 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
9858
9859         * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9860         compilation warning.
9861
9862 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
9863
9864         Fix crash on loaded shlibs without loaded exec_bfd.
9865         * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9866         (set_section_command): Replace exec_bfd by p->bfd.
9867
9868 2012-02-10  Tom Tromey  <tromey@redhat.com>
9869
9870         * linespec.c (decode_line_internal): Skip symtabs_from_filename
9871         when we have a C++ qualified name.
9872
9873 2012-02-10  Pedro Alves  <palves@redhat.com>
9874
9875         * inferior.c (inferior_pid_to_str): New.
9876         (print_inferior, inferior_command): Use it.
9877
9878 2012-02-10  Pedro Alves  <palves@redhat.com>
9879
9880         * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9881         the test CFLAGS.
9882         * configure: Regenerate.
9883
9884 2012-02-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
9885
9886         * linespec.c (decode_line_internal): Fix comment correctness.
9887
9888 2012-02-09  Valery Khromov  <valery.khromov@gmail.com>
9889
9890         PR gdb/12953
9891         * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9892         * amd64bsd-nat.c: Add support for debug registers (adapted from
9893         i386bsd-nat.c).
9894         [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9895         (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9896         (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9897         (amd64bsd_dr_get_control): New functions.
9898         * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9899         * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9900         [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9901         watchpoints initialization.
9902         * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9903
9904 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9905
9906         * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9907         flds_bnds.fields.
9908         (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9909
9910 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9911
9912         * breakpoint.c (bp_location_compare): Fix comment.  Reindent the code.
9913
9914 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
9915
9916         * language.h (symbol_name_cmp_ftype): Renames
9917         symbol_name_match_p_ftype.
9918         (struct language_defn)[la_get_symbol_name_cmp]: Renames
9919         la_get_symbol_name_match_p.
9920         * ada-lang.c (ada_get_symbol_name_cmp): Renames
9921         ada_get_symbol_name_match_p.  Update comment.
9922         (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9923         * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9924         Renames symbol_name_match_p.  Update field type.
9925         (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9926         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9927         opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9928         "la_get_symbol_name_cmp" in comments.
9929         * language.c: Likewise.
9930
9931 2012-02-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9932
9933         * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9934         %eflags offset.
9935         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9936         (amd64_sol2_gregset32_reg_offs): Likewise.
9937
9938 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
9939
9940         * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9941         of the returned BFD is allocated by GDB.
9942
9943 2012-02-07  Tom Tromey  <tromey@redhat.com>
9944
9945         PR python/12027:
9946         * python/python-internal.h (frame_object_type): Declare.
9947         * python/py-symbol.c (sympy_needs_frame): New function.
9948         (sympy_value): New function.
9949         (symbol_object_getset): Add "needs_frame".
9950         (symbol_object_methods): Add "value".
9951         * python/py-frame.c (frame_object_type): No longer static.
9952
9953 2012-02-07  Tom Tromey  <tromey@redhat.com>
9954
9955         PR python/13599:
9956         * python/py-symbol.c (sympy_line): New function.
9957         (symbol_object_getset): Add "line".
9958
9959 2012-02-07  Tom Tromey  <tromey@redhat.com>
9960
9961         * charset.c (find_charset_names): Check 'in' against NULL.
9962
9963 2012-02-06  Doug Evans  <dje@google.com>
9964
9965         * gdbtypes.h (struct main_type): Change type of name,tag_name,
9966         and fields.name members from char * to const char *.  All uses updated.
9967         (struct cplus_struct_type): Change type of fn_fieldlists.name member
9968         from char * to const char *.  All uses updated.
9969         (type_name_no_tag): Update.
9970         (lookup_unsigned_typename, lookup_signed_typename): Update.
9971         * gdbtypes.c (type_name_no_tag): Change result type
9972         from char * to const char *.  All callers updated.
9973         (lookup_unsigned_typename, lookup_signed_typename): Change type of
9974         name parameter from char * to const char *.
9975         * symtab.h (struct cplus_specific): Change type of demangled_name
9976         member from char * to const char *.  All uses updated.
9977         (struct general_symbol_info): Change type of name and
9978         mangled_lang.demangled_name members from char * to const char *.
9979         All uses updated.
9980         (symbol_get_demangled_name, symbol_natural_name): Update.
9981         (symbol_demangled_name, symbol_search_name): Update.
9982         * symtab.c (symbol_get_demangled_name): Change result type
9983         from char * to const char *.  All callers updated.
9984         (symbol_natural_name, symbol_demangled_name): Ditto.
9985         (symbol_search_name): Ditto.
9986         (completion_list_add_name): Change type of symname,sym_text,
9987         text,word parameters from char * to const char *.
9988         (completion_list_objc_symbol): Change type of sym_text,
9989         text,word parameters from char * to const char *.
9990         * ada-lang.c (find_struct_field): Change type of name parameter
9991         from char * to const char *.
9992         (encoded_ordered_before): Similarly for N0,N1 parameters.
9993         (old_renaming_is_invisible): Similarly for function_name parameter.
9994         (ada_type_name): Change result type from char * to const char *.
9995         All callers updated.
9996         * ada-lang.h (ada_type_name): Update.
9997         * buildsym.c (hashname): Change type of name parameter
9998         from char * to const char *.
9999         * buildsym.h (hashname): Update.
10000         * dbxread.c (end_psymtab): Change type of include_list parameter
10001         from char ** to const char **.
10002         * dwarf2read.c (determine_prefix): Change result type
10003         from char * to const char *.  All callers updated.
10004         * f-lang.c (find_common_for_function): Change type of name, funcname
10005         parameters from char * to const char *.
10006         * f-lang.c (find_common_for_function): Update.
10007         * f-valprint.c (list_all_visible_commons): Change type of funcname
10008         parameters from char * to const char *.
10009         * gdbarch.sh (static_transform_name): Change type of name parameter
10010         and result from char * to const char *.
10011         * gdbarch.c: Regenerate.
10012         * gdbarch.h: Regenerate.
10013         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10014         of name parameter from char * to const char *.
10015         * jv-lang.c (java_primitive_type_from_name): Ditto.
10016         (java_demangled_signature_length): Similarly for signature parameter.
10017         (java_demangled_signature_copy): Ditto.
10018         (java_demangle_type_signature): Ditto.
10019         * jv-lang.h (java_primitive_type_from_name): Update.
10020         (java_demangle_type_signature): Update.
10021         * objc-lang.c (specialcmp): Change type of a,b parameters
10022         from char * to const char *.
10023         * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10024         from char * to const char *.  All callers updated.
10025         * p-lang.h (is_pascal_string_type): Update.
10026         * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10027         of name parameter from char * to const char *.
10028         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10029         * utils.c (fprintf_symbol_filtered): Ditto.
10030         * defs.h (fprintf_symbol_filtered): Update.
10031         * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10032         * stabsread.h (end_psymtab): Update.
10033         * stack.c (find_frame_funname): Change type of funname parameter
10034         from char ** to const char **.
10035         * stack.h (find_frame_funname): Update.
10036         * typeprint.c (type_print): Change type of varstring parameter
10037         from char * to const char *.
10038         * value.h (type_print): Update.
10039         * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10040         from char * to const char *.  All callers updated.
10041         (xcoff_end_psymtab): Change type of include_list parameter
10042         from char ** to const char **.  All callers updated.
10043         (swap_sym): Similarly for name parameter.  All callers updated.
10044         * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10045         Use xstrdup.
10046         (process_coff_symbol): Use xstrdup.
10047         * stabsread.c (stabs_method_name_from_physname): Renamed from
10048         update_method_name_from_physname.  Change result type from void
10049         to char *.  All callers updated.
10050         (read_member_functions): In has_destructor case, store name in objfile
10051         obstack instead of malloc space.  In !has_stub case, fix mem leak.
10052
10053 2012-02-06  Luca Pizzamiglio  <luca.pizzamiglio@gmail.com>
10054
10055         * configure: Rebuild.
10056         * configure.ac: Put -L../bfd and -L../libiberty at the front of
10057         LDFLAGS.
10058
10059 2012-02-03  Kevin Buettner  <kevinb@redhat.com>
10060
10061         * configure.tgt (rl78-*-elf): New target.
10062         * rl78-tdep.c: New file.
10063
10064 2012-02-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
10065
10066         * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10067         and continue the loop.  Add QUIT statement.
10068
10069 2012-02-03  Tom Tromey  <tromey@redhat.com>
10070
10071         PR gdb/13596:
10072         * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10073         bfd_lookup_symbol_from_symtab.
10074         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10075         gdb_bfd_lookup_symbol_from_symtab.
10076
10077 2012-02-03  Joel Brobecker  <brobecker@adacore.com>
10078
10079         * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10080         use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10081         symbol.  Add assertion that sym2 is never NULL.
10082
10083 2012-02-02  Doug Evans  <dje@google.com>
10084
10085         * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10086         "name" parameter to const char ** from char **.  All callers updated.
10087         (find_pc_partial_function): Ditto.
10088         (cache_pc_function_name): Change type to const char * from char *.
10089         * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10090         (find_pc_partial_function): Update.
10091         * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10092         type of "name" parameter to const char * from char *.
10093         All uses updated.
10094         * arch-utils.c (generic_in_solib_return_trampoline): Change
10095         type of "name" parameter to const char * from char *.
10096         * arch-utils.h (generic_in_solib_return_trampoline): Update.
10097         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10098         type of "name" parameter to const char * from char *.
10099         * gdbarch.sh (in_solib_return_trampoline): Ditto.
10100         * gdbarch.c: Regenerate.
10101         * gdbarch.h: Regenerate.
10102         * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10103         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10104         * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10105         type of "name" parameter to const char * from char *.
10106         * skip.c (skip_function_pc): Ditto.
10107         * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10108         * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10109         * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10110         * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10111         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10112         * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10113         * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10114         * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10115         * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10116
10117 2012-02-02  Pedro Alves  <palves@redhat.com>
10118
10119         * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10120         the current inferior has no execution.  Make sure the current
10121         remote process matches gdb's current inferior.
10122
10123 2012-02-02  Tom Tromey  <tromey@redhat.com>
10124
10125         PR gdb/13405:
10126         * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10127         read-only memory.
10128
10129 2012-02-02  Tom Tromey  <tromey@redhat.com>
10130
10131         PR gdb/9307:
10132         * symtab.c (lookup_language_this): Set block_found.
10133
10134 2012-02-01  Tom Tromey  <tromey@redhat.com>
10135
10136         PR gdb/13431:
10137         * jit.c (struct jit_inferior_data): Rewrite.
10138         (struct jit_objfile_data): New.
10139         (get_jit_objfile_data): New function.
10140         (add_objfile_entry): Update.
10141         (jit_read_descriptor): Return int.  Replace descriptor_addr
10142         argument with inf_data.  Update.  Don't call error.
10143         (jit_breakpoint_re_set_internal): Reorder logic.  Update.  Look up
10144         descriptor here.
10145         (jit_inferior_init): Don't look up descriptor.  Don't call error.
10146         (jit_reset_inferior_data_and_breakpoints)
10147         (jit_inferior_created_observer): Remove.
10148         (jit_inferior_exit_hook): Update.
10149         (jit_executable_changed_observer): Remove.
10150         (jit_event_handler): Update.
10151         (free_objfile_data): Reset inferior data if needed.
10152         (_initialize_jit): Update.
10153
10154 2012-02-01  Tom Tromey  <tromey@redhat.com>
10155
10156         * jit.c (bfd_open_from_target_memory): Move higher in file.
10157
10158 2012-02-01  Tristan Gingold  <gingold@adacore.com>
10159
10160         * libunwind-frame.c (libunwind_load): Display message if dlopen
10161         failed.
10162
10163 2012-02-01  Gary Benson  <gbenson@redhat.com>
10164
10165         * symtab.h (symbol_found_callback_ftype): New typedef.
10166         (iterate_over_symbols): Use the above.
10167         * symtab.c (iterate_over_symbols): Likewise.
10168         * language.h (language_defn->la_iterate_over_symbols): Likewise.
10169         * ada-lang.c (ada_iterate_over_symbols): Likewise.
10170         * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10171         (iterate_name_matcher): Document return values.
10172         (collect_one_symbol): Likewise.
10173         (collect_function_symbols): Likewise.
10174         (collect_symbols): Likewise.
10175
10176 2012-02-01  Tom Tromey  <tromey@redhat.com>
10177
10178         * ada-lang.c (resolve_subexp): Update.
10179         (ada_lookup_symbol_list): Add 'full_search' argument.
10180         (ada_iterate_over_symbols): Pass 0 as full_search argument to
10181         ada_lookup_symbol_list.
10182         (ada_lookup_encoded_symbol): Update.
10183         (get_var_value): Update.
10184         * ada-exp.y (block_lookup): Update.
10185         (write_var_or_type): Update.
10186         (write_name_assoc): Update.
10187         * ada-lang.h (ada_lookup_symbol_list): Update.
10188
10189 2012-01-31  Tom Tromey  <tromey@redhat.com>
10190
10191         * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10192         comment.
10193
10194 2012-01-31  Doug Evans  <dje@google.com>
10195
10196         * symtab.h: Remove outdated comment.
10197         (SYMBOL_MATCHES_NATURAL_NAME): Delete.
10198
10199 2012-02-01  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
10200
10201         Fix build error in Darwin port.
10202         * i386-darwin-nat.c: Include i386-nat.h.
10203
10204 2012-01-30  Tom Tromey  <tromey@redhat.com>
10205
10206         PR breakpoints/13568:
10207         * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10208         argument.  Check for recursive includes.
10209         (dwarf_decode_macros): Create an include hash.
10210
10211 2012-01-30  Michael Eager  <eager@eagercon.com>
10212
10213         * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10214         * ppc-linux-tdep.c: Include glibc-tdep.h.
10215         (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
10216         (powerpc_linux_in_plt_stub): New function.
10217         (powerpc_linux_in_dynsym_resolve_code): New function.
10218         (ppc_skip_trampoline_code): New function.
10219         (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10220         Use glibc_skip_solib_resolver.
10221
10222 2012-01-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
10223
10224         Code cleanup: Make 1440 bytes of data segment read-only.
10225         * arch-utils.c (endian_enum): Make it const char *const [].
10226         * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10227         Likewise.
10228         * breakpoint.c (always_inserted_enums): Likewise.
10229         * cli/cli-cmds.c (script_ext_enums): Likewise.
10230         * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10231         enumlist parameter const char *const *.
10232         * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10233         const char *const *.
10234         * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10235         parameter const char *const *.
10236         * cris-tdep.c (cris_modes): Make it const char *const [].
10237         * filesystem.c (target_file_system_kinds): Likewise.
10238         * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10239         * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10240         (can_use_displaced_stepping_enum, scheduler_enums)
10241         (exec_direction_names): Likewise.
10242         * language.c (_initialize_language): Make the type_or_range_names and
10243         case_sensitive_names variables const char *const [].
10244         * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10245         * python/python.c (python_excp_enums): Likewise.
10246         * remote.c (interrupt_sequence_modes): Likewise.
10247         * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10248         * serial.c (logbase_enums): Likewise.
10249         * sh-tdep.c (sh_cc_enum): Likewise.
10250         * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10251         Likewise.
10252         * symtab.c (multiple_symbols_modes): Likewise.
10253         * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10254         Likewise.
10255         * utils.c (internal_problem_modes): Likewise.
10256
10257 2012-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
10258
10259         Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10260         * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10261         result.
10262
10263 2012-01-27  Doug Evans  <dje@google.com>
10264
10265         * configure.ac (with_python): Fix absolute path handling for win32.
10266         * configure: Regenerate.
10267
10268 2012-01-26  Doug Evans  <dje@google.com>
10269
10270         * symtab.c: Whitespace cleanup, no code changes.
10271
10272         * symtab.c (lookup_symbol_in_language): Improve comment.
10273         (lookup_symbol_aux): Fix comment.
10274
10275         * psymtab.c (add_psymbol_to_list): Result is now "void".
10276         * psympriv.h (add_psymbol_to_list): Update.
10277
10278         * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10279
10280 2012-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10281
10282         Do not open script filenames twice.
10283         * cli/cli-cmds.c (source_script_from_stream): Pass to
10284         source_python_script also STREAM.
10285         * python/py-auto-load.c (source_section_scripts): Pass to
10286         source_python_script_for_objfile also STREAM.
10287         (auto_load_objfile_script): Pass to source_python_script_for_objfile
10288         also INPUT.
10289         * python/python-internal.h (source_python_script_for_objfile): New
10290         parameter file, rename parameter file to filename.
10291         * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10292         instead if !_WIN32.  Update the function comment.
10293         (source_python_script, source_python_script_for_objfile)
10294         (source_python_script): New parameter file, rename parameter file to
10295         filename.  Pass FILENAME to python_run_simple_file.
10296         * python/python.h (source_python_script): New parameter file, rename
10297         parameter file to filename.
10298
10299 2012-01-26  Pedro Alves  <palves@redhat.com>
10300
10301         * corelow.c (core_has_fake_pid): Delete.
10302         (core_close): Delete references to `core_has_fake_pid'.
10303         (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10304         (core_open): Delete references to `core_has_fake_pid'.
10305         (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10306         the removed global.
10307
10308 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
10309
10310         * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10311         Remove language parameter from name_matcher.  Adjust the comment.
10312         * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10313         Remove language parameter.
10314         * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10315         * linespec.c (iterate_name_matcher): Likewise.
10316         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10317         name_matcher.  Adjust call accordingly.
10318         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10319         (maintenance_check_symtabs): Adjust type of parameter "fun".
10320         * psymtab.h (maintenance_check_symtabs): Likewise.
10321
10322 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
10323
10324         * language.h (symbol_name_match_p_ftype): New typedef.
10325         (struct language_defn): Replace field la_symbol_name_compare
10326         by la_get_symbol_name_match_p.
10327         * ada-lang.c (ada_get_symbol_name_match_p): New function.
10328         (ada_language_defn): Use it.
10329         * linespec.c (struct symbol_matcher_data): New type.
10330         (iterate_name_matcher): Rewrite.
10331         (iterate_over_all_matching_symtabs): Pass a pointer to
10332         a symbol_matcher_data struct to expand_symtabs_matching
10333         instead of just the lookup name.
10334         * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10335         opencl-lang.c, p-lang.c, language.c: Delete field
10336         la_symbol_name_compare, and replace by NULL for new field
10337         la_get_symbol_name_match_p.
10338         * symfile.h (struct quick_symbol_functions): Update comment.
10339
10340 2012-01-25  Tom Tromey  <tromey@redhat.com>
10341
10342         * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10343         dereferencing.
10344
10345 2012-01-24  Tom Tromey  <tromey@redhat.com>
10346
10347         PR symtab/12406:
10348         * solib.c (update_solib_list): Update the program space's
10349         added_solibs and deleted_solibs fields.
10350         * progspace.h (struct program_space) <added_solibs,
10351         deleted_solibs>: New fields.
10352         (clear_program_space_solib_cache): Declare.
10353         * progspace.c (release_program_space): Call
10354         clear_program_space_solib_cache.
10355         (clear_program_space_solib_cache): New function.
10356         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10357         bpstat_stop_status.  Use handle_solib_event.
10358         * breakpoint.c: Include gdb_regex.h.
10359         (print_solib_event): New function.
10360         (bpstat_print): Use print_solib_event.
10361         (bpstat_stop_status): Add special case for bp_shlib_event.
10362         (handle_solib_event): New function.
10363         (bpstat_what): Use handle_solib_event.
10364         (struct solib_catchpoint): New.
10365         (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10366         (breakpoint_hit_catch_solib, check_status_catch_solib)
10367         (print_it_catch_solib, print_one_catch_solib)
10368         (print_mention_catch_solib, print_recreate_catch_solib): New
10369         functions.
10370         (catch_solib_breakpoint_ops): New global.
10371         (catch_load_or_unload, catch_load_command_1)
10372         (catch_unload_command_1): New functions.
10373         (internal_bkpt_check_status): Add special case for
10374         bp_shlib_event.
10375         (internal_bkpt_print_it): Use print_solib_event.
10376         (initialize_breakpoint_ops): Initialize
10377         catch_solib_breakpoint_ops.
10378         (_initialize_breakpoint): Register "catch load" and "catch
10379         unload".
10380         * breakpoint.h (handle_solib_event): Declare.
10381         * NEWS: Add entry for "catch load" and "catch unload".
10382
10383 2012-01-24  Tom Tromey  <tromey@redhat.com>
10384
10385         * ada-lang.c: Include gdb_vecs.h.
10386         * charset.c: Include gdb_vecs.h.
10387         * tracepoint.h: Include gdb_vecs.h.
10388         * gdb_vecs.h: New file.
10389
10390 2012-01-24  Pedro Alves  <pedro@codesourcery.com>
10391
10392         * breakpoint.c (breakpoint_hit_catch_fork)
10393         (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10394         (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10395         * infrun.c (inferior_has_forked, inferior_has_vforked)
10396         (inferior_has_execd, inferior_has_called_syscall): Delete.
10397         (handle_syscall_event): Get syscall_number from the execution
10398         control state's wait status.
10399         (wait_for_inferior): Don't clear syscall_number.
10400
10401 2012-01-24  Pedro Alves  <palves@redhat.com>
10402
10403         * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10404         pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10405         (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10406         (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10407         `ws' parameter.
10408         (breakpoint_hit_ranged_breakpoint): Add `ws' parameter.  Return
10409         false for events other than TARGET_SIGNAL_TRAP.
10410         (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10411         Add `ws' parameter.
10412         (bkpt_breakpoint_hit): Add `ws' parameter.  Return false for
10413         events other than TARGET_SIGNAL_TRAP.
10414         (tracepoint_breakpoint_hit): Add `ws' parameter.
10415         * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10416         parameter.
10417         (bpstat_stop_status): Same.
10418         (pc_at_non_inline_function): Same.
10419         * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10420         to pass the current event's waitstatus to bpstat_stop_status
10421         and pc_at_non_inline_function.
10422
10423 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10424
10425         Code cleanup.
10426         * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10427         Update the function comment for it.
10428         (source_script_with_search): Call make_cleanup_fclose for STREAM.
10429         * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10430         for STREAM.
10431
10432 2012-01-24  Pedro Alves  <palves@redhat.com>
10433
10434         * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10435         outside `bs->stop' block.
10436         (bpstat_what): Rework bp_shlib_event handling.
10437         (internal_bkpt_check_status): If the breakpoint is a
10438         bp_shlib_event, then set bs->stop and bs->print if
10439         stop_on_solib_events is set.
10440
10441 2012-01-24  Gary Benson  <gbenson@redhat.com>
10442
10443         Delete #if 0'd out code.
10444         * stack.c (print_frame_label_vars): Remove.
10445         (catch_info): Likewise.
10446         (_initialize_stack): Remove "info catch" command.
10447         * NEWS: Mention the above.
10448
10449 2012-01-24  Pedro Alves  <palves@redhat.com>
10450
10451         * remote.c (remote_add_inferior): New `fake_pid_p' parameter.  Use
10452         it.
10453         (remote_notice_new_inferior): If the remote end doesn't support
10454         the multiprocess extensions, then the PID is fake.
10455         (add_current_inferior_and_thread): New.
10456         (remote_start_remote): Use it.
10457         (extended_remote_attach_1): Adjust.
10458         (extended_remote_create_inferior_1): Use
10459         add_current_inferior_and_thread.
10460
10461 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10462
10463         Fix watchpoints to be specific for each inferior.
10464         * breakpoint.c (watchpoint_in_thread_scope): Verify also
10465         current_program_space.
10466         * i386-nat.c (i386_inferior_data_cleanup): New.
10467         (i386_inferior_data_get): Replace variable inf_data_local by an
10468         inferior_data call.
10469         (i386_use_watchpoints): Initialize i386_inferior_data.
10470         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10471         specific iterate_over_lwps.
10472
10473 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10474
10475         Fix watchpoints across inferior fork.
10476         * amd64-linux-nat.c (update_debug_registers_callback): Update the
10477         comment for linux_nat_iterate_watchpoint_lwps.
10478         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10479         linux_nat_iterate_watchpoint_lwps.
10480         (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10481         * i386-linux-nat.c (update_debug_registers_callback): Update the
10482         comment for linux_nat_iterate_watchpoint_lwps.
10483         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10484         linux_nat_iterate_watchpoint_lwps.
10485         (i386_linux_prepare_to_resume): New comment on Linux kernel.
10486         * i386-nat.c: Include inferior.h.
10487         (dr_mirror): Remove.
10488         (i386_inferior_data, struct i386_inferior_data)
10489         (i386_inferior_data_get): New.
10490         (i386_debug_reg_state): Use i386_inferior_data_get.
10491         (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10492         (i386_insert_watchpoint, i386_remove_watchpoint)
10493         (i386_stopped_data_address, i386_insert_hw_breakpoint)
10494         (i386_remove_hw_breakpoint): New variable state, use
10495         i386_debug_reg_state instead of DR_MIRROR.
10496         * linux-nat.c (delete_lwp): New declaration.
10497         (num_lwps): Move here from downwards.
10498         (delete_lwp_cleanup): New.
10499         (linux_child_follow_fork): Create new child_lp, call
10500         linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10501         PTRACE_DETACH.
10502         (num_lwps): Move upwards.
10503         (linux_nat_iterate_watchpoint_lwps): New.
10504         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10505         (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10506
10507 2012-01-24  Joel Brobecker  <brobecker@adacore.com>
10508
10509         GDB 7.4 released.
10510
10511 2012-01-23  Pedro Alves  <palves@redhat.com>
10512
10513         * top.c (caution): Rename to ...
10514         (confirm): ... this.
10515         (show_caution): Rename to ...
10516         (show_confirm): ... this.
10517         (quit_cover): Adjust.
10518         (init_main): Adjust.
10519         * top.h (caution): Rename to ...
10520         (confirm): ... this.
10521         * utils.c (internal_vproblem, defaulted_query): Adjust.
10522
10523 2012-01-23  Pedro Alves  <palves@redhat.com>
10524
10525         * top.c (caution): Update comment.
10526         (execute_command): Don't consider the current value of `caution'.
10527
10528 2012-01-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
10529
10530         * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10531
10532 2012-01-23  Ulrich Weigand  <ulrich.weigand@linaro.org>
10533
10534         * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10535         * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10536         * target.c (target_fileio_pwrite): Remove buffer address from
10537         debug output.
10538         (target_fileio_pread): Likewise.
10539
10540 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10541
10542         * NEWS: Document remote "info proc" and "generate-core-file".
10543
10544 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10545
10546         * gdbarch.sh (find_memory_regions): New callback.
10547         * gdbarch.c, gdbarch.h: Regenerate.
10548
10549         * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10550         callback before falling back to target method.
10551
10552         * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10553         (linux_target_install_ops): No longer install it.
10554
10555         * linux-tdep.c (linux_find_memory_regions): New function.
10556         (linux_init_abi): Install it.
10557
10558 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10559
10560         * gdbarch.sh (make_corefile_notes): New architecture callback.
10561         * gdbarch.c: Regenerate.
10562         * gdbarch.h: Likewise.
10563
10564         * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10565         before target_make_corefile_notes.  If NULL is returned, the
10566         target does not support core file generation.
10567
10568         * linux-nat.c: Include "linux-tdep.h".
10569         (find_signalled_thread, find_stop_signal): Remove.
10570         (linux_nat_do_thread_registers): Likewise.
10571         (struct linux_nat_corefile_thread_data): Likewise.
10572         (linux_nat_corefile_thread_callback): Likewise.
10573         (iterate_over_spus): Likewise.
10574         (struct linux_spu_corefile_data): Likewise.
10575         (linux_spu_corefile_callback): Likewise.
10576         (linux_spu_make_corefile_notes): Likewise.
10577         (linux_nat_collect_thread_registers): New function.
10578         (linux_nat_make_corefile_notes): Replace contents by call to
10579         linux_make_corefile_notes passing linux_nat_collect_thread_registers
10580         as native-only callback.
10581
10582         * linux-tdep.h: Include "bfd.h".
10583         (struct regcache): Add forward declaration.
10584         (linux_collect_thread_registers_ftype): New typedef.
10585         (linux_make_corefile_notes): Add prototype.
10586         * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10587         "regset.h", and "elf-bfd.h".
10588         (find_signalled_thread, find_stop_signal): New functions.
10589         (linux_spu_make_corefile_notes): Likewise.
10590         (linux_collect_thread_registers): Likewise.
10591         (struct linux_corefile_thread_data): New data structure.
10592         (linux_corefile_thread_callback): New funcion.
10593         (linux_make_corefile_notes): Likewise.
10594         (linux_make_corefile_notes_1): Likewise.
10595         (linux_init_abi): Install it.
10596
10597 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10598
10599         * gdbarch.sh (info_proc): New callback.
10600         * gdbarch.c, gdbarch.h: Regenerate.
10601
10602         * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10603         before falling back to the target info_proc callback.
10604
10605         * linux-nat.c: Do not include "cli/cli-utils.h".
10606         (linux_nat_info_proc): Remove.
10607         (linux_target_install_ops): No longer install it.
10608
10609         * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10610         (read_mapping): New function.
10611         (linux_info_proc): Likewise.
10612         (linux_init_abi): Install it.
10613
10614 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10615
10616         * defs.h (enum info_proc_what): Moved here from linux-nat.c
10617         * infcmd.c: (info_proc_cmd_1): New function.
10618         (info_proc_cmd): New function, moved here from equivalent routine
10619         orignally in linux-nat.c.
10620         (info_proc_cmd_mappings): Likewise.
10621         (info_proc_cmd_stat): Likewise.
10622         (info_proc_cmd_status): Likewise.
10623         (info_proc_cmd_cwd): Likewise.
10624         (info_proc_cmd_cmdline): Likewise.
10625         (info_proc_cmd_exe): Likewise.
10626         (info_proc_cmd_all): Likewise.
10627         (_initialize_infcmd): Install "info proc" command and subcommands.
10628
10629         * target.h (struct target_ops): Add to_info_proc.
10630         (target_info_proc): Add prototype.
10631         * target.c (target_info_proc): New function.
10632
10633         * procfs.c (procfs_info_proc): Add prototype.
10634         (info_proc_cmd): Rename into ...
10635         (procfs_info_proc): ... this.  Update argument types as appropriate
10636         for a to_info_proc implementation.  Handle "what" argument.
10637         (procfs_target): Install procfs_info_proc.
10638         (_initialize_procfs): No longer install "info proc" command.
10639
10640         * linux-nat.c: (enum info_proc_what): Remove.
10641         (linux_nat_info_proc_cmd_1): Rename into ...
10642         (linux_nat_info_proc): ... this.  Update argument types as appropriate
10643         for a to_info_proc implementation.
10644         (linux_nat_info_proc_cmd): Remove.
10645         (linux_nat_info_proc_cmd_mappings): Likewise.
10646         (linux_nat_info_proc_cmd_stat): Likewise.
10647         (linux_nat_info_proc_cmd_status): Likewise.
10648         (linux_nat_info_proc_cmd_cwd): Likewise.
10649         (linux_nat_info_proc_cmd_cmdline): Likewise.
10650         (linux_nat_info_proc_cmd_exe): Likewise.
10651         (linux_nat_info_proc_cmd_all): Likewise.
10652         (linux_target_install_ops): Install linux_nat_info_proc.
10653         (_initialize_linux_nat): No longer install "info proc" command
10654         and subcommands.
10655
10656 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10657
10658         * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10659         * config.in, configure: Regenerate.
10660
10661         * target.h (struct target_ops): Add to_fileio_readlink.
10662         (target_fileio_readlink): Add prototype.
10663         * target.c (target_fileio_readlink): New function.
10664
10665         * inf-child.c: Conditionally include <sys/param.h>.
10666         (inf_child_fileio_readlink): New function.
10667         (inf_child_target): Install it.
10668
10669         * remote.c (PACKET_vFile_readlink): New enum value.
10670         (remote_hostio_readlink): New function.
10671         (init_remote_ops): Install it.
10672         (_initialize_remote): Handle vFile:readlink packet type.
10673
10674 2012-01-20  Pedro Alves  <palves@redhat.com>
10675             Ulrich Weigand  <ulrich.weigand@linaro.org>
10676
10677         * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10678         * config.in, configure: Regenerate.
10679
10680         * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10681         to_fileio_pread, to_fileio_close, to_fileio_unlink.
10682         (target_fileio_open): Add prototype.
10683         (target_fileio_pwrite): Likewise.
10684         (target_fileio_pread): Likewise.
10685         (target_fileio_close): Likewise.
10686         (target_fileio_unlink): Likewise.
10687         (target_fileio_read_alloc): Likewise.
10688         (target_fileio_read_stralloc): Likewise.
10689
10690         * target.c: Include "gdb/fileio.h".
10691         (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10692         (default_fileio_target): New function.
10693         (target_fileio_open): Likewise.
10694         (target_fileio_pwrite): Likewise.
10695         (target_fileio_pread): Likewise.
10696         (target_fileio_close): Likewise.
10697         (target_fileio_unlink): Likewise.
10698         (target_fileio_close_cleanup): Likewise.
10699         (target_fileio_read_alloc_1): Likewise.
10700         (target_fileio_read_alloc): Likewise.
10701         (target_fileio_read_stralloc): Likewise.
10702
10703         * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10704         <fcntl.h>, and <unistd.h>.
10705         (inf_child_fileio_open_flags_to_host): New function.
10706         (inf_child_errno_to_fileio_error): Likewise.
10707         (inf_child_fileio_open): Likewise.
10708         (inf_child_fileio_pwrite): Likewise.
10709         (inf_child_fileio_pread): Likewise.
10710         (inf_child_fileio_close): Likewise.
10711         (inf_child_fileio_unlink): Likewise.
10712         (inf_child_target): Install to_fileio routines.
10713
10714         * remote.c (init_remote_ops): Install to_fileio routines.
10715
10716 2012-01-20  Pedro Alves  <palves@redhat.com>
10717             Ulrich Weigand  <ulrich.weigand@linaro.org>
10718
10719         * remote.c (remote_multi_process_p): Only check for multi-process
10720         protocol feature, do not check for extended protocol.
10721         (remote_supports_multi_process): Check for extended protocol here.
10722         (set_general_process): Likewise.
10723         (extended_remote_kill): Likewise.
10724         (remote_pid_to_str): Likewise.
10725         (remote_query_supported): Always query multiprocess mode.
10726
10727 2012-01-20  Pedro Alves  <palves@redhat.com>
10728             Ulrich Weigand  <ulrich.weigand@linaro.org>
10729
10730         * inferior.h (struct inferior): Add fake_pid_p.
10731         * inferior.c (exit_inferior_1): Clear fake_pid_p.
10732         * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10733         magic_null_ptid since the remote side doesn't provide a real PID.
10734
10735 2012-01-19  Tom Tromey  <tromey@redhat.com>
10736
10737         * NEWS: Combine the two Python sections.
10738
10739 2012-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
10740
10741         * target.h (target_close): Update comment on the target's unpush state.
10742
10743 2012-01-19  Pedro Alves  <palves@redhat.com>
10744
10745         * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10746         linux_nat_async directly instead of going through the target
10747         vector.
10748         * target.c (unpush_target): Close target after unpushing it, not
10749         before.
10750
10751 2012-01-19  Gary Benson  <gbenson@redhat.com>
10752
10753         * mdebugread.c (sort_blocks): Replace integer constants with ones
10754         derived from FIRST_LOCAL_BLOCK.
10755
10756 2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
10757             Jan Kratochvil  <jan.kratochvil@redhat.com>
10758
10759         PR gdb/9538
10760         * symfile.c (find_separate_debug_file): New function.
10761         (terminate_after_last_dir_separator): Likewise.
10762         (find_separate_debug_file_by_debuglink): Also try realpath.
10763         * configure.ac (AC_CHECK_FUNCS): Add lstat.
10764         * configure: Regenerate.
10765         * config.in: Regenerate.
10766
10767 2012-01-18  Doug Evans  <dje@google.com>
10768
10769         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10770         (main.o): Remove rule.
10771         * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10772         (--with-sysroot): Rewrite.
10773         * configure: Regenerate.
10774         * config.in: Regenerate.
10775
10776 2012-01-18  Sergio Durigan Junior  <sergiodj@redhat.com>
10777
10778         * parse.c (initialize_expout): New function.
10779         (reallocate_expout): Likewise.
10780         (parse_exp_in_context): Use `initialize_expout' and
10781         `reallocate_expout' when appropriate.
10782
10783 2012-01-18  Pedro Alves  <palves@redhat.com>
10784
10785         * record.c (struct record_breakpoint, record_breakpoint_p)
10786         (record_breakpoints): New.
10787         (record_insert_breakpoint, record_remove_breakpoint): Manage
10788         record breakpoints list.  Only remove breakpoints from the
10789         inferior if they had been inserted there in the first place.
10790
10791 2012-01-17  Doug Evans  <dje@google.com>
10792
10793         * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10794         if we know we don't have a file name to look for.
10795
10796 2012-01-17  Pedro Alves  <palves@redhat.com>
10797
10798         * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10799         the frame's stop reason is UNWIND_UNAVAILABLE.
10800
10801 2012-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
10802
10803         Fix compilation error.
10804         * m2-exp.y (yyerror): Use ANSI C prototype.
10805
10806 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
10807
10808         * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10809         (growbuf_by_size): Likewise.
10810         (yyerror): Likewise.
10811         * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10812         (modblock): Remove variable (was #if 0'ed).
10813         (parse_number): Convert prototype from K&R to ANSI C.
10814         (yyerror): Likewise.
10815         * objc-exp.y (parse_number): Likewise.
10816         (yyerror): Likewise.
10817         (yylex): Remove #if 0'ed code.
10818         * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10819         (yyerror): Likewise.
10820
10821 2012-01-16  Tom Tromey  <tromey@redhat.com>
10822
10823         * NEWS: Add item.
10824         * symtab.h (compare_filenames_for_search): Declare.
10825         * symtab.c (compare_filenames_for_search): New function.
10826         (iterate_over_some_symtabs): Use it.
10827         * symfile.h (struct quick_symbol_functions)
10828         <map_symtabs_matching_filename>: Change spec.
10829         * psymtab.c (partial_map_symtabs_matching_filename): Use
10830         compare_filenames_for_search.  Update for new spec.
10831         * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10832         compare_filenames_for_search.  Update for new spec.
10833         * breakpoint.c (clear_command): Use compare_filenames_for_search.
10834
10835 2012-01-16  Tom Tromey  <tromey@redhat.com>
10836
10837         PR python/13281:
10838         * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10839         (struct main_type) <flag_flag_enum>: New field.
10840         * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10841         * NEWS: Add entries.
10842         * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10843         enums.
10844         * python/lib/gdb/printing.py (_EnumInstance): New class.
10845         (FlagEnumerationPrinter): Likewise.
10846
10847 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
10848
10849         * breakpoint.c (create_sals_from_address_default): New function.
10850         (create_breakpoints_sal_default): Likewise.
10851         (decode_linespec_default): Likewise.
10852         (is_marker_spec): Removed.
10853         (strace_marker_p): New function.
10854         (init_breakpoint_sal): Using `strace_marker_p' instead of
10855         `is_marker_spec'.
10856         (create_breakpoint): Call method `create_sals_from_address' from
10857         breakpoint_ops, replacing code that created SALs conditionally
10858         on the type of the breakpoint.  Call method `create_breakpoints_sal',
10859         replacing code that created breakpoints conditionally on the type
10860         wanted.
10861         (base_breakpoint_create_sals_from_address): New function.
10862         (base_breakpoint_create_breakpoints_sal): Likewise.
10863         (base_breakpoint_decode_linespec): Likewise.
10864         (base_breakpoint_ops): Add methods
10865         `base_breakpoint_create_sals_from_address',
10866         `base_breakpoint_create_breakpoints_sal' and
10867         `base_breakpoint_decode_linespec'.
10868         (bkpt_create_sals_from_address): New function.
10869         (bkpt_create_breakpoints_sal): Likewise.
10870         (bkpt_decode_linespec): Likewise.
10871         (tracepoint_create_sals_from_address): Likewise.
10872         (tracepoint_create_breakpoints_sal): Likewise.
10873         (tracepoint_decode_linespec): Likewise.
10874         (strace_marker_create_sals_from_address): Likewise.
10875         (strace_marker_create_breakpoints_sal): Likewise.
10876         (strace_marker_decode_linespec): Likewise.
10877         (strace_marker_breakpoint_ops): New variable.
10878         (addr_string_to_sals): Remove `marker_spec'.  Call method
10879         `decode_linespec' from breakpoint_ops, replacing code that decoded
10880         an address string into a SAL.  Use `strace_marker_p' instead of
10881         `marker_spec'.
10882         (strace_command): Decide whether we are dealing with a static
10883         tracepoint with marker or not.  Use the appropriate breakpoint_ops.
10884         (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10885         * breakpoint.h (linespec_result, linespec_sals): New forward
10886         declarations.
10887         (breakpoint_ops) <create_sals_from_address>,
10888         <create_breakpoints_sal>, <decode_linespec>: New methods.
10889
10890 2012-01-14  Doug Evans  <dje@google.com>
10891
10892         * NEWS: Update text for "maint set python print-stack".
10893         It is deprecated in gdb 7.4 and deleted in 7.5.
10894
10895 2012-01-13  Eli Zaretskii  <eliz@gnu.org>
10896
10897         * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10898         including curses.h.
10899
10900 2012-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
10901
10902         * configure: Regenerate.
10903         * config.in: Regenerate.
10904
10905 2012-01-12  Keith Seitz  <keiths@redhat.com>
10906
10907         PR mi/10586
10908         * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10909         (ANONYMOUS_UNION_NAME): Define.
10910         (is_path_expr_parent): New function.
10911         (get_path_expr_parent): New function.
10912         (is_anonymous_child): New function.
10913         (create_child_with_value): If the child is anonymous and without
10914         a name, assign an object name to it.
10915         (c_describe_child): Use get_path_expr_parent to determine
10916         the parent expression.
10917         If there field represents an anonymous struct or union and
10918         has no name, set an appropriate display name and expression.
10919         (cplus_describe_child): Likewise.
10920
10921 2012-01-12  Pedro Alves  <palves@redhat.com>
10922
10923         * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10924         available when %ebp is found to be zero (outermost).
10925
10926 2012-01-11  Andreas Tobler  <andreast@fgznet.ch>
10927
10928         * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10929         an internal gdb_static_assert.
10930         * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10931
10932 2012-01-11  Tom Tromey  <tromey@redhat.com>
10933
10934         PR gdb/9598:
10935         * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10936         catch" and "catch throw".
10937
10938 2012-01-11  Paul Hilfinger  <hilfingr@adacore.com>
10939
10940         * blockframe.c (block_innermost_frame): Start search from selected
10941         frame, if present, or otherwise the current frame.
10942
10943         * c-exp.y (variable): Update innermost_block for
10944         'block COLONCOLON NAME' clause.
10945         * m2-exp.y (variable): Ditto.
10946         * objc-exp.y (variable): Ditto.
10947
10948 2012-01-10  Tom Tromey  <tromey@redhat.com>
10949
10950         PR python/13199:
10951         * python/python.c (finish_python_initialization): Set sys.argv.
10952
10953 2012-01-10  Doug Evans  <dje@google.com>
10954
10955         * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd".  New arg
10956         "want_line_info".  All callers updated.
10957         (dwarf_decode_lines_1): New function.
10958         (handle_DW_AT_stmt_list): Add function comment.
10959         New arg "want_line_info".  All callers updated.
10960         (read_file_scope,read_type_unit_scope): Move comment from
10961         handle_DW_AT_stmt_list to here.
10962
10963 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10964
10965         Fix regression after libiberty/ update for GCC PR 6057 and others.
10966         * c-exp.y (operator) <OPERATOR DELETE>
10967         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10968         * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10969         (make_builtin_type, make_name): New variable i, add gdb_assert.
10970         (operator) <OPERATOR NEW>: Update ARGS to 3.
10971         (operator) <OPERATOR DELETE>: Add trailing space.
10972         (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10973         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10974         * cp-support.c (cp_canonicalize_string): Check NULL from
10975         cp_comp_to_string, call warning and return.
10976
10977 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10978
10979         Fix duplicate .o files after omitting libbfd.a.
10980         * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10981         (SFILES): Add corelow.c.
10982         (COMMON_OBS): Add corelow.o.
10983         (ALLDEPFILES): Remove corelow.c.
10984         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10985         * config/alpha/alpha-osf3.mh: Likewise.
10986         * config/alpha/fbsd.mh: Likewise.
10987         * config/arm/nbsdaout.mh: Likewise.
10988         * config/arm/nbsdelf.mh: Likewise.
10989         * config/i386/i386gnu.mh: Likewise.
10990         * config/ia64/hpux.mh: Likewise.
10991         * config/ia64/linux.mh: Likewise.
10992         * config/m32r/linux.mh: Likewise.
10993         * config/m68k/linux.mh: Likewise.
10994         * config/mips/irix5.mh: Likewise.
10995         * config/mips/irix6.mh: Likewise.
10996         * config/pa/hpux.mh: Likewise.
10997         * config/pa/linux.mh: Likewise.
10998         * config/powerpc/aix.mh: Likewise.
10999         * config/sparc/linux.mh: Likewise.
11000         * config/sparc/linux64.mh: Likewise.
11001         * config/sparc/sol2.mh: Likewise.
11002         * config/vax/vax.mh: Likewise.
11003         * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11004         (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11005         (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11006         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11007         (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11008         (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11009         (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11010         (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11011         (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11012         (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11013         (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11014         (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11015         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11016         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11017         (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11018         (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11019         (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11020         (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11021         (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11022         (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11023         (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11024         (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11025         corelow.o from gdb_target_obs.
11026         * corefile.c (core_target): Update the comment on NULL value.
11027         (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11028         * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11029         MATCHES.  Drop YUMMY set on NULL.
11030         (core_close): Do not call exit_inferior_silent on zero PID.  Do not
11031         reclaim CORE_DATA if it is already NULL.
11032
11033 2012-01-09  Doug Evans  <dje@google.com>
11034
11035         * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11036         * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11037
11038 2012-01-09  Keith Seitz  <keiths@redhat.com>
11039
11040         * breakpoint.c (wrapper.h): Don't include.
11041
11042 2012-01-09  Keith Seitz  <keiths@redhat.com>
11043
11044         * Makefile.in (SFILES): Remove wrapper.c.
11045         (HFILES_NO_SRCDIR): Remove wrapper.h.
11046         (COMMON_OBS): Remove wrapper.o.
11047         * cli/cli-interp.c: Don't inlude wrapper.h.
11048         * corelow.c: Likewise.
11049         (core_open): Replace gdb_target_find_new_threads with
11050         TRY_CATCH around target_find_new_threads.
11051         * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11052         * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11053         * varobj.c (varobj_create): Likewise for parse_exp_1 and
11054         evaluate_expression.
11055         (varobj_set_value): Likewise for evaluate_expression and
11056         value_assign.
11057         (install_new_variable): Likewise for value_fetch_lazy.
11058         (adjust_value_for_child_access): Likewise for value_ind.
11059         (c_describe_child): Likewise for value_subscript and
11060         value_ind.
11061         (c_value_of_root): Likewise for evaluate_expression.
11062         * wrapper.c: Remove.
11063         * wrapper.h: Remove.
11064
11065 2012-01-09  Doug Evans  <dje@google.com>
11066
11067         * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11068         partial_read_comp_unit_head.  Replace "buffer", "buffer_size" and
11069         "abfd" args with "section".  All callers updated.
11070         Error checking code moved ...
11071         (error_check_comp_unit_head): ... here.  New function.
11072         (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11073         Delete arg "abfd".  New arg "type_offset".  All callers updated.
11074         (create_debug_types_hash_table): Simplify by using
11075         read_and_check_type_unit_head.
11076
11077         * parser-defs.h (namecopy): Delete.
11078         * parse.c (namecopy, namecopy_size): Move into copy_name.
11079
11080 2012-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
11081
11082         Partially fix duplicate .o files after omitting libbfd.a.
11083         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11084         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11085         * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11086         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11087         * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11088         * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11089         * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11090
11091 2012-01-09  Pedro Alves  <palves@redhat.com>
11092
11093         * MAINTAINERS: Update my email address.
11094
11095 2012-01-08  Doug Evans  <dje@google.com>
11096
11097         * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11098         n_type_units.  Rename type_comp_units to all_type_units.
11099         All uses updated.
11100         (add_signatured_type_cu_to_table): Renamed from
11101         add_signatured_type_cu_to_list.  All callers updated.
11102
11103         * gdbtypes.h (struct cplus_struct_type): Delete member
11104         nfn_fields_total.  All uses removed.
11105
11106 2012-01-06  Doug Evans  <dje@google.com>
11107
11108         * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11109         to top of file.
11110         (dwarf2_find_comp_unit): Delete.
11111         (process_psymtab_comp_unit): Make result "void".
11112         Delete args buffer, info_ptr, buffer_size, and replace with
11113         "section".  All callers updated.
11114         (dwarf2_build_psymtabs_hard): Simplify.
11115
11116 2012-01-06  Sergio Durigan Junior  <sergiodj@redhat.com>
11117             Thiago Jung Bauermann  <bauerman@br.ibm.com>
11118
11119         * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11120         before `struct gdb_exception'.
11121         * breakpoint.c (update_global_location_list_nothrow)
11122         (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11123         * cp-abi.c (value_rtti_type): Likewise.
11124         * cp-support.c (cp_validate_operator): Likewise.
11125         * infrun.c (insert_exception_resume_breakpoint)
11126         (check_exception_resume, keep_going): Likewise.
11127         * mi-interp.c (mi_breakpoint_created)
11128         (mi_breakpoint_modified): Likewise.
11129         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11130         * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11131         (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11132
11133 2012-01-05  Doug Evans  <dje@google.com>
11134
11135         * dwarf2read.c (statement_prologue): Delete, unused.
11136
11137         * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11138         * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11139
11140         * dwarf2read.c (comp_unit_header): Delete, unused.
11141
11142 2012-01-05  Ulrich Weigand  <uweigand@de.ibm.com>
11143
11144         * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11145         * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11146
11147 2012-01-05  Khoo Yit Phang  <khooyp@cs.umd.edu>
11148
11149         * infrun.c (normal_stop): Don't skip calling the normal_stop
11150         observers if the thread was doing a multi-step, but stopped for
11151         some reason other than stepping.
11152
11153 2012-01-05  Pedro Alves  <alves.ped@gmail.com>
11154
11155         * cli/cli-decode.h: Add comments.
11156         (CMD_LIST_AMBIGUOUS): Moved to command.h
11157         (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11158         (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11159         (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11160         (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11161         (add_com, add_com_alias, add_info, add_info_alias)
11162         (complete_on_cmdlist, complete_on_enum, help_list): Remove
11163         declarations.
11164         * command.h: Add and adjust comments.
11165         (CMD_LIST_AMBIGUOUS): Moved here.
11166         (help_cmd, help_cmd_list): Delete declarations.
11167
11168 2012-01-04  Doug Evans  <dje@google.com>
11169
11170         * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11171         All callers updated.
11172         (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11173         Replace all arguments with "per_cu".  All callers updated.
11174
11175         * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11176
11177         * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11178         New arg "per_cu".  All callers updated.
11179
11180         Delete #if 0'd out code.
11181         * language.c (binop_result_type): Delete.
11182         (simple_type, ordered_type, same_type, integral_type): Delete.
11183         (numeric_type, character_type, string_type, boolean_type): Delete.
11184         (float_type, structured_type): Delete.
11185         * language.h: Update.
11186
11187 2012-01-04  Tom Tromey  <tromey@redhat.com>
11188
11189         * python/py-value.c (valpy_binop): Initialize 'res_val'.
11190
11191 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11192
11193         * corefile.c (close_exec_file): Delete.
11194         (reopen_exec_file): Remove commented out code that seems related
11195         to close_exec_file, which is being deleted here.
11196         * inferior.h (close_exec_file): Delete.
11197         * fork-child.c (fork_inferior): Remove call to fork_inferior.
11198
11199 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11200
11201         * ada-lang.c: #include "cli/cli-utils.h".
11202         (get_selections): Use skip_spaces.
11203         (ada_get_next_arg): Use skip_spaces and skip_to_space.
11204         (catch_ada_exception_command_split): Use skip_spaces.
11205         (ada_decode_assert_location): Likewise.
11206
11207 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11208
11209         * linespec.c (decode_line_internal): Check for C++ or Java
11210         compound constructs only if the current language is C, C++
11211         or Java.
11212
11213 2012-01-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
11214
11215         Revert:
11216         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11217                     Joel Brobecker  <brobecker@adacore.com>
11218         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11219         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11220         3 times.
11221         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11222         fall through into AT_ENTRY_POINT.
11223         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
11224         DUMMY_ADDR with it.
11225         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11226         PPC_INSN_SIZE skip to 3 times.
11227
11228 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11229
11230         * linespec.c (add_minsym): Preserve function descriptors.
11231
11232 2012-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
11233
11234         * breakpoint.c (all_locations_are_pending): Consider locations
11235         in program spaces executing during startup pending as well.
11236
11237 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11238
11239         Copyright year update in most files of the GDB Project.
11240
11241 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11242
11243         * copyright.sh: Delete.
11244         * copyright.py: Rewrite.
11245
11246 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11247
11248         * gnulib/extra/update-copyright: New file, imported from gnulib.
11249
11250 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11251
11252         * README (Copyright and License Notices): New section.
11253
11254 2012-01-03  Tom Tromey  <tromey@redhat.com>
11255
11256         PR python/12533:
11257         * python/py-value.c (valpy_dereference, valpy_get_address
11258         valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11259         (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11260         (valpy_absolute, valpy_richcompare): Free intermediate values.
11261
11262 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
11263
11264         * ada-lang.c: Reformat the copyright notice.
11265
11266 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11267
11268         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11269         * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11270         (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11271         (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11272         Revert this part of:
11273         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11274         Build gdb directly from *.o files not using libgdb.a.
11275         * Makefile.in (COMMON_OBS): Remove solib-target.o.
11276
11277 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11278
11279         * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11280         gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11281         Reformat the copyright header.
11282
11283 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11284
11285         Revert this part of:
11286         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11287         Remove the gdbtui binary.
11288         * gdb.c (main): Remove args.interpreter_p initialization.
11289         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11290         * main.h (struct captured_main_args): Remove interpreter_p.
11291
11292 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11293
11294         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11295
11296 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11297
11298         * top.c (print_gdb_version): Update copyright year.
11299
11300 2012-01-02  Yao Qi  <yao@codesourcery.com>
11301
11302         * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11303
11304 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11305             Joel Brobecker  <brobecker@adacore.com>
11306
11307         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11308         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11309         3 times.
11310         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11311         fall through into AT_ENTRY_POINT.
11312         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
11313         DUMMY_ADDR with it.
11314         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11315         PPC_INSN_SIZE skip to 3 times.
11316
11317 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11318
11319         * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11320         the return value.
11321         * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11322
11323 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11324
11325         Build gdb directly from *.o files not using libgdb.a.
11326         * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11327         (COMMON_OBS): Remove solib-target.o.
11328         (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11329         (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11330         (LIBGDB_OBS, libgdb.a): Move it above.
11331         * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11332         (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11333         (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11334         (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11335         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11336         (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11337         (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11338         (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11339         (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11340         (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11341         (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11342         (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11343         (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11344         (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11345         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11346         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11347         (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11348         (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11349         (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11350         (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11351         (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11352         (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11353         (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11354         (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11355         (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11356         (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11357         (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11358
11359 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11360
11361         Remove the gdbtui binary.
11362         * .gitignore (/gdbtui): Remove.
11363         * Makefile.in (TUI): Remove.
11364         (SUBDIR_TUI_OBS): Remove tui-main.o.
11365         (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11366         (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11367         (tui-main.o): Remove.
11368         (all_object_files): Remove tui-main.o.
11369         * NEWS: New note for the gdbtui removal.
11370         * configure: Rebuilt.
11371         * configure.ac: No longer add all-tui, clean-tui, install-tui and
11372         uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11373         CONFIG_UNINSTALL respectively.
11374         * gdb.c (main): Remove args.interpreter_p initialization.
11375         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11376         * main.h (struct captured_main_args): Remove interpreter_p.
11377         * tui/tui-main.c: Remove.
11378
11379 2012-01-01  Doug Evans  <dje@google.com>
11380
11381         * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11382         (dwarf2_physname, read_import_statement): Ditto.
11383         (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11384         (process_structure_scope read_subroutine_type): Ditto.
11385         (read_typedef, load_partial_dies, read_partial_die): Ditto.
11386         (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11387         (dwarf2_fetch_die_location_block): Ditto.
11388         (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11389
11390         * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11391         All callers updated.
11392         (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11393         (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11394         (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11395
11396         * dwarf2read.c (load_cu): Move assert to more useful location.
11397
11398         * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11399         All callers updated.
11400
11401         * dwarf2read.c (dwarf2_per_objfile): Add comment.
11402         (dwarf2_elf_names): Minor reformat.
11403         (dwarf2_per_cu_data): Tweak comment.
11404         (dwarf2_read_section): Fix comment.
11405         (create_all_comp_units): Fix comment.
11406         (load_full_comp_unit): Fix comment.
11407         (process_full_comp_unit): Fix comment.
11408         (read_signatured_type): Fix comment.
11409
11410 For older changes see ChangeLog-2011.
11411 \f
11412 Local Variables:
11413 mode: change-log
11414 left-margin: 8
11415 fill-column: 74
11416 version-control: never
11417 coding: utf-8
11418 End: