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