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