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