2012-11-09 Yao Qi <yao@codesourcery.com>
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2012-11-09  Yao Qi  <yao@codesourcery.com>
2
3         * breakpoint.c: Declare set_tracepoint_count.
4         (install_breakpoint): Call set_tracepoint_count if B is a
5         tracepoint.
6         (trace_command): Don't call set_tracepoint_count.  Re-indent.
7         (strace_command, ftrace_command):
8         (create_tracepoint_from_upload): Likewise.
9
10 2012-11-09  Pedro Alves  <palves@redhat.com>
11
12         * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
13         (get_target_gdbarch) <gdbarch.h>: New function.
14         (startup_gdbarch) <gdbarch.h>: Declare.
15         <gdbarch.c> (target_gdbarch): Delete.
16         <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
17         current inferior's gdbarch.
18         <gdbarch.c> (get_target_gdbarch): New function.
19         * inferior.c: Include target-descriptions.h.
20         (free_inferior): Free target description info.
21         (add_inferior_with_spaces): Set the inferior's initial
22         architecture.
23         (clone_inferior_command): Copy the original inferior's target
24         description if it was user specified.
25         (initialize_inferiors): Add comment.
26         * inferior.h (struct target_desc_info): Forward declare.
27         (struct inferior) <gdbarch>: New field.
28         * linux-nat.c: Include target-descriptions.h.
29         (linux_child_follow_fork): Copy the parent's architecture and
30         target description to the child.
31         * target-descriptions.c: Include inferior.h.
32         (struct target_desc_info): New structure, holding the equivalents
33         of ...
34         (target_desc_fetched, current_target_desc)
35         (target_description_filename): ... these removed globals.
36         (get_tdesc_info, target_desc_info_from_user_p)
37         (copy_inferior_target_desc_info, target_desc_info_free): New.
38         (target_desc_fetched, current_target_desc)
39         (target_description_filename): Reimplemented as convenience
40         macros.
41         (tdesc_filename_cmd_string): New global.
42         (set_tdesc_filename_cmd): Copy the string manipulated by the "set
43         tdescs filename ..." commands to the per-inferior equivalent.
44         (show_tdesc_filename_cmd): Get the value to show from the
45         per-inferior description filename.
46         (_initilize_target_descriptions): Change the "set/show tdesc
47         filename" commands' variable.
48         * target-descriptions.h (struct target_desc, struct target_desc_info)
49         (struct inferior): Forward declare.
50         (target_find_description, target_clear_description)
51         (target_current_description): Adjust comments.
52         (copy_inferior_target_desc_info, target_desc_info_free)
53         (target_desc_info_from_user_p). Declare.
54
55 2012-11-08  Stephane Carrez  <Stephane.Carrez@gmail.com>
56
57         * tui/tui-hooks.c (tui_about_to_proceed): New function.
58         (tui_target_wait_hook): Remove.
59         (tui_install_hooks): Install the about_to_proceed observer.
60         (tui_remove_hooks): And remove it here.
61
62 2012-11-08  Tom Tromey  <tromey@redhat.com>
63
64         * linux-tdep.c (linux_make_siginfo_note): New function.
65         (linux_make_corefile_notes): Use it.
66         * corelow.c (get_core_siginfo): New function.
67         (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
68
69 2012-11-08  Tom Tromey  <tromey@redhat.com>
70
71         PR gdb/14704:
72         * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
73         (zlib_decompress_section): Remove.
74         (gdb_bfd_map_section): Only check for compressed section
75         in mmap case.  Use bfd_get_full_section_contents.
76         * osabi.c (check_note): Add 'sectsize' argument.  Read
77         section data.
78         (generic_elf_osabi_sniff_abi_tag_sections): Don't read
79         section data.  Update for check_note change.
80         * xcoffread.c (xcoff_initial_scan): Use
81         bfd_get_full_section_contents.
82         * py-auto-load.c (auto_load_section_scripts): Use
83         bfd_get_full_section_contents.
84         * contrib/cc-with-tweaks.sh: Add -Z option.
85
86 2012-11-08  Tom Tromey  <tromey@redhat.com>
87
88         * python/py-bpevent.c: Include defs.h.
89         * python/py-continueevent.c: Include defs.h.
90         * python/py-event.c: Include defs.h.
91         * python/py-event.h: Don't include defs.h.
92         * python/py-events.h: Don't include defs.h.
93         * python/py-evts.c: Include defs.h.
94         * python/py-exitedevent.c: Include defs.h.
95         * python/py-newobjfileevent.c: Include defs.h.
96         * python/py-signalevent.c: Include defs.h.
97         * python/py-stopevent.c: Include defs.h.
98         * python/py-threadevent.c: Include defs.h.
99
100 2012-11-08  Pierre Muller  <muller@sourceware.org>
101
102         * update-web-ari.sh (print_heading): Add number of files
103         checked.
104         (nb_files): New variable counting the number of sources
105         files found by gdb_find.sh script.
106         (debug_awk): New variable to allow extra debug output.
107         (indexes): Add more information if DEBUG_AWK is set.
108
109 2012-11-08  Edjunior Machado  <emachado@linux.vnet.ibm.com>
110
111         * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
112         ppc64_standard_linkage3): Mark ld r11 instructions as optional,
113         following the change in PLT call stubs on linker.
114
115 2012-11-08  Pierre Muller  <muller@sourceware.org>
116
117         * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
118         as default language.
119         (AWK): Use = instead of == for sh test to avoid warning.
120         (Linux rule): Correct [:digit] into [[:digit:]].
121         (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
122         (vasprintf rule): Adapt to common subdirectory moves.
123         (xasprintf rule): Idem.
124         (xvasprintf rule): Idem.
125         (var_boolean rule): Accept occurence in == or != test.
126
127         * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
128
129 2012-11-08  Stephane Carrez  <Stephane.Carrez@gmail.com>
130
131         * tui/tui-hooks.c (tui_inferior_exit): New function.
132         (tui_detach_hook): Remove.
133         (tui_install_hooks): Install the inferior exit observer.
134         (tui_remove_hooks): Remove it.
135
136 2012-11-08  Yao Qi  <yao@codesourcery.com>
137
138         PR gdb/14777.
139         * source.c (_initialize_source): Call add_com_alias to abbreviate
140         'forward-search' as 'fo'.
141
142 2012-11-07  Pedro Alves  <palves@redhat.com>
143
144         * arm-tdep.c: Make defs.h be the first include.
145         * coff-pe-read.c: Ditto.
146         * gnu-nat.c: Ditto.
147         * go32-nat.c: Ditto.
148         * i386-nat.c: Ditto.
149         * ppcnbsd-nat.c: Ditto.
150         * ada-varobj.h: Don't include defs.h.
151         * i386-darwin-tdep.h: Ditto.
152         * i386-nat.h: Ditto.
153
154 2012-11-07  Pedro Alves  <palves@redhat.com>
155
156         * MAINTAINERS: New FSF-appointed maintainers replace the Steering
157         Committee.
158
159 2012-11-07  Pierre Muller  <muller@sourceware.org>
160
161         * common/linux-osdata.c (dirent.h): ARI fix: Remove.
162         File already uses "gdb_dirent.h" header.
163
164 2012-11-07  Yao Qi  <yao@codesourcery.com>
165
166         * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
167         tracepoint_count'.
168
169 2012-11-06  Tom Tromey  <tromey@redhat.com>
170
171         * target.h (inferior_has_forked, inferior_has_vforked)
172         (inferior_has_execd, inferior_has_called_syscall): Remove
173         declarations.
174
175 2012-11-06  Pierre Muller  <muller@sourceware.org>
176
177         * remote.c (remote_insert_hw_breakpoint): ARI fix,
178         add missing internalization markup.
179
180 2012-11-06  Pedro Alves  <palves@redhat.com>
181
182         PR gdb/14810
183
184         * breakpoint.c (bpstat_stop_status): Skip disabled locations.
185
186 2012-11-06  Pierre Muller  <muller@sourceware.org>
187
188         * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
189         is not executable.
190
191 2012-11-05  Joel Brobecker  <brobecker@adacore.com>
192
193         * gnulib/update-gnulib.sh: New script.
194
195 2012-11-05  Stephane Carrez  <Stephane.Carrez@gmail.com>
196
197         * MAINTAINERS: Update my email address.
198
199 2012-11-05  Tom Tromey  <tromey@redhat.com>
200
201         * frame.c (put_frame_register): Don't use temporary buffer.
202
203 2012-11-05  Pedro Alves  <palves@redhat.com>
204
205         * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
206         child.  Clear 'pending_detach'.
207         * infrun.c (handle_vfork_child_exec_or_exit): Clear
208         'pending_detach' in the vfork parent.
209
210 2012-11-05  Doug Evans  <dje@google.com>
211
212         Add support for DWP files.  http://gcc.gnu.org/wiki/DebugFissionDWP
213         * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
214         * dwarf2read.c: #include "elf-bfd.h".
215         (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
216         (dwop_section_names): Renamed from dwo_section names.  All uses
217         updated.  Add entries for .debug_cu_index, .debug_tu_index.
218         (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
219         All uses updated.
220         (struct dwp_sections): New type.
221         (struct virtual_dwo_sections): New type.
222         (struct dwp_hash_table): New type.
223         (struct dwp_file): New type.
224         (init_cutu_and_read_dies): Ensure DWO info/types section has been
225         read in.  Handle DWOs coming from DWP files.
226         (lookup_dwo_file_slot): New function.
227         (dwarf2_locate_dwo_sections): Move definition closer to use.
228         (create_dwo_debug_info_hash_table_reader): Renamed from
229         create_debug_info_hash_table_reader.  All callers updated.
230         (create_dwo_debug_info_hash_table): Renamed from
231         create_debug_info_hash_table.  All callers updated.
232         (create_dwp_hash_table): New function.
233         (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
234         (lookup_dwo_in_dwp): New function.
235         (try_open_dwop_file): Renamed from try_open_dwo_file.  New parameter
236         is_dwp.  All callers updated.
237         (open_dwop_file): Renamed from open_dwo_file.  All callers updated.
238         (open_and_init_dwo_file): Renamed from init_dwo_file.
239         All callers updated.
240         (lookup_dwo_file): Delete.
241         (dwarf2_locate_dwp_sections): New function.
242         (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
243         (allocate_dwp_loaded_cutus_table): New function.
244         (open_and_init_dwp_file): New function.
245         (lookup_dwo_cutu): New function.
246         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
247
248 2012-11-03  Yao Qi  <yao@codesourcery.com>
249
250         Fix PR gdb/14617.
251         * breakpoint.c (trace_pass_set_count): Call
252         observer_notify_breakpoint_modified instead of
253         observer_notify_tracepoint_modified.
254         * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
255
256 2012-11-02  Tom Tromey  <tromey@redhat.com>
257
258         * breakpoint.c (catch_syscall_completer): Pass 'word' as second
259         argument to complete_on_enum.
260
261 2012-11-02  Tom Tromey  <tromey@redhat.com>
262
263         * configure: Rebuild.
264         * configure.ac (build_warnings): Add -Wempty-body.
265         * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
266         * remote.c (handle_notification): Use braces for empty 'else' body.
267         * s390-tdep.c (s390_analyze_prologue): Use braces for empty
268         'else' body.
269         * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
270         'else' body.
271         * solib-som.c (som_relocate_section_addresses): Use braces
272         for empty 'else' body.
273         * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
274         (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
275
276 2012-11-02  Pedro Alves  <palves@redhat.com>
277
278         PR gdb/14766
279
280         * infrun.c (handle_inferior_event)
281         <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
282         null_ptid before handling a vfork child exec or exit.  Switch to
283         the event ptid afterwards.
284
285 2012-11-02  Yao Qi  <yao@codesourcery.com>
286
287         * std-operator.def: Remove OP_LABELED.
288         * eval.c: Remove the declaration of 'get_label'.
289         (get_label): Remove.
290         (evaluate_struct_tuple): Remove code handling OP_LABELED.
291         Update comment.
292         Remove local variable 'variantno' and related code.
293         Replace 'substruct_type' with 'struct_type'.  Replace 'subfieldno'
294         with 'fieldno'.
295         * expprint.c (print_subexp_standard): Likewise.
296         (dump_subexp_body_standard): Likewise.
297         * parse.c (operator_length_standard): Likewise.
298
299 2012-11-01  Pierre Muller  <muller@ics.u-strasbg.fr>
300
301         Incorporate ARI web page generator into GDB sources.
302         * contrib/ari/create-web-ari-in-src.sh: New file.
303         * contrib/ari/gdb_ari.sh: New file.
304         * contrib/ari/gdb_find.sh: New file.
305         * contrib/ari/update-web-ari.sh: New file.
306
307 2012-10-31  Tom Tromey  <tromey@redhat.com>
308
309         * gdbarch.c: Rebuild.
310         * gdbarch.sh: Remove references to gdbarch_swap.
311         * corelow.c (core_open): Remove obsolete comment.
312
313 2012-10-31  Andrew Burgess  <aburgess@broadcom.com>
314
315         PR cli/14772
316         * c-typeprint.c (c_print_type): Don't print a space for vector
317         types, this is handled within the suffix.
318         (c_type_print_varspec_suffix): Add a space to vector suffix.
319
320 2012-10-26  Pedro Alves  <palves@redhat.com>
321
322         * amd64-tdep.c (amd64_relocate_instruction): Use
323         store_unsigned_integer instead of memcpy.
324         * i386-tdep.c (i386_relocate_instruction): Ditto.
325
326 2012-10-26  Pedro Alves  <palves@redhat.com>
327
328         * infrun.c (handle_inferior_event): Merge handling of
329         TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
330         switch case.
331
332 2012-10-26  Pedro Alves  <palves@redhat.com>
333
334         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
335         Remove comment.
336
337 2012-10-26  Pedro Alves  <palves@redhat.com>
338
339         * target.c (target_waitstatus_to_string): Handle
340         TARGET_WAITKIND_VFORK_DONE.
341
342 2012-10-26  Pedro Alves  <palves@redhat.com>
343
344         * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
345         as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
346
347 2012-10-24  Tristan Gingold  <gingold@adacore.com>
348
349         * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
350         Add comments.
351
352 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
353
354         * ravenscar-thread.c (ravenscar_wait): Only update the list
355         of threads and inferior_ptid if the inferior is still alive.
356
357 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
358
359         * ada-lang.c (is_known_support_routine): Use lbasename when
360         matching the symtab's filename against
361         known_runtime_file_name_patterns.
362
363 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
364
365         * ada-lang.c (ada_same_array_size_p): New function.
366         (ada_promote_array_of_integrals): New function.
367         (coerce_for_assign): Add handling of arrays where the elements
368         are integrals of a smaller size than the size of the target
369         array element type.
370
371 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
372
373         * doublest.c (convert_doublest_to_floatformat): Fix comparison
374         against maximum exponent value.
375
376 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
377
378         * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
379         "unwind-seh.c".
380
381 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
382
383         * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
384         strip typedef layer when computing the fixed type's field type,
385         only when computing its size.
386
387 2012-10-24  Mark Kettenis  <kettenis@gnu.org>
388
389         PR gdb/12783
390         * i386-tdep.c (i386_return_value): Handle complex double and long
391         double.
392
393 2012-10-24  Joel Brobecker  <brobecker@adacore.com>
394
395         * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
396         New local variable args_len.
397         Quote the name of the executable when computing the command line.
398
399 2012-10-23  Mark Kettenis  <kettenis@gnu.org>
400
401         PR gdb/12796
402         PR gdb/12798
403         PR gdb/12800
404         * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
405         AMD64_FTAG_REGNUM.
406         * amd64-tdep.c (amd64_classify): Classify complex types.
407         (amd64_return_value): Handle the COMPLEX_X87 class.
408
409 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
410
411         * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
412         (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
413
414 2012-10-23  Joel Brobecker  <brobecker@adacore.com>
415
416         * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
417         function.
418         (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
419         to amd64_windows_auto_wide_charset.
420
421 2012-10-23  Yao Qi  <yao@codesourcery.com>
422
423         * event-top.c (mark_async_signal_handler_wrapper): Remove.
424         * event-top.h: Remove its declaration.
425         (async_request_quit): Call mark_async_signal_handler instead of
426         mark_async_signal_handler_wrapper.
427         (async_do_nothing, async_disconnect): Likewise.
428         (async_stop_sig): Likewise.
429         * remote.c (handle_remote_sigint): Likewise.
430         (handle_remote_sigint_twice): Likewise.
431
432 2012-10-23  Yao Qi  <yao@codesourcery.com>
433
434         * event-top.c (sigint_token, sighup_token): Replace 'void *'
435         with 'static struct async_signal_handler *'.
436         (sighup_token, sigquit_token, sigstp_token): Likewise.
437
438 2012-10-22  Ali Anwar  <ali_anwar@codesourcery.com>
439
440         * gdbarch.sh (function_list): Use 'pstring' when printing
441         a variable which could return NULL.
442         * gdbarch.c: Regenerate.
443
444 2012-10-10  Joel Brobecker  <brobecker@adacore.com>
445             Tom Tromey  <tromey@redhat.com>
446
447         * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
448         inneffective if condition by gdb assertion.  Add function
449         description comment.
450
451 2012-10-19  Joel Brobecker  <brobecker@adacore.com>
452
453         * parser-defs.h (struct exp_descriptor): Document constraint
454         on return value for "op_name" callbacks.
455
456 2012-10-18  Tom Tromey  <tromey@redhat.com>
457
458         * tracepoint.c (print_one_static_tracepoint_marker): Constify.
459         * symtab.c (iterate_over_some_symtabs): Constify.
460         * source.h (symtab_to_fullname): Return 'const char *'.
461         * source.c (symtab_to_fullname): Return 'const char *'.
462         * python/py-symtab.c (stpy_fullname): Constify.
463         * cli/cli-cmds.c (edit_command): Constify.
464         * breakpoint.c (print_breakpoint_location)
465         (update_static_tracepoint): Constify.
466
467 2012-10-18  Tom Tromey  <tromey@redhat.com>
468
469         * breakpoint.c (compare_breakpoints): Fix comparison.
470
471 2012-10-18  Tom Tromey  <tromey@redhat.com>
472
473         * valprint.c (generic_emit_char, generic_printstr): Pass size of
474         gdb_wchar_t to convert_between_encodings.
475
476 2012-10-17  Yao Qi  <yao@codesourcery.com>
477
478         * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
479         more parameter 'inferior'.
480         * corefile.c (write_memory_with_notification): Caller update.
481
482         * mi/mi-cmd-var.c: Include "mi-main.h".
483         (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
484         to 1 and restore it later.
485         * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
486         and "data-write-memory-bytes.
487         * mi/mi-interp.c: Include objfiles.h.
488         (mi_interpreter_init): Call observer_attach_memory_changed.
489         (mi_memory_changed): New.
490         * mi/mi-main.h (struct mi_suppress_notification) <memory>:
491         New field.
492
493         * NEWS: Mention new MI notification "memory-changed".
494
495 2012-10-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
496
497         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
498
499 2012-10-15  Doug Evans  <dje@google.com>
500
501         New option -nh: inhibit loading of ~/.gdbinit.
502         * NEWS: Mention -nh.
503         * main.c (captured_main): Recognize and process -nh.
504         (print_gdb_help): Mention -nh.
505         * gdb.1: Mention -nh.  Remove erroneous docs on -nx behavior.
506
507 2012-10-15  H.J. Lu  <hongjiu.lu@intel.com>
508
509         PR backtrace/14646
510         PR gdb/14647
511         * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
512         pc_regnum_from_eax.
513         * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
514         nor pc_regnum_from_eax.
515         * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
516         nor pc_regnum_from_eax.
517
518 2012-10-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
519
520         Fix entry values resolving in inlined frames.
521         * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
522         gdbarch and caller_frame initialization later.  Skip INLINE_FRAME
523         entries of FRAME.
524
525 2012-10-15  Joel Brobecker  <brobecker@adacore.com>
526
527         * configure.ac: Build with -DMS_WIN64 if building with Python
528         enabled using GCC on amd64-windows.
529         * configure: Regenerate.
530
531 2012-10-15  Tom Tromey  <tromey@redhat.com>
532
533         PR python/14635:
534         * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
535         to Py_None.
536
537 2012-10-15  Tom Tromey  <tromey@redhat.com>
538
539         PR python/14634:
540         * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
541
542 2012-10-11  Andrew Burgess  <aburgess@broadcom.com>
543
544         * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
545         reset thread numbering back to 1.
546
547 2012-10-11  Doug Evans  <dje@google.com>
548
549         PR breakpoints/14643.
550         * linespec.c (struct ls_parser): New member keyword_ok.
551         (linespec_lexer_lex_string): Add comment.
552         (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
553         for one.
554         (parse_linespec): Set keyword_ok.
555
556 2012-10-10  Doug Evans  <dje@google.com>
557
558         * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
559         "0x" prefix on address in log message.
560
561         * dwarf2read.c (read_1_byte): Add const to buf parameter.
562         (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
563         (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
564         (lookup_dwo_file): Add const to dwo_name parameter.
565         (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
566
567 2012-10-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
568
569         Fix crash during stepping on ppc32.
570         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
571         SYM.
572
573 2012-10-03  Doug Evans  <dje@google.com>
574
575         PR symtab/14601
576         * buildsym.c (buildsym_init): Reset using_directives to NULL.
577
578 2012-10-02  Andrew Burgess  <aburgess@broadcom.com>
579
580         * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
581         output and use uint32_t not long to ensure 4 byte size.
582
583 2012-10-02  Joel Brobecker  <brobecker@adacore.com>
584
585         * rs6000-nat.c (add_vmap): Set "last" to "next" after having
586         unref'ed it.
587
588 2012-10-01  Andrew Burgess  <aburgess@broadcom.com>
589
590         * target.c (simple_search_memory): Include access length in
591         warning message.
592
593 2012-09-28  Nathan Miller  <nathanm2@us.ibm.com>
594             Edjunior Machado  <emachado@linux.vnet.ibm.com>
595
596         PR gdb/13989
597         * solib.c (solib_find): Prevent GDB from loading native libraries when
598         debugging a cross-target corefile.
599
600 2012-09-28  selven  <pcthegreat@gmail.com>
601
602         Make definition match declaration.
603
604         * regcache.c (regcache_register_status): Change return type to
605         enum register_status.
606
607 2012-09-28  Yao Qi  <yao@codesourcery.com>
608
609         * mi/mi-main.c (mi_cmd_data_write_memory): Call
610         write_memory_with_notification instead of write_memory.
611         (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
612         instead of target_write_memory.
613
614 2012-09-28  Yao Qi  <yao@codesourcery.com>
615
616         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
617         when the length of content is not an even number.
618
619 2012-09-27  Tom Tromey  <tromey@redhat.com>
620
621         Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
622         * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
623
624 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
625
626         * sol-thread.c (sol_thread_fetch_registers)
627         (sol_thread_store_registers): Delete commented out code.
628
629 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
630
631         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
632         Move these functions to sparc-sol-thread.c.
633         * sparc-sol-thread.c: New file.
634         * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
635         sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
636         configurations.
637         * configure: Regenerate.
638
639 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
640
641         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
642         Remove commented-out code.
643
644 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
645
646         * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
647         Enable this code for sparc hosts only.
648
649 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
650
651         * procfs.h (procfs_find_LDT_entry): Add declaration.
652         * sol-thread.c (ps_lgetLDT): Delete local declaration of
653         function procfs_find_LDT_entry.
654
655 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
656
657         * procfs.c (proc_get_LDT_entry): Make static.
658
659 2012-09-27  Joel Brobecker  <brobecker@adacore.com>
660
661         * procfs.c (proc_find_memory_regions): Fix declaration.
662
663 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
664
665         * amd64-tdep.c (amd64_return_value): Revert previous change
666         that used TYPE_LENGTH directly.
667         * bfin-tdep.c (bfin_extract_return_value): Likewise.
668         (bfin_store_return_value): Likewise.
669         * cris-tdep.c (cris_store_return_value): Likewise.
670         (cris_extract_return_value): Likewise.
671         * h8300-tdep.c (h8300_extract_return_value): Likewise.
672         * hppa-tdep.c (hppa64_return_value): Likewise.
673         * lm32-tdep.c (lm32_store_return_value): Likewise.
674         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
675         * spu-tdep.c (spu_value_from_register): Likewise.
676         * vax-tdep.c (vax_return_value): Likewise.
677
678 2012-09-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
679
680         * gdbtypes.c (lookup_array_range_type): Expand parameters
681         LOW_BOUND and HIGH_BOUND to LONGEST.
682         (lookup_string_range_type): Likewise.
683         * gdbtypes.h (lookup_array_range_type): Likewise.
684         (lookup_string_range_type): Likewise.
685         * valops.c (value_cstring): Expand parameter LEN to ssize_t.
686         Expand HIGHBOUND to ssize_t.
687         (value_string): Likewise.
688         * value.h (value_cstring): Expand parameter LEN to ssize_t.
689         (value_string): Likewise.
690
691 2012-09-27  Yao Qi  <yao@codesourcery.com>
692
693         PR breakpoints/13898
694         * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
695         * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
696         per breakpoint type.
697
698 2012-09-26  Pierre Muller  <muller@ics.u-strasbg.fr>
699
700         * procfs.c: Add gdb_bfd header.
701         * rs6000-nat.c: Likewise.
702         * solib-pa64.c: Likewise.
703         * spu-linux-nat.c: Likewise.
704         * windows-nat.c: Likewise.
705
706 2012-09-26  Tom Tromey  <tromey@redhat.com>
707
708         * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
709
710 2012-09-26  Tom Tromey  <tromey@redhat.com>
711
712         * dwarf2read.c (mark_common_block_symbol_computed): New function.
713         (read_common_block): Handle child DIEs with
714         DW_AT_data_member_location.
715         (new_symbol_full): Add special case for common blocks.
716
717 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
718             Tom Tromey  <tromey@redhat.com>
719
720         * dwarf2read.c (read_common_block): Rewrite.
721         (new_symbol_full): Handle DW_TAG_common_block.
722         * f-lang.c (head_common_list, find_common_for_function):
723         Remove.
724         * f-lang.h (struct common_entry, struct saved_f77_common,
725         SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
726         COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
727         BLANK_COMMON_NAME_LOCAL): Remove.
728         (struct common_block): New.
729         * f-valprint.c (list_all_visible_commons): Remove.
730         (info_common_command_for_block): New function.
731         (info_common_command): Use it.
732         * stack.c (iterate_over_block_locals): Special case for
733         COMMON_BLOCK_DOMAIN.
734         * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
735         constant.
736         (struct general_symbol_info) <value.common_block>: New field.
737         (SYMBOL_VALUE_COMMON_BLOCK): New define.
738
739 2012-09-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
740             Tom Tromey  <tromey@redhat.com>
741
742         * f-lang.c (allocate_saved_bf_node,
743         allocate_saved_function_node, allocate_saved_f77_common_node,
744         allocate_common_entry_node, tail_common_list, current_common,
745         saved_bf_list, saved_bf_list_end, current_head_bf_list,
746         tmp_bf_ptr, add_common_block, add_common_entry,
747         find_first_common_named, patch_common_entries,
748         patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
749         global_remote_debug, get_bf_for_fcn, saved_function_list,
750         saved_function_list_end, clear_function_list, struct saved_fcn,
751         struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
752         SAVED_BF, SAVED_BF_PTR): Remove.
753         * f-lang.h (tail_common_list, current_common,
754         UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
755         BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
756         DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
757         real_main_c_value): Remove.
758         * f-valprint.c (there_is_a_visible_common_named): Remove.
759
760 2012-09-26  Andrew Burgess  <aburgess@broadcom.com>
761
762         * breakpoint.c (update_global_location_list): Ignore previous
763         duplicate status of a breakpoint when starting a new scan for
764         duplicate breakpoints.
765
766 2012-09-26  Karthik Bhat  <kv.bhat@samsung.com>
767         PR breakpoints/14419
768         * arm-tdep.c (arm_skip_prologue): Extending producer check to
769         support LLVM compiler.
770
771 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
772
773         * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
774         * bfin-tdep.c (bfin_extract_return_value): Likewise.
775         (bfin_store_return_value): Likewise.
776         * cris-tdep.c (cris_store_return_value): Likewise.
777         (cris_extract_return_value): Likewise.
778         * h8300-tdep.c (h8300_extract_return_value): Likewise.
779         * hppa-tdep.c (hppa64_return_value): Likewise.
780         * lm32-tdep.c (lm32_store_return_value): Likewise.
781         * microblaze-tdep.c (microblaze_store_return_value): Likewise.
782         * spu-tdep.c (spu_value_from_register): Likewise.
783         * vax-tdep.c (vax_return_value): Likewise.
784
785 2012-09-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
786
787         * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
788         parameter LEN to ssize_t.
789
790 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
791
792         * ada-valprint.c (ada_val_print_1): Eliminate single-use
793         variable LEN.
794         * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
795         directly.
796         (alpha_store_return_value): Likewise.
797         * amd64-tdep.c (amd64_classify_aggregate): Likewise.
798         (amd64_push_arguments): Likewise.
799         * ax-gdb.c (gen_trace_static_fields): Likewise.
800         (gen_traced_pop): Likewise.
801         * bfin-tdep.c (bfin_push_dummy_call): Likewise.
802         * breakpoint.c (update_watchpoint): Likewise.
803         * findcmd.c (parse_find_args): Use local variable for type
804         instead of length.
805         * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
806         * h8300-tdep.c (h8300h_extract_return_value): Likewise.
807         (h8300_store_return_value): Likewise.
808         * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
809         Use i386_darwin_arg_type_alignment directly.
810         * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
811         * lm32-tdep.c (lm32_push_dummy_call): Likewise.
812         * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
813         (m68hc11_extract_return_value): Likewise.
814         * mep-tdep.c (mep_push_dummy_call): Likewise.
815         * printcmd.c (float_type_from_length): Likewise.
816         * s390-tdep.c (s390_value_from_register): Likewise.
817         * stack.c (read_frame_arg): Likewise.
818         * tracepoint.c (encode_actions_1): Likewise.
819         * valops.c (value_fetch_lazy): Use local variable for type
820         instead of length.  Use TYPE_LENGTH directly.
821         * value.c (value_contents_equal): Use TYPE_LENGTH directly.
822
823 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
824
825         * symtab.c (skip_prologue_sal): Fix typo in comment.
826
827 2012-09-25  Joel Brobecker  <brobecker@adacore.com>
828
829         * linespec.c (create_sals_line_offset): Fix typo in comment.
830
831 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
832
833         * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
834         use plongest to print the array size.
835
836 2012-09-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
837
838         * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
839         * p-valprint.c (pascal_type_print_base): Likewise.
840
841 2012-09-22  Yao Qi  <yao@codesourcery.com>
842
843         * remote.c (remote_get_trace_status): Remove setting default
844         values of fields of 'ts'.
845
846 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
847
848         Fix internal error on canonicalization of clang types.
849         * cp-name-parser.y (operator): New comment at make_operator call for
850         new, delete, new[] and delete[].
851         (exp): Use "sizeof ".  Add new comment at make_operator call.
852
853 2012-09-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
854
855         Fix disassemble without parameters in tailcall frame.
856         * cli/cli-cmds.c (disassemble_current_function): Use
857         get_frame_address_in_block.
858
859 2012-09-21  Tom Tromey  <tromey@redhat.com>
860
861         * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
862         TYPE_CODE_UNION>: Unify, removing a goto.
863
864 2012-09-21  Tom Tromey  <tromey@redhat.com>
865
866         * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
867
868 2012-09-21  Andrew Burgess  <aburgess@broadcom.com>
869
870         * findvar.c (read_frame_register_value): Mark the result value as
871         optimized out if any of the input registers have been optimized out.
872
873 2012-09-21  Andreas Schwab  <schwab@linux-m68k.org>
874
875         * python/python.c (finalize_python): Only define if HAVE_PYTHON.
876
877 2012-09-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
878
879         * eval.c (evaluate_subexp_standard): Eliminate single-use
880         variable LOWER.
881
882 2012-09-21  Yao Qi  <yao@codesourcery.com>
883
884         * mi/mi-interp.c: Declare mi_record_changed.
885         (mi_interpreter_init): Call observer_attach_record_changed.
886         (mi_record_changed): New.
887         * record.c (record_open): Call observer_notify_record_changed.
888         (cmd_record_stop): Call observer_notify_record_changed.
889         * NEWS: Mention it.
890
891 2012-09-20  Tom Tromey  <tromey@redhat.com>
892
893         * NEWS: Update.
894         * python/python.c (finalize_python): New function.
895         (_initialize_python): Make a final cleanup.
896
897 2012-09-19  Doug Evans  <dje@google.com>
898
899         * buildsym.h (param_symbols): Delete, unused.
900         (context_stack): Delete member "params", unused.
901         * buildsym.c (push_context): Update.
902         * dwarf2read.c (read_func_scope): Update.
903
904 2012-09-19  Thomas Schwinge  <thomas@codesourcery.com>
905
906         * sh-tdep.c (sh_register_convert_to_virtual)
907         (sh_register_convert_to_raw): Add a gdbarch parameter.  Update
908         all callers.  Just do a memcpy if not the little-endian case.
909
910         * h8300-tdep.c (h8300_gdbarch_init): Invoke
911         set_gdbarch_double_format and set_gdbarch_long_double_format.
912         * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
913         set_gdbarch_double_format.
914         * sh-tdep.c (sh_gdbarch_init): Likewise.
915
916         * NEWS: Document the removal of SH's 'regs' command.
917         * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
918         command.
919
920 2012-09-18  Sergio Durigan Junior  <sergiodj@redhat.com>
921
922         * infcmd.c (_initialize_infcmd): Register `j' as an alias for
923         `jump'.
924
925 2012-09-18  Joel Brobecker  <brobecker@adacore.com>
926
927         * linespec.c (iterate_over_all_matching_symtabs): Use the correct
928         language when iterating over symbols.
929
930 2012-09-18  Yao Qi  <yao@codesourcery.com>
931
932         * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
933         (mi_interpreter_init): Call observer_attach_tsv_created and
934         observer_attach_tsv_deleted.
935         (mi_tsv_created, mi_tsv_deleted): New.
936         * tracepoint.c (delete_trace_state_variable): Call
937         observer_notify_tsv_deleted.
938         (trace_variable_command): Call observer_notify_tsv_created.
939         (delete_trace_variable_command): Call
940         observer_notify_tsv_deleted.
941         (create_tsv_from_upload): Call observer_notify_tsv_created.
942         * NEWS: Mention it.
943
944 2012-09-18  Yao Qi  <yao@codesourcery.com>
945
946         * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
947         if traceframe changed.
948         * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
949         "trace-find".
950         * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
951         (mi_interpreter_init): Hook mi_traceframe_changed to observer
952         'traceframe_changed'.
953         (mi_traceframe_changed): New.
954         * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
955         New field.
956         * NEWS: Mention the new MI notification.
957
958 2012-09-17  Mike Wrighton  <wrighton@codesourcery.com>
959
960         * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
961
962 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
963
964         * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
965         (linux_ptrace_test_ret_to_nx): Extend comment for x86_64.  Change
966         __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
967         Extend code also for PaX support.  Convert all gdb_assert to warning
968         calls.
969
970 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
971
972         Implement auto-load user conveniences suggested by Doug Evans.
973         * auto-load.c: Include top.h.
974         (file_is_auto_load_safe): New variable advice_printed.  Print advice.
975         (_initialize_auto_load): New variable scripts_directory_help.  Mention
976         GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
977         scripts-directory.  Document in online help one can use also files for
978         set auto-load safe-path.
979         * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
980         * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
981
982 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
983
984         * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
985         of LEN.
986
987 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
988
989         * m2-valprint.c (m2_print_array_contents): Eliminate variable
990         ELTLEN and use TYPE_LENGTH directly.
991         (m2_val_print): Likewise.
992         * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
993         variable LEN and use TYPE_LENGTH directly.
994         (m68k_svr4_store_return_value): Likewise.
995         * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
996         ARGLEN and use TYPE_LENGTH directly.
997         (mips_o64_push_dummy_call): Likewise.
998         * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
999         variable LENGTH and use TYPE_LENGTH directly.
1000         (s390_function_arg_float): Likewise.
1001         (s390_function_arg_integer): Likewise.
1002         (s390_push_dummy_call): Likewise.
1003         (s390_return_value_convention): Likewise.
1004         * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1005         TYPE_LENGTH directly.
1006
1007 2012-09-17  Yao Qi  <yao@codesourcery.com>
1008
1009         * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1010         Update comment to add_setshow_integer_cmd.
1011         * cli/cli-setshow.c (do_set_command): Handle case
1012         'var_zuinteger_unlimited'.
1013         (do_show_command): Likewise.
1014         * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1015         for command 'remotetimeout'.
1016         * command.h (enum var_types): New zuinteger_unlimited.  Update comment
1017         to var_integer.
1018         * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1019         for command 'set listsize'.
1020
1021 2012-09-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
1022
1023         * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1024         variable LEN.
1025
1026 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1027
1028         PR 14119
1029         * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1030         (frame_pop): Drop also TAILCALL_FRAME frames.
1031         * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1032
1033 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1034             Pedro Alves  <palves@redhat.com>
1035
1036         PR 14548
1037         * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1038         function start if we are already at function start.  Both for
1039         reverse-next and for reverse-step into function without line number
1040         info.
1041
1042 2012-09-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
1043
1044         Code cleanup - rename 'inline' depth to 'artificial' depth.
1045         * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1046         frame_id_artificial_p, extend the comment.
1047         * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1048         * frame.c (fprint_frame_id): Rename at a user, change debug output
1049         text to "artificial=".
1050         (skip_inlined_frames): Rename to ...
1051         (skip_artificial_frames): ... here.  Extend the comment.
1052         (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1053         (frame_id_inlined_p): Rename to ...
1054         (frame_id_artificial_p): ... here.  Rename at a user.
1055         (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1056         (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1057         at a user.
1058         * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1059         Extend the comment.
1060         (frame_id_inlined_p): Rename to ...
1061         (frame_id_artificial_p): ... here.
1062         * inline-frame.c (inline_frame_this_id): Rename at a user.
1063
1064 2012-09-14  Andrew Burgess  <aburgess@broadcom.com>
1065
1066         * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1067         vector variables using vector_size syntax rather than array
1068         syntax.
1069
1070 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
1071
1072         * valarith.c (value_concat): Replace unsafe ALLOCA with
1073         XMALLOC/XFREE.
1074
1075 2012-09-14  Pedro Alves  <palves@redhat.com>
1076
1077         * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1078
1079 2012-09-14  Khoo Yit Phang  <khooyp@cs.umd.edu>
1080
1081         Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1082         * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1083         data-directory as appropriate.
1084
1085 2012-09-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
1086
1087         * printcmd.c (ui_printf): Eliminate single-use variable
1088         PARAM_LEN.
1089
1090 2012-09-14  Yao Qi  <yao@codesourcery.com>
1091             Pedro Alves  <palves@redhat.com>
1092
1093         * valops.c (value_assign): Move observer_notify_target_changed
1094         below to replace reinit_frame_cache.
1095
1096 2012-09-13  Khoo Yit Phang  <khooyp@cs.umd.edu>
1097
1098         Refactor Python "gdb" module into a proper Python package, by
1099         introducing a new "_gdb" module for code implemented in C, and
1100         using reload/__import__ instead of exec.
1101         * python/lib/gdb/__init__.py: Import * from _gdb.
1102         (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1103         prompt_hook, sys.argv): Moved from finish_python_initialization.
1104         (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1105         (packages, auto_load_packages): New list and function replacing
1106         module_dict and auto-loading code, using __file__ instead of
1107         gdb.PYTHONDIR and reload/__import__ instead of exec.
1108         (GdbSetPythonDirectory): Replacing function of the same name
1109         from finish_python_initialization, using reload/__import__ instead
1110         of exec, as well as call auto_load_packages.
1111         * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1112         gdb_python_module and not gdb_module.
1113         * python/python-internal.h (gdb_python_module): Declare.
1114         * python/python.c (gdb_python_module): New global.
1115         (before_prompt_hook): Check gdb_python_module and not gdb_module.
1116         (_initialize_python): Rename gdb module to _gdb.
1117         Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1118         (finish_python_initialization): Move Python code to
1119         lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1120         __main__.
1121
1122 2012-09-13  Pedro Alves  <palves@redhat.com>
1123
1124         * Makefile.in (COMMON_OBS): Add registry.o.
1125         * registry.c: New file.
1126         * registry.h (struct registry_container): Declare.
1127         (registry_data_callback): New typedef.
1128         (struct registry_data, struct registry_data_registration, struct
1129         registry_data_registry): New type.
1130         (register_data_with_cleanup, registry_alloc_data)
1131         (registry_callback_adaptor, registry_clear_data)
1132         (registry_container_free_data, registry_set_data, registry_data):
1133         Declare.
1134         (DEFINE_REGISTRY): Refactor structures and functions as shims over
1135         the new common structures and functions.
1136         (DECLARE_REGISTRY): Declare struct TAG ## _data.  Use the tagged
1137         callback typedefs.
1138
1139 2012-09-12  Mike Wrighton  <wrighton@codesourcery.com>
1140
1141         * remote.c (remote_insert_hw_breakpoint): Throw exception if
1142         there is an error inserting hardware breakpoints and use the
1143         error message from the target.
1144
1145         * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1146         Catch this exception and print the error message contained within. Do not
1147         print the default hardware error breakpoint message in this case.
1148
1149 2012-09-12  Doug Evans  <dje@google.com>
1150
1151         * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1152         cu == NULL.
1153
1154 2012-09-11  Doug Evans  <dje@google.com>
1155
1156         * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1157         .gdb_index symbol attributes if there are none.
1158
1159 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
1160
1161         * symtab.h (struct minimal_symbol) [has_size]: New field.
1162         (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1163         (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1164         * printcmd.c (build_address_symbolic): Only filter out zero-sized
1165         minimal symbols if the symbol's size is actually known.
1166         * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1167         of msymbol's size field.  Add comment.
1168         * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1169         SET_MSYMBOL_SIZE to set the minimal symbol size.
1170
1171 2012-09-11  Joel Brobecker  <brobecker@adacore.com>
1172
1173         * minsyms.c (install_minimal_symbols): Use memset to fill entire
1174         minimal_symbol struct object, rather than setting some of its
1175         fields one by one.
1176
1177 2012-09-11  Andrew Burgess  <aburgess@broadcom.com>
1178
1179         * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1180         passed_a_ptr flag when displaying typedef types.
1181
1182 2012-09-10  Joel Brobecker  <brobecker@adacore.com>
1183
1184         * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1185         the optimized_out flag is preserved.
1186
1187 2012-09-10  Anthony Green  <green@moxielogic.com>
1188
1189         * moxie-tdep.c (moxie_analyze_prologue): Update for function
1190         prologue changes in GCC.
1191
1192 2012-09-10  Keith Seitz  <keiths@redhat.com>
1193
1194         PR gdb/13483
1195         * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1196         (BOOL_CONVERSION_BADNESS): ... this.
1197         * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1198         (rank_one_type): Allow all boolean conversions
1199         permitted by the standard.
1200
1201 2012-09-06  Tom Tromey  <tromey@redhat.com>
1202
1203         * python/py-newobjfileevent.c (create_new_objfile_event_object):
1204         Don't decref py_objfile.
1205
1206 2012-09-02  Khoo Yit Phang  <khooyp@cs.umd.edu>
1207
1208         Do not enable -lmcheck by default when Python is enabled with
1209         threading support.
1210         * configure.ac: (python_has_threads) New variable, by testing
1211         if WITH_THREAD is defined in Python.h.
1212         Move --enable-lmcheck after --with-python.
1213         Do not enable -lmcheck by default if python_has_threads=yes.
1214         Warn if --enable-lmcheck and python_has_threads=yes.
1215         * configure: Regenerate.
1216
1217 2012-08-31  Yao Qi  <yao@codesourcery.com>
1218
1219         * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1220         DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1221         Update some commands.
1222         * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1223         * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1224         to 1.
1225
1226 2012-08-31  Yao Qi  <yao@codesourcery.com>
1227
1228         * mi/mi-cmds.c (mi_cmds): Add 'static'.
1229
1230 2012-08-30  Khoo Yit Phang  <khooyp@cs.umd.edu>
1231
1232         * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1233
1234 2012-08-29  Doug Evans  <dje@google.com>
1235
1236         * main.c (print_gdb_help): Remove reference to
1237         --use-deprecated-index-sections.
1238
1239 2012-08-28  Yao Qi  <yao@codesourcery.com>
1240
1241         * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1242         (init_cmds): Call add_setshow_uinteger_cmd for command
1243         'max-user-call-depth'.
1244         * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1245         declaration of 'max_user_call_depth'.
1246         * frame.c (backtrace_limit): Add 'unsigned'.
1247         (_initialize_frame): Call add_setshow_uinteger_cmd for command
1248         'limit'.
1249         * remote.c (remoteaddresssize): Add 'unsigned'.
1250         (remote_address_masked): Change local var 'address_size' to
1251         'unsigned'.
1252         (_initialize_remote): Call add_setshow_uinteger_cmd for
1253         'remoteaddresssize'.
1254         * top.c (history_size): Add 'unsigned'.
1255         (show_commands): Change local variables to 'unsigned'.
1256         (set_history_size_command): Don't check history_size is negative.
1257         Adjust the condition to call unstifle_history and set history_size
1258         to UNIT_MAX.
1259
1260 2012-08-28  Pedro Alves  <palves@redhat.com>
1261
1262         PR gdb/14428
1263
1264         * infcmd.c (default_print_one_register_info): New, factored out
1265         from default_print_registers_info.
1266         (default_print_registers_info): Use it.  Mark value unavailable if
1267         necessary.
1268         (registers_info): Print user registers with
1269         default_print_one_register_info.
1270
1271 2010-08-27  H.J. Lu  <hongjiu.lu@intel.com>
1272
1273         PR tui/14486
1274         * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1275         is not NULL before referencing it.
1276
1277 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1278
1279         * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1280         variable pc.  Call find_pc_line instead of find_pc_overlay, restore
1281         original PC for it.
1282
1283 2012-08-27  Eli Zaretskii  <eliz@gnu.org>
1284             Jan Kratochvil  <jan.kratochvil@redhat.com>
1285
1286         * auto-load.c (auto_load_objfile_script): Rename to ...
1287         (auto_load_objfile_script_1): ... here, change variable realname to
1288         parameter realname, document it, add return value, add variable retval.
1289         (auto_load_objfile_script): New function.
1290
1291 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1292
1293         * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1294         followed by a whitespace.
1295
1296 2012-08-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
1297
1298         PR gdb/14494.
1299         * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1300         Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1301         (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1302         here.
1303
1304 2012-08-27  Wei-cheng Wang  <cole945@gmail.com>
1305
1306         * memattr.c (create_mem_region): Fix memory region overlapping
1307         checking.
1308
1309 2012-08-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
1310
1311         * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1312         with xmalloc/cleanup.
1313         * mt-tdep.c (mt_push_dummy_call): Likewise.
1314         * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1315         * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1316
1317 2012-08-24  Yao Qi  <yao@codesourcery.com>
1318
1319         * jv-exp.y (push_expression_name): Add "." at the end of error
1320         message.
1321
1322 2012-08-23  Khoo Yit Phang <khooyp@cs.umd.edu>
1323
1324         Document how to return from "python-interactive" to GDB.
1325         * python/python.c (_initialize_python): Update documentation.
1326
1327 2012-08-23  Pedro Alves  <palves@redhat.com>
1328
1329         * infrun.c (_initialize_infrun) <handle command help text>:
1330         Mention that multiple signals are supported.
1331
1332 2012-08-23  Pedro Alves  <palves@redhat.com>
1333
1334         * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1335         string.
1336
1337 2012-08-23  Yao Qi  <yao@codesourcery.com>
1338
1339         * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1340         (tfind_1): Don't call registers_changed, set_traceframe_num,
1341         and clear_traceframe_info.
1342         Call set_current_traceframe.
1343         (set_current_traceframe): call set_traceframe_num.
1344
1345 2012-08-22  Sergio Durigan Junior  <sergiodj@redhat.com>
1346
1347         * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1348         `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1349
1350 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
1351
1352         Enable readline in Python in a GDB-specific way and block the
1353         standard Python readline module to prevent conflicts with GDB.
1354         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1355         (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1356         (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1357         * python/py-gdb-readline.c: New file.
1358         * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1359         prototype.
1360         * python/python.c (_initialize_python): Call
1361         gdbpy_initialize_gdb_readline.
1362
1363 2012-08-22  Keith Seitz  <keiths@redhat.com>
1364
1365         * defs.h: Include build-gnulib/config.h
1366
1367 2012-08-22  Joseph Myers  <joseph@codesourcery.com>
1368
1369         * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1370         and blx pc.
1371
1372 2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
1373
1374         Add a new "python-interactive" command that starts a standard
1375         Python interactive prompt with "pi" as alias, and add "py" as
1376         an alias to "python".
1377         * NEWS: Mention the new commands.
1378         * python/python.c (eval_python_command): New function.
1379         (python_interactive_command): For "python-interactive" with
1380         arguments, call eval_python_command.  For "python-interactive"
1381         without arguments, call PyRun_InteractiveLoop.
1382         (_initialize_python): Add "python-interactive" command with
1383         "pi" as alias, and add "py" as an alias to "python".
1384
1385 2012-08-22  Tom Tromey  <tromey@redhat.com>
1386
1387         * defs.h (quit_flag): Don't declare.
1388         (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1389         (QUIT): Use new functions.
1390         * event-top.c (command_handler): Use clear_quit_flag.
1391         (handle_sigint): Use set_quit_flag.
1392         (async_request_quit): Use check_quit_flag.  Don't check
1393         immediate_quit.
1394         * exceptions.c (throw_exception): Use clear_quit_flag.
1395         * main.c (captured_main): Use clear_quit_flag.
1396         * python/python.c (clear_quit_flag, set_quit_flag)
1397         (check_quit_flag): New functions.
1398         * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1399         clear_quit_flag.
1400         * remote.c (remote_wait_as): Use check_quit_flag,
1401         clear_quit_flag.
1402         (remote_start_remote): Call QUIT.
1403         * symfile.c (load_progress): Use check_quit_flag.
1404         * top.c (command_loop): Use clear_quit_flag.
1405         (command_line_input): Call QUIT.
1406         * utils.c (quit_flag): Conditionally define.
1407         (clear_quit_flag, check_quit_flag, set_quit_flag): New
1408         functions.
1409         (prompt_for_continue): Call QUIT.  Use quit, not
1410         async_request_quit.
1411         * remote-mips.c (mips_expect_timeout): Call QUIT.
1412         * monitor.c (monitor_expect): Call QUIT.
1413
1414 2012-08-22  Tom Tromey  <tromey@redhat.com>
1415
1416         * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1417         (async_init_signals): Update.
1418         * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1419         (SIGWINCH_HANDLER_BODY): Remove.
1420
1421 2012-08-22  Tom Tromey  <tromey@redhat.com>
1422
1423         * jit.c (jit_object_close_impl): Don't malloc the objfile
1424         name.
1425         * objfiles.c (allocate_objfile): Don't malloc the objfile
1426         name.
1427         (free_objfile): Don't free the objfile name.
1428         * objfiles.h (struct objfile) <name>: Update comment.
1429         * symfile.c (reread_symbols): Fix reference counting.  Don't
1430         malloc objfile name.
1431
1432 2012-08-22  Tom Tromey  <tromey@redhat.com>
1433
1434         * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1435         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1436         (symfile_bfd_open): Likewise.
1437         (generic_load): Likewise.
1438         * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1439         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1440         gdb_bfd_open.
1441         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1442         Use gdb_bfd_open.
1443         * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1444         * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1445         (pmon_load_fast): Likewise.
1446         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1447         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1448         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1449         (macho_check_dsym): Likewise.
1450         * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1451         (m32r_upload_command): Likewise.
1452         * gdb_bfd.h (gdb_bfd_cache): Declare.
1453         * gdb_bfd.c (struct gdb_bfd_data): New.
1454         (gdb_bfd_cache): New global.
1455         (struct gdb_bfd_cache_search): New.
1456         (hash_bfd): New function.
1457         (eq_bfd): Likewise.
1458         (gdb_bfd_open): Likewise.
1459         (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1460         (gdb_bfd_unref): Remove closed BFD from cache.  Update for
1461         gdb_bfd_data.
1462         * exec.c (exec_file_attach): Use gdb_bfd_open.
1463         * dsrec.c (load_srec): Use gdb_bfd_open.
1464
1465 2012-08-22  Tom Tromey  <tromey@redhat.com>
1466
1467         * dwarf2read.c (macro_start_file): Update.
1468         * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1469         (free_objfile_per_bfd_storage): Destroy macro_cache.
1470         (allocate_objfile, free_objfile): Update.
1471         * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1472         New field.
1473         (struct objfile) <macro_cache>: Remove.
1474         * symfile.c (reread_symbols): Update.
1475         * symmisc.c (print_symbol_bcache_statistics): Update.
1476         (print_objfile_statistics): Update.
1477
1478 2012-08-22  Tom Tromey  <tromey@redhat.com>
1479
1480         * elfread.c (elf_symtab_read): Update.
1481         * objfiles.c (objfiles_bfd_data): New global.
1482         (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1483         (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1484         (allocate_objfile, free_objfile): Update.
1485         (_initialize_objfiles): Initialize objfiles_bfd_data.
1486         * objfiles.h (struct objfile_per_bfd_storage): New.
1487         (struct objfile) <per_bfd>: New field.
1488         <filename_cache>: Remove.
1489         (set_objfile_per_bfd): Declare.
1490         * symfile.c (reread_symbols): Update.  Call
1491         set_objfile_per_bfd.
1492         (allocate_symtab): Update.
1493         * symmisc.c (print_symbol_bcache_statistics): Update.
1494         (print_objfile_statistics): Print the size of the BFD obstack.
1495
1496 2012-08-22  Tom Tromey  <tromey@redhat.com>
1497
1498         * gdb_bfd.h: Include registry.h.  Use DECLARE_REGISTRY.
1499         * gdb_bfd.c: Use DEFINE_REGISTRY.
1500         (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1501         (gdb_bfd_ref): Call bfd_alloc_data.
1502         (gdb_bfd_unref): Call bfd_free_data.
1503
1504 2012-08-22  Tom Tromey  <tromey@redhat.com>
1505
1506         * registry.h (struct registry_fields): New.
1507         (REGISTRY_FIELDS): Redefine.
1508         (REGISTRY_ACCESS_FIELD): New macro.
1509         (DEFINE_REGISTRY): Add ACCESS argument.  Update defined
1510         functions.
1511
1512 2012-08-22  Tom Tromey  <tromey@redhat.com>
1513
1514         * auto-load.c (_initialize_auto_load): Update.
1515         * solib-svr4.c (_initialize_svr4_solib): Update
1516         * solib-dsbt.c (_initialize_dsbt_solib): Update.
1517         * solib-darwin.c (_initialize_darwin_solib): Update.
1518         * registry.h: New file.
1519         * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1520         * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1521         * progspace.h: Include registry.h.  Use DECLARE_REGISTRY.
1522         (register_program_space_data_with_cleanup)
1523         (register_program_space_data, program_space_alloc_data)
1524         (clear_program_space_data, set_program_space_data)
1525         (program_space_data): Don't declare.
1526         * progspace.c: Use DEFINE_REGISTRY.
1527         (struct program_space_data, struct
1528         program_space_data_registration, struct
1529         program_space_data_registry, program_space_data_registry)
1530         (register_program_space_data_with_cleanup)
1531         (register_program_space_data, program_space_alloc_data)
1532         (program_space_free_data, clear_program_space_data)
1533         (set_program_space_data, program_space_data): Remove.
1534         * objfiles.h: Include registry.h.  Use DECLARE_REGISTRY.
1535         (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1536         (register_objfile_data_with_cleanup, register_objfile_data)
1537         (clear_objfile_data, set_objfile_data, objfile_data): Don't
1538         declare.
1539         * objfiles.c: Use DEFINE_REGISTRY.
1540         (struct objfile_data, struct objfile_data_registration, struct
1541         objfile_data_registry, objfile_data_registry)
1542         (register_objfile_data_with_cleanup, register_objfile_data)
1543         (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1544         (set_objfile_data, objfile_data): Remove.
1545         (_initialize_objfiles): Update.
1546         * jit.c (_initialize_jit): Update.
1547         * inflow.c (_initialize_inflow): Update.
1548         * inferior.h: Include registry.h.  Use DECLARE_REGISTRY.
1549         (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1550         (register_inferior_data_with_cleanup, register_inferior_data)
1551         (clear_inferior_data, set_inferior_data, inferior_data): Don't
1552         declare.
1553         * inferior.c: Use DEFINE_REGISTRY.
1554         (struct inferior_data, struct inferior_data_registration, struct
1555         inferior_data_registry, inferior_data_registry)
1556         (register_inferior_data_with_cleanup, register_inferior_data)
1557         (inferior_alloc_data, inferior_free_data  clear_inferior_data)
1558         (set_inferior_data, inferior_data): Remove.
1559         * auxv.c (_initialize_auxv): Update.
1560         * ada-lang.c (_initialize_ada_language): Update.
1561         * breakpoint.c (_initialize_breakpoint): Update.
1562         * i386-nat.c (i386_use_watchpoints): Update.
1563
1564 2012-08-22  Tom Tromey  <tromey@redhat.com>
1565
1566         * exec.c (exec_close, exec_file_attach): Update.
1567         (add_to_section_table): Initialize 'key' field.
1568         (add_target_sections, remove_target_sections): Add 'key' argument.
1569         * exec.h (add_target_sections, remove_target_sections): Add
1570         'key' argument.
1571         * solib.c (solib_map_sections, update_solib_list, clear_solib)
1572         (reload_shared_libraries_1): Update.
1573         * target.h (struct target_section) <key>: New field.
1574
1575 2012-08-22  Tom Tromey  <tromey@redhat.com>
1576
1577         * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1578
1579 2012-08-21  Pierre Muller  <muller@ics.u-strasbg.fr>
1580
1581         * symfile.c (allocate_symtab): Use host_address_to_string
1582         function instead of cast of pointer to long which is not
1583         compatible with x86_64-w64-mingw32 build.
1584
1585 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1586
1587         * mips-tdep.c (is_octeon): New function.
1588         (is_octeon_bbit_op): New function.
1589         (mips32_next_pc): Handle Octeon's bbit instructions.
1590         (mips32_instruction_has_delay_slot): Likewise.
1591
1592 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1593
1594         * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1595         before the function.
1596
1597 2012-08-19  Andrew Pinski  <apinski@cavium.com>
1598
1599         * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1600
1601 2012-08-19  Keith Seitz  <keiths@redhat.com>
1602
1603         PR c++/14365
1604         * c-typeprint.c (c_type_print_varspec_prefix): Pass
1605         -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1606
1607 2012-08-18  Eli Zaretskii  <eliz@gnu.org>
1608
1609         * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1610         The typo broke "make TAGS".
1611
1612 2012-08-17  Joel Brobecker  <brobecker@adacore.com>
1613
1614         GDB 7.5 released.
1615
1616 2012-08-17  Keith Seitz  <keiths@redhat.com>
1617
1618         PR c++/13356
1619         * gdbtypes.c (strict_type_checking): New variable.
1620         (show_strict_type_checking): New function.
1621         (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1622         if strict type checking is disabled.
1623         (_initialize_gdbtypes): Add "check type" subcommand.
1624         * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1625
1626 2012-08-17  Keith Seitz  <keiths@redhat.com>
1627
1628         * language.h (type_mode): Remove.
1629         (type_check): Remove.
1630         (struct language_defn): Remove la_type_check.
1631         (STRICT_TYPE): Remove unused macro.
1632         (type_error): Remove.
1633         * language.c (set_type_range_case): Renamed to ...
1634         (set_range_case): ... this.  Update all callers.
1635         Remove type_mode/type_check.
1636         (type_mode): Remove.
1637         (type_check): Remove.
1638         (show_type_command): Remove.
1639         (set_type_command): Remove.
1640         (language_info): Remove type checking output.
1641         (type_error): Remove unused function.
1642         (range_error): Update comment.
1643         (unknown_language_defn): Remove la_type_check.
1644         (auto_language_defn): Likewise.
1645         (local_language_defn): Likewise.
1646         (_initialize_language): Remove "check type" subcommand.
1647         * ada-lang.c (ada_language_defn): Remove la_type_check.
1648         * c-lang.c (c_language_defn): Likewise.
1649         (cplus_language_defn): Likewise.
1650         (asm_language_defn): Likewise.
1651         (minimal_language_defn): Likewise.
1652         * d-lang.c (d_language_defn): Likewise.
1653         * f-lang.c (f_language_defn): Likewise.
1654         * go-lang.c (go_language_defn): Likewise.
1655         * jv-lang.c (java_language_defn): Likewise.
1656         * m2-lang.c (m2_language_defn): Likewise.
1657         * objc-lang.c (objc_language_defn): Likewise.
1658         * opencl-lang.c (opencl_language_defn): Likewise.
1659         * p-lang.c (pascal_language_defn): Likewise.
1660
1661 2012-08-16  Mike Frysinger  <vapier@gentoo.org>
1662
1663         * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1664
1665 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1666
1667         * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1668         New function.
1669         (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1670         using the regache.  Use ia64_hpux_get_register_from_save_state_t
1671         to access the bsp and bspstore registers if not.
1672
1673 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1674
1675         * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1676         * breakpoint.c (detach_breakpoints): Change pid parameter into
1677         a ptid.  Adjust code accordingly.
1678         * infrun.c (handle_inferior_event): Delete variable child_pid.
1679         Update call to detach_breakpoints to pass the child ptid for
1680         fork events.
1681         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1682         assert that inferior_ptid's lwp is zero.
1683         (linux_handle_extended_wait): Update call to detach_breakpoints.
1684         * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1685         detach_breakpoints.
1686
1687 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1688
1689         * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1690         parent, only call detach_breakpoints if tts.tts_event ==
1691         TTEVT_VFORK.
1692
1693 2012-08-16  Joel Brobecker  <brobecker@adacore.com>
1694
1695         * dwarf2-frame.c (dwarf2_frame_cache): Use
1696         get_frame_address_in_block instead of get_frame_pc as
1697         the bound for executing the frame's FDE.
1698
1699 2012-08-16  Yao Qi  <yao@codesourcery.com>
1700
1701         * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1702         * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1703         * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1704         (c_type_print_varspec_suffix): Likewise.
1705         * eval.c (evaluate_subexp_standard): Likewise.
1706         * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1707         (f_type_print_varspec_suffix): Likewise.
1708         * gdbtypes.c (is_scalar_type): Likewise.
1709         (recursive_dump_type): Likewise.
1710         * infcall.c (value_arg_coerce): Likewise.
1711         * m2-valprint.c (m2_val_print): Likewise.
1712         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1713         (pascal_type_print_varspec_suffix): Likewise.
1714         (pascal_type_print_base): Likewise.
1715         * p-valprint.c (pascal_val_print): Likewise.
1716         (pascal_val_print): Likewise.
1717         * valops.c (value_slice): Likewise.
1718         * valprint.c (scalar_type_p): Likewise.
1719         * valarith.c (value_bitstring_subscript): Remove.
1720         (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1721         Remove comment on TYPE_CODE_BITSTRING.
1722
1723         * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1724         TYPE_CODE_BITSTRING.
1725
1726         * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1727         slot 0.
1728
1729 2012-08-16  Yao Qi  <yao@codesourcery.com>
1730
1731         * tracepoint.c (trace_find_none_command): Remove.
1732         (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1733
1734 2012-08-16  Yao Qi  <yao@codesourcery.com>
1735
1736         * remote.c (handle_notification): Remove parameter 'length'.
1737         (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1738
1739 2012-08-15  Keith Seitz  <keiths@redhat.com>
1740
1741         * gdbtypes.c (opaque_type_resolution): Make static.
1742         Add missing comment.
1743         (overload_debug): Add missing comment.
1744         (show_opaque_type_resolution): Likewise.
1745         (show_overload_debug): Likewise.
1746         (print_bit_vector): Remove unnecessary forward declaration.
1747         (print_arg_types): Likewise.
1748         (dump_fn_fieldlists): Likewise.
1749         (print_cplus_stuff): Likewise.
1750
1751 2012-08-15  Tom Tromey  <tromey@redhat.com>
1752
1753         * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1754         (gdb_bfd_ref): Initialize new field.
1755         (gdb_bfd_unref): Unref the archive BFD.
1756         (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1757         parent archive.
1758
1759 2012-08-15  Tom Tromey  <tromey@redhat.com>
1760
1761         PR python/14387:
1762         * python/py-bpevent.c (create_breakpoint_event_object): Update
1763         comment.
1764         * python/py-event.c (evpy_add_attribute): Update comment.
1765         * python/py-exitedevent.c (create_exited_event_object): Fix
1766         reference counting and error handling.
1767         * python/py-newobjfileevent.c (create_new_objfile_event_object):
1768         Fix reference counting.
1769         * python/py-signalevent.c (create_signal_event_object): Fix
1770         reference counting and error handling.
1771         * python/py-stopevent.c (emit_stop_event): Fix reference
1772         counting.
1773         * python/py-threadevent.c (get_event_thread): Return a
1774         borrowed reference.
1775         * python/py-type.c (convert_field): Fix reference counting.
1776
1777 2012-08-15  Tom Tromey  <tromey@redhat.com>
1778
1779         * dwarf2read.c (dwarf_decode_macro_bytes)
1780         <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1781         as hash key.
1782
1783 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
1784
1785         * infcmd.c (_initialize_infcmd): Update help text for the signal,
1786         stepi, nexti, finish, next, step, jump, and continue commands.
1787         * infrun.c (_initialize_infrun): Update help text for the handle
1788         command.
1789
1790 2012-08-14  Doug Evans  <dje@google.com>
1791
1792         * gdbtypes.c (struct extra): Delete, unused.
1793
1794         * gdbtypes.c: Whitespace cleanup.
1795         (address_space_name_to_int): Remove "extern" from definition.
1796         (_initialize_gdbtypes): Declare with initialize_file_ftype.
1797
1798         * gdbtypes.c (make_pointer_type): Remove redundant setting of
1799         TYPE_POINTER_TYPE (type).
1800
1801 2012-08-14  Gary Benson  <gbenson@redhat.com>
1802
1803         * solib-svr4.c (svr4_free_library_list): Use free_so.
1804
1805 2012-08-13  Mike Frysinger  <vapier@gentoo.org>
1806
1807         * .gitignore: Add go-exp.c.
1808
1809 2012-08-13  Doug Evans  <dje@google.com>
1810
1811         * value.c (show_convenience): Tweak comment.
1812         (_initialize_values): Mention convenience functions in the help text
1813         for "show convenience".
1814
1815 2012-08-13  Yao Qi  <yao@codesourcery.com>
1816
1817         * std-operator.def: Remove TERNOP_SLICE_COUNT.
1818         * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1819         TERNOP_SLICE_COUNT.
1820         * eval.c (evaluate_subexp_standard): Likewise.
1821         * expprint.c (print_subexp_standard): Likewise.
1822         (dump_subexp_body_standard): Likewise.
1823         * parse.c (operator_length_standard): Likewise.
1824
1825 2012-08-13  Yao Qi  <yao@codesourcery.com>
1826
1827         * std-operator.def: Remove OP_BITSTRING.
1828         * breakpoint.c (watchpoint_exp_is_const): Update.
1829         * eval.c (evaluate_subexp_standard): Remove handling to
1830         OP_BITSTRING.
1831         * expprint.c (print_subexp_standard): Likewise.
1832         (dump_subexp_body_standard): Likewise.
1833         * parse.c (operator_length_standard): Likewise.
1834         * valops.c (value_bitstring): Remove.
1835         * value.h: Remove the declaration of 'value_bitstring'.
1836
1837 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
1838
1839         * linespec.c (find_methods): Remove unused variables `i1' and
1840         `name_len'.
1841         (decode_line_full): Likewise for `arg_start'.
1842
1843 2012-08-10  Sergio Durigan Junior  <sergiodj@redhat.com>
1844
1845         * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1846         (zlib_decompress_section): Likewise for `section_data'.
1847         (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1848
1849 2012-08-10  Doug Evans  <dje@google.com>
1850
1851         Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1852         * NEWS: Document them.
1853         * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1854         function/strfns.py.
1855         * python/py-type.c (typy_array_1): New function.
1856         (typy_array): Call it.
1857         (typy_vector): New function.
1858         (type_object_methods): Add "vector".
1859         * python/lib/gdb/function/__init__.py: New file.
1860         * python/lib/gdb/function/strfns.py: New file.
1861
1862 2012-08-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
1863
1864         * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1865         for TYPE_FIELD_BITPOS.
1866         (typy_get_sizeof): Likewise for TYPE_LENGTH.
1867
1868 2012-08-10  Mike Frysinger  <vapier@gentoo.org>
1869
1870         PR cli/10436:
1871         * common/vec.h (VEC_merge): Define.
1872         (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1873         (DEF_VEC_ALLOC_FUNC_P): Likewise.
1874         (DEF_VEC_ALLOC_FUNC_O): Likewise.
1875         * completer.c: Include gdb_signals.h.
1876         (signal_completer): Define.
1877         * completer.h (signal_completer): Add prototype.
1878         * infcmd.c (_initialize_infcmd): Assign the command
1879         completer for "signal" to handle_completer.
1880         * infrun.c: Include completer.h.
1881         (handle_completer): Define.
1882         (_initialize_infrun): Declare a new local variable c.  Store the
1883         result of add_com("handle") to it.  Assign the command
1884         completer for "handle" to handle_completer.
1885
1886 2012-08-09  Yao Qi  <yao@codesourcery.com>
1887
1888         * cli/cli-decode.c (set_cmd_prefix): New.
1889         (lookup_cmd_for_prefixlist): New.
1890         (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1891         of each cmd_list_element in *prefixlist.
1892         (add_setshow_cmd_full): set_cmd_prefix.
1893         (add_alias_cmd): Likewise.
1894         * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1895         Declare 'auto_boolean_enums'.
1896         * cli/cli-setshow.c: Include "observer.h".
1897         (notify_command_param_changed_p): New.
1898         (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1899         Remove 'static'.
1900         (do_setshow_command): Split it to ...
1901         (do_set_command, do_show_command): ... them.  New.
1902         (do_set_command): Call observer_notify_command_param_changed if
1903         notify_command_param_changed_p returns true.
1904         (cmd_show_list): Caller update.
1905         * auto-load.c (set_auto_load_cmd): Likewise.
1906         * remote.c (show_remote_cmd): Likewise.
1907         * cli/cli-setshow.h: Update declarations.
1908         * top.c (execute_command): Call do_set_command and do_show_command.
1909
1910         * NEWS: Mention new MI notification.
1911         * mi/mi-interp.c: Declare mi_command_param_changed.
1912         (mi_interpreter_init): Attach mi_command_param_changed to
1913         observer command_param_changed.
1914         (mi_command_param_changed): New.
1915         Remove mi_suppress_breakpoint_notifications.
1916         Define global variable mi_suppress_notification.
1917         (mi_breakpoint_created): Update.
1918         (mi_breakpoint_deleted): Likewise.
1919         (mi_breakpoint_modified): Likewise.
1920         * mi/mi-main.c (mi_cmd_execute): Likewise.  Check command
1921         'gdb-set' and set mi_suppress_notification.
1922         * mi/mi-main.h: (mi_suppress_notification): New struct.
1923
1924 2012-08-09  Andreas Tobler  <andreast@fgznet.ch>
1925             Jan Kratochvil  <jan.kratochvil@redhat.com>
1926
1927         * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1928
1929 2012-08-09  Yao Qi  <yao@codesourcery.com>
1930
1931         * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1932         (skiplist): Move it to skip.c.
1933         (init_cmd_lists): Remove code setting enablebreaklist and
1934         skiplist to NULL.
1935         * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1936         * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1937         skiplist.
1938         * gdbcmd.h: Likewise.
1939         * skip.c (_initialize_step_skip): Move 'skiplist' from
1940         cli/cli-cmds.c.
1941
1942 2012-08-09  Yao Qi  <yao@codesourcery.com>
1943
1944         * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1945         * gnu-nat.c, symfile.c: Likewise.
1946
1947 2012-08-08  Aaron Gamble  <agamble@google.com>
1948
1949         * utils.c (prompt_for_continue_wait_time): New static global.
1950         (make_command_stats_cleanup): Initialize it.
1951         (report_command_stats): Subtract time waiting for user.
1952         (prompt_for_continue): Track time waiting for user.
1953         (defaulted_query): Track time waiting for user.
1954
1955 2012-08-08  Doug Evans  <dje@google.com>
1956
1957         * eval.c (evaluate_subexp_standard): Fix thinko in handling
1958         UNOP_MEMVAL_TYPE.
1959         * expprint.c (print_subexp_standard, case OP_TYPE): New.
1960         (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1961         (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1962         (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1963         (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1964         (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1965         elt.
1966         (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1967         (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1968         (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1969         (dump_prefix_expression): Handle OP_TYPE.
1970
1971 2012-08-08  Keith Seitz  <keiths@redhat.com>
1972
1973         * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1974         addr_start.
1975
1976 2012-08-08  Doug Evans  <dje@google.com>
1977
1978         * linux-thread-db.c: #include "gdb_vecs.h".
1979         (try_thread_db_load_from_pdir_1): New arg "subdir".  All callers
1980         updated.
1981         (try_thread_db_load_from_pdir): New arg "subdir".  All callers updated.
1982         (thread_db_load_search): Use a vector to iterate over path elements.
1983         Handle text appearing after "$pdir".
1984
1985         * gdb_string.h: Moved to ...
1986         * common/gdb_string.h: ... here.
1987         * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1988         gdb_string.h and gdb_assert.h.
1989
1990 2012-08-08  Yao Qi  <yao@codesourcery.com>
1991
1992         * tic6x-tdep.c (tic6x_register_to_value): Remove.
1993         (tic6x_value_to_register): Likewise.
1994         (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1995         and set_gdbarch_value_to_register.
1996
1997 2012-08-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
1998             Jean-Marc Saffroy  <saffroy@gmail.com>
1999
2000         PR 11804
2001         * defs.h (find_memory_region_ftype): New comment.  New arg modified.
2002         * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2003         * gcore.c (gcore_create_callback): New function comment.  Add modified
2004         parameter.  Only write modified regions.  Set SEC_READONLY exactly
2005         according to MODIFIED.
2006         (objfile_find_memory_regions): Ignore separate debug info files.  Ass
2007         the passed modified value to FUNC.
2008         * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2009         * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2010         first.  New variables modified and has_anonymous.  Parse the lines of
2011         smaps file.  Add the passed MODIFIED value to FUNC.
2012         * procfs.c (find_memory_regions_callback): Add the passed modified
2013         value.
2014
2015 2012-08-06  Tom Tromey  <tromey@redhat.com>
2016
2017         * dwarf2-frame.c (clear_pointer_cleanup): New function.
2018         (dwarf2_frame_cache): Use it.
2019         * frame-unwind.h (frame_sniffer_ftype): Document prologue
2020         cache initialization constraint.
2021
2022 2012-08-06  Tom Tromey  <tromey@redhat.com>
2023
2024         PR python/14386:
2025         * varobj.c (update_dynamic_varobj_children): Don't call
2026         PyIter_Check.
2027
2028 2012-08-06  Tom Tromey  <tromey@redhat.com>
2029
2030         PR cli/14392:
2031         * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2032
2033 2012-08-06  Nathaniel Flath  <flat0103@gmail.com>
2034
2035         * NEWS: New entry for 'cd' default parameters.
2036         * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2037
2038 2012-08-03  Tom Tromey  <tromey@redhat.com>
2039
2040         * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2041         return.
2042
2043 2012-08-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
2044
2045         * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2046         to attempting lseek/write.
2047         (inf_child_fileio_pread): Likewise for pread.
2048
2049 2012-08-02  Yao Qi  <yao@codesourcery.com>
2050
2051         * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2052         (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2053         add_setshow_zinteger_cmd.
2054         * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2055         * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2056         (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2057         instead of add_setshow_zinteger_cmd.
2058         * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2059         (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2060         instead of add_setshow_zinteger_cmd.
2061         * frame.c (frame_debug): Add 'unsigned'.
2062         (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2063         add_setshow_zinteger_cmd.
2064         * frame.h: Update the declaration of 'frame_debug'.
2065         * gdbtypes.c (overload_debug): Add 'unsigned'.
2066         (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2067         add_setshow_zinteger_cmd.
2068         * inferior.h: Update declaration of 'debug_infrun'.
2069         * infrun.c (debug_infrun): Add 'unsigned'.
2070         (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2071         add_setshow_zinteger_cmd.
2072         * jit.c (jit_debug): Add 'unsigned'.
2073         (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2074         add_setshow_zinteger_cmd.
2075         * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2076         (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2077         instead of add_setshow_zinteger_cmd.
2078         * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2079         (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2080         add_setshow_zinteger_cmd.
2081         * machoread.c (mach_o_debug_level): Add 'unsigned'.
2082         (_initialize_machoread): Call add_setshow_zuinteger_cmd
2083         instead of add_setshow_zinteger_cmd.
2084         * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2085         * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2086         (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2087         intead of add_setshow_zinteger_cmd.
2088         * mips-tdep.c (mips_debug): Add 'unsigned'.
2089         (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2090         instead of add_setshow_zinteger_cmd.
2091         * monitor.c (monitor_debug): Add 'unsigned'.
2092         (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2093         add_setshow_zinteger_cmd.
2094         * observer.c (observer_debug): Add 'unsigned'.
2095         (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2096         add_setshow_zinteger_cmd.
2097         * parse.c (expressiondebug): Add 'unsigned'.
2098         (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2099         add_setshow_zinteger_cmd.
2100         * record.c (record_debug): Add 'unsigned'.
2101         (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2102         add_setshow_zinteger_cmd.
2103         * record.h: Update the declaration of 'record_debug'.
2104         * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2105         (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2106         add_setshow_zinteger_cmd.
2107         * serial.c (global_serial_debug_p): Add 'unsigned'.
2108         (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2109         add_setshow_zinteger_cmd.
2110         * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2111         (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2112         add_setshow_zinteger_cmd.
2113         * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2114         (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2115         add_setshow_zinteger_cmd.
2116         * target.c (targetdebug): Add 'unsigned'.
2117         (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2118         add_setshow_zinteger_cmd.
2119         * valops.c (overload_debug): Add 'unsigned'.
2120         * varobj.c (varobjdebug): Add 'unsigned'.
2121         (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2122         add_setshow_zinteger_cmd.
2123         * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2124         (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2125         instead of add_setshow_zinteger_cmd.
2126
2127         * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2128         * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2129         (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2130         instead of add_setshow_zinteger_cmd.
2131         * gdbarch.c, gdbarch.h: Re-generated.
2132
2133 2012-08-02  Yao Qi  <yao@codesourcery.com>
2134
2135         * nto-tdep.c: Don't include cli/cli-decode.h and
2136         cli/cli-cmds.h.
2137         (_initialize_nto_tdep): Remove.
2138         * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2139         Remove field.
2140         Remove macro nto_internal_debugging.
2141
2142 2012-08-01  Richard Henderson  <rth@redhat.com>
2143
2144         * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2145         (mep-*-*) [gdb_target_obs]: Likewise.
2146
2147 2012-07-31  Andreas Schwab  <schwab@linux-m68k.org>
2148
2149         * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2150         linux_get_siginfo_type.
2151
2152 2012-07-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
2153
2154         * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2155         AT_ENTRY_POINT.
2156         (call_function_by_hand) <ON_STACK>: Call write_memory with
2157         gdbarch_breakpoint_from_pc, if possible.
2158         (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2159         here.
2160
2161 2012-07-31  Yao Qi  <yao@codesourcery.com>
2162
2163         * tracepoint.c: Add 'static' for some variables.
2164
2165 2012-07-31  Yao Qi  <yao@codesourcery.com>
2166
2167         * go32-nat.c: Declare _initialize_go32_nat.
2168         * ser-go32.c: Declare _initialize_ser_dos.
2169         * top.c (do_chdir_cleanup): Add 'static'.
2170
2171 2012-07-30  Keith Seitz  <keiths@redhat.com>
2172
2173         * linespec.c (linespec_lex_number): A number followed
2174         by quotes is a valid number, too.
2175
2176 2012-07-30  Tom Tromey  <tromey@redhat.com>
2177
2178         * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2179
2180 2012-07-30  Ulrich Weigand  <ulrich.weigand@linaro.org>
2181
2182         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2183         attempt to 4-byte-align HW breakpoint addresses for Thumb.
2184
2185 2012-07-30  Andrew Burgess  <aburgess@broadcom.com>
2186
2187         * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2188         invalid or reevaluated to prevent prevent references to possibly
2189         delete'd type objects being left in the varobj.
2190
2191 2012-07-27  Tom Tromey  <tromey@redhat.com>
2192             Jan Kratochvil  <jan.kratochvil@redhat.com>
2193
2194         * copying.awk: Print buffer-read-only and vi ro markers.
2195         * copying.c: Rebuild.
2196         * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2197         * gdbarch.c, gdbarch.h: Rebuild.
2198         * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2199         buffer-read-only and vi ro markers.
2200         * features/arm-with-iwmmxt.c: Rebuild.
2201         * features/arm-with-m-fpa-layout.c: Rebuild.
2202         * features/arm-with-m-vfp-d16.c: Rebuild.
2203         * features/arm-with-m.c: Rebuild.
2204         * features/arm-with-neon.c: Rebuild.
2205         * features/arm-with-vfpv2.c: Rebuild.
2206         * features/arm-with-vfpv3.c: Rebuild.
2207         * features/i386/amd64-avx-linux.c: Rebuild.
2208         * features/i386/amd64-avx.c: Rebuild.
2209         * features/i386/amd64-linux.c: Rebuild.
2210         * features/i386/amd64.c: Rebuild.
2211         * features/i386/i386-avx-linux.c: Rebuild.
2212         * features/i386/i386-avx.c: Rebuild.
2213         * features/i386/i386-linux.c: Rebuild.
2214         * features/i386/i386-mmx-linux.c: Rebuild.
2215         * features/i386/i386-mmx.c: Rebuild.
2216         * features/i386/i386.c: Rebuild.
2217         * features/i386/x32-avx-linux.c: Rebuild.
2218         * features/i386/x32-avx.c: Rebuild.
2219         * features/i386/x32-linux.c: Rebuild.
2220         * features/i386/x32.c: Rebuild.
2221         * features/mips-dsp-linux.c: Rebuild.
2222         * features/mips-linux.c: Rebuild.
2223         * features/mips64-dsp-linux.c: Rebuild.
2224         * features/mips64-linux.c: Rebuild.
2225         * features/rs6000/powerpc-32.c: Rebuild.
2226         * features/rs6000/powerpc-32l.c: Rebuild.
2227         * features/rs6000/powerpc-403.c: Rebuild.
2228         * features/rs6000/powerpc-403gc.c: Rebuild.
2229         * features/rs6000/powerpc-405.c: Rebuild.
2230         * features/rs6000/powerpc-505.c: Rebuild.
2231         * features/rs6000/powerpc-601.c: Rebuild.
2232         * features/rs6000/powerpc-602.c: Rebuild.
2233         * features/rs6000/powerpc-603.c: Rebuild.
2234         * features/rs6000/powerpc-604.c: Rebuild.
2235         * features/rs6000/powerpc-64.c: Rebuild.
2236         * features/rs6000/powerpc-64l.c: Rebuild.
2237         * features/rs6000/powerpc-7400.c: Rebuild.
2238         * features/rs6000/powerpc-750.c: Rebuild.
2239         * features/rs6000/powerpc-860.c: Rebuild.
2240         * features/rs6000/powerpc-altivec32.c: Rebuild.
2241         * features/rs6000/powerpc-altivec32l.c: Rebuild.
2242         * features/rs6000/powerpc-altivec64.c: Rebuild.
2243         * features/rs6000/powerpc-altivec64l.c: Rebuild.
2244         * features/rs6000/powerpc-cell32l.c: Rebuild.
2245         * features/rs6000/powerpc-cell64l.c: Rebuild.
2246         * features/rs6000/powerpc-e500.c: Rebuild.
2247         * features/rs6000/powerpc-e500l.c: Rebuild.
2248         * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2249         * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2250         * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2251         * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2252         * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2253         * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2254         * features/rs6000/powerpc-vsx32.c: Rebuild.
2255         * features/rs6000/powerpc-vsx32l.c: Rebuild.
2256         * features/rs6000/powerpc-vsx64.c: Rebuild.
2257         * features/rs6000/powerpc-vsx64l.c: Rebuild.
2258         * features/rs6000/rs6000.c: Rebuild.
2259         * features/s390-linux32.c: Rebuild.
2260         * features/s390-linux32v1.c: Rebuild.
2261         * features/s390-linux32v2.c: Rebuild.
2262         * features/s390-linux64.c: Rebuild.
2263         * features/s390-linux64v1.c: Rebuild.
2264         * features/s390-linux64v2.c: Rebuild.
2265         * features/s390x-linux64.c: Rebuild.
2266         * features/s390x-linux64v1.c: Rebuild.
2267         * features/s390x-linux64v2.c: Rebuild.
2268         * features/tic6x-c62x-linux.c: Rebuild.
2269         * features/tic6x-c62x.c: Rebuild.
2270         * features/tic6x-c64x-linux.c: Rebuild.
2271         * features/tic6x-c64x.c: Rebuild.
2272         * features/tic6x-c64xp-linux.c: Rebuild.
2273         * features/tic6x-c64xp.c: Rebuild.
2274
2275 2012-07-27  Tom Tromey  <tromey@redhat.com>
2276
2277         * c-exp.y (classify_name): Avoid assignment in condition.
2278
2279 2012-07-27  Roland Schwingel  <roland.schwingel@onevision.com>
2280
2281         * amd64-windows-tdep.c: Include "frame.h".
2282         (amd64_windows_skip_trampoline_code): New function.
2283         (amd64_windows_init_abi): Add trampoline registration.
2284
2285 2012-07-27  Yao Qi  <yao@codesourcery.com>
2286
2287         * tracepoint.c (cur_traceframe_number): Remove.
2288         (set_tfile_traceframe): Remove.
2289         (tfile_trace_find, tfile_fetch_registers): Update callers.
2290         (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2291         (tfile_open, tfile_trace_find): Likewise.
2292
2293 2012-07-27  Yao Qi  <yao@codesourcery.com>
2294
2295         * thread.c (switch_to_thread): Don't call registers_changed.
2296
2297 2012-07-26  Tom Tromey  <tromey@redhat.com>
2298
2299         * Makefile.in (SFILES): Remove objc-exp.y.
2300         (YYFILES): Remove objc-exp.c.
2301         (YYOBJ): Remove objc-exp.o.
2302         (local-maintainer-clean): Don't mention objc-exp.c.
2303         * c-exp.y: Include objc-lang.h.
2304         (%union) <class>: New field.
2305         (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2306         (exp): Clone subscript production for OBJC_LBRAC.  Add various
2307         Objective C productions.
2308         (msglist, msgarglist, msgarg): New productions.
2309         (array_mod, func_mod, operator): Clone productions for
2310         OBJC_LBRAC.
2311         (parse_string_or_char): Handle '@' strings.
2312         (lex_one_token): Return OBJC_LBRAC.  Recognize @selector.
2313         (classify_name): Check la_name_of_this.  Recognize ObjC class
2314         names.
2315         * objc-exp.y: Remove.
2316         * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2317         * objc-lang.h (objc_parse, objc_error): Don't declare.
2318
2319 2012-07-26  Markus Metzger  <markus.t.metzger@intel.com>
2320
2321         * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2322
2323 2012-07-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
2324
2325         * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2326         and decrement.
2327
2328 2012-07-26  Tom Tromey  <tromey@redhat.com>
2329
2330         * copying.c: Rebuild.
2331         * copying.awk: Don't use immediate_quit.  Use 'no_set_class', not
2332         'no_class'.
2333
2334 2012-07-26  Tom Tromey  <tromey@redhat.com>
2335
2336         * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2337         immediate_quit.
2338         (print_objfile_statistics): Likewise.
2339         (maintenance_print_symbols): Likewise.
2340         (maintenance_print_msymbols): Likewise.
2341         (maintenance_print_objfiles): Likewise.
2342         * psymtab.c (print_partial_symbols): Call QUIT.
2343         (maintenance_print_psymbols): Likewise.  Don't modify
2344         immediate_quit.
2345         * copying.c (show_copying_command): Don't modify immediate_quit.
2346         (show_warranty_command): Likewise.
2347         * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2348
2349 2012-07-26  Keith Seitz  <keiths@redhat.com>
2350
2351         * linespec.c (linespec_lexer_lex_number): The input
2352         is also a valid number if the next character is a comma
2353         or colon.
2354
2355 2012-07-26  Joel Brobecker  <brobecker@adacore.com>
2356
2357         * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2358         configure options.
2359
2360 2012-07-26  Tristan Gingold  <gingold@adacore.com>
2361
2362         * machoread.c: Include gdb_bfd.h.
2363
2364 2012-07-26  Tristan Gingold  <gingold@adacore.com>
2365
2366         * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2367         offset.
2368
2369 2012-07-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2370
2371         * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2372         SIZE to size_t.
2373         (dwarf2_evaluate_loc_desc): Likewise.
2374         (dwarf2_loc_desc_needs_frame): Likewise.
2375         (locexpr_describe_location_1): Likewise.
2376         * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2377         size_t.
2378         (struct dwarf2_loclist_baton): Likewise.
2379         * dwarf2read.c (struct dwarf_block): Likewise.
2380         (dump_die_shallow): Use pulongest to print dwarf_block.size.
2381         (decode_locdesc): Expand SIZE and I to size_t.
2382
2383 2012-07-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
2384
2385         * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2386
2387 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
2388
2389         * doublest.c (convert_doublest_to_floatformat): If the exponent
2390         is too small, treat the value as zero.  If the exponent is too
2391         large, treat the value as infinity.
2392
2393 2012-07-25  Joel Brobecker  <brobecker@adacore.com>
2394
2395         * configure.ac: Add --enable-lmcheck configure option.
2396         * configure: Regenerate.
2397
2398 2012-07-25  Tom Tromey  <tromey@redhat.com>
2399
2400         * NEWS: Mention maint info bfds.
2401         * gdb_bfd.c (all_bfds): New global.
2402         (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2403         (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2404         New functions.
2405
2406 2012-07-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
2407
2408         * configure.tgt: Add v850*-*-rtems*.
2409
2410 2012-07-25  Tom Tromey  <tromey@redhat.com>
2411
2412         * macrotab.c (macro_bcache_str): Remove cast.
2413
2414 2012-07-25  Hui Zhu  <hui_zhu@mentor.com>
2415
2416         * linespec.c (linespec_lexer_lex_number): Update comments,
2417         change the return and add check to make sure the input is
2418         the decimal numbers.
2419         (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2420         false, call linespec_lexer_lex_string.
2421
2422 2012-07-24  Tom Tromey  <tromey@redhat.com>
2423
2424         * symfile.c (symbol_file_add): Don't open BFD twice.
2425
2426 2012-07-24  Marc Khouzam  <marc.khouzam@ericsson.com>
2427
2428         * breakpoint.c (create_breakpoint): Store condition for pending
2429         breakpoints.
2430
2431 2012-07-24  Andreas Schwab  <schwab@linux-m68k.org>
2432
2433         * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2434         (m68k_return_value): Handle complex types like structures.
2435         (m68k_svr4_return_value): Likewise.
2436
2437 2012-07-24  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2438
2439         * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2440         parameters to bfd_get_section_name.
2441
2442 2012-07-24  Yao Qi  <yao@codesourcery.com>
2443
2444         * cli/cli-setshow.c: Handle case 'var_uinteger'
2445         and 'var_zuninteger' together.  Handle case 'var_integer' and
2446         'var_zinteger' together.
2447
2448 2012-07-23  Keith Seitz  <keiths@redhat.com>
2449
2450         * linespec.c (convert_linespec_to_sal): Don't add
2451         any symbols to the result vector if symbol_to_sal
2452         returns zero.
2453
2454 2012-07-23  Keith Seitz  <keiths@redhat.com>
2455
2456         * linespec.c (decode_objc): Record the function name
2457         in the linespec.
2458
2459 2012-07-23  Tom Tromey  <tromey@redhat.com>
2460
2461         * rs6000-nat.c (add_vmap): Rewrite archive loop.  Fix reference
2462         counting.
2463         * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2464         (map_vmap): Acquire a reference to the BFD.
2465
2466 2012-07-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
2467
2468         * p-valprint.c (pascal_object_print_value): Replace potentially
2469         unsafe alloca with xmalloc/xfree.
2470         * valops.c (search_struct_method): Likewise.
2471
2472 2012-07-23  Tom Tromey  <tromey@redhat.com>
2473
2474         * solib-svr4.c (enable_break): Update.
2475         * bfd-target.h (target_bfd_reopen): Update documentation.
2476
2477 2012-07-23  Tom Tromey  <tromey@redhat.com>
2478
2479         * symfile.c (separate_debug_file_exists): Update.
2480         (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2481         (reread_symbols): Update.
2482         * elfread.c (build_id_verify): Update.
2483         * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2484         bfd_open_maybe_remote.
2485
2486 2012-07-23  Tom Tromey  <tromey@redhat.com>
2487
2488         * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2489
2490 2012-07-23  Tom Tromey  <tromey@redhat.com>
2491
2492         * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2493         and 'abfd'.
2494         * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2495         and 'abfd'.
2496         * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2497         * machoread.c (macho_add_oso_symfile): Make a cleanup for
2498         'abfd'.
2499         (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2500         * objfiles.c (allocate_objfile): Acquire a new reference.
2501         * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2502         * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2503         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2504         a cleanup for 'nbfd'.
2505         * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2506         for 'nbfd'.
2507         * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2508         make a cleanup for 'abfd'.
2509         (symbol_file_add): Make a BFD cleanup.
2510
2511 2012-07-23  Tom Tromey  <tromey@redhat.com>
2512
2513         * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2514         (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2515         * corelow.c (core_open): Use gdb_bfd_fopen.
2516         * dsrec.c (load_srec): Use gdb_bfd_openr.
2517         * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2518         * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2519         * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2520         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2521         (gdb_bfd_fdopenr): New functions.
2522         * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2523         (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2524         (gdb_bfd_fdopenr): Declare.
2525         * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2526         * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2527         * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2528         gdb_bfd_openr_next_archived_file.
2529         (macho_check_dsym): Use gdb_bfd_openr.
2530         (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2531         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2532         * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2533         * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2534         gdb_bfd_openr.
2535         * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2536         * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2537         gdb_bfd_openr_next_archived_file.
2538         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2539         Use gdb_bfd_openr.
2540         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2541         gdb_bfd_openr.
2542         * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2543         * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2544         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2545         * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2546         (symfile_bfd_open): Use gdb_bfd_fopen.
2547         (generic_load): Use gdb_bfd_openr.
2548         * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2549
2550 2012-07-23  Tom Tromey  <tromey@redhat.com>
2551
2552         * bfd-target.c (target_bfd_reopen): Update.
2553         * cli/cli-dump.c (bfd_openr_with_cleanup)
2554         (bfd_openw_with_cleanup): Update.
2555         * corelow.c (core_open): Update.
2556         * dsrec.c (load_srec): Update.
2557         * exec.c (exec_file_attach): Update.
2558         * gcore.c (create_gcore_bfd): Update.
2559         * gdb_bfd.c (gdb_bfd_ref): Return void.
2560         (gdb_bfd_open): Update.
2561         * gdb_bfd.h (gdb_bfd_ref): Return void.
2562         Update comments.
2563         * jit.c (jit_bfd_try_read_symtab): Update.
2564         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2565         * machoread.c (macho_symfile_read_all_oso): Update.
2566         (macho_check_dsym): Update.
2567         * procfs.c (insert_dbx_link_bpt_in_file): Update.
2568         * remote-m32r-sdi.c (m32r_load): Update.
2569         * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2570         * rs6000-nat.c (add_vmap): Update.
2571         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2572         Update.
2573         * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2574         * solib-spu.c (spu_bfd_open): Update.
2575         * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2576         * spu-linux-nat.c (spu_bfd_open): Update.
2577         * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2578         (generic_load): Update.
2579         * windows-nat.c (windows_make_so): Update.
2580
2581 2012-07-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
2582
2583         * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2584
2585 2012-07-20  Jeff Kenton  <jkenton@tilera.com>
2586
2587         * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2588         SIGTRAMP_FRAME unwinding.
2589
2590 2012-07-20  Doug Evans  <dje@google.com>
2591
2592         * NEWS: Document new options "set/show use-deprecated-index-sections",
2593         and delete reference to --use-deprecated-index-sections.
2594         * symfile.h (use_deprecated_index_sections): Delete.
2595         * dwarf2read.c (use_deprecated_index_sections): Make static.
2596         (read_index_from_section): Update wording of how to load
2597         deprecated index sections.
2598         (_initialize_dwarf2_read): New options
2599         "set/show use-deprecated-index-sections".
2600         * main.c (captured_main): Delete --use-deprecated-index-sections.
2601
2602 2012-07-20  Pedro Alves  <palves@redhat.com>
2603
2604         PR threads/11692
2605         PR gdb/12203
2606
2607         * infrun.c (handle_inferior_event) <new thread>: Don't special
2608         case minus_one_ptid.
2609         <TARGET_WAITKIND_SPURIOUS>: Ditto.
2610         * linux-thread-db.c (thread_get_info_callback): Don't return early
2611         if the thread is zombie.
2612         (thread_from_lwp): Change return type to void.  Rewrite stale
2613         comment.
2614         (attach_thread): Don't return early if the thread is zombie,
2615         instead set its "dying" flag.
2616         (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2617         (find_new_threads_callback): Don't return early if the thread is
2618         zombie.
2619
2620 2012-07-20  Pedro Alves  <palves@redhat.com>
2621
2622         * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2623         * target.c (target_wait): Likewise.
2624         (str_comma_list_concat_elem, do_option, target_options_to_string):
2625         New functions.
2626         * target.h (target_options_to_string): Declare.
2627
2628 2012-07-20  Jan Kratochvil <jan.kratochvil@redhat.com>
2629             Tom Tromey  <tromey@redhat.com>
2630
2631         * dwarf2read.c (dwarf_decode_macros)
2632         <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2633         DW_MACRO_GNU_transparent_include_alt>: New cases.
2634         (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2635         DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2636
2637 2012-07-20  Tom Tromey  <tromey@redhat.com>
2638
2639         * dwarf2read.c (try_open_dwo_file): Don't call
2640         gdb_bfd_stash_filename.
2641
2642 2012-07-20  Pedro Alves  <palves@redhat.com>
2643
2644         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2645         (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2646         (i386_process_record): Tweak description comments.
2647
2648 2012-07-20  Pedro Alves  <palves@redhat.com>
2649
2650         * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2651         (i386_process_record): Use record_read_memory.
2652         * record.c (record_read_memory): New function.
2653         (record_arch_list_add_mem, record_exec_insn): Use
2654         record_read_memory.
2655         * record.h (record_read_memory): Declare.
2656
2657 2012-07-20  Yao Qi  <yao@codesourcery.com>
2658
2659         * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2660         NULL for xfree.
2661
2662 2012-07-19  Pedro Alves  <palves@redhat.com>
2663
2664         * record.c (record_resume): Ask the target beneath to report all
2665         signals.
2666
2667 2012-07-19  Doug Evans  <dje@google.com>
2668
2669         * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2670         there's no section at address zero.
2671         (dwarf2_record_block_ranges): Ditto.
2672
2673 2012-07-19  Yao Qi  <yao@codesourcery.com>
2674
2675         * command.h, remote.c: Fix a typo in comment.
2676
2677 2012-07-19  Tom Tromey  <tromey@redhat.com>
2678
2679         PR exp/13206:
2680         * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2681         * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2682         OP_DECLTYPE>: New cases.
2683         * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2684         (type_exp): Add new productions.
2685         (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2686         and decltype.
2687         * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2688         New case.
2689         * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2690         OP_DECLTYPE>: New case.
2691         * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2692         New case.
2693         * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2694         * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2695
2696 2012-07-19  Tom Tromey  <tromey@redhat.com>
2697
2698         * c-exp.y (enum token_flags): New.
2699         (struct token) <cxx_only>: Remove.
2700         <flags>: New field.
2701         (tokentab3, tokentab2, ident_tokens): Update.
2702         (lex_one_token): Update.  Handle FLAG_SHADOW.
2703
2704 2012-07-19  Tom Tromey  <tromey@redhat.com>
2705
2706         * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2707         * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2708         UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2709         * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE.  Update
2710         for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.  Use
2711         type_exp production where appropriate.
2712         * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2713         <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2714         <UNOP_MEMVAL_TYPE>: New case.
2715         (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2716         (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2717         * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2718         <UNOP_MEMVAL_TYPE>: New case.
2719         (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2720         UNOP_REINTERPRET_CAST>: Update.
2721         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2722         * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2723         UNOP_REINTERPRET_CAST>: Update.
2724         <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2725         * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2726         * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2727         constants.
2728
2729 2012-07-19  Yao Qi  <yao@codesourcery.com>
2730             Jan Kratochvil <jan.kratochvil@redhat.com>
2731
2732         * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2733         and case 'var_optional_filename' together.
2734         * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2735         instead of add_setshow_optional_filename_cmd for setshow command
2736         'args'.  Set completer for 'set args'.
2737
2738 2012-07-18  Doug Evans  <dje@google.com>
2739
2740         * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2741         * common/gdb_vecs.c: New file, contents from utils.c.
2742         * common/host-defs.h: New file, contents from defs.h.
2743         * utils.h: New file, contents from defs.h.
2744         * defs.h: Move all declarations of objects defined in utils.c
2745         to utils.h (except QUIT() and related).
2746         #include "utils.h", "host-defs.h".
2747         * probe.h (probe_p): Move here from gdb_vecs.h.
2748         * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2749         * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2750         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2751         * Makefile.in (SFILES): Add common/gdb_vecs.c.
2752         (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2753         (COMMON_OBS): Add gdb_vecs.o.
2754         (gdb_vecs.o): New rule.
2755
2756 2012-07-18  Keith Seitz  <keiths@redhat.com>
2757
2758         * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2759         parameter.  If non-zero, use SYMNAME as the canonical name
2760         for the SaL.
2761         Update all callers.
2762         (convert_linespec_to_sals): Use add_sal_to_sals for
2763         expressions, too.
2764         (decode_line_full): No need to "fill in missing canonical names"
2765         anymore. Simply make cleanups for the allocated names.
2766
2767 2012-07-18  Keith Seitz  <keiths@redhat.com>
2768
2769         * linespec.c (struct linespec): Constify expression,
2770         source_filename, function_name, and label_name.
2771         (symbol_not_found_error): Make all parameters const.
2772         (linespec_parser_delete): No need to check for NULL
2773         when using xfree. Cast const char * to char * for xfree.
2774
2775 2012-07-18  Keith Seitz  <keiths@redhat.com>
2776
2777         * breakpoint.c (invalid_thread_id_error): New function.
2778         (find_condition_and_thread): Use invalid_thread_id_error.
2779         (watch_command_1): Likewise.
2780
2781 2012-07-18  Tom Tromey  <tromey@redhat.com>
2782
2783         * cc-with-index.sh, cc-with-dwz.sh: Remove.
2784         * contrib/cc-with-tweaks.sh: New file.
2785
2786 2012-07-18  Tom Tromey  <tromey@redhat.com>
2787
2788         * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2789         (locate_dwz_sections): Recognize .gdb_index.
2790         (create_cus_from_index_list): New function.
2791         (create_cus_from_index): Use it.  Handle .dwz data.
2792         (read_index_from_section): New function, extracted from
2793         dwarf2_read_index.
2794         (dwarf2_read_index): Use it.  Read .gdb_index from dwz file,
2795         if needed.
2796
2797 2012-07-18  Tom Tromey  <tromey@redhat.com>
2798
2799         * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2800         (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2801         <is_dwz>: New field.
2802         (struct dwz_file): New.
2803         (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2804         (locate_dwz_sections, dwarf2_get_dwz_file)
2805         (get_abbrev_section_for_cu): New functions.
2806         (error_check_comp_unit_head, read_and_check_comp_unit_head)
2807         (read_and_check_type_unit_head): Add abbrev_section argument.
2808         (create_debug_types_hash_table): Update.
2809         (init_cutu_and_read_dies): Use proper abbrev section.
2810         (init_cutu_and_read_dies_no_follow): Likewise.
2811         (set_partial_user): Do nothing if PST==NULL.
2812         (read_comp_units_from_section): New function.
2813         (create_all_comp_units): Use it.
2814         (scan_partial_symbols, partial_die_parent_scope): Update.
2815         (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2816         (process_imported_unit_die, read_partial_die): Handle .dwz files.
2817         (find_partial_die): Add offset_in_dwz argument.  Update.
2818         (guess_partial_die_structure_name, fixup_partial_die): Update.
2819         (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2820         DW_FORM_GNU_strp_alt.
2821         (read_indirect_string_from_dwz): New function.
2822         (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2823         (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2824         (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2825         (follow_die_offset): Add offset_in_dwz argument.
2826         (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2827         (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2828         (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2829         Handle new macro forms.
2830         (dwarf_decode_macros): Update.
2831         (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2832         (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2833         (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2834         (create_debug_types_hash_table): Use correct abbrev section.
2835         (get_debug_line_section): New function.
2836         (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2837         (process_full_comp_unit): Pass 'required' argument to
2838         end_symtab_get_static_block.
2839         * buildsym.h (end_symtab_get_static_block): Update.
2840         * buildsym.c (end_symtab_get_static_block): Add 'required'
2841         argument.
2842         (end_symtab, end_expandable_symtab): Update.
2843
2844 2012-07-18  Tom Tromey  <tromey@redhat.com>
2845
2846         * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2847         (pagesize): Remove.
2848         (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2849         (zlib_decompress_section): Remove.
2850         (dwarf2_read_section): Use gdb_bfd_map_section.
2851         (munmap_section_buffer): Remove.
2852         (free_dwo_file, dwarf2_per_objfile_free): Don't use
2853         munmap_section_buffer.
2854         * gdb_bfd.c: Include zlib.h, sys/mman.h.
2855         (struct gdb_bfd_section_data): New.
2856         (free_one_bfd_section): New function.
2857         (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2858         (get_section_descriptor, zlib_decompress_section)
2859         (gdb_bfd_map_section): New functions.
2860         * gdb_bfd.h (gdb_bfd_map_section): Declare.
2861
2862 2012-07-18  Tom Tromey  <tromey@redhat.com>
2863
2864         * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2865
2866 2012-07-18  Tom Tromey  <tromey@redhat.com>
2867
2868         * gdb_bfd.c (struct gdb_bfd_data): New.
2869         (gdb_bfd_cache): New global.
2870         (struct gdb_bfd_cache_search): New.
2871         (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2872         (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2873         * gdb_bfd.h (gdb_bfd_open): Declare.
2874
2875 2012-07-18  Tom Tromey  <tromey@redhat.com>
2876
2877         * utils.c (make_cleanup_bfd_unref): Rename from
2878         make_cleanup_bfd_close.
2879         * defs.h (make_cleanup_bfd_unref): Rename from
2880         make_cleanup_bfd_close.
2881         * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2882         (bfd_openw_with_cleanup): Update.
2883         * corelow.c (core_open): Update.
2884         * dsrec.c (load_srec): Update.
2885         * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2886         * remote-m32r-sdi.c (m32r_load): Update.
2887         * remote-mips.c (mips_load_srec): Update.
2888         (pmon_load_fast): Update.
2889         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2890         Update.
2891         (darwin_bfd_open): Update.
2892         * solib.c (solib_bfd_fopen): Update.
2893         * symfile-mem.c (symbol_file_add_from_memory): Update.
2894         * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2895         (symfile_bfd_open): Update.
2896         (generic_load): Update.
2897
2898 2012-07-18  Tom Tromey  <tromey@redhat.com>
2899
2900         * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2901         (pmon_load_fast): Likewise.
2902         * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2903         (m32r_upload_command): Likewise.
2904         * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2905         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2906         Use make_cleanup_bfd_close.
2907
2908 2012-07-18  Tom Tromey  <tromey@redhat.com>
2909
2910         * symfile.c (symfile_bfd_open): Don't copy name.  Call
2911         gdb_bfd_stash_filename.
2912         (load_command): Open the new BFD before freeing the old.
2913         (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2914         * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2915         Call gdb_bfd_stash_filename.
2916         * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2917         * solib-spu.c (spu_bfd_fopen): Don't copy name.  Call
2918         gdb_bfd_stash_filename.
2919         * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2920         Free found_pathname.
2921         * rs6000-nat.c (add_vmap): Don't copy filename.  Call
2922         gdb_bfd_stash_filename.
2923         * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2924         * machoread.c (macho_add_oso_symfile): Call
2925         gdb_bfd_stash_filename.
2926         (macho_symfile_read_all_oso): Arrange to free archive_name.  Call
2927         gdb_bfd_stash_filename.
2928         (macho_check_dsym): Don't copy filename.  Call
2929         gdb_bfd_stash_filename.
2930         * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2931         * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2932         * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2933         * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2934         * exec.c (exec_close): Don't free the BFD's filename.
2935         (exec_file_attach): Don't copy the filename.  Call
2936         gdb_bfd_stash_filename.
2937         * corelow.c (core_close): Don't free the BFD's filename.
2938         (core_open): Call gdb_bfd_stash_filename.
2939         * corefile.c (reopen_exec_file): Remove #if 0 code.
2940         * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename.  Free
2941         pathname.
2942         * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2943
2944 2012-07-18  Tom Tromey  <tromey@redhat.com>
2945
2946         * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2947         gdb_bfd_unref.
2948         (free_dwo_file): Use gdb_bfd_unref.
2949         * cli/cli-dump.c: Include gdb_bfd.h.
2950         (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2951         (bfd_openr_with_cleanup): Likewise.
2952         * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2953         gdb_bfd_unref.
2954         * utils.c: Include gdb_bfd.h.
2955         (do_bfd_close_cleanup): Use gdb_bfd_unref.
2956         * symfile.c: Include gdb_bfd.h.
2957         (separate_debug_file_exists): Use gdb_bfd_unref.
2958         (bfd_open_maybe_remote): Use gdb_bfd_ref.
2959         (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2960         (generic_load): Use gdb_bfd_ref.
2961         (reread_symbols): Use gdb_bfd_unref.
2962         * symfile-mem.c: Include gdb_bfd.h.
2963         (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2964         * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2965         * solib.c: Include gdb_bfd.h.
2966         (solib_bfd_fopen): Use gdb_bfd_ref.
2967         (solib_bfd_open): Use gdb_bfd_unref.
2968         (free_so_symbols): Use gdb_bfd_unref.
2969         (reload_shared_libraries_1): Use gdb_bfd_unref.
2970         * solib-spu.c: Include gdb_bfd.h.
2971         (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2972         * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2973         gdb_bfd_unref.
2974         * solib-frv.c: Include gdb_bfd.h.
2975         (enable_break2): Use gdb_bfd_unref.
2976         * solib-dsbt.c: Include gdb_bfd.h.
2977         (enable_break2): Use gdb_bfd_unref.
2978         * solib-darwin.c: Include gdb_bfd.h.
2979         (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2980         gdb_bfd_unref.
2981         (darwin_bfd_open): Use gdb_bfd_unref.
2982         * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2983         * remote-mips.c: Include gdb_bfd.h.
2984         (mips_load_srec): Use gdb_bfd_ref.
2985         (pmon_load_fast): Use gdb_bfd_ref.
2986         * remote-m32r-sdi.c: Include gdb_bfd.h.
2987         (m32r_load): Use gdb_bfd_ref.
2988         * record.c: Include gdb_bfd.h.
2989         (record_save_cleanups): Use gdb_bfd_unref.
2990         (cmd_record_save): Use gdb_bfd_unref.
2991         * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2992         gdb_bfd_unref.
2993         * objfiles.h (gdb_bfd_close_or_warn): Remove.
2994         (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2995         * objfiles.c: Include gdb_bfd.h.
2996         (free_objfile): Use gdb_bfd_unref.
2997         (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2998         gdb_bfd.c.
2999         * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3000         (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3001         (macho_check_dsym): Likewise.
3002         * m32r-rom.c: Include gdb_bfd.h.
3003         (m32r_load): Use gdb_bfd_ref.
3004         (m32r_upload_command): Use gdb_bfd_ref.
3005         * jit.c: Include gdb_bfd.h.
3006         (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3007         * gdb_bfd.h: New file.
3008         * gdb_bfd.c: New file.
3009         * gcore.c: Include gdb_bfd.h.
3010         (create_gcore_bfd): Use gdb_bfd_ref.
3011         (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3012         (gcore_command): Use gdb_bfd_unref.
3013         * exec.c: Include gdb_bfd.h.
3014         (exec_close): Use gdb_bfd_unref.
3015         (exec_close_1): Use gdb_bfd_unref.
3016         (exec_file_attach): Use gdb_bfd_ref.
3017         * elfread.c: Include gdb_bfd.h.
3018         (build_id_verify): Use gdb_bfd_unref.
3019         * dsrec.c: Include gdb_bfd.h.
3020         (load_srec): Use gdb_bfd_ref.
3021         * corelow.c: Include gdb_bfd.h.
3022         (core_close): Use gdb_bfd_unref.
3023         (core_open): Use gdb_bfd_ref.
3024         * bfd-target.c: Include gdb_bfd.h.
3025         (target_bfd_xclose): Use gdb_bfd_unref.
3026         (target_bfd_reopen): Use gdb_bfd_ref.
3027         * Makefile.in (SFILES): Add gdb_bfd.c.
3028         (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3029         (COMMON_OBS): Add gdb_bfd.o.
3030
3031 2012-07-18  Keith Seitz  <keiths@redhat.com>
3032
3033         * breakpoint.c (find_condition_and_thread): Initialize
3034         TASK and REST.
3035         (create_breakpiont): find_condition_and_thread will now
3036         initialize COND_STRING, THREAD, and REST (and TASK).
3037         (addr_string_to_sals): Likewise.
3038
3039 2012-07-18  Pedro Alves  <palves@redhat.com>
3040
3041         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3042         Pull the single step breakpoints out of the target.
3043
3044 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
3045
3046         * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3047         * stap-probe.c (compile_probe_arg): Likewise.
3048
3049 2012-07-18  Sergio Durigan Junior  <sergiodj@redhat.com>
3050
3051         * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3052         (elf_compile_to_ax): Likewise.
3053         * infrun.c (insert_exception_resume_from_probe): Likewise.
3054         (check_exception_resume): Remove `objfile' variable.
3055         * probe.c (find_probe_by_pc): Remove `objfile' argument.
3056         (struct probe_and_objfile, probe_and_objfile_s): Delete.
3057         (collect_probes): Adjust return value to `VEC (probe_p) *'.
3058         (compare_entries): Rename to...
3059         (compare_probes): ...this.  Adjust function to work with
3060         `struct probe *'.  Rename variables `ea' and `eb' to `pa' and `pb'
3061         respectively.
3062         (gen_ui_out_table_header_info): Adjust `probes' argument to be
3063         `VEC (probe_p) *'.
3064         (print_ui_out_info): Adjust argument to be `struct probe *'.
3065         (info_probes_for_ops): Adjust internal computations to use
3066         `VEC (probe_p) *'.
3067         (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3068         * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3069         gen_info_probes_table_values>: Remove `objfile' argument.
3070         (struct probe) <objfile>: New field.
3071         (find_probe_by_pc): Remove `objfile' argument.
3072         * stap-probe.c (stap_parse_probe_arguments): Likewise.
3073         (stap_get_probe_argument_count): Likewise.
3074         (stap_get_arg): Likewise.
3075         (stap_evaluate_probe_argument): Likewise.
3076         (stap_compile_to_ax): Likewise.
3077         (compile_probe_arg): Refactor not to pass `objfile' anymore.
3078         (handle_stap_probe): Fill `objfile' field from `struct probe'.
3079         (stap_gen_info_probes_table_header): Remove `objfile' argument.
3080         * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3081         sym_compile_to_ax>: Likewise.
3082
3083 2012-07-18  Terry Guo  <terry.guo@arm.com>
3084
3085         PR 14329
3086         * defs.h (GDB_MI_MSG_WIDTH): New.
3087         * ser_base (ser_base_read_error_fd): New function.
3088         (do_ser_base_readchar): Poll error file descriptor as well as
3089         standard output.
3090         (generic_readchar): Refactor error handling.
3091
3092 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
3093
3094         * NEWS: Create a new section for the next release branch.
3095         Rename the section of the current branch, now that it has
3096         been cut.
3097
3098 2012-07-18  Joel Brobecker  <brobecker@adacore.com>
3099
3100         GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3101         * version.in: Bump version to 7.5.50.20120718-cvs.
3102
3103 2012-07-17  Keith Seitz  <keiths@redhat.com>
3104
3105         * linespec.c (linespec_parse_line_offset): Make parameter
3106         const.
3107
3108 2012-07-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
3109
3110         PR 11914
3111         * f-valprint.c (info_common_command): New variable frame_id.
3112         Reinitialize FI form FRAME_ID after each print_variable_and_value.
3113         * printcmd.c (print_variable_and_value): Extend function comment.
3114         Add comment for invalidated FRAME.
3115         * stack.c (backtrace_command_1): New variable frame_id.  Reinitialize
3116         FI form FRAME_ID after each print_frame_local_vars.
3117         (struct print_variable_and_value_data): Change frame to frame_id.
3118         (do_print_variable_and_value): New variable frame, initialize it from
3119         p->frame_id.  Add comment for invalidated FRAME.
3120         (print_frame_local_vars, print_frame_arg_vars): New function comment.
3121         Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization.  Add comment
3122         for invalidated FRAME.
3123
3124 2012-07-16  Marc Khouzam  <marc.khouzam@ericsson.com>
3125             Pedro Alves  <palves@redhat.com>
3126
3127         * linux-nat.c (linux_nat_detach): Don't unregister from the event
3128         loop.
3129
3130 2012-07-16  Tom Tromey  <tromey@redhat.com>
3131
3132         * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3133
3134 2012-07-15  Doug Evans  <dje@google.com>
3135
3136         * dwarf2read.c (stmt_list_hash): New struct.
3137         (type_unit_group): Embed "per_cu" member, remove pointer.
3138         New union member "t", move member "tus" into it, all uses updated.
3139         New member "hash", replaces member "line_offset, all uses updated.
3140         (quick_file_names): Replace member "offset" with "hash", all uses
3141         updated.
3142         (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3143         (hash_file_name_entry, eq_file_name_entry): Call them.
3144         (hash_type_unit_group, eq_type_unit_group): Ditto.
3145         (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3146         (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3147         (dw2_get_file_names): Update.
3148         (create_type_unit_group): Replace "per_cu" arg with "cu".
3149         All callers updated.  Fix "quick" (.gdb_index) handling.
3150         (get_type_unit_group): Replace "per_cu" arg with "cu".
3151         All callers updated.
3152         (build_type_unit_groups): Don't reset tu_stats.
3153
3154         * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3155         "tab_cur_size".  Change member "tab" to be a htab_t.
3156         (create_filename_seen_cache): Update.
3157         (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3158         (filename_seen): Update.
3159
3160 2012-07-13  Doug Evans  <dje@google.com>
3161
3162         * symtab.c (filename_seen): Update comment.
3163
3164 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3165             Doug Evans  <dje@google.com>
3166
3167         * buildsym.c (end_symtab_1): Split it to ...
3168         (end_symtab_get_static_block): ... this ...
3169         (end_symtab_from_static_block): ... and this function.
3170         (end_symtab, end_expandable_symtab): Call them.
3171         * buildsym.h (end_symtab_get_static_block)
3172         (end_symtab_from_static_block): New declarations.
3173         * dwarf2read.c (process_full_comp_unit): New variable static_block.
3174         Set its valid CU ranges.
3175
3176 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3177
3178         * dwarf2loc.c (disassemble_dwarf_expression): Handle
3179         DW_OP_GNU_parameter_ref.
3180
3181 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3182
3183         * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3184         read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3185
3186 2012-07-13  Doug Evans  <dje@google.com>
3187
3188         * symtab.c (output_source_filename): Delete unnecessary forward decl.
3189         (filename_seen_cache): New struct.
3190         (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3191         (create_filename_seen_cache): New function.
3192         (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3193         (filename_seen): Delete arg "first".  New arg "cache".  All callers
3194         updated.
3195         (output_source_filename_data): New struct.
3196         (output_source_filename): Delete arg "first".  New arg "data".
3197         All callers updated.
3198         (sources_info): Delete local "first".  New locals "data", "cleanups".
3199         Rewrite to use filename_seen_cache.
3200         (add_partial_filename_data): Delete member "first".  New member
3201         "filename_seen_cache".  All uses updated.
3202         (make_source_files_completion_list): Rewrite to use
3203         filename_seen_cache.
3204
3205 2012-07-12  Doug Evans  <dje@google.com>
3206
3207         * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3208
3209 2012-07-10  Doug Evans  <dje@google.com>
3210
3211         PR gdb/13498
3212         * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3213         all_type_unit_groups, type_unit_groups, tu_stats.
3214         (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3215         All uses updated.  Add type_unit_group to union "s".
3216         (type_unit_group): New struct.
3217         (IS_TYPE_UNIT_GROUP): New macro.
3218         (abbrev_table): Delete unused member "section".
3219         (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3220         (dw2_get_cu): Assert not used with type_unit_group.
3221         (dw2_get_primary_cu): New function.
3222         (dw2_build_type_unit_groups_reader): New function.
3223         (dw2_build_type_unit_groups): New function.
3224         (dw2_get_file_names): Assert not called on type units.
3225         (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3226         Redo loop to iterate over type unit groups instead of type units.
3227         (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3228         (read_abbrev_offset): New function.
3229         (init_cutu_and_read_dies): New arg "abbrev_table".  All callers
3230         updated.
3231         (create_partial_symtab): New function.
3232         (process_psymtab_comp_unit_reader): Assert not used with type units.
3233         Call create_partial_symtab.
3234         (process_psymtab_type_unit): Delete.
3235         (hash_type_unit_group, eq_type_unit_group): New functions.
3236         (allocate_type_unit_groups_table): New function.
3237         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3238         (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3239         (create_type_unit_group, get_type_unit_group): New functions.
3240         (tu_abbrev_offset): New struct.
3241         (sort_tu_by_abbrev_offset): New function.
3242         (add_type_unit_group_to_table): New function.
3243         (build_type_unit_groups): New function.
3244         (build_type_psymtabs_reader): New function.
3245         (build_type_psymtab_dependencies): New function.
3246         (build_type_psymtabs): Rewrite.
3247         (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3248         is seen in a type unit.
3249         (process_queue): Move symtab expansion debugging printfs here.
3250         Call process_full_type_unit for type units.
3251         (compute_symtab_includes): Assert not called for type units.
3252         (process_cu_includes): Don't call compute_symtab_includes for
3253         type units.
3254         (process_full_type_unit): New function.
3255         (process_imported_unit_die): Flag an error if called for type units.
3256         (handle_DW_AT_stmt_list): Delete arg "want_line_info".  All callers
3257         updated.  Assert not called for type units.
3258         (read_file_scope): Call dwarf2_start_symtab.
3259         (setup_type_unit_groups): New function.
3260         (read_type_unit_scope): Rewrite.
3261         (abbrev_table_read_table): Initialize abbrev_table->offset.
3262         (abbrev_table_free_cleanup): New function.
3263         (dwarf2_start_symtab): New function.
3264         (load_full_type_unit): Assert not called for type unit groups.
3265         * buildsym.c (finish_block_internal): New arg "expandable".
3266         All callers updated.
3267         (start_symtab): Move most contents to ...
3268         (restart_symtab): ... here.  New function.
3269         (reset_symtab_globals): New function.
3270         (end_symtab_1): Renamed from end_symtab.  New arg "expandable".
3271         Call reset_symtab_globals.
3272         (end_symtab, end_expandable_symtab): New functions.
3273         (set_missing_symtab, augment_type_symtab): New functions.
3274         * buildsym.h (end_expandable_symtab): Declare.
3275         (augment_type_symtab, restart_symtab): Declare.
3276         * psympriv.h (struct partial_symtab): New member "anonymous".
3277         * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3278         anonymous psymtabs.
3279         (read_psymtabs_with_filename): Ditto.
3280         (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3281         (expand_symtabs_matching_via_partial): Ditto.
3282         (dump_psymtab): Update.
3283         * dictionary.c (dict_add_pending): New function.
3284         * dictionary.h (dict_add_pending): Declare.
3285
3286 2012-07-09  Doug Evans  <dje@google.com>
3287
3288         * buildsym.c (start_subfile): Remove unnecessary check for
3289         name == NULL.
3290
3291         * psymtab.c (allocate_psymtab): Use host_address_to_string.
3292
3293         * dwarf2read.c (load_full_type_unit): Simplify.
3294
3295         * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3296         to struct signatured_type **.  All uses updated.
3297
3298         * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3299         All callers updated.
3300
3301 2012-07-09  Tom Tromey  <tromey@redhat.com>
3302
3303         * c-exp.y (check_parameter_typelist): New function.
3304         (parameter_typelist): Call it.
3305         * eval.c (make_params): Handle '(void)' case.
3306         * gdbtypes.c (lookup_function_type_with_arguments): Handle
3307         '(void)' case.
3308
3309 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3310
3311         * common/linux-ptrace.c: Include gdb_assert.h.
3312         <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3313         <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3314         stdint.h.
3315         (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3316         functions.
3317         * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3318         * linux-nat.c (linux_child_post_attach)
3319         (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3320
3321 2012-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3322
3323         * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3324         nptl <2.7 bug workaround for core files.
3325
3326 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3327
3328         * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3329         clearing.
3330         (save_siginfo): Remove.
3331         (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3332         call.
3333         (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3334         (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3335         * linux-nat.h (struct lwp_info): Remove field siginfo.
3336
3337 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3338
3339         Code cleanup for the next patch.
3340         * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3341         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3342         call for it.
3343         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3344         (ia64_linux_stopped_data_address):
3345         * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3346         the return value.
3347         * linux-nat.h (linux_nat_get_siginfo): Likewise.
3348         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3349         siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3350         call for it.
3351
3352 2012-07-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3353
3354         PR 14321
3355         * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3356         Increase buffer sizes to 2x we need, not just 2x of the previous size.
3357
3358 2012-07-06  Tom Tromey  <tromey@redhat.com>
3359
3360         * c-exp.y (DOTDOTDOT): New token.
3361         (func_mod, exp): Use parameter_typelist.
3362         (parameter_typelist): New production.
3363         (tokentab3): Add "..." token.
3364         * eval.c (make_params): Handle varargs.
3365         * gdbtypes.c (lookup_function_type_with_arguments): Handle
3366         varargs.
3367
3368 2012-07-06  Tom Tromey  <tromey@redhat.com>
3369
3370         PR exp/9608:
3371         * c-exp.y (%union) <tvec>: Change type.
3372         (func_mod): Now uses <tvec> type.
3373         (exp): Update for tvec change.
3374         (direct_abs_decl): Push the typelist.
3375         (func_mod): Return a typelist.
3376         (nonempty_typelist): Update for tvec change.
3377         * gdbtypes.c (lookup_function_type_with_arguments): New function.
3378         * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3379         * parse.c (pop_type_list): New function.
3380         (push_typelist): New function.
3381         (follow_types): Handle tp_function_with_arguments.
3382         * parser-defs.h (type_ptr): New typedef.  Define a VEC.
3383         (enum type_pieces) <tp_function_with_arguments>: New constant.
3384         (union type_stack_elt) <typelist_val>: New field.
3385         (push_typelist): Declare.
3386
3387 2012-07-06  Tom Tromey  <tromey@redhat.com>
3388
3389         * c-exp.y (%union) <type_stack>: New field.
3390         (abs_decl, direct_abs_decl): Use <type_stack> type.  Update.
3391         (ptr_operator_ts): New production.
3392         (ptype): Update.
3393         * parse.c (type_stack_reserve): New function.
3394         (check_type_stack_depth): Use it.
3395         (pop_type_stack, append_type_stack, push_type_stack)
3396         (get_type_stack, type_stack_cleanup): New functions.
3397         (follow_types): Handle tp_type_stack.
3398         (_initialize_parse): Simplify initialization.
3399         * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3400         constant.
3401         (union type_stack_elt) <stack_val>: New field.
3402         (get_type_stack, append_type_stack, push_type_stack)
3403         (type_stack_cleanup): Declare.
3404
3405 2012-07-06  Tom Tromey  <tromey@redhat.com>
3406
3407         * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3408         Remove.
3409         (struct type_stack): New.
3410         * parse.c (type_stack, type_stack_size, type_stack_depth):
3411         Remove.
3412         (type_stack): New global.
3413         (parse_exp_in_context, check_type_stack_depth)
3414         (insert_into_type_stack, insert_type, push_type, push_type_int)
3415         (insert_type_address_space, pop_type, pop_type_int)
3416         (_initialize_parse): Update.
3417
3418 2012-07-06  Tom Tromey  <tromey@redhat.com>
3419
3420         * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3421         Remove %type.
3422
3423 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3424
3425         * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3426
3427 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3428             Jan Kratochvil  <jan.kratochvil@redhat.com>
3429
3430         * cp-valprint.c (cp_print_value): Replace potentially unsafe
3431         alloca with xmalloc/xfree.
3432
3433 2012-07-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3434
3435         * MAINTAINERS (Write After Approval): Add myself to the list.
3436
3437 2012-07-05  Doug Evans  <dje@google.com>
3438
3439         * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3440
3441 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
3442
3443         * ax-gdb.c (cli/cli-utils.h): New include.
3444         (linespec.h): Ditto.
3445         (agent_eval_command_one): New function.
3446         (agent_command_1): Ditto.
3447         (agent_command): Call function agent_command_1.
3448         (agent_eval_command): Ditto.
3449         (_initialize_ax_gdb): Change help for "maint agent"
3450         and "maint agent-eval".
3451
3452 2012-07-05  Hui Zhu  <hui_zhu@mentor.com>
3453
3454         * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3455         * cli/cli-utils.c (check_for_argument): New function.
3456         * cli/cli-utils.h (check_for_argument): Ditto.
3457
3458 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
3459
3460         * NEWS: Mention x32 ABI support.
3461
3462 2012-07-04  H.J. Lu  <hongjiu.lu@intel.com>
3463
3464         * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3465         AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3466
3467         * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3468         and pc_regnum_from_eax to -1.  Update SP regnum from
3469         sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3470         needed.
3471
3472         * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3473         pc_regnum_from_eax.
3474
3475 2012-07-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
3476
3477         Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3478         * dwarf2expr.h: Include gdbtypes.h.
3479         (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3480         these forward declarations.
3481         (cu_offset, sect_offset): Move these ...
3482         * gdbtypes.h: Remove include dwarf2expr.h.
3483         (cu_offset, sect_offset): ... here.
3484
3485 2012-07-03  H.J. Lu  <hongjiu.lu@intel.com>
3486
3487         * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3488         (amd64_linux_sigtramp_code): This.
3489         (amd64_x32_linux_sigtramp_code): New.
3490         (LINUX_SIGTRAMP_LEN): Updated.
3491         (amd64_linux_sigtramp_start): Check x32 sigtramp.
3492
3493 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3494
3495         * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3496
3497 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3498
3499         * config.in: Regenerate.
3500         * configure: Regenerate.
3501         * configure.ac: Remove check for gnu/libc-version.h.
3502         * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3503         gnu/libc-version.h.
3504         (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3505         variables libc_version, libc_major and libc_minor.  Replace sscanf by
3506         inferior_has_bug.  Extend the comment.
3507
3508 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3509
3510         * linux-thread-db.c (inferior_has_bug): New function.
3511         (thread_db_find_new_threads_silently): Return boolean as checked by
3512         inferior_has_bug, describe it in the comments.
3513         (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3514         earlier.  Abort the initialization if it returned non-zero.
3515         (thread_db_new_objfile): Exclude debug files.
3516         (thread_db_find_new_threads_2): Preinitialize ERR.  Check errors also
3517         if UNTIL_NO_NEW,
3518
3519 2012-07-02  Doug Evans  <dje@google.com>
3520
3521         * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3522         related to queue management.
3523
3524         * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3525         instead of "debug dwarf2-die" in debugging printfs.
3526         (create_debug_info_hash_table_reader): Ditto.
3527         (create_debug_info_hash_table): Ditto.
3528         (init_dwo_file): Ditto.
3529         (init_cutu_and_read_dies): Add debugging printf.
3530         (init_cutu_and_read_dies_no_follow): Ditto.
3531         (process_psymtab_comp_unit_reader): Ditto.
3532
3533 2012-07-02  Stan Shebs  <stan@codesourcery.com>
3534
3535         Add target-side support for dynamic printf.
3536         * NEWS: Mention the additional style.
3537         * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3538         (struct bp_location): New field cmd_bytecode.
3539         * breakpoint.c: Include format.h.
3540         (disconnected_dprintf): New global.
3541         (parse_cmd_to_aexpr): New function.
3542         (build_target_command_list): New function.
3543         (insert_bp_location): Call it.
3544         (remove_breakpoints_pid): Skip dprintf breakpoints.
3545         (print_one_breakpoint_location): Ditto.
3546         (dprintf_style_agent): New global.
3547         (dprintf_style_enums): Add dprintf_style_agent.
3548         (update_dprintf_command_list): Add agent case.
3549         (agent_printf_command): New function.
3550         (_initialize_breakpoint): Add new commands.
3551         * common/ax.def (printf): New bytecode.
3552         * ax.h (ax_string): Declare.
3553         * ax-gdb.h (gen_printf): Declare.
3554         * ax-gdb.c: Include cli-utils.h, format.h.
3555         (gen_printf): New function.
3556         (maint_agent_print_command): New function.
3557         (_initialize_ax_gdb): Add maint agent-printf command.
3558         * ax-general.c (ax_string): New function.
3559         (ax_print): Add printf disassembly.
3560         * Makefile.in (SFILES): Add format.c
3561         (COMMON_OBS): Add format.o.
3562         * common/format.h: New file.
3563         * common/format.c: New file.
3564         * printcmd.c: Include format.h.
3565         (ui_printf): Call parse_format_string.
3566         * remote.c (remote_state): New field breakpoint_commands.
3567         (PACKET_BreakpointCommands): New enum.
3568         (remote_breakpoint_commands_feature): New function.
3569         (remote_protocol_features): Add new BreakpointCommands entry.
3570         (remote_can_run_breakpoint_commands): New function.
3571         (remote_add_target_side_commands): New function.
3572         (remote_insert_breakpoint): Call it.
3573         (remote_insert_hw_breakpoint): Ditto.
3574         (_initialize_remote): Add new packet configuration for
3575         target-side breakpoint commands.
3576         * target.h (struct target_ops): New field
3577         to_can_run_breakpoint_commands.
3578         (target_can_run_breakpoint_commands): New macro.
3579         * target.c (update_current_target): Handle
3580         to_can_run_breakpoint_commands.
3581
3582 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3583
3584         Execute -ix and -iex only after system and user gdbinit files.
3585         * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3586         processing down after gdbinit files.
3587
3588 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3589
3590         Add fnmatch-gnu module.
3591         * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3592         * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3593         * gnulib/aclocal.m4: Regenerate.
3594         * gnulib/config.in: Regenerate.
3595         * gnulib/configure: Regenerate.
3596         * gnulib/import/dummy.c: Remove.
3597         * gnulib/import/Makefile.am: Regenerate.
3598         * gnulib/import/Makefile.in: Likewise.
3599         * gnulib/import/m4/gnulib-cache.m4: Likewise.
3600         * gnulib/import/m4/gnulib-comp.m4: Likewise.
3601         * gnulib/import/alloca.c: New file.
3602         * gnulib/import/alloca.in.h: Likewise.
3603         * gnulib/import/config.charset: Likewise.
3604         * gnulib/import/fnmatch.c: Likewise.
3605         * gnulib/import/fnmatch.in.h: Likewise.
3606         * gnulib/import/fnmatch_loop.c: Likewise.
3607         * gnulib/import/localcharset.c: Likewise.
3608         * gnulib/import/localcharset.h: Likewise.
3609         * gnulib/import/m4/alloca.m4: Likewise.
3610         * gnulib/import/m4/codeset.m4: Likewise.
3611         * gnulib/import/m4/configmake.m4: Likewise.
3612         * gnulib/import/m4/fcntl-o.m4: Likewise.
3613         * gnulib/import/m4/fnmatch.m4: Likewise.
3614         * gnulib/import/m4/glibc21.m4: Likewise.
3615         * gnulib/import/m4/localcharset.m4: Likewise.
3616         * gnulib/import/m4/locale-fr.m4: Likewise.
3617         * gnulib/import/m4/locale-ja.m4: Likewise.
3618         * gnulib/import/m4/locale-zh.m4: Likewise.
3619         * gnulib/import/m4/mbrtowc.m4: Likewise.
3620         * gnulib/import/m4/mbsinit.m4: Likewise.
3621         * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3622         * gnulib/import/m4/mbstate_t.m4: Likewise.
3623         * gnulib/import/m4/stdbool.m4: Likewise.
3624         * gnulib/import/m4/wchar_h.m4: Likewise.
3625         * gnulib/import/m4/wctype_h.m4: Likewise.
3626         * gnulib/import/m4/wint_t.m4: Likewise.
3627         * gnulib/import/mbrtowc.c: Likewise.
3628         * gnulib/import/mbsinit.c: Likewise.
3629         * gnulib/import/mbsrtowcs-impl.h: Likewise.
3630         * gnulib/import/mbsrtowcs-state.c: Likewise.
3631         * gnulib/import/mbsrtowcs.c: Likewise.
3632         * gnulib/import/ref-add.sin: Likewise.
3633         * gnulib/import/ref-del.sin: Likewise.
3634         * gnulib/import/stdbool.in.h: Likewise.
3635         * gnulib/import/streq.h: Likewise.
3636         * gnulib/import/strnlen1.c: Likewise.
3637         * gnulib/import/strnlen1.h: Likewise.
3638         * gnulib/import/verify.h: Likewise.
3639         * gnulib/import/wchar.in.h: Likewise.
3640         * gnulib/import/wctype.in.h: Likewise.
3641
3642 2012-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
3643
3644         Support shell wildcards for 'set auto-load safe-path'.
3645         * auto-load.c: Include fnmatch.h.
3646         (filename_is_in_dir): Rename to ...
3647         (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3648         it.  Update function comment.  Rename dir_len to pattern_len.  New
3649         variables filename_len, pattern and filename.  Add more DEBUG_AUTO_LOAD
3650         messages.  Use gdb_filename_fnmatch.
3651         (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3652         pattern.
3653         (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3654         * defs.h (gdb_filename_fnmatch): New declaration.
3655         * utils.c: Include fnmatch.h.
3656         (gdb_filename_fnmatch): New function.
3657
3658 2012-07-02  Sergio Durigan Junior  <sergiodj@redhat.com>
3659
3660         * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3661         `-probe' and `-probe-stap' options.
3662
3663 2012-07-01  Yao Qi  <yao@codesourcery.com>
3664
3665         * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3666         always_inserted_off, and always_inserted_enums.
3667         Change always_inserted_mode's type to 'enum auto_boolean'.
3668         (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3669         callers.
3670         (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3671         of add_setshow_enum_cmd.
3672         * infrun.c: Remove can_use_displaced_stepping_auto,
3673         can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3674         can_use_displaced_stepping_enum.
3675         Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3676         (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3677         (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3678         add_setshow_enum_cmd.
3679
3680 2012-06-30  Doug Evans  <dje@google.com>
3681
3682         * dwarf2read.c (signatured_type): Make "per_cu" member first.
3683         (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3684         currently being read.  Propagate DW_AT_comp_dir to DWO DIE.
3685
3686 2012-06-29  Doug Evans  <dje@google.com>
3687
3688         * linespec.c: #include "stack.h".
3689         (decode_line_with_current_source): Moved here from symtab.c and
3690         renamed from decode_line_spec.  All callers updated.
3691         (decode_line_with_last_displayed): Moved here from breakpoint.c and
3692         renamed from decode_line_spec_1.  All callers updated.
3693         * linespec.h (decode_line_with_current_source): Move declaration here
3694         from symtab.h and renamed from decode_line_spec.
3695         (decode_line_with_last_displayed): Move declaration here from symtab.h
3696         and renamed from decode_line_spec_1.
3697         * macrocmd.c: #include "linespec.h".
3698         * symtab.c: Remove #include "linespec.h".
3699
3700 2012-06-28  Doug Evans  <dje@google.com>
3701
3702         * dwarf2read.c (get_cu_length): New function.
3703         (offset_in_cu_p, error_check_comp_unit_head): Call it.
3704         (create_debug_types_hash_table): Ditto.
3705         (init_cutu_and_read_dies): Ditto.
3706         (init_cutu_and_read_dies_no_follow): Ditto.
3707
3708         * dwarf2read.c (dwarf2_find_base_address): Move definition.
3709
3710         * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3711         (struct abbrev_table): Define.
3712         (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3713         abbrev_table.
3714         (init_cutu_and_read_dies): Update.
3715         (abbrev_table_alloc_abbrev): New function.  Replaces
3716         dwarf_alloc_abbrev.  All callers updated.
3717         (abbrev_table_add_abbrev): New function.
3718         (abbrev_table_lookup_abbrev): New function.  Replaces
3719         dwarf2_lookup_abbrev.  All callers updated.
3720         (abbrev_table_read_table): New function.  Contents moved here from
3721         dwarf2_read_abbrevs.
3722         (dwarf2_read_abbrevs): Call it.
3723         (abbrev_table_free): New function.
3724         (dwarf2_free_abbrev_table): Call it.
3725
3726 2012-06-28  Stan Shebs  <stan@codesourcery.com>
3727
3728         * osdata.c (info_osdata_command): Filter out "Title" columns
3729         from non-MI uses.
3730         * common/linux-osdata.c (struct osdata_type): Add title field.
3731         (osdata_table): Add titles to each entry.
3732         (linux_command_xfer_osdata): Add a column for title data.
3733
3734 2012-06-28  Stan Shebs  <stan@codesourcery.com>
3735
3736         Make logging work for MI.
3737         * NEWS: Mention it.
3738         * interps.h (interp_set_logging_ftype): New typedef.
3739         (struct interp_procs): New field set_logging_proc.
3740         (current_interp_set_logging): Declare.
3741         * interps.c (current_interp_set_logging): New function.
3742         * cli/cli-logging.c: Include interps.h.
3743         (set_logging_redirect): Call current_interp_set_logging.
3744         (pop_output_files): Ditto.
3745         (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3746         * mi/mi-console.h (mi_console_set_raw): Declare.
3747         * mi/mi-console.c (mi_console_set_raw): New function.
3748         * mi/mi-interp.c (saved_raw_stdout): New global.
3749         (mi_set_logging): New function.
3750         (_initialize_mi_interp): Add it to interp procs.
3751
3752 2012-06-28  Doug Evans  <dje@google.com>
3753
3754         * symtab.c (lookup_symbol_aux_objfile): Use
3755         ALL_OBJFILE_PRIMARY_SYMTABS.
3756
3757         * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3758
3759 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3760
3761         * common/buffer.c: Include inttypes.h and stdint.h.
3762         (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3763
3764 2012-06-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
3765             Pedro Alves  <palves@redhat.com>
3766
3767         * gdbthread.h (ALL_THREADS): New macro.
3768         (thread_list): Declare.
3769         * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3770         going, but instead fall through to the stepping handling.
3771         * linux-nat.c (resume_lwp): New parameter 'signo'.  Resume with
3772         the passed in signal.  Adjust debug output.
3773         (resume_callback): Rename to ...
3774         (linux_nat_resume_callback): ... this.  Pass the thread's last
3775         stop signal, if in "pass" state.
3776         (linux_nat_resume): Adjust to rename.
3777         (stop_wait_callback): New assertion.  Don't respawn signals;
3778         instead let the LWP remain with SIGNALLED set.
3779         (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3780         * remote.c (append_pending_thread_resumptions): New.
3781         (remote_vcont_resume): Call it.
3782         * target.h (target_resume): Extend comment.
3783
3784 2012-06-28  Iain Sandoe  <iain@codesourcery.com>
3785
3786         * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3787
3788 2012-06-27  Doug Evans  <dje@google.com>
3789
3790         * dwarf2read.c (dwarf2_cu): Add ranges_base.
3791         Delete have_addr_base, unused.  All uses updated.
3792         (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3793         (dwarf2_get_pc_bounds): Add ranges_base.
3794         (dwarf2_record_block_ranges): Ditto.
3795
3796 2012-06-27  Tom Tromey  <tromey@redhat.com>
3797
3798         PR macros/7961:
3799         * varobj.c (varobj_create): Update.
3800         (varobj_set_value): Update.
3801         * tracepoint.c (validate_actionline): Update.
3802         (encode_actions_1): Update.
3803         * parse.c (parse_exp_1): Add 'pc' argument.
3804         (parse_exp_in_context): Add 'pc' argument.  Change how
3805         expression_context_pc is set.
3806         (parse_expression): Update.
3807         (parse_field_expression): Update.
3808         * expression.h (parse_exp_1): Update.
3809         * eval.c (parse_to_comma_and_eval): Update.
3810         * breakpoint.c (set_breakpoint_condition): Update.
3811         (update_watchpoint): Update.
3812         (init_breakpoint_sal): Update
3813         (find_condition_and_thread): Update.
3814         (watch_command_1): Update.
3815         (update_breakpoint_locations): Update.
3816         * ada-lang.c (ada_read_renaming_var_value): Update.
3817         (create_excep_cond_exprs): Update.
3818
3819 2012-06-27  Doug Evans  <dje@google.com>
3820
3821         * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3822         type units.
3823
3824 2012-06-26  Doug Evans  <dje@google.com>
3825
3826         * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3827         prototype.
3828         (error_check_comp_unit_head): New arg abbrev_section.  All callers
3829         updated.
3830         (read_and_check_comp_unit_head): Ditto.
3831         (read_and_check_type_unit_head): Ditto.
3832
3833 2012-06-26  Siva Chandra Reddy  <sivachandra@google.com>
3834
3835         New attribute 'last' for gdb.Symtab_and_line.
3836         * NEWS (Python Scripting): Add entry about the new attribute.
3837         * python/py-symtab.c (salpy_get_last): New function which
3838         implements the get method for the 'last' attribute of
3839         gdb.Symtab_and_line.
3840         (sal_object_getset): Add entry for the 'last' attribute.
3841
3842 2012-06-26  Doug Evans  <dje@google.com>
3843
3844         * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3845         (dwo_sections): Add macinfo, macro.
3846         (dwarf2_locate_dwo_sections): Watch for macro sections.
3847         (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3848         All callers updated.  Handle DWO files.
3849
3850         * NEWS: Mention new options "set debug dwarf2-read" and
3851         "set debug symtab-create".
3852         * dwarf2read.c (dwarf2_read_debug): New static global.
3853         (dwarf2_build_psymtabs_hard): Add debugging printfs.
3854         (process_queue): Ditto.
3855         (process_full_comp_unit): Ditto.
3856         (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3857         * elfread.c (elf_symfile_read): Add debugging printf.
3858         * minsyms.c (install_minimal_symbols): Ditto.
3859         * psymtab.c (allocate_psymtab): Ditto.
3860         * symfile.c (allocate_symtab): Ditto.
3861         * symtab.c (symtab_create_debug): New global.
3862         (_initialize_symtab): Add new option "set debug symtab-create".
3863         * symtab.h (symtab_create_debug): Declare.
3864
3865         * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3866         (lookup_dwo_type_unit): Ditto.
3867
3868 2012-06-26  Roland McGrath  <roland@hack.frob.com>
3869             H.J. Lu  <hongjiu.lu@intel.com>
3870
3871         * amd64-linux-nat.c: Include <sys/user.h>.
3872         (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3873         if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3874         HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3875
3876         * configure.ac: Check if the fs_base and gs_base members of
3877         `struct user_regs_struct' exist.
3878         * config.in: Regenerated.
3879         * configure: Likewise.
3880
3881 2012-06-25  Michael Eager  <eager@eagercon.com>
3882
3883         PR python/14291
3884         * python/python.c (gdbpy_write): Check for interrupted output.
3885
3886 2012-06-25  Greta Yorsh  <greta.yorsh@arm.com>
3887
3888         * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3889         register as a stack alignment in ARM mode.
3890
3891 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3892
3893         Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3894         * gnulib/config.in: Regenerate.
3895         * gnulib/configure: Likewise.
3896         * gnulib/import/m4/extensions.m4: Update it.
3897         * gnulib/import/m4/gnulib-common.m4: Likewise.
3898         * gnulib/import/m4/memmem.m4: Likewise.
3899         * gnulib/import/m4/mmap-anon.m4: Likewise.
3900         * gnulib/import/m4/multiarch.m4: Likewise.
3901         * gnulib/import/stdint.in.h: Likewise.
3902
3903 2012-06-24  Yao Qi  <yao@codesourcery.com>
3904
3905         * corefile.c (write_memory_with_notification): New.
3906         * gdbcore.h: Declare write_memory_with_notification.
3907         * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3908         'observer_notify_memory_changed' with 'write_memory_with_notification'.
3909         * valops.c (value_assign): Likewise.
3910         * python/py-inferior.c (infpy_write_memory): Call
3911         'write_memory_with_notification'.
3912
3913 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
3914
3915         * cc-with-index.sh: Use also -ex "set auto-load no".
3916
3917 2012-06-23  Doug Evans  <dje@google.com>
3918
3919         PR 14125
3920         * NEWS: Document additions to .gdb_index.
3921         * dwarf2read.c: #include "gdb/gdb-index.h".
3922         (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3923         (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3924         (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3925         (dwarf2_read_index): Recognize version 7.
3926         (dw2_do_expand_symtabs_matching): New args want_specific_block,
3927         block_kind, domain): All callers updated.
3928         (dw2_find_symbol_file): Handle new index CU values.
3929         (dw2_expand_symtabs_matching): Match symbol kind if requested.
3930         (add_index_entry): New args is_static, kind.  All callers updated.
3931         (offset_type_compare, uniquify_cu_indices): New functions
3932         (symbol_kind): New function.
3933         (write_psymtabs_to_index): Remove duplicate CU values.
3934         (write_psymtabs_to_index): Write .gdb_index version 7.
3935
3936 2012-06-22  Joel Brobecker  <brobecker@adacore.com>
3937
3938         * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3939         * configure: Regenerate.
3940
3941 2012-06-20  Yao Qi  <yao@codesourcery.com>
3942
3943         * python/py-inferior.c: Update comments of infpy_read_memory
3944         and infpy_write_memory.
3945
3946 2012-06-19  Tom Tromey  <tromey@redhat.com>
3947
3948         PR exp/9514:
3949         * parser-defs.h (insert_type, insert_type_address_space): Declare.
3950         (push_type_address_space): Remove.
3951         * parse.c (insert_into_type_stack): New function.
3952         (insert_type): Likewise.
3953         (insert_type_address_space): Rename from push_type_address_space.
3954         Insert tp_space_identifier.
3955         * c-exp.y (ptr_operator): New production.
3956         (abs_decl): Use ptr_operator.
3957         (space_identifier): Call insert_type_address_space.
3958         (ptype): Don't use const_or_volatile_or_space_identifier.
3959         (const_or_volatile_noopt): Call insert_type.
3960         (conversion_type_id, conversion_declarator): New productions.
3961         (operator): Use conversion_type_id.
3962
3963 2012-06-18  Doug Evans  <dje@google.com>
3964
3965         * symtab.h (minimal_symbol): New member created_by_gdb.
3966         * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3967         created by gdb.
3968         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3969         (search_symbols): Call it instead of lookup_symbol.
3970         Skip symbols created by gdb.  Only scan minsyms if nfiles == 0.
3971
3972         * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3973         Adjust address for DW_OP_GNU_addr_index.
3974         * dwarf2expr.h (dwarf_expr_context): Update comment.
3975         * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3976         all callers updated.  Handle TLS vars described with
3977         DW_OP_GNU_const_index.
3978         (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3979         and DW_OP_GNU_const_index.
3980         * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3981
3982         * block.c (find_block_in_blockvector): Make explicit the fact that we
3983         ignore GLOBAL_BLOCK.
3984
3985 2012-06-18  Tom Tromey  <tromey@redhat.com>
3986
3987         * c-exp.y (operator): Remove trailing space after "delete" and
3988         "delete[]".
3989
3990 2012-06-18  Mark Kettenis  <kettenis@gnu.org>
3991             Jan Kratochvil  <jan.kratochvil@redhat.com>
3992
3993         Switch i386 and derived targets to ON_STACK.
3994         * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3995         (amd64_dicos_init_abi): Remove its installment.
3996         * dicos-tdep.c (dicos_init_abi): Remove the
3997         set_gdbarch_call_dummy_location call.  Update the comment here.
3998         * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3999         (i386_dicos_init_abi): Remove its installment.
4000         * i386-tdep.c (i386_push_dummy_code): New function.
4001         (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4002         i386_push_dummy_code.
4003
4004 2012-06-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
4005
4006         Remove stale dummy frames.
4007         * breakpoint.c: Include dummy-frame.h.
4008         (longjmp_breakpoint_ops): New variable.
4009         (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4010         bp_longjmp_call_dummy.
4011         (bpstat_what, bptype_string, print_one_breakpoint_location)
4012         (init_bp_location): Support bp_longjmp_call_dummy.
4013         (set_longjmp_breakpoint): Use longjmp_breakpoint_ops.  Comment why.
4014         (set_longjmp_breakpoint_for_call_dummy)
4015         (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4016         functions.
4017         (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4018         * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy.  Delete
4019         FIXME comment and extend the other comment for bp_call_dummy.
4020         (set_longjmp_breakpoint_for_call_dummy)
4021         (check_longjmp_breakpoint_for_call_dummy): New declarations.
4022         * dummy-frame.c: Include gdbthread.h.
4023         (pop_dummy_frame_bpt): New function.
4024         (pop_dummy_frame): Call pop_dummy_frame_bpt.
4025         (dummy_frame_discard): New function.
4026         (cleanup_dummy_frames): Update the comment about longjmps.
4027         * dummy-frame.h (dummy_frame_discard): New declaration.
4028         * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4029         * infcall.c (call_function_by_hand): New variable longjmp_b.  Call
4030         set_longjmp_breakpoint_for_call_dummy.  Chain its breakpoints with BPT.
4031         * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4032         Add case 4 comment.  Call check_longjmp_breakpoint_for_call_dummy and
4033         keep_going if IS_LONGJMP and there is no other reason to stop.
4034
4035 2012-06-18  Greta Yorsh  <Greta.Yorsh@arm.com>
4036
4037         * remote-sim.c (sim_command_completer): Initialize
4038         variable 'result'.
4039
4040 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4041
4042         * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4043         * dwarf2loc.c (call_site_parameter_matches): Support
4044         CALL_SITE_PARAMETER_PARAM_OFFSET.
4045         (needs_dwarf_reg_entry_value): Push stub value.
4046         * dwarf2read.c (read_call_site_scope): New variable origin.  Support
4047         CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4048         * gdbtypes.h (enum call_site_parameter_kind): New item
4049         CALL_SITE_PARAMETER_PARAM_OFFSET.
4050         (struct call_site.parameter.u): New field param_offset.
4051
4052 2012-06-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
4053
4054         Code cleanup: Generalize call_site.parameter key.
4055         * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4056         variable dwarf_reg.  New variable kind_u.  Update parameters to
4057         push_dwarf_reg_entry_value.
4058         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4059         * dwarf2expr.h (enum call_site_parameter_kind)
4060         (union call_site_parameter_u): Forward declarations.
4061         (struct dwarf_expr_context_funcs): Update parameters and their
4062         description for push_dwarf_reg_entry_value.
4063         (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4064         * dwarf2loc.c (call_site_parameter_matches): New function.
4065         (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4066         description.  Use call_site_parameter_matches.
4067         (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4068         Update parameters and their description.
4069         (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4070         New variable kind_u.  Adjust the caller for updated parameters.
4071         (needs_dwarf_reg_entry_value): Update parameters.
4072         * dwarf2read.c (read_call_site_scope): New variable loc.  Use it
4073         instead of attr.  Update for the changed fields of struct
4074         call_site_parameter.
4075         * gdbtypes.h: Include dwarf2expr.h.
4076         (enum call_site_parameter_kind): New.
4077         (struct call_site.parameter): New field kind.  Wrap dwarf_reg and
4078         fb_offset into new union u.
4079
4080 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
4081
4082         * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4083         (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4084         for x32.
4085
4086 2012-06-16  H.J. Lu  <hongjiu.lu@intel.com>
4087
4088         * amd64-linux-nat.c (compat_x32_clock_t): New.
4089         (compat_x32_siginfo_t): Likewise.
4090         (compat_x32_siginfo_from_siginfo): Likewise.
4091         (siginfo_from_compat_x32_siginfo): Likewise.
4092         (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4093         and siginfo_from_compat_x32_siginfo for x32.
4094
4095 2012-06-15  Hui Zhu  <hui_zhu@mentor.com>
4096
4097         * tracepoint.c (tfile_xfer_partial): Add a lseek.
4098
4099 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
4100
4101         * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4102         instead of gdbarch_ptr_bit.
4103         * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4104         (amd64_supply_native_gregset): Likewise.
4105         (amd64_collect_native_gregset): Likewise.
4106         * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4107         (amd64_supply_xsave): Likewise.
4108         (amd64_collect_fxsave): Likewise.
4109         (amd64_collect_xsave): Likewise.
4110
4111 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
4112
4113         * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4114         (amd64_linux_read_description): Check DS segment register for
4115         x32 process.
4116
4117 2012-06-15  Tom Tromey  <tromey@redhat.com>
4118
4119         * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4120         init_cutu_and_read_dies.
4121
4122 2012-06-15  Iain Sandoe <iain@codesourcery.com>
4123
4124         * MAINTAINERS (Write After Approval): Add myself to the list.
4125
4126 2012-06-15  Tom Tromey  <tromey@redhat.com>
4127
4128         * valops.c (value_find_oload_method_list): Now static.
4129         * value.h (value_find_oload_method_list): Don't declare.
4130
4131 2012-06-15  Tom Tromey  <tromey@redhat.com>
4132
4133         * valops.c (find_overload_match): Use value_ind.
4134
4135 2012-06-15  Maciej W. Rozycki  <macro@codesourcery.com>
4136
4137         * infrun.c (handle_inferior_event): Correct indentation.
4138
4139 2012-06-14  Doug Evans  <dje@google.com>
4140
4141         * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4142         (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4143         All uses updated.
4144         (decode_debug_loc_dwo_addresses): New arg "byte_order".  All callers
4145         updated.  Handle DEBUG_LOC_START_LENGTH.
4146         (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4147         (loclist_describe_location): Ditto.
4148
4149 2012-06-14  Maciej W. Rozycki  <macro@codesourcery.com>
4150
4151         PR backtrace/13866
4152         * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4153         after hiding inline functions.
4154
4155 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
4156
4157         * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4158         _initialize_inf_ttrace.
4159
4160 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
4161
4162         * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4163         _initialize_hppa_hpux_nat.
4164
4165 2012-06-13  Joel Brobecker  <brobecker@adacore.com>
4166
4167         * remote-sim.c (sim_command_completer): Change type of return
4168         value to "VEC (char_ptr) *".  Adjust implementation accordingly.
4169
4170 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
4171             Jan Kratochvil  <jan.kratochvil@redhat.com>
4172
4173         PR tdep/14222
4174         * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4175         stack on a 16-byte boundary.
4176
4177 2012-06-13  Kaushik Srenevasan  <kaushik@twitter.com>
4178
4179         * jit.c (finalize_symtab): Set function's return type to 'void' by
4180         default.
4181
4182 2012-06-13  Mark Kettenis  <kettenis@gnu.org>
4183             H.J. Lu  <hongjiu.lu@intel.com>
4184
4185         * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4186         Move bits common to both the classic LP64 and the new x32 ILP32
4187         ABI here.
4188         (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4189         (amd64_x32_linux_init_abi): New function.
4190         (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4191         subtype.
4192
4193         * i386-tdep.h (i386_pseudo_register_name): New prototype.
4194         * i386-tdep.c (i386_pseudo_register_name): Make public.
4195         * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4196         * amd64-tdep.c (amd64_dword_names): Add "eip".
4197         (amd64_x32_pseudo_register_type): New function
4198         (amd64_x32_init_abi): New function.
4199
4200 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4201
4202         PR build/14003
4203         * inferior.h (struct inferior_suspend_state): Comment out.
4204         (struct inferior): Comment out the field suspend.
4205         * infrun.c (struct infcall_suspend_state): Comment out the field
4206         inferior_suspend.
4207         (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4208         out its assignment.
4209
4210 2012-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4211
4212         PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4213         * c-exp.y (classify_inner_name): Remove caller assumptions in the
4214         function comment.  Return ERROR for unresolved cases.  Implement
4215         returning proper NAME.
4216         (yylex): Accept also NAME from classify_inner_name.
4217         * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4218         (cp_lookup_nested_symbol): ... here.  Return any found symbol, not just
4219         LOC_TYPEDEF type.
4220         * cp-support.h (cp_lookup_nested_type): Update its declaration.
4221
4222 2012-06-13  Tom Tromey  <tromey@redhat.com>
4223
4224         * breakpoint.c (condition_completer): New function.
4225         (_initialize_breakpoint): Use it.
4226         * value.c (complete_internalvar): New function.
4227         * value.h (complete_internalvar): Declare.
4228
4229 2012-06-13  Tom Tromey  <tromey@redhat.com>
4230
4231         * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4232         * breakpoint.c (catch_syscall_completer): Return a VEC.
4233         * cli/cli-cmds.c (complete_command): Update.
4234         * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4235         (complete_on_enum): Likewise.
4236         * command.h: Include gdb_vecs.h.
4237         (completer_ftype): Change return type.
4238         (complete_on_cmdlist, complete_on_enum): Likewise.
4239         * completer.c (noop_completer, filename_completer)
4240         (location_completer): Return a VEC.
4241         (add_struct_fields): Remove 'nextp' argument.  Change 'output'
4242         to a VEC.
4243         (expression_completer, complete_line_internal, complete_line)
4244         (command_completer): Return a VEC.
4245         (gdb_completion_word_break_characters, line_completion_function):
4246         Update.
4247         * completer.h: Include gdb_vecs.h.
4248         (complete_line, noop_completer, filename_completer)
4249         (expression_completer, location_completer, command_completer):
4250         Update.
4251         * f-lang.c (f_word_break_characters): Return a VEC.
4252         * interps.c (interpreter_completer): Return a VEC.
4253         * language.h (struct language_defn)
4254         <la_make_symbol_completion_list>: Return a VEC.
4255         * python/py-cmd.c (cmdpy_completer): Return a VEC.
4256         * symtab.c (free_completion_list): Take a VEC.
4257         (return_val_size, return_val_index): Remove.
4258         (return_val): Now a VEC.
4259         (completion_list_add_name): Update.
4260         (default_make_symbol_completion_list_break_on)
4261         (default_make_symbol_completion_list, make_symbol_completion_list)
4262         (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4263         Return a VEC.
4264         (add_filename_to_list): Update.
4265         (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4266         <list>: Now a VEC.
4267         (maybe_add_partial_symtab_filename): Update.
4268         (make_source_files_completion_list): Return a VEC.
4269         * symtab.h (default_make_symbol_completion_list_break_on)
4270         (default_make_symbol_completion_list, make_symbol_completion_list)
4271         (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4272         (make_source_files_completion_list): Update.
4273
4274 2012-06-13  Tom Tromey  <tromey@redhat.com>
4275
4276         * breakpoint.c (add_catch_command): Use completer_ftype.
4277         * breakpoint.h: Include command.h.
4278         (add_catch_command): Use completer_ftype.
4279         * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4280         * cli/cli-decode.h (struct cmd_list_element) <completer>:
4281         Use completer_ftype.
4282         * command.h (completer_ftype): New typedef.
4283         (set_cmd_completer): Use it.
4284         * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4285         completer_ftype.
4286
4287 2012-06-13  Pedro Alves  <palves@redhat.com>
4288
4289         Partial revert of previous change.
4290
4291         * serial.c (scb_base): New global.
4292         (serial_for_fd): New.
4293         (serial_open, serial_fdopen_ops): Link new serial in open serials
4294         chain.
4295         (do_serial_close): Unlink serial from the open serials chain.
4296
4297 2012-06-12  Pedro Alves  <palves@redhat.com>
4298
4299         * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4300         threads here.
4301         (prepare_for_detach): No longer context switch here in non-stop
4302         mode.
4303         (fetch_inferior_event): Ditto.
4304         (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4305         to the event thread before removing breakpoints.  Switch to the
4306         event thread before inserting breakpoints and resuming.
4307         (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4308         event thread before resuming.
4309         (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4310         Switch to the event thread before removing breakpoints.
4311
4312 2012-06-12  Eli Zaretskii  <eliz@gnu.org>
4313
4314         * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4315         special characters correctly for the Windows shells.  See
4316         http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4317         report.
4318         [!__MINGW32__]: Remove extra double quote character from special
4319         characters.
4320
4321 2012-06-11  Stan Shebs  <stan@codesourcery.com>
4322
4323         * ui-out.h: Remove #if 0 declarations.
4324         * ui-out.c: Remove #if 0 functions.
4325
4326 2012-06-11  Pedro Alves  <palves@redhat.com>
4327
4328         * ser-base.c (run_async_handler_and_reschedule): New.
4329         (fd_event, push_event): Use it.
4330         * serial.c (serial_open, serial_fdopen_ops): Set the initial
4331         reference count to 1.
4332         (do_serial_close): Set the bufp field to NULL.  Use serial_unref
4333         instead of xfree.
4334         (serial_is_open, serial_ref, serial_unref): New.
4335         * serial.h (serial_open): Adjust comment.
4336         (serial_is_open): Declare.
4337         (serial_close): Adjust comment.
4338         (serial_ref, serial_unref) Declare.
4339         (struct serial): New field 'refcnt'.
4340
4341 2012-06-11  Pedro Alves  <palves@redhat.com>
4342
4343         Remove #if 0'd "connect" command, and unnecessary associated
4344         refcounting and serial reuse bits.
4345
4346         * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4347         * serial.c (last_serial_opened): Delete.
4348         (scb_base): Delete.
4349         (serial_open): Adjust.
4350         (serial_for_fd): Delete.
4351         (serial_fdopen_ops, do_serial_close): Adjust.
4352         (serial_fdopen_ops): Adjust.
4353
4354 2012-06-11  Pedro Alves  <palves@redhat.com>
4355
4356         * serial.c (do_serial_close): Remove early return when SCB is
4357         null.
4358
4359 2012-06-11  Tom Tromey  <tromey@redhat.com>
4360
4361         * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4362
4363 2012-06-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
4364
4365         Fix regression by the "ambiguous linespec" series.
4366         * breakpoint.c (parse_breakpoint_sals): New variable cursal.  Use
4367         get_last_displayed_symtab and get_last_displayed_line and depending
4368         on CURSAL.
4369
4370 2012-06-11  Tom Tromey  <tromey@redhat.com>
4371
4372         * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4373         (dw2_find_symbol_file): Use it.
4374
4375 2012-06-11  Michael Eager  <eager@eagercon.com>
4376
4377         * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4378         * mips-linux-tdep.h (mips_signals): New
4379
4380 2012-06-11  Tom Tromey  <tromey@redhat.com>
4381
4382         * infrun.c (handle_inferior_event)
4383         <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4384         breakpoint.
4385         <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4386         exception logic in all cases.  Update comments.
4387         (insert_longjmp_resume_breakpoint): Set the exception resume
4388         breakpoint.
4389
4390 2012-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
4391
4392         * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4393
4394 2012-06-09  Siva Chandra Reddy  <sivachandra@google.com>
4395
4396         * valarith.c (binop_types_user_defined_p): Fix a typo.
4397
4398 2012-06-08  Yao Qi  <yao@codesourcery.com>
4399             Chung-Lin Tang <cltang@codesourcery.com>
4400
4401         * arch-utils.c (default_return_in_first_hidden_param_p): New.
4402         * arch-utils.h: Declare.
4403         * gdbarch.sh: Add return_in_first_hidden_param_p.
4404         * gdbarch.c, gdbarch.h: Regenerated.
4405         * infcall.c (call_function_by_hand): Call
4406         gdbarch_return_in_first_hidden_param_p instead of
4407         language_pass_by_reference.
4408
4409         * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4410         (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4411         * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4412         (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4413         * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4414         `cplus_return_struct_by_reference'.
4415         (tic6x_return_value): Handle language cplusplus.
4416         (tic6x_return_in_first_hidden_param_p): New.
4417         (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4418
4419 2012-06-07  Doug Evans  <dje@google.com>
4420
4421         * dwarf2read.c (dwarf2_cu): Add comment.
4422
4423 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4424
4425         * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4426         variable.
4427         (mips_eabi_push_dummy_call): Likewise.
4428         (mips_n32n64_push_dummy_call): Likewise.
4429         (mips_o32_push_dummy_call): Likewise.
4430         (mips_o64_push_dummy_call): Likewise.
4431
4432 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4433
4434         * mips-tdep.c (mips_convert_register_p): Correct coding style.
4435
4436 2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>
4437
4438         * mips-tdep.c (mips_pseudo_register_type): Use
4439         mips_float_register_p.
4440
4441 2012-06-06  Pedro Alves  <palves@redhat.com>
4442
4443         * infrun.c (handle_inferior_event): Remove calls to
4444         reinit_frame_cache that follow a context_switch call.
4445
4446 2012-06-06  Pedro Alves  <palves@redhat.com>
4447
4448         * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4449         context_switch and remove stale comment.
4450
4451 2012-06-06  Pedro Alves  <palves@redhat.com>
4452
4453         * infrun.c (struct execution_control_state): Remove
4454         `new_thread_event' field.
4455         (handle_inferior_event): Simplify new threads handling; don't
4456         resume the inferior if we find a new thread.
4457
4458 2012-06-06  Thomas Schwinge  <thomas@codesourcery.com>
4459
4460         * NEWS: Document the deprecation of SH's 'regs' command.
4461         * inferior.h (all_registers_info): Add function declaration.
4462         * sh-tdep.c (sh_show_regs): Remove variable.
4463         (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4464         (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4465         (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4466         (sh_show_regs_command): Remove functions.
4467         (sh_gdbarch_init): Don't set sh_show_regs.
4468         (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4469         'info all-registers'.
4470         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4471         (sh64_show_regs): Remove functions.
4472         * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4473
4474 2012-06-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
4475
4476         * configure.ac: Move development=true below AC_INIT.
4477         * configure: Regenerate.
4478
4479 2012-06-05  Stan Shebs  <stan@codesourcery.com>
4480
4481         * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4482         gdb_stdout.
4483
4484 2012-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
4485
4486         * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4487         argument as ssize_t.
4488         * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4489         * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4490         * target.c (target_read_stack, target_write_memory)
4491         (target_write_raw_memory): Likewise.
4492         * target.h (target_read_stack, target_write_memory)
4493         (target_write_raw_memory): Likewise.
4494
4495 2012-06-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
4496
4497         * symfile-mem.c: Change gdb_static_assert to ssize_t.
4498         (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4499         * target.c (target_read_memory): Change LEN to ssize_t.
4500         * target.h (target_read_memory): Change LEN to ssize_t.
4501
4502 2012-06-05  Pedro Alves  <palves@redhat.com>
4503
4504         PR backtrace/13866
4505
4506         * breakpoint.c (until_break_command): Only fetch the selected
4507         frame after decode_line_1.
4508
4509 2012-06-05  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
4510
4511         * solib-svr4.c (enable_break): Don't fallback to setting the solib
4512         event breakpoint at _start, __start or main if a program
4513         interpreter is not found.
4514
4515 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4516
4517         * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4518         Add declaration.
4519         * windows-tdep.c: #include "objfiles.h".
4520         (windows_iterate_over_objfiles_in_search_order): New function.
4521         * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4522         iterate_over_objfiles_in_search_order gdbarch method to
4523         windows_iterate_over_objfiles_in_search_order.
4524         * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4525
4526 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4527
4528         * gdbarch.sh: Add generation of
4529         "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4530         gdbarch.h.  Add include of "objfiles.h" in gdbarch.c.
4531         (iterate_over_objfiles_in_search_order): New gdbarch method.
4532         * gdbarch.h, gdbarch.c: Regenerate.
4533         * objfiles.h (default_iterate_over_objfiles_in_search_order):
4534         Add declaration.
4535         * objfiles.c (default_iterate_over_objfiles_in_search_order):
4536         New function.
4537         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4538         out of lookup_symbol_aux_symtabs.
4539         (lookup_symbol_aux_symtabs): Replace extracted-out code by
4540         call to lookup_symbol_aux_objfile.
4541         (struct global_sym_lookup_data): New type.
4542         (lookup_symbol_global_iterator_cb): New function.
4543         (lookup_symbol_global): Search for symbol using
4544         gdbarch_iterate_over_objfiles_in_search_order and
4545         lookup_symbol_global_iterator_cb.
4546         * findvar.c (struct minsym_lookup_data): New type.
4547         (minsym_lookup_iterator_cb): New function.
4548         (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4549         symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4550         and minsym_lookup_iterator_cb.
4551
4552 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4553
4554         Revert the following patch:
4555         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4556         try locating the symbol in the symbol's own objfile first, before
4557         extending the search to all objfiles.
4558         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4559         out of lookup_symbol_aux_symtabs.
4560         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4561         Replace extracted-out code by call to lookup_symbol_aux_objfile.
4562         Do not search EXCLUDE_OBJFILE.
4563         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4564         (lookup_symbol_global): Search for matches in the block's objfile
4565         first, before searching all other objfiles.
4566
4567 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4568
4569         * breakpoint.c (find_condition_and_thread): Stop parsing
4570         as soon as the first invalid keyword is found.
4571
4572 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4573
4574         * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4575
4576 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4577
4578         * config/djgpp/djcheck.sh: Add copyright header.
4579
4580 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4581
4582         * copyright.py (update_files, main): Fix path to update-copyright
4583         script.
4584
4585 2012-06-05  Joel Brobecker  <brobecker@adacore.com>
4586
4587         * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4588         (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4589         for which a reminder to update by hand is printed.
4590
4591 2012-06-04  Doug Evans  <dje@google.com>
4592
4593         * buildsym.c (make_blockvector): Add comment.
4594
4595 2012-06-04  Pedro Alves  <palves@redhat.com>
4596
4597         * arch-utils.c (default_gdb_signal_from_target): Delete.
4598         * arch-utils.h (default_gdb_signal_from_target): Delete.
4599         * corelow.c (core_open) <signal mapping>: Extended comment.  Check
4600         gdbarch_gdb_signal_from_target_p.
4601         * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4602         predicate).
4603         * gdbarch.h: Regenerate.
4604         * gdbarch.c: Regenerate.
4605
4606 2012-06-04  Pedro Alves  <palves@redhat.com>
4607
4608         * gdbarch.sh (gdb_signal_from_target): Mention that the
4609         implementation of the method must be host independent.
4610         * gdbarch.h: Regenerate.
4611
4612 2012-06-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4613
4614         * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4615         parameters.
4616         (target_read_memory_bfd): New function.
4617         (symbol_file_add_from_memory): Use it.
4618
4619 2012-06-03  Doug Evans  <dje@google.com>
4620
4621         * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4622         of primary symtab.
4623         (basic_lookup_transparent_type): Ditto.
4624
4625         * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4626         (ALL_PRIMARY_SYMTABS): Use it.
4627         (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4628         * dwarf2read.c (dw2_find_symbol_file): Ditto.
4629         * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4630         * symtab.c (lookup_symbol_aux_objfile): Ditto.
4631         (basic_lookup_transparent_type): Ditto.
4632
4633 2012-06-02  Sergio Durigan Junior  <sergiodj@redhat.com>
4634
4635         * symtab.c (symbol_demangled_name): New variable `dem_name'.  Use
4636         it to optimize resolution of demangled name.
4637
4638 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4639
4640         * configure.ac (development): Define new variable.
4641         Call AC_CHECK_LIB for mcheck if $development.
4642         (ERROR_ON_WARNING): Enable it by default only if $development.
4643         * config.in: Regenerate.
4644         * configure: Regenerate.
4645
4646 2012-06-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
4647
4648         * target.c (target_read_memory): Make LEN argument as size_t.
4649         * target.h (target_read_memory): Likewise.
4650
4651 2012-06-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
4652
4653         * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4654
4655 2012-05-31  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4656
4657         * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4658         BookE interface for PowerPC server processors if not available
4659         in the Linux Kernel.
4660
4661 2012-05-31  Keith Seitz  <keiths@redhat.com>
4662
4663         * linespec.c (decode_objc): Add cleanup to free
4664         INFO.FILE_SYMTABS.
4665         (find_linespec_symbols): Add cleanup to free CLASSES.
4666         * symfile.c (find_separate_debug_file_by_debuglink): Add
4667         cleanup to free DEBUGLINK.
4668         * ui-out.c (clear_header_list): No need to check if
4669         HEADER_NEXT.COLHDR is NULL.
4670         Free HEADER_NEXT.COL_NAME.
4671
4672 2012-05-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
4673
4674         * ada-lang.c (standard_lookup): Prevent uninitialized variable
4675         warning.
4676
4677 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
4678
4679         * configure.host (gdb_host_cpu): Handle tilegx*.
4680         (gdb_host): Handle tilegx-*-linux*.
4681         * tilegx-linux-nat.c: New file.
4682         * config/tilegx/linux.mh: New file.
4683
4684 2012-05-30  Jeff Kenton  <jkenton@tilera.com>
4685
4686         * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4687         tilegx-linux-tdep.o.
4688         (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4689         tilegx-linux-tdep.c.
4690         * configure.tgt: Handle tilegx-*-linux*.
4691         * tilegx-tdep.h: New file.
4692         * tilegx-tdep.c: New file.
4693         * tilegx-linux-tdep.c: New file.
4694         * regformats/reg-tilegx.dat: New file.
4695
4696 2012-05-30  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4697
4698         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4699         accounting of hw watchpoints on ppc.
4700
4701 2012-05-30  Thiago Jung Bauermann  <thiago.bauermann@linaro.org>
4702
4703         * source.c (openp): Expand tilde in path entries.
4704
4705 2012-05-29  Doug Evans  <dje@google.com>
4706
4707         * buildsym.c (block_compar): Fix comment.
4708         (end_symtab): Fix and clarify some comments.
4709
4710         * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4711         cleanup_undefined_types.
4712         * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4713         All callers updated.
4714
4715 2012-05-29  Tom Tromey  <tromey@redhat.com>
4716
4717         * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4718         fails.
4719         * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4720         * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4721         fails.
4722         * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4723         fails.
4724
4725 2012-05-29  Tristan Gingold  <gingold@adacore.com>
4726
4727         * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4728         (struct darwin_info): ... New struct.
4729         (solib_darwin_pspace_data): New variable.
4730         (darwin_pspace_data_cleanup): New function.
4731         (get_darwin_info): Likewise.
4732         (darwin_dyld_version_ok, darwin_load_image_infos)
4733         (darwin_solib_get_all_image_info_addr_at_init)
4734         (darwin_solib_read_all_image_info_addr): Add info argument.
4735         Adjust code.
4736         (darwin_current_sos): Use per pspace structure.
4737         (darwin_solib_create_inferior_hook): Likewise.
4738         (darwin_clear_solib): Likewise.
4739         (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4740
4741 2012-05-28  Pedro Alves  <palves@redhat.com>
4742
4743         * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4744         block that uses them.  Clear ecss before handling each event.
4745
4746 2012-05-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
4747
4748         * solib-svr4.c (svr4_current_sos): New comment on
4749         svr4_current_sos_via_xfer_libraries fall back.
4750
4751 2012-05-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
4752
4753         * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best.  Use
4754         it as a fallback for TYPE_IS_OPAQUE.
4755         * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4756         symbols for lookup_symbol.
4757
4758 2012-05-24  John Steele Scott  <toojays@toojays.net>
4759
4760         PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4761         * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4762         (producer_is_gxx_lt_4_6): Move the checking and caching to...
4763         (check_producer): ... this new function, which also checks for ICC
4764         and caches the result.
4765         (producer_is_icc): New function.
4766         (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4767         producer was ICC.
4768
4769 2012-05-24  Pedro Alves  <palves@redhat.com>
4770
4771         PR gdb/7205
4772
4773         * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4774         (default_gdb_signal_to_target): ... this.  Add comment.
4775         (default_gdb_signal_from_host): Rename to ...
4776         (default_gdb_signal_from_target): ... this.  Add comment.
4777         * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4778         (default_gdb_signal_to_target): ... this.
4779         (default_gdb_signal_from_host): Rename to ...
4780         (default_gdb_signal_from_target): ... this.
4781         * corelow.c (core_open): Adjust to naming change.  Replace comment.
4782         * gdbarch.sh (gdb_signal_from_host): Rename to ...
4783         (gdb_signal_from_target): ... this.  Adjust to
4784         default_gdb_signal_from_host naming change.  Extend comment.
4785         (gdb_signal_to_host): Rename to ...
4786         (gdb_signal_to_target): ... this.  Adjust to
4787         default_gdb_signal_to_host naming change.
4788         * gdbarch.h, gdbarch.c: Renegerate.
4789
4790 2012-05-24  Pedro Alves  <palves@redhat.com>
4791
4792         PR gdb/7205
4793
4794         Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
4795
4796 2012-05-24  Pedro Alves  <palves@redhat.com>
4797
4798         PR gdb/7205
4799
4800         Replace target_signal with gdb_signal throughout.
4801
4802 2012-05-24  Pedro Alves  <palves@redhat.com>
4803
4804         PR tui/14159
4805
4806         * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4807         string, instead of reusing the va_list argument.
4808
4809 2012-05-24  Tom Tromey  <tromey@redhat.com>
4810
4811         * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4812         Remove.
4813
4814 2012-05-23  Doug Evans  <dje@google.com>
4815
4816         * symtab.c (search_symbols): Formatting fixes.
4817         (print_symbol_info): Formatting fixes.
4818
4819         * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4820         int64_t change to leb128 API.
4821         (read_encoded_value, decode_frame_entry_1): Ditto.
4822         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4823         (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4824         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4825         (execute_stack_op): Ditto.
4826         * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4827         (safe_read_uleb128, safe_read_sleb128): Ditto.
4828         * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4829         (dwarf2_compile_expr_to_ax): Ditto.
4830         (locexpr_describe_location_piece): Ditto.
4831         (disassemble_dwarf_expression): Ditto.
4832         (locexpr_describe_location_1): Ditto.
4833
4834 2012-05-23  Stan Shebs  <stan@codesourcery.com>
4835             Kwok Cheung Yeung  <kcy@codesourcery.com>
4836
4837         * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4838         (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4839         (mi-cmd-info.o): New rule.
4840         * osdata.h (info_osdata_command): New declaration.
4841         * osdata.c (info_osdata_command): Change to non-static.
4842         * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4843         * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4844         * mi/mi-cmd-info.c: New file.
4845
4846 2012-05-23  Doug Evans  <dje@google.com>
4847
4848         * symtab.c (search_symbols): Pass NULL for file_matcher to
4849         expand_symtabs_matching if there are no files to match.
4850
4851         * gdbtypes.c (lookup_typename): Simplify.
4852
4853 2012-05-23  Pedro Alves  <palves@redhat.com>
4854
4855         * arch-utils.h (default_target_signal_to_host): Delete.
4856         * arch-utils.c (default_target_signal_to_host): Delete.
4857         * gdbarch.sh (target_signal_to_host): Remove.
4858         * gdbarch.h, gdbarch.c: Regenerate.
4859
4860 2012-05-22  Doug Evans  <dje@google.com>
4861
4862         * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4863         "const gdb_byte *".
4864         (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4865         (execute_cfa_program): Update to match API of leb128 functions.
4866         (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4867         "const gdb_byte *".
4868         (read_unsigned_leb128, read_signed_leb128): Delete.
4869         (read_initial_length): Change type of buf argument to
4870         "const gdb_byte *".
4871         (read_encoded_value): Update to match API of leb128 functions.
4872         (decode_frame_entry): Change result to "const gdb_byte *", and
4873         similarly for "start" parameter.
4874         (decode_frame_entry_1): Ditto.  Use new leb128 reader functions.
4875         (dwarf2_build_frame_info): Change local frame_ptr to
4876         "const gdb_byte *".
4877         * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4878         read_uleb128, read_sleb128.  All callers updated.
4879         (safe_skip_leb128): New function.
4880         (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4881         Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4882         (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4883         functions.  Call gdb_read_uleb128, gdb_read_sleb128 instead of
4884         read_uleb128, read_sleb128.
4885         (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4886         (execute_stack_op): Update to match API of leb128 functions.
4887         * dwarf2expr.h: #include "leb128.h".
4888         (read_uleb128, read_sleb128): Delete.
4889         (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4890         (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4891         * dwarf2loc.c (debug_loc_kind): New enum.
4892         (decode_debug_loc_addresses): New function.
4893         (decode_debug_loc_dwo_addresses): New function.
4894         (dwarf2_find_location_expression): Rewrite.
4895         (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4896         (locexpr_describe_location_piece): Ditto.
4897         (disassemble_dwarf_expression): Ditto.
4898         (locexpr_describe_location_1): Ditto.
4899         (loclist_describe_location): Rewrite.
4900         * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4901         * dwarf2read.c (die_reader_specs): New member "buffer_end".
4902         (dwarf2_section_buffer_overflow_complaint): Renamed from
4903         dwarf2_macros_too_long_complaint.  All callers updated.
4904         (skip_leb128): Delete.
4905         (init_cu_die_reader): Initialize reader->buffer_end.
4906         (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4907         (skip_form_bytes): New arg buffer_end.  All callers updated.
4908         Replace call to skip_leb128 with gdb_skip_leb128.
4909         (skip_unknown_opcode): New arg mac_end.  All callers updated.
4910         (fill_in_loclist_baton): Initialize baton->from_dwo.
4911
4912 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
4913
4914         * mips-linux-nat.c (mips_linux_read_description): Use a more
4915         verbose error message.
4916
4917 2012-05-22  Maciej W. Rozycki  <macro@codesourcery.com>
4918
4919         * NEWS: Add MIPS/Linux DSP support.
4920         * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4921         (SIGCONTEXT_DSPCTL): New macro.
4922         (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4923         (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4924         (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4925         (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4926         (N64_SIGCONTEXT_HI3): Likewise.
4927         (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4928         (N64_SIGCONTEXT_LO3): Likewise.
4929         (N64_SIGCONTEXT_DSPCTL): Likewise.
4930         (N64_SIGCONTEXT_FPCSR): Clarify definition.
4931         (mips_linux_o32_sigframe_init): Handle DSP registers.
4932         (mips_linux_n32n64_sigframe_init): Likewise.
4933
4934 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
4935
4936         * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4937         call to abort.
4938
4939 2012-05-22  Pedro Alves  <palves@redhat.com>
4940
4941         * target.h (store_waitstatus): Move declaration ...
4942         * inf-child.h (store_waitstatus): ... here.
4943         * target.c: Move inclusion of gdb_wait.h, and ...
4944         (store_waitstatus): ... this ...
4945         * inf-child.c: ... here.
4946         * linux-nat.c: Include inf-child.h.
4947         * rs6000-nat.c: Include inf-child.h.
4948         * spu-linux-nat.c: Include inf-child.h.
4949
4950 2012-05-22  Pierre Muller  <muller@ics.u-strasbg.fr>
4951
4952         * tracepoint.c (start_tracing): Add missing i18n markup.
4953         (stop_tracing, set_trace_user): Ditto.
4954         (set_trace_notes, set_trace_stop_notes): Ditto.
4955
4956 2012-05-21  Tom Tromey  <tromey@redhat.com>
4957
4958         PR c++/7173:
4959         * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4960         types.
4961         * value.h (value_cast_pointers): Update.
4962         * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4963         (value_cast): Update.
4964         (update_search_result): New function.
4965         (do_search_struct_field): New, from search_struct_field.  Check
4966         for ambiguous results.
4967         (search_struct_field): Rewrite.
4968         * infcall.c (value_arg_coerce): Update.
4969         * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4970         value_cast_pointers.
4971         * ada-lang.c (ada_convert_actual): Update.
4972
4973 2012-05-21  Tom Tromey  <tromey@redhat.com>
4974
4975         * macroexp.c (macro_stringify): Terminate the string.
4976
4977 2012-05-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
4978
4979         * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4980         Describe it.
4981         * auto-load.c (auto_load_expand_dir_vars): New function.
4982         (auto_load_safe_path_vec_update): Use it, remove the
4983         substitute_path_component call thanks to it.
4984         (auto_load_objfile_script): Remove the debug_file_directory processing.
4985         Use auto_load_expand_dir_vars, remove the substitute_path_component
4986         call thanks to it.
4987         * configure: Regenerate.
4988         * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4989         path.  Escape $ also for $debugdir.
4990         (--with_auto_load_safe_path): Escape $ also for $debugdir.
4991         * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4992
4993 2012-05-20  Doug Evans  <dje@google.com>
4994
4995         * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4996         before use.  Check for symtab->includes == NULL before scanning it.
4997
4998 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
4999
5000         * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5001
5002 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5003
5004         * NEWS: Add microMIPS support and "set mips compression",
5005         "show mips compression" commands.
5006         * mips-tdep.h (mips_isa): New enum.
5007         (gdbarch_tdep): Add mips_isa.
5008         (mips_pc_is_mips16): Update prototype.
5009         (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5010         * mips-tdep.c (mips_compression_mips16): New variable.
5011         (mips_compression_micromips): Likewise.
5012         (mips_compression_strings): Likewise.
5013         (mips_compression_string): Likewise.
5014         (is_mips16_isa, is_micromips_isa): New functions.
5015         (is_mips16_addr): Rename to...
5016         (is_compact_addr): ... this.
5017         (unmake_mips16_addr): Likewise to...
5018         (unmake_compact_addr): ... this.
5019         (make_mips16_addr): Likewise to...
5020         (make_compact_addr): ... this.
5021         (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5022         functions.
5023         (mips_elf_make_msymbol_special): Handle microMIPS code.
5024         (msymbol_is_special): Rename to...
5025         (msymbol_is_mips16): ... this.
5026         (mips_make_symbol_special, mips_pc_is_mips16): Update
5027         accordingly.
5028         (msymbol_is_mips, msymbol_is_micromips): New functions.
5029         (mips16_to_32_reg): Rename to...
5030         (mips_reg3_to_reg): ... this.
5031         (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5032         (mips_pc_isa): Likewise.
5033         (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5034         code.
5035         (mips_fetch_instruction): Pass return status instead of printing
5036         an error message if requested.  Handle microMIPS code.  Bail out
5037         on an invalid ISA.
5038         (micromips_op): New macro.
5039         (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5040         (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5041         (b6s4_op, b7s3_reg): Likewise.
5042         (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5043         (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5044         (mips_insn_size): New function.
5045         (mips32_next_pc): Update mips_fetch_instruction call.
5046         (micromips_relative_offset7): New function.
5047         (micromips_relative_offset10): Likewise.
5048         (micromips_relative_offset16): Likewise.
5049         (micromips_pc_insn_size): Likewise.
5050         (micromips_bc1_pc): Likewise.
5051         (micromips_next_pc): Likewise.
5052         (unpack_mips16): Update mips_fetch_instruction call.
5053         (extended_mips16_next_pc): Update according to change to
5054         mips16_to_32_reg.
5055         (mips_next_pc): Update mips_pc_is_mips16 call.  Handle microMIPS
5056         code.
5057         (mips16_scan_prologue): Update mips_fetch_instruction call.
5058         Update according to change to mips16_to_32_reg.
5059         (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5060         (mips_insn16_frame_base_sniffer): Likewise.
5061         (micromips_decode_imm9): New function.
5062         (micromips_scan_prologue): Likewise.
5063         (mips_micro_frame_cache): Likewise.
5064         (mips_micro_frame_this_id): Likewise.
5065         (mips_micro_frame_prev_register): Likewise.
5066         (mips_micro_frame_sniffer): Likewise.
5067         (mips_micro_frame_unwind): New variable.
5068         (mips_micro_frame_base_address): New function.
5069         (mips_micro_frame_base): New variable.
5070         (mips_micro_frame_base_sniffer): New function.
5071         (mips32_scan_prologue): Update mips_fetch_instruction call.
5072         (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5073         rather than for MIPS16.
5074         (mips_insn32_frame_base_sniffer): Likewise.
5075         (mips_addr_bits_remove): Handle microMIPS code.
5076         (deal_with_atomic_sequence): Rename to...
5077         (mips_deal_with_atomic_sequence): ... this.  Update the type
5078         of the variable used to hold an instruction.  Remove the ISA bit
5079         check.  Update mips_fetch_instruction call.
5080         (micromips_deal_with_atomic_sequence): New function.
5081         (deal_with_atomic_sequence): Likewise.
5082         (mips_about_to_return): Handle microMIPS code.  Update
5083         mips_fetch_instruction call.
5084         (heuristic_proc_start): Check for the standard MIPS ISA rather
5085         than for MIPS16.  Update mips_pc_is_mips16 and
5086         mips_fetch_instruction calls.  Handle microMIPS code.
5087         (mips_push_dummy_code): Handle microMIPS code.
5088         (mips_eabi_push_dummy_call): Likewise.
5089         (mips_o32_return_value): Update mips_pc_is_mips16 call.
5090         (mips_o64_push_dummy_call): Handle microMIPS code.
5091         (mips_o64_return_value): Update mips_pc_is_mips16 call.
5092         (is_delayed): Remove function.
5093         (mips_single_step_through_delay): Replace the call to is_delayed
5094         with mips32_instruction_has_delay_slot.  Correct MIPS16 handling.
5095         Handle microMIPS code.
5096         (mips_skip_prologue): Update mips_pc_is_mips16 call.  Handle
5097         microMIPS code.
5098         (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5099         call.
5100         (micromips_in_function_epilogue_p): New function.
5101         (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5102         call.
5103         (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5104         Handle microMIPS.
5105         (gdb_print_insn_mips): Likewise.
5106         (mips_breakpoint_from_pc): Likewise.
5107         (mips_remote_breakpoint_from_pc): New function.
5108         (mips32_instruction_has_delay_slot): Simplify making use of the
5109         updated mips_fetch_instruction interface.
5110         (micromips_instruction_has_delay_slot): New function.
5111         (mips16_instruction_has_delay_slot): Simplify making use of the
5112         updated mips_fetch_instruction interface.
5113         (mips_adjust_breakpoint_address): Check for the standard MIPS
5114         ISA rather than for MIPS16 ISA.  Update for unmake_compact_addr
5115         calls.  Handle microMIPS code.
5116         (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5117         (mips_skip_trampoline_code): Handle microMIPS code.
5118         (global_mips_compression): New function.
5119         (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5120         file flags.  Register the microMIPS remote breakpoint handler
5121         and heuristic frame unwinder.
5122         (show_mips_compression): New function.
5123         (_initialize_mips_tdep): Add the "set mips compression" and
5124         "show mips compression" commands.
5125
5126 2012-05-18  Sergio Durigan Junior  <sergiodj@redhat.com>
5127
5128         * ada-lang.c:
5129         * ada-tasks.c:
5130         * ada-varobj.c:
5131         * amd64-darwin-tdep.c:
5132         * arm-symbian-tdep.c:
5133         * arm-tdep.c:
5134         * avr-tdep.c:
5135         * ax-gdb.c:
5136         * bfin-linux-tdep.c:
5137         * breakpoint.c:
5138         * c-valprint.c:
5139         * cli/cli-cmds.c:
5140         * coffread.c:
5141         * cp-support.c:
5142         * cris-tdep.c:
5143         * dwarf2-frame-tailcall.c:
5144         * dwarf2-frame.c:
5145         * dwarf2expr.c:
5146         * dwarf2loc.c:
5147         * dwarf2read.c:
5148         * elfread.c:
5149         * eval.c:
5150         * expprint.c:
5151         * f-valprint.c:
5152         * frv-tdep.c:
5153         * h8300-tdep.c:
5154         * hppa-hpux-tdep.c:
5155         * hppa-tdep.c:
5156         * hppanbsd-tdep.c:
5157         * i386-nto-tdep.c:
5158         * i386-tdep.c:
5159         * i387-tdep.c:
5160         * ia64-tdep.c:
5161         * jit.c:
5162         * linespec.c:
5163         * linux-tdep.c:
5164         * lm32-tdep.c:
5165         * m2-valprint.c:
5166         * m32c-tdep.c:
5167         * m32r-rom.c:
5168         * m32r-tdep.c:
5169         * m68k-tdep.c:
5170         * m68klinux-tdep.c:
5171         * mi/mi-main.c:
5172         * microblaze-tdep.c:
5173         * mips-linux-tdep.c:
5174         * mips-tdep.c:
5175         * mn10300-tdep.c:
5176         * p-valprint.c:
5177         * parse.c:
5178         * ppc-linux-tdep.c:
5179         * ppc-sysv-tdep.c:
5180         * printcmd.c:
5181         * python/py-finishbreakpoint.c:
5182         * python/py-inferior.c:
5183         * python/py-infthread.c:
5184         * python/py-type.c:
5185         * python/python.c:
5186         * remote-fileio.c:
5187         * remote-m32r-sdi.c:
5188         * remote-mips.c:
5189         * reverse.c:
5190         * rl78-tdep.c:
5191         * rs6000-aix-tdep.c:
5192         * rs6000-tdep.c:
5193         * s390-tdep.c:
5194         * score-tdep.c:
5195         * sh64-tdep.c:
5196         * skip.c:
5197         * solib-darwin.c:
5198         * solib-dsbt.c:
5199         * solib-frv.c:
5200         * sparc-tdep.c:
5201         * spu-multiarch.c:
5202         * spu-tdep.c:
5203         * stack.c:
5204         * symfile.c:
5205         * symtab.c:
5206         * tic6x-tdep.c:
5207         * tracepoint.c:
5208         * v850-tdep.c:
5209         * valarith.c:
5210         * valprint.c:
5211         * value.c:
5212         * xcoffread.c:
5213         * xtensa-tdep.c:
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: Delete unused variables.
5220
5221 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5222
5223         Rename $ddir to $datadir.
5224         * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5225         * auto-load.c (auto_load_safe_path_vec_update)
5226         (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5227         * configure: Regenerate.
5228         * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5229         Likewise.  Remove the 'use $ddir' help string.
5230
5231 2012-05-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
5232
5233         * auto-load.c (show_auto_load_safe_path): Accept any combination of
5234         DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5235
5236 2012-05-18  Tom Tromey  <tromey@redhat.com>
5237
5238         PR exp/13907:
5239         * valprint.h (struct value_print_options) <symbol_print>: New
5240         field.
5241         * valprint.c (user_print_options): Add default for symbol_print.
5242         (show_symbol_print): New function.
5243         (generic_val_print): Respect symbol_print.
5244         (_initialize_valprint): Add "print symbol" setting.
5245         * f-valprint.c (f_val_print): Respect symbol_print.
5246         * c-valprint.c (c_val_print): Respect symbol_print.
5247         * NEWS: Update.
5248         * printcmd.c (print_address_symbolic): Return int.  Ignore some
5249         zero-size symbols.
5250         (print_address_demangle): Return int.
5251         * defs.h: (print_address_symbolic): Return int.
5252         * value.h (print_address_demangle): Return int.
5253
5254 2012-05-18  Tom Tromey  <tromey@redhat.com>
5255
5256         * valprint.c (val_print_string): Don't print leading space.
5257         * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5258         print space before string or vtbl.
5259         * m2-valprint.c (print_unpacked_pointer): Optionally print space
5260         before string.
5261         * jv-valprint.c (java_value_print): Print space before string.
5262         * go-valprint.c (print_go_string): Print space before string.
5263         * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5264         space before string.
5265         * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5266         space before string or vtbl.
5267         * auxv.c (fprint_target_auxv): Print space after address.
5268
5269 2012-05-18  Tom Tromey  <tromey@redhat.com>
5270
5271         * printcmd.c (print_address_demangle): Remove special case for 0.
5272
5273 2012-05-18  Tom Tromey  <tromey@redhat.com>
5274
5275         * printcmd.c (print_address_demangle): Add 'opts' argument.
5276         * p-valprint.c (pascal_val_print): Update.
5277         * jv-valprint.c (java_val_print): Update.
5278         * value.h: Update.
5279         * valprint.c (generic_val_print): Update.
5280         (print_function_pointer_address): Add 'options' argument.  Remove
5281         'addressprint' argument.  Update.
5282         * m2-valprint.c (print_unpacked_pointer): Update.
5283         * gnu-v3-abi.c (print_one_vtable): Update.
5284         (gnuv3_print_method_ptr): Update.
5285         * f-valprint.c (f_val_print): Update.
5286         * cp-valprint.c (cp_print_value_fields): Update.
5287         * valprint.h (print_function_pointer_address): Update.
5288         * c-valprint.c (c_val_print): Update.
5289
5290 2012-05-18  Tom Tromey  <tromey@redhat.com>
5291
5292         * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5293         directly corresponding to the found psymtab.
5294         * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5295         (dw2_find_pc_sect_symtab): Use it.
5296         * block.h (blockvector_contains_pc): Declare.
5297         * block.c (find_block_in_blockvector): New function.
5298         (blockvector_for_pc_sect): Use it.
5299         (blockvector_contains_pc): New function.
5300
5301 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5302
5303         * mips-tdep.h (mips_write_pc): New prototype.
5304         * mips-tdep.c (mips_write_pc): Make external, add description.
5305         * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5306         add description.
5307
5308 2012-05-18  Maciej W. Rozycki  <macro@codesourcery.com>
5309
5310         * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5311         mips_regnum->pc.
5312         (mips_unwind_pc, mips_write_pc): Likewise.
5313         (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5314         gdbarch_read_pc.
5315
5316 2012-05-17  Joel Brobecker  <brobecker@adacore.com>
5317
5318         * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5319         proc_warn, proc_error, proc_get_status, proc_flags,
5320         proc_why, proc_what, proc_nsysarg, proc_sysargs,
5321         proc_set_run_on_last_close, proc_unset_run_on_last_close,
5322         proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5323         proc_stop_process, proc_wait_for_stop, proc_run_process,
5324         proc_set_traced_signals, proc_set_traced_faults,
5325         proc_set_traced_sysentry, proc_set_traced_sysexit,
5326         proc_set_held_signals, proc_get_held_signals,
5327         proc_get_traced_signals, proc_get_traced_faults,
5328         proc_get_traced_sysentry, proc_get_traced_sysexit,
5329         proc_clear_current_fault, proc_set_current_signal,
5330         proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5331         proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5332         proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5333         proc_get_current_thread, proc_get_current_thread,
5334         proc_get_current_thread, proc_update_threads,
5335         proc_update_threads, proc_update_threads, proc_update_threads,
5336         proc_iterate_over_threads, procfs_find_new_threads,
5337         procfs_pid_to_str): Make static.  Remove advance declaration.
5338         (proc_cursig): Make static.  Conditionalized defintion on
5339         PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5340         (proc_syscall, proc_set_kill_on_last_close,
5341         proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5342         proc_get_pending_signals, proc_get_signal_actions,
5343         proc_trace_signal, proc_ignore_signal): Delete.
5344
5345 2012-05-16  Sergio Durigan Junior  <sergiodj@redhat.com>
5346
5347         * coffread.c (cs_section_address): Passing proper argument for
5348         `bfd_get_section_vma'.
5349         * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5350         `bfd_get_section_flags'.
5351         * remote.c (remote_trace_set_readonly_regions): Likewise, for
5352         `bfd_get_section_vma'.
5353
5354 2012-05-16  Tom Tromey  <tromey@redhat.com>
5355
5356         PR macros/13205:
5357         * macrotab.h: (macro_define_special): Declare.
5358         (enum macro_special_kind): New.
5359         (struct macro_definition) <argc, replacement>: Update comments.
5360         * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5361         (macro_define_object_internal): New function.
5362         (macro_define_object): Use it.
5363         (macro_define_special): New function.
5364         (fixup_definition): New function.
5365         (macro_lookup_definition, foreach_macro_in_scope)
5366         (foreach_macro): Use fixup_definition.
5367         * macroexp.h (macro_stringify): Declare.
5368         * macroexp.c (free_buffer_return_text): New function.
5369         (stringify): Constify "arg".
5370         (macro_stringify): New function.
5371         * dwarf2read.c (macro_start_file): Call macro_define_special.
5372
5373 2012-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
5374             Maciej W. Rozycki  <macro@mips.com>
5375
5376         * breakpoint.h (bp_location): Add related_address member.
5377         * inferior.h (get_return_value): Take a pointer to struct value
5378         instead of struct type for the function requested.
5379         * value.h (using_struct_return): Likewise.
5380         * gdbarch.sh (return_value): Take a pointer to struct value
5381         instead of struct type for the function requested.
5382         * breakpoint.c (set_breakpoint_location_function): Initialize
5383         related_address for bp_gnu_ifunc_resolver breakpoints.
5384         * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5385         requested function's address to gdbarch_return_value.
5386         * eval.c (evaluate_subexp_standard): Pass the requested
5387         function's address to using_struct_return.
5388         * infcall.c (call_function_by_hand): Pass the requested
5389         function's address to using_struct_return and
5390         gdbarch_return_value.
5391         * infcmd.c (get_return_value): Take a pointer to struct value
5392         instead of struct type for the function requested.
5393         (print_return_value): Update accordingly.
5394         (finish_command_continuation): Likewise.
5395         * stack.c (return_command): Pass the requested function's
5396         address to using_struct_return and gdbarch_return_value.
5397         * value.c (using_struct_return): Take a pointer to struct value
5398         instead of struct type for the function requested.  Pass the
5399         requested function's address to gdbarch_return_value.
5400         * python/py-finishbreakpoint.c (finish_breakpoint_object):
5401         New function_value member, replacing function_type.
5402         (bpfinishpy_dealloc): Update accordingly.
5403         (bpfinishpy_pre_stop_hook): Likewise.
5404         (bpfinishpy_init): Likewise.  Record the requested function's
5405         address.
5406         * mips-tdep.c (mips_fval_reg): New enum.
5407         (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5408         words put in GP registers.
5409         (mips_o64_push_dummy_call): Update a comment.
5410         (mips_o32_return_value): Take a pointer to struct value instead
5411         of struct type for the function requested and use it to check if
5412         using the MIPS16 calling convention.  Return the designated
5413         general purpose registers for floating-point values returned in
5414         MIPS16 mode.
5415         (mips_o64_return_value): Likewise.
5416         * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5417         (ppc_sysv_abi_broken_return_value): Likewise.
5418         (ppc64_sysv_abi_return_value): Likewise.
5419         * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5420         value instead of struct type for the function requested.
5421         * amd64-tdep.c (amd64_return_value): Likewise.
5422         * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5423         * arm-tdep.c (arm_return_value): Likewise.
5424         * avr-tdep.c (avr_return_value): Likewise.
5425         * bfin-tdep.c (bfin_return_value): Likewise.
5426         * cris-tdep.c (cris_return_value): Likewise.
5427         * frv-tdep.c (frv_return_value): Likewise.
5428         * h8300-tdep.c (h8300_return_value): Likewise.
5429         (h8300h_return_value): Likewise.
5430         * hppa-tdep.c (hppa32_return_value): Likewise.
5431         (hppa64_return_value): Likewise.
5432         * i386-tdep.c (i386_return_value): Likewise.
5433         * ia64-tdep.c (ia64_return_value): Likewise.
5434         * iq2000-tdep.c (iq2000_return_value): Likewise.
5435         * lm32-tdep.c (lm32_return_value): Likewise.
5436         * m32c-tdep.c (m32c_return_value): Likewise.
5437         * m32r-tdep.c (m32r_return_value): Likewise.
5438         * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5439         * m68k-tdep.c (m68k_return_value): Likewise.
5440         (m68k_svr4_return_value): Likewise.
5441         * m88k-tdep.c (m88k_return_value): Likewise.
5442         * mep-tdep.c (mep_return_value): Likewise.
5443         * microblaze-tdep.c (microblaze_return_value): Likewise.
5444         * mn10300-tdep.c (mn10300_return_value): Likewise.
5445         * moxie-tdep.c (moxie_return_value): Likewise.
5446         * mt-tdep.c (mt_return_value): Likewise.
5447         * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5448         * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5449         (ppc_sysv_abi_broken_return_value): Likewise.
5450         (ppc64_sysv_abi_return_value): Likewise.
5451         * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5452         * rl78-tdep.c (rl78_return_value): Likewise.
5453         * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5454         * rx-tdep.c (rx_return_value): Likewise.
5455         * s390-tdep.c (s390_return_value): Likewise.
5456         * score-tdep.c (score_return_value): Likewise.
5457         * sh-tdep.c (sh_return_value_nofpu): Likewise.
5458         (sh_return_value_fpu): Likewise.
5459         * sh64-tdep.c (sh64_return_value): Likewise.
5460         * sparc-tdep.c (sparc32_return_value): Likewise.
5461         * sparc64-tdep.c (sparc64_return_value): Likewise.
5462         * spu-tdep.c (spu_return_value): Likewise.
5463         * tic6x-tdep.c (tic6x_return_value): Likewise.
5464         * v850-tdep.c (v850_return_value): Likewise.
5465         * vax-tdep.c (vax_return_value): Likewise.
5466         * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5467         * xtensa-tdep.c (xtensa_return_value): Likewise.
5468         * gdbarch.c: Regenerate.
5469         * gdbarch.h: Regenerate.
5470
5471 2012-05-15  Tom Tromey  <tromey@redhat.com>
5472
5473         * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5474
5475 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5476
5477         * breakpoint.c (init_breakpoint_sal): Add quotes around part
5478         of command in two error message.
5479
5480 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5481
5482         * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5483
5484 2012-05-15  Joel Brobecker  <brobecker@adacore.com>
5485
5486         * breakpoint.c (find_condition_and_thread): Minor reformatting.
5487
5488 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5489
5490         * NEWS (show auto-load scripts-directory): Add forgotten command.
5491
5492 2012-05-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
5493
5494         * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5495         parameters.
5496
5497 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5498
5499         * amd64-tdep.c: Include features/i386/x32.c and
5500         features/i386/x32-avx.c.
5501         (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5502         initialize_tdesc_x32_avx.
5503
5504 2012-05-14  Stan Shebs  <stan@codesourcery.com>
5505
5506         Add dynamic printf.
5507         * breakpoint.h (enum bptype): New type bp_dprintf.
5508         (struct breakpoint): New field extra_string.
5509         (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5510         (create_breakpoint): Add extra_string arg.
5511         * breakpoint.c (dprintf_breakpoint_ops): New.
5512         (is_breakpoint): Add bp_dprintf.
5513         (bpstat_what): Add dprintf case.
5514         (bptype_string): Ditto.
5515         (print_one_breakpoint_location): Ditto.
5516         (init_bp_location): Ditto.
5517         (bkpt_print_mention): Ditto.
5518         (dprintf_style_enums): New array.
5519         (dprintf_style): New global.
5520         (dprintf_function): New global.
5521         (dprintf_channel): New global.
5522         (update_dprintf_command_list): New function.
5523         (update_dprintf_commands): New function.
5524         (init_breakpoint_sal): Add extra_string argument, handle it.
5525         (create_breakpoint_sal): Add extra_string argument.
5526         (create_breakpoints_sal): Add extra_string argument, update callers.
5527         (find_condition_and_thread): Add extra argument.
5528         (create_breakpoint): Add extra_string argument, record it.
5529         (dprintf_command): New function.
5530         (break_command_1): Add arg to create_breakpoint call.
5531         (handle_gnu_v3_exceptions): Ditto.
5532         (trace_command): Ditto.
5533         (ftrace_command): Ditto.
5534         (strace_command): Ditto.
5535         (bkpt_print_mention): Add dprintf case.
5536         (create_breakpoint_sal_default): Add extra_string argument.
5537         (_initialize_breakpoint): Add new commands.
5538         * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5539         * python/py-breakpoint.c (bppy_init): Ditto.
5540         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5541
5542 2012-05-14  Maciej W. Rozycki  <macro@codesourcery.com>
5543
5544         * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5545
5546 2012-05-14  Siva Chandra Reddy  <sivachandra@google.com>
5547
5548         * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5549         unsigned long long.
5550
5551 2012-05-13  Siva Chandra Reddy  <sivachandra@google.com>
5552
5553         Add a new function gdb.find_pc_line to the Python API.
5554         * NEWS (Python Scripting): Add entry about the new function.
5555         * python/python.c (gdbpy_find_pc_line): New function which
5556         implements gdb.find_pc_line.
5557         (GdbMethods): Add entry for the new function.
5558
5559 2012-05-12  Pedro Alves  <palves@redhat.com>
5560
5561         * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5562         initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5563
5564 2012-05-12  Eli Zaretskii  <eliz@gnu.org>
5565
5566         * inferior.c: Include completer.h
5567         (initialize_inferiors): Set completer of add-inferior to
5568         filename_completer.
5569
5570 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5571
5572         * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5573         gdbarch_ptr_bit for x32 core dump.
5574
5575 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5576
5577         * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5578         and features/i386/x32-avx-linux.c.
5579
5580 2012-05-11  Stan Shebs  <stan@codesourcery.com>
5581             Kwok Cheung Yeung  <kcy@codesourcery.com>
5582
5583         * NEWS: Describe new info os commands.
5584         * common/linux-osdata.c (PID_T, TIME_T): Define.
5585         (MAX_PID_T_STRLEN): New.
5586         (linux_common_core_of_thread): Add comment.  Change to use PID_T and
5587         MAX_PID_T_STRLEN.
5588         (command_from_pid): Add comment.  Change to use PID_T.
5589         (commandline_from_pid):  Change to use PID_T.
5590         (user_from_pid): Add comment.
5591         (get_process_owner): Add comment. Change to use PID_T and
5592         MAX_PID_T_STRLEN.
5593         (get_number_of_cpu_cores): Add comment.
5594         (get_cores_used_by_process): Add comment.  Change to use PID_T and
5595         MAX_PID_T_STRLEN.
5596         (linux_xfer_osdata_processes): Change to use PID_T and
5597         MAX_PID_T_STRLEN.
5598         (compare_processes): New function.
5599         (linux_xfer_osdata_processgroups): New function.
5600         (linux_xfer_osdata_threads): Change to use PID_T.
5601         (linux_xfer_osdata_fds): New function.
5602         (format_socket_state, print_sockets): New functions.
5603         (union socket_addr): New union.
5604         (linux_xfer_osdata_isockets): New function.
5605         (time_from_time_t, group_from_gid): New functions.
5606         (linux_xfer_osdata_shm): New function.
5607         (linux_xfer_osdata_sem): New function.
5608         (linux_xfer_osdata_msg): New function.
5609         (linux_xfer_osdata_modules): New function.
5610         (osdata_table): Add new entries.
5611         * common/buffer.c (buffer_xml_printf): Add support for long and
5612         long long format specifiers.
5613
5614 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5615
5616         * amd64-linux-tdep.h (tdesc_x32_linux): New.
5617         (tdesc_x32_avx_linux): Likewise.
5618
5619 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5620
5621         Implement multi-component --with-auto-load-dir.
5622         * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5623         entries.
5624         (--with-auto-load-safe-path): Update the default value description.
5625         * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5626         New.
5627         (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output.  Remove
5628         GDB_DATADIR NULL check.  Replace GDB_DATADIR/auto-load by
5629         AUTO_LOAD_DIR.  Support $ddir and multiple components in it.
5630         (_initialize_auto_load): Initialize also auto_load_dir.  Install new
5631         "set auto-load scripts-directory".
5632         * config.in: Regenerate.
5633         * configure: Regenerate.
5634         * configure.ac (--with-auto-load-dir): New configure option.
5635         (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5636
5637 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5638
5639         Provide $ddir substitution for --with-auto-load-safe-path.
5640         * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5641         entries.
5642         * auto-load.c: Include observer.h.
5643         (auto_load_safe_path_vec_update): Call substitute_path_component for
5644         each component.  New variable ddir_subst.
5645         (auto_load_gdb_datadir_changed): New function.
5646         (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5647         AUTO_LOAD_SAFE_PATH.  New comment.
5648         (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5649         AUTO_LOAD_SAFE_PATH.  Install auto_load_gdb_datadir_changed.
5650         * config.in: Regenerate.
5651         * configure: Regenerate.
5652         * configure.ac (--auto-load-safe-path): Rename
5653         DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH.  Default to
5654         GDB_DATADIR/auto-load.
5655         * defs.h (substitute_path_component): New declaration.
5656         * top.c: Include observer.h.
5657         (set_gdb_datadir): New function.
5658         (init_main): Install it for "set data-directory".
5659         * utils.c (substitute_path_component): New function.
5660
5661 2012-05-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5662
5663         Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5664         * auto-load.c (auto_load_objfile_script): Remove check for NULL
5665         DEBUG_FILE_DIRECTORY.  Handle multiple components of
5666         DEBUG_FILE_DIRECTORY.
5667
5668 2012-05-10  Tom Tromey  <tromey@redhat.com>
5669
5670         * dwarf2read.c (recursively_write_psymbols): New function.
5671         (write_psymtabs_to_index): Use it.
5672
5673         * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5674         field.
5675         (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5676         (load_partial_comp_unit): Update.
5677         (queue_comp_unit): Add argument 'pretend_language'.
5678         (process_queue): Update.
5679         (psymtab_to_symtab_1): Skip dependencies that have a user.
5680         (load_partial_comp_unit_reader): Give meaning to the 'data'
5681         argument.
5682         (load_full_comp_unit): Add 'pretend_language' argument.
5683         (process_full_comp_unit): Add 'pretend_language' argument.  Set
5684         language on CU.
5685         (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5686         Update.
5687         (maybe_queue_comp_unit): Add 'pretend_language' argument.
5688         (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5689         Update.
5690         (prepare_one_comp_unit): Add 'pretend_language' argument.
5691
5692         * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5693         (struct dwarf2_per_objfile) <just_read_cus>: New field.
5694         (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5695         (dw2_do_instantiate_symtab): Check whether symtab was read in
5696         before queueing.
5697         (dw2_instantiate_symtab): Add assertion.  Call
5698         process_cu_includes.
5699         (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5700         (partial_symtab_p): New typedef.
5701         (set_partial_user): New function.
5702         (dwarf2_build_psymtabs_hard): Use set_partial_user.
5703         (scan_partial_symbols): Add imported CU to imported_symtabs.
5704         (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5705         (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5706         (get_symtab, recursively_compute_inclusions)
5707         (compute_symtab_includes, process_cu_includes)
5708         (process_imported_unit_die): New functions.
5709         (process_die) <DW_TAG_imported_unit>: New case.
5710         (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5711
5712         * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5713         comment.
5714         (struct partial_die_info) <locdesc>: Remove.
5715         <d>: New field.
5716         (process_psymtab_comp_unit): Add 'read_partial' argument.
5717         Update.
5718         (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5719         (scan_partial_symbols): Handle DW_TAG_imported_unit.
5720         (add_partial_symbol): Update.
5721         (process_die): Handle DW_TAG_partial_unit.
5722         (read_file_scope): Update comment.
5723         (load_partial_dies): Handle DW_TAG_imported_unit.
5724         (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5725         (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5726
5727 2012-05-10  Tom Tromey  <tromey@redhat.com>
5728
5729         * cc-with-dwz.sh: New file.
5730
5731 2012-05-10  Tom Tromey  <tromey@redhat.com>
5732
5733         * symtab.h (struct symtab) <includes, user>: New fields.
5734         * block.h (struct block_iterator) <d, idx, which>: New fields.
5735         * block.c (initialize_block_iterator, find_iterator_symtab)
5736         (block_iterator_step, block_iter_name_step)
5737         (block_iter_match_step): New functions.
5738         (block_iterator_first, block_iterator_next)
5739         (block_iter_name_first, block_iter_name_next)
5740         (block_iter_match_first, block_iter_match_next): Rewrite.
5741         (get_block_symtab): New function.
5742
5743 2012-05-10  Tom Tromey  <tromey@redhat.com>
5744
5745         * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5746         set_block_symtab.
5747         * jit.c (finalize_symtab): Use allocate_global_block,
5748         set_block_symtab.
5749         * buildsym.c (finish_block_internal): New function, from old
5750         finish_block.
5751         (finish_block): Rewrite.
5752         (end_symtab): Use finish_block_internal, set_block_symtab.
5753         * block.h (struct global_block): New.
5754         (allocate_global_block, set_block_symtab): Declare.
5755         * block.c (allocate_global_block, set_block_symtab): New
5756         functions.
5757
5758 2012-05-10  Tom Tromey  <tromey@redhat.com>
5759
5760         * psymtab.c (partial_map_expand_apply): Add assertion.
5761         (partial_map_symtabs_matching_filename): Skip included psymtabs.
5762         (psymtab_to_symtab): Find unshared psymtab.
5763         (dump_psymtab): Print including psymtabs.
5764         (recursively_search_psymtabs): New function.
5765         (expand_symtabs_matching_via_partial): Use it.
5766         * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5767         fields.
5768         (enum psymtab_search_status): New.
5769
5770 2012-05-10  Tom Tromey  <tromey@redhat.com>
5771
5772         * tracepoint.c (scope_info): Update.
5773         * symtab.c (lookup_block_symbol, iterate_over_symbols)
5774         (find_pc_sect_symtab, search_symbols)
5775         (default_make_symbol_completion_list_break_on)
5776         (make_file_symbol_completion_list): Update.
5777         * symmisc.c (dump_symtab_1): Update.
5778         * stack.c (print_frame_args, iterate_over_block_locals)
5779         (print_frame_labels, iterate_over_block_arg_vars): Update.
5780         * python/py-block.c (block_object) <dict>: Remove.
5781         <block>: New field.
5782         <iter>: Change type.
5783         (blpy_iter): Update.
5784         (blpy_block_syms_iternext): Update.
5785         * psymtab.c (map_block): Use block iterators.
5786         * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5787         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5788         * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5789         * infrun.c (check_exception_resume): Update.
5790         * cp-support.c (make_symbol_overload_list_block): Update.
5791         * coffread.c (patch_opaque_types): Update.
5792         * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5793         * block.h (struct block_iterator): New.
5794         (block_iterator_first, block_iterator_next, block_iter_name_first)
5795         (block_iter_name_next, block_iter_match_first)
5796         (block_iter_match_next): Declare.
5797         (ALL_BLOCK_SYMBOLS): Redefine.
5798         * block.c (block_iterator_first, block_iterator_next)
5799         (block_iter_name_first, block_iter_name_next)
5800         (block_iter_match_first, block_iter_match_next): New functions.
5801         * ada-lang.c (ada_add_block_symbols)
5802         (ada_make_symbol_completion_list): Use block iterator.
5803
5804 2012-05-10  Tom Tromey  <tromey@redhat.com>
5805
5806         * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5807         (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5808         (lookup_partial_symbol, find_last_source_symtab_from_partial)
5809         (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5810         (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5811         Update.
5812
5813 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
5814
5815         * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5816         print-file-var-lib2.c, print-file-var-main.c and
5817         print-file-var.exp (located in gdb/testsuite/gdb.base).
5818
5819 2012-05-10  Joel Brobecker  <brobecker@adacore.com>
5820
5821         * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5822         try locating the symbol in the symbol's own objfile first, before
5823         extending the search to all objfiles.
5824         * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5825         out of lookup_symbol_aux_symtabs.
5826         (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5827         Replace extracted-out code by call to lookup_symbol_aux_objfile.
5828         Do not search EXCLUDE_OBJFILE.
5829         (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5830         (lookup_symbol_global): Search for matches in the block's objfile
5831         first, before searching all other objfiles.
5832
5833 2012-05-10  Tristan Gingold  <gingold@adacore.com>
5834
5835         * printcmd.c (set_command): Add pre/post inc/dec.
5836
5837 2012-05-09  Frank Ch. Eigler  <fche@redhat.com>
5838
5839         * gdb.1: Document -ex option.
5840
5841 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
5842
5843         * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5844         * inferior.h (AT_SYMBOL): Delete.
5845
5846 2012-05-09  Joel Brobecker  <brobecker@adacore.com>
5847
5848         * mips-tdep.c (mips_push_dummy_code): New function.
5849         (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5850         ON_STACK and install mips_push_dummy_code as our gdbarch
5851         push_dummy_code routine.
5852
5853 2012-05-09  Pedro Alves  <palves@redhat.com>
5854
5855         * target.c (set_maintenance_target_async_permitted): Rename to ...
5856         (set_target_async_command): ... this.
5857         (show_maintenance_target_async_permitted): Rename to ...
5858         (show_target_async_command): ... this.
5859         (initialize_targets): Adjust.
5860
5861 2012-05-08  Doug Evans  <dje@google.com>
5862
5863         * go-exp.y (classify_name): Add missing assignment of fields of
5864         yylval.ssym.
5865
5866 2012-05-08  Eli Zaretskii  <eliz@gnu.org>
5867
5868         Display the ">" prompt in interactive mode while reading canned
5869         commands, even when the current interpreter is MI.
5870
5871         * interps.c (interp_set_temp): New function.
5872
5873         * interps.h (interp_set_temp): Add prototype.
5874
5875         * cli/cli-script.c (restore_interp): New cleanup function.
5876         (read_command_lines): Temporarily override the current interpreter
5877         with CLI and arrange for restoring the original one.
5878
5879 2012-05-12  Joel Sherrill <joel.sherrill@oarcorp.com>
5880
5881         * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5882
5883 2012-05-07  Sergio Durigan Junior  <sergiodj@redhat.com>
5884
5885         * probe.c (parse_probes): Move conditional to check for
5886         debuginfo files from here...
5887         * stap-probe.c (stap_get_probes): ... to here.
5888
5889 2012-05-07  Mark Kettenis  <kettenis@gnu.org>
5890             H.J. Lu  <hongjiu.lu@intel.com>
5891
5892         * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5893         `movl %esp, %ebp' for the X32 ABI.
5894
5895 2012-05-07  Tom Tromey  <tromey@redhat.com>
5896
5897         * dwarf2read.c (dwarf_tag_name): Return const char *.  Use
5898         get_DW_TAG_name.
5899         (dwarf_attr_name): Return const char *.  Use get_DW_AT_name.
5900         (dwarf_form_name): Return const char *.  Use get_DW_FORM_name.
5901         (dwarf_stack_op_name): Remove.
5902         (dwarf_cfi_name): Return const char *.  Use get_DW_ATE_name.
5903         (decode_locdesc): Use get_DW_OP_name.
5904         * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5905         (dwarf2_compile_expr_to_ax): Likewise.
5906         (disassemble_dwarf_expression): Likewise.
5907         * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5908
5909 2012-05-07  Chung-Lin Tang  <cltang@codesourcery.com>
5910
5911         * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5912         (sh_linux_sigtramp_cache): New function.
5913         (sh_linux_sigreturn_init): New function.
5914         (sh_linux_rt_sigreturn_init): New function.
5915         (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5916         patterns.
5917         (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5918         syscall codes.
5919         (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5920         (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5921         (sh_linux_init_abi): Add init calls to register new tramp_frame
5922         definitions under 32-bit SH, update comments.
5923
5924 2012-05-07  Pedro Alves  <palves@redhat.com>
5925
5926         PR gdb/10952
5927
5928         * amd64-linux-tdep.c: Include glibc-tdep.h.
5929         (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5930         gdbarch_skip_solib_resolver callback.
5931
5932 2012-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
5933
5934         * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5935         back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5936         (show_auto_load_safe_path): Check any-directory by comparison with "/".
5937         (add_auto_load_safe_path): Change the error message.
5938         (_initialize_auto_load): Change the "safe-path" help text.
5939         * configure: Regenerate
5940         * configure.ac (--without-auto-load-safe-path): Set
5941         WITH_AUTO_LOAD_SAFE_PATH to /.
5942
5943 2012-05-05  Sergio Durigan Junior  <sergiodj@redhat.com>
5944
5945         * stap-probe.h: Do not include unecessary `probe.h'.
5946
5947 2012-05-05  Alan Modra  <amodra@gmail.com>
5948
5949         * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5950         bfd_und_section_ptr.
5951         * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5952         and bfd_com_section_ptr.
5953
5954 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
5955
5956         * MAINTAINERS (Past Maintainers): Add Chris Faylor.
5957
5958 2012-05-04  Joel Brobecker  <brobecker@adacore.com>
5959
5960         * windows-nat.h (segment_register_p_ftype): New typedef.
5961         (windows_set_segment_register_p): Add declaration.
5962         * windows-nat.c (segment_register_p): New static global.
5963         (windows_set_segment_register_p): New function.
5964         (do_windows_fetch_inferior_registers): Add special handling
5965         for segment registers.
5966         * amd64-windows-nat.c: #include "amd64-tdep.h".
5967         (amd64_windows_segment_register_p): New function.
5968         (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5969         * i386-windows-nat.c: #include "i386-tdep.h".
5970         (i386_windows_segment_register_p): New function.
5971         (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5972
5973 2012-05-04  Tristan Gingold  <gingold@adacore.com>
5974
5975         * printcmd.c (set_command): Emit a warning if the expression is not
5976         an assignment.
5977
5978 2012-05-03  Joel Brobecker  <brobecker@adacore.com>
5979
5980         * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5981         Make static.
5982
5983 2012-05-03  Sergio Durigan Junior  <sergiodj@redhat.com>
5984
5985         * stap-probe.c (stap_is_operator): Change declaration.
5986         (stap_get_opcode): Change return value.
5987         (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5988         `stap_parse_argument_1'.
5989
5990 2012-05-03  Pedro Alves  <pedro@codesourcery.com>
5991
5992         * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5993         debug log.
5994
5995 2012-05-03  Siva Chandra Reddy  <sivachandra@google.com>
5996
5997         Add two new methods global_block and static_block to gdb.Symtab
5998         objects.
5999         * NEWS (Python scripting): Add entry about the new methods.
6000         * python/py-symtab.c (stpy_global_block): New function which
6001         implements the gdb.Symtab.global_block() method.
6002         (stpy_static_block): New function which implements the
6003         gdb.Symtab.static_block() method.
6004         (symtab_object_methods): Add entries for the two new methods.
6005
6006 2012-05-03  Doug Evans  <dje@google.com>
6007
6008         * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6009         files.
6010
6011 2012-05-03  Yao Qi  <yao@codesourcery.com>
6012
6013         * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6014         space.
6015         (i386_process_record): Ditto.
6016
6017 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
6018
6019         * infcall.c (unwind_on_signal_p): Make static.
6020
6021 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
6022
6023         * sol-thread.c (solaris_pid_to_str): Make static.
6024         (_initialize_sol_thread): Add prototype.
6025
6026 2012-05-02  Joel Brobecker  <brobecker@adacore.com>
6027
6028         * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6029
6030 2012-05-02  Christopher Faylor  <me.cygwin2012@cgf.cx>
6031
6032         * MAINTAINERS: Remove myself.
6033
6034 2012-05-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
6035
6036         Fix --without-auto-load-safe-path for MS-Windows host platform.
6037         * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6038
6039 2012-05-02  Eli Zaretskii  <eliz@gnu.org>
6040
6041         * gdb_curses.h: Undefine KEY_EVENT before including curses
6042         headers.  Move "#undef MOUSE_MOVED" before any curses header
6043         inclusion.
6044
6045 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
6046
6047         * features/i386/i386-mmx-linux.c: Regenerate.
6048         * features/rs6000/powerpc-32.c: Likewise.
6049         * features/rs6000/powerpc-32l.c: Likewise.
6050         * features/rs6000/powerpc-403.c: Likewise.
6051         * features/rs6000/powerpc-403gc.c: Likewise.
6052         * features/rs6000/powerpc-405.c: Likewise.
6053         * features/rs6000/powerpc-505.c: Likewise.
6054         * features/rs6000/powerpc-601.c: Likewise.
6055         * features/rs6000/powerpc-602.c: Likewise.
6056         * features/rs6000/powerpc-603.c: Likewise.
6057         * features/rs6000/powerpc-604.c: Likewise.
6058         * features/rs6000/powerpc-64.c: Likewise.
6059         * features/rs6000/powerpc-64l.c: Likewise.
6060         * features/rs6000/powerpc-750.c: Likewise.
6061         * features/rs6000/powerpc-860.c: Likewise.
6062         * features/rs6000/powerpc-e500.c: Likewise.
6063         * features/rs6000/powerpc-e500l.c: Likewise.
6064         * features/rs6000/powerpc-isa205-32l.c: Likewise.
6065         * features/rs6000/powerpc-isa205-64l.c: Likewise.
6066         * features/rs6000/rs6000.c: Likewise.
6067
6068 2012-05-02  Sergio Durigan Junior  <sergiodj@gmail.com>
6069
6070         * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6071         variable.
6072         * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6073         reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6074         (stap_parse_argument) <e>: Likewise.
6075         (handle_stap_probe) <byte_order>: Likewise.
6076
6077 2012-04-30  Doug Evans  <dje@google.com>
6078
6079         * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6080         init_and_read_dies_worker.  All callers updated.
6081         (init_cu_and_read_dies, init_tu_and_read_dies): Delete.  All calls
6082         replaced with init_cutu_and_read_dies.
6083         (load_partial_comp_unit): Pass 1 for use_existing_cu.
6084         (find_partial_die): Remove FIXME.  Don't free current CU.
6085
6086 2012-04-30  Sterling Augustine  <saugustine@google.com>
6087
6088         * contrib: New directory.
6089         * contrib/test_pubnames_and_indexes.py: New file.
6090
6091 2012-04-30  Doug Evans  <dje@google.com>
6092
6093         * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6094         All callers updated.
6095         (init_cu_die_reader): Verify the section is non-empty.
6096         (dwarf_decode_line_header): Don't dereference section->asection
6097         until we know the section is present.
6098
6099 2012-04-29  Sergio Durigan Junior  <sergiodj@redhat.com>
6100
6101         * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6102         probes.
6103
6104 2012-04-29  Yao Qi  <yao@codesourcery.com>
6105
6106         * gdb-code-style.el: New hook gdb-markup-hook
6107         and gdb-comment-hook.
6108
6109 2012-04-28  Doug Evans  <dje@google.com>
6110
6111         Initial support for Fission.  http://gcc.gnu.org/wiki/DebugFission
6112         * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6113         objfile->obfd.
6114         * symfile.h (dwarf2_debug_sections): New member addr.
6115         * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6116         (ctx_no_get_addr_index): New function.
6117         * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6118         (ctx_no_get_addr_index): Declare.
6119         * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6120         * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6121         (dwarf_expr_ctx_funcs): Update.
6122         (needs_get_addr_index): New function.
6123         (needs_frame_ctx_funcs): Update.
6124         * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6125         * dwarf2read.c: #include "gdbcore.h".
6126         (dwarf2_per_objfile): New members addr, dwo_files.
6127         (dwarf2_elf_names): Add entry for addr.
6128         (struct dwo_section_names): New type.
6129         (dwo_section_names): New static global.
6130         (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6131         (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6132         old debug_types_section member updated to use this.
6133         Rename member debug_types_section to info_or_types_section,
6134         all uses updated.
6135         (signatured_type): Rename member type_offset to type_offset_in_tu,
6136         all uses updated.  New member type_offset_in_section.
6137         (struct dwo_sections): New type.
6138         (struct dwo_unit): New type.
6139         (struct dwo_file): New type.
6140         (die_reader_specs): New member dwo_file.
6141         (dwarf2_locate_sections): Watch for .debug_addr.
6142         (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6143         (dwarf2_read_section): Get bfd of section from bfd's asection,
6144         instead of objfile.
6145         (create_cus_from_index): Initialize the_cu->info_or_types_section.
6146         (create_signatured_type_table_from_index): Initialize
6147         sig_type->info_or_types_section.
6148         (dw2_get_file_names): Statement lists for type units with DWO files
6149         live in the DWO file.
6150         (create_debug_types_hash_table): New function.
6151         (create_all_type_units): Rewrite.
6152         (init_cu_die_reader): New arg dwo_file, all callers updated.
6153         (init_and_read_dies_worker): Get section from
6154         this_cu->info_or_types_section.  Set sig_type->type_offset_in_section.
6155         Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6156         continue reading the CU/TU from there.
6157         (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6158         updated.  Get section from this_cu->info_or_types_section.
6159         (create_all_comp_units): Initialize this_cu->info_or_types_section.
6160         (skip_one_die): New cases DW_FORM_GNU_addr_index,
6161         DW_FORM_GNU_str_index.
6162         (hash_dwo_file, eq_dwo_file): New functions.
6163         (allocate_dwo_file_hash_table): New function.
6164         (hash_dwo_unit, eq_dwo_unit): New functions.
6165         (allocate_dwo_unit_table): New function.
6166         (dwarf2_locate_dwo_sections): New function.
6167         (struct create_dwo_info_table_data): New type.
6168         (create_debug_info_hash_table_reader): New function.
6169         (create_debug_info_hash_table): New function.
6170         (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6171         (lookup_dwo_file): New function.
6172         (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6173         (free_dwo_file, free_dwo_file_cleanup): New functions.
6174         (free_dwo_file_from_slot, free_dwo_files): New functions.
6175         (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6176         (dwarf2_record_block_ranges): Ditto.
6177         (read_partial_die): Ditto.
6178         (process_enumeration_scope): Update to use type_offset_in_section.
6179         (read_full_die_1): New function.
6180         (read_full_die): Rewrite.
6181         (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6182         DW_FORM_GNU_str_index.
6183         (read_addr_index_1, read_addr_index): New functions.
6184         (read_addr_index_from_leb128): New function.
6185         (struct dwarf2_read_addr_index_data): New type.
6186         (dwarf2_read_addr_index_reader): New function.
6187         (dwarf2_read_addr_index): New function.
6188         (read_str_index): New function.
6189         (leb128_size): New function.
6190         (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6191         If processing a type unit from a DWO file, get the line section
6192         from the DWO file.
6193         (var_decode_location): Watch for DW_OP_GNU_addr_index.
6194         (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6195         DW_FORM_GNU_str_index.
6196         (lookup_die_type): Check whether section offset of type's die is
6197         known before looking it up.  Remove assert.  Condition can
6198         legimately happen for inter-cu type references.
6199         (dwarf_attr_name): Handle Fission attributes.
6200         (dwarf_form_name): Handle Fission forms.
6201         (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6202         DW_FORM_GNU_str_index.
6203         (follow_die_sig): Update to use type_offset_in_section.
6204         (decode_locdesc): New case DW_OP_GNU_addr_index.
6205         (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6206         DW_FORM_GNU_str_index.
6207         (cu_debug_loc_section): New function.
6208         (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6209         (dwarf2_per_objfile_free): Unmap .debug_addr section.
6210         Free DWO files if present.
6211         * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6212
6213         Refactor DIE reading.
6214         * dwarf2read.c (dwarf2_per_objfile): Replace members
6215         debug_info_type_hash and debug_types_type_hash with die_type_hash.
6216         (die_reader_specs): New member "die_section".  Temporarily make
6217         member "buffer" non-const, pending constifying all info_ptr uses.
6218         (die_reader_func_ftype): New typedef.
6219         (dw2_get_file_names_reader): New function.
6220         (dw2_get_file_names): Rewrite.
6221         (read_and_check_type_unit_head): Rename arg type_offset to
6222         type_offset_in_tu.
6223         (create_all_type_units): Improve debugging message.
6224         Improve dummy type unit check.
6225         (init_cu_die_reader): New arg "section".  All callers updated.
6226         (init_and_read_dies_worker): New function.
6227         (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6228         (init_cutu_and_read_dies_no_follow): New function.
6229         (init_cutu_and_read_dies_simple): New function.
6230         (process_psymtab_comp_unit_reader): New function.
6231         (process_psymtab_comp_unit): Delete args section,
6232         is_debug_types_section.  Rewrite.  All callers updated.
6233         (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6234         All callers updated.  Rewrite.
6235         (load_partial_comp_unit_reader): New function.
6236         (load_partial_comp_unit): Rewrite.
6237         (skip_children): New arg reader.  Delete args buffer, cu.
6238         All callers updated.
6239         (skip_one_die): New arg reader.  Delete args buffer, cu.
6240         All callers updated.
6241         (locate_pdi_sibling): New arg reader.  Delete args buffer, abfd, cu.
6242         All callers updated.
6243         (load_full_comp_unit_reader): New function.
6244         (load_full_comp_unit): Rewrite.
6245         (read_comp_unit): Delete.
6246         (read_die_and_children_1): Delete, contents moved ...
6247         (read_die_and_children): ... here.
6248         (dwarf2_read_abbrevs): New arg abbrev_section.  All callers updated.
6249         (load_partial_dies): New arg reader.  Delete args abfd, buffer, cu.
6250         All callers updated.
6251         (read_partial_die): New arg reader.  Delete args abfd, buffer, cu.
6252         All callers updated.
6253         (find_partial_die): Rewrite load_all_dies support.
6254         (read_attribute_value): New arg reader.  Delete args abfd, cu.
6255         All callers updated.
6256         (read_attribute): New arg reader.  Delete args abfd, cu.
6257         All callers updated.
6258         (load_full_type_unit): Add assert.
6259         (read_signatured_type_reader): New function.
6260         (read_signatured_type): Rewrite.
6261         (free_stack_comp_unit): Remove call to age_cached_comp_units.
6262         (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6263         All callers updated.  Set per_cu->cu = NULL after freeing it.
6264         (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6265         (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6266         (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6267         (set_die_type): Update.
6268         (get_die_type_at_offset): Update.
6269         (read_file_scope): Call prepare_one_comp_unit.
6270         (read_type_unit_scope): Ditto.
6271         (prepare_one_comp_unit): Set producer if present.
6272
6273 2012-04-28  Sergio Durigan Junior  <sergiodj@redhat.com>
6274
6275         * probe.c (compile_rx_or_error): Silence ARI warning about missing
6276          gettext function on `error'.
6277
6278 2012-04-27  Doug Evans  <dje@google.com>
6279
6280         * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6281         is empty.
6282
6283 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6284             Tom Tromey  <tromey@redhat.com>
6285
6286         * breakpoint.c (struct breakpoint_objfile_data)
6287         <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6288         <exception_probes>: New fields.
6289         (free_breakpoint_probes): New function.
6290         (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6291         `_Unwind_DebugHook'.
6292         (create_exception_master_breakpoint): Likewise.
6293         (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6294         * infrun.c: Including necessary header files for handling SystemTap
6295         probes.
6296         (handle_inferior_event): Handling longjmp breakpoint and exceptions
6297         via SystemTap probes.
6298         (check_exception_resume): Remove `func' argument.  Handle exception
6299         unwinding breakpoint set via a SystemTap probe.
6300         (insert_exception_resume_from_probe): New function.
6301
6302 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6303             Tom Tromey  <tromey@redhat.com>
6304             Jan Kratochvil  <jan.kratochvil@redhat.com>
6305
6306         * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6307         (COMMON_OBS): Likewise.
6308         (HFILES_NO_SRCDIR): Add `probe'.
6309         * NEWS: Mention support for static and SystemTap probes.
6310         * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6311         SystemTap probes' arguments parser.
6312         * arm-linux-tdep.c: Including headers needed to perform the parsing
6313         of SystemTap probes' arguments.
6314         (arm_stap_is_single_operand): New function.
6315         (arm_stap_parse_special_token): Likewise.
6316         (arm_linux_init_abi): Initializing proper fields used by SystemTap
6317         probes' arguments parser.
6318         * ax-gdb.c (require_rvalue): Removing static declaration.
6319         (gen_expr): Likewise.
6320         * ax-gdb.h (gen_expr): Declaring function.
6321         (require_rvalue): Likewise.
6322         * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6323         (bkpt_probe_breakpoint_ops): New variable.
6324         (momentary_breakpoint_from_master): Set the `probe' value.
6325         (add_location_to_breakpoint): Likewise.
6326         (break_command_1): Using proper breakpoint_ops according to the
6327         argument passed by the user in the command line.
6328         (bkpt_probe_insert_location): New function.
6329         (bkpt_probe_remove_location): Likewise.
6330         (bkpt_probe_create_sals_from_address): Likewise.
6331         (bkpt_probe_decode_linespec): Likewise.
6332         (tracepoint_probe_create_sals_from_address): Likewise.
6333         (tracepoint_probe_decode_linespec): Likewise.
6334         (tracepoint_probe_breakpoint_ops): New variable.
6335         (trace_command): Using proper breakpoint_ops according to the
6336         argument passed by the user in the command line.
6337         (initialize_breakpoint_ops): Initializing breakpoint_ops for
6338         static probes on breakpoints and tracepoints.
6339         * breakpoint.h (struct bp_location) <probe>: New field.
6340         * cli-utils.c (skip_spaces_const): New function.
6341         (extract_arg): Likewise.
6342         * cli-utils.h (skip_spaces_const): Likewise.
6343         (extract_arg): Likewise.
6344         * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6345         * configure.ac: Append `stap-probe.o' to be generated when ELF
6346         support is present.
6347         * configure: Regenerate.
6348         * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6349         * elfread.c: Include `probe.h' and `arch-utils.h'.
6350         (probe_key): New variable.
6351         (elf_get_probes): New function.
6352         (elf_get_probe_argument_count): Likewise.
6353         (elf_evaluate_probe_argument): Likewise.
6354         (elf_compile_to_ax): Likewise.
6355         (elf_symfile_relocate_probe): Likewise.
6356         (stap_probe_key_free): Likewise.
6357         (elf_probe_fns): New variable.
6358         (elf_sym_fns): Add `sym_probe_fns' value.
6359         (elf_sym_fns_lazy_psyms): Likewise.
6360         (elf_sym_fns_gdb_index): Likewise.
6361         (_initialize_elfread): Initialize objfile cache for static
6362         probes.
6363         * gdb_vecs.h (struct probe): New forward declaration.
6364         (probe_p): New VEC declaration.
6365         * gdbarch.c: Regenerate.
6366         * gdbarch.h: Regenerate.
6367         * gdbarch.sh (stap_integer_prefix): New variable.
6368         (stap_integer_suffix): Likewise.
6369         (stap_register_prefix): Likewise.
6370         (stap_register_suffix): Likewise.
6371         (stap_register_indirection_prefix): Likewise.
6372         (stap_register_indirection_suffix): Likewise.
6373         (stap_gdb_register_prefix): Likewise.
6374         (stap_gdb_register_suffix): Likewise.
6375         (stap_is_single_operand): New function.
6376         (stap_parse_special_token): Likewise.
6377         (struct stap_parse_info): Forward declaration.
6378         * i386-tdep.c: Including headers needed to perform the parsing
6379         of SystemTap probes' arguments.
6380         (i386_stap_is_single_operand): New function.
6381         (i386_stap_parse_special_token): Likewise.
6382         (i386_elf_init_abi): Initializing proper fields used by SystemTap
6383         probes' arguments parser.
6384         * i386-tdep.h (i386_stap_is_single_operand): New function.
6385         (i386_stap_parse_special_token): Likewise.
6386         * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6387         * mipsread.c (ecoff_sym_fns): Likewise.
6388         * objfiles.c (objfile_relocate1): Support relocation for static
6389         probes.
6390         * parse.c (prefixify_expression): Remove static declaration.
6391         (initialize_expout): Likewise.
6392         (reallocate_expout): Likewise.
6393         * parser-defs.h (initialize_expout): Declare function.
6394         (reallocate_expout): Likewise.
6395         (prefixify_expression): Likewise.
6396         * ppc-linux-tdep.c: Including headers needed to perform the parsing
6397         of SystemTap probes' arguments.
6398         (ppc_stap_is_single_operand): New function.
6399         (ppc_stap_parse_special_token): Likewise.
6400         (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6401         probes' arguments parser.
6402         * probe.c: New file, for generic statically defined probe support.
6403         * probe.h: Likewise.
6404         * s390-tdep.c: Including headers needed to perform the parsing of
6405         SystemTap probes' arguments.
6406         (s390_stap_is_single_operand): New function.
6407         (s390_gdbarch_init): Initializing proper fields used by SystemTap
6408         probes' arguments parser.
6409         * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6410         * stap-probe.c: New file, for SystemTap probe support.
6411         * stap-probe.h: Likewise.
6412         * symfile.h: Include `gdb_vecs.h'.
6413         (struct sym_probe_fns): New struct.
6414         (struct sym_fns) <sym_probe_fns>: New field.
6415         * symtab.c (init_sal): Initialize `probe' field.
6416         * symtab.h (struct probe): Forward declaration.
6417         (struct symtab_and_line) <probe>: New field.
6418         * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6419         locations.
6420         (stop_tracing): Likewise.
6421         * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6422
6423 2012-04-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6424             Tom Tromey  <tromey@redhat.com>
6425
6426         * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6427         and to compile agent expressions.
6428         * infrun.c (siginfo_make_value): New argument `ignore'.
6429         (siginfo_funcs): New struct.
6430         (_initialize_infrun): New argument when calling
6431         `create_internalvar_type_lazy'.
6432         * thread.c (thread_id_make_value): New argument `ignore'.
6433         (thread_funcs): New struct.
6434         (_initialize_thread): New argument when calling
6435         `create_internalvar_type_lazy'.
6436         * tracepoint.c (sdata_make_value): New argument `ignore'.
6437         (sdata_funcs): New struct.
6438         (_initialize_tracepoint): New argument when calling
6439         `create_internalvar_type_lazy'.
6440         * value.c (make_value): New struct.
6441         (create_internalvar_type_lazy): New argument `data'.
6442         (compile_internalvar_to_ax): New function.
6443         (value_of_internalvar): Properly handling `make_value' case.
6444         (clear_internalvar): Likewise.
6445         (show_convenience): Adding `TRY_CATCH' block.
6446         * value.h (internalvar_make_value): Delete, replace by...
6447         (struct internalvar_funcs): ... this.
6448         (create_internalvar_type_lazy) <fun>: Delete argument.
6449         (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6450         (compile_internalvar_to_ax): New function.
6451         * windows-tdep.c (tlb_make_value): New argument `ignore'.
6452         (tlb_funcs): New struct.
6453         (_initialize_windows_tdep): New argument when calling
6454         `create_internalvar_type_lazy'.
6455
6456 2012-04-27  Mark Wielaard  <mjw@redhat.com>
6457
6458         * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6459         see whether it is an address or a constant offset from DW_AT_low_pc.
6460         (dwarf2_record_block_ranges): Likewise.
6461         (read_partial_die): Likewise.
6462
6463 2012-04-26  Mark Wielaard  <mjw@redhat.com>
6464
6465         * MAINTAINERS (Write After Approval): Add myself to the list.
6466
6467 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
6468
6469         * proc-utils.h (proc_prettyprint_signalset): New prototype.
6470         (proc_prettyprint_signal): Likewise.
6471         (proc_prettyprint_faultset): Likewise.
6472         (proc_prettyprint_fault): Likewise.
6473         (proc_prettyprint_actionset): Likewise.
6474         (proc_prettyprint_flags): Move to new proc-flags.c section.
6475         (proc_prettyfprint_flags): New prototype.
6476         * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6477         (proc_syscall, proc_cursig): Likewise.
6478         (proc_set_kill_on_last_close): Likewise.
6479         (proc_unset_kill_on_last_close): Likewise.
6480         (proc_set_watchpoint): Make static.
6481         (proc_delete_dead_threads): Likewise.
6482         (procfs_set_watchpoint): Likewise.
6483         (_initialize_procfs): Add prototype.
6484         * proc-events.c: Include proc-utils.h.
6485         (init_syscall_table): Make static.
6486         * proc-api.c (_initialize_proc_api): Add prototype.
6487         * proc-flags.c: Include proc-utils.h.
6488
6489 2012-04-26  Maciej W. Rozycki  <macro@codesourcery.com>
6490
6491         * configure.ac: Add AC_ARG_PROGRAM.
6492         * configure: Regenerate.
6493
6494 2012-04-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
6495
6496         Fix DW_AT_lower_bound defaults for DWARF-4+.
6497         * dwarf2read.c (read_subrange_type): Remove initialization of low and
6498         high.  New variable low_default_is_valid.  Implement DWARF-4+
6499         DW_AT_lower_bound defaults.  Print complaint for DW_AT_lower_bound with
6500         no default by the DWARF standard.
6501
6502 2012-04-26  Maciej W. Rozycki  <macro@mips.com>
6503             Maciej W. Rozycki  <macro@codesourcery.com>
6504
6505         * infrun.c (handle_inferior_event): Move the check for return
6506         trampolines ahead of the check for function trampolines.
6507         * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6508         * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6509         (mips_str_mips16_ret_stub): Likewise.
6510         (mips_str_call_fp_stub): Likewise.
6511         (mips_str_call_stub): Likewise.
6512         (mips_str_fn_stub): Likewise.
6513         (mips_str_pic): Likewise.
6514         (mips_in_frame_stub): New function.
6515         (mips_unwind_pc): Return the return address rather than the PC
6516         if the PC of an intermediate frame is inside a call thunk.
6517         (mips_is_stub_suffix): New function.
6518         (mips_is_stub_mode): Likewise.
6519         (mips_get_mips16_fn_stub_pc): Likewise.
6520         (mips_skip_mips16_trampoline_code): Update to handle all the
6521         currently generated stub types.  Don't recurse into __fn_stub
6522         thunks.  Remove heuristics to handle stubs beyond etext/_etext.
6523         Use cooked register accesses.
6524         (mips_in_return_stub): Reintroduce function.
6525         (mips_skip_trampoline_code): Traverse trampolines recursively.
6526         (mips_gdbarch_init): Handle MIPS16 return trampolines.
6527
6528 2012-04-26  Joel Brobecker  <brobecker@adacore.com>
6529
6530         GDB 7.4.1 released.
6531
6532 2012-04-26  Jonathan Larmour  <jifl@eCosCentric.com>
6533
6534         * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6535         * features/arm-with-m-vfp-d16.xml: New file. Describes
6536         Cortex-M with VFPv4-sp-d16 FPU register layout.
6537         * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6538         * features/arm-with-m-vfp-d16.c: New. Generated from above.
6539         * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6540         (arm-register_g_packet_guesses): Add vfp-d16 guess.
6541         (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6542
6543 2012-04-25  Doug Evans  <dje@google.com>
6544
6545         * cli/cli-decode.c (print_doc_line): Use stream instead of
6546         current_uiout.
6547
6548 2012-04-25  Sergio Durigan Junior  <sergiodj@redhat.com>
6549
6550         * features/arm-with-iwmmxt.c: Regenerate.
6551         * features/arm-with-m-fpa-layout.c: Likewise.
6552         * features/arm-with-m.c: Likewise.
6553         * features/arm-with-neon.c: Likewise.
6554         * features/arm-with-vfpv2.c: Likewise.
6555         * features/arm-with-vfpv3.c: Likewise.
6556         * features/mips-dsp-linux.c: Likewise.
6557         * features/mips-linux.c: Likewise.
6558         * features/mips64-dsp-linux.c: Likewise.
6559         * features/mips64-linux.c: Likewise.
6560         * features/s390-linux32.c: Likewise.
6561         * features/s390-linux32v1.c: Likewise.
6562         * features/s390-linux32v2.c: Likewise.
6563         * features/s390-linux64.c: Likewise.
6564         * features/s390-linux64v1.c: Likewise.
6565         * features/s390-linux64v2.c: Likewise.
6566         * features/s390x-linux64.c: Likewise.
6567         * features/s390x-linux64v1.c: Likewise.
6568         * features/s390x-linux64v2.c: Likewise.
6569         * features/tic6x-c62x-linux.c: Likewise.
6570         * features/tic6x-c62x.c: Likewise.
6571         * features/tic6x-c64x-linux.c: Likewise.
6572         * features/tic6x-c64x.c: Likewise.
6573         * features/tic6x-c64xp-linux.c: Likewise.
6574         * features/tic6x-c64xp.c: Likewise.
6575         * target-descriptions.c: Only generate `field_type' and `type'
6576         variables when needed.
6577
6578 2012-04-25  Fredrik Hederstierna  <fredrikh.hederstierna@securitas-direct.com>
6579
6580         * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6581
6582 2012-04-25  Doug Evans  <dje@google.com>
6583
6584         Initial pass at Go language support.
6585         * NEWS: Mention Go.
6586         * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6587         go-valprint.c.
6588         (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6589         (YYFILES): Add go-exp.c.
6590         (YYOBJ): Add go-exp.o.
6591         (local-maintainer-clean): Delete go-exp.c.
6592         * defs.h (enum language): Add language_go.
6593         * dwarf2read.c: #include "go-lang.h".
6594         (fixup_go_packaging): New function.
6595         (process_full_comp_unit): Call it when processing Go CUs.
6596         (dwarf2_physname): Add Go support.
6597         (read_file_scope): Handle missing language spec for GNU Go.
6598         (set_cu_language): Handle DW_LANG_Go.
6599         * go-exp.y: New file.
6600         * go-lang.h: New file.
6601         * go-lang.c: New file.
6602         * go-typeprint.c: New file.
6603         * go-valprint.c: New file.
6604         * symtab.c: #include "go-lang.h".
6605         (symbol_set_language): Handle language_go.
6606         (symbol_find_demangled_name, symbol_set_names): Ditto.
6607         (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6608
6609 2012-04-24  Jim Meyering  <meyering@redhat.com>
6610
6611         avoid a few strncpy-induced buffer overruns
6612         * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6613         fname and psargs before trying to concatenate.
6614         * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6615         "name" before applying strchr.
6616
6617 2012-04-25  Siva Chandra Reddy  <sivachandra@google.com>
6618
6619         * CONTRIBUTE: Use unified diff instead of context diff when
6620         generating patches.
6621
6622 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
6623
6624         * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6625         code.  Handle JR.HB correctly.
6626
6627 2012-04-24  Maciej W. Rozycki  <macro@codesourcery.com>
6628
6629         * mips-tdep.c
6630         (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6631         with the other MIPS16 helpers.
6632
6633 2012-04-24  Sergio Durigan Junior  <sergiodj@redhat.com>
6634
6635         * observer.sh: Conditionally declare `args', thus cleaning up
6636         unused instances of this variable.
6637
6638 2012-04-24  Yao Qi  <yao@codesourcery.com>
6639
6640         Revert this patch to allow breakpoint always-inserted
6641         in record target.
6642         2011-12-05  Pedro Alves  <pedro@codesourcery.com>
6643         * breakpoint.c: Include record.h.
6644         (breakpoints_always_inserted_mode): Return false when the record
6645         target is in use.
6646
6647         * breakpoint.c (iterate_over_bp_locations): New.
6648         * breakpoint.h: Declare.
6649         New typedef walk_bp_location_callback.
6650         * record.c (record_open): Call record_init_record_breakpoints.
6651         (record_sync_record_breakpoints): New.
6652         (record_init_record_breakpoints): New.
6653         * NEWS: Mention supporting breakpoint always-inserted mode in
6654         record target.
6655
6656 2012-04-24  Marc Khouzam  <marc.khouzam@ericsson.com>
6657
6658         * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6659         any thread.
6660
6661 2012-04-24  Yao Qi  <yao@codesourcery.com>
6662
6663         * breakpoint.c (ep_is_catchpoint): Renamed to ...
6664         (is_catchpoint): ... it.
6665         (print_one_breakpoint_location): Caller update.
6666         * breakpoint.h: Update declaration.
6667
6668 2012-04-23  David S. Miller  <davem@davemloft.net>
6669
6670         * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6671
6672 2012-04-23  Tom Tromey  <tromey@redhat.com>
6673
6674         * buildsym.c (add_free_pendings): Remove.
6675         * buildsym.h (add_free_pendings): Remove.
6676
6677 2012-04-23  Doug Evans  <dje@google.com>
6678
6679         * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6680         attr.u.unsnd instead of attr.u.addr.
6681         (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6682         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6683         DW_FORM_ref_udata.
6684         (dump_die_shallow): Update cases DW_FORM_ref_addr,
6685         DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4.  Add cases DW_FORM_ref8,
6686         DW_FORM_ref_udata.
6687         (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6688
6689 2012-04-23  Maciej W. Rozycki  <macro@codesourcery.com>
6690
6691         * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6692         (mips_o32_return_value): Likewise.
6693         (mips_o64_return_value): Likewise.
6694
6695 2012-04-21  Paul Hilfinger  <hilfinger@adacore.com>
6696
6697         * ada-lang.c (ada_evaluate_subexp): Add cases for
6698         TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6699         their treatment in eval.c.
6700
6701 2012-04-21  David S. Miller  <davem@davemloft.net>
6702
6703         * sparc-tdep.c (X_DISP10): Define.
6704         (sparc_analyze_control_transfer): Handle compare-and-branch.
6705
6706 2012-04-21  Jonathan Larmour  <jifl@eCosCentric.com>
6707
6708         * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6709         * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6710
6711 2012-04-20  Nigel Stephens  <nigel@mips.com>
6712             Maciej W. Rozycki  <macro@codesourcery.com>
6713
6714         * mips-tdep.c (mips_float_register_p): New function.
6715         (mips_convert_register_float_case_p): Use mips_float_register_p.
6716         (mips_register_type): Likewise.
6717         (mips_print_register): Likewise.
6718         (print_gp_register_row): Likewise.
6719         (mips_print_registers_info): Likewise.
6720
6721 2012-04-20  Shun-Yen Lu  <dark.asparagus@gmail.com>
6722
6723         * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6724         of mips16 symbols.
6725
6726 2012-04-20  Andrew Pinski  <apinski@cavium.com>
6727
6728         * MAINTAINERS (Write After Approval): Add myself to the list.
6729
6730 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
6731
6732         * MAINTAINERS: Update my e-mail address.
6733
6734 2012-04-20  Pedro Alves  <palves@redhat.com>
6735
6736         * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6737         $srcdir.
6738         * configure: Regenerate.
6739
6740 2012-04-20  Sergio Durigan Junior  <sergiodj@redhat.com>
6741
6742         * cp-support.h: Include `gdb_vecs.h'.  Delete `const_char_ptr' VEC
6743         declaration.
6744         * gdb_vecs.h: Declare `const_char_ptr' VEC.
6745
6746 2012-04-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6747
6748         Fix compilation compatibility with python-2.4
6749         * python/py-type.c (convert_field): Cast ADDRSTRING for
6750         PyObject_SetAttrString as non-const.  New comment.
6751
6752 2012-04-19  Tom Tromey  <tromey@redhat.com>
6753
6754         * top.c (quit_target): Use all_cleanups.
6755         * main.c (captured_command_loop): Use all_cleanups.
6756         * exceptions.c (throw_exception): Use all_cleanups.
6757
6758 2012-04-19  Pedro Alves  <palves@redhat.com>
6759
6760         * Makefile.in (GNULIB_BUILDDIR): New.
6761         (LIBGNU, INCGNU, GNULIB_H): Adjust.
6762         (SUBDIRS): Add $(GNULIB_BUILDDIR).
6763         (CLEANDIRS). Remove gnulib/import.
6764         (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6765         (all-lib): Ditto.
6766         (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6767         (gnulib/import/Makefile): Replace gnulib/import with
6768         $(GNULIB_BUILDDIR).  Set CONFIG_FILES to just Makefile.
6769         (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6770         (aclocal_m4_deps): Remove the gnulib dependencies.  Add
6771         acx_configure_dir.m4.
6772         * acinclude.m4: Include acx_configure_dir.m4.
6773         * acx_configure_dir.m4: New file.
6774         * aclocal.m4: Regenerate.
6775         * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6776         calls.  Configure gnulib using ACX_CONFIGURE_DIR.
6777         (GNULIB): New variable.
6778         (GNULIB_STDINT_H): Adjust.
6779         (AC_OUTPUT): Don't output gnulib/Makefile.
6780         * gdb/defs.h: Include build-gnulib/config.h.
6781         * aclocal.m4: Regenerate.
6782         * config.in: Regenerate.
6783         * configure: Regenerate.
6784
6785         * gnulib/Makefile.in: New file.
6786         * gnulib/configure.ac: New file.
6787         * gnulib/aclocal.m4: New file.
6788         * gnulib/config.in: New file.
6789         * gnulib/configure: New file.
6790         * gnulib/: Re-run gnulib-tool to adjust.
6791
6792 2012-04-19  Doug Evans  <dje@google.com>
6793
6794         * cleanups.h (struct cleanup): Move to cleanups.c.
6795         (make_cleanup_dtor_ftype): New typedef.
6796         (make_cleanup_dtor): Use it.
6797         (ALL_CLEANUPS): Replace with ...
6798         (all_cleanups): ... this.  Declare.  All uses updated.
6799         * cleanups.c: #include "gdb_assert.h".
6800         (sentinel_cleanup): New static global.
6801         (SENTINEL_CLEANUP): Define.
6802         (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6803         (make_my_cleanup2): Assert result is non-NULL.
6804         (all_cleanups): New function.
6805         (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6806         of NULL.
6807
6808 2012-04-19  Pedro Alves  <palves@redhat.com>
6809
6810         * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6811         Adjust paths to gnulib imported files.
6812
6813 2012-04-19  Pedro Alves  <palves@redhat.com>
6814
6815         * gnulib/: Move whole directory ...
6816         * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6817         * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6818         (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6819         (aclocal_m4_deps): Adjust.
6820         * aclocal.m4: Regenerate.
6821         * configure: Regenerate.
6822         * configure.ac: Adjust AC_OUTPUT output.
6823
6824 2012-04-19  Yao Qi  <yao@codesourcery.com>
6825
6826         * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6827         (vec.o): New rule.
6828         * vec.c: Move it ...
6829         * common/vec.c: ... here.
6830         * vec.h: Move it ...
6831         * common/vec.h: ... here.
6832
6833 2012-04-19  Yao Qi  <yao@codesourcery.com>
6834
6835         * gdb-code-style.el: New.
6836
6837 2012-04-18  Pedro Alves  <palves@redhat.com>
6838
6839         Update gnulib from latest git.
6840         (639ea5ae15e39fe48d43e04864b2997301e4b969)
6841
6842         * gnulib/Makefile.am: Update.
6843         * gnulib/dummy.c: Update.
6844         * gnulib/extra/arg-nonnull.h: Update.
6845         * gnulib/extra/c++defs.h: Update.
6846         * gnulib/extra/update-copyright: Update.
6847         * gnulib/extra/warn-on-use.h: Update.
6848         * gnulib/inttypes.in.h: Update.
6849         * gnulib/m4/00gnulib.m4: Update.
6850         * gnulib/m4/extensions.m4: Update.
6851         * gnulib/m4/gnulib-cache.m4: Update.
6852         * gnulib/m4/gnulib-common.m4: Update.
6853         * gnulib/m4/gnulib-comp.m4: Update.
6854         * gnulib/m4/gnulib-tool.m4: Update.
6855         * gnulib/m4/include_next.m4: Update.
6856         * gnulib/m4/inttypes-pri.m4: Update.
6857         * gnulib/m4/inttypes.m4: Update.
6858         * gnulib/m4/longlong.m4: Update.
6859         * gnulib/m4/memchr.m4: Update.
6860         * gnulib/m4/memmem.m4: Update.
6861         * gnulib/m4/mmap-anon.m4: Update.
6862         * gnulib/m4/multiarch.m4: Update.
6863         * gnulib/m4/onceonly.m4: Update.
6864         * gnulib/m4/stddef_h.m4: Update.
6865         * gnulib/m4/stdint.m4: Update.
6866         * gnulib/m4/string_h.m4: Update.
6867         * gnulib/m4/warn-on-use.m4: Update.
6868         * gnulib/m4/wchar_h.m4: Update.
6869         * gnulib/m4/wchar_t.m4: Update.
6870         * gnulib/m4/wint_t.m4: Update.
6871         * gnulib/memchr.c: Update.
6872         * gnulib/memmem.c: Update.
6873         * gnulib/stddef.in.h: Update.
6874         * gnulib/stdint.in.h: Update.
6875         * gnulib/str-two-way.h: Update.
6876         * gnulib/string.in.h: Update.
6877         * gnulib/wchar.in.h: Update.
6878
6879         * gnulib/extra/arg-nonnull.h: Delete.
6880         * gnulib/extra/c++defs.h: Delete.
6881         * gnulib/extra/warn-on-use.h: Delete.
6882         * gnulib/m4/wchar_h.m4: Delete.
6883         * gnulib/m4/wint_t.m4: Delete.
6884         * gnulib/wchar.in.h: Delete.
6885
6886         * gnulib/extra/snippets/arg-nonnull.h: New.
6887         * gnulib/extra/snippets/c++defs.h: New.
6888         * gnulib/extra/snippets/warn-on-use.h: New.
6889
6890         * aclocal.m4: Regenerate.
6891         * config.in: Regenerate.
6892         * configure: Regenerate.
6893         * gnulib/Makefile.in: Regenerate.
6894
6895 2012-04-18  Pedro Alves  <palves@redhat.com>
6896
6897         Reimport the update-copyright module from gnulib
6898         (250b80067c1e1d8faa0c42fb572f721975b929c5).
6899
6900         * configure: Regenerate.
6901         * gnulib/Makefile.am: Update.
6902         * gnulib/Makefile.in: Regenerate.
6903         * gnulib/extra/update-copyright: Update.
6904         * gnulib/m4/gnulib-cache.m4: Update.
6905         * gnulib/m4/gnulib-comp.m4: Update.
6906
6907 2012-04-18  Tristan Gingold  <gingold@adacore.com>
6908
6909         * configure.ac (aix): Put -lpthread into libs.
6910         * configure: Regenerate.
6911
6912 2012-04-18  Tom Tromey  <tromey@redhat.com>
6913
6914         * linespec.c (convert_linespec_to_sals): Don't use
6915         SYMBOL_OBJ_SECTION.
6916         (compare_msymbols): Arguments are minsym_and_objfile, not
6917         minimal_symbol*.  Don't use SYMBOL_OBJ_SECTION.
6918
6919 2012-04-18  Pedro Alves  <palves@redhat.com>
6920
6921         Revert gnulib/ part of:
6922         2011-01-01  Joel Brobecker  <brobecker@adacore.com>
6923         Copyright year update in most files (performed by copyright.sh).
6924
6925 2012-04-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
6926
6927         Fix 64-bit constants on 32-bit hosts.
6928         * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6929         from unsigned long to ULONGEST.
6930         (read_signed_leb128): Change declaration return type from long to
6931         LONGEST.
6932         (dwarf2_const_value_attr): Change declaration parameter value from long
6933         to LONGEST.
6934         (dwarf2_compute_name): Change variable value from long to LONGEST.
6935         (read_unsigned_leb128): Change return type, variable result and some
6936         casts from unsigned long to ULONGEST.
6937         (read_signed_leb128): Change return type, variable result and some
6938         casts from long to LONGEST.
6939         (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6940         value from long to LONGEST.
6941         (dwarf2_const_value): Change variable value from long to LONGEST.
6942         * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6943         plongest and hex_string.
6944         * symtab.h (struct general_symbol_info): Change ivalue from long to
6945         LONGEST, remove the comment.
6946         * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6947         Change SYMBOL_VALUE format strings to use plongest and hex_string.
6948
6949 2012-04-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
6950
6951         PR symtab/7259:
6952         * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6953         * ada-lang.c (ada_discrete_type_high_bound)
6954         (ada_discrete_type_low_bound): Fix function comment.  Use
6955         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6956         (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6957         (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6958         * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6959         Use TYPE_FIELD_ENUMVAL.
6960         * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6961         (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6962         * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6963         block, change it to LONGEST.  Use TYPE_FIELD_ENUMVAL for
6964         TYPE_CODE_ENUM.
6965         * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6966         * dwarf2read.c (process_enumeration_scope): Likewise.
6967         * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6968         field.bitpos.
6969         (class StructMainTypePrettyPrinter): Support also
6970         FIELD_LOC_KIND_ENUMVAL.
6971         * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6972         TYPE_CODE_ENUM.
6973         (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6974         (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6975         * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6976         (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment.  New
6977         field enumval.
6978         (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6979         accommodate enumval.
6980         (struct call_site): Adjust loc_kind to accommodate enumval.
6981         (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6982         (TYPE_FIELD_ENUMVAL): New macros.
6983         * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6984         * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6985         TYPE_CODE_ENUM.
6986         * p-typeprint.c (pascal_type_print_base): Likewise.
6987         * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6988         enumval.
6989         * python/lib/gdb/types.py (make_enum_dict): Likewise.
6990         * python/py-type.c (convert_field): New variable addrstring.  Use
6991         TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6992         (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6993         * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6994         * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6995         TYPE_CODE_ENUM.
6996         * valprint.c (generic_val_print): Likewise.
6997
6998 2012-04-17  Doug Evans  <dje@google.com>
6999
7000         * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7001
7002         * dwarf2read.c: Whitespace fixes.
7003         (lookup_signatured_type): Tweak comment.
7004         (get_die_type_at_offset): Fix comment.
7005
7006 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
7007
7008         * xcoffread.c (xcoff_secnum_to_sections): New function.
7009         (secnum_to_section, secnum_to_bfd_section): Reimplement
7010         using xcoff_secnum_to_sections.  Rename "secnum" parameter
7011         into "n_scnum".
7012         (RECORD_MINIMAL_SYMBOL): Delete.
7013         (record_minimal_symbol): New function.
7014         (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7015         by call to record_minimal_symbol and set misc_func_recorded
7016         to 1.  Set last_csect_sec to the XCOFF section index instead
7017         of GDB's section_offset index.  Update calls to
7018         prim_record_minimal_symbol_and_info to pass the BFD section
7019         as well.
7020
7021 2012-04-17  Joel Brobecker  <brobecker@adacore.com>
7022
7023         * xcoffread.c (read_xcoff_symtab): Delete variables
7024         last_csect_val and last_csect_sec and associated code.
7025
7026 2012-04-17  Doug Evans  <dje@google.com>
7027
7028         * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7029         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7030         * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7031         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7032
7033         * cleanups.h: New file.
7034         * cleanups.c: New file.
7035         * Makefile.in (SFILES): Add cleanups.c.
7036         (HFILES_NO_SRCDIR): Add cleanups.h.
7037         (COMMON_OBS): Add cleanups.o.
7038         * defs.h (struct cleanup): Moved to cleanups.h.
7039         (do_cleanups,do_final_cleanups): Ditto.
7040         (discard_cleanups,discard_final_cleanups): Ditto
7041         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7042         (save_cleanups,save_final_cleanups): Ditto.
7043         (restore_cleanups,restore_final_cleanups): Ditto.
7044         (null_cleanup): Ditto.
7045         (make_my_cleanup,make_my_cleanup2): Ditto.
7046         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7047         * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7048         (do_cleanups,do_final_cleanups): Ditto.
7049         (discard_cleanups,discard_final_cleanups): Ditto
7050         (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7051         (save_cleanups,save_final_cleanups): Ditto.
7052         (restore_cleanups,restore_final_cleanups): Ditto.
7053         (null_cleanup): Ditto.
7054         (make_my_cleanup,make_my_cleanup2): Ditto.
7055         (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7056
7057         * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7058         make_my_cleanup.
7059         (make_cleanup_dyn_string_delete): Ditto.
7060         (make_cleanup_ui_file_delete): Ditto.
7061         (make_cleanup_ui_out_redirect_pop): Ditto.
7062         (make_cleanup_free_section_addr_info): Ditto.
7063         (make_cleanup_restore_integer): Ditto.
7064         (make_cleanup_unpush_target): Ditto.
7065         (make_cleanup_value_free_to_mark): Ditto.
7066         (make_cleanup_value_free): Ditto.
7067         (make_cleanup_free_so): Ditto.
7068
7069 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7070
7071         New option "set debug auto-load".
7072         * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7073         * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7074         (auto_load_safe_path_vec_update)
7075         (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7076         if DEBUG_AUTO_LOAD.
7077         (file_is_auto_load_safe): New parameters debug_fmt and ....
7078         Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7079         (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7080         caller by explanatory string.
7081         (_initialize_auto_load): Register "set debug auto-load".
7082         * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7083         and ....
7084         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7085         (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7086         by explanatory string.
7087         * main.c (captured_main): Likewise.
7088         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7089         (source_section_scripts): Likewise.
7090
7091 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7092
7093         New option "set auto-load safe-path".
7094         * NEWS: New commands "set auto-load safe-path"
7095         and "show auto-load safe-path".
7096         * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7097         (auto_load_safe_path, auto_load_safe_path_vec)
7098         (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7099         (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7100         (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7101         (source_gdb_script_for_objfile): New variable is_safe.  Call
7102         file_is_auto_load_safe.  Return if it is not.
7103         (struct loaded_script): New field loaded.
7104         (maybe_add_script): Add parameter loaded.  Initialize SLOT with it.
7105         (print_script): Use LOADED indicator instead of FULL_PATH.  Change
7106         output "Missing" to "No".
7107         (_initialize_auto_load): New variable cmd.  Initialize
7108         auto_load_safe_path.  Register "set auto-load safe-path",
7109         "show auto-load safe-path" and "add-auto-load-safe-path".
7110         * auto-load.h (maybe_add_script): Add parameter loaded.
7111         (file_is_auto_load_safe): New declaration.
7112         * config.in: Regenerate.
7113         * configure: Regenerate.
7114         * configure.ac: New parameters --with-auto-load-safe-path
7115         and --without-auto-load-safe-path.
7116         * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7117         (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7118         * main.c (captured_main): Check file_is_auto_load_safe for
7119         LOCAL_GDBINIT.
7120         * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7121         variable is_safe.  Call file_is_auto_load_safe.  Return if it is not.
7122         (source_section_scripts): Call file_is_auto_load_safe.  Return if it is
7123         not.
7124
7125 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7126
7127         auto-load: Implementation.
7128         * NEWS: New descriptions for "info auto-load",
7129         "info auto-load gdb-scripts", "info auto-load python-scripts",
7130         "info auto-load local-gdbinit" and "info auto-load libthread-db".
7131         Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7132         and "show auto-load-scripts".  New description for "set auto-load",
7133         "show auto-load", "set auto-load gdb-scripts",
7134         "show auto-load gdb-scripts", "set auto-load python-scripts",
7135         "show auto-load python-scripts", "set auto-load local-gdbinit",
7136         "show auto-load local-gdbinit", "set auto-load libthread-db" and
7137         "show auto-load libthread-db".
7138         * auto-load.c: Remove include python/python-internal.h.  Add includes
7139         exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7140         cli/cli-setshow.h.
7141         (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7142         (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7143         (gdbpy_global_auto_load): Rename to ...
7144         (global_auto_load): ... here.
7145         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7146         (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7147         (script_language_gdb, source_gdb_script_for_objfile): New.
7148         (struct loaded_script): New field language.
7149         (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7150         LANGUAGE.
7151         (maybe_add_script): Add parameter language.  Drop redundant
7152         entry.full_path initialization.  Initialize entry.language and
7153         (*slot)->language.
7154         (auto_load_objfile_script): Change parameter suffix to language.
7155         Remove the call of maybe_add_script.
7156         Call language->source_script_for_objfile.
7157         (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7158         New.
7159         (collect_matching_scripts): Adjust it for
7160         struct collect_matching_scripts_data.
7161         (auto_load_info_scripts_pattern_nl): New variable.
7162         (info_auto_load_scripts): Rename to ...
7163         (auto_load_info_scripts): ... here, add parameter language.  Adjust it
7164         for struct collect_matching_scripts_data.
7165         (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7166         (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7167         (auto_load_show_cmdlist_get, info_auto_load_cmd)
7168         (auto_load_info_cmdlist_get): New.
7169         (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7170         python/py-auto-load.c.  New installment for "set auto-load gdb-scripts",
7171         "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7172         "info auto-load local-gdbinit".
7173         * auto-load.h (struct script_language): New.
7174         (gdbpy_global_auto_load): Rename to ...
7175         (global_auto_load): ... here.
7176         (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7177         (auto_load_local_gdbinit_loaded): New declarations.
7178         (maybe_add_script): New parameter language.
7179         (auto_load_objfile_script): Change parameter suffix to language.
7180         (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7181         (auto_load_info_scripts, auto_load_set_cmdlist_get)
7182         (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7183         declarations.
7184         * linux-thread-db.c: Include auto-load.h and ctype.h.
7185         (auto_load_thread_db, show_auto_load_thread_db): New.
7186         (struct thread_db_info): New field filename.
7187         (delete_thread_db_info): Call xfree for FILENAME.
7188         (try_thread_db_load): Initialize FILENAME.
7189         (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7190         if !AUTO_LOAD_THREAD_DB.
7191         (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7192         (_initialize_thread_db): Install auto_load_thread_db
7193         as "set auto-load libthread-db" and install info_auto_load_libthread_db
7194         as "info auto-load libthread-db".
7195         * main.c (captured_main): Rename gdbpy_global_auto_load to
7196         global_auto_load.  Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7197         AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7198         (print_gdb_help): Extend the help for 'local init file'.
7199         * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7200         (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7201         (auto_load_scripts): Rename to ...
7202         (auto_load_python_scripts): ... here, update the comment.
7203         (gdbpy_load_auto_script_for_objfile): New declaration.
7204         (show_auto_load_python_scripts, script_language_python)
7205         (gdbpy_load_auto_script_for_objfile): New.
7206         (source_section_scripts): Refactor the code.
7207         (load_auto_scripts_for_objfile): Rename to ...
7208         (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7209         auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7210         (info_auto_load_python_scripts): New.
7211         (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7212         Rename "set auto-load-scripts" to "set auto-load python-scripts".
7213         Register "set auto-load-scripts" as its deprecated alias.  Register
7214         "info auto-load python-scripts".  Register "info auto-load-scripts" as
7215         its deprecated alias.
7216         (load_auto_scripts_for_objfile): Rename to ...
7217         (gdbpy_load_auto_scripts_for_objfile): ... here.
7218         * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7219         (gdbpy_load_auto_scripts_for_objfile): ... here.
7220
7221 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7222
7223         auto-load: Move files.
7224         * Makefile.in (SFILES): Add auto-load.c.
7225         (HFILES_NO_SRCDIR): Add auto-load.h.
7226         (COMMON_OBS): Add auto-load.o.
7227         (distclean): Change .gdbinit for gdb-gdb.gdb.
7228         * auto-load.c: New file, with parts from python/py-auto-load.c.
7229         * auto-load.h: New file, with parts from python/python.h.
7230         * configure: Regenerate.
7231         * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7232         * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7233         * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7234         * main.c: Include auto-load.h.
7235         * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7236         command.h, observer.h and progspace.h to auto-load.c.  Add include
7237         auto-load.h.
7238         (gdbpy_global_auto_load, struct auto_load_pspace_info)
7239         (struct loaded_script, auto_load_pspace_data)
7240         (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7241         (hash_loaded_script_entry, eq_loaded_script_entry)
7242         (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7243         (maybe_add_script): Move to auto-load.c.
7244         (source_section_scripts): Change maybe_add_script parameters passing,
7245         use script_not_found_warning_print.
7246         (clear_section_scripts, auto_load_objfile_script)
7247         (auto_load_new_objfile, loaded_script_ptr)
7248         (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7249         (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7250         (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7251         auto_load_new_objfile and info_auto_load_scripts initizations to
7252         auto-load.c.
7253         * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7254
7255 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7256
7257         Code cleanup.
7258         * charset.c (find_charset_names): Remove variables ix and elt.
7259         Use free_char_ptr_vec.
7260         * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7261         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
7262         debugdir_end.  New variable debugdir_len.
7263         * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7264         (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7265         declarations.
7266         * progspace.c (clear_program_space_solib_cache): Remove variables ix
7267         and elt.  Use free_char_ptr_vec.
7268         * source.c (add_path): Remove variables argv, arg and argv_index.
7269         New variables dir_vec, back_to, ix and name.
7270         Use dirnames_to_char_ptr_vec_append.  Use freeargv instead of
7271         make_cleanup_freeargv.  Remove variable separator.  Simplify the code
7272         no longer expecting DIRNAME_SEPARATOR.
7273         (openp): Remove variable p, p1 and len.  New variables dir_vec,
7274         back_to, ix and dir.  Use dirnames_to_char_ptr_vec.  Simplify the code
7275         no longer expecting DIRNAME_SEPARATOR.
7276         * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7277         back_to and ix.  Use dirnames_to_char_ptr_vec.  Remove variable
7278         debugdir_end.
7279         * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7280         (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7281         (dirnames_to_char_ptr_vec): New functions.
7282
7283 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7284
7285         Code cleanup.
7286         * source.c (add_path): Remove always true conditional 'p == 0' and
7287         unindent its code block.
7288
7289 2012-04-17  Pedro Alves  <palves@redhat.com>
7290
7291         * gdbtypes.h (FIELD_BITPOS): Rename to ...
7292         (FIELD_BITPOS_LVAL): ... this.
7293         (FIELD_BITPOS): New.
7294         (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7295         * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7296         * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7297         SET_FIELD_BITPOS.
7298         * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7299         SET_FIELD_BITPOS.
7300         * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7301         (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7302         * target-descriptions.c (tdesc_gdb_type): Adjust to use
7303         SET_FIELD_BITPOS.
7304
7305 2012-04-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
7306
7307         Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7308         * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7309         TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7310         * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7311         * jv-lang.c (java_link_class_type): Likewise, once.
7312         * stabsread.c (read_enum_type): Likewise.
7313
7314 2012-04-16  Yao Qi  <yao@codesourcery.com>
7315
7316         * common/agent.c (agent_run_command): Add one more parameter `len'.
7317         Update callers.
7318         * common/agent.h: Update declaration.
7319         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7320         Update.
7321         (linux_child_static_tracepoint_markers_by_strid): Ditto.
7322
7323 2012-04-14  Anton Gorenkov <xgsa@yandex.ru>
7324
7325         PR mi/13393
7326         * value.c (value_actual_type): New function.
7327         * value.h (value_actual_type): New declaration.
7328         * varobj.c (update_type_if_necessary): New function.
7329         (varobj_create): Call value_actual_type instead of
7330         value_type.
7331         (install_dynamic_child): distinct changed and type changed MI variable
7332         objects.
7333         (update_dynamic_varobj_children): Updated for install_dynamic_child
7334         change.  All callers updated.
7335         (varobj_update): Support for MI variable object type change if
7336         the value changed and RTTI is used to determine the type.
7337         (create_child_with_value): Call value_actual_type instead of
7338         value_type.
7339         (adjust_value_for_child_access): Extended with a new parameter which
7340         specify whether the given value should be casted to enclosing type.
7341         All callers updated.
7342
7343 2012-04-14  Yao Qi  <yao@codesourcery.com>
7344
7345         Import gnulib module inttypes from git
7346         (250b80067c1e1d8faa0c42fb572f721975b929c5)
7347         * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7348         (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7349         gnulib/m4/inttypes-pri.m4
7350         * aclocal.m4, config.in, configure: Regenerated.
7351         * gnulib/Makefile.am: Update.
7352         * gnulib/Makefile.in: Update.
7353         * gnulib/m4/gnulib-cache.m4: Update.
7354         * gnulib/m4/gnulib-comp.m4: Update.
7355         * gnulib/inttypes.in.h: New.
7356         * gnulib/m4/inttypes-pri.m4: New.
7357         * gnulib/m4/inttypes.m4: New.
7358
7359 2012-04-13  Luis Machado  <lgustavo@codesourcery.com>
7360
7361         * infrun.c (resume): Update PC address to the real PC after
7362         preparing to do displaced stepping.
7363
7364 2012-04-12  Doug Evans  <dje@google.com>
7365
7366         * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7367         All callers updated.
7368
7369 2012-04-12  Mark Kettenis  <kettenis@gnu.org>
7370
7371         * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7372
7373 2012-04-12  Doug Evans  <dje@google.com>
7374
7375         * dwarf2read.c (create_all_type_units): Renamed from
7376         create_debug_types_hash_table.  All callers updated.
7377
7378         * dwarf2read.c (create_signatured_type_table_from_index): Rename
7379         local type_sig to sig_type, type_offset to type_offset_in_tu.
7380         (hash_signatured_type): Renamed from hash_type_signature,
7381         all callers updated.
7382         (eq_signatured_type): Renamed from eq_type_signature,
7383         all callers updated.
7384         (create_debug_types_hash_table): Rename local type_sig to sig_type.
7385         (process_enumeration_scope): Ditto.
7386         (lookup_signatured_type_at_offset): Ditto.
7387         (load_full_type_unit, read_signatured_type): Ditto.
7388
7389 2012-04-12  Yao Qi  <yao@codesourcery.com>
7390
7391         * remote.c (async_remote_interrupt): Correct function name in
7392         debug message.
7393         (async_remote_interrupt_twice): Ditto.
7394
7395 2012-04-11  Yuanhui Zhang  <asmwarrior@gmail.com>
7396
7397         * source.c (find_and_open_source): Consistently pass resulting
7398         full path through xfullpath.
7399
7400 2012-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
7401
7402         Provide more specific displaced-stepping memory error message.
7403         * infrun.c (displaced_step_prepare): New variable status.  Call
7404         target_read_memory instead of read_memory, provide more specific
7405         error message.
7406
7407 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7408
7409         PR gdb/13901
7410         * darwin-nat.c (darwin_execvp): Revert previous patch.
7411
7412 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7413
7414         PR gdb/13901
7415         * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7416         in case of change.
7417
7418 2012-04-11  Tristan Gingold  <gingold@adacore.com>
7419
7420         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7421         warning.
7422
7423 2012-04-11  Siva Chandra Reddy  <sivachandra@google.com>
7424
7425         New command 'explore' which helps explore values and types in
7426         scope.
7427         * NEWS: Add an entry about the new 'explore' command.
7428         * data-directory/Makefile.in: Add gdb/command/explore.py
7429         * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7430         command using the GDB Python API.
7431
7432 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
7433
7434         * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7435         extension in jump target calculation.
7436
7437 2012-04-10  Maciej W. Rozycki  <macro@codesourcery.com>
7438
7439         * mips-tdep.c (mips32_next_pc): Handle JALX.
7440
7441 2012-04-10  Yao Qi  <yao@codesourcery.com>
7442
7443         * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7444
7445 2012-04-10  Yao Qi  <yao@codesourcery.com>
7446
7447         * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7448         and gnulib/m4/gnulib-tool.m4.
7449
7450 2012-04-10  Doug Evans  <dje@google.com>
7451
7452         * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7453         (load_partial_dies): Clarify comment.
7454         (find_partial_die): Support rereading type units.
7455         Clarify CU handling, if we know offset is in CU, don't search for the
7456         containing CU.  Add comment regarding memory waste.
7457
7458 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7459
7460         * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7461         i386/x32-avx and i386/x32-avx-linux.
7462         (i386/x32-expedite): New.
7463         (i386/x32-linux-expedite): Likewise.
7464         (i386/x32-avx-expedite): Likewise.
7465         (i386/x32-avx-linux-expedite): Likewise.
7466         ($(outdir)/i386/x32.dat): Likewise.
7467         ($(outdir)/i386/x32-linux.dat): Likewise.
7468         ($(outdir)/i386/x32-avx.dat): Likewise.
7469         ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7470
7471         * features/i386/x32-avx-linux.xml: New file.
7472         * features/i386/x32-avx.xml: Likewise.
7473         * features/i386/x32-core.xml: Likewise.
7474         * features/i386/x32-linux.xml: Likewise.
7475         * features/i386/x32.xml: Likewise.
7476
7477         * features/i386/x32-avx-linux.c: New.  Generated.
7478         * features/i386/x32-avx.c: Likewise.
7479         * features/i386/x32-linux.c: Likewise.
7480         * features/i386/x32.c: Likewise.
7481         * regformats/i386/x32-avx-linux.dat: Likewise.
7482         * regformats/i386/x32-avx.dat: Likewise.
7483         * regformats/i386/x32-linux.dat: Likewise.
7484         * regformats/i386/x32.dat: Likewise.
7485
7486 2012-04-10  Tristan Gingold  <gingold@adacore.com>
7487
7488         * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7489         code to kill the inferior.
7490
7491 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
7492
7493         * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7494         defines.
7495         * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7496         defines.
7497         * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7498         (yyvsp): New defines.
7499         * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7500         defines.
7501         * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7502         defines.
7503         * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7504         defines.
7505         * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7506         defines.
7507         * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7508         defines.
7509
7510 2012-04-09  Mark Kettenis  <kettenis@gnu.org>
7511
7512         * sparc64-tdep.c (sparc64_store_arguments)
7513         (sparc64_store_arguments): Fix coding style.
7514
7515 2012-04-07  Mark Kettenis  <kettenis@gnu.org>
7516
7517         * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7518         complex floats, adjust some related comments and tighten a related
7519         assertion.
7520         (sparc64_extract_return_value): Handle complex floats.
7521
7522 2012-04-07  Doug Evans  <dje@google.com>
7523
7524         * dwarf2read.c (load_partial_dies): Change condition to assert.
7525
7526 2012-04-06  Doug Evans  <dje@google.com>
7527
7528         * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7529         "mov %rsp,%rbp".
7530
7531 2012-04-05  Kevin Buettner  <kevinb@redhat.com>
7532
7533         * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7534         fencepost error.
7535         (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7536         (v850_gdbarch_init): Set `num_regs' as appropriate for the
7537         architecture.
7538
7539 2012-04-05  Keith Seitz  <keiths@redhat.com>
7540
7541         * linespec.c (decode_compound): Remove.
7542         (enum offset_relative_sign): New enum.
7543         (struct line_offset): New struct.
7544         (struct linespec): New struct.
7545         (struct linespec_state): Move file_symtabs,
7546         user_filename, and user_function into struct linespec.
7547         Make result an anonymous struct holding vectors of
7548         symbolp and minsym_and_objfile_d.
7549         Add language member.
7550         (enum ls_token_type): New enum.
7551         (linespec_keywords): New array.
7552         (struct ls_token): New struct.
7553         (struct ls_parser): New struct.
7554         (linespec_lexer_lex_number): New function.
7555         (linespec_lexer_lex_keyword): New function.
7556         (is_ada_operator): New function.
7557         (skip_quote_char): New function.
7558         (copy_token_string): New function.
7559         (is_closing_quote_enclosed): New function.
7560         (find_parameter_list_end): New function.
7561         (linespec_lexer_lex_string): New function.
7562         (linespec_lexer_lex_one): New function.
7563         (linespec_lexer_consume_token): New function.
7564         (linespec_lexer_peek_token): New function.
7565         (cplusplus_error): Remove unused function.
7566         (find_methods): Update comment.
7567         (find_toplevel_char): Return const.
7568         (is_objc_method_format): Remove unused function.
7569         (find_toplevel_string): New function.
7570         (is_linespec_boundary): Remove.
7571         (symbol_not_found_error): New function.
7572         (find_method_overload_end): Remove function.
7573         (unexpected_linespec_error): New function.
7574         (keep_name_info): Remove.
7575         (linespec_parse_line_offset): New function.
7576         (linespec_parse_basic): New function.
7577         (canonicalize_linespec): New function.
7578         (decode_line_internal): Remove.
7579         (create_sals_line_offset): New function adapted from
7580         decode_all_digits.
7581         (convert_linespec_to_sals): New function.
7582         (parse_linespec): New function.
7583         (linespec_parser_new): New function.
7584         (linespec_state_destructor): Change parameter type to
7585         struct linespec_state *.
7586         Add language parameter.
7587         Remove freeing of moved members.
7588         (linespec_parser_delete): New function.
7589         (decode_line_full): Use parse_linespec and linespec_parser_new.
7590         (decode_line_1): Likewise.
7591         (decode_indirect): Rename to ...
7592         (linespec_expression_to_pc): ... this and rewrite
7593         to simply find CORE_ADDR, storing this result for later
7594         conversion to SALs.
7595         (locate_first_half): Remove.
7596         (deocde_objc): Add parameter LS.
7597         Initialize new struct collect_info members.
7598         Handle minimal symbols, too.
7599         (decode_compound): Delete.
7600         (lookup_prefix_sym): Rewrite.
7601         (compare_msymbols): New function.
7602         (find_method): Rewrite.
7603         Do not call cplusplus_error.
7604         (symtabs_from_filename): Rewrite.
7605         (collect_function_symbols): Delete.
7606         (find_function_symbols): Rewrite without ARGPTR-style
7607         processing.
7608         (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7609         (decode_dollar): Adapted and renamed to ...
7610         (linespec_parse_variable): ... this.
7611         (find_linespec_symbols): New function.
7612         (decode_label): Adapted and renamed to ...
7613         (find_label_symbols): ... this.
7614         (decode_digits_list_mode): Add and use LS argument.
7615         (decode_digits_ordinary): Likewise.
7616         (collect_symbols): Do not collect SALs, just symbols and msymbols.
7617         If in list mode, allow any symbol class.  Otherwise, only
7618         permit LOC_BLOCK symbols.
7619         (minsym_found): Update comments.
7620         (search_minsyms_for_name): Do not convert the matching symbol
7621         into a SAL.  Simply push the symbol and objfile into the
7622         result vector.
7623         (decode_variable): Delete. Contents adapted into
7624         find_linespec_symbols.
7625
7626         * cp-support.c (SKIP_SPACE): Remove.
7627         (operator_tokens): Remove unused global.
7628         (cp_validate_operator): Remove.
7629         * cp-support.h (cp_validate_operator): Remove declaration.
7630
7631 2012-04-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7632
7633         * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7634         for TYPE_VPTR_FIELDNO.
7635         * valprint.c (valprint_check_validity): Make it global, move the
7636         function comment ...
7637         * value.h (valprint_check_validity): ... to this new declaration.
7638
7639 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7640
7641         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7642         the STATE32 api for i386 state.
7643         (i386_darwin_store_inferior_registers): Likewise.
7644
7645 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7646
7647         * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7648         SS offset.
7649         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7650         format_string.
7651
7652 2012-04-02  Tristan Gingold  <gingold@adacore.com>
7653
7654         PR gdb/13901
7655         * darwin-nat.c (darwin_execvp): Set binary preference.
7656
7657 2012-04-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7658
7659         * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7660
7661 2012-03-30  Tom Tromey  <tromey@redhat.com>
7662
7663         * python/python.c (gdbpy_decode_line): Move cleanup creation out
7664         of TRY_CATCH.  Fix error handling.
7665         * python/py-value.c (convert_value_from_python): Move 'old'
7666         declaration to innermost scope.
7667
7668 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7669             Andrey Smirnov  <andrew.smirnov@gmail.com>
7670
7671         -Wshadow warning fix.
7672         * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7673         "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7674         Adjust code accordingly.
7675
7676 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7677
7678         * ada-lang.c (symbol_completion_add): Rename parameter
7679         "encoded" into "encoded_p".  Ajust code and documentation
7680         accordingly.
7681
7682 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7683             Andrey Smirnov  <andrew.smirnov@gmail.com>
7684
7685         -Wshadow warning fix.
7686         * ada-lang.c (symbol_completion_add): Rename parameter
7687         "wild_match" into wild_match_p.  Update code and documentation
7688         accordingly.
7689
7690 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7691
7692         * ada-lang.c (symbol_completion_match): Rename parameter
7693         "encoded" into "encoded_p".  Ajust code and documentation
7694         accordingly.
7695
7696 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7697             Andrey Smirnov  <andrew.smirnov@gmail.com>
7698
7699         -Wshadow warning fix.
7700         * ada-lang.c (symbol_completion_match): Rename parameter
7701         "wild_match" into "wild_match_p".  Adjust code and function
7702         documentation accordingly.
7703
7704 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7705             Andrey Smirnov  <andrew.smirnov@gmail.com>
7706
7707         -Wshadow warning fix.
7708         * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7709         "symbol_info" into "info".  Adjust code accordingly.
7710         (ada_lookup_symbol): Likewise.
7711
7712 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7713
7714         * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7715         of this function's documentation.
7716
7717 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7718             Andrey Smirnov  <andrew.smirnov@gmail.com>
7719
7720         -Wshadow warning fix.
7721         * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7722         variable into "wild_match_p".  Adjust code accordingly.
7723
7724 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7725             Andrey Smirnov  <andrew.smirnov@gmail.com>
7726
7727         -Wshadow warning fix.
7728         * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7729         parameter into "wild_match_p".  Adjust code accordingly.
7730         Document this parameter in the function description.
7731
7732 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7733             Andrey Smirnov  <andrew.smirnov@gmail.com>
7734
7735         -Wshadow warning fix.
7736         * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7737         "wild_match" parameter to "wild_match_p" (-Wshadow).
7738
7739 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7740
7741         * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7742         in function documentation.
7743
7744 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7745             Andrey Smirnov  <andrew.smirnov@gmail.com>
7746
7747         -Wshadow warning fix.
7748         * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7749         variable into wild_match_p.  Adjust code accordingly.
7750
7751 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7752             Andrey Smirnov  <andrew.smirnov@gmail.com>
7753
7754         * ada-valprint.c (ada_val_print_1): Move the code handling
7755         TYPE_CODE_ENUM inside its own lexical block.  Declare
7756         variables len and val there, instead of in the function's
7757         top level block.  Avoid declaring deref_val again in a way
7758         that shadows another variable of the same name declared
7759         in one of the up-level blocks.  Just re-use the up-level
7760         variable instead.
7761
7762 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7763
7764         * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7765         Replace block_found argument by symbol_info.  Adjust
7766         implementation accordingly.  Add function documentation.
7767         (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7768         Fix documentation.
7769         * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7770         * ada-exp.y (write_object_renaming): Adjust to new
7771         ada_lookup_encoded_symbol API.
7772
7773 2012-03-29  Joel Brobecker  <brobecker@adacore.com>
7774
7775         * ada-lang.h (struct ada_symbol_info): Reformat.  Improve
7776         documentation.
7777
7778 2012-03-28  Rathish C  <rathish.c@kpitcummins.com>
7779
7780         * v850-tdep.c: Add the enum values for mpu and fpu registers.
7781         (v850_register_name): Add the mpu and fpu register names.
7782         (v850e_register_name): Add the mpu and fpu register names.
7783         (v850e2_register_name): New function.
7784         (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
7785         bfd_mach_v850e2v3.
7786
7787 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7788
7789         * NEWS: Add entry for Ada varobj support.
7790
7791 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7792
7793         * varobj.c (default_value_is_changeable_p): New function,
7794         extracted from varobj_value_is_changeable_p.  Add declaration.
7795         (ada_value_is_changeable_p): New function, extracted from
7796         varobj_value_is_changeable_p.  Add declaration.
7797         (struct language_specific): New field "value_is_changeable_p".
7798         (languages): Add entries for new field.
7799         (varobj_create): Set language before calling install_new_value.
7800         (varobj_value_is_changeable_p): Reimplement to call the varobj's
7801         "value_is_changeable_p" language callback.
7802
7803 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7804
7805         * ada-varobj.h, ada-varobj.c: New files.
7806         * Makefile.in (SFILES): Add ada-varobj.c.
7807         (HFILES_NO_SRCDIR): Add ada-varobj.h.
7808         (COMMON_OBS): Add ada-varobj.o.
7809
7810 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7811
7812         * varobj.c (ada_value_has_mutated): Add declaration.  New function.
7813         (struct language_specific): New field "value_has_mutated".
7814         (languages): Set field "value_has_mutated" in each entry of array.
7815         (varobj_value_has_mutated): New function.
7816         (varobj_udpdate): Add handling of type mutation.
7817         (value_of_root): Add handling of type mutation.
7818         (ada_value_has_mutated): New function.
7819
7820 2012-03-28  Pedro Alves  <palves@redhat.com>
7821
7822         * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7823         Always supply $fr0 as 0.0 and $fr1 as 1.0.
7824
7825 2012-03-28  Tom Tromey  <tromey@redhat.com>
7826
7827         * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7828         explicitly free 'buffer' on exit paths.  Decref 'membuf_object'
7829         before returning.
7830
7831 2012-03-28  Tom Tromey  <tromey@redhat.com>
7832
7833         * .dir-locals.el: New file.
7834
7835 2012-03-28  Pedro Alves  <palves@redhat.com>
7836
7837         * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7838
7839 2012-03-28  Joel Brobecker  <brobecker@adacore.com>
7840
7841         * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7842         handling for r0.
7843
7844 2012-03-27  Pedro Alves  <palves@redhat.com>
7845
7846         Eliminate struct ui_stream.
7847
7848         * ui-out.h (struct ui_stream): Delete.
7849         (ui_out_field_stream): Adjust prototype.
7850         (ui_out_stream_new, ui_out_stream_delete)
7851         (make_cleanup_ui_out_stream_delete): Delete declarations.
7852         * ui-out.c (ui_out_field_stream): Change prototype to take a
7853         ui_file instead of a ui_stream.  Adjust.
7854         (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7855         (make_cleanup_ui_out_stream_delete): Delete.
7856         * breakpoint.c (print_breakpoint_location)
7857         (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7858         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7859         * disasm.c (dump_insns): Ditto.
7860         (do_mixed_source_and_assembly, do_assembly_only): Adjust
7861         prototype.
7862         (gdb_disassembly): Use ui_file/mem_fileopen instead of
7863         ui_stream/ui_out_stream_new.
7864         * infcmd.c (print_return_value): Ditto.
7865         * osdata.c (info_osdata_command): Don't allocate a local
7866         ui_stream.
7867         * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7868         ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7869         * tracepoint.c (print_one_static_tracepoint_marker): Don't
7870         allocate a local ui_stream.
7871         * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7872         instead of ui_stream/ui_out_stream_new.
7873         (list_args_or_locals): Don't allocate a local ui_stream.
7874         * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7875         (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7876         ui_stream/ui_out_stream_new.
7877         * cli/cli-setshow.c (do_setshow_command): Ditto.
7878
7879 2012-03-27  Oza Pawandeep  <oza.pawandeep@gmail.com>
7880
7881         * arm-linux-tdep.c (arm_linux_init_abi): Call
7882         set_gdbarch_process_record.  Initialize `arm_swi_record' field.
7883         * arm-tdep.c (arm_process_record): New function.
7884         (deallocate_reg_mem): New function.
7885         (decode_insn): New function.
7886         (thumb_record_branch): New function.
7887         (thumb_record_ldm_stm_swi(): New function.
7888         (thumb_record_misc): New function.
7889         (thumb_record_ld_st_stack): New function.
7890         (thumb_record_ld_st_imm_offset): New function.
7891         (thumb_record_ld_st_reg_offset(): New function.
7892         (thumb_record_add_sub_cmp_mov): New function.
7893         (thumb_record_shift_add_sub): New function.
7894         (arm_record_coproc_data_proc): New function.
7895         (arm_record_coproc): New function.
7896         (arm_record_b_bl): New function.
7897         (arm_record_ld_st_multiple): New function.
7898         (arm_record_ld_st_reg_offset): New function.
7899         (arm_record_ld_st_imm_offset): New function.
7900         (arm_record_data_proc_imm): New function.
7901         (arm_record_data_proc_misc_ld_str): New function.
7902         (arm_record_extension_space): New function.
7903         (arm_record_strx): New function.
7904         (sbo_sbz): New function.
7905         (struct insn_decode_record): New structure for arm insn record.
7906         (REG_ALLOC): New macro for reg allocations.
7907         (MEM_ALLOC): New macro for memory allocations.
7908         * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
7909
7910 2012-03-27  Andreas Schwab  <schwab@linux-m68k.org>
7911
7912         * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7913         (store_register): Likewise.
7914
7915 2012-03-26  Oza Pawandeep  <oza.pawandeep@gmail.com>
7916
7917         * MAINTAINERS (Write After Approval): Add myself to the list.
7918
7919 2012-03-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
7920
7921         * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7922         Describe also the option "auto".
7923
7924 2012-03-22  Richard Henderson  <rth@redhat.com>
7925
7926         * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7927         * sparc-nat.c (sparc_xfer_wcookie): Make static.
7928
7929 2012-03-22  Richard Henderson  <rth@redhat.com>
7930
7931         * jit.c (jit_read_code_entry): Compute alignment and offset of
7932         int64_t member before computing entry_size.
7933
7934 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
7935
7936         Python scripting: Add new method Value.referenced_value to
7937         gdb.Value which can dereference pointer as well as reference
7938         values.
7939         * NEWS: Add entry under 'Python scripting' about the new method
7940         Value.referenced_value on gdb.Value objects.
7941         * python/py-value.c (valpy_referenced_value): New function
7942         defining a new method on gdb.Value objects which can dereference
7943         pointer and reference values.
7944
7945 2012-03-22  Siva Chandra Reddy  <sivachandra@google.com>
7946
7947         * MAINTAINERS (Write After Approval): Add myself to the list.
7948
7949 2012-03-21  Kevin Buettner  <kevinb@redhat.com>
7950
7951         * symtab.c (skip_prologue_sal): Change test to check for "main()"
7952         in addition to "main".
7953
7954 2012-03-21  Joel Brobecker  <brobecker@adacore.com>
7955
7956         * expression.h (op_name): Add declaration.
7957         * expprint.c (op_name): Remove declaration.  Make non-static.
7958         * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7959
7960 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
7961
7962         * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7963         of struct siginfo.
7964         * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7965         * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7966         * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7967         (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7968         (linux_nat_get_siginfo): Likewise.
7969         * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7970         (linux_nat_get_siginfo): Likewise.
7971         * linux-tdep.c (linux_get_siginfo_type): Likewise.
7972         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7973         * procfs.c (gdb_siginfo_t): Likewise.
7974
7975 2012-03-21  Mike Frysinger  <vapier@gentoo.org>
7976
7977         * .gitignore: Ignore more files.
7978
7979 2012-03-20  Pedro Alves  <palves@redhat.com>
7980
7981         * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7982         returns.
7983
7984 2012-03-20  Yao Qi  <yao@codesourcery.com>
7985
7986         * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7987         comment.
7988
7989 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7990
7991         Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7992         * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7993         (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7994         sect_offset.
7995         * dwarf2expr.h (cu_offset, sect_offset): New types.
7996         (struct dwarf_expr_context_funcs) <dwarf_call>
7997         (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7998         sect_offset.
7999         (struct dwarf_expr_context) <len>: Improve the comment.
8000         (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8001         cu_offset and sect_offset.
8002         * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8003         (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8004         (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8005         * dwarf2loc.h: Include dwarf2expr.h.
8006         (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8007         and sect_offset.
8008         * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8009         Improve the comment.
8010         (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8011         (struct signatured_type, struct line_header, struct partial_die_info)
8012         (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8013         (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8014         (get_die_type_at_offset, create_cus_from_index)
8015         (create_signatured_type_table_from_index, dw2_get_file_names)
8016         (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8017         (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8018         (create_debug_types_hash_table, process_psymtab_comp_unit)
8019         (load_partial_comp_unit, create_all_comp_units)
8020         (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8021         (load_full_comp_unit, dwarf2_physname, read_import_statement)
8022         (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8023         (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8024         (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8025         (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8026         (find_partial_die, read_attribute_value, lookup_die_type)
8027         (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8028         (is_ref_attr): New function comment.
8029         (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8030         Use cu_offset and sect_offset.
8031         (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8032         (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8033         (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8034         (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8035         (offset_and_type_hash, offset_and_type_eq, set_die_type)
8036         (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8037         (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8038         sect_offset.
8039
8040 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8041
8042         Code cleanup.
8043         * python/py-auto-load.c (source_section_scripts): New variable back_to.
8044         Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8045         with xfree.
8046         (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8047
8048 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8049
8050         * NEWS: Describe new options --init-command=FILE, -ix and
8051         --init-eval-command=COMMAND, -iex.
8052         * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8053         CMDARG_INIT_COMMAND.
8054         (captured_main): New enum items OPT_IX and OPT_IEX.  Add
8055         "init-command", "init-eval-command", "ix" and "iex" to the variable
8056         long_options.  Handle OPT_IX and OPT_IEX.  Process them from CMDARG_VEC.
8057         New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8058         (print_gdb_help): Describe --init-command=FILE, -ix and
8059         --init-eval-command=COMMAND, -iex.
8060
8061 2012-03-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
8062
8063         Code cleanup.
8064         * main.c (struct cmdarg): Move it here from main.  Add more comments.
8065         (cmdarg_s, VEC (cmdarg_s)): New.
8066         (main): Move struct cmdarg from here.  New variables cmdarg_vec and
8067         cmdarg_p.  Remove variables cmdsize and ncmd and their initialization.
8068         Install cleanup for cmdarg_vec.  Update filling for options 'x' and
8069         'X'.  Replace cmdarg processing by cmdarg_vec processing.  Remove xfree
8070         of CMDARG.
8071
8072 2012-03-19  Tom Tromey  <tromey@redhat.com>
8073
8074         * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8075
8076 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8077
8078         PR symtab/13777
8079         * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8080         GCC >=4.5.
8081
8082 2012-03-16  Chris January  <chris.january@allinea.com>
8083
8084         * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8085         of clear.
8086
8087 2012-03-16  Chris January  <chris.january@allinea.com>
8088
8089         * source.c (add_path): Use memmove instead of strcpy because the
8090         strings overlap.
8091
8092 2012-03-16  Joel Brobecker  <brobecker@adacore.com>
8093
8094         * value.h (set_value_parent): Add declaration.
8095         * value.c (set_value_parent): New function.
8096         (value_address): If VALUE->PARENT is not NULL, then use it as
8097         the base address instead of VALUE->LOCATION.address.
8098         * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8099         the same as OBJ's address.  Adjust V's offset accordingly.
8100         Set V's parent.
8101
8102 2012-03-16  Gary Benson  <gbenson@redhat.com>
8103
8104         PR breakpoints/10738
8105         * dwarf2read.c (use_deprecated_index_sections): New global.
8106         (struct partial_die_info): New member may_be_inlined.
8107         (read_partial_die): Set may_be_inlined where appropriate.
8108         (add_partial_subprogram): Add partial symbols for partial
8109         DIEs that may be inlined.
8110         (new_symbol_full): Add inlined subroutines to the current
8111         scope.
8112         (write_psymtabs_to_index): Bump version number.
8113         (dwarf2_read_index): Read only version 6 indices unless
8114         use_deprecated_index_sections is set.
8115         * linespec.c (symbol_and_data_callback): New structure.
8116         (iterate_inline_only): New function.
8117         (iterate_over_all_matching_symtabs): New argument
8118         "include_inline".  If nonzero, also call the callback for
8119         symbols representing inlined subroutines.
8120         (lookup_prefix_sym): Pass extra argument to the above.
8121         (find_function_symbols): Likewise.
8122         (add_matching_symbols_to_info): Likewise.
8123         * NEWS: Mention that GDB can now set breakpoints on inlined
8124         functions.
8125
8126 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
8127
8128         * p-typeprint.c (pascal_type_print_method_args):
8129         Fix display of parameter of methods.
8130
8131 2012-03-16  Pierre Muller  <muller@ics.u-strasbg.fr>
8132
8133         * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8134         Add missing prototype.
8135
8136 2012-03-16  Yao Qi  <yao@codesourcery.com>
8137             Jan Kratochvil  <jan.kratochvil@redhat.com>
8138
8139         Fix false compilation warning.
8140         * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8141
8142 2012-03-15  Jonathan Larmour  <jifl@eCosCentric.com>
8143             Pedro Alves  <pedro@codesourcery.com>
8144
8145         * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8146         (arm_register_g_packet_guesses): New function.
8147         (arm_gdbarch_init): Don't force a target description with
8148         registers when the executable is detected as M-profile.  Instead
8149         set gdbarch->tdep->is_m.  Register `g' packet guesses.
8150         (_initialize_arm_tdep): Initialize the new target description.
8151         * features/arm-with-m-fpa-layout.xml: New description.
8152         * features/arm-with-m-fpa-layout.c: New, generated.
8153
8154 2012-03-15  Joel Brobecker  <brobecker@adacore.com>
8155
8156         * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8157         Update function description.
8158         (insert_bp_location): Do not wipe bl->target_info out.
8159         * mem-break.c: #include "gdb_string.h".
8160         (default_memory_insert_breakpoint): Do not call target_read_memory
8161         with a pointer to the breakpoint's shadow_contents buffer.  Use
8162         a local buffer instead.
8163         * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8164
8165 2012-03-15  Tom Tromey  <tromey@redhat.com>
8166
8167         * NEWS: Mention "info vtbl", not "info vtable".
8168         * cp-support.c (info_vtbl_command): Fix comment.
8169         (_initialize_cp_support): Fix text.
8170
8171 2012-03-15  Tom Tromey  <tromey@redhat.com>
8172
8173         * cp-valprint.c (cp_print_value_fields): Use
8174         print_function_pointer_address for vtable slot.
8175
8176 2012-03-15  Tom Tromey  <tromey@redhat.com>
8177
8178         * gnu-v3-abi.c (struct value_and_voffset): New.
8179         (hash_value_and_voffset, eq_value_and_voffset)
8180         (compare_value_and_voffset, compute_vtable_size)
8181         (print_one_vtable, gnuv3_print_vtable): New functions.
8182         (init_gnuv3_ops): Initialize 'print_vtable' field.
8183         * cp-support.c (info_vtbl_command): New function.
8184         (_initialize_cp_support): Add "info vtbl".
8185         * cp-abi.h (cplus_print_vtable): Declare.
8186         (struct cp_abi_ops) <print_vtable>: New field.
8187         * cp-abi.c (cplus_print_vtable): New function.
8188         * NEWS: Update.
8189
8190 2012-03-15  Tom Tromey  <tromey@redhat.com>
8191
8192         * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8193         iterate_over_symbols.
8194
8195 2012-03-14  Doug Evans  <dje@google.com>
8196
8197         * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8198         DW_OP_GNU_parameter_ref.
8199
8200 2012-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
8201
8202         Fix double prompt of 'interpreter-exec mi'.
8203         * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8204         (mi_interpreter_resume): use it.
8205         (mi_execute_command_input_handler): New function.
8206         * mi/mi-main.c (mi_execute_command): Move prompt printing to
8207         mi_execute_command_input_handler.
8208
8209 2012-03-13  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
8210
8211         * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8212         prototype.
8213         (darwin_debug_port_info): Make static.
8214         * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8215         * machoread.c (_initialize_machoread): Add prototype.
8216         * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8217         (i386_darwin_set_control, i386_darwin_get_control)
8218         i386_darwin_dr_set_addr, i386_darwin_get_addr)
8219         i386_darwin_get_status, i386_darwin_get_control):
8220         Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8221
8222 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
8223
8224         * ax-gdb.c (gen_usual_unary): Remove special handling of
8225         enum and bool types.
8226
8227 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
8228
8229         * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8230
8231 2012-03-13  Joel Brobecker  <brobecker@adacore.com>
8232
8233         * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8234
8235 2012-03-13  Chris January  <chris.january@allinea.com>
8236
8237         * aix-thread.c (fill_sprs): Store the floating point registers
8238         at the correct offsets into vals.
8239
8240 2012-03-13  Doug Evans  <dje@google.com>
8241
8242         * NEWS: Mention symbol-reloading has been deleted.
8243         * symfile.c (symbol_reloading): Delete.
8244         (show_symbol_reloading): Delete.
8245         (_initialize_symfile): Delete set/show symbol-reloading.
8246
8247         * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8248         read_in_chain until we have successfully read it in.
8249         (load_full_comp_unit): Ditto.
8250         (read_signatured_type): Add comment.
8251
8252 2012-03-13  Chris January  <chris.january@allinea.com>
8253
8254         * stabsread.c (fix_common_block): Change type of valu argument
8255         to CORE_ADDR.
8256
8257 2012-03-13  Chris January  <chris.january@allinea.com>
8258
8259         * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8260         instruction.
8261
8262 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8263
8264         * common/linux-procfs.c (linux_proc_get_int): New, from
8265         linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8266         field.
8267         (linux_proc_get_tgid): Only call linux_proc_get_int.
8268         (linux_proc_get_tracerpid): New.
8269         (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8270         (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8271         linux_proc_pid_has_state.
8272         * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8273         * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8274         (linux_ptrace_attach_warnings): New.
8275         * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8276         New declaration.
8277         * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8278         (linux_nat_attach): New variables ex, buffer, message and message_s.
8279         Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8280
8281 2012-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
8282
8283         * Makefile.in (linux-ptrace.o): New.
8284         * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8285         from linux-nat.c.
8286         * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8287         * common/linux-ptrace.c: New file.
8288         * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8289         * config/arm/linux.mh: Likewise.
8290         * config/i386/linux.mh: Likewise.
8291         * config/i386/linux64.mh: Likewise.
8292         * config/ia64/linux.mh: Likewise.
8293         * config/m32r/linux.mh: Likewise.
8294         * config/m68k/linux.mh: Likewise.
8295         * config/mips/linux.mh: Likewise.
8296         * config/pa/linux.mh: Likewise.
8297         * config/powerpc/linux.mh: Likewise.
8298         * config/powerpc/ppc64-linux.mh: Likewise.
8299         * config/powerpc/spu-linux.mh: Likewise.
8300         * config/s390/s390.mh: Likewise.
8301         * config/sparc/linux.mh: Likewise.
8302         * config/sparc/linux64.mh: Likewise.
8303         * config/xtensa/linux.mh: Likewise.
8304         * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8305         common/linux-procfs.c.
8306         (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8307
8308 2012-03-13  Hui Zhu  <teawater@gmail.com>
8309             Pedro Alves  <palves@redhat.com>
8310
8311         * breakpoint.c (init_breakpoint_sal): New flags parameter.  Handle
8312         CREATE_BREAKPOINT_FLAGS_INSERTED.
8313         (create_breakpoint_sal, create_breakpoints_sal)
8314         (base_breakpoint_create_breakpoints_sal)
8315         (tracepoint_create_breakpoints_sal)
8316         (strace_marker_create_breakpoints_sal): New flags parameter.  Pass
8317         down.
8318         (break_command_1, handle_gnu_v3_exceptions, trace_command)
8319         (ftrace_command, strace_command): Adjust.
8320         (create_tracepoint_from_upload): Pass
8321         CREATE_BREAKPOINT_FLAGS_INSERTED.
8322         * breakpoint.h (enum breakpoint_create_flags): New.
8323         (create_breakpoint): New flags parameter.
8324         * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8325         * python/py-breakpoint.c (bppy_init): Adjust.
8326         * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8327         * spu-tdep.c (spu_catch_start): Adjust.
8328
8329 2012-03-13  Pedro Alves  <palves@redhat.com>
8330             Hui Zhu  <teawater@gmail.com>
8331             Yao Qi  <yao@codesourcery.com>
8332
8333         * remote.c (struct remote_state): New field `starting_up'.
8334         (remote_start_remote): Set and clear it.
8335         (remote_can_download_tracepoint): If starting up, return false.
8336
8337 2012-03-13  Yao Qi  <yao@codesourcery.com>
8338
8339         * inferior.h (struct inferior): Remove fields any_syscall_count,
8340         syscalls_counts and total_syscalls_count.  Move them to new
8341         struct catch_syscall_inferior_data in breakpoint.c.
8342         * breakpoint.c: Call DEF_VEC_I(int).
8343         (struct catch_syscall_inferior_data): New.
8344         (get_catch_syscall_inferior_data): New.
8345         (catch_syscall_inferior_data_cleanup): New.
8346         (insert_catch_syscall): Update to access data in
8347         struct catch_syscall_inferior_data.
8348         (insert_catch_syscall): Likewise.
8349         (remove_catch_syscall): Likewise.
8350         (remove_catch_syscall): Likewise.
8351         (is_syscall_catchpoint_enabled): Likewise.
8352         (add_catch_command): Likewise.
8353         (_initialize_breakpoint): Register cleanup.
8354         * breakpoint.h: Removed DEF_VEC_I(int).
8355         * dwarf2loc.c: Call DEF_VEC_I(int).
8356         * mi/mi-main.c: Likewise.
8357
8358 2012-03-12  Mark Kettenis  <kettenis@gnu.org>
8359
8360         * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8361
8362 2012-03-12  Chris January  <chris.january@allinea.com>
8363
8364         * aix-thread.c (_initialize_aix_thread): Add prototype.
8365         * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8366         * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8367
8368 2012-03-12  Joel Brobecker  <brobecker@adacore.com>
8369
8370         * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8371         include of "amd64-nat.h".
8372
8373 2012-03-12  Tom Tromey  <tromey@redhat.com>
8374
8375         * buildsym.c (record_pending_block): Now static.
8376         * buildsym.h: (record_pending_block): Remove.
8377
8378 2012-03-12  Andreas Tobler  <andreast@fgznet.ch>
8379
8380         * amd64bsd-nat.c: Include amd64bsd-nat.h.
8381
8382 2012-03-09  Tom Tromey  <tromey@redhat.com>
8383
8384         * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8385         producer_is_gxx_lt_4_6>: New fields.
8386         (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8387
8388 2012-03-09  Tom Tromey  <tromey@redhat.com>
8389
8390         * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8391
8392 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8393
8394         * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8395         prototype.
8396
8397 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8398
8399         * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8400
8401 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8402
8403         Fix -Wmissing-prototypes build.
8404         * arm-linux-nat.c (get_thread_id): Make it static.
8405         * xtensa-linux-nat.c (get_thread_id): Likewise.
8406
8407 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8408
8409         * server.c (process_point_options): If a conditional expression
8410         is found, only print a message if remote_debug is nonzero.
8411
8412 2012-03-08  Luis Machado  <lgustavo@codesourcery.com>
8413
8414         * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8415         of internal error for unknown/unsupported types.
8416
8417 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8418
8419         Fix CU relative vs. absolute DIE offsets.
8420         * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8421         offset to offset_in_cu.
8422         * dwarf2read.c (process_enumeration_scope): Add CU offset to
8423         TYPE_OFFSET.
8424         (dwarf2_fetch_die_location_block): Rename parameter offset to
8425         offset_in_cu.  New variable offset, add CU offset to OFFSET_IN_CU.
8426
8427 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8428
8429         * libunwind-frame.c: Rename to ...
8430         * ia64-libunwind-tdep.c: ... here.
8431         * libunwind-frame.h: Rename to ...
8432         * ia64-libunwind-tdep.h: ... here.
8433         * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8434         ia64-libunwind-tdep.h.
8435         (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8436         * README (--with-libunwind): Rename to ...
8437         (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8438         * config.in: Regenerate.
8439         * configure: Regenerate.
8440         * configure.ac: New option --with-libunwind-ia64, make the
8441         AS_HELP_STRING ia64 specific.  Deprecate option --with-libunwind.
8442         Remove AC_DEFINE for HAVE_LIBUNWIND.
8443         * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8444         Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8445         Rename libunwind-frame in the general comment.
8446         * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8447         Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8448         Move forward declarations inside #ifndef.  Rename libunwind-frame in
8449         the general comment.
8450         * ia64-tdep.c: Rename libunwind-frame.h #include to
8451         ia64-libunwind-tdep.h.
8452         (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8453         (ia64_libunwind_descr): Rename libunwind-frame to
8454         ia64-libunwind-tdep in these function comments.
8455         * ia64-tdep.h: Rename libunwind-frame.h #include to
8456         ia64-libunwind-tdep.h.
8457         * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8458         ia64-libunwind-tdep in that data comment.
8459
8460 2012-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
8461
8462         * libunwind-frame.h (struct frame_unwind): New declaration.
8463
8464 2012-03-08  Joel Brobecker  <brobecker@adacore.com>
8465
8466         * breakpoint.c (_initialize_breakpoint): Fix error in help of
8467         "set breakpoint condition-evaluation" command.
8468
8469 2012-03-08  Tristan Gingold  <gingold@adacore.com>
8470
8471         * sparc-stub.c: Move to stubs/
8472         * sh-stub.c: Likewise.
8473         * m68k-stub.c: Likewise.
8474         * m32r-stub.c: Likewise.
8475         * i386-stub.c: Likewise.
8476
8477 2012-03-08  Andreas Schwab  <schwab@linux-m68k.org>
8478
8479         * m68klinux-tdep.c (m68k_linux_init_abi): Register
8480         linux_get_siginfo_type.
8481
8482         * m68klinux-nat.c: Include "gdb_proc_service.h".
8483         (PTRACE_GET_THREAD_AREA): Define.
8484         (ps_get_thread_area): New function.
8485
8486 2012-03-08  Yao Qi  <yao@codesourcery.com>
8487
8488         * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8489         `xsnprintf'.
8490         (remote_query_attached): Likewise.
8491         (remote_static_tracepoint_marker_at): Likewise.
8492         (remote_set_permissions): Likewise.
8493         (remote_detach_1, extended_remote_attach_1): Likewise.
8494         (send_g_packet, remote_vkill): Likewise.
8495         (extended_remote_disable_randomization): Likewise.
8496         (remote_add_target_side_condition): Likewise.
8497         (remote_insert_breakpoint): Likewise.
8498         (remote_remove_breakpoint): Likewise.
8499         (remote_insert_watchpoint): Likewise.
8500         (remote_remove_watchpoint): Likewise.
8501         (remote_insert_hw_breakpoint): Likewise.
8502         (remote_insert_hw_breakpoint): Likewise.
8503         (remote_remove_hw_breakpoint): Likewise.
8504         (remote_download_command_source): Likewise.
8505         (remote_download_tracepoint): Likewise.
8506         (remote_download_trace_state_variable): Likewise.
8507         (remote_disable_tracepoint): Likewise.
8508         (remote_trace_set_readonly_regions): Likewise.
8509         (remote_get_tracepoint_status): Likewise.
8510         (remote_trace_find): Likewise.
8511         (remote_get_trace_state_variable_value): Likewise.
8512         (remote_set_disconnected_tracing): Likewise.
8513         (remote_set_circular_trace_buffer): Likewise.
8514         (remote_get_min_fast_tracepoint_insn_len): Likewise.
8515         (remote_use_agent): Likewise.
8516         (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8517         Update callers.
8518
8519 2012-03-07  Pedro Alves  <palves@redhat.com>
8520
8521         * NEWS: Mention QProgramSignals.
8522         * inferior.h (update_signals_program_target): Declare.
8523         * infrun.c: (update_signals_program_target): New.
8524         (handle_command): Update the target of the new program signals
8525         array changes.
8526         * remote.c (PACKET_QProgramSignals): New enum.
8527         (last_program_signals_packet): New global.
8528         (remote_program_signals): New.
8529         (remote_start_remote): Update the target with the program signals
8530         list.
8531         (remote_protocol_features): Add entry for QPassSignals.
8532         (remote_open_1): Free anc clear last_program_signals_packet.
8533         (init_remote_ops): Install remote_program_signals.
8534         * target.c (update_current_target): Adjust.
8535         (target_program_signals): New.
8536         * target.h (struct target_ops) <to_program_signals>: New field.
8537         (target_program_signals): Declare.
8538
8539 2012-03-07  Pedro Alves  <palves@redhat.com>
8540
8541         * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8542         extensions.
8543
8544 2012-03-07  Andreas Schwab  <schwab@linux-m68k.org>
8545
8546         * m68klinux-nat.c (getregs_supplies): Make static.
8547         (getfpregs_supplies): Likewise.
8548         (have_ptrace_getregs): Likewise.
8549
8550 2012-03-06  Joel Brobecker  <brobecker@adacore.com>
8551
8552         * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8553         in call to get_die_type_at_offset.
8554
8555 2012-03-06  Stan Shebs  <stan@codesourcery.com>
8556
8557         * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8558         * mi/mi-cmd-disas.c: Ditto.
8559         * mi/mi-cmd-env.c: Ditto.
8560         * mi/mi-cmd-file.c: Ditto.
8561         * mi/mi-cmd-stack.c: Ditto.
8562         * mi/mi-cmd-target.c: Ditto.
8563         * mi/mi-cmd-var.c: Ditto.
8564         * mi/mi-cmds.c: Ditto.
8565         * mi/mi-cmds.h: Ditto.
8566         * mi/mi-console.c: Ditto.
8567         * mi/mi-getopt.c: Ditto.
8568         * mi/mi-getopt.h: Ditto.
8569         * mi/mi-interp.c: Ditto.
8570         * mi/mi-main.c: Ditto.
8571         * mi/mi-out.c: Ditto.
8572         * mi/mi-parse.c: Ditto.
8573         * mi/mi-parse.h: Ditto.
8574         * mi/mi-symbol-cmds.c: Ditto.
8575
8576         * mi/mi-getopt.h: Move mi_opt struct up.
8577         * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8578         return.
8579         * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8580
8581 2012-03-06  Tom Tromey  <tromey@redhat.com>
8582
8583         * proc-service.c (ps_pglobal_lookup): Set the current program
8584         space.
8585
8586 2012-03-06  Pedro Alves  <palves@redhat.com>
8587
8588         * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8589
8590 2012-03-05  Joel Brobecker  <brobecker@adacore.com>
8591
8592         * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8593
8594 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8595
8596         Code cleanup.
8597         * common/linux-osdata.c (linux_common_core_of_thread): New function
8598         comment.
8599         * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8600         call by linux_common_core_of_thread.
8601         (linux_nat_core_of_thread_1): Remove.
8602         * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8603         * linux-thread-db.c: Include linux-osdata.h.
8604         (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8605         linux_common_core_of_thread.
8606
8607 2012-03-05  Tom Tromey  <tromey@redhat.com>
8608
8609         * value.c (value_primitive_field): Don't fetch contents for
8610         non-virtual bases.
8611
8612 2012-03-05  Tom Tromey  <tromey@redhat.com>
8613
8614         * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8615
8616 2012-03-05  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8617
8618         * s390-nat.c: Include "gregset.h".
8619
8620 2012-03-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
8621
8622         * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8623         [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8624         (libunwind_load): New variable so_error, use it for dlerror.  Try to
8625         load also LIBUNWIND_SO_7.
8626
8627 2012-03-05  Pedro Alves  <palves@redhat.com>
8628
8629         * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8630         is not NULL, and remove resulting dead code.
8631
8632 2012-03-05  Thomas Schwinge  <thomas@codesourcery.com>
8633
8634         * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8635         prologue to sh_analyze_prologue.
8636         (sh_analyze_prologue): Make better use of such an upper limit, and
8637         generally be more cautious about accessing memory.
8638
8639 2012-03-05  Tom Tromey  <tromey@redhat.com>
8640
8641         * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8642         _initialize_ia64_hpux_tdep.
8643
8644 2012-03-05  Pedro Alves  <palves@redhat.com>
8645
8646         PR gdb/13766
8647
8648         * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8649         the register state is clear, supply explicit zero, instead of
8650         marking the register unavailable.
8651
8652 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8653
8654         * NEWS: Mention OpenVMS ia64 new target.
8655
8656 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8657
8658         * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8659         (ia64_unw_accessors, ia64_unw_rse_accessors)
8660         (ia64_libunwind_descr): Declare.
8661         * ia64-vms-tdep.c: New file.
8662         * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8663         (ia64_libunwind_descr): Make them public.
8664         * configure.tgt: Add ia64-*-*vms*.
8665         * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8666         (ALLDEPFILES): Add ia64-vms-tdep.c
8667
8668 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8669
8670         * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8671         * remote.c (PACKET_qXfer_uib): New enum value.
8672         (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8673         (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8674         (_initialize_remote): Call add_packet_config_cmd for
8675         xfer:uib packet.
8676
8677 2012-03-05  Tristan Gingold  <gingold@adacore.com>
8678
8679         * osabi.c (gdb_osabi_names): Add OpenVMS.
8680         (generic_elf_osabi_sniffer): Likewise.
8681         * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
8682
8683 2012-03-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
8684
8685         Removed unused code.
8686         * libunwind-frame.c (libunwind_frame_unwind)
8687         (libunwind_frame_base_address): Remove.
8688         * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8689
8690 2012-03-04  Yao Qi  <yao@codesourcery.com>
8691
8692         * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8693         remove trailing new line.
8694         (agent_run_command, agent_run_command): Add _ markup.
8695         (agent_capability_check): Likewise.
8696
8697 2012-03-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
8698
8699         * breakpoint.c (set_condition_evaluation_mode): Set
8700         CONDITION_EVALUATION_MODE unconditionally.
8701
8702 2012-03-03  Yao Qi  <yao@codesourcery.com>
8703
8704         * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8705         * common/agent.h: Update declaration.
8706         * inf-child.c (inf_child_use_agent): New.
8707         (inf_child_can_use_agent): New.
8708         (inf_child_target): Initialize fields `to_use_agent'
8709         and `to_can_use_agent'.
8710         * agent.c (agent_new_objfile): New.
8711         (_initialize_agent): Add agent_new_objfile to new_objfile
8712         observer.
8713
8714         * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8715         New.
8716         (linux_target_install_ops): Initialize field
8717         `to_static_tracepoint_markers_by_strid'.
8718         * remote.c (free_current_marker): Move it to ...
8719         * tracepoint.c (free_current_marker): ... here.  New.
8720         (cleanup_target_stop): New.
8721         * tracepoint.h: Declare free_current_marker.
8722         * NEWS: Add one entry about `info static-tracepoint-marker'.
8723
8724 2012-03-03  Yao Qi  <yao@codesourcery.com>
8725
8726         * common/agent.c (agent_loaded_p): New.
8727         (agent_look_up_symbols): New global.
8728         * common/agent.h: Declare agent_loaded_p.
8729
8730 2012-03-03  Yao Qi  <yao@codesourcery.com>
8731
8732         * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8733         (agent_capability_check, agent_capability_invalidate): New.
8734         (symbol_list): New array element.
8735         * common/agent.h (enum agent_capa): New.
8736         * target.c (target_pre_inferior): Call agent_capability_invalidate.
8737
8738 2012-03-03  Yao Qi  <yao@codesourcery.com>
8739
8740         * target.h (struct target_ops) <to_use_agent>: New field.
8741         (struct target_ops) <to_can_use_agent>: New field.
8742         (target_use_agent, target_can_use_agent): New macro.
8743         * target.c (update_current_target): Update.
8744         * remote.c: New enum `PACKET_QAgent'.
8745         (remote_protocol_features): Add a new element.
8746         (remote_use_agent, remote_can_use_agent): New.
8747         (init_remote_ops): Initialize field `can_use_agent' with
8748         remote_can_use_agent.  Intiailize field `use_agent' with
8749         remote_use_agent.
8750         * common/agent.c (use_agent): New global.
8751         * common/agent.h: Declare it.
8752         * tracepoint.c (info_static_tracepoint_markers_command): Add
8753         comment.
8754         * Makefile.in (SFILES): Add common/agent.c and agent.c.
8755         (COMMON_OBS): Add common/agent.o and agent.o
8756         (common-agent.o): New rule.
8757         * agent.c: New.
8758
8759 2012-03-03  Yao Qi  <yao@codesourcery.com>
8760
8761         * common/agent.c: New.
8762         * common/agent.h: New.
8763         * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8764         AC_CHECK_HEADERS.
8765         * configure, configh.in: Regenerated.
8766
8767 2012-03-02  Kevin Buettner  <kevinb@redhat.com>
8768
8769         * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8770         unless it exists for this architecture.
8771
8772 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
8773
8774         * language.h (struct language_defn): New "method" la_read_var_value.
8775         * findvar.c: #include "language.h".
8776         (default_read_var_value): Renames read_var_value.  Rewrite
8777         function description.
8778         (read_var_value): New function.
8779         * value.h (default_read_var_value): Add prototype.
8780         * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8781         New functions.
8782         (ada_language_defn): Add entry for la_read_var_value.
8783         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8784         * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8785         language_defn structures to add entry for new la_read_var_value
8786         field.
8787
8788 2012-03-02  Tom Tromey  <tromey@redhat.com>
8789             Pedro Alves  <palves@redhat.com>
8790
8791         PR breakpoints/13776:
8792         * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8793         breakpoints.
8794         (delete_longjmp_breakpoint_at_next_stop): New.
8795         * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8796         * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8797         before deleting the inferior.  Add comments.
8798         * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8799         breakpoints immediately, but only on next stop.  Move that code
8800         next to where we mark other breakpoints for deletion.
8801
8802 2012-03-02  Joel Brobecker  <brobecker@adacore.com>
8803
8804         * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8805         marker.
8806         * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8807         violation.
8808
8809 2012-03-02  Pedro Alves  <palves@redhat.com>
8810
8811         * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8812
8813 2012-03-02  Ulrich Weigand  <uweigand@de.ibm.com>
8814
8815         Fix -Wmissing-prototypes build.
8816         * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8817         * remote-sim.c (gdbsim_has_all_memory): Likewise.
8818         (gdbsim_has_memory): Likewise.
8819
8820 2012-03-02  Yao Qi  <yao@codesourcery.com>
8821
8822         Fix -Wmissing-prototypes build.
8823         * charset.c (phony_iconv_open): Make static.
8824         (phony_iconv_close, phony_iconv): Likewise.
8825         * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8826         * i386-windows-nat.c (_initialize_i386_windows_nat): New
8827         prototype.
8828         * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8829         * ser-mingw.c (create_select_thread): Make static.
8830         * windows-termcap.c (tgetent): New prototype.
8831         (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8832
8833 2012-03-02  Zhang Yuanhui  <asmwarrior@gmail.com>
8834
8835         Fix -Wmissing-prototypes build.
8836         * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8837         (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8838         (_initialize_loadable): New prototypes.
8839
8840 2012-03-02  Doug Evans  <dje@google.com>
8841
8842         * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8843         abbrev table, read_comp_unit will do it.
8844
8845 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8846
8847         Fix -Wmissing-prototypes build.
8848         * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8849         * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8850         * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8851         * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8852         (_initialize_arm_symbian_tdep): New prototype.
8853         * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8854         * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8855         * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8856         static.
8857         * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8858         * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8859         prototype.
8860         * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8861         (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8862         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8863         static.
8864         * moxie-tdep.c (moxie_process_record): Likewise.
8865         * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8866         (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8867         * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8868         (_initialize_rl78_tdep): New prototype.
8869         * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8870         (_initialize_rx_tdep): New prototype.
8871         * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8872         (_initialize_darwin_solib): New prototype.
8873         * solib-spu.c: Include solib-spu.h.
8874         (_initialize_spu_solib): New prototype.
8875         * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8876         * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8877         (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8878         (tic6x_software_single_step): Make it static.
8879         (_initialize_tic6x_tdep): New prototype.
8880
8881 2012-03-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8882
8883         Fix -Wmissing-prototypes build.
8884         * cris-tdep.c (cris_can_use_hardware_watchpoint)
8885         (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8886
8887 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8888
8889         Fix -Wmissing-prototypes build.
8890         * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8891         (frv_have_stopped_data_address): Remove.
8892
8893 2012-03-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
8894
8895         Fix -Wmissing-prototypes build.
8896         * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8897         * sh-tdep.c: Include sh64-tdep.h.
8898         * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8899         * sh64-tdep.c: Include sh64-tdep.h.
8900         * sh64-tdep.h: New file.
8901
8902 2012-03-01  Maciej W. Rozycki <macro@codesourcery.com>
8903
8904         * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8905
8906 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
8907
8908         * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8909         sp_regnum once the gdbarch_init_osabi hook has been called.
8910
8911 2012-03-01  Maciej W. Rozycki  <macro@codesourcery.com>
8912
8913         * mips-tdep.c (mips32_bc1_pc): New function.
8914         (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8915         BPOSGE32 and BPOSGE64 instructions.
8916         (deal_with_atomic_sequence): Likewise.
8917         (mips32_instruction_has_delay_slot): Likewise.
8918
8919 2012-03-01  Maciej W. Rozycki  <macro@mips.com>
8920             Chris Dearman  <chris@mips.com>
8921             Maciej W. Rozycki  <macro@codesourcery.com>
8922             Joseph Myers  <joseph@codesourcery.com>
8923
8924         * features/mips-dsp.xml: New file.
8925         * features/mips64-dsp.xml: New file.
8926         * features/mips-dsp-linux.xml: New file.
8927         * features/mips64-dsp-linux.xml: New file.
8928         * features/Makefile (WHICH): Add mips-dsp-linux and
8929         mips64-dsp-linux.
8930         (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8931         * features/mips-dsp-linux.c: New file.
8932         * features/mips64-dsp-linux.c: New file.
8933         * regformats/mips-dsp-linux.dat: New file.
8934         * regformats/mips64-dsp-linux.dat: New file.
8935         * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8936         registers.
8937         (mips64_linux_register_addr): Likewise.
8938         (mips64_linux_regsets_fetch_registers): Likewise.
8939         (mips64_linux_regsets_store_registers): Likewise.
8940         (mips64_linux_fetch_registers): Update call to
8941         mips64_linux_regsets_fetch_registers.
8942         (mips64_linux_store_registers): Update call to
8943         mips64_linux_regsets_store_registers.
8944         (mips_linux_read_description): Probe for DSP registers.
8945         (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8946         and initialize_tdesc_mips64_dsp_linux.
8947         * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8948         Remove padding of no longer used embedded register slots.
8949         * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8950         (MIPS_RESTART_REGNUM): Redefine enum value.
8951         * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8952         strings.
8953         (mips_tx39_reg_names): Likewise.
8954         (mips_linux_reg_names): New array of register names for Linux
8955         targets.
8956         (mips_register_name): Check for a null pointer in
8957         mips_processor_reg_names and return an empty string.
8958         (mips_register_type): Exclude embedded registers for the IRIX
8959         and Linux ABIs.
8960         (mips_pseudo_register_type): Likewise.  Use dynamic numbers to
8961         refer to FP registers, LO, HI, BadVAddr, Cause and PC.  Handle
8962         DSP registers.
8963         (mips_stab_reg_to_regnum): Handle DSP accumulators.
8964         (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8965         (mips_gdbarch_init): Likewise.  Initialize internal register
8966         indices for the Linux ABI.  Use dynamic numbers to refer to
8967         registers, as applicable, while parsing the target description.
8968         * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8969
8970 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
8971
8972         * frame.h (read_frame_register_unsigned): Fix typo in function
8973         description.
8974
8975 2012-03-01  Pedro Alves  <palves@redhat.com>
8976
8977         * jit-reader.in [!__cplusplus]
8978         (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8979
8980 2012-03-01  Pedro Alves  <palves@redhat.com>
8981
8982         * configure.ac (build_warnings): Add -Wmissing-prototypes.
8983         * configure: Regenerate.
8984
8985 2012-03-01  Pedro Alves  <palves@redhat.com>
8986
8987         * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8988         * breakpoint.c (create_exception_master_breakpoint, trace_command)
8989         (ftrace_command, strace_command): Make static.
8990         * d-lang.c (_initialize_d_language): Declare.
8991         * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8992         * dwarf2loc.c (_initialize_dwarf2loc):
8993         * dwarf2read.c (process_psymtab_comp_unit): Make static.
8994         * exec.c (exec_get_section_table): Make static.
8995         * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8996         * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8997         * inferior.c (remove_inferior_command, add_inferior_command)
8998         (clone_inferior_command): Make static.
8999         * linux-nat.c (linux_nat_thread_address_space)
9000         (linux_nat_core_of_thread): Make static.
9001         * linux-tdep.c (_initialize_linux_tdep): Declare.
9002         * objc-lang.c (_initialize_objc_lang): Declare.
9003         * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9004         Make static.
9005         (_initialize_opencl_language): Declare.
9006         * record.c (_initialize_record): Declare.
9007         * remote.c (demand_private_info, remote_get_tib_address)
9008         (remote_supports_cond_tracepoints)
9009         (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9010         Make static.
9011         * skip.c (_initialize_step_skip): Declare.
9012         * symtab.c (skip_prologue_using_lineinfo): Make static.
9013         * tracepoint.c (delete_trace_state_variable)
9014         (trace_variable_command, delete_trace_variable_command)
9015         (get_uploaded_tsv, find_matching_tracepoint_location)
9016         (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9017         Make static.
9018         * value.c (pack_unsigned_long): Make static.
9019         * varobj.c (varobj_ensure_python_env): Make static.
9020         * windows-tdep.c (_initialize_windows_tdep): Declare.
9021         * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9022
9023 2012-03-01  Pedro Alves  <palves@redhat.com>
9024
9025         * linux-tdep.c (linux_has_shared_address_space): Make static.  Add
9026         gdbarch parameter.
9027         (linux_init_abi): Install it as has_shared_address_space gdbarch
9028         callback.
9029
9030 2012-03-01  Pedro Alves  <palves@redhat.com>
9031
9032         * observer.c (observer_test_first_notification_function)
9033         (observer_test_second_notification_function)
9034         (observer_test_third_notification_function): Add declarations.
9035
9036 2012-03-01  Pedro Alves  <palves@redhat.com>
9037
9038         * common/signals.c (default_target_signal_to_host)
9039         (default_target_signal_from_host): Move ...
9040         * arch-utils.c: ... here.
9041         * arch-utils.h (default_target_signal_to_host)
9042         (default_target_signal_from_host): Declare.
9043
9044         * common/signals.c (target_signal_from_command): Move ...
9045         * infrun.c: ... here.
9046         * inferior.h (target_signal_from_command): Declare.
9047         * target.h (target_signal_from_command)
9048         (default_target_signal_from_host, default_target_signal_to_host):
9049         Delete declarations.
9050
9051         * common/signals.c (_initialize_signals): Delete.
9052
9053 2012-03-01  Pedro Alves  <palves@redhat.com>
9054
9055         * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9056         both __cplusplus and !__cplusplus.
9057
9058 2012-03-01  Pedro Alves  <palves@redhat.com>
9059
9060         * psymtab.c (find_and_open_source): Delete declaration.
9061         * source.c (find_and_open_source): Move comment ...
9062         * source.h (find_and_open_source): ... to this new declaration.
9063
9064 2012-03-01  Pedro Alves  <palves@redhat.com>
9065
9066         * inline-frame.c: Include inline-frame.h.
9067
9068 2012-03-01  Pedro Alves  <palves@redhat.com>
9069
9070         * tui/tui-data.c (set_gen_win_origin): Delete.
9071         * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9072         * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9073
9074 2012-03-01  Pedro Alves  <palves@redhat.com>
9075
9076         * remote.c (encode_actions): Delete declaration.
9077         * tracepoint.c (encode_actions): Make extern.
9078         * tracepoint.h (encode_actions): Declare.
9079
9080 2012-03-01  Pedro Alves  <palves@redhat.com>
9081
9082         * python/py-breakpoint.c: Include python.h.
9083         * python/py-continueevent.c (create_continue_event_object): Make
9084         static.
9085         * python/py-lazy-string.c (stpy_get_type): Make static.
9086         * python/py-newobjfileevent.c (create_new_objfile_event_object):
9087         Make static.
9088         * python/py-utils.c (unicode_to_target_python_string): Make
9089         static.
9090         * python/py-value.c: Include python.h.
9091
9092 2012-03-01  Pedro Alves  <palves@redhat.com>
9093
9094         * inferior.c (delete_threads_of_inferior): Delete.
9095
9096 2012-03-01  Pedro Alves  <palves@redhat.com>
9097
9098         Import fallback definitions from glibc.
9099
9100         * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9101         ps_prochandle): Forward declare.
9102         (ps_err_e): Use glibc's comments.
9103         [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9104         (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9105         (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9106         (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9107         (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9108         (struct ps_prochandle): Adjust comment.
9109
9110 2012-03-01  Pedro Alves  <palves@redhat.com>
9111
9112         * ada-lang.c (ada_modulus_from_name): Delete.
9113         * ada-lex.l (lexer_init): Make static.
9114
9115 2012-03-01  Pedro Alves  <palves@redhat.com>
9116
9117         PR gdb/13767
9118
9119         * frame.c (read_frame_register_unsigned): New.
9120         * frame.h (read_frame_register_unsigned): Declare.
9121         * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9122         Handle it.
9123         (print_i387_control_word): New parameter `control_p'.  Handle it.
9124         (i387_print_float_info): Handle unavailable float registers.
9125
9126 2012-03-01  Keith Seitz  <keiths@redhat.com>
9127
9128         * linespec.c (decode_line_2): Sort the list of methods
9129         alphabetically before presenting the user with a selection
9130         menu.
9131
9132 2012-03-01  Doug Evans  <dje@google.com>
9133
9134         * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9135         has_namespace_info.
9136         (dwarf2_read_abbrevs): Remove corresponding initialization.
9137
9138 2012-03-01  Scott J. Goldman <scottjg@vmware.com>
9139
9140         * NEWS: Mention new python command class gdb.COMMAND_USER.
9141         * cli/cli-cmds.c (show_user): Print error when used on a python
9142         command.
9143         (init_cli_cmds): Update documentation strings for "show user" and
9144         "set/show max-user-call-depth" to clarify that it does not apply to
9145         python commands.
9146         * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9147         error check.
9148         (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9149         gdb python api.
9150         * top.c (execute_command): Only execute a user-defined command as a
9151         legacy macro if c->user_commands is set.
9152
9153 2012-03-01  Tom Tromey  <tromey@redhat.com>
9154
9155         * valprint.h (struct generic_val_print_decorations): New.
9156         (generic_val_print): Declare.
9157         * valprint.c (generic_val_print): New function.
9158         * p-valprint.c (p_decorations): New global.
9159         (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9160         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9161         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9162         TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9163         * m2-valprint.c (m2_decorations): New global.
9164         (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9165         TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9166         TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9167         TYPE_CODE_ERROR>: Call generic_val_print.
9168         * f-valprint.c (f_decorations): New global.
9169         (f_val_print): Use print_function_pointer_address.
9170         <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9171         TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9172         TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9173         generic_val_print.
9174         * c-valprint.c (c_decorations): New global.
9175         (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9176         TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9177         TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9178         TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9179         TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9180         * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9181         case.
9182
9183 2012-03-01  Tom Tromey  <tromey@redhat.com>
9184
9185         * valprint.c (val_print): Update.
9186         * p-valprint (pascal_val_print): Return void.
9187         * p-lang.h (pascal_val_print): Return void.
9188         * m2-valprint.c (m2_val_print): Return void.
9189         * m2-lang.h (m2_val_print): Return void.
9190         * language.h (struct language_defn) <la_val_print>: Return void.
9191         * language.c (unk_lang_val_print): Return void.
9192         * jv-valprint.c (java_val_print): Return void.
9193         * jv-lang.h (java_val_print): Return void.
9194         * f-valprint.c (f_val_print): Return void.
9195         * f-lang.h (f_val_print): Return void.
9196         * d-valprint.c (d_val_print): Return void.
9197         (dynamic_array_type): Update.
9198         * d-lang.h (d_val_print): Return void.
9199         * c-valprint.c (c_val_print): Return void.
9200         * c-lang.h (c_val_print): Return void.
9201         * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9202         void.
9203         * ada-lang.h (ada_val_print): Return void.
9204
9205 2012-03-01  Tom Tromey  <tromey@redhat.com>
9206
9207         * value.h (val_print): Return void.
9208         * valprint.c (val_print): Return void.
9209
9210 2012-03-01  Tom Tromey  <tromey@redhat.com>
9211
9212         * value.h (common_val_print): Return void.
9213         * valprint.c (common_val_print): Return void.
9214
9215 2012-03-01  Tom Tromey  <tromey@redhat.com>
9216
9217         * value.h (value_print): Return void.
9218         * valprint.c (value_print): Return void.
9219         * p-valprint.c (pascal_value_print): Return void.
9220         * p-lang.h (pascal_value_print): Return void.
9221         * language.h (struct language_defn) <la_value_print>: Return
9222         void.
9223         * language.c (unk_lang_value_print): Return void.
9224         * jv-valprint.c (java_value_print): Return void.
9225         * jv-lang.h (java_value_print): Return void.
9226         * f-valprint.c (c_value_print): Don't declare.
9227         Include c-lang.h.
9228         * c-valprint.c (c_value_print): Return void.
9229         * c-lang.h (c_value_print): Return void.
9230         * ada-valprint.c (ada_value_print): Return void.
9231         * ada-lang.h (ada_value_print): Return void.
9232
9233 2012-03-01  Tom Tromey  <tromey@redhat.com>
9234
9235         * value.c (value_primitive_field): Handle virtual base classes.
9236
9237 2012-03-01  Tom Tromey  <tromey@redhat.com>
9238
9239         * gdbtypes.h (struct vbase): Remove.
9240
9241 2012-03-01  Tom Tromey  <tromey@redhat.com>
9242
9243         * c-valprint.c (print_function_pointer_address): Move...
9244         * valprint.c: ... here.  Make non-static.
9245         * m2-valprint.c (print_function_pointer_address): Remove.
9246         * valprint.h (print_function_pointer_address): Declare.
9247
9248 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9249
9250         * NEWS: Document the fact that one can provide a condition when
9251         creating an Ada exception catchpoint.
9252
9253 2012-03-01  Tom Tromey  <tromey@redhat.com>
9254
9255         * valprint.c (val_print_type_code_flags): Fix placement of
9256         trailing brace.
9257
9258 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9259
9260         * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9261         (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9262         environment variable before calling update-copyright.
9263
9264 2012-03-01  Joel Brobecker  <brobecker@adacore.com>
9265
9266         * gnulib/extra/update-copyright: Update to the latest from
9267         gnulib's git repository.
9268         * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9269         variable to 2 instead of 1.
9270
9271 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9272
9273         * varobj.c (c_value_of_variable): Remove dead code.
9274
9275 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9276
9277         * ada-lex.p (processId): Do not modify already encoded IDs.
9278         Update function documentation.
9279
9280 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9281
9282         * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9283         "name" with "struct symbol *name_sym".
9284         * ada-exp.y (write_var_or_type): Update call to
9285         ada_find_renaming_symbol.
9286         "name" with "struct symbol *name_sym". Adjust Implementation
9287         accordingly.  Adjust the function documentation.
9288
9289 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9290
9291         * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9292         * ada-lang.c (ada_find_any_type): Add advance declaration.
9293         Make static.  Replace ada_find_any_symbol by
9294         ada_find_any_type_symbol.
9295         (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9296         Improve function description.  Make static.
9297         (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9298         Replace ada_find_any_symbol by ada_find_any_type_symbol.
9299
9300 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9301
9302         * ada-lang.c (struct tag_args): Delete.
9303         (ada_get_tsd_type): Function body moved up in source file.
9304         (ada_tag_name_1, ada_tag_name_2): Delete.
9305         (ada_get_tsd_from_tag): New function.
9306         (ada_tag_name_from_tsd): New function.
9307         (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9308         to determine the tag name.
9309
9310 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9311
9312         * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9313         declaration.
9314         * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9315         function.
9316
9317 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9318
9319         * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9320
9321 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9322
9323         * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9324         full searches.
9325
9326 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9327
9328         * ada-lang.c (constrained_packed_array_type): If there is a
9329         parallel XA type, use it to determine the array index type.
9330
9331 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9332
9333         * ada-valprint.c (ada_val_print_1): If our value is a reference
9334         to an array descriptor, dereference it before converting it
9335         to a simple array.
9336
9337 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9338
9339         * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9340         creating fixed value.
9341         (ada_value_ind, ada_coerce_ref, assign_component)
9342         (ada_evaluate_subexp): Remove call to unwrap_value before
9343         call to ada_to_fixed_value.
9344
9345 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9346
9347         * ada-lang.c (to_fixed_array_type): Set result's type name.
9348
9349 2012-02-29  Joel Brobecker  <brobecker@adacore.com>
9350
9351         * ada-lang.c (catch_ada_exception_command_split): Add new
9352         argument cond_string.  Add support for condition at end of
9353         "catch exception" commands.
9354         (ada_decode_exception_location): Add new argument cond_string.
9355         Update call to catch_ada_exception_command_split.
9356         (create_ada_exception_catchpoint): Add new argument cond_string.
9357         Set the breakpoint condition if needed.
9358         (catch_ada_exception_command): Update call to
9359         ada_decode_exception_location.
9360         (ada_decode_assert_location): Add function documentation.
9361         Add support for condition at end of "catch assert" command.
9362         (catch_assert_command): Update calls to ada_decode_assert_location
9363         and create_ada_exception_catchpoint.
9364
9365 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9366
9367         Fix disp-step-syscall.exp: fork: single step over fork.
9368         * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9369         (i386_linux_get_syscall_number_from_regcache): ... here, new function
9370         comment, change parameters gdbarch and ptid to regcache.  Remove
9371         parameter regcache, initialize gdbarch from regcache here.
9372         (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9373         New functions.
9374         (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9375         instead.
9376         * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9377         'syscall'.  Make the 'int' check more strict.
9378
9379 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9380
9381         Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9382         * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9383         (i386_linux_intx80_sysenter_syscall_record): ... here.
9384         (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9385         Use the renamed function name.
9386
9387 2012-02-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
9388
9389         * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9390         * breakpoint.c (until_break_command): Likewise.
9391         * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9392         * infcall.c (call_function_by_hand): Likewise.
9393         * infcmd.c (finish_forward): Likewise.
9394         * infrun.c (insert_exception_resume_breakpoint): Likewise.
9395
9396 2012-02-28  Tristan Gingold  <gingold@adacore.com>
9397
9398         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9399         avoid variable assignments inside condition.
9400
9401 2012-02-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
9402
9403         Fix static analysis issue found by cppcheck.
9404         * microblaze-tdep.c (microblaze_extract_return_value): Fix
9405         uninitialized BUF for size 2.
9406
9407 2012-02-27  Chris Dearman  <chris@mips.com>
9408             Nathan Froyd  <froydnj@codesourcery.com>
9409             Maciej W. Rozycki  <macro@codesourcery.com>
9410
9411         * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9412         (mips16_instruction_has_delay_slot): Likewise.
9413         (mips_segment_boundary): Likewise.
9414         (mips_adjust_breakpoint_address): Likewise.
9415         (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9416
9417 2012-02-27  Maciej W. Rozycki  <macro@mips.com>
9418             Maciej W. Rozycki  <macro@codesourcery.com>
9419
9420         * infrun.c (handle_inferior_event): Don't proceed through
9421         shared library trampolines if stepping at the machine
9422         instruction level.
9423
9424 2012-02-27  Maciej W. Rozycki  <macro@codesourcery.com>
9425
9426         * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9427         too.
9428
9429 2012-02-27  Thomas Schwinge  <thomas@codesourcery.com>
9430
9431         * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9432         (sh_stub_unwind_sniffer): New functions.
9433         (sh_stub_unwind): New variable.
9434         (sh_gdbarch_init): Wire everything.
9435
9436 2012-02-27  Pedro Alves  <palves@redhat.com>
9437
9438         * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9439         (linux_nat_post_attach_wait): Adjust to use
9440         linux_proc_pid_is_stopped.
9441         * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9442         * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9443         based on pid_is_stopped from both linux-nat.c and
9444         gdbserver/linux-low.c, and renamed.
9445
9446 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
9447
9448         * remote.c (remote_watchpoint_addr_within_range): New function.
9449         (init_remote_ops): Use it.
9450
9451 2012-02-24  Maciej W. Rozycki  <macro@codesourcery.com>
9452
9453         * target.h (target_watchpoint_addr_within_range): Document macro.
9454
9455 2012-02-24  Pedro Alves  <palves@redhat.com>
9456
9457         * stack.c (set_last_displayed_sal): Issue internal_error instead
9458         of warning, and issue it after clearing the last displayed sal.
9459
9460 2012-02-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
9461             Pedro Alves  <palves@redhat.com>
9462
9463         * breakpoint.c (until_break_command): Install breakpoints after
9464         all frame manipulations.
9465
9466 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9467
9468         * remote.c (remote_supports_cond_breakpoints): New forward
9469         declaration.
9470         (remote_add_target_side_condition): New function.
9471         (remote_insert_breakpoint): Add target-side breakpoint
9472         conditional if supported.
9473         (remote_insert_hw_breakpoint): Likewise.
9474         (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9475         hook.
9476
9477         * target.c (update_current_target): Inherit
9478         to_supports_evaluation_of_breakpoint_conditions.
9479         Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9480
9481         * target.h (struct target_ops)
9482         <to_supports_evaluation_of_breakpoint_conditions>: New field.
9483         (target_supports_evaluation_of_breakpoint_conditions): New #define.
9484
9485         * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9486         (condition_evaluation_both, condition_evaluation_auto,
9487         condition_evaluation_host, condition_evaluation_target,
9488         condition_evaluation_enums, condition_evaluation_mode_1,
9489         condition_evaluation_mode): New static globals.
9490         (translate_condition_evaluation_mode): New function.
9491         (breakpoint_condition_evaluation_mode): New function.
9492         (gdb_evaluates_breakpoint_condition_p): New function.
9493         (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9494         (mark_breakpoint_modified): New function.
9495         (mark_breakpoint_location_modified): New function.
9496         (set_condition_evaluation_mode): New function.
9497         (show_condition_evaluation_mode): New function.
9498         (bp_location_compare_addrs): New function.
9499         (get_first_location_gte_addr): New helper function.
9500         (set_breakpoint_condition): Free condition bytecode if locations
9501         has become unconditional.  Call mark_breakpoint_modified (...).
9502         (condition_command): Call update_global_location_list (1) for
9503         breakpoints.
9504         (breakpoint_xfer_memory): Use is_breakpoint (...).
9505         (is_breakpoint): New function.
9506         (parse_cond_to_aexpr): New function.
9507         (build_target_condition_list): New function.
9508         (insert_bp_location): Handle target-side conditional
9509         breakpoints and call build_target_condition_list (...).
9510         (update_inserted_breakpoint_locations): New function.
9511         (insert_breakpoint_locations): Handle target-side conditional
9512         breakpoints.
9513         (bpstat_check_breakpoint_conditions): Add comment.
9514         (bp_condition_evaluator): New function.
9515         (bp_location_condition_evaluator): New function.
9516         (print_breakpoint_location): Print information on where the condition
9517         will be evaluated.
9518         (print_one_breakpoint_location): Likewise.
9519         (init_bp_location): Call mark_breakpoint_location_modified (...) for
9520         breakpoint location.
9521         (force_breakpoint_reinsertion): New functions.
9522         (update_global_location_list): Handle target-side breakpoint
9523         conditions.
9524         Reinsert locations that are already inserted if conditions have
9525         changed.
9526         (bp_location_dtor): Free agent expression bytecode.
9527         (disable_breakpoint): Call mark_breakpoint_modified (...).
9528         Call update_global_location_list (...) with parameter 1 for breakpoints.
9529         (disable_command): Call mark_breakpoint_location_modified (...).
9530         Call update_global_location_list (...) with parameter 1 for breakpoints.
9531         (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9532         (enable_command): mark_breakpoint_location_modified (...).
9533         (_initialize_breakpoint): Update documentation and add
9534         condition-evaluation breakpoint subcommand.
9535
9536         * breakpoint.h: Include ax.h.
9537         (condition_list): New data structure.
9538         (condition_status): New enum.
9539         (bp_target_info) <cond_list>: New field.
9540         (bp_location) <condition_changed, cond_bytecode>: New fields.
9541         (is_breakpoint): New prototype.
9542
9543 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9544
9545         * remote.c (remote_state) <cond_breakpoints>: New field.
9546         (PACKET_ConditionalBreakpoints): New enum.
9547         (remote_cond_breakpoint_feature): New function.
9548         (remote_protocol_features): Add new ConditionalBreakpoints entry.
9549         (remote_supports_cond_breakpoints): New function.
9550         (_initialize_remote): Add new packet configuration for
9551         target-side conditional breakpoints.
9552
9553 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9554
9555         * NEWS: Mention target-side conditional breakpoint support,
9556         new condition-evaluation breakpoint subcommand and remote
9557         packet extensions.
9558
9559 2012-02-24  Luis Machado  <lgustavo@codesourcery.com>
9560
9561         * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9562         number.
9563
9564 2012-02-24  Thomas Schwinge  <thomas@codesourcery.com>
9565
9566         * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9567         (after_prologue): Remove.
9568
9569 2012-02-23  Tom Tromey  <tromey@redhat.com>
9570
9571         * jv-valprint.c (java_val_print): Remove dead code.
9572
9573 2012-02-23  Tristan Gingold  <gingold@adacore.com>
9574
9575         * ada-tasks.c (struct ada_tasks_inferior_data): Add
9576         known_tasks_element and known_tasks_length fields.
9577         (read_known_tasks_array): Change argument type.  Use pointer type
9578         and number of elements from DATA.  Adjust.
9579         (read_known_tasks_list): Likewise.
9580         (get_known_tasks_addr): Remove.
9581         (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9582         (ada_tasks_inferior_data_sniffer): ... this.  Use symtab for element
9583         type and array length.  Merge former get_known_tasks_addr code.
9584
9585 2012-02-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
9586
9587         PR backtrace/13716
9588         * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9589         it after set_momentary_breakpoint.
9590
9591 2012-02-22  Sterling Augustine  <saugustine@google.com>
9592
9593         PR 13689:
9594         * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9595
9596 2012-02-22  Gary Benson  <gbenson@redhat.com>
9597
9598         * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9599         (find_slot_in_mapped_hash): Likewise.
9600
9601 2012-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
9602
9603         PR build/13638
9604         * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9605         (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9606         * configure: Regenerate.
9607
9608 2012-02-21  Tristan Gingold  <gingold@adacore.com>
9609             Pedro Alves  <palves@redhat.com>
9610
9611         * ia64-tdep.c: Do not include libunwind-ia64.h.
9612         * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9613         Include libunwind-ia64.h instead of libunwind.h.
9614         * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9615         for libunwind.h existence.
9616         * configure, config.in: Regenerate.
9617
9618 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
9619
9620         * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9621         instead of value_rtti_target_type.
9622         * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9623         instead of value_rtti_target_type.
9624         * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9625         value_rtti_target_type.
9626         * valops.c (value_ind): Extract function readjust_indirect_value_type.
9627         (value_rtti_target_type): Rename to ...
9628         (value_rtti_indirect_type): ... here and make it indirect.  Update
9629         function comment.
9630         * value.c (readjust_indirect_value_type): New function.
9631         (coerce_ref): Support for enclosing type setting for references
9632         with readjust_indirect_value_type.
9633         * value.h (readjust_value_type): New declaration.
9634         (value_rtti_target_type): Rename to ...
9635         (value_rtti_indirect_type): ... here.
9636
9637 2012-02-21  Anton Gorenkov  <xgsa@yandex.ru>
9638
9639         * MAINTAINERS (Write After Approval): Add myself to the list.
9640
9641 2012-02-20  Doug Evans  <dje@google.com>
9642
9643         * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9644         Rename objfile_p_char parameter to objfilep.
9645         (build_objfile_section_table): Result is now void.  All callers
9646         updated.
9647         * objfiles.h (struct objfile): Tweak comments, whitespace.
9648         (build_objfile_section_table): Update.
9649
9650         * elfread.c (elf_symfile_segments): Fix warning text.
9651
9652 2012-02-20  Tom Tromey  <tromey@redhat.com>
9653
9654         PR gdb/13498:
9655         * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9656         particular set of file names once.
9657         (dw2_map_symbol_filenames): Likewise.
9658
9659 2012-02-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
9660
9661         Code cleanup.
9662         * main.c (write_files): Remove the declaration.
9663         (external_editor_command): Move the declaration ...
9664         [GDBTK] (external_editor_command): ... here.  Fix the comment.
9665
9666 2012-02-20  Tom Tromey  <tromey@redhat.com>
9667
9668         * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9669         extraneous block.
9670
9671 2012-02-20  Tristan Gingold  <gingold@adacore.com>
9672
9673         * darwin-nat.h (enum darwin_msg_state): Add comments.
9674
9675 2012-02-20  Tristan Gingold  <gingold@adacore.com>
9676
9677         * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9678         value.
9679
9680 2012-20-18  Joel Brobecker  <brobecker@adacore.com>
9681
9682         * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9683         between function description and implementation.
9684
9685 2012-02-17  Tom Tromey  <tromey@redhat.com>
9686
9687         PR python/12070:
9688         * python/py-event.c (event_object_getset): New global.
9689         (event_object_type): Reference it.
9690         * python/py-type.c (field_object_getset): New global.
9691         (field_object_type): Reference it.
9692         * python/python-internal.h (gdb_py_generic_dict): Declare.
9693         * python/py-utils.c (gdb_py_generic_dict): New function.
9694
9695 2012-02-17  Tristan Gingold  <gingold@adacore.com>
9696
9697         * solib-darwin.c (darwin_current_sos): Check magic and filetype
9698
9699 2012-02-17  Thomas Schwinge  <thomas@codesourcery.com>
9700
9701         * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9702         TYPE_CALLING_CONVENTION annotation.
9703
9704 2012-02-16  Kevin Buettner  <kevinb@redhat.com>
9705
9706         * MAINTAINERS: Add rx to target ISA section.
9707         * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9708         (ALLDEPFILES): Add rx-tdep.c.
9709
9710 2012-02-16  Tom Tromey  <tromey@redhat.com>
9711
9712         * symfile.c (symbol_file_add_main_1): Use inferior's
9713         symfile_flags.
9714         * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9715         * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9716         inferior.
9717         * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9718         inferior.
9719         (follow_exec): Use inferior's symfile_flags.
9720         * inferior.h (struct inferior) <symfile_flags>: New field.
9721
9722 2012-02-16  Mike Frysinger  <vapier@gentoo.org>
9723
9724         PR gdb/9734:
9725         * remote-sim.c (gdbsim_create_inferior): Call error() when
9726         sim_create_inferior() fails.
9727
9728 2012-02-16  Josh Matthews  <josh@joshmatthews.net>
9729
9730         * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9731
9732 2012-02-16  Tom Tromey  <tromey@redhat.com>
9733
9734         PR c++/13653:
9735         * thread.c (struct current_thread_cleanup) <was_removable>: New
9736         field.
9737         (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9738         (make_cleanup_restore_current_thread): Initialize new field.
9739
9740 2012-02-15  Kevin Buettner  <kevinb@redhat.com>
9741
9742         * MAINTAINERS: Add rl78 to target ISA section.
9743         * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9744         (ALLDEPFILES): Add rl78-tdep.c.
9745         * NEWS: Mention rl78 as a new target.
9746
9747 2012-02-15  Aleksandar Ristovski  <aristovski@qnx.com>
9748
9749         * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9750         data.
9751         * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9752
9753 2012-02-15  Tom Tromey  <tromey@redhat.com>
9754
9755         PR gdb/12659:
9756         * infcmd.c (registers_info): Print just the current register's
9757         name.
9758
9759 2012-02-15  Tom Tromey  <tromey@redhat.com>
9760
9761         * python/py-symbol.c (sympy_value): Use _().
9762
9763 2012-02-15  Pedro Alves  <palves@redhat.com>
9764
9765         * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9766         output to be like native targets'.
9767         (remote_pid_to_str): Special case the null ptid.
9768
9769 2012-02-14  Stan Shebs  <stan@codesourcery.com>
9770
9771         * NEWS: Mention enable count command.
9772         * breakpoint.h (struct breakpoint): New field enable_count.
9773         * breakpoint.c (enable_breakpoint_disp): Add count argument.
9774         (enable_breakpoint): Add arg to call.
9775         (struct disp_data): New struct.
9776         (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9777         (do_map_enable_once_breakpoint): Create a struct and pass it.
9778         (do_map_enable_delete_breakpoint): Ditto.
9779         (do_map_enable_count_breakpoint): New function.
9780         (enable_count_command): New function.
9781         (bpstat_stop_status): Decrement enable_count.
9782         (print_one_breakpoint_location): Report enable count.
9783         (_initialize_breakpoint): Add enable count command.
9784
9785 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
9786
9787         * rl78-tdep.c (reggroups.h): Include.
9788         (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9789         (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9790         (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9791         (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9792         (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9793         (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9794         (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9795         (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9796         (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9797         (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9798         (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9799         (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9800         (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9801         (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9802         (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9803         (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9804         beginning of register list.
9805         (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9806         (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9807         (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9808         (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9809         (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9810         (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9811         (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9812         (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9813         (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9814         (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9815         (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9816         the pseudo registers.  Rearrange other pseudo registers too so
9817         that the bank registers appear at the end.
9818         (rl78_register_type): Account for the fact that the byte sized
9819         bank registers are now pseudo-registers.
9820         (rl78_register_name): Rearrange the register name array.  Make
9821         initial set of raw banked registers inaccessible.
9822         (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9823         (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9824         case for copying bytes back and forth between raw and pseudo
9825         versions of the banked registers.  Update other cases to reflect
9826         the changed names.
9827         (rl78_return_value): Update to account for changed names of
9828         raw registers.
9829         (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9830         rl78_register_sim_regno().
9831
9832 2012-02-14  Kevin Buettner  <kevinb@redhat.com>
9833
9834         * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9835         the name parameter being passed to find_pc_partial_function().
9836
9837 2012-02-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9838
9839         * MAINTAINERS: Step down from being ia64 target maintainer.
9840
9841 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
9842
9843         * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9844         compilation warning.
9845
9846 2012-02-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
9847
9848         Fix crash on loaded shlibs without loaded exec_bfd.
9849         * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9850         (set_section_command): Replace exec_bfd by p->bfd.
9851
9852 2012-02-10  Tom Tromey  <tromey@redhat.com>
9853
9854         * linespec.c (decode_line_internal): Skip symtabs_from_filename
9855         when we have a C++ qualified name.
9856
9857 2012-02-10  Pedro Alves  <palves@redhat.com>
9858
9859         * inferior.c (inferior_pid_to_str): New.
9860         (print_inferior, inferior_command): Use it.
9861
9862 2012-02-10  Pedro Alves  <palves@redhat.com>
9863
9864         * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9865         the test CFLAGS.
9866         * configure: Regenerate.
9867
9868 2012-02-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
9869
9870         * linespec.c (decode_line_internal): Fix comment correctness.
9871
9872 2012-02-09  Valery Khromov  <valery.khromov@gmail.com>
9873
9874         PR gdb/12953
9875         * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9876         * amd64bsd-nat.c: Add support for debug registers (adapted from
9877         i386bsd-nat.c).
9878         [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9879         (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9880         (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9881         (amd64bsd_dr_get_control): New functions.
9882         * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9883         * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9884         [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9885         watchpoints initialization.
9886         * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9887
9888 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9889
9890         * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9891         flds_bnds.fields.
9892         (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9893
9894 2012-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
9895
9896         * breakpoint.c (bp_location_compare): Fix comment.  Reindent the code.
9897
9898 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
9899
9900         * language.h (symbol_name_cmp_ftype): Renames
9901         symbol_name_match_p_ftype.
9902         (struct language_defn)[la_get_symbol_name_cmp]: Renames
9903         la_get_symbol_name_match_p.
9904         * ada-lang.c (ada_get_symbol_name_cmp): Renames
9905         ada_get_symbol_name_match_p.  Update comment.
9906         (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9907         * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9908         Renames symbol_name_match_p.  Update field type.
9909         (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9910         * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9911         opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9912         "la_get_symbol_name_cmp" in comments.
9913         * language.c: Likewise.
9914
9915 2012-02-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9916
9917         * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9918         %eflags offset.
9919         * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9920         (amd64_sol2_gregset32_reg_offs): Likewise.
9921
9922 2012-02-08  Joel Brobecker  <brobecker@adacore.com>
9923
9924         * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9925         of the returned BFD is allocated by GDB.
9926
9927 2012-02-07  Tom Tromey  <tromey@redhat.com>
9928
9929         PR python/12027:
9930         * python/python-internal.h (frame_object_type): Declare.
9931         * python/py-symbol.c (sympy_needs_frame): New function.
9932         (sympy_value): New function.
9933         (symbol_object_getset): Add "needs_frame".
9934         (symbol_object_methods): Add "value".
9935         * python/py-frame.c (frame_object_type): No longer static.
9936
9937 2012-02-07  Tom Tromey  <tromey@redhat.com>
9938
9939         PR python/13599:
9940         * python/py-symbol.c (sympy_line): New function.
9941         (symbol_object_getset): Add "line".
9942
9943 2012-02-07  Tom Tromey  <tromey@redhat.com>
9944
9945         * charset.c (find_charset_names): Check 'in' against NULL.
9946
9947 2012-02-06  Doug Evans  <dje@google.com>
9948
9949         * gdbtypes.h (struct main_type): Change type of name,tag_name,
9950         and fields.name members from char * to const char *.  All uses updated.
9951         (struct cplus_struct_type): Change type of fn_fieldlists.name member
9952         from char * to const char *.  All uses updated.
9953         (type_name_no_tag): Update.
9954         (lookup_unsigned_typename, lookup_signed_typename): Update.
9955         * gdbtypes.c (type_name_no_tag): Change result type
9956         from char * to const char *.  All callers updated.
9957         (lookup_unsigned_typename, lookup_signed_typename): Change type of
9958         name parameter from char * to const char *.
9959         * symtab.h (struct cplus_specific): Change type of demangled_name
9960         member from char * to const char *.  All uses updated.
9961         (struct general_symbol_info): Change type of name and
9962         mangled_lang.demangled_name members from char * to const char *.
9963         All uses updated.
9964         (symbol_get_demangled_name, symbol_natural_name): Update.
9965         (symbol_demangled_name, symbol_search_name): Update.
9966         * symtab.c (symbol_get_demangled_name): Change result type
9967         from char * to const char *.  All callers updated.
9968         (symbol_natural_name, symbol_demangled_name): Ditto.
9969         (symbol_search_name): Ditto.
9970         (completion_list_add_name): Change type of symname,sym_text,
9971         text,word parameters from char * to const char *.
9972         (completion_list_objc_symbol): Change type of sym_text,
9973         text,word parameters from char * to const char *.
9974         * ada-lang.c (find_struct_field): Change type of name parameter
9975         from char * to const char *.
9976         (encoded_ordered_before): Similarly for N0,N1 parameters.
9977         (old_renaming_is_invisible): Similarly for function_name parameter.
9978         (ada_type_name): Change result type from char * to const char *.
9979         All callers updated.
9980         * ada-lang.h (ada_type_name): Update.
9981         * buildsym.c (hashname): Change type of name parameter
9982         from char * to const char *.
9983         * buildsym.h (hashname): Update.
9984         * dbxread.c (end_psymtab): Change type of include_list parameter
9985         from char ** to const char **.
9986         * dwarf2read.c (determine_prefix): Change result type
9987         from char * to const char *.  All callers updated.
9988         * f-lang.c (find_common_for_function): Change type of name, funcname
9989         parameters from char * to const char *.
9990         * f-lang.c (find_common_for_function): Update.
9991         * f-valprint.c (list_all_visible_commons): Change type of funcname
9992         parameters from char * to const char *.
9993         * gdbarch.sh (static_transform_name): Change type of name parameter
9994         and result from char * to const char *.
9995         * gdbarch.c: Regenerate.
9996         * gdbarch.h: Regenerate.
9997         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9998         of name parameter from char * to const char *.
9999         * jv-lang.c (java_primitive_type_from_name): Ditto.
10000         (java_demangled_signature_length): Similarly for signature parameter.
10001         (java_demangled_signature_copy): Ditto.
10002         (java_demangle_type_signature): Ditto.
10003         * jv-lang.h (java_primitive_type_from_name): Update.
10004         (java_demangle_type_signature): Update.
10005         * objc-lang.c (specialcmp): Change type of a,b parameters
10006         from char * to const char *.
10007         * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10008         from char * to const char *.  All callers updated.
10009         * p-lang.h (is_pascal_string_type): Update.
10010         * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10011         of name parameter from char * to const char *.
10012         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10013         * utils.c (fprintf_symbol_filtered): Ditto.
10014         * defs.h (fprintf_symbol_filtered): Update.
10015         * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10016         * stabsread.h (end_psymtab): Update.
10017         * stack.c (find_frame_funname): Change type of funname parameter
10018         from char ** to const char **.
10019         * stack.h (find_frame_funname): Update.
10020         * typeprint.c (type_print): Change type of varstring parameter
10021         from char * to const char *.
10022         * value.h (type_print): Update.
10023         * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10024         from char * to const char *.  All callers updated.
10025         (xcoff_end_psymtab): Change type of include_list parameter
10026         from char ** to const char **.  All callers updated.
10027         (swap_sym): Similarly for name parameter.  All callers updated.
10028         * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10029         Use xstrdup.
10030         (process_coff_symbol): Use xstrdup.
10031         * stabsread.c (stabs_method_name_from_physname): Renamed from
10032         update_method_name_from_physname.  Change result type from void
10033         to char *.  All callers updated.
10034         (read_member_functions): In has_destructor case, store name in objfile
10035         obstack instead of malloc space.  In !has_stub case, fix mem leak.
10036
10037 2012-02-06  Luca Pizzamiglio  <luca.pizzamiglio@gmail.com>
10038
10039         * configure: Rebuild.
10040         * configure.ac: Put -L../bfd and -L../libiberty at the front of
10041         LDFLAGS.
10042
10043 2012-02-03  Kevin Buettner  <kevinb@redhat.com>
10044
10045         * configure.tgt (rl78-*-elf): New target.
10046         * rl78-tdep.c: New file.
10047
10048 2012-02-03  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
10049
10050         * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10051         and continue the loop.  Add QUIT statement.
10052
10053 2012-02-03  Tom Tromey  <tromey@redhat.com>
10054
10055         PR gdb/13596:
10056         * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10057         bfd_lookup_symbol_from_symtab.
10058         * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10059         gdb_bfd_lookup_symbol_from_symtab.
10060
10061 2012-02-03  Joel Brobecker  <brobecker@adacore.com>
10062
10063         * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10064         use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10065         symbol.  Add assertion that sym2 is never NULL.
10066
10067 2012-02-02  Doug Evans  <dje@google.com>
10068
10069         * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10070         "name" parameter to const char ** from char **.  All callers updated.
10071         (find_pc_partial_function): Ditto.
10072         (cache_pc_function_name): Change type to const char * from char *.
10073         * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10074         (find_pc_partial_function): Update.
10075         * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10076         type of "name" parameter to const char * from char *.
10077         All uses updated.
10078         * arch-utils.c (generic_in_solib_return_trampoline): Change
10079         type of "name" parameter to const char * from char *.
10080         * arch-utils.h (generic_in_solib_return_trampoline): Update.
10081         * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10082         type of "name" parameter to const char * from char *.
10083         * gdbarch.sh (in_solib_return_trampoline): Ditto.
10084         * gdbarch.c: Regenerate.
10085         * gdbarch.h: Regenerate.
10086         * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10087         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10088         * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10089         type of "name" parameter to const char * from char *.
10090         * skip.c (skip_function_pc): Ditto.
10091         * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10092         * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10093         * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10094         * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10095         * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10096         * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10097         * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10098         * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10099         * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10100
10101 2012-02-02  Pedro Alves  <palves@redhat.com>
10102
10103         * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10104         the current inferior has no execution.  Make sure the current
10105         remote process matches gdb's current inferior.
10106
10107 2012-02-02  Tom Tromey  <tromey@redhat.com>
10108
10109         PR gdb/13405:
10110         * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10111         read-only memory.
10112
10113 2012-02-02  Tom Tromey  <tromey@redhat.com>
10114
10115         PR gdb/9307:
10116         * symtab.c (lookup_language_this): Set block_found.
10117
10118 2012-02-01  Tom Tromey  <tromey@redhat.com>
10119
10120         PR gdb/13431:
10121         * jit.c (struct jit_inferior_data): Rewrite.
10122         (struct jit_objfile_data): New.
10123         (get_jit_objfile_data): New function.
10124         (add_objfile_entry): Update.
10125         (jit_read_descriptor): Return int.  Replace descriptor_addr
10126         argument with inf_data.  Update.  Don't call error.
10127         (jit_breakpoint_re_set_internal): Reorder logic.  Update.  Look up
10128         descriptor here.
10129         (jit_inferior_init): Don't look up descriptor.  Don't call error.
10130         (jit_reset_inferior_data_and_breakpoints)
10131         (jit_inferior_created_observer): Remove.
10132         (jit_inferior_exit_hook): Update.
10133         (jit_executable_changed_observer): Remove.
10134         (jit_event_handler): Update.
10135         (free_objfile_data): Reset inferior data if needed.
10136         (_initialize_jit): Update.
10137
10138 2012-02-01  Tom Tromey  <tromey@redhat.com>
10139
10140         * jit.c (bfd_open_from_target_memory): Move higher in file.
10141
10142 2012-02-01  Tristan Gingold  <gingold@adacore.com>
10143
10144         * libunwind-frame.c (libunwind_load): Display message if dlopen
10145         failed.
10146
10147 2012-02-01  Gary Benson  <gbenson@redhat.com>
10148
10149         * symtab.h (symbol_found_callback_ftype): New typedef.
10150         (iterate_over_symbols): Use the above.
10151         * symtab.c (iterate_over_symbols): Likewise.
10152         * language.h (language_defn->la_iterate_over_symbols): Likewise.
10153         * ada-lang.c (ada_iterate_over_symbols): Likewise.
10154         * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10155         (iterate_name_matcher): Document return values.
10156         (collect_one_symbol): Likewise.
10157         (collect_function_symbols): Likewise.
10158         (collect_symbols): Likewise.
10159
10160 2012-02-01  Tom Tromey  <tromey@redhat.com>
10161
10162         * ada-lang.c (resolve_subexp): Update.
10163         (ada_lookup_symbol_list): Add 'full_search' argument.
10164         (ada_iterate_over_symbols): Pass 0 as full_search argument to
10165         ada_lookup_symbol_list.
10166         (ada_lookup_encoded_symbol): Update.
10167         (get_var_value): Update.
10168         * ada-exp.y (block_lookup): Update.
10169         (write_var_or_type): Update.
10170         (write_name_assoc): Update.
10171         * ada-lang.h (ada_lookup_symbol_list): Update.
10172
10173 2012-01-31  Tom Tromey  <tromey@redhat.com>
10174
10175         * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10176         comment.
10177
10178 2012-01-31  Doug Evans  <dje@google.com>
10179
10180         * symtab.h: Remove outdated comment.
10181         (SYMBOL_MATCHES_NATURAL_NAME): Delete.
10182
10183 2012-02-01  Josh Matthews  <josh@joshmatthews.net>  (tiny change)
10184
10185         Fix build error in Darwin port.
10186         * i386-darwin-nat.c: Include i386-nat.h.
10187
10188 2012-01-30  Tom Tromey  <tromey@redhat.com>
10189
10190         PR breakpoints/13568:
10191         * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10192         argument.  Check for recursive includes.
10193         (dwarf_decode_macros): Create an include hash.
10194
10195 2012-01-30  Michael Eager  <eager@eagercon.com>
10196
10197         * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10198         * ppc-linux-tdep.c: Include glibc-tdep.h.
10199         (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
10200         (powerpc_linux_in_plt_stub): New function.
10201         (powerpc_linux_in_dynsym_resolve_code): New function.
10202         (ppc_skip_trampoline_code): New function.
10203         (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10204         Use glibc_skip_solib_resolver.
10205
10206 2012-01-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
10207
10208         Code cleanup: Make 1440 bytes of data segment read-only.
10209         * arch-utils.c (endian_enum): Make it const char *const [].
10210         * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10211         Likewise.
10212         * breakpoint.c (always_inserted_enums): Likewise.
10213         * cli/cli-cmds.c (script_ext_enums): Likewise.
10214         * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10215         enumlist parameter const char *const *.
10216         * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10217         const char *const *.
10218         * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10219         parameter const char *const *.
10220         * cris-tdep.c (cris_modes): Make it const char *const [].
10221         * filesystem.c (target_file_system_kinds): Likewise.
10222         * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10223         * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10224         (can_use_displaced_stepping_enum, scheduler_enums)
10225         (exec_direction_names): Likewise.
10226         * language.c (_initialize_language): Make the type_or_range_names and
10227         case_sensitive_names variables const char *const [].
10228         * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10229         * python/python.c (python_excp_enums): Likewise.
10230         * remote.c (interrupt_sequence_modes): Likewise.
10231         * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10232         * serial.c (logbase_enums): Likewise.
10233         * sh-tdep.c (sh_cc_enum): Likewise.
10234         * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10235         Likewise.
10236         * symtab.c (multiple_symbols_modes): Likewise.
10237         * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10238         Likewise.
10239         * utils.c (internal_problem_modes): Likewise.
10240
10241 2012-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
10242
10243         Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10244         * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10245         result.
10246
10247 2012-01-27  Doug Evans  <dje@google.com>
10248
10249         * configure.ac (with_python): Fix absolute path handling for win32.
10250         * configure: Regenerate.
10251
10252 2012-01-26  Doug Evans  <dje@google.com>
10253
10254         * symtab.c: Whitespace cleanup, no code changes.
10255
10256         * symtab.c (lookup_symbol_in_language): Improve comment.
10257         (lookup_symbol_aux): Fix comment.
10258
10259         * psymtab.c (add_psymbol_to_list): Result is now "void".
10260         * psympriv.h (add_psymbol_to_list): Update.
10261
10262         * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10263
10264 2012-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
10265
10266         Do not open script filenames twice.
10267         * cli/cli-cmds.c (source_script_from_stream): Pass to
10268         source_python_script also STREAM.
10269         * python/py-auto-load.c (source_section_scripts): Pass to
10270         source_python_script_for_objfile also STREAM.
10271         (auto_load_objfile_script): Pass to source_python_script_for_objfile
10272         also INPUT.
10273         * python/python-internal.h (source_python_script_for_objfile): New
10274         parameter file, rename parameter file to filename.
10275         * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10276         instead if !_WIN32.  Update the function comment.
10277         (source_python_script, source_python_script_for_objfile)
10278         (source_python_script): New parameter file, rename parameter file to
10279         filename.  Pass FILENAME to python_run_simple_file.
10280         * python/python.h (source_python_script): New parameter file, rename
10281         parameter file to filename.
10282
10283 2012-01-26  Pedro Alves  <palves@redhat.com>
10284
10285         * corelow.c (core_has_fake_pid): Delete.
10286         (core_close): Delete references to `core_has_fake_pid'.
10287         (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10288         (core_open): Delete references to `core_has_fake_pid'.
10289         (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10290         the removed global.
10291
10292 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
10293
10294         * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10295         Remove language parameter from name_matcher.  Adjust the comment.
10296         * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10297         Remove language parameter.
10298         * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10299         * linespec.c (iterate_name_matcher): Likewise.
10300         * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10301         name_matcher.  Adjust call accordingly.
10302         * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10303         (maintenance_check_symtabs): Adjust type of parameter "fun".
10304         * psymtab.h (maintenance_check_symtabs): Likewise.
10305
10306 2012-01-26  Joel Brobecker  <brobecker@adacore.com>
10307
10308         * language.h (symbol_name_match_p_ftype): New typedef.
10309         (struct language_defn): Replace field la_symbol_name_compare
10310         by la_get_symbol_name_match_p.
10311         * ada-lang.c (ada_get_symbol_name_match_p): New function.
10312         (ada_language_defn): Use it.
10313         * linespec.c (struct symbol_matcher_data): New type.
10314         (iterate_name_matcher): Rewrite.
10315         (iterate_over_all_matching_symtabs): Pass a pointer to
10316         a symbol_matcher_data struct to expand_symtabs_matching
10317         instead of just the lookup name.
10318         * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10319         opencl-lang.c, p-lang.c, language.c: Delete field
10320         la_symbol_name_compare, and replace by NULL for new field
10321         la_get_symbol_name_match_p.
10322         * symfile.h (struct quick_symbol_functions): Update comment.
10323
10324 2012-01-25  Tom Tromey  <tromey@redhat.com>
10325
10326         * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10327         dereferencing.
10328
10329 2012-01-24  Tom Tromey  <tromey@redhat.com>
10330
10331         PR symtab/12406:
10332         * solib.c (update_solib_list): Update the program space's
10333         added_solibs and deleted_solibs fields.
10334         * progspace.h (struct program_space) <added_solibs,
10335         deleted_solibs>: New fields.
10336         (clear_program_space_solib_cache): Declare.
10337         * progspace.c (release_program_space): Call
10338         clear_program_space_solib_cache.
10339         (clear_program_space_solib_cache): New function.
10340         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10341         bpstat_stop_status.  Use handle_solib_event.
10342         * breakpoint.c: Include gdb_regex.h.
10343         (print_solib_event): New function.
10344         (bpstat_print): Use print_solib_event.
10345         (bpstat_stop_status): Add special case for bp_shlib_event.
10346         (handle_solib_event): New function.
10347         (bpstat_what): Use handle_solib_event.
10348         (struct solib_catchpoint): New.
10349         (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10350         (breakpoint_hit_catch_solib, check_status_catch_solib)
10351         (print_it_catch_solib, print_one_catch_solib)
10352         (print_mention_catch_solib, print_recreate_catch_solib): New
10353         functions.
10354         (catch_solib_breakpoint_ops): New global.
10355         (catch_load_or_unload, catch_load_command_1)
10356         (catch_unload_command_1): New functions.
10357         (internal_bkpt_check_status): Add special case for
10358         bp_shlib_event.
10359         (internal_bkpt_print_it): Use print_solib_event.
10360         (initialize_breakpoint_ops): Initialize
10361         catch_solib_breakpoint_ops.
10362         (_initialize_breakpoint): Register "catch load" and "catch
10363         unload".
10364         * breakpoint.h (handle_solib_event): Declare.
10365         * NEWS: Add entry for "catch load" and "catch unload".
10366
10367 2012-01-24  Tom Tromey  <tromey@redhat.com>
10368
10369         * ada-lang.c: Include gdb_vecs.h.
10370         * charset.c: Include gdb_vecs.h.
10371         * tracepoint.h: Include gdb_vecs.h.
10372         * gdb_vecs.h: New file.
10373
10374 2012-01-24  Pedro Alves  <pedro@codesourcery.com>
10375
10376         * breakpoint.c (breakpoint_hit_catch_fork)
10377         (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10378         (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10379         * infrun.c (inferior_has_forked, inferior_has_vforked)
10380         (inferior_has_execd, inferior_has_called_syscall): Delete.
10381         (handle_syscall_event): Get syscall_number from the execution
10382         control state's wait status.
10383         (wait_for_inferior): Don't clear syscall_number.
10384
10385 2012-01-24  Pedro Alves  <palves@redhat.com>
10386
10387         * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10388         pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10389         (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10390         (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10391         `ws' parameter.
10392         (breakpoint_hit_ranged_breakpoint): Add `ws' parameter.  Return
10393         false for events other than TARGET_SIGNAL_TRAP.
10394         (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10395         Add `ws' parameter.
10396         (bkpt_breakpoint_hit): Add `ws' parameter.  Return false for
10397         events other than TARGET_SIGNAL_TRAP.
10398         (tracepoint_breakpoint_hit): Add `ws' parameter.
10399         * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10400         parameter.
10401         (bpstat_stop_status): Same.
10402         (pc_at_non_inline_function): Same.
10403         * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10404         to pass the current event's waitstatus to bpstat_stop_status
10405         and pc_at_non_inline_function.
10406
10407 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10408
10409         Code cleanup.
10410         * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10411         Update the function comment for it.
10412         (source_script_with_search): Call make_cleanup_fclose for STREAM.
10413         * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10414         for STREAM.
10415
10416 2012-01-24  Pedro Alves  <palves@redhat.com>
10417
10418         * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10419         outside `bs->stop' block.
10420         (bpstat_what): Rework bp_shlib_event handling.
10421         (internal_bkpt_check_status): If the breakpoint is a
10422         bp_shlib_event, then set bs->stop and bs->print if
10423         stop_on_solib_events is set.
10424
10425 2012-01-24  Gary Benson  <gbenson@redhat.com>
10426
10427         Delete #if 0'd out code.
10428         * stack.c (print_frame_label_vars): Remove.
10429         (catch_info): Likewise.
10430         (_initialize_stack): Remove "info catch" command.
10431         * NEWS: Mention the above.
10432
10433 2012-01-24  Pedro Alves  <palves@redhat.com>
10434
10435         * remote.c (remote_add_inferior): New `fake_pid_p' parameter.  Use
10436         it.
10437         (remote_notice_new_inferior): If the remote end doesn't support
10438         the multiprocess extensions, then the PID is fake.
10439         (add_current_inferior_and_thread): New.
10440         (remote_start_remote): Use it.
10441         (extended_remote_attach_1): Adjust.
10442         (extended_remote_create_inferior_1): Use
10443         add_current_inferior_and_thread.
10444
10445 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10446
10447         Fix watchpoints to be specific for each inferior.
10448         * breakpoint.c (watchpoint_in_thread_scope): Verify also
10449         current_program_space.
10450         * i386-nat.c (i386_inferior_data_cleanup): New.
10451         (i386_inferior_data_get): Replace variable inf_data_local by an
10452         inferior_data call.
10453         (i386_use_watchpoints): Initialize i386_inferior_data.
10454         * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10455         specific iterate_over_lwps.
10456
10457 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
10458
10459         Fix watchpoints across inferior fork.
10460         * amd64-linux-nat.c (update_debug_registers_callback): Update the
10461         comment for linux_nat_iterate_watchpoint_lwps.
10462         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10463         linux_nat_iterate_watchpoint_lwps.
10464         (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10465         * i386-linux-nat.c (update_debug_registers_callback): Update the
10466         comment for linux_nat_iterate_watchpoint_lwps.
10467         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10468         linux_nat_iterate_watchpoint_lwps.
10469         (i386_linux_prepare_to_resume): New comment on Linux kernel.
10470         * i386-nat.c: Include inferior.h.
10471         (dr_mirror): Remove.
10472         (i386_inferior_data, struct i386_inferior_data)
10473         (i386_inferior_data_get): New.
10474         (i386_debug_reg_state): Use i386_inferior_data_get.
10475         (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10476         (i386_insert_watchpoint, i386_remove_watchpoint)
10477         (i386_stopped_data_address, i386_insert_hw_breakpoint)
10478         (i386_remove_hw_breakpoint): New variable state, use
10479         i386_debug_reg_state instead of DR_MIRROR.
10480         * linux-nat.c (delete_lwp): New declaration.
10481         (num_lwps): Move here from downwards.
10482         (delete_lwp_cleanup): New.
10483         (linux_child_follow_fork): Create new child_lp, call
10484         linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10485         PTRACE_DETACH.
10486         (num_lwps): Move upwards.
10487         (linux_nat_iterate_watchpoint_lwps): New.
10488         * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10489         (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10490
10491 2012-01-24  Joel Brobecker  <brobecker@adacore.com>
10492
10493         GDB 7.4 released.
10494
10495 2012-01-23  Pedro Alves  <palves@redhat.com>
10496
10497         * top.c (caution): Rename to ...
10498         (confirm): ... this.
10499         (show_caution): Rename to ...
10500         (show_confirm): ... this.
10501         (quit_cover): Adjust.
10502         (init_main): Adjust.
10503         * top.h (caution): Rename to ...
10504         (confirm): ... this.
10505         * utils.c (internal_vproblem, defaulted_query): Adjust.
10506
10507 2012-01-23  Pedro Alves  <palves@redhat.com>
10508
10509         * top.c (caution): Update comment.
10510         (execute_command): Don't consider the current value of `caution'.
10511
10512 2012-01-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
10513
10514         * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10515
10516 2012-01-23  Ulrich Weigand  <ulrich.weigand@linaro.org>
10517
10518         * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10519         * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10520         * target.c (target_fileio_pwrite): Remove buffer address from
10521         debug output.
10522         (target_fileio_pread): Likewise.
10523
10524 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10525
10526         * NEWS: Document remote "info proc" and "generate-core-file".
10527
10528 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10529
10530         * gdbarch.sh (find_memory_regions): New callback.
10531         * gdbarch.c, gdbarch.h: Regenerate.
10532
10533         * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10534         callback before falling back to target method.
10535
10536         * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10537         (linux_target_install_ops): No longer install it.
10538
10539         * linux-tdep.c (linux_find_memory_regions): New function.
10540         (linux_init_abi): Install it.
10541
10542 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10543
10544         * gdbarch.sh (make_corefile_notes): New architecture callback.
10545         * gdbarch.c: Regenerate.
10546         * gdbarch.h: Likewise.
10547
10548         * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10549         before target_make_corefile_notes.  If NULL is returned, the
10550         target does not support core file generation.
10551
10552         * linux-nat.c: Include "linux-tdep.h".
10553         (find_signalled_thread, find_stop_signal): Remove.
10554         (linux_nat_do_thread_registers): Likewise.
10555         (struct linux_nat_corefile_thread_data): Likewise.
10556         (linux_nat_corefile_thread_callback): Likewise.
10557         (iterate_over_spus): Likewise.
10558         (struct linux_spu_corefile_data): Likewise.
10559         (linux_spu_corefile_callback): Likewise.
10560         (linux_spu_make_corefile_notes): Likewise.
10561         (linux_nat_collect_thread_registers): New function.
10562         (linux_nat_make_corefile_notes): Replace contents by call to
10563         linux_make_corefile_notes passing linux_nat_collect_thread_registers
10564         as native-only callback.
10565
10566         * linux-tdep.h: Include "bfd.h".
10567         (struct regcache): Add forward declaration.
10568         (linux_collect_thread_registers_ftype): New typedef.
10569         (linux_make_corefile_notes): Add prototype.
10570         * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10571         "regset.h", and "elf-bfd.h".
10572         (find_signalled_thread, find_stop_signal): New functions.
10573         (linux_spu_make_corefile_notes): Likewise.
10574         (linux_collect_thread_registers): Likewise.
10575         (struct linux_corefile_thread_data): New data structure.
10576         (linux_corefile_thread_callback): New funcion.
10577         (linux_make_corefile_notes): Likewise.
10578         (linux_make_corefile_notes_1): Likewise.
10579         (linux_init_abi): Install it.
10580
10581 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10582
10583         * gdbarch.sh (info_proc): New callback.
10584         * gdbarch.c, gdbarch.h: Regenerate.
10585
10586         * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10587         before falling back to the target info_proc callback.
10588
10589         * linux-nat.c: Do not include "cli/cli-utils.h".
10590         (linux_nat_info_proc): Remove.
10591         (linux_target_install_ops): No longer install it.
10592
10593         * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10594         (read_mapping): New function.
10595         (linux_info_proc): Likewise.
10596         (linux_init_abi): Install it.
10597
10598 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10599
10600         * defs.h (enum info_proc_what): Moved here from linux-nat.c
10601         * infcmd.c: (info_proc_cmd_1): New function.
10602         (info_proc_cmd): New function, moved here from equivalent routine
10603         orignally in linux-nat.c.
10604         (info_proc_cmd_mappings): Likewise.
10605         (info_proc_cmd_stat): Likewise.
10606         (info_proc_cmd_status): Likewise.
10607         (info_proc_cmd_cwd): Likewise.
10608         (info_proc_cmd_cmdline): Likewise.
10609         (info_proc_cmd_exe): Likewise.
10610         (info_proc_cmd_all): Likewise.
10611         (_initialize_infcmd): Install "info proc" command and subcommands.
10612
10613         * target.h (struct target_ops): Add to_info_proc.
10614         (target_info_proc): Add prototype.
10615         * target.c (target_info_proc): New function.
10616
10617         * procfs.c (procfs_info_proc): Add prototype.
10618         (info_proc_cmd): Rename into ...
10619         (procfs_info_proc): ... this.  Update argument types as appropriate
10620         for a to_info_proc implementation.  Handle "what" argument.
10621         (procfs_target): Install procfs_info_proc.
10622         (_initialize_procfs): No longer install "info proc" command.
10623
10624         * linux-nat.c: (enum info_proc_what): Remove.
10625         (linux_nat_info_proc_cmd_1): Rename into ...
10626         (linux_nat_info_proc): ... this.  Update argument types as appropriate
10627         for a to_info_proc implementation.
10628         (linux_nat_info_proc_cmd): Remove.
10629         (linux_nat_info_proc_cmd_mappings): Likewise.
10630         (linux_nat_info_proc_cmd_stat): Likewise.
10631         (linux_nat_info_proc_cmd_status): Likewise.
10632         (linux_nat_info_proc_cmd_cwd): Likewise.
10633         (linux_nat_info_proc_cmd_cmdline): Likewise.
10634         (linux_nat_info_proc_cmd_exe): Likewise.
10635         (linux_nat_info_proc_cmd_all): Likewise.
10636         (linux_target_install_ops): Install linux_nat_info_proc.
10637         (_initialize_linux_nat): No longer install "info proc" command
10638         and subcommands.
10639
10640 2012-01-20  Ulrich Weigand  <ulrich.weigand@linaro.org>
10641
10642         * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10643         * config.in, configure: Regenerate.
10644
10645         * target.h (struct target_ops): Add to_fileio_readlink.
10646         (target_fileio_readlink): Add prototype.
10647         * target.c (target_fileio_readlink): New function.
10648
10649         * inf-child.c: Conditionally include <sys/param.h>.
10650         (inf_child_fileio_readlink): New function.
10651         (inf_child_target): Install it.
10652
10653         * remote.c (PACKET_vFile_readlink): New enum value.
10654         (remote_hostio_readlink): New function.
10655         (init_remote_ops): Install it.
10656         (_initialize_remote): Handle vFile:readlink packet type.
10657
10658 2012-01-20  Pedro Alves  <palves@redhat.com>
10659             Ulrich Weigand  <ulrich.weigand@linaro.org>
10660
10661         * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10662         * config.in, configure: Regenerate.
10663
10664         * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10665         to_fileio_pread, to_fileio_close, to_fileio_unlink.
10666         (target_fileio_open): Add prototype.
10667         (target_fileio_pwrite): Likewise.
10668         (target_fileio_pread): Likewise.
10669         (target_fileio_close): Likewise.
10670         (target_fileio_unlink): Likewise.
10671         (target_fileio_read_alloc): Likewise.
10672         (target_fileio_read_stralloc): Likewise.
10673
10674         * target.c: Include "gdb/fileio.h".
10675         (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10676         (default_fileio_target): New function.
10677         (target_fileio_open): Likewise.
10678         (target_fileio_pwrite): Likewise.
10679         (target_fileio_pread): Likewise.
10680         (target_fileio_close): Likewise.
10681         (target_fileio_unlink): Likewise.
10682         (target_fileio_close_cleanup): Likewise.
10683         (target_fileio_read_alloc_1): Likewise.
10684         (target_fileio_read_alloc): Likewise.
10685         (target_fileio_read_stralloc): Likewise.
10686
10687         * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10688         <fcntl.h>, and <unistd.h>.
10689         (inf_child_fileio_open_flags_to_host): New function.
10690         (inf_child_errno_to_fileio_error): Likewise.
10691         (inf_child_fileio_open): Likewise.
10692         (inf_child_fileio_pwrite): Likewise.
10693         (inf_child_fileio_pread): Likewise.
10694         (inf_child_fileio_close): Likewise.
10695         (inf_child_fileio_unlink): Likewise.
10696         (inf_child_target): Install to_fileio routines.
10697
10698         * remote.c (init_remote_ops): Install to_fileio routines.
10699
10700 2012-01-20  Pedro Alves  <palves@redhat.com>
10701             Ulrich Weigand  <ulrich.weigand@linaro.org>
10702
10703         * remote.c (remote_multi_process_p): Only check for multi-process
10704         protocol feature, do not check for extended protocol.
10705         (remote_supports_multi_process): Check for extended protocol here.
10706         (set_general_process): Likewise.
10707         (extended_remote_kill): Likewise.
10708         (remote_pid_to_str): Likewise.
10709         (remote_query_supported): Always query multiprocess mode.
10710
10711 2012-01-20  Pedro Alves  <palves@redhat.com>
10712             Ulrich Weigand  <ulrich.weigand@linaro.org>
10713
10714         * inferior.h (struct inferior): Add fake_pid_p.
10715         * inferior.c (exit_inferior_1): Clear fake_pid_p.
10716         * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10717         magic_null_ptid since the remote side doesn't provide a real PID.
10718
10719 2012-01-19  Tom Tromey  <tromey@redhat.com>
10720
10721         * NEWS: Combine the two Python sections.
10722
10723 2012-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
10724
10725         * target.h (target_close): Update comment on the target's unpush state.
10726
10727 2012-01-19  Pedro Alves  <palves@redhat.com>
10728
10729         * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10730         linux_nat_async directly instead of going through the target
10731         vector.
10732         * target.c (unpush_target): Close target after unpushing it, not
10733         before.
10734
10735 2012-01-19  Gary Benson  <gbenson@redhat.com>
10736
10737         * mdebugread.c (sort_blocks): Replace integer constants with ones
10738         derived from FIRST_LOCAL_BLOCK.
10739
10740 2012-01-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
10741             Jan Kratochvil  <jan.kratochvil@redhat.com>
10742
10743         PR gdb/9538
10744         * symfile.c (find_separate_debug_file): New function.
10745         (terminate_after_last_dir_separator): Likewise.
10746         (find_separate_debug_file_by_debuglink): Also try realpath.
10747         * configure.ac (AC_CHECK_FUNCS): Add lstat.
10748         * configure: Regenerate.
10749         * config.in: Regenerate.
10750
10751 2012-01-18  Doug Evans  <dje@google.com>
10752
10753         * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10754         (main.o): Remove rule.
10755         * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10756         (--with-sysroot): Rewrite.
10757         * configure: Regenerate.
10758         * config.in: Regenerate.
10759
10760 2012-01-18  Sergio Durigan Junior  <sergiodj@redhat.com>
10761
10762         * parse.c (initialize_expout): New function.
10763         (reallocate_expout): Likewise.
10764         (parse_exp_in_context): Use `initialize_expout' and
10765         `reallocate_expout' when appropriate.
10766
10767 2012-01-18  Pedro Alves  <palves@redhat.com>
10768
10769         * record.c (struct record_breakpoint, record_breakpoint_p)
10770         (record_breakpoints): New.
10771         (record_insert_breakpoint, record_remove_breakpoint): Manage
10772         record breakpoints list.  Only remove breakpoints from the
10773         inferior if they had been inserted there in the first place.
10774
10775 2012-01-17  Doug Evans  <dje@google.com>
10776
10777         * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10778         if we know we don't have a file name to look for.
10779
10780 2012-01-17  Pedro Alves  <palves@redhat.com>
10781
10782         * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10783         the frame's stop reason is UNWIND_UNAVAILABLE.
10784
10785 2012-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
10786
10787         Fix compilation error.
10788         * m2-exp.y (yyerror): Use ANSI C prototype.
10789
10790 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
10791
10792         * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10793         (growbuf_by_size): Likewise.
10794         (yyerror): Likewise.
10795         * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10796         (modblock): Remove variable (was #if 0'ed).
10797         (parse_number): Convert prototype from K&R to ANSI C.
10798         (yyerror): Likewise.
10799         * objc-exp.y (parse_number): Likewise.
10800         (yyerror): Likewise.
10801         (yylex): Remove #if 0'ed code.
10802         * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10803         (yyerror): Likewise.
10804
10805 2012-01-16  Tom Tromey  <tromey@redhat.com>
10806
10807         * NEWS: Add item.
10808         * symtab.h (compare_filenames_for_search): Declare.
10809         * symtab.c (compare_filenames_for_search): New function.
10810         (iterate_over_some_symtabs): Use it.
10811         * symfile.h (struct quick_symbol_functions)
10812         <map_symtabs_matching_filename>: Change spec.
10813         * psymtab.c (partial_map_symtabs_matching_filename): Use
10814         compare_filenames_for_search.  Update for new spec.
10815         * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10816         compare_filenames_for_search.  Update for new spec.
10817         * breakpoint.c (clear_command): Use compare_filenames_for_search.
10818
10819 2012-01-16  Tom Tromey  <tromey@redhat.com>
10820
10821         PR python/13281:
10822         * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10823         (struct main_type) <flag_flag_enum>: New field.
10824         * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10825         * NEWS: Add entries.
10826         * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10827         enums.
10828         * python/lib/gdb/printing.py (_EnumInstance): New class.
10829         (FlagEnumerationPrinter): Likewise.
10830
10831 2012-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
10832
10833         * breakpoint.c (create_sals_from_address_default): New function.
10834         (create_breakpoints_sal_default): Likewise.
10835         (decode_linespec_default): Likewise.
10836         (is_marker_spec): Removed.
10837         (strace_marker_p): New function.
10838         (init_breakpoint_sal): Using `strace_marker_p' instead of
10839         `is_marker_spec'.
10840         (create_breakpoint): Call method `create_sals_from_address' from
10841         breakpoint_ops, replacing code that created SALs conditionally
10842         on the type of the breakpoint.  Call method `create_breakpoints_sal',
10843         replacing code that created breakpoints conditionally on the type
10844         wanted.
10845         (base_breakpoint_create_sals_from_address): New function.
10846         (base_breakpoint_create_breakpoints_sal): Likewise.
10847         (base_breakpoint_decode_linespec): Likewise.
10848         (base_breakpoint_ops): Add methods
10849         `base_breakpoint_create_sals_from_address',
10850         `base_breakpoint_create_breakpoints_sal' and
10851         `base_breakpoint_decode_linespec'.
10852         (bkpt_create_sals_from_address): New function.
10853         (bkpt_create_breakpoints_sal): Likewise.
10854         (bkpt_decode_linespec): Likewise.
10855         (tracepoint_create_sals_from_address): Likewise.
10856         (tracepoint_create_breakpoints_sal): Likewise.
10857         (tracepoint_decode_linespec): Likewise.
10858         (strace_marker_create_sals_from_address): Likewise.
10859         (strace_marker_create_breakpoints_sal): Likewise.
10860         (strace_marker_decode_linespec): Likewise.
10861         (strace_marker_breakpoint_ops): New variable.
10862         (addr_string_to_sals): Remove `marker_spec'.  Call method
10863         `decode_linespec' from breakpoint_ops, replacing code that decoded
10864         an address string into a SAL.  Use `strace_marker_p' instead of
10865         `marker_spec'.
10866         (strace_command): Decide whether we are dealing with a static
10867         tracepoint with marker or not.  Use the appropriate breakpoint_ops.
10868         (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10869         * breakpoint.h (linespec_result, linespec_sals): New forward
10870         declarations.
10871         (breakpoint_ops) <create_sals_from_address>,
10872         <create_breakpoints_sal>, <decode_linespec>: New methods.
10873
10874 2012-01-14  Doug Evans  <dje@google.com>
10875
10876         * NEWS: Update text for "maint set python print-stack".
10877         It is deprecated in gdb 7.4 and deleted in 7.5.
10878
10879 2012-01-13  Eli Zaretskii  <eliz@gnu.org>
10880
10881         * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10882         including curses.h.
10883
10884 2012-01-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
10885
10886         * configure: Regenerate.
10887         * config.in: Regenerate.
10888
10889 2012-01-12  Keith Seitz  <keiths@redhat.com>
10890
10891         PR mi/10586
10892         * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10893         (ANONYMOUS_UNION_NAME): Define.
10894         (is_path_expr_parent): New function.
10895         (get_path_expr_parent): New function.
10896         (is_anonymous_child): New function.
10897         (create_child_with_value): If the child is anonymous and without
10898         a name, assign an object name to it.
10899         (c_describe_child): Use get_path_expr_parent to determine
10900         the parent expression.
10901         If there field represents an anonymous struct or union and
10902         has no name, set an appropriate display name and expression.
10903         (cplus_describe_child): Likewise.
10904
10905 2012-01-12  Pedro Alves  <palves@redhat.com>
10906
10907         * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10908         available when %ebp is found to be zero (outermost).
10909
10910 2012-01-11  Andreas Tobler  <andreast@fgznet.ch>
10911
10912         * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10913         an internal gdb_static_assert.
10914         * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10915
10916 2012-01-11  Tom Tromey  <tromey@redhat.com>
10917
10918         PR gdb/9598:
10919         * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10920         catch" and "catch throw".
10921
10922 2012-01-11  Paul Hilfinger  <hilfingr@adacore.com>
10923
10924         * blockframe.c (block_innermost_frame): Start search from selected
10925         frame, if present, or otherwise the current frame.
10926
10927         * c-exp.y (variable): Update innermost_block for
10928         'block COLONCOLON NAME' clause.
10929         * m2-exp.y (variable): Ditto.
10930         * objc-exp.y (variable): Ditto.
10931
10932 2012-01-10  Tom Tromey  <tromey@redhat.com>
10933
10934         PR python/13199:
10935         * python/python.c (finish_python_initialization): Set sys.argv.
10936
10937 2012-01-10  Doug Evans  <dje@google.com>
10938
10939         * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd".  New arg
10940         "want_line_info".  All callers updated.
10941         (dwarf_decode_lines_1): New function.
10942         (handle_DW_AT_stmt_list): Add function comment.
10943         New arg "want_line_info".  All callers updated.
10944         (read_file_scope,read_type_unit_scope): Move comment from
10945         handle_DW_AT_stmt_list to here.
10946
10947 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10948
10949         Fix regression after libiberty/ update for GCC PR 6057 and others.
10950         * c-exp.y (operator) <OPERATOR DELETE>
10951         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10952         * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10953         (make_builtin_type, make_name): New variable i, add gdb_assert.
10954         (operator) <OPERATOR NEW>: Update ARGS to 3.
10955         (operator) <OPERATOR DELETE>: Add trailing space.
10956         (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10957         (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10958         * cp-support.c (cp_canonicalize_string): Check NULL from
10959         cp_comp_to_string, call warning and return.
10960
10961 2012-01-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
10962
10963         Fix duplicate .o files after omitting libbfd.a.
10964         * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10965         (SFILES): Add corelow.c.
10966         (COMMON_OBS): Add corelow.o.
10967         (ALLDEPFILES): Remove corelow.c.
10968         * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10969         * config/alpha/alpha-osf3.mh: Likewise.
10970         * config/alpha/fbsd.mh: Likewise.
10971         * config/arm/nbsdaout.mh: Likewise.
10972         * config/arm/nbsdelf.mh: Likewise.
10973         * config/i386/i386gnu.mh: Likewise.
10974         * config/ia64/hpux.mh: Likewise.
10975         * config/ia64/linux.mh: Likewise.
10976         * config/m32r/linux.mh: Likewise.
10977         * config/m68k/linux.mh: Likewise.
10978         * config/mips/irix5.mh: Likewise.
10979         * config/mips/irix6.mh: Likewise.
10980         * config/pa/hpux.mh: Likewise.
10981         * config/pa/linux.mh: Likewise.
10982         * config/powerpc/aix.mh: Likewise.
10983         * config/sparc/linux.mh: Likewise.
10984         * config/sparc/linux64.mh: Likewise.
10985         * config/sparc/sol2.mh: Likewise.
10986         * config/vax/vax.mh: Likewise.
10987         * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10988         (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10989         (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10990         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10991         (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10992         (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10993         (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10994         (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10995         (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10996         (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10997         (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10998         (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10999         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11000         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11001         (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11002         (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11003         (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11004         (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11005         (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11006         (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11007         (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11008         (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11009         corelow.o from gdb_target_obs.
11010         * corefile.c (core_target): Update the comment on NULL value.
11011         (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11012         * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11013         MATCHES.  Drop YUMMY set on NULL.
11014         (core_close): Do not call exit_inferior_silent on zero PID.  Do not
11015         reclaim CORE_DATA if it is already NULL.
11016
11017 2012-01-09  Doug Evans  <dje@google.com>
11018
11019         * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11020         * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11021
11022 2012-01-09  Keith Seitz  <keiths@redhat.com>
11023
11024         * breakpoint.c (wrapper.h): Don't include.
11025
11026 2012-01-09  Keith Seitz  <keiths@redhat.com>
11027
11028         * Makefile.in (SFILES): Remove wrapper.c.
11029         (HFILES_NO_SRCDIR): Remove wrapper.h.
11030         (COMMON_OBS): Remove wrapper.o.
11031         * cli/cli-interp.c: Don't inlude wrapper.h.
11032         * corelow.c: Likewise.
11033         (core_open): Replace gdb_target_find_new_threads with
11034         TRY_CATCH around target_find_new_threads.
11035         * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11036         * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11037         * varobj.c (varobj_create): Likewise for parse_exp_1 and
11038         evaluate_expression.
11039         (varobj_set_value): Likewise for evaluate_expression and
11040         value_assign.
11041         (install_new_variable): Likewise for value_fetch_lazy.
11042         (adjust_value_for_child_access): Likewise for value_ind.
11043         (c_describe_child): Likewise for value_subscript and
11044         value_ind.
11045         (c_value_of_root): Likewise for evaluate_expression.
11046         * wrapper.c: Remove.
11047         * wrapper.h: Remove.
11048
11049 2012-01-09  Doug Evans  <dje@google.com>
11050
11051         * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11052         partial_read_comp_unit_head.  Replace "buffer", "buffer_size" and
11053         "abfd" args with "section".  All callers updated.
11054         Error checking code moved ...
11055         (error_check_comp_unit_head): ... here.  New function.
11056         (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11057         Delete arg "abfd".  New arg "type_offset".  All callers updated.
11058         (create_debug_types_hash_table): Simplify by using
11059         read_and_check_type_unit_head.
11060
11061         * parser-defs.h (namecopy): Delete.
11062         * parse.c (namecopy, namecopy_size): Move into copy_name.
11063
11064 2012-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
11065
11066         Partially fix duplicate .o files after omitting libbfd.a.
11067         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11068         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11069         * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11070         * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11071         * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11072         * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11073         * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11074
11075 2012-01-09  Pedro Alves  <palves@redhat.com>
11076
11077         * MAINTAINERS: Update my email address.
11078
11079 2012-01-08  Doug Evans  <dje@google.com>
11080
11081         * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11082         n_type_units.  Rename type_comp_units to all_type_units.
11083         All uses updated.
11084         (add_signatured_type_cu_to_table): Renamed from
11085         add_signatured_type_cu_to_list.  All callers updated.
11086
11087         * gdbtypes.h (struct cplus_struct_type): Delete member
11088         nfn_fields_total.  All uses removed.
11089
11090 2012-01-06  Doug Evans  <dje@google.com>
11091
11092         * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11093         to top of file.
11094         (dwarf2_find_comp_unit): Delete.
11095         (process_psymtab_comp_unit): Make result "void".
11096         Delete args buffer, info_ptr, buffer_size, and replace with
11097         "section".  All callers updated.
11098         (dwarf2_build_psymtabs_hard): Simplify.
11099
11100 2012-01-06  Sergio Durigan Junior  <sergiodj@redhat.com>
11101             Thiago Jung Bauermann  <bauerman@br.ibm.com>
11102
11103         * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11104         before `struct gdb_exception'.
11105         * breakpoint.c (update_global_location_list_nothrow)
11106         (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11107         * cp-abi.c (value_rtti_type): Likewise.
11108         * cp-support.c (cp_validate_operator): Likewise.
11109         * infrun.c (insert_exception_resume_breakpoint)
11110         (check_exception_resume, keep_going): Likewise.
11111         * mi-interp.c (mi_breakpoint_created)
11112         (mi_breakpoint_modified): Likewise.
11113         * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11114         * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11115         (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11116
11117 2012-01-05  Doug Evans  <dje@google.com>
11118
11119         * dwarf2read.c (statement_prologue): Delete, unused.
11120
11121         * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11122         * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11123
11124         * dwarf2read.c (comp_unit_header): Delete, unused.
11125
11126 2012-01-05  Ulrich Weigand  <uweigand@de.ibm.com>
11127
11128         * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11129         * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11130
11131 2012-01-05  Khoo Yit Phang  <khooyp@cs.umd.edu>
11132
11133         * infrun.c (normal_stop): Don't skip calling the normal_stop
11134         observers if the thread was doing a multi-step, but stopped for
11135         some reason other than stepping.
11136
11137 2012-01-05  Pedro Alves  <alves.ped@gmail.com>
11138
11139         * cli/cli-decode.h: Add comments.
11140         (CMD_LIST_AMBIGUOUS): Moved to command.h
11141         (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11142         (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11143         (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11144         (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11145         (add_com, add_com_alias, add_info, add_info_alias)
11146         (complete_on_cmdlist, complete_on_enum, help_list): Remove
11147         declarations.
11148         * command.h: Add and adjust comments.
11149         (CMD_LIST_AMBIGUOUS): Moved here.
11150         (help_cmd, help_cmd_list): Delete declarations.
11151
11152 2012-01-04  Doug Evans  <dje@google.com>
11153
11154         * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11155         All callers updated.
11156         (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11157         Replace all arguments with "per_cu".  All callers updated.
11158
11159         * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11160
11161         * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11162         New arg "per_cu".  All callers updated.
11163
11164         Delete #if 0'd out code.
11165         * language.c (binop_result_type): Delete.
11166         (simple_type, ordered_type, same_type, integral_type): Delete.
11167         (numeric_type, character_type, string_type, boolean_type): Delete.
11168         (float_type, structured_type): Delete.
11169         * language.h: Update.
11170
11171 2012-01-04  Tom Tromey  <tromey@redhat.com>
11172
11173         * python/py-value.c (valpy_binop): Initialize 'res_val'.
11174
11175 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11176
11177         * corefile.c (close_exec_file): Delete.
11178         (reopen_exec_file): Remove commented out code that seems related
11179         to close_exec_file, which is being deleted here.
11180         * inferior.h (close_exec_file): Delete.
11181         * fork-child.c (fork_inferior): Remove call to fork_inferior.
11182
11183 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11184
11185         * ada-lang.c: #include "cli/cli-utils.h".
11186         (get_selections): Use skip_spaces.
11187         (ada_get_next_arg): Use skip_spaces and skip_to_space.
11188         (catch_ada_exception_command_split): Use skip_spaces.
11189         (ada_decode_assert_location): Likewise.
11190
11191 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11192
11193         * linespec.c (decode_line_internal): Check for C++ or Java
11194         compound constructs only if the current language is C, C++
11195         or Java.
11196
11197 2012-01-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
11198
11199         Revert:
11200         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11201                     Joel Brobecker  <brobecker@adacore.com>
11202         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11203         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11204         3 times.
11205         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11206         fall through into AT_ENTRY_POINT.
11207         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
11208         DUMMY_ADDR with it.
11209         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11210         PPC_INSN_SIZE skip to 3 times.
11211
11212 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11213
11214         * linespec.c (add_minsym): Preserve function descriptors.
11215
11216 2012-01-04  Ulrich Weigand  <uweigand@de.ibm.com>
11217
11218         * breakpoint.c (all_locations_are_pending): Consider locations
11219         in program spaces executing during startup pending as well.
11220
11221 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11222
11223         Copyright year update in most files of the GDB Project.
11224
11225 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11226
11227         * copyright.sh: Delete.
11228         * copyright.py: Rewrite.
11229
11230 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11231
11232         * gnulib/extra/update-copyright: New file, imported from gnulib.
11233
11234 2012-01-04  Joel Brobecker  <brobecker@adacore.com>
11235
11236         * README (Copyright and License Notices): New section.
11237
11238 2012-01-03  Tom Tromey  <tromey@redhat.com>
11239
11240         PR python/12533:
11241         * python/py-value.c (valpy_dereference, valpy_get_address
11242         valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11243         (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11244         (valpy_absolute, valpy_richcompare): Free intermediate values.
11245
11246 2011-01-03  Joel Brobecker  <brobecker@adacore.com>
11247
11248         * ada-lang.c: Reformat the copyright notice.
11249
11250 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11251
11252         * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11253         * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11254         (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11255         (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11256         Revert this part of:
11257         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11258         Build gdb directly from *.o files not using libgdb.a.
11259         * Makefile.in (COMMON_OBS): Remove solib-target.o.
11260
11261 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11262
11263         * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11264         gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11265         Reformat the copyright header.
11266
11267 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11268
11269         Revert this part of:
11270         2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11271         Remove the gdbtui binary.
11272         * gdb.c (main): Remove args.interpreter_p initialization.
11273         * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11274         * main.h (struct captured_main_args): Remove interpreter_p.
11275
11276 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11277
11278         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11279
11280 2012-01-02  Joel Brobecker  <brobecker@adacore.com>
11281
11282         * top.c (print_gdb_version): Update copyright year.
11283
11284 2012-01-02  Yao Qi  <yao@codesourcery.com>
11285
11286         * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11287
11288 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11289             Joel Brobecker  <brobecker@adacore.com>
11290
11291         Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11292         * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11293         3 times.
11294         * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11295         fall through into AT_ENTRY_POINT.
11296         (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len.  Adjust
11297         DUMMY_ADDR with it.
11298         * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11299         PPC_INSN_SIZE skip to 3 times.
11300
11301 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11302
11303         * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11304         the return value.
11305         * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11306
11307 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11308
11309         Build gdb directly from *.o files not using libgdb.a.
11310         * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11311         (COMMON_OBS): Remove solib-target.o.
11312         (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11313         (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11314         (LIBGDB_OBS, libgdb.a): Move it above.
11315         * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11316         (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11317         (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11318         (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11319         (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11320         (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11321         (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11322         (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11323         (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11324         (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11325         (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11326         (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11327         (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11328         (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11329         (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11330         (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11331         (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11332         (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11333         (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11334         (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11335         (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11336         (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11337         (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11338         (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11339         (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11340         (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11341         (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11342
11343 2012-01-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
11344
11345         Remove the gdbtui binary.
11346         * .gitignore (/gdbtui): Remove.
11347         * Makefile.in (TUI): Remove.
11348         (SUBDIR_TUI_OBS): Remove tui-main.o.
11349         (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11350         (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11351         (tui-main.o): Remove.
11352         (all_object_files): Remove tui-main.o.
11353         * NEWS: New note for the gdbtui removal.
11354         * configure: Rebuilt.
11355         * configure.ac: No longer add all-tui, clean-tui, install-tui and
11356         uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11357         CONFIG_UNINSTALL respectively.
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         * tui/tui-main.c: Remove.
11362
11363 2012-01-01  Doug Evans  <dje@google.com>
11364
11365         * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11366         (dwarf2_physname, read_import_statement): Ditto.
11367         (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11368         (process_structure_scope read_subroutine_type): Ditto.
11369         (read_typedef, load_partial_dies, read_partial_die): Ditto.
11370         (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11371         (dwarf2_fetch_die_location_block): Ditto.
11372         (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11373
11374         * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11375         All callers updated.
11376         (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11377         (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11378         (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11379
11380         * dwarf2read.c (load_cu): Move assert to more useful location.
11381
11382         * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11383         All callers updated.
11384
11385         * dwarf2read.c (dwarf2_per_objfile): Add comment.
11386         (dwarf2_elf_names): Minor reformat.
11387         (dwarf2_per_cu_data): Tweak comment.
11388         (dwarf2_read_section): Fix comment.
11389         (create_all_comp_units): Fix comment.
11390         (load_full_comp_unit): Fix comment.
11391         (process_full_comp_unit): Fix comment.
11392         (read_signatured_type): Fix comment.
11393
11394 For older changes see ChangeLog-2011.
11395 \f
11396 Local Variables:
11397 mode: change-log
11398 left-margin: 8
11399 fill-column: 74
11400 version-control: never
11401 coding: utf-8
11402 End: