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