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