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