Fix non executable stack handling when calling functions in the inferior.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c9587f88
AT
12015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
2
3 PR breakpoints/16812
4 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
5 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
6 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
7
53cf2ee0
DT
82015-02-19 David Taylor <dtaylor@emc.com>
9
10 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11
acfe0940
PP
122015-02-18 Patrick Palka <patrick@parcs.ath.cx>
13
14 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
15 function.
16 (tui_putc): Don't call tui_handle_resize_during_io.
17 (tui_getc): Likewise.
18 (tui_mld_getc): Likewise.
19 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
20 (tui_sigwinch_token): New static variable.
21 (tui_initialize_win): Adjust documentation. Set
22 tui_sigwinch_token.
23 (tui_async_resize_screen): New asynchronous callback.
24 (tui_sigwinch_handler): Adjust documentation. Asynchronously
25 invoke tui_async_resize_screen.
26
f6a88844
JM
272015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
28
29 * configure: Regenerated.
30 * configure.ac: Use GDB_AC_TRANSFORM.
31 * Makefile.in (aclocal_m4_deps): Added transform.m4.
32 * acinclude.m4: sinclude transform.m4.
33 * transform.m4: New file.
34 (GDB_AC_TRANSFORM): New macro.
35
b05e3b0d
JM
362015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
37
38 * NEWS: Announce the support for DTrace SDT probes.
39
c3e3045e
JM
402015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
41
42 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
43 (amd64_dtrace_parse_probe_argument): New function.
44 (amd64_dtrace_probe_is_enabled): Likewise.
45 (amd64_dtrace_enable_probe): Likewise.
46 (amd64_dtrace_disable_probe): Likewise.
47 (amd64_linux_init_abi): Register the
48 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
49 `gdbarch_dtrace_disable_probe' and
50 `gdbarch_dtrace_probe_is_enabled' hooks.
51 (amd64_dtrace_disabled_probe_sequence_1): New constant.
52 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
53 (amd64_dtrace_enable_probe_sequence): Likewise.
54 (amd64_dtrace_disable_probe_sequence): Likewise.
55
d4777acb
JM
562015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
57
58 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
59 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
60 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
61 handle ELF files.
62 * Makefile.in (SFILES): dtrace-probe.c added.
63 * configure: Regenerate.
64 * dtrace-probe.c: New file.
65 (SHT_SUNW_dof): New constant.
66 (dtrace_probe_type): New enum.
67 (dtrace_probe_arg): New struct.
68 (dtrace_probe_arg_s): New typedef.
69 (struct dtrace_probe_enabler): New struct.
70 (dtrace_probe_enabler_s): New typedef.
71 (dtrace_probe): New struct.
72 (dtrace_probe_is_linespec): New function.
73 (dtrace_dof_sect_type): New enum.
74 (dtrace_dof_dofh_ident): Likewise.
75 (dtrace_dof_encoding): Likewise.
76 (DTRACE_DOF_ENCODE_LSB): Likewise.
77 (DTRACE_DOF_ENCODE_MSB): Likewise.
78 (dtrace_dof_hdr): New struct.
79 (dtrace_dof_sect): Likewise.
80 (dtrace_dof_provider): Likewise.
81 (dtrace_dof_probe): Likewise.
82 (DOF_UINT): New macro.
83 (DTRACE_DOF_PTR): Likewise.
84 (DTRACE_DOF_SECT): Likewise.
85 (dtrace_process_dof_probe): New function.
86 (dtrace_process_dof): Likewise.
87 (dtrace_build_arg_exprs): Likewise.
88 (dtrace_get_arg): Likewise.
89 (dtrace_get_probes): Likewise.
90 (dtrace_get_probe_argument_count): Likewise.
91 (dtrace_can_evaluate_probe_arguments): Likewise.
92 (dtrace_evaluate_probe_argument): Likewise.
93 (dtrace_compile_to_ax): Likewise.
94 (dtrace_probe_destroy): Likewise.
95 (dtrace_gen_info_probes_table_header): Likewise.
96 (dtrace_gen_info_probes_table_values): Likewise.
97 (dtrace_probe_is_enabled): Likewise.
98 (dtrace_probe_ops): New variable.
99 (info_probes_dtrace_command): New function.
100 (_initialize_dtrace_probe): Likewise.
101 (dtrace_type_name): Likewise.
102
8b367e17
JM
1032015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
104
105 * gdbarch.sh (dtrace_parse_probe_argument): New.
106 (dtrace_probe_is_enabled): Likewise.
107 (dtrace_enable_probe): Likewise.
108 (dtrace_disable_probe): Likewise.
109 * gdbarch.c: Regenerate.
110 * gdbarch.h: Regenerate.
111
9aca2ff8
JM
1122015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
113
114 * stap-probe.c (stap_probe_ops): Add NULLs in the static
115 stap_probe_ops for `enable_probe' and `disable_probe'.
116 * probe.c (enable_probes_command): New function.
117 (disable_probes_command): Likewise.
118 (_initialize_probe): Define the cli commands `enable probe' and
119 `disable probe'.
120 (parse_probe_linespec): New function.
121 (info_probes_for_ops): Use parse_probe_linespec.
122 * probe.h (probe_ops): New hooks `enable_probe' and
123 `disable_probe'.
124
03e98035
JM
1252015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
126
127 * probe.c (compute_probe_arg): Moved from stap-probe.c
128 (compile_probe_arg): Likewise.
129 (probe_funcs): Likewise.
130 * stap-probe.c (compute_probe_arg): Moved to probe.c.
131 (compile_probe_arg): Likewise.
132 (probe_funcs): Likewise.
133
6f9b8491
JM
1342015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
135
136 * probe.c (print_ui_out_not_applicables): New function.
137 (exists_probe_with_pops): Likewise.
138 (info_probes_for_ops): Do not include column headers for probe
139 types for which no probe has been actually found on any object.
140 Also invoke `print_ui_out_not_applicables' in order to match the
141 column rows with the header when probes of several types are
142 listed.
143 Print the "Type" column.
144 * probe.h (probe_ops): Added a new probe operation `type_name'.
145 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
146 (stap_type_name): New function.
147
69efdff1
PP
1482015-02-17 Patrick Palka <patrick@parcs.ath.cx>
149
150 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
151 (key_is_command_char): Delete.
152
f8e5e23e
PA
1532015-02-17 Pedro Alves <palves@redhat.com>
154
155 * tui/tui.c (tui_enable): Resize windows before anything
156 might show a window.
157
9f2e0721
MO
1582015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
159
160 PR gdb/17984
161 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
162 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
163 call.
164 * aarch64-tdep.h (tdesc_aarch64): Declare.
165
171e6b1c
MW
1662015-02-12 Mark Wielaard <mjw@redhat.com>
167
168 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
169
d5ff0482
DE
1702015-02-13 Doug Evans <dje@google.com>
171
172 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
173 anonymous_namespace to is_in_anonymous for consistency with the rest
174 of the file.
175 (cp_lookup_bare_symbol): Fix typo in comment.
176 (cp_search_static_and_baseclasses): Ditto.
177 (search_symbol_list): Use vertical space in comment better.
178 (reset_directive_searched): Ditto. Fix typo.
179 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
180
9f04ac5f
YQ
1812015-02-13 Yao Qi <yao.qi@arm.com>
182
183 * MAINTAINERS: Update my email address.
184
013d0319
DE
1852015-02-12 Doug Evans <dje@google.com>
186
187 * completer.c (completion_list_add_name): Fix memory leak.
188
9a7e538e
DE
1892015-02-12 Doug Evans <dje@google.com>
190
191 * completer.c (complete_line): Remove incorrect comment.
192
e1fcd575
JK
1932015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
194
195 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
196 (py_print_frame): Use RETURN_MASK_ERROR.
197
b99bf4e3
JK
1982015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
199
200 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
201 function comment. Wrap all function that can throw in cleanups.
202 (gdbpy_apply_frame_filter): Wrap all function that can throw in
203 cleanups.
204
800eb1ce
JK
2052015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
206
207 * python/py-framefilter.c (py_print_frame): Substitute goto error.
208 Remove the error label.
209
34019068
JK
2102015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
211
212 * python/py-framefilter.c (py_print_frame): Put conditional code paths
213 with goto first, indent the former else codepath left. Put variable
214 'elided' to a new inner block.
215
8d4a54e2
JK
2162015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
217
218 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
219
18ad82c1
PA
2202015-02-11 Pedro Alves <palves@redhat.com>
221
222 * xcoffread.c (within_function): Delete.
223
e36122e9
TT
2242015-02-11 Tom Tromey <tromey@redhat.com>
225 Pedro Alves <palves@redhat.com>
226
227 * breakpoint.c (base_breakpoint_ops): Delete.
228 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
229 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
230 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
231 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
232 * python/py-arch.c (arch_object_type): Make extern.
233 * python/py-block.c (block_syms_iterator_object_type): Make extern.
234 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
235 * python/py-cmd.c (cmdpy_object_type): Make extern.
236 * python/py-continueevent.c (continue_event_object_type)
237 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
238 parameter. Update all callers.
239 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
240 * python/py-exitedevent.c (exited_event_object_type): Make extern.
241 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
242 * python/py-function.c (fnpy_object_type): Make extern.
243 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
244 * python/py-infevents.c (call_pre_event_object_type)
245 (inferior_call_post_event_object_type).
246 (memory_changed_event_object_type): Make extern.
247 * python/py-infthread.c (thread_object_type): Make extern.
248 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
249 * python/py-linetable.c (linetable_entry_object_type)
250 (linetable_object_type, ltpy_iterator_object_type): Make extern.
251 * python/py-newobjfileevent.c (new_objfile_event_object_type)
252 (clear_objfiles_event_object_type): Make extern.
253 * python/py-objfile.c (objfile_object_type): Make extern.
254 * python/py-param.c (parmpy_object_type): Make extern.
255 * python/py-progspace.c (pspace_object_type): Make extern.
256 * python/py-signalevent.c (signal_event_object_type): Make extern.
257 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
258 * python/py-type.c (type_object_type, field_object_type)
259 (type_iterator_object_type): Make extern.
260 * python/python.c (python_extension_script_ops)
261 (python_extension_ops): Make extern.
262 * stap-probe.c (stap_probe_ops): Make extern.
263
0703599a
PA
2642015-02-11 Pedro Alves <pedro@codesourcery.com>
265
266 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
267 because the event thread is not the current thread.
268
eaaf76ab
DE
2692015-02-11 Doug Evans <xdje42@gmail.com>
270
271 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
272 been initialized yet, return NULL.
273
e7d52ed3
DE
2742015-02-11 Doug Evans <dje@google.com>
275
276 * symfile.h (new_symfile_objfile): Delete.
277 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
278 All callers updated.
279
fc6b1256
PP
2802015-02-11 Patrick Palka <patrick@parcs.ath.cx>
281
282 * tui/tui-io.c (tui_handle_resize_during_io): Call
283 tui_update_gdb_sizes() after resizing the screen.
284 * tui/tui.c (tui_enable): Resize the terminal before
285 calling tui_update_gdb_sizes().
286
d9080678
PP
2872015-02-11 Patrick Palka <patrick@parcs.ath.cx>
288
289 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
290 line before printing a newline.
291
9f615e3a
MW
2922015-02-11 Mark Wielaard <mjw@redhat.com>
293
294 * utils.c (producer_is_gcc): Return true or false.
295
d9080678 2962015-02-10 Mark Wielaard <mjw@redhat.com>
b1ffba5a
MW
297
298 * utils.h (producer_is_gcc): Change return type to bool. Add major
299 argument.
300 * utils.c (producer_is_gcc): Likewise.
301 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
302 * dwarf2read.c (check_producer): Likewise.
303
b052c4fb
PA
3042015-02-10 Pedro Alves <palves@redhat.com>
305
306 * infrun.c (displaced_step_fixup): Switch to the event thread
307 before calling gdbarch_displaced_step_fixup.
308
3ac240d4
AT
3092015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
310
311 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
312
c1cc6152
SM
3132015-02-10 Simon Marchi <simon.marchi@ericsson.com>
314
315 * ada-varobj.c (ada_name_of_child): Constify parent.
316 (ada_path_expr_of_child): Same.
317 (ada_value_of_child): Same.
318 (ada_type_of_child): Same.
319 * c-varobj.c (c_is_path_expr_parent): Same.
320 (c_describe_child): Same.
321 (c_name_of_child): Same.
322 (c_value_of_child): Same.
323 (c_type_of_child): Same.
324 (cplus_number_of_children): Same.
325 (cplus_describe_child): Constify var.
326 (cplus_name_of_child): Constify parent.
327 (cplus_value_of_child): Same.
328 (cplus_type_of_child): Same.
329 * jv-varobj.c (java_name_of_child): Same.
330 (java_value_of_child): Same.
331 (java_type_of_child): Same.
332 * varobj.c (value_of_child): Same.
333 (varobj_default_is_path_expr_parent): Constify var, parent and return
334 value.
335 (varobj_get_path_expr): Constify var, modify path_expr through
336 mutable_var.
337 (install_new_value): Constify parent.
338 (value_of_child): Constify parent.
339 * varobj.h (struct varobj): Constify parent.
340 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
341 type_of_child.
342 (varobj_get_path_expr): Constify var.
343 (varobj_get_path_expr_parent): Constify var and return value.
344
c1ee9414
LM
3452015-02-10 Luis Machado <lgustavo@codesourcery.com>
346
347 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
348 (arm_prologue_this_id): Move PC and SP limit checks to
349 arm_prologue_unwind_stop_reason.
350 (arm_prologue_unwind) <stop_reason> : Set to
351 arm_prologue_unwind_stop_reason.
352
f7de9aab
MW
3532015-02-09 Mark Wielaard <mjw@redhat.com>
354
355 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
356 DW_LANG_Fortran08 as language_fortran.
357
0b24eb2d
SDJ
3582015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
359
360 PR remote/17946
361 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
362 of pointer against char.
363
a2c2acaf
MW
3642015-02-09 Mark Wielaard <mjw@redhat.com>
365
366 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
367 (c_type_print_modifier): Likewise.
368 * dwarf2read.c (read_tag_atomic_type): New function.
369 (read_type_die_1): Handle DW_TAG_atomic_type.
370 * gdbtypes.c (make_atomic_type): New function.
371 (recursive_dump_type): Handle TYPE_ATOMIC.
372 * gdbtypes.h (enum type_flag_values): Renumber.
373 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
374 (TYPE_ATOMIC): New macro.
375 (make_atomic_type): Declare.
376
31fd9caa
MM
3772015-02-09 Markus Metzger <markus.t.metzger@intel.com>
378
379 * btrace.c (ftrace_find_call): Skip gaps.
380 (ftrace_new_function): Initialize level.
381 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
382 (ftrace_new_switch): Update
383 level computation.
384 (ftrace_new_gap): New.
385 (ftrace_update_function): Create new function after gap.
386 (btrace_compute_ftrace_bts): Create gap on error.
387 (btrace_stitch_bts): Update parameters. Clear trace if it
388 becomes empty.
389 (btrace_stitch_trace): Update parameters. Update callers.
390 (btrace_clear): Reset the number of gaps.
391 (btrace_insn_get): Return NULL if the iterator points to a gap.
392 (btrace_insn_number): Return zero if the iterator points to a gap.
393 (btrace_insn_end): Allow gaps at the end.
394 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
395 (btrace_find_insn_by_number): Assert that the found iterator does
396 not point to a gap.
397 (btrace_call_next, btrace_call_prev): Assert that the last function
398 is not a gap.
399 * btrace.h (btrace_bts_error): New.
400 (btrace_function): Update comment.
401 (btrace_function) <insn, insn_offset, number>: Update comment.
402 (btrace_function) <errcode>: New.
403 (btrace_thread_info) <ngaps>: New.
404 (btrace_thread_info) <replay>: Update comment.
405 (btrace_insn_get): Update comment.
406 * record-btrace.c (btrace_ui_out_decode_error): New.
407 (record_btrace_info): Print number of gaps.
408 (btrace_insn_history, btrace_call_history): Call
409 btrace_ui_out_decode_error for gaps.
410 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
411
afb778a2
MM
4122015-02-09 Markus Metzger <markus.t.metzger@intel.com>
413
414 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
415 * nat/linux-btrace.c: (btrace_this_cpu): New.
416 (cpu_supports_bts): Call btrace_this_cpu.
417 (intel_supports_bts): Add cpu parameter.
418
7d5c24b3
MM
4192015-02-09 Markus Metzger <markus.t.metzger@intel.com>
420
421 * btrace.h (btrace_insn_class): New.
422 (btrace_insn) <size, iclass>: New.
423 * btrace.c (ftrace_find_call): Update parameters. Update users.
424 Use instruction classification.
425 (ftrace_new_return): Update parameters. Update users.
426 (ftrace_update_function): Update parameters. Update users. Use
427 instruction classification.
428 (ftrace_update_insns): Update parameters. Update users.
429 (ftrace_classify_insn): New.
430 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
431 TRY_CATCH around call to gdb_insn_length.
432
76235df1
MM
4332015-02-09 Markus Metzger <markus.t.metzger@intel.com>
434
435 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
436 Update parameters. Update users.
437
d33501a5
MM
4382015-02-09 Markus Metzger <markus.t.metzger@intel.com>
439
440 * btrace.c (parse_xml_btrace_conf_bts): Add size.
441 (btrace_conf_bts_attributes): New.
442 (btrace_conf_children): Add attributes.
443 * common/btrace-common.h (btrace_config_bts): New.
444 (btrace_config)<bts>: New.
445 (btrace_config): Update comment.
446 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
447 Use config.
448 * features/btrace-conf.dtd: Increment version. Add size
449 attribute to bts element.
450 * record-btrace.c (set_record_btrace_bts_cmdlist,
451 show_record_btrace_bts_cmdlist): New.
452 (record_btrace_adjust_size, record_btrace_print_bts_conf,
453 record_btrace_print_conf, cmd_set_record_btrace_bts,
454 cmd_show_record_btrace_bts): New.
455 (record_btrace_info): Call record_btrace_print_conf.
456 (_initialize_record_btrace): Add commands.
457 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
458 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
459 (btrace_sync_conf): Synchronize bts size.
460 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
461 * NEWS: Announce new commands and new packets.
462
f4abbc16
MM
4632015-02-09 Markus Metzger <markus.t.metzger@intel.com>
464
465 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
466 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
467 (x86_linux_btrace_conf): New.
468 (x86_linux_create_target): Initialize to_btrace_conf.
469 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
470 Check format. Split into this and ...
471 (linux_enable_bts): ... this.
472 (linux_btrace_conf): New.
473 (perf_event_skip_record): Renamed into ...
474 (perf_event_skip_bts_record): ... this. Updated users.
475 (linux_disable_btrace): Split into this and ...
476 (linux_disable_bts): ... this.
477 (linux_read_btrace): Check format.
478 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
479 (linux_btrace_conf): New.
480 (btrace_target_info)<ptid>: Moved.
481 (btrace_target_info)<conf>: New.
482 (btrace_target_info): Split into this and ...
483 (btrace_tinfo_bts): ... this. Updated users.
484 * btrace.c (btrace_enable): Update parameters.
485 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
486 (btrace_conf_children, btrace_conf_attributes)
487 (btrace_conf_elements): New.
488 * btrace.h (btrace_enable): Update parameters.
489 (btrace_conf, parse_xml_btrace_conf): New.
490 * common/btrace-common.h (btrace_config): New.
491 * feature/btrace-conf.dtd: New.
492 * record-btrace.c (record_btrace_conf): New.
493 (record_btrace_cmdlist): New.
494 (record_btrace_enable_warn, record_btrace_open): Pass
495 &record_btrace_conf.
496 (record_btrace_info): Print recording format.
497 (cmd_record_btrace_bts_start): New.
498 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
499 (_initialize_record_btrace): Add "record btrace bts" subcommand.
500 Add "record bts" alias command.
501 * remote.c (remote_state)<btrace_config>: New.
502 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
503 (remote_protocol_features): Add qXfer:btrace-conf:read.
504 (remote_open_1): Call remote_btrace_reset.
505 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
506 (btrace_target_info)<conf>: New.
507 (btrace_sync_conf, btrace_read_config): New.
508 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
509 btrace_read_conf.
510 (remote_btrace_conf): New.
511 (init_remote_ops): Initialize to_btrace_conf.
512 (_initialize_remote): Add qXfer:btrace-conf packet.
513 * target.c (target_enable_btrace): Update parameters.
514 (target_btrace_conf): New.
515 * target.h (target_enable_btrace): Update parameters.
516 (target_btrace_conf): New.
517 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
518 (target_ops)<to_enable_btrace>: Update parameters and comment.
519 (target_ops)<to_btrace_conf>: New.
520 * target-delegates: Regenerate.
521 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
522 (target_debug_print_const_struct_btrace_target_info_p): New.
523 * NEWS: Announce new command and new packet.
524
aadf7753
MM
5252015-02-09 Markus Metzger <markus.t.metzger@intel.com>
526
527 * nat/linux-btrace.h (perf_event_buffer): New.
528 (btrace_target_info) <buffer, size, data_head>: Replace with ...
529 <bts>: ... this.
530 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
531 (perf_event_buffer_size, perf_event_buffer_begin)
532 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
533 Updated users.
534 (perf_event_new_data): New.
535
043c3577
MM
5362015-02-09 Markus Metzger <markus.t.metzger@intel.com>
537
538 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
539 * record-btrace.c (record_btrace_open): Remove call to
540 target_supports_btrace.
541 * remote.c (remote_supports_btrace): Update parameters.
542 * target.c (target_supports_btrace): Update parameters.
543 * target.h (to_supports_btrace, target_supports_btrace): Update
544 parameters.
545 * target-delegates.c: Regenerate.
546 * target-debug.h (target_debug_print_enum_btrace_format): New.
547 * nat/linux-btrace.c
548 (kernel_supports_btrace): Rename into ...
549 (kernel_supports_bts): ... this. Update users. Update warning text.
550 (intel_supports_btrace): Rename into ...
551 (intel_supports_bts): ... this. Update users.
552 (cpu_supports_btrace): Rename into ...
553 (cpu_supports_bts): ... this. Update users.
554 (linux_supports_btrace): Update parameters. Split into this and ...
555 (linux_supports_bts): ... this.
556 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
557
734b0e4b
MM
5582015-02-09 Markus Metzger <markus.t.metzger@intel.com>
559
560 * Makefile.in (SFILES): Add common/btrace-common.c.
561 (COMMON_OBS): Add common/btrace-common.o.
562 (btrace-common.o): Add build rules.
563 * btrace.c (parse_xml_btrace): Update parameters.
564 (parse_xml_btrace_block): Set format field.
565 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
566 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
567 (btrace_compute_ftrace): Split into this and...
568 (btrace_compute_ftrace_bts): ...this.
569 (btrace_stitch_trace): Split into this and...
570 (btrace_stitch_bts): ...this.
571 * btrace.h (parse_xml_btrace): Update parameters.
572 (make_cleanup_btrace_data): New.
573 * common/btrace-common.c: New.
574 * common/btrace-common.h: Include common-defs.h.
575 (btrace_block_s): Update comment.
576 (btrace_format): New.
577 (btrace_format_string): New.
578 (btrace_data_bts): New.
579 (btrace_data): New.
580 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
581 * remote.c (remote_read_btrace): Update parameters.
582 * target.c (target_read_btrace): Update parameters.
583 * target.h (target_read_btrace): Update parameters.
584 (target_ops)<to_read_btrace>: Update parameters.
585 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
586 * target-delegates.c: Regenerate.
587 * target-debug (target_debug_print_struct_btrace_data_p): New.
588 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
589 (linux_read_bts): ...this.
590 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
591
bd2e0e9e
DE
5922015-02-06 Doug Evans <dje@google.com>
593
594 * remote-m32r-sdi.c: Include symfile.h.
595
f176c4b5
DE
5962015-02-06 Doug Evans <dje@google.com>
597
598 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
599 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
600 to here.
601
d6c146e9
PA
6022015-02-06 Pedro Alves <palves@redhat.com>
603
604 * linux-thread-db.c (find_new_threads_callback): Add debug output.
605
b9d61307
SM
6062015-02-06 Simon Marchi <simon.marchi@ericsson.com>
607
608 PR gdb/15678
609 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
610 (enable_count_command): Check args for NULL value.
611
e9fbd043
DE
6122015-02-05 Doug Evans <xdje42@gmail.com>
613
614 * guile/scm-frame.c: Fix spelling errors in a comment.
615
881d5d5d
JK
6162015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
617
618 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
619 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
620 return type.
621
20ba1ce6
PA
6222015-02-04 Pedro Alves <palves@redhat.com>
623
624 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
625 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
626 returns true.
627 (resume_stopped_resumed_lwps): Don't check whether the thread is
628 marked as executing.
629 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
630
f962539a
AA
6312015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
632
633 * regset.h (struct regset): Add flags field.
634 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
635 * corelow.c (get_core_register_section): Add warning if the size
636 exceeds the requested size and the regset does not have the
637 REGSET_VARIABLE_SIZE flag set.
638 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
639 flag.
640 * armbsd-tdep.c (armbsd_gregset): Likewise.
641 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
642 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
643 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
644 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
645
dde9acd6
AA
6462015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
647
648 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
649 For ".reg-xstate", explicitly specify the requested section size
650 via X86_XSTATE_SIZE instead of just 0 on input and
651 X86_XSTATE_MAX_SIZE on output.
652 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
653 Likewise.
654
1528345d
AA
6552015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
656
657 PR corefiles/17808:
658 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
659 function type, particularly its SIZE parameter.
660 * gdbarch.h: Regenerate.
661 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
662 actual against required size using ">=" instead of "==".
663 (amd64_collect_fpregset): Likewise.
664 * i386-tdep.c (i386_supply_gregset): Likewise.
665 (i386_collect_gregset): Likewise.
666 (i386_supply_fpregset): Likewise.
667 (i386_collect_fpregset): Likewise.
668 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
669 (mips_fill_gregset_wrapper): Likewise.
670 (mips_supply_fpregset_wrapper): Likewise.
671 (mips_fill_fpregset_wrapper): Likewise.
672 (mips64_supply_gregset_wrapper): Likewise.
673 (mips64_fill_gregset_wrapper): Likewise.
674 (mips64_supply_fpregset_wrapper): Likewise.
675 (mips64_fill_fpregset_wrapper): Likewise.
676 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
677 (am33_supply_fpregset_method): Likewise.
678 (am33_collect_gregset_method): Likewise.
679 (am33_collect_fpregset_method): Likewise.
680
518be979
DE
6812015-02-04 Doug Evans <dje@google.com>
682 Pedro Alves <palves@redhat.com>
683 Eli Zaretskii <eliz@gnu.org>
684
685 PR tui/17810
686 * tui/tui-command.c (tui_refresh_cmd_win): New function.
687 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
688 * tui/tui-file.c: #include tui/tui-command.h.
689 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
690 (tui_file_flush): Refresh command window if stream is gdb_stdout.
691 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
692
80bd5fab
PA
6932015-02-04 Pedro Alves <palves@redhat.com>
694
695 Fix build breakage.
696 * event-loop.c (gdb_do_one_event): Add default switch case.
697
a7606d80
JK
6982015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
699
700 Filter out inferior gcc option -fpreprocessed.
701 * compile/compile.c (filter_args): New function.
702 (get_args): Use it.
703
70b66289
PA
7042015-02-03 Pedro Alves <palves@redhat.com>
705
706 * event-loop.c: Don't declare nor define a queue type for
707 gdb_event_p.
708 (event_queue): Delete.
709 (create_event, create_file_event, gdb_event_xfree)
710 (initialize_event_loop, process_event): Delete.
711 (gdb_do_one_event): Return as soon as one event is handled.
712 (handle_file_event): Change prototype. Used the passed in
713 file_handler pointer and ready_mask instead of looping over all
714 file handlers.
715 (gdb_wait_for_event): Update the poll/select timeouts before
716 blocking. Run event handlers directly instead of queueing events.
717 Return as soon as one event is handled.
718 (struct async_event_handler_data): Delete.
719 (invoke_async_event_handler): Delete.
720 (check_async_event_handlers): Change return type to int. Run
721 event handlers directly instead of queueing events. Return as
722 soon as one event is handled.
723 (handle_timer_event): Delete.
724 (update_wait_timeout): New function, factored out from
725 poll_timers.
726 (poll_timers): Reimplement.
727 * event-loop.h (initialize_event_loop): Delete declaration.
728 * top.c (gdb_init): Don't call initialize_event_loop.
729
b7d2e916
PA
7302015-02-03 Pedro Alves <palves@redhat.com>
731
732 * event-loop.c (clear_async_event_handler): New function.
733 * event-loop.h (clear_async_event_handler): New declaration.
734 * record-btrace.c (record_btrace_async): New function.
735 (init_record_btrace_ops): Install record_btrace_async.
736 * record-full.c (record_full_async): New function.
737 (record_full_resume): Don't mark the async event source here.
738 (init_record_full_ops): Install record_full_async.
739 (record_full_core_resume): Don't mark the async event source here.
740 (init_record_full_core_ops): Install record_full_async.
741 * remote.c (remote_async): Mark and clear the async stop reply
742 queue event-loop token as appropriate.
743
d9d41e78
PA
7442015-02-03 Pedro Alves <palves@redhat.com>
745
746 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
747 target_is_async_p instead of target_can_async.
748 (linux_nat_wait): Use target_is_async_p instead of
749 target_can_async. Don't enable async here.
750 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
751 target_is_async_p instead of target_can_async.
752
aa3de267
SM
7532015-02-02 Simon Marchi <simon.marchi@ericsson.com>
754
755 * varobj.h (lang_varobj_ops): Mention which return values need
756 to be freed.
757
2c811c0f
JB
7582015-02-02 Joel Brobecker <brobecker@adacore.com>
759
760 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
761
b1eedac9
JB
7622015-02-02 Joel Brobecker <brobecker@adacore.com>
763
764 PR gdb/17856:
765 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
766 results found in the cache.
767
66c168ae
JB
7682015-02-02 Joel Brobecker <brobecker@adacore.com>
769
770 PR gdb/17854:
771 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
772 when allocating a new one.
773
4bdc02b2
TT
7742015-02-01 Tom Tromey <tom@tromey.com>
775
776 * MAINTAINERS: Remove myself.
777
ae6ae975
DE
7782015-01-31 Doug Evans <xdje42@gmail.com>
779
780 * dwarf2read.c (process_structure_scope): Update setting of
781 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
782 * gdbtypes.c (internal_type_vptr_fieldno): New function.
783 (set_type_vptr_fieldno): New function.
784 (internal_type_vptr_basetype): New function.
785 (set_type_vptr_basetype): New function.
786 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
787 TYPE_VPTR_BASETYPE.
788 (allocate_cplus_struct_type): Initialize vptr_fieldno.
789 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
790 (print_cplus_stuff): ... moved here.
791 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
792 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
793 moved to ...
794 (struct cplus_struct_type): ... here. All uses updated.
795 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
796 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
797 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
798 * stabsread.c (read_tilde_fields): Update setting of
799 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
800
09e2d7c7
DE
8012015-01-31 Doug Evans <xdje42@gmail.com>
802
803 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
804 to self_p.
805 (cp_print_class_member): Rename local domain to self_type.
806 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
807 domain_type to self_type.
808 (set_die_type) <need_gnat_info>: Handle
809 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
810 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
811 TYPE_SPECIFIC_SELF_TYPE.
812 * gdbtypes.c (internal_type_self_type): New function.
813 (set_type_self_type): New function.
814 (smash_to_memberptr_type): Rename parameter domain to self_type.
815 Update setting of TYPE_SELF_TYPE.
816 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
817 (smash_to_method_type): Rename parameter domain to self_type.
818 Update setting of TYPE_SELF_TYPE.
819 (check_stub_method): Call smash_to_method_type.
820 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
821 (copy_type_recursive): Ditto.
822 * gdbtypes.h (enum type_specific_kind): New value
823 TYPE_SPECIFIC_SELF_TYPE.
824 (struct main_type) <type_specific>: New member self_type.
825 (struct cplus_struct_type) <fn_field.type>: Update comment.
826 (TYPE_SELF_TYPE): Rewrite.
827 (internal_type_self_type, set_type_self_type): Declare.
828 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
829 self_type.
830 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
831 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
832 TYPE_TARGET_TYPE.
833 * stabsread.c (read_member_functions): Mark methods with
834 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
835 TYPE_SELF_TYPE.
836
4bfb94b8
DE
8372015-01-31 Doug Evans <xdje42@gmail.com>
838
839 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
840 All uses updated.
841
5f4ce105
DE
8422015-01-31 Doug Evans <xdje42@gmail.com>
843
844 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
845 or unions. Return zero if union.
846 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
847 (gnuv3_rtti_type): Pass already-check_typedef'd value to
848 gnuv3_get_vtable.
849 (compute_vtable_size): Assert only passed structs.
850 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
851
f6b3afbf
DE
8522015-01-31 Doug Evans <xdje42@gmail.com>
853
854 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
855 kinds.
856
cfb069a8
GB
8572015-01-31 Gary Benson <gbenson@redhat.com>
858 Doug Evans <dje@google.com>
859
860 PR cli/9007
861 PR cli/11920
862 PR cli/15548
863 * cli/cli-cmds.c (complete_command): Notify user if max-completions
864 reached.
865 * common/common-exceptions.h (enum errors)
866 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
867 * completer.h (get_max_completions_reached_message): New declaration.
868 (max_completions): Likewise.
869 (completion_tracker_t): New typedef.
870 (new_completion_tracker): New declaration.
871 (make_cleanup_free_completion_tracker): Likewise.
872 (maybe_add_completion_enum): New enum.
873 (maybe_add_completion): New declaration.
874 (throw_max_completions_reached_error): Likewise.
875 * completer.c (max_completions): New global variable.
876 (new_completion_tracker): New function.
877 (free_completion_tracker): Likewise.
878 (make_cleanup_free_completion_tracker): Likewise.
879 (maybe_add_completions): Likewise.
880 (throw_max_completions_reached_error): Likewise.
881 (complete_line): Remove duplicates and limit result to max_completions
882 entries.
883 (get_max_completions_reached_message): New function.
884 (gdb_display_match_list): Handle max_completions.
885 (_initialize_completer): New declaration and function.
886 * symtab.c: Include completer.h.
887 (completion_tracker): New static variable.
888 (completion_list_add_name): Call maybe_add_completion.
889 (default_make_symbol_completion_list_break_on_1): Renamed from
890 default_make_symbol_completion_list_break_on. Maintain
891 completion_tracker across calls to completion_list_add_name.
892 (default_make_symbol_completion_list_break_on): New function.
893 * top.c (init_main): Set rl_completion_display_matches_hook.
894 * tui/tui-io.c: Include completer.h.
895 (tui_old_rl_display_matches_hook): New static global.
896 (tui_rl_display_match_list): Notify user if max-completions reached.
897 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
898 * NEWS (New Options): Mention set/show max-completions.
899
e11c72c7
GB
9002015-01-31 Gary Benson <gbenson@redhat.com>
901
902 * symtab.c (struct add_name_data) <code>: New field.
903 Updated comments.
904 (add_symtab_completions): New function.
905 (symtab_expansion_callback): Likewise.
906 (default_make_symbol_completion_list_break_on): Set datum.code.
907 Move minimal symbol scan before calling expand_symtabs_matching.
908 Scan known primary symtabs for externs and statics before calling
909 expand_symtabs_matching. Pass symtab_expansion_callback as
910 expansion_notify argument to expand_symtabs_matching. Do not scan
911 primary symtabs for externs and statics after calling
912 expand_symtabs_matching.
913
276d885b
GB
9142015-01-31 Gary Benson <gbenson@redhat.com>
915
916 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
917 (struct quick_symbol_functions) <expand_symtabs_matching>:
918 New argument expansion_notify. All uses updated.
919 (expand_symtabs_matching): New argument expansion_notify.
920 All uses updated.
921 * symfile-debug.c (debug_qf_expand_symtabs_matching):
922 Also print expansion notify.
923 * symtab.c (expand_symtabs_matching_via_partial): Call
924 expansion_notify whenever a partial symbol table is expanded.
925 * dwarf2read.c (dw2_expand_symtabs_matching): Call
926 expansion_notify whenever a symbol table is instantiated.
927
82083d6d
DE
9282015-01-31 Doug Evans <xdje42@gmail.com>
929
930 * cli-out.c: #include completer.h, readline/readline.h.
931 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
932 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
933 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
934 * cli-out.h (cli_display_match_list): Declare.
935 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
936 (ELLIPSIS_LEN): Ditto.
937 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
938 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
939 (gdb_fnprint, gdb_print_filename): Ditto.
940 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
941 (gdb_display_match_list): Ditto.
942 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
943 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
944 (mld_beep_ftype, mld_read_key_ftype): Ditto.
945 (match_list_displayer): New struct.
946 (gdb_display_match_list): Declare.
947 * top.c (init_main): Set rl_completion_display_matches_hook.
948 * tui/tui-io.c: #include completer.h.
949 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
950 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
951 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
952 (tui_mld_getc, tui_mld_read_key): Ditto.
953 (tui_rl_display_match_list): Rewrite.
954 (tui_handle_resize_during_io): New arg for_completion. All callers
955 updated.
956
f57d2163
DE
9572015-01-31 Doug Evans <xdje42@gmail.com>
958
959 Add symbol lookup cache.
960 * NEWS: Document new options and commands.
961 * symtab.c (symbol_cache_key): New static global.
962 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
963 (SYMBOL_LOOKUP_FAILED): New macro.
964 (symbol_cache_slot_state): New enum.
965 (block_symbol_cache): New struct.
966 (symbol_cache): New struct.
967 (new_symbol_cache_size, symbol_cache_size): New static globals.
968 (hash_symbol_entry, eq_symbol_entry): New functions.
969 (symbol_cache_byte_size, resize_symbol_cache): New functions.
970 (make_symbol_cache, free_symbol_cache): New functions.
971 (get_symbol_cache, symbol_cache_cleanup): New function.
972 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
973 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
974 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
975 (symbol_cache_flush, symbol_cache_dump): New functions.
976 (maintenance_print_symbol_cache): New function.
977 (maintenance_flush_symbol_cache): New function.
978 (symbol_cache_stats): New function.
979 (maintenance_print_symbol_cache_statistics): New function.
980 (symtab_new_objfile_observer): New function.
981 (symtab_free_objfile_observer): New function.
982 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
983 (_initialize_symtab): Init symbol_cache_key. New parameter
984 maint symbol-cache-size. New maint commands print symbol-cache,
985 print symbol-cache-statistics, flush-symbol-cache.
986 Install new_objfile, free_objfile observers.
987
e700d1b2
JB
9882015-01-31 Joel Brobecker <brobecker@adacore.com>
989
990 PR symtab/17855
991 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
992 to end.
993
9f050062
DE
9942015-01-31 Doug Evans <xdje42@gmail.com>
995
996 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
997 * auto-load.c: #include ctype.h.
998 (struct auto_load_pspace_info): Replace member loaded_scripts with
999 new members loaded_script_files, loaded_script_texts.
1000 (auto_load_pspace_data_cleanup): Update.
1001 (init_loaded_scripts_info): Update.
1002 (get_auto_load_pspace_data_for_loading): Update.
1003 (maybe_add_script_file): Renamed from maybe_add_script. All callers
1004 updated.
1005 (maybe_add_script_text): New function.
1006 (clear_section_scripts): Update.
1007 (source_script_file, execute_script_contents): New functions.
1008 (source_section_scripts): Add support for
1009 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
1010 (print_scripts): New function.
1011 (auto_load_info_scripts): Also print inlined scripts.
1012 (maybe_print_unsupported_script_warning): Renamed from
1013 unsupported_script_warning_print. All callers updated.
1014 (maybe_print_script_not_found_warning): Renamed from
1015 script_not_found_warning_print. All callers updated.
1016 * extension-priv.h (struct extension_language_script_ops): New member
1017 objfile_script_executor.
1018 * extension.c (ext_lang_objfile_script_executor): New function.
1019 * extension.h (objfile_script_executor_func): New typedef.
1020 (ext_lang_objfile_script_executor): Declare.
1021 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
1022 * guile/guile.c (guile_extension_script_ops): Update.
1023 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
1024 * python/python.c (python_extension_script_ops): Update.
1025 (gdbpy_execute_objfile_script): New function.
1026
312809f8
EZ
10272015-01-31 Eli Zaretskii <eliz@gnu.org>
1028
1029 * tui/tui-io.c (tui_expand_tabs): New function.
1030 (tui_puts, tui_redisplay_readline): Expand TABs into the
1031 appropriate number of spaces.
1032 * tui/tui-regs.c: Include tui-io.h.
1033 (tui_register_format): Call tui_expand_tabs to expand TABs into
1034 the appropriate number of spaces.
1035 * tui/tui-io.h: Add prototype for tui_expand_tabs.
1036
b6577aab
DE
10372015-01-30 Doug Evans <dje@google.com>
1038
1039 * NEWS: "info source" command now display producer string if present.
1040 * source.c (source_info): Print producer string if present.
1041
6da58d3e
SM
10422015-01-30 Simon Marchi <simon.marchi@ericsson.com>
1043
1044 * varobj.c (varobj_delete): Fix comment.
1045
837ce252
SM
10462015-01-30 Simon Marchi <simon.marchi@ericsson.com>
1047
1048 * varobj.c (create_child): Modify comment.
1049
b09e2c59
SM
10502015-01-30 Simon Marchi <simon.marchi@ericsson.com>
1051
1052 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
1053 parameter.
1054 (ada_name_of_variable): Same.
1055 (ada_path_expr_of_child): Same.
1056 (ada_value_of_variable): Same.
1057 (ada_value_is_changeable_p): Same.
1058 (ada_value_has_mutated): Same.
1059 * c-varobj.c (varobj_is_anonymous_child): Same.
1060 (c_is_path_expr_parent): Same.
1061 (c_number_of_children): Same.
1062 (c_name_of_variable): Same.
1063 (c_path_expr_of_child): Same.
1064 (get_type): Same.
1065 (c_value_of_variable): Same.
1066 (cplus_number_of_children): Same.
1067 (cplus_name_of_variable): Same.
1068 (cplus_path_expr_of_child): Same.
1069 (cplus_value_of_variable): Same.
1070 * jv-varobj.c (java_number_of_children): Same.
1071 (java_name_of_variable): Same.
1072 (java_path_expr_of_child): Same.
1073 (java_value_of_variable): Same.
1074 * varobj.c (number_of_children): Same.
1075 (name_of_variable): Same.
1076 (is_root_p): Same.
1077 (varobj_ensure_python_env): Same.
1078 (varobj_get_objname): Same.
1079 (varobj_get_expression): Same.
1080 (varobj_get_display_format): Same.
1081 (varobj_get_display_hint): Same.
1082 (varobj_has_more): Same.
1083 (varobj_get_thread_id): Same.
1084 (varobj_get_frozen): Same.
1085 (dynamic_varobj_has_child_method): Same.
1086 (varobj_get_gdb_type): Same.
1087 (is_path_expr_parent): Same.
1088 (varobj_default_is_path_expr_parent): Same.
1089 (varobj_get_language): Same.
1090 (varobj_get_attributes): Same.
1091 (varobj_is_dynamic_p): Same.
1092 (varobj_get_child_range): Same.
1093 (varobj_value_has_mutated): Same.
1094 (varobj_get_value_type): Same.
1095 (number_of_children): Same.
1096 (name_of_variable): Same.
1097 (check_scope): Same.
1098 (varobj_editable_p): Same.
1099 (varobj_value_is_changeable_p): Same.
1100 (varobj_floating_p): Same.
1101 (varobj_default_value_is_changeable_p): Same.
1102
2568868e
SM
11032015-01-30 Simon Marchi <simon.marchi@ericsson.com>
1104
1105 * varobj.c (varobj_get_path_expr): Set var->path_expr.
1106 * c-varobj.c (c_path_expr_of_child): Set local var instead of
1107 child->path_expr.
1108 (cplus_path_expr_of_child): Same.
1109
ca83fa81
SM
11102015-01-30 Simon Marchi <simon.marchi@ericsson.com>
1111
1112 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
1113 result.
1114 (mi_cmd_var_info_expression): Same.
1115 * varobj.c (varobj_get_expression): Mention in the comment that
1116 the result must by freed by the caller.
1117
afa269ae
SM
11182015-01-30 Simon Marchi <simon.marchi@ericsson.com>
1119
1120 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
1121 varobj_get_type.
1122 (varobj_update_one): Same.
1123 * varobj.c (update_type_if_necessary): Free curr_type_str and
1124 new_type_str.
1125 (varobj_get_type): Specify in comment that the result needs to be
1126 freed by the caller.
1127
cd366ee8
DE
11282015-01-29 Doug Evans <dje@google.com>
1129
1130 PR symtab/17890
1131 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
1132
38360086
MW
11332015-01-25 Mark Wielaard <mjw@redhat.com>
1134
1135 * dwarf2read.c (checkproducer): Call producer_is_gcc.
1136 * utils.c (producer_is_gcc_ge_4): Likewise.
1137 (producer_is_gcc): New function.
1138 * utils.h (producer_is_gcc): New declaration.
1139
df25ebbd
JB
11402015-01-29 Joel Brobecker <brobecker@adacore.com>
1141
1142 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
1143 kind.
1144 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
1145 parameter by "addr_stack" parameter.
1146 (resolve_dynamic_range): Replace "addr" parameter by
1147 "stack_addr" parameter. Update function documentation.
1148 Update code accordingly.
1149 (resolve_dynamic_array, resolve_dynamic_union)
1150 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
1151 (resolve_dynamic_type): Update code, following the changes made
1152 to resolve_dynamic_type_internal's interface.
1153 * dwarf2loc.h (struct property_addr_info): New.
1154 (dwarf2_evaluate_property): Replace "address" parameter
1155 by "addr_stack" parameter. Adjust function documentation.
1156 (struct dwarf2_offset_baton): New.
1157 (struct dwarf2_property_baton): Update documentation of
1158 field "referenced_type" to be more general. New field
1159 "offset_info" in union data field.
1160 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
1161 parameter by "addr_stack" parameter. Adjust code accordingly.
1162 Add support for PROP_ADDR_OFFSET properties.
1163 * dwarf2read.c (attr_to_dynamic_prop): Add support for
1164 DW_AT_data_member_location attributes as well. Use case
1165 statements instead of if/else condition.
1166
4a0ca9ec
JB
11672015-01-29 Joel Brobecker <brobecker@adacore.com>
1168
1169 * ada-varobj.c (ada_varobj_get_array_number_of_children):
1170 Return zero if PARENT_VALUE is NULL and parent_type's
1171 range type is dynamic.
1172
ddb87a81
JB
11732015-01-29 Joel Brobecker <brobecker@adacore.com>
1174
1175 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
1176 nonzero if the type's subtype is dynamic.
1177 (resolve_dynamic_range): Also resolve the range's subtype.
1178
3d7ad9b4 11792015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
7a270e0c 1180
3d7ad9b4 1181 Pushed by Joel Brobecker <brobecker@adacore.com>.
7a270e0c
AK
1182 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
1183
3a8b707a
DE
11842015-01-27 Doug Evans <dje@google.com>
1185
1186 * NEWS: Mention gdb.Objfile.username.
1187 * python/py-objfile.c (objfpy_get_username): New function.
1188 (objfile_getset): Add "username".
1189
d35b90fb
MW
11902015-01-24 Mark Wielaard <mjw@redhat.com>
1191
1192 * stack.c (return_command): Markup warning message with _.
1193
734ae125
DE
11942015-01-24 Doug Evans <xdje42@gmail.com>
1195
1196 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
1197
527f3840
JK
11982015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1199
1200 Fix 100x slowdown regression on DWZ files.
1201 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
1202 (struct line_header): Add offset and offset_in_dwz.
1203 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
1204 (free_line_header_voidp): New declaration.
1205 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
1206 functions.
1207 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
1208 (handle_DW_AT_stmt_list): Use line_header_hash.
1209 (free_line_header_voidp): New function.
1210 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
1211 (dwarf_decode_lines): New parameter decode_mapping, use it.
1212 (dwarf2_free_objfile): Free line_header_hash.
1213
f7e5394d
SM
12142015-01-23 Simon Marchi <simon.marchi@ericsson.com>
1215
1216 PR gdb/17416
1217 * valops.c (value_rtti_indirect_type): Catch exception thrown by
1218 value_ind.
1219
743649fd
MW
12202015-01-15 Mark Wielaard <mjw@redhat.com>
1221
1222 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
1223 DW_AT_noreturn.
1224 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
1225 calling_convention an 8 bit bit field.
1226 (TYPE_NO_RETURN): New macro.
1227 * infcmd.c (finish_command): Query if function does not return
1228 normally.
1229 * stack.c (return_command): Likewise.
1230
198297aa
PA
12312015-01-23 Pedro Alves <palves@redhat.com>
1232
1233 * linux-nat.c (linux_is_async_p): New macro.
1234 (linux_nat_is_async_p):
1235 (linux_nat_terminal_inferior): Check whether the target can async
1236 instead of whether it is already async.
1237 (linux_nat_terminal_ours): Don't check whether the target is
1238 async.
1239 (linux_async_pipe): Use linux_is_async_p.
1240
253828f1
JK
12412015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1242
1243 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
1244 '-ascending'.
1245 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
1246 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
1247 Sort tp_array using tp_array_compar.
1248 (_initialize_thread): Extend thread_apply_all_command help.
1249
f0e8c4c5
JK
12502015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1251
1252 * corelow.c (core_open): Call also thread_command.
1253 * gdbthread.h (thread_command): New prototype moved from ...
1254 * thread.c (thread_command): ... here.
1255 (thread_command): Make it global.
1256
03b79603
PA
12572015-01-22 Pedro Alves <palves@redhat.com>
1258
1259 * configure.ac [*mingw32*]: Check $curses_found instead of
1260 $prefer_curses.
1261 * configure: Regenerate.
1262 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
1263 HAVE_NCURSES_NCURSES_H checks.
1264
6b8a872f
EZ
12652015-01-22 Eli Zaretskii <eliz@gnu.org>
1266
bbbbffbb 1267 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
6b8a872f
EZ
1268 fails with the 1st arg NULL, try again with "unknown". Don't test
1269 the "cup" capability: it isn't supported by the Windows port of
1270 ncurses, but the Windows console driver is still capable of
1271 supporting TUI.
1272
4b62a76e
JK
12732015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1274
1275 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
1276
82a864f9
EZ
12772015-01-22 Eli Zaretskii <eliz@gnu.org>
1278
1279 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1280 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
1281 reason that "make TAGS" is broken.
1282
b35018fd
CG
12832015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
1284
1285 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
1286 and check additional store instructions.
1287
ffbc4646
WW
12882015-01-21 Wei-cheng Wang <cole945@gmail.com>
1289
1290 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
1291
ddeca1df
WW
12922015-01-21 Wei-cheng Wang <cole945@gmail.com>
1293
1294 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
1295 ppc_canonicalize_syscall, ppc_linux_syscall_record,
1296 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
1297 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
1298 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
1299 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
1300 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
1301 ppc_process_record_op19, ppc_process_record_op31,
1302 ppc_process_record_op59, ppc_process_record_op60,
1303 ppc_process_record_op63): Likewise.
1304
049bb5de
JB
13052015-01-20 Joel Brobecker <brobecker@adacore.com>
1306
1307 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
1308 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
1309 strerror.
1310
42b87c63 13112015-01-20 Wei-cheng Wang <cole945@gmail.com>
810c1026
WW
1312
1313 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
1314 ppc_process_record_op31, ppc_process_record_op59,
1315 ppc_process_record_op60, ppc_process_record_op63,
1316 ppc_process_record): Fix -Wformat warning.
1317 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
1318 Remove unused variables.
1319
569340fc
CG
13202015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
1321
1322 * MAINTAINERS (Write After Approval): Add "Chen Gang".
1323
63413d85
EZ
13242015-01-19 Eli Zaretskii <eliz@gnu.org>
1325
1326 * configure.ac [*mingw32*]: Only add windows-termcap.o to
1327 CONFIG_OBS if not building with a curses library.
1328 * configure: Regenerate.
1329
1330 * windows-termcap.c: Include defs.h. Make the whole body empty if
1331 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
1332 HAVE_NCURSES_NCURSES_H is defined.
1333
16d8013c
JB
13342015-01-19 Joel Brobecker <brobecker@adacore.com>
1335
1336 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
1337 from end of line to start of next line.
1338
cf90fd9a
WW
13392015-01-17 Wei-cheng Wang <cole945@gmail.com>
1340
1341 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
1342 Scan PLT stub backward for reverse debugging.
1343 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
1344
b4cdae6f
WW
13452015-01-17 Wei-cheng Wang <cole945@gmail.com>
1346 Ulrich Weigand <uweigand@de.ibm.com>
1347
1348 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
1349 gdb_target_obs.
1350 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
1351 record.
1352 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
1353 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
1354 (ppc_linux_init_abi): Set process_record, process_record_signal.
1355 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
1356 ppc_linux_record_tdep to gdbarch_tdep.
1357 (ppc_process_record): New declaration.
1358 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
1359 ppc_process_record_op19, ppc_process_record_op31,
1360 ppc_process_record_op59, ppc_process_record_op60,
1361 ppc_process_record_op63, ppc_process_record): New functions.
1362
2608dbf8
WW
13632015-01-17 Wei-cheng Wang <cole945@gmail.com>
1364
1365 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
1366 rs6000_in_function_epilogue_frame_p and add an argument
1367 for frame_info.
1368 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
1369 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
1370 New functions.
1371 (rs6000_epilogue_frame_unwind): New.
1372 (rs6000_gdbarch_init): Append epilogue unwinder.
1373
4c347be6
SDJ
13742015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
1375
1376 * nat/linux-personality.c: Replace "#ifndef
1377 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
1378 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
1379 systems.
1380
9f2850ba
EZ
13812015-01-16 Eli Zaretskii <eliz@gnu.org>
1382
6cdb25f4
EZ
1383 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
1384 functions.
1385 (_initialize_tui_win) <border-kind, border-mode>:
1386 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
c54da50d
EZ
1387 (tui_set_tab_width_command): Fix the commentary.
1388
6cdb25f4
EZ
1389 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
1390
bf555842
EZ
1391 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
1392 Doc fix.
cb86fcc1
EZ
1393 (tui_set_tab_width_command): Delete and recreate the source and
1394 the disassembly windows, to show the effect of the changed tab
1395 size immediately.
bf555842 1396
9f2850ba
EZ
1397 * tui/tui-data.h (LINE_PREFIX): Make shorter
1398 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
1399 "Thread NNNNN.XXXX" thread ID notation on Windows.
1400
95761b2d
JK
14012015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1402
1403 Fix gcc-5 compilation.
1404 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
1405
8cc73a39
SDJ
14062015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
1407
1408 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
1409 (linux-personality.o): New rule.
1410 * common/common-defs.h: Include <stdint.h>.
1411 * config/aarch64/linux.mh (NATDEPFILES): Include
1412 linux-personality.o.
1413 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
1414 * config/arm/linux.mh (NATDEPFILES): Likewise.
1415 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1416 * config/i386/linux.mh (NATDEPFILES): Likewise.
1417 * config/ia64/linux.mh (NATDEPFILES): Likewise.
1418 * config/m32r/linux.mh (NATDEPFILES): Likewise.
1419 * config/m68k/linux.mh (NATDEPFILES): Likewise.
1420 * config/mips/linux.mh (NATDEPFILES): Likewise.
1421 * config/pa/linux.mh (NATDEPFILES): Likewise.
1422 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
1423 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
1424 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
1425 * config/s390/linux.mh (NATDEPFILES): Likewise.
1426 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
1427 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1428 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
1429 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
1430 * defs.h: Remove #include <stdint.h> (moved to
1431 common/common-defs.h).
1432 * linux-nat.c: Include nat/linux-personality.h. Remove #include
1433 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
1434 nat/linux-personality.c).
1435 (linux_nat_create_inferior): Remove code to disable address space
1436 randomization (moved to nat/linux-personality.c). Create cleanup
1437 to disable address space randomization.
1438 * nat/linux-personality.c: New file.
1439 * nat/linux-personality.h: Likewise.
1440
fb23d554
SDJ
14412015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
1442
1443 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
1444 common/posix-strerror.c.
1445 (posix-strerror.o): New rule.
1446 (mingw-strerror.o): Likewise.
1447 * common/common-utils.h (safe_strerror): Move prototype to here,
1448 from utils.h.
1449 * common/common.host: New file.
1450 * common/mingw-strerror.c: Likewise.
1451 * common/posix-strerror.c: Likewise.
1452 * configure: Regenerated.
1453 * configure.ac: Source common/common.host. Add variable
1454 common_host_obs to gdb_host_obs.
1455 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
1456 gdb/common/posix-strerror.c when warning about the use of
1457 strerror.
1458 * mingw-hdep.c (safe_strerror): Remove definition; move it to
1459 common/mingw-strerror.c.
1460 * posix-hdep.c (safe_strerror): Remove definition; move it to
1461 common/posix-hdep.c.
1462 * utils.h (safe_strerror): Remove prototype; move to
1463 common/common-utils.h.
1464
3af8af43
JB
14652015-01-15 Joel Brobecker <brobecker@adacore.com>
1466
1467 GDB 7.8.2 released.
1468
bafffb51
JB
14692015-01-15 Joel Brobecker <brobecker@adacore.com>
1470
1471 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
1472 ___XA type if the array has already been fixed.
1473
cdf43629
YQ
14742015-01-14 Yao Qi <yao@codesourcery.com>
1475
1476 * Makefile.in (ppc-linux.o): New rule.
1477 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
1478 * configure.ac: AC_CHECK_FUNCS(getauxval).
1479 * config.in: Re-generated.
1480 * configure: Re-generated.
1481 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
1482 Declare.
1483 * nat/ppc-linux.c: New file.
1484 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
1485 Call ppc64_64bit_inferior_p.
1486
514c5338
YQ
14872015-01-14 Yao Qi <yao@codesourcery.com>
1488
1489 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
1490 nat/ppc-linux.h.
1491 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
1492 (PPC_FEATURE_HAS_DFP): Likewise.
1493 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
1494 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
1495 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
1496 Include "nat/ppc-linux.h".
1497 * nat/ppc-linux.h: New file.
1498 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
1499
5589af0e
PA
15002015-01-14 Pedro Alves <palves@redhat.com>
1501
1502 PR gdb/17525
1503 * breakpoint.c: Include "interps.h".
1504 (bpstat_do_actions_1): Also check whether the interpreter is
1505 async.
1506
6c400b59
PA
15072015-01-14 Pedro Alves <palves@redhat.com>
1508
1509 PR cli/17828
1510 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
1511 reinstall if the interpreter is sync.
1512
e02c96a7
DE
15132015-01-13 Doug Evans <dje@google.com>
1514
1515 * objfiles.c (objfile_filename): New function.
1516 * objfiles.h (objfile_filename): Declare it.
1517 (objfile_name): Add function comment.
1518 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
1519 bfd file name (which may be realpath'd), and the original name.
1520
3b2f13ff
JB
15212015-01-13 Joel Brobecker <brobecker@adacore.com>
1522
1523 * NEWS: Create a new section for the next release branch.
1524 Rename the section of the current branch, now that it has
1525 been cut.
1526
b4cfe7f8
JB
15272015-01-13 Joel Brobecker <brobecker@adacore.com>
1528
1529 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
1530 * version.in: Bump version to 7.9.50.DATE-cvs.
1531
92fc2e69
JB
15322015-01-13 Joel Brobecker <brobecker@adacore.com>
1533
1534 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
1535 Remove trailing new-line in argument of call to warning.
1536
f71f0b0d
JB
15372015-01-13 Joel Brobecker <brobecker@adacore.com>
1538
1539 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
1540 new-line in argument of call to "warning".
1541
04dccad0
JB
15422015-01-13 Joel Brobecker <brobecker@adacore.com>
1543
1544 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
1545 in static block, then try searching for primitive types.
1546
08b13bdd
PP
15472015-01-12 Patrick Palka <patrick@parcs.ath.cx>
1548
1549 * top.h (gdb_add_history): Declare.
1550 * top.c (command_count): New variable.
1551 (gdb_add_history): New function.
1552 (gdb_safe_append_history): New static function.
1553 (quit_force): Call it.
1554 (command_line_input): Use gdb_add_history instead of
1555 add_history.
1556 * event-top.c (command_line_handler): Likewise.
1557
4ac15b59
JC
15582015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
1559
1560 PR gdb/17046
1561 * darwin-nat.c: Replace <machine/setjmp.h> #include by
1562 <setjmp.h> #include.
1563
005e54bb
DE
15642015-01-11 Doug Evans <xdje42@gmail.com>
1565
1566 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
1567
439250fb
DE
15682015-01-11 Doug Evans <xdje42@gmail.com>
1569
1570 PR gdb/15830
1571 * NEWS: The "maint demangle" command is renamed as "demangle".
1572 * demangle.c: #include cli/cli-utils.h, language.h.
1573 (demangle_command): New function.
1574 (_initialize_demangle): Add new command "demangle".
1575 * maint.c (maintenance_demangle): Stub out.
1576 (_initialize_maint_cmds): Update help text for "maint demangle",
1577 and mark as deprecated.
1578
ebf3aa72
MK
15792015-01-11 Mark Kettenis <kettenis@gnu.org>
1580
1581 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
1582 inferior_thread is a function.
1583
6bf045cd
PP
15842015-01-09 Patrick Palka <patrick@parcs.ath.cx>
1585
1586 * Makefile.in (.y.c): Don't munge yacc's #line
1587 directives.
1588
588dcc3e
PP
15892015-01-09 Patrick Palka <patrick@parcs.ath.cx>
1590
1591 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
1592 to prompt for input.
1593 * tui/tui-hooks.c (tui_query_hook): Remove.
1594 (tui_install_hooks): Don't set deprecated_query_hook.
1595 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
1596 height calculation. Always update the command window's cur_line.
1597
9c02b525
PA
15982015-01-09 Pedro Alves <palves@redhat.com>
1599
1600 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
1601 function.
1602 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
1603 declaration.
1604 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
1605 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
1606 stop_reason.
1607 (check_stopped_by_watchpoint): New function.
1608 (save_sigtrap): Reimplement.
1609 (linux_nat_stopped_by_watchpoint): Adjust.
1610 (linux_nat_lp_status_is_event): Delete.
1611 (stop_wait_callback): Only call save_sigtrap after storing the
1612 pending status.
1613 (status_callback): If the thread had been stopped for a breakpoint
1614 that has since been removed, discard the event and resume the LWP.
1615 (count_events_callback, select_event_lwp_callback): Use
1616 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
1617 (cancel_breakpoint): Rename to ...
1618 (check_stopped_by_breakpoint): ... this. Record whether the LWP
1619 stopped for a software breakpoint or hardware breakpoint.
1620 (select_event_lwp): Only give preference to the stepping LWP in
1621 all-stop mode. Adjust comments.
1622 (stop_and_resume_callback): Remove references to new_pending_p.
1623 (linux_nat_filter_event): Likewise. Leave exit events of the
1624 leader thread pending here. Handle signal short circuiting here.
1625 Only call save_sigtrap after storing the pending waitstatus.
1626 (linux_nat_wait_1): Remove 'retry' label. Remove references to
1627 new_pending. Don't handle leaving events the caller is not
1628 interested in pending here, nor handle signal short-circuiting
1629 here. Also give equal priority to all LWPs that have had events
1630 in non-stop mode. If reporting a software breakpoint event,
1631 unadjust the LWP's PC.
1632 * linux-nat.h (enum lwp_stop_reason): New.
1633 (struct lwp_info) <stop_pc>: New field.
1634 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
1635 (struct lwp_info) <stop_reason>: New field.
1636 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
1637
8af756ef
PA
16382015-01-09 Pedro Alves <palves@redhat.com>
1639
1640 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
1641 Set the LWP's 'resumed' flag.
1642
8a99810d
PA
16432015-01-09 Pedro Alves <palves@redhat.com>
1644
1645 * linux-nat.c (linux_resume_one_lwp): New function.
1646 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
1647 (linux_nat_resume): Use lwp_status_pending_p and
1648 linux_resume_one_lwp.
1649 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
1650 (linux_handle_extended_wait): Use linux_resume_one_lwp.
1651 (status_callback, running_callback): Use lwp_status_pending_p.
1652 (lwp_status_pending_p): New function.
1653 (stop_and_resume_callback): Use lwp_status_pending_p.
1654 (linux_nat_filter_event): Use linux_resume_one_lwp.
1655 (linux_nat_wait_1): Always use status_callback to look for an LWP
1656 with a pending status. Use linux_resume_one_lwp.
1657 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
1658 linux_resume_one_lwp.
1659
f7ce857f
PA
16602015-01-09 Pedro Alves <palves@redhat.com>
1661
1662 * breakpoint.c (bp_location_inserted_here_p): New function,
1663 factored out from ...
1664 (breakpoint_inserted_here_p): ... here. Use
1665 ALL_BP_LOCATIONS_AT_ADDR.
1666 (software_breakpoint_inserted_here_p): Use
1667 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
1668
c1a747c1
PA
16692014-01-09 Pedro Alves <palves@redhat.com>
1670
1671 Skip enabling event reporting if the kernel supports
1672 PTRACE_EVENT_CLONE.
1673 * linux-thread-db.c: Include "nat/linux-ptrace.h".
1674 (thread_db_use_events): New function.
1675 (try_thread_db_load_1): Check thread_db_use_events before enabling
1676 event reporting.
1677 (update_thread_state): New function.
1678 (attach_thread): Use it. Check thread_db_use_events before
1679 enabling event reporting.
1680 (thread_db_detach): Check thread_db_use_events before disabling
1681 event reporting.
1682 (find_new_threads_callback): Check thread_db_use_events before
1683 enabling event reporting. Update the thread's state if not using
1684 libthread_db events.
1685
a33e3959
PA
16862015-01-09 Pedro Alves <palves@redhat.com>
1687
1688 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
1689 about to wait for is > 0.
1690 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
1691 the kernel thread ID is -1.
1692
8784d563
PA
16932015-01-09 Pedro Alves <palves@redhat.com>
1694
1695 * linux-nat.c (attach_proc_task_lwp_callback): New function.
1696 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
1697 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
1698 ptrace option flags.
1699 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
1700 field.
1701 * nat/linux-procfs.c: Include <dirent.h>.
1702 (linux_proc_get_int): New parameter "warn". Handle it.
1703 (linux_proc_get_tgid): Adjust.
1704 (linux_proc_get_tracerpid): Rename to ...
1705 (linux_proc_get_tracerpid_nowarn): ... this.
1706 (linux_proc_pid_get_state): New function, factored out from
1707 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
1708 and handle it.
1709 (linux_proc_pid_is_gone): New function.
1710 (linux_proc_pid_is_stopped): Adjust.
1711 (linux_proc_pid_is_zombie_maybe_warn)
1712 (linux_proc_pid_is_zombie_nowarn): New functions.
1713 (linux_proc_pid_is_zombie): Use
1714 linux_proc_pid_is_zombie_maybe_warn.
1715 (linux_proc_attach_tgid_threads): New function.
1716 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
1717 (linux_proc_get_tracerpid): Rename to ...
1718 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
1719 (linux_proc_pid_is_gone): New declaration.
1720 (linux_proc_pid_is_zombie): Update comment.
1721 (linux_proc_pid_is_zombie_nowarn): New declaration.
1722 (linux_proc_attach_lwp_func): New typedef.
1723 (linux_proc_attach_tgid_threads): New declaration.
1724 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
1725 use nowarn functions.
1726 (linux_ptrace_attach_fail_reason_string): Move here from
1727 gdbserver/linux-low.c and rename.
1728 (ptrace_supports_feature): If the current ptrace options are not
1729 known yet, check them now, instead of asserting.
1730 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
1731 Declare.
1732
883ed13e
PA
17332015-01-09 Pedro Alves <palves@redhat.com>
1734
1735 * linux-thread-db.c (thread_db_find_new_threads_silently)
1736 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
1737 (find_new_threads_once): Print debug output on gdb_stdlog.
1738
1710aab8
CG
17392015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
1740 Pedro Alves <palves@redhat.com>
1741
1742 * compile/compile.c: Include "gdb_wait.h".
1743 (do_rmdir): Check return value, and free 'zap'.
1744
b597c318
YQ
17452015-01-08 Pedro Alves <palves@redhat.com>
1746 Yao Qi <yao@codesourcery.com>
1747
1748 * dwarf2loc.c (indirect_pieced_value): Don't call
1749 gdb_sign_extend. Call extract_signed_integer instead.
1750 * utils.c (gdb_sign_extend): Remove.
1751 * utils.h (gdb_sign_extend): Remove declaration.
1752
025ac414
PM
17532015-01-07 Pierre Muller <muller@sourceware.org>
1754
1755 PR symtab/17811
1756 * stabsread.c (define_symbol): Set language for C++ special symbols.
1757
fa5af12a
PP
17582015-01-07 Patrick Palka <patrick@parcs.ath.cx>
1759
1760 * inflow.c (initial_gdb_ttystate): Tweak comment.
1761
ea42d6f8
JB
17622015-01-07 Joel Brobecker <brobecker@adacore.com>
1763
1764 * inflow.c (set_initial_gdb_ttystate): Add empty line after
1765 comment documenting function.
1766
6a06d660
PP
17672015-01-07 Patrick Palka <patrick@parcs.ath.cx>
1768
1769 * terminal.h (set_initial_gdb_ttystate): Declare.
1770 * inflow.c (initial_gdb_ttystate): New static variable.
1771 (set_initial_gdb_ttystate): New setter.
1772 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
1773 instead of our current terminal state.
1774 * top.c (gdb_init): Call set_initial_gdb_ttystate.
1775
e810d75b
JB
17762015-01-07 Joel Brobecker <brobecker@adacore.com>
1777
1778 * guile/scm-type.c (tyscm_array_1): Add comment.
1779 * python/py-type.c (typy_array_1): Add comment.
1780
fce10a84
JB
17812015-01-06 Joel Brobecker <brobecker@adacore.com>
1782
1783 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
1784 error if N2 is equal to N1 - 1.
1785
8503d6e1
JB
17862015-01-06 Joel Brobecker <brobecker@adacore.com>
1787
1788 * python/py-type.c (typy_array_1): Do not raise negative-length
1789 exception if N2 is equal to N1 - 1.
1790
4d29c0a8
DE
17912015-01-03 Doug Evans <xdje42@gmail.com>
1792
1793 * c-exp.y: Whitespace cleanup.
1794 (classify_inner_name): Remove extra ;.
1795
eaa6a9a4
MR
17962015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
1797
1798 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
1799 offset signed.
1800
02fe9972
DE
18012015-01-02 Doug Evans <dje@google.com>
1802
1803 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
1804
e2ada9cb
DE
18052015-01-02 Doug Evans <dje@google.com>
1806
1807 * symtab.h (struct symbol): Fix typo in comment.
1808
32d0add0
JB
18092015-01-01 Joel Brobecker <brobecker@adacore.com>
1810
1811 Update year range in copyright notice of all files.
1812
76f2b779
JB
18132015-01-01 Joel Brobecker <brobecker@adacore.com>
1814
1815 * top.c (print_gdb_version): Update copyright year to 2015.
1816
077309e2 18172015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 1818
077309e2 1819 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 1820
077309e2 1821For older changes see ChangeLog-2014.
c906108c
SS
1822\f
1823Local Variables:
1824mode: change-log
1825left-margin: 8
1826fill-column: 74
1827version-control: never
57da7796 1828coding: utf-8
c906108c 1829End:
This page took 2.016853 seconds and 4 git commands to generate.