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