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