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