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