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