Fix typo in earlier entry.
[external/binutils.git] / gdb / ChangeLog
1 2015-02-23  Pedro Alves  <palves@redhat.com>
2
3         * remote.c (skip_to_semicolon): New function.
4         (remote_parse_stop_reply) <T stop reply>: Use it.  Don't
5         special case the stop reasons that look like hex numbers
6         upfront.  Instead handle real register numbers after matching
7         all the known stop reasons.
8
9 2015-02-21  Doug Evans  <dje@google.com>
10
11         PR c++/17976, symtab/17821
12         * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
13         is_in_anonymous.  All callers updated.
14         (find_symbol_in_baseclass): Ditto.
15         (cp_lookup_nested_symbol_1): Ditto.  Don't search all static blocks
16         for symbols in an anonymous namespace.
17         * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
18         DW_AT_name directly.
19         (dwarf2_name): Convert missing namespace name to
20         CP_ANONYMOUS_NAMESPACE_STR.
21
22 2015-02-20  Pedro Alves  <palves@redhat.com>
23
24         * linux-nat.c (linux_handle_extended_wait): Call
25         thread_db_notice_clone whenever a new clone LWP is detected.
26         (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
27         functions.
28         * linux-nat.h (thread_db_attach_lwp): Delete declaration.
29         (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
30         (linux_unstop_all_lwps): Declare.
31         * linux-thread-db.c (struct thread_get_info_inout): Delete.
32         (thread_get_info_callback): Delete.
33         (thread_from_lwp): Use td_thr_get_info and record_thread.
34         (thread_db_attach_lwp): Delete.
35         (thread_db_notice_clone): New function.
36         (try_thread_db_load_1): If /proc is mounted and shows the
37         process'es task list, walk over all LWPs and call thread_from_lwp
38         instead of relying on td_ta_thr_iter.
39         (attach_thread): Don't call check_thread_signals here.  Split the
40         tail part of the function (which adds the thread to the core GDB
41         thread list) to ...
42         (record_thread): ... this function.  Call check_thread_signals
43         here.
44         (thread_db_wait): Don't call thread_db_find_new_threads_1.  Always
45         call thread_from_lwp.
46         (thread_db_update_thread_list): Rename to ...
47         (thread_db_update_thread_list_org): ... this.
48         (thread_db_update_thread_list): New function.
49         (thread_db_find_thread_from_tid): Delete.
50         (thread_db_get_ada_task_ptid): Simplify.
51         * nat/linux-procfs.c: Include <sys/stat.h>.
52         (linux_proc_task_list_dir_exists): New function.
53         * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
54
55 2015-02-20  Pedro Alves  <palves@redhat.com>
56
57         * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
58         main LWP.  Handle the case of waitpid returning 0 if we're already
59         attached to the LWP.  Don't set the LWP's last_resume_kind to
60         resume_stop if we already knew about the LWP.
61         (linux_nat_filter_event): Add debug logs.
62
63 2015-02-20  Pedro Alves  <palves@redhat.com>
64
65         * target.h (forward_target_decr_pc_after_break): Delete
66         declaration.
67
68 2015-02-20  Pedro Alves  <palves@redhat.com>
69
70         PR threads/18006
71         * linux-thread-db.c (thread_get_info_callback): Return early if
72         the thread's lwp id is -1.
73
74 2015-02-20  Joel Brobecker  <brobecker@adacore.com>
75
76         GDB 7.9 released.
77
78 2015-02-19  Steve Ellcey  <sellcey@imgtec.com>
79
80         * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
81         (dtrace_get_probes) Change type of variable 'dof'.
82
83 2015-02-19  Antoine Tremblay  <antoine.tremblay@ericsson.com>
84
85         PR breakpoints/16812
86         * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
87         * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
88         * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
89
90 2015-02-19  David Taylor  <dtaylor@emc.com>
91
92         * common/ax.def (setv): Fix consumed entry in setv DEFOP.
93
94 2015-02-18  Patrick Palka  <patrick@parcs.ath.cx>
95
96         * tui/tui-io.c (tui_handle_resize_during_io): Remove this
97         function.
98         (tui_putc): Don't call tui_handle_resize_during_io.
99         (tui_getc): Likewise.
100         (tui_mld_getc): Likewise.
101         * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
102         (tui_sigwinch_token): New static variable.
103         (tui_initialize_win): Adjust documentation.  Set
104         tui_sigwinch_token.
105         (tui_async_resize_screen): New asynchronous callback.
106         (tui_sigwinch_handler): Adjust documentation.  Asynchronously
107         invoke tui_async_resize_screen.
108
109 2015-02-18  Jose E. Marchesi  <jose.marchesi@oracle.com>
110
111         * configure: Regenerated.
112         * configure.ac: Use GDB_AC_TRANSFORM.
113         * Makefile.in (aclocal_m4_deps): Added transform.m4.
114         * acinclude.m4: sinclude transform.m4.
115         * transform.m4: New file.
116         (GDB_AC_TRANSFORM): New macro.
117
118 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
119
120         * NEWS: Announce the support for DTrace SDT probes.
121
122 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
123
124         * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
125         (amd64_dtrace_parse_probe_argument): New function.
126         (amd64_dtrace_probe_is_enabled): Likewise.
127         (amd64_dtrace_enable_probe): Likewise.
128         (amd64_dtrace_disable_probe): Likewise.
129         (amd64_linux_init_abi): Register the
130         `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
131         `gdbarch_dtrace_disable_probe' and
132         `gdbarch_dtrace_probe_is_enabled' hooks.
133         (amd64_dtrace_disabled_probe_sequence_1): New constant.
134         (amd64_dtrace_disabled_probe_sequence_2): Likewise.
135         (amd64_dtrace_enable_probe_sequence): Likewise.
136         (amd64_dtrace_disable_probe_sequence): Likewise.
137
138 2015-01-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
139
140         * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
141         the -probe-dtrace new vpossible value for PROBE_MODIFIER.
142         * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
143         handle ELF files.
144         * Makefile.in (SFILES): dtrace-probe.c added.
145         * configure: Regenerate.
146         * dtrace-probe.c: New file.
147         (SHT_SUNW_dof): New constant.
148         (dtrace_probe_type): New enum.
149         (dtrace_probe_arg): New struct.
150         (dtrace_probe_arg_s): New typedef.
151         (struct dtrace_probe_enabler): New struct.
152         (dtrace_probe_enabler_s): New typedef.
153         (dtrace_probe): New struct.
154         (dtrace_probe_is_linespec): New function.
155         (dtrace_dof_sect_type): New enum.
156         (dtrace_dof_dofh_ident): Likewise.
157         (dtrace_dof_encoding): Likewise.
158         (DTRACE_DOF_ENCODE_LSB): Likewise.
159         (DTRACE_DOF_ENCODE_MSB): Likewise.
160         (dtrace_dof_hdr): New struct.
161         (dtrace_dof_sect): Likewise.
162         (dtrace_dof_provider): Likewise.
163         (dtrace_dof_probe): Likewise.
164         (DOF_UINT): New macro.
165         (DTRACE_DOF_PTR): Likewise.
166         (DTRACE_DOF_SECT): Likewise.
167         (dtrace_process_dof_probe): New function.
168         (dtrace_process_dof): Likewise.
169         (dtrace_build_arg_exprs): Likewise.
170         (dtrace_get_arg): Likewise.
171         (dtrace_get_probes): Likewise.
172         (dtrace_get_probe_argument_count): Likewise.
173         (dtrace_can_evaluate_probe_arguments): Likewise.
174         (dtrace_evaluate_probe_argument): Likewise.
175         (dtrace_compile_to_ax): Likewise.
176         (dtrace_probe_destroy): Likewise.
177         (dtrace_gen_info_probes_table_header): Likewise.
178         (dtrace_gen_info_probes_table_values): Likewise.
179         (dtrace_probe_is_enabled): Likewise.
180         (dtrace_probe_ops): New variable.
181         (info_probes_dtrace_command): New function.
182         (_initialize_dtrace_probe): Likewise.
183         (dtrace_type_name): Likewise.
184
185 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
186
187         * gdbarch.sh (dtrace_parse_probe_argument): New.
188         (dtrace_probe_is_enabled): Likewise.
189         (dtrace_enable_probe): Likewise.
190         (dtrace_disable_probe): Likewise.
191         * gdbarch.c: Regenerate.
192         * gdbarch.h: Regenerate.
193
194 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
195
196         * stap-probe.c (stap_probe_ops): Add NULLs in the static
197         stap_probe_ops for `enable_probe' and `disable_probe'.
198         * probe.c (enable_probes_command): New function.
199         (disable_probes_command): Likewise.
200         (_initialize_probe): Define the cli commands `enable probe' and
201         `disable probe'.
202         (parse_probe_linespec): New function.
203         (info_probes_for_ops): Use parse_probe_linespec.
204         * probe.h (probe_ops): New hooks `enable_probe' and
205         `disable_probe'.
206
207 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
208
209         * probe.c (compute_probe_arg): Moved from stap-probe.c
210         (compile_probe_arg): Likewise.
211         (probe_funcs): Likewise.
212         * stap-probe.c (compute_probe_arg): Moved to probe.c.
213         (compile_probe_arg): Likewise.
214         (probe_funcs): Likewise.
215
216 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
217
218         * probe.c (print_ui_out_not_applicables): New function.
219         (exists_probe_with_pops): Likewise.
220         (info_probes_for_ops): Do not include column headers for probe
221         types for which no probe has been actually found on any object.
222         Also invoke `print_ui_out_not_applicables' in order to match the
223         column rows with the header when probes of several types are
224         listed.
225         Print the "Type" column.
226         * probe.h (probe_ops): Added a new probe operation `type_name'.
227         * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
228         (stap_type_name): New function.
229
230 2015-02-17  Patrick Palka  <patrick@parcs.ath.cx>
231
232         * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
233         (key_is_command_char): Delete.
234
235 2015-02-17  Pedro Alves  <palves@redhat.com>
236
237         * tui/tui.c (tui_enable): Resize windows before anything
238         might show a window.
239
240 2015-02-17  Max Ostapenko  <m.ostapenko@partner.samsung.com>
241
242         PR gdb/17984
243         * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
244         (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
245         call.
246         * aarch64-tdep.h (tdesc_aarch64): Declare.
247
248 2015-02-12  Mark Wielaard  <mjw@redhat.com>
249
250         * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
251
252 2015-02-13  Doug Evans  <dje@google.com>
253
254         * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
255         anonymous_namespace to is_in_anonymous for consistency with the rest
256         of the file.
257         (cp_lookup_bare_symbol): Fix typo in comment.
258         (cp_search_static_and_baseclasses): Ditto.
259         (search_symbol_list): Use vertical space in comment better.
260         (reset_directive_searched): Ditto. Fix typo.
261         (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
262
263 2015-02-13  Yao Qi  <yao.qi@arm.com>
264
265         * MAINTAINERS: Update my email address.
266
267 2015-02-12  Doug Evans  <dje@google.com>
268
269         * symtab.c (completion_list_add_name): Fix memory leak.
270
271 2015-02-12  Doug Evans  <dje@google.com>
272
273         * completer.c (complete_line): Remove incorrect comment.
274
275 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
276
277         * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
278         (py_print_frame): Use RETURN_MASK_ERROR.
279
280 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
281
282         * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
283         function comment.  Wrap all function that can throw in cleanups.
284         (gdbpy_apply_frame_filter): Wrap all function that can throw in
285         cleanups.
286
287 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
288
289         * python/py-framefilter.c (py_print_frame): Substitute goto error.
290         Remove the error label.
291
292 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
293
294         * python/py-framefilter.c (py_print_frame): Put conditional code paths
295         with goto first, indent the former else codepath left.  Put variable
296         'elided' to a new inner block.
297
298 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
299
300         * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
301
302 2015-02-11  Pedro Alves  <palves@redhat.com>
303
304         * xcoffread.c (within_function): Delete.
305
306 2015-02-11  Tom Tromey  <tromey@redhat.com>
307             Pedro Alves <palves@redhat.com>
308
309         * breakpoint.c (base_breakpoint_ops): Delete.
310         * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
311         * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
312         * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
313         * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
314         * python/py-arch.c (arch_object_type): Make extern.
315         * python/py-block.c (block_syms_iterator_object_type): Make extern.
316         * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
317         * python/py-cmd.c (cmdpy_object_type): Make extern.
318         * python/py-continueevent.c (continue_event_object_type)
319         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
320         parameter.  Update all callers.
321         * python/py-evtregistry.c (eventregistry_object_type): Make extern.
322         * python/py-exitedevent.c (exited_event_object_type): Make extern.
323         * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
324         * python/py-function.c (fnpy_object_type): Make extern.
325         * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
326         * python/py-infevents.c (call_pre_event_object_type)
327         (inferior_call_post_event_object_type).
328         (memory_changed_event_object_type): Make extern.
329         * python/py-infthread.c (thread_object_type): Make extern.
330         * python/py-lazy-string.c (lazy_string_object_type): Make extern.
331         * python/py-linetable.c (linetable_entry_object_type)
332         (linetable_object_type, ltpy_iterator_object_type): Make extern.
333         * python/py-newobjfileevent.c (new_objfile_event_object_type)
334         (clear_objfiles_event_object_type): Make extern.
335         * python/py-objfile.c (objfile_object_type): Make extern.
336         * python/py-param.c (parmpy_object_type): Make extern.
337         * python/py-progspace.c (pspace_object_type): Make extern.
338         * python/py-signalevent.c (signal_event_object_type): Make extern.
339         * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
340         * python/py-type.c (type_object_type, field_object_type)
341         (type_iterator_object_type): Make extern.
342         * python/python.c (python_extension_script_ops)
343         (python_extension_ops): Make extern.
344         * stap-probe.c (stap_probe_ops): Make extern.
345
346 2015-02-11  Pedro Alves  <pedro@codesourcery.com>
347
348         * infrun.c (adjust_pc_after_break): Don't adjust the PC just
349         because the event thread is not the current thread.
350
351 2015-02-11  Doug Evans  <xdje42@gmail.com>
352
353         * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
354         been initialized yet, return NULL.
355
356 2015-02-11  Doug Evans  <dje@google.com>
357
358         * symfile.h (new_symfile_objfile): Delete.
359         * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
360         All callers updated.
361
362 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
363
364         * tui/tui-io.c (tui_handle_resize_during_io): Call
365         tui_update_gdb_sizes() after resizing the screen.
366         * tui/tui.c (tui_enable): Resize the terminal before
367         calling tui_update_gdb_sizes().
368
369 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
370
371         * tui/tui-io.c (tui_getc): Move cursor to the end of the command
372         line before printing a newline.
373
374 2015-02-11  Mark Wielaard  <mjw@redhat.com>
375
376         * utils.c (producer_is_gcc): Return true or false.
377
378 2015-02-10  Mark Wielaard  <mjw@redhat.com>
379
380         * utils.h (producer_is_gcc): Change return type to bool. Add major
381         argument.
382         * utils.c (producer_is_gcc): Likewise.
383         (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
384         * dwarf2read.c (check_producer): Likewise.
385
386 2015-02-10  Pedro Alves  <palves@redhat.com>
387
388         * infrun.c (displaced_step_fixup): Switch to the event thread
389         before calling gdbarch_displaced_step_fixup.
390
391 2015-02-10  Antoine Tremblay <antoine.tremblay@ericsson.com>
392
393         * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
394
395 2015-02-10  Simon Marchi  <simon.marchi@ericsson.com>
396
397         * ada-varobj.c (ada_name_of_child): Constify parent.
398         (ada_path_expr_of_child): Same.
399         (ada_value_of_child): Same.
400         (ada_type_of_child): Same.
401         * c-varobj.c (c_is_path_expr_parent): Same.
402         (c_describe_child): Same.
403         (c_name_of_child): Same.
404         (c_value_of_child): Same.
405         (c_type_of_child): Same.
406         (cplus_number_of_children): Same.
407         (cplus_describe_child): Constify var.
408         (cplus_name_of_child): Constify parent.
409         (cplus_value_of_child): Same.
410         (cplus_type_of_child): Same.
411         * jv-varobj.c (java_name_of_child): Same.
412         (java_value_of_child): Same.
413         (java_type_of_child): Same.
414         * varobj.c (value_of_child): Same.
415         (varobj_default_is_path_expr_parent): Constify var, parent and return
416         value.
417         (varobj_get_path_expr): Constify var, modify path_expr through
418         mutable_var.
419         (install_new_value): Constify parent.
420         (value_of_child): Constify parent.
421         * varobj.h (struct varobj): Constify parent.
422         (struct lang_varobj_ops): Constify name_of_child, value_of_child and
423         type_of_child.
424         (varobj_get_path_expr): Constify var.
425         (varobj_get_path_expr_parent): Constify var and return value.
426
427 2015-02-10  Luis Machado  <lgustavo@codesourcery.com>
428
429         * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
430         (arm_prologue_this_id): Move PC and SP limit checks to
431         arm_prologue_unwind_stop_reason.
432         (arm_prologue_unwind) <stop_reason> : Set to
433         arm_prologue_unwind_stop_reason.
434
435 2015-02-09  Mark Wielaard  <mjw@redhat.com>
436
437         * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
438         DW_LANG_Fortran08 as language_fortran.
439
440 2015-02-09  Sergio Durigan Junior  <sergiodj@redhat.com>
441
442         PR remote/17946
443         * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
444         of pointer against char.
445
446 2015-02-09  Mark Wielaard  <mjw@redhat.com>
447
448         * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
449         (c_type_print_modifier): Likewise.
450         * dwarf2read.c (read_tag_atomic_type): New function.
451         (read_type_die_1): Handle DW_TAG_atomic_type.
452         * gdbtypes.c (make_atomic_type): New function.
453         (recursive_dump_type): Handle TYPE_ATOMIC.
454         * gdbtypes.h (enum type_flag_values): Renumber.
455         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
456         (TYPE_ATOMIC): New macro.
457         (make_atomic_type): Declare.
458
459 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
460
461         * btrace.c (ftrace_find_call): Skip gaps.
462         (ftrace_new_function): Initialize level.
463         (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
464         (ftrace_new_switch): Update
465         level computation.
466         (ftrace_new_gap): New.
467         (ftrace_update_function): Create new function after gap.
468         (btrace_compute_ftrace_bts): Create gap on error.
469         (btrace_stitch_bts): Update parameters.  Clear trace if it
470         becomes empty.
471         (btrace_stitch_trace): Update parameters.  Update callers.
472         (btrace_clear): Reset the number of gaps.
473         (btrace_insn_get): Return NULL if the iterator points to a gap.
474         (btrace_insn_number): Return zero if the iterator points to a gap.
475         (btrace_insn_end): Allow gaps at the end.
476         (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
477         (btrace_find_insn_by_number): Assert that the found iterator does
478         not point to a gap.
479         (btrace_call_next, btrace_call_prev): Assert that the last function
480         is not a gap.
481         * btrace.h (btrace_bts_error): New.
482         (btrace_function): Update comment.
483         (btrace_function) <insn, insn_offset, number>: Update comment.
484         (btrace_function) <errcode>: New.
485         (btrace_thread_info) <ngaps>: New.
486         (btrace_thread_info) <replay>: Update comment.
487         (btrace_insn_get): Update comment.
488         * record-btrace.c (btrace_ui_out_decode_error): New.
489         (record_btrace_info): Print number of gaps.
490         (btrace_insn_history, btrace_call_history): Call
491         btrace_ui_out_decode_error for gaps.
492         (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
493
494 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
495
496         * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
497         * nat/linux-btrace.c: (btrace_this_cpu): New.
498         (cpu_supports_bts): Call btrace_this_cpu.
499         (intel_supports_bts): Add cpu parameter.
500
501 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
502
503         * btrace.h (btrace_insn_class): New.
504         (btrace_insn) <size, iclass>: New.
505         * btrace.c (ftrace_find_call): Update parameters.  Update users.
506         Use instruction classification.
507         (ftrace_new_return): Update parameters.  Update users.
508         (ftrace_update_function): Update parameters.  Update users.  Use
509         instruction classification.
510         (ftrace_update_insns): Update parameters.  Update users.
511         (ftrace_classify_insn): New.
512         (btrace_compute_ftrace_bts): Fill in new btrace_insn fields.  Add
513         TRY_CATCH around call to gdb_insn_length.
514
515 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
516
517         * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
518         Update parameters.  Update users.
519
520 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
521
522         * btrace.c (parse_xml_btrace_conf_bts): Add size.
523         (btrace_conf_bts_attributes): New.
524         (btrace_conf_children): Add attributes.
525         * common/btrace-common.h (btrace_config_bts): New.
526         (btrace_config)<bts>: New.
527         (btrace_config): Update comment.
528         * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
529         Use config.
530         * features/btrace-conf.dtd: Increment version.  Add size
531         attribute to bts element.
532         * record-btrace.c (set_record_btrace_bts_cmdlist,
533         show_record_btrace_bts_cmdlist): New.
534         (record_btrace_adjust_size, record_btrace_print_bts_conf,
535         record_btrace_print_conf, cmd_set_record_btrace_bts,
536         cmd_show_record_btrace_bts): New.
537         (record_btrace_info): Call record_btrace_print_conf.
538         (_initialize_record_btrace): Add commands.
539         * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
540         (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
541         (btrace_sync_conf): Synchronize bts size.
542         (_initialize_remote): Add Qbtrace-conf:bts:size packet.
543         * NEWS: Announce new commands and new packets.
544
545 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
546
547         * Makefile.in (XMLFILES): Add btrace-conf.dtd.
548         * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
549         (x86_linux_btrace_conf): New.
550         (x86_linux_create_target): Initialize to_btrace_conf.
551         * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
552         Check format.  Split into this and ...
553         (linux_enable_bts): ... this.
554         (linux_btrace_conf): New.
555         (perf_event_skip_record): Renamed into ...
556         (perf_event_skip_bts_record): ... this.  Updated users.
557         (linux_disable_btrace): Split into this and ...
558         (linux_disable_bts): ... this.
559         (linux_read_btrace): Check format.
560         * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
561         (linux_btrace_conf): New.
562         (btrace_target_info)<ptid>: Moved.
563         (btrace_target_info)<conf>: New.
564         (btrace_target_info): Split into this and ...
565         (btrace_tinfo_bts): ... this.  Updated users.
566         * btrace.c (btrace_enable): Update parameters.
567         (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
568         (btrace_conf_children, btrace_conf_attributes)
569         (btrace_conf_elements): New.
570         * btrace.h (btrace_enable): Update parameters.
571         (btrace_conf, parse_xml_btrace_conf): New.
572         * common/btrace-common.h (btrace_config): New.
573         * feature/btrace-conf.dtd: New.
574         * record-btrace.c (record_btrace_conf): New.
575         (record_btrace_cmdlist): New.
576         (record_btrace_enable_warn, record_btrace_open): Pass
577         &record_btrace_conf.
578         (record_btrace_info): Print recording format.
579         (cmd_record_btrace_bts_start): New.
580         (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
581         (_initialize_record_btrace): Add "record btrace bts" subcommand.
582         Add "record bts" alias command.
583         * remote.c (remote_state)<btrace_config>: New.
584         (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
585         (remote_protocol_features): Add qXfer:btrace-conf:read.
586         (remote_open_1): Call remote_btrace_reset.
587         (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
588         (btrace_target_info)<conf>: New.
589         (btrace_sync_conf, btrace_read_config): New.
590         (remote_enable_btrace): Update parameters.  Call btrace_sync_conf and
591         btrace_read_conf.
592         (remote_btrace_conf): New.
593         (init_remote_ops): Initialize to_btrace_conf.
594         (_initialize_remote): Add qXfer:btrace-conf packet.
595         * target.c (target_enable_btrace): Update parameters.
596         (target_btrace_conf): New.
597         * target.h (target_enable_btrace): Update parameters.
598         (target_btrace_conf): New.
599         (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
600         (target_ops)<to_enable_btrace>: Update parameters and comment.
601         (target_ops)<to_btrace_conf>: New.
602         * target-delegates: Regenerate.
603         * target-debug.h (target_debug_print_const_struct_btrace_config_p)
604         (target_debug_print_const_struct_btrace_target_info_p): New.
605         * NEWS: Announce new command and new packet.
606
607 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
608
609         * nat/linux-btrace.h (perf_event_buffer): New.
610         (btrace_target_info) <buffer, size, data_head>: Replace with ...
611         <bts>: ... this.
612         * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
613         (perf_event_buffer_size, perf_event_buffer_begin)
614         (perf_event_buffer_end, linux_btrace_has_changed): Removed.
615         Updated users.
616         (perf_event_new_data): New.
617
618 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
619
620         * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
621         * record-btrace.c (record_btrace_open): Remove call to
622         target_supports_btrace.
623         * remote.c (remote_supports_btrace): Update parameters.
624         * target.c (target_supports_btrace): Update parameters.
625         * target.h (to_supports_btrace, target_supports_btrace): Update
626         parameters.
627         * target-delegates.c: Regenerate.
628         * target-debug.h (target_debug_print_enum_btrace_format): New.
629         * nat/linux-btrace.c
630         (kernel_supports_btrace): Rename into ...
631         (kernel_supports_bts): ... this.  Update users.  Update warning text.
632         (intel_supports_btrace): Rename into ...
633         (intel_supports_bts): ... this.  Update users.
634         (cpu_supports_btrace): Rename into ...
635         (cpu_supports_bts): ... this.  Update users.
636         (linux_supports_btrace): Update parameters.  Split into this and ...
637         (linux_supports_bts): ... this.
638         * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
639
640 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
641
642         * Makefile.in (SFILES): Add common/btrace-common.c.
643         (COMMON_OBS): Add common/btrace-common.o.
644         (btrace-common.o): Add build rules.
645         * btrace.c (parse_xml_btrace): Update parameters.
646         (parse_xml_btrace_block): Set format field.
647         (btrace_add_pc, btrace_fetch): Use struct btrace_data.
648         (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
649         (btrace_compute_ftrace): Split into this and...
650         (btrace_compute_ftrace_bts): ...this.
651         (btrace_stitch_trace): Split into this and...
652         (btrace_stitch_bts): ...this.
653         * btrace.h (parse_xml_btrace): Update parameters.
654         (make_cleanup_btrace_data): New.
655         * common/btrace-common.c: New.
656         * common/btrace-common.h: Include common-defs.h.
657         (btrace_block_s): Update comment.
658         (btrace_format): New.
659         (btrace_format_string): New.
660         (btrace_data_bts): New.
661         (btrace_data): New.
662         (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
663         * remote.c (remote_read_btrace): Update parameters.
664         * target.c (target_read_btrace): Update parameters.
665         * target.h (target_read_btrace): Update parameters.
666         (target_ops)<to_read_btrace>: Update parameters.
667         * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
668         * target-delegates.c: Regenerate.
669         * target-debug (target_debug_print_struct_btrace_data_p): New.
670         * nat/linux-btrace.c (linux_read_btrace): Split into this and...
671         (linux_read_bts): ...this.
672         * nat/linux-btrace.h (linux_read_btrace): Update parameters.
673
674 2015-02-06  Doug Evans  <dje@google.com>
675
676         * remote-m32r-sdi.c: Include symfile.h.
677
678 2015-02-06  Doug Evans  <dje@google.com>
679
680         * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
681         * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
682         to here.
683
684 2015-02-06  Pedro Alves  <palves@redhat.com>
685
686         * linux-thread-db.c (find_new_threads_callback): Add debug output.
687
688 2015-02-06  Simon Marchi  <simon.marchi@ericsson.com>
689
690         PR gdb/15678
691         * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
692         (enable_count_command): Check args for NULL value.
693
694 2015-02-05  Doug Evans  <xdje42@gmail.com>
695
696         * guile/scm-frame.c: Fix spelling errors in a comment.
697
698 2015-02-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
699
700         * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
701         * python/py-value.c (valpy_fetch_lazy): Use it.  Remove cast to the
702         return type.
703
704 2015-02-04  Pedro Alves  <palves@redhat.com>
705
706         * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
707         (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
708         returns true.
709         (resume_stopped_resumed_lwps): Don't check whether the thread is
710         marked as executing.
711         (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
712
713 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
714
715         * regset.h (struct regset): Add flags field.
716         (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
717         * corelow.c (get_core_register_section): Add warning if the size
718         exceeds the requested size and the regset does not have the
719         REGSET_VARIABLE_SIZE flag set.
720         * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
721         flag.
722         * armbsd-tdep.c (armbsd_gregset): Likewise.
723         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
724         * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
725         * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
726         * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
727
728 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
729
730         * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
731         For ".reg-xstate", explicitly specify the requested section size
732         via X86_XSTATE_SIZE instead of just 0 on input and
733         X86_XSTATE_MAX_SIZE on output.
734         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
735         Likewise.
736
737 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
738
739         PR corefiles/17808:
740         * gdbarch.sh (iterate_over_regset_sections_cb): Document this
741         function type, particularly its SIZE parameter.
742         * gdbarch.h: Regenerate.
743         * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
744         actual against required size using ">=" instead of "==".
745         (amd64_collect_fpregset): Likewise.
746         * i386-tdep.c (i386_supply_gregset): Likewise.
747         (i386_collect_gregset): Likewise.
748         (i386_supply_fpregset): Likewise.
749         (i386_collect_fpregset): Likewise.
750         * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
751         (mips_fill_gregset_wrapper): Likewise.
752         (mips_supply_fpregset_wrapper): Likewise.
753         (mips_fill_fpregset_wrapper): Likewise.
754         (mips64_supply_gregset_wrapper): Likewise.
755         (mips64_fill_gregset_wrapper): Likewise.
756         (mips64_supply_fpregset_wrapper): Likewise.
757         (mips64_fill_fpregset_wrapper): Likewise.
758         * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
759         (am33_supply_fpregset_method): Likewise.
760         (am33_collect_gregset_method): Likewise.
761         (am33_collect_fpregset_method): Likewise.
762
763 2015-02-04  Doug Evans  <dje@google.com>
764             Pedro Alves  <palves@redhat.com>
765             Eli Zaretskii  <eliz@gnu.org>
766
767         PR tui/17810
768         * tui/tui-command.c (tui_refresh_cmd_win): New function.
769         * tui/tui-command.c (tui_refresh_cmd_win): Declare.
770         * tui/tui-file.c: #include tui/tui-command.h.
771         (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
772         (tui_file_flush): Refresh command window if stream is gdb_stdout.
773         * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
774
775 2015-02-04  Pedro Alves  <palves@redhat.com>
776
777         Fix build breakage.
778         * event-loop.c (gdb_do_one_event): Add default switch case.
779
780 2015-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
781
782         Filter out inferior gcc option -fpreprocessed.
783         * compile/compile.c (filter_args): New function.
784         (get_args): Use it.
785
786 2015-02-03  Pedro Alves  <palves@redhat.com>
787
788         * event-loop.c: Don't declare nor define a queue type for
789         gdb_event_p.
790         (event_queue): Delete.
791         (create_event, create_file_event, gdb_event_xfree)
792         (initialize_event_loop, process_event): Delete.
793         (gdb_do_one_event): Return as soon as one event is handled.
794         (handle_file_event): Change prototype.  Used the passed in
795         file_handler pointer and ready_mask instead of looping over all
796         file handlers.
797         (gdb_wait_for_event): Update the poll/select timeouts before
798         blocking.  Run event handlers directly instead of queueing events.
799         Return as soon as one event is handled.
800         (struct async_event_handler_data): Delete.
801         (invoke_async_event_handler): Delete.
802         (check_async_event_handlers): Change return type to int.  Run
803         event handlers directly instead of queueing events.  Return as
804         soon as one event is handled.
805         (handle_timer_event): Delete.
806         (update_wait_timeout): New function, factored out from
807         poll_timers.
808         (poll_timers): Reimplement.
809         * event-loop.h (initialize_event_loop): Delete declaration.
810         * top.c (gdb_init): Don't call initialize_event_loop.
811
812 2015-02-03  Pedro Alves  <palves@redhat.com>
813
814         * event-loop.c (clear_async_event_handler): New function.
815         * event-loop.h (clear_async_event_handler): New declaration.
816         * record-btrace.c (record_btrace_async): New function.
817         (init_record_btrace_ops): Install record_btrace_async.
818         * record-full.c (record_full_async): New function.
819         (record_full_resume): Don't mark the async event source here.
820         (init_record_full_ops): Install record_full_async.
821         (record_full_core_resume): Don't mark the async event source here.
822         (init_record_full_core_ops): Install record_full_async.
823         * remote.c (remote_async): Mark and clear the async stop reply
824         queue event-loop token as appropriate.
825
826 2015-02-03  Pedro Alves  <palves@redhat.com>
827
828         * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
829         target_is_async_p instead of target_can_async.
830         (linux_nat_wait): Use target_is_async_p instead of
831         target_can_async.  Don't enable async here.
832         * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
833         target_is_async_p instead of target_can_async.
834
835 2015-02-02  Simon Marchi  <simon.marchi@ericsson.com>
836
837         * varobj.h (lang_varobj_ops): Mention which return values need
838         to be freed.
839
840 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
841
842         * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
843
844 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
845
846         PR gdb/17856:
847         * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
848         results found in the cache.
849
850 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
851
852         PR gdb/17854:
853         * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
854         when allocating a new one.
855
856 2015-02-01  Tom Tromey  <tom@tromey.com>
857
858         * MAINTAINERS: Remove myself.
859
860 2015-01-31  Doug Evans  <xdje42@gmail.com>
861
862         * dwarf2read.c (process_structure_scope): Update setting of
863         TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
864         * gdbtypes.c (internal_type_vptr_fieldno): New function.
865         (set_type_vptr_fieldno): New function.
866         (internal_type_vptr_basetype): New function.
867         (set_type_vptr_basetype): New function.
868         (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
869         TYPE_VPTR_BASETYPE.
870         (allocate_cplus_struct_type): Initialize vptr_fieldno.
871         (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
872         (print_cplus_stuff): ... moved here.
873         (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
874         * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
875         moved to ...
876         (struct cplus_struct_type): ... here.  All uses updated.
877         (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
878         (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
879         (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
880         * stabsread.c (read_tilde_fields): Update setting of
881         TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
882
883 2015-01-31  Doug Evans  <xdje42@gmail.com>
884
885         * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
886         to self_p.
887         (cp_print_class_member): Rename local domain to self_type.
888         * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
889         domain_type to self_type.
890         (set_die_type) <need_gnat_info>: Handle
891         TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
892         * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
893         TYPE_SPECIFIC_SELF_TYPE.
894         * gdbtypes.c (internal_type_self_type): New function.
895         (set_type_self_type): New function.
896         (smash_to_memberptr_type): Rename parameter domain to self_type.
897         Update setting of TYPE_SELF_TYPE.
898         (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
899         (smash_to_method_type): Rename parameter domain to self_type.
900         Update setting of TYPE_SELF_TYPE.
901         (check_stub_method): Call smash_to_method_type.
902         (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
903         (copy_type_recursive): Ditto.
904         * gdbtypes.h (enum type_specific_kind): New value
905         TYPE_SPECIFIC_SELF_TYPE.
906         (struct main_type) <type_specific>: New member self_type.
907         (struct cplus_struct_type) <fn_field.type>: Update comment.
908         (TYPE_SELF_TYPE): Rewrite.
909         (internal_type_self_type, set_type_self_type): Declare.
910         * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
911         self_type.
912         (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
913         * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
914         TYPE_TARGET_TYPE.
915         * stabsread.c (read_member_functions): Mark methods with
916         TYPE_CODE_METHOD, not TYPE_CODE_FUNC.  Update setting of
917         TYPE_SELF_TYPE.
918
919 2015-01-31  Doug Evans  <xdje42@gmail.com>
920
921         * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
922         All uses updated.
923
924 2015-01-31  Doug Evans  <xdje42@gmail.com>
925
926         * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
927         or unions.  Return zero if union.
928         (gnuv3_get_vtable): Call check_typedef.  Assert only passed structs.
929         (gnuv3_rtti_type): Pass already-check_typedef'd value to
930         gnuv3_get_vtable.
931         (compute_vtable_size): Assert only passed structs.
932         (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
933
934 2015-01-31  Doug Evans  <xdje42@gmail.com>
935
936         * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
937         kinds.
938
939 2015-01-31  Gary Benson <gbenson@redhat.com>
940             Doug Evans  <dje@google.com>
941
942         PR cli/9007
943         PR cli/11920
944         PR cli/15548
945         * cli/cli-cmds.c (complete_command): Notify user if max-completions
946         reached.
947         * common/common-exceptions.h (enum errors)
948         <MAX_COMPLETIONS_REACHED_ERROR>: New value.
949         * completer.h (get_max_completions_reached_message): New declaration.
950         (max_completions): Likewise.
951         (completion_tracker_t): New typedef.
952         (new_completion_tracker): New declaration.
953         (make_cleanup_free_completion_tracker): Likewise.
954         (maybe_add_completion_enum): New enum.
955         (maybe_add_completion): New declaration.
956         (throw_max_completions_reached_error): Likewise.
957         * completer.c (max_completions): New global variable.
958         (new_completion_tracker): New function.
959         (free_completion_tracker): Likewise.
960         (make_cleanup_free_completion_tracker): Likewise.
961         (maybe_add_completions): Likewise.
962         (throw_max_completions_reached_error): Likewise.
963         (complete_line): Remove duplicates and limit result to max_completions
964         entries.
965         (get_max_completions_reached_message): New function.
966         (gdb_display_match_list): Handle max_completions.
967         (_initialize_completer): New declaration and function.
968         * symtab.c: Include completer.h.
969         (completion_tracker): New static variable.
970         (completion_list_add_name): Call maybe_add_completion.
971         (default_make_symbol_completion_list_break_on_1): Renamed from
972         default_make_symbol_completion_list_break_on.  Maintain
973         completion_tracker across calls to completion_list_add_name.
974         (default_make_symbol_completion_list_break_on): New function.
975         * top.c (init_main): Set rl_completion_display_matches_hook.
976         * tui/tui-io.c: Include completer.h.
977         (tui_old_rl_display_matches_hook): New static global.
978         (tui_rl_display_match_list): Notify user if max-completions reached.
979         (tui_setup_io): Save/restore rl_completion_display_matches_hook.
980         * NEWS (New Options): Mention set/show max-completions.
981
982 2015-01-31  Gary Benson  <gbenson@redhat.com>
983
984         * symtab.c (struct add_name_data) <code>: New field.
985         Updated comments.
986         (add_symtab_completions): New function.
987         (symtab_expansion_callback): Likewise.
988         (default_make_symbol_completion_list_break_on): Set datum.code.
989         Move minimal symbol scan before calling expand_symtabs_matching.
990         Scan known primary symtabs for externs and statics before calling
991         expand_symtabs_matching.  Pass symtab_expansion_callback as
992         expansion_notify argument to expand_symtabs_matching.  Do not scan
993         primary symtabs for externs and statics after calling
994         expand_symtabs_matching.
995
996 2015-01-31  Gary Benson  <gbenson@redhat.com>
997
998         * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
999         (struct quick_symbol_functions) <expand_symtabs_matching>:
1000         New argument expansion_notify.  All uses updated.
1001         (expand_symtabs_matching): New argument expansion_notify.
1002         All uses updated.
1003         * symfile-debug.c (debug_qf_expand_symtabs_matching):
1004         Also print expansion notify.
1005         * symtab.c (expand_symtabs_matching_via_partial): Call
1006         expansion_notify whenever a partial symbol table is expanded.
1007         * dwarf2read.c (dw2_expand_symtabs_matching): Call
1008         expansion_notify whenever a symbol table is instantiated.
1009
1010 2015-01-31  Doug Evans  <xdje42@gmail.com>
1011
1012         * cli-out.c: #include completer.h, readline/readline.h.
1013         (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
1014         (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
1015         (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
1016         * cli-out.h (cli_display_match_list): Declare.
1017         * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
1018         (ELLIPSIS_LEN): Ditto.
1019         (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
1020         (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
1021         (gdb_fnprint, gdb_print_filename): Ditto.
1022         (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
1023         (gdb_display_match_list): Ditto.
1024         * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
1025         (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
1026         (mld_beep_ftype, mld_read_key_ftype): Ditto.
1027         (match_list_displayer): New struct.
1028         (gdb_display_match_list): Declare.
1029         * top.c (init_main): Set rl_completion_display_matches_hook.
1030         * tui/tui-io.c: #include completer.h.
1031         (printable_part, PUTX, print_filename, get_y_or_n): Delete.
1032         (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
1033         (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
1034         (tui_mld_getc, tui_mld_read_key): Ditto.
1035         (tui_rl_display_match_list): Rewrite.
1036         (tui_handle_resize_during_io): New arg for_completion.  All callers
1037         updated.
1038
1039 2015-01-31  Doug Evans  <xdje42@gmail.com>
1040
1041         Add symbol lookup cache.
1042         * NEWS: Document new options and commands.
1043         * symtab.c (symbol_cache_key): New static global.
1044         (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
1045         (SYMBOL_LOOKUP_FAILED): New macro.
1046         (symbol_cache_slot_state): New enum.
1047         (block_symbol_cache): New struct.
1048         (symbol_cache): New struct.
1049         (new_symbol_cache_size, symbol_cache_size): New static globals.
1050         (hash_symbol_entry, eq_symbol_entry): New functions.
1051         (symbol_cache_byte_size, resize_symbol_cache): New functions.
1052         (make_symbol_cache, free_symbol_cache): New functions.
1053         (get_symbol_cache, symbol_cache_cleanup): New function.
1054         (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
1055         (symbol_cache_lookup, symbol_cache_clear_slot): New function.
1056         (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
1057         (symbol_cache_flush, symbol_cache_dump): New functions.
1058         (maintenance_print_symbol_cache): New function.
1059         (maintenance_flush_symbol_cache): New function.
1060         (symbol_cache_stats): New function.
1061         (maintenance_print_symbol_cache_statistics): New function.
1062         (symtab_new_objfile_observer): New function.
1063         (symtab_free_objfile_observer): New function.
1064         (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
1065         (_initialize_symtab): Init symbol_cache_key.  New parameter
1066         maint symbol-cache-size.  New maint commands print symbol-cache,
1067         print symbol-cache-statistics, flush-symbol-cache.
1068         Install new_objfile, free_objfile observers.
1069
1070 2015-01-31  Joel Brobecker  <brobecker@adacore.com>
1071
1072         PR symtab/17855
1073         * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
1074         to end.
1075
1076 2015-01-31  Doug Evans  <xdje42@gmail.com>
1077
1078         * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
1079         * auto-load.c: #include ctype.h.
1080         (struct auto_load_pspace_info): Replace member loaded_scripts with
1081         new members loaded_script_files, loaded_script_texts.
1082         (auto_load_pspace_data_cleanup): Update.
1083         (init_loaded_scripts_info): Update.
1084         (get_auto_load_pspace_data_for_loading): Update.
1085         (maybe_add_script_file): Renamed from maybe_add_script.  All callers
1086         updated.
1087         (maybe_add_script_text): New function.
1088         (clear_section_scripts): Update.
1089         (source_script_file, execute_script_contents): New functions.
1090         (source_section_scripts): Add support for
1091         SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
1092         (print_scripts): New function.
1093         (auto_load_info_scripts): Also print inlined scripts.
1094         (maybe_print_unsupported_script_warning): Renamed from
1095         unsupported_script_warning_print.  All callers updated.
1096         (maybe_print_script_not_found_warning): Renamed from
1097         script_not_found_warning_print.  All callers updated.
1098         * extension-priv.h (struct extension_language_script_ops): New member
1099         objfile_script_executor.
1100         * extension.c (ext_lang_objfile_script_executor): New function.
1101         * extension.h (objfile_script_executor_func): New typedef.
1102         (ext_lang_objfile_script_executor): Declare.
1103         * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
1104         * guile/guile.c (guile_extension_script_ops): Update.
1105         * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
1106         * python/python.c (python_extension_script_ops): Update.
1107         (gdbpy_execute_objfile_script): New function.
1108
1109 2015-01-31  Eli Zaretskii  <eliz@gnu.org>
1110
1111         * tui/tui-io.c (tui_expand_tabs): New function.
1112         (tui_puts, tui_redisplay_readline): Expand TABs into the
1113         appropriate number of spaces.
1114         * tui/tui-regs.c: Include tui-io.h.
1115         (tui_register_format): Call tui_expand_tabs to expand TABs into
1116         the appropriate number of spaces.
1117         * tui/tui-io.h: Add prototype for tui_expand_tabs.
1118
1119 2015-01-30  Doug Evans  <dje@google.com>
1120
1121         * NEWS: "info source" command now display producer string if present.
1122         * source.c (source_info): Print producer string if present.
1123
1124 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
1125
1126         * varobj.c (varobj_delete): Fix comment.
1127
1128 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
1129
1130         * varobj.c (create_child): Modify comment.
1131
1132 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
1133
1134         * ada-varobj.c (ada_number_of_children): Constify struct varobj *
1135         parameter.
1136         (ada_name_of_variable): Same.
1137         (ada_path_expr_of_child): Same.
1138         (ada_value_of_variable): Same.
1139         (ada_value_is_changeable_p): Same.
1140         (ada_value_has_mutated): Same.
1141         * c-varobj.c (varobj_is_anonymous_child): Same.
1142         (c_is_path_expr_parent): Same.
1143         (c_number_of_children): Same.
1144         (c_name_of_variable): Same.
1145         (c_path_expr_of_child): Same.
1146         (get_type): Same.
1147         (c_value_of_variable): Same.
1148         (cplus_number_of_children): Same.
1149         (cplus_name_of_variable): Same.
1150         (cplus_path_expr_of_child): Same.
1151         (cplus_value_of_variable): Same.
1152         * jv-varobj.c (java_number_of_children): Same.
1153         (java_name_of_variable): Same.
1154         (java_path_expr_of_child): Same.
1155         (java_value_of_variable): Same.
1156         * varobj.c (number_of_children): Same.
1157         (name_of_variable): Same.
1158         (is_root_p): Same.
1159         (varobj_ensure_python_env): Same.
1160         (varobj_get_objname): Same.
1161         (varobj_get_expression): Same.
1162         (varobj_get_display_format): Same.
1163         (varobj_get_display_hint): Same.
1164         (varobj_has_more): Same.
1165         (varobj_get_thread_id): Same.
1166         (varobj_get_frozen): Same.
1167         (dynamic_varobj_has_child_method): Same.
1168         (varobj_get_gdb_type): Same.
1169         (is_path_expr_parent): Same.
1170         (varobj_default_is_path_expr_parent): Same.
1171         (varobj_get_language): Same.
1172         (varobj_get_attributes): Same.
1173         (varobj_is_dynamic_p): Same.
1174         (varobj_get_child_range): Same.
1175         (varobj_value_has_mutated): Same.
1176         (varobj_get_value_type): Same.
1177         (number_of_children): Same.
1178         (name_of_variable): Same.
1179         (check_scope): Same.
1180         (varobj_editable_p): Same.
1181         (varobj_value_is_changeable_p): Same.
1182         (varobj_floating_p): Same.
1183         (varobj_default_value_is_changeable_p): Same.
1184
1185 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
1186
1187         * varobj.c (varobj_get_path_expr): Set var->path_expr.
1188         * c-varobj.c (c_path_expr_of_child): Set local var instead of
1189         child->path_expr.
1190         (cplus_path_expr_of_child): Same.
1191
1192 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
1193
1194         * mi-cmd-var.c (print_varobj): Free varobj_get_expression
1195         result.
1196         (mi_cmd_var_info_expression): Same.
1197         * varobj.c (varobj_get_expression): Mention in the comment that
1198         the result must by freed by the caller.
1199
1200 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
1201
1202         * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
1203         varobj_get_type.
1204         (varobj_update_one): Same.
1205         * varobj.c (update_type_if_necessary): Free curr_type_str and
1206         new_type_str.
1207         (varobj_get_type): Specify in comment that the result needs to be
1208         freed by the caller.
1209
1210 2015-01-29  Doug Evans  <dje@google.com>
1211
1212         PR symtab/17890
1213         * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
1214
1215 2015-01-25  Mark Wielaard  <mjw@redhat.com>
1216
1217         * dwarf2read.c (checkproducer): Call producer_is_gcc.
1218         * utils.c (producer_is_gcc_ge_4): Likewise.
1219         (producer_is_gcc): New function.
1220         * utils.h (producer_is_gcc): New declaration.
1221
1222 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
1223
1224         * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
1225         kind.
1226         * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
1227         parameter by "addr_stack" parameter.
1228         (resolve_dynamic_range): Replace "addr" parameter by
1229         "stack_addr" parameter.  Update function documentation.
1230         Update code accordingly.
1231         (resolve_dynamic_array, resolve_dynamic_union)
1232         (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
1233         (resolve_dynamic_type): Update code, following the changes made
1234         to resolve_dynamic_type_internal's interface.
1235         * dwarf2loc.h (struct property_addr_info): New.
1236         (dwarf2_evaluate_property): Replace "address" parameter
1237         by "addr_stack" parameter.  Adjust function documentation.
1238         (struct dwarf2_offset_baton): New.
1239         (struct dwarf2_property_baton): Update documentation of
1240         field "referenced_type" to be more general. New field
1241         "offset_info" in union data field.
1242         * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
1243         parameter by "addr_stack" parameter.  Adjust code accordingly.
1244         Add support for PROP_ADDR_OFFSET properties.
1245         * dwarf2read.c (attr_to_dynamic_prop): Add support for
1246         DW_AT_data_member_location attributes as well.  Use case
1247         statements instead of if/else condition.
1248
1249 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
1250
1251         * ada-varobj.c (ada_varobj_get_array_number_of_children):
1252         Return zero if PARENT_VALUE is NULL and parent_type's
1253         range type is dynamic.
1254
1255 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
1256
1257         * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
1258         nonzero if the type's subtype is dynamic.
1259         (resolve_dynamic_range): Also resolve the range's subtype.
1260
1261 2015-01-29  Alexander Klimov  <alserkli@inbox.ru>  (tiny patch)
1262
1263         Pushed by Joel Brobecker  <brobecker@adacore.com>.
1264         * symfile.c (unmap_overlay_command): Initialize sec to NULL.
1265
1266 2015-01-27  Doug Evans  <dje@google.com>
1267
1268         * NEWS: Mention gdb.Objfile.username.
1269         * python/py-objfile.c (objfpy_get_username): New function.
1270         (objfile_getset): Add "username".
1271
1272 2015-01-24  Mark Wielaard  <mjw@redhat.com>
1273
1274         * stack.c (return_command): Markup warning message with _.
1275
1276 2015-01-24  Doug Evans  <xdje42@gmail.com>
1277
1278         * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
1279
1280 2015-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1281
1282         Fix 100x slowdown regression on DWZ files.
1283         * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
1284         (struct line_header): Add offset and offset_in_dwz.
1285         (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
1286         (free_line_header_voidp): New declaration.
1287         (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
1288         functions.
1289         (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
1290         (handle_DW_AT_stmt_list): Use line_header_hash.
1291         (free_line_header_voidp): New function.
1292         (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
1293         (dwarf_decode_lines): New parameter decode_mapping, use it.
1294         (dwarf2_free_objfile): Free line_header_hash.
1295
1296 2015-01-23  Simon Marchi  <simon.marchi@ericsson.com>
1297
1298         PR gdb/17416
1299         * valops.c (value_rtti_indirect_type): Catch exception thrown by
1300         value_ind.
1301
1302 2015-01-15  Mark Wielaard  <mjw@redhat.com>
1303
1304         * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
1305         DW_AT_noreturn.
1306         * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
1307         calling_convention an 8 bit bit field.
1308         (TYPE_NO_RETURN): New macro.
1309         * infcmd.c (finish_command): Query if function does not return
1310         normally.
1311         * stack.c (return_command): Likewise.
1312
1313 2015-01-23  Pedro Alves  <palves@redhat.com>
1314
1315         * linux-nat.c (linux_is_async_p): New macro.
1316         (linux_nat_is_async_p):
1317         (linux_nat_terminal_inferior): Check whether the target can async
1318         instead of whether it is already async.
1319         (linux_nat_terminal_ours): Don't check whether the target is
1320         async.
1321         (linux_async_pipe): Use linux_is_async_p.
1322
1323 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
1324
1325         * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
1326         '-ascending'.
1327         * thread.c (tp_array_compar_ascending, tp_array_compar): New.
1328         (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
1329         Sort tp_array using tp_array_compar.
1330         (_initialize_thread): Extend thread_apply_all_command help.
1331
1332 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
1333
1334         * corelow.c (core_open): Call also thread_command.
1335         * gdbthread.h (thread_command): New prototype moved from ...
1336         * thread.c (thread_command): ... here.
1337         (thread_command): Make it global.
1338
1339 2015-01-22  Pedro Alves  <palves@redhat.com>
1340
1341         * configure.ac [*mingw32*]: Check $curses_found instead of
1342         $prefer_curses.
1343         * configure: Regenerate.
1344         * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
1345         HAVE_NCURSES_NCURSES_H checks.
1346
1347 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
1348
1349         * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
1350         fails with the 1st arg NULL, try again with "unknown".  Don't test
1351         the "cup" capability: it isn't supported by the Windows port of
1352         ncurses, but the Windows console driver is still capable of
1353         supporting TUI.
1354
1355 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
1356
1357         * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
1358
1359 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
1360
1361         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1362         (ALLDEPFILES): Remove irix5-nat.c.  These two are part of the
1363         reason that "make TAGS" is broken.
1364
1365 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
1366
1367         * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
1368         and check additional store instructions.
1369
1370 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
1371
1372         * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
1373
1374 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
1375
1376         * ppc-linux-tdep.c (ppc_skip_trampoline_code,
1377         ppc_canonicalize_syscall, ppc_linux_syscall_record,
1378         ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
1379         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
1380         * rs6000-tdep.c (rs6000_epilogue_frame_cache,
1381         rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
1382         rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
1383         ppc_process_record_op19, ppc_process_record_op31,
1384         ppc_process_record_op59, ppc_process_record_op60,
1385         ppc_process_record_op63): Likewise.
1386
1387 2015-01-20  Joel Brobecker  <brobecker@adacore.com>
1388
1389         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
1390         (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
1391         strerror.
1392
1393 2015-01-20  Wei-cheng Wang  <cole945@gmail.com>
1394
1395         * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
1396         ppc_process_record_op31, ppc_process_record_op59,
1397         ppc_process_record_op60, ppc_process_record_op63,
1398         ppc_process_record): Fix -Wformat warning.
1399         * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
1400         Remove unused variables.
1401
1402 2015-01-20  Chen Gang  <gang.chen.5i5j@gmail.com>
1403
1404         * MAINTAINERS (Write After Approval): Add "Chen Gang".
1405
1406 2015-01-19  Eli Zaretskii  <eliz@gnu.org>
1407
1408         * configure.ac [*mingw32*]: Only add windows-termcap.o to
1409         CONFIG_OBS if not building with a curses library.
1410         * configure: Regenerate.
1411
1412         * windows-termcap.c: Include defs.h.  Make the whole body empty if
1413         either one of HAVE_CURSES_H or HAVE_NCURSES_H or
1414         HAVE_NCURSES_NCURSES_H is defined.
1415
1416 2015-01-19  Joel Brobecker  <brobecker@adacore.com>
1417
1418         * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
1419         from end of line to start of next line.
1420
1421 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
1422
1423         * ppc-linux-tdep.c (ppc_skip_trampoline_code):
1424         Scan PLT stub backward for reverse debugging.
1425         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
1426
1427 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
1428             Ulrich Weigand  <uweigand@de.ibm.com>
1429
1430         * configure.tgt (powerpc*-*-linux): Add linux-record.o to
1431         gdb_target_obs.
1432         (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
1433         record.
1434         (ppc_canonicalize_syscall, ppc_linux_syscall_record,
1435         ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
1436         (ppc_linux_init_abi): Set process_record, process_record_signal.
1437         * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
1438         ppc_linux_record_tdep to gdbarch_tdep.
1439         (ppc_process_record): New declaration.
1440         * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
1441         ppc_process_record_op19, ppc_process_record_op31,
1442         ppc_process_record_op59, ppc_process_record_op60,
1443         ppc_process_record_op63, ppc_process_record): New functions.
1444
1445 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
1446
1447         * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
1448         rs6000_in_function_epilogue_frame_p and add an argument
1449         for frame_info.
1450         (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
1451         rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
1452         New functions.
1453         (rs6000_epilogue_frame_unwind): New.
1454         (rs6000_gdbarch_init): Append epilogue unwinder.
1455
1456 2015-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
1457
1458         * nat/linux-personality.c: Replace "#ifndef
1459         HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
1460         !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
1461         systems.
1462
1463 2015-01-16  Eli Zaretskii  <eliz@gnu.org>
1464
1465         * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
1466         functions.
1467         (_initialize_tui_win) <border-kind, border-mode>:
1468         <active-border-mode>: Use tui_set_var_cmd as the "set" function.
1469         (tui_set_tab_width_command): Fix the commentary.
1470
1471         * tui/tui-win.h: Add prototype for tui_rehighlight_all.
1472
1473         * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
1474         Doc fix.
1475         (tui_set_tab_width_command): Delete and recreate the source and
1476         the disassembly windows, to show the effect of the changed tab
1477         size immediately.
1478
1479         * tui/tui-data.h (LINE_PREFIX): Make shorter
1480         (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
1481         "Thread NNNNN.XXXX" thread ID notation on Windows.
1482
1483 2015-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
1484
1485         Fix gcc-5 compilation.
1486         * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
1487
1488 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
1489
1490         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
1491         (linux-personality.o): New rule.
1492         * common/common-defs.h: Include <stdint.h>.
1493         * config/aarch64/linux.mh (NATDEPFILES): Include
1494         linux-personality.o.
1495         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
1496         * config/arm/linux.mh (NATDEPFILES): Likewise.
1497         * config/i386/linux64.mh (NATDEPFILES): Likewise.
1498         * config/i386/linux.mh (NATDEPFILES): Likewise.
1499         * config/ia64/linux.mh (NATDEPFILES): Likewise.
1500         * config/m32r/linux.mh (NATDEPFILES): Likewise.
1501         * config/m68k/linux.mh (NATDEPFILES): Likewise.
1502         * config/mips/linux.mh (NATDEPFILES): Likewise.
1503         * config/pa/linux.mh (NATDEPFILES): Likewise.
1504         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
1505         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
1506         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
1507         * config/s390/linux.mh (NATDEPFILES): Likewise.
1508         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
1509         * config/sparc/linux.mh (NATDEPFILES): Likewise.
1510         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
1511         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
1512         * defs.h: Remove #include <stdint.h> (moved to
1513         common/common-defs.h).
1514         * linux-nat.c: Include nat/linux-personality.h.  Remove #include
1515         <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
1516         nat/linux-personality.c).
1517         (linux_nat_create_inferior): Remove code to disable address space
1518         randomization (moved to nat/linux-personality.c).  Create cleanup
1519         to disable address space randomization.
1520         * nat/linux-personality.c: New file.
1521         * nat/linux-personality.h: Likewise.
1522
1523 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
1524
1525         * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
1526         common/posix-strerror.c.
1527         (posix-strerror.o): New rule.
1528         (mingw-strerror.o): Likewise.
1529         * common/common-utils.h (safe_strerror): Move prototype to here,
1530         from utils.h.
1531         * common/common.host: New file.
1532         * common/mingw-strerror.c: Likewise.
1533         * common/posix-strerror.c: Likewise.
1534         * configure: Regenerated.
1535         * configure.ac: Source common/common.host.  Add variable
1536         common_host_obs to gdb_host_obs.
1537         * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
1538         gdb/common/posix-strerror.c when warning about the use of
1539         strerror.
1540         * mingw-hdep.c (safe_strerror): Remove definition; move it to
1541         common/mingw-strerror.c.
1542         * posix-hdep.c (safe_strerror): Remove definition; move it to
1543         common/posix-hdep.c.
1544         * utils.h (safe_strerror): Remove prototype; move to
1545         common/common-utils.h.
1546
1547 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
1548
1549         GDB 7.8.2 released.
1550
1551 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
1552
1553         * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
1554         ___XA type if the array has already been fixed.
1555
1556 2015-01-14  Yao Qi  <yao@codesourcery.com>
1557
1558         * Makefile.in (ppc-linux.o): New rule.
1559         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
1560         * configure.ac: AC_CHECK_FUNCS(getauxval).
1561         * config.in: Re-generated.
1562         * configure: Re-generated.
1563         * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
1564         Declare.
1565         * nat/ppc-linux.c: New file.
1566         * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
1567         Call ppc64_64bit_inferior_p.
1568
1569 2015-01-14  Yao Qi  <yao@codesourcery.com>
1570
1571         * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
1572         nat/ppc-linux.h.
1573         (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
1574         (PPC_FEATURE_HAS_DFP): Likewise.
1575         (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
1576         (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
1577         (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
1578         Include "nat/ppc-linux.h".
1579         * nat/ppc-linux.h: New file.
1580         * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
1581
1582 2015-01-14  Pedro Alves  <palves@redhat.com>
1583
1584         PR gdb/17525
1585         * breakpoint.c: Include "interps.h".
1586         (bpstat_do_actions_1): Also check whether the interpreter is
1587         async.
1588
1589 2015-01-14  Pedro Alves  <palves@redhat.com>
1590
1591         PR cli/17828
1592         * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
1593         reinstall if the interpreter is sync.
1594
1595 2015-01-13  Doug Evans  <dje@google.com>
1596
1597         * objfiles.c (objfile_filename): New function.
1598         * objfiles.h (objfile_filename): Declare it.
1599         (objfile_name): Add function comment.
1600         * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
1601         bfd file name (which may be realpath'd), and the original name.
1602
1603 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
1604
1605         * NEWS: Create a new section for the next release branch.
1606         Rename the section of the current branch, now that it has
1607         been cut.
1608
1609 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
1610
1611         GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
1612         * version.in: Bump version to 7.9.50.DATE-cvs.
1613
1614 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
1615
1616         * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
1617         Remove trailing new-line in argument of call to warning.
1618
1619 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
1620
1621         * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
1622         new-line in argument of call to "warning".
1623
1624 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
1625
1626         * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
1627         in static block, then try searching for primitive types.
1628
1629 2015-01-12  Patrick Palka  <patrick@parcs.ath.cx>
1630
1631         * top.h (gdb_add_history): Declare.
1632         * top.c (command_count): New variable.
1633         (gdb_add_history): New function.
1634         (gdb_safe_append_history): New static function.
1635         (quit_force): Call it.
1636         (command_line_input): Use gdb_add_history instead of
1637         add_history.
1638         * event-top.c (command_line_handler): Likewise.
1639
1640 2015-01-12  James Clarke  <jrtc27@jrtc27.com>  (tiny patch)
1641
1642         PR gdb/17046
1643         * darwin-nat.c: Replace <machine/setjmp.h> #include by
1644         <setjmp.h> #include.
1645
1646 2015-01-11  Doug Evans  <xdje42@gmail.com>
1647
1648         * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
1649
1650 2015-01-11  Doug Evans  <xdje42@gmail.com>
1651
1652         PR gdb/15830
1653         * NEWS: The "maint demangle" command is renamed as "demangle".
1654         * demangle.c: #include cli/cli-utils.h, language.h.
1655         (demangle_command): New function.
1656         (_initialize_demangle): Add new command "demangle".
1657         * maint.c (maintenance_demangle): Stub out.
1658         (_initialize_maint_cmds): Update help text for "maint demangle",
1659         and mark as deprecated.
1660
1661 2015-01-11  Mark Kettenis  <kettenis@gnu.org>
1662
1663         * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
1664         inferior_thread is a function.
1665
1666 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
1667
1668         * Makefile.in (.y.c): Don't munge yacc's #line
1669         directives.
1670
1671 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
1672
1673         * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
1674         to prompt for input.
1675         * tui/tui-hooks.c (tui_query_hook): Remove.
1676         (tui_install_hooks): Don't set deprecated_query_hook.
1677         * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
1678         height calculation.  Always update the command window's cur_line.
1679
1680 2015-01-09  Pedro Alves  <palves@redhat.com>
1681
1682         * breakpoint.c (hardware_breakpoint_inserted_here_p): New
1683         function.
1684         * breakpoint.h (hardware_breakpoint_inserted_here_p): New
1685         declaration.
1686         * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
1687         (linux_resume_one_lwp): Store the thread's PC.  Adjust to clear
1688         stop_reason.
1689         (check_stopped_by_watchpoint): New function.
1690         (save_sigtrap): Reimplement.
1691         (linux_nat_stopped_by_watchpoint): Adjust.
1692         (linux_nat_lp_status_is_event): Delete.
1693         (stop_wait_callback): Only call save_sigtrap after storing the
1694         pending status.
1695         (status_callback): If the thread had been stopped for a breakpoint
1696         that has since been removed, discard the event and resume the LWP.
1697         (count_events_callback, select_event_lwp_callback): Use
1698         lwp_status_pending_p instead of linux_nat_lp_status_is_event.
1699         (cancel_breakpoint): Rename to ...
1700         (check_stopped_by_breakpoint): ... this.  Record whether the LWP
1701         stopped for a software breakpoint or hardware breakpoint.
1702         (select_event_lwp): Only give preference to the stepping LWP in
1703         all-stop mode.  Adjust comments.
1704         (stop_and_resume_callback): Remove references to new_pending_p.
1705         (linux_nat_filter_event): Likewise.  Leave exit events of the
1706         leader thread pending here.  Handle signal short circuiting here.
1707         Only call save_sigtrap after storing the pending waitstatus.
1708         (linux_nat_wait_1): Remove 'retry' label.  Remove references to
1709         new_pending.  Don't handle leaving events the caller is not
1710         interested in pending here, nor handle signal short-circuiting
1711         here.  Also give equal priority to all LWPs that have had events
1712         in non-stop mode.  If reporting a software breakpoint event,
1713         unadjust the LWP's PC.
1714         * linux-nat.h (enum lwp_stop_reason): New.
1715         (struct lwp_info) <stop_pc>: New field.
1716         (struct lwp_info) <stopped_by_watchpoint>: Delete field.
1717         (struct lwp_info) <stop_reason>: New field.
1718         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
1719
1720 2015-01-09  Pedro Alves  <palves@redhat.com>
1721
1722         * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
1723         Set the LWP's 'resumed' flag.
1724
1725 2015-01-09  Pedro Alves  <palves@redhat.com>
1726
1727         * linux-nat.c (linux_resume_one_lwp): New function.
1728         (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
1729         (linux_nat_resume): Use lwp_status_pending_p and
1730         linux_resume_one_lwp.
1731         (linux_handle_syscall_trap): Use linux_resume_one_lwp.
1732         (linux_handle_extended_wait): Use linux_resume_one_lwp.
1733         (status_callback, running_callback): Use lwp_status_pending_p.
1734         (lwp_status_pending_p): New function.
1735         (stop_and_resume_callback): Use lwp_status_pending_p.
1736         (linux_nat_filter_event): Use linux_resume_one_lwp.
1737         (linux_nat_wait_1): Always use status_callback to look for an LWP
1738         with a pending status.  Use linux_resume_one_lwp.
1739         (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
1740         linux_resume_one_lwp.
1741
1742 2015-01-09  Pedro Alves  <palves@redhat.com>
1743
1744         * breakpoint.c (bp_location_inserted_here_p): New function,
1745         factored out from ...
1746         (breakpoint_inserted_here_p): ... here.  Use
1747         ALL_BP_LOCATIONS_AT_ADDR.
1748         (software_breakpoint_inserted_here_p): Use
1749         bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
1750
1751 2014-01-09  Pedro Alves  <palves@redhat.com>
1752
1753         Skip enabling event reporting if the kernel supports
1754         PTRACE_EVENT_CLONE.
1755         * linux-thread-db.c: Include "nat/linux-ptrace.h".
1756         (thread_db_use_events): New function.
1757         (try_thread_db_load_1): Check thread_db_use_events before enabling
1758         event reporting.
1759         (update_thread_state): New function.
1760         (attach_thread): Use it.  Check thread_db_use_events before
1761         enabling event reporting.
1762         (thread_db_detach): Check thread_db_use_events before disabling
1763         event reporting.
1764         (find_new_threads_callback): Check thread_db_use_events before
1765         enabling event reporting.  Update the thread's state if not using
1766         libthread_db events.
1767
1768 2015-01-09  Pedro Alves  <palves@redhat.com>
1769
1770         * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
1771         about to wait for is > 0.
1772         * linux-thread-db.c (find_new_threads_callback): Ignore thread if
1773         the kernel thread ID is -1.
1774
1775 2015-01-09  Pedro Alves  <palves@redhat.com>
1776
1777         * linux-nat.c (attach_proc_task_lwp_callback): New function.
1778         (linux_nat_attach): Use linux_proc_attach_tgid_threads.
1779         (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
1780         ptrace option flags.
1781         * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
1782         field.
1783         * nat/linux-procfs.c: Include <dirent.h>.
1784         (linux_proc_get_int): New parameter "warn".  Handle it.
1785         (linux_proc_get_tgid): Adjust.
1786         (linux_proc_get_tracerpid): Rename to ...
1787         (linux_proc_get_tracerpid_nowarn): ... this.
1788         (linux_proc_pid_get_state): New function, factored out from
1789         (linux_proc_pid_has_state): ... this.  Add new parameter "warn"
1790         and handle it.
1791         (linux_proc_pid_is_gone): New function.
1792         (linux_proc_pid_is_stopped): Adjust.
1793         (linux_proc_pid_is_zombie_maybe_warn)
1794         (linux_proc_pid_is_zombie_nowarn): New functions.
1795         (linux_proc_pid_is_zombie): Use
1796         linux_proc_pid_is_zombie_maybe_warn.
1797         (linux_proc_attach_tgid_threads): New function.
1798         * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
1799         (linux_proc_get_tracerpid): Rename to ...
1800         (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
1801         (linux_proc_pid_is_gone): New declaration.
1802         (linux_proc_pid_is_zombie): Update comment.
1803         (linux_proc_pid_is_zombie_nowarn): New declaration.
1804         (linux_proc_attach_lwp_func): New typedef.
1805         (linux_proc_attach_tgid_threads): New declaration.
1806         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
1807         use nowarn functions.
1808         (linux_ptrace_attach_fail_reason_string): Move here from
1809         gdbserver/linux-low.c and rename.
1810         (ptrace_supports_feature): If the current ptrace options are not
1811         known yet, check them now, instead of asserting.
1812         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
1813         Declare.
1814
1815 2015-01-09  Pedro Alves  <palves@redhat.com>
1816
1817         * linux-thread-db.c (thread_db_find_new_threads_silently)
1818         (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
1819         (find_new_threads_once): Print debug output on gdb_stdlog.
1820
1821 2015-01-09  Chen Gang  <gang.chen.5i5j@gmail.com>
1822             Pedro Alves  <palves@redhat.com>
1823
1824         * compile/compile.c: Include "gdb_wait.h".
1825         (do_rmdir): Check return value, and free 'zap'.
1826
1827 2015-01-08  Pedro Alves  <palves@redhat.com>
1828             Yao Qi  <yao@codesourcery.com>
1829
1830         * dwarf2loc.c (indirect_pieced_value): Don't call
1831         gdb_sign_extend.  Call extract_signed_integer instead.
1832         * utils.c (gdb_sign_extend): Remove.
1833         * utils.h (gdb_sign_extend): Remove declaration.
1834
1835 2015-01-07  Pierre Muller  <muller@sourceware.org>
1836
1837         PR symtab/17811
1838         * stabsread.c (define_symbol): Set language for C++ special symbols.
1839
1840 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
1841
1842         * inflow.c (initial_gdb_ttystate): Tweak comment.
1843
1844 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
1845
1846         * inflow.c (set_initial_gdb_ttystate): Add empty line after
1847         comment documenting function.
1848
1849 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
1850
1851         * terminal.h (set_initial_gdb_ttystate): Declare.
1852         * inflow.c (initial_gdb_ttystate): New static variable.
1853         (set_initial_gdb_ttystate): New setter.
1854         (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
1855         instead of our current terminal state.
1856         * top.c (gdb_init): Call set_initial_gdb_ttystate.
1857
1858 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
1859
1860         * guile/scm-type.c (tyscm_array_1): Add comment.
1861         * python/py-type.c (typy_array_1): Add comment.
1862
1863 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
1864
1865         * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
1866         error if N2 is equal to N1 - 1.
1867
1868 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
1869
1870         * python/py-type.c (typy_array_1): Do not raise negative-length
1871         exception if N2 is equal to N1 - 1.
1872
1873 2015-01-03  Doug Evans  <xdje42@gmail.com>
1874
1875         * c-exp.y: Whitespace cleanup.
1876         (classify_inner_name): Remove extra ;.
1877
1878 2015-01-02  Maciej W. Rozycki  <macro@codesourcery.com>
1879
1880         * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
1881         offset signed.
1882
1883 2015-01-02  Doug Evans  <dje@google.com>
1884
1885         * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
1886
1887 2015-01-02  Doug Evans  <dje@google.com>
1888
1889         * symtab.h (struct symbol): Fix typo in comment.
1890
1891 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
1892
1893         Update year range in copyright notice of all files.
1894
1895 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
1896
1897         * top.c (print_gdb_version): Update copyright year to 2015.
1898
1899 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
1900
1901         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
1902
1903 For older changes see ChangeLog-2014.
1904 \f
1905 Local Variables:
1906 mode: change-log
1907 left-margin: 8
1908 fill-column: 74
1909 version-control: never
1910 coding: utf-8
1911 End: