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