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