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