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