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