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