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