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