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