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