1 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3 * c-valprint.c (c_val_print): Factor out struct and union
5 (c_val_print_struct): ... this new function ...
6 (c_val_print_union): ... and this new function.
8 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
10 * c-valprint.c (c_val_print): Factor out pointer printing code
12 (c_val_print_ptr): ... this new function.
14 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
16 * c-valprint.c (c_valprint): Factor our array printing code from
18 (c_val_print_array): ... this new function.
20 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
22 * c-valprint.c (c_val_print): Factor out pointer printing code
24 (print_unpacked_pointer): ... this new function.
26 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
28 * c-valprint.c (c_val_print): Remove an assignment to i and move
31 2015-07-09 Yao Qi <yao.qi@linaro.org>
33 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
34 argument ptid. Update comments. Caller update.
36 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
38 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
41 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
43 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
45 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
47 * progspace.c (delete_program_space): Add missing spaces.
49 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
51 * inferior.c (delete_inferior_1): Rename to ...
52 (delete_inferior): ..., remove 'silent' parameter, delete
53 program space when unused and remove call to prune_program_spaces.
54 Remove the old, unused, delete_inferior.
55 (delete_inferior_silent): Remove.
56 (prune_inferiors): Change call from delete_inferior_1 to
57 delete_inferior and remove 'silent' parameter. Remove call to
59 (remove_inferior_command): Idem.
60 * inferior.h (delete_inferior_1): Rename to...
61 (delete_inferior): ..., remove 'silent' parameter and remove the
62 original delete_inferior.
63 (delete_inferior_silent): Remove.
64 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
65 delete_inferior_1 to delete_inferior and remove 'silent'
67 * progspace.c (prune_program_spaces): Remove.
68 (pspace_empty_p): Rename to...
69 (program_space_empty_p): ... and make non-static.
70 (delete_program_space): New.
71 * progspace.h (prune_program_spaces): Remove declaration.
72 (program_space_empty_p): New declaration.
73 (delete_program_space): New declaration.
74 * monitor.c (monitor_close): Replace call to
75 delete_thread_silent and delete_inferior_silent with
76 discard_all_inferiors.
78 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
80 * defs.h (deprecated_register_changed_hook): Remove prototype.
81 * interps.c (clear_iterpreter_hooks): Remove reference to
82 deprecated_register_changed_hook.
83 * top.c (deprecated_register_changed_hook): Remove prototype.
84 * valops.c (value_assign): Remove reference to
85 deprecated_register_changed_hook.
86 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
87 Add comment documenting the function.
88 (tui_register_changed_observer): Define.
89 (tui_install_hooks): Remove reference to
90 deprecated_register_changed_hook. Set
91 tui_register_changed_observer.
92 (tui_remove_hooks): Remove reference to
93 deprecated_register_changed_hook. Unset
94 tui_register_changed_observer.
96 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
99 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
101 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
104 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
106 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
108 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
110 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
112 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
113 Use safe_strerror() instead of strerror().
115 2015-07-07 Yao Qi <yao.qi@linaro.org>
117 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
118 * features/arm-with-m-fpa-layout.c: Regenerated.
119 * features/arm-with-m-vfp-d16.xml: Likewise.
120 * features/arm-with-m-vfp-d16.c: Regenerated.
121 * features/arm-with-m.xml: Likewise.
122 * features/arm-with-m.c: Regenerated.
123 * features/arm-with-neon.xml: Likewise.
124 * features/arm-with-neon.c: Regenerated.
125 * features/arm-with-vfpv2.xml: Likewise.
126 * features/arm-with-vfpv2.c: Regenerated.
127 * features/arm-with-vfpv3.xml: Likewise.
128 * features/arm-with-vfpv3.c: Regenerated.
130 2015-07-07 Yao Qi <yao.qi@linaro.org>
132 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
134 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
136 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
138 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
140 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
142 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
144 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
145 (aarch64_linux_read_description): Return the right target
147 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
148 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
149 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
152 2015-07-07 Yao Qi <yao.qi@linaro.org>
154 * aarch32-linux-nat.c: New file.
155 * aarch32-linux-nat.h: New file.
156 * arm-linux-nat.c: Include aarch32-linux-nat.h.
157 (fetch_regs): Move code to aarch32-linux-nat.c. Call
158 aarch32_gp_regcache_supply.
159 (store_regs): Move code to aarch32-linux-nat.c. Call
160 aarch32_gp_regcache_collect.
161 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
162 aarch32_vfp_regcache_supply.
163 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
164 aarch32_vfp_regcache_collect.
165 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
167 2015-07-07 Yao Qi <yao.qi@linaro.org>
169 * arm-linux-nat.c (store_fpregister): Remove.
170 (store_register): Likewise.
171 (fetch_fpregister): Likewise.
172 (fetch_register): Likewise.
173 (arm_linux_store_inferior_registers): Call store_regs and
174 store_fpregs instead.
175 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
178 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
180 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
183 2015-07-06 Joel Brobecker <brobecker@adacore.com>
185 * NEWS: Create a new section for the next release branch.
186 Rename the section of the current branch, now that it has
189 2015-07-06 Joel Brobecker <brobecker@adacore.com>
191 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
192 * version.in: Bump version to 7.10.50.DATE-cvs.
194 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
196 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
197 breakpoints in a special way.
198 (remove_breakpoint): Likewise.
199 (mark_breakpoints_out): Likewise.
201 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
203 * doc/gdb.texinfo (TUI): Add comma after @xref.
205 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
207 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
208 instead of casting the structure type.
210 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
212 * valops.c (search_struct_field): Remove OFFSET parameter.
213 (value_cast_structs): Adjust calls to search_struct_field.
214 (value_struct_elt): Same.
215 (find_overload_match): Same.
217 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
219 * value.c (value_fetch_lazy): Update comment, change return
221 * value.h (value_fetch_lazy): Change return value to void.
223 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
225 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
226 (tui_win_name): Make parameter and result const.
227 * tui/tui-data.h (tui_win_name): Make parameter and result const.
229 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
231 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
232 use printf_unfiltered.
233 (set_mpx_cmd): Add missing trailing space to command string
235 (_initialize_i386_tdep): Give the "mpx" prefix command its
238 2015-07-02 Kevin Buettner <kevinb@redhat.com>
240 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
241 (enum rx_frame_type): New.
242 (struct rx_prologue): Add new field `frame_type'.
243 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
244 parameter in the prologue struct. Add code for recording
245 locations of PC and PSW for fast interrupt and exception frames.
246 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
247 (rx_analyze_frame_prologue): Add `frame_type' parameter.
248 (rx_frame_type): New function.
249 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
250 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
252 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
253 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
254 RX_FRAME_TYPE_FAST_INTERRUPT.
255 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
256 (rx_frame_sniffer, rx_exception_sniffer): New functions.
257 (rx_frame_unwind): Use rx_frame_sniffer instead of
258 default_frame_sniffer.
259 (rx_frame_unwind): New unwinder.
260 (rx_gdbarch_init): Register new unwinder.
262 2015-07-02 Kevin Buettner <kevinb@redhat.com>
264 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
265 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
266 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
268 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
270 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
272 Fix GCC false warning.
273 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
275 2015-07-02 Yao Qi <yao.qi@linaro.org>
277 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
278 typo in the debugging message.
280 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
282 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
283 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
284 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
285 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
286 (btrace_maint_clear): New.
287 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
288 (pt_print_packet, btrace_maint_decode_pt)
289 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
290 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
291 (maint_btrace_packet_history_cmd)
292 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
293 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
294 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
295 (maint_info_btrace_cmd, _initialize_btrace): New.
296 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
297 (btrace_maint_packet_history, btrace_maint_info): New.
298 (btrace_thread_info) <maint>: New.
301 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
303 * btrace.c (btrace_fetch): Append the new trace data.
304 (btrace_clear): Clear the stored trace data.
305 * btrace.h (btrace_thread_info) <data>: New.
306 * common/btrace-common.h (btrace_data_clear)
307 (btrace_data_append): New.
308 * common/btrace-common.c (btrace_data_clear)
309 (btrace_data_append): New.
311 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
313 * nat/linux-btrace.c (linux_enable_bts): Check for
315 Check for data_offset and data_size fields. Use them.
317 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
319 * NEWS: Announce new commands "record btrace pt" and "record pt".
320 Announce new options "set|show record btrace pt buffer-size".
321 * btrace.c: Include "rsp-low.h".
322 Include "inttypes.h".
323 (btrace_add_pc): Add forward declaration.
324 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
325 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
326 (btrace_compute_ftrace_pt): New.
327 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
328 (check_xml_btrace_version): Update version check.
329 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
330 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
331 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
332 (btrace_pt_children): New.
333 (btrace_children): Add support for "pt".
334 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
335 (btrace_conf_children): Add support for "pt".
336 * btrace.h: Include "intel-pt.h".
337 (btrace_pt_error): New.
338 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
339 (btrace_data_empty): Support BTRACE_FORMAT_PT.
340 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
341 (struct btrace_config_pt): New.
342 (struct btrace_config)<pt>: New.
343 (struct btrace_data_pt_config, struct btrace_data_pt): New.
344 (struct btrace_data)<pt>: New.
345 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
347 * features/btrace.dtd (btrace)<pt>: New.
348 (pt, pt-config, cpu): New.
349 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
350 (perf_event_pt_event_type, kernel_supports_pt)
351 (linux_supports_pt): New.
352 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
353 (linux_enable_bts): Free tinfo on error.
354 (linux_enable_pt): New.
355 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
356 (linux_disable_pt): New.
357 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
358 (linux_fill_btrace_pt_config, linux_read_pt): New.
359 (linux_read_btrace): Support BTRACE_FORMAT_PT.
360 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
361 (struct btrace_target_info)<pt>: New.
362 * record-btrace.c (set_record_btrace_pt_cmdlist)
363 (show_record_btrace_pt_cmdlist): New.
364 (record_btrace_print_pt_conf): New.
365 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
366 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
367 (cmd_record_btrace_pt_start): New.
368 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
369 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
370 (_initialize_record_btrace): Add new commands.
371 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
372 (remote_protocol_features): Add "Qbtrace:pt".
373 Add "Qbtrace-conf:pt:size".
374 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
375 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
376 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
377 (_initialize_remote): Add new commands.
379 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
381 * configure.ac: check for libipt
382 * configure: Regenerate.
383 * config.in: Regenerate.
384 * Makefile.in (LIBIPT): New.
385 (CLIBS): Add $LIBIPT.
386 * NEWS: document new configure options
388 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
390 * compile/compile-object-load.c (compile_object_load): Replace debug
391 message "lookup undefined ELF symbol" by 3 more specific messages.
393 2015-07-01 Kevin Buettner <kevinb@redhat.com>
395 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
396 (rl78_register_type): Add case for RL78_PSW_REGNUM.
397 (rl78_gdbarch_init): Initialize rl78_psw_type.
399 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
401 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
402 Update commentary. Always refresh the registers when frame
403 information has changed.
404 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
405 Change return type to int. Return 1 if frame information has
406 changed, 0 otherwise.
407 (tui_before_prompt): Update commentary.
408 * tui/tui-stack.h (tui_show_frame_info): Change return type to
411 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
414 * frame.c (select_frame): Remove reference to
415 deprecated_selected_frame_level_changed_hook.
416 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
418 * stack.c (deprecated_selected_frame_level_changed_hook):
420 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
422 (tui_refresh_frame_and_register_information): ... this. Bail
423 out if there is no stack. Don't update register information
424 unless registers_too_p is true.
425 (tui_print_frame_info_listing_hook): Rename to ...
426 (tui_dummy_print_frame_info_listing_hook): ... this.
427 (tui_before_prompt): New function.
428 (tui_normal_stop): New function.
429 (tui_before_prompt_observer): New observer.
430 (tui_normal_stop_observer): New observer.
431 (tui_install_hooks): Set
432 deprecated_print_frame_info_listing_hook to
433 tui_dummy_print_frame_info_listing_hook. Register
434 tui_before_prompt_observer to call tui_before_prompt and
435 tui_normal_stop_observer to call tui_normal_stop. Remove
436 reference to deprecated_selected_frame_level_changed_hook.
437 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
438 and tui_normal_stop_observer. Remove reference to
439 deprecated_selected_frame_level_changed_hook.
441 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
444 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
445 return an int instead of void. Return whether the locator
447 (tui_show_frame_info): If the locator info has not changed, then
448 bail out early to avoid refreshing the windows.
450 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
452 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
453 LOCATOR_WIN to tui_alloc_content.
455 2015-06-30 Yao Qi <yao.qi@linaro.org>
458 * arm-tdep.c (arm_get_next_pc_raw): Break for media
461 2015-06-29 Kevin Buettner <kevinb@redhat.com>
463 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
464 (rx_dwarf_reg_to_regnum): New function.
465 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
468 2015-06-29 Pedro Alves <palves@redhat.com>
471 * infcall.c (run_inferior_call): On infcall success, if the thread
472 was marked stopped before, reset it back to stopped.
473 * infrun.c (resume): Don't suppress the set_running calls when
475 (normal_stop): Only discard the finish_thread_state cleanup if the
478 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
480 * MAINTAINERS (Write After Approval): Update my email address.
482 2015-06-26 Keith Seitz <keiths@redhat.com>
483 Doug Evans <dje@google.com>
486 * block.c (block_lookup_symbol): For non-function blocks,
487 continue to search for a symbol with an exact domain match
488 Otherwise, return any previously found "best domain" symbol.
489 (block_lookup_symbol_primary): Likewise.
491 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
493 * NEWS: Mention the new option "history remove-duplicates".
494 * top.c (history_remove_duplicates): New static variable.
495 (show_history_remove_duplicates): New static function.
496 (gdb_add_history): Conditionally remove duplicate history
498 (init_main): Add "history remove-duplicates" option.
500 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
502 * tui/tui-win.c (focus_completer): New static function.
503 (_initialize_tui_win): Set the completion function of the
504 "focus" command to focus_completer.
506 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
508 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
510 * symtab.c (find_function_start_sal): Likewise.
512 2015-06-25 Gary Benson <gbenson@redhat.com>
514 * solib.c (solib_find_1): Set local variable sysroot to NULL if
515 it is the empty string after trailing slashes have been stripped.
517 2015-06-25 Gary Benson <gbenson@redhat.com>
519 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
520 * infrun.c (follow_exec): Likewise.
521 * remote.c (remote_filesystem_is_local): Likewise.
522 * solib.c (solib_find_1): Likewise.
524 2015-06-24 Keith Seitz <keiths@redhat.com>
526 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
527 return value from lrealpath.
529 2015-06-24 Mike Frysinger <vapier@gentoo.org>
531 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
533 2015-06-24 Mike Frysinger <vapier@gentoo.org>
535 * remote-sim.c: Include gdb_bfd.h.
536 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
537 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
539 2015-06-24 Yao Qi <yao.qi@linaro.org>
541 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
542 set_gdbarch_get_siginfo_type.
543 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
544 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
545 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
546 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
547 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
548 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
549 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
550 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
551 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
552 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
554 2015-06-24 Gary Benson <gbenson@redhat.com>
556 * common/buffer.c (stdint.h): Do not include.
557 * common/print-utils.c (stdint.h): Likewise.
558 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
559 * compile/compile-c-types.c (gdb_assert.h): Likewise.
560 * ft32-tdep.c (gdb_assert.h): Likewise.
561 * guile/scm-utils.c (stdint.h): Likewise.
562 * i386-linux-tdep.c (stdint.h): Likewise.
563 * i386-tdep.c (stdint.h): Likewise.
564 * nat/linux-btrace.c (stdint.h): Likewise.
565 * nat/linux-btrace.h (stdint.h): Likewise.
566 * nat/linux-ptrace.c (stdint.h): Likewise.
567 * nat/mips-linux-watch.h (stdint.h): Likewise.
568 * ppc-linux-nat.c (stdint.h): Likewise.
569 * python/python-internal.h (stdint.h): Likewise.
570 * stub-termcap.c (stdlib.h): Likewise.
571 * target/target.h (stdint.h): Likewise.
572 * xtensa-linux-nat.c (stdint.h): Likewise.
574 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
576 * top.c (init_history): Look at errno after calling strtol to
577 properly map large GDBHISTSIZE values to infinity.
579 2015-06-23 Doug Evans <dje@google.com>
581 * inferior.h (struct inferior_suspend_state): Delete, unused.
582 All references deleted.
584 2015-06-23 Mike Frysinger <vapier@gentoo.org>
586 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
587 (microblaze_push_dummy_call): Likewise.
588 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
589 and set_gdbarch_push_dummy_call.
591 2015-06-23 Yao Qi <yao.qi@linaro.org>
593 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
594 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
595 (amd64_linux_store_inferior_registers): Likewise.
596 * arm-linux-nat.c (fetch_fpregister): Likewise.
597 (fetch_fpregs, store_fpregister): Likewise.
598 (store_fpregister, store_fpregs): Likewise.
599 (fetch_register, fetch_regs): Likewise.
600 (store_register, store_regs): Likewise.
601 (fetch_vfp_regs, store_vfp_regs): Likewise.
602 (arm_linux_read_description): Check have_ptrace_getregset is
603 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
605 * i386-linux-nat.c (fetch_xstateregs): Check
606 have_ptrace_getregset is not TRIBOOL_TRUE.
607 (store_xstateregs): Likewise.
608 * linux-nat.c (have_ptrace_getregset): Change its type to
610 * linux-nat.h (tribool): New enum.
611 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
612 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
614 2015-06-19 Doug Evans <dje@google.com>
616 * NEWS: Mention Sun's version of stabs is no longer supported.
617 * elfread.c (free_elfinfo): Delete. All uses updated.
618 (elfstab_offset_sections): Delete. All uses updated.
619 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
620 * psympriv.h (partial_symtab) <section_offsets>: Delete.
622 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
625 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
627 * common/rsp-low.c (needs_escaping): New.
628 (remote_escape_output): Add unit_size parameter. Refactor to
629 support multi-byte addressable units. Rename parameters.
630 * common/rsp-low.h (remote_escape_output): Add unit_size
631 parameter and rename others. Update doc.
632 * remote.c (align_for_efficient_write): New.
633 (remote_write_bytes_aux): Add unit_size parameter and use it.
634 Rename some variables. Update doc.
635 (remote_xfer_partial): Get unit size and use it.
636 (remote_read_bytes_1): Add unit_size parameter and use it.
637 Rename some variables. Update doc.
638 (remote_write_bytes): Same.
639 (remote_xfer_live_readonly_partial): Same.
640 (remote_read_bytes): Same.
641 (remote_flash_write): Update call to remote_write_bytes_aux.
642 (remote_write_qxfer): Update call to remote_escape_output.
643 (remote_search_memory): Same.
644 (remote_hostio_pwrite): Same.
646 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
648 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
649 locations as inserted.
650 Update and expand comment about permanent locations.
651 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
652 Move comment to add_location_to_breakpoint.
653 (update_global_location_list): Don't error out if a permanent
654 breakpoint is not marked inserted.
655 Don't error out if a non-permanent breakpoint location is inserted on
656 top of a permanent breakpoint.
658 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
660 * breakpoint.c (make_breakpoint_permanent): Remove unused
662 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
664 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
667 * NEWS: Mention new GDBHISTSIZE behavior.
668 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
669 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
671 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
673 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
674 * top.c (init_history): Read from GDBHISTSIZE instead of
676 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
678 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
680 * top.c (gdb_safe_append_history): Do not call
681 history_truncate_file if the history is not stifled.
683 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
685 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
686 * syscalls/s390x-linux.xml: Likewise.
688 2015-06-16 Michael Eager <eager@eagercon.com>
690 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
692 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
694 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
695 target_terminal_ours_for_output() before calling
696 tui_show_frame_info(), and restore the original terminal
699 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
701 * arm-linux-nat.c: Include nat/linux-ptrace.h.
703 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
705 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
707 (mi_cmd_data_write_memory_bytes): Same.
709 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
711 * corefile.c (write_memory): Update doc.
712 * gdbcore.h (write_memory): Same.
714 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
716 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
717 (dump_mapping_p): Use it for parameter filterflags.
718 (linux_find_memory_regions_full): Use it for variable filterflags.
720 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
721 Jan Kratochvil <jan.kratochvil@redhat.com>
723 Merge multiple hex conversions.
724 * monitor.c: Include rsp-low.h.
725 (fromhex): Remove definition.
727 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
728 Jan Kratochvil <jan.kratochvil@redhat.com>
730 Move utility functions to common/.
731 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
732 Move defs to common/common-utils.c.
733 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
734 (skip_to_space_const): Move decls to common/common-utils.h.
735 * common/common-defs.h: Move include of common-types.h before
737 * common/common-utils.c: Include host-defs.h and ctype.h.
738 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
740 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
742 * common/common-utils.h (strtoulst): Move decl from utils.h.
743 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
744 Move from cli/cli-utils.h.
745 * common/host-defs.h: Include limits.h.
746 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
747 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
748 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
749 common/common-utils.h.
750 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
751 (strtoulst): Move to common/common-utils.c.
752 * utils.h (strtoulst): Moved decl to common/common-utils.h.
754 2015-06-15 Yao Qi <yao.qi@linaro.org>
756 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
758 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
760 * build-id.c: Don't include elf-bfd.h.
761 (build_id_bfd_get): Use bfd_build_id.
762 (build_id_verify): Ditto.
764 (find_separate_debug_file_by_buildid): Ditto.
765 * python/py-objfile.c: Don't include elf-bfd.h.
766 (objfpy_get_build_id) Use bfd_build_id.
767 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
768 * coffread.c: Include build-id.h.
769 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
771 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
773 * windows-nat.c (do_windows_fetch_inferior_registers)
774 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
775 conditional with __CYGWIN__.
777 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
779 * completer.c: Add arch-utils.h include.
780 (enum reg_completer_targets): New enum.
781 (reg_or_group_completer_1): New function containing old
782 reg_or_group_completer, add and use new parameter to control what
783 is completed on. Use get_current_arch rather than architecture of
784 currently selected frame.
785 (reg_or_group_completer): Call new reg_or_group_completer_1.
786 (reggroup_completer): Call new reg_or_group_completer_1.
787 * completer.h (reggroup_completer): Add declaration.
788 * tui/tui-regs.c: Add 'completer.h' include.
789 (tui_reg_next_command): Renamed to...
790 (tui_reg_next): ...this. Adjust parameters and return rather than
792 (tui_reg_prev_command): Renamed to...
793 (tui_reg_prev): ...this. Adjust parameters and return rather than
795 (tui_reg_float_command): Delete.
796 (tui_reg_general_command): Delete.
797 (tui_reg_system_command): Delete.
798 (tui_reg_command): Rewrite to perform switching of register group.
800 (tuireglist): Remove.
801 (tui_reggroup_completer): New function.
802 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
803 creation of 'tui reg' command.
804 * NEWS: Add comment about 'tui reg' changes.
806 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
808 * target.c (target_read): Consider addressable unit size when
809 reading from a memory object.
810 (read_memory_robust): Same.
811 (read_whatever_is_readable): Same.
812 (target_write_with_progress): Consider addressable unit size
813 when writing to a memory object.
814 * target.h (target_read): Update documentation.
815 (target_write): Add documentation.
817 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
819 * arch-utils.h (default_addressable_memory_unit_size): New.
820 * arch-utils.c (default_addressable_memory_unit_size): New.
821 * gdbarch.sh (addressable_memory_unit_size): New.
822 * gdbarch.h: Re-generate.
823 * gdbarch.c: Re-generate.
825 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
827 * target.c (target_read): Rename variables and use
829 (target_read_with_progress): Same.
830 (read_memory_robust): Constify parameters and rename
832 (read_whatever_is_readable): Constify parameters,
833 rename variables, adjust formatting.
834 * target.h (read_memory_robust): Constify parameters.
836 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
838 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
839 synthetic (non-AltiVec) vector types.
840 (ppc64_sysv_abi_return_value): Likewise.
842 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
845 * breakpoint.c (create_breakpoint): Save extra_string for
848 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
850 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
851 and bt_mask to CORE_ADDR.
853 2015-06-11 Gary Benson <gbenson@redhat.com>
855 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
856 (mnsh_recv_message): Likewise.
858 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
860 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
861 long long int and plongest instead of %ll.
863 2015-06-11 Gary Benson <gbenson@redhat.com>
865 * nat/linux-namespaces.c (gdb_wait.h): New include.
866 (sys/wait.h): Do not include.
868 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
870 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
871 end_sequence is true.
873 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
876 * solib-target.c (library_list_start_list): Use explicit NULL
879 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
881 * solib-target.c (library_list_start_list): Do not dereference
882 variable version in its initialization. Make the VERSION check handle
884 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
886 2015-06-10 Gary Benson <gbenson@redhat.com>
888 * NEWS: Announce support for direct access of executable and
889 shared library files when attaching to inferiors in containers
890 on GNU/Linux systems.
892 2015-06-10 Gary Benson <gbenson@redhat.com>
894 * remote.c (struct remote_state) <fs_pid>: New field.
895 (new_remote_state): Initialize the above.
896 (PACKET_vFile_setfs): New enum value.
897 (remote_hostio_set_filesystem): New function.
898 (remote_hostio_open): Call the above.
899 (remote_hostio_unlink): Likewise.
900 (remote_hostio_readlink): Likewise.
901 (_initialize_remote): Register new "set/show remote
902 hostio-setfs-packet" command.
903 * NEWS: Announce new vFile:setfs packet.
905 2015-06-10 Gary Benson <gbenson@redhat.com>
907 * linux-nat.c (nat/linux-namespaces.h): New include.
908 (fileio.h): Likewise.
909 (linux_nat_filesystem_is_local): New function.
910 (linux_nat_fileio_pid_of): Likewise.
911 (linux_nat_fileio_open): Likewise.
912 (linux_nat_fileio_readlink): Likewise.
913 (linux_nat_fileio_unlink): Likewise.
914 (linux_nat_add_target): Initialize to_filesystem_is_local,
915 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
916 (_initialize_linux_nat): New "set/show debug linux-namespaces"
918 * NEWS: Mention new "set/show debug linux-namespaces" commands.
920 2015-06-10 Gary Benson <gbenson@redhat.com>
922 * target.h (struct inferior): New forward declaration.
923 (struct target_ops) <to_filesystem_is_local>: Update comment.
924 (struct target_ops) <to_fileio_open>: New argument inf.
925 Update comment. All implementations updated.
926 (struct target_ops) <to_fileio_unlink>: Likewise.
927 (struct target_ops) <to_fileio_readlink>: Likewise.
928 (target_filesystem_is_local): Update comment.
929 (target_fileio_open): New argument inf. Update comment.
930 (target_fileio_unlink): Likewise.
931 (target_fileio_readlink): Likewise.
932 (target_fileio_read_alloc): Likewise.
933 (target_fileio_read_stralloc): Likewise.
934 * target.c (target_fileio_open): New argument inf.
935 Pass inf to implementation. Update debug printing.
936 (target_fileio_unlink): Likewise.
937 (target_fileio_readlink): Likewise.
938 (target_fileio_read_alloc_1): New argument inf. Pass inf
939 to target_fileio_open.
940 (target_fileio_read_alloc): New argument inf. Pass inf to
941 target_fileio_read_alloc_1.
942 (target_fileio_read_stralloc): Likewise.
943 * gdb_bfd.c (inferior.h): New include.
944 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
945 argument with new argument "inferior". Pass inferior to
947 (gdb_bfd_open): Supply inferior argument to
948 gdb_bfd_iovec_fileio_open.
949 * linux-tdep.c (linux_info_proc): Supply inf argument to
950 relevant target_fileio calls.
951 (linux_find_memory_regions_full): Likewise.
952 (linux_fill_prpsinfo): Likewise.
953 * remote.c (remote_filesystem_is_local): Supply inf
954 argument to remote_hostio_open.
955 (remote_file_put): Likewise.
956 (remote_file_get): Likewise.
957 (remote_file_delete): Supply inf argument to
958 remote_hostio_unlink.
960 2015-06-10 Gary Benson <gbenson@redhat.com>
962 * inf-child.c (inf_child_fileio_open): Replace comment.
963 (inf_child_fileio_pwrite): Likewise.
964 (inf_child_fileio_pread): Likewise.
965 (inf_child_fileio_fstat): Insert blank line before comment.
966 (inf_child_fileio_close): Replace comment.
967 (inf_child_fileio_unlink): Likewise.
968 (inf_child_fileio_readlink): Likewise.
969 * remote.c (remote_hostio_open): Likewise.
970 (remote_hostio_pread): Likewise.
971 (remote_hostio_pwrite): Likewise.
972 (remote_hostio_close): Likewise.
973 (remote_hostio_unlink): Likewise.
974 (remote_hostio_readlink): Likewise.
975 (remote_hostio_fstat): Likewise.
976 (remote_filesystem_is_local): Likewise.
977 * target.c (target_fileio_open): Likewise.
978 (target_fileio_pwrite): Likewise.
979 (target_fileio_pread): Likewise.
980 (target_fileio_fstat): Insert blank line before comment.
981 (target_fileio_close): Replace comment.
982 (target_fileio_unlink): Likewise.
983 (target_fileio_readlink): Likewise.
984 (target_fileio_read_alloc): Likewise.
985 (target_fileio_read_stralloc): Likewise.
987 2015-06-10 Gary Benson <gbenson@redhat.com>
989 * linux-thread-db.c (nat/linux-namespaces.h): New include.
990 (check_pid_namespace_match): Use linux_ns_same rather than
991 linux_proc_pid_get_ns to spot PID namespace mismatches.
992 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
993 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
995 2015-06-10 Gary Benson <gbenson@redhat.com>
997 * configure.ac (AC_CHECK_FUNCS): Add setns.
998 * config.in: Regenerate.
999 * configure: Likewise.
1000 * nat/linux-namespaces.h: New file.
1001 * nat/linux-namespaces.c: Likewise.
1002 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
1003 (linux-namespaces.o): New rule.
1004 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
1005 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
1006 * config/arm/linux.mh (NATDEPFILES): Likewise.
1007 * config/i386/linux.mh (NATDEPFILES): Likewise.
1008 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1009 * config/ia64/linux.mh (NATDEPFILES): Likewise.
1010 * config/m32r/linux.mh (NATDEPFILES): Likewise.
1011 * config/m68k/linux.mh (NATDEPFILES): Likewise.
1012 * config/mips/linux.mh (NATDEPFILES): Likewise.
1013 * config/pa/linux.mh (NATDEPFILES): Likewise.
1014 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
1015 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
1016 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
1017 * config/s390/linux.mh (NATDEPFILES): Likewise.
1018 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1019 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
1020 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
1021 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
1023 2015-06-10 Gary Benson <gbenson@redhat.com>
1025 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
1026 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
1027 (make_cleanup_close): Likewise.
1028 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
1029 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
1030 (make_cleanup_close): Likewise.
1032 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
1034 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
1035 from SuspendThread().
1037 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
1039 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
1040 from OutputDebugString.
1042 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
1043 Mircea Gherzan <mircea.gherzan@intel.com>
1045 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
1046 MPX_BT_MASK_32): New macros.
1047 (i386_mpx_set_bounds): New function that implements
1048 the command "set-mpx-bound".
1049 (i386_mpx_enabled): Helper function to test MPX availability.
1050 (i386_mpx_bd_base): Helper function to calculate the base directory
1052 (i386_mpx_get_bt_entry): Helper function to access a bound
1054 (i386_mpx_print_bounds): Effectively display bound information.
1055 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
1057 (_initialize_i386_tdep):
1058 Add "bound" to the commands "show mpx" and "set mpx" commands.
1059 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
1060 and "show mpx" commands.
1061 * NEWS: List new commands for MPX support.
1063 2015-06-09 Gary Benson <gbenson@redhat.com>
1065 * common/fileio.h (fileio_to_host_mode): New declaration.
1066 * common/fileio.c (fileio_to_host_mode): New Function.
1067 * inf-child.c (inf_child_fileio_open): Process mode argument
1068 with fileio_to_host_mode.
1070 2015-06-09 Gary Benson <gbenson@redhat.com>
1072 * common/fileio.c (fileio_mode_pack): Fix preprocessor
1075 2015-06-05 Gary Benson <gbenson@redhat.com>
1077 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
1078 * remote.c (remote_filesystem_is_local): ...here.
1080 2015-06-04 Yao Qi <yao.qi@linaro.org>
1082 * gdbarch.c: Regenerate it.
1084 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1086 * arch-utils.c (default_infcall_munmap): New.
1087 * arch-utils.h (default_infcall_munmap): New declaration.
1088 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
1089 (munmap_list_free, munmap_listp_free_cleanup): New.
1090 (struct setup_sections_data): Add field munmap_list_headp.
1091 (setup_sections): Call munmap_list_add.
1092 (compile_object_load): New variable munmap_list_head, initialize
1093 setup_sections_data.munmap_list_headp, return munmap_list_head.
1094 * compile/compile-object-load.h (struct munmap_list): New declaration.
1095 (struct compile_module): Add field munmap_list_head.
1096 (munmap_list_free): New declaration.
1097 * compile/compile-object-run.c (struct do_module_cleanup): Add field
1099 (do_module_cleanup): Call munmap_list_free.
1100 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
1101 * gdbarch.c: Regenerate.
1102 * gdbarch.h: Regenerate.
1103 * gdbarch.sh (infcall_munmap): New.
1104 * linux-tdep.c (linux_infcall_munmap): New.
1105 (linux_init_abi): Install it.
1107 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
1110 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
1112 2015-06-02 Yao Qi <yao.qi@linaro.org>
1114 * i386-linux-nat.c: Include linux-nat.h.
1116 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
1117 Jan Kratochvil <jan.kratochvil@redhat.com>
1120 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
1122 * dwarf2loc.c (chain_candidate): Likewise.
1124 2015-06-01 Yao Qi <yao.qi@linaro.org>
1126 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
1127 (store_vfp_regs): Use PTRACE_SETREGSET.
1129 2015-06-01 Yao Qi <yao.qi@linaro.org>
1131 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
1132 (fetch_fpregs): Likewise.
1133 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
1134 (store_fpregs): Likewise.
1136 2015-06-01 Yao Qi <yao.qi@linaro.org>
1138 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
1139 (fetch_regs): Likewise.
1140 (store_regs): Use PTRACE_SETREGSET.
1141 (store_register): Likewise.
1143 2015-06-01 Yao Qi <yao.qi@linaro.org>
1145 * arm-linux-nat.c (arm_linux_read_description): Check whether
1146 kernel supports PTRACE_GETREGSET.
1148 2015-06-01 Yao Qi <yao.qi@linaro.org>
1150 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
1151 * linux-nat.c: ... here.
1152 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
1154 * linux-nat.h: ... here.
1156 2015-06-01 Yao Qi <yao.qi@linaro.org>
1158 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
1159 * i386-linux-nat.c: Likewise.
1160 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
1161 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
1162 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
1163 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
1164 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
1166 2015-05-30 Eli Zaretskii <eliz@gnu.org>
1168 * go32-nat.c (go32_xfer_memory): Fix the return value to be
1169 compatible to what read_child and write_child return. This
1170 unbreaks that DJGPP build of GDB which was broken since v7.7.
1172 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
1174 * MAINTAINERS (Write After Approval): Add Martin Galvan.
1176 2015-05-29 Roland McGrath <mcgrathr@google.com>
1179 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
1180 rather than internal_error for an unrecognized value.
1182 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
1184 * xtensa-tdep.c (xtensa_pseudo_register_read)
1185 (xtensa_pseudo_register_write): Don't alias last pseudo register
1188 2015-05-28 Don Breazeal <donb@codesourcery.com>
1190 * infrun.c (follow_fork_inferior): Ensure the use of
1191 process-style ptids (pid,0,0) in verbose/debug "Detaching"
1194 2015-05-28 Doug Evans <dje@google.com>
1196 * dwarf2read.c (record_line_ftype): Remove, duplicate.
1198 2015-05-28 Yao Qi <yao.qi@linaro.org>
1200 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
1201 (arm_linux_fetch_inferior_registers): Use
1202 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
1203 (arm_linux_store_inferior_registers): Likewise.
1204 (arm_linux_read_description): Don't set
1205 arm_linux_has_wmmx_registers.
1206 * arm-tdep.c (arm_gdbarch_init): Set
1207 tdep->have_wmmx_registers according target descriptions.
1208 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
1211 2015-05-28 Yao Qi <yao.qi@linaro.org>
1213 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
1214 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
1215 instead of arm_linux_vfp_register_count.
1216 (store_vfp_regs): Likewise.
1217 (arm_linux_fetch_inferior_registers): Likewise.
1218 (arm_linux_store_inferior_registers): Likewise.
1219 (arm_linux_read_description): Don't set
1220 arm_linux_vfp_register_count.
1221 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
1223 * arm-tdep.c (arm_gdbarch_init): Add assert on
1225 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
1226 field to vfp_register_count. All users updated.
1228 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
1230 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
1231 ELFOSABI_GNU binaries.
1233 2015-05-27 Doug Evans <dje@google.com>
1235 * dwarf2read.c (lnp_state_machine): New typedef.
1236 (lnp_reader_state): New typedef.
1237 (dwarf_record_line_1): Renamed from dwarf_record_line.
1238 All callers updated.
1239 (dwarf_record_line): New function.
1240 (init_lnp_state_machine): New function.
1241 (check_line_address): Replace p_record_line parameter with state.
1242 All callers updated.
1243 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
1244 Update to record state in lnp_state_machine.
1246 2015-05-27 Doug Evans <dje@google.com>
1248 * dwarf2read.c (record_line_ftype): New typedef.
1249 (check_line_address): New function.
1250 (dwarf_decode_lines_1): Call it.
1252 2015-05-27 Doug Evans <dje@google.com>
1254 * NEWS: Mention "set debug dwarf-line".
1255 * dwarf2read.c (dwarf_line_debug): New static global.
1256 (add_include_dir): Add debug dwarf-line support.
1257 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
1258 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
1260 2015-05-27 Doug Evans <dje@google.com>
1262 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
1263 All callers updated.
1264 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
1265 * cp-support.h (cp_lookup_nested_symbol): Update.
1267 2015-05-27 Doug Evans <dje@google.com>
1270 * block.c (block_find_symbol): New function.
1271 (block_find_non_opaque_type): Ditto.
1272 (block_find_non_opaque_type_preferred): Ditto.
1273 * block.h (block_symbol_matcher_ftype): New typedef.
1274 (block_find_symbol): Declare.
1275 (block_find_non_opaque_type): Ditto.
1276 (block_find_non_opaque_type_preferred): Ditto.
1277 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
1278 * psymtab.c (psym_lookup_symbol): Ditto.
1279 * symtab.c (basic_lookup_transparent_type_1): New function.
1280 (basic_lookup_transparent_type): Call it.
1282 2015-05-27 Yao Qi <yao.qi@linaro.org>
1284 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
1285 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
1287 2015-05-27 Yao Qi <yao.qi@linaro.org>
1289 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
1291 (aarch64_record_load_store): Likewise.
1293 2015-05-26 Doug Evans <dje@google.com>
1295 PR c++/18141, c++/18417.
1296 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
1299 2015-05-26 Doug Evans <dje@google.com>
1301 * NEWS: Add entries for command renamings.
1302 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
1304 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
1305 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
1307 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
1308 All callers updated. Fix spelling of DWARF in help text.
1309 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
1311 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
1313 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
1314 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
1315 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
1317 (show_dwarf_always_disassemble): Renamed from
1318 show_dwarf2_always_disassemble. All callers updated.
1319 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
1320 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
1321 "set/show dwarf max-cache-age". Rename
1322 "set/show dwarf2 always-disassemble" to
1323 "set/show dwarf always-disassemble". Rename
1324 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
1325 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
1327 2015-05-26 Doug Evans <dje@google.com>
1330 * python/py-lazy-string.c (stpy_convert_to_value): Use
1331 gdbpy_gdb_memory_error not PyExc_MemoryError.
1332 (gdbpy_create_lazy_string_object): Ditto.
1334 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
1336 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
1338 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
1340 * tui/tui-regs.c (tui_reg_prev_command): New function.
1341 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
1342 * reggroups.c (reggroup_prev): New function.
1343 * reggroups.h (reggroup_prev): Add declaration. Update comment.
1345 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
1346 Yao Qi <yao.qi@linaro.org>
1348 * aarch64-linux-tdep.c: Include linux-record.h and
1350 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
1351 (aarch64_syscall): New enum.
1352 (aarch64_canonicalize_syscall): New function.
1353 (aarch64_all_but_pc_registers_record): New function.
1354 (aarch64_linux_syscall_record): New function.
1355 (aarch64_linux_init_abi): Install AArch64 process record
1356 handler. Update to handle syscall recording.
1357 * aarch64-tdep.c: Include record.h and record-full.h.
1358 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
1359 (struct aarch64_mem_r): Define.
1360 (aarch64_record_result): New enum.
1361 (struct insn_decode_record): Define.
1362 (insn_decode_record): New typedef.
1363 (aarch64_record_data_proc_reg): New function.
1364 (aarch64_record_data_proc_imm): New function.
1365 (aarch64_record_branch_except_sys): New function.
1366 (aarch64_record_load_store): New function.
1367 (aarch64_record_data_proc_simd_fp): New function.
1368 (aarch64_record_asimd_load_store): New function.
1369 (aarch64_record_decode_insn_handler): New function.
1370 (deallocate_reg_mem): New function.
1371 (aarch64_process_record): New function.
1372 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
1374 (aarch64_process_record): New extern declaration.
1375 * configure.tgt: Add linux-record.o to gdb_target_obs.
1376 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
1378 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
1380 * NEWS: Add a note on process record-replay support on aarch64*-linux*
1383 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
1385 * amd64-tdep.c: Replace in_function_epilogue_p with
1386 stack_frame_destroyed_p throughout.
1387 * arch-utils.c: Ditto.
1388 * arch-utils.h: Ditto.
1389 * arm-tdep.c: Ditto.
1390 * breakpoint.c: Ditto.
1391 * gdbarch.sh: Ditto.
1392 * hppa-tdep.c: Ditto.
1393 * i386-tdep.c: Ditto.
1394 * mips-tdep.c: Ditto.
1395 * nios2-tdep.c: Ditto.
1396 * rs6000-tdep.c: Ditto.
1397 * s390-linux-tdep.c: Ditto.
1398 * score-tdep.c: Ditto.
1400 * sparc-tdep.c: Ditto.
1401 * sparc-tdep.h: Ditto.
1402 * sparc64-tdep.c: Ditto.
1403 * spu-tdep.c: Ditto.
1404 * tic6x-tdep.c: Ditto.
1405 * tilegx-tdep.c: Ditto.
1406 * xstormy16-tdep.c: Ditto.
1407 * gdbarch.c, gdbarch.h: Re-generated.
1409 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
1411 * NEWS: Mention 'tui enable' and 'tui disable'.
1412 * tui/tui.c (tui_enable_command): New function.
1413 (tui_disable_command): New function.
1414 (_initialize_tui): New function.
1416 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
1418 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
1420 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
1422 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
1425 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
1427 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
1429 (tui_set_layout_for_display_command): ...here, before calling
1430 tui_set_layout. Only set the layout if gdb has not already
1431 entered the TUI_FAILURE state.
1433 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
1435 * tui/tui-layout.c (layout_completer): New function.
1436 (_initialize_tui_layout): Set completer on layout command.
1438 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
1440 * tui/tui-layout.c (tui_set_layout): Remove
1441 tui_register_display_type parameter. Remove all checking of this
1442 parameter, and reindent function. Update header comment.
1443 (tui_set_layout_for_display_command): Rename to...
1444 (tui_set_layout_by_name): ...this, and don't check for different
1445 register class types, don't pass a tui_register_display_type to
1446 tui_set_layout. Update header comment.
1447 (layout_names): Remove register set specific names.
1448 * tui/tui-layout.h (tui_set_layout): Remove
1449 tui_register_display_type parameter.
1450 * tui/tui.c (tui_rl_change_windows): Don't pass a
1451 tui_register_display_type to tui_set_layout.
1452 (tui_rl_delete_other_windows): Likewise.
1453 (tui_enable): Likewise.
1454 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
1455 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
1456 (TUI_GENERAL_REGS_NAME): Remove.
1457 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
1458 (TUI_SPECIAL_REGS_NAME): Remove.
1459 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
1460 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
1461 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
1462 (enum tui_register_display_type): Remove.
1463 (struct tui_layout_def): Remove regs_display_type and
1464 float_regs_display_type fields.
1465 (struct tui_data_info): Remove regs_display_type field.
1466 (tui_layout_command): Use new name for
1467 tui_set_layout_for_display_command.
1468 * tui/tui-data.c (layout_def): Don't initialise removed fields.
1469 (tui_clear_win_detail): Don't initialise removed fields of
1471 * tui/tui-regs.c (tui_show_registers): Use new name for
1472 tui_set_layout_for_display_command.
1473 * tui/tui.h (tui_set_layout_for_display_command): Rename
1475 (tui_set_layout_by_name): ...this.
1476 * printcmd.c (display_command): Remove tui related layout call,
1479 2015-05-20 Joel Brobecker <brobecker@adacore.com>
1481 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
1482 (handle_inferior_event): New function.
1484 2015-05-20 Joel Brobecker <brobecker@adacore.com>
1486 * ada-lang.c (to_fixed_array_type): Rename local variable
1487 typename into type_name.
1489 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1491 Fix ASAN crash for gdb.compile/compile.exp.
1492 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
1494 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1496 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
1497 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
1498 * compile/compile-object-load.c (setup_sections, compile_object_load):
1500 * compile/compile.c (compile_to_object): Likewise.
1502 2015-05-16 Doug Evans <xdje42@gmail.com>
1504 * NEWS: Mention support for unbuffered Guile memory ports.
1505 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
1506 (ioscm_lseek_address): Improve overflow calculation.
1507 (gdbscm_memory_port_fill_input): Add assert.
1508 (gdbscm_memory_port_write): Handle unbuffered ports.
1509 Handle large writes identical to Guile's fport_write.
1510 (gdbscm_memory_port_seek): Fix seeking past end check.
1511 (gdbscm_memory_port_close): Handle closing unbuffered port.
1512 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
1513 (ioscm_init_memory_port): Handle unbuffered ports.
1514 (ioscm_reinit_memory_port): Ditto.
1515 (ioscm_init_memory_port): Update size calculation.
1516 (gdbscm_open_memory): Support zero sized ports.
1518 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1520 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
1521 variable compiler warnings.
1523 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1525 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
1527 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1528 Phil Muldoon <pmuldoon@redhat.com>
1530 * NEWS (Changes since GDB 7.9): Add compile print.
1531 * compile/compile-c-support.c (add_code_header, add_code_footer)
1532 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
1533 COMPILE_I_PRINT_VALUE_SCOPE.
1534 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
1535 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
1537 * compile/compile-object-load.c: Include block.h.
1538 (get_out_value_type): New function.
1539 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
1540 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
1542 * compile/compile-object-load.h (struct compile_module): Add fields
1543 out_value_addr and out_value_type.
1544 * compile/compile-object-run.c: Include valprint.h and compile.h.
1545 (struct do_module_cleanup): Add fields out_value_addr and
1547 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
1548 COMPILE_I_PRINT_VALUE_SCOPE.
1549 (compile_object_run): Propagate out_value_addr and out_value_type.
1550 Pass OUT_VALUE_ADDR.
1551 * compile/compile.c: Include valprint.h.
1552 (compile_print_value, compile_print_command): New functions.
1553 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
1554 (_initialize_compile): Update compile code help text. Install
1555 compile_print_command.
1556 * compile/compile.h (compile_print_value): New prototype.
1557 * defs.h (enum compile_i_scope_types): Add
1558 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
1560 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1562 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
1563 Rely on its parameter count.
1564 (compile_object_load): Replace lookup_minimal_symbol_text by
1565 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
1567 * compile/compile-object-load.h (struct compile_module): Replace
1568 func_addr by func_sym.
1569 * compile/compile-object-run.c: Include block.h.
1570 (compile_object_run): Reset module variable after it is freed. Use
1571 FUNC_SYM instead of FUNC_ADDR. Rely on it.
1573 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1575 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
1576 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
1577 (c_compute_program): Call generate_register_struct after typedefs.
1578 * compile/compile-loc2c.c (push, pushf_register_address)
1579 (pushf_register): Cast to GCC_UINTPTR.
1580 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
1581 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
1582 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
1583 * compile/compile.c (_initialize_compile): Enable warnings for
1586 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1588 * cli/cli-script.c (execute_control_command): Update
1589 eval_compile_command caller.
1590 * compile/compile-object-load.c (compile_object_load): Add parameters
1591 scope and scope_data. Set them.
1592 * compile/compile-object-load.h (struct compile_module): Add fields
1593 scope and scope_data.
1594 (compile_object_load): Add parameters scope and scope_data.
1595 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
1596 scope and scope_data.
1597 (compile_object_run): Propagate the fields scope and scope_data.
1598 * compile/compile.c (compile_file_command, compile_code_command):
1599 Update eval_compile_command callers.
1600 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
1601 * compile/compile.h (eval_compile_command): Add parameter scope_data.
1602 * defs.h (struct command_line): Add field scope_data.
1604 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1606 * printcmd.c (struct format_data): Move it to valprint.h.
1607 (print_command_parse_format, print_value): New functions from ...
1608 (print_command_1): ... here. Call them.
1609 * valprint.h (struct format_data): Move it here from printcmd.c.
1610 (print_command_parse_format, print_value): New declarations.
1612 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1614 * compile/compile-object-load.c (compile_object_load): Add
1615 COMPILE_DEBUG message.
1617 2015-05-15 Jerome Guitton <guitton@adacore.com>
1619 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
1620 index to get element instead of enum value.
1621 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
1622 of index to compute length, but enum values to compute bounds.
1623 (ada_array_length): Use enum position of index instead of enum value.
1624 (pos_atr): Move position computation to...
1625 (ada_evaluate_subexp): Use enum values to compute bounds.
1626 * gdbtypes.c (discrete_position): ...this new function.
1627 * gdbtypes.h (discrete_position): New function declaration.
1628 * valprint.c (val_print_array_elements): Call discrete_position
1629 to handle array indexed by non-contiguous enumeration types.
1631 2015-05-15 Jerome Guitton <guitton@adacore.com>
1633 * ada-lang.c (find_parallel_type_by_descriptive_type):
1634 Go through typedefs during lookup.
1635 (to_fixed_array_type): Add support for non-bit packed arrays
1636 as variable-length fields.
1638 2015-05-15 Pedro Alves <palves@redhat.com>
1639 Simon Marchi <simon.marchi@ericsson.com>
1641 * event-loop.c (gdb_notifier) <next_file_handler,
1642 next_poll_fds_index>: New fields.
1643 (get_next_file_handler_to_handle_and_advance): New function.
1644 (delete_file_handler): If deleting the next file handler to
1645 handle, advance to the next file handler.
1646 (gdb_wait_for_event): Bail early if no event fired. Poll file
1647 handlers in round-robin fashion.
1649 2015-05-15 Pedro Alves <palves@redhat.com>
1651 * linux-tdep.c (linux_find_memory_regions_full): Rename local
1652 'private' to 'priv'.
1654 2015-05-15 Pedro Alves <palves@redhat.com>
1656 * nat/linux-nat.h: Include "target/waitstatus.h".
1658 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
1660 * python/py-unwind.c (struct reg_info): Move out of ...
1661 (struct cached_frame_info): ... this scope.
1662 (pending_frame_object_type, unwind_info_object_type): Make extern.
1664 2015-05-15 Joel Brobecker <brobecker@adacore.com>
1666 * ada-lang.c (ada_value_primitive_packed_val): Make sure
1667 accumSize is never negative.
1669 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
1671 * tui/tui-command.c: Remove include of <ctype.h>.
1672 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
1674 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
1676 * dwarf2read.c (die_needs_namespace): Return 1 for
1677 DW_TAG_inlined_subroutine.
1679 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1681 * regcache.c (regcache_cpy_no_passthrough): New declaration.
1682 (regcache_cpy_no_passthrough): Make it static, add function comment.
1683 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
1684 (regcache_cpy_no_passthrough): Remove declaration.
1686 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1688 * gdbthread.h (struct thread_control_state): Update comment for
1690 * infcall.c (run_inferior_call): Update comment about
1692 * infcmd.c (get_return_value): Update comment about stop_registers.
1693 (finish_forward): Update comment about proceed_to_finish.
1694 * infrun.c (stop_registers): Remove.
1695 (clear_proceed_status, normal_stop): Remove stop_registers handling.
1696 * infrun.h (stop_registers): Remove.
1698 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1700 * infcall.c (struct dummy_frame_context_saver)
1701 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
1702 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
1703 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
1705 (call_function_by_hand_dummy): Move discard_cleanups of
1706 inf_status_cleanup before dummy_frame_push. Call
1707 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
1708 Use dummy_frame_context_saver_get_regs instead of stop_registers.
1709 * infcall.h (struct dummy_frame_context_saver)
1710 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
1711 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
1713 * infcmd.c: Include infcall.h.
1714 (get_return_value): Add parameter ctx_saver, use it instead of
1716 (print_return_value): Add parameter ctx_saver, pass it.
1717 (struct finish_command_continuation_args): Add field ctx_saver.
1718 (finish_command_continuation): Update print_return_value caller.
1719 (finish_command_continuation_free_arg): Free also ctx_saver.
1720 (finish_forward): Call dummy_frame_context_saver_setup.
1721 * inferior.h (struct dummy_frame_context_saver): New declaration.
1722 (get_return_value): Add parameter ctx_saver.
1723 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
1724 get_return_value caller.
1726 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1728 * dummy-frame.c (struct dummy_frame_dtor_list): New.
1729 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
1730 (remove_dummy_frame): Process dtor_list.
1731 (pop_dummy_frame): Process dtor_list.
1732 (register_dummy_frame_dtor): Maintain dtor_list.
1733 (find_dummy_frame_dtor): Handle dtor_list.
1734 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
1737 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1739 * compile/compile-object-run.c (do_module_cleanup): Add parameter
1741 (compile_object_run): Update do_module_cleanup caller.
1742 * dummy-frame.c: Include infcall.h.
1743 (struct dummy_frame): Update dtor comment.
1744 (remove_dummy_frame): Call dtor.
1745 (pop_dummy_frame): Update dtor caller.
1746 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
1749 2015-05-13 Joel Brobecker <brobecker@adacore.com>
1753 2015-05-13 Joel Brobecker <brobecker@adacore.com>
1755 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
1756 Xmethods now being able to specify a result type to that new
1759 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
1761 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
1762 first before resizing the window.
1763 * tui/tui.c (tui_enable): Likewise.
1765 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1767 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
1768 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
1769 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
1770 dummy_dtor parameter.
1771 * infcall.h: Include dummy-frame.h.
1772 (call_function_by_hand_dummy_dtor_ftype): Remove.
1773 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
1776 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
1779 * top.c (history_size_setshow_var): Change type to signed.
1780 Initialize to -2. Update documentation.
1781 (set_readline_history_size): Define.
1782 (set_history_size_command): Use it. Remove logic for handling
1784 (init_history): Use set_readline_history_size(). Test for a
1785 value of -2 instead of 0 when determining whether to set a
1786 default history size.
1787 (init_main): Decode the argument of the "size" command as a
1788 zuinteger_unlimited.
1790 2015-05-12 Doug Evans <dje@google.com>
1792 * dwarf2read.c (struct file_entry): Tweak comments.
1793 (get_debug_line_section): Tweak comments.
1795 2015-05-12 Don Breazeal <donb@codesourcery.com>
1797 * NEWS: Announce fork support in the RSP and support
1798 for fork debugging in extended mode.
1800 2015-05-12 Don Breazeal <donb@codesourcery.com>
1802 * remote.c (remote_insert_fork_catchpoint): New function.
1803 (remote_remove_fork_catchpoint): New function.
1804 (remote_insert_vfork_catchpoint): New function.
1805 (remote_remove_vfork_catchpoint): New function.
1806 (pending_fork_parent_callback): New function.
1807 (remove_new_fork_child): New function.
1808 (remote_update_thread_list): Call remote_notif_get_pending_events
1809 and remove_new_fork_child.
1810 (extended_remote_kill): Kill fork child when killing the
1811 parent before follow_fork completes.
1812 (init_extended_remote_ops): Initialize target vector with
1813 new fork catchpoint functions.
1815 2015-05-12 Don Breazeal <donb@codesourcery.com>
1817 * remote.c (remove_vfork_event_p): New function.
1818 (remote_follow_fork): Add vfork event type to event checking.
1819 (remote_parse_stop_reply): New stop reasons "vfork" and
1820 "vforkdone" for RSP 'T' Stop Reply Packet.
1822 2015-05-12 Don Breazeal <donb@codesourcery.com>
1824 * linux-nat.c (linux_nat_ptrace_options): New function.
1825 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
1826 Call linux_nat_ptrace_options and use different argument to
1827 linux_enable_event_reporting.
1828 (_initialize_linux_nat): Delete call to
1829 linux_ptrace_set_additional_flags.
1830 * nat/linux-ptrace.c (current_ptrace_options): Rename to
1831 supported_ptrace_options.
1832 (additional_flags): Delete variable.
1833 (linux_check_ptrace_features): Use supported_ptrace_options.
1834 (linux_test_for_tracesysgood, linux_test_for_tracefork):
1835 Likewise, and remove additional_flags check.
1836 (linux_enable_event_reporting): Change 'attached' argument to
1837 'options'. Use supported_ptrace_options.
1838 (ptrace_supports_feature): Change comment. Use
1839 supported_ptrace_options.
1840 (linux_ptrace_set_additional_flags): Delete function.
1841 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1842 Delete function prototype.
1843 * remote.c (remote_fork_event_p): New function.
1844 (remote_detach_pid): New function.
1845 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
1846 if doing detach-on-fork.
1847 (remote_follow_fork): New function.
1848 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
1849 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
1850 (init_extended_remote_ops): Initialize to_follow_fork.
1852 2015-05-12 Don Breazeal <donb@codesourcery.com>
1854 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
1855 from static to extern.
1856 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
1857 * remote.c (anonymous enum): <PACKET_fork_event_feature,
1858 * PACKET_vfork_event_feature>: New enumeration constants.
1859 (remote_protocol_features): Add table entries for new packets.
1860 (remote_query_supported): Add new feature queries to qSupported
1863 2015-05-12 Gary Benson <gbenson@redhat.com>
1865 * remote.c (remote_add_inferior): Call exec_file_locate_attach
1866 for fake PIDs as well as real ones.
1867 (remote_pid_to_exec_file): Send empty annex if PID is fake.
1869 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
1871 * NEWS (Python Scripting): Mention the new gdb.Value methods.
1872 * python/py-value.c (valpy_reference_value): New function.
1873 (valpy_const_value): Likewise.
1874 (value_object_methods): Add new methods.
1875 * value.c (make_cv_value): New function.
1876 * value.h (make_cv_value): Declare.
1878 2015-05-08 Yao Qi <yao@codesourcery.com>
1879 Sandra Loosemore <sandra@codesourcery.com>
1881 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
1882 to 'lh->include_dirs' before accessing to it.
1883 (psymtab_include_file_name): Likewise.
1884 (dwarf_decode_lines_1): Likewise.
1885 (dwarf_decode_lines): Likewise.
1886 (file_file_name): Likewise.
1888 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
1890 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
1891 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
1892 (nios2_linux_rt_sigreturn_init): Adjust base address of
1895 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
1897 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
1898 "trap 31" as the breakpoint instruction on all targets.
1900 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1902 * infcmd.c (print_return_value): Remove unused declaration.
1904 2015-05-08 Joel Brobecker <brobecker@adacore.com>
1906 * dwarf2read.c (attr_to_dynamic_prop)
1907 <DW_AT_data_member_location>: Use read_type_die isntead of
1910 2015-05-08 Joel Brobecker <brobecker@adacore.com>
1912 * ada-lang.c (ada_convert_actual): Add handling of formals
1913 passed inside an aligner type.
1915 2015-05-08 Joel Brobecker <brobecker@adacore.com>
1917 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
1919 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
1922 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
1923 Print xmethod matcher status.
1925 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
1927 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
1928 register in the regcache when treating the PSWM register, and vice
1931 2015-05-07 Gary Benson <gbenson@redhat.com>
1933 * linux-thread-db.c (struct thread_db_info)
1934 <td_ta_map_id2thr_p>: Remove field.
1935 (try_thread_db_load_1): Remove initialization for the above.
1937 2015-05-07 Gary Benson <gbenson@redhat.com>
1939 * linux-thread-db.c (struct thread_db_info)
1940 <td_thr_validate_p>: Remove field.
1941 (try_thread_db_load_1): Remove initialization for the above.
1943 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1945 * compile/compile-object-load.c (compile_object_load): Support
1948 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1950 * compile/compile.c (compile_to_object): Make the cmd_string parameter
1951 const. Use new variables for the const compatibility.
1952 (eval_compile_command): Make the cmd_string parameter const.
1953 * compile/compile.h (eval_compile_command): Make the cmd_string
1956 2015-05-06 Joel Brobecker <brobecker@adacore.com>
1958 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
1960 * top.c (deprecated_init_ui_hook): Delete.
1961 (gdb_init): Remove handling of deprecated_init_ui_hook.
1962 * interps.c (clear_interpreter_hooks): Remove handling of
1963 deprecated_init_ui_hook.
1964 * main.c (captured_main): Update comment.
1966 2015-05-06 Joel Brobecker <brobecker@adacore.com>
1968 * solib.c (_initialize_solib): Add "info dll" alias creation.
1969 * windows-nat.c (set_windows_aliases): Delete.
1970 (_initialize_windows_nat): Remove deprecated_init_ui_hook
1972 * NEWS: Add news entry about "info dll" now being available
1975 2015-05-05 Joel Brobecker <brobecker@adacore.com>
1977 * ada-lang.c (value_assign_to_component): Reformat and improve
1978 documentation. Remove all trailing spaces.
1980 2015-05-05 Joel Brobecker <brobecker@adacore.com>
1982 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1983 Stop counting inlined frames as soon as an out-of-line function
1986 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
1988 * dwarf2read.c (inherit_abstract_dies): Skip
1989 DW_TAG_GNU_call_site dies while inheriting children of an
1990 abstract DIE into a scope.
1991 (read_lexical_block_scope): Inherit abstract DIE's for
1994 2015-05-05 Joel Brobecker <brobecker@adacore.com>
1996 * ada-valprint.c (val_print_packed_array_elements): Delete
1997 variable "len". Add a type-length check when comparing two
1998 consecutive elements of the array. Use the element's actual
1999 length in call to value_contents_eq.
2000 * ada-lang.c (ada_value_primitive_packed_val): Always return
2001 a value whose type has been resolved.
2003 2015-05-05 Joel Brobecker <brobecker@adacore.com>
2005 * ada-lang.c (ada_value_primitive_packed_val): Recompute
2006 BIT_SIZE and LEN if the size of the resolved type is smaller
2007 than BIT_SIZE * HOST_CHAR_BIT.
2009 2015-05-05 Joel Brobecker <brobecker@adacore.com>
2011 * ada-lang.c (ada_value_primitive_packed_val): Use a more
2012 correct address in call to value_at. Adjust call to
2013 value_address accordingly.
2015 2015-05-05 Joel Brobecker <brobecker@adacore.com>
2017 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
2020 2015-05-05 Joel Brobecker <brobecker@adacore.com>
2022 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
2023 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
2025 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
2026 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
2027 (resolve_dynamic_type_internal): Set pinfo.valaddr.
2028 Add handling of addr_stack->valaddr.
2029 (resolve_dynamic_type): Add "valaddr" parameter.
2030 Set pinfo.valaddr field.
2031 * ada-lang.c (ada_discrete_type_high_bound): Update call to
2032 resolve_dynamic_type.
2033 (ada_discrete_type_low_bound): Likewise.
2034 * findvar.c (default_read_var_value): Likewise.
2035 * value.c (value_from_contents_and_address): Likewise.
2037 2015-05-05 Joel Brobecker <brobecker@adacore.com>
2039 * gdbtypes.c (resolve_dynamic_array): Use
2040 create_array_type_with_stride instead of create_array_type.
2042 2015-04-30 DJ Delorie <dj@redhat.com>
2044 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
2047 2015-04-29 Doug Evans <dje@google.com>
2050 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
2051 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
2052 EVAL_AVOID_SIDE_EFFECTS for xmethods.
2053 * extension-priv.h (struct extension_language_ops)
2054 <get_xmethod_result_type>: New member.
2055 * extension.c (get_xmethod_result_type): New function.
2056 * extension.h (get_xmethod_result_type): Declare.
2057 * python/py-xmethods.c (get_result_type_method_name): New static
2059 (py_get_result_type_method_name): Ditto.
2060 (gdbpy_get_xmethod_result_type): New function.
2061 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
2062 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
2063 * python/python.c (python_extension_ops): Add
2064 gdbpy_get_xmethod_result_type.
2065 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
2066 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
2068 (value_x_unop): Ditto.
2069 * value.c (result_type_of_xmethod): New function.
2070 * value.h (result_type_of_xmethod): Declare.
2072 2015-04-29 Gary Benson <gbenson@redhat.com>
2074 * solib.c (solib_find_1): Allow fd argument to be NULL.
2075 (exec_file_find): Update comment.
2076 (solib_find): Likewise.
2077 * exec.c (exec_file_locate_attach): Use NULL as fd
2078 argument to exec_file_find to avoid having to close
2080 * infrun.c (follow_exec): Likewise.
2082 2015-04-28 Doug Evans <dje@google.com>
2085 * python/lib/gdb/printing.py (register_pretty_printer): Handle
2086 name or __name__ attributes. Handle gdb module as first argument.
2088 2015-04-28 Doug Evans <dje@google.com>
2091 * python/py-prettyprint.c (print_children): Verify result of children
2092 iterator. Provide better error message.
2093 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
2094 * python/python.c (gdbpy_print_python_errors_p): New function.
2096 2015-04-28 Doug Evans <dje@google.com>
2098 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
2100 2015-04-28 Sasha Smundak <asmundak@google.com>
2102 * NEWS: Mention gdb.Type.optimized_out method.
2103 * python/py-type.c (typy_optimized_out): New function.
2105 2015-04-28 John Baldwin <jhb@FreeBSD.org>
2107 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
2109 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
2111 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
2112 (initialize_utils): Move call of init_page_info() to ...
2113 * top.c (gdb_init): ... here.
2115 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
2117 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
2118 (tui_sigwinch_handler): Still update our idea of
2119 the terminal's width and height even when TUI is not active.
2121 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
2123 * utils.h (set_screen_width_and_height): Declare.
2124 * utils.c (set_screen_width_and_height): Define.
2125 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
2127 2015-04-28 Gary Benson <gbenson@redhat.com>
2129 * infrun.c (solist.h): New include.
2130 (follow_exec): Use exec_file_find to prefix execd_pathname
2133 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
2135 * tui/tui-source.c (tui_set_source_content): Avoid calling
2136 strcpy() when offset is 0.
2138 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
2141 * tui/tui-data.c (tui_free_window): Don't free the locator
2142 window when passed an SRC_WIN or a DISASSEM_WIN.
2144 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
2146 * tui/tui-data.h (struct tui_win_element): Forward-declare.
2147 (tui_win_content): Move declaration.
2148 (struct tui_gen_win_info): Give 'content' field the
2149 type tui_win_content.
2150 * tui/tui-data.c (init_content_element): Remove redundant and
2152 (tui_add_content_elements): Remove erroneous cast.
2153 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
2155 (tui_get_begin_asm_address): Likewise.
2156 * tui/tui-regs.c (tui_show_registers): Likewise.
2157 (tui_show_register_group): Likewise.
2158 (tui_display_registers_from): Likewise.
2159 (tui_check_register_values): Likewise.
2160 * tui/tui-source.c (tui_set_source_content): Likewise.
2161 (tui_set_source_content_nil): Likewise.
2162 (tui_source_is_displayed): Likewise.
2163 * tui/tui-stack.c (tui_show_locator_content): Likewise.
2164 (tui_set_locator_fullname): Likewise.
2165 (tui_set_locator_info): Likewise.
2166 (tui_show_frame_info): Likewise.
2167 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
2168 (tui_show_source_line): Likewise.
2169 (tui_horizontal_source_scroll): Likewise.
2170 (tui_update_breakpoint_info): Likewise.
2171 (tui_set_exec_info_content): Likewise.
2172 (tui_show_exec_info_content): Likewise.
2173 (tui_alloc_source_buffer): Likewise.
2174 (tui_line_is_displayed): Likewise.
2175 (tui_addr_is_displayed): Likewise.
2177 2015-04-27 John Baldwin <jhb@FreeBSD.org>
2179 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
2180 event if PL_FLAG_EXEC is set.
2181 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
2182 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
2183 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
2184 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
2185 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
2187 2015-04-27 John Baldwin <jhb@FreeBSD.org>
2189 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
2190 [TDP_RFPPWAIT] New variable fbsd_pending_children.
2191 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
2192 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
2193 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
2194 [PT_LWPINFO] (fbsd_wait): New function.
2195 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
2196 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
2197 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
2198 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
2199 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
2200 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
2201 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
2202 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
2203 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
2205 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
2206 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
2207 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
2208 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
2209 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
2210 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
2211 Set "to_post_attach" to "fbsd_post_attach".
2213 2015-04-27 John Baldwin <jhb@FreeBSD.org>
2215 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
2216 (fbsd_find_memory_regions): Mark static.
2217 (fbsd_nat_add_target): New function.
2218 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
2219 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
2220 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
2221 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2222 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
2223 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
2225 2015-04-27 Gary Benson <gbenson@redhat.com>
2227 * objfiles.c (allocate_objfile): Do not attempt to expand name
2228 if name is a "target:" filename.
2229 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
2230 to load auto-load scripts for objfiles with "target:" filenames.
2232 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
2234 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
2235 (enum s390_vector_abi_kind): New enum.
2236 (struct gdbarch_tdep)<vector_abi>: New field.
2237 (s390_effective_inner_type): Add parameter min_size. Stop
2238 unwrapping if the inner type is smaller than min_size.
2239 (s390_function_arg_float): Adjust call to
2240 s390_effective_inner_type.
2241 (s390_function_arg_vector): New function.
2242 (s390_function_arg_integer): Adjust comment.
2243 (struct s390_arg_state)<vr>: New field.
2244 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
2245 arguments according to vector ABI when appropriate.
2246 (s390_push_dummy_call): Initialize the argument state's field
2247 'vr'. Adjust calls to s390_handle_arg.
2248 (s390_register_return_value): Handle vector return values.
2249 (s390_return_value): Apply the "register" return value convention
2250 to a vector when appropriate.
2251 (s390_gdbarch_init): Initialize tdep->vector_abi.
2252 * NEWS: Announce S390 vector ABI support.
2254 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
2256 * s390-linux-tdep.c (s390_return_value_convention): Remove
2257 function. Inline its logic...
2258 (s390_return_value): ...here. Instead, move the handling of the
2259 "register" return value convention...
2260 (s390_register_return_value): ...here. New function.
2262 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
2265 (is_float_singleton): Remove function. Move the "singleton" part
2267 (s390_effective_inner_type): ...here. New function.
2268 (is_float_like): Remove function. Inline its logic...
2269 (s390_function_arg_float): ...here.
2270 (is_pointer_like, is_integer_like, is_struct_like): Remove
2271 functions. Inline their logic...
2272 (s390_function_arg_integer): ...here.
2273 (s390_function_arg_pass_by_reference): Remove function.
2274 (extend_simple_arg): Remove function.
2275 (alignment_of): Remove function.
2276 (struct s390_arg_state): New structure.
2277 (s390_handle_arg): New function.
2278 (s390_push_dummy_call): Move parameter placement logic to the new
2279 function s390_handle_arg. Call it for calculating the stack area
2280 sizes first, and again for actually writing the parameters.
2282 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
2284 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
2285 false if the argument is zero.
2287 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
2289 * ada-lang.c (template_to_static_fixed_type): Return input type
2290 when it is already fixed. Cache the input type itself when not
2291 creating a static fixed copy. Make it explicit that we never
2292 molestate the input type.
2293 * gdbtypes.c (resolve_dynamic_struct): Reset the
2294 TYPE_TARGET_TYPE field for resolved copies.
2296 2015-04-27 Joel Brobecker <brobecker@adacore.com>
2298 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
2299 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
2300 (template_to_static_fixed_type): Call ada_check_typedef only
2303 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
2305 * cli/cli-dump.c (srec_dump_command): Add internationalization
2307 (ihex_dump_command): Likewise.
2308 (tekhex_dump_command): Likewise.
2309 (binary_dump_command): Likewise.
2310 (binary_append_command): Likewise.
2312 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
2314 * cli/cli-dump.c (verilog_cmdlist): New variable.
2315 (dump_verilog_memory): New function.
2316 (dump_verilog_value): New function.
2317 (verilog_dump_command): New function.
2318 (_initialize_cli_dump): Add new commands to support verilog dump
2320 * NEWS: Add entry for "dump verilog".
2322 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
2324 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
2325 descriptive type when there is none.
2327 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
2329 * tui/tui-win.c (tui_async_resize_screen): Call
2330 rl_resize_terminal().
2332 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
2334 * windows-nat.c (handle_output_debug_string): Don't change
2335 current_event.dwThreadId.
2336 (get_windows_debug_event): Use thread_id, rather than relying on
2337 current_event.dwThreadId being changed.
2339 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
2341 * windows-nat.c (windows_continue): Report an error if
2342 ContinueDebugEvent() fails.
2344 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
2346 * windows-nat.c (windows_resume): Fix misspelling in debug output.
2348 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
2350 * windows-nat.c (get_windows_debug_event): Replace retval with
2351 thread_id throughout. Update stale comment.
2353 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
2355 * windows-nat.c (get_windows_debug_event): Don't use ternary
2356 conditional operator.
2358 2015-04-21 Pierre Muller <muller@sourceware.org>
2361 p-exp.y (yylex): Reorganize code to return the matched pattern
2362 for a field of this.
2364 2015-04-21 Gary Benson <gbenson@redhat.com>
2366 * common/fileio.h (fileio_to_host_openflags): New declaration.
2367 * common/fileio.c (fcntl.h): New include.
2368 (fileio_to_host_openflags): New function, factored out from...
2369 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
2372 2015-04-21 Kevin Buettner <kevinb@redhat.com>
2374 * rl78-tdep.c (RL78_SP_ADDR): Define.
2375 (opc_reg_to_gdb_regnum): New static function.
2376 (rl78_analyze_prologue): Recognize instructions forming slightly
2377 more interesting prologues.
2379 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
2382 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
2383 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
2384 TYPE_CODE_REF types so that they are not considered as dynamic
2385 depending on the referenced type.
2386 (resolve_dynamic_type_internal): Likewise.
2388 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
2391 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
2392 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
2393 "top_level" parameter.
2394 (resolve_dynamic_type_internal): Remove the unused "top_level"
2395 parameter. Update call to is_dynamic_type_internal.
2396 (is_dynamic_type): Update call to is_dynamic_type_internal.
2397 (resolve_dynamic_range): Update call to
2398 resolve_dynamic_type_internal.
2399 (resolve_dynamic_union): Likewise.
2400 (resolve_dynamic_struct): Likewise.
2401 (resolve_dynamic_type): Likewise.
2403 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
2405 * breakpoint.c (update_dprintf_command_list): Remove duplicated
2408 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
2410 * reply_mig_hack.awk: Robustify parsing.
2412 * reply_mig_hack.awk: Don't bother to declare an intermediate
2413 function pointer variable.
2415 2015-04-17 Doug Evans <dje@google.com>
2417 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
2418 to "exec_displacement" to avoid confusion with inner use of the name.
2420 2015-04-17 Pedro Alves <palves@redhat.com>
2422 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
2423 if HW point of TYPE isn't supported.
2425 2015-04-17 Yao Qi <yao.qi@linaro.org>
2426 Pedro Alves <palves@redhat.com>
2428 * target.h (target_can_use_hardware_watchpoint): Update comments.
2429 Remove trailing ";".
2431 2015-04-17 Gary Benson <gbenson@redhat.com>
2433 * remote.c (remote_add_inferior): New argument try_open_exec.
2434 If nonzero, attempt to open the inferior's executable file as
2435 the main executable if no main executable is open already.
2436 All callers updated.
2437 * NEWS: Mention that GDB now supports automatic location and
2438 retrieval of executable + files from remote targets.
2440 2015-04-17 Gary Benson <gbenson@redhat.com>
2442 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
2443 * remote.c (PACKET_qXfer_exec_file): Likewise.
2444 (remote_protocol_features): Register the
2445 "qXfer:exec-file:read" feature.
2446 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
2447 (remote_pid_to_exec_file): New function.
2448 (init_remote_ops): Initialize to_pid_to_exec_file.
2449 (_initialize_remote): Register new "set/show remote
2450 pid-to-exec-file-packet" command.
2451 * NEWS: Announce new qXfer:exec-file:read packet.
2453 2015-04-17 Gary Benson <gbenson@redhat.com>
2455 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
2457 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
2458 New function, factored out from...
2459 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
2461 2015-04-17 Gary Benson <gbenson@redhat.com>
2463 * exec.c (solist.h): New include.
2464 (exec_file_locate_attach): Prefix absolute executable
2465 paths with gdb_sysroot if set.
2466 * NEWS: Mention that executable paths may be prepended
2469 2015-04-17 Gary Benson <gbenson@redhat.com>
2471 * solist.h (exec_file_find): New declaration.
2472 * solib.c (solib_find_1): New function, factored out from...
2473 (solib_find): ...here.
2474 (exec_file_find): New function.
2476 2015-04-17 Gary Benson <gbenson@redhat.com>
2478 * gdbcore.h (exec_file_locate_attach): New declaration.
2479 * exec.c (exec_file_locate_attach): New function, factored
2481 * infcmd.c (attach_command_post_wait): ...here.
2483 2015-04-17 Mike Frysinger <vapier@gentoo.org>
2485 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
2487 2015-04-16 Yao Qi <yao.qi@linaro.org>
2489 * infrun.c (maybe_software_singlestep): Declare.
2490 (displaced_step_fixup): Call maybe_software_singlestep.
2492 2015-04-15 Doug Evans <dje@google.com>
2494 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
2496 2015-04-15 Doug Evans <dje@google.com>
2498 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
2500 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
2502 * python/lib/gdb/command/unwinders.py: Add parentheses.
2504 2015-04-15 Yao Qi <yao.qi@linaro.org>
2506 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
2508 2015-04-15 Yao Qi <yao.qi@linaro.org>
2510 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
2512 2015-04-15 Yao Qi <yao.qi@linaro.org>
2514 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
2515 dsc->insn_size instead of 4.
2517 2015-04-14 Gary Benson <gbenson@redhat.com>
2519 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
2520 * minidebug.c (lzma_stat): Likewise.
2521 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
2522 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
2524 2015-04-13 Stan Shebs <stanshebs@google.com>
2526 * MAINTAINERS: Update my email address.
2528 2015-04-13 John Baldwin <jhb@FreeBSD.org>
2530 * amd64-tdep.c (amd64_target_description): New function.
2531 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
2532 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
2533 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
2534 x86 extended save area.
2535 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
2536 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
2537 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
2538 (_initialize_amd64fbsd_nat): Set "to_read_description" to
2539 "amd64fbsd_read_description".
2540 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
2541 (amd64fbsd_supply_xstateregset): New function.
2542 (amd64fbsd_collect_xstateregset): New function.
2543 Add "amd64fbsd_xstateregset".
2544 (amd64fbsd_iterate_over_regset_sections): New function.
2545 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
2546 "I386_FBSD_XSAVE_XCR0_OFFSET".
2547 Add "iterate_over_regset_sections" gdbarch method.
2548 Add "core_read_description" gdbarch method.
2549 * i386-tdep.c (i386_target_description): New function.
2550 * i386-tdep.h: Export i386_target_description and tdesc_i386.
2551 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
2552 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
2553 x86 extended save area.
2554 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
2555 * i386bsd-nat.h: Export i386bsd_xsave_len.
2556 * i386fbsd-nat.c (i386fbsd_read_description): New function.
2557 (_initialize_i386fbsd_nat): Set "to_read_description" to
2558 "i386fbsd_read_description".
2559 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
2560 (i386fbsd_core_read_description): New function.
2561 (i386fbsd_supply_xstateregset): New function.
2562 (i386fbsd_collect_xstateregset): New function.
2563 Add "i386fbsd_xstateregset".
2564 (i386fbsd_iterate_over_regset_sections): New function.
2565 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
2566 "I386_FBSD_XSAVE_XCR0_OFFSET".
2567 Add "iterate_over_regset_sections" gdbarch method.
2568 Add "core_read_description" gdbarch method.
2569 * i386fbsd-tdep.h: New file.
2571 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2573 * NEWS (Changes since GDB 7.9): Add removed -xdb.
2574 * breakpoint.c (command_line_is_silent): Remove xdb_commands
2576 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
2578 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
2580 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
2582 * defs.h (xdb_commands): Remove declaration.
2583 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
2584 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
2585 * infcmd.c (run_no_args_command, go_command): Remove.
2586 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
2587 * infrun.c (xdb_handle_command): Remove.
2588 (_initialize_infrun): Remove xdb_commands for lz and z.
2589 * main.c (xdb_commands): Remove variable.
2590 (captured_main): Remove "xdb" from long_options.
2591 (print_gdb_help): Remove --xdb from help.
2592 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
2593 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
2594 * stack.c (backtrace_full_command, args_plus_locals_info)
2595 (current_frame_command): Remove.
2596 (_initialize_stack): Remove xdb_commands for t, T and l.
2597 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
2598 * thread.c (_initialize_thread): Remove xdb_commands condition.
2599 * tui/tui-layout.c (tui_toggle_layout_command)
2600 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
2601 (_initialize_tui_layout): Remove xdb_commands for td and ts.
2602 * tui/tui-regs.c (tui_scroll_regs_forward_command)
2603 (tui_scroll_regs_backward_command): Remove.
2604 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
2605 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
2606 (_initialize_tui_win): Remove xdb_commands for U and w.
2607 * utils.c (pagination_on_command, pagination_off_command): Remove.
2608 (initialize_utils): Remove xdb_commands for am and sm.
2610 2015-04-10 Pedro Alves <palves@redhat.com>
2612 * infrun.c (displaced_step_fixup): Switch to the event ptid
2613 earlier. If the thread stopped for a watchpoint and the
2614 target/arch has non-continuable watchpoints, cancel the displaced
2616 (resume): Don't start a displaced step if in-line step-over info
2619 2015-04-10 Pedro Alves <palves@redhat.com>
2621 * infrun.c (displaced_step_in_progress): New function.
2622 (do_target_resume): Advise target to report all signals if
2625 2015-04-10 Pedro Alves <palves@redhat.com>
2628 * infrun.c (process_event_stop_test): Don't assume a step-resume
2629 is set if tp->stepped_breakpoint is true.
2631 2015-04-10 Yao Qi <yao.qi@linaro.org>
2633 * arm-tdep.c (install_alu_reg): Update comment.
2634 (thumb_copy_alu_reg): Remove local variable rn. Update
2635 debugging message. Use r2 instead of r1 in the modified
2638 2015-04-10 Pedro Alves <palves@redhat.com>
2641 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
2642 linux_displaced_step_location as gdbarch_displaced_step_location
2644 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
2645 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
2646 * linux-tdep.c (linux_displaced_step_location): New function,
2647 based on ppc_linux_displaced_step_location.
2648 * linux-tdep.h (linux_displaced_step_location): New declaration.
2649 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
2650 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
2652 (ppc_linux_init_abi): Install linux_displaced_step_location as
2653 gdbarch_displaced_step_location hook, even without Cell/B.E..
2654 (_initialize_ppc_linux_tdep): Don't install
2655 ppc_linux_inferior_created as inferior_created observer.
2656 * s390-linux-tdep.c (s390_gdbarch_init): Install
2657 linux_displaced_step_location as gdbarch_displaced_step_location
2660 2015-04-09 Gary Benson <gbenson@redhat.com>
2662 * common/common-remote-fileio.h: Rename to...
2663 * common/fileio.h: ...this. Update all references.
2664 (remote_fileio_to_fio_error): Rename to...
2665 (host_to_fileio_error): ...this.
2666 (remote_fileio_to_be): Rename to...
2667 (host_to_bigendian): ...this. Update all callers.
2668 (remote_fileio_to_fio_uint): Rename to...
2669 (host_to_fileio_uint): ...this. Update all callers.
2670 (remote_fileio_to_fio_time): Rename to...
2671 (host_to_fileio_time): ...this. Update all callers.
2672 (remote_fileio_to_fio_stat): Rename to...
2673 (host_to_fileio_stat): ...this.
2674 Update all references.
2675 * common/common-remote-fileio.c: Rename to...
2676 * common/fileio.c: ...this. Update all references.
2677 (remote_fileio_to_fio_error): Rename to...
2678 (host_to_fileio_error): ...this. Update all callers.
2679 (remote_fileio_mode_to_target): Rename to...
2680 (fileio_mode_pack): ...this. Update all callers.
2681 (remote_fileio_to_fio_mode): Rename to...
2682 (host_to_fileio_mode): ...this. Update all callers.
2683 (remote_fileio_to_fio_ulong): Rename to...
2684 (host_to_fileio_ulong): ...this. Update all callers.
2685 (remote_fileio_to_fio_stat): Rename to...
2686 (host_to_fileio_stat): ...this. Update all callers.
2688 2015-04-09 Andy Wingo <wingo@igalia.com>
2690 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
2691 (frame_functions): Bind gdbscm_frame_read_register to
2692 frame-read-register.
2693 * guile/lib/gdb.scm (frame-read-register): Export.
2695 2015-04-09 Gary Benson <gbenson@redhat.com>
2697 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
2699 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
2700 New function, factored out the named functions below.
2701 * inf-child.c (gdb/fileio.h): Remove include.
2702 (common-remote-fileio.h): New include.
2703 (inf_child_errno_to_fileio_error): Remove function. Update
2704 all callers to use remote_fileio_to_fio_error.
2705 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
2707 2015-04-09 Andy Wingo <wingo@igalia.com>
2709 * MAINTAINERS (Write After Approval): Add Andy Wingo.
2711 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
2713 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
2714 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
2715 * configure: Regenerated.
2717 2015-04-09 Pedro Alves <palves@redhat.com>
2719 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
2720 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
2721 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
2722 * gnulib/import/Makefile.am: Update.
2723 * gnulib/import/Makefile.in: Update.
2724 * gnulib/import/m4/gnulib-cache.m4: Update.
2725 * gnulib/import/m4/gnulib-comp.m4: Update.
2726 * gnulib/import/m4/strtok_r.m4: New file.
2727 * gnulib/import/strtok_r.c: New file.
2729 2015-04-09 Pedro Alves <palves@redhat.com>
2731 * gnulib/update-gnulib.sh (aclocal version check): Filter out
2732 "called too early to check prototype".
2734 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
2737 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
2738 use a caching mechanism. Adjust comments and code to reflect
2739 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
2740 (cmdpy_completer_handle_brkchars): Adjust call to
2741 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
2742 (cmdpy_completer): Likewise.
2744 2015-04-08 Yao Qi <yao.qi@linaro.org>
2746 * spu-tdep.c (spu_gdbarch_init): Don't call
2747 set_gdbarch_cannot_step_breakpoint.
2749 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
2751 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
2753 2015-04-07 Pedro Alves <palves@redhat.com>
2755 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
2756 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
2757 (delete_exited_threads): New declaration.
2758 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
2759 * linux-nat.c (linux_nat_update_thread_list): New function.
2760 (linux_nat_add_target): Install it.
2761 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
2762 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
2763 (delete_exited_threads): New function.
2765 2015-04-07 Pedro Alves <pedro@codesourcery.com>
2767 * infrun.c (resume) <displaced stepping debug output>: Get the
2768 leader thread's regcache, not resume_ptid's.
2770 2015-04-06 Doug Evans <xdje42@gmail.com>
2772 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
2774 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
2775 Include symbol domain in debugging output.
2777 2015-04-06 Pedro Alves <palves@redhat.com>
2778 Bernd Edlinger <bernd.edlinger@hotmail.de>
2780 * configure.ac: Remove the mingw32-specific stub-termcap.o
2781 fallback, and instead fallback to the stub termcap on all hosts.
2782 * configure: Regenerate.
2783 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
2786 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
2788 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
2789 "top_level" parameter.
2790 (resolve_dynamic_type_internal): Remove the unused "top_level"
2791 parameter. Update call to is_dynamic_type_internal.
2792 (is_dynamic_type): Update call to is_dynamic_type_internal.
2793 (resolve_dynamic_range): Update call to
2794 resolve_dynamic_type_internal.
2795 (resolve_dynamic_union): Likewise.
2796 (resolve_dynamic_struct): Likewise.
2797 (resolve_dynamic_type): Likewise.
2799 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
2801 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
2802 TYPE_CODE_REF types so that they are not considered as dynamic
2803 depending on the referenced type.
2804 (resolve_dynamic_type_internal): Likewise.
2806 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
2808 * Makefile.in (top_srcdir): New.
2809 * configure: Regenerated.
2811 2015-04-02 Gary Benson <gbenson@redhat.com>
2813 * NEWS: Announce the new default sysroot of "target:".
2815 2015-04-02 Gary Benson <gbenson@redhat.com>
2817 * main.c (captured_main): Set gdb_sysroot to "target:"
2818 if not otherwise set.
2820 2015-04-02 Gary Benson <gbenson@redhat.com>
2822 * exec.c (exec_file_attach): Support "target:" filenames.
2824 2015-04-02 Gary Benson <gbenson@redhat.com>
2826 * solib.c (solib_find): Strip "target:" prefix from sysroot
2827 if accessing local files.
2829 2015-04-02 Gary Benson <gbenson@redhat.com>
2831 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
2832 checks and error messages.
2834 2015-04-02 Gary Benson <gbenson@redhat.com>
2836 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
2837 (remote_filename_p): Remove declaration.
2838 (remote_bfd_open): Likewise.
2839 * remote.c (remote_bfd_iovec_open): Remove function.
2840 (remote_bfd_iovec_close): Likewise.
2841 (remote_bfd_iovec_pread): Likewise.
2842 (remote_bfd_iovec_stat): Likewise.
2843 (remote_filename_p): Likewise.
2844 (remote_bfd_open): Likewise.
2845 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
2846 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
2847 (gdb_bfd_open_maybe_remote): Remove function.
2848 (symfile_bfd_open): Replace remote filename check with
2849 target filename check.
2850 (reread_symbols): Use gdb_bfd_open.
2851 * build-id.c (gdbcore.h): New include.
2852 (build_id_to_debug_bfd): Use gdb_bfd_open.
2853 * infcmd.c (attach_command_post_wait): Remove remote filename
2855 * solib.c (solib_find): Replace remote-specific handling with
2856 target-specific handling. Update comments where necessary.
2857 (solib_bfd_open): Replace remote-specific handling with
2858 target-specific handling.
2859 (gdb_sysroot_changed): New function.
2860 (_initialize_solib): Call the above when gdb_sysroot changes.
2861 * windows-tdep.c (gdbcore.h): New include.
2862 (windows_xfer_shared_library): Use gdb_bfd_open.
2864 2015-04-02 Gary Benson <gbenson@redhat.com>
2866 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
2867 (is_target_filename): New declaration.
2868 (gdb_bfd_has_target_filename): Likewise.
2869 (gdb_bfd_open): Update documentation comment.
2870 * gdb_bfd.c (target.h): New include.
2871 (gdb/fileio.h): Likewise.
2872 (is_target_filename): New function.
2873 (gdb_bfd_has_target_filename): Likewise.
2874 (fileio_errno_to_host): Likewise.
2875 (gdb_bfd_iovec_fileio_open): Likewise.
2876 (gdb_bfd_iovec_fileio_pread): Likewise.
2877 (gdb_bfd_iovec_fileio_close): Likewise.
2878 (gdb_bfd_iovec_fileio_fstat): Likewise.
2879 (gdb_bfd_open): Use target fileio to access paths prefixed
2880 with "target:" where necessary.
2882 2015-04-02 Gary Benson <gbenson@redhat.com>
2884 * target.h (struct target_ops) <to_filesystem_is_local>:
2886 (target_filesystem_is_local): New macro.
2887 * target-delegates.c: Regenerate.
2888 * remote.c (remote_filesystem_is_local): New function.
2889 (init_remote_ops): Initialize to_filesystem_is_local.
2891 2015-04-02 Gary Benson <gbenson@redhat.com>
2893 * target.h (struct target_ops) <to_fileio_fstat>: New field.
2894 (target_fileio_fstat): New declaration.
2895 * target.c (target_fileio_fstat): New function.
2896 * inf-child.c (inf_child_fileio_fstat): Likewise.
2897 (inf_child_target): Initialize to_fileio_fstat.
2898 * remote.c (init_remote_ops): Likewise.
2900 2015-04-01 Sasha Smundak <asmundak@google.com>
2902 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
2903 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
2904 (py-unwind.o): New recipe.
2905 * NEWS: mention Python frame unwinding.
2906 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
2907 gdb/unwinder.py and gdb/command/unwinder.py
2908 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
2910 (execute_unwinders): New function.
2911 * python/lib/gdb/command/unwinders.py: New file.
2912 * python/lib/gdb/unwinder.py: New file.
2913 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
2914 (objfpy_dealloc): Decrement frame_unwinders reference count.
2915 (objfpy_initialize): Create frame_unwinders list.
2916 (objfpy_get_frame_unwinders): New function.
2917 (objfpy_set_frame_unwinders): Ditto.
2918 (objfile_getset): Add frame_unwinders attribute to Objfile.
2919 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
2920 (pspy_dealloc): Decrement frame_unwinders reference count.
2921 (pspy_initialize): Create frame_unwinders list.
2922 (pspy_get_frame_unwinders): New function.
2923 (pspy_set_frame_unwinders): Ditto.
2924 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
2925 * python/py-unwind.c: New file.
2926 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
2927 (objpy_get_frame_unwinders): New prototype.
2928 (gdbpy_initialize_unwind): New prototype.
2929 * python/python.c (gdbpy_apply_type_printers): Call
2930 gdbpy_initialize_unwind.
2932 2015-04-01 Pedro Alves <palves@redhat.com>
2934 * infrun.c (resume): Check currently_stepping after clearing
2935 stepped_breakpoint, not before.
2937 2015-04-01 Pedro Alves <palves@redhat.com>
2939 * infrun.c (print_target_wait_results): Print all the ptid
2942 2015-04-01 Pedro Alves <palves@redhat.com>
2944 * infrun.c (keep_going): Also discard cleanups if inserting
2947 2015-04-01 Pedro Alves <palves@redhat.com>
2949 * infrun.c (wait_for_inferior): Install the
2950 finish_thread_state_cleanup cleanup across the whole function, not
2951 just around handle_inferior_event.
2953 2015-04-01 Pedro Alves <palves@redhat.com>
2955 * infrun.c (resume) <step past permanent breakpoint>: Use
2958 2015-04-01 Pedro Alves <palves@redhat.com>
2960 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
2962 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
2964 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
2966 2015-04-01 Pedro Alves <palves@redhat.com>
2968 * linux-thread-db.c (record_thread): Readd the thread to gdb's
2969 list if it was marked exited.
2971 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
2973 * configure: Regenerated.
2975 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
2976 Jan Kratochvil <jan.kratochvil@redhat.com>
2977 Oleg Nesterov <oleg@redhat.com>
2980 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
2981 New enum identifying the various options of the coredump_filter
2983 (struct smaps_vmflags): New struct.
2984 (use_coredump_filter): New variable.
2985 (decode_vmflags): New function.
2986 (mapping_is_anonymous_p): Likewise.
2987 (dump_mapping_p): Likewise.
2988 (linux_find_memory_regions_full): New variables
2989 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
2990 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
2991 parsing of its information. Implement memory mapping filtering
2992 based on its contents.
2993 (show_use_coredump_filter): New function.
2994 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
2995 * NEWS: Mention the possibility of using the
2996 '/proc/PID/coredump_filter' file when generating a corefile.
2997 Mention new command 'set use-coredump-filter'.
2999 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
3001 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
3002 read_memory_unsigned_integer.
3004 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
3006 * Makefile.in (ZLIB): New.
3007 (ZLIBINC): Likewise.
3008 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
3009 (CLIBS): Add $(ZLIB).
3010 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
3012 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
3013 * top.c (print_gdb_configuration): Remove --with-zlib and
3015 * config.in: Regenerated.
3016 * configure: Likewise.
3018 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
3020 * NEWS: Mention info os cpus support.
3021 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
3022 (struct osdata_type): Add cpus entry, reorder the entries in
3025 2015-03-31 Matthias Klose <doko@ubuntu.com>
3027 * compile/compile.c (compile_to_object): Allow triplets with or
3030 2015-03-30 Doug Evans <dje@google.com>
3033 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
3034 klass in VAR_DOMAIN.
3036 2015-03-30 Gary Benson <gbenson@redhat.com>
3038 * remote.c (remote_mourn_1): Remove function. Update all callers
3039 to use remote_mourn.
3040 (extended_remote_mourn_1): Remove function. Update all callers
3041 to use extended_remote_mourn.
3042 (extended_remote_attach_1): Remove function. Update all callers
3043 to use extended_remote_attach.
3045 2015-03-28 James Bowman <james.bowman@ftdichip.com>
3047 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
3048 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
3049 (ALLDEPFILES): Add ft32-tdep.c.
3050 * configure.tgt: Add FT32 entry.
3051 * ft32-tdep.c: New file, FT32 target-dependent code.
3052 * ft32-tdep.h: New file, FT32 target-dependent code.
3054 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3057 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3059 * printcmd.c (print_command_1): Move expr variable scope.
3061 2015-03-27 Joel Brobecker <brobecker@adacore.com>
3063 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
3065 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
3067 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
3070 2015-03-26 Joel Brobecker <brobecker@adacore.com>
3072 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
3073 exception raised while parsing the probe arguments.
3074 Force parsing to be done using the C language parser.
3075 * expression.h (parse_expression_with_language): Declare.
3076 * parse.c (parse_expression_with_language): New function.
3078 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
3080 * MAINTAINERS (Write After Approval): Add "Jon Turney".
3082 2015-03-26 Andy Wingo <wingo@igalia.com>
3085 * dwarf2read.c (struct partial_die_info): Add has_const_value
3087 (add_partial_symbol): Don't punt on symbols that have const_value
3089 (read_partial_die): Detect DW_AT_const_value.
3091 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3094 * printcmd.c (print_command_1): Move expr variable scope.
3096 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3099 * printcmd.c (validate_format): Make the parameter cmdname const.
3101 2015-03-26 Don Breazeal <donb@codesourcery.com>
3103 * remote.c (_initialize_remote): Update comment.
3105 2015-03-26 Pedro Alves <palves@redhat.com>
3106 Jon TURNEY <jon.turney@dronecode.org.uk>
3108 * coffread.c (coff_symfile_read): When constructing the name of an
3109 import stub symbol from import symbol for amd64, only skip the
3110 char after _imp_ if the target is underscored (like i386) and the
3111 char is indeed the target's leading char.
3113 2015-03-25 Pedro Alves <palves@redhat.com>
3115 * target.h <to_async>: Replace 'callback' and 'context' parameters
3116 with boolean 'enable' parameter.
3117 (target_async): Replace CALLBACK and CONTEXT parameters with
3118 boolean ENABLE parameter.
3119 * inf-loop.c (inferior_event_handler): Adjust.
3120 * linux-nat.c (linux_nat_attach, linux_nat_resume)
3121 (linux_nat_resume): Adjust.
3122 (async_client_callback, async_client_context): Delete.
3123 (handle_target_event): Call inferior_event_handler directly.
3124 (linux_nat_async): Replace 'callback' and 'context' parameters
3125 with boolean 'enable' parameter. Adjust. Remove references to
3126 async_client_callback and async_client_context.
3127 (linux_nat_close): Adjust.
3128 * record-btrace.c (record_btrace_async): Replace 'callback' and
3129 'context' parameters with boolean 'enable' parameter. Adjust.
3130 (record_btrace_resume): Adjust.
3131 * record-full.c (record_full_async): Replace 'callback' and
3132 'context' parameters with boolean 'enable' parameter. Adjust.
3133 (record_full_resume, record_full_core_resume): Adjust.
3134 * remote.c (struct remote_state) <async_client_callback,
3135 async_client_context>: Delete fields.
3136 (remote_start_remote, extended_remote_attach_1, remote_resume)
3137 (extended_remote_create_inferior): Adjust.
3138 (remote_async_serial_handler): Call inferior_event_handler
3140 (remote_async): Replace 'callback' and 'context' parameters with
3141 boolean 'enable' parameter. Adjust.
3142 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
3144 * target-delegates.c: Regenerate.
3146 2015-03-25 Gary Benson <gbenson@redhat.com>
3147 Pedro Alves <palves@redhat.com>
3149 * target.c (fileio_ft_t): New typedef, define object vector.
3150 (fileio_fhandles): New static variable.
3151 (is_closed_fileio_fh): New macro.
3152 (lowest_closed_fd): New static variable.
3153 (acquire_fileio_fd): New function.
3154 (release_fileio_fd): Likewise.
3155 (fileio_fd_to_fh): New macro.
3156 (target_fileio_open): Wrap the file descriptor on success.
3157 (target_fileio_pwrite): Updated to use wrapped file descriptor.
3158 (target_fileio_pread): Likewise.
3159 (target_fileio_close): Likewise.
3161 2015-03-24 Pedro Alves <palves@redhat.com>
3163 * thread.c (thread_apply_all_command): Take exited threads into
3166 2015-03-24 Pedro Alves <palves@redhat.com>
3168 * infrun.c (resume, proceed): Mention
3169 switch_back_to_stepped_thread, not switch_back_to_stepping.
3171 2015-03-24 Pedro Alves <palves@redhat.com>
3173 * infrun.c (user_visible_resume_ptid): Rewrite going from
3174 most-locked to unlocked instead of the opposite. Move comment ...
3175 * infrun.h (user_visible_resume_ptid): ... here.
3177 2015-03-24 Pedro Alves <palves@redhat.com>
3179 * linux-nat.c (linux_nat_resume): Output debug logs before trying
3180 to resume the event lwp. Use the lwp's ptid instead of the passed
3181 in (maybe wildcard) ptid.
3182 (stop_wait_callback): Tweak debug log output.
3183 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
3185 (linux_nat_filter_event): In debug output, distinguish a
3186 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
3187 before trying to resume the lwp.
3189 2015-03-24 Joel Brobecker <brobecker@adacore.com>
3191 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
3192 pointer indirection.
3193 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
3194 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
3196 2015-03-24 Joel Brobecker <brobecker@adacore.com>
3198 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
3199 Renames DYN_ATTR_DATA_LOCATION.
3200 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
3201 DYN_ATTR_DATA_LOCATION.
3202 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
3203 instead of DYN_ATTR_DATA_LOCATION.
3205 2015-03-24 Pedro Alves <palves@redhat.com>
3207 * breakpoint.c (until_break_command): Adjust call to proceed.
3208 * gdbthread.h (struct thread_control_state) <stepping_command>:
3210 * infcall.c (run_inferior_call): Adjust call to proceed.
3211 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
3212 Adjust calls to proceed.
3213 (set_step_frame): Set the current thread's step_start_function
3215 (step_once): Adjust calls to proceed.
3216 (jump_command, signal_command, until_next_command)
3217 (finish_backward, finish_forward, proceed_after_attach_callback)
3218 (attach_command_post_wait): Adjust calls to proceed.
3219 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
3220 (do_target_resume): New function, factored out from ...
3221 (resume): ... here. Remove 'step' parameter. Instead, check
3222 currently_stepping to determine whether the thread should be
3224 (proceed): Remove 'step' parameter and don't set the thread's
3225 step_start_function here. Adjust call to 'resume'.
3226 (handle_inferior_event): Adjust calls to 'resume'.
3227 (switch_back_to_stepped_thread): Use do_target_resume instead of
3229 (keep_going): Adjust calls to 'resume'.
3230 * infrun.h (proceed): Remove 'step' parameter.
3232 * windows-nat.c (do_initial_windows_stuff): Adjust call to
3234 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
3236 2015-03-24 Pedro Alves <palves@redhat.com>
3238 * gdbthread.h (struct thread_control_state) <stepping_command>:
3240 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
3241 the thread's stepping_command field.
3242 * infrun.c (resume): Check the thread's stepping_command flag to
3243 determine which threads should be resumed. Rename 'entry_step'
3245 (clear_proceed_status_thread): Clear 'stepping_command'.
3246 (schedlock_applies): Change parameter type to struct thread_info
3248 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
3249 (switch_back_to_stepped_thread): Adjust calls to
3250 'schedlock_applies'.
3251 (_initialize_infrun): Adjust "set scheduler-locking step" help.
3253 2015-03-24 Pedro Alves <palves@redhat.com>
3255 * infrun.c (step_start_function): Delete and ...
3256 * gdbthread.h (struct thread_control_state) <step_start_function>:
3257 ... now a field here.
3258 * infrun.c (clear_proceed_status_thread): Clear the thread's
3259 step_start_function.
3260 (proceed, process_event_stop_test, print_stop_event): Adjust.
3262 2015-03-24 Pedro Alves <palves@redhat.com>
3264 * infrun.c (proceed): No longer handle negative step.
3266 2015-03-24 Gary Benson <gbenson@redhat.com>
3268 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
3269 (x86_linux_prepare_to_resume): Likewise.
3270 * x86-linux-nat.c (x86_linux_new_thread):
3271 Moved to nat/x86-linux.c.
3272 (x86_linux_prepare_to_resume): Likewise.
3273 * nat/x86-linux.c (x86_linux_new_thread): New function.
3274 (x86_linux_prepare_to_resume): Likewise.
3276 2015-03-24 Gary Benson <gbenson@redhat.com>
3278 * nat/x86-linux-dregs.h: New file.
3279 * nat/x86-linux-dregs.c: Likewise.
3280 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
3281 (x86-linux-dregs.o): New rule.
3282 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
3283 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3284 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
3285 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
3286 (x86_linux_dr_get): Likewise.
3287 (x86_linux_dr_set): Likewise.
3288 (x86_linux_dr_get_addr): Likewise.
3289 (x86_linux_dr_get_control): Likewise.
3290 (x86_linux_dr_get_status): Likewise.
3291 (update_debug_registers_callback): Likewise.
3292 (x86_linux_dr_set_control): Likewise.
3293 (x86_linux_dr_set_addr): Likewise.
3294 (x86_linux_update_debug_registers): Likewise.
3296 2015-03-24 Gary Benson <gbenson@redhat.com>
3298 * x86-linux-nat.c (x86_linux_update_debug_registers):
3299 New function, factored out from...
3300 (x86_linux_prepare_to_resume): ...this.
3302 2015-03-24 Gary Benson <gbenson@redhat.com>
3304 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
3305 (x86_linux_dr_set): Likewise.
3306 (x86_linux_dr_get_addr): Likewise.
3307 (x86_linux_dr_get_control): Likewise.
3308 (x86_linux_dr_get_status): Likewise.
3309 (update_debug_registers_callback): Likewise.
3310 (x86_linux_dr_set_control): Likewise.
3311 (x86_linux_dr_set_addr): Likewise.
3312 (x86_linux_prepare_to_resume): Likewise.
3313 (x86_linux_new_thread): Likewise.
3315 2015-03-24 Gary Benson <gbenson@redhat.com>
3317 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
3318 (x86_linux_new_thread): Rename argument.
3320 2015-03-24 Gary Benson <gbenson@redhat.com>
3322 * nat/x86-linux.h: New file.
3323 * nat/x86-linux.c: Likewise.
3324 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
3325 (x86-linux.o): New rule.
3326 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
3327 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3328 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
3329 (lwp_set_arch_private_info): New declaration.
3330 (lwp_arch_private_info): Likewise.
3331 * linux-nat.c (lwp_set_arch_private_info): New function.
3332 (lwp_arch_private_info): Likewise.
3333 * x86-linux-nat.c: Include nat/x86-linux.h.
3334 (arch_lwp_info): Removed structure.
3335 (update_debug_registers_callback):
3336 Use lwp_set_debug_registers_changed.
3337 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
3338 and lwp_set_debug_registers_changed.
3339 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
3341 2015-03-24 Gary Benson <gbenson@redhat.com>
3343 * nat/linux-nat.h (ptid_of_lwp): New declaration.
3344 (lwp_is_stopped): Likewise.
3345 (lwp_stop_reason): Likewise.
3346 * linux-nat.c (ptid_of_lwp): New function.
3347 (lwp_is_stopped): Likewise.
3348 (lwp_is_stopped_by_watchpoint): Likewise.
3349 * x86-linux-nat.c (update_debug_registers_callback):
3351 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
3354 2015-03-24 Gary Benson <gbenson@redhat.com>
3356 * linux-nat.h (linux_stop_lwp): Move declaration to...
3357 * nat/linux-nat.h (linux_stop_lwp): New declaration.
3359 2015-03-24 Gary Benson <gbenson@redhat.com>
3361 * linux-nat.h: Include nat/linux-nat.h.
3362 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
3363 * nat/linux-nat.h (struct lwp_info): New forward declaration.
3364 (iterate_over_lwps_ftype): New typedef.
3365 (iterate_over_lwps): New declaration.
3366 * linux-nat.h (iterate_over_lwps): Update comment. Use
3367 iterate_over_lwps_ftype. Update callback return value check.
3369 2015-03-24 Gary Benson <gbenson@redhat.com>
3371 * x86-nat.h (x86_debug_reg_state): Move declaration to...
3372 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
3374 2015-03-24 Gary Benson <gbenson@redhat.com>
3376 * nat/linux-nat.h (current_lwp_ptid): New declaration.
3377 * linux-nat.c (current_lwp_ptid): New function.
3378 * x86-linux-nat.c: Include nat/linux-nat.h.
3379 (x86_linux_dr_get_addr): Use current_lwp_ptid.
3380 (x86_linux_dr_get_control): Likewise.
3381 (x86_linux_dr_get_status): Likewise.
3382 (x86_linux_dr_set_control): Likewise.
3383 (x86_linux_dr_set_addr): Likewise.
3385 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
3387 PR breakpoints/16466
3388 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
3390 2015-03-23 Joel Brobecker <brobecker@adacore.com>
3392 * ser-mingw.c (ser_windows_setparity): Fix indentation.
3393 * ser-unix.c (hardwire_setparity): Likewise.
3395 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
3397 * NEWS: Mention set/show serial parity command.
3398 * monitor.c (monitor_open): Call serial_setparity.
3399 * remote.c (remote_open_1): Likewise.
3400 * ser-base.c (ser_base_serparity): New function.
3401 * ser-base.h (ser_base_setparity): Add declaration.
3402 * ser-go32.c (dos_ops): Set "setparity" field.
3403 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
3405 (ser_windows_setparity): New function.
3406 (hardwire_ops): Add ser_windows_setparity.
3407 (tty_ops): Add NULL for setparity field.
3408 (pipe_ops): Add ser_base_setparity.
3409 (tcp_ops): Likewise.
3410 * ser-pipe.c (pipe_ops): Likewise.
3411 * ser-tcp.c (tcp_ops): Likewise.
3412 * ser-unix.c (hardwire_setparity): Add declaration.
3413 (hardwire_raw): Don't reset PARENB flag.
3414 (hardwire_setparity): New function.
3415 (hardwire_ops): Add hardwire_setparity.
3416 * serial.c (serial_setparity): New function.
3417 (serial_parity): New global.
3418 (parity_none, parity_odd, parity_even, parity_enums, parity):
3420 (set_parity): New function.
3421 (_initialize_serial): Add set/show serial parity commands.
3422 * serial.h (GDBPARITY_NONE): Define.
3423 (GDBPARITY_ODD): Define.
3424 (GDBPARITY_EVEN): Define.
3425 (serial_setparity) Add declaration.
3426 (struct serial_ops): Add setparity field.
3427 * target.h (serial_parity): Add declaration.
3429 2015-03-23 Keith Seitz <keiths@redhat.com>
3431 * linespec.c (linespec_lexer_lex_keyword): Update comment.
3433 2015-03-23 Keith Seitz <keiths@redhat.com>
3435 * breakpoint.c (parse_breakpoint_sals): Use
3436 linespec_lexer_lex_keyword to ascertain if the user specified
3438 * linespec.c [IF_KEYWORD_INDEX]: Define.
3439 (linespec_lexer_lex_keyword): Export.
3440 (struct ls_parser) <keyword_ok>: Remove.
3441 A keyword is only a keyword if not followed by another keyword.
3442 (linespec_lexer_lex_one): Remove keyword_ok handling.
3443 Add comment explaining why the parsing stream is not advanced
3444 when a keyword is seen.
3445 (parse_linespec): Remove parser->keyword_ok.
3446 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
3448 2015-03-23 Keith Seitz <keiths@redhat.com>
3451 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
3452 if we find a static method with DW_AT_vtable_elem_location.
3454 2015-03-21 Eli Zaretskii <eliz@gnu.org>
3456 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
3457 before the second loop, to avoid undefined behavior. Reported by
3458 Anton Blanchard <anton@samba.org>.
3460 2015-03-20 Keven Boell <keven.boell@intel.com>
3462 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
3463 data_location usage to linked list.
3464 (resolve_dynamic_type_internal): Adapt data_location to
3466 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
3467 (copy_type_recursive, copy_type): Add copy of linked list.
3468 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
3469 (struct dynamic_prop_list): New struct.
3470 * dwarf2read.c (set_die_type): Set data_location data.
3472 2015-03-20 Pedro Alves <palves@redhat.com>
3474 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
3475 inner block and make it const.
3476 * machoread.c (get_archive_prefix_len): Make "lparen" const.
3478 2015-03-20 Pedro Alves <palves@redhat.com>
3480 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
3481 * breakpoint.h (set_breakpoint_condition): Update declaration.
3483 2015-03-20 Pedro Alves <palves@redhat.com>
3485 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
3487 2015-03-20 Pedro Alves <palves@redhat.com>
3489 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
3491 2015-03-20 Pedro Alves <palves@redhat.com>
3493 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
3495 2015-03-20 Pedro Alves <palves@redhat.com>
3497 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
3498 (nto_init_solib_absolute_prefix): Likewise.
3500 2015-03-20 Pedro Alves <palves@redhat.com>
3502 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
3503 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
3505 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3507 * config/djgpp/README: Remove gdb.hp.
3509 2015-03-20 Yao Qi <yao.qi@linaro.org>
3511 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
3512 set_gdbarch_cannot_step_breakpoint.
3514 2015-03-19 Pedro Alves <palves@redhat.com>
3516 * linux-nat.c (linux_resume_one_lwp): Rename to ...
3517 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
3518 instead call perror_with_name.
3519 (check_ptrace_stopped_lwp_gone): New function.
3520 (linux_resume_one_lwp): Reimplement as wrapper around
3521 linux_resume_one_lwp_throw that swallows errors if the LWP is
3523 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
3524 swallows errors if the LWP is gone. Use
3525 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
3527 2015-03-19 Pedro Alves <palves@redhat.com>
3529 * linux-nat.c (status_callback): Return early if the LWP has no
3532 2015-03-19 Pedro Alves <palves@redhat.com>
3534 * linux-nat.c (select_event_lwp_callback): Update comment to no
3535 longer mention SIGTRAP.
3537 2015-03-18 Tristan Gingold <gingold@adacore.com>
3539 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
3540 redirection code to ...
3541 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
3542 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
3544 2015-03-18 Gary Benson <gbenson@redhat.com>
3546 (remote_protocol_features): Remove the "vFile:fstat" feature.
3547 (remote_hostio_fstat): Probe for "vFile:fstat" support.
3549 2015-03-11 Yao Qi <yao.qi@linaro.org>
3552 * aarch64-linux-tdep.c: Include xml-syscall.h
3553 (aarch64_linux_get_syscall_number): New function.
3554 (aarch64_linux_init_abi): Call
3555 set_gdbarch_get_syscall_number.
3556 * syscalls/aarch64-linux.xml: New file.
3558 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
3560 * ser-base.h (ser_base_setstopbits): Change second argument name
3561 from "rate" to "num".
3563 2015-03-17 Gary Benson <gbenson@redhat.com>
3564 Luke Allardyce <lukeallardyce@gmail.com>
3567 * common/common-remote-fileio.h (sys/stat.h): New include.
3568 (stuct stat): Remove forward declaration.
3570 2015-03-16 John Baldwin <jhb@FreeBSD.org>
3572 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
3573 before writing core register notes.
3575 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
3576 Pedro Alves <palves@redhat.com>
3578 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
3579 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
3580 (tgoto): Wrap with extern "C".
3582 2015-03-16 Pedro Alves <palves@redhat.com>
3583 Yuanhui Zhang <asmwarrior@gmail.com>
3585 * stub-termcap.c (tputs): Change prototype.
3587 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
3588 Pedro Alves <palves@redhat.com>
3590 * windows-nat.c (struct thread_info_struct): Rename to ...
3591 (struct windows_thread_info_struct): ... this.
3592 (thread_info): Rename to ...
3593 (windows_thread_info): ... this.
3596 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3597 Pedro Alves <palves@redhat.com>
3599 * NEWS: New Removed targets and native configurations.
3601 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3604 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
3605 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
3606 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
3607 ia64-hpux-tdep.h, solib-ia64-hpux.h.
3608 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
3609 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
3610 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
3612 * config/ia64/hpux.mh: Remove file.
3613 * config/pa/hpux.mh: Remove file.
3614 * configure: Rebuilt.
3615 * configure.ac (dlgetmodinfo, somread.o): Remove.
3616 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
3617 (ia64-*-hpux*): Remove its float format exception.
3618 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
3619 * hppa-hpux-nat.c: Remove file.
3620 * hppa-hpux-tdep.c: Remove file.
3621 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
3622 Move them here from hppa-tdep.h
3623 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
3624 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
3625 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
3626 Move them to hppa-tdep.c.
3627 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
3629 * ia64-hpux-nat.c: Remove file.
3630 * ia64-hpux-tdep.c: Remove file.
3631 * ia64-hpux-tdep.h: Remove file.
3632 * inf-ttrace.c: Remove file.
3633 * inf-ttrace.h: Remove file.
3634 * solib-ia64-hpux.c: Remove file.
3635 * solib-ia64-hpux.h: Remove file.
3636 * solib-pa64.c: Remove file.
3637 * solib-pa64.h: Remove file.
3638 * solib-som.c: Remove file.
3639 * solib-som.h: Remove file.
3640 * somread.c: Remove file.
3642 2015-03-13 John Baldwin <jhb@FreeBSD.org>
3644 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
3645 * config.in: Regenerate.
3646 * configure: Regenerate.
3647 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
3649 (fbsd_find_memory_regions): Use kinfo_getvmmap to
3650 enumerate memory regions if present.
3652 2015-03-13 John Baldwin <jhb@FreeBSD.org>
3654 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
3655 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
3657 (i386fbsd_sigtramp_p): Likewise.
3659 2015-03-12 John Baldwin <jhb@FreeBSD.org>
3661 * MAINTAINERS (Write After Approval): Add John Baldwin.
3663 2015-03-12 Gary Benson <gbenson@redhat.com>
3665 * solib.c (_initialize_solib): Make "set/show sysroot" use
3666 add_setshow_optional_filename_cmd so it can be restored to
3667 empty after being set.
3669 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
3671 * Makefile.in (SFILES): New source break-catch-syscall.c.
3672 (COMMON_OBS): New object break-catch-syscall.o.
3673 * break-catch-syscall.c: New file.
3674 * breakpoint.c: Remove inclusion of "xml-syscall.h".
3675 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
3676 (struct syscall_catchpoint): Likewise.
3677 (dtor_catch_syscall): Likewise.
3678 (catch_syscall_inferior_data): Likewise.
3679 (struct catch_syscall_inferior_data): Likewise.
3680 (get_catch_syscall_inferior_data): Likewise.
3681 (catch_syscall_inferior_data_cleanup): Likewise.
3682 (insert_catch_syscall): Likewise.
3683 (remove_catch_syscall): Likewise.
3684 (breakpoint_hit_catch_syscall): Likewise.
3685 (print_it_catch_syscall): Likewise.
3686 (print_one_catch_syscall): Likewise.
3687 (print_mention_catch_syscall): Likewise.
3688 (print_recreate_catch_syscall): Likewise.
3689 (catch_syscall_breakpoint_ops): Likewise.
3690 (syscall_catchpoint_p): Likewise.
3691 (create_syscall_event_catchpoint): Likewise.
3692 (catch_syscall_split_args): Likewise.
3693 (catch_syscall_command_1): Likewise.
3694 (is_syscall_catchpoint_enabled): Likewise.
3695 (catch_syscall_enabled): Likewise.
3696 (catching_syscall_number): Likewise.
3697 (catch_syscall_completer): Likewise.
3698 (clear_syscall_counts): Likewise.
3699 (initialize_breakpoint_ops): Move initialization of syscall
3700 catchpoints to break-catch-syscall.c.
3701 (_initialize_breakpoint): Move code related to syscall catchpoints
3702 to break-catch-syscall.c.
3704 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
3706 * breakpoint.c (breakpoint_find_if): New function.
3707 * breakpoint.h (breakpoint_find_if): New prototype.
3709 2015-03-11 Gary Benson <gbenson@redhat.com>
3711 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
3712 * remote-fileio.c (remote_fileio_to_host_uint): New function.
3713 (remote_fileio_to_host_ulong): Likewise.
3714 (remote_fileio_to_host_mode): Likewise.
3715 (remote_fileio_to_host_time): Likewise.
3716 (remote_fileio_to_host_stat): Likewise.
3717 * remote.c (PACKET_vFile_fstat): New enum value.
3718 (remote_protocol_features): Register the "vFile:fstat" feature.
3719 (remote_hostio_fstat): New function.
3720 (remote_bfd_iovec_stat): Use the above.
3721 (_initialize_remote): Register new "set/show remote
3722 hostio-fstat-packet" command.
3723 * symfile.c (separate_debug_file_exists): Update comment.
3724 * NEWS: Announce new vFile:fstat packet.
3726 2015-03-11 Gary Benson <gbenson@redhat.com>
3728 * common/common-remote-fileio.h: New file.
3729 * common/common-remote-fileio.c: Likewise.
3730 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
3731 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
3732 (COMMON_OBS): Add common-remote-fileio.o.
3733 (common-remote-fileio.o): New rule.
3734 * remote-fileio.h (common-remote-fileio.h): New include.
3735 * remote-fileio.c (gdb/fileio.h): Do not include.
3736 (remote_fileio_to_be): Moved to common-remote-fileio.h.
3737 (remote_fileio_to_fio_uint): Likewise.
3738 (remote_fileio_to_fio_time): Likewise.
3739 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
3740 (remote_fileio_to_fio_mode): Likewise.
3741 (remote_fileio_to_fio_ulong): Likewise.
3742 (remote_fileio_to_fio_stat): Likewise.
3744 2015-03-11 Andy Wingo <wingo@igalia.com>
3746 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
3747 we were checking the cached type, not the cached dynamic type.
3749 2015-03-11 Andy Wingo <wingo@igalia.com>
3751 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
3752 other strings, as these are on the GC'd heap, and will be
3753 collected along with the smob.
3755 2015-03-11 Andy Wingo <wingo@igalia.com>
3757 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
3758 (objfile_functions): Bind gdbscm_objfile_progspace to
3760 * guile/lib/gdb.scm: Add objfile-progspace to exports.
3762 2015-03-11 Andy Wingo <wingo@igalia.com>
3764 * guile/guile.c (_initialize_guile): Disable automatic
3765 finalization, if Guile offers us that possibility.
3766 * guile/guile.c (call_initialize_gdb_module):
3767 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
3768 finalizers in appropriate places.
3769 * configure.ac (AC_TRY_LIBGUILE): Add a check for
3770 scm_set_automatic_finalization_enabled.
3771 * configure: Regenerated.
3773 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
3775 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
3778 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
3780 * s390-linux-nat.c (struct arch_lwp_info): New.
3781 (s390_fix_watch_points): Rename to...
3782 (s390_prepare_to_resume): ...this. Skip the PER info update
3783 unless the watch points have changed.
3784 (s390_refresh_per_info, s390_new_thread): New functions.
3785 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
3786 s390_fix_watch_points.
3787 (s390_remove_watchpoint): Likewise.
3788 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
3789 Register s390_prepare_to_resume.
3791 2015-03-09 Pedro Alves <palves@redhat.com>
3794 2015-03-07 Pedro Alves <palves@redhat.com>
3795 * common/gdb_socket.h: New file.
3796 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
3798 (net_open): Use union gdb_sockaddr_u.
3800 2015-03-07 Pedro Alves <palves@redhat.com>
3802 * configure.ac (build_warnings): Move -Wmissing-prototypes
3803 -Wdeclaration-after-statement -Wmissing-parameter-type
3804 -Wold-style-declaration -Wold-style-definition to the C-specific
3806 * configure: Regenerate.
3808 2015-03-07 Pedro Alves <palves@redhat.com>
3810 * common/gdb_socket.h: New file.
3811 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
3813 (net_open): Use union gdb_sockaddr_u.
3815 2015-03-07 Pedro Alves <palves@redhat.com>
3817 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
3818 (exceptions_state_mc_action_iter)
3819 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
3821 [__cplusplus] (try_scope_depth): New global.
3822 [__cplusplus] (exception_try_scope_entry)
3823 (exception_try_scope_exit, gdb_exception_sliced_copy)
3824 (exception_rethrow): New functions.
3825 (throw_exception): In C++ mode, throw
3826 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
3827 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
3828 (throw_it): In C++ mode, use try_scope_depth.
3829 * common/common-exceptions.h [!__cplusplus]
3830 (exceptions_state_mc_action_iter)
3831 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
3833 [__cplusplus] (exception_try_scope_entry)
3834 (exception_try_scope_exit, exception_rethrow): Declare.
3835 [__cplusplus] (struct exception_try_scope): New struct.
3836 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
3838 (struct gdb_exception_RETURN_MASK_ALL)
3839 (struct gdb_exception_RETURN_MASK_ERROR)
3840 (struct gdb_exception_RETURN_MASK_QUIT): New types.
3842 2015-03-07 Pedro Alves <palves@redhat.com>
3844 * main.c (handle_command_errors): Remove volatile qualifier from
3847 2015-03-07 Pedro Alves <palves@redhat.com>
3849 * breakpoint.c (save_breakpoints): Adjust to avoid code between
3851 * gdbtypes.c (safe_parse_type): Remove empty line.
3852 (types_deeply_equal):
3853 * guile/scm-frame.c (gdbscm_frame_name):
3854 * linux-thread-db.c (find_new_threads_once):
3855 * python/py-breakpoint.c (bppy_get_commands):
3856 * record-btrace.c (record_btrace_insert_breakpoint)
3857 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
3858 (record_btrace_start_replaying): Adjust to avoid code between TRY
3861 2015-03-07 Pedro Alves <palves@redhat.com>
3863 * common/common-exceptions.c (struct catcher) <exception>: No
3864 longer a pointer to volatile exception. Now an exception value.
3865 <mask>: Delete field.
3866 (exceptions_state_mc_init): Remove all parameters. Adjust.
3867 (exceptions_state_mc): No longer pop the catcher here.
3868 (exceptions_state_mc_catch): New function.
3869 (throw_exception): Adjust.
3870 * common/common-exceptions.h (exceptions_state_mc_init): Remove
3872 (exceptions_state_mc_catch): Declare.
3873 (TRY_CATCH): Rename to ...
3874 (TRY): ... this. Remove EXCEPTION and MASK parameters.
3875 (CATCH, END_CATCH): New.
3876 All callers adjusted.
3878 2015-03-07 Tom Tromey <tromey@redhat.com>
3880 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
3882 2015-03-07 Pedro Alves <palves@redhat.com>
3884 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
3885 (amd64_epilogue_frame_cache): Normal exception handling code.
3886 * break-catch-throw.c (check_status_exception_catchpoint)
3887 (re_set_exception_catchpoint): Ditto.
3888 * cli/cli-interp.c (safe_execute_command):
3889 * cli/cli-script.c (script_from_file): Ditto.
3890 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
3892 * compile/compile-object-run.c (compile_object_run): Ditto.
3893 * cp-abi.c (baseclass_offset): Ditto.
3894 * cp-valprint.c (cp_print_value): Ditto.
3895 * exceptions.c (catch_exceptions_with_msg):
3896 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
3897 * frame.c (get_frame_address_in_block_if_available): Ditto.
3898 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
3899 (i386_sigtramp_frame_cache): Ditto.
3900 * infcmd.c (post_create_inferior): Ditto.
3901 * linespec.c (parse_linespec, find_linespec_symbols):
3902 * p-valprint.c (pascal_object_print_value): Ditto.
3903 * parse.c (parse_expression_for_completion): Ditto.
3904 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
3905 * remote.c (remote_get_noisy_reply): Ditto.
3906 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
3907 * solib-svr4.c (solib_svr4_r_map): Ditto.
3909 2015-03-06 Gary Benson <gbenson@redhat.com>
3911 * common/common-utils.h (startswith): New inline function.
3912 All places where this logic was used updated to use the above.
3914 2015-03-05 Pedro Alves <palves@redhat.com>
3917 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
3918 after reading the breakpoint's shadow memory.
3920 2015-03-05 Mark Kettenis <kettenis@gnu.org>
3922 * hppabsd-nat.c: Remove file.
3923 * hppaobsd-nat.c: New file.
3924 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
3926 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
3929 2015-03-04 Pedro Alves <palves@redhat.com>
3931 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
3932 (target_decr_pc_after_break): Delete declaration.
3933 * target.c (default_target_decr_pc_after_break)
3934 (target_decr_pc_after_break): Delete.
3935 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
3936 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
3937 * linux-thread-db.c (check_event): Likewise.
3938 * infrun.c (adjust_pc_after_break): Likewise.
3939 * darwin-nat.c (cancel_breakpoint): Likewise.
3940 * aix-thread.c (aix_thread_wait): Likewise.
3941 * target-delegates.c: Regenerate.
3943 2015-03-04 Pedro Alves <palves@redhat.com>
3945 * linux-nat.c (save_sigtrap): Check for breakpoints before
3946 checking watchpoints.
3947 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
3948 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3949 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
3950 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
3951 (linux_nat_stopped_by_sw_breakpoint)
3952 (linux_nat_supports_stopped_by_sw_breakpoint)
3953 (linux_nat_stopped_by_hw_breakpoint)
3954 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
3955 (linux_nat_wait_1): Don't re-increment the PC if relying on
3956 SIGTRAP's siginfo->si_code.
3957 (linux_nat_add_target): Install new target methods.
3958 * linux-thread-db.c (check_event): Don't account for breakpoint PC
3959 offset if the target already adjusted the PC.
3960 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
3961 (GDB_ARCH_TRAP_BRKPT): New.
3962 (TRAP_HWBKPT): Define if not already defined.
3964 2015-03-04 Pedro Alves <palves@redhat.com>
3966 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
3967 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
3969 <stop_reason>: New field.
3970 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
3971 (packet_set_cmd_state): New function.
3972 (remote_protocol_features): Register the "swbreak" and "hwbreak"
3974 (remote_query_supported): If not disabled with the corresponding
3975 "set remote foo-packet" command, report support for the swbreak
3976 and hwbreak features.
3977 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
3979 <stop_reason>: New field.
3980 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
3981 (remote_wait_as): Adjust.
3982 (remote_stopped_by_sw_breakpoint)
3983 (remote_supports_stopped_by_sw_breakpoint)
3984 (remote_stopped_by_hw_breakpoint)
3985 (remote_supports_stopped_by_hw_breakpoint): New functions.
3986 (remote_stopped_by_watchpoint): New function.
3987 (init_remote_ops): Install them.
3988 (_initialize_remote): Register new "set/show remote
3989 swbreak-feature-packet" and "set/show remote
3990 swbreak-feature-packet" commands.
3992 2015-03-04 Pedro Alves <palves@redhat.com>
3994 * btrace.h: Include target/waitstatus.h.
3995 (struct btrace_thread_info) <stop_reason>: New field.
3996 * record-btrace.c (record_btrace_step_thread): Use
3997 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
3998 (record_btrace_decr_pc_after_break): Delete.
3999 (record_btrace_stopped_by_sw_breakpoint)
4000 (record_btrace_supports_stopped_by_sw_breakpoint)
4001 (record_btrace_stopped_by_hw_breakpoint)
4002 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
4003 (init_record_btrace_ops): Install them.
4004 * record-full.c (record_full_hw_watchpoint): Delete and replace
4006 (record_full_stop_reason): ... this throughout.
4007 (record_full_exec_insn): Adjust.
4008 (record_full_wait_1): Adjust. No longer re-increment the PC.
4009 (record_full_wait_1): Adjust. Use
4010 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
4011 (record_full_stopped_by_watchpoint): Adjust.
4012 (record_full_stopped_by_sw_breakpoint)
4013 (record_full_supports_stopped_by_sw_breakpoint)
4014 (record_full_supports_stopped_by_sw_breakpoint)
4015 (record_full_stopped_by_hw_breakpoint)
4016 (record_full_supports_stopped_by_hw_breakpoint): New functions.
4017 (init_record_full_ops, init_record_full_core_ops): Install them.
4018 * record.c (record_check_stopped_by_breakpoint): New function.
4019 * record.h: Include target/waitstatus.h.
4020 (record_check_stopped_by_breakpoint): New declaration.
4022 2015-03-04 Pedro Alves <palves@redhat.com>
4024 enum lwp_stop_reason -> enum target_stop_reason
4025 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
4026 (linux_nat_stopped_by_watchpoint, status_callback)
4027 (linux_nat_wait_1): Adjust.
4028 * linux-nat.h (enum lwp_stop_reason): Delete.
4029 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
4030 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
4031 * target/waitstatus.h (enum target_stop_reason): New.
4033 2015-03-04 Pedro Alves <palves@redhat.com>
4035 * breakpoint.c (need_moribund_for_location_type): New function.
4036 (bpstat_stop_status): Don't skipping checking moribund locations
4037 of breakpoint types which the target tell caused a stop.
4038 (program_breakpoint_here_p): New function, factored out from ...
4039 (bp_loc_is_permanent): ... this.
4040 (update_global_location_list): Don't create a moribund location if
4041 the target supports reporting stops of the type of the removed
4043 * breakpoint.h (program_breakpoint_here_p): New declaration.
4044 * infrun.c (adjust_pc_after_break): Return early if the target has
4045 already adjusted the PC. Add comments.
4046 (handle_signal_stop): If nothing explains a signal, and the target
4047 tells us the stop was caused by a software breakpoint, check if
4048 there's a breakpoint instruction in the memory. If so, adjust the
4049 PC before presenting the stop to the user. Otherwise, ignore the
4050 trap. If nothing explains a signal, and the target tells us the
4051 stop was caused by a hardware breakpoint, ignore the trap.
4052 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
4053 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
4054 to_supports_stopped_by_hw_breakpoint>: New fields.
4055 (target_stopped_by_sw_breakpoint)
4056 (target_supports_stopped_by_sw_breakpoint)
4057 (target_stopped_by_hw_breakpoint)
4058 (target_supports_stopped_by_hw_breakpoint): Define.
4059 * target-delegates.c: Regenerate.
4061 2015-03-04 Pedro Alves <palves@redhat.com>
4063 * infrun.c (follow_fork_inferior): Use the whole of the
4064 inferior_ptid and pending_follow.related_pid ptids instead of
4065 building ptids from the process components. Adjust verbose output
4066 to use target_pid_to_str.
4067 * linux-nat.c (linux_child_follow_fork): Use the whole of the
4068 inferior_ptid and pending_follow.related_pid ptids instead of
4069 building ptids from the process components.
4071 2015-03-04 Mark Kettenis <kettenis@gnu.org>
4073 * inf-ptrace.c [PT_GET_PROCESS_STATE]
4074 (inf_ptrace_insert_fork_catchpoint): New function.
4075 (inf_ptrace_remove_fork_catchpoint): New function.
4076 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
4078 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
4080 * s390-linux-tdep.c (s390_register_name): Return empty string
4081 instead of NULL for registers that shouldn't be visible.
4083 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
4085 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
4086 XML file for 64-bit targets.
4088 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
4090 * target.h (find_default_create_inferior): Remove declaration.
4091 (find_default_attach): Likewise.
4093 2015-03-03 Pedro Alves <palves@redhat.com>
4095 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
4096 Use ptid_get_pid to get the overall process id when resuming all
4099 2015-03-03 Pedro Alves <palves@redhat.com>
4101 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
4102 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
4103 * inf-ptrace.c (get_ptrace_pid): New function.
4104 (inf_ptrace_resume): Use it.
4105 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
4108 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
4110 * nat/linux-btrace.c: Include sys/utsname.h.
4111 (linux_determine_kernel_ptr_bits): New.
4112 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
4113 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
4116 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
4118 * btrace.c (ftrace_update_function): Treat return as tailcall for
4119 "_dl_runtime_resolve".
4121 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
4123 * btrace.h (btrace_function) <lbegin, lend>: Remove.
4124 * btrace.c (ftrace_debug): Do not print the line range.
4125 (ftrace_skip_file, ftrace_update_lines): Remove.
4126 (ftrace_new_function): Remove lbegin and lend initialization.
4127 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
4128 * record-btrace.c (btrace_compute_src_line_range): New.
4129 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
4131 2015-03-02 Pedro Alves <palves@redhat.com>
4133 * infrun.c (follow_exec): Delete all threads of the process except
4134 the event thread. Extended comments.
4136 2015-03-02 Joel Brobecker <brobecker@adacore.com>
4138 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
4140 2015-03-02 Joel Brobecker <brobecker@adacore.com>
4142 * utils.h: Remove <stdbool.h> #include.
4143 (producer_is_gcc): Change return type to "int".
4144 * utils.c (producer_is_gcc): Change return type to int.
4145 Return 1 instead of true, and 0 instead of false.
4146 Adjust function documentation accordingly.
4148 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
4150 * s390-linux-nat.c (have_regset_vxrs): New static variable.
4151 (s390_linux_fetch_inferior_registers): Handle vector registers, if
4153 (s390_linux_store_inferior_registers): Likewise.
4154 (s390_get_hwcap): Remove function. Embed its logic...
4155 (s390_read_description): ...here. Yield a target description with
4156 vector registers if applicable.
4157 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
4158 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
4159 "features/s390x-tevx-linux64.c".
4160 (struct gdbarch_tdep) <v0_full_regnum>: New field.
4161 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
4162 for "GNU/Linux-specific registers".
4163 (s390_dwarf_reg_r0l): New enum value.
4164 (s390_dwarf_reg_to_regnum): Support vector registers.
4165 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
4166 of GPR lower halves.
4167 (regnum_is_vxr_full): New function.
4168 (s390_register_name): New function.
4169 (s390_pseudo_register_name): Handle v0-v15, which are composed of
4170 f0-f15 and v0l-v15l.
4171 (s390_pseudo_register_type): Likewise.
4172 (s390_pseudo_register_read): Likewise.
4173 (s390_pseudo_register_write): Likewise.
4174 (s390_value_from_register): Account for the fact that values are
4175 placed left-justified in vector registers.
4176 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
4177 the vector reggroup and omit them from the general reggroup.
4178 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
4179 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
4180 (s390_iterate_over_regset_sections): Add iterations for the two
4182 (s390_core_read_description): Yield a target description with
4183 vector registers if applicable.
4184 (s390_gdbarch_init): Handle target descriptions with vector
4185 registers. Add "register_name" gdbarch method.
4186 (_initialize_s390_tdep): Call new tdesc initialization functions.
4187 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
4188 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
4189 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
4190 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
4191 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
4192 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
4193 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
4194 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
4195 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
4196 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
4197 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
4198 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
4199 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
4200 (S390_NUM_REGS): Adjust value.
4201 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
4202 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
4203 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
4204 * NEWS: Announce S/390 vector register support.
4206 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
4208 * features/s390-tevx-linux64.xml: New file.
4209 * features/s390-vx-linux64.xml: New file.
4210 * features/s390-vx.xml: New file.
4211 * features/s390x-tevx-linux64.xml: New file.
4212 * features/s390x-vx-linux64.xml: New file.
4213 * features/Makefile (WHICH): Add s390-vx-linux64,
4214 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
4215 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
4216 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
4218 * features/s390-tevx-linux64.c: New generated file.
4219 * features/s390-vx-linux64.c: Likewise.
4220 * features/s390x-tevx-linux64.c: Likewise.
4221 * features/s390x-vx-linux64.c: Likewise.
4222 * regformats/s390-tevx-linux64.dat: Likewise.
4223 * regformats/s390-vx-linux64.dat: Likewise.
4224 * regformats/s390x-tevx-linux64.dat: Likewise.
4225 * regformats/s390x-vx-linux64.dat: Likewise.
4227 2015-02-28 Doug Evans <xdje42@gmail.com>
4229 * symtab.h (struct symtab) <next>: Fix comment.
4231 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
4233 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
4236 2015-02-27 Pedro Alves <palves@redhat.com>
4238 * dtrace-probe.c (dtrace_probe_ops): Make extern.
4240 2015-02-27 Pedro Alves <palves@redhat.com>
4242 * common/common-exceptions.h (exception_none): Declare.
4243 * common/common-exceptions.c (exception_none): Moved from
4245 (exceptions_state_mc_init): Use exception_none.
4246 * exceptions.c (exception_none): Move to
4247 common/common-exceptions.c.
4248 * exceptions.h (exception_none): Move to
4249 common/common-exceptions.h.
4251 2015-02-27 Pedro Alves <palves@redhat.com>
4253 * main.c (catch_command_errors, catch_command_errors_const):
4254 Remove 'mask' argument. Adjust.
4255 (captured_main): Adjust callers.
4257 2015-02-27 Pedro Alves <palves@redhat.com>
4259 * python/python-internal.h: Include "extension-priv.h".
4261 2015-02-27 Pedro Alves <palves@redhat.com>
4263 * breakpoint.h (enum print_stop_action): Move further up in the
4266 2015-02-27 Pedro Alves <palves@redhat.com>
4268 * gdbarch.sh: Include regcache.h.
4269 * gdbarch.h: Regenerate.
4271 2015-02-27 Pedro Alves <palves@redhat.com>
4273 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
4274 Remove duplicate const.
4275 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
4278 2015-02-27 Pedro Alves <palves@redhat.com>
4280 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
4281 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
4282 * features/feature_to_c.sh: Tag the generated xml_builtin array
4283 with extern const in C++ mode.
4285 2015-02-27 Tom Tromey <tromey@redhat.com>
4287 * minidebug.c (struct lzma_stream): Rename to ...
4288 (struct gdb_lzma_stream): ... this.
4289 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
4291 2015-02-27 Pedro Alves <palves@redhat.com>
4293 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
4295 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
4296 (mi_cmd_stack_list_variables): Use it.
4298 2015-02-27 Pedro Alves <palves@redhat.com>
4300 * x86-linux-nat.c (u_debugreg_offset): New function.
4301 (x86_linux_dr_get, x86_linux_dr_set): Use it.
4303 2015-02-27 Pedro Alves <palves@redhat.com>
4305 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
4307 Include break-common.h.
4309 2015-02-27 Tom Tromey <tromey@redhat.com>
4310 Pedro Alves <palves@redhat.com>
4312 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
4313 local used to iterate over enums.
4314 * completer.c (signal_completer): Likewise.
4315 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
4316 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
4317 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
4318 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
4319 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
4320 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
4321 * tui-wingeneral.c (tui_refresh_all): Likewise.
4323 2015-02-27 Pedro Alves <palves@redhat.com>
4325 * target.h: Include "infrun.h".
4327 2015-02-27 Pedro Alves <palves@redhat.com>
4329 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
4331 2015-02-27 Pedro Alves <palves@redhat.com>
4333 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
4335 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
4337 2015-02-27 Pedro Alves <palves@redhat.com>
4339 * cli-out.c (_rl_erase_entire_line): Move declaration out of
4340 cli_mld_erase_entire_line, and make it extern "C".
4341 * common/common-defs.h (EXTERN_C): New.
4342 * completer.c (_rl_completion_prefix_display_length)
4343 (_rl_print_completions_horizontally, QSFUNC): Move declarations
4344 out of gdb_display_match_list_1.
4345 (_rl_qsort_string_compare): Move declaration out of
4346 gdb_display_match_list_1, and make it extern "C".
4347 * defs.h (re_comp): Use EXTERN_C.
4348 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
4349 and make it extern "C".
4350 (monstartup): Move declaration out of maintenance_set_profile_cmd,
4351 and make it extern "C".
4352 (main): Move declaration out of maintenance_set_profile_cmd.
4353 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
4356 2015-02-27 Pedro Alves <palves@redhat.com>
4358 * python/python.c (GdbMethods): Rename to ...
4359 (python_GdbMethods): ... this and make extern.
4360 (GdbModuleDef): Rename to ...
4361 (python_GdbModuleDef): ... this and make extern.
4363 2015-02-27 Pedro Alves <palves@redhat.com>
4365 * record-btrace.c (set_record_btrace_cmdlist)
4366 (show_record_btrace_cmdlist): Remove redefinitions.
4368 2015-02-27 Tom Tromey <tromey@redhat.com>
4369 Pedro Alves <palves@redhat.com>
4371 * dwarf2-frame.c (enum cfa_how_kind, struct
4372 dwarf2_frame_state_reg_info): Move out of struct
4374 * dwarf2read.c (struct tu_stats): Move out of struct
4376 (struct file_entry): Move out of struct line_header.
4377 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
4378 typedef_field_list): Move out of struct field_info.
4379 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
4380 Move out of struct dynamic_prop.
4381 (union type_owner, union field_location, struct field, struct
4382 range_bounds, union type_specific): Move out of struct main_type.
4383 (struct fn_fieldlist, struct fn_field, struct typedef_field)
4384 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
4385 (struct call_site_target, union call_site_parameter_u, struct
4386 call_site_parameter): Move out of struct call_site.
4387 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
4389 (enum srcdest_kind): Move out of struct srcdest.
4390 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
4391 * prologue-value.h (enum prologue_value_kind): Move out of struct
4393 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
4395 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
4396 out of struct field_info.
4397 * symfile.h (struct other_sections): Move out of struct
4399 * symtab.c (struct symbol_cache_slot): Move out struct
4401 * target-descriptions.c (enum tdesc_type_kind): Move out of
4402 typedef struct tdesc_type.
4403 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
4404 struct tui_line_or_address.
4405 * value.c (enum internalvar_kind, union internalvar_data): Move
4406 out of struct internalvar.
4407 * xtensa-tdep.h (struct ctype_cache): Move out of struct
4410 2015-02-27 Tom Tromey <tromey@redhat.com>
4411 Pedro Alves <palves@redhat.com>
4413 Rename symbols whose names are reserved C++ keywords throughout.
4415 2015-02-27 Pedro Alves <palves@redhat.com>
4417 * Makefile.in (COMPILER): New, get it from autoconf.
4418 (COMPILE.pre, CC_LD): Use COMPILER.
4419 (CXX): Get from autoconf instead.
4420 (CXX_FOR_TARGET): Default to g++ instead of gcc.
4421 * acinclude.m4: Include build-with-cxx.m4.
4422 * build-with-cxx.m4: New file.
4423 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
4424 Disable -Werror by default if building in C++ mode.
4425 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
4426 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
4427 Run supported-warning-flags tests with the C++ compiler.
4428 Save/restore CXXFLAGS too.
4429 * configure: Regenerate.
4431 2015-02-27 Pedro Alves <palves@redhat.com>
4433 * libiberty.m4: New file.
4434 * acinclude.m4: Include libiberty.m4.
4435 * configure.ac: Call libiberty_INIT.
4436 * config.in, configure: Regenerate.
4438 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
4440 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
4441 31-bit targets, but 64-bit targets as well.
4442 (s390_gnu_triplet_regexp): New function.
4443 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
4444 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
4447 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
4449 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
4450 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
4451 from CONTEXT_DEBUGGER.
4453 2015-02-26 Doug Evans <dje@google.com>
4455 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
4457 (set_type_vptr_fieldno): Ditto.
4458 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
4459 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
4461 2015-02-26 Pedro Alves <palves@redhat.com>
4463 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
4464 * complaints.c (vcomplaint): Pass argument FMT directly to
4465 printf-like functions instead of complaint->fmt.
4466 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
4467 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
4468 * compile/compile-loc2c.c (pushf, unary, binary): Add
4470 (do_compile_dwarf_expr_to_c): Pass string literal as format string
4472 (BINARY): Pass string literal as format string to 'binary'.
4473 * compile/compile-object-load.c (link_callbacks_einfo): Add
4475 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
4477 2015-02-26 Pedro Alves <palves@redhat.com>
4479 * windows-termcap.c: Rename to ...
4480 * stub-termcap.c: ... this. Adjust header line.
4481 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
4483 * configure: Regenerate.
4484 * configure.ac: Refer to stub-termcap.o instead of
4486 * gdb_curses.h: Mention stub-termcap.c instead of
4489 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4491 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
4492 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
4494 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
4496 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
4498 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4500 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
4501 bfd_canonicalize_symtab.
4503 2015-02-25 John Baldwin <jhb@FreeBSD.org>
4505 * amd64fbsd-nat.c: Include sys/user.h.
4506 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
4507 instead of KERN_PS_STRINGS to locate the signal trampoline.
4508 * i386fbsd-nat.c: Include sys/user.h.
4509 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
4510 instead of KERN_PS_STRINGS to locate the signal trampoline.
4511 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
4512 (amd64fbsd_sigtramp_p): New.
4513 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
4514 longer set default values.
4515 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
4516 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
4517 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
4518 (i386fbsd_freebsd4_sigtramp_start)
4519 (i386fbsd_freebsd4_sigtramp_middle)
4520 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
4521 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
4522 (i386fbsd_sigtramp_p): New.
4523 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
4524 longer set default values.
4525 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
4527 2015-02-25 John Baldwin <jhb@freebsd.org>
4529 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
4530 get_frame_register instead of frame_unwind_register_unsigned.
4532 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4535 * compile/compile-c-support.c (c_compute_program): Change // comment.
4536 * compile/compile-object-load.c (setup_sections): Change // comment.
4538 2015-02-26 Joel Brobecker <brobecker@adacore.com>
4541 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
4543 2015-02-23 Pedro Alves <palves@redhat.com>
4545 * remote.c (skip_to_semicolon): New function.
4546 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
4547 special case the stop reasons that look like hex numbers
4548 upfront. Instead handle real register numbers after matching
4549 all the known stop reasons.
4551 2015-02-21 Doug Evans <dje@google.com>
4553 PR c++/17976, symtab/17821
4554 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
4555 is_in_anonymous. All callers updated.
4556 (find_symbol_in_baseclass): Ditto.
4557 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
4558 for symbols in an anonymous namespace.
4559 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
4560 DW_AT_name directly.
4561 (dwarf2_name): Convert missing namespace name to
4562 CP_ANONYMOUS_NAMESPACE_STR.
4564 2015-02-20 Pedro Alves <palves@redhat.com>
4566 * linux-nat.c (linux_handle_extended_wait): Call
4567 thread_db_notice_clone whenever a new clone LWP is detected.
4568 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
4570 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
4571 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
4572 (linux_unstop_all_lwps): Declare.
4573 * linux-thread-db.c (struct thread_get_info_inout): Delete.
4574 (thread_get_info_callback): Delete.
4575 (thread_from_lwp): Use td_thr_get_info and record_thread.
4576 (thread_db_attach_lwp): Delete.
4577 (thread_db_notice_clone): New function.
4578 (try_thread_db_load_1): If /proc is mounted and shows the
4579 process'es task list, walk over all LWPs and call thread_from_lwp
4580 instead of relying on td_ta_thr_iter.
4581 (attach_thread): Don't call check_thread_signals here. Split the
4582 tail part of the function (which adds the thread to the core GDB
4584 (record_thread): ... this function. Call check_thread_signals
4586 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
4587 call thread_from_lwp.
4588 (thread_db_update_thread_list): Rename to ...
4589 (thread_db_update_thread_list_org): ... this.
4590 (thread_db_update_thread_list): New function.
4591 (thread_db_find_thread_from_tid): Delete.
4592 (thread_db_get_ada_task_ptid): Simplify.
4593 * nat/linux-procfs.c: Include <sys/stat.h>.
4594 (linux_proc_task_list_dir_exists): New function.
4595 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
4597 2015-02-20 Pedro Alves <palves@redhat.com>
4599 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
4600 main LWP. Handle the case of waitpid returning 0 if we're already
4601 attached to the LWP. Don't set the LWP's last_resume_kind to
4602 resume_stop if we already knew about the LWP.
4603 (linux_nat_filter_event): Add debug logs.
4605 2015-02-20 Pedro Alves <palves@redhat.com>
4607 * target.h (forward_target_decr_pc_after_break): Delete
4610 2015-02-20 Pedro Alves <palves@redhat.com>
4613 * linux-thread-db.c (thread_get_info_callback): Return early if
4614 the thread's lwp id is -1.
4616 2015-02-20 Joel Brobecker <brobecker@adacore.com>
4620 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
4622 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
4623 (dtrace_get_probes) Change type of variable 'dof'.
4625 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
4627 PR breakpoints/16812
4628 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
4629 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
4630 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
4632 2015-02-19 David Taylor <dtaylor@emc.com>
4634 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
4636 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
4638 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
4640 (tui_putc): Don't call tui_handle_resize_during_io.
4641 (tui_getc): Likewise.
4642 (tui_mld_getc): Likewise.
4643 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
4644 (tui_sigwinch_token): New static variable.
4645 (tui_initialize_win): Adjust documentation. Set
4647 (tui_async_resize_screen): New asynchronous callback.
4648 (tui_sigwinch_handler): Adjust documentation. Asynchronously
4649 invoke tui_async_resize_screen.
4651 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
4653 * configure: Regenerated.
4654 * configure.ac: Use GDB_AC_TRANSFORM.
4655 * Makefile.in (aclocal_m4_deps): Added transform.m4.
4656 * acinclude.m4: sinclude transform.m4.
4657 * transform.m4: New file.
4658 (GDB_AC_TRANSFORM): New macro.
4660 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
4662 * NEWS: Announce the support for DTrace SDT probes.
4664 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
4666 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
4667 (amd64_dtrace_parse_probe_argument): New function.
4668 (amd64_dtrace_probe_is_enabled): Likewise.
4669 (amd64_dtrace_enable_probe): Likewise.
4670 (amd64_dtrace_disable_probe): Likewise.
4671 (amd64_linux_init_abi): Register the
4672 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
4673 `gdbarch_dtrace_disable_probe' and
4674 `gdbarch_dtrace_probe_is_enabled' hooks.
4675 (amd64_dtrace_disabled_probe_sequence_1): New constant.
4676 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
4677 (amd64_dtrace_enable_probe_sequence): Likewise.
4678 (amd64_dtrace_disable_probe_sequence): Likewise.
4680 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
4682 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
4683 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
4684 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
4686 * Makefile.in (SFILES): dtrace-probe.c added.
4687 * configure: Regenerate.
4688 * dtrace-probe.c: New file.
4689 (SHT_SUNW_dof): New constant.
4690 (dtrace_probe_type): New enum.
4691 (dtrace_probe_arg): New struct.
4692 (dtrace_probe_arg_s): New typedef.
4693 (struct dtrace_probe_enabler): New struct.
4694 (dtrace_probe_enabler_s): New typedef.
4695 (dtrace_probe): New struct.
4696 (dtrace_probe_is_linespec): New function.
4697 (dtrace_dof_sect_type): New enum.
4698 (dtrace_dof_dofh_ident): Likewise.
4699 (dtrace_dof_encoding): Likewise.
4700 (DTRACE_DOF_ENCODE_LSB): Likewise.
4701 (DTRACE_DOF_ENCODE_MSB): Likewise.
4702 (dtrace_dof_hdr): New struct.
4703 (dtrace_dof_sect): Likewise.
4704 (dtrace_dof_provider): Likewise.
4705 (dtrace_dof_probe): Likewise.
4706 (DOF_UINT): New macro.
4707 (DTRACE_DOF_PTR): Likewise.
4708 (DTRACE_DOF_SECT): Likewise.
4709 (dtrace_process_dof_probe): New function.
4710 (dtrace_process_dof): Likewise.
4711 (dtrace_build_arg_exprs): Likewise.
4712 (dtrace_get_arg): Likewise.
4713 (dtrace_get_probes): Likewise.
4714 (dtrace_get_probe_argument_count): Likewise.
4715 (dtrace_can_evaluate_probe_arguments): Likewise.
4716 (dtrace_evaluate_probe_argument): Likewise.
4717 (dtrace_compile_to_ax): Likewise.
4718 (dtrace_probe_destroy): Likewise.
4719 (dtrace_gen_info_probes_table_header): Likewise.
4720 (dtrace_gen_info_probes_table_values): Likewise.
4721 (dtrace_probe_is_enabled): Likewise.
4722 (dtrace_probe_ops): New variable.
4723 (info_probes_dtrace_command): New function.
4724 (_initialize_dtrace_probe): Likewise.
4725 (dtrace_type_name): Likewise.
4727 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
4729 * gdbarch.sh (dtrace_parse_probe_argument): New.
4730 (dtrace_probe_is_enabled): Likewise.
4731 (dtrace_enable_probe): Likewise.
4732 (dtrace_disable_probe): Likewise.
4733 * gdbarch.c: Regenerate.
4734 * gdbarch.h: Regenerate.
4736 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
4738 * stap-probe.c (stap_probe_ops): Add NULLs in the static
4739 stap_probe_ops for `enable_probe' and `disable_probe'.
4740 * probe.c (enable_probes_command): New function.
4741 (disable_probes_command): Likewise.
4742 (_initialize_probe): Define the cli commands `enable probe' and
4744 (parse_probe_linespec): New function.
4745 (info_probes_for_ops): Use parse_probe_linespec.
4746 * probe.h (probe_ops): New hooks `enable_probe' and
4749 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
4751 * probe.c (compute_probe_arg): Moved from stap-probe.c
4752 (compile_probe_arg): Likewise.
4753 (probe_funcs): Likewise.
4754 * stap-probe.c (compute_probe_arg): Moved to probe.c.
4755 (compile_probe_arg): Likewise.
4756 (probe_funcs): Likewise.
4758 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
4760 * probe.c (print_ui_out_not_applicables): New function.
4761 (exists_probe_with_pops): Likewise.
4762 (info_probes_for_ops): Do not include column headers for probe
4763 types for which no probe has been actually found on any object.
4764 Also invoke `print_ui_out_not_applicables' in order to match the
4765 column rows with the header when probes of several types are
4767 Print the "Type" column.
4768 * probe.h (probe_ops): Added a new probe operation `type_name'.
4769 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
4770 (stap_type_name): New function.
4772 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
4774 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
4775 (key_is_command_char): Delete.
4777 2015-02-17 Pedro Alves <palves@redhat.com>
4779 * tui/tui.c (tui_enable): Resize windows before anything
4780 might show a window.
4782 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
4785 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
4786 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
4788 * aarch64-tdep.h (tdesc_aarch64): Declare.
4790 2015-02-12 Mark Wielaard <mjw@redhat.com>
4792 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
4794 2015-02-13 Doug Evans <dje@google.com>
4796 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
4797 anonymous_namespace to is_in_anonymous for consistency with the rest
4799 (cp_lookup_bare_symbol): Fix typo in comment.
4800 (cp_search_static_and_baseclasses): Ditto.
4801 (search_symbol_list): Use vertical space in comment better.
4802 (reset_directive_searched): Ditto. Fix typo.
4803 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
4805 2015-02-13 Yao Qi <yao.qi@arm.com>
4807 * MAINTAINERS: Update my email address.
4809 2015-02-12 Doug Evans <dje@google.com>
4811 * symtab.c (completion_list_add_name): Fix memory leak.
4813 2015-02-12 Doug Evans <dje@google.com>
4815 * completer.c (complete_line): Remove incorrect comment.
4817 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4819 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
4820 (py_print_frame): Use RETURN_MASK_ERROR.
4822 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4824 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
4825 function comment. Wrap all function that can throw in cleanups.
4826 (gdbpy_apply_frame_filter): Wrap all function that can throw in
4829 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4831 * python/py-framefilter.c (py_print_frame): Substitute goto error.
4832 Remove the error label.
4834 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4836 * python/py-framefilter.c (py_print_frame): Put conditional code paths
4837 with goto first, indent the former else codepath left. Put variable
4838 'elided' to a new inner block.
4840 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4842 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
4844 2015-02-11 Pedro Alves <palves@redhat.com>
4846 * xcoffread.c (within_function): Delete.
4848 2015-02-11 Tom Tromey <tromey@redhat.com>
4849 Pedro Alves <palves@redhat.com>
4851 * breakpoint.c (base_breakpoint_ops): Delete.
4852 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
4853 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
4854 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
4855 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
4856 * python/py-arch.c (arch_object_type): Make extern.
4857 * python/py-block.c (block_syms_iterator_object_type): Make extern.
4858 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
4859 * python/py-cmd.c (cmdpy_object_type): Make extern.
4860 * python/py-continueevent.c (continue_event_object_type)
4861 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
4862 parameter. Update all callers.
4863 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
4864 * python/py-exitedevent.c (exited_event_object_type): Make extern.
4865 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
4866 * python/py-function.c (fnpy_object_type): Make extern.
4867 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
4868 * python/py-infevents.c (call_pre_event_object_type)
4869 (inferior_call_post_event_object_type).
4870 (memory_changed_event_object_type): Make extern.
4871 * python/py-infthread.c (thread_object_type): Make extern.
4872 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
4873 * python/py-linetable.c (linetable_entry_object_type)
4874 (linetable_object_type, ltpy_iterator_object_type): Make extern.
4875 * python/py-newobjfileevent.c (new_objfile_event_object_type)
4876 (clear_objfiles_event_object_type): Make extern.
4877 * python/py-objfile.c (objfile_object_type): Make extern.
4878 * python/py-param.c (parmpy_object_type): Make extern.
4879 * python/py-progspace.c (pspace_object_type): Make extern.
4880 * python/py-signalevent.c (signal_event_object_type): Make extern.
4881 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
4882 * python/py-type.c (type_object_type, field_object_type)
4883 (type_iterator_object_type): Make extern.
4884 * python/python.c (python_extension_script_ops)
4885 (python_extension_ops): Make extern.
4886 * stap-probe.c (stap_probe_ops): Make extern.
4888 2015-02-11 Pedro Alves <pedro@codesourcery.com>
4890 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
4891 because the event thread is not the current thread.
4893 2015-02-11 Doug Evans <xdje42@gmail.com>
4895 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
4896 been initialized yet, return NULL.
4898 2015-02-11 Doug Evans <dje@google.com>
4900 * symfile.h (new_symfile_objfile): Delete.
4901 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
4902 All callers updated.
4904 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
4906 * tui/tui-io.c (tui_handle_resize_during_io): Call
4907 tui_update_gdb_sizes() after resizing the screen.
4908 * tui/tui.c (tui_enable): Resize the terminal before
4909 calling tui_update_gdb_sizes().
4911 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
4913 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
4914 line before printing a newline.
4916 2015-02-11 Mark Wielaard <mjw@redhat.com>
4918 * utils.c (producer_is_gcc): Return true or false.
4920 2015-02-10 Mark Wielaard <mjw@redhat.com>
4922 * utils.h (producer_is_gcc): Change return type to bool. Add major
4924 * utils.c (producer_is_gcc): Likewise.
4925 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
4926 * dwarf2read.c (check_producer): Likewise.
4928 2015-02-10 Pedro Alves <palves@redhat.com>
4930 * infrun.c (displaced_step_fixup): Switch to the event thread
4931 before calling gdbarch_displaced_step_fixup.
4933 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
4935 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
4937 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
4939 * ada-varobj.c (ada_name_of_child): Constify parent.
4940 (ada_path_expr_of_child): Same.
4941 (ada_value_of_child): Same.
4942 (ada_type_of_child): Same.
4943 * c-varobj.c (c_is_path_expr_parent): Same.
4944 (c_describe_child): Same.
4945 (c_name_of_child): Same.
4946 (c_value_of_child): Same.
4947 (c_type_of_child): Same.
4948 (cplus_number_of_children): Same.
4949 (cplus_describe_child): Constify var.
4950 (cplus_name_of_child): Constify parent.
4951 (cplus_value_of_child): Same.
4952 (cplus_type_of_child): Same.
4953 * jv-varobj.c (java_name_of_child): Same.
4954 (java_value_of_child): Same.
4955 (java_type_of_child): Same.
4956 * varobj.c (value_of_child): Same.
4957 (varobj_default_is_path_expr_parent): Constify var, parent and return
4959 (varobj_get_path_expr): Constify var, modify path_expr through
4961 (install_new_value): Constify parent.
4962 (value_of_child): Constify parent.
4963 * varobj.h (struct varobj): Constify parent.
4964 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
4966 (varobj_get_path_expr): Constify var.
4967 (varobj_get_path_expr_parent): Constify var and return value.
4969 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
4971 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
4972 (arm_prologue_this_id): Move PC and SP limit checks to
4973 arm_prologue_unwind_stop_reason.
4974 (arm_prologue_unwind) <stop_reason> : Set to
4975 arm_prologue_unwind_stop_reason.
4977 2015-02-09 Mark Wielaard <mjw@redhat.com>
4979 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
4980 DW_LANG_Fortran08 as language_fortran.
4982 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
4985 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
4986 of pointer against char.
4988 2015-02-09 Mark Wielaard <mjw@redhat.com>
4990 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
4991 (c_type_print_modifier): Likewise.
4992 * dwarf2read.c (read_tag_atomic_type): New function.
4993 (read_type_die_1): Handle DW_TAG_atomic_type.
4994 * gdbtypes.c (make_atomic_type): New function.
4995 (recursive_dump_type): Handle TYPE_ATOMIC.
4996 * gdbtypes.h (enum type_flag_values): Renumber.
4997 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
4998 (TYPE_ATOMIC): New macro.
4999 (make_atomic_type): Declare.
5001 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
5003 * btrace.c (ftrace_find_call): Skip gaps.
5004 (ftrace_new_function): Initialize level.
5005 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
5006 (ftrace_new_switch): Update
5008 (ftrace_new_gap): New.
5009 (ftrace_update_function): Create new function after gap.
5010 (btrace_compute_ftrace_bts): Create gap on error.
5011 (btrace_stitch_bts): Update parameters. Clear trace if it
5013 (btrace_stitch_trace): Update parameters. Update callers.
5014 (btrace_clear): Reset the number of gaps.
5015 (btrace_insn_get): Return NULL if the iterator points to a gap.
5016 (btrace_insn_number): Return zero if the iterator points to a gap.
5017 (btrace_insn_end): Allow gaps at the end.
5018 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
5019 (btrace_find_insn_by_number): Assert that the found iterator does
5021 (btrace_call_next, btrace_call_prev): Assert that the last function
5023 * btrace.h (btrace_bts_error): New.
5024 (btrace_function): Update comment.
5025 (btrace_function) <insn, insn_offset, number>: Update comment.
5026 (btrace_function) <errcode>: New.
5027 (btrace_thread_info) <ngaps>: New.
5028 (btrace_thread_info) <replay>: Update comment.
5029 (btrace_insn_get): Update comment.
5030 * record-btrace.c (btrace_ui_out_decode_error): New.
5031 (record_btrace_info): Print number of gaps.
5032 (btrace_insn_history, btrace_call_history): Call
5033 btrace_ui_out_decode_error for gaps.
5034 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
5036 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
5038 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
5039 * nat/linux-btrace.c: (btrace_this_cpu): New.
5040 (cpu_supports_bts): Call btrace_this_cpu.
5041 (intel_supports_bts): Add cpu parameter.
5043 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
5045 * btrace.h (btrace_insn_class): New.
5046 (btrace_insn) <size, iclass>: New.
5047 * btrace.c (ftrace_find_call): Update parameters. Update users.
5048 Use instruction classification.
5049 (ftrace_new_return): Update parameters. Update users.
5050 (ftrace_update_function): Update parameters. Update users. Use
5051 instruction classification.
5052 (ftrace_update_insns): Update parameters. Update users.
5053 (ftrace_classify_insn): New.
5054 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
5055 TRY_CATCH around call to gdb_insn_length.
5057 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
5059 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
5060 Update parameters. Update users.
5062 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
5064 * btrace.c (parse_xml_btrace_conf_bts): Add size.
5065 (btrace_conf_bts_attributes): New.
5066 (btrace_conf_children): Add attributes.
5067 * common/btrace-common.h (btrace_config_bts): New.
5068 (btrace_config)<bts>: New.
5069 (btrace_config): Update comment.
5070 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
5072 * features/btrace-conf.dtd: Increment version. Add size
5073 attribute to bts element.
5074 * record-btrace.c (set_record_btrace_bts_cmdlist,
5075 show_record_btrace_bts_cmdlist): New.
5076 (record_btrace_adjust_size, record_btrace_print_bts_conf,
5077 record_btrace_print_conf, cmd_set_record_btrace_bts,
5078 cmd_show_record_btrace_bts): New.
5079 (record_btrace_info): Call record_btrace_print_conf.
5080 (_initialize_record_btrace): Add commands.
5081 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
5082 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
5083 (btrace_sync_conf): Synchronize bts size.
5084 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
5085 * NEWS: Announce new commands and new packets.
5087 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
5089 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
5090 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
5091 (x86_linux_btrace_conf): New.
5092 (x86_linux_create_target): Initialize to_btrace_conf.
5093 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
5094 Check format. Split into this and ...
5095 (linux_enable_bts): ... this.
5096 (linux_btrace_conf): New.
5097 (perf_event_skip_record): Renamed into ...
5098 (perf_event_skip_bts_record): ... this. Updated users.
5099 (linux_disable_btrace): Split into this and ...
5100 (linux_disable_bts): ... this.
5101 (linux_read_btrace): Check format.
5102 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
5103 (linux_btrace_conf): New.
5104 (btrace_target_info)<ptid>: Moved.
5105 (btrace_target_info)<conf>: New.
5106 (btrace_target_info): Split into this and ...
5107 (btrace_tinfo_bts): ... this. Updated users.
5108 * btrace.c (btrace_enable): Update parameters.
5109 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
5110 (btrace_conf_children, btrace_conf_attributes)
5111 (btrace_conf_elements): New.
5112 * btrace.h (btrace_enable): Update parameters.
5113 (btrace_conf, parse_xml_btrace_conf): New.
5114 * common/btrace-common.h (btrace_config): New.
5115 * feature/btrace-conf.dtd: New.
5116 * record-btrace.c (record_btrace_conf): New.
5117 (record_btrace_cmdlist): New.
5118 (record_btrace_enable_warn, record_btrace_open): Pass
5119 &record_btrace_conf.
5120 (record_btrace_info): Print recording format.
5121 (cmd_record_btrace_bts_start): New.
5122 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
5123 (_initialize_record_btrace): Add "record btrace bts" subcommand.
5124 Add "record bts" alias command.
5125 * remote.c (remote_state)<btrace_config>: New.
5126 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
5127 (remote_protocol_features): Add qXfer:btrace-conf:read.
5128 (remote_open_1): Call remote_btrace_reset.
5129 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
5130 (btrace_target_info)<conf>: New.
5131 (btrace_sync_conf, btrace_read_config): New.
5132 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
5134 (remote_btrace_conf): New.
5135 (init_remote_ops): Initialize to_btrace_conf.
5136 (_initialize_remote): Add qXfer:btrace-conf packet.
5137 * target.c (target_enable_btrace): Update parameters.
5138 (target_btrace_conf): New.
5139 * target.h (target_enable_btrace): Update parameters.
5140 (target_btrace_conf): New.
5141 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
5142 (target_ops)<to_enable_btrace>: Update parameters and comment.
5143 (target_ops)<to_btrace_conf>: New.
5144 * target-delegates: Regenerate.
5145 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
5146 (target_debug_print_const_struct_btrace_target_info_p): New.
5147 * NEWS: Announce new command and new packet.
5149 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
5151 * nat/linux-btrace.h (perf_event_buffer): New.
5152 (btrace_target_info) <buffer, size, data_head>: Replace with ...
5154 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
5155 (perf_event_buffer_size, perf_event_buffer_begin)
5156 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
5158 (perf_event_new_data): New.
5160 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
5162 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
5163 * record-btrace.c (record_btrace_open): Remove call to
5164 target_supports_btrace.
5165 * remote.c (remote_supports_btrace): Update parameters.
5166 * target.c (target_supports_btrace): Update parameters.
5167 * target.h (to_supports_btrace, target_supports_btrace): Update
5169 * target-delegates.c: Regenerate.
5170 * target-debug.h (target_debug_print_enum_btrace_format): New.
5171 * nat/linux-btrace.c
5172 (kernel_supports_btrace): Rename into ...
5173 (kernel_supports_bts): ... this. Update users. Update warning text.
5174 (intel_supports_btrace): Rename into ...
5175 (intel_supports_bts): ... this. Update users.
5176 (cpu_supports_btrace): Rename into ...
5177 (cpu_supports_bts): ... this. Update users.
5178 (linux_supports_btrace): Update parameters. Split into this and ...
5179 (linux_supports_bts): ... this.
5180 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
5182 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
5184 * Makefile.in (SFILES): Add common/btrace-common.c.
5185 (COMMON_OBS): Add common/btrace-common.o.
5186 (btrace-common.o): Add build rules.
5187 * btrace.c (parse_xml_btrace): Update parameters.
5188 (parse_xml_btrace_block): Set format field.
5189 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
5190 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
5191 (btrace_compute_ftrace): Split into this and...
5192 (btrace_compute_ftrace_bts): ...this.
5193 (btrace_stitch_trace): Split into this and...
5194 (btrace_stitch_bts): ...this.
5195 * btrace.h (parse_xml_btrace): Update parameters.
5196 (make_cleanup_btrace_data): New.
5197 * common/btrace-common.c: New.
5198 * common/btrace-common.h: Include common-defs.h.
5199 (btrace_block_s): Update comment.
5200 (btrace_format): New.
5201 (btrace_format_string): New.
5202 (btrace_data_bts): New.
5204 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
5205 * remote.c (remote_read_btrace): Update parameters.
5206 * target.c (target_read_btrace): Update parameters.
5207 * target.h (target_read_btrace): Update parameters.
5208 (target_ops)<to_read_btrace>: Update parameters.
5209 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
5210 * target-delegates.c: Regenerate.
5211 * target-debug (target_debug_print_struct_btrace_data_p): New.
5212 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
5213 (linux_read_bts): ...this.
5214 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
5216 2015-02-06 Doug Evans <dje@google.com>
5218 * remote-m32r-sdi.c: Include symfile.h.
5220 2015-02-06 Doug Evans <dje@google.com>
5222 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
5223 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
5226 2015-02-06 Pedro Alves <palves@redhat.com>
5228 * linux-thread-db.c (find_new_threads_callback): Add debug output.
5230 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
5233 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
5234 (enable_count_command): Check args for NULL value.
5236 2015-02-05 Doug Evans <xdje42@gmail.com>
5238 * guile/scm-frame.c: Fix spelling errors in a comment.
5240 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5242 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
5243 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
5246 2015-02-04 Pedro Alves <palves@redhat.com>
5248 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
5249 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
5251 (resume_stopped_resumed_lwps): Don't check whether the thread is
5252 marked as executing.
5253 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
5255 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
5257 * regset.h (struct regset): Add flags field.
5258 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
5259 * corelow.c (get_core_register_section): Add warning if the size
5260 exceeds the requested size and the regset does not have the
5261 REGSET_VARIABLE_SIZE flag set.
5262 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
5264 * armbsd-tdep.c (armbsd_gregset): Likewise.
5265 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5266 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
5267 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
5268 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
5270 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
5272 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
5273 For ".reg-xstate", explicitly specify the requested section size
5274 via X86_XSTATE_SIZE instead of just 0 on input and
5275 X86_XSTATE_MAX_SIZE on output.
5276 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
5279 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
5282 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
5283 function type, particularly its SIZE parameter.
5284 * gdbarch.h: Regenerate.
5285 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
5286 actual against required size using ">=" instead of "==".
5287 (amd64_collect_fpregset): Likewise.
5288 * i386-tdep.c (i386_supply_gregset): Likewise.
5289 (i386_collect_gregset): Likewise.
5290 (i386_supply_fpregset): Likewise.
5291 (i386_collect_fpregset): Likewise.
5292 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
5293 (mips_fill_gregset_wrapper): Likewise.
5294 (mips_supply_fpregset_wrapper): Likewise.
5295 (mips_fill_fpregset_wrapper): Likewise.
5296 (mips64_supply_gregset_wrapper): Likewise.
5297 (mips64_fill_gregset_wrapper): Likewise.
5298 (mips64_supply_fpregset_wrapper): Likewise.
5299 (mips64_fill_fpregset_wrapper): Likewise.
5300 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
5301 (am33_supply_fpregset_method): Likewise.
5302 (am33_collect_gregset_method): Likewise.
5303 (am33_collect_fpregset_method): Likewise.
5305 2015-02-04 Doug Evans <dje@google.com>
5306 Pedro Alves <palves@redhat.com>
5307 Eli Zaretskii <eliz@gnu.org>
5310 * tui/tui-command.c (tui_refresh_cmd_win): New function.
5311 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
5312 * tui/tui-file.c: #include tui/tui-command.h.
5313 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
5314 (tui_file_flush): Refresh command window if stream is gdb_stdout.
5315 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
5317 2015-02-04 Pedro Alves <palves@redhat.com>
5320 * event-loop.c (gdb_do_one_event): Add default switch case.
5322 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5324 Filter out inferior gcc option -fpreprocessed.
5325 * compile/compile.c (filter_args): New function.
5328 2015-02-03 Pedro Alves <palves@redhat.com>
5330 * event-loop.c: Don't declare nor define a queue type for
5332 (event_queue): Delete.
5333 (create_event, create_file_event, gdb_event_xfree)
5334 (initialize_event_loop, process_event): Delete.
5335 (gdb_do_one_event): Return as soon as one event is handled.
5336 (handle_file_event): Change prototype. Used the passed in
5337 file_handler pointer and ready_mask instead of looping over all
5339 (gdb_wait_for_event): Update the poll/select timeouts before
5340 blocking. Run event handlers directly instead of queueing events.
5341 Return as soon as one event is handled.
5342 (struct async_event_handler_data): Delete.
5343 (invoke_async_event_handler): Delete.
5344 (check_async_event_handlers): Change return type to int. Run
5345 event handlers directly instead of queueing events. Return as
5346 soon as one event is handled.
5347 (handle_timer_event): Delete.
5348 (update_wait_timeout): New function, factored out from
5350 (poll_timers): Reimplement.
5351 * event-loop.h (initialize_event_loop): Delete declaration.
5352 * top.c (gdb_init): Don't call initialize_event_loop.
5354 2015-02-03 Pedro Alves <palves@redhat.com>
5356 * event-loop.c (clear_async_event_handler): New function.
5357 * event-loop.h (clear_async_event_handler): New declaration.
5358 * record-btrace.c (record_btrace_async): New function.
5359 (init_record_btrace_ops): Install record_btrace_async.
5360 * record-full.c (record_full_async): New function.
5361 (record_full_resume): Don't mark the async event source here.
5362 (init_record_full_ops): Install record_full_async.
5363 (record_full_core_resume): Don't mark the async event source here.
5364 (init_record_full_core_ops): Install record_full_async.
5365 * remote.c (remote_async): Mark and clear the async stop reply
5366 queue event-loop token as appropriate.
5368 2015-02-03 Pedro Alves <palves@redhat.com>
5370 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
5371 target_is_async_p instead of target_can_async.
5372 (linux_nat_wait): Use target_is_async_p instead of
5373 target_can_async. Don't enable async here.
5374 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
5375 target_is_async_p instead of target_can_async.
5377 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
5379 * varobj.h (lang_varobj_ops): Mention which return values need
5382 2015-02-02 Joel Brobecker <brobecker@adacore.com>
5384 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
5386 2015-02-02 Joel Brobecker <brobecker@adacore.com>
5389 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
5390 results found in the cache.
5392 2015-02-02 Joel Brobecker <brobecker@adacore.com>
5395 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
5396 when allocating a new one.
5398 2015-02-01 Tom Tromey <tom@tromey.com>
5400 * MAINTAINERS: Remove myself.
5402 2015-01-31 Doug Evans <xdje42@gmail.com>
5404 * dwarf2read.c (process_structure_scope): Update setting of
5405 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
5406 * gdbtypes.c (internal_type_vptr_fieldno): New function.
5407 (set_type_vptr_fieldno): New function.
5408 (internal_type_vptr_basetype): New function.
5409 (set_type_vptr_basetype): New function.
5410 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
5412 (allocate_cplus_struct_type): Initialize vptr_fieldno.
5413 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
5414 (print_cplus_stuff): ... moved here.
5415 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
5416 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
5418 (struct cplus_struct_type): ... here. All uses updated.
5419 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
5420 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
5421 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
5422 * stabsread.c (read_tilde_fields): Update setting of
5423 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
5425 2015-01-31 Doug Evans <xdje42@gmail.com>
5427 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
5429 (cp_print_class_member): Rename local domain to self_type.
5430 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
5431 domain_type to self_type.
5432 (set_die_type) <need_gnat_info>: Handle
5433 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
5434 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
5435 TYPE_SPECIFIC_SELF_TYPE.
5436 * gdbtypes.c (internal_type_self_type): New function.
5437 (set_type_self_type): New function.
5438 (smash_to_memberptr_type): Rename parameter domain to self_type.
5439 Update setting of TYPE_SELF_TYPE.
5440 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
5441 (smash_to_method_type): Rename parameter domain to self_type.
5442 Update setting of TYPE_SELF_TYPE.
5443 (check_stub_method): Call smash_to_method_type.
5444 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
5445 (copy_type_recursive): Ditto.
5446 * gdbtypes.h (enum type_specific_kind): New value
5447 TYPE_SPECIFIC_SELF_TYPE.
5448 (struct main_type) <type_specific>: New member self_type.
5449 (struct cplus_struct_type) <fn_field.type>: Update comment.
5450 (TYPE_SELF_TYPE): Rewrite.
5451 (internal_type_self_type, set_type_self_type): Declare.
5452 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
5454 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
5455 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
5457 * stabsread.c (read_member_functions): Mark methods with
5458 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
5461 2015-01-31 Doug Evans <xdje42@gmail.com>
5463 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
5466 2015-01-31 Doug Evans <xdje42@gmail.com>
5468 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
5469 or unions. Return zero if union.
5470 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
5471 (gnuv3_rtti_type): Pass already-check_typedef'd value to
5473 (compute_vtable_size): Assert only passed structs.
5474 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
5476 2015-01-31 Doug Evans <xdje42@gmail.com>
5478 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
5481 2015-01-31 Gary Benson <gbenson@redhat.com>
5482 Doug Evans <dje@google.com>
5487 * cli/cli-cmds.c (complete_command): Notify user if max-completions
5489 * common/common-exceptions.h (enum errors)
5490 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
5491 * completer.h (get_max_completions_reached_message): New declaration.
5492 (max_completions): Likewise.
5493 (completion_tracker_t): New typedef.
5494 (new_completion_tracker): New declaration.
5495 (make_cleanup_free_completion_tracker): Likewise.
5496 (maybe_add_completion_enum): New enum.
5497 (maybe_add_completion): New declaration.
5498 (throw_max_completions_reached_error): Likewise.
5499 * completer.c (max_completions): New global variable.
5500 (new_completion_tracker): New function.
5501 (free_completion_tracker): Likewise.
5502 (make_cleanup_free_completion_tracker): Likewise.
5503 (maybe_add_completions): Likewise.
5504 (throw_max_completions_reached_error): Likewise.
5505 (complete_line): Remove duplicates and limit result to max_completions
5507 (get_max_completions_reached_message): New function.
5508 (gdb_display_match_list): Handle max_completions.
5509 (_initialize_completer): New declaration and function.
5510 * symtab.c: Include completer.h.
5511 (completion_tracker): New static variable.
5512 (completion_list_add_name): Call maybe_add_completion.
5513 (default_make_symbol_completion_list_break_on_1): Renamed from
5514 default_make_symbol_completion_list_break_on. Maintain
5515 completion_tracker across calls to completion_list_add_name.
5516 (default_make_symbol_completion_list_break_on): New function.
5517 * top.c (init_main): Set rl_completion_display_matches_hook.
5518 * tui/tui-io.c: Include completer.h.
5519 (tui_old_rl_display_matches_hook): New static global.
5520 (tui_rl_display_match_list): Notify user if max-completions reached.
5521 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
5522 * NEWS (New Options): Mention set/show max-completions.
5524 2015-01-31 Gary Benson <gbenson@redhat.com>
5526 * symtab.c (struct add_name_data) <code>: New field.
5528 (add_symtab_completions): New function.
5529 (symtab_expansion_callback): Likewise.
5530 (default_make_symbol_completion_list_break_on): Set datum.code.
5531 Move minimal symbol scan before calling expand_symtabs_matching.
5532 Scan known primary symtabs for externs and statics before calling
5533 expand_symtabs_matching. Pass symtab_expansion_callback as
5534 expansion_notify argument to expand_symtabs_matching. Do not scan
5535 primary symtabs for externs and statics after calling
5536 expand_symtabs_matching.
5538 2015-01-31 Gary Benson <gbenson@redhat.com>
5540 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
5541 (struct quick_symbol_functions) <expand_symtabs_matching>:
5542 New argument expansion_notify. All uses updated.
5543 (expand_symtabs_matching): New argument expansion_notify.
5545 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5546 Also print expansion notify.
5547 * symtab.c (expand_symtabs_matching_via_partial): Call
5548 expansion_notify whenever a partial symbol table is expanded.
5549 * dwarf2read.c (dw2_expand_symtabs_matching): Call
5550 expansion_notify whenever a symbol table is instantiated.
5552 2015-01-31 Doug Evans <xdje42@gmail.com>
5554 * cli-out.c: #include completer.h, readline/readline.h.
5555 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
5556 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
5557 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
5558 * cli-out.h (cli_display_match_list): Declare.
5559 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
5560 (ELLIPSIS_LEN): Ditto.
5561 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
5562 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
5563 (gdb_fnprint, gdb_print_filename): Ditto.
5564 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
5565 (gdb_display_match_list): Ditto.
5566 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
5567 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
5568 (mld_beep_ftype, mld_read_key_ftype): Ditto.
5569 (match_list_displayer): New struct.
5570 (gdb_display_match_list): Declare.
5571 * top.c (init_main): Set rl_completion_display_matches_hook.
5572 * tui/tui-io.c: #include completer.h.
5573 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
5574 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
5575 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
5576 (tui_mld_getc, tui_mld_read_key): Ditto.
5577 (tui_rl_display_match_list): Rewrite.
5578 (tui_handle_resize_during_io): New arg for_completion. All callers
5581 2015-01-31 Doug Evans <xdje42@gmail.com>
5583 Add symbol lookup cache.
5584 * NEWS: Document new options and commands.
5585 * symtab.c (symbol_cache_key): New static global.
5586 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
5587 (SYMBOL_LOOKUP_FAILED): New macro.
5588 (symbol_cache_slot_state): New enum.
5589 (block_symbol_cache): New struct.
5590 (symbol_cache): New struct.
5591 (new_symbol_cache_size, symbol_cache_size): New static globals.
5592 (hash_symbol_entry, eq_symbol_entry): New functions.
5593 (symbol_cache_byte_size, resize_symbol_cache): New functions.
5594 (make_symbol_cache, free_symbol_cache): New functions.
5595 (get_symbol_cache, symbol_cache_cleanup): New function.
5596 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
5597 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
5598 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
5599 (symbol_cache_flush, symbol_cache_dump): New functions.
5600 (maintenance_print_symbol_cache): New function.
5601 (maintenance_flush_symbol_cache): New function.
5602 (symbol_cache_stats): New function.
5603 (maintenance_print_symbol_cache_statistics): New function.
5604 (symtab_new_objfile_observer): New function.
5605 (symtab_free_objfile_observer): New function.
5606 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
5607 (_initialize_symtab): Init symbol_cache_key. New parameter
5608 maint symbol-cache-size. New maint commands print symbol-cache,
5609 print symbol-cache-statistics, flush-symbol-cache.
5610 Install new_objfile, free_objfile observers.
5612 2015-01-31 Joel Brobecker <brobecker@adacore.com>
5615 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
5618 2015-01-31 Doug Evans <xdje42@gmail.com>
5620 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
5621 * auto-load.c: #include ctype.h.
5622 (struct auto_load_pspace_info): Replace member loaded_scripts with
5623 new members loaded_script_files, loaded_script_texts.
5624 (auto_load_pspace_data_cleanup): Update.
5625 (init_loaded_scripts_info): Update.
5626 (get_auto_load_pspace_data_for_loading): Update.
5627 (maybe_add_script_file): Renamed from maybe_add_script. All callers
5629 (maybe_add_script_text): New function.
5630 (clear_section_scripts): Update.
5631 (source_script_file, execute_script_contents): New functions.
5632 (source_section_scripts): Add support for
5633 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
5634 (print_scripts): New function.
5635 (auto_load_info_scripts): Also print inlined scripts.
5636 (maybe_print_unsupported_script_warning): Renamed from
5637 unsupported_script_warning_print. All callers updated.
5638 (maybe_print_script_not_found_warning): Renamed from
5639 script_not_found_warning_print. All callers updated.
5640 * extension-priv.h (struct extension_language_script_ops): New member
5641 objfile_script_executor.
5642 * extension.c (ext_lang_objfile_script_executor): New function.
5643 * extension.h (objfile_script_executor_func): New typedef.
5644 (ext_lang_objfile_script_executor): Declare.
5645 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
5646 * guile/guile.c (guile_extension_script_ops): Update.
5647 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
5648 * python/python.c (python_extension_script_ops): Update.
5649 (gdbpy_execute_objfile_script): New function.
5651 2015-01-31 Eli Zaretskii <eliz@gnu.org>
5653 * tui/tui-io.c (tui_expand_tabs): New function.
5654 (tui_puts, tui_redisplay_readline): Expand TABs into the
5655 appropriate number of spaces.
5656 * tui/tui-regs.c: Include tui-io.h.
5657 (tui_register_format): Call tui_expand_tabs to expand TABs into
5658 the appropriate number of spaces.
5659 * tui/tui-io.h: Add prototype for tui_expand_tabs.
5661 2015-01-30 Doug Evans <dje@google.com>
5663 * NEWS: "info source" command now display producer string if present.
5664 * source.c (source_info): Print producer string if present.
5666 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
5668 * varobj.c (varobj_delete): Fix comment.
5670 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
5672 * varobj.c (create_child): Modify comment.
5674 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
5676 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
5678 (ada_name_of_variable): Same.
5679 (ada_path_expr_of_child): Same.
5680 (ada_value_of_variable): Same.
5681 (ada_value_is_changeable_p): Same.
5682 (ada_value_has_mutated): Same.
5683 * c-varobj.c (varobj_is_anonymous_child): Same.
5684 (c_is_path_expr_parent): Same.
5685 (c_number_of_children): Same.
5686 (c_name_of_variable): Same.
5687 (c_path_expr_of_child): Same.
5689 (c_value_of_variable): Same.
5690 (cplus_number_of_children): Same.
5691 (cplus_name_of_variable): Same.
5692 (cplus_path_expr_of_child): Same.
5693 (cplus_value_of_variable): Same.
5694 * jv-varobj.c (java_number_of_children): Same.
5695 (java_name_of_variable): Same.
5696 (java_path_expr_of_child): Same.
5697 (java_value_of_variable): Same.
5698 * varobj.c (number_of_children): Same.
5699 (name_of_variable): Same.
5701 (varobj_ensure_python_env): Same.
5702 (varobj_get_objname): Same.
5703 (varobj_get_expression): Same.
5704 (varobj_get_display_format): Same.
5705 (varobj_get_display_hint): Same.
5706 (varobj_has_more): Same.
5707 (varobj_get_thread_id): Same.
5708 (varobj_get_frozen): Same.
5709 (dynamic_varobj_has_child_method): Same.
5710 (varobj_get_gdb_type): Same.
5711 (is_path_expr_parent): Same.
5712 (varobj_default_is_path_expr_parent): Same.
5713 (varobj_get_language): Same.
5714 (varobj_get_attributes): Same.
5715 (varobj_is_dynamic_p): Same.
5716 (varobj_get_child_range): Same.
5717 (varobj_value_has_mutated): Same.
5718 (varobj_get_value_type): Same.
5719 (number_of_children): Same.
5720 (name_of_variable): Same.
5721 (check_scope): Same.
5722 (varobj_editable_p): Same.
5723 (varobj_value_is_changeable_p): Same.
5724 (varobj_floating_p): Same.
5725 (varobj_default_value_is_changeable_p): Same.
5727 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
5729 * varobj.c (varobj_get_path_expr): Set var->path_expr.
5730 * c-varobj.c (c_path_expr_of_child): Set local var instead of
5732 (cplus_path_expr_of_child): Same.
5734 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
5736 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
5738 (mi_cmd_var_info_expression): Same.
5739 * varobj.c (varobj_get_expression): Mention in the comment that
5740 the result must by freed by the caller.
5742 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
5744 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
5746 (varobj_update_one): Same.
5747 * varobj.c (update_type_if_necessary): Free curr_type_str and
5749 (varobj_get_type): Specify in comment that the result needs to be
5750 freed by the caller.
5752 2015-01-29 Doug Evans <dje@google.com>
5755 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
5757 2015-01-25 Mark Wielaard <mjw@redhat.com>
5759 * dwarf2read.c (checkproducer): Call producer_is_gcc.
5760 * utils.c (producer_is_gcc_ge_4): Likewise.
5761 (producer_is_gcc): New function.
5762 * utils.h (producer_is_gcc): New declaration.
5764 2015-01-29 Joel Brobecker <brobecker@adacore.com>
5766 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
5768 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
5769 parameter by "addr_stack" parameter.
5770 (resolve_dynamic_range): Replace "addr" parameter by
5771 "stack_addr" parameter. Update function documentation.
5772 Update code accordingly.
5773 (resolve_dynamic_array, resolve_dynamic_union)
5774 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
5775 (resolve_dynamic_type): Update code, following the changes made
5776 to resolve_dynamic_type_internal's interface.
5777 * dwarf2loc.h (struct property_addr_info): New.
5778 (dwarf2_evaluate_property): Replace "address" parameter
5779 by "addr_stack" parameter. Adjust function documentation.
5780 (struct dwarf2_offset_baton): New.
5781 (struct dwarf2_property_baton): Update documentation of
5782 field "referenced_type" to be more general. New field
5783 "offset_info" in union data field.
5784 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
5785 parameter by "addr_stack" parameter. Adjust code accordingly.
5786 Add support for PROP_ADDR_OFFSET properties.
5787 * dwarf2read.c (attr_to_dynamic_prop): Add support for
5788 DW_AT_data_member_location attributes as well. Use case
5789 statements instead of if/else condition.
5791 2015-01-29 Joel Brobecker <brobecker@adacore.com>
5793 * ada-varobj.c (ada_varobj_get_array_number_of_children):
5794 Return zero if PARENT_VALUE is NULL and parent_type's
5795 range type is dynamic.
5797 2015-01-29 Joel Brobecker <brobecker@adacore.com>
5799 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
5800 nonzero if the type's subtype is dynamic.
5801 (resolve_dynamic_range): Also resolve the range's subtype.
5803 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
5805 Pushed by Joel Brobecker <brobecker@adacore.com>.
5806 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
5808 2015-01-27 Doug Evans <dje@google.com>
5810 * NEWS: Mention gdb.Objfile.username.
5811 * python/py-objfile.c (objfpy_get_username): New function.
5812 (objfile_getset): Add "username".
5814 2015-01-24 Mark Wielaard <mjw@redhat.com>
5816 * stack.c (return_command): Markup warning message with _.
5818 2015-01-24 Doug Evans <xdje42@gmail.com>
5820 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
5822 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5824 Fix 100x slowdown regression on DWZ files.
5825 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
5826 (struct line_header): Add offset and offset_in_dwz.
5827 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
5828 (free_line_header_voidp): New declaration.
5829 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
5831 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
5832 (handle_DW_AT_stmt_list): Use line_header_hash.
5833 (free_line_header_voidp): New function.
5834 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
5835 (dwarf_decode_lines): New parameter decode_mapping, use it.
5836 (dwarf2_free_objfile): Free line_header_hash.
5838 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
5841 * valops.c (value_rtti_indirect_type): Catch exception thrown by
5844 2015-01-15 Mark Wielaard <mjw@redhat.com>
5846 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
5848 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
5849 calling_convention an 8 bit bit field.
5850 (TYPE_NO_RETURN): New macro.
5851 * infcmd.c (finish_command): Query if function does not return
5853 * stack.c (return_command): Likewise.
5855 2015-01-23 Pedro Alves <palves@redhat.com>
5857 * linux-nat.c (linux_is_async_p): New macro.
5858 (linux_nat_is_async_p):
5859 (linux_nat_terminal_inferior): Check whether the target can async
5860 instead of whether it is already async.
5861 (linux_nat_terminal_ours): Don't check whether the target is
5863 (linux_async_pipe): Use linux_is_async_p.
5865 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5867 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
5869 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
5870 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
5871 Sort tp_array using tp_array_compar.
5872 (_initialize_thread): Extend thread_apply_all_command help.
5874 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5876 * corelow.c (core_open): Call also thread_command.
5877 * gdbthread.h (thread_command): New prototype moved from ...
5878 * thread.c (thread_command): ... here.
5879 (thread_command): Make it global.
5881 2015-01-22 Pedro Alves <palves@redhat.com>
5883 * configure.ac [*mingw32*]: Check $curses_found instead of
5885 * configure: Regenerate.
5886 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
5887 HAVE_NCURSES_NCURSES_H checks.
5889 2015-01-22 Eli Zaretskii <eliz@gnu.org>
5891 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
5892 fails with the 1st arg NULL, try again with "unknown". Don't test
5893 the "cup" capability: it isn't supported by the Windows port of
5894 ncurses, but the Windows console driver is still capable of
5897 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5899 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
5901 2015-01-22 Eli Zaretskii <eliz@gnu.org>
5903 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
5904 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
5905 reason that "make TAGS" is broken.
5907 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
5909 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
5910 and check additional store instructions.
5912 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
5914 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
5916 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
5918 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
5919 ppc_canonicalize_syscall, ppc_linux_syscall_record,
5920 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
5921 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
5922 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
5923 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
5924 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
5925 ppc_process_record_op19, ppc_process_record_op31,
5926 ppc_process_record_op59, ppc_process_record_op60,
5927 ppc_process_record_op63): Likewise.
5929 2015-01-20 Joel Brobecker <brobecker@adacore.com>
5931 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
5932 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
5935 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
5937 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
5938 ppc_process_record_op31, ppc_process_record_op59,
5939 ppc_process_record_op60, ppc_process_record_op63,
5940 ppc_process_record): Fix -Wformat warning.
5941 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
5942 Remove unused variables.
5944 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
5946 * MAINTAINERS (Write After Approval): Add "Chen Gang".
5948 2015-01-19 Eli Zaretskii <eliz@gnu.org>
5950 * configure.ac [*mingw32*]: Only add windows-termcap.o to
5951 CONFIG_OBS if not building with a curses library.
5952 * configure: Regenerate.
5954 * windows-termcap.c: Include defs.h. Make the whole body empty if
5955 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
5956 HAVE_NCURSES_NCURSES_H is defined.
5958 2015-01-19 Joel Brobecker <brobecker@adacore.com>
5960 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
5961 from end of line to start of next line.
5963 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
5965 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
5966 Scan PLT stub backward for reverse debugging.
5967 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
5969 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
5970 Ulrich Weigand <uweigand@de.ibm.com>
5972 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
5974 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
5976 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
5977 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
5978 (ppc_linux_init_abi): Set process_record, process_record_signal.
5979 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
5980 ppc_linux_record_tdep to gdbarch_tdep.
5981 (ppc_process_record): New declaration.
5982 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
5983 ppc_process_record_op19, ppc_process_record_op31,
5984 ppc_process_record_op59, ppc_process_record_op60,
5985 ppc_process_record_op63, ppc_process_record): New functions.
5987 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
5989 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
5990 rs6000_in_function_epilogue_frame_p and add an argument
5992 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
5993 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
5995 (rs6000_epilogue_frame_unwind): New.
5996 (rs6000_gdbarch_init): Append epilogue unwinder.
5998 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
6000 * nat/linux-personality.c: Replace "#ifndef
6001 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
6002 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
6005 2015-01-16 Eli Zaretskii <eliz@gnu.org>
6007 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
6009 (_initialize_tui_win) <border-kind, border-mode>:
6010 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
6011 (tui_set_tab_width_command): Fix the commentary.
6013 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
6015 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
6017 (tui_set_tab_width_command): Delete and recreate the source and
6018 the disassembly windows, to show the effect of the changed tab
6021 * tui/tui-data.h (LINE_PREFIX): Make shorter
6022 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
6023 "Thread NNNNN.XXXX" thread ID notation on Windows.
6025 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6027 Fix gcc-5 compilation.
6028 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
6030 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
6032 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
6033 (linux-personality.o): New rule.
6034 * common/common-defs.h: Include <stdint.h>.
6035 * config/aarch64/linux.mh (NATDEPFILES): Include
6036 linux-personality.o.
6037 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
6038 * config/arm/linux.mh (NATDEPFILES): Likewise.
6039 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6040 * config/i386/linux.mh (NATDEPFILES): Likewise.
6041 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6042 * config/m32r/linux.mh (NATDEPFILES): Likewise.
6043 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6044 * config/mips/linux.mh (NATDEPFILES): Likewise.
6045 * config/pa/linux.mh (NATDEPFILES): Likewise.
6046 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6047 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
6048 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
6049 * config/s390/linux.mh (NATDEPFILES): Likewise.
6050 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
6051 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6052 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
6053 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
6054 * defs.h: Remove #include <stdint.h> (moved to
6055 common/common-defs.h).
6056 * linux-nat.c: Include nat/linux-personality.h. Remove #include
6057 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
6058 nat/linux-personality.c).
6059 (linux_nat_create_inferior): Remove code to disable address space
6060 randomization (moved to nat/linux-personality.c). Create cleanup
6061 to disable address space randomization.
6062 * nat/linux-personality.c: New file.
6063 * nat/linux-personality.h: Likewise.
6065 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
6067 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
6068 common/posix-strerror.c.
6069 (posix-strerror.o): New rule.
6070 (mingw-strerror.o): Likewise.
6071 * common/common-utils.h (safe_strerror): Move prototype to here,
6073 * common/common.host: New file.
6074 * common/mingw-strerror.c: Likewise.
6075 * common/posix-strerror.c: Likewise.
6076 * configure: Regenerated.
6077 * configure.ac: Source common/common.host. Add variable
6078 common_host_obs to gdb_host_obs.
6079 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
6080 gdb/common/posix-strerror.c when warning about the use of
6082 * mingw-hdep.c (safe_strerror): Remove definition; move it to
6083 common/mingw-strerror.c.
6084 * posix-hdep.c (safe_strerror): Remove definition; move it to
6085 common/posix-hdep.c.
6086 * utils.h (safe_strerror): Remove prototype; move to
6087 common/common-utils.h.
6089 2015-01-15 Joel Brobecker <brobecker@adacore.com>
6093 2015-01-15 Joel Brobecker <brobecker@adacore.com>
6095 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
6096 ___XA type if the array has already been fixed.
6098 2015-01-14 Yao Qi <yao@codesourcery.com>
6100 * Makefile.in (ppc-linux.o): New rule.
6101 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
6102 * configure.ac: AC_CHECK_FUNCS(getauxval).
6103 * config.in: Re-generated.
6104 * configure: Re-generated.
6105 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
6107 * nat/ppc-linux.c: New file.
6108 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
6109 Call ppc64_64bit_inferior_p.
6111 2015-01-14 Yao Qi <yao@codesourcery.com>
6113 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
6115 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
6116 (PPC_FEATURE_HAS_DFP): Likewise.
6117 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
6118 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
6119 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
6120 Include "nat/ppc-linux.h".
6121 * nat/ppc-linux.h: New file.
6122 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
6124 2015-01-14 Pedro Alves <palves@redhat.com>
6127 * breakpoint.c: Include "interps.h".
6128 (bpstat_do_actions_1): Also check whether the interpreter is
6131 2015-01-14 Pedro Alves <palves@redhat.com>
6134 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
6135 reinstall if the interpreter is sync.
6137 2015-01-13 Doug Evans <dje@google.com>
6139 * objfiles.c (objfile_filename): New function.
6140 * objfiles.h (objfile_filename): Declare it.
6141 (objfile_name): Add function comment.
6142 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
6143 bfd file name (which may be realpath'd), and the original name.
6145 2015-01-13 Joel Brobecker <brobecker@adacore.com>
6147 * NEWS: Create a new section for the next release branch.
6148 Rename the section of the current branch, now that it has
6151 2015-01-13 Joel Brobecker <brobecker@adacore.com>
6153 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
6154 * version.in: Bump version to 7.9.50.DATE-cvs.
6156 2015-01-13 Joel Brobecker <brobecker@adacore.com>
6158 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
6159 Remove trailing new-line in argument of call to warning.
6161 2015-01-13 Joel Brobecker <brobecker@adacore.com>
6163 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
6164 new-line in argument of call to "warning".
6166 2015-01-13 Joel Brobecker <brobecker@adacore.com>
6168 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
6169 in static block, then try searching for primitive types.
6171 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
6173 * top.h (gdb_add_history): Declare.
6174 * top.c (command_count): New variable.
6175 (gdb_add_history): New function.
6176 (gdb_safe_append_history): New static function.
6177 (quit_force): Call it.
6178 (command_line_input): Use gdb_add_history instead of
6180 * event-top.c (command_line_handler): Likewise.
6182 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
6185 * darwin-nat.c: Replace <machine/setjmp.h> #include by
6186 <setjmp.h> #include.
6188 2015-01-11 Doug Evans <xdje42@gmail.com>
6190 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
6192 2015-01-11 Doug Evans <xdje42@gmail.com>
6195 * NEWS: The "maint demangle" command is renamed as "demangle".
6196 * demangle.c: #include cli/cli-utils.h, language.h.
6197 (demangle_command): New function.
6198 (_initialize_demangle): Add new command "demangle".
6199 * maint.c (maintenance_demangle): Stub out.
6200 (_initialize_maint_cmds): Update help text for "maint demangle",
6201 and mark as deprecated.
6203 2015-01-11 Mark Kettenis <kettenis@gnu.org>
6205 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
6206 inferior_thread is a function.
6208 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
6210 * Makefile.in (.y.c): Don't munge yacc's #line
6213 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
6215 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
6216 to prompt for input.
6217 * tui/tui-hooks.c (tui_query_hook): Remove.
6218 (tui_install_hooks): Don't set deprecated_query_hook.
6219 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
6220 height calculation. Always update the command window's cur_line.
6222 2015-01-09 Pedro Alves <palves@redhat.com>
6224 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
6226 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
6228 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
6229 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
6231 (check_stopped_by_watchpoint): New function.
6232 (save_sigtrap): Reimplement.
6233 (linux_nat_stopped_by_watchpoint): Adjust.
6234 (linux_nat_lp_status_is_event): Delete.
6235 (stop_wait_callback): Only call save_sigtrap after storing the
6237 (status_callback): If the thread had been stopped for a breakpoint
6238 that has since been removed, discard the event and resume the LWP.
6239 (count_events_callback, select_event_lwp_callback): Use
6240 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
6241 (cancel_breakpoint): Rename to ...
6242 (check_stopped_by_breakpoint): ... this. Record whether the LWP
6243 stopped for a software breakpoint or hardware breakpoint.
6244 (select_event_lwp): Only give preference to the stepping LWP in
6245 all-stop mode. Adjust comments.
6246 (stop_and_resume_callback): Remove references to new_pending_p.
6247 (linux_nat_filter_event): Likewise. Leave exit events of the
6248 leader thread pending here. Handle signal short circuiting here.
6249 Only call save_sigtrap after storing the pending waitstatus.
6250 (linux_nat_wait_1): Remove 'retry' label. Remove references to
6251 new_pending. Don't handle leaving events the caller is not
6252 interested in pending here, nor handle signal short-circuiting
6253 here. Also give equal priority to all LWPs that have had events
6254 in non-stop mode. If reporting a software breakpoint event,
6255 unadjust the LWP's PC.
6256 * linux-nat.h (enum lwp_stop_reason): New.
6257 (struct lwp_info) <stop_pc>: New field.
6258 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
6259 (struct lwp_info) <stop_reason>: New field.
6260 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
6262 2015-01-09 Pedro Alves <palves@redhat.com>
6264 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
6265 Set the LWP's 'resumed' flag.
6267 2015-01-09 Pedro Alves <palves@redhat.com>
6269 * linux-nat.c (linux_resume_one_lwp): New function.
6270 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
6271 (linux_nat_resume): Use lwp_status_pending_p and
6272 linux_resume_one_lwp.
6273 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
6274 (linux_handle_extended_wait): Use linux_resume_one_lwp.
6275 (status_callback, running_callback): Use lwp_status_pending_p.
6276 (lwp_status_pending_p): New function.
6277 (stop_and_resume_callback): Use lwp_status_pending_p.
6278 (linux_nat_filter_event): Use linux_resume_one_lwp.
6279 (linux_nat_wait_1): Always use status_callback to look for an LWP
6280 with a pending status. Use linux_resume_one_lwp.
6281 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
6282 linux_resume_one_lwp.
6284 2015-01-09 Pedro Alves <palves@redhat.com>
6286 * breakpoint.c (bp_location_inserted_here_p): New function,
6287 factored out from ...
6288 (breakpoint_inserted_here_p): ... here. Use
6289 ALL_BP_LOCATIONS_AT_ADDR.
6290 (software_breakpoint_inserted_here_p): Use
6291 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
6293 2014-01-09 Pedro Alves <palves@redhat.com>
6295 Skip enabling event reporting if the kernel supports
6297 * linux-thread-db.c: Include "nat/linux-ptrace.h".
6298 (thread_db_use_events): New function.
6299 (try_thread_db_load_1): Check thread_db_use_events before enabling
6301 (update_thread_state): New function.
6302 (attach_thread): Use it. Check thread_db_use_events before
6303 enabling event reporting.
6304 (thread_db_detach): Check thread_db_use_events before disabling
6306 (find_new_threads_callback): Check thread_db_use_events before
6307 enabling event reporting. Update the thread's state if not using
6308 libthread_db events.
6310 2015-01-09 Pedro Alves <palves@redhat.com>
6312 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
6313 about to wait for is > 0.
6314 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
6315 the kernel thread ID is -1.
6317 2015-01-09 Pedro Alves <palves@redhat.com>
6319 * linux-nat.c (attach_proc_task_lwp_callback): New function.
6320 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
6321 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
6322 ptrace option flags.
6323 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
6325 * nat/linux-procfs.c: Include <dirent.h>.
6326 (linux_proc_get_int): New parameter "warn". Handle it.
6327 (linux_proc_get_tgid): Adjust.
6328 (linux_proc_get_tracerpid): Rename to ...
6329 (linux_proc_get_tracerpid_nowarn): ... this.
6330 (linux_proc_pid_get_state): New function, factored out from
6331 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
6333 (linux_proc_pid_is_gone): New function.
6334 (linux_proc_pid_is_stopped): Adjust.
6335 (linux_proc_pid_is_zombie_maybe_warn)
6336 (linux_proc_pid_is_zombie_nowarn): New functions.
6337 (linux_proc_pid_is_zombie): Use
6338 linux_proc_pid_is_zombie_maybe_warn.
6339 (linux_proc_attach_tgid_threads): New function.
6340 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
6341 (linux_proc_get_tracerpid): Rename to ...
6342 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
6343 (linux_proc_pid_is_gone): New declaration.
6344 (linux_proc_pid_is_zombie): Update comment.
6345 (linux_proc_pid_is_zombie_nowarn): New declaration.
6346 (linux_proc_attach_lwp_func): New typedef.
6347 (linux_proc_attach_tgid_threads): New declaration.
6348 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
6349 use nowarn functions.
6350 (linux_ptrace_attach_fail_reason_string): Move here from
6351 gdbserver/linux-low.c and rename.
6352 (ptrace_supports_feature): If the current ptrace options are not
6353 known yet, check them now, instead of asserting.
6354 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
6357 2015-01-09 Pedro Alves <palves@redhat.com>
6359 * linux-thread-db.c (thread_db_find_new_threads_silently)
6360 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
6361 (find_new_threads_once): Print debug output on gdb_stdlog.
6363 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
6364 Pedro Alves <palves@redhat.com>
6366 * compile/compile.c: Include "gdb_wait.h".
6367 (do_rmdir): Check return value, and free 'zap'.
6369 2015-01-08 Pedro Alves <palves@redhat.com>
6370 Yao Qi <yao@codesourcery.com>
6372 * dwarf2loc.c (indirect_pieced_value): Don't call
6373 gdb_sign_extend. Call extract_signed_integer instead.
6374 * utils.c (gdb_sign_extend): Remove.
6375 * utils.h (gdb_sign_extend): Remove declaration.
6377 2015-01-07 Pierre Muller <muller@sourceware.org>
6380 * stabsread.c (define_symbol): Set language for C++ special symbols.
6382 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
6384 * inflow.c (initial_gdb_ttystate): Tweak comment.
6386 2015-01-07 Joel Brobecker <brobecker@adacore.com>
6388 * inflow.c (set_initial_gdb_ttystate): Add empty line after
6389 comment documenting function.
6391 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
6393 * terminal.h (set_initial_gdb_ttystate): Declare.
6394 * inflow.c (initial_gdb_ttystate): New static variable.
6395 (set_initial_gdb_ttystate): New setter.
6396 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
6397 instead of our current terminal state.
6398 * top.c (gdb_init): Call set_initial_gdb_ttystate.
6400 2015-01-07 Joel Brobecker <brobecker@adacore.com>
6402 * guile/scm-type.c (tyscm_array_1): Add comment.
6403 * python/py-type.c (typy_array_1): Add comment.
6405 2015-01-06 Joel Brobecker <brobecker@adacore.com>
6407 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
6408 error if N2 is equal to N1 - 1.
6410 2015-01-06 Joel Brobecker <brobecker@adacore.com>
6412 * python/py-type.c (typy_array_1): Do not raise negative-length
6413 exception if N2 is equal to N1 - 1.
6415 2015-01-03 Doug Evans <xdje42@gmail.com>
6417 * c-exp.y: Whitespace cleanup.
6418 (classify_inner_name): Remove extra ;.
6420 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
6422 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
6425 2015-01-02 Doug Evans <dje@google.com>
6427 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
6429 2015-01-02 Doug Evans <dje@google.com>
6431 * symtab.h (struct symbol): Fix typo in comment.
6433 2015-01-01 Joel Brobecker <brobecker@adacore.com>
6435 Update year range in copyright notice of all files.
6437 2015-01-01 Joel Brobecker <brobecker@adacore.com>
6439 * top.c (print_gdb_version): Update copyright year to 2015.
6441 2015-01-01 Joel Brobecker <brobecker@adacore.com>
6443 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6445 For older changes see ChangeLog-2014.
6451 version-control: never