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