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