1 2015-01-31 Doug Evans <xdje42@gmail.com>
3 * dwarf2read.c (process_structure_scope): Update setting of
4 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
5 * gdbtypes.c (internal_type_vptr_fieldno): New function.
6 (set_type_vptr_fieldno): New function.
7 (internal_type_vptr_basetype): New function.
8 (set_type_vptr_basetype): New function.
9 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11 (allocate_cplus_struct_type): Initialize vptr_fieldno.
12 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
13 (print_cplus_stuff): ... moved here.
14 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
15 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
17 (struct cplus_struct_type): ... here. All uses updated.
18 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
19 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
20 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
21 * stabsread.c (read_tilde_fields): Update setting of
22 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
24 2015-01-31 Doug Evans <xdje42@gmail.com>
26 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
28 (cp_print_class_member): Rename local domain to self_type.
29 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
30 domain_type to self_type.
31 (set_die_type) <need_gnat_info>: Handle
32 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
33 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
34 TYPE_SPECIFIC_SELF_TYPE.
35 * gdbtypes.c (internal_type_self_type): New function.
36 (set_type_self_type): New function.
37 (smash_to_memberptr_type): Rename parameter domain to self_type.
38 Update setting of TYPE_SELF_TYPE.
39 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
40 (smash_to_method_type): Rename parameter domain to self_type.
41 Update setting of TYPE_SELF_TYPE.
42 (check_stub_method): Call smash_to_method_type.
43 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
44 (copy_type_recursive): Ditto.
45 * gdbtypes.h (enum type_specific_kind): New value
46 TYPE_SPECIFIC_SELF_TYPE.
47 (struct main_type) <type_specific>: New member self_type.
48 (struct cplus_struct_type) <fn_field.type>: Update comment.
49 (TYPE_SELF_TYPE): Rewrite.
50 (internal_type_self_type, set_type_self_type): Declare.
51 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
53 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
54 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
56 * stabsread.c (read_member_functions): Mark methods with
57 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
60 2015-01-31 Doug Evans <xdje42@gmail.com>
62 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
65 2015-01-31 Doug Evans <xdje42@gmail.com>
67 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
68 or unions. Return zero if union.
69 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
70 (gnuv3_rtti_type): Pass already-check_typedef'd value to
72 (compute_vtable_size): Assert only passed structs.
73 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
75 2015-01-31 Doug Evans <xdje42@gmail.com>
77 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
80 2015-01-31 Gary Benson <gbenson@redhat.com>
81 Doug Evans <dje@google.com>
86 * cli/cli-cmds.c (complete_command): Notify user if max-completions
88 * common/common-exceptions.h (enum errors)
89 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
90 * completer.h (get_max_completions_reached_message): New declaration.
91 (max_completions): Likewise.
92 (completion_tracker_t): New typedef.
93 (new_completion_tracker): New declaration.
94 (make_cleanup_free_completion_tracker): Likewise.
95 (maybe_add_completion_enum): New enum.
96 (maybe_add_completion): New declaration.
97 (throw_max_completions_reached_error): Likewise.
98 * completer.c (max_completions): New global variable.
99 (new_completion_tracker): New function.
100 (free_completion_tracker): Likewise.
101 (make_cleanup_free_completion_tracker): Likewise.
102 (maybe_add_completions): Likewise.
103 (throw_max_completions_reached_error): Likewise.
104 (complete_line): Remove duplicates and limit result to max_completions
106 (get_max_completions_reached_message): New function.
107 (gdb_display_match_list): Handle max_completions.
108 (_initialize_completer): New declaration and function.
109 * symtab.c: Include completer.h.
110 (completion_tracker): New static variable.
111 (completion_list_add_name): Call maybe_add_completion.
112 (default_make_symbol_completion_list_break_on_1): Renamed from
113 default_make_symbol_completion_list_break_on. Maintain
114 completion_tracker across calls to completion_list_add_name.
115 (default_make_symbol_completion_list_break_on): New function.
116 * top.c (init_main): Set rl_completion_display_matches_hook.
117 * tui/tui-io.c: Include completer.h.
118 (tui_old_rl_display_matches_hook): New static global.
119 (tui_rl_display_match_list): Notify user if max-completions reached.
120 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
121 * NEWS (New Options): Mention set/show max-completions.
123 2015-01-31 Gary Benson <gbenson@redhat.com>
125 * symtab.c (struct add_name_data) <code>: New field.
127 (add_symtab_completions): New function.
128 (symtab_expansion_callback): Likewise.
129 (default_make_symbol_completion_list_break_on): Set datum.code.
130 Move minimal symbol scan before calling expand_symtabs_matching.
131 Scan known primary symtabs for externs and statics before calling
132 expand_symtabs_matching. Pass symtab_expansion_callback as
133 expansion_notify argument to expand_symtabs_matching. Do not scan
134 primary symtabs for externs and statics after calling
135 expand_symtabs_matching.
137 2015-01-31 Gary Benson <gbenson@redhat.com>
139 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
140 (struct quick_symbol_functions) <expand_symtabs_matching>:
141 New argument expansion_notify. All uses updated.
142 (expand_symtabs_matching): New argument expansion_notify.
144 * symfile-debug.c (debug_qf_expand_symtabs_matching):
145 Also print expansion notify.
146 * symtab.c (expand_symtabs_matching_via_partial): Call
147 expansion_notify whenever a partial symbol table is expanded.
148 * dwarf2read.c (dw2_expand_symtabs_matching): Call
149 expansion_notify whenever a symbol table is instantiated.
151 2015-01-31 Doug Evans <xdje42@gmail.com>
153 * cli-out.c: #include completer.h, readline/readline.h.
154 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
155 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
156 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
157 * cli-out.h (cli_display_match_list): Declare.
158 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
159 (ELLIPSIS_LEN): Ditto.
160 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
161 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
162 (gdb_fnprint, gdb_print_filename): Ditto.
163 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
164 (gdb_display_match_list): Ditto.
165 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
166 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
167 (mld_beep_ftype, mld_read_key_ftype): Ditto.
168 (match_list_displayer): New struct.
169 (gdb_display_match_list): Declare.
170 * top.c (init_main): Set rl_completion_display_matches_hook.
171 * tui/tui-io.c: #include completer.h.
172 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
173 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
174 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
175 (tui_mld_getc, tui_mld_read_key): Ditto.
176 (tui_rl_display_match_list): Rewrite.
177 (tui_handle_resize_during_io): New arg for_completion. All callers
180 2015-01-31 Doug Evans <xdje42@gmail.com>
182 Add symbol lookup cache.
183 * NEWS: Document new options and commands.
184 * symtab.c (symbol_cache_key): New static global.
185 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
186 (SYMBOL_LOOKUP_FAILED): New macro.
187 (symbol_cache_slot_state): New enum.
188 (block_symbol_cache): New struct.
189 (symbol_cache): New struct.
190 (new_symbol_cache_size, symbol_cache_size): New static globals.
191 (hash_symbol_entry, eq_symbol_entry): New functions.
192 (symbol_cache_byte_size, resize_symbol_cache): New functions.
193 (make_symbol_cache, free_symbol_cache): New functions.
194 (get_symbol_cache, symbol_cache_cleanup): New function.
195 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
196 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
197 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
198 (symbol_cache_flush, symbol_cache_dump): New functions.
199 (maintenance_print_symbol_cache): New function.
200 (maintenance_flush_symbol_cache): New function.
201 (symbol_cache_stats): New function.
202 (maintenance_print_symbol_cache_statistics): New function.
203 (symtab_new_objfile_observer): New function.
204 (symtab_free_objfile_observer): New function.
205 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
206 (_initialize_symtab): Init symbol_cache_key. New parameter
207 maint symbol-cache-size. New maint commands print symbol-cache,
208 print symbol-cache-statistics, flush-symbol-cache.
209 Install new_objfile, free_objfile observers.
211 2015-01-31 Joel Brobecker <brobecker@adacore.com>
214 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
217 2015-01-31 Doug Evans <xdje42@gmail.com>
219 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
220 * auto-load.c: #include ctype.h.
221 (struct auto_load_pspace_info): Replace member loaded_scripts with
222 new members loaded_script_files, loaded_script_texts.
223 (auto_load_pspace_data_cleanup): Update.
224 (init_loaded_scripts_info): Update.
225 (get_auto_load_pspace_data_for_loading): Update.
226 (maybe_add_script_file): Renamed from maybe_add_script. All callers
228 (maybe_add_script_text): New function.
229 (clear_section_scripts): Update.
230 (source_script_file, execute_script_contents): New functions.
231 (source_section_scripts): Add support for
232 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
233 (print_scripts): New function.
234 (auto_load_info_scripts): Also print inlined scripts.
235 (maybe_print_unsupported_script_warning): Renamed from
236 unsupported_script_warning_print. All callers updated.
237 (maybe_print_script_not_found_warning): Renamed from
238 script_not_found_warning_print. All callers updated.
239 * extension-priv.h (struct extension_language_script_ops): New member
240 objfile_script_executor.
241 * extension.c (ext_lang_objfile_script_executor): New function.
242 * extension.h (objfile_script_executor_func): New typedef.
243 (ext_lang_objfile_script_executor): Declare.
244 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
245 * guile/guile.c (guile_extension_script_ops): Update.
246 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
247 * python/python.c (python_extension_script_ops): Update.
248 (gdbpy_execute_objfile_script): New function.
250 2015-01-31 Eli Zaretskii <eliz@gnu.org>
252 * tui/tui-io.c (tui_expand_tabs): New function.
253 (tui_puts, tui_redisplay_readline): Expand TABs into the
254 appropriate number of spaces.
255 * tui/tui-regs.c: Include tui-io.h.
256 (tui_register_format): Call tui_expand_tabs to expand TABs into
257 the appropriate number of spaces.
258 * tui/tui-io.h: Add prototype for tui_expand_tabs.
260 2015-01-30 Doug Evans <dje@google.com>
262 * NEWS: "info source" command now display producer string if present.
263 * source.c (source_info): Print producer string if present.
265 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
267 * varobj.c (varobj_delete): Fix comment.
269 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
271 * varobj.c (create_child): Modify comment.
273 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
275 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
277 (ada_name_of_variable): Same.
278 (ada_path_expr_of_child): Same.
279 (ada_value_of_variable): Same.
280 (ada_value_is_changeable_p): Same.
281 (ada_value_has_mutated): Same.
282 * c-varobj.c (varobj_is_anonymous_child): Same.
283 (c_is_path_expr_parent): Same.
284 (c_number_of_children): Same.
285 (c_name_of_variable): Same.
286 (c_path_expr_of_child): Same.
288 (c_value_of_variable): Same.
289 (cplus_number_of_children): Same.
290 (cplus_name_of_variable): Same.
291 (cplus_path_expr_of_child): Same.
292 (cplus_value_of_variable): Same.
293 * jv-varobj.c (java_number_of_children): Same.
294 (java_name_of_variable): Same.
295 (java_path_expr_of_child): Same.
296 (java_value_of_variable): Same.
297 * varobj.c (number_of_children): Same.
298 (name_of_variable): Same.
300 (varobj_ensure_python_env): Same.
301 (varobj_get_objname): Same.
302 (varobj_get_expression): Same.
303 (varobj_get_display_format): Same.
304 (varobj_get_display_hint): Same.
305 (varobj_has_more): Same.
306 (varobj_get_thread_id): Same.
307 (varobj_get_frozen): Same.
308 (dynamic_varobj_has_child_method): Same.
309 (varobj_get_gdb_type): Same.
310 (is_path_expr_parent): Same.
311 (varobj_default_is_path_expr_parent): Same.
312 (varobj_get_language): Same.
313 (varobj_get_attributes): Same.
314 (varobj_is_dynamic_p): Same.
315 (varobj_get_child_range): Same.
316 (varobj_value_has_mutated): Same.
317 (varobj_get_value_type): Same.
318 (number_of_children): Same.
319 (name_of_variable): Same.
321 (varobj_editable_p): Same.
322 (varobj_value_is_changeable_p): Same.
323 (varobj_floating_p): Same.
324 (varobj_default_value_is_changeable_p): Same.
326 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
328 * varobj.c (varobj_get_path_expr): Set var->path_expr.
329 * c-varobj.c (c_path_expr_of_child): Set local var instead of
331 (cplus_path_expr_of_child): Same.
333 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
335 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
337 (mi_cmd_var_info_expression): Same.
338 * varobj.c (varobj_get_expression): Mention in the comment that
339 the result must by freed by the caller.
341 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
343 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
345 (varobj_update_one): Same.
346 * varobj.c (update_type_if_necessary): Free curr_type_str and
348 (varobj_get_type): Specify in comment that the result needs to be
351 2015-01-29 Doug Evans <dje@google.com>
354 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
356 2015-01-25 Mark Wielaard <mjw@redhat.com>
358 * dwarf2read.c (checkproducer): Call producer_is_gcc.
359 * utils.c (producer_is_gcc_ge_4): Likewise.
360 (producer_is_gcc): New function.
361 * utils.h (producer_is_gcc): New declaration.
363 2015-01-29 Joel Brobecker <brobecker@adacore.com>
365 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
367 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
368 parameter by "addr_stack" parameter.
369 (resolve_dynamic_range): Replace "addr" parameter by
370 "stack_addr" parameter. Update function documentation.
371 Update code accordingly.
372 (resolve_dynamic_array, resolve_dynamic_union)
373 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
374 (resolve_dynamic_type): Update code, following the changes made
375 to resolve_dynamic_type_internal's interface.
376 * dwarf2loc.h (struct property_addr_info): New.
377 (dwarf2_evaluate_property): Replace "address" parameter
378 by "addr_stack" parameter. Adjust function documentation.
379 (struct dwarf2_offset_baton): New.
380 (struct dwarf2_property_baton): Update documentation of
381 field "referenced_type" to be more general. New field
382 "offset_info" in union data field.
383 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
384 parameter by "addr_stack" parameter. Adjust code accordingly.
385 Add support for PROP_ADDR_OFFSET properties.
386 * dwarf2read.c (attr_to_dynamic_prop): Add support for
387 DW_AT_data_member_location attributes as well. Use case
388 statements instead of if/else condition.
390 2015-01-29 Joel Brobecker <brobecker@adacore.com>
392 * ada-varobj.c (ada_varobj_get_array_number_of_children):
393 Return zero if PARENT_VALUE is NULL and parent_type's
394 range type is dynamic.
396 2015-01-29 Joel Brobecker <brobecker@adacore.com>
398 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
399 nonzero if the type's subtype is dynamic.
400 (resolve_dynamic_range): Also resolve the range's subtype.
402 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
404 Pushed by Joel Brobecker <brobecker@adacore.com>.
405 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
407 2015-01-27 Doug Evans <dje@google.com>
409 * NEWS: Mention gdb.Objfile.username.
410 * python/py-objfile.c (objfpy_get_username): New function.
411 (objfile_getset): Add "username".
413 2015-01-24 Mark Wielaard <mjw@redhat.com>
415 * stack.c (return_command): Markup warning message with _.
417 2015-01-24 Doug Evans <xdje42@gmail.com>
419 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
421 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
423 Fix 100x slowdown regression on DWZ files.
424 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
425 (struct line_header): Add offset and offset_in_dwz.
426 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
427 (free_line_header_voidp): New declaration.
428 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
430 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
431 (handle_DW_AT_stmt_list): Use line_header_hash.
432 (free_line_header_voidp): New function.
433 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
434 (dwarf_decode_lines): New parameter decode_mapping, use it.
435 (dwarf2_free_objfile): Free line_header_hash.
437 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
440 * valops.c (value_rtti_indirect_type): Catch exception thrown by
443 2015-01-15 Mark Wielaard <mjw@redhat.com>
445 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
447 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
448 calling_convention an 8 bit bit field.
449 (TYPE_NO_RETURN): New macro.
450 * infcmd.c (finish_command): Query if function does not return
452 * stack.c (return_command): Likewise.
454 2015-01-23 Pedro Alves <palves@redhat.com>
456 * linux-nat.c (linux_is_async_p): New macro.
457 (linux_nat_is_async_p):
458 (linux_nat_terminal_inferior): Check whether the target can async
459 instead of whether it is already async.
460 (linux_nat_terminal_ours): Don't check whether the target is
462 (linux_async_pipe): Use linux_is_async_p.
464 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
466 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
468 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
469 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
470 Sort tp_array using tp_array_compar.
471 (_initialize_thread): Extend thread_apply_all_command help.
473 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
475 * corelow.c (core_open): Call also thread_command.
476 * gdbthread.h (thread_command): New prototype moved from ...
477 * thread.c (thread_command): ... here.
478 (thread_command): Make it global.
480 2015-01-22 Pedro Alves <palves@redhat.com>
482 * configure.ac [*mingw32*]: Check $curses_found instead of
484 * configure: Regenerate.
485 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
486 HAVE_NCURSES_NCURSES_H checks.
488 2015-01-22 Eli Zaretskii <eliz@gnu.org>
490 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
491 fails with the 1st arg NULL, try again with "unknown". Don't test
492 the "cup" capability: it isn't supported by the Windows port of
493 ncurses, but the Windows console driver is still capable of
496 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
498 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
500 2015-01-22 Eli Zaretskii <eliz@gnu.org>
502 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
503 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
504 reason that "make TAGS" is broken.
506 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
508 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
509 and check additional store instructions.
511 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
513 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
515 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
517 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
518 ppc_canonicalize_syscall, ppc_linux_syscall_record,
519 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
520 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
521 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
522 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
523 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
524 ppc_process_record_op19, ppc_process_record_op31,
525 ppc_process_record_op59, ppc_process_record_op60,
526 ppc_process_record_op63): Likewise.
528 2015-01-20 Joel Brobecker <brobecker@adacore.com>
530 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
531 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
534 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
536 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
537 ppc_process_record_op31, ppc_process_record_op59,
538 ppc_process_record_op60, ppc_process_record_op63,
539 ppc_process_record): Fix -Wformat warning.
540 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
541 Remove unused variables.
543 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
545 * MAINTAINERS (Write After Approval): Add "Chen Gang".
547 2015-01-19 Eli Zaretskii <eliz@gnu.org>
549 * configure.ac [*mingw32*]: Only add windows-termcap.o to
550 CONFIG_OBS if not building with a curses library.
551 * configure: Regenerate.
553 * windows-termcap.c: Include defs.h. Make the whole body empty if
554 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
555 HAVE_NCURSES_NCURSES_H is defined.
557 2015-01-19 Joel Brobecker <brobecker@adacore.com>
559 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
560 from end of line to start of next line.
562 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
564 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
565 Scan PLT stub backward for reverse debugging.
566 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
568 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
569 Ulrich Weigand <uweigand@de.ibm.com>
571 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
573 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
575 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
576 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
577 (ppc_linux_init_abi): Set process_record, process_record_signal.
578 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
579 ppc_linux_record_tdep to gdbarch_tdep.
580 (ppc_process_record): New declaration.
581 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
582 ppc_process_record_op19, ppc_process_record_op31,
583 ppc_process_record_op59, ppc_process_record_op60,
584 ppc_process_record_op63, ppc_process_record): New functions.
586 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
588 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
589 rs6000_in_function_epilogue_frame_p and add an argument
591 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
592 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
594 (rs6000_epilogue_frame_unwind): New.
595 (rs6000_gdbarch_init): Append epilogue unwinder.
597 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
599 * nat/linux-personality.c: Replace "#ifndef
600 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
601 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
604 2015-01-16 Eli Zaretskii <eliz@gnu.org>
606 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
608 (_initialize_tui_win) <border-kind, border-mode>:
609 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
610 (tui_set_tab_width_command): Fix the commentary.
612 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
614 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
616 (tui_set_tab_width_command): Delete and recreate the source and
617 the disassembly windows, to show the effect of the changed tab
620 * tui/tui-data.h (LINE_PREFIX): Make shorter
621 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
622 "Thread NNNNN.XXXX" thread ID notation on Windows.
624 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
626 Fix gcc-5 compilation.
627 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
629 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
631 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
632 (linux-personality.o): New rule.
633 * common/common-defs.h: Include <stdint.h>.
634 * config/aarch64/linux.mh (NATDEPFILES): Include
636 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
637 * config/arm/linux.mh (NATDEPFILES): Likewise.
638 * config/i386/linux64.mh (NATDEPFILES): Likewise.
639 * config/i386/linux.mh (NATDEPFILES): Likewise.
640 * config/ia64/linux.mh (NATDEPFILES): Likewise.
641 * config/m32r/linux.mh (NATDEPFILES): Likewise.
642 * config/m68k/linux.mh (NATDEPFILES): Likewise.
643 * config/mips/linux.mh (NATDEPFILES): Likewise.
644 * config/pa/linux.mh (NATDEPFILES): Likewise.
645 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
646 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
647 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
648 * config/s390/linux.mh (NATDEPFILES): Likewise.
649 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
650 * config/sparc/linux.mh (NATDEPFILES): Likewise.
651 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
652 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
653 * defs.h: Remove #include <stdint.h> (moved to
654 common/common-defs.h).
655 * linux-nat.c: Include nat/linux-personality.h. Remove #include
656 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
657 nat/linux-personality.c).
658 (linux_nat_create_inferior): Remove code to disable address space
659 randomization (moved to nat/linux-personality.c). Create cleanup
660 to disable address space randomization.
661 * nat/linux-personality.c: New file.
662 * nat/linux-personality.h: Likewise.
664 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
666 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
667 common/posix-strerror.c.
668 (posix-strerror.o): New rule.
669 (mingw-strerror.o): Likewise.
670 * common/common-utils.h (safe_strerror): Move prototype to here,
672 * common/common.host: New file.
673 * common/mingw-strerror.c: Likewise.
674 * common/posix-strerror.c: Likewise.
675 * configure: Regenerated.
676 * configure.ac: Source common/common.host. Add variable
677 common_host_obs to gdb_host_obs.
678 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
679 gdb/common/posix-strerror.c when warning about the use of
681 * mingw-hdep.c (safe_strerror): Remove definition; move it to
682 common/mingw-strerror.c.
683 * posix-hdep.c (safe_strerror): Remove definition; move it to
685 * utils.h (safe_strerror): Remove prototype; move to
686 common/common-utils.h.
688 2015-01-15 Joel Brobecker <brobecker@adacore.com>
692 2015-01-15 Joel Brobecker <brobecker@adacore.com>
694 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
695 ___XA type if the array has already been fixed.
697 2015-01-14 Yao Qi <yao@codesourcery.com>
699 * Makefile.in (ppc-linux.o): New rule.
700 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
701 * configure.ac: AC_CHECK_FUNCS(getauxval).
702 * config.in: Re-generated.
703 * configure: Re-generated.
704 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
706 * nat/ppc-linux.c: New file.
707 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
708 Call ppc64_64bit_inferior_p.
710 2015-01-14 Yao Qi <yao@codesourcery.com>
712 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
714 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
715 (PPC_FEATURE_HAS_DFP): Likewise.
716 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
717 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
718 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
719 Include "nat/ppc-linux.h".
720 * nat/ppc-linux.h: New file.
721 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
723 2015-01-14 Pedro Alves <palves@redhat.com>
726 * breakpoint.c: Include "interps.h".
727 (bpstat_do_actions_1): Also check whether the interpreter is
730 2015-01-14 Pedro Alves <palves@redhat.com>
733 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
734 reinstall if the interpreter is sync.
736 2015-01-13 Doug Evans <dje@google.com>
738 * objfiles.c (objfile_filename): New function.
739 * objfiles.h (objfile_filename): Declare it.
740 (objfile_name): Add function comment.
741 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
742 bfd file name (which may be realpath'd), and the original name.
744 2015-01-13 Joel Brobecker <brobecker@adacore.com>
746 * NEWS: Create a new section for the next release branch.
747 Rename the section of the current branch, now that it has
750 2015-01-13 Joel Brobecker <brobecker@adacore.com>
752 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
753 * version.in: Bump version to 7.9.50.DATE-cvs.
755 2015-01-13 Joel Brobecker <brobecker@adacore.com>
757 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
758 Remove trailing new-line in argument of call to warning.
760 2015-01-13 Joel Brobecker <brobecker@adacore.com>
762 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
763 new-line in argument of call to "warning".
765 2015-01-13 Joel Brobecker <brobecker@adacore.com>
767 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
768 in static block, then try searching for primitive types.
770 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
772 * top.h (gdb_add_history): Declare.
773 * top.c (command_count): New variable.
774 (gdb_add_history): New function.
775 (gdb_safe_append_history): New static function.
776 (quit_force): Call it.
777 (command_line_input): Use gdb_add_history instead of
779 * event-top.c (command_line_handler): Likewise.
781 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
784 * darwin-nat.c: Replace <machine/setjmp.h> #include by
787 2015-01-11 Doug Evans <xdje42@gmail.com>
789 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
791 2015-01-11 Doug Evans <xdje42@gmail.com>
794 * NEWS: The "maint demangle" command is renamed as "demangle".
795 * demangle.c: #include cli/cli-utils.h, language.h.
796 (demangle_command): New function.
797 (_initialize_demangle): Add new command "demangle".
798 * maint.c (maintenance_demangle): Stub out.
799 (_initialize_maint_cmds): Update help text for "maint demangle",
800 and mark as deprecated.
802 2015-01-11 Mark Kettenis <kettenis@gnu.org>
804 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
805 inferior_thread is a function.
807 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
809 * Makefile.in (.y.c): Don't munge yacc's #line
812 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
814 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
816 * tui/tui-hooks.c (tui_query_hook): Remove.
817 (tui_install_hooks): Don't set deprecated_query_hook.
818 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
819 height calculation. Always update the command window's cur_line.
821 2015-01-09 Pedro Alves <palves@redhat.com>
823 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
825 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
827 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
828 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
830 (check_stopped_by_watchpoint): New function.
831 (save_sigtrap): Reimplement.
832 (linux_nat_stopped_by_watchpoint): Adjust.
833 (linux_nat_lp_status_is_event): Delete.
834 (stop_wait_callback): Only call save_sigtrap after storing the
836 (status_callback): If the thread had been stopped for a breakpoint
837 that has since been removed, discard the event and resume the LWP.
838 (count_events_callback, select_event_lwp_callback): Use
839 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
840 (cancel_breakpoint): Rename to ...
841 (check_stopped_by_breakpoint): ... this. Record whether the LWP
842 stopped for a software breakpoint or hardware breakpoint.
843 (select_event_lwp): Only give preference to the stepping LWP in
844 all-stop mode. Adjust comments.
845 (stop_and_resume_callback): Remove references to new_pending_p.
846 (linux_nat_filter_event): Likewise. Leave exit events of the
847 leader thread pending here. Handle signal short circuiting here.
848 Only call save_sigtrap after storing the pending waitstatus.
849 (linux_nat_wait_1): Remove 'retry' label. Remove references to
850 new_pending. Don't handle leaving events the caller is not
851 interested in pending here, nor handle signal short-circuiting
852 here. Also give equal priority to all LWPs that have had events
853 in non-stop mode. If reporting a software breakpoint event,
854 unadjust the LWP's PC.
855 * linux-nat.h (enum lwp_stop_reason): New.
856 (struct lwp_info) <stop_pc>: New field.
857 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
858 (struct lwp_info) <stop_reason>: New field.
859 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
861 2015-01-09 Pedro Alves <palves@redhat.com>
863 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
864 Set the LWP's 'resumed' flag.
866 2015-01-09 Pedro Alves <palves@redhat.com>
868 * linux-nat.c (linux_resume_one_lwp): New function.
869 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
870 (linux_nat_resume): Use lwp_status_pending_p and
871 linux_resume_one_lwp.
872 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
873 (linux_handle_extended_wait): Use linux_resume_one_lwp.
874 (status_callback, running_callback): Use lwp_status_pending_p.
875 (lwp_status_pending_p): New function.
876 (stop_and_resume_callback): Use lwp_status_pending_p.
877 (linux_nat_filter_event): Use linux_resume_one_lwp.
878 (linux_nat_wait_1): Always use status_callback to look for an LWP
879 with a pending status. Use linux_resume_one_lwp.
880 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
881 linux_resume_one_lwp.
883 2015-01-09 Pedro Alves <palves@redhat.com>
885 * breakpoint.c (bp_location_inserted_here_p): New function,
886 factored out from ...
887 (breakpoint_inserted_here_p): ... here. Use
888 ALL_BP_LOCATIONS_AT_ADDR.
889 (software_breakpoint_inserted_here_p): Use
890 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
892 2014-01-09 Pedro Alves <palves@redhat.com>
894 Skip enabling event reporting if the kernel supports
896 * linux-thread-db.c: Include "nat/linux-ptrace.h".
897 (thread_db_use_events): New function.
898 (try_thread_db_load_1): Check thread_db_use_events before enabling
900 (update_thread_state): New function.
901 (attach_thread): Use it. Check thread_db_use_events before
902 enabling event reporting.
903 (thread_db_detach): Check thread_db_use_events before disabling
905 (find_new_threads_callback): Check thread_db_use_events before
906 enabling event reporting. Update the thread's state if not using
909 2015-01-09 Pedro Alves <palves@redhat.com>
911 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
912 about to wait for is > 0.
913 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
914 the kernel thread ID is -1.
916 2015-01-09 Pedro Alves <palves@redhat.com>
918 * linux-nat.c (attach_proc_task_lwp_callback): New function.
919 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
920 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
922 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
924 * nat/linux-procfs.c: Include <dirent.h>.
925 (linux_proc_get_int): New parameter "warn". Handle it.
926 (linux_proc_get_tgid): Adjust.
927 (linux_proc_get_tracerpid): Rename to ...
928 (linux_proc_get_tracerpid_nowarn): ... this.
929 (linux_proc_pid_get_state): New function, factored out from
930 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
932 (linux_proc_pid_is_gone): New function.
933 (linux_proc_pid_is_stopped): Adjust.
934 (linux_proc_pid_is_zombie_maybe_warn)
935 (linux_proc_pid_is_zombie_nowarn): New functions.
936 (linux_proc_pid_is_zombie): Use
937 linux_proc_pid_is_zombie_maybe_warn.
938 (linux_proc_attach_tgid_threads): New function.
939 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
940 (linux_proc_get_tracerpid): Rename to ...
941 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
942 (linux_proc_pid_is_gone): New declaration.
943 (linux_proc_pid_is_zombie): Update comment.
944 (linux_proc_pid_is_zombie_nowarn): New declaration.
945 (linux_proc_attach_lwp_func): New typedef.
946 (linux_proc_attach_tgid_threads): New declaration.
947 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
948 use nowarn functions.
949 (linux_ptrace_attach_fail_reason_string): Move here from
950 gdbserver/linux-low.c and rename.
951 (ptrace_supports_feature): If the current ptrace options are not
952 known yet, check them now, instead of asserting.
953 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
956 2015-01-09 Pedro Alves <palves@redhat.com>
958 * linux-thread-db.c (thread_db_find_new_threads_silently)
959 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
960 (find_new_threads_once): Print debug output on gdb_stdlog.
962 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
963 Pedro Alves <palves@redhat.com>
965 * compile/compile.c: Include "gdb_wait.h".
966 (do_rmdir): Check return value, and free 'zap'.
968 2015-01-08 Pedro Alves <palves@redhat.com>
969 Yao Qi <yao@codesourcery.com>
971 * dwarf2loc.c (indirect_pieced_value): Don't call
972 gdb_sign_extend. Call extract_signed_integer instead.
973 * utils.c (gdb_sign_extend): Remove.
974 * utils.h (gdb_sign_extend): Remove declaration.
976 2015-01-07 Pierre Muller <muller@sourceware.org>
979 * stabsread.c (define_symbol): Set language for C++ special symbols.
981 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
983 * inflow.c (initial_gdb_ttystate): Tweak comment.
985 2015-01-07 Joel Brobecker <brobecker@adacore.com>
987 * inflow.c (set_initial_gdb_ttystate): Add empty line after
988 comment documenting function.
990 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
992 * terminal.h (set_initial_gdb_ttystate): Declare.
993 * inflow.c (initial_gdb_ttystate): New static variable.
994 (set_initial_gdb_ttystate): New setter.
995 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
996 instead of our current terminal state.
997 * top.c (gdb_init): Call set_initial_gdb_ttystate.
999 2015-01-07 Joel Brobecker <brobecker@adacore.com>
1001 * guile/scm-type.c (tyscm_array_1): Add comment.
1002 * python/py-type.c (typy_array_1): Add comment.
1004 2015-01-06 Joel Brobecker <brobecker@adacore.com>
1006 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
1007 error if N2 is equal to N1 - 1.
1009 2015-01-06 Joel Brobecker <brobecker@adacore.com>
1011 * python/py-type.c (typy_array_1): Do not raise negative-length
1012 exception if N2 is equal to N1 - 1.
1014 2015-01-03 Doug Evans <xdje42@gmail.com>
1016 * c-exp.y: Whitespace cleanup.
1017 (classify_inner_name): Remove extra ;.
1019 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
1021 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
1024 2015-01-02 Doug Evans <dje@google.com>
1026 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
1028 2015-01-02 Doug Evans <dje@google.com>
1030 * symtab.h (struct symbol): Fix typo in comment.
1032 2015-01-01 Joel Brobecker <brobecker@adacore.com>
1034 Update year range in copyright notice of all files.
1036 2015-01-01 Joel Brobecker <brobecker@adacore.com>
1038 * top.c (print_gdb_version): Update copyright year to 2015.
1040 2015-01-01 Joel Brobecker <brobecker@adacore.com>
1042 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
1044 For older changes see ChangeLog-2014.
1050 version-control: never