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