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