* breakpoint.c (clear_command): Add cleanup for
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2012-11-10  Keith Seitz  <keiths@redhat.com>
2
3         * breakpoint.c (clear_command): Add cleanup for
4         sals.sals if an argument is given.
5
6         * linespec.c (parse_linespec): Do cleanups after
7         parsing a convenience variable.
8
9 2012-11-10  Keith Seitz  <keiths@redhat.com>
10
11         PR gdb/14288
12         * c-valprint.c (c_val_print): For character arrays
13         with "print null" option on, print ellipses if
14         the output is truncated and the next character is not \000.
15         * valprint.c (MAX_WCHARS): Define.
16         (WCHAR_BUFLEN): Likewise.
17         (WCHAR_BUFLEN_MAX): Likewise.
18         (struct converted_character): New structure.
19         (count_next_character): New function.
20         (print_converted_chars_to_obstack): New function.
21         (generic_printstr): Rewrite using count_next_character
22         and print_converted_chars_to_obstack.
23
24 2012-11-10  Stephane Carrez  <Stephane.Carrez@gmail.com>
25
26         * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
27         while executing the gdb command.
28         (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
29         are called from prompt_for_continue.
30         * tui/tui-io.c (tui_redisplay_readline): Likewise.
31
32 2012-11-10  Stephane Carrez  <Stephane.Carrez@gmail.com>
33
34         PR tui/9584
35
36         * tui/tui.c (tui_rl_command_key): Do not call execute_command
37         but insert the command to execute in readline's buffer.
38
39 2012-11-09  Tom Tromey  <tromey@redhat.com>
40
41         * gdbarch.sh (target_gdbarch): Remove macro.
42         (get_target_gdbarch): Rename to target_gdbarch.
43         * gdbarch.c, gdbarch.h: Rebuild.
44         * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
45         arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
46         darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
47         filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
48         ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
49         linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
50         mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
51         mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
52         nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
53         procfs.c, progspace.c, ravenscar-thread.c, record.c,
54         remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
55         rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
56         solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
57         solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
58         solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
59         spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
60         target-descriptions.c, target.c, target.h, tracepoint.c,
61         windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
62         common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
63         python/py-inferior.c, python/python.c: Update.
64
65 2012-11-09  Andrew Burgess  <aburgess@broadcom.com>
66
67         * source.c (print_source_lines_base): Add fullname field giving
68         full path to file in mi output.
69         * NEWS: Mention the new fullname field.
70
71 2012-11-09  Yao Qi  <yao@codesourcery.com>
72
73         * NEWS: Mention the fix to the ambiguity of 'fo' command.
74
75 2012-11-09  Pedro Alves  <palves@redhat.com>
76
77         PR gdb/14306
78
79         * infrun.c: Include target-descriptions.h.
80         (follow_exec): Fetch new target description.
81
82 2012-11-09  Yao Qi  <yao@codesourcery.com>
83
84         * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
85         0x8d (lea).
86
87 2012-11-09  Yao Qi  <yao@codesourcery.com>
88
89         * breakpoint.c: Declare set_tracepoint_count.
90         (install_breakpoint): Call set_tracepoint_count if B is a
91         tracepoint.
92         (trace_command): Don't call set_tracepoint_count.  Re-indent.
93         (strace_command, ftrace_command):
94         (create_tracepoint_from_upload): Likewise.
95
96 2012-11-09  Pedro Alves  <palves@redhat.com>
97
98         * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
99         (get_target_gdbarch) <gdbarch.h>: New function.
100         (startup_gdbarch) <gdbarch.h>: Declare.
101         <gdbarch.c> (target_gdbarch): Delete.
102         <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
103         current inferior's gdbarch.
104         <gdbarch.c> (get_target_gdbarch): New function.
105         * inferior.c: Include target-descriptions.h.
106         (free_inferior): Free target description info.
107         (add_inferior_with_spaces): Set the inferior's initial
108         architecture.
109         (clone_inferior_command): Copy the original inferior's target
110         description if it was user specified.
111         (initialize_inferiors): Add comment.
112         * inferior.h (struct target_desc_info): Forward declare.
113         (struct inferior) <gdbarch>: New field.
114         * linux-nat.c: Include target-descriptions.h.
115         (linux_child_follow_fork): Copy the parent's architecture and
116         target description to the child.
117         * target-descriptions.c: Include inferior.h.
118         (struct target_desc_info): New structure, holding the equivalents
119         of ...
120         (target_desc_fetched, current_target_desc)
121         (target_description_filename): ... these removed globals.
122         (get_tdesc_info, target_desc_info_from_user_p)
123         (copy_inferior_target_desc_info, target_desc_info_free): New.
124         (target_desc_fetched, current_target_desc)
125         (target_description_filename): Reimplemented as convenience
126         macros.
127         (tdesc_filename_cmd_string): New global.
128         (set_tdesc_filename_cmd): Copy the string manipulated by the "set
129         tdescs filename ..." commands to the per-inferior equivalent.
130         (show_tdesc_filename_cmd): Get the value to show from the
131         per-inferior description filename.
132         (_initilize_target_descriptions): Change the "set/show tdesc
133         filename" commands' variable.
134         * target-descriptions.h (struct target_desc, struct target_desc_info)
135         (struct inferior): Forward declare.
136         (target_find_description, target_clear_description)
137         (target_current_description): Adjust comments.
138         (copy_inferior_target_desc_info, target_desc_info_free)
139         (target_desc_info_from_user_p). Declare.
140
141 2012-11-08  Stephane Carrez  <Stephane.Carrez@gmail.com>
142
143         * tui/tui-hooks.c (tui_about_to_proceed): New function.
144         (tui_target_wait_hook): Remove.
145         (tui_install_hooks): Install the about_to_proceed observer.
146         (tui_remove_hooks): And remove it here.
147
148 2012-11-08  Tom Tromey  <tromey@redhat.com>
149
150         * linux-tdep.c (linux_make_siginfo_note): New function.
151         (linux_make_corefile_notes): Use it.
152         * corelow.c (get_core_siginfo): New function.
153         (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
154
155 2012-11-08  Tom Tromey  <tromey@redhat.com>
156
157         PR gdb/14704:
158         * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
159         (zlib_decompress_section): Remove.
160         (gdb_bfd_map_section): Only check for compressed section
161         in mmap case.  Use bfd_get_full_section_contents.
162         * osabi.c (check_note): Add 'sectsize' argument.  Read
163         section data.
164         (generic_elf_osabi_sniff_abi_tag_sections): Don't read
165         section data.  Update for check_note change.
166         * xcoffread.c (xcoff_initial_scan): Use
167         bfd_get_full_section_contents.
168         * py-auto-load.c (auto_load_section_scripts): Use
169         bfd_get_full_section_contents.
170         * contrib/cc-with-tweaks.sh: Add -Z option.
171
172 2012-11-08  Tom Tromey  <tromey@redhat.com>
173
174         * python/py-bpevent.c: Include defs.h.
175         * python/py-continueevent.c: Include defs.h.
176         * python/py-event.c: Include defs.h.
177         * python/py-event.h: Don't include defs.h.
178         * python/py-events.h: Don't include defs.h.
179         * python/py-evts.c: Include defs.h.
180         * python/py-exitedevent.c: Include defs.h.
181         * python/py-newobjfileevent.c: Include defs.h.
182         * python/py-signalevent.c: Include defs.h.
183         * python/py-stopevent.c: Include defs.h.
184         * python/py-threadevent.c: Include defs.h.
185
186 2012-11-08  Pierre Muller  <muller@sourceware.org>
187
188         * update-web-ari.sh (print_heading): Add number of files
189         checked.
190         (nb_files): New variable counting the number of sources
191         files found by gdb_find.sh script.
192         (debug_awk): New variable to allow extra debug output.
193         (indexes): Add more information if DEBUG_AWK is set.
194
195 2012-11-08  Edjunior Machado  <emachado@linux.vnet.ibm.com>
196
197         * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
198         ppc64_standard_linkage3): Mark ld r11 instructions as optional,
199         following the change in PLT call stubs on linker.
200
201 2012-11-08  Pierre Muller  <muller@sourceware.org>
202
203         * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
204         as default language.
205         (AWK): Use = instead of == for sh test to avoid warning.
206         (Linux rule): Correct [:digit] into [[:digit:]].
207         (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
208         (vasprintf rule): Adapt to common subdirectory moves.
209         (xasprintf rule): Idem.
210         (xvasprintf rule): Idem.
211         (var_boolean rule): Accept occurence in == or != test.
212
213         * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
214
215 2012-11-08  Stephane Carrez  <Stephane.Carrez@gmail.com>
216
217         * tui/tui-hooks.c (tui_inferior_exit): New function.
218         (tui_detach_hook): Remove.
219         (tui_install_hooks): Install the inferior exit observer.
220         (tui_remove_hooks): Remove it.
221
222 2012-11-08  Yao Qi  <yao@codesourcery.com>
223
224         PR gdb/14777.
225         * source.c (_initialize_source): Call add_com_alias to abbreviate
226         'forward-search' as 'fo'.
227
228 2012-11-07  Pedro Alves  <palves@redhat.com>
229
230         * arm-tdep.c: Make defs.h be the first include.
231         * coff-pe-read.c: Ditto.
232         * gnu-nat.c: Ditto.
233         * go32-nat.c: Ditto.
234         * i386-nat.c: Ditto.
235         * ppcnbsd-nat.c: Ditto.
236         * ada-varobj.h: Don't include defs.h.
237         * i386-darwin-tdep.h: Ditto.
238         * i386-nat.h: Ditto.
239
240 2012-11-07  Pedro Alves  <palves@redhat.com>
241
242         * MAINTAINERS: New FSF-appointed maintainers replace the Steering
243         Committee.
244
245 2012-11-07  Pierre Muller  <muller@sourceware.org>
246
247         * common/linux-osdata.c (dirent.h): ARI fix: Remove.
248         File already uses "gdb_dirent.h" header.
249
250 2012-11-07  Yao Qi  <yao@codesourcery.com>
251
252         * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
253         tracepoint_count'.
254
255 2012-11-06  Tom Tromey  <tromey@redhat.com>
256
257         * target.h (inferior_has_forked, inferior_has_vforked)
258         (inferior_has_execd, inferior_has_called_syscall): Remove
259         declarations.
260
261 2012-11-06  Pierre Muller  <muller@sourceware.org>
262
263         * remote.c (remote_insert_hw_breakpoint): ARI fix,
264         add missing internalization markup.
265
266 2012-11-06  Pedro Alves  <palves@redhat.com>
267
268         PR gdb/14810
269
270         * breakpoint.c (bpstat_stop_status): Skip disabled locations.
271
272 2012-11-06  Pierre Muller  <muller@sourceware.org>
273
274         * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
275         is not executable.
276
277 2012-11-05  Joel Brobecker  <brobecker@adacore.com>
278
279         * gnulib/update-gnulib.sh: New script.
280
281 2012-11-05  Stephane Carrez  <Stephane.Carrez@gmail.com>
282
283         * MAINTAINERS: Update my email address.
284
285 2012-11-05  Tom Tromey  <tromey@redhat.com>
286
287         * frame.c (put_frame_register): Don't use temporary buffer.
288
289 2012-11-05  Pedro Alves  <palves@redhat.com>
290
291         * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
292         child.  Clear 'pending_detach'.
293         * infrun.c (handle_vfork_child_exec_or_exit): Clear
294         'pending_detach' in the vfork parent.
295
296 2012-11-05  Doug Evans  <dje@google.com>
297
298         Add support for DWP files.  http://gcc.gnu.org/wiki/DebugFissionDWP
299         * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
300         * dwarf2read.c: #include "elf-bfd.h".
301         (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
302         (dwop_section_names): Renamed from dwo_section names.  All uses
303         updated.  Add entries for .debug_cu_index, .debug_tu_index.
304         (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
305         All uses updated.
306         (struct dwp_sections): New type.
307         (struct virtual_dwo_sections): New type.
308         (struct dwp_hash_table): New type.
309         (struct dwp_file): New type.
310         (init_cutu_and_read_dies): Ensure DWO info/types section has been
311         read in.  Handle DWOs coming from DWP files.
312         (lookup_dwo_file_slot): New function.
313         (dwarf2_locate_dwo_sections): Move definition closer to use.
314         (create_dwo_debug_info_hash_table_reader): Renamed from
315         create_debug_info_hash_table_reader.  All callers updated.
316         (create_dwo_debug_info_hash_table): Renamed from
317         create_debug_info_hash_table.  All callers updated.
318         (create_dwp_hash_table): New function.
319         (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
320         (lookup_dwo_in_dwp): New function.
321         (try_open_dwop_file): Renamed from try_open_dwo_file.  New parameter
322         is_dwp.  All callers updated.
323         (open_dwop_file): Renamed from open_dwo_file.  All callers updated.
324         (open_and_init_dwo_file): Renamed from init_dwo_file.
325         All callers updated.
326         (lookup_dwo_file): Delete.
327         (dwarf2_locate_dwp_sections): New function.
328         (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
329         (allocate_dwp_loaded_cutus_table): New function.
330         (open_and_init_dwp_file): New function.
331         (lookup_dwo_cutu): New function.
332         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
333
334 2012-11-03  Yao Qi  <yao@codesourcery.com>
335
336         Fix PR gdb/14617.
337         * breakpoint.c (trace_pass_set_count): Call
338         observer_notify_breakpoint_modified instead of
339         observer_notify_tracepoint_modified.
340         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
341
342 2012-11-02  Tom Tromey  <tromey@redhat.com>
343
344         * breakpoint.c (catch_syscall_completer): Pass 'word' as second
345         argument to complete_on_enum.
346
347 2012-11-02  Tom Tromey  <tromey@redhat.com>
348
349         * configure: Rebuild.
350         * configure.ac (build_warnings): Add -Wempty-body.
351         * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
352         * remote.c (handle_notification): Use braces for empty 'else' body.
353         * s390-tdep.c (s390_analyze_prologue): Use braces for empty
354         'else' body.
355         * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
356         'else' body.
357         * solib-som.c (som_relocate_section_addresses): Use braces
358         for empty 'else' body.
359         * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
360         (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
361
362 2012-11-02  Pedro Alves  <palves@redhat.com>
363
364         PR gdb/14766
365
366         * infrun.c (handle_inferior_event)
367         <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
368         null_ptid before handling a vfork child exec or exit.  Switch to
369         the event ptid afterwards.
370
371 2012-11-02  Yao Qi  <yao@codesourcery.com>
372
373         * std-operator.def: Remove OP_LABELED.
374         * eval.c: Remove the declaration of 'get_label'.
375         (get_label): Remove.
376         (evaluate_struct_tuple): Remove code handling OP_LABELED.
377         Update comment.
378         Remove local variable 'variantno' and related code.
379         Replace 'substruct_type' with 'struct_type'.  Replace 'subfieldno'
380         with 'fieldno'.
381         * expprint.c (print_subexp_standard): Likewise.
382         (dump_subexp_body_standard): Likewise.
383         * parse.c (operator_length_standard): Likewise.
384
385 2012-11-01  Pierre Muller  <muller@ics.u-strasbg.fr>
386
387         Incorporate ARI web page generator into GDB sources.
388         * contrib/ari/create-web-ari-in-src.sh: New file.
389         * contrib/ari/gdb_ari.sh: New file.
390         * contrib/ari/gdb_find.sh: New file.
391         * contrib/ari/update-web-ari.sh: New file.
392
393 2012-10-31  Tom Tromey  <tromey@redhat.com>
394
395         * gdbarch.c: Rebuild.
396         * gdbarch.sh: Remove references to gdbarch_swap.
397         * corelow.c (core_open): Remove obsolete comment.
398
399 2012-10-31  Andrew Burgess  <aburgess@broadcom.com>
400
401         PR cli/14772
402         * c-typeprint.c (c_print_type): Don't print a space for vector
403         types, this is handled within the suffix.
404         (c_type_print_varspec_suffix): Add a space to vector suffix.
405
406 2012-10-26  Pedro Alves  <palves@redhat.com>
407
408         * amd64-tdep.c (amd64_relocate_instruction): Use
409         store_unsigned_integer instead of memcpy.
410         * i386-tdep.c (i386_relocate_instruction): Ditto.
411
412 2012-10-26  Pedro Alves  <palves@redhat.com>
413
414         * infrun.c (handle_inferior_event): Merge handling of
415         TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
416         switch case.
417
418 2012-10-26  Pedro Alves  <palves@redhat.com>
419
420         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
421         Remove comment.
422
423 2012-10-26  Pedro Alves  <palves@redhat.com>
424
425         * target.c (target_waitstatus_to_string): Handle
426         TARGET_WAITKIND_VFORK_DONE.
427
428 2012-10-26  Pedro Alves  <palves@redhat.com>
429
430         * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
431         as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
432
433 2012-10-24  Tristan Gingold  <gingold@adacore.com>
434
435         * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
436         Add comments.
437
438 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
439
440         * ravenscar-thread.c (ravenscar_wait): Only update the list
441         of threads and inferior_ptid if the inferior is still alive.
442
443 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
444
445         * ada-lang.c (is_known_support_routine): Use lbasename when
446         matching the symtab's filename against
447         known_runtime_file_name_patterns.
448
449 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
450
451         * ada-lang.c (ada_same_array_size_p): New function.
452         (ada_promote_array_of_integrals): New function.
453         (coerce_for_assign): Add handling of arrays where the elements
454         are integrals of a smaller size than the size of the target
455         array element type.
456
457 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
458
459         * doublest.c (convert_doublest_to_floatformat): Fix comparison
460         against maximum exponent value.
461
462 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
463
464         * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
465         "unwind-seh.c".
466
467 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
468
469         * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
470         strip typedef layer when computing the fixed type's field type,
471         only when computing its size.
472
473 2012-10-24  Mark Kettenis  <kettenis@gnu.org>
474
475         PR gdb/12783
476         * i386-tdep.c (i386_return_value): Handle complex double and long
477         double.
478
479 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
480
481         * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
482         New local variable args_len.
483         Quote the name of the executable when computing the command line.
484
485 2012-10-23  Mark Kettenis  <kettenis@gnu.org>
486
487         PR gdb/12796
488         PR gdb/12798
489         PR gdb/12800
490         * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
491         AMD64_FTAG_REGNUM.
492         * amd64-tdep.c (amd64_classify): Classify complex types.
493         (amd64_return_value): Handle the COMPLEX_X87 class.
494
495 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
496
497         * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
498         (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
499
500 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
501
502         * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
503         function.
504         (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
505         to amd64_windows_auto_wide_charset.
506
507 2012-10-23  Yao Qi  <yao@codesourcery.com>
508
509         * event-top.c (mark_async_signal_handler_wrapper): Remove.
510         * event-top.h: Remove its declaration.
511         (async_request_quit): Call mark_async_signal_handler instead of
512         mark_async_signal_handler_wrapper.
513         (async_do_nothing, async_disconnect): Likewise.
514         (async_stop_sig): Likewise.
515         * remote.c (handle_remote_sigint): Likewise.
516         (handle_remote_sigint_twice): Likewise.
517
518 2012-10-23  Yao Qi  <yao@codesourcery.com>
519
520         * event-top.c (sigint_token, sighup_token): Replace 'void *'
521         with 'static struct async_signal_handler *'.
522         (sighup_token, sigquit_token, sigstp_token): Likewise.
523
524 2012-10-22  Ali Anwar  <ali_anwar@codesourcery.com>
525
526         * gdbarch.sh (function_list): Use 'pstring' when printing
527         a variable which could return NULL.
528         * gdbarch.c: Regenerate.
529
530 2012-10-10  Joel Brobecker  <brobecker@adacore.com>
531             Tom Tromey  <tromey@redhat.com>
532
533         * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
534         inneffective if condition by gdb assertion.  Add function
535         description comment.
536
537 2012-10-19  Joel Brobecker  <brobecker@adacore.com>
538
539         * parser-defs.h (struct exp_descriptor): Document constraint
540         on return value for "op_name" callbacks.
541
542 2012-10-18  Tom Tromey  <tromey@redhat.com>
543
544         * tracepoint.c (print_one_static_tracepoint_marker): Constify.
545         * symtab.c (iterate_over_some_symtabs): Constify.
546         * source.h (symtab_to_fullname): Return 'const char *'.
547         * source.c (symtab_to_fullname): Return 'const char *'.
548         * python/py-symtab.c (stpy_fullname): Constify.
549         * cli/cli-cmds.c (edit_command): Constify.
550         * breakpoint.c (print_breakpoint_location)
551         (update_static_tracepoint): Constify.
552
553 2012-10-18  Tom Tromey  <tromey@redhat.com>
554
555         * breakpoint.c (compare_breakpoints): Fix comparison.
556
557 2012-10-18  Tom Tromey  <tromey@redhat.com>
558
559         * valprint.c (generic_emit_char, generic_printstr): Pass size of
560         gdb_wchar_t to convert_between_encodings.
561
562 2012-10-17  Yao Qi  <yao@codesourcery.com>
563
564         * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
565         more parameter 'inferior'.
566         * corefile.c (write_memory_with_notification): Caller update.
567
568         * mi/mi-cmd-var.c: Include "mi-main.h".
569         (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
570         to 1 and restore it later.
571         * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
572         and "data-write-memory-bytes.
573         * mi/mi-interp.c: Include objfiles.h.
574         (mi_interpreter_init): Call observer_attach_memory_changed.
575         (mi_memory_changed): New.
576         * mi/mi-main.h (struct mi_suppress_notification) <memory>:
577         New field.
578
579         * NEWS: Mention new MI notification "memory-changed".
580
581 2012-10-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
582
583         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
584
585 2012-10-15  Doug Evans  <dje@google.com>
586
587         New option -nh: inhibit loading of ~/.gdbinit.
588         * NEWS: Mention -nh.
589         * main.c (captured_main): Recognize and process -nh.
590         (print_gdb_help): Mention -nh.
591         * gdb.1: Mention -nh.  Remove erroneous docs on -nx behavior.
592
593 2012-10-15  H.J. Lu  <hongjiu.lu@intel.com>
594
595         PR backtrace/14646
596         PR gdb/14647
597         * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
598         pc_regnum_from_eax.
599         * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
600         nor pc_regnum_from_eax.
601         * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
602         nor pc_regnum_from_eax.
603
604 2012-10-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
605
606         Fix entry values resolving in inlined frames.
607         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
608         gdbarch and caller_frame initialization later.  Skip INLINE_FRAME
609         entries of FRAME.
610
611 2012-10-15  Joel Brobecker  <brobecker@adacore.com>
612
613         * configure.ac: Build with -DMS_WIN64 if building with Python
614         enabled using GCC on amd64-windows.
615         * configure: Regenerate.
616
617 2012-10-15  Tom Tromey  <tromey@redhat.com>
618
619         PR python/14635:
620         * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
621         to Py_None.
622
623 2012-10-15  Tom Tromey  <tromey@redhat.com>
624
625         PR python/14634:
626         * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
627
628 2012-10-11  Andrew Burgess  <aburgess@broadcom.com>
629
630         * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
631         reset thread numbering back to 1.
632
633 2012-10-11  Doug Evans  <dje@google.com>
634
635         PR breakpoints/14643.
636         * linespec.c (struct ls_parser): New member keyword_ok.
637         (linespec_lexer_lex_string): Add comment.
638         (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
639         for one.
640         (parse_linespec): Set keyword_ok.
641
642 2012-10-10  Doug Evans  <dje@google.com>
643
644         * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
645         "0x" prefix on address in log message.
646
647         * dwarf2read.c (read_1_byte): Add const to buf parameter.
648         (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
649         (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
650         (lookup_dwo_file): Add const to dwo_name parameter.
651         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
652
653 2012-10-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
654
655         Fix crash during stepping on ppc32.
656         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
657         SYM.
658
659 2012-10-03  Doug Evans  <dje@google.com>
660
661         PR symtab/14601
662         * buildsym.c (buildsym_init): Reset using_directives to NULL.
663
664 2012-10-02  Andrew Burgess  <aburgess@broadcom.com>
665
666         * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
667         output and use uint32_t not long to ensure 4 byte size.
668
669 2012-10-02  Joel Brobecker  <brobecker@adacore.com>
670
671         * rs6000-nat.c (add_vmap): Set "last" to "next" after having
672         unref'ed it.
673
674 2012-10-01  Andrew Burgess  <aburgess@broadcom.com>
675
676         * target.c (simple_search_memory): Include access length in
677         warning message.
678
679 2012-09-28  Nathan Miller  <nathanm2@us.ibm.com>
680             Edjunior Machado  <emachado@linux.vnet.ibm.com>
681
682         PR gdb/13989
683         * solib.c (solib_find): Prevent GDB from loading native libraries when
684         debugging a cross-target corefile.
685
686 2012-09-28  selven  <pcthegreat@gmail.com>
687
688         Make definition match declaration.
689
690         * regcache.c (regcache_register_status): Change return type to
691         enum register_status.
692
693 2012-09-28  Yao Qi  <yao@codesourcery.com>
694
695         * mi/mi-main.c (mi_cmd_data_write_memory): Call
696         write_memory_with_notification instead of write_memory.
697         (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
698         instead of target_write_memory.
699
700 2012-09-28  Yao Qi  <yao@codesourcery.com>
701
702         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
703         when the length of content is not an even number.
704
705 2012-09-27  Tom Tromey  <tromey@redhat.com>
706
707         Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
708         * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
709
710 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
711
712         * sol-thread.c (sol_thread_fetch_registers)
713         (sol_thread_store_registers): Delete commented out code.
714
715 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
716
717         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
718         Move these functions to sparc-sol-thread.c.
719         * sparc-sol-thread.c: New file.
720         * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
721         sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
722         configurations.
723         * configure: Regenerate.
724
725 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
726
727         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
728         Remove commented-out code.
729
730 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
731
732         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
733         Enable this code for sparc hosts only.
734
735 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
736
737         * procfs.h (procfs_find_LDT_entry): Add declaration.
738         * sol-thread.c (ps_lgetLDT): Delete local declaration of
739         function procfs_find_LDT_entry.
740
741 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
742
743         * procfs.c (proc_get_LDT_entry): Make static.
744
745 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
746
747         * procfs.c (proc_find_memory_regions): Fix declaration.
748
749 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
750
751         * amd64-tdep.c (amd64_return_value): Revert previous change
752         that used TYPE_LENGTH directly.
753         * bfin-tdep.c (bfin_extract_return_value): Likewise.
754         (bfin_store_return_value): Likewise.
755         * cris-tdep.c (cris_store_return_value): Likewise.
756         (cris_extract_return_value): Likewise.
757         * h8300-tdep.c (h8300_extract_return_value): Likewise.
758         * hppa-tdep.c (hppa64_return_value): Likewise.
759         * lm32-tdep.c (lm32_store_return_value): Likewise.
760         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
761         * spu-tdep.c (spu_value_from_register): Likewise.
762         * vax-tdep.c (vax_return_value): Likewise.
763
764 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
765
766         * gdbtypes.c (lookup_array_range_type): Expand parameters
767         LOW_BOUND and HIGH_BOUND to LONGEST.
768         (lookup_string_range_type): Likewise.
769         * gdbtypes.h (lookup_array_range_type): Likewise.
770         (lookup_string_range_type): Likewise.
771         * valops.c (value_cstring): Expand parameter LEN to ssize_t.
772         Expand HIGHBOUND to ssize_t.
773         (value_string): Likewise.
774         * value.h (value_cstring): Expand parameter LEN to ssize_t.
775         (value_string): Likewise.
776
777 2012-09-27  Yao Qi  <yao@codesourcery.com>
778
779         PR breakpoints/13898
780         * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
781         * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
782         per breakpoint type.
783
784 2012-09-26  Pierre Muller  <muller@ics.u-strasbg.fr>
785
786         * procfs.c: Add gdb_bfd header.
787         * rs6000-nat.c: Likewise.
788         * solib-pa64.c: Likewise.
789         * spu-linux-nat.c: Likewise.
790         * windows-nat.c: Likewise.
791
792 2012-09-26  Tom Tromey  <tromey@redhat.com>
793
794         * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
795
796 2012-09-26  Tom Tromey  <tromey@redhat.com>
797
798         * dwarf2read.c (mark_common_block_symbol_computed): New function.
799         (read_common_block): Handle child DIEs with
800         DW_AT_data_member_location.
801         (new_symbol_full): Add special case for common blocks.
802
803 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
804             Tom Tromey  <tromey@redhat.com>
805
806         * dwarf2read.c (read_common_block): Rewrite.
807         (new_symbol_full): Handle DW_TAG_common_block.
808         * f-lang.c (head_common_list, find_common_for_function):
809         Remove.
810         * f-lang.h (struct common_entry, struct saved_f77_common,
811         SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
812         COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
813         BLANK_COMMON_NAME_LOCAL): Remove.
814         (struct common_block): New.
815         * f-valprint.c (list_all_visible_commons): Remove.
816         (info_common_command_for_block): New function.
817         (info_common_command): Use it.
818         * stack.c (iterate_over_block_locals): Special case for
819         COMMON_BLOCK_DOMAIN.
820         * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
821         constant.
822         (struct general_symbol_info) <value.common_block>: New field.
823         (SYMBOL_VALUE_COMMON_BLOCK): New define.
824
825 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
826             Tom Tromey  <tromey@redhat.com>
827
828         * f-lang.c (allocate_saved_bf_node,
829         allocate_saved_function_node, allocate_saved_f77_common_node,
830         allocate_common_entry_node, tail_common_list, current_common,
831         saved_bf_list, saved_bf_list_end, current_head_bf_list,
832         tmp_bf_ptr, add_common_block, add_common_entry,
833         find_first_common_named, patch_common_entries,
834         patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
835         global_remote_debug, get_bf_for_fcn, saved_function_list,
836         saved_function_list_end, clear_function_list, struct saved_fcn,
837         struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
838         SAVED_BF, SAVED_BF_PTR): Remove.
839         * f-lang.h (tail_common_list, current_common,
840         UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
841         BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
842         DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
843         real_main_c_value): Remove.
844         * f-valprint.c (there_is_a_visible_common_named): Remove.
845
846 2012-09-26  Andrew Burgess  <aburgess@broadcom.com>
847
848         * breakpoint.c (update_global_location_list): Ignore previous
849         duplicate status of a breakpoint when starting a new scan for
850         duplicate breakpoints.
851
852 2012-09-26  Karthik Bhat  <kv.bhat@samsung.com>
853         PR breakpoints/14419
854         * arm-tdep.c (arm_skip_prologue): Extending producer check to
855         support LLVM compiler.
856
857 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
858
859         * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
860         * bfin-tdep.c (bfin_extract_return_value): Likewise.
861         (bfin_store_return_value): Likewise.
862         * cris-tdep.c (cris_store_return_value): Likewise.
863         (cris_extract_return_value): Likewise.
864         * h8300-tdep.c (h8300_extract_return_value): Likewise.
865         * hppa-tdep.c (hppa64_return_value): Likewise.
866         * lm32-tdep.c (lm32_store_return_value): Likewise.
867         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
868         * spu-tdep.c (spu_value_from_register): Likewise.
869         * vax-tdep.c (vax_return_value): Likewise.
870
871 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
872
873         * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
874         parameter LEN to ssize_t.
875
876 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
877
878         * ada-valprint.c (ada_val_print_1): Eliminate single-use
879         variable LEN.
880         * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
881         directly.
882         (alpha_store_return_value): Likewise.
883         * amd64-tdep.c (amd64_classify_aggregate): Likewise.
884         (amd64_push_arguments): Likewise.
885         * ax-gdb.c (gen_trace_static_fields): Likewise.
886         (gen_traced_pop): Likewise.
887         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
888         * breakpoint.c (update_watchpoint): Likewise.
889         * findcmd.c (parse_find_args): Use local variable for type
890         instead of length.
891         * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
892         * h8300-tdep.c (h8300h_extract_return_value): Likewise.
893         (h8300_store_return_value): Likewise.
894         * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
895         Use i386_darwin_arg_type_alignment directly.
896         * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
897         * lm32-tdep.c (lm32_push_dummy_call): Likewise.
898         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
899         (m68hc11_extract_return_value): Likewise.
900         * mep-tdep.c (mep_push_dummy_call): Likewise.
901         * printcmd.c (float_type_from_length): Likewise.
902         * s390-tdep.c (s390_value_from_register): Likewise.
903         * stack.c (read_frame_arg): Likewise.
904         * tracepoint.c (encode_actions_1): Likewise.
905         * valops.c (value_fetch_lazy): Use local variable for type
906         instead of length.  Use TYPE_LENGTH directly.
907         * value.c (value_contents_equal): Use TYPE_LENGTH directly.
908
909 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
910
911         * symtab.c (skip_prologue_sal): Fix typo in comment.
912
913 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
914
915         * linespec.c (create_sals_line_offset): Fix typo in comment.
916
917 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
918
919         * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
920         use plongest to print the array size.
921
922 2012-09-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
923
924         * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
925         * p-valprint.c (pascal_type_print_base): Likewise.
926
927 2012-09-22  Yao Qi  <yao@codesourcery.com>
928
929         * remote.c (remote_get_trace_status): Remove setting default
930         values of fields of 'ts'.
931
932 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
933
934         Fix internal error on canonicalization of clang types.
935         * cp-name-parser.y (operator): New comment at make_operator call for
936         new, delete, new[] and delete[].
937         (exp): Use "sizeof ".  Add new comment at make_operator call.
938
939 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
940
941         Fix disassemble without parameters in tailcall frame.
942         * cli/cli-cmds.c (disassemble_current_function): Use
943         get_frame_address_in_block.
944
945 2012-09-21  Tom Tromey  <tromey@redhat.com>
946
947         * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
948         TYPE_CODE_UNION>: Unify, removing a goto.
949
950 2012-09-21  Tom Tromey  <tromey@redhat.com>
951
952         * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
953
954 2012-09-21  Andrew Burgess  <aburgess@broadcom.com>
955
956         * findvar.c (read_frame_register_value): Mark the result value as
957         optimized out if any of the input registers have been optimized out.
958
959 2012-09-21  Andreas Schwab  <schwab@linux-m68k.org>
960
961         * python/python.c (finalize_python): Only define if HAVE_PYTHON.
962
963 2012-09-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
964
965         * eval.c (evaluate_subexp_standard): Eliminate single-use
966         variable LOWER.
967
968 2012-09-21  Yao Qi  <yao@codesourcery.com>
969
970         * mi/mi-interp.c: Declare mi_record_changed.
971         (mi_interpreter_init): Call observer_attach_record_changed.
972         (mi_record_changed): New.
973         * record.c (record_open): Call observer_notify_record_changed.
974         (cmd_record_stop): Call observer_notify_record_changed.
975         * NEWS: Mention it.
976
977 2012-09-20  Tom Tromey  <tromey@redhat.com>
978
979         * NEWS: Update.
980         * python/python.c (finalize_python): New function.
981         (_initialize_python): Make a final cleanup.
982
983 2012-09-19  Doug Evans  <dje@google.com>
984
985         * buildsym.h (param_symbols): Delete, unused.
986         (context_stack): Delete member "params", unused.
987         * buildsym.c (push_context): Update.
988         * dwarf2read.c (read_func_scope): Update.
989
990 2012-09-19  Thomas Schwinge  <thomas@codesourcery.com>
991
992         * sh-tdep.c (sh_register_convert_to_virtual)
993         (sh_register_convert_to_raw): Add a gdbarch parameter.  Update
994         all callers.  Just do a memcpy if not the little-endian case.
995
996         * h8300-tdep.c (h8300_gdbarch_init): Invoke
997         set_gdbarch_double_format and set_gdbarch_long_double_format.
998         * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
999         set_gdbarch_double_format.
1000         * sh-tdep.c (sh_gdbarch_init): Likewise.
1001
1002         * NEWS: Document the removal of SH's 'regs' command.
1003         * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1004         command.
1005
1006 2012-09-18  Sergio Durigan Junior  <sergiodj@redhat.com>
1007
1008         * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1009         `jump'.
1010
1011 2012-09-18  Joel Brobecker  <brobecker@adacore.com>
1012
1013         * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1014         language when iterating over symbols.
1015
1016 2012-09-18  Yao Qi  <yao@codesourcery.com>
1017
1018         * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1019         (mi_interpreter_init): Call observer_attach_tsv_created and
1020         observer_attach_tsv_deleted.
1021         (mi_tsv_created, mi_tsv_deleted): New.
1022         * tracepoint.c (delete_trace_state_variable): Call
1023         observer_notify_tsv_deleted.
1024         (trace_variable_command): Call observer_notify_tsv_created.
1025         (delete_trace_variable_command): Call
1026         observer_notify_tsv_deleted.
1027         (create_tsv_from_upload): Call observer_notify_tsv_created.
1028         * NEWS: Mention it.
1029
1030 2012-09-18  Yao Qi  <yao@codesourcery.com>
1031
1032         * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1033         if traceframe changed.
1034         * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1035         "trace-find".
1036         * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1037         (mi_interpreter_init): Hook mi_traceframe_changed to observer
1038         'traceframe_changed'.
1039         (mi_traceframe_changed): New.
1040         * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1041         New field.
1042         * NEWS: Mention the new MI notification.
1043
1044 2012-09-17  Mike Wrighton  <wrighton@codesourcery.com>
1045
1046         * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1047
1048 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1049
1050         * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1051         (linux_ptrace_test_ret_to_nx): Extend comment for x86_64.  Change
1052         __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1053         Extend code also for PaX support.  Convert all gdb_assert to warning
1054         calls.
1055
1056 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1057
1058         Implement auto-load user conveniences suggested by Doug Evans.
1059         * auto-load.c: Include top.h.
1060         (file_is_auto_load_safe): New variable advice_printed.  Print advice.
1061         (_initialize_auto_load): New variable scripts_directory_help.  Mention
1062         GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1063         scripts-directory.  Document in online help one can use also files for
1064         set auto-load safe-path.
1065         * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1066         * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1067
1068 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
1069
1070         * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1071         of LEN.
1072
1073 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
1074
1075         * m2-valprint.c (m2_print_array_contents): Eliminate variable
1076         ELTLEN and use TYPE_LENGTH directly.
1077         (m2_val_print): Likewise.
1078         * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1079         variable LEN and use TYPE_LENGTH directly.
1080         (m68k_svr4_store_return_value): Likewise.
1081         * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1082         ARGLEN and use TYPE_LENGTH directly.
1083         (mips_o64_push_dummy_call): Likewise.
1084         * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1085         variable LENGTH and use TYPE_LENGTH directly.
1086         (s390_function_arg_float): Likewise.
1087         (s390_function_arg_integer): Likewise.
1088         (s390_push_dummy_call): Likewise.
1089         (s390_return_value_convention): Likewise.
1090         * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1091         TYPE_LENGTH directly.
1092
1093 2012-09-17  Yao Qi  <yao@codesourcery.com>
1094
1095         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1096         Update comment to add_setshow_integer_cmd.
1097         * cli/cli-setshow.c (do_set_command): Handle case
1098         'var_zuinteger_unlimited'.
1099         (do_show_command): Likewise.
1100         * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1101         for command 'remotetimeout'.
1102         * command.h (enum var_types): New zuinteger_unlimited.  Update comment
1103         to var_integer.
1104         * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1105         for command 'set listsize'.
1106
1107 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
1108
1109         * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1110         variable LEN.
1111
1112 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1113
1114         PR 14119
1115         * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1116         (frame_pop): Drop also TAILCALL_FRAME frames.
1117         * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1118
1119 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1120             Pedro Alves  <palves@redhat.com>
1121
1122         PR 14548
1123         * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1124         function start if we are already at function start.  Both for
1125         reverse-next and for reverse-step into function without line number
1126         info.
1127
1128 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1129
1130         Code cleanup - rename 'inline' depth to 'artificial' depth.
1131         * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1132         frame_id_artificial_p, extend the comment.
1133         * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1134         * frame.c (fprint_frame_id): Rename at a user, change debug output
1135         text to "artificial=".
1136         (skip_inlined_frames): Rename to ...
1137         (skip_artificial_frames): ... here.  Extend the comment.
1138         (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1139         (frame_id_inlined_p): Rename to ...
1140         (frame_id_artificial_p): ... here.  Rename at a user.
1141         (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1142         (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1143         at a user.
1144         * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1145         Extend the comment.
1146         (frame_id_inlined_p): Rename to ...
1147         (frame_id_artificial_p): ... here.
1148         * inline-frame.c (inline_frame_this_id): Rename at a user.
1149
1150 2012-09-14  Andrew Burgess  <aburgess@broadcom.com>
1151
1152         * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1153         vector variables using vector_size syntax rather than array
1154         syntax.
1155
1156 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
1157
1158         * valarith.c (value_concat): Replace unsafe ALLOCA with
1159         XMALLOC/XFREE.
1160
1161 2012-09-14  Pedro Alves  <palves@redhat.com>
1162
1163         * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1164
1165 2012-09-14  Khoo Yit Phang  <khooyp@cs.umd.edu>
1166
1167         Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1168         * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1169         data-directory as appropriate.
1170
1171 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
1172
1173         * printcmd.c (ui_printf): Eliminate single-use variable
1174         PARAM_LEN.
1175
1176 2012-09-14  Yao Qi  <yao@codesourcery.com>
1177             Pedro Alves  <palves@redhat.com>
1178
1179         * valops.c (value_assign): Move observer_notify_target_changed
1180         below to replace reinit_frame_cache.
1181
1182 2012-09-13  Khoo Yit Phang  <khooyp@cs.umd.edu>
1183
1184         Refactor Python "gdb" module into a proper Python package, by
1185         introducing a new "_gdb" module for code implemented in C, and
1186         using reload/__import__ instead of exec.
1187         * python/lib/gdb/__init__.py: Import * from _gdb.
1188         (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1189         prompt_hook, sys.argv): Moved from finish_python_initialization.
1190         (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1191         (packages, auto_load_packages): New list and function replacing
1192         module_dict and auto-loading code, using __file__ instead of
1193         gdb.PYTHONDIR and reload/__import__ instead of exec.
1194         (GdbSetPythonDirectory): Replacing function of the same name
1195         from finish_python_initialization, using reload/__import__ instead
1196         of exec, as well as call auto_load_packages.
1197         * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1198         gdb_python_module and not gdb_module.
1199         * python/python-internal.h (gdb_python_module): Declare.
1200         * python/python.c (gdb_python_module): New global.
1201         (before_prompt_hook): Check gdb_python_module and not gdb_module.
1202         (_initialize_python): Rename gdb module to _gdb.
1203         Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1204         (finish_python_initialization): Move Python code to
1205         lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1206         __main__.
1207
1208 2012-09-13  Pedro Alves  <palves@redhat.com>
1209
1210         * Makefile.in (COMMON_OBS): Add registry.o.
1211         * registry.c: New file.
1212         * registry.h (struct registry_container): Declare.
1213         (registry_data_callback): New typedef.
1214         (struct registry_data, struct registry_data_registration, struct
1215         registry_data_registry): New type.
1216         (register_data_with_cleanup, registry_alloc_data)
1217         (registry_callback_adaptor, registry_clear_data)
1218         (registry_container_free_data, registry_set_data, registry_data):
1219         Declare.
1220         (DEFINE_REGISTRY): Refactor structures and functions as shims over
1221         the new common structures and functions.
1222         (DECLARE_REGISTRY): Declare struct TAG ## _data.  Use the tagged
1223         callback typedefs.
1224
1225 2012-09-12  Mike Wrighton  <wrighton@codesourcery.com>
1226
1227         * remote.c (remote_insert_hw_breakpoint): Throw exception if
1228         there is an error inserting hardware breakpoints and use the
1229         error message from the target.
1230
1231         * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1232         Catch this exception and print the error message contained within. Do not
1233         print the default hardware error breakpoint message in this case.
1234
1235 2012-09-12  Doug Evans  <dje@google.com>
1236
1237         * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1238         cu == NULL.
1239
1240 2012-09-11  Doug Evans  <dje@google.com>
1241
1242         * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1243         .gdb_index symbol attributes if there are none.
1244
1245 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
1246
1247         * symtab.h (struct minimal_symbol) [has_size]: New field.
1248         (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1249         (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1250         * printcmd.c (build_address_symbolic): Only filter out zero-sized
1251         minimal symbols if the symbol's size is actually known.
1252         * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1253         of msymbol's size field.  Add comment.
1254         * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1255         SET_MSYMBOL_SIZE to set the minimal symbol size.
1256
1257 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
1258
1259         * minsyms.c (install_minimal_symbols): Use memset to fill entire
1260         minimal_symbol struct object, rather than setting some of its
1261         fields one by one.
1262
1263 2012-09-11  Andrew Burgess  <aburgess@broadcom.com>
1264
1265         * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1266         passed_a_ptr flag when displaying typedef types.
1267
1268 2012-09-10  Joel Brobecker  <brobecker@adacore.com>
1269
1270         * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1271         the optimized_out flag is preserved.
1272
1273 2012-09-10  Anthony Green  <green@moxielogic.com>
1274
1275         * moxie-tdep.c (moxie_analyze_prologue): Update for function
1276         prologue changes in GCC.
1277
1278 2012-09-10  Keith Seitz  <keiths@redhat.com>
1279
1280         PR gdb/13483
1281         * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1282         (BOOL_CONVERSION_BADNESS): ... this.
1283         * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1284         (rank_one_type): Allow all boolean conversions
1285         permitted by the standard.
1286
1287 2012-09-06  Tom Tromey  <tromey@redhat.com>
1288
1289         * python/py-newobjfileevent.c (create_new_objfile_event_object):
1290         Don't decref py_objfile.
1291
1292 2012-09-02  Khoo Yit Phang  <khooyp@cs.umd.edu>
1293
1294         Do not enable -lmcheck by default when Python is enabled with
1295         threading support.
1296         * configure.ac: (python_has_threads) New variable, by testing
1297         if WITH_THREAD is defined in Python.h.
1298         Move --enable-lmcheck after --with-python.
1299         Do not enable -lmcheck by default if python_has_threads=yes.
1300         Warn if --enable-lmcheck and python_has_threads=yes.
1301         * configure: Regenerate.
1302
1303 2012-08-31  Yao Qi  <yao@codesourcery.com>
1304
1305         * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1306         DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1307         Update some commands.
1308         * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1309         * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1310         to 1.
1311
1312 2012-08-31  Yao Qi  <yao@codesourcery.com>
1313
1314         * mi/mi-cmds.c (mi_cmds): Add 'static'.
1315
1316 2012-08-30  Khoo Yit Phang  <khooyp@cs.umd.edu>
1317
1318         * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1319
1320 2012-08-29  Doug Evans  <dje@google.com>
1321
1322         * main.c (print_gdb_help): Remove reference to
1323         --use-deprecated-index-sections.
1324
1325 2012-08-28  Yao Qi  <yao@codesourcery.com>
1326
1327         * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1328         (init_cmds): Call add_setshow_uinteger_cmd for command
1329         'max-user-call-depth'.
1330         * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1331         declaration of 'max_user_call_depth'.
1332         * frame.c (backtrace_limit): Add 'unsigned'.
1333         (_initialize_frame): Call add_setshow_uinteger_cmd for command
1334         'limit'.
1335         * remote.c (remoteaddresssize): Add 'unsigned'.
1336         (remote_address_masked): Change local var 'address_size' to
1337         'unsigned'.
1338         (_initialize_remote): Call add_setshow_uinteger_cmd for
1339         'remoteaddresssize'.
1340         * top.c (history_size): Add 'unsigned'.
1341         (show_commands): Change local variables to 'unsigned'.
1342         (set_history_size_command): Don't check history_size is negative.
1343         Adjust the condition to call unstifle_history and set history_size
1344         to UNIT_MAX.
1345
1346 2012-08-28  Pedro Alves  <palves@redhat.com>
1347
1348         PR gdb/14428
1349
1350         * infcmd.c (default_print_one_register_info): New, factored out
1351         from default_print_registers_info.
1352         (default_print_registers_info): Use it.  Mark value unavailable if
1353         necessary.
1354         (registers_info): Print user registers with
1355         default_print_one_register_info.
1356
1357 2010-08-27  H.J. Lu  <hongjiu.lu@intel.com>
1358
1359         PR tui/14486
1360         * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1361         is not NULL before referencing it.
1362
1363 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1364
1365         * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1366         variable pc.  Call find_pc_line instead of find_pc_overlay, restore
1367         original PC for it.
1368
1369 2012-08-27  Eli Zaretskii  <eliz@gnu.org>
1370             Jan Kratochvil  <jan.kratochvil@redhat.com>
1371
1372         * auto-load.c (auto_load_objfile_script): Rename to ...
1373         (auto_load_objfile_script_1): ... here, change variable realname to
1374         parameter realname, document it, add return value, add variable retval.
1375         (auto_load_objfile_script): New function.
1376
1377 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1378
1379         * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1380         followed by a whitespace.
1381
1382 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1383
1384         PR gdb/14494.
1385         * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1386         Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1387         (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1388         here.
1389
1390 2012-08-27  Wei-cheng Wang  <cole945@gmail.com>
1391
1392         * memattr.c (create_mem_region): Fix memory region overlapping
1393         checking.
1394
1395 2012-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
1396
1397         * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1398         with xmalloc/cleanup.
1399         * mt-tdep.c (mt_push_dummy_call): Likewise.
1400         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1401         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1402
1403 2012-08-24  Yao Qi  <yao@codesourcery.com>
1404
1405         * jv-exp.y (push_expression_name): Add "." at the end of error
1406         message.
1407
1408 2012-08-23  Khoo Yit Phang <khooyp@cs.umd.edu>
1409
1410         Document how to return from "python-interactive" to GDB.
1411         * python/python.c (_initialize_python): Update documentation.
1412
1413 2012-08-23  Pedro Alves  <palves@redhat.com>
1414
1415         * infrun.c (_initialize_infrun) <handle command help text>:
1416         Mention that multiple signals are supported.
1417
1418 2012-08-23  Pedro Alves  <palves@redhat.com>
1419
1420         * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1421         string.
1422
1423 2012-08-23  Yao Qi  <yao@codesourcery.com>
1424
1425         * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1426         (tfind_1): Don't call registers_changed, set_traceframe_num,
1427         and clear_traceframe_info.
1428         Call set_current_traceframe.
1429         (set_current_traceframe): call set_traceframe_num.
1430
1431 2012-08-22  Sergio Durigan Junior  <sergiodj@redhat.com>
1432
1433         * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1434         `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1435
1436 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
1437
1438         Enable readline in Python in a GDB-specific way and block the
1439         standard Python readline module to prevent conflicts with GDB.
1440         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1441         (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1442         (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1443         * python/py-gdb-readline.c: New file.
1444         * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1445         prototype.
1446         * python/python.c (_initialize_python): Call
1447         gdbpy_initialize_gdb_readline.
1448
1449 2012-08-22  Keith Seitz  <keiths@redhat.com>
1450
1451         * defs.h: Include build-gnulib/config.h
1452
1453 2012-08-22  Joseph Myers  <joseph@codesourcery.com>
1454
1455         * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1456         and blx pc.
1457
1458 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
1459
1460         Add a new "python-interactive" command that starts a standard
1461         Python interactive prompt with "pi" as alias, and add "py" as
1462         an alias to "python".
1463         * NEWS: Mention the new commands.
1464         * python/python.c (eval_python_command): New function.
1465         (python_interactive_command): For "python-interactive" with
1466         arguments, call eval_python_command.  For "python-interactive"
1467         without arguments, call PyRun_InteractiveLoop.
1468         (_initialize_python): Add "python-interactive" command with
1469         "pi" as alias, and add "py" as an alias to "python".
1470
1471 2012-08-22  Tom Tromey  <tromey@redhat.com>
1472
1473         * defs.h (quit_flag): Don't declare.
1474         (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1475         (QUIT): Use new functions.
1476         * event-top.c (command_handler): Use clear_quit_flag.
1477         (handle_sigint): Use set_quit_flag.
1478         (async_request_quit): Use check_quit_flag.  Don't check
1479         immediate_quit.
1480         * exceptions.c (throw_exception): Use clear_quit_flag.
1481         * main.c (captured_main): Use clear_quit_flag.
1482         * python/python.c (clear_quit_flag, set_quit_flag)
1483         (check_quit_flag): New functions.
1484         * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1485         clear_quit_flag.
1486         * remote.c (remote_wait_as): Use check_quit_flag,
1487         clear_quit_flag.
1488         (remote_start_remote): Call QUIT.
1489         * symfile.c (load_progress): Use check_quit_flag.
1490         * top.c (command_loop): Use clear_quit_flag.
1491         (command_line_input): Call QUIT.
1492         * utils.c (quit_flag): Conditionally define.
1493         (clear_quit_flag, check_quit_flag, set_quit_flag): New
1494         functions.
1495         (prompt_for_continue): Call QUIT.  Use quit, not
1496         async_request_quit.
1497         * remote-mips.c (mips_expect_timeout): Call QUIT.
1498         * monitor.c (monitor_expect): Call QUIT.
1499
1500 2012-08-22  Tom Tromey  <tromey@redhat.com>
1501
1502         * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1503         (async_init_signals): Update.
1504         * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1505         (SIGWINCH_HANDLER_BODY): Remove.
1506
1507 2012-08-22  Tom Tromey  <tromey@redhat.com>
1508
1509         * jit.c (jit_object_close_impl): Don't malloc the objfile
1510         name.
1511         * objfiles.c (allocate_objfile): Don't malloc the objfile
1512         name.
1513         (free_objfile): Don't free the objfile name.
1514         * objfiles.h (struct objfile) <name>: Update comment.
1515         * symfile.c (reread_symbols): Fix reference counting.  Don't
1516         malloc objfile name.
1517
1518 2012-08-22  Tom Tromey  <tromey@redhat.com>
1519
1520         * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1521         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1522         (symfile_bfd_open): Likewise.
1523         (generic_load): Likewise.
1524         * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1525         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1526         gdb_bfd_open.
1527         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1528         Use gdb_bfd_open.
1529         * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1530         * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1531         (pmon_load_fast): Likewise.
1532         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1533         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1534         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1535         (macho_check_dsym): Likewise.
1536         * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1537         (m32r_upload_command): Likewise.
1538         * gdb_bfd.h (gdb_bfd_cache): Declare.
1539         * gdb_bfd.c (struct gdb_bfd_data): New.
1540         (gdb_bfd_cache): New global.
1541         (struct gdb_bfd_cache_search): New.
1542         (hash_bfd): New function.
1543         (eq_bfd): Likewise.
1544         (gdb_bfd_open): Likewise.
1545         (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1546         (gdb_bfd_unref): Remove closed BFD from cache.  Update for
1547         gdb_bfd_data.
1548         * exec.c (exec_file_attach): Use gdb_bfd_open.
1549         * dsrec.c (load_srec): Use gdb_bfd_open.
1550
1551 2012-08-22  Tom Tromey  <tromey@redhat.com>
1552
1553         * dwarf2read.c (macro_start_file): Update.
1554         * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1555         (free_objfile_per_bfd_storage): Destroy macro_cache.
1556         (allocate_objfile, free_objfile): Update.
1557         * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1558         New field.
1559         (struct objfile) <macro_cache>: Remove.
1560         * symfile.c (reread_symbols): Update.
1561         * symmisc.c (print_symbol_bcache_statistics): Update.
1562         (print_objfile_statistics): Update.
1563
1564 2012-08-22  Tom Tromey  <tromey@redhat.com>
1565
1566         * elfread.c (elf_symtab_read): Update.
1567         * objfiles.c (objfiles_bfd_data): New global.
1568         (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1569         (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1570         (allocate_objfile, free_objfile): Update.
1571         (_initialize_objfiles): Initialize objfiles_bfd_data.
1572         * objfiles.h (struct objfile_per_bfd_storage): New.
1573         (struct objfile) <per_bfd>: New field.
1574         <filename_cache>: Remove.
1575         (set_objfile_per_bfd): Declare.
1576         * symfile.c (reread_symbols): Update.  Call
1577         set_objfile_per_bfd.
1578         (allocate_symtab): Update.
1579         * symmisc.c (print_symbol_bcache_statistics): Update.
1580         (print_objfile_statistics): Print the size of the BFD obstack.
1581
1582 2012-08-22  Tom Tromey  <tromey@redhat.com>
1583
1584         * gdb_bfd.h: Include registry.h.  Use DECLARE_REGISTRY.
1585         * gdb_bfd.c: Use DEFINE_REGISTRY.
1586         (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1587         (gdb_bfd_ref): Call bfd_alloc_data.
1588         (gdb_bfd_unref): Call bfd_free_data.
1589
1590 2012-08-22  Tom Tromey  <tromey@redhat.com>
1591
1592         * registry.h (struct registry_fields): New.
1593         (REGISTRY_FIELDS): Redefine.
1594         (REGISTRY_ACCESS_FIELD): New macro.
1595         (DEFINE_REGISTRY): Add ACCESS argument.  Update defined
1596         functions.
1597
1598 2012-08-22  Tom Tromey  <tromey@redhat.com>
1599
1600         * auto-load.c (_initialize_auto_load): Update.
1601         * solib-svr4.c (_initialize_svr4_solib): Update
1602         * solib-dsbt.c (_initialize_dsbt_solib): Update.
1603         * solib-darwin.c (_initialize_darwin_solib): Update.
1604         * registry.h: New file.
1605         * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1606         * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1607         * progspace.h: Include registry.h.  Use DECLARE_REGISTRY.
1608         (register_program_space_data_with_cleanup)
1609         (register_program_space_data, program_space_alloc_data)
1610         (clear_program_space_data, set_program_space_data)
1611         (program_space_data): Don't declare.
1612         * progspace.c: Use DEFINE_REGISTRY.
1613         (struct program_space_data, struct
1614         program_space_data_registration, struct
1615         program_space_data_registry, program_space_data_registry)
1616         (register_program_space_data_with_cleanup)
1617         (register_program_space_data, program_space_alloc_data)
1618         (program_space_free_data, clear_program_space_data)
1619         (set_program_space_data, program_space_data): Remove.
1620         * objfiles.h: Include registry.h.  Use DECLARE_REGISTRY.
1621         (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1622         (register_objfile_data_with_cleanup, register_objfile_data)
1623         (clear_objfile_data, set_objfile_data, objfile_data): Don't
1624         declare.
1625         * objfiles.c: Use DEFINE_REGISTRY.
1626         (struct objfile_data, struct objfile_data_registration, struct
1627         objfile_data_registry, objfile_data_registry)
1628         (register_objfile_data_with_cleanup, register_objfile_data)
1629         (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1630         (set_objfile_data, objfile_data): Remove.
1631         (_initialize_objfiles): Update.
1632         * jit.c (_initialize_jit): Update.
1633         * inflow.c (_initialize_inflow): Update.
1634         * inferior.h: Include registry.h.  Use DECLARE_REGISTRY.
1635         (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1636         (register_inferior_data_with_cleanup, register_inferior_data)
1637         (clear_inferior_data, set_inferior_data, inferior_data): Don't
1638         declare.
1639         * inferior.c: Use DEFINE_REGISTRY.
1640         (struct inferior_data, struct inferior_data_registration, struct
1641         inferior_data_registry, inferior_data_registry)
1642         (register_inferior_data_with_cleanup, register_inferior_data)
1643         (inferior_alloc_data, inferior_free_data  clear_inferior_data)
1644         (set_inferior_data, inferior_data): Remove.
1645         * auxv.c (_initialize_auxv): Update.
1646         * ada-lang.c (_initialize_ada_language): Update.
1647         * breakpoint.c (_initialize_breakpoint): Update.
1648         * i386-nat.c (i386_use_watchpoints): Update.
1649
1650 2012-08-22  Tom Tromey  <tromey@redhat.com>
1651
1652         * exec.c (exec_close, exec_file_attach): Update.
1653         (add_to_section_table): Initialize 'key' field.
1654         (add_target_sections, remove_target_sections): Add 'key' argument.
1655         * exec.h (add_target_sections, remove_target_sections): Add
1656         'key' argument.
1657         * solib.c (solib_map_sections, update_solib_list, clear_solib)
1658         (reload_shared_libraries_1): Update.
1659         * target.h (struct target_section) <key>: New field.
1660
1661 2012-08-22  Tom Tromey  <tromey@redhat.com>
1662
1663         * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1664
1665 2012-08-21  Pierre Muller  <muller@ics.u-strasbg.fr>
1666
1667         * symfile.c (allocate_symtab): Use host_address_to_string
1668         function instead of cast of pointer to long which is not
1669         compatible with x86_64-w64-mingw32 build.
1670
1671 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1672
1673         * mips-tdep.c (is_octeon): New function.
1674         (is_octeon_bbit_op): New function.
1675         (mips32_next_pc): Handle Octeon's bbit instructions.
1676         (mips32_instruction_has_delay_slot): Likewise.
1677
1678 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1679
1680         * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1681         before the function.
1682
1683 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1684
1685         * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1686
1687 2012-08-19  Keith Seitz  <keiths@redhat.com>
1688
1689         PR c++/14365
1690         * c-typeprint.c (c_type_print_varspec_prefix): Pass
1691         -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1692
1693 2012-08-18  Eli Zaretskii  <eliz@gnu.org>
1694
1695         * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1696         The typo broke "make TAGS".
1697
1698 2012-08-17  Joel Brobecker  <brobecker@adacore.com>
1699
1700         GDB 7.5 released.
1701
1702 2012-08-17  Keith Seitz  <keiths@redhat.com>
1703
1704         PR c++/13356
1705         * gdbtypes.c (strict_type_checking): New variable.
1706         (show_strict_type_checking): New function.
1707         (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1708         if strict type checking is disabled.
1709         (_initialize_gdbtypes): Add "check type" subcommand.
1710         * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1711
1712 2012-08-17  Keith Seitz  <keiths@redhat.com>
1713
1714         * language.h (type_mode): Remove.
1715         (type_check): Remove.
1716         (struct language_defn): Remove la_type_check.
1717         (STRICT_TYPE): Remove unused macro.
1718         (type_error): Remove.
1719         * language.c (set_type_range_case): Renamed to ...
1720         (set_range_case): ... this.  Update all callers.
1721         Remove type_mode/type_check.
1722         (type_mode): Remove.
1723         (type_check): Remove.
1724         (show_type_command): Remove.
1725         (set_type_command): Remove.
1726         (language_info): Remove type checking output.
1727         (type_error): Remove unused function.
1728         (range_error): Update comment.
1729         (unknown_language_defn): Remove la_type_check.
1730         (auto_language_defn): Likewise.
1731         (local_language_defn): Likewise.
1732         (_initialize_language): Remove "check type" subcommand.
1733         * ada-lang.c (ada_language_defn): Remove la_type_check.
1734         * c-lang.c (c_language_defn): Likewise.
1735         (cplus_language_defn): Likewise.
1736         (asm_language_defn): Likewise.
1737         (minimal_language_defn): Likewise.
1738         * d-lang.c (d_language_defn): Likewise.
1739         * f-lang.c (f_language_defn): Likewise.
1740         * go-lang.c (go_language_defn): Likewise.
1741         * jv-lang.c (java_language_defn): Likewise.
1742         * m2-lang.c (m2_language_defn): Likewise.
1743         * objc-lang.c (objc_language_defn): Likewise.
1744         * opencl-lang.c (opencl_language_defn): Likewise.
1745         * p-lang.c (pascal_language_defn): Likewise.
1746
1747 2012-08-16  Mike Frysinger  <vapier@gentoo.org>
1748
1749         * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1750
1751 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1752
1753         * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1754         New function.
1755         (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1756         using the regache.  Use ia64_hpux_get_register_from_save_state_t
1757         to access the bsp and bspstore registers if not.
1758
1759 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1760
1761         * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1762         * breakpoint.c (detach_breakpoints): Change pid parameter into
1763         a ptid.  Adjust code accordingly.
1764         * infrun.c (handle_inferior_event): Delete variable child_pid.
1765         Update call to detach_breakpoints to pass the child ptid for
1766         fork events.
1767         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1768         assert that inferior_ptid's lwp is zero.
1769         (linux_handle_extended_wait): Update call to detach_breakpoints.
1770         * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1771         detach_breakpoints.
1772
1773 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1774
1775         * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1776         parent, only call detach_breakpoints if tts.tts_event ==
1777         TTEVT_VFORK.
1778
1779 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1780
1781         * dwarf2-frame.c (dwarf2_frame_cache): Use
1782         get_frame_address_in_block instead of get_frame_pc as
1783         the bound for executing the frame's FDE.
1784
1785 2012-08-16  Yao Qi  <yao@codesourcery.com>
1786
1787         * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1788         * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1789         * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1790         (c_type_print_varspec_suffix): Likewise.
1791         * eval.c (evaluate_subexp_standard): Likewise.
1792         * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1793         (f_type_print_varspec_suffix): Likewise.
1794         * gdbtypes.c (is_scalar_type): Likewise.
1795         (recursive_dump_type): Likewise.
1796         * infcall.c (value_arg_coerce): Likewise.
1797         * m2-valprint.c (m2_val_print): Likewise.
1798         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1799         (pascal_type_print_varspec_suffix): Likewise.
1800         (pascal_type_print_base): Likewise.
1801         * p-valprint.c (pascal_val_print): Likewise.
1802         (pascal_val_print): Likewise.
1803         * valops.c (value_slice): Likewise.
1804         * valprint.c (scalar_type_p): Likewise.
1805         * valarith.c (value_bitstring_subscript): Remove.
1806         (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1807         Remove comment on TYPE_CODE_BITSTRING.
1808
1809         * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1810         TYPE_CODE_BITSTRING.
1811
1812         * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1813         slot 0.
1814
1815 2012-08-16  Yao Qi  <yao@codesourcery.com>
1816
1817         * tracepoint.c (trace_find_none_command): Remove.
1818         (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1819
1820 2012-08-16  Yao Qi  <yao@codesourcery.com>
1821
1822         * remote.c (handle_notification): Remove parameter 'length'.
1823         (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1824
1825 2012-08-15  Keith Seitz  <keiths@redhat.com>
1826
1827         * gdbtypes.c (opaque_type_resolution): Make static.
1828         Add missing comment.
1829         (overload_debug): Add missing comment.
1830         (show_opaque_type_resolution): Likewise.
1831         (show_overload_debug): Likewise.
1832         (print_bit_vector): Remove unnecessary forward declaration.
1833         (print_arg_types): Likewise.
1834         (dump_fn_fieldlists): Likewise.
1835         (print_cplus_stuff): Likewise.
1836
1837 2012-08-15  Tom Tromey  <tromey@redhat.com>
1838
1839         * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1840         (gdb_bfd_ref): Initialize new field.
1841         (gdb_bfd_unref): Unref the archive BFD.
1842         (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1843         parent archive.
1844
1845 2012-08-15  Tom Tromey  <tromey@redhat.com>
1846
1847         PR python/14387:
1848         * python/py-bpevent.c (create_breakpoint_event_object): Update
1849         comment.
1850         * python/py-event.c (evpy_add_attribute): Update comment.
1851         * python/py-exitedevent.c (create_exited_event_object): Fix
1852         reference counting and error handling.
1853         * python/py-newobjfileevent.c (create_new_objfile_event_object):
1854         Fix reference counting.
1855         * python/py-signalevent.c (create_signal_event_object): Fix
1856         reference counting and error handling.
1857         * python/py-stopevent.c (emit_stop_event): Fix reference
1858         counting.
1859         * python/py-threadevent.c (get_event_thread): Return a
1860         borrowed reference.
1861         * python/py-type.c (convert_field): Fix reference counting.
1862
1863 2012-08-15  Tom Tromey  <tromey@redhat.com>
1864
1865         * dwarf2read.c (dwarf_decode_macro_bytes)
1866         <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1867         as hash key.
1868
1869 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
1870
1871         * infcmd.c (_initialize_infcmd): Update help text for the signal,
1872         stepi, nexti, finish, next, step, jump, and continue commands.
1873         * infrun.c (_initialize_infrun): Update help text for the handle
1874         command.
1875
1876 2012-08-14  Doug Evans  <dje@google.com>
1877
1878         * gdbtypes.c (struct extra): Delete, unused.
1879
1880         * gdbtypes.c: Whitespace cleanup.
1881         (address_space_name_to_int): Remove "extern" from definition.
1882         (_initialize_gdbtypes): Declare with initialize_file_ftype.
1883
1884         * gdbtypes.c (make_pointer_type): Remove redundant setting of
1885         TYPE_POINTER_TYPE (type).
1886
1887 2012-08-14  Gary Benson  <gbenson@redhat.com>
1888
1889         * solib-svr4.c (svr4_free_library_list): Use free_so.
1890
1891 2012-08-13  Mike Frysinger  <vapier@gentoo.org>
1892
1893         * .gitignore: Add go-exp.c.
1894
1895 2012-08-13  Doug Evans  <dje@google.com>
1896
1897         * value.c (show_convenience): Tweak comment.
1898         (_initialize_values): Mention convenience functions in the help text
1899         for "show convenience".
1900
1901 2012-08-13  Yao Qi  <yao@codesourcery.com>
1902
1903         * std-operator.def: Remove TERNOP_SLICE_COUNT.
1904         * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1905         TERNOP_SLICE_COUNT.
1906         * eval.c (evaluate_subexp_standard): Likewise.
1907         * expprint.c (print_subexp_standard): Likewise.
1908         (dump_subexp_body_standard): Likewise.
1909         * parse.c (operator_length_standard): Likewise.
1910
1911 2012-08-13  Yao Qi  <yao@codesourcery.com>
1912
1913         * std-operator.def: Remove OP_BITSTRING.
1914         * breakpoint.c (watchpoint_exp_is_const): Update.
1915         * eval.c (evaluate_subexp_standard): Remove handling to
1916         OP_BITSTRING.
1917         * expprint.c (print_subexp_standard): Likewise.
1918         (dump_subexp_body_standard): Likewise.
1919         * parse.c (operator_length_standard): Likewise.
1920         * valops.c (value_bitstring): Remove.
1921         * value.h: Remove the declaration of 'value_bitstring'.
1922
1923 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
1924
1925         * linespec.c (find_methods): Remove unused variables `i1' and
1926         `name_len'.
1927         (decode_line_full): Likewise for `arg_start'.
1928
1929 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
1930
1931         * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1932         (zlib_decompress_section): Likewise for `section_data'.
1933         (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1934
1935 2012-08-10  Doug Evans  <dje@google.com>
1936
1937         Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1938         * NEWS: Document them.
1939         * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1940         function/strfns.py.
1941         * python/py-type.c (typy_array_1): New function.
1942         (typy_array): Call it.
1943         (typy_vector): New function.
1944         (type_object_methods): Add "vector".
1945         * python/lib/gdb/function/__init__.py: New file.
1946         * python/lib/gdb/function/strfns.py: New file.
1947
1948 2012-08-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
1949
1950         * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1951         for TYPE_FIELD_BITPOS.
1952         (typy_get_sizeof): Likewise for TYPE_LENGTH.
1953
1954 2012-08-10  Mike Frysinger  <vapier@gentoo.org>
1955
1956         PR cli/10436:
1957         * common/vec.h (VEC_merge): Define.
1958         (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1959         (DEF_VEC_ALLOC_FUNC_P): Likewise.
1960         (DEF_VEC_ALLOC_FUNC_O): Likewise.
1961         * completer.c: Include gdb_signals.h.
1962         (signal_completer): Define.
1963         * completer.h (signal_completer): Add prototype.
1964         * infcmd.c (_initialize_infcmd): Assign the command
1965         completer for "signal" to handle_completer.
1966         * infrun.c: Include completer.h.
1967         (handle_completer): Define.
1968         (_initialize_infrun): Declare a new local variable c.  Store the
1969         result of add_com("handle") to it.  Assign the command
1970         completer for "handle" to handle_completer.
1971
1972 2012-08-09  Yao Qi  <yao@codesourcery.com>
1973
1974         * cli/cli-decode.c (set_cmd_prefix): New.
1975         (lookup_cmd_for_prefixlist): New.
1976         (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1977         of each cmd_list_element in *prefixlist.
1978         (add_setshow_cmd_full): set_cmd_prefix.
1979         (add_alias_cmd): Likewise.
1980         * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1981         Declare 'auto_boolean_enums'.
1982         * cli/cli-setshow.c: Include "observer.h".
1983         (notify_command_param_changed_p): New.
1984         (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1985         Remove 'static'.
1986         (do_setshow_command): Split it to ...
1987         (do_set_command, do_show_command): ... them.  New.
1988         (do_set_command): Call observer_notify_command_param_changed if
1989         notify_command_param_changed_p returns true.
1990         (cmd_show_list): Caller update.
1991         * auto-load.c (set_auto_load_cmd): Likewise.
1992         * remote.c (show_remote_cmd): Likewise.
1993         * cli/cli-setshow.h: Update declarations.
1994         * top.c (execute_command): Call do_set_command and do_show_command.
1995
1996         * NEWS: Mention new MI notification.
1997         * mi/mi-interp.c: Declare mi_command_param_changed.
1998         (mi_interpreter_init): Attach mi_command_param_changed to
1999         observer command_param_changed.
2000         (mi_command_param_changed): New.
2001         Remove mi_suppress_breakpoint_notifications.
2002         Define global variable mi_suppress_notification.
2003         (mi_breakpoint_created): Update.
2004         (mi_breakpoint_deleted): Likewise.
2005         (mi_breakpoint_modified): Likewise.
2006         * mi/mi-main.c (mi_cmd_execute): Likewise.  Check command
2007         'gdb-set' and set mi_suppress_notification.
2008         * mi/mi-main.h: (mi_suppress_notification): New struct.
2009
2010 2012-08-09  Andreas Tobler  <andreast@fgznet.ch>
2011             Jan Kratochvil  <jan.kratochvil@redhat.com>
2012
2013         * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2014
2015 2012-08-09  Yao Qi  <yao@codesourcery.com>
2016
2017         * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2018         (skiplist): Move it to skip.c.
2019         (init_cmd_lists): Remove code setting enablebreaklist and
2020         skiplist to NULL.
2021         * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2022         * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2023         skiplist.
2024         * gdbcmd.h: Likewise.
2025         * skip.c (_initialize_step_skip): Move 'skiplist' from
2026         cli/cli-cmds.c.
2027
2028 2012-08-09  Yao Qi  <yao@codesourcery.com>
2029
2030         * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2031         * gnu-nat.c, symfile.c: Likewise.
2032
2033 2012-08-08  Aaron Gamble  <agamble@google.com>
2034
2035         * utils.c (prompt_for_continue_wait_time): New static global.
2036         (make_command_stats_cleanup): Initialize it.
2037         (report_command_stats): Subtract time waiting for user.
2038         (prompt_for_continue): Track time waiting for user.
2039         (defaulted_query): Track time waiting for user.
2040
2041 2012-08-08  Doug Evans  <dje@google.com>
2042
2043         * eval.c (evaluate_subexp_standard): Fix thinko in handling
2044         UNOP_MEMVAL_TYPE.
2045         * expprint.c (print_subexp_standard, case OP_TYPE): New.
2046         (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2047         (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2048         (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2049         (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2050         (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2051         elt.
2052         (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2053         (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2054         (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2055         (dump_prefix_expression): Handle OP_TYPE.
2056
2057 2012-08-08  Keith Seitz  <keiths@redhat.com>
2058
2059         * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2060         addr_start.
2061
2062 2012-08-08  Doug Evans  <dje@google.com>
2063
2064         * linux-thread-db.c: #include "gdb_vecs.h".
2065         (try_thread_db_load_from_pdir_1): New arg "subdir".  All callers
2066         updated.
2067         (try_thread_db_load_from_pdir): New arg "subdir".  All callers updated.
2068         (thread_db_load_search): Use a vector to iterate over path elements.
2069         Handle text appearing after "$pdir".
2070
2071         * gdb_string.h: Moved to ...
2072         * common/gdb_string.h: ... here.
2073         * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2074         gdb_string.h and gdb_assert.h.
2075
2076 2012-08-08  Yao Qi  <yao@codesourcery.com>
2077
2078         * tic6x-tdep.c (tic6x_register_to_value): Remove.
2079         (tic6x_value_to_register): Likewise.
2080         (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2081         and set_gdbarch_value_to_register.
2082
2083 2012-08-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
2084             Jean-Marc Saffroy  <saffroy@gmail.com>
2085
2086         PR 11804
2087         * defs.h (find_memory_region_ftype): New comment.  New arg modified.
2088         * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2089         * gcore.c (gcore_create_callback): New function comment.  Add modified
2090         parameter.  Only write modified regions.  Set SEC_READONLY exactly
2091         according to MODIFIED.
2092         (objfile_find_memory_regions): Ignore separate debug info files.  Ass
2093         the passed modified value to FUNC.
2094         * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2095         * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2096         first.  New variables modified and has_anonymous.  Parse the lines of
2097         smaps file.  Add the passed MODIFIED value to FUNC.
2098         * procfs.c (find_memory_regions_callback): Add the passed modified
2099         value.
2100
2101 2012-08-06  Tom Tromey  <tromey@redhat.com>
2102
2103         * dwarf2-frame.c (clear_pointer_cleanup): New function.
2104         (dwarf2_frame_cache): Use it.
2105         * frame-unwind.h (frame_sniffer_ftype): Document prologue
2106         cache initialization constraint.
2107
2108 2012-08-06  Tom Tromey  <tromey@redhat.com>
2109
2110         PR python/14386:
2111         * varobj.c (update_dynamic_varobj_children): Don't call
2112         PyIter_Check.
2113
2114 2012-08-06  Tom Tromey  <tromey@redhat.com>
2115
2116         PR cli/14392:
2117         * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2118
2119 2012-08-06  Nathaniel Flath  <flat0103@gmail.com>
2120
2121         * NEWS: New entry for 'cd' default parameters.
2122         * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2123
2124 2012-08-03  Tom Tromey  <tromey@redhat.com>
2125
2126         * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2127         return.
2128
2129 2012-08-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
2130
2131         * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2132         to attempting lseek/write.
2133         (inf_child_fileio_pread): Likewise for pread.
2134
2135 2012-08-02  Yao Qi  <yao@codesourcery.com>
2136
2137         * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2138         (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2139         add_setshow_zinteger_cmd.
2140         * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2141         * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2142         (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2143         instead of add_setshow_zinteger_cmd.
2144         * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2145         (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2146         instead of add_setshow_zinteger_cmd.
2147         * frame.c (frame_debug): Add 'unsigned'.
2148         (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2149         add_setshow_zinteger_cmd.
2150         * frame.h: Update the declaration of 'frame_debug'.
2151         * gdbtypes.c (overload_debug): Add 'unsigned'.
2152         (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2153         add_setshow_zinteger_cmd.
2154         * inferior.h: Update declaration of 'debug_infrun'.
2155         * infrun.c (debug_infrun): Add 'unsigned'.
2156         (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2157         add_setshow_zinteger_cmd.
2158         * jit.c (jit_debug): Add 'unsigned'.
2159         (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2160         add_setshow_zinteger_cmd.
2161         * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2162         (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2163         instead of add_setshow_zinteger_cmd.
2164         * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2165         (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2166         add_setshow_zinteger_cmd.
2167         * machoread.c (mach_o_debug_level): Add 'unsigned'.
2168         (_initialize_machoread): Call add_setshow_zuinteger_cmd
2169         instead of add_setshow_zinteger_cmd.
2170         * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2171         * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2172         (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2173         intead of add_setshow_zinteger_cmd.
2174         * mips-tdep.c (mips_debug): Add 'unsigned'.
2175         (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2176         instead of add_setshow_zinteger_cmd.
2177         * monitor.c (monitor_debug): Add 'unsigned'.
2178         (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2179         add_setshow_zinteger_cmd.
2180         * observer.c (observer_debug): Add 'unsigned'.
2181         (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2182         add_setshow_zinteger_cmd.
2183         * parse.c (expressiondebug): Add 'unsigned'.
2184         (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2185         add_setshow_zinteger_cmd.
2186         * record.c (record_debug): Add 'unsigned'.
2187         (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2188         add_setshow_zinteger_cmd.
2189         * record.h: Update the declaration of 'record_debug'.
2190         * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2191         (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2192         add_setshow_zinteger_cmd.
2193         * serial.c (global_serial_debug_p): Add 'unsigned'.
2194         (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2195         add_setshow_zinteger_cmd.
2196         * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2197         (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2198         add_setshow_zinteger_cmd.
2199         * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2200         (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2201         add_setshow_zinteger_cmd.
2202         * target.c (targetdebug): Add 'unsigned'.
2203         (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2204         add_setshow_zinteger_cmd.
2205         * valops.c (overload_debug): Add 'unsigned'.
2206         * varobj.c (varobjdebug): Add 'unsigned'.
2207         (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2208         add_setshow_zinteger_cmd.
2209         * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2210         (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2211         instead of add_setshow_zinteger_cmd.
2212
2213         * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2214         * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2215         (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2216         instead of add_setshow_zinteger_cmd.
2217         * gdbarch.c, gdbarch.h: Re-generated.
2218
2219 2012-08-02  Yao Qi  <yao@codesourcery.com>
2220
2221         * nto-tdep.c: Don't include cli/cli-decode.h and
2222         cli/cli-cmds.h.
2223         (_initialize_nto_tdep): Remove.
2224         * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2225         Remove field.
2226         Remove macro nto_internal_debugging.
2227
2228 2012-08-01  Richard Henderson  <rth@redhat.com>
2229
2230         * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2231         (mep-*-*) [gdb_target_obs]: Likewise.
2232
2233 2012-07-31  Andreas Schwab  <schwab@linux-m68k.org>
2234
2235         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2236         linux_get_siginfo_type.
2237
2238 2012-07-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
2239
2240         * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2241         AT_ENTRY_POINT.
2242         (call_function_by_hand) <ON_STACK>: Call write_memory with
2243         gdbarch_breakpoint_from_pc, if possible.
2244         (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2245         here.
2246
2247 2012-07-31  Yao Qi  <yao@codesourcery.com>
2248
2249         * tracepoint.c: Add 'static' for some variables.
2250
2251 2012-07-31  Yao Qi  <yao@codesourcery.com>
2252
2253         * go32-nat.c: Declare _initialize_go32_nat.
2254         * ser-go32.c: Declare _initialize_ser_dos.
2255         * top.c (do_chdir_cleanup): Add 'static'.
2256
2257 2012-07-30  Keith Seitz  <keiths@redhat.com>
2258
2259         * linespec.c (linespec_lex_number): A number followed
2260         by quotes is a valid number, too.
2261
2262 2012-07-30  Tom Tromey  <tromey@redhat.com>
2263
2264         * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2265
2266 2012-07-30  Ulrich Weigand  <ulrich.weigand@linaro.org>
2267
2268         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2269         attempt to 4-byte-align HW breakpoint addresses for Thumb.
2270
2271 2012-07-30  Andrew Burgess  <aburgess@broadcom.com>
2272
2273         * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2274         invalid or reevaluated to prevent prevent references to possibly
2275         delete'd type objects being left in the varobj.
2276
2277 2012-07-27  Tom Tromey  <tromey@redhat.com>
2278             Jan Kratochvil  <jan.kratochvil@redhat.com>
2279
2280         * copying.awk: Print buffer-read-only and vi ro markers.
2281         * copying.c: Rebuild.
2282         * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2283         * gdbarch.c, gdbarch.h: Rebuild.
2284         * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2285         buffer-read-only and vi ro markers.
2286         * features/arm-with-iwmmxt.c: Rebuild.
2287         * features/arm-with-m-fpa-layout.c: Rebuild.
2288         * features/arm-with-m-vfp-d16.c: Rebuild.
2289         * features/arm-with-m.c: Rebuild.
2290         * features/arm-with-neon.c: Rebuild.
2291         * features/arm-with-vfpv2.c: Rebuild.
2292         * features/arm-with-vfpv3.c: Rebuild.
2293         * features/i386/amd64-avx-linux.c: Rebuild.
2294         * features/i386/amd64-avx.c: Rebuild.
2295         * features/i386/amd64-linux.c: Rebuild.
2296         * features/i386/amd64.c: Rebuild.
2297         * features/i386/i386-avx-linux.c: Rebuild.
2298         * features/i386/i386-avx.c: Rebuild.
2299         * features/i386/i386-linux.c: Rebuild.
2300         * features/i386/i386-mmx-linux.c: Rebuild.
2301         * features/i386/i386-mmx.c: Rebuild.
2302         * features/i386/i386.c: Rebuild.
2303         * features/i386/x32-avx-linux.c: Rebuild.
2304         * features/i386/x32-avx.c: Rebuild.
2305         * features/i386/x32-linux.c: Rebuild.
2306         * features/i386/x32.c: Rebuild.
2307         * features/mips-dsp-linux.c: Rebuild.
2308         * features/mips-linux.c: Rebuild.
2309         * features/mips64-dsp-linux.c: Rebuild.
2310         * features/mips64-linux.c: Rebuild.
2311         * features/rs6000/powerpc-32.c: Rebuild.
2312         * features/rs6000/powerpc-32l.c: Rebuild.
2313         * features/rs6000/powerpc-403.c: Rebuild.
2314         * features/rs6000/powerpc-403gc.c: Rebuild.
2315         * features/rs6000/powerpc-405.c: Rebuild.
2316         * features/rs6000/powerpc-505.c: Rebuild.
2317         * features/rs6000/powerpc-601.c: Rebuild.
2318         * features/rs6000/powerpc-602.c: Rebuild.
2319         * features/rs6000/powerpc-603.c: Rebuild.
2320         * features/rs6000/powerpc-604.c: Rebuild.
2321         * features/rs6000/powerpc-64.c: Rebuild.
2322         * features/rs6000/powerpc-64l.c: Rebuild.
2323         * features/rs6000/powerpc-7400.c: Rebuild.
2324         * features/rs6000/powerpc-750.c: Rebuild.
2325         * features/rs6000/powerpc-860.c: Rebuild.
2326         * features/rs6000/powerpc-altivec32.c: Rebuild.
2327         * features/rs6000/powerpc-altivec32l.c: Rebuild.
2328         * features/rs6000/powerpc-altivec64.c: Rebuild.
2329         * features/rs6000/powerpc-altivec64l.c: Rebuild.
2330         * features/rs6000/powerpc-cell32l.c: Rebuild.
2331         * features/rs6000/powerpc-cell64l.c: Rebuild.
2332         * features/rs6000/powerpc-e500.c: Rebuild.
2333         * features/rs6000/powerpc-e500l.c: Rebuild.
2334         * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2335         * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2336         * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2337         * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2338         * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2339         * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2340         * features/rs6000/powerpc-vsx32.c: Rebuild.
2341         * features/rs6000/powerpc-vsx32l.c: Rebuild.
2342         * features/rs6000/powerpc-vsx64.c: Rebuild.
2343         * features/rs6000/powerpc-vsx64l.c: Rebuild.
2344         * features/rs6000/rs6000.c: Rebuild.
2345         * features/s390-linux32.c: Rebuild.
2346         * features/s390-linux32v1.c: Rebuild.
2347         * features/s390-linux32v2.c: Rebuild.
2348         * features/s390-linux64.c: Rebuild.
2349         * features/s390-linux64v1.c: Rebuild.
2350         * features/s390-linux64v2.c: Rebuild.
2351         * features/s390x-linux64.c: Rebuild.
2352         * features/s390x-linux64v1.c: Rebuild.
2353         * features/s390x-linux64v2.c: Rebuild.
2354         * features/tic6x-c62x-linux.c: Rebuild.
2355         * features/tic6x-c62x.c: Rebuild.
2356         * features/tic6x-c64x-linux.c: Rebuild.
2357         * features/tic6x-c64x.c: Rebuild.
2358         * features/tic6x-c64xp-linux.c: Rebuild.
2359         * features/tic6x-c64xp.c: Rebuild.
2360
2361 2012-07-27  Tom Tromey  <tromey@redhat.com>
2362
2363         * c-exp.y (classify_name): Avoid assignment in condition.
2364
2365 2012-07-27  Roland Schwingel  <roland.schwingel@onevision.com>
2366
2367         * amd64-windows-tdep.c: Include "frame.h".
2368         (amd64_windows_skip_trampoline_code): New function.
2369         (amd64_windows_init_abi): Add trampoline registration.
2370
2371 2012-07-27  Yao Qi  <yao@codesourcery.com>
2372
2373         * tracepoint.c (cur_traceframe_number): Remove.
2374         (set_tfile_traceframe): Remove.
2375         (tfile_trace_find, tfile_fetch_registers): Update callers.
2376         (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2377         (tfile_open, tfile_trace_find): Likewise.
2378
2379 2012-07-27  Yao Qi  <yao@codesourcery.com>
2380
2381         * thread.c (switch_to_thread): Don't call registers_changed.
2382
2383 2012-07-26  Tom Tromey  <tromey@redhat.com>
2384
2385         * Makefile.in (SFILES): Remove objc-exp.y.
2386         (YYFILES): Remove objc-exp.c.
2387         (YYOBJ): Remove objc-exp.o.
2388         (local-maintainer-clean): Don't mention objc-exp.c.
2389         * c-exp.y: Include objc-lang.h.
2390         (%union) <class>: New field.
2391         (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2392         (exp): Clone subscript production for OBJC_LBRAC.  Add various
2393         Objective C productions.
2394         (msglist, msgarglist, msgarg): New productions.
2395         (array_mod, func_mod, operator): Clone productions for
2396         OBJC_LBRAC.
2397         (parse_string_or_char): Handle '@' strings.
2398         (lex_one_token): Return OBJC_LBRAC.  Recognize @selector.
2399         (classify_name): Check la_name_of_this.  Recognize ObjC class
2400         names.
2401         * objc-exp.y: Remove.
2402         * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2403         * objc-lang.h (objc_parse, objc_error): Don't declare.
2404
2405 2012-07-26  Markus Metzger  <markus.t.metzger@intel.com>
2406
2407         * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2408
2409 2012-07-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
2410
2411         * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2412         and decrement.
2413
2414 2012-07-26  Tom Tromey  <tromey@redhat.com>
2415
2416         * copying.c: Rebuild.
2417         * copying.awk: Don't use immediate_quit.  Use 'no_set_class', not
2418         'no_class'.
2419
2420 2012-07-26  Tom Tromey  <tromey@redhat.com>
2421
2422         * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2423         immediate_quit.
2424         (print_objfile_statistics): Likewise.
2425         (maintenance_print_symbols): Likewise.
2426         (maintenance_print_msymbols): Likewise.
2427         (maintenance_print_objfiles): Likewise.
2428         * psymtab.c (print_partial_symbols): Call QUIT.
2429         (maintenance_print_psymbols): Likewise.  Don't modify
2430         immediate_quit.
2431         * copying.c (show_copying_command): Don't modify immediate_quit.
2432         (show_warranty_command): Likewise.
2433         * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2434
2435 2012-07-26  Keith Seitz  <keiths@redhat.com>
2436
2437         * linespec.c (linespec_lexer_lex_number): The input
2438         is also a valid number if the next character is a comma
2439         or colon.
2440
2441 2012-07-26  Joel Brobecker  <brobecker@adacore.com>
2442
2443         * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2444         configure options.
2445
2446 2012-07-26  Tristan Gingold  <gingold@adacore.com>
2447
2448         * machoread.c: Include gdb_bfd.h.
2449
2450 2012-07-26  Tristan Gingold  <gingold@adacore.com>
2451
2452         * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2453         offset.
2454
2455 2012-07-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2456
2457         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2458         SIZE to size_t.
2459         (dwarf2_evaluate_loc_desc): Likewise.
2460         (dwarf2_loc_desc_needs_frame): Likewise.
2461         (locexpr_describe_location_1): Likewise.
2462         * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2463         size_t.
2464         (struct dwarf2_loclist_baton): Likewise.
2465         * dwarf2read.c (struct dwarf_block): Likewise.
2466         (dump_die_shallow): Use pulongest to print dwarf_block.size.
2467         (decode_locdesc): Expand SIZE and I to size_t.
2468
2469 2012-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2470
2471         * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2472
2473 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
2474
2475         * doublest.c (convert_doublest_to_floatformat): If the exponent
2476         is too small, treat the value as zero.  If the exponent is too
2477         large, treat the value as infinity.
2478
2479 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
2480
2481         * configure.ac: Add --enable-lmcheck configure option.
2482         * configure: Regenerate.
2483
2484 2012-07-25  Tom Tromey  <tromey@redhat.com>
2485
2486         * NEWS: Mention maint info bfds.
2487         * gdb_bfd.c (all_bfds): New global.
2488         (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2489         (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2490         New functions.
2491
2492 2012-07-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
2493
2494         * configure.tgt: Add v850*-*-rtems*.
2495
2496 2012-07-25  Tom Tromey  <tromey@redhat.com>
2497
2498         * macrotab.c (macro_bcache_str): Remove cast.
2499
2500 2012-07-25  Hui Zhu  <hui_zhu@mentor.com>
2501
2502         * linespec.c (linespec_lexer_lex_number): Update comments,
2503         change the return and add check to make sure the input is
2504         the decimal numbers.
2505         (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2506         false, call linespec_lexer_lex_string.
2507
2508 2012-07-24  Tom Tromey  <tromey@redhat.com>
2509
2510         * symfile.c (symbol_file_add): Don't open BFD twice.
2511
2512 2012-07-24  Marc Khouzam  <marc.khouzam@ericsson.com>
2513
2514         * breakpoint.c (create_breakpoint): Store condition for pending
2515         breakpoints.
2516
2517 2012-07-24  Andreas Schwab  <schwab@linux-m68k.org>
2518
2519         * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2520         (m68k_return_value): Handle complex types like structures.
2521         (m68k_svr4_return_value): Likewise.
2522
2523 2012-07-24  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2524
2525         * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2526         parameters to bfd_get_section_name.
2527
2528 2012-07-24  Yao Qi  <yao@codesourcery.com>
2529
2530         * cli/cli-setshow.c: Handle case 'var_uinteger'
2531         and 'var_zuninteger' together.  Handle case 'var_integer' and
2532         'var_zinteger' together.
2533
2534 2012-07-23  Keith Seitz  <keiths@redhat.com>
2535
2536         * linespec.c (convert_linespec_to_sal): Don't add
2537         any symbols to the result vector if symbol_to_sal
2538         returns zero.
2539
2540 2012-07-23  Keith Seitz  <keiths@redhat.com>
2541
2542         * linespec.c (decode_objc): Record the function name
2543         in the linespec.
2544
2545 2012-07-23  Tom Tromey  <tromey@redhat.com>
2546
2547         * rs6000-nat.c (add_vmap): Rewrite archive loop.  Fix reference
2548         counting.
2549         * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2550         (map_vmap): Acquire a reference to the BFD.
2551
2552 2012-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
2553
2554         * p-valprint.c (pascal_object_print_value): Replace potentially
2555         unsafe alloca with xmalloc/xfree.
2556         * valops.c (search_struct_method): Likewise.
2557
2558 2012-07-23  Tom Tromey  <tromey@redhat.com>
2559
2560         * solib-svr4.c (enable_break): Update.
2561         * bfd-target.h (target_bfd_reopen): Update documentation.
2562
2563 2012-07-23  Tom Tromey  <tromey@redhat.com>
2564
2565         * symfile.c (separate_debug_file_exists): Update.
2566         (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2567         (reread_symbols): Update.
2568         * elfread.c (build_id_verify): Update.
2569         * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2570         bfd_open_maybe_remote.
2571
2572 2012-07-23  Tom Tromey  <tromey@redhat.com>
2573
2574         * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2575
2576 2012-07-23  Tom Tromey  <tromey@redhat.com>
2577
2578         * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2579         and 'abfd'.
2580         * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2581         and 'abfd'.
2582         * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2583         * machoread.c (macho_add_oso_symfile): Make a cleanup for
2584         'abfd'.
2585         (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2586         * objfiles.c (allocate_objfile): Acquire a new reference.
2587         * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2588         * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2589         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2590         a cleanup for 'nbfd'.
2591         * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2592         for 'nbfd'.
2593         * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2594         make a cleanup for 'abfd'.
2595         (symbol_file_add): Make a BFD cleanup.
2596
2597 2012-07-23  Tom Tromey  <tromey@redhat.com>
2598
2599         * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2600         (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2601         * corelow.c (core_open): Use gdb_bfd_fopen.
2602         * dsrec.c (load_srec): Use gdb_bfd_openr.
2603         * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2604         * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2605         * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2606         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2607         (gdb_bfd_fdopenr): New functions.
2608         * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2609         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2610         (gdb_bfd_fdopenr): Declare.
2611         * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2612         * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2613         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2614         gdb_bfd_openr_next_archived_file.
2615         (macho_check_dsym): Use gdb_bfd_openr.
2616         (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2617         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2618         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2619         * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2620         gdb_bfd_openr.
2621         * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2622         * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2623         gdb_bfd_openr_next_archived_file.
2624         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2625         Use gdb_bfd_openr.
2626         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2627         gdb_bfd_openr.
2628         * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2629         * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2630         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2631         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2632         (symfile_bfd_open): Use gdb_bfd_fopen.
2633         (generic_load): Use gdb_bfd_openr.
2634         * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2635
2636 2012-07-23  Tom Tromey  <tromey@redhat.com>
2637
2638         * bfd-target.c (target_bfd_reopen): Update.
2639         * cli/cli-dump.c (bfd_openr_with_cleanup)
2640         (bfd_openw_with_cleanup): Update.
2641         * corelow.c (core_open): Update.
2642         * dsrec.c (load_srec): Update.
2643         * exec.c (exec_file_attach): Update.
2644         * gcore.c (create_gcore_bfd): Update.
2645         * gdb_bfd.c (gdb_bfd_ref): Return void.
2646         (gdb_bfd_open): Update.
2647         * gdb_bfd.h (gdb_bfd_ref): Return void.
2648         Update comments.
2649         * jit.c (jit_bfd_try_read_symtab): Update.
2650         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2651         * machoread.c (macho_symfile_read_all_oso): Update.
2652         (macho_check_dsym): Update.
2653         * procfs.c (insert_dbx_link_bpt_in_file): Update.
2654         * remote-m32r-sdi.c (m32r_load): Update.
2655         * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2656         * rs6000-nat.c (add_vmap): Update.
2657         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2658         Update.
2659         * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2660         * solib-spu.c (spu_bfd_open): Update.
2661         * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2662         * spu-linux-nat.c (spu_bfd_open): Update.
2663         * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2664         (generic_load): Update.
2665         * windows-nat.c (windows_make_so): Update.
2666
2667 2012-07-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
2668
2669         * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2670
2671 2012-07-20  Jeff Kenton  <jkenton@tilera.com>
2672
2673         * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2674         SIGTRAMP_FRAME unwinding.
2675
2676 2012-07-20  Doug Evans  <dje@google.com>
2677
2678         * NEWS: Document new options "set/show use-deprecated-index-sections",
2679         and delete reference to --use-deprecated-index-sections.
2680         * symfile.h (use_deprecated_index_sections): Delete.
2681         * dwarf2read.c (use_deprecated_index_sections): Make static.
2682         (read_index_from_section): Update wording of how to load
2683         deprecated index sections.
2684         (_initialize_dwarf2_read): New options
2685         "set/show use-deprecated-index-sections".
2686         * main.c (captured_main): Delete --use-deprecated-index-sections.
2687
2688 2012-07-20  Pedro Alves  <palves@redhat.com>
2689
2690         PR threads/11692
2691         PR gdb/12203
2692
2693         * infrun.c (handle_inferior_event) <new thread>: Don't special
2694         case minus_one_ptid.
2695         <TARGET_WAITKIND_SPURIOUS>: Ditto.
2696         * linux-thread-db.c (thread_get_info_callback): Don't return early
2697         if the thread is zombie.
2698         (thread_from_lwp): Change return type to void.  Rewrite stale
2699         comment.
2700         (attach_thread): Don't return early if the thread is zombie,
2701         instead set its "dying" flag.
2702         (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2703         (find_new_threads_callback): Don't return early if the thread is
2704         zombie.
2705
2706 2012-07-20  Pedro Alves  <palves@redhat.com>
2707
2708         * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2709         * target.c (target_wait): Likewise.
2710         (str_comma_list_concat_elem, do_option, target_options_to_string):
2711         New functions.
2712         * target.h (target_options_to_string): Declare.
2713
2714 2012-07-20  Jan Kratochvil <jan.kratochvil@redhat.com>
2715             Tom Tromey  <tromey@redhat.com>
2716
2717         * dwarf2read.c (dwarf_decode_macros)
2718         <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2719         DW_MACRO_GNU_transparent_include_alt>: New cases.
2720         (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2721         DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2722
2723 2012-07-20  Tom Tromey  <tromey@redhat.com>
2724
2725         * dwarf2read.c (try_open_dwo_file): Don't call
2726         gdb_bfd_stash_filename.
2727
2728 2012-07-20  Pedro Alves  <palves@redhat.com>
2729
2730         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2731         (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2732         (i386_process_record): Tweak description comments.
2733
2734 2012-07-20  Pedro Alves  <palves@redhat.com>
2735
2736         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2737         (i386_process_record): Use record_read_memory.
2738         * record.c (record_read_memory): New function.
2739         (record_arch_list_add_mem, record_exec_insn): Use
2740         record_read_memory.
2741         * record.h (record_read_memory): Declare.
2742
2743 2012-07-20  Yao Qi  <yao@codesourcery.com>
2744
2745         * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2746         NULL for xfree.
2747
2748 2012-07-19  Pedro Alves  <palves@redhat.com>
2749
2750         * record.c (record_resume): Ask the target beneath to report all
2751         signals.
2752
2753 2012-07-19  Doug Evans  <dje@google.com>
2754
2755         * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2756         there's no section at address zero.
2757         (dwarf2_record_block_ranges): Ditto.
2758
2759 2012-07-19  Yao Qi  <yao@codesourcery.com>
2760
2761         * command.h, remote.c: Fix a typo in comment.
2762
2763 2012-07-19  Tom Tromey  <tromey@redhat.com>
2764
2765         PR exp/13206:
2766         * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2767         * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2768         OP_DECLTYPE>: New cases.
2769         * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2770         (type_exp): Add new productions.
2771         (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2772         and decltype.
2773         * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2774         New case.
2775         * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2776         OP_DECLTYPE>: New case.
2777         * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2778         New case.
2779         * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2780         * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2781
2782 2012-07-19  Tom Tromey  <tromey@redhat.com>
2783
2784         * c-exp.y (enum token_flags): New.
2785         (struct token) <cxx_only>: Remove.
2786         <flags>: New field.
2787         (tokentab3, tokentab2, ident_tokens): Update.
2788         (lex_one_token): Update.  Handle FLAG_SHADOW.
2789
2790 2012-07-19  Tom Tromey  <tromey@redhat.com>
2791
2792         * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2793         * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2794         UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2795         * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE.  Update
2796         for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.  Use
2797         type_exp production where appropriate.
2798         * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2799         <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2800         <UNOP_MEMVAL_TYPE>: New case.
2801         (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2802         (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2803         * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2804         <UNOP_MEMVAL_TYPE>: New case.
2805         (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2806         UNOP_REINTERPRET_CAST>: Update.
2807         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2808         * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2809         UNOP_REINTERPRET_CAST>: Update.
2810         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2811         * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2812         * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2813         constants.
2814
2815 2012-07-19  Yao Qi  <yao@codesourcery.com>
2816             Jan Kratochvil <jan.kratochvil@redhat.com>
2817
2818         * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2819         and case 'var_optional_filename' together.
2820         * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2821         instead of add_setshow_optional_filename_cmd for setshow command
2822         'args'.  Set completer for 'set args'.
2823
2824 2012-07-18  Doug Evans  <dje@google.com>
2825
2826         * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2827         * common/gdb_vecs.c: New file, contents from utils.c.
2828         * common/host-defs.h: New file, contents from defs.h.
2829         * utils.h: New file, contents from defs.h.
2830         * defs.h: Move all declarations of objects defined in utils.c
2831         to utils.h (except QUIT() and related).
2832         #include "utils.h", "host-defs.h".
2833         * probe.h (probe_p): Move here from gdb_vecs.h.
2834         * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2835         * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2836         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2837         * Makefile.in (SFILES): Add common/gdb_vecs.c.
2838         (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2839         (COMMON_OBS): Add gdb_vecs.o.
2840         (gdb_vecs.o): New rule.
2841
2842 2012-07-18  Keith Seitz  <keiths@redhat.com>
2843
2844         * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2845         parameter.  If non-zero, use SYMNAME as the canonical name
2846         for the SaL.
2847         Update all callers.
2848         (convert_linespec_to_sals): Use add_sal_to_sals for
2849         expressions, too.
2850         (decode_line_full): No need to "fill in missing canonical names"
2851         anymore. Simply make cleanups for the allocated names.
2852
2853 2012-07-18  Keith Seitz  <keiths@redhat.com>
2854
2855         * linespec.c (struct linespec): Constify expression,
2856         source_filename, function_name, and label_name.
2857         (symbol_not_found_error): Make all parameters const.
2858         (linespec_parser_delete): No need to check for NULL
2859         when using xfree. Cast const char * to char * for xfree.
2860
2861 2012-07-18  Keith Seitz  <keiths@redhat.com>
2862
2863         * breakpoint.c (invalid_thread_id_error): New function.
2864         (find_condition_and_thread): Use invalid_thread_id_error.
2865         (watch_command_1): Likewise.
2866
2867 2012-07-18  Tom Tromey  <tromey@redhat.com>
2868
2869         * cc-with-index.sh, cc-with-dwz.sh: Remove.
2870         * contrib/cc-with-tweaks.sh: New file.
2871
2872 2012-07-18  Tom Tromey  <tromey@redhat.com>
2873
2874         * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2875         (locate_dwz_sections): Recognize .gdb_index.
2876         (create_cus_from_index_list): New function.
2877         (create_cus_from_index): Use it.  Handle .dwz data.
2878         (read_index_from_section): New function, extracted from
2879         dwarf2_read_index.
2880         (dwarf2_read_index): Use it.  Read .gdb_index from dwz file,
2881         if needed.
2882
2883 2012-07-18  Tom Tromey  <tromey@redhat.com>
2884
2885         * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2886         (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2887         <is_dwz>: New field.
2888         (struct dwz_file): New.
2889         (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2890         (locate_dwz_sections, dwarf2_get_dwz_file)
2891         (get_abbrev_section_for_cu): New functions.
2892         (error_check_comp_unit_head, read_and_check_comp_unit_head)
2893         (read_and_check_type_unit_head): Add abbrev_section argument.
2894         (create_debug_types_hash_table): Update.
2895         (init_cutu_and_read_dies): Use proper abbrev section.
2896         (init_cutu_and_read_dies_no_follow): Likewise.
2897         (set_partial_user): Do nothing if PST==NULL.
2898         (read_comp_units_from_section): New function.
2899         (create_all_comp_units): Use it.
2900         (scan_partial_symbols, partial_die_parent_scope): Update.
2901         (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2902         (process_imported_unit_die, read_partial_die): Handle .dwz files.
2903         (find_partial_die): Add offset_in_dwz argument.  Update.
2904         (guess_partial_die_structure_name, fixup_partial_die): Update.
2905         (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2906         DW_FORM_GNU_strp_alt.
2907         (read_indirect_string_from_dwz): New function.
2908         (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2909         (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2910         (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2911         (follow_die_offset): Add offset_in_dwz argument.
2912         (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2913         (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2914         (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2915         Handle new macro forms.
2916         (dwarf_decode_macros): Update.
2917         (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2918         (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2919         (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2920         (create_debug_types_hash_table): Use correct abbrev section.
2921         (get_debug_line_section): New function.
2922         (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2923         (process_full_comp_unit): Pass 'required' argument to
2924         end_symtab_get_static_block.
2925         * buildsym.h (end_symtab_get_static_block): Update.
2926         * buildsym.c (end_symtab_get_static_block): Add 'required'
2927         argument.
2928         (end_symtab, end_expandable_symtab): Update.
2929
2930 2012-07-18  Tom Tromey  <tromey@redhat.com>
2931
2932         * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2933         (pagesize): Remove.
2934         (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2935         (zlib_decompress_section): Remove.
2936         (dwarf2_read_section): Use gdb_bfd_map_section.
2937         (munmap_section_buffer): Remove.
2938         (free_dwo_file, dwarf2_per_objfile_free): Don't use
2939         munmap_section_buffer.
2940         * gdb_bfd.c: Include zlib.h, sys/mman.h.
2941         (struct gdb_bfd_section_data): New.
2942         (free_one_bfd_section): New function.
2943         (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2944         (get_section_descriptor, zlib_decompress_section)
2945         (gdb_bfd_map_section): New functions.
2946         * gdb_bfd.h (gdb_bfd_map_section): Declare.
2947
2948 2012-07-18  Tom Tromey  <tromey@redhat.com>
2949
2950         * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2951
2952 2012-07-18  Tom Tromey  <tromey@redhat.com>
2953
2954         * gdb_bfd.c (struct gdb_bfd_data): New.
2955         (gdb_bfd_cache): New global.
2956         (struct gdb_bfd_cache_search): New.
2957         (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2958         (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2959         * gdb_bfd.h (gdb_bfd_open): Declare.
2960
2961 2012-07-18  Tom Tromey  <tromey@redhat.com>
2962
2963         * utils.c (make_cleanup_bfd_unref): Rename from
2964         make_cleanup_bfd_close.
2965         * defs.h (make_cleanup_bfd_unref): Rename from
2966         make_cleanup_bfd_close.
2967         * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2968         (bfd_openw_with_cleanup): Update.
2969         * corelow.c (core_open): Update.
2970         * dsrec.c (load_srec): Update.
2971         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2972         * remote-m32r-sdi.c (m32r_load): Update.
2973         * remote-mips.c (mips_load_srec): Update.
2974         (pmon_load_fast): Update.
2975         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2976         Update.
2977         (darwin_bfd_open): Update.
2978         * solib.c (solib_bfd_fopen): Update.
2979         * symfile-mem.c (symbol_file_add_from_memory): Update.
2980         * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2981         (symfile_bfd_open): Update.
2982         (generic_load): Update.
2983
2984 2012-07-18  Tom Tromey  <tromey@redhat.com>
2985
2986         * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2987         (pmon_load_fast): Likewise.
2988         * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2989         (m32r_upload_command): Likewise.
2990         * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2991         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2992         Use make_cleanup_bfd_close.
2993
2994 2012-07-18  Tom Tromey  <tromey@redhat.com>
2995
2996         * symfile.c (symfile_bfd_open): Don't copy name.  Call
2997         gdb_bfd_stash_filename.
2998         (load_command): Open the new BFD before freeing the old.
2999         (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3000         * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3001         Call gdb_bfd_stash_filename.
3002         * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3003         * solib-spu.c (spu_bfd_fopen): Don't copy name.  Call
3004         gdb_bfd_stash_filename.
3005         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3006         Free found_pathname.
3007         * rs6000-nat.c (add_vmap): Don't copy filename.  Call
3008         gdb_bfd_stash_filename.
3009         * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3010         * machoread.c (macho_add_oso_symfile): Call
3011         gdb_bfd_stash_filename.
3012         (macho_symfile_read_all_oso): Arrange to free archive_name.  Call
3013         gdb_bfd_stash_filename.
3014         (macho_check_dsym): Don't copy filename.  Call
3015         gdb_bfd_stash_filename.
3016         * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3017         * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3018         * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3019         * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3020         * exec.c (exec_close): Don't free the BFD's filename.
3021         (exec_file_attach): Don't copy the filename.  Call
3022         gdb_bfd_stash_filename.
3023         * corelow.c (core_close): Don't free the BFD's filename.
3024         (core_open): Call gdb_bfd_stash_filename.
3025         * corefile.c (reopen_exec_file): Remove #if 0 code.
3026         * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename.  Free
3027         pathname.
3028         * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3029
3030 2012-07-18  Tom Tromey  <tromey@redhat.com>
3031
3032         * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3033         gdb_bfd_unref.
3034         (free_dwo_file): Use gdb_bfd_unref.
3035         * cli/cli-dump.c: Include gdb_bfd.h.
3036         (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3037         (bfd_openr_with_cleanup): Likewise.
3038         * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3039         gdb_bfd_unref.
3040         * utils.c: Include gdb_bfd.h.
3041         (do_bfd_close_cleanup): Use gdb_bfd_unref.
3042         * symfile.c: Include gdb_bfd.h.
3043         (separate_debug_file_exists): Use gdb_bfd_unref.
3044         (bfd_open_maybe_remote): Use gdb_bfd_ref.
3045         (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3046         (generic_load): Use gdb_bfd_ref.
3047         (reread_symbols): Use gdb_bfd_unref.
3048         * symfile-mem.c: Include gdb_bfd.h.
3049         (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3050         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3051         * solib.c: Include gdb_bfd.h.
3052         (solib_bfd_fopen): Use gdb_bfd_ref.
3053         (solib_bfd_open): Use gdb_bfd_unref.
3054         (free_so_symbols): Use gdb_bfd_unref.
3055         (reload_shared_libraries_1): Use gdb_bfd_unref.
3056         * solib-spu.c: Include gdb_bfd.h.
3057         (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3058         * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3059         gdb_bfd_unref.
3060         * solib-frv.c: Include gdb_bfd.h.
3061         (enable_break2): Use gdb_bfd_unref.
3062         * solib-dsbt.c: Include gdb_bfd.h.
3063         (enable_break2): Use gdb_bfd_unref.
3064         * solib-darwin.c: Include gdb_bfd.h.
3065         (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3066         gdb_bfd_unref.
3067         (darwin_bfd_open): Use gdb_bfd_unref.
3068         * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3069         * remote-mips.c: Include gdb_bfd.h.
3070         (mips_load_srec): Use gdb_bfd_ref.
3071         (pmon_load_fast): Use gdb_bfd_ref.
3072         * remote-m32r-sdi.c: Include gdb_bfd.h.
3073         (m32r_load): Use gdb_bfd_ref.
3074         * record.c: Include gdb_bfd.h.
3075         (record_save_cleanups): Use gdb_bfd_unref.
3076         (cmd_record_save): Use gdb_bfd_unref.
3077         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3078         gdb_bfd_unref.
3079         * objfiles.h (gdb_bfd_close_or_warn): Remove.
3080         (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3081         * objfiles.c: Include gdb_bfd.h.
3082         (free_objfile): Use gdb_bfd_unref.
3083         (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3084         gdb_bfd.c.
3085         * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3086         (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3087         (macho_check_dsym): Likewise.
3088         * m32r-rom.c: Include gdb_bfd.h.
3089         (m32r_load): Use gdb_bfd_ref.
3090         (m32r_upload_command): Use gdb_bfd_ref.
3091         * jit.c: Include gdb_bfd.h.
3092         (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3093         * gdb_bfd.h: New file.
3094         * gdb_bfd.c: New file.
3095         * gcore.c: Include gdb_bfd.h.
3096         (create_gcore_bfd): Use gdb_bfd_ref.
3097         (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3098         (gcore_command): Use gdb_bfd_unref.
3099         * exec.c: Include gdb_bfd.h.
3100         (exec_close): Use gdb_bfd_unref.
3101         (exec_close_1): Use gdb_bfd_unref.
3102         (exec_file_attach): Use gdb_bfd_ref.
3103         * elfread.c: Include gdb_bfd.h.
3104         (build_id_verify): Use gdb_bfd_unref.
3105         * dsrec.c: Include gdb_bfd.h.
3106         (load_srec): Use gdb_bfd_ref.
3107         * corelow.c: Include gdb_bfd.h.
3108         (core_close): Use gdb_bfd_unref.
3109         (core_open): Use gdb_bfd_ref.
3110         * bfd-target.c: Include gdb_bfd.h.
3111         (target_bfd_xclose): Use gdb_bfd_unref.
3112         (target_bfd_reopen): Use gdb_bfd_ref.
3113         * Makefile.in (SFILES): Add gdb_bfd.c.
3114         (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3115         (COMMON_OBS): Add gdb_bfd.o.
3116
3117 2012-07-18  Keith Seitz  <keiths@redhat.com>
3118
3119         * breakpoint.c (find_condition_and_thread): Initialize
3120         TASK and REST.
3121         (create_breakpiont): find_condition_and_thread will now
3122         initialize COND_STRING, THREAD, and REST (and TASK).
3123         (addr_string_to_sals): Likewise.
3124
3125 2012-07-18  Pedro Alves  <palves@redhat.com>
3126
3127         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3128         Pull the single step breakpoints out of the target.
3129
3130 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
3131
3132         * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3133         * stap-probe.c (compile_probe_arg): Likewise.
3134
3135 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
3136
3137         * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3138         (elf_compile_to_ax): Likewise.
3139         * infrun.c (insert_exception_resume_from_probe): Likewise.
3140         (check_exception_resume): Remove `objfile' variable.
3141         * probe.c (find_probe_by_pc): Remove `objfile' argument.
3142         (struct probe_and_objfile, probe_and_objfile_s): Delete.
3143         (collect_probes): Adjust return value to `VEC (probe_p) *'.
3144         (compare_entries): Rename to...
3145         (compare_probes): ...this.  Adjust function to work with
3146         `struct probe *'.  Rename variables `ea' and `eb' to `pa' and `pb'
3147         respectively.
3148         (gen_ui_out_table_header_info): Adjust `probes' argument to be
3149         `VEC (probe_p) *'.
3150         (print_ui_out_info): Adjust argument to be `struct probe *'.
3151         (info_probes_for_ops): Adjust internal computations to use
3152         `VEC (probe_p) *'.
3153         (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3154         * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3155         gen_info_probes_table_values>: Remove `objfile' argument.
3156         (struct probe) <objfile>: New field.
3157         (find_probe_by_pc): Remove `objfile' argument.
3158         * stap-probe.c (stap_parse_probe_arguments): Likewise.
3159         (stap_get_probe_argument_count): Likewise.
3160         (stap_get_arg): Likewise.
3161         (stap_evaluate_probe_argument): Likewise.
3162         (stap_compile_to_ax): Likewise.
3163         (compile_probe_arg): Refactor not to pass `objfile' anymore.
3164         (handle_stap_probe): Fill `objfile' field from `struct probe'.
3165         (stap_gen_info_probes_table_header): Remove `objfile' argument.
3166         * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3167         sym_compile_to_ax>: Likewise.
3168
3169 2012-07-18  Terry Guo  <terry.guo@arm.com>
3170
3171         PR 14329
3172         * defs.h (GDB_MI_MSG_WIDTH): New.
3173         * ser_base (ser_base_read_error_fd): New function.
3174         (do_ser_base_readchar): Poll error file descriptor as well as
3175         standard output.
3176         (generic_readchar): Refactor error handling.
3177
3178 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
3179
3180         * NEWS: Create a new section for the next release branch.
3181         Rename the section of the current branch, now that it has
3182         been cut.
3183
3184 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
3185
3186         GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3187         * version.in: Bump version to 7.5.50.20120718-cvs.
3188
3189 2012-07-17  Keith Seitz  <keiths@redhat.com>
3190
3191         * linespec.c (linespec_parse_line_offset): Make parameter
3192         const.
3193
3194 2012-07-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
3195
3196         PR 11914
3197         * f-valprint.c (info_common_command): New variable frame_id.
3198         Reinitialize FI form FRAME_ID after each print_variable_and_value.
3199         * printcmd.c (print_variable_and_value): Extend function comment.
3200         Add comment for invalidated FRAME.
3201         * stack.c (backtrace_command_1): New variable frame_id.  Reinitialize
3202         FI form FRAME_ID after each print_frame_local_vars.
3203         (struct print_variable_and_value_data): Change frame to frame_id.
3204         (do_print_variable_and_value): New variable frame, initialize it from
3205         p->frame_id.  Add comment for invalidated FRAME.
3206         (print_frame_local_vars, print_frame_arg_vars): New function comment.
3207         Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization.  Add comment
3208         for invalidated FRAME.
3209
3210 2012-07-16  Marc Khouzam  <marc.khouzam@ericsson.com>
3211             Pedro Alves  <palves@redhat.com>
3212
3213         * linux-nat.c (linux_nat_detach): Don't unregister from the event
3214         loop.
3215
3216 2012-07-16  Tom Tromey  <tromey@redhat.com>
3217
3218         * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3219
3220 2012-07-15  Doug Evans  <dje@google.com>
3221
3222         * dwarf2read.c (stmt_list_hash): New struct.
3223         (type_unit_group): Embed "per_cu" member, remove pointer.
3224         New union member "t", move member "tus" into it, all uses updated.
3225         New member "hash", replaces member "line_offset, all uses updated.
3226         (quick_file_names): Replace member "offset" with "hash", all uses
3227         updated.
3228         (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3229         (hash_file_name_entry, eq_file_name_entry): Call them.
3230         (hash_type_unit_group, eq_type_unit_group): Ditto.
3231         (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3232         (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3233         (dw2_get_file_names): Update.
3234         (create_type_unit_group): Replace "per_cu" arg with "cu".
3235         All callers updated.  Fix "quick" (.gdb_index) handling.
3236         (get_type_unit_group): Replace "per_cu" arg with "cu".
3237         All callers updated.
3238         (build_type_unit_groups): Don't reset tu_stats.
3239
3240         * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3241         "tab_cur_size".  Change member "tab" to be a htab_t.
3242         (create_filename_seen_cache): Update.
3243         (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3244         (filename_seen): Update.
3245
3246 2012-07-13  Doug Evans  <dje@google.com>
3247
3248         * symtab.c (filename_seen): Update comment.
3249
3250 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3251             Doug Evans  <dje@google.com>
3252
3253         * buildsym.c (end_symtab_1): Split it to ...
3254         (end_symtab_get_static_block): ... this ...
3255         (end_symtab_from_static_block): ... and this function.
3256         (end_symtab, end_expandable_symtab): Call them.
3257         * buildsym.h (end_symtab_get_static_block)
3258         (end_symtab_from_static_block): New declarations.
3259         * dwarf2read.c (process_full_comp_unit): New variable static_block.
3260         Set its valid CU ranges.
3261
3262 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3263
3264         * dwarf2loc.c (disassemble_dwarf_expression): Handle
3265         DW_OP_GNU_parameter_ref.
3266
3267 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3268
3269         * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3270         read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3271
3272 2012-07-13  Doug Evans  <dje@google.com>
3273
3274         * symtab.c (output_source_filename): Delete unnecessary forward decl.
3275         (filename_seen_cache): New struct.
3276         (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3277         (create_filename_seen_cache): New function.
3278         (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3279         (filename_seen): Delete arg "first".  New arg "cache".  All callers
3280         updated.
3281         (output_source_filename_data): New struct.
3282         (output_source_filename): Delete arg "first".  New arg "data".
3283         All callers updated.
3284         (sources_info): Delete local "first".  New locals "data", "cleanups".
3285         Rewrite to use filename_seen_cache.
3286         (add_partial_filename_data): Delete member "first".  New member
3287         "filename_seen_cache".  All uses updated.
3288         (make_source_files_completion_list): Rewrite to use
3289         filename_seen_cache.
3290
3291 2012-07-12  Doug Evans  <dje@google.com>
3292
3293         * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3294
3295 2012-07-10  Doug Evans  <dje@google.com>
3296
3297         PR gdb/13498
3298         * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3299         all_type_unit_groups, type_unit_groups, tu_stats.
3300         (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3301         All uses updated.  Add type_unit_group to union "s".
3302         (type_unit_group): New struct.
3303         (IS_TYPE_UNIT_GROUP): New macro.
3304         (abbrev_table): Delete unused member "section".
3305         (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3306         (dw2_get_cu): Assert not used with type_unit_group.
3307         (dw2_get_primary_cu): New function.
3308         (dw2_build_type_unit_groups_reader): New function.
3309         (dw2_build_type_unit_groups): New function.
3310         (dw2_get_file_names): Assert not called on type units.
3311         (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3312         Redo loop to iterate over type unit groups instead of type units.
3313         (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3314         (read_abbrev_offset): New function.
3315         (init_cutu_and_read_dies): New arg "abbrev_table".  All callers
3316         updated.
3317         (create_partial_symtab): New function.
3318         (process_psymtab_comp_unit_reader): Assert not used with type units.
3319         Call create_partial_symtab.
3320         (process_psymtab_type_unit): Delete.
3321         (hash_type_unit_group, eq_type_unit_group): New functions.
3322         (allocate_type_unit_groups_table): New function.
3323         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3324         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3325         (create_type_unit_group, get_type_unit_group): New functions.
3326         (tu_abbrev_offset): New struct.
3327         (sort_tu_by_abbrev_offset): New function.
3328         (add_type_unit_group_to_table): New function.
3329         (build_type_unit_groups): New function.
3330         (build_type_psymtabs_reader): New function.
3331         (build_type_psymtab_dependencies): New function.
3332         (build_type_psymtabs): Rewrite.
3333         (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3334         is seen in a type unit.
3335         (process_queue): Move symtab expansion debugging printfs here.
3336         Call process_full_type_unit for type units.
3337         (compute_symtab_includes): Assert not called for type units.
3338         (process_cu_includes): Don't call compute_symtab_includes for
3339         type units.
3340         (process_full_type_unit): New function.
3341         (process_imported_unit_die): Flag an error if called for type units.
3342         (handle_DW_AT_stmt_list): Delete arg "want_line_info".  All callers
3343         updated.  Assert not called for type units.
3344         (read_file_scope): Call dwarf2_start_symtab.
3345         (setup_type_unit_groups): New function.
3346         (read_type_unit_scope): Rewrite.
3347         (abbrev_table_read_table): Initialize abbrev_table->offset.
3348         (abbrev_table_free_cleanup): New function.
3349         (dwarf2_start_symtab): New function.
3350         (load_full_type_unit): Assert not called for type unit groups.
3351         * buildsym.c (finish_block_internal): New arg "expandable".
3352         All callers updated.
3353         (start_symtab): Move most contents to ...
3354         (restart_symtab): ... here.  New function.
3355         (reset_symtab_globals): New function.
3356         (end_symtab_1): Renamed from end_symtab.  New arg "expandable".
3357         Call reset_symtab_globals.
3358         (end_symtab, end_expandable_symtab): New functions.
3359         (set_missing_symtab, augment_type_symtab): New functions.
3360         * buildsym.h (end_expandable_symtab): Declare.
3361         (augment_type_symtab, restart_symtab): Declare.
3362         * psympriv.h (struct partial_symtab): New member "anonymous".
3363         * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3364         anonymous psymtabs.
3365         (read_psymtabs_with_filename): Ditto.
3366         (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3367         (expand_symtabs_matching_via_partial): Ditto.
3368         (dump_psymtab): Update.
3369         * dictionary.c (dict_add_pending): New function.
3370         * dictionary.h (dict_add_pending): Declare.
3371
3372 2012-07-09  Doug Evans  <dje@google.com>
3373
3374         * buildsym.c (start_subfile): Remove unnecessary check for
3375         name == NULL.
3376
3377         * psymtab.c (allocate_psymtab): Use host_address_to_string.
3378
3379         * dwarf2read.c (load_full_type_unit): Simplify.
3380
3381         * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3382         to struct signatured_type **.  All uses updated.
3383
3384         * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3385         All callers updated.
3386
3387 2012-07-09  Tom Tromey  <tromey@redhat.com>
3388
3389         * c-exp.y (check_parameter_typelist): New function.
3390         (parameter_typelist): Call it.
3391         * eval.c (make_params): Handle '(void)' case.
3392         * gdbtypes.c (lookup_function_type_with_arguments): Handle
3393         '(void)' case.
3394
3395 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3396
3397         * common/linux-ptrace.c: Include gdb_assert.h.
3398         <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3399         <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3400         stdint.h.
3401         (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3402         functions.
3403         * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3404         * linux-nat.c (linux_child_post_attach)
3405         (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3406
3407 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3408
3409         * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3410         nptl <2.7 bug workaround for core files.
3411
3412 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3413
3414         * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3415         clearing.
3416         (save_siginfo): Remove.
3417         (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3418         call.
3419         (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3420         (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3421         * linux-nat.h (struct lwp_info): Remove field siginfo.
3422
3423 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3424
3425         Code cleanup for the next patch.
3426         * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3427         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3428         call for it.
3429         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3430         (ia64_linux_stopped_data_address):
3431         * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3432         the return value.
3433         * linux-nat.h (linux_nat_get_siginfo): Likewise.
3434         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3435         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3436         call for it.
3437
3438 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3439
3440         PR 14321
3441         * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3442         Increase buffer sizes to 2x we need, not just 2x of the previous size.
3443
3444 2012-07-06  Tom Tromey  <tromey@redhat.com>
3445
3446         * c-exp.y (DOTDOTDOT): New token.
3447         (func_mod, exp): Use parameter_typelist.
3448         (parameter_typelist): New production.
3449         (tokentab3): Add "..." token.
3450         * eval.c (make_params): Handle varargs.
3451         * gdbtypes.c (lookup_function_type_with_arguments): Handle
3452         varargs.
3453
3454 2012-07-06  Tom Tromey  <tromey@redhat.com>
3455
3456         PR exp/9608:
3457         * c-exp.y (%union) <tvec>: Change type.
3458         (func_mod): Now uses <tvec> type.
3459         (exp): Update for tvec change.
3460         (direct_abs_decl): Push the typelist.
3461         (func_mod): Return a typelist.
3462         (nonempty_typelist): Update for tvec change.
3463         * gdbtypes.c (lookup_function_type_with_arguments): New function.
3464         * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3465         * parse.c (pop_type_list): New function.
3466         (push_typelist): New function.
3467         (follow_types): Handle tp_function_with_arguments.
3468         * parser-defs.h (type_ptr): New typedef.  Define a VEC.
3469         (enum type_pieces) <tp_function_with_arguments>: New constant.
3470         (union type_stack_elt) <typelist_val>: New field.
3471         (push_typelist): Declare.
3472
3473 2012-07-06  Tom Tromey  <tromey@redhat.com>
3474
3475         * c-exp.y (%union) <type_stack>: New field.
3476         (abs_decl, direct_abs_decl): Use <type_stack> type.  Update.
3477         (ptr_operator_ts): New production.
3478         (ptype): Update.
3479         * parse.c (type_stack_reserve): New function.
3480         (check_type_stack_depth): Use it.
3481         (pop_type_stack, append_type_stack, push_type_stack)
3482         (get_type_stack, type_stack_cleanup): New functions.
3483         (follow_types): Handle tp_type_stack.
3484         (_initialize_parse): Simplify initialization.
3485         * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3486         constant.
3487         (union type_stack_elt) <stack_val>: New field.
3488         (get_type_stack, append_type_stack, push_type_stack)
3489         (type_stack_cleanup): Declare.
3490
3491 2012-07-06  Tom Tromey  <tromey@redhat.com>
3492
3493         * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3494         Remove.
3495         (struct type_stack): New.
3496         * parse.c (type_stack, type_stack_size, type_stack_depth):
3497         Remove.
3498         (type_stack): New global.
3499         (parse_exp_in_context, check_type_stack_depth)
3500         (insert_into_type_stack, insert_type, push_type, push_type_int)
3501         (insert_type_address_space, pop_type, pop_type_int)
3502         (_initialize_parse): Update.
3503
3504 2012-07-06  Tom Tromey  <tromey@redhat.com>
3505
3506         * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3507         Remove %type.
3508
3509 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3510
3511         * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3512
3513 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3514             Jan Kratochvil  <jan.kratochvil@redhat.com>
3515
3516         * cp-valprint.c (cp_print_value): Replace potentially unsafe
3517         alloca with xmalloc/xfree.
3518
3519 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3520
3521         * MAINTAINERS (Write After Approval): Add myself to the list.
3522
3523 2012-07-05  Doug Evans  <dje@google.com>
3524
3525         * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3526
3527 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
3528
3529         * ax-gdb.c (cli/cli-utils.h): New include.
3530         (linespec.h): Ditto.
3531         (agent_eval_command_one): New function.
3532         (agent_command_1): Ditto.
3533         (agent_command): Call function agent_command_1.
3534         (agent_eval_command): Ditto.
3535         (_initialize_ax_gdb): Change help for "maint agent"
3536         and "maint agent-eval".
3537
3538 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
3539
3540         * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3541         * cli/cli-utils.c (check_for_argument): New function.
3542         * cli/cli-utils.h (check_for_argument): Ditto.
3543
3544 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
3545
3546         * NEWS: Mention x32 ABI support.
3547
3548 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
3549
3550         * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3551         AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3552
3553         * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3554         and pc_regnum_from_eax to -1.  Update SP regnum from
3555         sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3556         needed.
3557
3558         * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3559         pc_regnum_from_eax.
3560
3561 2012-07-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3562
3563         Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3564         * dwarf2expr.h: Include gdbtypes.h.
3565         (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3566         these forward declarations.
3567         (cu_offset, sect_offset): Move these ...
3568         * gdbtypes.h: Remove include dwarf2expr.h.
3569         (cu_offset, sect_offset): ... here.
3570
3571 2012-07-03  H.J. Lu  <hongjiu.lu@intel.com>
3572
3573         * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3574         (amd64_linux_sigtramp_code): This.
3575         (amd64_x32_linux_sigtramp_code): New.
3576         (LINUX_SIGTRAMP_LEN): Updated.
3577         (amd64_linux_sigtramp_start): Check x32 sigtramp.
3578
3579 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3580
3581         * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3582
3583 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3584
3585         * config.in: Regenerate.
3586         * configure: Regenerate.
3587         * configure.ac: Remove check for gnu/libc-version.h.
3588         * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3589         gnu/libc-version.h.
3590         (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3591         variables libc_version, libc_major and libc_minor.  Replace sscanf by
3592         inferior_has_bug.  Extend the comment.
3593
3594 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3595
3596         * linux-thread-db.c (inferior_has_bug): New function.
3597         (thread_db_find_new_threads_silently): Return boolean as checked by
3598         inferior_has_bug, describe it in the comments.
3599         (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3600         earlier.  Abort the initialization if it returned non-zero.
3601         (thread_db_new_objfile): Exclude debug files.
3602         (thread_db_find_new_threads_2): Preinitialize ERR.  Check errors also
3603         if UNTIL_NO_NEW,
3604
3605 2012-07-02  Doug Evans  <dje@google.com>
3606
3607         * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3608         related to queue management.
3609
3610         * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3611         instead of "debug dwarf2-die" in debugging printfs.
3612         (create_debug_info_hash_table_reader): Ditto.
3613         (create_debug_info_hash_table): Ditto.
3614         (init_dwo_file): Ditto.
3615         (init_cutu_and_read_dies): Add debugging printf.
3616         (init_cutu_and_read_dies_no_follow): Ditto.
3617         (process_psymtab_comp_unit_reader): Ditto.
3618
3619 2012-07-02  Stan Shebs  <stan@codesourcery.com>
3620
3621         Add target-side support for dynamic printf.
3622         * NEWS: Mention the additional style.
3623         * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3624         (struct bp_location): New field cmd_bytecode.
3625         * breakpoint.c: Include format.h.
3626         (disconnected_dprintf): New global.
3627         (parse_cmd_to_aexpr): New function.
3628         (build_target_command_list): New function.
3629         (insert_bp_location): Call it.
3630         (remove_breakpoints_pid): Skip dprintf breakpoints.
3631         (print_one_breakpoint_location): Ditto.
3632         (dprintf_style_agent): New global.
3633         (dprintf_style_enums): Add dprintf_style_agent.
3634         (update_dprintf_command_list): Add agent case.
3635         (agent_printf_command): New function.
3636         (_initialize_breakpoint): Add new commands.
3637         * common/ax.def (printf): New bytecode.
3638         * ax.h (ax_string): Declare.
3639         * ax-gdb.h (gen_printf): Declare.
3640         * ax-gdb.c: Include cli-utils.h, format.h.
3641         (gen_printf): New function.
3642         (maint_agent_print_command): New function.
3643         (_initialize_ax_gdb): Add maint agent-printf command.
3644         * ax-general.c (ax_string): New function.
3645         (ax_print): Add printf disassembly.
3646         * Makefile.in (SFILES): Add format.c
3647         (COMMON_OBS): Add format.o.
3648         * common/format.h: New file.
3649         * common/format.c: New file.
3650         * printcmd.c: Include format.h.
3651         (ui_printf): Call parse_format_string.
3652         * remote.c (remote_state): New field breakpoint_commands.
3653         (PACKET_BreakpointCommands): New enum.
3654         (remote_breakpoint_commands_feature): New function.
3655         (remote_protocol_features): Add new BreakpointCommands entry.
3656         (remote_can_run_breakpoint_commands): New function.
3657         (remote_add_target_side_commands): New function.
3658         (remote_insert_breakpoint): Call it.
3659         (remote_insert_hw_breakpoint): Ditto.
3660         (_initialize_remote): Add new packet configuration for
3661         target-side breakpoint commands.
3662         * target.h (struct target_ops): New field
3663         to_can_run_breakpoint_commands.
3664         (target_can_run_breakpoint_commands): New macro.
3665         * target.c (update_current_target): Handle
3666         to_can_run_breakpoint_commands.
3667
3668 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3669
3670         Execute -ix and -iex only after system and user gdbinit files.
3671         * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3672         processing down after gdbinit files.
3673
3674 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3675
3676         Add fnmatch-gnu module.
3677         * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3678         * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3679         * gnulib/aclocal.m4: Regenerate.
3680         * gnulib/config.in: Regenerate.
3681         * gnulib/configure: Regenerate.
3682         * gnulib/import/dummy.c: Remove.
3683         * gnulib/import/Makefile.am: Regenerate.
3684         * gnulib/import/Makefile.in: Likewise.
3685         * gnulib/import/m4/gnulib-cache.m4: Likewise.
3686         * gnulib/import/m4/gnulib-comp.m4: Likewise.
3687         * gnulib/import/alloca.c: New file.
3688         * gnulib/import/alloca.in.h: Likewise.
3689         * gnulib/import/config.charset: Likewise.
3690         * gnulib/import/fnmatch.c: Likewise.
3691         * gnulib/import/fnmatch.in.h: Likewise.
3692         * gnulib/import/fnmatch_loop.c: Likewise.
3693         * gnulib/import/localcharset.c: Likewise.
3694         * gnulib/import/localcharset.h: Likewise.
3695         * gnulib/import/m4/alloca.m4: Likewise.
3696         * gnulib/import/m4/codeset.m4: Likewise.
3697         * gnulib/import/m4/configmake.m4: Likewise.
3698         * gnulib/import/m4/fcntl-o.m4: Likewise.
3699         * gnulib/import/m4/fnmatch.m4: Likewise.
3700         * gnulib/import/m4/glibc21.m4: Likewise.
3701         * gnulib/import/m4/localcharset.m4: Likewise.
3702         * gnulib/import/m4/locale-fr.m4: Likewise.
3703         * gnulib/import/m4/locale-ja.m4: Likewise.
3704         * gnulib/import/m4/locale-zh.m4: Likewise.
3705         * gnulib/import/m4/mbrtowc.m4: Likewise.
3706         * gnulib/import/m4/mbsinit.m4: Likewise.
3707         * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3708         * gnulib/import/m4/mbstate_t.m4: Likewise.
3709         * gnulib/import/m4/stdbool.m4: Likewise.
3710         * gnulib/import/m4/wchar_h.m4: Likewise.
3711         * gnulib/import/m4/wctype_h.m4: Likewise.
3712         * gnulib/import/m4/wint_t.m4: Likewise.
3713         * gnulib/import/mbrtowc.c: Likewise.
3714         * gnulib/import/mbsinit.c: Likewise.
3715         * gnulib/import/mbsrtowcs-impl.h: Likewise.
3716         * gnulib/import/mbsrtowcs-state.c: Likewise.
3717         * gnulib/import/mbsrtowcs.c: Likewise.
3718         * gnulib/import/ref-add.sin: Likewise.
3719         * gnulib/import/ref-del.sin: Likewise.
3720         * gnulib/import/stdbool.in.h: Likewise.
3721         * gnulib/import/streq.h: Likewise.
3722         * gnulib/import/strnlen1.c: Likewise.
3723         * gnulib/import/strnlen1.h: Likewise.
3724         * gnulib/import/verify.h: Likewise.
3725         * gnulib/import/wchar.in.h: Likewise.
3726         * gnulib/import/wctype.in.h: Likewise.
3727
3728 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3729
3730         Support shell wildcards for 'set auto-load safe-path'.
3731         * auto-load.c: Include fnmatch.h.
3732         (filename_is_in_dir): Rename to ...
3733         (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3734         it.  Update function comment.  Rename dir_len to pattern_len.  New
3735         variables filename_len, pattern and filename.  Add more DEBUG_AUTO_LOAD
3736         messages.  Use gdb_filename_fnmatch.
3737         (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3738         pattern.
3739         (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3740         * defs.h (gdb_filename_fnmatch): New declaration.
3741         * utils.c: Include fnmatch.h.
3742         (gdb_filename_fnmatch): New function.
3743
3744 2012-07-02  Sergio Durigan Junior  <sergiodj@redhat.com>
3745
3746         * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3747         `-probe' and `-probe-stap' options.
3748
3749 2012-07-01  Yao Qi  <yao@codesourcery.com>
3750
3751         * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3752         always_inserted_off, and always_inserted_enums.
3753         Change always_inserted_mode's type to 'enum auto_boolean'.
3754         (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3755         callers.
3756         (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3757         of add_setshow_enum_cmd.
3758         * infrun.c: Remove can_use_displaced_stepping_auto,
3759         can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3760         can_use_displaced_stepping_enum.
3761         Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3762         (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3763         (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3764         add_setshow_enum_cmd.
3765
3766 2012-06-30  Doug Evans  <dje@google.com>
3767
3768         * dwarf2read.c (signatured_type): Make "per_cu" member first.
3769         (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3770         currently being read.  Propagate DW_AT_comp_dir to DWO DIE.
3771
3772 2012-06-29  Doug Evans  <dje@google.com>
3773
3774         * linespec.c: #include "stack.h".
3775         (decode_line_with_current_source): Moved here from symtab.c and
3776         renamed from decode_line_spec.  All callers updated.
3777         (decode_line_with_last_displayed): Moved here from breakpoint.c and
3778         renamed from decode_line_spec_1.  All callers updated.
3779         * linespec.h (decode_line_with_current_source): Move declaration here
3780         from symtab.h and renamed from decode_line_spec.
3781         (decode_line_with_last_displayed): Move declaration here from symtab.h
3782         and renamed from decode_line_spec_1.
3783         * macrocmd.c: #include "linespec.h".
3784         * symtab.c: Remove #include "linespec.h".
3785
3786 2012-06-28  Doug Evans  <dje@google.com>
3787
3788         * dwarf2read.c (get_cu_length): New function.
3789         (offset_in_cu_p, error_check_comp_unit_head): Call it.
3790         (create_debug_types_hash_table): Ditto.
3791         (init_cutu_and_read_dies): Ditto.
3792         (init_cutu_and_read_dies_no_follow): Ditto.
3793
3794         * dwarf2read.c (dwarf2_find_base_address): Move definition.
3795
3796         * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3797         (struct abbrev_table): Define.
3798         (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3799         abbrev_table.
3800         (init_cutu_and_read_dies): Update.
3801         (abbrev_table_alloc_abbrev): New function.  Replaces
3802         dwarf_alloc_abbrev.  All callers updated.
3803         (abbrev_table_add_abbrev): New function.
3804         (abbrev_table_lookup_abbrev): New function.  Replaces
3805         dwarf2_lookup_abbrev.  All callers updated.
3806         (abbrev_table_read_table): New function.  Contents moved here from
3807         dwarf2_read_abbrevs.
3808         (dwarf2_read_abbrevs): Call it.
3809         (abbrev_table_free): New function.
3810         (dwarf2_free_abbrev_table): Call it.
3811
3812 2012-06-28  Stan Shebs  <stan@codesourcery.com>
3813
3814         * osdata.c (info_osdata_command): Filter out "Title" columns
3815         from non-MI uses.
3816         * common/linux-osdata.c (struct osdata_type): Add title field.
3817         (osdata_table): Add titles to each entry.
3818         (linux_command_xfer_osdata): Add a column for title data.
3819
3820 2012-06-28  Stan Shebs  <stan@codesourcery.com>
3821
3822         Make logging work for MI.
3823         * NEWS: Mention it.
3824         * interps.h (interp_set_logging_ftype): New typedef.
3825         (struct interp_procs): New field set_logging_proc.
3826         (current_interp_set_logging): Declare.
3827         * interps.c (current_interp_set_logging): New function.
3828         * cli/cli-logging.c: Include interps.h.
3829         (set_logging_redirect): Call current_interp_set_logging.
3830         (pop_output_files): Ditto.
3831         (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3832         * mi/mi-console.h (mi_console_set_raw): Declare.
3833         * mi/mi-console.c (mi_console_set_raw): New function.
3834         * mi/mi-interp.c (saved_raw_stdout): New global.
3835         (mi_set_logging): New function.
3836         (_initialize_mi_interp): Add it to interp procs.
3837
3838 2012-06-28  Doug Evans  <dje@google.com>
3839
3840         * symtab.c (lookup_symbol_aux_objfile): Use
3841         ALL_OBJFILE_PRIMARY_SYMTABS.
3842
3843         * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3844
3845 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3846
3847         * common/buffer.c: Include inttypes.h and stdint.h.
3848         (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3849
3850 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3851             Pedro Alves  <palves@redhat.com>
3852
3853         * gdbthread.h (ALL_THREADS): New macro.
3854         (thread_list): Declare.
3855         * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3856         going, but instead fall through to the stepping handling.
3857         * linux-nat.c (resume_lwp): New parameter 'signo'.  Resume with
3858         the passed in signal.  Adjust debug output.
3859         (resume_callback): Rename to ...
3860         (linux_nat_resume_callback): ... this.  Pass the thread's last
3861         stop signal, if in "pass" state.
3862         (linux_nat_resume): Adjust to rename.
3863         (stop_wait_callback): New assertion.  Don't respawn signals;
3864         instead let the LWP remain with SIGNALLED set.
3865         (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3866         * remote.c (append_pending_thread_resumptions): New.
3867         (remote_vcont_resume): Call it.
3868         * target.h (target_resume): Extend comment.
3869
3870 2012-06-28  Iain Sandoe  <iain@codesourcery.com>
3871
3872         * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3873
3874 2012-06-27  Doug Evans  <dje@google.com>
3875
3876         * dwarf2read.c (dwarf2_cu): Add ranges_base.
3877         Delete have_addr_base, unused.  All uses updated.
3878         (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3879         (dwarf2_get_pc_bounds): Add ranges_base.
3880         (dwarf2_record_block_ranges): Ditto.
3881
3882 2012-06-27  Tom Tromey  <tromey@redhat.com>
3883
3884         PR macros/7961:
3885         * varobj.c (varobj_create): Update.
3886         (varobj_set_value): Update.
3887         * tracepoint.c (validate_actionline): Update.
3888         (encode_actions_1): Update.
3889         * parse.c (parse_exp_1): Add 'pc' argument.
3890         (parse_exp_in_context): Add 'pc' argument.  Change how
3891         expression_context_pc is set.
3892         (parse_expression): Update.
3893         (parse_field_expression): Update.
3894         * expression.h (parse_exp_1): Update.
3895         * eval.c (parse_to_comma_and_eval): Update.
3896         * breakpoint.c (set_breakpoint_condition): Update.
3897         (update_watchpoint): Update.
3898         (init_breakpoint_sal): Update
3899         (find_condition_and_thread): Update.
3900         (watch_command_1): Update.
3901         (update_breakpoint_locations): Update.
3902         * ada-lang.c (ada_read_renaming_var_value): Update.
3903         (create_excep_cond_exprs): Update.
3904
3905 2012-06-27  Doug Evans  <dje@google.com>
3906
3907         * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3908         type units.
3909
3910 2012-06-26  Doug Evans  <dje@google.com>
3911
3912         * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3913         prototype.
3914         (error_check_comp_unit_head): New arg abbrev_section.  All callers
3915         updated.
3916         (read_and_check_comp_unit_head): Ditto.
3917         (read_and_check_type_unit_head): Ditto.
3918
3919 2012-06-26  Siva Chandra Reddy  <sivachandra@google.com>
3920
3921         New attribute 'last' for gdb.Symtab_and_line.
3922         * NEWS (Python Scripting): Add entry about the new attribute.
3923         * python/py-symtab.c (salpy_get_last): New function which
3924         implements the get method for the 'last' attribute of
3925         gdb.Symtab_and_line.
3926         (sal_object_getset): Add entry for the 'last' attribute.
3927
3928 2012-06-26  Doug Evans  <dje@google.com>
3929
3930         * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3931         (dwo_sections): Add macinfo, macro.
3932         (dwarf2_locate_dwo_sections): Watch for macro sections.
3933         (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3934         All callers updated.  Handle DWO files.
3935
3936         * NEWS: Mention new options "set debug dwarf2-read" and
3937         "set debug symtab-create".
3938         * dwarf2read.c (dwarf2_read_debug): New static global.
3939         (dwarf2_build_psymtabs_hard): Add debugging printfs.
3940         (process_queue): Ditto.
3941         (process_full_comp_unit): Ditto.
3942         (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3943         * elfread.c (elf_symfile_read): Add debugging printf.
3944         * minsyms.c (install_minimal_symbols): Ditto.
3945         * psymtab.c (allocate_psymtab): Ditto.
3946         * symfile.c (allocate_symtab): Ditto.
3947         * symtab.c (symtab_create_debug): New global.
3948         (_initialize_symtab): Add new option "set debug symtab-create".
3949         * symtab.h (symtab_create_debug): Declare.
3950
3951         * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3952         (lookup_dwo_type_unit): Ditto.
3953
3954 2012-06-26  Roland McGrath  <roland@hack.frob.com>
3955             H.J. Lu  <hongjiu.lu@intel.com>
3956
3957         * amd64-linux-nat.c: Include <sys/user.h>.
3958         (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3959         if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3960         HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3961
3962         * configure.ac: Check if the fs_base and gs_base members of
3963         `struct user_regs_struct' exist.
3964         * config.in: Regenerated.
3965         * configure: Likewise.
3966
3967 2012-06-25  Michael Eager  <eager@eagercon.com>
3968
3969         PR python/14291
3970         * python/python.c (gdbpy_write): Check for interrupted output.
3971
3972 2012-06-25  Greta Yorsh  <greta.yorsh@arm.com>
3973
3974         * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3975         register as a stack alignment in ARM mode.
3976
3977 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3978
3979         Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3980         * gnulib/config.in: Regenerate.
3981         * gnulib/configure: Likewise.
3982         * gnulib/import/m4/extensions.m4: Update it.
3983         * gnulib/import/m4/gnulib-common.m4: Likewise.
3984         * gnulib/import/m4/memmem.m4: Likewise.
3985         * gnulib/import/m4/mmap-anon.m4: Likewise.
3986         * gnulib/import/m4/multiarch.m4: Likewise.
3987         * gnulib/import/stdint.in.h: Likewise.
3988
3989 2012-06-24  Yao Qi  <yao@codesourcery.com>
3990
3991         * corefile.c (write_memory_with_notification): New.
3992         * gdbcore.h: Declare write_memory_with_notification.
3993         * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3994         'observer_notify_memory_changed' with 'write_memory_with_notification'.
3995         * valops.c (value_assign): Likewise.
3996         * python/py-inferior.c (infpy_write_memory): Call
3997         'write_memory_with_notification'.
3998
3999 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4000
4001         * cc-with-index.sh: Use also -ex "set auto-load no".
4002
4003 2012-06-23  Doug Evans  <dje@google.com>
4004
4005         PR 14125
4006         * NEWS: Document additions to .gdb_index.
4007         * dwarf2read.c: #include "gdb/gdb-index.h".
4008         (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4009         (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4010         (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4011         (dwarf2_read_index): Recognize version 7.
4012         (dw2_do_expand_symtabs_matching): New args want_specific_block,
4013         block_kind, domain): All callers updated.
4014         (dw2_find_symbol_file): Handle new index CU values.
4015         (dw2_expand_symtabs_matching): Match symbol kind if requested.
4016         (add_index_entry): New args is_static, kind.  All callers updated.
4017         (offset_type_compare, uniquify_cu_indices): New functions
4018         (symbol_kind): New function.
4019         (write_psymtabs_to_index): Remove duplicate CU values.
4020         (write_psymtabs_to_index): Write .gdb_index version 7.
4021
4022 2012-06-22  Joel Brobecker  <brobecker@adacore.com>
4023
4024         * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4025         * configure: Regenerate.
4026
4027 2012-06-20  Yao Qi  <yao@codesourcery.com>
4028
4029         * python/py-inferior.c: Update comments of infpy_read_memory
4030         and infpy_write_memory.
4031
4032 2012-06-19  Tom Tromey  <tromey@redhat.com>
4033
4034         PR exp/9514:
4035         * parser-defs.h (insert_type, insert_type_address_space): Declare.
4036         (push_type_address_space): Remove.
4037         * parse.c (insert_into_type_stack): New function.
4038         (insert_type): Likewise.
4039         (insert_type_address_space): Rename from push_type_address_space.
4040         Insert tp_space_identifier.
4041         * c-exp.y (ptr_operator): New production.
4042         (abs_decl): Use ptr_operator.
4043         (space_identifier): Call insert_type_address_space.
4044         (ptype): Don't use const_or_volatile_or_space_identifier.
4045         (const_or_volatile_noopt): Call insert_type.
4046         (conversion_type_id, conversion_declarator): New productions.
4047         (operator): Use conversion_type_id.
4048
4049 2012-06-18  Doug Evans  <dje@google.com>
4050
4051         * symtab.h (minimal_symbol): New member created_by_gdb.
4052         * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4053         created by gdb.
4054         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4055         (search_symbols): Call it instead of lookup_symbol.
4056         Skip symbols created by gdb.  Only scan minsyms if nfiles == 0.
4057
4058         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4059         Adjust address for DW_OP_GNU_addr_index.
4060         * dwarf2expr.h (dwarf_expr_context): Update comment.
4061         * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4062         all callers updated.  Handle TLS vars described with
4063         DW_OP_GNU_const_index.
4064         (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4065         and DW_OP_GNU_const_index.
4066         * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4067
4068         * block.c (find_block_in_blockvector): Make explicit the fact that we
4069         ignore GLOBAL_BLOCK.
4070
4071 2012-06-18  Tom Tromey  <tromey@redhat.com>
4072
4073         * c-exp.y (operator): Remove trailing space after "delete" and
4074         "delete[]".
4075
4076 2012-06-18  Mark Kettenis  <kettenis@gnu.org>
4077             Jan Kratochvil  <jan.kratochvil@redhat.com>
4078
4079         Switch i386 and derived targets to ON_STACK.
4080         * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4081         (amd64_dicos_init_abi): Remove its installment.
4082         * dicos-tdep.c (dicos_init_abi): Remove the
4083         set_gdbarch_call_dummy_location call.  Update the comment here.
4084         * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4085         (i386_dicos_init_abi): Remove its installment.
4086         * i386-tdep.c (i386_push_dummy_code): New function.
4087         (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4088         i386_push_dummy_code.
4089
4090 2012-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
4091
4092         Remove stale dummy frames.
4093         * breakpoint.c: Include dummy-frame.h.
4094         (longjmp_breakpoint_ops): New variable.
4095         (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4096         bp_longjmp_call_dummy.
4097         (bpstat_what, bptype_string, print_one_breakpoint_location)
4098         (init_bp_location): Support bp_longjmp_call_dummy.
4099         (set_longjmp_breakpoint): Use longjmp_breakpoint_ops.  Comment why.
4100         (set_longjmp_breakpoint_for_call_dummy)
4101         (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4102         functions.
4103         (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4104         * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy.  Delete
4105         FIXME comment and extend the other comment for bp_call_dummy.
4106         (set_longjmp_breakpoint_for_call_dummy)
4107         (check_longjmp_breakpoint_for_call_dummy): New declarations.
4108         * dummy-frame.c: Include gdbthread.h.
4109         (pop_dummy_frame_bpt): New function.
4110         (pop_dummy_frame): Call pop_dummy_frame_bpt.
4111         (dummy_frame_discard): New function.
4112         (cleanup_dummy_frames): Update the comment about longjmps.
4113         * dummy-frame.h (dummy_frame_discard): New declaration.
4114         * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4115         * infcall.c (call_function_by_hand): New variable longjmp_b.  Call
4116         set_longjmp_breakpoint_for_call_dummy.  Chain its breakpoints with BPT.
4117         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4118         Add case 4 comment.  Call check_longjmp_breakpoint_for_call_dummy and
4119         keep_going if IS_LONGJMP and there is no other reason to stop.
4120
4121 2012-06-18  Greta Yorsh  <Greta.Yorsh@arm.com>
4122
4123         * remote-sim.c (sim_command_completer): Initialize
4124         variable 'result'.
4125
4126 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4127
4128         * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4129         * dwarf2loc.c (call_site_parameter_matches): Support
4130         CALL_SITE_PARAMETER_PARAM_OFFSET.
4131         (needs_dwarf_reg_entry_value): Push stub value.
4132         * dwarf2read.c (read_call_site_scope): New variable origin.  Support
4133         CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4134         * gdbtypes.h (enum call_site_parameter_kind): New item
4135         CALL_SITE_PARAMETER_PARAM_OFFSET.
4136         (struct call_site.parameter.u): New field param_offset.
4137
4138 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4139
4140         Code cleanup: Generalize call_site.parameter key.
4141         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4142         variable dwarf_reg.  New variable kind_u.  Update parameters to
4143         push_dwarf_reg_entry_value.
4144         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4145         * dwarf2expr.h (enum call_site_parameter_kind)
4146         (union call_site_parameter_u): Forward declarations.
4147         (struct dwarf_expr_context_funcs): Update parameters and their
4148         description for push_dwarf_reg_entry_value.
4149         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4150         * dwarf2loc.c (call_site_parameter_matches): New function.
4151         (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4152         description.  Use call_site_parameter_matches.
4153         (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4154         Update parameters and their description.
4155         (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4156         New variable kind_u.  Adjust the caller for updated parameters.
4157         (needs_dwarf_reg_entry_value): Update parameters.
4158         * dwarf2read.c (read_call_site_scope): New variable loc.  Use it
4159         instead of attr.  Update for the changed fields of struct
4160         call_site_parameter.
4161         * gdbtypes.h: Include dwarf2expr.h.
4162         (enum call_site_parameter_kind): New.
4163         (struct call_site.parameter): New field kind.  Wrap dwarf_reg and
4164         fb_offset into new union u.
4165
4166 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
4167
4168         * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4169         (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4170         for x32.
4171
4172 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
4173
4174         * amd64-linux-nat.c (compat_x32_clock_t): New.
4175         (compat_x32_siginfo_t): Likewise.
4176         (compat_x32_siginfo_from_siginfo): Likewise.
4177         (siginfo_from_compat_x32_siginfo): Likewise.
4178         (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4179         and siginfo_from_compat_x32_siginfo for x32.
4180
4181 2012-06-15  Hui Zhu  <hui_zhu@mentor.com>
4182
4183         * tracepoint.c (tfile_xfer_partial): Add a lseek.
4184
4185 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
4186
4187         * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4188         instead of gdbarch_ptr_bit.
4189         * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4190         (amd64_supply_native_gregset): Likewise.
4191         (amd64_collect_native_gregset): Likewise.
4192         * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4193         (amd64_supply_xsave): Likewise.
4194         (amd64_collect_fxsave): Likewise.
4195         (amd64_collect_xsave): Likewise.
4196
4197 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
4198
4199         * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4200         (amd64_linux_read_description): Check DS segment register for
4201         x32 process.
4202
4203 2012-06-15  Tom Tromey  <tromey@redhat.com>
4204
4205         * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4206         init_cutu_and_read_dies.
4207
4208 2012-06-15  Iain Sandoe <iain@codesourcery.com>
4209
4210         * MAINTAINERS (Write After Approval): Add myself to the list.
4211
4212 2012-06-15  Tom Tromey  <tromey@redhat.com>
4213
4214         * valops.c (value_find_oload_method_list): Now static.
4215         * value.h (value_find_oload_method_list): Don't declare.
4216
4217 2012-06-15  Tom Tromey  <tromey@redhat.com>
4218
4219         * valops.c (find_overload_match): Use value_ind.
4220
4221 2012-06-15  Maciej W. Rozycki  <macro@codesourcery.com>
4222
4223         * infrun.c (handle_inferior_event): Correct indentation.
4224
4225 2012-06-14  Doug Evans  <dje@google.com>
4226
4227         * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4228         (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4229         All uses updated.
4230         (decode_debug_loc_dwo_addresses): New arg "byte_order".  All callers
4231         updated.  Handle DEBUG_LOC_START_LENGTH.
4232         (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4233         (loclist_describe_location): Ditto.
4234
4235 2012-06-14  Maciej W. Rozycki  <macro@codesourcery.com>
4236
4237         PR backtrace/13866
4238         * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4239         after hiding inline functions.
4240
4241 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
4242
4243         * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4244         _initialize_inf_ttrace.
4245
4246 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
4247
4248         * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4249         _initialize_hppa_hpux_nat.
4250
4251 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
4252
4253         * remote-sim.c (sim_command_completer): Change type of return
4254         value to "VEC (char_ptr) *".  Adjust implementation accordingly.
4255
4256 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
4257             Jan Kratochvil  <jan.kratochvil@redhat.com>
4258
4259         PR tdep/14222
4260         * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4261         stack on a 16-byte boundary.
4262
4263 2012-06-13  Kaushik Srenevasan  <kaushik@twitter.com>
4264
4265         * jit.c (finalize_symtab): Set function's return type to 'void' by
4266         default.
4267
4268 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
4269             H.J. Lu  <hongjiu.lu@intel.com>
4270
4271         * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4272         Move bits common to both the classic LP64 and the new x32 ILP32
4273         ABI here.
4274         (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4275         (amd64_x32_linux_init_abi): New function.
4276         (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4277         subtype.
4278
4279         * i386-tdep.h (i386_pseudo_register_name): New prototype.
4280         * i386-tdep.c (i386_pseudo_register_name): Make public.
4281         * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4282         * amd64-tdep.c (amd64_dword_names): Add "eip".
4283         (amd64_x32_pseudo_register_type): New function
4284         (amd64_x32_init_abi): New function.
4285
4286 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4287
4288         PR build/14003
4289         * inferior.h (struct inferior_suspend_state): Comment out.
4290         (struct inferior): Comment out the field suspend.
4291         * infrun.c (struct infcall_suspend_state): Comment out the field
4292         inferior_suspend.
4293         (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4294         out its assignment.
4295
4296 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4297
4298         PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4299         * c-exp.y (classify_inner_name): Remove caller assumptions in the
4300         function comment.  Return ERROR for unresolved cases.  Implement
4301         returning proper NAME.
4302         (yylex): Accept also NAME from classify_inner_name.
4303         * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4304         (cp_lookup_nested_symbol): ... here.  Return any found symbol, not just
4305         LOC_TYPEDEF type.
4306         * cp-support.h (cp_lookup_nested_type): Update its declaration.
4307
4308 2012-06-13  Tom Tromey  <tromey@redhat.com>
4309
4310         * breakpoint.c (condition_completer): New function.
4311         (_initialize_breakpoint): Use it.
4312         * value.c (complete_internalvar): New function.
4313         * value.h (complete_internalvar): Declare.
4314
4315 2012-06-13  Tom Tromey  <tromey@redhat.com>
4316
4317         * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4318         * breakpoint.c (catch_syscall_completer): Return a VEC.
4319         * cli/cli-cmds.c (complete_command): Update.
4320         * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4321         (complete_on_enum): Likewise.
4322         * command.h: Include gdb_vecs.h.
4323         (completer_ftype): Change return type.
4324         (complete_on_cmdlist, complete_on_enum): Likewise.
4325         * completer.c (noop_completer, filename_completer)
4326         (location_completer): Return a VEC.
4327         (add_struct_fields): Remove 'nextp' argument.  Change 'output'
4328         to a VEC.
4329         (expression_completer, complete_line_internal, complete_line)
4330         (command_completer): Return a VEC.
4331         (gdb_completion_word_break_characters, line_completion_function):
4332         Update.
4333         * completer.h: Include gdb_vecs.h.
4334         (complete_line, noop_completer, filename_completer)
4335         (expression_completer, location_completer, command_completer):
4336         Update.
4337         * f-lang.c (f_word_break_characters): Return a VEC.
4338         * interps.c (interpreter_completer): Return a VEC.
4339         * language.h (struct language_defn)
4340         <la_make_symbol_completion_list>: Return a VEC.
4341         * python/py-cmd.c (cmdpy_completer): Return a VEC.
4342         * symtab.c (free_completion_list): Take a VEC.
4343         (return_val_size, return_val_index): Remove.
4344         (return_val): Now a VEC.
4345         (completion_list_add_name): Update.
4346         (default_make_symbol_completion_list_break_on)
4347         (default_make_symbol_completion_list, make_symbol_completion_list)
4348         (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4349         Return a VEC.
4350         (add_filename_to_list): Update.
4351         (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4352         <list>: Now a VEC.
4353         (maybe_add_partial_symtab_filename): Update.
4354         (make_source_files_completion_list): Return a VEC.
4355         * symtab.h (default_make_symbol_completion_list_break_on)
4356         (default_make_symbol_completion_list, make_symbol_completion_list)
4357         (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4358         (make_source_files_completion_list): Update.
4359
4360 2012-06-13  Tom Tromey  <tromey@redhat.com>
4361
4362         * breakpoint.c (add_catch_command): Use completer_ftype.
4363         * breakpoint.h: Include command.h.
4364         (add_catch_command): Use completer_ftype.
4365         * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4366         * cli/cli-decode.h (struct cmd_list_element) <completer>:
4367         Use completer_ftype.
4368         * command.h (completer_ftype): New typedef.
4369         (set_cmd_completer): Use it.
4370         * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4371         completer_ftype.
4372
4373 2012-06-13  Pedro Alves  <palves@redhat.com>
4374
4375         Partial revert of previous change.
4376
4377         * serial.c (scb_base): New global.
4378         (serial_for_fd): New.
4379         (serial_open, serial_fdopen_ops): Link new serial in open serials
4380         chain.
4381         (do_serial_close): Unlink serial from the open serials chain.
4382
4383 2012-06-12  Pedro Alves  <palves@redhat.com>
4384
4385         * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4386         threads here.
4387         (prepare_for_detach): No longer context switch here in non-stop
4388         mode.
4389         (fetch_inferior_event): Ditto.
4390         (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4391         to the event thread before removing breakpoints.  Switch to the
4392         event thread before inserting breakpoints and resuming.
4393         (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4394         event thread before resuming.
4395         (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4396         Switch to the event thread before removing breakpoints.
4397
4398 2012-06-12  Eli Zaretskii  <eliz@gnu.org>
4399
4400         * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4401         special characters correctly for the Windows shells.  See
4402         http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4403         report.
4404         [!__MINGW32__]: Remove extra double quote character from special
4405         characters.
4406
4407 2012-06-11  Stan Shebs  <stan@codesourcery.com>
4408
4409         * ui-out.h: Remove #if 0 declarations.
4410         * ui-out.c: Remove #if 0 functions.
4411
4412 2012-06-11  Pedro Alves  <palves@redhat.com>
4413
4414         * ser-base.c (run_async_handler_and_reschedule): New.
4415         (fd_event, push_event): Use it.
4416         * serial.c (serial_open, serial_fdopen_ops): Set the initial
4417         reference count to 1.
4418         (do_serial_close): Set the bufp field to NULL.  Use serial_unref
4419         instead of xfree.
4420         (serial_is_open, serial_ref, serial_unref): New.
4421         * serial.h (serial_open): Adjust comment.
4422         (serial_is_open): Declare.
4423         (serial_close): Adjust comment.
4424         (serial_ref, serial_unref) Declare.
4425         (struct serial): New field 'refcnt'.
4426
4427 2012-06-11  Pedro Alves  <palves@redhat.com>
4428
4429         Remove #if 0'd "connect" command, and unnecessary associated
4430         refcounting and serial reuse bits.
4431
4432         * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4433         * serial.c (last_serial_opened): Delete.
4434         (scb_base): Delete.
4435         (serial_open): Adjust.
4436         (serial_for_fd): Delete.
4437         (serial_fdopen_ops, do_serial_close): Adjust.
4438         (serial_fdopen_ops): Adjust.
4439
4440 2012-06-11  Pedro Alves  <palves@redhat.com>
4441
4442         * serial.c (do_serial_close): Remove early return when SCB is
4443         null.
4444
4445 2012-06-11  Tom Tromey  <tromey@redhat.com>
4446
4447         * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4448
4449 2012-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4450
4451         Fix regression by the "ambiguous linespec" series.
4452         * breakpoint.c (parse_breakpoint_sals): New variable cursal.  Use
4453         get_last_displayed_symtab and get_last_displayed_line and depending
4454         on CURSAL.
4455
4456 2012-06-11  Tom Tromey  <tromey@redhat.com>
4457
4458         * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4459         (dw2_find_symbol_file): Use it.
4460
4461 2012-06-11  Michael Eager  <eager@eagercon.com>
4462
4463         * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4464         * mips-linux-tdep.h (mips_signals): New
4465
4466 2012-06-11  Tom Tromey  <tromey@redhat.com>
4467
4468         * infrun.c (handle_inferior_event)
4469         <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4470         breakpoint.
4471         <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4472         exception logic in all cases.  Update comments.
4473         (insert_longjmp_resume_breakpoint): Set the exception resume
4474         breakpoint.
4475
4476 2012-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
4477
4478         * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4479
4480 2012-06-09  Siva Chandra Reddy  <sivachandra@google.com>
4481
4482         * valarith.c (binop_types_user_defined_p): Fix a typo.
4483
4484 2012-06-08  Yao Qi  <yao@codesourcery.com>
4485             Chung-Lin Tang <cltang@codesourcery.com>
4486
4487         * arch-utils.c (default_return_in_first_hidden_param_p): New.
4488         * arch-utils.h: Declare.
4489         * gdbarch.sh: Add return_in_first_hidden_param_p.
4490         * gdbarch.c, gdbarch.h: Regenerated.
4491         * infcall.c (call_function_by_hand): Call
4492         gdbarch_return_in_first_hidden_param_p instead of
4493         language_pass_by_reference.
4494
4495         * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4496         (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4497         * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4498         (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4499         * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4500         `cplus_return_struct_by_reference'.
4501         (tic6x_return_value): Handle language cplusplus.
4502         (tic6x_return_in_first_hidden_param_p): New.
4503         (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4504
4505 2012-06-07  Doug Evans  <dje@google.com>
4506
4507         * dwarf2read.c (dwarf2_cu): Add comment.
4508
4509 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4510
4511         * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4512         variable.
4513         (mips_eabi_push_dummy_call): Likewise.
4514         (mips_n32n64_push_dummy_call): Likewise.
4515         (mips_o32_push_dummy_call): Likewise.
4516         (mips_o64_push_dummy_call): Likewise.
4517
4518 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4519
4520         * mips-tdep.c (mips_convert_register_p): Correct coding style.
4521
4522 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4523
4524         * mips-tdep.c (mips_pseudo_register_type): Use
4525         mips_float_register_p.
4526
4527 2012-06-06  Pedro Alves  <palves@redhat.com>
4528
4529         * infrun.c (handle_inferior_event): Remove calls to
4530         reinit_frame_cache that follow a context_switch call.
4531
4532 2012-06-06  Pedro Alves  <palves@redhat.com>
4533
4534         * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4535         context_switch and remove stale comment.
4536
4537 2012-06-06  Pedro Alves  <palves@redhat.com>
4538
4539         * infrun.c (struct execution_control_state): Remove
4540         `new_thread_event' field.
4541         (handle_inferior_event): Simplify new threads handling; don't
4542         resume the inferior if we find a new thread.
4543
4544 2012-06-06  Thomas Schwinge  <thomas@codesourcery.com>
4545
4546         * NEWS: Document the deprecation of SH's 'regs' command.
4547         * inferior.h (all_registers_info): Add function declaration.
4548         * sh-tdep.c (sh_show_regs): Remove variable.
4549         (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4550         (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4551         (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4552         (sh_show_regs_command): Remove functions.
4553         (sh_gdbarch_init): Don't set sh_show_regs.
4554         (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4555         'info all-registers'.
4556         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4557         (sh64_show_regs): Remove functions.
4558         * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4559
4560 2012-06-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
4561
4562         * configure.ac: Move development=true below AC_INIT.
4563         * configure: Regenerate.
4564
4565 2012-06-05  Stan Shebs  <stan@codesourcery.com>
4566
4567         * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4568         gdb_stdout.
4569
4570 2012-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
4571
4572         * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4573         argument as ssize_t.
4574         * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4575         * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4576         * target.c (target_read_stack, target_write_memory)
4577         (target_write_raw_memory): Likewise.
4578         * target.h (target_read_stack, target_write_memory)
4579         (target_write_raw_memory): Likewise.
4580
4581 2012-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
4582
4583         * symfile-mem.c: Change gdb_static_assert to ssize_t.
4584         (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4585         * target.c (target_read_memory): Change LEN to ssize_t.
4586         * target.h (target_read_memory): Change LEN to ssize_t.
4587
4588 2012-06-05  Pedro Alves  <palves@redhat.com>
4589
4590         PR backtrace/13866
4591
4592         * breakpoint.c (until_break_command): Only fetch the selected
4593         frame after decode_line_1.
4594
4595 2012-06-05  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
4596
4597         * solib-svr4.c (enable_break): Don't fallback to setting the solib
4598         event breakpoint at _start, __start or main if a program
4599         interpreter is not found.
4600
4601 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4602
4603         * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4604         Add declaration.
4605         * windows-tdep.c: #include "objfiles.h".
4606         (windows_iterate_over_objfiles_in_search_order): New function.
4607         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4608         iterate_over_objfiles_in_search_order gdbarch method to
4609         windows_iterate_over_objfiles_in_search_order.
4610         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4611
4612 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4613
4614         * gdbarch.sh: Add generation of
4615         "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4616         gdbarch.h.  Add include of "objfiles.h" in gdbarch.c.
4617         (iterate_over_objfiles_in_search_order): New gdbarch method.
4618         * gdbarch.h, gdbarch.c: Regenerate.
4619         * objfiles.h (default_iterate_over_objfiles_in_search_order):
4620         Add declaration.
4621         * objfiles.c (default_iterate_over_objfiles_in_search_order):
4622         New function.
4623         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4624         out of lookup_symbol_aux_symtabs.
4625         (lookup_symbol_aux_symtabs): Replace extracted-out code by
4626         call to lookup_symbol_aux_objfile.
4627         (struct global_sym_lookup_data): New type.
4628         (lookup_symbol_global_iterator_cb): New function.
4629         (lookup_symbol_global): Search for symbol using
4630         gdbarch_iterate_over_objfiles_in_search_order and
4631         lookup_symbol_global_iterator_cb.
4632         * findvar.c (struct minsym_lookup_data): New type.
4633         (minsym_lookup_iterator_cb): New function.
4634         (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4635         symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4636         and minsym_lookup_iterator_cb.
4637
4638 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4639
4640         Revert the following patch:
4641         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4642         try locating the symbol in the symbol's own objfile first, before
4643         extending the search to all objfiles.
4644         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4645         out of lookup_symbol_aux_symtabs.
4646         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4647         Replace extracted-out code by call to lookup_symbol_aux_objfile.
4648         Do not search EXCLUDE_OBJFILE.
4649         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4650         (lookup_symbol_global): Search for matches in the block's objfile
4651         first, before searching all other objfiles.
4652
4653 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4654
4655         * breakpoint.c (find_condition_and_thread): Stop parsing
4656         as soon as the first invalid keyword is found.
4657
4658 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4659
4660         * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4661
4662 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4663
4664         * config/djgpp/djcheck.sh: Add copyright header.
4665
4666 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4667
4668         * copyright.py (update_files, main): Fix path to update-copyright
4669         script.
4670
4671 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4672
4673         * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4674         (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4675         for which a reminder to update by hand is printed.
4676
4677 2012-06-04  Doug Evans  <dje@google.com>
4678
4679         * buildsym.c (make_blockvector): Add comment.
4680
4681 2012-06-04  Pedro Alves  <palves@redhat.com>
4682
4683         * arch-utils.c (default_gdb_signal_from_target): Delete.
4684         * arch-utils.h (default_gdb_signal_from_target): Delete.
4685         * corelow.c (core_open) <signal mapping>: Extended comment.  Check
4686         gdbarch_gdb_signal_from_target_p.
4687         * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4688         predicate).
4689         * gdbarch.h: Regenerate.
4690         * gdbarch.c: Regenerate.
4691
4692 2012-06-04  Pedro Alves  <palves@redhat.com>
4693
4694         * gdbarch.sh (gdb_signal_from_target): Mention that the
4695         implementation of the method must be host independent.
4696         * gdbarch.h: Regenerate.
4697
4698 2012-06-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4699
4700         * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4701         parameters.
4702         (target_read_memory_bfd): New function.
4703         (symbol_file_add_from_memory): Use it.
4704
4705 2012-06-03  Doug Evans  <dje@google.com>
4706
4707         * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4708         of primary symtab.
4709         (basic_lookup_transparent_type): Ditto.
4710
4711         * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4712         (ALL_PRIMARY_SYMTABS): Use it.
4713         (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4714         * dwarf2read.c (dw2_find_symbol_file): Ditto.
4715         * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4716         * symtab.c (lookup_symbol_aux_objfile): Ditto.
4717         (basic_lookup_transparent_type): Ditto.
4718
4719 2012-06-02  Sergio Durigan Junior  <sergiodj@redhat.com>
4720
4721         * symtab.c (symbol_demangled_name): New variable `dem_name'.  Use
4722         it to optimize resolution of demangled name.
4723
4724 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4725
4726         * configure.ac (development): Define new variable.
4727         Call AC_CHECK_LIB for mcheck if $development.
4728         (ERROR_ON_WARNING): Enable it by default only if $development.
4729         * config.in: Regenerate.
4730         * configure: Regenerate.
4731
4732 2012-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
4733
4734         * target.c (target_read_memory): Make LEN argument as size_t.
4735         * target.h (target_read_memory): Likewise.
4736
4737 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4738
4739         * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4740
4741 2012-05-31  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4742
4743         * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4744         BookE interface for PowerPC server processors if not available
4745         in the Linux Kernel.
4746
4747 2012-05-31  Keith Seitz  <keiths@redhat.com>
4748
4749         * linespec.c (decode_objc): Add cleanup to free
4750         INFO.FILE_SYMTABS.
4751         (find_linespec_symbols): Add cleanup to free CLASSES.
4752         * symfile.c (find_separate_debug_file_by_debuglink): Add
4753         cleanup to free DEBUGLINK.
4754         * ui-out.c (clear_header_list): No need to check if
4755         HEADER_NEXT.COLHDR is NULL.
4756         Free HEADER_NEXT.COL_NAME.
4757
4758 2012-05-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
4759
4760         * ada-lang.c (standard_lookup): Prevent uninitialized variable
4761         warning.
4762
4763 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
4764
4765         * configure.host (gdb_host_cpu): Handle tilegx*.
4766         (gdb_host): Handle tilegx-*-linux*.
4767         * tilegx-linux-nat.c: New file.
4768         * config/tilegx/linux.mh: New file.
4769
4770 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
4771
4772         * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4773         tilegx-linux-tdep.o.
4774         (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4775         tilegx-linux-tdep.c.
4776         * configure.tgt: Handle tilegx-*-linux*.
4777         * tilegx-tdep.h: New file.
4778         * tilegx-tdep.c: New file.
4779         * tilegx-linux-tdep.c: New file.
4780         * regformats/reg-tilegx.dat: New file.
4781
4782 2012-05-30  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4783
4784         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4785         accounting of hw watchpoints on ppc.
4786
4787 2012-05-30  Thiago Jung Bauermann  <thiago.bauermann@linaro.org>
4788
4789         * source.c (openp): Expand tilde in path entries.
4790
4791 2012-05-29  Doug Evans  <dje@google.com>
4792
4793         * buildsym.c (block_compar): Fix comment.
4794         (end_symtab): Fix and clarify some comments.
4795
4796         * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4797         cleanup_undefined_types.
4798         * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4799         All callers updated.
4800
4801 2012-05-29  Tom Tromey  <tromey@redhat.com>
4802
4803         * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4804         fails.
4805         * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4806         * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4807         fails.
4808         * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4809         fails.
4810
4811 2012-05-29  Tristan Gingold  <gingold@adacore.com>
4812
4813         * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4814         (struct darwin_info): ... New struct.
4815         (solib_darwin_pspace_data): New variable.
4816         (darwin_pspace_data_cleanup): New function.
4817         (get_darwin_info): Likewise.
4818         (darwin_dyld_version_ok, darwin_load_image_infos)
4819         (darwin_solib_get_all_image_info_addr_at_init)
4820         (darwin_solib_read_all_image_info_addr): Add info argument.
4821         Adjust code.
4822         (darwin_current_sos): Use per pspace structure.
4823         (darwin_solib_create_inferior_hook): Likewise.
4824         (darwin_clear_solib): Likewise.
4825         (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4826
4827 2012-05-28  Pedro Alves  <palves@redhat.com>
4828
4829         * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4830         block that uses them.  Clear ecss before handling each event.
4831
4832 2012-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4833
4834         * solib-svr4.c (svr4_current_sos): New comment on
4835         svr4_current_sos_via_xfer_libraries fall back.
4836
4837 2012-05-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4838
4839         * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best.  Use
4840         it as a fallback for TYPE_IS_OPAQUE.
4841         * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4842         symbols for lookup_symbol.
4843
4844 2012-05-24  John Steele Scott  <toojays@toojays.net>
4845
4846         PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4847         * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4848         (producer_is_gxx_lt_4_6): Move the checking and caching to...
4849         (check_producer): ... this new function, which also checks for ICC
4850         and caches the result.
4851         (producer_is_icc): New function.
4852         (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4853         producer was ICC.
4854
4855 2012-05-24  Pedro Alves  <palves@redhat.com>
4856
4857         PR gdb/7205
4858
4859         * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4860         (default_gdb_signal_to_target): ... this.  Add comment.
4861         (default_gdb_signal_from_host): Rename to ...
4862         (default_gdb_signal_from_target): ... this.  Add comment.
4863         * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4864         (default_gdb_signal_to_target): ... this.
4865         (default_gdb_signal_from_host): Rename to ...
4866         (default_gdb_signal_from_target): ... this.
4867         * corelow.c (core_open): Adjust to naming change.  Replace comment.
4868         * gdbarch.sh (gdb_signal_from_host): Rename to ...
4869         (gdb_signal_from_target): ... this.  Adjust to
4870         default_gdb_signal_from_host naming change.  Extend comment.
4871         (gdb_signal_to_host): Rename to ...
4872         (gdb_signal_to_target): ... this.  Adjust to
4873         default_gdb_signal_to_host naming change.
4874         * gdbarch.h, gdbarch.c: Renegerate.
4875
4876 2012-05-24  Pedro Alves  <palves@redhat.com>
4877
4878         PR gdb/7205
4879
4880         Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4881
4882 2012-05-24  Pedro Alves  <palves@redhat.com>
4883
4884         PR gdb/7205
4885
4886         Replace target_signal with gdb_signal throughout.
4887
4888 2012-05-24  Pedro Alves  <palves@redhat.com>
4889
4890         PR tui/14159
4891
4892         * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4893         string, instead of reusing the va_list argument.
4894
4895 2012-05-24  Tom Tromey  <tromey@redhat.com>
4896
4897         * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4898         Remove.
4899
4900 2012-05-23  Doug Evans  <dje@google.com>
4901
4902         * symtab.c (search_symbols): Formatting fixes.
4903         (print_symbol_info): Formatting fixes.
4904
4905         * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4906         int64_t change to leb128 API.
4907         (read_encoded_value, decode_frame_entry_1): Ditto.
4908         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4909         (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4910         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4911         (execute_stack_op): Ditto.
4912         * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4913         (safe_read_uleb128, safe_read_sleb128): Ditto.
4914         * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4915         (dwarf2_compile_expr_to_ax): Ditto.
4916         (locexpr_describe_location_piece): Ditto.
4917         (disassemble_dwarf_expression): Ditto.
4918         (locexpr_describe_location_1): Ditto.
4919
4920 2012-05-23  Stan Shebs  <stan@codesourcery.com>
4921             Kwok Cheung Yeung  <kcy@codesourcery.com>
4922
4923         * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4924         (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4925         (mi-cmd-info.o): New rule.
4926         * osdata.h (info_osdata_command): New declaration.
4927         * osdata.c (info_osdata_command): Change to non-static.
4928         * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4929         * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4930         * mi/mi-cmd-info.c: New file.
4931
4932 2012-05-23  Doug Evans  <dje@google.com>
4933
4934         * symtab.c (search_symbols): Pass NULL for file_matcher to
4935         expand_symtabs_matching if there are no files to match.
4936
4937         * gdbtypes.c (lookup_typename): Simplify.
4938
4939 2012-05-23  Pedro Alves  <palves@redhat.com>
4940
4941         * arch-utils.h (default_target_signal_to_host): Delete.
4942         * arch-utils.c (default_target_signal_to_host): Delete.
4943         * gdbarch.sh (target_signal_to_host): Remove.
4944         * gdbarch.h, gdbarch.c: Regenerate.
4945
4946 2012-05-22  Doug Evans  <dje@google.com>
4947
4948         * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4949         "const gdb_byte *".
4950         (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4951         (execute_cfa_program): Update to match API of leb128 functions.
4952         (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4953         "const gdb_byte *".
4954         (read_unsigned_leb128, read_signed_leb128): Delete.
4955         (read_initial_length): Change type of buf argument to
4956         "const gdb_byte *".
4957         (read_encoded_value): Update to match API of leb128 functions.
4958         (decode_frame_entry): Change result to "const gdb_byte *", and
4959         similarly for "start" parameter.
4960         (decode_frame_entry_1): Ditto.  Use new leb128 reader functions.
4961         (dwarf2_build_frame_info): Change local frame_ptr to
4962         "const gdb_byte *".
4963         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4964         read_uleb128, read_sleb128.  All callers updated.
4965         (safe_skip_leb128): New function.
4966         (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4967         Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4968         (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4969         functions.  Call gdb_read_uleb128, gdb_read_sleb128 instead of
4970         read_uleb128, read_sleb128.
4971         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4972         (execute_stack_op): Update to match API of leb128 functions.
4973         * dwarf2expr.h: #include "leb128.h".
4974         (read_uleb128, read_sleb128): Delete.
4975         (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4976         (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4977         * dwarf2loc.c (debug_loc_kind): New enum.
4978         (decode_debug_loc_addresses): New function.
4979         (decode_debug_loc_dwo_addresses): New function.
4980         (dwarf2_find_location_expression): Rewrite.
4981         (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4982         (locexpr_describe_location_piece): Ditto.
4983         (disassemble_dwarf_expression): Ditto.
4984         (locexpr_describe_location_1): Ditto.
4985         (loclist_describe_location): Rewrite.
4986         * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4987         * dwarf2read.c (die_reader_specs): New member "buffer_end".
4988         (dwarf2_section_buffer_overflow_complaint): Renamed from
4989         dwarf2_macros_too_long_complaint.  All callers updated.
4990         (skip_leb128): Delete.
4991         (init_cu_die_reader): Initialize reader->buffer_end.
4992         (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4993         (skip_form_bytes): New arg buffer_end.  All callers updated.
4994         Replace call to skip_leb128 with gdb_skip_leb128.
4995         (skip_unknown_opcode): New arg mac_end.  All callers updated.
4996         (fill_in_loclist_baton): Initialize baton->from_dwo.
4997
4998 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
4999
5000         * mips-linux-nat.c (mips_linux_read_description): Use a more
5001         verbose error message.
5002
5003 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
5004
5005         * NEWS: Add MIPS/Linux DSP support.
5006         * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5007         (SIGCONTEXT_DSPCTL): New macro.
5008         (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5009         (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5010         (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5011         (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5012         (N64_SIGCONTEXT_HI3): Likewise.
5013         (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5014         (N64_SIGCONTEXT_LO3): Likewise.
5015         (N64_SIGCONTEXT_DSPCTL): Likewise.
5016         (N64_SIGCONTEXT_FPCSR): Clarify definition.
5017         (mips_linux_o32_sigframe_init): Handle DSP registers.
5018         (mips_linux_n32n64_sigframe_init): Likewise.
5019
5020 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
5021
5022         * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5023         call to abort.
5024
5025 2012-05-22  Pedro Alves  <palves@redhat.com>
5026
5027         * target.h (store_waitstatus): Move declaration ...
5028         * inf-child.h (store_waitstatus): ... here.
5029         * target.c: Move inclusion of gdb_wait.h, and ...
5030         (store_waitstatus): ... this ...
5031         * inf-child.c: ... here.
5032         * linux-nat.c: Include inf-child.h.
5033         * rs6000-nat.c: Include inf-child.h.
5034         * spu-linux-nat.c: Include inf-child.h.
5035
5036 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
5037
5038         * tracepoint.c (start_tracing): Add missing i18n markup.
5039         (stop_tracing, set_trace_user): Ditto.
5040         (set_trace_notes, set_trace_stop_notes): Ditto.
5041
5042 2012-05-21  Tom Tromey  <tromey@redhat.com>
5043
5044         PR c++/7173:
5045         * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5046         types.
5047         * value.h (value_cast_pointers): Update.
5048         * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5049         (value_cast): Update.
5050         (update_search_result): New function.
5051         (do_search_struct_field): New, from search_struct_field.  Check
5052         for ambiguous results.
5053         (search_struct_field): Rewrite.
5054         * infcall.c (value_arg_coerce): Update.
5055         * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5056         value_cast_pointers.
5057         * ada-lang.c (ada_convert_actual): Update.
5058
5059 2012-05-21  Tom Tromey  <tromey@redhat.com>
5060
5061         * macroexp.c (macro_stringify): Terminate the string.
5062
5063 2012-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
5064
5065         * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5066         Describe it.
5067         * auto-load.c (auto_load_expand_dir_vars): New function.
5068         (auto_load_safe_path_vec_update): Use it, remove the
5069         substitute_path_component call thanks to it.
5070         (auto_load_objfile_script): Remove the debug_file_directory processing.
5071         Use auto_load_expand_dir_vars, remove the substitute_path_component
5072         call thanks to it.
5073         * configure: Regenerate.
5074         * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5075         path.  Escape $ also for $debugdir.
5076         (--with_auto_load_safe_path): Escape $ also for $debugdir.
5077         * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5078
5079 2012-05-20  Doug Evans  <dje@google.com>
5080
5081         * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5082         before use.  Check for symtab->includes == NULL before scanning it.
5083
5084 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5085
5086         * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5087
5088 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5089
5090         * NEWS: Add microMIPS support and "set mips compression",
5091         "show mips compression" commands.
5092         * mips-tdep.h (mips_isa): New enum.
5093         (gdbarch_tdep): Add mips_isa.
5094         (mips_pc_is_mips16): Update prototype.
5095         (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5096         * mips-tdep.c (mips_compression_mips16): New variable.
5097         (mips_compression_micromips): Likewise.
5098         (mips_compression_strings): Likewise.
5099         (mips_compression_string): Likewise.
5100         (is_mips16_isa, is_micromips_isa): New functions.
5101         (is_mips16_addr): Rename to...
5102         (is_compact_addr): ... this.
5103         (unmake_mips16_addr): Likewise to...
5104         (unmake_compact_addr): ... this.
5105         (make_mips16_addr): Likewise to...
5106         (make_compact_addr): ... this.
5107         (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5108         functions.
5109         (mips_elf_make_msymbol_special): Handle microMIPS code.
5110         (msymbol_is_special): Rename to...
5111         (msymbol_is_mips16): ... this.
5112         (mips_make_symbol_special, mips_pc_is_mips16): Update
5113         accordingly.
5114         (msymbol_is_mips, msymbol_is_micromips): New functions.
5115         (mips16_to_32_reg): Rename to...
5116         (mips_reg3_to_reg): ... this.
5117         (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5118         (mips_pc_isa): Likewise.
5119         (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5120         code.
5121         (mips_fetch_instruction): Pass return status instead of printing
5122         an error message if requested.  Handle microMIPS code.  Bail out
5123         on an invalid ISA.
5124         (micromips_op): New macro.
5125         (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5126         (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5127         (b6s4_op, b7s3_reg): Likewise.
5128         (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5129         (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5130         (mips_insn_size): New function.
5131         (mips32_next_pc): Update mips_fetch_instruction call.
5132         (micromips_relative_offset7): New function.
5133         (micromips_relative_offset10): Likewise.
5134         (micromips_relative_offset16): Likewise.
5135         (micromips_pc_insn_size): Likewise.
5136         (micromips_bc1_pc): Likewise.
5137         (micromips_next_pc): Likewise.
5138         (unpack_mips16): Update mips_fetch_instruction call.
5139         (extended_mips16_next_pc): Update according to change to
5140         mips16_to_32_reg.
5141         (mips_next_pc): Update mips_pc_is_mips16 call.  Handle microMIPS
5142         code.
5143         (mips16_scan_prologue): Update mips_fetch_instruction call.
5144         Update according to change to mips16_to_32_reg.
5145         (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5146         (mips_insn16_frame_base_sniffer): Likewise.
5147         (micromips_decode_imm9): New function.
5148         (micromips_scan_prologue): Likewise.
5149         (mips_micro_frame_cache): Likewise.
5150         (mips_micro_frame_this_id): Likewise.
5151         (mips_micro_frame_prev_register): Likewise.
5152         (mips_micro_frame_sniffer): Likewise.
5153         (mips_micro_frame_unwind): New variable.
5154         (mips_micro_frame_base_address): New function.
5155         (mips_micro_frame_base): New variable.
5156         (mips_micro_frame_base_sniffer): New function.
5157         (mips32_scan_prologue): Update mips_fetch_instruction call.
5158         (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5159         rather than for MIPS16.
5160         (mips_insn32_frame_base_sniffer): Likewise.
5161         (mips_addr_bits_remove): Handle microMIPS code.
5162         (deal_with_atomic_sequence): Rename to...
5163         (mips_deal_with_atomic_sequence): ... this.  Update the type
5164         of the variable used to hold an instruction.  Remove the ISA bit
5165         check.  Update mips_fetch_instruction call.
5166         (micromips_deal_with_atomic_sequence): New function.
5167         (deal_with_atomic_sequence): Likewise.
5168         (mips_about_to_return): Handle microMIPS code.  Update
5169         mips_fetch_instruction call.
5170         (heuristic_proc_start): Check for the standard MIPS ISA rather
5171         than for MIPS16.  Update mips_pc_is_mips16 and
5172         mips_fetch_instruction calls.  Handle microMIPS code.
5173         (mips_push_dummy_code): Handle microMIPS code.
5174         (mips_eabi_push_dummy_call): Likewise.
5175         (mips_o32_return_value): Update mips_pc_is_mips16 call.
5176         (mips_o64_push_dummy_call): Handle microMIPS code.
5177         (mips_o64_return_value): Update mips_pc_is_mips16 call.
5178         (is_delayed): Remove function.
5179         (mips_single_step_through_delay): Replace the call to is_delayed
5180         with mips32_instruction_has_delay_slot.  Correct MIPS16 handling.
5181         Handle microMIPS code.
5182         (mips_skip_prologue): Update mips_pc_is_mips16 call.  Handle
5183         microMIPS code.
5184         (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5185         call.
5186         (micromips_in_function_epilogue_p): New function.
5187         (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5188         call.
5189         (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5190         Handle microMIPS.
5191         (gdb_print_insn_mips): Likewise.
5192         (mips_breakpoint_from_pc): Likewise.
5193         (mips_remote_breakpoint_from_pc): New function.
5194         (mips32_instruction_has_delay_slot): Simplify making use of the
5195         updated mips_fetch_instruction interface.
5196         (micromips_instruction_has_delay_slot): New function.
5197         (mips16_instruction_has_delay_slot): Simplify making use of the
5198         updated mips_fetch_instruction interface.
5199         (mips_adjust_breakpoint_address): Check for the standard MIPS
5200         ISA rather than for MIPS16 ISA.  Update for unmake_compact_addr
5201         calls.  Handle microMIPS code.
5202         (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5203         (mips_skip_trampoline_code): Handle microMIPS code.
5204         (global_mips_compression): New function.
5205         (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5206         file flags.  Register the microMIPS remote breakpoint handler
5207         and heuristic frame unwinder.
5208         (show_mips_compression): New function.
5209         (_initialize_mips_tdep): Add the "set mips compression" and
5210         "show mips compression" commands.
5211
5212 2012-05-18  Sergio Durigan Junior  <sergiodj@redhat.com>
5213
5214         * ada-lang.c:
5215         * ada-tasks.c:
5216         * ada-varobj.c:
5217         * amd64-darwin-tdep.c:
5218         * arm-symbian-tdep.c:
5219         * arm-tdep.c:
5220         * avr-tdep.c:
5221         * ax-gdb.c:
5222         * bfin-linux-tdep.c:
5223         * breakpoint.c:
5224         * c-valprint.c:
5225         * cli/cli-cmds.c:
5226         * coffread.c:
5227         * cp-support.c:
5228         * cris-tdep.c:
5229         * dwarf2-frame-tailcall.c:
5230         * dwarf2-frame.c:
5231         * dwarf2expr.c:
5232         * dwarf2loc.c:
5233         * dwarf2read.c:
5234         * elfread.c:
5235         * eval.c:
5236         * expprint.c:
5237         * f-valprint.c:
5238         * frv-tdep.c:
5239         * h8300-tdep.c:
5240         * hppa-hpux-tdep.c:
5241         * hppa-tdep.c:
5242         * hppanbsd-tdep.c:
5243         * i386-nto-tdep.c:
5244         * i386-tdep.c:
5245         * i387-tdep.c:
5246         * ia64-tdep.c:
5247         * jit.c:
5248         * linespec.c:
5249         * linux-tdep.c:
5250         * lm32-tdep.c:
5251         * m2-valprint.c:
5252         * m32c-tdep.c:
5253         * m32r-rom.c:
5254         * m32r-tdep.c:
5255         * m68k-tdep.c:
5256         * m68klinux-tdep.c:
5257         * mi/mi-main.c:
5258         * microblaze-tdep.c:
5259         * mips-linux-tdep.c:
5260         * mips-tdep.c:
5261         * mn10300-tdep.c:
5262         * p-valprint.c:
5263         * parse.c:
5264         * ppc-linux-tdep.c:
5265         * ppc-sysv-tdep.c:
5266         * printcmd.c:
5267         * python/py-finishbreakpoint.c:
5268         * python/py-inferior.c:
5269         * python/py-infthread.c:
5270         * python/py-type.c:
5271         * python/python.c:
5272         * remote-fileio.c:
5273         * remote-m32r-sdi.c:
5274         * remote-mips.c:
5275         * reverse.c:
5276         * rl78-tdep.c:
5277         * rs6000-aix-tdep.c:
5278         * rs6000-tdep.c:
5279         * s390-tdep.c:
5280         * score-tdep.c:
5281         * sh64-tdep.c:
5282         * skip.c:
5283         * solib-darwin.c:
5284         * solib-dsbt.c:
5285         * solib-frv.c:
5286         * sparc-tdep.c:
5287         * spu-multiarch.c:
5288         * spu-tdep.c:
5289         * stack.c:
5290         * symfile.c:
5291         * symtab.c:
5292         * tic6x-tdep.c:
5293         * tracepoint.c:
5294         * v850-tdep.c:
5295         * valarith.c:
5296         * valprint.c:
5297         * value.c:
5298         * xcoffread.c:
5299         * xtensa-tdep.c:
5300         * ada-lang.c:
5301         * ada-tasks.c:
5302         * ada-varobj.c:
5303         * amd64-darwin-tdep.c:
5304         * arm-symbian-tdep.c:
5305         * arm-tdep.c: Delete unused variables.
5306
5307 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5308
5309         Rename $ddir to $datadir.
5310         * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5311         * auto-load.c (auto_load_safe_path_vec_update)
5312         (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5313         * configure: Regenerate.
5314         * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5315         Likewise.  Remove the 'use $ddir' help string.
5316
5317 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5318
5319         * auto-load.c (show_auto_load_safe_path): Accept any combination of
5320         DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5321
5322 2012-05-18  Tom Tromey  <tromey@redhat.com>
5323
5324         PR exp/13907:
5325         * valprint.h (struct value_print_options) <symbol_print>: New
5326         field.
5327         * valprint.c (user_print_options): Add default for symbol_print.
5328         (show_symbol_print): New function.
5329         (generic_val_print): Respect symbol_print.
5330         (_initialize_valprint): Add "print symbol" setting.
5331         * f-valprint.c (f_val_print): Respect symbol_print.
5332         * c-valprint.c (c_val_print): Respect symbol_print.
5333         * NEWS: Update.
5334         * printcmd.c (print_address_symbolic): Return int.  Ignore some
5335         zero-size symbols.
5336         (print_address_demangle): Return int.
5337         * defs.h: (print_address_symbolic): Return int.
5338         * value.h (print_address_demangle): Return int.
5339
5340 2012-05-18  Tom Tromey  <tromey@redhat.com>
5341
5342         * valprint.c (val_print_string): Don't print leading space.
5343         * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5344         print space before string or vtbl.
5345         * m2-valprint.c (print_unpacked_pointer): Optionally print space
5346         before string.
5347         * jv-valprint.c (java_value_print): Print space before string.
5348         * go-valprint.c (print_go_string): Print space before string.
5349         * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5350         space before string.
5351         * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5352         space before string or vtbl.
5353         * auxv.c (fprint_target_auxv): Print space after address.
5354
5355 2012-05-18  Tom Tromey  <tromey@redhat.com>
5356
5357         * printcmd.c (print_address_demangle): Remove special case for 0.
5358
5359 2012-05-18  Tom Tromey  <tromey@redhat.com>
5360
5361         * printcmd.c (print_address_demangle): Add 'opts' argument.
5362         * p-valprint.c (pascal_val_print): Update.
5363         * jv-valprint.c (java_val_print): Update.
5364         * value.h: Update.
5365         * valprint.c (generic_val_print): Update.
5366         (print_function_pointer_address): Add 'options' argument.  Remove
5367         'addressprint' argument.  Update.
5368         * m2-valprint.c (print_unpacked_pointer): Update.
5369         * gnu-v3-abi.c (print_one_vtable): Update.
5370         (gnuv3_print_method_ptr): Update.
5371         * f-valprint.c (f_val_print): Update.
5372         * cp-valprint.c (cp_print_value_fields): Update.
5373         * valprint.h (print_function_pointer_address): Update.
5374         * c-valprint.c (c_val_print): Update.
5375
5376 2012-05-18  Tom Tromey  <tromey@redhat.com>
5377
5378         * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5379         directly corresponding to the found psymtab.
5380         * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5381         (dw2_find_pc_sect_symtab): Use it.
5382         * block.h (blockvector_contains_pc): Declare.
5383         * block.c (find_block_in_blockvector): New function.
5384         (blockvector_for_pc_sect): Use it.
5385         (blockvector_contains_pc): New function.
5386
5387 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5388
5389         * mips-tdep.h (mips_write_pc): New prototype.
5390         * mips-tdep.c (mips_write_pc): Make external, add description.
5391         * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5392         add description.
5393
5394 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5395
5396         * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5397         mips_regnum->pc.
5398         (mips_unwind_pc, mips_write_pc): Likewise.
5399         (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5400         gdbarch_read_pc.
5401
5402 2012-05-17  Joel Brobecker  <brobecker@adacore.com>
5403
5404         * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5405         proc_warn, proc_error, proc_get_status, proc_flags,
5406         proc_why, proc_what, proc_nsysarg, proc_sysargs,
5407         proc_set_run_on_last_close, proc_unset_run_on_last_close,
5408         proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5409         proc_stop_process, proc_wait_for_stop, proc_run_process,
5410         proc_set_traced_signals, proc_set_traced_faults,
5411         proc_set_traced_sysentry, proc_set_traced_sysexit,
5412         proc_set_held_signals, proc_get_held_signals,
5413         proc_get_traced_signals, proc_get_traced_faults,
5414         proc_get_traced_sysentry, proc_get_traced_sysexit,
5415         proc_clear_current_fault, proc_set_current_signal,
5416         proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5417         proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5418         proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5419         proc_get_current_thread, proc_get_current_thread,
5420         proc_get_current_thread, proc_update_threads,
5421         proc_update_threads, proc_update_threads, proc_update_threads,
5422         proc_iterate_over_threads, procfs_find_new_threads,
5423         procfs_pid_to_str): Make static.  Remove advance declaration.
5424         (proc_cursig): Make static.  Conditionalized defintion on
5425         PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5426         (proc_syscall, proc_set_kill_on_last_close,
5427         proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5428         proc_get_pending_signals, proc_get_signal_actions,
5429         proc_trace_signal, proc_ignore_signal): Delete.
5430
5431 2012-05-16  Sergio Durigan Junior  <sergiodj@redhat.com>
5432
5433         * coffread.c (cs_section_address): Passing proper argument for
5434         `bfd_get_section_vma'.
5435         * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5436         `bfd_get_section_flags'.
5437         * remote.c (remote_trace_set_readonly_regions): Likewise, for
5438         `bfd_get_section_vma'.
5439
5440 2012-05-16  Tom Tromey  <tromey@redhat.com>
5441
5442         PR macros/13205:
5443         * macrotab.h: (macro_define_special): Declare.
5444         (enum macro_special_kind): New.
5445         (struct macro_definition) <argc, replacement>: Update comments.
5446         * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5447         (macro_define_object_internal): New function.
5448         (macro_define_object): Use it.
5449         (macro_define_special): New function.
5450         (fixup_definition): New function.
5451         (macro_lookup_definition, foreach_macro_in_scope)
5452         (foreach_macro): Use fixup_definition.
5453         * macroexp.h (macro_stringify): Declare.
5454         * macroexp.c (free_buffer_return_text): New function.
5455         (stringify): Constify "arg".
5456         (macro_stringify): New function.
5457         * dwarf2read.c (macro_start_file): Call macro_define_special.
5458
5459 2012-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
5460             Maciej W. Rozycki  <macro@mips.com>
5461
5462         * breakpoint.h (bp_location): Add related_address member.
5463         * inferior.h (get_return_value): Take a pointer to struct value
5464         instead of struct type for the function requested.
5465         * value.h (using_struct_return): Likewise.
5466         * gdbarch.sh (return_value): Take a pointer to struct value
5467         instead of struct type for the function requested.
5468         * breakpoint.c (set_breakpoint_location_function): Initialize
5469         related_address for bp_gnu_ifunc_resolver breakpoints.
5470         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5471         requested function's address to gdbarch_return_value.
5472         * eval.c (evaluate_subexp_standard): Pass the requested
5473         function's address to using_struct_return.
5474         * infcall.c (call_function_by_hand): Pass the requested
5475         function's address to using_struct_return and
5476         gdbarch_return_value.
5477         * infcmd.c (get_return_value): Take a pointer to struct value
5478         instead of struct type for the function requested.
5479         (print_return_value): Update accordingly.
5480         (finish_command_continuation): Likewise.
5481         * stack.c (return_command): Pass the requested function's
5482         address to using_struct_return and gdbarch_return_value.
5483         * value.c (using_struct_return): Take a pointer to struct value
5484         instead of struct type for the function requested.  Pass the
5485         requested function's address to gdbarch_return_value.
5486         * python/py-finishbreakpoint.c (finish_breakpoint_object):
5487         New function_value member, replacing function_type.
5488         (bpfinishpy_dealloc): Update accordingly.
5489         (bpfinishpy_pre_stop_hook): Likewise.
5490         (bpfinishpy_init): Likewise.  Record the requested function's
5491         address.
5492         * mips-tdep.c (mips_fval_reg): New enum.
5493         (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5494         words put in GP registers.
5495         (mips_o64_push_dummy_call): Update a comment.
5496         (mips_o32_return_value): Take a pointer to struct value instead
5497         of struct type for the function requested and use it to check if
5498         using the MIPS16 calling convention.  Return the designated
5499         general purpose registers for floating-point values returned in
5500         MIPS16 mode.
5501         (mips_o64_return_value): Likewise.
5502         * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5503         (ppc_sysv_abi_broken_return_value): Likewise.
5504         (ppc64_sysv_abi_return_value): Likewise.
5505         * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5506         value instead of struct type for the function requested.
5507         * amd64-tdep.c (amd64_return_value): Likewise.
5508         * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5509         * arm-tdep.c (arm_return_value): Likewise.
5510         * avr-tdep.c (avr_return_value): Likewise.
5511         * bfin-tdep.c (bfin_return_value): Likewise.
5512         * cris-tdep.c (cris_return_value): Likewise.
5513         * frv-tdep.c (frv_return_value): Likewise.
5514         * h8300-tdep.c (h8300_return_value): Likewise.
5515         (h8300h_return_value): Likewise.
5516         * hppa-tdep.c (hppa32_return_value): Likewise.
5517         (hppa64_return_value): Likewise.
5518         * i386-tdep.c (i386_return_value): Likewise.
5519         * ia64-tdep.c (ia64_return_value): Likewise.
5520         * iq2000-tdep.c (iq2000_return_value): Likewise.
5521         * lm32-tdep.c (lm32_return_value): Likewise.
5522         * m32c-tdep.c (m32c_return_value): Likewise.
5523         * m32r-tdep.c (m32r_return_value): Likewise.
5524         * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5525         * m68k-tdep.c (m68k_return_value): Likewise.
5526         (m68k_svr4_return_value): Likewise.
5527         * m88k-tdep.c (m88k_return_value): Likewise.
5528         * mep-tdep.c (mep_return_value): Likewise.
5529         * microblaze-tdep.c (microblaze_return_value): Likewise.
5530         * mn10300-tdep.c (mn10300_return_value): Likewise.
5531         * moxie-tdep.c (moxie_return_value): Likewise.
5532         * mt-tdep.c (mt_return_value): Likewise.
5533         * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5534         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5535         (ppc_sysv_abi_broken_return_value): Likewise.
5536         (ppc64_sysv_abi_return_value): Likewise.
5537         * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5538         * rl78-tdep.c (rl78_return_value): Likewise.
5539         * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5540         * rx-tdep.c (rx_return_value): Likewise.
5541         * s390-tdep.c (s390_return_value): Likewise.
5542         * score-tdep.c (score_return_value): Likewise.
5543         * sh-tdep.c (sh_return_value_nofpu): Likewise.
5544         (sh_return_value_fpu): Likewise.
5545         * sh64-tdep.c (sh64_return_value): Likewise.
5546         * sparc-tdep.c (sparc32_return_value): Likewise.
5547         * sparc64-tdep.c (sparc64_return_value): Likewise.
5548         * spu-tdep.c (spu_return_value): Likewise.
5549         * tic6x-tdep.c (tic6x_return_value): Likewise.
5550         * v850-tdep.c (v850_return_value): Likewise.
5551         * vax-tdep.c (vax_return_value): Likewise.
5552         * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5553         * xtensa-tdep.c (xtensa_return_value): Likewise.
5554         * gdbarch.c: Regenerate.
5555         * gdbarch.h: Regenerate.
5556
5557 2012-05-15  Tom Tromey  <tromey@redhat.com>
5558
5559         * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5560
5561 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5562
5563         * breakpoint.c (init_breakpoint_sal): Add quotes around part
5564         of command in two error message.
5565
5566 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5567
5568         * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5569
5570 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5571
5572         * breakpoint.c (find_condition_and_thread): Minor reformatting.
5573
5574 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5575
5576         * NEWS (show auto-load scripts-directory): Add forgotten command.
5577
5578 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5579
5580         * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5581         parameters.
5582
5583 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5584
5585         * amd64-tdep.c: Include features/i386/x32.c and
5586         features/i386/x32-avx.c.
5587         (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5588         initialize_tdesc_x32_avx.
5589
5590 2012-05-14  Stan Shebs  <stan@codesourcery.com>
5591
5592         Add dynamic printf.
5593         * breakpoint.h (enum bptype): New type bp_dprintf.
5594         (struct breakpoint): New field extra_string.
5595         (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5596         (create_breakpoint): Add extra_string arg.
5597         * breakpoint.c (dprintf_breakpoint_ops): New.
5598         (is_breakpoint): Add bp_dprintf.
5599         (bpstat_what): Add dprintf case.
5600         (bptype_string): Ditto.
5601         (print_one_breakpoint_location): Ditto.
5602         (init_bp_location): Ditto.
5603         (bkpt_print_mention): Ditto.
5604         (dprintf_style_enums): New array.
5605         (dprintf_style): New global.
5606         (dprintf_function): New global.
5607         (dprintf_channel): New global.
5608         (update_dprintf_command_list): New function.
5609         (update_dprintf_commands): New function.
5610         (init_breakpoint_sal): Add extra_string argument, handle it.
5611         (create_breakpoint_sal): Add extra_string argument.
5612         (create_breakpoints_sal): Add extra_string argument, update callers.
5613         (find_condition_and_thread): Add extra argument.
5614         (create_breakpoint): Add extra_string argument, record it.
5615         (dprintf_command): New function.
5616         (break_command_1): Add arg to create_breakpoint call.
5617         (handle_gnu_v3_exceptions): Ditto.
5618         (trace_command): Ditto.
5619         (ftrace_command): Ditto.
5620         (strace_command): Ditto.
5621         (bkpt_print_mention): Add dprintf case.
5622         (create_breakpoint_sal_default): Add extra_string argument.
5623         (_initialize_breakpoint): Add new commands.
5624         * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5625         * python/py-breakpoint.c (bppy_init): Ditto.
5626         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5627
5628 2012-05-14  Maciej W. Rozycki  <macro@codesourcery.com>
5629
5630         * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5631
5632 2012-05-14  Siva Chandra Reddy  <sivachandra@google.com>
5633
5634         * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5635         unsigned long long.
5636
5637 2012-05-13  Siva Chandra Reddy  <sivachandra@google.com>
5638
5639         Add a new function gdb.find_pc_line to the Python API.
5640         * NEWS (Python Scripting): Add entry about the new function.
5641         * python/python.c (gdbpy_find_pc_line): New function which
5642         implements gdb.find_pc_line.
5643         (GdbMethods): Add entry for the new function.
5644
5645 2012-05-12  Pedro Alves  <palves@redhat.com>
5646
5647         * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5648         initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5649
5650 2012-05-12  Eli Zaretskii  <eliz@gnu.org>
5651
5652         * inferior.c: Include completer.h
5653         (initialize_inferiors): Set completer of add-inferior to
5654         filename_completer.
5655
5656 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5657
5658         * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5659         gdbarch_ptr_bit for x32 core dump.
5660
5661 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5662
5663         * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5664         and features/i386/x32-avx-linux.c.
5665
5666 2012-05-11  Stan Shebs  <stan@codesourcery.com>
5667             Kwok Cheung Yeung  <kcy@codesourcery.com>
5668
5669         * NEWS: Describe new info os commands.
5670         * common/linux-osdata.c (PID_T, TIME_T): Define.
5671         (MAX_PID_T_STRLEN): New.
5672         (linux_common_core_of_thread): Add comment.  Change to use PID_T and
5673         MAX_PID_T_STRLEN.
5674         (command_from_pid): Add comment.  Change to use PID_T.
5675         (commandline_from_pid):  Change to use PID_T.
5676         (user_from_pid): Add comment.
5677         (get_process_owner): Add comment. Change to use PID_T and
5678         MAX_PID_T_STRLEN.
5679         (get_number_of_cpu_cores): Add comment.
5680         (get_cores_used_by_process): Add comment.  Change to use PID_T and
5681         MAX_PID_T_STRLEN.
5682         (linux_xfer_osdata_processes): Change to use PID_T and
5683         MAX_PID_T_STRLEN.
5684         (compare_processes): New function.
5685         (linux_xfer_osdata_processgroups): New function.
5686         (linux_xfer_osdata_threads): Change to use PID_T.
5687         (linux_xfer_osdata_fds): New function.
5688         (format_socket_state, print_sockets): New functions.
5689         (union socket_addr): New union.
5690         (linux_xfer_osdata_isockets): New function.
5691         (time_from_time_t, group_from_gid): New functions.
5692         (linux_xfer_osdata_shm): New function.
5693         (linux_xfer_osdata_sem): New function.
5694         (linux_xfer_osdata_msg): New function.
5695         (linux_xfer_osdata_modules): New function.
5696         (osdata_table): Add new entries.
5697         * common/buffer.c (buffer_xml_printf): Add support for long and
5698         long long format specifiers.
5699
5700 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5701
5702         * amd64-linux-tdep.h (tdesc_x32_linux): New.
5703         (tdesc_x32_avx_linux): Likewise.
5704
5705 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5706
5707         Implement multi-component --with-auto-load-dir.
5708         * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5709         entries.
5710         (--with-auto-load-safe-path): Update the default value description.
5711         * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5712         New.
5713         (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output.  Remove
5714         GDB_DATADIR NULL check.  Replace GDB_DATADIR/auto-load by
5715         AUTO_LOAD_DIR.  Support $ddir and multiple components in it.
5716         (_initialize_auto_load): Initialize also auto_load_dir.  Install new
5717         "set auto-load scripts-directory".
5718         * config.in: Regenerate.
5719         * configure: Regenerate.
5720         * configure.ac (--with-auto-load-dir): New configure option.
5721         (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5722
5723 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5724
5725         Provide $ddir substitution for --with-auto-load-safe-path.
5726         * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5727         entries.
5728         * auto-load.c: Include observer.h.
5729         (auto_load_safe_path_vec_update): Call substitute_path_component for
5730         each component.  New variable ddir_subst.
5731         (auto_load_gdb_datadir_changed): New function.
5732         (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5733         AUTO_LOAD_SAFE_PATH.  New comment.
5734         (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5735         AUTO_LOAD_SAFE_PATH.  Install auto_load_gdb_datadir_changed.
5736         * config.in: Regenerate.
5737         * configure: Regenerate.
5738         * configure.ac (--auto-load-safe-path): Rename
5739         DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH.  Default to
5740         GDB_DATADIR/auto-load.
5741         * defs.h (substitute_path_component): New declaration.
5742         * top.c: Include observer.h.
5743         (set_gdb_datadir): New function.
5744         (init_main): Install it for "set data-directory".
5745         * utils.c (substitute_path_component): New function.
5746
5747 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5748
5749         Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5750         * auto-load.c (auto_load_objfile_script): Remove check for NULL
5751         DEBUG_FILE_DIRECTORY.  Handle multiple components of
5752         DEBUG_FILE_DIRECTORY.
5753
5754 2012-05-10  Tom Tromey  <tromey@redhat.com>
5755
5756         * dwarf2read.c (recursively_write_psymbols): New function.
5757         (write_psymtabs_to_index): Use it.
5758
5759         * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5760         field.
5761         (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5762         (load_partial_comp_unit): Update.
5763         (queue_comp_unit): Add argument 'pretend_language'.
5764         (process_queue): Update.
5765         (psymtab_to_symtab_1): Skip dependencies that have a user.
5766         (load_partial_comp_unit_reader): Give meaning to the 'data'
5767         argument.
5768         (load_full_comp_unit): Add 'pretend_language' argument.
5769         (process_full_comp_unit): Add 'pretend_language' argument.  Set
5770         language on CU.
5771         (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5772         Update.
5773         (maybe_queue_comp_unit): Add 'pretend_language' argument.
5774         (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5775         Update.
5776         (prepare_one_comp_unit): Add 'pretend_language' argument.
5777
5778         * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5779         (struct dwarf2_per_objfile) <just_read_cus>: New field.
5780         (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5781         (dw2_do_instantiate_symtab): Check whether symtab was read in
5782         before queueing.
5783         (dw2_instantiate_symtab): Add assertion.  Call
5784         process_cu_includes.
5785         (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5786         (partial_symtab_p): New typedef.
5787         (set_partial_user): New function.
5788         (dwarf2_build_psymtabs_hard): Use set_partial_user.
5789         (scan_partial_symbols): Add imported CU to imported_symtabs.
5790         (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5791         (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5792         (get_symtab, recursively_compute_inclusions)
5793         (compute_symtab_includes, process_cu_includes)
5794         (process_imported_unit_die): New functions.
5795         (process_die) <DW_TAG_imported_unit>: New case.
5796         (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5797
5798         * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5799         comment.
5800         (struct partial_die_info) <locdesc>: Remove.
5801         <d>: New field.
5802         (process_psymtab_comp_unit): Add 'read_partial' argument.
5803         Update.
5804         (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5805         (scan_partial_symbols): Handle DW_TAG_imported_unit.
5806         (add_partial_symbol): Update.
5807         (process_die): Handle DW_TAG_partial_unit.
5808         (read_file_scope): Update comment.
5809         (load_partial_dies): Handle DW_TAG_imported_unit.
5810         (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5811         (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5812
5813 2012-05-10  Tom Tromey  <tromey@redhat.com>
5814
5815         * cc-with-dwz.sh: New file.
5816
5817 2012-05-10  Tom Tromey  <tromey@redhat.com>
5818
5819         * symtab.h (struct symtab) <includes, user>: New fields.
5820         * block.h (struct block_iterator) <d, idx, which>: New fields.
5821         * block.c (initialize_block_iterator, find_iterator_symtab)
5822         (block_iterator_step, block_iter_name_step)
5823         (block_iter_match_step): New functions.
5824         (block_iterator_first, block_iterator_next)
5825         (block_iter_name_first, block_iter_name_next)
5826         (block_iter_match_first, block_iter_match_next): Rewrite.
5827         (get_block_symtab): New function.
5828
5829 2012-05-10  Tom Tromey  <tromey@redhat.com>
5830
5831         * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5832         set_block_symtab.
5833         * jit.c (finalize_symtab): Use allocate_global_block,
5834         set_block_symtab.
5835         * buildsym.c (finish_block_internal): New function, from old
5836         finish_block.
5837         (finish_block): Rewrite.
5838         (end_symtab): Use finish_block_internal, set_block_symtab.
5839         * block.h (struct global_block): New.
5840         (allocate_global_block, set_block_symtab): Declare.
5841         * block.c (allocate_global_block, set_block_symtab): New
5842         functions.
5843
5844 2012-05-10  Tom Tromey  <tromey@redhat.com>
5845
5846         * psymtab.c (partial_map_expand_apply): Add assertion.
5847         (partial_map_symtabs_matching_filename): Skip included psymtabs.
5848         (psymtab_to_symtab): Find unshared psymtab.
5849         (dump_psymtab): Print including psymtabs.
5850         (recursively_search_psymtabs): New function.
5851         (expand_symtabs_matching_via_partial): Use it.
5852         * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5853         fields.
5854         (enum psymtab_search_status): New.
5855
5856 2012-05-10  Tom Tromey  <tromey@redhat.com>
5857
5858         * tracepoint.c (scope_info): Update.
5859         * symtab.c (lookup_block_symbol, iterate_over_symbols)
5860         (find_pc_sect_symtab, search_symbols)
5861         (default_make_symbol_completion_list_break_on)
5862         (make_file_symbol_completion_list): Update.
5863         * symmisc.c (dump_symtab_1): Update.
5864         * stack.c (print_frame_args, iterate_over_block_locals)
5865         (print_frame_labels, iterate_over_block_arg_vars): Update.
5866         * python/py-block.c (block_object) <dict>: Remove.
5867         <block>: New field.
5868         <iter>: Change type.
5869         (blpy_iter): Update.
5870         (blpy_block_syms_iternext): Update.
5871         * psymtab.c (map_block): Use block iterators.
5872         * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5873         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5874         * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5875         * infrun.c (check_exception_resume): Update.
5876         * cp-support.c (make_symbol_overload_list_block): Update.
5877         * coffread.c (patch_opaque_types): Update.
5878         * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5879         * block.h (struct block_iterator): New.
5880         (block_iterator_first, block_iterator_next, block_iter_name_first)
5881         (block_iter_name_next, block_iter_match_first)
5882         (block_iter_match_next): Declare.
5883         (ALL_BLOCK_SYMBOLS): Redefine.
5884         * block.c (block_iterator_first, block_iterator_next)
5885         (block_iter_name_first, block_iter_name_next)
5886         (block_iter_match_first, block_iter_match_next): New functions.
5887         * ada-lang.c (ada_add_block_symbols)
5888         (ada_make_symbol_completion_list): Use block iterator.
5889
5890 2012-05-10  Tom Tromey  <tromey@redhat.com>
5891
5892         * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5893         (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5894         (lookup_partial_symbol, find_last_source_symtab_from_partial)
5895         (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5896         (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5897         Update.
5898
5899 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
5900
5901         * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5902         print-file-var-lib2.c, print-file-var-main.c and
5903         print-file-var.exp (located in gdb/testsuite/gdb.base).
5904
5905 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
5906
5907         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5908         try locating the symbol in the symbol's own objfile first, before
5909         extending the search to all objfiles.
5910         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5911         out of lookup_symbol_aux_symtabs.
5912         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5913         Replace extracted-out code by call to lookup_symbol_aux_objfile.
5914         Do not search EXCLUDE_OBJFILE.
5915         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5916         (lookup_symbol_global): Search for matches in the block's objfile
5917         first, before searching all other objfiles.
5918
5919 2012-05-10  Tristan Gingold  <gingold@adacore.com>
5920
5921         * printcmd.c (set_command): Add pre/post inc/dec.
5922
5923 2012-05-09  Frank Ch. Eigler  <fche@redhat.com>
5924
5925         * gdb.1: Document -ex option.
5926
5927 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
5928
5929         * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5930         * inferior.h (AT_SYMBOL): Delete.
5931
5932 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
5933
5934         * mips-tdep.c (mips_push_dummy_code): New function.
5935         (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5936         ON_STACK and install mips_push_dummy_code as our gdbarch
5937         push_dummy_code routine.
5938
5939 2012-05-09  Pedro Alves  <palves@redhat.com>
5940
5941         * target.c (set_maintenance_target_async_permitted): Rename to ...
5942         (set_target_async_command): ... this.
5943         (show_maintenance_target_async_permitted): Rename to ...
5944         (show_target_async_command): ... this.
5945         (initialize_targets): Adjust.
5946
5947 2012-05-08  Doug Evans  <dje@google.com>
5948
5949         * go-exp.y (classify_name): Add missing assignment of fields of
5950         yylval.ssym.
5951
5952 2012-05-08  Eli Zaretskii  <eliz@gnu.org>
5953
5954         Display the ">" prompt in interactive mode while reading canned
5955         commands, even when the current interpreter is MI.
5956
5957         * interps.c (interp_set_temp): New function.
5958
5959         * interps.h (interp_set_temp): Add prototype.
5960
5961         * cli/cli-script.c (restore_interp): New cleanup function.
5962         (read_command_lines): Temporarily override the current interpreter
5963         with CLI and arrange for restoring the original one.
5964
5965 2012-05-12  Joel Sherrill <joel.sherrill@oarcorp.com>
5966
5967         * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5968
5969 2012-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
5970
5971         * probe.c (parse_probes): Move conditional to check for
5972         debuginfo files from here...
5973         * stap-probe.c (stap_get_probes): ... to here.
5974
5975 2012-05-07  Mark Kettenis  <kettenis@gnu.org>
5976             H.J. Lu  <hongjiu.lu@intel.com>
5977
5978         * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5979         `movl %esp, %ebp' for the X32 ABI.
5980
5981 2012-05-07  Tom Tromey  <tromey@redhat.com>
5982
5983         * dwarf2read.c (dwarf_tag_name): Return const char *.  Use
5984         get_DW_TAG_name.
5985         (dwarf_attr_name): Return const char *.  Use get_DW_AT_name.
5986         (dwarf_form_name): Return const char *.  Use get_DW_FORM_name.
5987         (dwarf_stack_op_name): Remove.
5988         (dwarf_cfi_name): Return const char *.  Use get_DW_ATE_name.
5989         (decode_locdesc): Use get_DW_OP_name.
5990         * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5991         (dwarf2_compile_expr_to_ax): Likewise.
5992         (disassemble_dwarf_expression): Likewise.
5993         * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5994
5995 2012-05-07  Chung-Lin Tang  <cltang@codesourcery.com>
5996
5997         * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5998         (sh_linux_sigtramp_cache): New function.
5999         (sh_linux_sigreturn_init): New function.
6000         (sh_linux_rt_sigreturn_init): New function.
6001         (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6002         patterns.
6003         (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6004         syscall codes.
6005         (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6006         (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6007         (sh_linux_init_abi): Add init calls to register new tramp_frame
6008         definitions under 32-bit SH, update comments.
6009
6010 2012-05-07  Pedro Alves  <palves@redhat.com>
6011
6012         PR gdb/10952
6013
6014         * amd64-linux-tdep.c: Include glibc-tdep.h.
6015         (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6016         gdbarch_skip_solib_resolver callback.
6017
6018 2012-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
6019
6020         * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6021         back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6022         (show_auto_load_safe_path): Check any-directory by comparison with "/".
6023         (add_auto_load_safe_path): Change the error message.
6024         (_initialize_auto_load): Change the "safe-path" help text.
6025         * configure: Regenerate
6026         * configure.ac (--without-auto-load-safe-path): Set
6027         WITH_AUTO_LOAD_SAFE_PATH to /.
6028
6029 2012-05-05  Sergio Durigan Junior  <sergiodj@redhat.com>
6030
6031         * stap-probe.h: Do not include unecessary `probe.h'.
6032
6033 2012-05-05  Alan Modra  <amodra@gmail.com>
6034
6035         * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6036         bfd_und_section_ptr.
6037         * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6038         and bfd_com_section_ptr.
6039
6040 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
6041
6042         * MAINTAINERS (Past Maintainers): Add Chris Faylor.
6043
6044 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
6045
6046         * windows-nat.h (segment_register_p_ftype): New typedef.
6047         (windows_set_segment_register_p): Add declaration.
6048         * windows-nat.c (segment_register_p): New static global.
6049         (windows_set_segment_register_p): New function.
6050         (do_windows_fetch_inferior_registers): Add special handling
6051         for segment registers.
6052         * amd64-windows-nat.c: #include "amd64-tdep.h".
6053         (amd64_windows_segment_register_p): New function.
6054         (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6055         * i386-windows-nat.c: #include "i386-tdep.h".
6056         (i386_windows_segment_register_p): New function.
6057         (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6058
6059 2012-05-04  Tristan Gingold  <gingold@adacore.com>
6060
6061         * printcmd.c (set_command): Emit a warning if the expression is not
6062         an assignment.
6063
6064 2012-05-03  Joel Brobecker  <brobecker@adacore.com>
6065
6066         * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6067         Make static.
6068
6069 2012-05-03  Sergio Durigan Junior  <sergiodj@redhat.com>
6070
6071         * stap-probe.c (stap_is_operator): Change declaration.
6072         (stap_get_opcode): Change return value.
6073         (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6074         `stap_parse_argument_1'.
6075
6076 2012-05-03  Pedro Alves  <pedro@codesourcery.com>
6077
6078         * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6079         debug log.
6080
6081 2012-05-03  Siva Chandra Reddy  <sivachandra@google.com>
6082
6083         Add two new methods global_block and static_block to gdb.Symtab
6084         objects.
6085         * NEWS (Python scripting): Add entry about the new methods.
6086         * python/py-symtab.c (stpy_global_block): New function which
6087         implements the gdb.Symtab.global_block() method.
6088         (stpy_static_block): New function which implements the
6089         gdb.Symtab.static_block() method.
6090         (symtab_object_methods): Add entries for the two new methods.
6091
6092 2012-05-03  Doug Evans  <dje@google.com>
6093
6094         * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6095         files.
6096
6097 2012-05-03  Yao Qi  <yao@codesourcery.com>
6098
6099         * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6100         space.
6101         (i386_process_record): Ditto.
6102
6103 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
6104
6105         * infcall.c (unwind_on_signal_p): Make static.
6106
6107 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
6108
6109         * sol-thread.c (solaris_pid_to_str): Make static.
6110         (_initialize_sol_thread): Add prototype.
6111
6112 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
6113
6114         * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6115
6116 2012-05-02  Christopher Faylor  <me.cygwin2012@cgf.cx>
6117
6118         * MAINTAINERS: Remove myself.
6119
6120 2012-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6121
6122         Fix --without-auto-load-safe-path for MS-Windows host platform.
6123         * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6124
6125 2012-05-02  Eli Zaretskii  <eliz@gnu.org>
6126
6127         * gdb_curses.h: Undefine KEY_EVENT before including curses
6128         headers.  Move "#undef MOUSE_MOVED" before any curses header
6129         inclusion.
6130
6131 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
6132
6133         * features/i386/i386-mmx-linux.c: Regenerate.
6134         * features/rs6000/powerpc-32.c: Likewise.
6135         * features/rs6000/powerpc-32l.c: Likewise.
6136         * features/rs6000/powerpc-403.c: Likewise.
6137         * features/rs6000/powerpc-403gc.c: Likewise.
6138         * features/rs6000/powerpc-405.c: Likewise.
6139         * features/rs6000/powerpc-505.c: Likewise.
6140         * features/rs6000/powerpc-601.c: Likewise.
6141         * features/rs6000/powerpc-602.c: Likewise.
6142         * features/rs6000/powerpc-603.c: Likewise.
6143         * features/rs6000/powerpc-604.c: Likewise.
6144         * features/rs6000/powerpc-64.c: Likewise.
6145         * features/rs6000/powerpc-64l.c: Likewise.
6146         * features/rs6000/powerpc-750.c: Likewise.
6147         * features/rs6000/powerpc-860.c: Likewise.
6148         * features/rs6000/powerpc-e500.c: Likewise.
6149         * features/rs6000/powerpc-e500l.c: Likewise.
6150         * features/rs6000/powerpc-isa205-32l.c: Likewise.
6151         * features/rs6000/powerpc-isa205-64l.c: Likewise.
6152         * features/rs6000/rs6000.c: Likewise.
6153
6154 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
6155
6156         * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6157         variable.
6158         * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6159         reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6160         (stap_parse_argument) <e>: Likewise.
6161         (handle_stap_probe) <byte_order>: Likewise.
6162
6163 2012-04-30  Doug Evans  <dje@google.com>
6164
6165         * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6166         init_and_read_dies_worker.  All callers updated.
6167         (init_cu_and_read_dies, init_tu_and_read_dies): Delete.  All calls
6168         replaced with init_cutu_and_read_dies.
6169         (load_partial_comp_unit): Pass 1 for use_existing_cu.
6170         (find_partial_die): Remove FIXME.  Don't free current CU.
6171
6172 2012-04-30  Sterling Augustine  <saugustine@google.com>
6173
6174         * contrib: New directory.
6175         * contrib/test_pubnames_and_indexes.py: New file.
6176
6177 2012-04-30  Doug Evans  <dje@google.com>
6178
6179         * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6180         All callers updated.
6181         (init_cu_die_reader): Verify the section is non-empty.
6182         (dwarf_decode_line_header): Don't dereference section->asection
6183         until we know the section is present.
6184
6185 2012-04-29  Sergio Durigan Junior  <sergiodj@redhat.com>
6186
6187         * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6188         probes.
6189
6190 2012-04-29  Yao Qi  <yao@codesourcery.com>
6191
6192         * gdb-code-style.el: New hook gdb-markup-hook
6193         and gdb-comment-hook.
6194
6195 2012-04-28  Doug Evans  <dje@google.com>
6196
6197         Initial support for Fission.  http://gcc.gnu.org/wiki/DebugFission
6198         * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6199         objfile->obfd.
6200         * symfile.h (dwarf2_debug_sections): New member addr.
6201         * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6202         (ctx_no_get_addr_index): New function.
6203         * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6204         (ctx_no_get_addr_index): Declare.
6205         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6206         * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6207         (dwarf_expr_ctx_funcs): Update.
6208         (needs_get_addr_index): New function.
6209         (needs_frame_ctx_funcs): Update.
6210         * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6211         * dwarf2read.c: #include "gdbcore.h".
6212         (dwarf2_per_objfile): New members addr, dwo_files.
6213         (dwarf2_elf_names): Add entry for addr.
6214         (struct dwo_section_names): New type.
6215         (dwo_section_names): New static global.
6216         (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6217         (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6218         old debug_types_section member updated to use this.
6219         Rename member debug_types_section to info_or_types_section,
6220         all uses updated.
6221         (signatured_type): Rename member type_offset to type_offset_in_tu,
6222         all uses updated.  New member type_offset_in_section.
6223         (struct dwo_sections): New type.
6224         (struct dwo_unit): New type.
6225         (struct dwo_file): New type.
6226         (die_reader_specs): New member dwo_file.
6227         (dwarf2_locate_sections): Watch for .debug_addr.
6228         (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6229         (dwarf2_read_section): Get bfd of section from bfd's asection,
6230         instead of objfile.
6231         (create_cus_from_index): Initialize the_cu->info_or_types_section.
6232         (create_signatured_type_table_from_index): Initialize
6233         sig_type->info_or_types_section.
6234         (dw2_get_file_names): Statement lists for type units with DWO files
6235         live in the DWO file.
6236         (create_debug_types_hash_table): New function.
6237         (create_all_type_units): Rewrite.
6238         (init_cu_die_reader): New arg dwo_file, all callers updated.
6239         (init_and_read_dies_worker): Get section from
6240         this_cu->info_or_types_section.  Set sig_type->type_offset_in_section.
6241         Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6242         continue reading the CU/TU from there.
6243         (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6244         updated.  Get section from this_cu->info_or_types_section.
6245         (create_all_comp_units): Initialize this_cu->info_or_types_section.
6246         (skip_one_die): New cases DW_FORM_GNU_addr_index,
6247         DW_FORM_GNU_str_index.
6248         (hash_dwo_file, eq_dwo_file): New functions.
6249         (allocate_dwo_file_hash_table): New function.
6250         (hash_dwo_unit, eq_dwo_unit): New functions.
6251         (allocate_dwo_unit_table): New function.
6252         (dwarf2_locate_dwo_sections): New function.
6253         (struct create_dwo_info_table_data): New type.
6254         (create_debug_info_hash_table_reader): New function.
6255         (create_debug_info_hash_table): New function.
6256         (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6257         (lookup_dwo_file): New function.
6258         (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6259         (free_dwo_file, free_dwo_file_cleanup): New functions.
6260         (free_dwo_file_from_slot, free_dwo_files): New functions.
6261         (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6262         (dwarf2_record_block_ranges): Ditto.
6263         (read_partial_die): Ditto.
6264         (process_enumeration_scope): Update to use type_offset_in_section.
6265         (read_full_die_1): New function.
6266         (read_full_die): Rewrite.
6267         (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6268         DW_FORM_GNU_str_index.
6269         (read_addr_index_1, read_addr_index): New functions.
6270         (read_addr_index_from_leb128): New function.
6271         (struct dwarf2_read_addr_index_data): New type.
6272         (dwarf2_read_addr_index_reader): New function.
6273         (dwarf2_read_addr_index): New function.
6274         (read_str_index): New function.
6275         (leb128_size): New function.
6276         (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6277         If processing a type unit from a DWO file, get the line section
6278         from the DWO file.
6279         (var_decode_location): Watch for DW_OP_GNU_addr_index.
6280         (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6281         DW_FORM_GNU_str_index.
6282         (lookup_die_type): Check whether section offset of type's die is
6283         known before looking it up.  Remove assert.  Condition can
6284         legimately happen for inter-cu type references.
6285         (dwarf_attr_name): Handle Fission attributes.
6286         (dwarf_form_name): Handle Fission forms.
6287         (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6288         DW_FORM_GNU_str_index.
6289         (follow_die_sig): Update to use type_offset_in_section.
6290         (decode_locdesc): New case DW_OP_GNU_addr_index.
6291         (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6292         DW_FORM_GNU_str_index.
6293         (cu_debug_loc_section): New function.
6294         (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6295         (dwarf2_per_objfile_free): Unmap .debug_addr section.
6296         Free DWO files if present.
6297         * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6298
6299         Refactor DIE reading.
6300         * dwarf2read.c (dwarf2_per_objfile): Replace members
6301         debug_info_type_hash and debug_types_type_hash with die_type_hash.
6302         (die_reader_specs): New member "die_section".  Temporarily make
6303         member "buffer" non-const, pending constifying all info_ptr uses.
6304         (die_reader_func_ftype): New typedef.
6305         (dw2_get_file_names_reader): New function.
6306         (dw2_get_file_names): Rewrite.
6307         (read_and_check_type_unit_head): Rename arg type_offset to
6308         type_offset_in_tu.
6309         (create_all_type_units): Improve debugging message.
6310         Improve dummy type unit check.
6311         (init_cu_die_reader): New arg "section".  All callers updated.
6312         (init_and_read_dies_worker): New function.
6313         (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6314         (init_cutu_and_read_dies_no_follow): New function.
6315         (init_cutu_and_read_dies_simple): New function.
6316         (process_psymtab_comp_unit_reader): New function.
6317         (process_psymtab_comp_unit): Delete args section,
6318         is_debug_types_section.  Rewrite.  All callers updated.
6319         (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6320         All callers updated.  Rewrite.
6321         (load_partial_comp_unit_reader): New function.
6322         (load_partial_comp_unit): Rewrite.
6323         (skip_children): New arg reader.  Delete args buffer, cu.
6324         All callers updated.
6325         (skip_one_die): New arg reader.  Delete args buffer, cu.
6326         All callers updated.
6327         (locate_pdi_sibling): New arg reader.  Delete args buffer, abfd, cu.
6328         All callers updated.
6329         (load_full_comp_unit_reader): New function.
6330         (load_full_comp_unit): Rewrite.
6331         (read_comp_unit): Delete.
6332         (read_die_and_children_1): Delete, contents moved ...
6333         (read_die_and_children): ... here.
6334         (dwarf2_read_abbrevs): New arg abbrev_section.  All callers updated.
6335         (load_partial_dies): New arg reader.  Delete args abfd, buffer, cu.
6336         All callers updated.
6337         (read_partial_die): New arg reader.  Delete args abfd, buffer, cu.
6338         All callers updated.
6339         (find_partial_die): Rewrite load_all_dies support.
6340         (read_attribute_value): New arg reader.  Delete args abfd, cu.
6341         All callers updated.
6342         (read_attribute): New arg reader.  Delete args abfd, cu.
6343         All callers updated.
6344         (load_full_type_unit): Add assert.
6345         (read_signatured_type_reader): New function.
6346         (read_signatured_type): Rewrite.
6347         (free_stack_comp_unit): Remove call to age_cached_comp_units.
6348         (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6349         All callers updated.  Set per_cu->cu = NULL after freeing it.
6350         (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6351         (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6352         (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6353         (set_die_type): Update.
6354         (get_die_type_at_offset): Update.
6355         (read_file_scope): Call prepare_one_comp_unit.
6356         (read_type_unit_scope): Ditto.
6357         (prepare_one_comp_unit): Set producer if present.
6358
6359 2012-04-28  Sergio Durigan Junior  <sergiodj@redhat.com>
6360
6361         * probe.c (compile_rx_or_error): Silence ARI warning about missing
6362          gettext function on `error'.
6363
6364 2012-04-27  Doug Evans  <dje@google.com>
6365
6366         * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6367         is empty.
6368
6369 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6370             Tom Tromey  <tromey@redhat.com>
6371
6372         * breakpoint.c (struct breakpoint_objfile_data)
6373         <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6374         <exception_probes>: New fields.
6375         (free_breakpoint_probes): New function.
6376         (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6377         `_Unwind_DebugHook'.
6378         (create_exception_master_breakpoint): Likewise.
6379         (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6380         * infrun.c: Including necessary header files for handling SystemTap
6381         probes.
6382         (handle_inferior_event): Handling longjmp breakpoint and exceptions
6383         via SystemTap probes.
6384         (check_exception_resume): Remove `func' argument.  Handle exception
6385         unwinding breakpoint set via a SystemTap probe.
6386         (insert_exception_resume_from_probe): New function.
6387
6388 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6389             Tom Tromey  <tromey@redhat.com>
6390             Jan Kratochvil  <jan.kratochvil@redhat.com>
6391
6392         * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6393         (COMMON_OBS): Likewise.
6394         (HFILES_NO_SRCDIR): Add `probe'.
6395         * NEWS: Mention support for static and SystemTap probes.
6396         * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6397         SystemTap probes' arguments parser.
6398         * arm-linux-tdep.c: Including headers needed to perform the parsing
6399         of SystemTap probes' arguments.
6400         (arm_stap_is_single_operand): New function.
6401         (arm_stap_parse_special_token): Likewise.
6402         (arm_linux_init_abi): Initializing proper fields used by SystemTap
6403         probes' arguments parser.
6404         * ax-gdb.c (require_rvalue): Removing static declaration.
6405         (gen_expr): Likewise.
6406         * ax-gdb.h (gen_expr): Declaring function.
6407         (require_rvalue): Likewise.
6408         * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6409         (bkpt_probe_breakpoint_ops): New variable.
6410         (momentary_breakpoint_from_master): Set the `probe' value.
6411         (add_location_to_breakpoint): Likewise.
6412         (break_command_1): Using proper breakpoint_ops according to the
6413         argument passed by the user in the command line.
6414         (bkpt_probe_insert_location): New function.
6415         (bkpt_probe_remove_location): Likewise.
6416         (bkpt_probe_create_sals_from_address): Likewise.
6417         (bkpt_probe_decode_linespec): Likewise.
6418         (tracepoint_probe_create_sals_from_address): Likewise.
6419         (tracepoint_probe_decode_linespec): Likewise.
6420         (tracepoint_probe_breakpoint_ops): New variable.
6421         (trace_command): Using proper breakpoint_ops according to the
6422         argument passed by the user in the command line.
6423         (initialize_breakpoint_ops): Initializing breakpoint_ops for
6424         static probes on breakpoints and tracepoints.
6425         * breakpoint.h (struct bp_location) <probe>: New field.
6426         * cli-utils.c (skip_spaces_const): New function.
6427         (extract_arg): Likewise.
6428         * cli-utils.h (skip_spaces_const): Likewise.
6429         (extract_arg): Likewise.
6430         * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6431         * configure.ac: Append `stap-probe.o' to be generated when ELF
6432         support is present.
6433         * configure: Regenerate.
6434         * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6435         * elfread.c: Include `probe.h' and `arch-utils.h'.
6436         (probe_key): New variable.
6437         (elf_get_probes): New function.
6438         (elf_get_probe_argument_count): Likewise.
6439         (elf_evaluate_probe_argument): Likewise.
6440         (elf_compile_to_ax): Likewise.
6441         (elf_symfile_relocate_probe): Likewise.
6442         (stap_probe_key_free): Likewise.
6443         (elf_probe_fns): New variable.
6444         (elf_sym_fns): Add `sym_probe_fns' value.
6445         (elf_sym_fns_lazy_psyms): Likewise.
6446         (elf_sym_fns_gdb_index): Likewise.
6447         (_initialize_elfread): Initialize objfile cache for static
6448         probes.
6449         * gdb_vecs.h (struct probe): New forward declaration.
6450         (probe_p): New VEC declaration.
6451         * gdbarch.c: Regenerate.
6452         * gdbarch.h: Regenerate.
6453         * gdbarch.sh (stap_integer_prefix): New variable.
6454         (stap_integer_suffix): Likewise.
6455         (stap_register_prefix): Likewise.
6456         (stap_register_suffix): Likewise.
6457         (stap_register_indirection_prefix): Likewise.
6458         (stap_register_indirection_suffix): Likewise.
6459         (stap_gdb_register_prefix): Likewise.
6460         (stap_gdb_register_suffix): Likewise.
6461         (stap_is_single_operand): New function.
6462         (stap_parse_special_token): Likewise.
6463         (struct stap_parse_info): Forward declaration.
6464         * i386-tdep.c: Including headers needed to perform the parsing
6465         of SystemTap probes' arguments.
6466         (i386_stap_is_single_operand): New function.
6467         (i386_stap_parse_special_token): Likewise.
6468         (i386_elf_init_abi): Initializing proper fields used by SystemTap
6469         probes' arguments parser.
6470         * i386-tdep.h (i386_stap_is_single_operand): New function.
6471         (i386_stap_parse_special_token): Likewise.
6472         * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6473         * mipsread.c (ecoff_sym_fns): Likewise.
6474         * objfiles.c (objfile_relocate1): Support relocation for static
6475         probes.
6476         * parse.c (prefixify_expression): Remove static declaration.
6477         (initialize_expout): Likewise.
6478         (reallocate_expout): Likewise.
6479         * parser-defs.h (initialize_expout): Declare function.
6480         (reallocate_expout): Likewise.
6481         (prefixify_expression): Likewise.
6482         * ppc-linux-tdep.c: Including headers needed to perform the parsing
6483         of SystemTap probes' arguments.
6484         (ppc_stap_is_single_operand): New function.
6485         (ppc_stap_parse_special_token): Likewise.
6486         (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6487         probes' arguments parser.
6488         * probe.c: New file, for generic statically defined probe support.
6489         * probe.h: Likewise.
6490         * s390-tdep.c: Including headers needed to perform the parsing of
6491         SystemTap probes' arguments.
6492         (s390_stap_is_single_operand): New function.
6493         (s390_gdbarch_init): Initializing proper fields used by SystemTap
6494         probes' arguments parser.
6495         * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6496         * stap-probe.c: New file, for SystemTap probe support.
6497         * stap-probe.h: Likewise.
6498         * symfile.h: Include `gdb_vecs.h'.
6499         (struct sym_probe_fns): New struct.
6500         (struct sym_fns) <sym_probe_fns>: New field.
6501         * symtab.c (init_sal): Initialize `probe' field.
6502         * symtab.h (struct probe): Forward declaration.
6503         (struct symtab_and_line) <probe>: New field.
6504         * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6505         locations.
6506         (stop_tracing): Likewise.
6507         * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6508
6509 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6510             Tom Tromey  <tromey@redhat.com>
6511
6512         * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6513         and to compile agent expressions.
6514         * infrun.c (siginfo_make_value): New argument `ignore'.
6515         (siginfo_funcs): New struct.
6516         (_initialize_infrun): New argument when calling
6517         `create_internalvar_type_lazy'.
6518         * thread.c (thread_id_make_value): New argument `ignore'.
6519         (thread_funcs): New struct.
6520         (_initialize_thread): New argument when calling
6521         `create_internalvar_type_lazy'.
6522         * tracepoint.c (sdata_make_value): New argument `ignore'.
6523         (sdata_funcs): New struct.
6524         (_initialize_tracepoint): New argument when calling
6525         `create_internalvar_type_lazy'.
6526         * value.c (make_value): New struct.
6527         (create_internalvar_type_lazy): New argument `data'.
6528         (compile_internalvar_to_ax): New function.
6529         (value_of_internalvar): Properly handling `make_value' case.
6530         (clear_internalvar): Likewise.
6531         (show_convenience): Adding `TRY_CATCH' block.
6532         * value.h (internalvar_make_value): Delete, replace by...
6533         (struct internalvar_funcs): ... this.
6534         (create_internalvar_type_lazy) <fun>: Delete argument.
6535         (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6536         (compile_internalvar_to_ax): New function.
6537         * windows-tdep.c (tlb_make_value): New argument `ignore'.
6538         (tlb_funcs): New struct.
6539         (_initialize_windows_tdep): New argument when calling
6540         `create_internalvar_type_lazy'.
6541
6542 2012-04-27  Mark Wielaard  <mjw@redhat.com>
6543
6544         * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6545         see whether it is an address or a constant offset from DW_AT_low_pc.
6546         (dwarf2_record_block_ranges): Likewise.
6547         (read_partial_die): Likewise.
6548
6549 2012-04-26  Mark Wielaard  <mjw@redhat.com>
6550
6551         * MAINTAINERS (Write After Approval): Add myself to the list.
6552
6553 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
6554
6555         * proc-utils.h (proc_prettyprint_signalset): New prototype.
6556         (proc_prettyprint_signal): Likewise.
6557         (proc_prettyprint_faultset): Likewise.
6558         (proc_prettyprint_fault): Likewise.
6559         (proc_prettyprint_actionset): Likewise.
6560         (proc_prettyprint_flags): Move to new proc-flags.c section.
6561         (proc_prettyfprint_flags): New prototype.
6562         * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6563         (proc_syscall, proc_cursig): Likewise.
6564         (proc_set_kill_on_last_close): Likewise.
6565         (proc_unset_kill_on_last_close): Likewise.
6566         (proc_set_watchpoint): Make static.
6567         (proc_delete_dead_threads): Likewise.
6568         (procfs_set_watchpoint): Likewise.
6569         (_initialize_procfs): Add prototype.
6570         * proc-events.c: Include proc-utils.h.
6571         (init_syscall_table): Make static.
6572         * proc-api.c (_initialize_proc_api): Add prototype.
6573         * proc-flags.c: Include proc-utils.h.
6574
6575 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
6576
6577         * configure.ac: Add AC_ARG_PROGRAM.
6578         * configure: Regenerate.
6579
6580 2012-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6581
6582         Fix DW_AT_lower_bound defaults for DWARF-4+.
6583         * dwarf2read.c (read_subrange_type): Remove initialization of low and
6584         high.  New variable low_default_is_valid.  Implement DWARF-4+
6585         DW_AT_lower_bound defaults.  Print complaint for DW_AT_lower_bound with
6586         no default by the DWARF standard.
6587
6588 2012-04-26  Maciej W. Rozycki  <macro@mips.com>
6589             Maciej W. Rozycki  <macro@codesourcery.com>
6590
6591         * infrun.c (handle_inferior_event): Move the check for return
6592         trampolines ahead of the check for function trampolines.
6593         * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6594         * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6595         (mips_str_mips16_ret_stub): Likewise.
6596         (mips_str_call_fp_stub): Likewise.
6597         (mips_str_call_stub): Likewise.
6598         (mips_str_fn_stub): Likewise.
6599         (mips_str_pic): Likewise.
6600         (mips_in_frame_stub): New function.
6601         (mips_unwind_pc): Return the return address rather than the PC
6602         if the PC of an intermediate frame is inside a call thunk.
6603         (mips_is_stub_suffix): New function.
6604         (mips_is_stub_mode): Likewise.
6605         (mips_get_mips16_fn_stub_pc): Likewise.
6606         (mips_skip_mips16_trampoline_code): Update to handle all the
6607         currently generated stub types.  Don't recurse into __fn_stub
6608         thunks.  Remove heuristics to handle stubs beyond etext/_etext.
6609         Use cooked register accesses.
6610         (mips_in_return_stub): Reintroduce function.
6611         (mips_skip_trampoline_code): Traverse trampolines recursively.
6612         (mips_gdbarch_init): Handle MIPS16 return trampolines.
6613
6614 2012-04-26  Joel Brobecker  <brobecker@adacore.com>
6615
6616         GDB 7.4.1 released.
6617
6618 2012-04-26  Jonathan Larmour  <jifl@eCosCentric.com>
6619
6620         * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6621         * features/arm-with-m-vfp-d16.xml: New file. Describes
6622         Cortex-M with VFPv4-sp-d16 FPU register layout.
6623         * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6624         * features/arm-with-m-vfp-d16.c: New. Generated from above.
6625         * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6626         (arm-register_g_packet_guesses): Add vfp-d16 guess.
6627         (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6628
6629 2012-04-25  Doug Evans  <dje@google.com>
6630
6631         * cli/cli-decode.c (print_doc_line): Use stream instead of
6632         current_uiout.
6633
6634 2012-04-25  Sergio Durigan Junior  <sergiodj@redhat.com>
6635
6636         * features/arm-with-iwmmxt.c: Regenerate.
6637         * features/arm-with-m-fpa-layout.c: Likewise.
6638         * features/arm-with-m.c: Likewise.
6639         * features/arm-with-neon.c: Likewise.
6640         * features/arm-with-vfpv2.c: Likewise.
6641         * features/arm-with-vfpv3.c: Likewise.
6642         * features/mips-dsp-linux.c: Likewise.
6643         * features/mips-linux.c: Likewise.
6644         * features/mips64-dsp-linux.c: Likewise.
6645         * features/mips64-linux.c: Likewise.
6646         * features/s390-linux32.c: Likewise.
6647         * features/s390-linux32v1.c: Likewise.
6648         * features/s390-linux32v2.c: Likewise.
6649         * features/s390-linux64.c: Likewise.
6650         * features/s390-linux64v1.c: Likewise.
6651         * features/s390-linux64v2.c: Likewise.
6652         * features/s390x-linux64.c: Likewise.
6653         * features/s390x-linux64v1.c: Likewise.
6654         * features/s390x-linux64v2.c: Likewise.
6655         * features/tic6x-c62x-linux.c: Likewise.
6656         * features/tic6x-c62x.c: Likewise.
6657         * features/tic6x-c64x-linux.c: Likewise.
6658         * features/tic6x-c64x.c: Likewise.
6659         * features/tic6x-c64xp-linux.c: Likewise.
6660         * features/tic6x-c64xp.c: Likewise.
6661         * target-descriptions.c: Only generate `field_type' and `type'
6662         variables when needed.
6663
6664 2012-04-25  Fredrik Hederstierna  <fredrikh.hederstierna@securitas-direct.com>
6665
6666         * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6667
6668 2012-04-25  Doug Evans  <dje@google.com>
6669
6670         Initial pass at Go language support.
6671         * NEWS: Mention Go.
6672         * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6673         go-valprint.c.
6674         (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6675         (YYFILES): Add go-exp.c.
6676         (YYOBJ): Add go-exp.o.
6677         (local-maintainer-clean): Delete go-exp.c.
6678         * defs.h (enum language): Add language_go.
6679         * dwarf2read.c: #include "go-lang.h".
6680         (fixup_go_packaging): New function.
6681         (process_full_comp_unit): Call it when processing Go CUs.
6682         (dwarf2_physname): Add Go support.
6683         (read_file_scope): Handle missing language spec for GNU Go.
6684         (set_cu_language): Handle DW_LANG_Go.
6685         * go-exp.y: New file.
6686         * go-lang.h: New file.
6687         * go-lang.c: New file.
6688         * go-typeprint.c: New file.
6689         * go-valprint.c: New file.
6690         * symtab.c: #include "go-lang.h".
6691         (symbol_set_language): Handle language_go.
6692         (symbol_find_demangled_name, symbol_set_names): Ditto.
6693         (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6694
6695 2012-04-24  Jim Meyering  <meyering@redhat.com>
6696
6697         avoid a few strncpy-induced buffer overruns
6698         * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6699         fname and psargs before trying to concatenate.
6700         * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6701         "name" before applying strchr.
6702
6703 2012-04-25  Siva Chandra Reddy  <sivachandra@google.com>
6704
6705         * CONTRIBUTE: Use unified diff instead of context diff when
6706         generating patches.
6707
6708 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
6709
6710         * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6711         code.  Handle JR.HB correctly.
6712
6713 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
6714
6715         * mips-tdep.c
6716         (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6717         with the other MIPS16 helpers.
6718
6719 2012-04-24  Sergio Durigan Junior  <sergiodj@redhat.com>
6720
6721         * observer.sh: Conditionally declare `args', thus cleaning up
6722         unused instances of this variable.
6723
6724 2012-04-24  Yao Qi  <yao@codesourcery.com>
6725
6726         Revert this patch to allow breakpoint always-inserted
6727         in record target.
6728         2011-12-05  Pedro Alves  <pedro@codesourcery.com>
6729         * breakpoint.c: Include record.h.
6730         (breakpoints_always_inserted_mode): Return false when the record
6731         target is in use.
6732
6733         * breakpoint.c (iterate_over_bp_locations): New.
6734         * breakpoint.h: Declare.
6735         New typedef walk_bp_location_callback.
6736         * record.c (record_open): Call record_init_record_breakpoints.
6737         (record_sync_record_breakpoints): New.
6738         (record_init_record_breakpoints): New.
6739         * NEWS: Mention supporting breakpoint always-inserted mode in
6740         record target.
6741
6742 2012-04-24  Marc Khouzam  <marc.khouzam@ericsson.com>
6743
6744         * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6745         any thread.
6746
6747 2012-04-24  Yao Qi  <yao@codesourcery.com>
6748
6749         * breakpoint.c (ep_is_catchpoint): Renamed to ...
6750         (is_catchpoint): ... it.
6751         (print_one_breakpoint_location): Caller update.
6752         * breakpoint.h: Update declaration.
6753
6754 2012-04-23  David S. Miller  <davem@davemloft.net>
6755
6756         * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6757
6758 2012-04-23  Tom Tromey  <tromey@redhat.com>
6759
6760         * buildsym.c (add_free_pendings): Remove.
6761         * buildsym.h (add_free_pendings): Remove.
6762
6763 2012-04-23  Doug Evans  <dje@google.com>
6764
6765         * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6766         attr.u.unsnd instead of attr.u.addr.
6767         (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6768         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6769         DW_FORM_ref_udata.
6770         (dump_die_shallow): Update cases DW_FORM_ref_addr,
6771         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4.  Add cases DW_FORM_ref8,
6772         DW_FORM_ref_udata.
6773         (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6774
6775 2012-04-23  Maciej W. Rozycki  <macro@codesourcery.com>
6776
6777         * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6778         (mips_o32_return_value): Likewise.
6779         (mips_o64_return_value): Likewise.
6780
6781 2012-04-21  Paul Hilfinger  <hilfinger@adacore.com>
6782
6783         * ada-lang.c (ada_evaluate_subexp): Add cases for
6784         TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6785         their treatment in eval.c.
6786
6787 2012-04-21  David S. Miller  <davem@davemloft.net>
6788
6789         * sparc-tdep.c (X_DISP10): Define.
6790         (sparc_analyze_control_transfer): Handle compare-and-branch.
6791
6792 2012-04-21  Jonathan Larmour  <jifl@eCosCentric.com>
6793
6794         * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6795         * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6796
6797 2012-04-20  Nigel Stephens  <nigel@mips.com>
6798             Maciej W. Rozycki  <macro@codesourcery.com>
6799
6800         * mips-tdep.c (mips_float_register_p): New function.
6801         (mips_convert_register_float_case_p): Use mips_float_register_p.
6802         (mips_register_type): Likewise.
6803         (mips_print_register): Likewise.
6804         (print_gp_register_row): Likewise.
6805         (mips_print_registers_info): Likewise.
6806
6807 2012-04-20  Shun-Yen Lu  <dark.asparagus@gmail.com>
6808
6809         * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6810         of mips16 symbols.
6811
6812 2012-04-20  Andrew Pinski  <apinski@cavium.com>
6813
6814         * MAINTAINERS (Write After Approval): Add myself to the list.
6815
6816 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
6817
6818         * MAINTAINERS: Update my e-mail address.
6819
6820 2012-04-20  Pedro Alves  <palves@redhat.com>
6821
6822         * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6823         $srcdir.
6824         * configure: Regenerate.
6825
6826 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
6827
6828         * cp-support.h: Include `gdb_vecs.h'.  Delete `const_char_ptr' VEC
6829         declaration.
6830         * gdb_vecs.h: Declare `const_char_ptr' VEC.
6831
6832 2012-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6833
6834         Fix compilation compatibility with python-2.4
6835         * python/py-type.c (convert_field): Cast ADDRSTRING for
6836         PyObject_SetAttrString as non-const.  New comment.
6837
6838 2012-04-19  Tom Tromey  <tromey@redhat.com>
6839
6840         * top.c (quit_target): Use all_cleanups.
6841         * main.c (captured_command_loop): Use all_cleanups.
6842         * exceptions.c (throw_exception): Use all_cleanups.
6843
6844 2012-04-19  Pedro Alves  <palves@redhat.com>
6845
6846         * Makefile.in (GNULIB_BUILDDIR): New.
6847         (LIBGNU, INCGNU, GNULIB_H): Adjust.
6848         (SUBDIRS): Add $(GNULIB_BUILDDIR).
6849         (CLEANDIRS). Remove gnulib/import.
6850         (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6851         (all-lib): Ditto.
6852         (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6853         (gnulib/import/Makefile): Replace gnulib/import with
6854         $(GNULIB_BUILDDIR).  Set CONFIG_FILES to just Makefile.
6855         (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6856         (aclocal_m4_deps): Remove the gnulib dependencies.  Add
6857         acx_configure_dir.m4.
6858         * acinclude.m4: Include acx_configure_dir.m4.
6859         * acx_configure_dir.m4: New file.
6860         * aclocal.m4: Regenerate.
6861         * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6862         calls.  Configure gnulib using ACX_CONFIGURE_DIR.
6863         (GNULIB): New variable.
6864         (GNULIB_STDINT_H): Adjust.
6865         (AC_OUTPUT): Don't output gnulib/Makefile.
6866         * gdb/defs.h: Include build-gnulib/config.h.
6867         * aclocal.m4: Regenerate.
6868         * config.in: Regenerate.
6869         * configure: Regenerate.
6870
6871         * gnulib/Makefile.in: New file.
6872         * gnulib/configure.ac: New file.
6873         * gnulib/aclocal.m4: New file.
6874         * gnulib/config.in: New file.
6875         * gnulib/configure: New file.
6876         * gnulib/: Re-run gnulib-tool to adjust.
6877
6878 2012-04-19  Doug Evans  <dje@google.com>
6879
6880         * cleanups.h (struct cleanup): Move to cleanups.c.
6881         (make_cleanup_dtor_ftype): New typedef.
6882         (make_cleanup_dtor): Use it.
6883         (ALL_CLEANUPS): Replace with ...
6884         (all_cleanups): ... this.  Declare.  All uses updated.
6885         * cleanups.c: #include "gdb_assert.h".
6886         (sentinel_cleanup): New static global.
6887         (SENTINEL_CLEANUP): Define.
6888         (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6889         (make_my_cleanup2): Assert result is non-NULL.
6890         (all_cleanups): New function.
6891         (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6892         of NULL.
6893
6894 2012-04-19  Pedro Alves  <palves@redhat.com>
6895
6896         * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6897         Adjust paths to gnulib imported files.
6898
6899 2012-04-19  Pedro Alves  <palves@redhat.com>
6900
6901         * gnulib/: Move whole directory ...
6902         * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6903         * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6904         (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6905         (aclocal_m4_deps): Adjust.
6906         * aclocal.m4: Regenerate.
6907         * configure: Regenerate.
6908         * configure.ac: Adjust AC_OUTPUT output.
6909
6910 2012-04-19  Yao Qi  <yao@codesourcery.com>
6911
6912         * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6913         (vec.o): New rule.
6914         * vec.c: Move it ...
6915         * common/vec.c: ... here.
6916         * vec.h: Move it ...
6917         * common/vec.h: ... here.
6918
6919 2012-04-19  Yao Qi  <yao@codesourcery.com>
6920
6921         * gdb-code-style.el: New.
6922
6923 2012-04-18  Pedro Alves  <palves@redhat.com>
6924
6925         Update gnulib from latest git.
6926         (639ea5ae15e39fe48d43e04864b2997301e4b969)
6927
6928         * gnulib/Makefile.am: Update.
6929         * gnulib/dummy.c: Update.
6930         * gnulib/extra/arg-nonnull.h: Update.
6931         * gnulib/extra/c++defs.h: Update.
6932         * gnulib/extra/update-copyright: Update.
6933         * gnulib/extra/warn-on-use.h: Update.
6934         * gnulib/inttypes.in.h: Update.
6935         * gnulib/m4/00gnulib.m4: Update.
6936         * gnulib/m4/extensions.m4: Update.
6937         * gnulib/m4/gnulib-cache.m4: Update.
6938         * gnulib/m4/gnulib-common.m4: Update.
6939         * gnulib/m4/gnulib-comp.m4: Update.
6940         * gnulib/m4/gnulib-tool.m4: Update.
6941         * gnulib/m4/include_next.m4: Update.
6942         * gnulib/m4/inttypes-pri.m4: Update.
6943         * gnulib/m4/inttypes.m4: Update.
6944         * gnulib/m4/longlong.m4: Update.
6945         * gnulib/m4/memchr.m4: Update.
6946         * gnulib/m4/memmem.m4: Update.
6947         * gnulib/m4/mmap-anon.m4: Update.
6948         * gnulib/m4/multiarch.m4: Update.
6949         * gnulib/m4/onceonly.m4: Update.
6950         * gnulib/m4/stddef_h.m4: Update.
6951         * gnulib/m4/stdint.m4: Update.
6952         * gnulib/m4/string_h.m4: Update.
6953         * gnulib/m4/warn-on-use.m4: Update.
6954         * gnulib/m4/wchar_h.m4: Update.
6955         * gnulib/m4/wchar_t.m4: Update.
6956         * gnulib/m4/wint_t.m4: Update.
6957         * gnulib/memchr.c: Update.
6958         * gnulib/memmem.c: Update.
6959         * gnulib/stddef.in.h: Update.
6960         * gnulib/stdint.in.h: Update.
6961         * gnulib/str-two-way.h: Update.
6962         * gnulib/string.in.h: Update.
6963         * gnulib/wchar.in.h: Update.
6964
6965         * gnulib/extra/arg-nonnull.h: Delete.
6966         * gnulib/extra/c++defs.h: Delete.
6967         * gnulib/extra/warn-on-use.h: Delete.
6968         * gnulib/m4/wchar_h.m4: Delete.
6969         * gnulib/m4/wint_t.m4: Delete.
6970         * gnulib/wchar.in.h: Delete.
6971
6972         * gnulib/extra/snippets/arg-nonnull.h: New.
6973         * gnulib/extra/snippets/c++defs.h: New.
6974         * gnulib/extra/snippets/warn-on-use.h: New.
6975
6976         * aclocal.m4: Regenerate.
6977         * config.in: Regenerate.
6978         * configure: Regenerate.
6979         * gnulib/Makefile.in: Regenerate.
6980
6981 2012-04-18  Pedro Alves  <palves@redhat.com>
6982
6983         Reimport the update-copyright module from gnulib
6984         (250b80067c1e1d8faa0c42fb572f721975b929c5).
6985
6986         * configure: Regenerate.
6987         * gnulib/Makefile.am: Update.
6988         * gnulib/Makefile.in: Regenerate.
6989         * gnulib/extra/update-copyright: Update.
6990         * gnulib/m4/gnulib-cache.m4: Update.
6991         * gnulib/m4/gnulib-comp.m4: Update.
6992
6993 2012-04-18  Tristan Gingold  <gingold@adacore.com>
6994
6995         * configure.ac (aix): Put -lpthread into libs.
6996         * configure: Regenerate.
6997
6998 2012-04-18  Tom Tromey  <tromey@redhat.com>
6999
7000         * linespec.c (convert_linespec_to_sals): Don't use
7001         SYMBOL_OBJ_SECTION.
7002         (compare_msymbols): Arguments are minsym_and_objfile, not
7003         minimal_symbol*.  Don't use SYMBOL_OBJ_SECTION.
7004
7005 2012-04-18  Pedro Alves  <palves@redhat.com>
7006
7007         Revert gnulib/ part of:
7008         2011-01-01  Joel Brobecker  <brobecker@adacore.com>
7009         Copyright year update in most files (performed by copyright.sh).
7010
7011 2012-04-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
7012
7013         Fix 64-bit constants on 32-bit hosts.
7014         * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7015         from unsigned long to ULONGEST.
7016         (read_signed_leb128): Change declaration return type from long to
7017         LONGEST.
7018         (dwarf2_const_value_attr): Change declaration parameter value from long
7019         to LONGEST.
7020         (dwarf2_compute_name): Change variable value from long to LONGEST.
7021         (read_unsigned_leb128): Change return type, variable result and some
7022         casts from unsigned long to ULONGEST.
7023         (read_signed_leb128): Change return type, variable result and some
7024         casts from long to LONGEST.
7025         (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7026         value from long to LONGEST.
7027         (dwarf2_const_value): Change variable value from long to LONGEST.
7028         * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7029         plongest and hex_string.
7030         * symtab.h (struct general_symbol_info): Change ivalue from long to
7031         LONGEST, remove the comment.
7032         * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7033         Change SYMBOL_VALUE format strings to use plongest and hex_string.
7034
7035 2012-04-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
7036
7037         PR symtab/7259:
7038         * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7039         * ada-lang.c (ada_discrete_type_high_bound)
7040         (ada_discrete_type_low_bound): Fix function comment.  Use
7041         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7042         (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7043         (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7044         * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7045         Use TYPE_FIELD_ENUMVAL.
7046         * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7047         (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7048         * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7049         block, change it to LONGEST.  Use TYPE_FIELD_ENUMVAL for
7050         TYPE_CODE_ENUM.
7051         * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7052         * dwarf2read.c (process_enumeration_scope): Likewise.
7053         * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7054         field.bitpos.
7055         (class StructMainTypePrettyPrinter): Support also
7056         FIELD_LOC_KIND_ENUMVAL.
7057         * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7058         TYPE_CODE_ENUM.
7059         (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7060         (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7061         * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7062         (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment.  New
7063         field enumval.
7064         (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7065         accommodate enumval.
7066         (struct call_site): Adjust loc_kind to accommodate enumval.
7067         (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7068         (TYPE_FIELD_ENUMVAL): New macros.
7069         * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7070         * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7071         TYPE_CODE_ENUM.
7072         * p-typeprint.c (pascal_type_print_base): Likewise.
7073         * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7074         enumval.
7075         * python/lib/gdb/types.py (make_enum_dict): Likewise.
7076         * python/py-type.c (convert_field): New variable addrstring.  Use
7077         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7078         (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7079         * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7080         * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7081         TYPE_CODE_ENUM.
7082         * valprint.c (generic_val_print): Likewise.
7083
7084 2012-04-17  Doug Evans  <dje@google.com>
7085
7086         * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7087
7088         * dwarf2read.c: Whitespace fixes.
7089         (lookup_signatured_type): Tweak comment.
7090         (get_die_type_at_offset): Fix comment.
7091
7092 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
7093
7094         * xcoffread.c (xcoff_secnum_to_sections): New function.
7095         (secnum_to_section, secnum_to_bfd_section): Reimplement
7096         using xcoff_secnum_to_sections.  Rename "secnum" parameter
7097         into "n_scnum".
7098         (RECORD_MINIMAL_SYMBOL): Delete.
7099         (record_minimal_symbol): New function.
7100         (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7101         by call to record_minimal_symbol and set misc_func_recorded
7102         to 1.  Set last_csect_sec to the XCOFF section index instead
7103         of GDB's section_offset index.  Update calls to
7104         prim_record_minimal_symbol_and_info to pass the BFD section
7105         as well.
7106
7107 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
7108
7109         * xcoffread.c (read_xcoff_symtab): Delete variables
7110         last_csect_val and last_csect_sec and associated code.
7111
7112 2012-04-17  Doug Evans  <dje@google.com>
7113
7114         * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7115         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7116         * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7117         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7118
7119         * cleanups.h: New file.
7120         * cleanups.c: New file.
7121         * Makefile.in (SFILES): Add cleanups.c.
7122         (HFILES_NO_SRCDIR): Add cleanups.h.
7123         (COMMON_OBS): Add cleanups.o.
7124         * defs.h (struct cleanup): Moved to cleanups.h.
7125         (do_cleanups,do_final_cleanups): Ditto.
7126         (discard_cleanups,discard_final_cleanups): Ditto
7127         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7128         (save_cleanups,save_final_cleanups): Ditto.
7129         (restore_cleanups,restore_final_cleanups): Ditto.
7130         (null_cleanup): Ditto.
7131         (make_my_cleanup,make_my_cleanup2): Ditto.
7132         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7133         * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7134         (do_cleanups,do_final_cleanups): Ditto.
7135         (discard_cleanups,discard_final_cleanups): Ditto
7136         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7137         (save_cleanups,save_final_cleanups): Ditto.
7138         (restore_cleanups,restore_final_cleanups): Ditto.
7139         (null_cleanup): Ditto.
7140         (make_my_cleanup,make_my_cleanup2): Ditto.
7141         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7142
7143         * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7144         make_my_cleanup.
7145         (make_cleanup_dyn_string_delete): Ditto.
7146         (make_cleanup_ui_file_delete): Ditto.
7147         (make_cleanup_ui_out_redirect_pop): Ditto.
7148         (make_cleanup_free_section_addr_info): Ditto.
7149         (make_cleanup_restore_integer): Ditto.
7150         (make_cleanup_unpush_target): Ditto.
7151         (make_cleanup_value_free_to_mark): Ditto.
7152         (make_cleanup_value_free): Ditto.
7153         (make_cleanup_free_so): Ditto.
7154
7155 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7156
7157         New option "set debug auto-load".
7158         * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7159         * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7160         (auto_load_safe_path_vec_update)
7161         (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7162         if DEBUG_AUTO_LOAD.
7163         (file_is_auto_load_safe): New parameters debug_fmt and ....
7164         Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7165         (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7166         caller by explanatory string.
7167         (_initialize_auto_load): Register "set debug auto-load".
7168         * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7169         and ....
7170         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7171         (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7172         by explanatory string.
7173         * main.c (captured_main): Likewise.
7174         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7175         (source_section_scripts): Likewise.
7176
7177 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7178
7179         New option "set auto-load safe-path".
7180         * NEWS: New commands "set auto-load safe-path"
7181         and "show auto-load safe-path".
7182         * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7183         (auto_load_safe_path, auto_load_safe_path_vec)
7184         (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7185         (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7186         (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7187         (source_gdb_script_for_objfile): New variable is_safe.  Call
7188         file_is_auto_load_safe.  Return if it is not.
7189         (struct loaded_script): New field loaded.
7190         (maybe_add_script): Add parameter loaded.  Initialize SLOT with it.
7191         (print_script): Use LOADED indicator instead of FULL_PATH.  Change
7192         output "Missing" to "No".
7193         (_initialize_auto_load): New variable cmd.  Initialize
7194         auto_load_safe_path.  Register "set auto-load safe-path",
7195         "show auto-load safe-path" and "add-auto-load-safe-path".
7196         * auto-load.h (maybe_add_script): Add parameter loaded.
7197         (file_is_auto_load_safe): New declaration.
7198         * config.in: Regenerate.
7199         * configure: Regenerate.
7200         * configure.ac: New parameters --with-auto-load-safe-path
7201         and --without-auto-load-safe-path.
7202         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7203         (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7204         * main.c (captured_main): Check file_is_auto_load_safe for
7205         LOCAL_GDBINIT.
7206         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7207         variable is_safe.  Call file_is_auto_load_safe.  Return if it is not.
7208         (source_section_scripts): Call file_is_auto_load_safe.  Return if it is
7209         not.
7210
7211 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7212
7213         auto-load: Implementation.
7214         * NEWS: New descriptions for "info auto-load",
7215         "info auto-load gdb-scripts", "info auto-load python-scripts",
7216         "info auto-load local-gdbinit" and "info auto-load libthread-db".
7217         Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7218         and "show auto-load-scripts".  New description for "set auto-load",
7219         "show auto-load", "set auto-load gdb-scripts",
7220         "show auto-load gdb-scripts", "set auto-load python-scripts",
7221         "show auto-load python-scripts", "set auto-load local-gdbinit",
7222         "show auto-load local-gdbinit", "set auto-load libthread-db" and
7223         "show auto-load libthread-db".
7224         * auto-load.c: Remove include python/python-internal.h.  Add includes
7225         exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7226         cli/cli-setshow.h.
7227         (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7228         (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7229         (gdbpy_global_auto_load): Rename to ...
7230         (global_auto_load): ... here.
7231         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7232         (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7233         (script_language_gdb, source_gdb_script_for_objfile): New.
7234         (struct loaded_script): New field language.
7235         (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7236         LANGUAGE.
7237         (maybe_add_script): Add parameter language.  Drop redundant
7238         entry.full_path initialization.  Initialize entry.language and
7239         (*slot)->language.
7240         (auto_load_objfile_script): Change parameter suffix to language.
7241         Remove the call of maybe_add_script.
7242         Call language->source_script_for_objfile.
7243         (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7244         New.
7245         (collect_matching_scripts): Adjust it for
7246         struct collect_matching_scripts_data.
7247         (auto_load_info_scripts_pattern_nl): New variable.
7248         (info_auto_load_scripts): Rename to ...
7249         (auto_load_info_scripts): ... here, add parameter language.  Adjust it
7250         for struct collect_matching_scripts_data.
7251         (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7252         (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7253         (auto_load_show_cmdlist_get, info_auto_load_cmd)
7254         (auto_load_info_cmdlist_get): New.
7255         (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7256         python/py-auto-load.c.  New installment for "set auto-load gdb-scripts",
7257         "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7258         "info auto-load local-gdbinit".
7259         * auto-load.h (struct script_language): New.
7260         (gdbpy_global_auto_load): Rename to ...
7261         (global_auto_load): ... here.
7262         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7263         (auto_load_local_gdbinit_loaded): New declarations.
7264         (maybe_add_script): New parameter language.
7265         (auto_load_objfile_script): Change parameter suffix to language.
7266         (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7267         (auto_load_info_scripts, auto_load_set_cmdlist_get)
7268         (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7269         declarations.
7270         * linux-thread-db.c: Include auto-load.h and ctype.h.
7271         (auto_load_thread_db, show_auto_load_thread_db): New.
7272         (struct thread_db_info): New field filename.
7273         (delete_thread_db_info): Call xfree for FILENAME.
7274         (try_thread_db_load): Initialize FILENAME.
7275         (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7276         if !AUTO_LOAD_THREAD_DB.
7277         (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7278         (_initialize_thread_db): Install auto_load_thread_db
7279         as "set auto-load libthread-db" and install info_auto_load_libthread_db
7280         as "info auto-load libthread-db".
7281         * main.c (captured_main): Rename gdbpy_global_auto_load to
7282         global_auto_load.  Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7283         AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7284         (print_gdb_help): Extend the help for 'local init file'.
7285         * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7286         (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7287         (auto_load_scripts): Rename to ...
7288         (auto_load_python_scripts): ... here, update the comment.
7289         (gdbpy_load_auto_script_for_objfile): New declaration.
7290         (show_auto_load_python_scripts, script_language_python)
7291         (gdbpy_load_auto_script_for_objfile): New.
7292         (source_section_scripts): Refactor the code.
7293         (load_auto_scripts_for_objfile): Rename to ...
7294         (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7295         auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7296         (info_auto_load_python_scripts): New.
7297         (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7298         Rename "set auto-load-scripts" to "set auto-load python-scripts".
7299         Register "set auto-load-scripts" as its deprecated alias.  Register
7300         "info auto-load python-scripts".  Register "info auto-load-scripts" as
7301         its deprecated alias.
7302         (load_auto_scripts_for_objfile): Rename to ...
7303         (gdbpy_load_auto_scripts_for_objfile): ... here.
7304         * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7305         (gdbpy_load_auto_scripts_for_objfile): ... here.
7306
7307 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7308
7309         auto-load: Move files.
7310         * Makefile.in (SFILES): Add auto-load.c.
7311         (HFILES_NO_SRCDIR): Add auto-load.h.
7312         (COMMON_OBS): Add auto-load.o.
7313         (distclean): Change .gdbinit for gdb-gdb.gdb.
7314         * auto-load.c: New file, with parts from python/py-auto-load.c.
7315         * auto-load.h: New file, with parts from python/python.h.
7316         * configure: Regenerate.
7317         * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7318         * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7319         * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7320         * main.c: Include auto-load.h.
7321         * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7322         command.h, observer.h and progspace.h to auto-load.c.  Add include
7323         auto-load.h.
7324         (gdbpy_global_auto_load, struct auto_load_pspace_info)
7325         (struct loaded_script, auto_load_pspace_data)
7326         (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7327         (hash_loaded_script_entry, eq_loaded_script_entry)
7328         (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7329         (maybe_add_script): Move to auto-load.c.
7330         (source_section_scripts): Change maybe_add_script parameters passing,
7331         use script_not_found_warning_print.
7332         (clear_section_scripts, auto_load_objfile_script)
7333         (auto_load_new_objfile, loaded_script_ptr)
7334         (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7335         (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7336         (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7337         auto_load_new_objfile and info_auto_load_scripts initizations to
7338         auto-load.c.
7339         * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7340
7341 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7342
7343         Code cleanup.
7344         * charset.c (find_charset_names): Remove variables ix and elt.
7345         Use free_char_ptr_vec.
7346         * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7347         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
7348         debugdir_end.  New variable debugdir_len.
7349         * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7350         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7351         declarations.
7352         * progspace.c (clear_program_space_solib_cache): Remove variables ix
7353         and elt.  Use free_char_ptr_vec.
7354         * source.c (add_path): Remove variables argv, arg and argv_index.
7355         New variables dir_vec, back_to, ix and name.
7356         Use dirnames_to_char_ptr_vec_append.  Use freeargv instead of
7357         make_cleanup_freeargv.  Remove variable separator.  Simplify the code
7358         no longer expecting DIRNAME_SEPARATOR.
7359         (openp): Remove variable p, p1 and len.  New variables dir_vec,
7360         back_to, ix and dir.  Use dirnames_to_char_ptr_vec.  Simplify the code
7361         no longer expecting DIRNAME_SEPARATOR.
7362         * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7363         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
7364         debugdir_end.
7365         * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7366         (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7367         (dirnames_to_char_ptr_vec): New functions.
7368
7369 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7370
7371         Code cleanup.
7372         * source.c (add_path): Remove always true conditional 'p == 0' and
7373         unindent its code block.
7374
7375 2012-04-17  Pedro Alves  <palves@redhat.com>
7376
7377         * gdbtypes.h (FIELD_BITPOS): Rename to ...
7378         (FIELD_BITPOS_LVAL): ... this.
7379         (FIELD_BITPOS): New.
7380         (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7381         * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7382         * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7383         SET_FIELD_BITPOS.
7384         * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7385         SET_FIELD_BITPOS.
7386         * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7387         (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7388         * target-descriptions.c (tdesc_gdb_type): Adjust to use
7389         SET_FIELD_BITPOS.
7390
7391 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7392
7393         Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7394         * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7395         TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7396         * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7397         * jv-lang.c (java_link_class_type): Likewise, once.
7398         * stabsread.c (read_enum_type): Likewise.
7399
7400 2012-04-16  Yao Qi  <yao@codesourcery.com>
7401
7402         * common/agent.c (agent_run_command): Add one more parameter `len'.
7403         Update callers.
7404         * common/agent.h: Update declaration.
7405         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7406         Update.
7407         (linux_child_static_tracepoint_markers_by_strid): Ditto.
7408
7409 2012-04-14  Anton Gorenkov <xgsa@yandex.ru>
7410
7411         PR mi/13393
7412         * value.c (value_actual_type): New function.
7413         * value.h (value_actual_type): New declaration.
7414         * varobj.c (update_type_if_necessary): New function.
7415         (varobj_create): Call value_actual_type instead of
7416         value_type.
7417         (install_dynamic_child): distinct changed and type changed MI variable
7418         objects.
7419         (update_dynamic_varobj_children): Updated for install_dynamic_child
7420         change.  All callers updated.
7421         (varobj_update): Support for MI variable object type change if
7422         the value changed and RTTI is used to determine the type.
7423         (create_child_with_value): Call value_actual_type instead of
7424         value_type.
7425         (adjust_value_for_child_access): Extended with a new parameter which
7426         specify whether the given value should be casted to enclosing type.
7427         All callers updated.
7428
7429 2012-04-14  Yao Qi  <yao@codesourcery.com>
7430
7431         Import gnulib module inttypes from git
7432         (250b80067c1e1d8faa0c42fb572f721975b929c5)
7433         * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7434         (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7435         gnulib/m4/inttypes-pri.m4
7436         * aclocal.m4, config.in, configure: Regenerated.
7437         * gnulib/Makefile.am: Update.
7438         * gnulib/Makefile.in: Update.
7439         * gnulib/m4/gnulib-cache.m4: Update.
7440         * gnulib/m4/gnulib-comp.m4: Update.
7441         * gnulib/inttypes.in.h: New.
7442         * gnulib/m4/inttypes-pri.m4: New.
7443         * gnulib/m4/inttypes.m4: New.
7444
7445 2012-04-13  Luis Machado  <lgustavo@codesourcery.com>
7446
7447         * infrun.c (resume): Update PC address to the real PC after
7448         preparing to do displaced stepping.
7449
7450 2012-04-12  Doug Evans  <dje@google.com>
7451
7452         * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7453         All callers updated.
7454
7455 2012-04-12  Mark Kettenis  <kettenis@gnu.org>
7456
7457         * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7458
7459 2012-04-12  Doug Evans  <dje@google.com>
7460
7461         * dwarf2read.c (create_all_type_units): Renamed from
7462         create_debug_types_hash_table.  All callers updated.
7463
7464         * dwarf2read.c (create_signatured_type_table_from_index): Rename
7465         local type_sig to sig_type, type_offset to type_offset_in_tu.
7466         (hash_signatured_type): Renamed from hash_type_signature,
7467         all callers updated.
7468         (eq_signatured_type): Renamed from eq_type_signature,
7469         all callers updated.
7470         (create_debug_types_hash_table): Rename local type_sig to sig_type.
7471         (process_enumeration_scope): Ditto.
7472         (lookup_signatured_type_at_offset): Ditto.
7473         (load_full_type_unit, read_signatured_type): Ditto.
7474
7475 2012-04-12  Yao Qi  <yao@codesourcery.com>
7476
7477         * remote.c (async_remote_interrupt): Correct function name in
7478         debug message.
7479         (async_remote_interrupt_twice): Ditto.
7480
7481 2012-04-11  Yuanhui Zhang  <asmwarrior@gmail.com>
7482
7483         * source.c (find_and_open_source): Consistently pass resulting
7484         full path through xfullpath.
7485
7486 2012-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7487
7488         Provide more specific displaced-stepping memory error message.
7489         * infrun.c (displaced_step_prepare): New variable status.  Call
7490         target_read_memory instead of read_memory, provide more specific
7491         error message.
7492
7493 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7494
7495         PR gdb/13901
7496         * darwin-nat.c (darwin_execvp): Revert previous patch.
7497
7498 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7499
7500         PR gdb/13901
7501         * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7502         in case of change.
7503
7504 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7505
7506         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7507         warning.
7508
7509 2012-04-11  Siva Chandra Reddy  <sivachandra@google.com>
7510
7511         New command 'explore' which helps explore values and types in
7512         scope.
7513         * NEWS: Add an entry about the new 'explore' command.
7514         * data-directory/Makefile.in: Add gdb/command/explore.py
7515         * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7516         command using the GDB Python API.
7517
7518 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
7519
7520         * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7521         extension in jump target calculation.
7522
7523 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
7524
7525         * mips-tdep.c (mips32_next_pc): Handle JALX.
7526
7527 2012-04-10  Yao Qi  <yao@codesourcery.com>
7528
7529         * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7530
7531 2012-04-10  Yao Qi  <yao@codesourcery.com>
7532
7533         * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7534         and gnulib/m4/gnulib-tool.m4.
7535
7536 2012-04-10  Doug Evans  <dje@google.com>
7537
7538         * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7539         (load_partial_dies): Clarify comment.
7540         (find_partial_die): Support rereading type units.
7541         Clarify CU handling, if we know offset is in CU, don't search for the
7542         containing CU.  Add comment regarding memory waste.
7543
7544 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7545
7546         * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7547         i386/x32-avx and i386/x32-avx-linux.
7548         (i386/x32-expedite): New.
7549         (i386/x32-linux-expedite): Likewise.
7550         (i386/x32-avx-expedite): Likewise.
7551         (i386/x32-avx-linux-expedite): Likewise.
7552         ($(outdir)/i386/x32.dat): Likewise.
7553         ($(outdir)/i386/x32-linux.dat): Likewise.
7554         ($(outdir)/i386/x32-avx.dat): Likewise.
7555         ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7556
7557         * features/i386/x32-avx-linux.xml: New file.
7558         * features/i386/x32-avx.xml: Likewise.
7559         * features/i386/x32-core.xml: Likewise.
7560         * features/i386/x32-linux.xml: Likewise.
7561         * features/i386/x32.xml: Likewise.
7562
7563         * features/i386/x32-avx-linux.c: New.  Generated.
7564         * features/i386/x32-avx.c: Likewise.
7565         * features/i386/x32-linux.c: Likewise.
7566         * features/i386/x32.c: Likewise.
7567         * regformats/i386/x32-avx-linux.dat: Likewise.
7568         * regformats/i386/x32-avx.dat: Likewise.
7569         * regformats/i386/x32-linux.dat: Likewise.
7570         * regformats/i386/x32.dat: Likewise.
7571
7572 2012-04-10  Tristan Gingold  <gingold@adacore.com>
7573
7574         * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7575         code to kill the inferior.
7576
7577 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
7578
7579         * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7580         defines.
7581         * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7582         defines.
7583         * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7584         (yyvsp): New defines.
7585         * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7586         defines.
7587         * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7588         defines.
7589         * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7590         defines.
7591         * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7592         defines.
7593         * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7594         defines.
7595
7596 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
7597
7598         * sparc64-tdep.c (sparc64_store_arguments)
7599         (sparc64_store_arguments): Fix coding style.
7600
7601 2012-04-07  Mark Kettenis  <kettenis@gnu.org>
7602
7603         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7604         complex floats, adjust some related comments and tighten a related
7605         assertion.
7606         (sparc64_extract_return_value): Handle complex floats.
7607
7608 2012-04-07  Doug Evans  <dje@google.com>
7609
7610         * dwarf2read.c (load_partial_dies): Change condition to assert.
7611
7612 2012-04-06  Doug Evans  <dje@google.com>
7613
7614         * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7615         "mov %rsp,%rbp".
7616
7617 2012-04-05  Kevin Buettner  <kevinb@redhat.com>
7618
7619         * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7620         fencepost error.
7621         (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7622         (v850_gdbarch_init): Set `num_regs' as appropriate for the
7623         architecture.
7624
7625 2012-04-05  Keith Seitz  <keiths@redhat.com>
7626
7627         * linespec.c (decode_compound): Remove.
7628         (enum offset_relative_sign): New enum.
7629         (struct line_offset): New struct.
7630         (struct linespec): New struct.
7631         (struct linespec_state): Move file_symtabs,
7632         user_filename, and user_function into struct linespec.
7633         Make result an anonymous struct holding vectors of
7634         symbolp and minsym_and_objfile_d.
7635         Add language member.
7636         (enum ls_token_type): New enum.
7637         (linespec_keywords): New array.
7638         (struct ls_token): New struct.
7639         (struct ls_parser): New struct.
7640         (linespec_lexer_lex_number): New function.
7641         (linespec_lexer_lex_keyword): New function.
7642         (is_ada_operator): New function.
7643         (skip_quote_char): New function.
7644         (copy_token_string): New function.
7645         (is_closing_quote_enclosed): New function.
7646         (find_parameter_list_end): New function.
7647         (linespec_lexer_lex_string): New function.
7648         (linespec_lexer_lex_one): New function.
7649         (linespec_lexer_consume_token): New function.
7650         (linespec_lexer_peek_token): New function.
7651         (cplusplus_error): Remove unused function.
7652         (find_methods): Update comment.
7653         (find_toplevel_char): Return const.
7654         (is_objc_method_format): Remove unused function.
7655         (find_toplevel_string): New function.
7656         (is_linespec_boundary): Remove.
7657         (symbol_not_found_error): New function.
7658         (find_method_overload_end): Remove function.
7659         (unexpected_linespec_error): New function.
7660         (keep_name_info): Remove.
7661         (linespec_parse_line_offset): New function.
7662         (linespec_parse_basic): New function.
7663         (canonicalize_linespec): New function.
7664         (decode_line_internal): Remove.
7665         (create_sals_line_offset): New function adapted from
7666         decode_all_digits.
7667         (convert_linespec_to_sals): New function.
7668         (parse_linespec): New function.
7669         (linespec_parser_new): New function.
7670         (linespec_state_destructor): Change parameter type to
7671         struct linespec_state *.
7672         Add language parameter.
7673         Remove freeing of moved members.
7674         (linespec_parser_delete): New function.
7675         (decode_line_full): Use parse_linespec and linespec_parser_new.
7676         (decode_line_1): Likewise.
7677         (decode_indirect): Rename to ...
7678         (linespec_expression_to_pc): ... this and rewrite
7679         to simply find CORE_ADDR, storing this result for later
7680         conversion to SALs.
7681         (locate_first_half): Remove.
7682         (deocde_objc): Add parameter LS.
7683         Initialize new struct collect_info members.
7684         Handle minimal symbols, too.
7685         (decode_compound): Delete.
7686         (lookup_prefix_sym): Rewrite.
7687         (compare_msymbols): New function.
7688         (find_method): Rewrite.
7689         Do not call cplusplus_error.
7690         (symtabs_from_filename): Rewrite.
7691         (collect_function_symbols): Delete.
7692         (find_function_symbols): Rewrite without ARGPTR-style
7693         processing.
7694         (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7695         (decode_dollar): Adapted and renamed to ...
7696         (linespec_parse_variable): ... this.
7697         (find_linespec_symbols): New function.
7698         (decode_label): Adapted and renamed to ...
7699         (find_label_symbols): ... this.
7700         (decode_digits_list_mode): Add and use LS argument.
7701         (decode_digits_ordinary): Likewise.
7702         (collect_symbols): Do not collect SALs, just symbols and msymbols.
7703         If in list mode, allow any symbol class.  Otherwise, only
7704         permit LOC_BLOCK symbols.
7705         (minsym_found): Update comments.
7706         (search_minsyms_for_name): Do not convert the matching symbol
7707         into a SAL.  Simply push the symbol and objfile into the
7708         result vector.
7709         (decode_variable): Delete. Contents adapted into
7710         find_linespec_symbols.
7711
7712         * cp-support.c (SKIP_SPACE): Remove.
7713         (operator_tokens): Remove unused global.
7714         (cp_validate_operator): Remove.
7715         * cp-support.h (cp_validate_operator): Remove declaration.
7716
7717 2012-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7718
7719         * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7720         for TYPE_VPTR_FIELDNO.
7721         * valprint.c (valprint_check_validity): Make it global, move the
7722         function comment ...
7723         * value.h (valprint_check_validity): ... to this new declaration.
7724
7725 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7726
7727         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7728         the STATE32 api for i386 state.
7729         (i386_darwin_store_inferior_registers): Likewise.
7730
7731 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7732
7733         * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7734         SS offset.
7735         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7736         format_string.
7737
7738 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7739
7740         PR gdb/13901
7741         * darwin-nat.c (darwin_execvp): Set binary preference.
7742
7743 2012-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7744
7745         * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7746
7747 2012-03-30  Tom Tromey  <tromey@redhat.com>
7748
7749         * python/python.c (gdbpy_decode_line): Move cleanup creation out
7750         of TRY_CATCH.  Fix error handling.
7751         * python/py-value.c (convert_value_from_python): Move 'old'
7752         declaration to innermost scope.
7753
7754 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7755             Andrey Smirnov  <andrew.smirnov@gmail.com>
7756
7757         -Wshadow warning fix.
7758         * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7759         "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7760         Adjust code accordingly.
7761
7762 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7763
7764         * ada-lang.c (symbol_completion_add): Rename parameter
7765         "encoded" into "encoded_p".  Ajust code and documentation
7766         accordingly.
7767
7768 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7769             Andrey Smirnov  <andrew.smirnov@gmail.com>
7770
7771         -Wshadow warning fix.
7772         * ada-lang.c (symbol_completion_add): Rename parameter
7773         "wild_match" into wild_match_p.  Update code and documentation
7774         accordingly.
7775
7776 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7777
7778         * ada-lang.c (symbol_completion_match): Rename parameter
7779         "encoded" into "encoded_p".  Ajust code and documentation
7780         accordingly.
7781
7782 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7783             Andrey Smirnov  <andrew.smirnov@gmail.com>
7784
7785         -Wshadow warning fix.
7786         * ada-lang.c (symbol_completion_match): Rename parameter
7787         "wild_match" into "wild_match_p".  Adjust code and function
7788         documentation accordingly.
7789
7790 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7791             Andrey Smirnov  <andrew.smirnov@gmail.com>
7792
7793         -Wshadow warning fix.
7794         * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7795         "symbol_info" into "info".  Adjust code accordingly.
7796         (ada_lookup_symbol): Likewise.
7797
7798 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7799
7800         * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7801         of this function's documentation.
7802
7803 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7804             Andrey Smirnov  <andrew.smirnov@gmail.com>
7805
7806         -Wshadow warning fix.
7807         * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7808         variable into "wild_match_p".  Adjust code accordingly.
7809
7810 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7811             Andrey Smirnov  <andrew.smirnov@gmail.com>
7812
7813         -Wshadow warning fix.
7814         * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7815         parameter into "wild_match_p".  Adjust code accordingly.
7816         Document this parameter in the function description.
7817
7818 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7819             Andrey Smirnov  <andrew.smirnov@gmail.com>
7820
7821         -Wshadow warning fix.
7822         * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7823         "wild_match" parameter to "wild_match_p" (-Wshadow).
7824
7825 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7826
7827         * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7828         in function documentation.
7829
7830 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7831             Andrey Smirnov  <andrew.smirnov@gmail.com>
7832
7833         -Wshadow warning fix.
7834         * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7835         variable into wild_match_p.  Adjust code accordingly.
7836
7837 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7838             Andrey Smirnov  <andrew.smirnov@gmail.com>
7839
7840         * ada-valprint.c (ada_val_print_1): Move the code handling
7841         TYPE_CODE_ENUM inside its own lexical block.  Declare
7842         variables len and val there, instead of in the function's
7843         top level block.  Avoid declaring deref_val again in a way
7844         that shadows another variable of the same name declared
7845         in one of the up-level blocks.  Just re-use the up-level
7846         variable instead.
7847
7848 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7849
7850         * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7851         Replace block_found argument by symbol_info.  Adjust
7852         implementation accordingly.  Add function documentation.
7853         (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7854         Fix documentation.
7855         * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7856         * ada-exp.y (write_object_renaming): Adjust to new
7857         ada_lookup_encoded_symbol API.
7858
7859 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7860
7861         * ada-lang.h (struct ada_symbol_info): Reformat.  Improve
7862         documentation.
7863
7864 2012-03-28  Rathish C  <rathish.c@kpitcummins.com>
7865
7866         * v850-tdep.c: Add the enum values for mpu and fpu registers.
7867         (v850_register_name): Add the mpu and fpu register names.
7868         (v850e_register_name): Add the mpu and fpu register names.
7869         (v850e2_register_name): New function.
7870         (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7871         bfd_mach_v850e2v3.
7872
7873 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7874
7875         * NEWS: Add entry for Ada varobj support.
7876
7877 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7878
7879         * varobj.c (default_value_is_changeable_p): New function,
7880         extracted from varobj_value_is_changeable_p.  Add declaration.
7881         (ada_value_is_changeable_p): New function, extracted from
7882         varobj_value_is_changeable_p.  Add declaration.
7883         (struct language_specific): New field "value_is_changeable_p".
7884         (languages): Add entries for new field.
7885         (varobj_create): Set language before calling install_new_value.
7886         (varobj_value_is_changeable_p): Reimplement to call the varobj's
7887         "value_is_changeable_p" language callback.
7888
7889 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7890
7891         * ada-varobj.h, ada-varobj.c: New files.
7892         * Makefile.in (SFILES): Add ada-varobj.c.
7893         (HFILES_NO_SRCDIR): Add ada-varobj.h.
7894         (COMMON_OBS): Add ada-varobj.o.
7895
7896 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7897
7898         * varobj.c (ada_value_has_mutated): Add declaration.  New function.
7899         (struct language_specific): New field "value_has_mutated".
7900         (languages): Set field "value_has_mutated" in each entry of array.
7901         (varobj_value_has_mutated): New function.
7902         (varobj_udpdate): Add handling of type mutation.
7903         (value_of_root): Add handling of type mutation.
7904         (ada_value_has_mutated): New function.
7905
7906 2012-03-28  Pedro Alves  <palves@redhat.com>
7907
7908         * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7909         Always supply $fr0 as 0.0 and $fr1 as 1.0.
7910
7911 2012-03-28  Tom Tromey  <tromey@redhat.com>
7912
7913         * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7914         explicitly free 'buffer' on exit paths.  Decref 'membuf_object'
7915         before returning.
7916
7917 2012-03-28  Tom Tromey  <tromey@redhat.com>
7918
7919         * .dir-locals.el: New file.
7920
7921 2012-03-28  Pedro Alves  <palves@redhat.com>
7922
7923         * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7924
7925 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7926
7927         * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7928         handling for r0.
7929
7930 2012-03-27  Pedro Alves  <palves@redhat.com>
7931
7932         Eliminate struct ui_stream.
7933
7934         * ui-out.h (struct ui_stream): Delete.
7935         (ui_out_field_stream): Adjust prototype.
7936         (ui_out_stream_new, ui_out_stream_delete)
7937         (make_cleanup_ui_out_stream_delete): Delete declarations.
7938         * ui-out.c (ui_out_field_stream): Change prototype to take a
7939         ui_file instead of a ui_stream.  Adjust.
7940         (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7941         (make_cleanup_ui_out_stream_delete): Delete.
7942         * breakpoint.c (print_breakpoint_location)
7943         (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7944         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7945         * disasm.c (dump_insns): Ditto.
7946         (do_mixed_source_and_assembly, do_assembly_only): Adjust
7947         prototype.
7948         (gdb_disassembly): Use ui_file/mem_fileopen instead of
7949         ui_stream/ui_out_stream_new.
7950         * infcmd.c (print_return_value): Ditto.
7951         * osdata.c (info_osdata_command): Don't allocate a local
7952         ui_stream.
7953         * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7954         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7955         * tracepoint.c (print_one_static_tracepoint_marker): Don't
7956         allocate a local ui_stream.
7957         * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7958         instead of ui_stream/ui_out_stream_new.
7959         (list_args_or_locals): Don't allocate a local ui_stream.
7960         * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7961         (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7962         ui_stream/ui_out_stream_new.
7963         * cli/cli-setshow.c (do_setshow_command): Ditto.
7964
7965 2012-03-27  Oza Pawandeep  <oza.pawandeep@gmail.com>
7966
7967         * arm-linux-tdep.c (arm_linux_init_abi): Call
7968         set_gdbarch_process_record.  Initialize `arm_swi_record' field.
7969         * arm-tdep.c (arm_process_record): New function.
7970         (deallocate_reg_mem): New function.
7971         (decode_insn): New function.
7972         (thumb_record_branch): New function.
7973         (thumb_record_ldm_stm_swi(): New function.
7974         (thumb_record_misc): New function.
7975         (thumb_record_ld_st_stack): New function.
7976         (thumb_record_ld_st_imm_offset): New function.
7977         (thumb_record_ld_st_reg_offset(): New function.
7978         (thumb_record_add_sub_cmp_mov): New function.
7979         (thumb_record_shift_add_sub): New function.
7980         (arm_record_coproc_data_proc): New function.
7981         (arm_record_coproc): New function.
7982         (arm_record_b_bl): New function.
7983         (arm_record_ld_st_multiple): New function.
7984         (arm_record_ld_st_reg_offset): New function.
7985         (arm_record_ld_st_imm_offset): New function.
7986         (arm_record_data_proc_imm): New function.
7987         (arm_record_data_proc_misc_ld_str): New function.
7988         (arm_record_extension_space): New function.
7989         (arm_record_strx): New function.
7990         (sbo_sbz): New function.
7991         (struct insn_decode_record): New structure for arm insn record.
7992         (REG_ALLOC): New macro for reg allocations.
7993         (MEM_ALLOC): New macro for memory allocations.
7994         * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7995
7996 2012-03-27  Andreas Schwab  <schwab@linux-m68k.org>
7997
7998         * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7999         (store_register): Likewise.
8000
8001 2012-03-26  Oza Pawandeep  <oza.pawandeep@gmail.com>
8002
8003         * MAINTAINERS (Write After Approval): Add myself to the list.
8004
8005 2012-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
8006
8007         * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8008         Describe also the option "auto".
8009
8010 2012-03-22  Richard Henderson  <rth@redhat.com>
8011
8012         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8013         * sparc-nat.c (sparc_xfer_wcookie): Make static.
8014
8015 2012-03-22  Richard Henderson  <rth@redhat.com>
8016
8017         * jit.c (jit_read_code_entry): Compute alignment and offset of
8018         int64_t member before computing entry_size.
8019
8020 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
8021
8022         Python scripting: Add new method Value.referenced_value to
8023         gdb.Value which can dereference pointer as well as reference
8024         values.
8025         * NEWS: Add entry under 'Python scripting' about the new method
8026         Value.referenced_value on gdb.Value objects.
8027         * python/py-value.c (valpy_referenced_value): New function
8028         defining a new method on gdb.Value objects which can dereference
8029         pointer and reference values.
8030
8031 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
8032
8033         * MAINTAINERS (Write After Approval): Add myself to the list.
8034
8035 2012-03-21  Kevin Buettner  <kevinb@redhat.com>
8036
8037         * symtab.c (skip_prologue_sal): Change test to check for "main()"
8038         in addition to "main".
8039
8040 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
8041
8042         * expression.h (op_name): Add declaration.
8043         * expprint.c (op_name): Remove declaration.  Make non-static.
8044         * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8045
8046 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
8047
8048         * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8049         of struct siginfo.
8050         * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8051         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8052         * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8053         (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8054         (linux_nat_get_siginfo): Likewise.
8055         * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8056         (linux_nat_get_siginfo): Likewise.
8057         * linux-tdep.c (linux_get_siginfo_type): Likewise.
8058         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8059         * procfs.c (gdb_siginfo_t): Likewise.
8060
8061 2012-03-21  Mike Frysinger  <vapier@gentoo.org>
8062
8063         * .gitignore: Ignore more files.
8064
8065 2012-03-20  Pedro Alves  <palves@redhat.com>
8066
8067         * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8068         returns.
8069
8070 2012-03-20  Yao Qi  <yao@codesourcery.com>
8071
8072         * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8073         comment.
8074
8075 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8076
8077         Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8078         * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8079         (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8080         sect_offset.
8081         * dwarf2expr.h (cu_offset, sect_offset): New types.
8082         (struct dwarf_expr_context_funcs) <dwarf_call>
8083         (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8084         sect_offset.
8085         (struct dwarf_expr_context) <len>: Improve the comment.
8086         (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8087         cu_offset and sect_offset.
8088         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8089         (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8090         (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8091         * dwarf2loc.h: Include dwarf2expr.h.
8092         (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8093         and sect_offset.
8094         * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8095         Improve the comment.
8096         (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8097         (struct signatured_type, struct line_header, struct partial_die_info)
8098         (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8099         (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8100         (get_die_type_at_offset, create_cus_from_index)
8101         (create_signatured_type_table_from_index, dw2_get_file_names)
8102         (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8103         (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8104         (create_debug_types_hash_table, process_psymtab_comp_unit)
8105         (load_partial_comp_unit, create_all_comp_units)
8106         (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8107         (load_full_comp_unit, dwarf2_physname, read_import_statement)
8108         (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8109         (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8110         (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8111         (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8112         (find_partial_die, read_attribute_value, lookup_die_type)
8113         (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8114         (is_ref_attr): New function comment.
8115         (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8116         Use cu_offset and sect_offset.
8117         (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8118         (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8119         (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8120         (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8121         (offset_and_type_hash, offset_and_type_eq, set_die_type)
8122         (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8123         (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8124         sect_offset.
8125
8126 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8127
8128         Code cleanup.
8129         * python/py-auto-load.c (source_section_scripts): New variable back_to.
8130         Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8131         with xfree.
8132         (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8133
8134 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8135
8136         * NEWS: Describe new options --init-command=FILE, -ix and
8137         --init-eval-command=COMMAND, -iex.
8138         * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8139         CMDARG_INIT_COMMAND.
8140         (captured_main): New enum items OPT_IX and OPT_IEX.  Add
8141         "init-command", "init-eval-command", "ix" and "iex" to the variable
8142         long_options.  Handle OPT_IX and OPT_IEX.  Process them from CMDARG_VEC.
8143         New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8144         (print_gdb_help): Describe --init-command=FILE, -ix and
8145         --init-eval-command=COMMAND, -iex.
8146
8147 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8148
8149         Code cleanup.
8150         * main.c (struct cmdarg): Move it here from main.  Add more comments.
8151         (cmdarg_s, VEC (cmdarg_s)): New.
8152         (main): Move struct cmdarg from here.  New variables cmdarg_vec and
8153         cmdarg_p.  Remove variables cmdsize and ncmd and their initialization.
8154         Install cleanup for cmdarg_vec.  Update filling for options 'x' and
8155         'X'.  Replace cmdarg processing by cmdarg_vec processing.  Remove xfree
8156         of CMDARG.
8157
8158 2012-03-19  Tom Tromey  <tromey@redhat.com>
8159
8160         * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8161
8162 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8163
8164         PR symtab/13777
8165         * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8166         GCC >=4.5.
8167
8168 2012-03-16  Chris January  <chris.january@allinea.com>
8169
8170         * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8171         of clear.
8172
8173 2012-03-16  Chris January  <chris.january@allinea.com>
8174
8175         * source.c (add_path): Use memmove instead of strcpy because the
8176         strings overlap.
8177
8178 2012-03-16  Joel Brobecker  <brobecker@adacore.com>
8179
8180         * value.h (set_value_parent): Add declaration.
8181         * value.c (set_value_parent): New function.
8182         (value_address): If VALUE->PARENT is not NULL, then use it as
8183         the base address instead of VALUE->LOCATION.address.
8184         * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8185         the same as OBJ's address.  Adjust V's offset accordingly.
8186         Set V's parent.
8187
8188 2012-03-16  Gary Benson  <gbenson@redhat.com>
8189
8190         PR breakpoints/10738
8191         * dwarf2read.c (use_deprecated_index_sections): New global.
8192         (struct partial_die_info): New member may_be_inlined.
8193         (read_partial_die): Set may_be_inlined where appropriate.
8194         (add_partial_subprogram): Add partial symbols for partial
8195         DIEs that may be inlined.
8196         (new_symbol_full): Add inlined subroutines to the current
8197         scope.
8198         (write_psymtabs_to_index): Bump version number.
8199         (dwarf2_read_index): Read only version 6 indices unless
8200         use_deprecated_index_sections is set.
8201         * linespec.c (symbol_and_data_callback): New structure.
8202         (iterate_inline_only): New function.
8203         (iterate_over_all_matching_symtabs): New argument
8204         "include_inline".  If nonzero, also call the callback for
8205         symbols representing inlined subroutines.
8206         (lookup_prefix_sym): Pass extra argument to the above.
8207         (find_function_symbols): Likewise.
8208         (add_matching_symbols_to_info): Likewise.
8209         * NEWS: Mention that GDB can now set breakpoints on inlined
8210         functions.
8211
8212 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
8213
8214         * p-typeprint.c (pascal_type_print_method_args):
8215         Fix display of parameter of methods.
8216
8217 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
8218
8219         * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8220         Add missing prototype.
8221
8222 2012-03-16  Yao Qi  <yao@codesourcery.com>
8223             Jan Kratochvil  <jan.kratochvil@redhat.com>
8224
8225         Fix false compilation warning.
8226         * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8227
8228 2012-03-15  Jonathan Larmour  <jifl@eCosCentric.com>
8229             Pedro Alves  <pedro@codesourcery.com>
8230
8231         * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8232         (arm_register_g_packet_guesses): New function.
8233         (arm_gdbarch_init): Don't force a target description with
8234         registers when the executable is detected as M-profile.  Instead
8235         set gdbarch->tdep->is_m.  Register `g' packet guesses.
8236         (_initialize_arm_tdep): Initialize the new target description.
8237         * features/arm-with-m-fpa-layout.xml: New description.
8238         * features/arm-with-m-fpa-layout.c: New, generated.
8239
8240 2012-03-15  Joel Brobecker  <brobecker@adacore.com>
8241
8242         * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8243         Update function description.
8244         (insert_bp_location): Do not wipe bl->target_info out.
8245         * mem-break.c: #include "gdb_string.h".
8246         (default_memory_insert_breakpoint): Do not call target_read_memory
8247         with a pointer to the breakpoint's shadow_contents buffer.  Use
8248         a local buffer instead.
8249         * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8250
8251 2012-03-15  Tom Tromey  <tromey@redhat.com>
8252
8253         * NEWS: Mention "info vtbl", not "info vtable".
8254         * cp-support.c (info_vtbl_command): Fix comment.
8255         (_initialize_cp_support): Fix text.
8256
8257 2012-03-15  Tom Tromey  <tromey@redhat.com>
8258
8259         * cp-valprint.c (cp_print_value_fields): Use
8260         print_function_pointer_address for vtable slot.
8261
8262 2012-03-15  Tom Tromey  <tromey@redhat.com>
8263
8264         * gnu-v3-abi.c (struct value_and_voffset): New.
8265         (hash_value_and_voffset, eq_value_and_voffset)
8266         (compare_value_and_voffset, compute_vtable_size)
8267         (print_one_vtable, gnuv3_print_vtable): New functions.
8268         (init_gnuv3_ops): Initialize 'print_vtable' field.
8269         * cp-support.c (info_vtbl_command): New function.
8270         (_initialize_cp_support): Add "info vtbl".
8271         * cp-abi.h (cplus_print_vtable): Declare.
8272         (struct cp_abi_ops) <print_vtable>: New field.
8273         * cp-abi.c (cplus_print_vtable): New function.
8274         * NEWS: Update.
8275
8276 2012-03-15  Tom Tromey  <tromey@redhat.com>
8277
8278         * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8279         iterate_over_symbols.
8280
8281 2012-03-14  Doug Evans  <dje@google.com>
8282
8283         * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8284         DW_OP_GNU_parameter_ref.
8285
8286 2012-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
8287
8288         Fix double prompt of 'interpreter-exec mi'.
8289         * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8290         (mi_interpreter_resume): use it.
8291         (mi_execute_command_input_handler): New function.
8292         * mi/mi-main.c (mi_execute_command): Move prompt printing to
8293         mi_execute_command_input_handler.
8294
8295 2012-03-13  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
8296
8297         * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8298         prototype.
8299         (darwin_debug_port_info): Make static.
8300         * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8301         * machoread.c (_initialize_machoread): Add prototype.
8302         * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8303         (i386_darwin_set_control, i386_darwin_get_control)
8304         i386_darwin_dr_set_addr, i386_darwin_get_addr)
8305         i386_darwin_get_status, i386_darwin_get_control):
8306         Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8307
8308 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
8309
8310         * ax-gdb.c (gen_usual_unary): Remove special handling of
8311         enum and bool types.
8312
8313 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
8314
8315         * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8316
8317 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
8318
8319         * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8320
8321 2012-03-13  Chris January  <chris.january@allinea.com>
8322
8323         * aix-thread.c (fill_sprs): Store the floating point registers
8324         at the correct offsets into vals.
8325
8326 2012-03-13  Doug Evans  <dje@google.com>
8327
8328         * NEWS: Mention symbol-reloading has been deleted.
8329         * symfile.c (symbol_reloading): Delete.
8330         (show_symbol_reloading): Delete.
8331         (_initialize_symfile): Delete set/show symbol-reloading.
8332
8333         * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8334         read_in_chain until we have successfully read it in.
8335         (load_full_comp_unit): Ditto.
8336         (read_signatured_type): Add comment.
8337
8338 2012-03-13  Chris January  <chris.january@allinea.com>
8339
8340         * stabsread.c (fix_common_block): Change type of valu argument
8341         to CORE_ADDR.
8342
8343 2012-03-13  Chris January  <chris.january@allinea.com>
8344
8345         * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8346         instruction.
8347
8348 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8349
8350         * common/linux-procfs.c (linux_proc_get_int): New, from
8351         linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8352         field.
8353         (linux_proc_get_tgid): Only call linux_proc_get_int.
8354         (linux_proc_get_tracerpid): New.
8355         (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8356         (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8357         linux_proc_pid_has_state.
8358         * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8359         * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8360         (linux_ptrace_attach_warnings): New.
8361         * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8362         New declaration.
8363         * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8364         (linux_nat_attach): New variables ex, buffer, message and message_s.
8365         Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8366
8367 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8368
8369         * Makefile.in (linux-ptrace.o): New.
8370         * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8371         from linux-nat.c.
8372         * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8373         * common/linux-ptrace.c: New file.
8374         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8375         * config/arm/linux.mh: Likewise.
8376         * config/i386/linux.mh: Likewise.
8377         * config/i386/linux64.mh: Likewise.
8378         * config/ia64/linux.mh: Likewise.
8379         * config/m32r/linux.mh: Likewise.
8380         * config/m68k/linux.mh: Likewise.
8381         * config/mips/linux.mh: Likewise.
8382         * config/pa/linux.mh: Likewise.
8383         * config/powerpc/linux.mh: Likewise.
8384         * config/powerpc/ppc64-linux.mh: Likewise.
8385         * config/powerpc/spu-linux.mh: Likewise.
8386         * config/s390/s390.mh: Likewise.
8387         * config/sparc/linux.mh: Likewise.
8388         * config/sparc/linux64.mh: Likewise.
8389         * config/xtensa/linux.mh: Likewise.
8390         * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8391         common/linux-procfs.c.
8392         (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8393
8394 2012-03-13  Hui Zhu  <teawater@gmail.com>
8395             Pedro Alves  <palves@redhat.com>
8396
8397         * breakpoint.c (init_breakpoint_sal): New flags parameter.  Handle
8398         CREATE_BREAKPOINT_FLAGS_INSERTED.
8399         (create_breakpoint_sal, create_breakpoints_sal)
8400         (base_breakpoint_create_breakpoints_sal)
8401         (tracepoint_create_breakpoints_sal)
8402         (strace_marker_create_breakpoints_sal): New flags parameter.  Pass
8403         down.
8404         (break_command_1, handle_gnu_v3_exceptions, trace_command)
8405         (ftrace_command, strace_command): Adjust.
8406         (create_tracepoint_from_upload): Pass
8407         CREATE_BREAKPOINT_FLAGS_INSERTED.
8408         * breakpoint.h (enum breakpoint_create_flags): New.
8409         (create_breakpoint): New flags parameter.
8410         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8411         * python/py-breakpoint.c (bppy_init): Adjust.
8412         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8413         * spu-tdep.c (spu_catch_start): Adjust.
8414
8415 2012-03-13  Pedro Alves  <palves@redhat.com>
8416             Hui Zhu  <teawater@gmail.com>
8417             Yao Qi  <yao@codesourcery.com>
8418
8419         * remote.c (struct remote_state): New field `starting_up'.
8420         (remote_start_remote): Set and clear it.
8421         (remote_can_download_tracepoint): If starting up, return false.
8422
8423 2012-03-13  Yao Qi  <yao@codesourcery.com>
8424
8425         * inferior.h (struct inferior): Remove fields any_syscall_count,
8426         syscalls_counts and total_syscalls_count.  Move them to new
8427         struct catch_syscall_inferior_data in breakpoint.c.
8428         * breakpoint.c: Call DEF_VEC_I(int).
8429         (struct catch_syscall_inferior_data): New.
8430         (get_catch_syscall_inferior_data): New.
8431         (catch_syscall_inferior_data_cleanup): New.
8432         (insert_catch_syscall): Update to access data in
8433         struct catch_syscall_inferior_data.
8434         (insert_catch_syscall): Likewise.
8435         (remove_catch_syscall): Likewise.
8436         (remove_catch_syscall): Likewise.
8437         (is_syscall_catchpoint_enabled): Likewise.
8438         (add_catch_command): Likewise.
8439         (_initialize_breakpoint): Register cleanup.
8440         * breakpoint.h: Removed DEF_VEC_I(int).
8441         * dwarf2loc.c: Call DEF_VEC_I(int).
8442         * mi/mi-main.c: Likewise.
8443
8444 2012-03-12  Mark Kettenis  <kettenis@gnu.org>
8445
8446         * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8447
8448 2012-03-12  Chris January  <chris.january@allinea.com>
8449
8450         * aix-thread.c (_initialize_aix_thread): Add prototype.
8451         * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8452         * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8453
8454 2012-03-12  Joel Brobecker  <brobecker@adacore.com>
8455
8456         * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8457         include of "amd64-nat.h".
8458
8459 2012-03-12  Tom Tromey  <tromey@redhat.com>
8460
8461         * buildsym.c (record_pending_block): Now static.
8462         * buildsym.h: (record_pending_block): Remove.
8463
8464 2012-03-12  Andreas Tobler  <andreast@fgznet.ch>
8465
8466         * amd64bsd-nat.c: Include amd64bsd-nat.h.
8467
8468 2012-03-09  Tom Tromey  <tromey@redhat.com>
8469
8470         * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8471         producer_is_gxx_lt_4_6>: New fields.
8472         (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8473
8474 2012-03-09  Tom Tromey  <tromey@redhat.com>
8475
8476         * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8477
8478 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8479
8480         * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8481         prototype.
8482
8483 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8484
8485         * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8486
8487 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8488
8489         Fix -Wmissing-prototypes build.
8490         * arm-linux-nat.c (get_thread_id): Make it static.
8491         * xtensa-linux-nat.c (get_thread_id): Likewise.
8492
8493 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8494
8495         * server.c (process_point_options): If a conditional expression
8496         is found, only print a message if remote_debug is nonzero.
8497
8498 2012-03-08  Luis Machado  <lgustavo@codesourcery.com>
8499
8500         * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8501         of internal error for unknown/unsupported types.
8502
8503 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8504
8505         Fix CU relative vs. absolute DIE offsets.
8506         * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8507         offset to offset_in_cu.
8508         * dwarf2read.c (process_enumeration_scope): Add CU offset to
8509         TYPE_OFFSET.
8510         (dwarf2_fetch_die_location_block): Rename parameter offset to
8511         offset_in_cu.  New variable offset, add CU offset to OFFSET_IN_CU.
8512
8513 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8514
8515         * libunwind-frame.c: Rename to ...
8516         * ia64-libunwind-tdep.c: ... here.
8517         * libunwind-frame.h: Rename to ...
8518         * ia64-libunwind-tdep.h: ... here.
8519         * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8520         ia64-libunwind-tdep.h.
8521         (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8522         * README (--with-libunwind): Rename to ...
8523         (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8524         * config.in: Regenerate.
8525         * configure: Regenerate.
8526         * configure.ac: New option --with-libunwind-ia64, make the
8527         AS_HELP_STRING ia64 specific.  Deprecate option --with-libunwind.
8528         Remove AC_DEFINE for HAVE_LIBUNWIND.
8529         * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8530         Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8531         Rename libunwind-frame in the general comment.
8532         * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8533         Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8534         Move forward declarations inside #ifndef.  Rename libunwind-frame in
8535         the general comment.
8536         * ia64-tdep.c: Rename libunwind-frame.h #include to
8537         ia64-libunwind-tdep.h.
8538         (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8539         (ia64_libunwind_descr): Rename libunwind-frame to
8540         ia64-libunwind-tdep in these function comments.
8541         * ia64-tdep.h: Rename libunwind-frame.h #include to
8542         ia64-libunwind-tdep.h.
8543         * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8544         ia64-libunwind-tdep in that data comment.
8545
8546 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8547
8548         * libunwind-frame.h (struct frame_unwind): New declaration.
8549
8550 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8551
8552         * breakpoint.c (_initialize_breakpoint): Fix error in help of
8553         "set breakpoint condition-evaluation" command.
8554
8555 2012-03-08  Tristan Gingold  <gingold@adacore.com>
8556
8557         * sparc-stub.c: Move to stubs/
8558         * sh-stub.c: Likewise.
8559         * m68k-stub.c: Likewise.
8560         * m32r-stub.c: Likewise.
8561         * i386-stub.c: Likewise.
8562
8563 2012-03-08  Andreas Schwab  <schwab@linux-m68k.org>
8564
8565         * m68klinux-tdep.c (m68k_linux_init_abi): Register
8566         linux_get_siginfo_type.
8567
8568         * m68klinux-nat.c: Include "gdb_proc_service.h".
8569         (PTRACE_GET_THREAD_AREA): Define.
8570         (ps_get_thread_area): New function.
8571
8572 2012-03-08  Yao Qi  <yao@codesourcery.com>
8573
8574         * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8575         `xsnprintf'.
8576         (remote_query_attached): Likewise.
8577         (remote_static_tracepoint_marker_at): Likewise.
8578         (remote_set_permissions): Likewise.
8579         (remote_detach_1, extended_remote_attach_1): Likewise.
8580         (send_g_packet, remote_vkill): Likewise.
8581         (extended_remote_disable_randomization): Likewise.
8582         (remote_add_target_side_condition): Likewise.
8583         (remote_insert_breakpoint): Likewise.
8584         (remote_remove_breakpoint): Likewise.
8585         (remote_insert_watchpoint): Likewise.
8586         (remote_remove_watchpoint): Likewise.
8587         (remote_insert_hw_breakpoint): Likewise.
8588         (remote_insert_hw_breakpoint): Likewise.
8589         (remote_remove_hw_breakpoint): Likewise.
8590         (remote_download_command_source): Likewise.
8591         (remote_download_tracepoint): Likewise.
8592         (remote_download_trace_state_variable): Likewise.
8593         (remote_disable_tracepoint): Likewise.
8594         (remote_trace_set_readonly_regions): Likewise.
8595         (remote_get_tracepoint_status): Likewise.
8596         (remote_trace_find): Likewise.
8597         (remote_get_trace_state_variable_value): Likewise.
8598         (remote_set_disconnected_tracing): Likewise.
8599         (remote_set_circular_trace_buffer): Likewise.
8600         (remote_get_min_fast_tracepoint_insn_len): Likewise.
8601         (remote_use_agent): Likewise.
8602         (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8603         Update callers.
8604
8605 2012-03-07  Pedro Alves  <palves@redhat.com>
8606
8607         * NEWS: Mention QProgramSignals.
8608         * inferior.h (update_signals_program_target): Declare.
8609         * infrun.c: (update_signals_program_target): New.
8610         (handle_command): Update the target of the new program signals
8611         array changes.
8612         * remote.c (PACKET_QProgramSignals): New enum.
8613         (last_program_signals_packet): New global.
8614         (remote_program_signals): New.
8615         (remote_start_remote): Update the target with the program signals
8616         list.
8617         (remote_protocol_features): Add entry for QPassSignals.
8618         (remote_open_1): Free anc clear last_program_signals_packet.
8619         (init_remote_ops): Install remote_program_signals.
8620         * target.c (update_current_target): Adjust.
8621         (target_program_signals): New.
8622         * target.h (struct target_ops) <to_program_signals>: New field.
8623         (target_program_signals): Declare.
8624
8625 2012-03-07  Pedro Alves  <palves@redhat.com>
8626
8627         * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8628         extensions.
8629
8630 2012-03-07  Andreas Schwab  <schwab@linux-m68k.org>
8631
8632         * m68klinux-nat.c (getregs_supplies): Make static.
8633         (getfpregs_supplies): Likewise.
8634         (have_ptrace_getregs): Likewise.
8635
8636 2012-03-06  Joel Brobecker  <brobecker@adacore.com>
8637
8638         * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8639         in call to get_die_type_at_offset.
8640
8641 2012-03-06  Stan Shebs  <stan@codesourcery.com>
8642
8643         * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8644         * mi/mi-cmd-disas.c: Ditto.
8645         * mi/mi-cmd-env.c: Ditto.
8646         * mi/mi-cmd-file.c: Ditto.
8647         * mi/mi-cmd-stack.c: Ditto.
8648         * mi/mi-cmd-target.c: Ditto.
8649         * mi/mi-cmd-var.c: Ditto.
8650         * mi/mi-cmds.c: Ditto.
8651         * mi/mi-cmds.h: Ditto.
8652         * mi/mi-console.c: Ditto.
8653         * mi/mi-getopt.c: Ditto.
8654         * mi/mi-getopt.h: Ditto.
8655         * mi/mi-interp.c: Ditto.
8656         * mi/mi-main.c: Ditto.
8657         * mi/mi-out.c: Ditto.
8658         * mi/mi-parse.c: Ditto.
8659         * mi/mi-parse.h: Ditto.
8660         * mi/mi-symbol-cmds.c: Ditto.
8661
8662         * mi/mi-getopt.h: Move mi_opt struct up.
8663         * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8664         return.
8665         * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8666
8667 2012-03-06  Tom Tromey  <tromey@redhat.com>
8668
8669         * proc-service.c (ps_pglobal_lookup): Set the current program
8670         space.
8671
8672 2012-03-06  Pedro Alves  <palves@redhat.com>
8673
8674         * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8675
8676 2012-03-05  Joel Brobecker  <brobecker@adacore.com>
8677
8678         * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8679
8680 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8681
8682         Code cleanup.
8683         * common/linux-osdata.c (linux_common_core_of_thread): New function
8684         comment.
8685         * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8686         call by linux_common_core_of_thread.
8687         (linux_nat_core_of_thread_1): Remove.
8688         * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8689         * linux-thread-db.c: Include linux-osdata.h.
8690         (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8691         linux_common_core_of_thread.
8692
8693 2012-03-05  Tom Tromey  <tromey@redhat.com>
8694
8695         * value.c (value_primitive_field): Don't fetch contents for
8696         non-virtual bases.
8697
8698 2012-03-05  Tom Tromey  <tromey@redhat.com>
8699
8700         * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8701
8702 2012-03-05  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8703
8704         * s390-nat.c: Include "gregset.h".
8705
8706 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8707
8708         * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8709         [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8710         (libunwind_load): New variable so_error, use it for dlerror.  Try to
8711         load also LIBUNWIND_SO_7.
8712
8713 2012-03-05  Pedro Alves  <palves@redhat.com>
8714
8715         * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8716         is not NULL, and remove resulting dead code.
8717
8718 2012-03-05  Thomas Schwinge  <thomas@codesourcery.com>
8719
8720         * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8721         prologue to sh_analyze_prologue.
8722         (sh_analyze_prologue): Make better use of such an upper limit, and
8723         generally be more cautious about accessing memory.
8724
8725 2012-03-05  Tom Tromey  <tromey@redhat.com>
8726
8727         * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8728         _initialize_ia64_hpux_tdep.
8729
8730 2012-03-05  Pedro Alves  <palves@redhat.com>
8731
8732         PR gdb/13766
8733
8734         * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8735         the register state is clear, supply explicit zero, instead of
8736         marking the register unavailable.
8737
8738 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8739
8740         * NEWS: Mention OpenVMS ia64 new target.
8741
8742 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8743
8744         * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8745         (ia64_unw_accessors, ia64_unw_rse_accessors)
8746         (ia64_libunwind_descr): Declare.
8747         * ia64-vms-tdep.c: New file.
8748         * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8749         (ia64_libunwind_descr): Make them public.
8750         * configure.tgt: Add ia64-*-*vms*.
8751         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8752         (ALLDEPFILES): Add ia64-vms-tdep.c
8753
8754 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8755
8756         * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8757         * remote.c (PACKET_qXfer_uib): New enum value.
8758         (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8759         (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8760         (_initialize_remote): Call add_packet_config_cmd for
8761         xfer:uib packet.
8762
8763 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8764
8765         * osabi.c (gdb_osabi_names): Add OpenVMS.
8766         (generic_elf_osabi_sniffer): Likewise.
8767         * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8768
8769 2012-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
8770
8771         Removed unused code.
8772         * libunwind-frame.c (libunwind_frame_unwind)
8773         (libunwind_frame_base_address): Remove.
8774         * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8775
8776 2012-03-04  Yao Qi  <yao@codesourcery.com>
8777
8778         * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8779         remove trailing new line.
8780         (agent_run_command, agent_run_command): Add _ markup.
8781         (agent_capability_check): Likewise.
8782
8783 2012-03-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
8784
8785         * breakpoint.c (set_condition_evaluation_mode): Set
8786         CONDITION_EVALUATION_MODE unconditionally.
8787
8788 2012-03-03  Yao Qi  <yao@codesourcery.com>
8789
8790         * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8791         * common/agent.h: Update declaration.
8792         * inf-child.c (inf_child_use_agent): New.
8793         (inf_child_can_use_agent): New.
8794         (inf_child_target): Initialize fields `to_use_agent'
8795         and `to_can_use_agent'.
8796         * agent.c (agent_new_objfile): New.
8797         (_initialize_agent): Add agent_new_objfile to new_objfile
8798         observer.
8799
8800         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8801         New.
8802         (linux_target_install_ops): Initialize field
8803         `to_static_tracepoint_markers_by_strid'.
8804         * remote.c (free_current_marker): Move it to ...
8805         * tracepoint.c (free_current_marker): ... here.  New.
8806         (cleanup_target_stop): New.
8807         * tracepoint.h: Declare free_current_marker.
8808         * NEWS: Add one entry about `info static-tracepoint-marker'.
8809
8810 2012-03-03  Yao Qi  <yao@codesourcery.com>
8811
8812         * common/agent.c (agent_loaded_p): New.
8813         (agent_look_up_symbols): New global.
8814         * common/agent.h: Declare agent_loaded_p.
8815
8816 2012-03-03  Yao Qi  <yao@codesourcery.com>
8817
8818         * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8819         (agent_capability_check, agent_capability_invalidate): New.
8820         (symbol_list): New array element.
8821         * common/agent.h (enum agent_capa): New.
8822         * target.c (target_pre_inferior): Call agent_capability_invalidate.
8823
8824 2012-03-03  Yao Qi  <yao@codesourcery.com>
8825
8826         * target.h (struct target_ops) <to_use_agent>: New field.
8827         (struct target_ops) <to_can_use_agent>: New field.
8828         (target_use_agent, target_can_use_agent): New macro.
8829         * target.c (update_current_target): Update.
8830         * remote.c: New enum `PACKET_QAgent'.
8831         (remote_protocol_features): Add a new element.
8832         (remote_use_agent, remote_can_use_agent): New.
8833         (init_remote_ops): Initialize field `can_use_agent' with
8834         remote_can_use_agent.  Intiailize field `use_agent' with
8835         remote_use_agent.
8836         * common/agent.c (use_agent): New global.
8837         * common/agent.h: Declare it.
8838         * tracepoint.c (info_static_tracepoint_markers_command): Add
8839         comment.
8840         * Makefile.in (SFILES): Add common/agent.c and agent.c.
8841         (COMMON_OBS): Add common/agent.o and agent.o
8842         (common-agent.o): New rule.
8843         * agent.c: New.
8844
8845 2012-03-03  Yao Qi  <yao@codesourcery.com>
8846
8847         * common/agent.c: New.
8848         * common/agent.h: New.
8849         * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8850         AC_CHECK_HEADERS.
8851         * configure, configh.in: Regenerated.
8852
8853 2012-03-02  Kevin Buettner  <kevinb@redhat.com>
8854
8855         * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8856         unless it exists for this architecture.
8857
8858 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
8859
8860         * language.h (struct language_defn): New "method" la_read_var_value.
8861         * findvar.c: #include "language.h".
8862         (default_read_var_value): Renames read_var_value.  Rewrite
8863         function description.
8864         (read_var_value): New function.
8865         * value.h (default_read_var_value): Add prototype.
8866         * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8867         New functions.
8868         (ada_language_defn): Add entry for la_read_var_value.
8869         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8870         * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8871         language_defn structures to add entry for new la_read_var_value
8872         field.
8873
8874 2012-03-02  Tom Tromey  <tromey@redhat.com>
8875             Pedro Alves  <palves@redhat.com>
8876
8877         PR breakpoints/13776:
8878         * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8879         breakpoints.
8880         (delete_longjmp_breakpoint_at_next_stop): New.
8881         * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8882         * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8883         before deleting the inferior.  Add comments.
8884         * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8885         breakpoints immediately, but only on next stop.  Move that code
8886         next to where we mark other breakpoints for deletion.
8887
8888 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
8889
8890         * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8891         marker.
8892         * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8893         violation.
8894
8895 2012-03-02  Pedro Alves  <palves@redhat.com>
8896
8897         * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8898
8899 2012-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
8900
8901         Fix -Wmissing-prototypes build.
8902         * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8903         * remote-sim.c (gdbsim_has_all_memory): Likewise.
8904         (gdbsim_has_memory): Likewise.
8905
8906 2012-03-02  Yao Qi  <yao@codesourcery.com>
8907
8908         Fix -Wmissing-prototypes build.
8909         * charset.c (phony_iconv_open): Make static.
8910         (phony_iconv_close, phony_iconv): Likewise.
8911         * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8912         * i386-windows-nat.c (_initialize_i386_windows_nat): New
8913         prototype.
8914         * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8915         * ser-mingw.c (create_select_thread): Make static.
8916         * windows-termcap.c (tgetent): New prototype.
8917         (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8918
8919 2012-03-02  Zhang Yuanhui  <asmwarrior@gmail.com>
8920
8921         Fix -Wmissing-prototypes build.
8922         * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8923         (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8924         (_initialize_loadable): New prototypes.
8925
8926 2012-03-02  Doug Evans  <dje@google.com>
8927
8928         * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8929         abbrev table, read_comp_unit will do it.
8930
8931 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8932
8933         Fix -Wmissing-prototypes build.
8934         * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8935         * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8936         * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8937         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8938         (_initialize_arm_symbian_tdep): New prototype.
8939         * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8940         * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8941         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8942         static.
8943         * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8944         * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8945         prototype.
8946         * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8947         (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8948         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8949         static.
8950         * moxie-tdep.c (moxie_process_record): Likewise.
8951         * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8952         (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8953         * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8954         (_initialize_rl78_tdep): New prototype.
8955         * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8956         (_initialize_rx_tdep): New prototype.
8957         * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8958         (_initialize_darwin_solib): New prototype.
8959         * solib-spu.c: Include solib-spu.h.
8960         (_initialize_spu_solib): New prototype.
8961         * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8962         * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8963         (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8964         (tic6x_software_single_step): Make it static.
8965         (_initialize_tic6x_tdep): New prototype.
8966
8967 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8968
8969         Fix -Wmissing-prototypes build.
8970         * cris-tdep.c (cris_can_use_hardware_watchpoint)
8971         (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8972
8973 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8974
8975         Fix -Wmissing-prototypes build.
8976         * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8977         (frv_have_stopped_data_address): Remove.
8978
8979 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8980
8981         Fix -Wmissing-prototypes build.
8982         * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8983         * sh-tdep.c: Include sh64-tdep.h.
8984         * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8985         * sh64-tdep.c: Include sh64-tdep.h.
8986         * sh64-tdep.h: New file.
8987
8988 2012-03-01  Maciej W. Rozycki <macro@codesourcery.com>
8989
8990         * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8991
8992 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
8993
8994         * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8995         sp_regnum once the gdbarch_init_osabi hook has been called.
8996
8997 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
8998
8999         * mips-tdep.c (mips32_bc1_pc): New function.
9000         (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9001         BPOSGE32 and BPOSGE64 instructions.
9002         (deal_with_atomic_sequence): Likewise.
9003         (mips32_instruction_has_delay_slot): Likewise.
9004
9005 2012-03-01  Maciej W. Rozycki  <macro@mips.com>
9006             Chris Dearman  <chris@mips.com>
9007             Maciej W. Rozycki  <macro@codesourcery.com>
9008             Joseph Myers  <joseph@codesourcery.com>
9009
9010         * features/mips-dsp.xml: New file.
9011         * features/mips64-dsp.xml: New file.
9012         * features/mips-dsp-linux.xml: New file.
9013         * features/mips64-dsp-linux.xml: New file.
9014         * features/Makefile (WHICH): Add mips-dsp-linux and
9015         mips64-dsp-linux.
9016         (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9017         * features/mips-dsp-linux.c: New file.
9018         * features/mips64-dsp-linux.c: New file.
9019         * regformats/mips-dsp-linux.dat: New file.
9020         * regformats/mips64-dsp-linux.dat: New file.
9021         * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9022         registers.
9023         (mips64_linux_register_addr): Likewise.
9024         (mips64_linux_regsets_fetch_registers): Likewise.
9025         (mips64_linux_regsets_store_registers): Likewise.
9026         (mips64_linux_fetch_registers): Update call to
9027         mips64_linux_regsets_fetch_registers.
9028         (mips64_linux_store_registers): Update call to
9029         mips64_linux_regsets_store_registers.
9030         (mips_linux_read_description): Probe for DSP registers.
9031         (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9032         and initialize_tdesc_mips64_dsp_linux.
9033         * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9034         Remove padding of no longer used embedded register slots.
9035         * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9036         (MIPS_RESTART_REGNUM): Redefine enum value.
9037         * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9038         strings.
9039         (mips_tx39_reg_names): Likewise.
9040         (mips_linux_reg_names): New array of register names for Linux
9041         targets.
9042         (mips_register_name): Check for a null pointer in
9043         mips_processor_reg_names and return an empty string.
9044         (mips_register_type): Exclude embedded registers for the IRIX
9045         and Linux ABIs.
9046         (mips_pseudo_register_type): Likewise.  Use dynamic numbers to
9047         refer to FP registers, LO, HI, BadVAddr, Cause and PC.  Handle
9048         DSP registers.
9049         (mips_stab_reg_to_regnum): Handle DSP accumulators.
9050         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9051         (mips_gdbarch_init): Likewise.  Initialize internal register
9052         indices for the Linux ABI.  Use dynamic numbers to refer to
9053         registers, as applicable, while parsing the target description.
9054         * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9055
9056 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9057
9058         * frame.h (read_frame_register_unsigned): Fix typo in function
9059         description.
9060
9061 2012-03-01  Pedro Alves  <palves@redhat.com>
9062
9063         * jit-reader.in [!__cplusplus]
9064         (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9065
9066 2012-03-01  Pedro Alves  <palves@redhat.com>
9067
9068         * configure.ac (build_warnings): Add -Wmissing-prototypes.
9069         * configure: Regenerate.
9070
9071 2012-03-01  Pedro Alves  <palves@redhat.com>
9072
9073         * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9074         * breakpoint.c (create_exception_master_breakpoint, trace_command)
9075         (ftrace_command, strace_command): Make static.
9076         * d-lang.c (_initialize_d_language): Declare.
9077         * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9078         * dwarf2loc.c (_initialize_dwarf2loc):
9079         * dwarf2read.c (process_psymtab_comp_unit): Make static.
9080         * exec.c (exec_get_section_table): Make static.
9081         * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9082         * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9083         * inferior.c (remove_inferior_command, add_inferior_command)
9084         (clone_inferior_command): Make static.
9085         * linux-nat.c (linux_nat_thread_address_space)
9086         (linux_nat_core_of_thread): Make static.
9087         * linux-tdep.c (_initialize_linux_tdep): Declare.
9088         * objc-lang.c (_initialize_objc_lang): Declare.
9089         * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9090         Make static.
9091         (_initialize_opencl_language): Declare.
9092         * record.c (_initialize_record): Declare.
9093         * remote.c (demand_private_info, remote_get_tib_address)
9094         (remote_supports_cond_tracepoints)
9095         (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9096         Make static.
9097         * skip.c (_initialize_step_skip): Declare.
9098         * symtab.c (skip_prologue_using_lineinfo): Make static.
9099         * tracepoint.c (delete_trace_state_variable)
9100         (trace_variable_command, delete_trace_variable_command)
9101         (get_uploaded_tsv, find_matching_tracepoint_location)
9102         (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9103         Make static.
9104         * value.c (pack_unsigned_long): Make static.
9105         * varobj.c (varobj_ensure_python_env): Make static.
9106         * windows-tdep.c (_initialize_windows_tdep): Declare.
9107         * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9108
9109 2012-03-01  Pedro Alves  <palves@redhat.com>
9110
9111         * linux-tdep.c (linux_has_shared_address_space): Make static.  Add
9112         gdbarch parameter.
9113         (linux_init_abi): Install it as has_shared_address_space gdbarch
9114         callback.
9115
9116 2012-03-01  Pedro Alves  <palves@redhat.com>
9117
9118         * observer.c (observer_test_first_notification_function)
9119         (observer_test_second_notification_function)
9120         (observer_test_third_notification_function): Add declarations.
9121
9122 2012-03-01  Pedro Alves  <palves@redhat.com>
9123
9124         * common/signals.c (default_target_signal_to_host)
9125         (default_target_signal_from_host): Move ...
9126         * arch-utils.c: ... here.
9127         * arch-utils.h (default_target_signal_to_host)
9128         (default_target_signal_from_host): Declare.
9129
9130         * common/signals.c (target_signal_from_command): Move ...
9131         * infrun.c: ... here.
9132         * inferior.h (target_signal_from_command): Declare.
9133         * target.h (target_signal_from_command)
9134         (default_target_signal_from_host, default_target_signal_to_host):
9135         Delete declarations.
9136
9137         * common/signals.c (_initialize_signals): Delete.
9138
9139 2012-03-01  Pedro Alves  <palves@redhat.com>
9140
9141         * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9142         both __cplusplus and !__cplusplus.
9143
9144 2012-03-01  Pedro Alves  <palves@redhat.com>
9145
9146         * psymtab.c (find_and_open_source): Delete declaration.
9147         * source.c (find_and_open_source): Move comment ...
9148         * source.h (find_and_open_source): ... to this new declaration.
9149
9150 2012-03-01  Pedro Alves  <palves@redhat.com>
9151
9152         * inline-frame.c: Include inline-frame.h.
9153
9154 2012-03-01  Pedro Alves  <palves@redhat.com>
9155
9156         * tui/tui-data.c (set_gen_win_origin): Delete.
9157         * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9158         * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9159
9160 2012-03-01  Pedro Alves  <palves@redhat.com>
9161
9162         * remote.c (encode_actions): Delete declaration.
9163         * tracepoint.c (encode_actions): Make extern.
9164         * tracepoint.h (encode_actions): Declare.
9165
9166 2012-03-01  Pedro Alves  <palves@redhat.com>
9167
9168         * python/py-breakpoint.c: Include python.h.
9169         * python/py-continueevent.c (create_continue_event_object): Make
9170         static.
9171         * python/py-lazy-string.c (stpy_get_type): Make static.
9172         * python/py-newobjfileevent.c (create_new_objfile_event_object):
9173         Make static.
9174         * python/py-utils.c (unicode_to_target_python_string): Make
9175         static.
9176         * python/py-value.c: Include python.h.
9177
9178 2012-03-01  Pedro Alves  <palves@redhat.com>
9179
9180         * inferior.c (delete_threads_of_inferior): Delete.
9181
9182 2012-03-01  Pedro Alves  <palves@redhat.com>
9183
9184         Import fallback definitions from glibc.
9185
9186         * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9187         ps_prochandle): Forward declare.
9188         (ps_err_e): Use glibc's comments.
9189         [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9190         (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9191         (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9192         (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9193         (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9194         (struct ps_prochandle): Adjust comment.
9195
9196 2012-03-01  Pedro Alves  <palves@redhat.com>
9197
9198         * ada-lang.c (ada_modulus_from_name): Delete.
9199         * ada-lex.l (lexer_init): Make static.
9200
9201 2012-03-01  Pedro Alves  <palves@redhat.com>
9202
9203         PR gdb/13767
9204
9205         * frame.c (read_frame_register_unsigned): New.
9206         * frame.h (read_frame_register_unsigned): Declare.
9207         * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9208         Handle it.
9209         (print_i387_control_word): New parameter `control_p'.  Handle it.
9210         (i387_print_float_info): Handle unavailable float registers.
9211
9212 2012-03-01  Keith Seitz  <keiths@redhat.com>
9213
9214         * linespec.c (decode_line_2): Sort the list of methods
9215         alphabetically before presenting the user with a selection
9216         menu.
9217
9218 2012-03-01  Doug Evans  <dje@google.com>
9219
9220         * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9221         has_namespace_info.
9222         (dwarf2_read_abbrevs): Remove corresponding initialization.
9223
9224 2012-03-01  Scott J. Goldman <scottjg@vmware.com>
9225
9226         * NEWS: Mention new python command class gdb.COMMAND_USER.
9227         * cli/cli-cmds.c (show_user): Print error when used on a python
9228         command.
9229         (init_cli_cmds): Update documentation strings for "show user" and
9230         "set/show max-user-call-depth" to clarify that it does not apply to
9231         python commands.
9232         * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9233         error check.
9234         (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9235         gdb python api.
9236         * top.c (execute_command): Only execute a user-defined command as a
9237         legacy macro if c->user_commands is set.
9238
9239 2012-03-01  Tom Tromey  <tromey@redhat.com>
9240
9241         * valprint.h (struct generic_val_print_decorations): New.
9242         (generic_val_print): Declare.
9243         * valprint.c (generic_val_print): New function.
9244         * p-valprint.c (p_decorations): New global.
9245         (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9246         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9247         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9248         TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9249         * m2-valprint.c (m2_decorations): New global.
9250         (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9251         TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9252         TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9253         TYPE_CODE_ERROR>: Call generic_val_print.
9254         * f-valprint.c (f_decorations): New global.
9255         (f_val_print): Use print_function_pointer_address.
9256         <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9257         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9258         TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9259         generic_val_print.
9260         * c-valprint.c (c_decorations): New global.
9261         (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9262         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9263         TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9264         TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9265         TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9266         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9267         case.
9268
9269 2012-03-01  Tom Tromey  <tromey@redhat.com>
9270
9271         * valprint.c (val_print): Update.
9272         * p-valprint (pascal_val_print): Return void.
9273         * p-lang.h (pascal_val_print): Return void.
9274         * m2-valprint.c (m2_val_print): Return void.
9275         * m2-lang.h (m2_val_print): Return void.
9276         * language.h (struct language_defn) <la_val_print>: Return void.
9277         * language.c (unk_lang_val_print): Return void.
9278         * jv-valprint.c (java_val_print): Return void.
9279         * jv-lang.h (java_val_print): Return void.
9280         * f-valprint.c (f_val_print): Return void.
9281         * f-lang.h (f_val_print): Return void.
9282         * d-valprint.c (d_val_print): Return void.
9283         (dynamic_array_type): Update.
9284         * d-lang.h (d_val_print): Return void.
9285         * c-valprint.c (c_val_print): Return void.
9286         * c-lang.h (c_val_print): Return void.
9287         * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9288         void.
9289         * ada-lang.h (ada_val_print): Return void.
9290
9291 2012-03-01  Tom Tromey  <tromey@redhat.com>
9292
9293         * value.h (val_print): Return void.
9294         * valprint.c (val_print): Return void.
9295
9296 2012-03-01  Tom Tromey  <tromey@redhat.com>
9297
9298         * value.h (common_val_print): Return void.
9299         * valprint.c (common_val_print): Return void.
9300
9301 2012-03-01  Tom Tromey  <tromey@redhat.com>
9302
9303         * value.h (value_print): Return void.
9304         * valprint.c (value_print): Return void.
9305         * p-valprint.c (pascal_value_print): Return void.
9306         * p-lang.h (pascal_value_print): Return void.
9307         * language.h (struct language_defn) <la_value_print>: Return
9308         void.
9309         * language.c (unk_lang_value_print): Return void.
9310         * jv-valprint.c (java_value_print): Return void.
9311         * jv-lang.h (java_value_print): Return void.
9312         * f-valprint.c (c_value_print): Don't declare.
9313         Include c-lang.h.
9314         * c-valprint.c (c_value_print): Return void.
9315         * c-lang.h (c_value_print): Return void.
9316         * ada-valprint.c (ada_value_print): Return void.
9317         * ada-lang.h (ada_value_print): Return void.
9318
9319 2012-03-01  Tom Tromey  <tromey@redhat.com>
9320
9321         * value.c (value_primitive_field): Handle virtual base classes.
9322
9323 2012-03-01  Tom Tromey  <tromey@redhat.com>
9324
9325         * gdbtypes.h (struct vbase): Remove.
9326
9327 2012-03-01  Tom Tromey  <tromey@redhat.com>
9328
9329         * c-valprint.c (print_function_pointer_address): Move...
9330         * valprint.c: ... here.  Make non-static.
9331         * m2-valprint.c (print_function_pointer_address): Remove.
9332         * valprint.h (print_function_pointer_address): Declare.
9333
9334 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9335
9336         * NEWS: Document the fact that one can provide a condition when
9337         creating an Ada exception catchpoint.
9338
9339 2012-03-01  Tom Tromey  <tromey@redhat.com>
9340
9341         * valprint.c (val_print_type_code_flags): Fix placement of
9342         trailing brace.
9343
9344 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9345
9346         * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9347         (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9348         environment variable before calling update-copyright.
9349
9350 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9351
9352         * gnulib/extra/update-copyright: Update to the latest from
9353         gnulib's git repository.
9354         * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9355         variable to 2 instead of 1.
9356
9357 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9358
9359         * varobj.c (c_value_of_variable): Remove dead code.
9360
9361 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9362
9363         * ada-lex.p (processId): Do not modify already encoded IDs.
9364         Update function documentation.
9365
9366 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9367
9368         * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9369         "name" with "struct symbol *name_sym".
9370         * ada-exp.y (write_var_or_type): Update call to
9371         ada_find_renaming_symbol.
9372         "name" with "struct symbol *name_sym". Adjust Implementation
9373         accordingly.  Adjust the function documentation.
9374
9375 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9376
9377         * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9378         * ada-lang.c (ada_find_any_type): Add advance declaration.
9379         Make static.  Replace ada_find_any_symbol by
9380         ada_find_any_type_symbol.
9381         (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9382         Improve function description.  Make static.
9383         (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9384         Replace ada_find_any_symbol by ada_find_any_type_symbol.
9385
9386 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9387
9388         * ada-lang.c (struct tag_args): Delete.
9389         (ada_get_tsd_type): Function body moved up in source file.
9390         (ada_tag_name_1, ada_tag_name_2): Delete.
9391         (ada_get_tsd_from_tag): New function.
9392         (ada_tag_name_from_tsd): New function.
9393         (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9394         to determine the tag name.
9395
9396 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9397
9398         * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9399         declaration.
9400         * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9401         function.
9402
9403 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9404
9405         * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9406
9407 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9408
9409         * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9410         full searches.
9411
9412 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9413
9414         * ada-lang.c (constrained_packed_array_type): If there is a
9415         parallel XA type, use it to determine the array index type.
9416
9417 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9418
9419         * ada-valprint.c (ada_val_print_1): If our value is a reference
9420         to an array descriptor, dereference it before converting it
9421         to a simple array.
9422
9423 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9424
9425         * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9426         creating fixed value.
9427         (ada_value_ind, ada_coerce_ref, assign_component)
9428         (ada_evaluate_subexp): Remove call to unwrap_value before
9429         call to ada_to_fixed_value.
9430
9431 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9432
9433         * ada-lang.c (to_fixed_array_type): Set result's type name.
9434
9435 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9436
9437         * ada-lang.c (catch_ada_exception_command_split): Add new
9438         argument cond_string.  Add support for condition at end of
9439         "catch exception" commands.
9440         (ada_decode_exception_location): Add new argument cond_string.
9441         Update call to catch_ada_exception_command_split.
9442         (create_ada_exception_catchpoint): Add new argument cond_string.
9443         Set the breakpoint condition if needed.
9444         (catch_ada_exception_command): Update call to
9445         ada_decode_exception_location.
9446         (ada_decode_assert_location): Add function documentation.
9447         Add support for condition at end of "catch assert" command.
9448         (catch_assert_command): Update calls to ada_decode_assert_location
9449         and create_ada_exception_catchpoint.
9450
9451 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9452
9453         Fix disp-step-syscall.exp: fork: single step over fork.
9454         * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9455         (i386_linux_get_syscall_number_from_regcache): ... here, new function
9456         comment, change parameters gdbarch and ptid to regcache.  Remove
9457         parameter regcache, initialize gdbarch from regcache here.
9458         (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9459         New functions.
9460         (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9461         instead.
9462         * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9463         'syscall'.  Make the 'int' check more strict.
9464
9465 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9466
9467         Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9468         * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9469         (i386_linux_intx80_sysenter_syscall_record): ... here.
9470         (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9471         Use the renamed function name.
9472
9473 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9474
9475         * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9476         * breakpoint.c (until_break_command): Likewise.
9477         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9478         * infcall.c (call_function_by_hand): Likewise.
9479         * infcmd.c (finish_forward): Likewise.
9480         * infrun.c (insert_exception_resume_breakpoint): Likewise.
9481
9482 2012-02-28  Tristan Gingold  <gingold@adacore.com>
9483
9484         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9485         avoid variable assignments inside condition.
9486
9487 2012-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9488
9489         Fix static analysis issue found by cppcheck.
9490         * microblaze-tdep.c (microblaze_extract_return_value): Fix
9491         uninitialized BUF for size 2.
9492
9493 2012-02-27  Chris Dearman  <chris@mips.com>
9494             Nathan Froyd  <froydnj@codesourcery.com>
9495             Maciej W. Rozycki  <macro@codesourcery.com>
9496
9497         * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9498         (mips16_instruction_has_delay_slot): Likewise.
9499         (mips_segment_boundary): Likewise.
9500         (mips_adjust_breakpoint_address): Likewise.
9501         (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9502
9503 2012-02-27  Maciej W. Rozycki  <macro@mips.com>
9504             Maciej W. Rozycki  <macro@codesourcery.com>
9505
9506         * infrun.c (handle_inferior_event): Don't proceed through
9507         shared library trampolines if stepping at the machine
9508         instruction level.
9509
9510 2012-02-27  Maciej W. Rozycki  <macro@codesourcery.com>
9511
9512         * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9513         too.
9514
9515 2012-02-27  Thomas Schwinge  <thomas@codesourcery.com>
9516
9517         * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9518         (sh_stub_unwind_sniffer): New functions.
9519         (sh_stub_unwind): New variable.
9520         (sh_gdbarch_init): Wire everything.
9521
9522 2012-02-27  Pedro Alves  <palves@redhat.com>
9523
9524         * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9525         (linux_nat_post_attach_wait): Adjust to use
9526         linux_proc_pid_is_stopped.
9527         * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9528         * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9529         based on pid_is_stopped from both linux-nat.c and
9530         gdbserver/linux-low.c, and renamed.
9531
9532 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
9533
9534         * remote.c (remote_watchpoint_addr_within_range): New function.
9535         (init_remote_ops): Use it.
9536
9537 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
9538
9539         * target.h (target_watchpoint_addr_within_range): Document macro.
9540
9541 2012-02-24  Pedro Alves  <palves@redhat.com>
9542
9543         * stack.c (set_last_displayed_sal): Issue internal_error instead
9544         of warning, and issue it after clearing the last displayed sal.
9545
9546 2012-02-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
9547             Pedro Alves  <palves@redhat.com>
9548
9549         * breakpoint.c (until_break_command): Install breakpoints after
9550         all frame manipulations.
9551
9552 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9553
9554         * remote.c (remote_supports_cond_breakpoints): New forward
9555         declaration.
9556         (remote_add_target_side_condition): New function.
9557         (remote_insert_breakpoint): Add target-side breakpoint
9558         conditional if supported.
9559         (remote_insert_hw_breakpoint): Likewise.
9560         (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9561         hook.
9562
9563         * target.c (update_current_target): Inherit
9564         to_supports_evaluation_of_breakpoint_conditions.
9565         Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9566
9567         * target.h (struct target_ops)
9568         <to_supports_evaluation_of_breakpoint_conditions>: New field.
9569         (target_supports_evaluation_of_breakpoint_conditions): New #define.
9570
9571         * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9572         (condition_evaluation_both, condition_evaluation_auto,
9573         condition_evaluation_host, condition_evaluation_target,
9574         condition_evaluation_enums, condition_evaluation_mode_1,
9575         condition_evaluation_mode): New static globals.
9576         (translate_condition_evaluation_mode): New function.
9577         (breakpoint_condition_evaluation_mode): New function.
9578         (gdb_evaluates_breakpoint_condition_p): New function.
9579         (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9580         (mark_breakpoint_modified): New function.
9581         (mark_breakpoint_location_modified): New function.
9582         (set_condition_evaluation_mode): New function.
9583         (show_condition_evaluation_mode): New function.
9584         (bp_location_compare_addrs): New function.
9585         (get_first_location_gte_addr): New helper function.
9586         (set_breakpoint_condition): Free condition bytecode if locations
9587         has become unconditional.  Call mark_breakpoint_modified (...).
9588         (condition_command): Call update_global_location_list (1) for
9589         breakpoints.
9590         (breakpoint_xfer_memory): Use is_breakpoint (...).
9591         (is_breakpoint): New function.
9592         (parse_cond_to_aexpr): New function.
9593         (build_target_condition_list): New function.
9594         (insert_bp_location): Handle target-side conditional
9595         breakpoints and call build_target_condition_list (...).
9596         (update_inserted_breakpoint_locations): New function.
9597         (insert_breakpoint_locations): Handle target-side conditional
9598         breakpoints.
9599         (bpstat_check_breakpoint_conditions): Add comment.
9600         (bp_condition_evaluator): New function.
9601         (bp_location_condition_evaluator): New function.
9602         (print_breakpoint_location): Print information on where the condition
9603         will be evaluated.
9604         (print_one_breakpoint_location): Likewise.
9605         (init_bp_location): Call mark_breakpoint_location_modified (...) for
9606         breakpoint location.
9607         (force_breakpoint_reinsertion): New functions.
9608         (update_global_location_list): Handle target-side breakpoint
9609         conditions.
9610         Reinsert locations that are already inserted if conditions have
9611         changed.
9612         (bp_location_dtor): Free agent expression bytecode.
9613         (disable_breakpoint): Call mark_breakpoint_modified (...).
9614         Call update_global_location_list (...) with parameter 1 for breakpoints.
9615         (disable_command): Call mark_breakpoint_location_modified (...).
9616         Call update_global_location_list (...) with parameter 1 for breakpoints.
9617         (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9618         (enable_command): mark_breakpoint_location_modified (...).
9619         (_initialize_breakpoint): Update documentation and add
9620         condition-evaluation breakpoint subcommand.
9621
9622         * breakpoint.h: Include ax.h.
9623         (condition_list): New data structure.
9624         (condition_status): New enum.
9625         (bp_target_info) <cond_list>: New field.
9626         (bp_location) <condition_changed, cond_bytecode>: New fields.
9627         (is_breakpoint): New prototype.
9628
9629 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9630
9631         * remote.c (remote_state) <cond_breakpoints>: New field.
9632         (PACKET_ConditionalBreakpoints): New enum.
9633         (remote_cond_breakpoint_feature): New function.
9634         (remote_protocol_features): Add new ConditionalBreakpoints entry.
9635         (remote_supports_cond_breakpoints): New function.
9636         (_initialize_remote): Add new packet configuration for
9637         target-side conditional breakpoints.
9638
9639 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9640
9641         * NEWS: Mention target-side conditional breakpoint support,
9642         new condition-evaluation breakpoint subcommand and remote
9643         packet extensions.
9644
9645 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9646
9647         * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9648         number.
9649
9650 2012-02-24  Thomas Schwinge  <thomas@codesourcery.com>
9651
9652         * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9653         (after_prologue): Remove.
9654
9655 2012-02-23  Tom Tromey  <tromey@redhat.com>
9656
9657         * jv-valprint.c (java_val_print): Remove dead code.
9658
9659 2012-02-23  Tristan Gingold  <gingold@adacore.com>
9660
9661         * ada-tasks.c (struct ada_tasks_inferior_data): Add
9662         known_tasks_element and known_tasks_length fields.
9663         (read_known_tasks_array): Change argument type.  Use pointer type
9664         and number of elements from DATA.  Adjust.
9665         (read_known_tasks_list): Likewise.
9666         (get_known_tasks_addr): Remove.
9667         (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9668         (ada_tasks_inferior_data_sniffer): ... this.  Use symtab for element
9669         type and array length.  Merge former get_known_tasks_addr code.
9670
9671 2012-02-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
9672
9673         PR backtrace/13716
9674         * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9675         it after set_momentary_breakpoint.
9676
9677 2012-02-22  Sterling Augustine  <saugustine@google.com>
9678
9679         PR 13689:
9680         * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9681
9682 2012-02-22  Gary Benson  <gbenson@redhat.com>
9683
9684         * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9685         (find_slot_in_mapped_hash): Likewise.
9686
9687 2012-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
9688
9689         PR build/13638
9690         * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9691         (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9692         * configure: Regenerate.
9693
9694 2012-02-21  Tristan Gingold  <gingold@adacore.com>
9695             Pedro Alves  <palves@redhat.com>
9696
9697         * ia64-tdep.c: Do not include libunwind-ia64.h.
9698         * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9699         Include libunwind-ia64.h instead of libunwind.h.
9700         * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9701         for libunwind.h existence.
9702         * configure, config.in: Regenerate.
9703
9704 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
9705
9706         * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9707         instead of value_rtti_target_type.
9708         * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9709         instead of value_rtti_target_type.
9710         * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9711         value_rtti_target_type.
9712         * valops.c (value_ind): Extract function readjust_indirect_value_type.
9713         (value_rtti_target_type): Rename to ...
9714         (value_rtti_indirect_type): ... here and make it indirect.  Update
9715         function comment.
9716         * value.c (readjust_indirect_value_type): New function.
9717         (coerce_ref): Support for enclosing type setting for references
9718         with readjust_indirect_value_type.
9719         * value.h (readjust_value_type): New declaration.
9720         (value_rtti_target_type): Rename to ...
9721         (value_rtti_indirect_type): ... here.
9722
9723 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
9724
9725         * MAINTAINERS (Write After Approval): Add myself to the list.
9726
9727 2012-02-20  Doug Evans  <dje@google.com>
9728
9729         * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9730         Rename objfile_p_char parameter to objfilep.
9731         (build_objfile_section_table): Result is now void.  All callers
9732         updated.
9733         * objfiles.h (struct objfile): Tweak comments, whitespace.
9734         (build_objfile_section_table): Update.
9735
9736         * elfread.c (elf_symfile_segments): Fix warning text.
9737
9738 2012-02-20  Tom Tromey  <tromey@redhat.com>
9739
9740         PR gdb/13498:
9741         * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9742         particular set of file names once.
9743         (dw2_map_symbol_filenames): Likewise.
9744
9745 2012-02-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
9746
9747         Code cleanup.
9748         * main.c (write_files): Remove the declaration.
9749         (external_editor_command): Move the declaration ...
9750         [GDBTK] (external_editor_command): ... here.  Fix the comment.
9751
9752 2012-02-20  Tom Tromey  <tromey@redhat.com>
9753
9754         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9755         extraneous block.
9756
9757 2012-02-20  Tristan Gingold  <gingold@adacore.com>
9758
9759         * darwin-nat.h (enum darwin_msg_state): Add comments.
9760
9761 2012-02-20  Tristan Gingold  <gingold@adacore.com>
9762
9763         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9764         value.
9765
9766 2012-20-18  Joel Brobecker  <brobecker@adacore.com>
9767
9768         * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9769         between function description and implementation.
9770
9771 2012-02-17  Tom Tromey  <tromey@redhat.com>
9772
9773         PR python/12070:
9774         * python/py-event.c (event_object_getset): New global.
9775         (event_object_type): Reference it.
9776         * python/py-type.c (field_object_getset): New global.
9777         (field_object_type): Reference it.
9778         * python/python-internal.h (gdb_py_generic_dict): Declare.
9779         * python/py-utils.c (gdb_py_generic_dict): New function.
9780
9781 2012-02-17  Tristan Gingold  <gingold@adacore.com>
9782
9783         * solib-darwin.c (darwin_current_sos): Check magic and filetype
9784
9785 2012-02-17  Thomas Schwinge  <thomas@codesourcery.com>
9786
9787         * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9788         TYPE_CALLING_CONVENTION annotation.
9789
9790 2012-02-16  Kevin Buettner  <kevinb@redhat.com>
9791
9792         * MAINTAINERS: Add rx to target ISA section.
9793         * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9794         (ALLDEPFILES): Add rx-tdep.c.
9795
9796 2012-02-16  Tom Tromey  <tromey@redhat.com>
9797
9798         * symfile.c (symbol_file_add_main_1): Use inferior's
9799         symfile_flags.
9800         * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9801         * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9802         inferior.
9803         * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9804         inferior.
9805         (follow_exec): Use inferior's symfile_flags.
9806         * inferior.h (struct inferior) <symfile_flags>: New field.
9807
9808 2012-02-16  Mike Frysinger  <vapier@gentoo.org>
9809
9810         PR gdb/9734:
9811         * remote-sim.c (gdbsim_create_inferior): Call error() when
9812         sim_create_inferior() fails.
9813
9814 2012-02-16  Josh Matthews  <josh@joshmatthews.net>
9815
9816         * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9817
9818 2012-02-16  Tom Tromey  <tromey@redhat.com>
9819
9820         PR c++/13653:
9821         * thread.c (struct current_thread_cleanup) <was_removable>: New
9822         field.
9823         (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9824         (make_cleanup_restore_current_thread): Initialize new field.
9825
9826 2012-02-15  Kevin Buettner  <kevinb@redhat.com>
9827
9828         * MAINTAINERS: Add rl78 to target ISA section.
9829         * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9830         (ALLDEPFILES): Add rl78-tdep.c.
9831         * NEWS: Mention rl78 as a new target.
9832
9833 2012-02-15  Aleksandar Ristovski  <aristovski@qnx.com>
9834
9835         * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9836         data.
9837         * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9838
9839 2012-02-15  Tom Tromey  <tromey@redhat.com>
9840
9841         PR gdb/12659:
9842         * infcmd.c (registers_info): Print just the current register's
9843         name.
9844
9845 2012-02-15  Tom Tromey  <tromey@redhat.com>
9846
9847         * python/py-symbol.c (sympy_value): Use _().
9848
9849 2012-02-15  Pedro Alves  <palves@redhat.com>
9850
9851         * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9852         output to be like native targets'.
9853         (remote_pid_to_str): Special case the null ptid.
9854
9855 2012-02-14  Stan Shebs  <stan@codesourcery.com>
9856
9857         * NEWS: Mention enable count command.
9858         * breakpoint.h (struct breakpoint): New field enable_count.
9859         * breakpoint.c (enable_breakpoint_disp): Add count argument.
9860         (enable_breakpoint): Add arg to call.
9861         (struct disp_data): New struct.
9862         (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9863         (do_map_enable_once_breakpoint): Create a struct and pass it.
9864         (do_map_enable_delete_breakpoint): Ditto.
9865         (do_map_enable_count_breakpoint): New function.
9866         (enable_count_command): New function.
9867         (bpstat_stop_status): Decrement enable_count.
9868         (print_one_breakpoint_location): Report enable count.
9869         (_initialize_breakpoint): Add enable count command.
9870
9871 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
9872
9873         * rl78-tdep.c (reggroups.h): Include.
9874         (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9875         (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9876         (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9877         (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9878         (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9879         (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9880         (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9881         (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9882         (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9883         (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9884         (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9885         (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9886         (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9887         (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9888         (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9889         (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9890         beginning of register list.
9891         (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9892         (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9893         (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9894         (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9895         (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9896         (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9897         (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9898         (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9899         (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9900         (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9901         (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9902         the pseudo registers.  Rearrange other pseudo registers too so
9903         that the bank registers appear at the end.
9904         (rl78_register_type): Account for the fact that the byte sized
9905         bank registers are now pseudo-registers.
9906         (rl78_register_name): Rearrange the register name array.  Make
9907         initial set of raw banked registers inaccessible.
9908         (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9909         (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9910         case for copying bytes back and forth between raw and pseudo
9911         versions of the banked registers.  Update other cases to reflect
9912         the changed names.
9913         (rl78_return_value): Update to account for changed names of
9914         raw registers.
9915         (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9916         rl78_register_sim_regno().
9917
9918 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
9919
9920         * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9921         the name parameter being passed to find_pc_partial_function().
9922
9923 2012-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9924
9925         * MAINTAINERS: Step down from being ia64 target maintainer.
9926
9927 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
9928
9929         * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9930         compilation warning.
9931
9932 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
9933
9934         Fix crash on loaded shlibs without loaded exec_bfd.
9935         * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9936         (set_section_command): Replace exec_bfd by p->bfd.
9937
9938 2012-02-10  Tom Tromey  <tromey@redhat.com>
9939
9940         * linespec.c (decode_line_internal): Skip symtabs_from_filename
9941         when we have a C++ qualified name.
9942
9943 2012-02-10  Pedro Alves  <palves@redhat.com>
9944
9945         * inferior.c (inferior_pid_to_str): New.
9946         (print_inferior, inferior_command): Use it.
9947
9948 2012-02-10  Pedro Alves  <palves@redhat.com>
9949
9950         * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9951         the test CFLAGS.
9952         * configure: Regenerate.
9953
9954 2012-02-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
9955
9956         * linespec.c (decode_line_internal): Fix comment correctness.
9957
9958 2012-02-09  Valery Khromov  <valery.khromov@gmail.com>
9959
9960         PR gdb/12953
9961         * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9962         * amd64bsd-nat.c: Add support for debug registers (adapted from
9963         i386bsd-nat.c).
9964         [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9965         (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9966         (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9967         (amd64bsd_dr_get_control): New functions.
9968         * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9969         * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9970         [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9971         watchpoints initialization.
9972         * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9973
9974 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9975
9976         * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9977         flds_bnds.fields.
9978         (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9979
9980 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9981
9982         * breakpoint.c (bp_location_compare): Fix comment.  Reindent the code.
9983
9984 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
9985
9986         * language.h (symbol_name_cmp_ftype): Renames
9987         symbol_name_match_p_ftype.
9988         (struct language_defn)[la_get_symbol_name_cmp]: Renames
9989         la_get_symbol_name_match_p.
9990         * ada-lang.c (ada_get_symbol_name_cmp): Renames
9991         ada_get_symbol_name_match_p.  Update comment.
9992         (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9993         * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9994         Renames symbol_name_match_p.  Update field type.
9995         (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9996         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9997         opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9998         "la_get_symbol_name_cmp" in comments.
9999         * language.c: Likewise.
10000
10001 2012-02-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10002
10003         * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10004         %eflags offset.
10005         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10006         (amd64_sol2_gregset32_reg_offs): Likewise.
10007
10008 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
10009
10010         * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10011         of the returned BFD is allocated by GDB.
10012
10013 2012-02-07  Tom Tromey  <tromey@redhat.com>
10014
10015         PR python/12027:
10016         * python/python-internal.h (frame_object_type): Declare.
10017         * python/py-symbol.c (sympy_needs_frame): New function.
10018         (sympy_value): New function.
10019         (symbol_object_getset): Add "needs_frame".
10020         (symbol_object_methods): Add "value".
10021         * python/py-frame.c (frame_object_type): No longer static.
10022
10023 2012-02-07  Tom Tromey  <tromey@redhat.com>
10024
10025         PR python/13599:
10026         * python/py-symbol.c (sympy_line): New function.
10027         (symbol_object_getset): Add "line".
10028
10029 2012-02-07  Tom Tromey  <tromey@redhat.com>
10030
10031         * charset.c (find_charset_names): Check 'in' against NULL.
10032
10033 2012-02-06  Doug Evans  <dje@google.com>
10034
10035         * gdbtypes.h (struct main_type): Change type of name,tag_name,
10036         and fields.name members from char * to const char *.  All uses updated.
10037         (struct cplus_struct_type): Change type of fn_fieldlists.name member
10038         from char * to const char *.  All uses updated.
10039         (type_name_no_tag): Update.
10040         (lookup_unsigned_typename, lookup_signed_typename): Update.
10041         * gdbtypes.c (type_name_no_tag): Change result type
10042         from char * to const char *.  All callers updated.
10043         (lookup_unsigned_typename, lookup_signed_typename): Change type of
10044         name parameter from char * to const char *.
10045         * symtab.h (struct cplus_specific): Change type of demangled_name
10046         member from char * to const char *.  All uses updated.
10047         (struct general_symbol_info): Change type of name and
10048         mangled_lang.demangled_name members from char * to const char *.
10049         All uses updated.
10050         (symbol_get_demangled_name, symbol_natural_name): Update.
10051         (symbol_demangled_name, symbol_search_name): Update.
10052         * symtab.c (symbol_get_demangled_name): Change result type
10053         from char * to const char *.  All callers updated.
10054         (symbol_natural_name, symbol_demangled_name): Ditto.
10055         (symbol_search_name): Ditto.
10056         (completion_list_add_name): Change type of symname,sym_text,
10057         text,word parameters from char * to const char *.
10058         (completion_list_objc_symbol): Change type of sym_text,
10059         text,word parameters from char * to const char *.
10060         * ada-lang.c (find_struct_field): Change type of name parameter
10061         from char * to const char *.
10062         (encoded_ordered_before): Similarly for N0,N1 parameters.
10063         (old_renaming_is_invisible): Similarly for function_name parameter.
10064         (ada_type_name): Change result type from char * to const char *.
10065         All callers updated.
10066         * ada-lang.h (ada_type_name): Update.
10067         * buildsym.c (hashname): Change type of name parameter
10068         from char * to const char *.
10069         * buildsym.h (hashname): Update.
10070         * dbxread.c (end_psymtab): Change type of include_list parameter
10071         from char ** to const char **.
10072         * dwarf2read.c (determine_prefix): Change result type
10073         from char * to const char *.  All callers updated.
10074         * f-lang.c (find_common_for_function): Change type of name, funcname
10075         parameters from char * to const char *.
10076         * f-lang.c (find_common_for_function): Update.
10077         * f-valprint.c (list_all_visible_commons): Change type of funcname
10078         parameters from char * to const char *.
10079         * gdbarch.sh (static_transform_name): Change type of name parameter
10080         and result from char * to const char *.
10081         * gdbarch.c: Regenerate.
10082         * gdbarch.h: Regenerate.
10083         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10084         of name parameter from char * to const char *.
10085         * jv-lang.c (java_primitive_type_from_name): Ditto.
10086         (java_demangled_signature_length): Similarly for signature parameter.
10087         (java_demangled_signature_copy): Ditto.
10088         (java_demangle_type_signature): Ditto.
10089         * jv-lang.h (java_primitive_type_from_name): Update.
10090         (java_demangle_type_signature): Update.
10091         * objc-lang.c (specialcmp): Change type of a,b parameters
10092         from char * to const char *.
10093         * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10094         from char * to const char *.  All callers updated.
10095         * p-lang.h (is_pascal_string_type): Update.
10096         * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10097         of name parameter from char * to const char *.
10098         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10099         * utils.c (fprintf_symbol_filtered): Ditto.
10100         * defs.h (fprintf_symbol_filtered): Update.
10101         * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10102         * stabsread.h (end_psymtab): Update.
10103         * stack.c (find_frame_funname): Change type of funname parameter
10104         from char ** to const char **.
10105         * stack.h (find_frame_funname): Update.
10106         * typeprint.c (type_print): Change type of varstring parameter
10107         from char * to const char *.
10108         * value.h (type_print): Update.
10109         * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10110         from char * to const char *.  All callers updated.
10111         (xcoff_end_psymtab): Change type of include_list parameter
10112         from char ** to const char **.  All callers updated.
10113         (swap_sym): Similarly for name parameter.  All callers updated.
10114         * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10115         Use xstrdup.
10116         (process_coff_symbol): Use xstrdup.
10117         * stabsread.c (stabs_method_name_from_physname): Renamed from
10118         update_method_name_from_physname.  Change result type from void
10119         to char *.  All callers updated.
10120         (read_member_functions): In has_destructor case, store name in objfile
10121         obstack instead of malloc space.  In !has_stub case, fix mem leak.
10122
10123 2012-02-06  Luca Pizzamiglio  <luca.pizzamiglio@gmail.com>
10124
10125         * configure: Rebuild.
10126         * configure.ac: Put -L../bfd and -L../libiberty at the front of
10127         LDFLAGS.
10128
10129 2012-02-03  Kevin Buettner  <kevinb@redhat.com>
10130
10131         * configure.tgt (rl78-*-elf): New target.
10132         * rl78-tdep.c: New file.
10133
10134 2012-02-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
10135
10136         * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10137         and continue the loop.  Add QUIT statement.
10138
10139 2012-02-03  Tom Tromey  <tromey@redhat.com>
10140
10141         PR gdb/13596:
10142         * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10143         bfd_lookup_symbol_from_symtab.
10144         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10145         gdb_bfd_lookup_symbol_from_symtab.
10146
10147 2012-02-03  Joel Brobecker  <brobecker@adacore.com>
10148
10149         * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10150         use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10151         symbol.  Add assertion that sym2 is never NULL.
10152
10153 2012-02-02  Doug Evans  <dje@google.com>
10154
10155         * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10156         "name" parameter to const char ** from char **.  All callers updated.
10157         (find_pc_partial_function): Ditto.
10158         (cache_pc_function_name): Change type to const char * from char *.
10159         * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10160         (find_pc_partial_function): Update.
10161         * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10162         type of "name" parameter to const char * from char *.
10163         All uses updated.
10164         * arch-utils.c (generic_in_solib_return_trampoline): Change
10165         type of "name" parameter to const char * from char *.
10166         * arch-utils.h (generic_in_solib_return_trampoline): Update.
10167         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10168         type of "name" parameter to const char * from char *.
10169         * gdbarch.sh (in_solib_return_trampoline): Ditto.
10170         * gdbarch.c: Regenerate.
10171         * gdbarch.h: Regenerate.
10172         * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10173         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10174         * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10175         type of "name" parameter to const char * from char *.
10176         * skip.c (skip_function_pc): Ditto.
10177         * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10178         * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10179         * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10180         * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10181         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10182         * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10183         * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10184         * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10185         * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10186
10187 2012-02-02  Pedro Alves  <palves@redhat.com>
10188
10189         * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10190         the current inferior has no execution.  Make sure the current
10191         remote process matches gdb's current inferior.
10192
10193 2012-02-02  Tom Tromey  <tromey@redhat.com>
10194
10195         PR gdb/13405:
10196         * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10197         read-only memory.
10198
10199 2012-02-02  Tom Tromey  <tromey@redhat.com>
10200
10201         PR gdb/9307:
10202         * symtab.c (lookup_language_this): Set block_found.
10203
10204 2012-02-01  Tom Tromey  <tromey@redhat.com>
10205
10206         PR gdb/13431:
10207         * jit.c (struct jit_inferior_data): Rewrite.
10208         (struct jit_objfile_data): New.
10209         (get_jit_objfile_data): New function.
10210         (add_objfile_entry): Update.
10211         (jit_read_descriptor): Return int.  Replace descriptor_addr
10212         argument with inf_data.  Update.  Don't call error.
10213         (jit_breakpoint_re_set_internal): Reorder logic.  Update.  Look up
10214         descriptor here.
10215         (jit_inferior_init): Don't look up descriptor.  Don't call error.
10216         (jit_reset_inferior_data_and_breakpoints)
10217         (jit_inferior_created_observer): Remove.
10218         (jit_inferior_exit_hook): Update.
10219         (jit_executable_changed_observer): Remove.
10220         (jit_event_handler): Update.
10221         (free_objfile_data): Reset inferior data if needed.
10222         (_initialize_jit): Update.
10223
10224 2012-02-01  Tom Tromey  <tromey@redhat.com>
10225
10226         * jit.c (bfd_open_from_target_memory): Move higher in file.
10227
10228 2012-02-01  Tristan Gingold  <gingold@adacore.com>
10229
10230         * libunwind-frame.c (libunwind_load): Display message if dlopen
10231         failed.
10232
10233 2012-02-01  Gary Benson  <gbenson@redhat.com>
10234
10235         * symtab.h (symbol_found_callback_ftype): New typedef.
10236         (iterate_over_symbols): Use the above.
10237         * symtab.c (iterate_over_symbols): Likewise.
10238         * language.h (language_defn->la_iterate_over_symbols): Likewise.
10239         * ada-lang.c (ada_iterate_over_symbols): Likewise.
10240         * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10241         (iterate_name_matcher): Document return values.
10242         (collect_one_symbol): Likewise.
10243         (collect_function_symbols): Likewise.
10244         (collect_symbols): Likewise.
10245
10246 2012-02-01  Tom Tromey  <tromey@redhat.com>
10247
10248         * ada-lang.c (resolve_subexp): Update.
10249         (ada_lookup_symbol_list): Add 'full_search' argument.
10250         (ada_iterate_over_symbols): Pass 0 as full_search argument to
10251         ada_lookup_symbol_list.
10252         (ada_lookup_encoded_symbol): Update.
10253         (get_var_value): Update.
10254         * ada-exp.y (block_lookup): Update.
10255         (write_var_or_type): Update.
10256         (write_name_assoc): Update.
10257         * ada-lang.h (ada_lookup_symbol_list): Update.
10258
10259 2012-01-31  Tom Tromey  <tromey@redhat.com>
10260
10261         * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10262         comment.
10263
10264 2012-01-31  Doug Evans  <dje@google.com>
10265
10266         * symtab.h: Remove outdated comment.
10267         (SYMBOL_MATCHES_NATURAL_NAME): Delete.
10268
10269 2012-02-01  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
10270
10271         Fix build error in Darwin port.
10272         * i386-darwin-nat.c: Include i386-nat.h.
10273
10274 2012-01-30  Tom Tromey  <tromey@redhat.com>
10275
10276         PR breakpoints/13568:
10277         * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10278         argument.  Check for recursive includes.
10279         (dwarf_decode_macros): Create an include hash.
10280
10281 2012-01-30  Michael Eager  <eager@eagercon.com>
10282
10283         * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10284         * ppc-linux-tdep.c: Include glibc-tdep.h.
10285         (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
10286         (powerpc_linux_in_plt_stub): New function.
10287         (powerpc_linux_in_dynsym_resolve_code): New function.
10288         (ppc_skip_trampoline_code): New function.
10289         (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10290         Use glibc_skip_solib_resolver.
10291
10292 2012-01-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
10293
10294         Code cleanup: Make 1440 bytes of data segment read-only.
10295         * arch-utils.c (endian_enum): Make it const char *const [].
10296         * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10297         Likewise.
10298         * breakpoint.c (always_inserted_enums): Likewise.
10299         * cli/cli-cmds.c (script_ext_enums): Likewise.
10300         * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10301         enumlist parameter const char *const *.
10302         * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10303         const char *const *.
10304         * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10305         parameter const char *const *.
10306         * cris-tdep.c (cris_modes): Make it const char *const [].
10307         * filesystem.c (target_file_system_kinds): Likewise.
10308         * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10309         * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10310         (can_use_displaced_stepping_enum, scheduler_enums)
10311         (exec_direction_names): Likewise.
10312         * language.c (_initialize_language): Make the type_or_range_names and
10313         case_sensitive_names variables const char *const [].
10314         * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10315         * python/python.c (python_excp_enums): Likewise.
10316         * remote.c (interrupt_sequence_modes): Likewise.
10317         * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10318         * serial.c (logbase_enums): Likewise.
10319         * sh-tdep.c (sh_cc_enum): Likewise.
10320         * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10321         Likewise.
10322         * symtab.c (multiple_symbols_modes): Likewise.
10323         * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10324         Likewise.
10325         * utils.c (internal_problem_modes): Likewise.
10326
10327 2012-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
10328
10329         Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10330         * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10331         result.
10332
10333 2012-01-27  Doug Evans  <dje@google.com>
10334
10335         * configure.ac (with_python): Fix absolute path handling for win32.
10336         * configure: Regenerate.
10337
10338 2012-01-26  Doug Evans  <dje@google.com>
10339
10340         * symtab.c: Whitespace cleanup, no code changes.
10341
10342         * symtab.c (lookup_symbol_in_language): Improve comment.
10343         (lookup_symbol_aux): Fix comment.
10344
10345         * psymtab.c (add_psymbol_to_list): Result is now "void".
10346         * psympriv.h (add_psymbol_to_list): Update.
10347
10348         * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10349
10350 2012-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10351
10352         Do not open script filenames twice.
10353         * cli/cli-cmds.c (source_script_from_stream): Pass to
10354         source_python_script also STREAM.
10355         * python/py-auto-load.c (source_section_scripts): Pass to
10356         source_python_script_for_objfile also STREAM.
10357         (auto_load_objfile_script): Pass to source_python_script_for_objfile
10358         also INPUT.
10359         * python/python-internal.h (source_python_script_for_objfile): New
10360         parameter file, rename parameter file to filename.
10361         * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10362         instead if !_WIN32.  Update the function comment.
10363         (source_python_script, source_python_script_for_objfile)
10364         (source_python_script): New parameter file, rename parameter file to
10365         filename.  Pass FILENAME to python_run_simple_file.
10366         * python/python.h (source_python_script): New parameter file, rename
10367         parameter file to filename.
10368
10369 2012-01-26  Pedro Alves  <palves@redhat.com>
10370
10371         * corelow.c (core_has_fake_pid): Delete.
10372         (core_close): Delete references to `core_has_fake_pid'.
10373         (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10374         (core_open): Delete references to `core_has_fake_pid'.
10375         (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10376         the removed global.
10377
10378 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
10379
10380         * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10381         Remove language parameter from name_matcher.  Adjust the comment.
10382         * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10383         Remove language parameter.
10384         * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10385         * linespec.c (iterate_name_matcher): Likewise.
10386         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10387         name_matcher.  Adjust call accordingly.
10388         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10389         (maintenance_check_symtabs): Adjust type of parameter "fun".
10390         * psymtab.h (maintenance_check_symtabs): Likewise.
10391
10392 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
10393
10394         * language.h (symbol_name_match_p_ftype): New typedef.
10395         (struct language_defn): Replace field la_symbol_name_compare
10396         by la_get_symbol_name_match_p.
10397         * ada-lang.c (ada_get_symbol_name_match_p): New function.
10398         (ada_language_defn): Use it.
10399         * linespec.c (struct symbol_matcher_data): New type.
10400         (iterate_name_matcher): Rewrite.
10401         (iterate_over_all_matching_symtabs): Pass a pointer to
10402         a symbol_matcher_data struct to expand_symtabs_matching
10403         instead of just the lookup name.
10404         * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10405         opencl-lang.c, p-lang.c, language.c: Delete field
10406         la_symbol_name_compare, and replace by NULL for new field
10407         la_get_symbol_name_match_p.
10408         * symfile.h (struct quick_symbol_functions): Update comment.
10409
10410 2012-01-25  Tom Tromey  <tromey@redhat.com>
10411
10412         * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10413         dereferencing.
10414
10415 2012-01-24  Tom Tromey  <tromey@redhat.com>
10416
10417         PR symtab/12406:
10418         * solib.c (update_solib_list): Update the program space's
10419         added_solibs and deleted_solibs fields.
10420         * progspace.h (struct program_space) <added_solibs,
10421         deleted_solibs>: New fields.
10422         (clear_program_space_solib_cache): Declare.
10423         * progspace.c (release_program_space): Call
10424         clear_program_space_solib_cache.
10425         (clear_program_space_solib_cache): New function.
10426         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10427         bpstat_stop_status.  Use handle_solib_event.
10428         * breakpoint.c: Include gdb_regex.h.
10429         (print_solib_event): New function.
10430         (bpstat_print): Use print_solib_event.
10431         (bpstat_stop_status): Add special case for bp_shlib_event.
10432         (handle_solib_event): New function.
10433         (bpstat_what): Use handle_solib_event.
10434         (struct solib_catchpoint): New.
10435         (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10436         (breakpoint_hit_catch_solib, check_status_catch_solib)
10437         (print_it_catch_solib, print_one_catch_solib)
10438         (print_mention_catch_solib, print_recreate_catch_solib): New
10439         functions.
10440         (catch_solib_breakpoint_ops): New global.
10441         (catch_load_or_unload, catch_load_command_1)
10442         (catch_unload_command_1): New functions.
10443         (internal_bkpt_check_status): Add special case for
10444         bp_shlib_event.
10445         (internal_bkpt_print_it): Use print_solib_event.
10446         (initialize_breakpoint_ops): Initialize
10447         catch_solib_breakpoint_ops.
10448         (_initialize_breakpoint): Register "catch load" and "catch
10449         unload".
10450         * breakpoint.h (handle_solib_event): Declare.
10451         * NEWS: Add entry for "catch load" and "catch unload".
10452
10453 2012-01-24  Tom Tromey  <tromey@redhat.com>
10454
10455         * ada-lang.c: Include gdb_vecs.h.
10456         * charset.c: Include gdb_vecs.h.
10457         * tracepoint.h: Include gdb_vecs.h.
10458         * gdb_vecs.h: New file.
10459
10460 2012-01-24  Pedro Alves  <pedro@codesourcery.com>
10461
10462         * breakpoint.c (breakpoint_hit_catch_fork)
10463         (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10464         (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10465         * infrun.c (inferior_has_forked, inferior_has_vforked)
10466         (inferior_has_execd, inferior_has_called_syscall): Delete.
10467         (handle_syscall_event): Get syscall_number from the execution
10468         control state's wait status.
10469         (wait_for_inferior): Don't clear syscall_number.
10470
10471 2012-01-24  Pedro Alves  <palves@redhat.com>
10472
10473         * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10474         pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10475         (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10476         (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10477         `ws' parameter.
10478         (breakpoint_hit_ranged_breakpoint): Add `ws' parameter.  Return
10479         false for events other than TARGET_SIGNAL_TRAP.
10480         (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10481         Add `ws' parameter.
10482         (bkpt_breakpoint_hit): Add `ws' parameter.  Return false for
10483         events other than TARGET_SIGNAL_TRAP.
10484         (tracepoint_breakpoint_hit): Add `ws' parameter.
10485         * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10486         parameter.
10487         (bpstat_stop_status): Same.
10488         (pc_at_non_inline_function): Same.
10489         * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10490         to pass the current event's waitstatus to bpstat_stop_status
10491         and pc_at_non_inline_function.
10492
10493 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10494
10495         Code cleanup.
10496         * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10497         Update the function comment for it.
10498         (source_script_with_search): Call make_cleanup_fclose for STREAM.
10499         * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10500         for STREAM.
10501
10502 2012-01-24  Pedro Alves  <palves@redhat.com>
10503
10504         * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10505         outside `bs->stop' block.
10506         (bpstat_what): Rework bp_shlib_event handling.
10507         (internal_bkpt_check_status): If the breakpoint is a
10508         bp_shlib_event, then set bs->stop and bs->print if
10509         stop_on_solib_events is set.
10510
10511 2012-01-24  Gary Benson  <gbenson@redhat.com>
10512
10513         Delete #if 0'd out code.
10514         * stack.c (print_frame_label_vars): Remove.
10515         (catch_info): Likewise.
10516         (_initialize_stack): Remove "info catch" command.
10517         * NEWS: Mention the above.
10518
10519 2012-01-24  Pedro Alves  <palves@redhat.com>
10520
10521         * remote.c (remote_add_inferior): New `fake_pid_p' parameter.  Use
10522         it.
10523         (remote_notice_new_inferior): If the remote end doesn't support
10524         the multiprocess extensions, then the PID is fake.
10525         (add_current_inferior_and_thread): New.
10526         (remote_start_remote): Use it.
10527         (extended_remote_attach_1): Adjust.
10528         (extended_remote_create_inferior_1): Use
10529         add_current_inferior_and_thread.
10530
10531 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10532
10533         Fix watchpoints to be specific for each inferior.
10534         * breakpoint.c (watchpoint_in_thread_scope): Verify also
10535         current_program_space.
10536         * i386-nat.c (i386_inferior_data_cleanup): New.
10537         (i386_inferior_data_get): Replace variable inf_data_local by an
10538         inferior_data call.
10539         (i386_use_watchpoints): Initialize i386_inferior_data.
10540         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10541         specific iterate_over_lwps.
10542
10543 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10544
10545         Fix watchpoints across inferior fork.
10546         * amd64-linux-nat.c (update_debug_registers_callback): Update the
10547         comment for linux_nat_iterate_watchpoint_lwps.
10548         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10549         linux_nat_iterate_watchpoint_lwps.
10550         (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10551         * i386-linux-nat.c (update_debug_registers_callback): Update the
10552         comment for linux_nat_iterate_watchpoint_lwps.
10553         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10554         linux_nat_iterate_watchpoint_lwps.
10555         (i386_linux_prepare_to_resume): New comment on Linux kernel.
10556         * i386-nat.c: Include inferior.h.
10557         (dr_mirror): Remove.
10558         (i386_inferior_data, struct i386_inferior_data)
10559         (i386_inferior_data_get): New.
10560         (i386_debug_reg_state): Use i386_inferior_data_get.
10561         (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10562         (i386_insert_watchpoint, i386_remove_watchpoint)
10563         (i386_stopped_data_address, i386_insert_hw_breakpoint)
10564         (i386_remove_hw_breakpoint): New variable state, use
10565         i386_debug_reg_state instead of DR_MIRROR.
10566         * linux-nat.c (delete_lwp): New declaration.
10567         (num_lwps): Move here from downwards.
10568         (delete_lwp_cleanup): New.
10569         (linux_child_follow_fork): Create new child_lp, call
10570         linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10571         PTRACE_DETACH.
10572         (num_lwps): Move upwards.
10573         (linux_nat_iterate_watchpoint_lwps): New.
10574         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10575         (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10576
10577 2012-01-24  Joel Brobecker  <brobecker@adacore.com>
10578
10579         GDB 7.4 released.
10580
10581 2012-01-23  Pedro Alves  <palves@redhat.com>
10582
10583         * top.c (caution): Rename to ...
10584         (confirm): ... this.
10585         (show_caution): Rename to ...
10586         (show_confirm): ... this.
10587         (quit_cover): Adjust.
10588         (init_main): Adjust.
10589         * top.h (caution): Rename to ...
10590         (confirm): ... this.
10591         * utils.c (internal_vproblem, defaulted_query): Adjust.
10592
10593 2012-01-23  Pedro Alves  <palves@redhat.com>
10594
10595         * top.c (caution): Update comment.
10596         (execute_command): Don't consider the current value of `caution'.
10597
10598 2012-01-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
10599
10600         * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10601
10602 2012-01-23  Ulrich Weigand  <ulrich.weigand@linaro.org>
10603
10604         * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10605         * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10606         * target.c (target_fileio_pwrite): Remove buffer address from
10607         debug output.
10608         (target_fileio_pread): Likewise.
10609
10610 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10611
10612         * NEWS: Document remote "info proc" and "generate-core-file".
10613
10614 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10615
10616         * gdbarch.sh (find_memory_regions): New callback.
10617         * gdbarch.c, gdbarch.h: Regenerate.
10618
10619         * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10620         callback before falling back to target method.
10621
10622         * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10623         (linux_target_install_ops): No longer install it.
10624
10625         * linux-tdep.c (linux_find_memory_regions): New function.
10626         (linux_init_abi): Install it.
10627
10628 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10629
10630         * gdbarch.sh (make_corefile_notes): New architecture callback.
10631         * gdbarch.c: Regenerate.
10632         * gdbarch.h: Likewise.
10633
10634         * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10635         before target_make_corefile_notes.  If NULL is returned, the
10636         target does not support core file generation.
10637
10638         * linux-nat.c: Include "linux-tdep.h".
10639         (find_signalled_thread, find_stop_signal): Remove.
10640         (linux_nat_do_thread_registers): Likewise.
10641         (struct linux_nat_corefile_thread_data): Likewise.
10642         (linux_nat_corefile_thread_callback): Likewise.
10643         (iterate_over_spus): Likewise.
10644         (struct linux_spu_corefile_data): Likewise.
10645         (linux_spu_corefile_callback): Likewise.
10646         (linux_spu_make_corefile_notes): Likewise.
10647         (linux_nat_collect_thread_registers): New function.
10648         (linux_nat_make_corefile_notes): Replace contents by call to
10649         linux_make_corefile_notes passing linux_nat_collect_thread_registers
10650         as native-only callback.
10651
10652         * linux-tdep.h: Include "bfd.h".
10653         (struct regcache): Add forward declaration.
10654         (linux_collect_thread_registers_ftype): New typedef.
10655         (linux_make_corefile_notes): Add prototype.
10656         * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10657         "regset.h", and "elf-bfd.h".
10658         (find_signalled_thread, find_stop_signal): New functions.
10659         (linux_spu_make_corefile_notes): Likewise.
10660         (linux_collect_thread_registers): Likewise.
10661         (struct linux_corefile_thread_data): New data structure.
10662         (linux_corefile_thread_callback): New funcion.
10663         (linux_make_corefile_notes): Likewise.
10664         (linux_make_corefile_notes_1): Likewise.
10665         (linux_init_abi): Install it.
10666
10667 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10668
10669         * gdbarch.sh (info_proc): New callback.
10670         * gdbarch.c, gdbarch.h: Regenerate.
10671
10672         * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10673         before falling back to the target info_proc callback.
10674
10675         * linux-nat.c: Do not include "cli/cli-utils.h".
10676         (linux_nat_info_proc): Remove.
10677         (linux_target_install_ops): No longer install it.
10678
10679         * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10680         (read_mapping): New function.
10681         (linux_info_proc): Likewise.
10682         (linux_init_abi): Install it.
10683
10684 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10685
10686         * defs.h (enum info_proc_what): Moved here from linux-nat.c
10687         * infcmd.c: (info_proc_cmd_1): New function.
10688         (info_proc_cmd): New function, moved here from equivalent routine
10689         orignally in linux-nat.c.
10690         (info_proc_cmd_mappings): Likewise.
10691         (info_proc_cmd_stat): Likewise.
10692         (info_proc_cmd_status): Likewise.
10693         (info_proc_cmd_cwd): Likewise.
10694         (info_proc_cmd_cmdline): Likewise.
10695         (info_proc_cmd_exe): Likewise.
10696         (info_proc_cmd_all): Likewise.
10697         (_initialize_infcmd): Install "info proc" command and subcommands.
10698
10699         * target.h (struct target_ops): Add to_info_proc.
10700         (target_info_proc): Add prototype.
10701         * target.c (target_info_proc): New function.
10702
10703         * procfs.c (procfs_info_proc): Add prototype.
10704         (info_proc_cmd): Rename into ...
10705         (procfs_info_proc): ... this.  Update argument types as appropriate
10706         for a to_info_proc implementation.  Handle "what" argument.
10707         (procfs_target): Install procfs_info_proc.
10708         (_initialize_procfs): No longer install "info proc" command.
10709
10710         * linux-nat.c: (enum info_proc_what): Remove.
10711         (linux_nat_info_proc_cmd_1): Rename into ...
10712         (linux_nat_info_proc): ... this.  Update argument types as appropriate
10713         for a to_info_proc implementation.
10714         (linux_nat_info_proc_cmd): Remove.
10715         (linux_nat_info_proc_cmd_mappings): Likewise.
10716         (linux_nat_info_proc_cmd_stat): Likewise.
10717         (linux_nat_info_proc_cmd_status): Likewise.
10718         (linux_nat_info_proc_cmd_cwd): Likewise.
10719         (linux_nat_info_proc_cmd_cmdline): Likewise.
10720         (linux_nat_info_proc_cmd_exe): Likewise.
10721         (linux_nat_info_proc_cmd_all): Likewise.
10722         (linux_target_install_ops): Install linux_nat_info_proc.
10723         (_initialize_linux_nat): No longer install "info proc" command
10724         and subcommands.
10725
10726 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10727
10728         * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10729         * config.in, configure: Regenerate.
10730
10731         * target.h (struct target_ops): Add to_fileio_readlink.
10732         (target_fileio_readlink): Add prototype.
10733         * target.c (target_fileio_readlink): New function.
10734
10735         * inf-child.c: Conditionally include <sys/param.h>.
10736         (inf_child_fileio_readlink): New function.
10737         (inf_child_target): Install it.
10738
10739         * remote.c (PACKET_vFile_readlink): New enum value.
10740         (remote_hostio_readlink): New function.
10741         (init_remote_ops): Install it.
10742         (_initialize_remote): Handle vFile:readlink packet type.
10743
10744 2012-01-20  Pedro Alves  <palves@redhat.com>
10745             Ulrich Weigand  <ulrich.weigand@linaro.org>
10746
10747         * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10748         * config.in, configure: Regenerate.
10749
10750         * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10751         to_fileio_pread, to_fileio_close, to_fileio_unlink.
10752         (target_fileio_open): Add prototype.
10753         (target_fileio_pwrite): Likewise.
10754         (target_fileio_pread): Likewise.
10755         (target_fileio_close): Likewise.
10756         (target_fileio_unlink): Likewise.
10757         (target_fileio_read_alloc): Likewise.
10758         (target_fileio_read_stralloc): Likewise.
10759
10760         * target.c: Include "gdb/fileio.h".
10761         (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10762         (default_fileio_target): New function.
10763         (target_fileio_open): Likewise.
10764         (target_fileio_pwrite): Likewise.
10765         (target_fileio_pread): Likewise.
10766         (target_fileio_close): Likewise.
10767         (target_fileio_unlink): Likewise.
10768         (target_fileio_close_cleanup): Likewise.
10769         (target_fileio_read_alloc_1): Likewise.
10770         (target_fileio_read_alloc): Likewise.
10771         (target_fileio_read_stralloc): Likewise.
10772
10773         * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10774         <fcntl.h>, and <unistd.h>.
10775         (inf_child_fileio_open_flags_to_host): New function.
10776         (inf_child_errno_to_fileio_error): Likewise.
10777         (inf_child_fileio_open): Likewise.
10778         (inf_child_fileio_pwrite): Likewise.
10779         (inf_child_fileio_pread): Likewise.
10780         (inf_child_fileio_close): Likewise.
10781         (inf_child_fileio_unlink): Likewise.
10782         (inf_child_target): Install to_fileio routines.
10783
10784         * remote.c (init_remote_ops): Install to_fileio routines.
10785
10786 2012-01-20  Pedro Alves  <palves@redhat.com>
10787             Ulrich Weigand  <ulrich.weigand@linaro.org>
10788
10789         * remote.c (remote_multi_process_p): Only check for multi-process
10790         protocol feature, do not check for extended protocol.
10791         (remote_supports_multi_process): Check for extended protocol here.
10792         (set_general_process): Likewise.
10793         (extended_remote_kill): Likewise.
10794         (remote_pid_to_str): Likewise.
10795         (remote_query_supported): Always query multiprocess mode.
10796
10797 2012-01-20  Pedro Alves  <palves@redhat.com>
10798             Ulrich Weigand  <ulrich.weigand@linaro.org>
10799
10800         * inferior.h (struct inferior): Add fake_pid_p.
10801         * inferior.c (exit_inferior_1): Clear fake_pid_p.
10802         * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10803         magic_null_ptid since the remote side doesn't provide a real PID.
10804
10805 2012-01-19  Tom Tromey  <tromey@redhat.com>
10806
10807         * NEWS: Combine the two Python sections.
10808
10809 2012-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
10810
10811         * target.h (target_close): Update comment on the target's unpush state.
10812
10813 2012-01-19  Pedro Alves  <palves@redhat.com>
10814
10815         * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10816         linux_nat_async directly instead of going through the target
10817         vector.
10818         * target.c (unpush_target): Close target after unpushing it, not
10819         before.
10820
10821 2012-01-19  Gary Benson  <gbenson@redhat.com>
10822
10823         * mdebugread.c (sort_blocks): Replace integer constants with ones
10824         derived from FIRST_LOCAL_BLOCK.
10825
10826 2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
10827             Jan Kratochvil  <jan.kratochvil@redhat.com>
10828
10829         PR gdb/9538
10830         * symfile.c (find_separate_debug_file): New function.
10831         (terminate_after_last_dir_separator): Likewise.
10832         (find_separate_debug_file_by_debuglink): Also try realpath.
10833         * configure.ac (AC_CHECK_FUNCS): Add lstat.
10834         * configure: Regenerate.
10835         * config.in: Regenerate.
10836
10837 2012-01-18  Doug Evans  <dje@google.com>
10838
10839         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10840         (main.o): Remove rule.
10841         * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10842         (--with-sysroot): Rewrite.
10843         * configure: Regenerate.
10844         * config.in: Regenerate.
10845
10846 2012-01-18  Sergio Durigan Junior  <sergiodj@redhat.com>
10847
10848         * parse.c (initialize_expout): New function.
10849         (reallocate_expout): Likewise.
10850         (parse_exp_in_context): Use `initialize_expout' and
10851         `reallocate_expout' when appropriate.
10852
10853 2012-01-18  Pedro Alves  <palves@redhat.com>
10854
10855         * record.c (struct record_breakpoint, record_breakpoint_p)
10856         (record_breakpoints): New.
10857         (record_insert_breakpoint, record_remove_breakpoint): Manage
10858         record breakpoints list.  Only remove breakpoints from the
10859         inferior if they had been inserted there in the first place.
10860
10861 2012-01-17  Doug Evans  <dje@google.com>
10862
10863         * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10864         if we know we don't have a file name to look for.
10865
10866 2012-01-17  Pedro Alves  <palves@redhat.com>
10867
10868         * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10869         the frame's stop reason is UNWIND_UNAVAILABLE.
10870
10871 2012-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
10872
10873         Fix compilation error.
10874         * m2-exp.y (yyerror): Use ANSI C prototype.
10875
10876 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
10877
10878         * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10879         (growbuf_by_size): Likewise.
10880         (yyerror): Likewise.
10881         * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10882         (modblock): Remove variable (was #if 0'ed).
10883         (parse_number): Convert prototype from K&R to ANSI C.
10884         (yyerror): Likewise.
10885         * objc-exp.y (parse_number): Likewise.
10886         (yyerror): Likewise.
10887         (yylex): Remove #if 0'ed code.
10888         * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10889         (yyerror): Likewise.
10890
10891 2012-01-16  Tom Tromey  <tromey@redhat.com>
10892
10893         * NEWS: Add item.
10894         * symtab.h (compare_filenames_for_search): Declare.
10895         * symtab.c (compare_filenames_for_search): New function.
10896         (iterate_over_some_symtabs): Use it.
10897         * symfile.h (struct quick_symbol_functions)
10898         <map_symtabs_matching_filename>: Change spec.
10899         * psymtab.c (partial_map_symtabs_matching_filename): Use
10900         compare_filenames_for_search.  Update for new spec.
10901         * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10902         compare_filenames_for_search.  Update for new spec.
10903         * breakpoint.c (clear_command): Use compare_filenames_for_search.
10904
10905 2012-01-16  Tom Tromey  <tromey@redhat.com>
10906
10907         PR python/13281:
10908         * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10909         (struct main_type) <flag_flag_enum>: New field.
10910         * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10911         * NEWS: Add entries.
10912         * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10913         enums.
10914         * python/lib/gdb/printing.py (_EnumInstance): New class.
10915         (FlagEnumerationPrinter): Likewise.
10916
10917 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
10918
10919         * breakpoint.c (create_sals_from_address_default): New function.
10920         (create_breakpoints_sal_default): Likewise.
10921         (decode_linespec_default): Likewise.
10922         (is_marker_spec): Removed.
10923         (strace_marker_p): New function.
10924         (init_breakpoint_sal): Using `strace_marker_p' instead of
10925         `is_marker_spec'.
10926         (create_breakpoint): Call method `create_sals_from_address' from
10927         breakpoint_ops, replacing code that created SALs conditionally
10928         on the type of the breakpoint.  Call method `create_breakpoints_sal',
10929         replacing code that created breakpoints conditionally on the type
10930         wanted.
10931         (base_breakpoint_create_sals_from_address): New function.
10932         (base_breakpoint_create_breakpoints_sal): Likewise.
10933         (base_breakpoint_decode_linespec): Likewise.
10934         (base_breakpoint_ops): Add methods
10935         `base_breakpoint_create_sals_from_address',
10936         `base_breakpoint_create_breakpoints_sal' and
10937         `base_breakpoint_decode_linespec'.
10938         (bkpt_create_sals_from_address): New function.
10939         (bkpt_create_breakpoints_sal): Likewise.
10940         (bkpt_decode_linespec): Likewise.
10941         (tracepoint_create_sals_from_address): Likewise.
10942         (tracepoint_create_breakpoints_sal): Likewise.
10943         (tracepoint_decode_linespec): Likewise.
10944         (strace_marker_create_sals_from_address): Likewise.
10945         (strace_marker_create_breakpoints_sal): Likewise.
10946         (strace_marker_decode_linespec): Likewise.
10947         (strace_marker_breakpoint_ops): New variable.
10948         (addr_string_to_sals): Remove `marker_spec'.  Call method
10949         `decode_linespec' from breakpoint_ops, replacing code that decoded
10950         an address string into a SAL.  Use `strace_marker_p' instead of
10951         `marker_spec'.
10952         (strace_command): Decide whether we are dealing with a static
10953         tracepoint with marker or not.  Use the appropriate breakpoint_ops.
10954         (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10955         * breakpoint.h (linespec_result, linespec_sals): New forward
10956         declarations.
10957         (breakpoint_ops) <create_sals_from_address>,
10958         <create_breakpoints_sal>, <decode_linespec>: New methods.
10959
10960 2012-01-14  Doug Evans  <dje@google.com>
10961
10962         * NEWS: Update text for "maint set python print-stack".
10963         It is deprecated in gdb 7.4 and deleted in 7.5.
10964
10965 2012-01-13  Eli Zaretskii  <eliz@gnu.org>
10966
10967         * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10968         including curses.h.
10969
10970 2012-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
10971
10972         * configure: Regenerate.
10973         * config.in: Regenerate.
10974
10975 2012-01-12  Keith Seitz  <keiths@redhat.com>
10976
10977         PR mi/10586
10978         * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10979         (ANONYMOUS_UNION_NAME): Define.
10980         (is_path_expr_parent): New function.
10981         (get_path_expr_parent): New function.
10982         (is_anonymous_child): New function.
10983         (create_child_with_value): If the child is anonymous and without
10984         a name, assign an object name to it.
10985         (c_describe_child): Use get_path_expr_parent to determine
10986         the parent expression.
10987         If there field represents an anonymous struct or union and
10988         has no name, set an appropriate display name and expression.
10989         (cplus_describe_child): Likewise.
10990
10991 2012-01-12  Pedro Alves  <palves@redhat.com>
10992
10993         * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10994         available when %ebp is found to be zero (outermost).
10995
10996 2012-01-11  Andreas Tobler  <andreast@fgznet.ch>
10997
10998         * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10999         an internal gdb_static_assert.
11000         * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11001
11002 2012-01-11  Tom Tromey  <tromey@redhat.com>
11003
11004         PR gdb/9598:
11005         * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11006         catch" and "catch throw".
11007
11008 2012-01-11  Paul Hilfinger  <hilfingr@adacore.com>
11009
11010         * blockframe.c (block_innermost_frame): Start search from selected
11011         frame, if present, or otherwise the current frame.
11012
11013         * c-exp.y (variable): Update innermost_block for
11014         'block COLONCOLON NAME' clause.
11015         * m2-exp.y (variable): Ditto.
11016         * objc-exp.y (variable): Ditto.
11017
11018 2012-01-10  Tom Tromey  <tromey@redhat.com>
11019
11020         PR python/13199:
11021         * python/python.c (finish_python_initialization): Set sys.argv.
11022
11023 2012-01-10  Doug Evans  <dje@google.com>
11024
11025         * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd".  New arg
11026         "want_line_info".  All callers updated.
11027         (dwarf_decode_lines_1): New function.
11028         (handle_DW_AT_stmt_list): Add function comment.
11029         New arg "want_line_info".  All callers updated.
11030         (read_file_scope,read_type_unit_scope): Move comment from
11031         handle_DW_AT_stmt_list to here.
11032
11033 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
11034
11035         Fix regression after libiberty/ update for GCC PR 6057 and others.
11036         * c-exp.y (operator) <OPERATOR DELETE>
11037         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11038         * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11039         (make_builtin_type, make_name): New variable i, add gdb_assert.
11040         (operator) <OPERATOR NEW>: Update ARGS to 3.
11041         (operator) <OPERATOR DELETE>: Add trailing space.
11042         (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11043         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11044         * cp-support.c (cp_canonicalize_string): Check NULL from
11045         cp_comp_to_string, call warning and return.
11046
11047 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
11048
11049         Fix duplicate .o files after omitting libbfd.a.
11050         * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11051         (SFILES): Add corelow.c.
11052         (COMMON_OBS): Add corelow.o.
11053         (ALLDEPFILES): Remove corelow.c.
11054         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11055         * config/alpha/alpha-osf3.mh: Likewise.
11056         * config/alpha/fbsd.mh: Likewise.
11057         * config/arm/nbsdaout.mh: Likewise.
11058         * config/arm/nbsdelf.mh: Likewise.
11059         * config/i386/i386gnu.mh: Likewise.
11060         * config/ia64/hpux.mh: Likewise.
11061         * config/ia64/linux.mh: Likewise.
11062         * config/m32r/linux.mh: Likewise.
11063         * config/m68k/linux.mh: Likewise.
11064         * config/mips/irix5.mh: Likewise.
11065         * config/mips/irix6.mh: Likewise.
11066         * config/pa/hpux.mh: Likewise.
11067         * config/pa/linux.mh: Likewise.
11068         * config/powerpc/aix.mh: Likewise.
11069         * config/sparc/linux.mh: Likewise.
11070         * config/sparc/linux64.mh: Likewise.
11071         * config/sparc/sol2.mh: Likewise.
11072         * config/vax/vax.mh: Likewise.
11073         * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11074         (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11075         (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11076         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11077         (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11078         (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11079         (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11080         (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11081         (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11082         (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11083         (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11084         (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11085         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11086         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11087         (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11088         (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11089         (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11090         (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11091         (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11092         (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11093         (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11094         (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11095         corelow.o from gdb_target_obs.
11096         * corefile.c (core_target): Update the comment on NULL value.
11097         (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11098         * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11099         MATCHES.  Drop YUMMY set on NULL.
11100         (core_close): Do not call exit_inferior_silent on zero PID.  Do not
11101         reclaim CORE_DATA if it is already NULL.
11102
11103 2012-01-09  Doug Evans  <dje@google.com>
11104
11105         * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11106         * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11107
11108 2012-01-09  Keith Seitz  <keiths@redhat.com>
11109
11110         * breakpoint.c (wrapper.h): Don't include.
11111
11112 2012-01-09  Keith Seitz  <keiths@redhat.com>
11113
11114         * Makefile.in (SFILES): Remove wrapper.c.
11115         (HFILES_NO_SRCDIR): Remove wrapper.h.
11116         (COMMON_OBS): Remove wrapper.o.
11117         * cli/cli-interp.c: Don't inlude wrapper.h.
11118         * corelow.c: Likewise.
11119         (core_open): Replace gdb_target_find_new_threads with
11120         TRY_CATCH around target_find_new_threads.
11121         * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11122         * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11123         * varobj.c (varobj_create): Likewise for parse_exp_1 and
11124         evaluate_expression.
11125         (varobj_set_value): Likewise for evaluate_expression and
11126         value_assign.
11127         (install_new_variable): Likewise for value_fetch_lazy.
11128         (adjust_value_for_child_access): Likewise for value_ind.
11129         (c_describe_child): Likewise for value_subscript and
11130         value_ind.
11131         (c_value_of_root): Likewise for evaluate_expression.
11132         * wrapper.c: Remove.
11133         * wrapper.h: Remove.
11134
11135 2012-01-09  Doug Evans  <dje@google.com>
11136
11137         * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11138         partial_read_comp_unit_head.  Replace "buffer", "buffer_size" and
11139         "abfd" args with "section".  All callers updated.
11140         Error checking code moved ...
11141         (error_check_comp_unit_head): ... here.  New function.
11142         (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11143         Delete arg "abfd".  New arg "type_offset".  All callers updated.
11144         (create_debug_types_hash_table): Simplify by using
11145         read_and_check_type_unit_head.
11146
11147         * parser-defs.h (namecopy): Delete.
11148         * parse.c (namecopy, namecopy_size): Move into copy_name.
11149
11150 2012-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
11151
11152         Partially fix duplicate .o files after omitting libbfd.a.
11153         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11154         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11155         * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11156         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11157         * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11158         * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11159         * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11160
11161 2012-01-09  Pedro Alves  <palves@redhat.com>
11162
11163         * MAINTAINERS: Update my email address.
11164
11165 2012-01-08  Doug Evans  <dje@google.com>
11166
11167         * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11168         n_type_units.  Rename type_comp_units to all_type_units.
11169         All uses updated.
11170         (add_signatured_type_cu_to_table): Renamed from
11171         add_signatured_type_cu_to_list.  All callers updated.
11172
11173         * gdbtypes.h (struct cplus_struct_type): Delete member
11174         nfn_fields_total.  All uses removed.
11175
11176 2012-01-06  Doug Evans  <dje@google.com>
11177
11178         * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11179         to top of file.
11180         (dwarf2_find_comp_unit): Delete.
11181         (process_psymtab_comp_unit): Make result "void".
11182         Delete args buffer, info_ptr, buffer_size, and replace with
11183         "section".  All callers updated.
11184         (dwarf2_build_psymtabs_hard): Simplify.
11185
11186 2012-01-06  Sergio Durigan Junior  <sergiodj@redhat.com>
11187             Thiago Jung Bauermann  <bauerman@br.ibm.com>
11188
11189         * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11190         before `struct gdb_exception'.
11191         * breakpoint.c (update_global_location_list_nothrow)
11192         (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11193         * cp-abi.c (value_rtti_type): Likewise.
11194         * cp-support.c (cp_validate_operator): Likewise.
11195         * infrun.c (insert_exception_resume_breakpoint)
11196         (check_exception_resume, keep_going): Likewise.
11197         * mi-interp.c (mi_breakpoint_created)
11198         (mi_breakpoint_modified): Likewise.
11199         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11200         * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11201         (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11202
11203 2012-01-05  Doug Evans  <dje@google.com>
11204
11205         * dwarf2read.c (statement_prologue): Delete, unused.
11206
11207         * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11208         * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11209
11210         * dwarf2read.c (comp_unit_header): Delete, unused.
11211
11212 2012-01-05  Ulrich Weigand  <uweigand@de.ibm.com>
11213
11214         * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11215         * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11216
11217 2012-01-05  Khoo Yit Phang  <khooyp@cs.umd.edu>
11218
11219         * infrun.c (normal_stop): Don't skip calling the normal_stop
11220         observers if the thread was doing a multi-step, but stopped for
11221         some reason other than stepping.
11222
11223 2012-01-05  Pedro Alves  <alves.ped@gmail.com>
11224
11225         * cli/cli-decode.h: Add comments.
11226         (CMD_LIST_AMBIGUOUS): Moved to command.h
11227         (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11228         (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11229         (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11230         (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11231         (add_com, add_com_alias, add_info, add_info_alias)
11232         (complete_on_cmdlist, complete_on_enum, help_list): Remove
11233         declarations.
11234         * command.h: Add and adjust comments.
11235         (CMD_LIST_AMBIGUOUS): Moved here.
11236         (help_cmd, help_cmd_list): Delete declarations.
11237
11238 2012-01-04  Doug Evans  <dje@google.com>
11239
11240         * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11241         All callers updated.
11242         (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11243         Replace all arguments with "per_cu".  All callers updated.
11244
11245         * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11246
11247         * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11248         New arg "per_cu".  All callers updated.
11249
11250         Delete #if 0'd out code.
11251         * language.c (binop_result_type): Delete.
11252         (simple_type, ordered_type, same_type, integral_type): Delete.
11253         (numeric_type, character_type, string_type, boolean_type): Delete.
11254         (float_type, structured_type): Delete.
11255         * language.h: Update.
11256
11257 2012-01-04  Tom Tromey  <tromey@redhat.com>
11258
11259         * python/py-value.c (valpy_binop): Initialize 'res_val'.
11260
11261 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11262
11263         * corefile.c (close_exec_file): Delete.
11264         (reopen_exec_file): Remove commented out code that seems related
11265         to close_exec_file, which is being deleted here.
11266         * inferior.h (close_exec_file): Delete.
11267         * fork-child.c (fork_inferior): Remove call to fork_inferior.
11268
11269 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11270
11271         * ada-lang.c: #include "cli/cli-utils.h".
11272         (get_selections): Use skip_spaces.
11273         (ada_get_next_arg): Use skip_spaces and skip_to_space.
11274         (catch_ada_exception_command_split): Use skip_spaces.
11275         (ada_decode_assert_location): Likewise.
11276
11277 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11278
11279         * linespec.c (decode_line_internal): Check for C++ or Java
11280         compound constructs only if the current language is C, C++
11281         or Java.
11282
11283 2012-01-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
11284
11285         Revert:
11286         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11287                     Joel Brobecker  <brobecker@adacore.com>
11288         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11289         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11290         3 times.
11291         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11292         fall through into AT_ENTRY_POINT.
11293         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
11294         DUMMY_ADDR with it.
11295         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11296         PPC_INSN_SIZE skip to 3 times.
11297
11298 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11299
11300         * linespec.c (add_minsym): Preserve function descriptors.
11301
11302 2012-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
11303
11304         * breakpoint.c (all_locations_are_pending): Consider locations
11305         in program spaces executing during startup pending as well.
11306
11307 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11308
11309         Copyright year update in most files of the GDB Project.
11310
11311 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11312
11313         * copyright.sh: Delete.
11314         * copyright.py: Rewrite.
11315
11316 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11317
11318         * gnulib/extra/update-copyright: New file, imported from gnulib.
11319
11320 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11321
11322         * README (Copyright and License Notices): New section.
11323
11324 2012-01-03  Tom Tromey  <tromey@redhat.com>
11325
11326         PR python/12533:
11327         * python/py-value.c (valpy_dereference, valpy_get_address
11328         valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11329         (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11330         (valpy_absolute, valpy_richcompare): Free intermediate values.
11331
11332 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
11333
11334         * ada-lang.c: Reformat the copyright notice.
11335
11336 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11337
11338         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11339         * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11340         (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11341         (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11342         Revert this part of:
11343         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11344         Build gdb directly from *.o files not using libgdb.a.
11345         * Makefile.in (COMMON_OBS): Remove solib-target.o.
11346
11347 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11348
11349         * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11350         gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11351         Reformat the copyright header.
11352
11353 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11354
11355         Revert this part of:
11356         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11357         Remove the gdbtui binary.
11358         * gdb.c (main): Remove args.interpreter_p initialization.
11359         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11360         * main.h (struct captured_main_args): Remove interpreter_p.
11361
11362 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11363
11364         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11365
11366 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11367
11368         * top.c (print_gdb_version): Update copyright year.
11369
11370 2012-01-02  Yao Qi  <yao@codesourcery.com>
11371
11372         * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11373
11374 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11375             Joel Brobecker  <brobecker@adacore.com>
11376
11377         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11378         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11379         3 times.
11380         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11381         fall through into AT_ENTRY_POINT.
11382         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
11383         DUMMY_ADDR with it.
11384         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11385         PPC_INSN_SIZE skip to 3 times.
11386
11387 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11388
11389         * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11390         the return value.
11391         * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11392
11393 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11394
11395         Build gdb directly from *.o files not using libgdb.a.
11396         * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11397         (COMMON_OBS): Remove solib-target.o.
11398         (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11399         (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11400         (LIBGDB_OBS, libgdb.a): Move it above.
11401         * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11402         (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11403         (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11404         (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11405         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11406         (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11407         (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11408         (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11409         (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11410         (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11411         (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11412         (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11413         (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11414         (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11415         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11416         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11417         (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11418         (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11419         (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11420         (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11421         (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11422         (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11423         (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11424         (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11425         (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11426         (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11427         (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11428
11429 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11430
11431         Remove the gdbtui binary.
11432         * .gitignore (/gdbtui): Remove.
11433         * Makefile.in (TUI): Remove.
11434         (SUBDIR_TUI_OBS): Remove tui-main.o.
11435         (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11436         (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11437         (tui-main.o): Remove.
11438         (all_object_files): Remove tui-main.o.
11439         * NEWS: New note for the gdbtui removal.
11440         * configure: Rebuilt.
11441         * configure.ac: No longer add all-tui, clean-tui, install-tui and
11442         uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11443         CONFIG_UNINSTALL respectively.
11444         * gdb.c (main): Remove args.interpreter_p initialization.
11445         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11446         * main.h (struct captured_main_args): Remove interpreter_p.
11447         * tui/tui-main.c: Remove.
11448
11449 2012-01-01  Doug Evans  <dje@google.com>
11450
11451         * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11452         (dwarf2_physname, read_import_statement): Ditto.
11453         (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11454         (process_structure_scope read_subroutine_type): Ditto.
11455         (read_typedef, load_partial_dies, read_partial_die): Ditto.
11456         (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11457         (dwarf2_fetch_die_location_block): Ditto.
11458         (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11459
11460         * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11461         All callers updated.
11462         (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11463         (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11464         (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11465
11466         * dwarf2read.c (load_cu): Move assert to more useful location.
11467
11468         * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11469         All callers updated.
11470
11471         * dwarf2read.c (dwarf2_per_objfile): Add comment.
11472         (dwarf2_elf_names): Minor reformat.
11473         (dwarf2_per_cu_data): Tweak comment.
11474         (dwarf2_read_section): Fix comment.
11475         (create_all_comp_units): Fix comment.
11476         (load_full_comp_unit): Fix comment.
11477         (process_full_comp_unit): Fix comment.
11478         (read_signatured_type): Fix comment.
11479
11480 For older changes see ChangeLog-2011.
11481 \f
11482 Local Variables:
11483 mode: change-log
11484 left-margin: 8
11485 fill-column: 74
11486 version-control: never
11487 coding: utf-8
11488 End: