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