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