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