Automatic date update in version.in
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
cfb069a8
GB
12015-01-31 Gary Benson <gbenson@redhat.com>
2 Doug Evans <dje@google.com>
3
4 PR cli/9007
5 PR cli/11920
6 PR cli/15548
7 * cli/cli-cmds.c (complete_command): Notify user if max-completions
8 reached.
9 * common/common-exceptions.h (enum errors)
10 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11 * completer.h (get_max_completions_reached_message): New declaration.
12 (max_completions): Likewise.
13 (completion_tracker_t): New typedef.
14 (new_completion_tracker): New declaration.
15 (make_cleanup_free_completion_tracker): Likewise.
16 (maybe_add_completion_enum): New enum.
17 (maybe_add_completion): New declaration.
18 (throw_max_completions_reached_error): Likewise.
19 * completer.c (max_completions): New global variable.
20 (new_completion_tracker): New function.
21 (free_completion_tracker): Likewise.
22 (make_cleanup_free_completion_tracker): Likewise.
23 (maybe_add_completions): Likewise.
24 (throw_max_completions_reached_error): Likewise.
25 (complete_line): Remove duplicates and limit result to max_completions
26 entries.
27 (get_max_completions_reached_message): New function.
28 (gdb_display_match_list): Handle max_completions.
29 (_initialize_completer): New declaration and function.
30 * symtab.c: Include completer.h.
31 (completion_tracker): New static variable.
32 (completion_list_add_name): Call maybe_add_completion.
33 (default_make_symbol_completion_list_break_on_1): Renamed from
34 default_make_symbol_completion_list_break_on. Maintain
35 completion_tracker across calls to completion_list_add_name.
36 (default_make_symbol_completion_list_break_on): New function.
37 * top.c (init_main): Set rl_completion_display_matches_hook.
38 * tui/tui-io.c: Include completer.h.
39 (tui_old_rl_display_matches_hook): New static global.
40 (tui_rl_display_match_list): Notify user if max-completions reached.
41 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
42 * NEWS (New Options): Mention set/show max-completions.
43
e11c72c7
GB
442015-01-31 Gary Benson <gbenson@redhat.com>
45
46 * symtab.c (struct add_name_data) <code>: New field.
47 Updated comments.
48 (add_symtab_completions): New function.
49 (symtab_expansion_callback): Likewise.
50 (default_make_symbol_completion_list_break_on): Set datum.code.
51 Move minimal symbol scan before calling expand_symtabs_matching.
52 Scan known primary symtabs for externs and statics before calling
53 expand_symtabs_matching. Pass symtab_expansion_callback as
54 expansion_notify argument to expand_symtabs_matching. Do not scan
55 primary symtabs for externs and statics after calling
56 expand_symtabs_matching.
57
276d885b
GB
582015-01-31 Gary Benson <gbenson@redhat.com>
59
60 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
61 (struct quick_symbol_functions) <expand_symtabs_matching>:
62 New argument expansion_notify. All uses updated.
63 (expand_symtabs_matching): New argument expansion_notify.
64 All uses updated.
65 * symfile-debug.c (debug_qf_expand_symtabs_matching):
66 Also print expansion notify.
67 * symtab.c (expand_symtabs_matching_via_partial): Call
68 expansion_notify whenever a partial symbol table is expanded.
69 * dwarf2read.c (dw2_expand_symtabs_matching): Call
70 expansion_notify whenever a symbol table is instantiated.
71
82083d6d
DE
722015-01-31 Doug Evans <xdje42@gmail.com>
73
74 * cli-out.c: #include completer.h, readline/readline.h.
75 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
76 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
77 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
78 * cli-out.h (cli_display_match_list): Declare.
79 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
80 (ELLIPSIS_LEN): Ditto.
81 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
82 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
83 (gdb_fnprint, gdb_print_filename): Ditto.
84 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
85 (gdb_display_match_list): Ditto.
86 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
87 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
88 (mld_beep_ftype, mld_read_key_ftype): Ditto.
89 (match_list_displayer): New struct.
90 (gdb_display_match_list): Declare.
91 * top.c (init_main): Set rl_completion_display_matches_hook.
92 * tui/tui-io.c: #include completer.h.
93 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
94 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
95 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
96 (tui_mld_getc, tui_mld_read_key): Ditto.
97 (tui_rl_display_match_list): Rewrite.
98 (tui_handle_resize_during_io): New arg for_completion. All callers
99 updated.
100
f57d2163
DE
1012015-01-31 Doug Evans <xdje42@gmail.com>
102
103 Add symbol lookup cache.
104 * NEWS: Document new options and commands.
105 * symtab.c (symbol_cache_key): New static global.
106 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
107 (SYMBOL_LOOKUP_FAILED): New macro.
108 (symbol_cache_slot_state): New enum.
109 (block_symbol_cache): New struct.
110 (symbol_cache): New struct.
111 (new_symbol_cache_size, symbol_cache_size): New static globals.
112 (hash_symbol_entry, eq_symbol_entry): New functions.
113 (symbol_cache_byte_size, resize_symbol_cache): New functions.
114 (make_symbol_cache, free_symbol_cache): New functions.
115 (get_symbol_cache, symbol_cache_cleanup): New function.
116 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
117 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
118 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
119 (symbol_cache_flush, symbol_cache_dump): New functions.
120 (maintenance_print_symbol_cache): New function.
121 (maintenance_flush_symbol_cache): New function.
122 (symbol_cache_stats): New function.
123 (maintenance_print_symbol_cache_statistics): New function.
124 (symtab_new_objfile_observer): New function.
125 (symtab_free_objfile_observer): New function.
126 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
127 (_initialize_symtab): Init symbol_cache_key. New parameter
128 maint symbol-cache-size. New maint commands print symbol-cache,
129 print symbol-cache-statistics, flush-symbol-cache.
130 Install new_objfile, free_objfile observers.
131
e700d1b2
JB
1322015-01-31 Joel Brobecker <brobecker@adacore.com>
133
134 PR symtab/17855
135 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
136 to end.
137
9f050062
DE
1382015-01-31 Doug Evans <xdje42@gmail.com>
139
140 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
141 * auto-load.c: #include ctype.h.
142 (struct auto_load_pspace_info): Replace member loaded_scripts with
143 new members loaded_script_files, loaded_script_texts.
144 (auto_load_pspace_data_cleanup): Update.
145 (init_loaded_scripts_info): Update.
146 (get_auto_load_pspace_data_for_loading): Update.
147 (maybe_add_script_file): Renamed from maybe_add_script. All callers
148 updated.
149 (maybe_add_script_text): New function.
150 (clear_section_scripts): Update.
151 (source_script_file, execute_script_contents): New functions.
152 (source_section_scripts): Add support for
153 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
154 (print_scripts): New function.
155 (auto_load_info_scripts): Also print inlined scripts.
156 (maybe_print_unsupported_script_warning): Renamed from
157 unsupported_script_warning_print. All callers updated.
158 (maybe_print_script_not_found_warning): Renamed from
159 script_not_found_warning_print. All callers updated.
160 * extension-priv.h (struct extension_language_script_ops): New member
161 objfile_script_executor.
162 * extension.c (ext_lang_objfile_script_executor): New function.
163 * extension.h (objfile_script_executor_func): New typedef.
164 (ext_lang_objfile_script_executor): Declare.
165 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
166 * guile/guile.c (guile_extension_script_ops): Update.
167 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
168 * python/python.c (python_extension_script_ops): Update.
169 (gdbpy_execute_objfile_script): New function.
170
312809f8
EZ
1712015-01-31 Eli Zaretskii <eliz@gnu.org>
172
173 * tui/tui-io.c (tui_expand_tabs): New function.
174 (tui_puts, tui_redisplay_readline): Expand TABs into the
175 appropriate number of spaces.
176 * tui/tui-regs.c: Include tui-io.h.
177 (tui_register_format): Call tui_expand_tabs to expand TABs into
178 the appropriate number of spaces.
179 * tui/tui-io.h: Add prototype for tui_expand_tabs.
180
b6577aab
DE
1812015-01-30 Doug Evans <dje@google.com>
182
183 * NEWS: "info source" command now display producer string if present.
184 * source.c (source_info): Print producer string if present.
185
6da58d3e
SM
1862015-01-30 Simon Marchi <simon.marchi@ericsson.com>
187
188 * varobj.c (varobj_delete): Fix comment.
189
837ce252
SM
1902015-01-30 Simon Marchi <simon.marchi@ericsson.com>
191
192 * varobj.c (create_child): Modify comment.
193
b09e2c59
SM
1942015-01-30 Simon Marchi <simon.marchi@ericsson.com>
195
196 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
197 parameter.
198 (ada_name_of_variable): Same.
199 (ada_path_expr_of_child): Same.
200 (ada_value_of_variable): Same.
201 (ada_value_is_changeable_p): Same.
202 (ada_value_has_mutated): Same.
203 * c-varobj.c (varobj_is_anonymous_child): Same.
204 (c_is_path_expr_parent): Same.
205 (c_number_of_children): Same.
206 (c_name_of_variable): Same.
207 (c_path_expr_of_child): Same.
208 (get_type): Same.
209 (c_value_of_variable): Same.
210 (cplus_number_of_children): Same.
211 (cplus_name_of_variable): Same.
212 (cplus_path_expr_of_child): Same.
213 (cplus_value_of_variable): Same.
214 * jv-varobj.c (java_number_of_children): Same.
215 (java_name_of_variable): Same.
216 (java_path_expr_of_child): Same.
217 (java_value_of_variable): Same.
218 * varobj.c (number_of_children): Same.
219 (name_of_variable): Same.
220 (is_root_p): Same.
221 (varobj_ensure_python_env): Same.
222 (varobj_get_objname): Same.
223 (varobj_get_expression): Same.
224 (varobj_get_display_format): Same.
225 (varobj_get_display_hint): Same.
226 (varobj_has_more): Same.
227 (varobj_get_thread_id): Same.
228 (varobj_get_frozen): Same.
229 (dynamic_varobj_has_child_method): Same.
230 (varobj_get_gdb_type): Same.
231 (is_path_expr_parent): Same.
232 (varobj_default_is_path_expr_parent): Same.
233 (varobj_get_language): Same.
234 (varobj_get_attributes): Same.
235 (varobj_is_dynamic_p): Same.
236 (varobj_get_child_range): Same.
237 (varobj_value_has_mutated): Same.
238 (varobj_get_value_type): Same.
239 (number_of_children): Same.
240 (name_of_variable): Same.
241 (check_scope): Same.
242 (varobj_editable_p): Same.
243 (varobj_value_is_changeable_p): Same.
244 (varobj_floating_p): Same.
245 (varobj_default_value_is_changeable_p): Same.
246
2568868e
SM
2472015-01-30 Simon Marchi <simon.marchi@ericsson.com>
248
249 * varobj.c (varobj_get_path_expr): Set var->path_expr.
250 * c-varobj.c (c_path_expr_of_child): Set local var instead of
251 child->path_expr.
252 (cplus_path_expr_of_child): Same.
253
ca83fa81
SM
2542015-01-30 Simon Marchi <simon.marchi@ericsson.com>
255
256 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
257 result.
258 (mi_cmd_var_info_expression): Same.
259 * varobj.c (varobj_get_expression): Mention in the comment that
260 the result must by freed by the caller.
261
afa269ae
SM
2622015-01-30 Simon Marchi <simon.marchi@ericsson.com>
263
264 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
265 varobj_get_type.
266 (varobj_update_one): Same.
267 * varobj.c (update_type_if_necessary): Free curr_type_str and
268 new_type_str.
269 (varobj_get_type): Specify in comment that the result needs to be
270 freed by the caller.
271
cd366ee8
DE
2722015-01-29 Doug Evans <dje@google.com>
273
274 PR symtab/17890
275 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
276
38360086
MW
2772015-01-25 Mark Wielaard <mjw@redhat.com>
278
279 * dwarf2read.c (checkproducer): Call producer_is_gcc.
280 * utils.c (producer_is_gcc_ge_4): Likewise.
281 (producer_is_gcc): New function.
282 * utils.h (producer_is_gcc): New declaration.
283
df25ebbd
JB
2842015-01-29 Joel Brobecker <brobecker@adacore.com>
285
286 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
287 kind.
288 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
289 parameter by "addr_stack" parameter.
290 (resolve_dynamic_range): Replace "addr" parameter by
291 "stack_addr" parameter. Update function documentation.
292 Update code accordingly.
293 (resolve_dynamic_array, resolve_dynamic_union)
294 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
295 (resolve_dynamic_type): Update code, following the changes made
296 to resolve_dynamic_type_internal's interface.
297 * dwarf2loc.h (struct property_addr_info): New.
298 (dwarf2_evaluate_property): Replace "address" parameter
299 by "addr_stack" parameter. Adjust function documentation.
300 (struct dwarf2_offset_baton): New.
301 (struct dwarf2_property_baton): Update documentation of
302 field "referenced_type" to be more general. New field
303 "offset_info" in union data field.
304 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
305 parameter by "addr_stack" parameter. Adjust code accordingly.
306 Add support for PROP_ADDR_OFFSET properties.
307 * dwarf2read.c (attr_to_dynamic_prop): Add support for
308 DW_AT_data_member_location attributes as well. Use case
309 statements instead of if/else condition.
310
4a0ca9ec
JB
3112015-01-29 Joel Brobecker <brobecker@adacore.com>
312
313 * ada-varobj.c (ada_varobj_get_array_number_of_children):
314 Return zero if PARENT_VALUE is NULL and parent_type's
315 range type is dynamic.
316
ddb87a81
JB
3172015-01-29 Joel Brobecker <brobecker@adacore.com>
318
319 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
320 nonzero if the type's subtype is dynamic.
321 (resolve_dynamic_range): Also resolve the range's subtype.
322
3d7ad9b4 3232015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
7a270e0c 324
3d7ad9b4 325 Pushed by Joel Brobecker <brobecker@adacore.com>.
7a270e0c
AK
326 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
327
3a8b707a
DE
3282015-01-27 Doug Evans <dje@google.com>
329
330 * NEWS: Mention gdb.Objfile.username.
331 * python/py-objfile.c (objfpy_get_username): New function.
332 (objfile_getset): Add "username".
333
d35b90fb
MW
3342015-01-24 Mark Wielaard <mjw@redhat.com>
335
336 * stack.c (return_command): Markup warning message with _.
337
734ae125
DE
3382015-01-24 Doug Evans <xdje42@gmail.com>
339
340 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
341
527f3840
JK
3422015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
343
344 Fix 100x slowdown regression on DWZ files.
345 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
346 (struct line_header): Add offset and offset_in_dwz.
347 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
348 (free_line_header_voidp): New declaration.
349 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
350 functions.
351 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
352 (handle_DW_AT_stmt_list): Use line_header_hash.
353 (free_line_header_voidp): New function.
354 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
355 (dwarf_decode_lines): New parameter decode_mapping, use it.
356 (dwarf2_free_objfile): Free line_header_hash.
357
f7e5394d
SM
3582015-01-23 Simon Marchi <simon.marchi@ericsson.com>
359
360 PR gdb/17416
361 * valops.c (value_rtti_indirect_type): Catch exception thrown by
362 value_ind.
363
743649fd
MW
3642015-01-15 Mark Wielaard <mjw@redhat.com>
365
366 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
367 DW_AT_noreturn.
368 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
369 calling_convention an 8 bit bit field.
370 (TYPE_NO_RETURN): New macro.
371 * infcmd.c (finish_command): Query if function does not return
372 normally.
373 * stack.c (return_command): Likewise.
374
198297aa
PA
3752015-01-23 Pedro Alves <palves@redhat.com>
376
377 * linux-nat.c (linux_is_async_p): New macro.
378 (linux_nat_is_async_p):
379 (linux_nat_terminal_inferior): Check whether the target can async
380 instead of whether it is already async.
381 (linux_nat_terminal_ours): Don't check whether the target is
382 async.
383 (linux_async_pipe): Use linux_is_async_p.
384
253828f1
JK
3852015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
386
387 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
388 '-ascending'.
389 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
390 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
391 Sort tp_array using tp_array_compar.
392 (_initialize_thread): Extend thread_apply_all_command help.
393
f0e8c4c5
JK
3942015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
395
396 * corelow.c (core_open): Call also thread_command.
397 * gdbthread.h (thread_command): New prototype moved from ...
398 * thread.c (thread_command): ... here.
399 (thread_command): Make it global.
400
03b79603
PA
4012015-01-22 Pedro Alves <palves@redhat.com>
402
403 * configure.ac [*mingw32*]: Check $curses_found instead of
404 $prefer_curses.
405 * configure: Regenerate.
406 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
407 HAVE_NCURSES_NCURSES_H checks.
408
6b8a872f
EZ
4092015-01-22 Eli Zaretskii <eliz@gnu.org>
410
bbbbffbb 411 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
6b8a872f
EZ
412 fails with the 1st arg NULL, try again with "unknown". Don't test
413 the "cup" capability: it isn't supported by the Windows port of
414 ncurses, but the Windows console driver is still capable of
415 supporting TUI.
416
4b62a76e
JK
4172015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
418
419 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
420
82a864f9
EZ
4212015-01-22 Eli Zaretskii <eliz@gnu.org>
422
423 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
424 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
425 reason that "make TAGS" is broken.
426
b35018fd
CG
4272015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
428
429 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
430 and check additional store instructions.
431
ffbc4646
WW
4322015-01-21 Wei-cheng Wang <cole945@gmail.com>
433
434 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
435
ddeca1df
WW
4362015-01-21 Wei-cheng Wang <cole945@gmail.com>
437
438 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
439 ppc_canonicalize_syscall, ppc_linux_syscall_record,
440 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
441 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
442 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
443 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
444 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
445 ppc_process_record_op19, ppc_process_record_op31,
446 ppc_process_record_op59, ppc_process_record_op60,
447 ppc_process_record_op63): Likewise.
448
049bb5de
JB
4492015-01-20 Joel Brobecker <brobecker@adacore.com>
450
451 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
452 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
453 strerror.
454
42b87c63 4552015-01-20 Wei-cheng Wang <cole945@gmail.com>
810c1026
WW
456
457 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
458 ppc_process_record_op31, ppc_process_record_op59,
459 ppc_process_record_op60, ppc_process_record_op63,
460 ppc_process_record): Fix -Wformat warning.
461 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
462 Remove unused variables.
463
569340fc
CG
4642015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
465
466 * MAINTAINERS (Write After Approval): Add "Chen Gang".
467
63413d85
EZ
4682015-01-19 Eli Zaretskii <eliz@gnu.org>
469
470 * configure.ac [*mingw32*]: Only add windows-termcap.o to
471 CONFIG_OBS if not building with a curses library.
472 * configure: Regenerate.
473
474 * windows-termcap.c: Include defs.h. Make the whole body empty if
475 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
476 HAVE_NCURSES_NCURSES_H is defined.
477
16d8013c
JB
4782015-01-19 Joel Brobecker <brobecker@adacore.com>
479
480 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
481 from end of line to start of next line.
482
cf90fd9a
WW
4832015-01-17 Wei-cheng Wang <cole945@gmail.com>
484
485 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
486 Scan PLT stub backward for reverse debugging.
487 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
488
b4cdae6f
WW
4892015-01-17 Wei-cheng Wang <cole945@gmail.com>
490 Ulrich Weigand <uweigand@de.ibm.com>
491
492 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
493 gdb_target_obs.
494 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
495 record.
496 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
497 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
498 (ppc_linux_init_abi): Set process_record, process_record_signal.
499 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
500 ppc_linux_record_tdep to gdbarch_tdep.
501 (ppc_process_record): New declaration.
502 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
503 ppc_process_record_op19, ppc_process_record_op31,
504 ppc_process_record_op59, ppc_process_record_op60,
505 ppc_process_record_op63, ppc_process_record): New functions.
506
2608dbf8
WW
5072015-01-17 Wei-cheng Wang <cole945@gmail.com>
508
509 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
510 rs6000_in_function_epilogue_frame_p and add an argument
511 for frame_info.
512 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
513 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
514 New functions.
515 (rs6000_epilogue_frame_unwind): New.
516 (rs6000_gdbarch_init): Append epilogue unwinder.
517
4c347be6
SDJ
5182015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
519
520 * nat/linux-personality.c: Replace "#ifndef
521 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
522 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
523 systems.
524
9f2850ba
EZ
5252015-01-16 Eli Zaretskii <eliz@gnu.org>
526
6cdb25f4
EZ
527 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
528 functions.
529 (_initialize_tui_win) <border-kind, border-mode>:
530 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
c54da50d
EZ
531 (tui_set_tab_width_command): Fix the commentary.
532
6cdb25f4
EZ
533 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
534
bf555842
EZ
535 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
536 Doc fix.
cb86fcc1
EZ
537 (tui_set_tab_width_command): Delete and recreate the source and
538 the disassembly windows, to show the effect of the changed tab
539 size immediately.
bf555842 540
9f2850ba
EZ
541 * tui/tui-data.h (LINE_PREFIX): Make shorter
542 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
543 "Thread NNNNN.XXXX" thread ID notation on Windows.
544
95761b2d
JK
5452015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
546
547 Fix gcc-5 compilation.
548 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
549
8cc73a39
SDJ
5502015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
551
552 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
553 (linux-personality.o): New rule.
554 * common/common-defs.h: Include <stdint.h>.
555 * config/aarch64/linux.mh (NATDEPFILES): Include
556 linux-personality.o.
557 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
558 * config/arm/linux.mh (NATDEPFILES): Likewise.
559 * config/i386/linux64.mh (NATDEPFILES): Likewise.
560 * config/i386/linux.mh (NATDEPFILES): Likewise.
561 * config/ia64/linux.mh (NATDEPFILES): Likewise.
562 * config/m32r/linux.mh (NATDEPFILES): Likewise.
563 * config/m68k/linux.mh (NATDEPFILES): Likewise.
564 * config/mips/linux.mh (NATDEPFILES): Likewise.
565 * config/pa/linux.mh (NATDEPFILES): Likewise.
566 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
567 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
568 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
569 * config/s390/linux.mh (NATDEPFILES): Likewise.
570 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
571 * config/sparc/linux.mh (NATDEPFILES): Likewise.
572 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
573 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
574 * defs.h: Remove #include <stdint.h> (moved to
575 common/common-defs.h).
576 * linux-nat.c: Include nat/linux-personality.h. Remove #include
577 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
578 nat/linux-personality.c).
579 (linux_nat_create_inferior): Remove code to disable address space
580 randomization (moved to nat/linux-personality.c). Create cleanup
581 to disable address space randomization.
582 * nat/linux-personality.c: New file.
583 * nat/linux-personality.h: Likewise.
584
fb23d554
SDJ
5852015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
586
587 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
588 common/posix-strerror.c.
589 (posix-strerror.o): New rule.
590 (mingw-strerror.o): Likewise.
591 * common/common-utils.h (safe_strerror): Move prototype to here,
592 from utils.h.
593 * common/common.host: New file.
594 * common/mingw-strerror.c: Likewise.
595 * common/posix-strerror.c: Likewise.
596 * configure: Regenerated.
597 * configure.ac: Source common/common.host. Add variable
598 common_host_obs to gdb_host_obs.
599 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
600 gdb/common/posix-strerror.c when warning about the use of
601 strerror.
602 * mingw-hdep.c (safe_strerror): Remove definition; move it to
603 common/mingw-strerror.c.
604 * posix-hdep.c (safe_strerror): Remove definition; move it to
605 common/posix-hdep.c.
606 * utils.h (safe_strerror): Remove prototype; move to
607 common/common-utils.h.
608
3af8af43
JB
6092015-01-15 Joel Brobecker <brobecker@adacore.com>
610
611 GDB 7.8.2 released.
612
bafffb51
JB
6132015-01-15 Joel Brobecker <brobecker@adacore.com>
614
615 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
616 ___XA type if the array has already been fixed.
617
cdf43629
YQ
6182015-01-14 Yao Qi <yao@codesourcery.com>
619
620 * Makefile.in (ppc-linux.o): New rule.
621 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
622 * configure.ac: AC_CHECK_FUNCS(getauxval).
623 * config.in: Re-generated.
624 * configure: Re-generated.
625 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
626 Declare.
627 * nat/ppc-linux.c: New file.
628 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
629 Call ppc64_64bit_inferior_p.
630
514c5338
YQ
6312015-01-14 Yao Qi <yao@codesourcery.com>
632
633 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
634 nat/ppc-linux.h.
635 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
636 (PPC_FEATURE_HAS_DFP): Likewise.
637 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
638 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
639 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
640 Include "nat/ppc-linux.h".
641 * nat/ppc-linux.h: New file.
642 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
643
5589af0e
PA
6442015-01-14 Pedro Alves <palves@redhat.com>
645
646 PR gdb/17525
647 * breakpoint.c: Include "interps.h".
648 (bpstat_do_actions_1): Also check whether the interpreter is
649 async.
650
6c400b59
PA
6512015-01-14 Pedro Alves <palves@redhat.com>
652
653 PR cli/17828
654 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
655 reinstall if the interpreter is sync.
656
e02c96a7
DE
6572015-01-13 Doug Evans <dje@google.com>
658
659 * objfiles.c (objfile_filename): New function.
660 * objfiles.h (objfile_filename): Declare it.
661 (objfile_name): Add function comment.
662 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
663 bfd file name (which may be realpath'd), and the original name.
664
3b2f13ff
JB
6652015-01-13 Joel Brobecker <brobecker@adacore.com>
666
667 * NEWS: Create a new section for the next release branch.
668 Rename the section of the current branch, now that it has
669 been cut.
670
b4cfe7f8
JB
6712015-01-13 Joel Brobecker <brobecker@adacore.com>
672
673 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
674 * version.in: Bump version to 7.9.50.DATE-cvs.
675
92fc2e69
JB
6762015-01-13 Joel Brobecker <brobecker@adacore.com>
677
678 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
679 Remove trailing new-line in argument of call to warning.
680
f71f0b0d
JB
6812015-01-13 Joel Brobecker <brobecker@adacore.com>
682
683 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
684 new-line in argument of call to "warning".
685
04dccad0
JB
6862015-01-13 Joel Brobecker <brobecker@adacore.com>
687
688 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
689 in static block, then try searching for primitive types.
690
08b13bdd
PP
6912015-01-12 Patrick Palka <patrick@parcs.ath.cx>
692
693 * top.h (gdb_add_history): Declare.
694 * top.c (command_count): New variable.
695 (gdb_add_history): New function.
696 (gdb_safe_append_history): New static function.
697 (quit_force): Call it.
698 (command_line_input): Use gdb_add_history instead of
699 add_history.
700 * event-top.c (command_line_handler): Likewise.
701
4ac15b59
JC
7022015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
703
704 PR gdb/17046
705 * darwin-nat.c: Replace <machine/setjmp.h> #include by
706 <setjmp.h> #include.
707
005e54bb
DE
7082015-01-11 Doug Evans <xdje42@gmail.com>
709
710 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
711
439250fb
DE
7122015-01-11 Doug Evans <xdje42@gmail.com>
713
714 PR gdb/15830
715 * NEWS: The "maint demangle" command is renamed as "demangle".
716 * demangle.c: #include cli/cli-utils.h, language.h.
717 (demangle_command): New function.
718 (_initialize_demangle): Add new command "demangle".
719 * maint.c (maintenance_demangle): Stub out.
720 (_initialize_maint_cmds): Update help text for "maint demangle",
721 and mark as deprecated.
722
ebf3aa72
MK
7232015-01-11 Mark Kettenis <kettenis@gnu.org>
724
725 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
726 inferior_thread is a function.
727
6bf045cd
PP
7282015-01-09 Patrick Palka <patrick@parcs.ath.cx>
729
730 * Makefile.in (.y.c): Don't munge yacc's #line
731 directives.
732
588dcc3e
PP
7332015-01-09 Patrick Palka <patrick@parcs.ath.cx>
734
735 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
736 to prompt for input.
737 * tui/tui-hooks.c (tui_query_hook): Remove.
738 (tui_install_hooks): Don't set deprecated_query_hook.
739 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
740 height calculation. Always update the command window's cur_line.
741
9c02b525
PA
7422015-01-09 Pedro Alves <palves@redhat.com>
743
744 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
745 function.
746 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
747 declaration.
748 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
749 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
750 stop_reason.
751 (check_stopped_by_watchpoint): New function.
752 (save_sigtrap): Reimplement.
753 (linux_nat_stopped_by_watchpoint): Adjust.
754 (linux_nat_lp_status_is_event): Delete.
755 (stop_wait_callback): Only call save_sigtrap after storing the
756 pending status.
757 (status_callback): If the thread had been stopped for a breakpoint
758 that has since been removed, discard the event and resume the LWP.
759 (count_events_callback, select_event_lwp_callback): Use
760 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
761 (cancel_breakpoint): Rename to ...
762 (check_stopped_by_breakpoint): ... this. Record whether the LWP
763 stopped for a software breakpoint or hardware breakpoint.
764 (select_event_lwp): Only give preference to the stepping LWP in
765 all-stop mode. Adjust comments.
766 (stop_and_resume_callback): Remove references to new_pending_p.
767 (linux_nat_filter_event): Likewise. Leave exit events of the
768 leader thread pending here. Handle signal short circuiting here.
769 Only call save_sigtrap after storing the pending waitstatus.
770 (linux_nat_wait_1): Remove 'retry' label. Remove references to
771 new_pending. Don't handle leaving events the caller is not
772 interested in pending here, nor handle signal short-circuiting
773 here. Also give equal priority to all LWPs that have had events
774 in non-stop mode. If reporting a software breakpoint event,
775 unadjust the LWP's PC.
776 * linux-nat.h (enum lwp_stop_reason): New.
777 (struct lwp_info) <stop_pc>: New field.
778 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
779 (struct lwp_info) <stop_reason>: New field.
780 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
781
8af756ef
PA
7822015-01-09 Pedro Alves <palves@redhat.com>
783
784 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
785 Set the LWP's 'resumed' flag.
786
8a99810d
PA
7872015-01-09 Pedro Alves <palves@redhat.com>
788
789 * linux-nat.c (linux_resume_one_lwp): New function.
790 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
791 (linux_nat_resume): Use lwp_status_pending_p and
792 linux_resume_one_lwp.
793 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
794 (linux_handle_extended_wait): Use linux_resume_one_lwp.
795 (status_callback, running_callback): Use lwp_status_pending_p.
796 (lwp_status_pending_p): New function.
797 (stop_and_resume_callback): Use lwp_status_pending_p.
798 (linux_nat_filter_event): Use linux_resume_one_lwp.
799 (linux_nat_wait_1): Always use status_callback to look for an LWP
800 with a pending status. Use linux_resume_one_lwp.
801 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
802 linux_resume_one_lwp.
803
f7ce857f
PA
8042015-01-09 Pedro Alves <palves@redhat.com>
805
806 * breakpoint.c (bp_location_inserted_here_p): New function,
807 factored out from ...
808 (breakpoint_inserted_here_p): ... here. Use
809 ALL_BP_LOCATIONS_AT_ADDR.
810 (software_breakpoint_inserted_here_p): Use
811 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
812
c1a747c1
PA
8132014-01-09 Pedro Alves <palves@redhat.com>
814
815 Skip enabling event reporting if the kernel supports
816 PTRACE_EVENT_CLONE.
817 * linux-thread-db.c: Include "nat/linux-ptrace.h".
818 (thread_db_use_events): New function.
819 (try_thread_db_load_1): Check thread_db_use_events before enabling
820 event reporting.
821 (update_thread_state): New function.
822 (attach_thread): Use it. Check thread_db_use_events before
823 enabling event reporting.
824 (thread_db_detach): Check thread_db_use_events before disabling
825 event reporting.
826 (find_new_threads_callback): Check thread_db_use_events before
827 enabling event reporting. Update the thread's state if not using
828 libthread_db events.
829
a33e3959
PA
8302015-01-09 Pedro Alves <palves@redhat.com>
831
832 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
833 about to wait for is > 0.
834 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
835 the kernel thread ID is -1.
836
8784d563
PA
8372015-01-09 Pedro Alves <palves@redhat.com>
838
839 * linux-nat.c (attach_proc_task_lwp_callback): New function.
840 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
841 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
842 ptrace option flags.
843 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
844 field.
845 * nat/linux-procfs.c: Include <dirent.h>.
846 (linux_proc_get_int): New parameter "warn". Handle it.
847 (linux_proc_get_tgid): Adjust.
848 (linux_proc_get_tracerpid): Rename to ...
849 (linux_proc_get_tracerpid_nowarn): ... this.
850 (linux_proc_pid_get_state): New function, factored out from
851 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
852 and handle it.
853 (linux_proc_pid_is_gone): New function.
854 (linux_proc_pid_is_stopped): Adjust.
855 (linux_proc_pid_is_zombie_maybe_warn)
856 (linux_proc_pid_is_zombie_nowarn): New functions.
857 (linux_proc_pid_is_zombie): Use
858 linux_proc_pid_is_zombie_maybe_warn.
859 (linux_proc_attach_tgid_threads): New function.
860 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
861 (linux_proc_get_tracerpid): Rename to ...
862 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
863 (linux_proc_pid_is_gone): New declaration.
864 (linux_proc_pid_is_zombie): Update comment.
865 (linux_proc_pid_is_zombie_nowarn): New declaration.
866 (linux_proc_attach_lwp_func): New typedef.
867 (linux_proc_attach_tgid_threads): New declaration.
868 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
869 use nowarn functions.
870 (linux_ptrace_attach_fail_reason_string): Move here from
871 gdbserver/linux-low.c and rename.
872 (ptrace_supports_feature): If the current ptrace options are not
873 known yet, check them now, instead of asserting.
874 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
875 Declare.
876
883ed13e
PA
8772015-01-09 Pedro Alves <palves@redhat.com>
878
879 * linux-thread-db.c (thread_db_find_new_threads_silently)
880 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
881 (find_new_threads_once): Print debug output on gdb_stdlog.
882
1710aab8
CG
8832015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
884 Pedro Alves <palves@redhat.com>
885
886 * compile/compile.c: Include "gdb_wait.h".
887 (do_rmdir): Check return value, and free 'zap'.
888
b597c318
YQ
8892015-01-08 Pedro Alves <palves@redhat.com>
890 Yao Qi <yao@codesourcery.com>
891
892 * dwarf2loc.c (indirect_pieced_value): Don't call
893 gdb_sign_extend. Call extract_signed_integer instead.
894 * utils.c (gdb_sign_extend): Remove.
895 * utils.h (gdb_sign_extend): Remove declaration.
896
025ac414
PM
8972015-01-07 Pierre Muller <muller@sourceware.org>
898
899 PR symtab/17811
900 * stabsread.c (define_symbol): Set language for C++ special symbols.
901
fa5af12a
PP
9022015-01-07 Patrick Palka <patrick@parcs.ath.cx>
903
904 * inflow.c (initial_gdb_ttystate): Tweak comment.
905
ea42d6f8
JB
9062015-01-07 Joel Brobecker <brobecker@adacore.com>
907
908 * inflow.c (set_initial_gdb_ttystate): Add empty line after
909 comment documenting function.
910
6a06d660
PP
9112015-01-07 Patrick Palka <patrick@parcs.ath.cx>
912
913 * terminal.h (set_initial_gdb_ttystate): Declare.
914 * inflow.c (initial_gdb_ttystate): New static variable.
915 (set_initial_gdb_ttystate): New setter.
916 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
917 instead of our current terminal state.
918 * top.c (gdb_init): Call set_initial_gdb_ttystate.
919
e810d75b
JB
9202015-01-07 Joel Brobecker <brobecker@adacore.com>
921
922 * guile/scm-type.c (tyscm_array_1): Add comment.
923 * python/py-type.c (typy_array_1): Add comment.
924
fce10a84
JB
9252015-01-06 Joel Brobecker <brobecker@adacore.com>
926
927 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
928 error if N2 is equal to N1 - 1.
929
8503d6e1
JB
9302015-01-06 Joel Brobecker <brobecker@adacore.com>
931
932 * python/py-type.c (typy_array_1): Do not raise negative-length
933 exception if N2 is equal to N1 - 1.
934
4d29c0a8
DE
9352015-01-03 Doug Evans <xdje42@gmail.com>
936
937 * c-exp.y: Whitespace cleanup.
938 (classify_inner_name): Remove extra ;.
939
eaa6a9a4
MR
9402015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
941
942 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
943 offset signed.
944
02fe9972
DE
9452015-01-02 Doug Evans <dje@google.com>
946
947 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
948
e2ada9cb
DE
9492015-01-02 Doug Evans <dje@google.com>
950
951 * symtab.h (struct symbol): Fix typo in comment.
952
32d0add0
JB
9532015-01-01 Joel Brobecker <brobecker@adacore.com>
954
955 Update year range in copyright notice of all files.
956
76f2b779
JB
9572015-01-01 Joel Brobecker <brobecker@adacore.com>
958
959 * top.c (print_gdb_version): Update copyright year to 2015.
960
077309e2 9612015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 962
077309e2 963 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 964
077309e2 965For older changes see ChangeLog-2014.
c906108c
SS
966\f
967Local Variables:
968mode: change-log
969left-margin: 8
970fill-column: 74
971version-control: never
57da7796 972coding: utf-8
c906108c 973End:
This page took 1.845905 seconds and 4 git commands to generate.