1 2015-04-30 DJ Delorie <dj@redhat.com>
3 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
6 2015-04-29 Doug Evans <dje@google.com>
9 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
10 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
11 EVAL_AVOID_SIDE_EFFECTS for xmethods.
12 * extension-priv.h (struct extension_language_ops)
13 <get_xmethod_result_type>: New member.
14 * extension.c (get_xmethod_result_type): New function.
15 * extension.h (get_xmethod_result_type): Declare.
16 * python/py-xmethods.c (get_result_type_method_name): New static
18 (py_get_result_type_method_name): Ditto.
19 (gdbpy_get_xmethod_result_type): New function.
20 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
21 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
22 * python/python.c (python_extension_ops): Add
23 gdbpy_get_xmethod_result_type.
24 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
25 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
27 (value_x_unop): Ditto.
28 * value.c (result_type_of_xmethod): New function.
29 * value.h (result_type_of_xmethod): Declare.
31 2015-04-29 Gary Benson <gbenson@redhat.com>
33 * solib.c (solib_find_1): Allow fd argument to be NULL.
34 (exec_file_find): Update comment.
35 (solib_find): Likewise.
36 * exec.c (exec_file_locate_attach): Use NULL as fd
37 argument to exec_file_find to avoid having to close
39 * infrun.c (follow_exec): Likewise.
41 2015-04-28 Doug Evans <dje@google.com>
44 * python/lib/gdb/printing.py (register_pretty_printer): Handle
45 name or __name__ attributes. Handle gdb module as first argument.
47 2015-04-28 Doug Evans <dje@google.com>
50 * python/py-prettyprint.c (print_children): Verify result of children
51 iterator. Provide better error message.
52 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
53 * python/python.c (gdbpy_print_python_errors_p): New function.
55 2015-04-28 Doug Evans <dje@google.com>
57 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
59 2015-04-28 Sasha Smundak <asmundak@google.com>
61 * NEWS: Mention gdb.Type.optimized_out method.
62 * python/py-type.c (typy_optimized_out): New function.
64 2015-04-28 John Baldwin <jhb@FreeBSD.org>
66 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
68 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
70 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
71 (initialize_utils): Move call of init_page_info() to ...
72 * top.c (gdb_init): ... here.
74 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
76 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
77 (tui_sigwinch_handler): Still update our idea of
78 the terminal's width and height even when TUI is not active.
80 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
82 * utils.h (set_screen_width_and_height): Declare.
83 * utils.c (set_screen_width_and_height): Define.
84 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
86 2015-04-28 Gary Benson <gbenson@redhat.com>
88 * infrun.c (solist.h): New include.
89 (follow_exec): Use exec_file_find to prefix execd_pathname
92 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
94 * tui/tui-source.c (tui_set_source_content): Avoid calling
95 strcpy() when offset is 0.
97 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
100 * tui/tui-data.c (tui_free_window): Don't free the locator
101 window when passed an SRC_WIN or a DISASSEM_WIN.
103 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
105 * tui/tui-data.h (struct tui_win_element): Forward-declare.
106 (tui_win_content): Move declaration.
107 (struct tui_gen_win_info): Give 'content' field the
108 type tui_win_content.
109 * tui/tui-data.c (init_content_element): Remove redundant and
111 (tui_add_content_elements): Remove erroneous cast.
112 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
114 (tui_get_begin_asm_address): Likewise.
115 * tui/tui-regs.c (tui_show_registers): Likewise.
116 (tui_show_register_group): Likewise.
117 (tui_display_registers_from): Likewise.
118 (tui_check_register_values): Likewise.
119 * tui/tui-source.c (tui_set_source_content): Likewise.
120 (tui_set_source_content_nil): Likewise.
121 (tui_source_is_displayed): Likewise.
122 * tui/tui-stack.c (tui_show_locator_content): Likewise.
123 (tui_set_locator_fullname): Likewise.
124 (tui_set_locator_info): Likewise.
125 (tui_show_frame_info): Likewise.
126 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
127 (tui_show_source_line): Likewise.
128 (tui_horizontal_source_scroll): Likewise.
129 (tui_update_breakpoint_info): Likewise.
130 (tui_set_exec_info_content): Likewise.
131 (tui_show_exec_info_content): Likewise.
132 (tui_alloc_source_buffer): Likewise.
133 (tui_line_is_displayed): Likewise.
134 (tui_addr_is_displayed): Likewise.
136 2015-04-27 John Baldwin <jhb@FreeBSD.org>
138 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
139 event if PL_FLAG_EXEC is set.
140 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
141 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
142 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
143 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
144 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
146 2015-04-27 John Baldwin <jhb@FreeBSD.org>
148 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
149 [TDP_RFPPWAIT] New variable fbsd_pending_children.
150 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
151 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
152 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
153 [PT_LWPINFO] (fbsd_wait): New function.
154 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
155 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
156 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
157 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
158 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
159 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
160 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
161 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
162 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
164 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
165 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
166 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
167 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
168 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
169 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
170 Set "to_post_attach" to "fbsd_post_attach".
172 2015-04-27 John Baldwin <jhb@FreeBSD.org>
174 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
175 (fbsd_find_memory_regions): Mark static.
176 (fbsd_nat_add_target): New function.
177 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
178 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
179 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
180 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
181 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
182 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
184 2015-04-27 Gary Benson <gbenson@redhat.com>
186 * objfiles.c (allocate_objfile): Do not attempt to expand name
187 if name is a "target:" filename.
188 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
189 to load auto-load scripts for objfiles with "target:" filenames.
191 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
193 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
194 (enum s390_vector_abi_kind): New enum.
195 (struct gdbarch_tdep)<vector_abi>: New field.
196 (s390_effective_inner_type): Add parameter min_size. Stop
197 unwrapping if the inner type is smaller than min_size.
198 (s390_function_arg_float): Adjust call to
199 s390_effective_inner_type.
200 (s390_function_arg_vector): New function.
201 (s390_function_arg_integer): Adjust comment.
202 (struct s390_arg_state)<vr>: New field.
203 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
204 arguments according to vector ABI when appropriate.
205 (s390_push_dummy_call): Initialize the argument state's field
206 'vr'. Adjust calls to s390_handle_arg.
207 (s390_register_return_value): Handle vector return values.
208 (s390_return_value): Apply the "register" return value convention
209 to a vector when appropriate.
210 (s390_gdbarch_init): Initialize tdep->vector_abi.
211 * NEWS: Announce S390 vector ABI support.
213 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
215 * s390-linux-tdep.c (s390_return_value_convention): Remove
216 function. Inline its logic...
217 (s390_return_value): ...here. Instead, move the handling of the
218 "register" return value convention...
219 (s390_register_return_value): ...here. New function.
221 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
224 (is_float_singleton): Remove function. Move the "singleton" part
226 (s390_effective_inner_type): ...here. New function.
227 (is_float_like): Remove function. Inline its logic...
228 (s390_function_arg_float): ...here.
229 (is_pointer_like, is_integer_like, is_struct_like): Remove
230 functions. Inline their logic...
231 (s390_function_arg_integer): ...here.
232 (s390_function_arg_pass_by_reference): Remove function.
233 (extend_simple_arg): Remove function.
234 (alignment_of): Remove function.
235 (struct s390_arg_state): New structure.
236 (s390_handle_arg): New function.
237 (s390_push_dummy_call): Move parameter placement logic to the new
238 function s390_handle_arg. Call it for calculating the stack area
239 sizes first, and again for actually writing the parameters.
241 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
243 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
244 false if the argument is zero.
246 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
248 * ada-lang.c (template_to_static_fixed_type): Return input type
249 when it is already fixed. Cache the input type itself when not
250 creating a static fixed copy. Make it explicit that we never
251 molestate the input type.
252 * gdbtypes.c (resolve_dynamic_struct): Reset the
253 TYPE_TARGET_TYPE field for resolved copies.
255 2015-04-27 Joel Brobecker <brobecker@adacore.com>
257 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
258 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
259 (template_to_static_fixed_type): Call ada_check_typedef only
262 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
264 * cli/cli-dump.c (srec_dump_command): Add internationalization
266 (ihex_dump_command): Likewise.
267 (tekhex_dump_command): Likewise.
268 (binary_dump_command): Likewise.
269 (binary_append_command): Likewise.
271 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
273 * cli/cli-dump.c (verilog_cmdlist): New variable.
274 (dump_verilog_memory): New function.
275 (dump_verilog_value): New function.
276 (verilog_dump_command): New function.
277 (_initialize_cli_dump): Add new commands to support verilog dump
279 * NEWS: Add entry for "dump verilog".
281 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
283 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
284 descriptive type when there is none.
286 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
288 * tui/tui-win.c (tui_async_resize_screen): Call
289 rl_resize_terminal().
291 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
293 * windows-nat.c (handle_output_debug_string): Don't change
294 current_event.dwThreadId.
295 (get_windows_debug_event): Use thread_id, rather than relying on
296 current_event.dwThreadId being changed.
298 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
300 * windows-nat.c (windows_continue): Report an error if
301 ContinueDebugEvent() fails.
303 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
305 * windows-nat.c (windows_resume): Fix misspelling in debug output.
307 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
309 * windows-nat.c (get_windows_debug_event): Replace retval with
310 thread_id throughout. Update stale comment.
312 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
314 * windows-nat.c (get_windows_debug_event): Don't use ternary
315 conditional operator.
317 2015-04-21 Pierre Muller <muller@sourceware.org>
320 p-exp.y (yylex): Reorganize code to return the matched pattern
323 2015-04-21 Gary Benson <gbenson@redhat.com>
325 * common/fileio.h (fileio_to_host_openflags): New declaration.
326 * common/fileio.c (fcntl.h): New include.
327 (fileio_to_host_openflags): New function, factored out from...
328 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
331 2015-04-21 Kevin Buettner <kevinb@redhat.com>
333 * rl78-tdep.c (RL78_SP_ADDR): Define.
334 (opc_reg_to_gdb_regnum): New static function.
335 (rl78_analyze_prologue): Recognize instructions forming slightly
336 more interesting prologues.
338 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
341 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
342 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
343 TYPE_CODE_REF types so that they are not considered as dynamic
344 depending on the referenced type.
345 (resolve_dynamic_type_internal): Likewise.
347 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
350 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
351 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
352 "top_level" parameter.
353 (resolve_dynamic_type_internal): Remove the unused "top_level"
354 parameter. Update call to is_dynamic_type_internal.
355 (is_dynamic_type): Update call to is_dynamic_type_internal.
356 (resolve_dynamic_range): Update call to
357 resolve_dynamic_type_internal.
358 (resolve_dynamic_union): Likewise.
359 (resolve_dynamic_struct): Likewise.
360 (resolve_dynamic_type): Likewise.
362 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
364 * breakpoint.c (update_dprintf_command_list): Remove duplicated
367 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
369 * reply_mig_hack.awk: Robustify parsing.
371 * reply_mig_hack.awk: Don't bother to declare an intermediate
372 function pointer variable.
374 2015-04-17 Doug Evans <dje@google.com>
376 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
377 to "exec_displacement" to avoid confusion with inner use of the name.
379 2015-04-17 Pedro Alves <palves@redhat.com>
381 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
382 if HW point of TYPE isn't supported.
384 2015-04-17 Yao Qi <yao.qi@linaro.org>
385 Pedro Alves <palves@redhat.com>
387 * target.h (target_can_use_hardware_watchpoint): Update comments.
390 2015-04-17 Gary Benson <gbenson@redhat.com>
392 * remote.c (remote_add_inferior): New argument try_open_exec.
393 If nonzero, attempt to open the inferior's executable file as
394 the main executable if no main executable is open already.
396 * NEWS: Mention that GDB now supports automatic location and
397 retrieval of executable + files from remote targets.
399 2015-04-17 Gary Benson <gbenson@redhat.com>
401 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
402 * remote.c (PACKET_qXfer_exec_file): Likewise.
403 (remote_protocol_features): Register the
404 "qXfer:exec-file:read" feature.
405 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
406 (remote_pid_to_exec_file): New function.
407 (init_remote_ops): Initialize to_pid_to_exec_file.
408 (_initialize_remote): Register new "set/show remote
409 pid-to-exec-file-packet" command.
410 * NEWS: Announce new qXfer:exec-file:read packet.
412 2015-04-17 Gary Benson <gbenson@redhat.com>
414 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
416 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
417 New function, factored out from...
418 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
420 2015-04-17 Gary Benson <gbenson@redhat.com>
422 * exec.c (solist.h): New include.
423 (exec_file_locate_attach): Prefix absolute executable
424 paths with gdb_sysroot if set.
425 * NEWS: Mention that executable paths may be prepended
428 2015-04-17 Gary Benson <gbenson@redhat.com>
430 * solist.h (exec_file_find): New declaration.
431 * solib.c (solib_find_1): New function, factored out from...
432 (solib_find): ...here.
433 (exec_file_find): New function.
435 2015-04-17 Gary Benson <gbenson@redhat.com>
437 * gdbcore.h (exec_file_locate_attach): New declaration.
438 * exec.c (exec_file_locate_attach): New function, factored
440 * infcmd.c (attach_command_post_wait): ...here.
442 2015-04-17 Mike Frysinger <vapier@gentoo.org>
444 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
446 2015-04-16 Yao Qi <yao.qi@linaro.org>
448 * infrun.c (maybe_software_singlestep): Declare.
449 (displaced_step_fixup): Call maybe_software_singlestep.
451 2015-04-15 Doug Evans <dje@google.com>
453 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
455 2015-04-15 Doug Evans <dje@google.com>
457 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
459 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
461 * python/lib/gdb/command/unwinders.py: Add parentheses.
463 2015-04-15 Yao Qi <yao.qi@linaro.org>
465 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
467 2015-04-15 Yao Qi <yao.qi@linaro.org>
469 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
471 2015-04-15 Yao Qi <yao.qi@linaro.org>
473 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
474 dsc->insn_size instead of 4.
476 2015-04-14 Gary Benson <gbenson@redhat.com>
478 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
479 * minidebug.c (lzma_stat): Likewise.
480 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
481 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
483 2015-04-13 Stan Shebs <stanshebs@google.com>
485 * MAINTAINERS: Update my email address.
487 2015-04-13 John Baldwin <jhb@FreeBSD.org>
489 * amd64-tdep.c (amd64_target_description): New function.
490 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
491 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
492 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
493 x86 extended save area.
494 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
495 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
496 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
497 (_initialize_amd64fbsd_nat): Set "to_read_description" to
498 "amd64fbsd_read_description".
499 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
500 (amd64fbsd_supply_xstateregset): New function.
501 (amd64fbsd_collect_xstateregset): New function.
502 Add "amd64fbsd_xstateregset".
503 (amd64fbsd_iterate_over_regset_sections): New function.
504 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
505 "I386_FBSD_XSAVE_XCR0_OFFSET".
506 Add "iterate_over_regset_sections" gdbarch method.
507 Add "core_read_description" gdbarch method.
508 * i386-tdep.c (i386_target_description): New function.
509 * i386-tdep.h: Export i386_target_description and tdesc_i386.
510 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
511 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
512 x86 extended save area.
513 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
514 * i386bsd-nat.h: Export i386bsd_xsave_len.
515 * i386fbsd-nat.c (i386fbsd_read_description): New function.
516 (_initialize_i386fbsd_nat): Set "to_read_description" to
517 "i386fbsd_read_description".
518 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
519 (i386fbsd_core_read_description): New function.
520 (i386fbsd_supply_xstateregset): New function.
521 (i386fbsd_collect_xstateregset): New function.
522 Add "i386fbsd_xstateregset".
523 (i386fbsd_iterate_over_regset_sections): New function.
524 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
525 "I386_FBSD_XSAVE_XCR0_OFFSET".
526 Add "iterate_over_regset_sections" gdbarch method.
527 Add "core_read_description" gdbarch method.
528 * i386fbsd-tdep.h: New file.
530 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
532 * NEWS (Changes since GDB 7.9): Add removed -xdb.
533 * breakpoint.c (command_line_is_silent): Remove xdb_commands
535 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
537 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
539 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
541 * defs.h (xdb_commands): Remove declaration.
542 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
543 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
544 * infcmd.c (run_no_args_command, go_command): Remove.
545 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
546 * infrun.c (xdb_handle_command): Remove.
547 (_initialize_infrun): Remove xdb_commands for lz and z.
548 * main.c (xdb_commands): Remove variable.
549 (captured_main): Remove "xdb" from long_options.
550 (print_gdb_help): Remove --xdb from help.
551 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
552 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
553 * stack.c (backtrace_full_command, args_plus_locals_info)
554 (current_frame_command): Remove.
555 (_initialize_stack): Remove xdb_commands for t, T and l.
556 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
557 * thread.c (_initialize_thread): Remove xdb_commands condition.
558 * tui/tui-layout.c (tui_toggle_layout_command)
559 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
560 (_initialize_tui_layout): Remove xdb_commands for td and ts.
561 * tui/tui-regs.c (tui_scroll_regs_forward_command)
562 (tui_scroll_regs_backward_command): Remove.
563 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
564 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
565 (_initialize_tui_win): Remove xdb_commands for U and w.
566 * utils.c (pagination_on_command, pagination_off_command): Remove.
567 (initialize_utils): Remove xdb_commands for am and sm.
569 2015-04-10 Pedro Alves <palves@redhat.com>
571 * infrun.c (displaced_step_fixup): Switch to the event ptid
572 earlier. If the thread stopped for a watchpoint and the
573 target/arch has non-continuable watchpoints, cancel the displaced
575 (resume): Don't start a displaced step if in-line step-over info
578 2015-04-10 Pedro Alves <palves@redhat.com>
580 * infrun.c (displaced_step_in_progress): New function.
581 (do_target_resume): Advise target to report all signals if
584 2015-04-10 Pedro Alves <palves@redhat.com>
587 * infrun.c (process_event_stop_test): Don't assume a step-resume
588 is set if tp->stepped_breakpoint is true.
590 2015-04-10 Yao Qi <yao.qi@linaro.org>
592 * arm-tdep.c (install_alu_reg): Update comment.
593 (thumb_copy_alu_reg): Remove local variable rn. Update
594 debugging message. Use r2 instead of r1 in the modified
597 2015-04-10 Pedro Alves <palves@redhat.com>
600 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
601 linux_displaced_step_location as gdbarch_displaced_step_location
603 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
604 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
605 * linux-tdep.c (linux_displaced_step_location): New function,
606 based on ppc_linux_displaced_step_location.
607 * linux-tdep.h (linux_displaced_step_location): New declaration.
608 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
609 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
611 (ppc_linux_init_abi): Install linux_displaced_step_location as
612 gdbarch_displaced_step_location hook, even without Cell/B.E..
613 (_initialize_ppc_linux_tdep): Don't install
614 ppc_linux_inferior_created as inferior_created observer.
615 * s390-linux-tdep.c (s390_gdbarch_init): Install
616 linux_displaced_step_location as gdbarch_displaced_step_location
619 2015-04-09 Gary Benson <gbenson@redhat.com>
621 * common/common-remote-fileio.h: Rename to...
622 * common/fileio.h: ...this. Update all references.
623 (remote_fileio_to_fio_error): Rename to...
624 (host_to_fileio_error): ...this.
625 (remote_fileio_to_be): Rename to...
626 (host_to_bigendian): ...this. Update all callers.
627 (remote_fileio_to_fio_uint): Rename to...
628 (host_to_fileio_uint): ...this. Update all callers.
629 (remote_fileio_to_fio_time): Rename to...
630 (host_to_fileio_time): ...this. Update all callers.
631 (remote_fileio_to_fio_stat): Rename to...
632 (host_to_fileio_stat): ...this.
633 Update all references.
634 * common/common-remote-fileio.c: Rename to...
635 * common/fileio.c: ...this. Update all references.
636 (remote_fileio_to_fio_error): Rename to...
637 (host_to_fileio_error): ...this. Update all callers.
638 (remote_fileio_mode_to_target): Rename to...
639 (fileio_mode_pack): ...this. Update all callers.
640 (remote_fileio_to_fio_mode): Rename to...
641 (host_to_fileio_mode): ...this. Update all callers.
642 (remote_fileio_to_fio_ulong): Rename to...
643 (host_to_fileio_ulong): ...this. Update all callers.
644 (remote_fileio_to_fio_stat): Rename to...
645 (host_to_fileio_stat): ...this. Update all callers.
647 2015-04-09 Andy Wingo <wingo@igalia.com>
649 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
650 (frame_functions): Bind gdbscm_frame_read_register to
652 * guile/lib/gdb.scm (frame-read-register): Export.
654 2015-04-09 Gary Benson <gbenson@redhat.com>
656 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
658 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
659 New function, factored out the named functions below.
660 * inf-child.c (gdb/fileio.h): Remove include.
661 (common-remote-fileio.h): New include.
662 (inf_child_errno_to_fileio_error): Remove function. Update
663 all callers to use remote_fileio_to_fio_error.
664 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
666 2015-04-09 Andy Wingo <wingo@igalia.com>
668 * MAINTAINERS (Write After Approval): Add Andy Wingo.
670 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
672 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
673 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
674 * configure: Regenerated.
676 2015-04-09 Pedro Alves <palves@redhat.com>
678 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
679 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
680 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
681 * gnulib/import/Makefile.am: Update.
682 * gnulib/import/Makefile.in: Update.
683 * gnulib/import/m4/gnulib-cache.m4: Update.
684 * gnulib/import/m4/gnulib-comp.m4: Update.
685 * gnulib/import/m4/strtok_r.m4: New file.
686 * gnulib/import/strtok_r.c: New file.
688 2015-04-09 Pedro Alves <palves@redhat.com>
690 * gnulib/update-gnulib.sh (aclocal version check): Filter out
691 "called too early to check prototype".
693 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
696 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
697 use a caching mechanism. Adjust comments and code to reflect
698 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
699 (cmdpy_completer_handle_brkchars): Adjust call to
700 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
701 (cmdpy_completer): Likewise.
703 2015-04-08 Yao Qi <yao.qi@linaro.org>
705 * spu-tdep.c (spu_gdbarch_init): Don't call
706 set_gdbarch_cannot_step_breakpoint.
708 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
710 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
712 2015-04-07 Pedro Alves <palves@redhat.com>
714 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
715 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
716 (delete_exited_threads): New declaration.
717 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
718 * linux-nat.c (linux_nat_update_thread_list): New function.
719 (linux_nat_add_target): Install it.
720 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
721 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
722 (delete_exited_threads): New function.
724 2015-04-07 Pedro Alves <pedro@codesourcery.com>
726 * infrun.c (resume) <displaced stepping debug output>: Get the
727 leader thread's regcache, not resume_ptid's.
729 2015-04-06 Doug Evans <xdje42@gmail.com>
731 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
733 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
734 Include symbol domain in debugging output.
736 2015-04-06 Pedro Alves <palves@redhat.com>
737 Bernd Edlinger <bernd.edlinger@hotmail.de>
739 * configure.ac: Remove the mingw32-specific stub-termcap.o
740 fallback, and instead fallback to the stub termcap on all hosts.
741 * configure: Regenerate.
742 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
745 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
747 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
748 "top_level" parameter.
749 (resolve_dynamic_type_internal): Remove the unused "top_level"
750 parameter. Update call to is_dynamic_type_internal.
751 (is_dynamic_type): Update call to is_dynamic_type_internal.
752 (resolve_dynamic_range): Update call to
753 resolve_dynamic_type_internal.
754 (resolve_dynamic_union): Likewise.
755 (resolve_dynamic_struct): Likewise.
756 (resolve_dynamic_type): Likewise.
758 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
760 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
761 TYPE_CODE_REF types so that they are not considered as dynamic
762 depending on the referenced type.
763 (resolve_dynamic_type_internal): Likewise.
765 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
767 * Makefile.in (top_srcdir): New.
768 * configure: Regenerated.
770 2015-04-02 Gary Benson <gbenson@redhat.com>
772 * NEWS: Announce the new default sysroot of "target:".
774 2015-04-02 Gary Benson <gbenson@redhat.com>
776 * main.c (captured_main): Set gdb_sysroot to "target:"
777 if not otherwise set.
779 2015-04-02 Gary Benson <gbenson@redhat.com>
781 * exec.c (exec_file_attach): Support "target:" filenames.
783 2015-04-02 Gary Benson <gbenson@redhat.com>
785 * solib.c (solib_find): Strip "target:" prefix from sysroot
786 if accessing local files.
788 2015-04-02 Gary Benson <gbenson@redhat.com>
790 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
791 checks and error messages.
793 2015-04-02 Gary Benson <gbenson@redhat.com>
795 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
796 (remote_filename_p): Remove declaration.
797 (remote_bfd_open): Likewise.
798 * remote.c (remote_bfd_iovec_open): Remove function.
799 (remote_bfd_iovec_close): Likewise.
800 (remote_bfd_iovec_pread): Likewise.
801 (remote_bfd_iovec_stat): Likewise.
802 (remote_filename_p): Likewise.
803 (remote_bfd_open): Likewise.
804 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
805 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
806 (gdb_bfd_open_maybe_remote): Remove function.
807 (symfile_bfd_open): Replace remote filename check with
808 target filename check.
809 (reread_symbols): Use gdb_bfd_open.
810 * build-id.c (gdbcore.h): New include.
811 (build_id_to_debug_bfd): Use gdb_bfd_open.
812 * infcmd.c (attach_command_post_wait): Remove remote filename
814 * solib.c (solib_find): Replace remote-specific handling with
815 target-specific handling. Update comments where necessary.
816 (solib_bfd_open): Replace remote-specific handling with
817 target-specific handling.
818 (gdb_sysroot_changed): New function.
819 (_initialize_solib): Call the above when gdb_sysroot changes.
820 * windows-tdep.c (gdbcore.h): New include.
821 (windows_xfer_shared_library): Use gdb_bfd_open.
823 2015-04-02 Gary Benson <gbenson@redhat.com>
825 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
826 (is_target_filename): New declaration.
827 (gdb_bfd_has_target_filename): Likewise.
828 (gdb_bfd_open): Update documentation comment.
829 * gdb_bfd.c (target.h): New include.
830 (gdb/fileio.h): Likewise.
831 (is_target_filename): New function.
832 (gdb_bfd_has_target_filename): Likewise.
833 (fileio_errno_to_host): Likewise.
834 (gdb_bfd_iovec_fileio_open): Likewise.
835 (gdb_bfd_iovec_fileio_pread): Likewise.
836 (gdb_bfd_iovec_fileio_close): Likewise.
837 (gdb_bfd_iovec_fileio_fstat): Likewise.
838 (gdb_bfd_open): Use target fileio to access paths prefixed
839 with "target:" where necessary.
841 2015-04-02 Gary Benson <gbenson@redhat.com>
843 * target.h (struct target_ops) <to_filesystem_is_local>:
845 (target_filesystem_is_local): New macro.
846 * target-delegates.c: Regenerate.
847 * remote.c (remote_filesystem_is_local): New function.
848 (init_remote_ops): Initialize to_filesystem_is_local.
850 2015-04-02 Gary Benson <gbenson@redhat.com>
852 * target.h (struct target_ops) <to_fileio_fstat>: New field.
853 (target_fileio_fstat): New declaration.
854 * target.c (target_fileio_fstat): New function.
855 * inf-child.c (inf_child_fileio_fstat): Likewise.
856 (inf_child_target): Initialize to_fileio_fstat.
857 * remote.c (init_remote_ops): Likewise.
859 2015-04-01 Sasha Smundak <asmundak@google.com>
861 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
862 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
863 (py-unwind.o): New recipe.
864 * NEWS: mention Python frame unwinding.
865 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
866 gdb/unwinder.py and gdb/command/unwinder.py
867 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
869 (execute_unwinders): New function.
870 * python/lib/gdb/command/unwinders.py: New file.
871 * python/lib/gdb/unwinder.py: New file.
872 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
873 (objfpy_dealloc): Decrement frame_unwinders reference count.
874 (objfpy_initialize): Create frame_unwinders list.
875 (objfpy_get_frame_unwinders): New function.
876 (objfpy_set_frame_unwinders): Ditto.
877 (objfile_getset): Add frame_unwinders attribute to Objfile.
878 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
879 (pspy_dealloc): Decrement frame_unwinders reference count.
880 (pspy_initialize): Create frame_unwinders list.
881 (pspy_get_frame_unwinders): New function.
882 (pspy_set_frame_unwinders): Ditto.
883 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
884 * python/py-unwind.c: New file.
885 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
886 (objpy_get_frame_unwinders): New prototype.
887 (gdbpy_initialize_unwind): New prototype.
888 * python/python.c (gdbpy_apply_type_printers): Call
889 gdbpy_initialize_unwind.
891 2015-04-01 Pedro Alves <palves@redhat.com>
893 * infrun.c (resume): Check currently_stepping after clearing
894 stepped_breakpoint, not before.
896 2015-04-01 Pedro Alves <palves@redhat.com>
898 * infrun.c (print_target_wait_results): Print all the ptid
901 2015-04-01 Pedro Alves <palves@redhat.com>
903 * infrun.c (keep_going): Also discard cleanups if inserting
906 2015-04-01 Pedro Alves <palves@redhat.com>
908 * infrun.c (wait_for_inferior): Install the
909 finish_thread_state_cleanup cleanup across the whole function, not
910 just around handle_inferior_event.
912 2015-04-01 Pedro Alves <palves@redhat.com>
914 * infrun.c (resume) <step past permanent breakpoint>: Use
917 2015-04-01 Pedro Alves <palves@redhat.com>
919 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
921 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
923 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
925 2015-04-01 Pedro Alves <palves@redhat.com>
927 * linux-thread-db.c (record_thread): Readd the thread to gdb's
928 list if it was marked exited.
930 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
932 * configure: Regenerated.
934 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
935 Jan Kratochvil <jan.kratochvil@redhat.com>
936 Oleg Nesterov <oleg@redhat.com>
939 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
940 New enum identifying the various options of the coredump_filter
942 (struct smaps_vmflags): New struct.
943 (use_coredump_filter): New variable.
944 (decode_vmflags): New function.
945 (mapping_is_anonymous_p): Likewise.
946 (dump_mapping_p): Likewise.
947 (linux_find_memory_regions_full): New variables
948 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
949 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
950 parsing of its information. Implement memory mapping filtering
951 based on its contents.
952 (show_use_coredump_filter): New function.
953 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
954 * NEWS: Mention the possibility of using the
955 '/proc/PID/coredump_filter' file when generating a corefile.
956 Mention new command 'set use-coredump-filter'.
958 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
960 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
961 read_memory_unsigned_integer.
963 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
965 * Makefile.in (ZLIB): New.
967 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
968 (CLIBS): Add $(ZLIB).
969 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
971 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
972 * top.c (print_gdb_configuration): Remove --with-zlib and
974 * config.in: Regenerated.
975 * configure: Likewise.
977 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
979 * NEWS: Mention info os cpus support.
980 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
981 (struct osdata_type): Add cpus entry, reorder the entries in
984 2015-03-31 Matthias Klose <doko@ubuntu.com>
986 * compile/compile.c (compile_to_object): Allow triplets with or
989 2015-03-30 Doug Evans <dje@google.com>
992 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
995 2015-03-30 Gary Benson <gbenson@redhat.com>
997 * remote.c (remote_mourn_1): Remove function. Update all callers
999 (extended_remote_mourn_1): Remove function. Update all callers
1000 to use extended_remote_mourn.
1001 (extended_remote_attach_1): Remove function. Update all callers
1002 to use extended_remote_attach.
1004 2015-03-28 James Bowman <james.bowman@ftdichip.com>
1006 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
1007 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
1008 (ALLDEPFILES): Add ft32-tdep.c.
1009 * configure.tgt: Add FT32 entry.
1010 * ft32-tdep.c: New file, FT32 target-dependent code.
1011 * ft32-tdep.h: New file, FT32 target-dependent code.
1013 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1016 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1018 * printcmd.c (print_command_1): Move expr variable scope.
1020 2015-03-27 Joel Brobecker <brobecker@adacore.com>
1022 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
1024 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
1026 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
1029 2015-03-26 Joel Brobecker <brobecker@adacore.com>
1031 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
1032 exception raised while parsing the probe arguments.
1033 Force parsing to be done using the C language parser.
1034 * expression.h (parse_expression_with_language): Declare.
1035 * parse.c (parse_expression_with_language): New function.
1037 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
1039 * MAINTAINERS (Write After Approval): Add "Jon Turney".
1041 2015-03-26 Andy Wingo <wingo@igalia.com>
1044 * dwarf2read.c (struct partial_die_info): Add has_const_value
1046 (add_partial_symbol): Don't punt on symbols that have const_value
1048 (read_partial_die): Detect DW_AT_const_value.
1050 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1053 * printcmd.c (print_command_1): Move expr variable scope.
1055 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1058 * printcmd.c (validate_format): Make the parameter cmdname const.
1060 2015-03-26 Don Breazeal <donb@codesourcery.com>
1062 * remote.c (_initialize_remote): Update comment.
1064 2015-03-26 Pedro Alves <palves@redhat.com>
1065 Jon TURNEY <jon.turney@dronecode.org.uk>
1067 * coffread.c (coff_symfile_read): When constructing the name of an
1068 import stub symbol from import symbol for amd64, only skip the
1069 char after _imp_ if the target is underscored (like i386) and the
1070 char is indeed the target's leading char.
1072 2015-03-25 Pedro Alves <palves@redhat.com>
1074 * target.h <to_async>: Replace 'callback' and 'context' parameters
1075 with boolean 'enable' parameter.
1076 (target_async): Replace CALLBACK and CONTEXT parameters with
1077 boolean ENABLE parameter.
1078 * inf-loop.c (inferior_event_handler): Adjust.
1079 * linux-nat.c (linux_nat_attach, linux_nat_resume)
1080 (linux_nat_resume): Adjust.
1081 (async_client_callback, async_client_context): Delete.
1082 (handle_target_event): Call inferior_event_handler directly.
1083 (linux_nat_async): Replace 'callback' and 'context' parameters
1084 with boolean 'enable' parameter. Adjust. Remove references to
1085 async_client_callback and async_client_context.
1086 (linux_nat_close): Adjust.
1087 * record-btrace.c (record_btrace_async): Replace 'callback' and
1088 'context' parameters with boolean 'enable' parameter. Adjust.
1089 (record_btrace_resume): Adjust.
1090 * record-full.c (record_full_async): Replace 'callback' and
1091 'context' parameters with boolean 'enable' parameter. Adjust.
1092 (record_full_resume, record_full_core_resume): Adjust.
1093 * remote.c (struct remote_state) <async_client_callback,
1094 async_client_context>: Delete fields.
1095 (remote_start_remote, extended_remote_attach_1, remote_resume)
1096 (extended_remote_create_inferior): Adjust.
1097 (remote_async_serial_handler): Call inferior_event_handler
1099 (remote_async): Replace 'callback' and 'context' parameters with
1100 boolean 'enable' parameter. Adjust.
1101 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
1103 * target-delegates.c: Regenerate.
1105 2015-03-25 Gary Benson <gbenson@redhat.com>
1106 Pedro Alves <palves@redhat.com>
1108 * target.c (fileio_ft_t): New typedef, define object vector.
1109 (fileio_fhandles): New static variable.
1110 (is_closed_fileio_fh): New macro.
1111 (lowest_closed_fd): New static variable.
1112 (acquire_fileio_fd): New function.
1113 (release_fileio_fd): Likewise.
1114 (fileio_fd_to_fh): New macro.
1115 (target_fileio_open): Wrap the file descriptor on success.
1116 (target_fileio_pwrite): Updated to use wrapped file descriptor.
1117 (target_fileio_pread): Likewise.
1118 (target_fileio_close): Likewise.
1120 2015-03-24 Pedro Alves <palves@redhat.com>
1122 * thread.c (thread_apply_all_command): Take exited threads into
1125 2015-03-24 Pedro Alves <palves@redhat.com>
1127 * infrun.c (resume, proceed): Mention
1128 switch_back_to_stepped_thread, not switch_back_to_stepping.
1130 2015-03-24 Pedro Alves <palves@redhat.com>
1132 * infrun.c (user_visible_resume_ptid): Rewrite going from
1133 most-locked to unlocked instead of the opposite. Move comment ...
1134 * infrun.h (user_visible_resume_ptid): ... here.
1136 2015-03-24 Pedro Alves <palves@redhat.com>
1138 * linux-nat.c (linux_nat_resume): Output debug logs before trying
1139 to resume the event lwp. Use the lwp's ptid instead of the passed
1140 in (maybe wildcard) ptid.
1141 (stop_wait_callback): Tweak debug log output.
1142 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
1144 (linux_nat_filter_event): In debug output, distinguish a
1145 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
1146 before trying to resume the lwp.
1148 2015-03-24 Joel Brobecker <brobecker@adacore.com>
1150 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
1151 pointer indirection.
1152 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
1153 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
1155 2015-03-24 Joel Brobecker <brobecker@adacore.com>
1157 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
1158 Renames DYN_ATTR_DATA_LOCATION.
1159 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
1160 DYN_ATTR_DATA_LOCATION.
1161 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
1162 instead of DYN_ATTR_DATA_LOCATION.
1164 2015-03-24 Pedro Alves <palves@redhat.com>
1166 * breakpoint.c (until_break_command): Adjust call to proceed.
1167 * gdbthread.h (struct thread_control_state) <stepping_command>:
1169 * infcall.c (run_inferior_call): Adjust call to proceed.
1170 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
1171 Adjust calls to proceed.
1172 (set_step_frame): Set the current thread's step_start_function
1174 (step_once): Adjust calls to proceed.
1175 (jump_command, signal_command, until_next_command)
1176 (finish_backward, finish_forward, proceed_after_attach_callback)
1177 (attach_command_post_wait): Adjust calls to proceed.
1178 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
1179 (do_target_resume): New function, factored out from ...
1180 (resume): ... here. Remove 'step' parameter. Instead, check
1181 currently_stepping to determine whether the thread should be
1183 (proceed): Remove 'step' parameter and don't set the thread's
1184 step_start_function here. Adjust call to 'resume'.
1185 (handle_inferior_event): Adjust calls to 'resume'.
1186 (switch_back_to_stepped_thread): Use do_target_resume instead of
1188 (keep_going): Adjust calls to 'resume'.
1189 * infrun.h (proceed): Remove 'step' parameter.
1191 * windows-nat.c (do_initial_windows_stuff): Adjust call to
1193 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
1195 2015-03-24 Pedro Alves <palves@redhat.com>
1197 * gdbthread.h (struct thread_control_state) <stepping_command>:
1199 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
1200 the thread's stepping_command field.
1201 * infrun.c (resume): Check the thread's stepping_command flag to
1202 determine which threads should be resumed. Rename 'entry_step'
1204 (clear_proceed_status_thread): Clear 'stepping_command'.
1205 (schedlock_applies): Change parameter type to struct thread_info
1207 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
1208 (switch_back_to_stepped_thread): Adjust calls to
1209 'schedlock_applies'.
1210 (_initialize_infrun): Adjust "set scheduler-locking step" help.
1212 2015-03-24 Pedro Alves <palves@redhat.com>
1214 * infrun.c (step_start_function): Delete and ...
1215 * gdbthread.h (struct thread_control_state) <step_start_function>:
1216 ... now a field here.
1217 * infrun.c (clear_proceed_status_thread): Clear the thread's
1218 step_start_function.
1219 (proceed, process_event_stop_test, print_stop_event): Adjust.
1221 2015-03-24 Pedro Alves <palves@redhat.com>
1223 * infrun.c (proceed): No longer handle negative step.
1225 2015-03-24 Gary Benson <gbenson@redhat.com>
1227 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
1228 (x86_linux_prepare_to_resume): Likewise.
1229 * x86-linux-nat.c (x86_linux_new_thread):
1230 Moved to nat/x86-linux.c.
1231 (x86_linux_prepare_to_resume): Likewise.
1232 * nat/x86-linux.c (x86_linux_new_thread): New function.
1233 (x86_linux_prepare_to_resume): Likewise.
1235 2015-03-24 Gary Benson <gbenson@redhat.com>
1237 * nat/x86-linux-dregs.h: New file.
1238 * nat/x86-linux-dregs.c: Likewise.
1239 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
1240 (x86-linux-dregs.o): New rule.
1241 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
1242 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1243 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
1244 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
1245 (x86_linux_dr_get): Likewise.
1246 (x86_linux_dr_set): Likewise.
1247 (x86_linux_dr_get_addr): Likewise.
1248 (x86_linux_dr_get_control): Likewise.
1249 (x86_linux_dr_get_status): Likewise.
1250 (update_debug_registers_callback): Likewise.
1251 (x86_linux_dr_set_control): Likewise.
1252 (x86_linux_dr_set_addr): Likewise.
1253 (x86_linux_update_debug_registers): Likewise.
1255 2015-03-24 Gary Benson <gbenson@redhat.com>
1257 * x86-linux-nat.c (x86_linux_update_debug_registers):
1258 New function, factored out from...
1259 (x86_linux_prepare_to_resume): ...this.
1261 2015-03-24 Gary Benson <gbenson@redhat.com>
1263 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
1264 (x86_linux_dr_set): Likewise.
1265 (x86_linux_dr_get_addr): Likewise.
1266 (x86_linux_dr_get_control): Likewise.
1267 (x86_linux_dr_get_status): Likewise.
1268 (update_debug_registers_callback): Likewise.
1269 (x86_linux_dr_set_control): Likewise.
1270 (x86_linux_dr_set_addr): Likewise.
1271 (x86_linux_prepare_to_resume): Likewise.
1272 (x86_linux_new_thread): Likewise.
1274 2015-03-24 Gary Benson <gbenson@redhat.com>
1276 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
1277 (x86_linux_new_thread): Rename argument.
1279 2015-03-24 Gary Benson <gbenson@redhat.com>
1281 * nat/x86-linux.h: New file.
1282 * nat/x86-linux.c: Likewise.
1283 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
1284 (x86-linux.o): New rule.
1285 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
1286 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1287 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
1288 (lwp_set_arch_private_info): New declaration.
1289 (lwp_arch_private_info): Likewise.
1290 * linux-nat.c (lwp_set_arch_private_info): New function.
1291 (lwp_arch_private_info): Likewise.
1292 * x86-linux-nat.c: Include nat/x86-linux.h.
1293 (arch_lwp_info): Removed structure.
1294 (update_debug_registers_callback):
1295 Use lwp_set_debug_registers_changed.
1296 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
1297 and lwp_set_debug_registers_changed.
1298 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
1300 2015-03-24 Gary Benson <gbenson@redhat.com>
1302 * nat/linux-nat.h (ptid_of_lwp): New declaration.
1303 (lwp_is_stopped): Likewise.
1304 (lwp_stop_reason): Likewise.
1305 * linux-nat.c (ptid_of_lwp): New function.
1306 (lwp_is_stopped): Likewise.
1307 (lwp_is_stopped_by_watchpoint): Likewise.
1308 * x86-linux-nat.c (update_debug_registers_callback):
1310 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
1313 2015-03-24 Gary Benson <gbenson@redhat.com>
1315 * linux-nat.h (linux_stop_lwp): Move declaration to...
1316 * nat/linux-nat.h (linux_stop_lwp): New declaration.
1318 2015-03-24 Gary Benson <gbenson@redhat.com>
1320 * linux-nat.h: Include nat/linux-nat.h.
1321 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
1322 * nat/linux-nat.h (struct lwp_info): New forward declaration.
1323 (iterate_over_lwps_ftype): New typedef.
1324 (iterate_over_lwps): New declaration.
1325 * linux-nat.h (iterate_over_lwps): Update comment. Use
1326 iterate_over_lwps_ftype. Update callback return value check.
1328 2015-03-24 Gary Benson <gbenson@redhat.com>
1330 * x86-nat.h (x86_debug_reg_state): Move declaration to...
1331 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
1333 2015-03-24 Gary Benson <gbenson@redhat.com>
1335 * nat/linux-nat.h (current_lwp_ptid): New declaration.
1336 * linux-nat.c (current_lwp_ptid): New function.
1337 * x86-linux-nat.c: Include nat/linux-nat.h.
1338 (x86_linux_dr_get_addr): Use current_lwp_ptid.
1339 (x86_linux_dr_get_control): Likewise.
1340 (x86_linux_dr_get_status): Likewise.
1341 (x86_linux_dr_set_control): Likewise.
1342 (x86_linux_dr_set_addr): Likewise.
1344 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
1346 PR breakpoints/16466
1347 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
1349 2015-03-23 Joel Brobecker <brobecker@adacore.com>
1351 * ser-mingw.c (ser_windows_setparity): Fix indentation.
1352 * ser-unix.c (hardwire_setparity): Likewise.
1354 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
1356 * NEWS: Mention set/show serial parity command.
1357 * monitor.c (monitor_open): Call serial_setparity.
1358 * remote.c (remote_open_1): Likewise.
1359 * ser-base.c (ser_base_serparity): New function.
1360 * ser-base.h (ser_base_setparity): Add declaration.
1361 * ser-go32.c (dos_ops): Set "setparity" field.
1362 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
1364 (ser_windows_setparity): New function.
1365 (hardwire_ops): Add ser_windows_setparity.
1366 (tty_ops): Add NULL for setparity field.
1367 (pipe_ops): Add ser_base_setparity.
1368 (tcp_ops): Likewise.
1369 * ser-pipe.c (pipe_ops): Likewise.
1370 * ser-tcp.c (tcp_ops): Likewise.
1371 * ser-unix.c (hardwire_setparity): Add declaration.
1372 (hardwire_raw): Don't reset PARENB flag.
1373 (hardwire_setparity): New function.
1374 (hardwire_ops): Add hardwire_setparity.
1375 * serial.c (serial_setparity): New function.
1376 (serial_parity): New global.
1377 (parity_none, parity_odd, parity_even, parity_enums, parity):
1379 (set_parity): New function.
1380 (_initialize_serial): Add set/show serial parity commands.
1381 * serial.h (GDBPARITY_NONE): Define.
1382 (GDBPARITY_ODD): Define.
1383 (GDBPARITY_EVEN): Define.
1384 (serial_setparity) Add declaration.
1385 (struct serial_ops): Add setparity field.
1386 * target.h (serial_parity): Add declaration.
1388 2015-03-23 Keith Seitz <keiths@redhat.com>
1390 * linespec.c (linespec_lexer_lex_keyword): Update comment.
1392 2015-03-23 Keith Seitz <keiths@redhat.com>
1394 * breakpoint.c (parse_breakpoint_sals): Use
1395 linespec_lexer_lex_keyword to ascertain if the user specified
1397 * linespec.c [IF_KEYWORD_INDEX]: Define.
1398 (linespec_lexer_lex_keyword): Export.
1399 (struct ls_parser) <keyword_ok>: Remove.
1400 A keyword is only a keyword if not followed by another keyword.
1401 (linespec_lexer_lex_one): Remove keyword_ok handling.
1402 Add comment explaining why the parsing stream is not advanced
1403 when a keyword is seen.
1404 (parse_linespec): Remove parser->keyword_ok.
1405 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
1407 2015-03-23 Keith Seitz <keiths@redhat.com>
1410 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
1411 if we find a static method with DW_AT_vtable_elem_location.
1413 2015-03-21 Eli Zaretskii <eliz@gnu.org>
1415 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
1416 before the second loop, to avoid undefined behavior. Reported by
1417 Anton Blanchard <anton@samba.org>.
1419 2015-03-20 Keven Boell <keven.boell@intel.com>
1421 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
1422 data_location usage to linked list.
1423 (resolve_dynamic_type_internal): Adapt data_location to
1425 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
1426 (copy_type_recursive, copy_type): Add copy of linked list.
1427 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
1428 (struct dynamic_prop_list): New struct.
1429 * dwarf2read.c (set_die_type): Set data_location data.
1431 2015-03-20 Pedro Alves <palves@redhat.com>
1433 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
1434 inner block and make it const.
1435 * machoread.c (get_archive_prefix_len): Make "lparen" const.
1437 2015-03-20 Pedro Alves <palves@redhat.com>
1439 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
1440 * breakpoint.h (set_breakpoint_condition): Update declaration.
1442 2015-03-20 Pedro Alves <palves@redhat.com>
1444 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
1446 2015-03-20 Pedro Alves <palves@redhat.com>
1448 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
1450 2015-03-20 Pedro Alves <palves@redhat.com>
1452 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
1454 2015-03-20 Pedro Alves <palves@redhat.com>
1456 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
1457 (nto_init_solib_absolute_prefix): Likewise.
1459 2015-03-20 Pedro Alves <palves@redhat.com>
1461 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
1462 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
1464 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1466 * config/djgpp/README: Remove gdb.hp.
1468 2015-03-20 Yao Qi <yao.qi@linaro.org>
1470 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
1471 set_gdbarch_cannot_step_breakpoint.
1473 2015-03-19 Pedro Alves <palves@redhat.com>
1475 * linux-nat.c (linux_resume_one_lwp): Rename to ...
1476 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
1477 instead call perror_with_name.
1478 (check_ptrace_stopped_lwp_gone): New function.
1479 (linux_resume_one_lwp): Reimplement as wrapper around
1480 linux_resume_one_lwp_throw that swallows errors if the LWP is
1482 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
1483 swallows errors if the LWP is gone. Use
1484 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
1486 2015-03-19 Pedro Alves <palves@redhat.com>
1488 * linux-nat.c (status_callback): Return early if the LWP has no
1491 2015-03-19 Pedro Alves <palves@redhat.com>
1493 * linux-nat.c (select_event_lwp_callback): Update comment to no
1494 longer mention SIGTRAP.
1496 2015-03-18 Tristan Gingold <gingold@adacore.com>
1498 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
1499 redirection code to ...
1500 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
1501 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
1503 2015-03-18 Gary Benson <gbenson@redhat.com>
1505 (remote_protocol_features): Remove the "vFile:fstat" feature.
1506 (remote_hostio_fstat): Probe for "vFile:fstat" support.
1508 2015-03-11 Yao Qi <yao.qi@linaro.org>
1511 * aarch64-linux-tdep.c: Include xml-syscall.h
1512 (aarch64_linux_get_syscall_number): New function.
1513 (aarch64_linux_init_abi): Call
1514 set_gdbarch_get_syscall_number.
1515 * syscalls/aarch64-linux.xml: New file.
1517 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
1519 * ser-base.h (ser_base_setstopbits): Change second argument name
1520 from "rate" to "num".
1522 2015-03-17 Gary Benson <gbenson@redhat.com>
1523 Luke Allardyce <lukeallardyce@gmail.com>
1526 * common/common-remote-fileio.h (sys/stat.h): New include.
1527 (stuct stat): Remove forward declaration.
1529 2015-03-16 John Baldwin <jhb@FreeBSD.org>
1531 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
1532 before writing core register notes.
1534 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
1535 Pedro Alves <palves@redhat.com>
1537 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
1538 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
1539 (tgoto): Wrap with extern "C".
1541 2015-03-16 Pedro Alves <palves@redhat.com>
1542 Yuanhui Zhang <asmwarrior@gmail.com>
1544 * stub-termcap.c (tputs): Change prototype.
1546 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
1547 Pedro Alves <palves@redhat.com>
1549 * windows-nat.c (struct thread_info_struct): Rename to ...
1550 (struct windows_thread_info_struct): ... this.
1551 (thread_info): Rename to ...
1552 (windows_thread_info): ... this.
1555 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1556 Pedro Alves <palves@redhat.com>
1558 * NEWS: New Removed targets and native configurations.
1560 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1563 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
1564 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
1565 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
1566 ia64-hpux-tdep.h, solib-ia64-hpux.h.
1567 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
1568 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
1569 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
1571 * config/ia64/hpux.mh: Remove file.
1572 * config/pa/hpux.mh: Remove file.
1573 * configure: Rebuilt.
1574 * configure.ac (dlgetmodinfo, somread.o): Remove.
1575 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
1576 (ia64-*-hpux*): Remove its float format exception.
1577 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
1578 * hppa-hpux-nat.c: Remove file.
1579 * hppa-hpux-tdep.c: Remove file.
1580 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
1581 Move them here from hppa-tdep.h
1582 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
1583 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
1584 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
1585 Move them to hppa-tdep.c.
1586 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
1588 * ia64-hpux-nat.c: Remove file.
1589 * ia64-hpux-tdep.c: Remove file.
1590 * ia64-hpux-tdep.h: Remove file.
1591 * inf-ttrace.c: Remove file.
1592 * inf-ttrace.h: Remove file.
1593 * solib-ia64-hpux.c: Remove file.
1594 * solib-ia64-hpux.h: Remove file.
1595 * solib-pa64.c: Remove file.
1596 * solib-pa64.h: Remove file.
1597 * solib-som.c: Remove file.
1598 * solib-som.h: Remove file.
1599 * somread.c: Remove file.
1601 2015-03-13 John Baldwin <jhb@FreeBSD.org>
1603 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
1604 * config.in: Regenerate.
1605 * configure: Regenerate.
1606 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
1608 (fbsd_find_memory_regions): Use kinfo_getvmmap to
1609 enumerate memory regions if present.
1611 2015-03-13 John Baldwin <jhb@FreeBSD.org>
1613 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
1614 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
1616 (i386fbsd_sigtramp_p): Likewise.
1618 2015-03-12 John Baldwin <jhb@FreeBSD.org>
1620 * MAINTAINERS (Write After Approval): Add John Baldwin.
1622 2015-03-12 Gary Benson <gbenson@redhat.com>
1624 * solib.c (_initialize_solib): Make "set/show sysroot" use
1625 add_setshow_optional_filename_cmd so it can be restored to
1626 empty after being set.
1628 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
1630 * Makefile.in (SFILES): New source break-catch-syscall.c.
1631 (COMMON_OBS): New object break-catch-syscall.o.
1632 * break-catch-syscall.c: New file.
1633 * breakpoint.c: Remove inclusion of "xml-syscall.h".
1634 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
1635 (struct syscall_catchpoint): Likewise.
1636 (dtor_catch_syscall): Likewise.
1637 (catch_syscall_inferior_data): Likewise.
1638 (struct catch_syscall_inferior_data): Likewise.
1639 (get_catch_syscall_inferior_data): Likewise.
1640 (catch_syscall_inferior_data_cleanup): Likewise.
1641 (insert_catch_syscall): Likewise.
1642 (remove_catch_syscall): Likewise.
1643 (breakpoint_hit_catch_syscall): Likewise.
1644 (print_it_catch_syscall): Likewise.
1645 (print_one_catch_syscall): Likewise.
1646 (print_mention_catch_syscall): Likewise.
1647 (print_recreate_catch_syscall): Likewise.
1648 (catch_syscall_breakpoint_ops): Likewise.
1649 (syscall_catchpoint_p): Likewise.
1650 (create_syscall_event_catchpoint): Likewise.
1651 (catch_syscall_split_args): Likewise.
1652 (catch_syscall_command_1): Likewise.
1653 (is_syscall_catchpoint_enabled): Likewise.
1654 (catch_syscall_enabled): Likewise.
1655 (catching_syscall_number): Likewise.
1656 (catch_syscall_completer): Likewise.
1657 (clear_syscall_counts): Likewise.
1658 (initialize_breakpoint_ops): Move initialization of syscall
1659 catchpoints to break-catch-syscall.c.
1660 (_initialize_breakpoint): Move code related to syscall catchpoints
1661 to break-catch-syscall.c.
1663 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
1665 * breakpoint.c (breakpoint_find_if): New function.
1666 * breakpoint.h (breakpoint_find_if): New prototype.
1668 2015-03-11 Gary Benson <gbenson@redhat.com>
1670 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
1671 * remote-fileio.c (remote_fileio_to_host_uint): New function.
1672 (remote_fileio_to_host_ulong): Likewise.
1673 (remote_fileio_to_host_mode): Likewise.
1674 (remote_fileio_to_host_time): Likewise.
1675 (remote_fileio_to_host_stat): Likewise.
1676 * remote.c (PACKET_vFile_fstat): New enum value.
1677 (remote_protocol_features): Register the "vFile:fstat" feature.
1678 (remote_hostio_fstat): New function.
1679 (remote_bfd_iovec_stat): Use the above.
1680 (_initialize_remote): Register new "set/show remote
1681 hostio-fstat-packet" command.
1682 * symfile.c (separate_debug_file_exists): Update comment.
1683 * NEWS: Announce new vFile:fstat packet.
1685 2015-03-11 Gary Benson <gbenson@redhat.com>
1687 * common/common-remote-fileio.h: New file.
1688 * common/common-remote-fileio.c: Likewise.
1689 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
1690 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
1691 (COMMON_OBS): Add common-remote-fileio.o.
1692 (common-remote-fileio.o): New rule.
1693 * remote-fileio.h (common-remote-fileio.h): New include.
1694 * remote-fileio.c (gdb/fileio.h): Do not include.
1695 (remote_fileio_to_be): Moved to common-remote-fileio.h.
1696 (remote_fileio_to_fio_uint): Likewise.
1697 (remote_fileio_to_fio_time): Likewise.
1698 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
1699 (remote_fileio_to_fio_mode): Likewise.
1700 (remote_fileio_to_fio_ulong): Likewise.
1701 (remote_fileio_to_fio_stat): Likewise.
1703 2015-03-11 Andy Wingo <wingo@igalia.com>
1705 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
1706 we were checking the cached type, not the cached dynamic type.
1708 2015-03-11 Andy Wingo <wingo@igalia.com>
1710 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
1711 other strings, as these are on the GC'd heap, and will be
1712 collected along with the smob.
1714 2015-03-11 Andy Wingo <wingo@igalia.com>
1716 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
1717 (objfile_functions): Bind gdbscm_objfile_progspace to
1719 * guile/lib/gdb.scm: Add objfile-progspace to exports.
1721 2015-03-11 Andy Wingo <wingo@igalia.com>
1723 * guile/guile.c (_initialize_guile): Disable automatic
1724 finalization, if Guile offers us that possibility.
1725 * guile/guile.c (call_initialize_gdb_module):
1726 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
1727 finalizers in appropriate places.
1728 * configure.ac (AC_TRY_LIBGUILE): Add a check for
1729 scm_set_automatic_finalization_enabled.
1730 * configure: Regenerated.
1732 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
1734 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
1737 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
1739 * s390-linux-nat.c (struct arch_lwp_info): New.
1740 (s390_fix_watch_points): Rename to...
1741 (s390_prepare_to_resume): ...this. Skip the PER info update
1742 unless the watch points have changed.
1743 (s390_refresh_per_info, s390_new_thread): New functions.
1744 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
1745 s390_fix_watch_points.
1746 (s390_remove_watchpoint): Likewise.
1747 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
1748 Register s390_prepare_to_resume.
1750 2015-03-09 Pedro Alves <palves@redhat.com>
1753 2015-03-07 Pedro Alves <palves@redhat.com>
1754 * common/gdb_socket.h: New file.
1755 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
1757 (net_open): Use union gdb_sockaddr_u.
1759 2015-03-07 Pedro Alves <palves@redhat.com>
1761 * configure.ac (build_warnings): Move -Wmissing-prototypes
1762 -Wdeclaration-after-statement -Wmissing-parameter-type
1763 -Wold-style-declaration -Wold-style-definition to the C-specific
1765 * configure: Regenerate.
1767 2015-03-07 Pedro Alves <palves@redhat.com>
1769 * common/gdb_socket.h: New file.
1770 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
1772 (net_open): Use union gdb_sockaddr_u.
1774 2015-03-07 Pedro Alves <palves@redhat.com>
1776 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
1777 (exceptions_state_mc_action_iter)
1778 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
1780 [__cplusplus] (try_scope_depth): New global.
1781 [__cplusplus] (exception_try_scope_entry)
1782 (exception_try_scope_exit, gdb_exception_sliced_copy)
1783 (exception_rethrow): New functions.
1784 (throw_exception): In C++ mode, throw
1785 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
1786 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
1787 (throw_it): In C++ mode, use try_scope_depth.
1788 * common/common-exceptions.h [!__cplusplus]
1789 (exceptions_state_mc_action_iter)
1790 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
1792 [__cplusplus] (exception_try_scope_entry)
1793 (exception_try_scope_exit, exception_rethrow): Declare.
1794 [__cplusplus] (struct exception_try_scope): New struct.
1795 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
1797 (struct gdb_exception_RETURN_MASK_ALL)
1798 (struct gdb_exception_RETURN_MASK_ERROR)
1799 (struct gdb_exception_RETURN_MASK_QUIT): New types.
1801 2015-03-07 Pedro Alves <palves@redhat.com>
1803 * main.c (handle_command_errors): Remove volatile qualifier from
1806 2015-03-07 Pedro Alves <palves@redhat.com>
1808 * breakpoint.c (save_breakpoints): Adjust to avoid code between
1810 * gdbtypes.c (safe_parse_type): Remove empty line.
1811 (types_deeply_equal):
1812 * guile/scm-frame.c (gdbscm_frame_name):
1813 * linux-thread-db.c (find_new_threads_once):
1814 * python/py-breakpoint.c (bppy_get_commands):
1815 * record-btrace.c (record_btrace_insert_breakpoint)
1816 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
1817 (record_btrace_start_replaying): Adjust to avoid code between TRY
1820 2015-03-07 Pedro Alves <palves@redhat.com>
1822 * common/common-exceptions.c (struct catcher) <exception>: No
1823 longer a pointer to volatile exception. Now an exception value.
1824 <mask>: Delete field.
1825 (exceptions_state_mc_init): Remove all parameters. Adjust.
1826 (exceptions_state_mc): No longer pop the catcher here.
1827 (exceptions_state_mc_catch): New function.
1828 (throw_exception): Adjust.
1829 * common/common-exceptions.h (exceptions_state_mc_init): Remove
1831 (exceptions_state_mc_catch): Declare.
1832 (TRY_CATCH): Rename to ...
1833 (TRY): ... this. Remove EXCEPTION and MASK parameters.
1834 (CATCH, END_CATCH): New.
1835 All callers adjusted.
1837 2015-03-07 Tom Tromey <tromey@redhat.com>
1839 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
1841 2015-03-07 Pedro Alves <palves@redhat.com>
1843 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
1844 (amd64_epilogue_frame_cache): Normal exception handling code.
1845 * break-catch-throw.c (check_status_exception_catchpoint)
1846 (re_set_exception_catchpoint): Ditto.
1847 * cli/cli-interp.c (safe_execute_command):
1848 * cli/cli-script.c (script_from_file): Ditto.
1849 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
1851 * compile/compile-object-run.c (compile_object_run): Ditto.
1852 * cp-abi.c (baseclass_offset): Ditto.
1853 * cp-valprint.c (cp_print_value): Ditto.
1854 * exceptions.c (catch_exceptions_with_msg):
1855 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
1856 * frame.c (get_frame_address_in_block_if_available): Ditto.
1857 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
1858 (i386_sigtramp_frame_cache): Ditto.
1859 * infcmd.c (post_create_inferior): Ditto.
1860 * linespec.c (parse_linespec, find_linespec_symbols):
1861 * p-valprint.c (pascal_object_print_value): Ditto.
1862 * parse.c (parse_expression_for_completion): Ditto.
1863 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
1864 * remote.c (remote_get_noisy_reply): Ditto.
1865 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
1866 * solib-svr4.c (solib_svr4_r_map): Ditto.
1868 2015-03-06 Gary Benson <gbenson@redhat.com>
1870 * common/common-utils.h (startswith): New inline function.
1871 All places where this logic was used updated to use the above.
1873 2015-03-05 Pedro Alves <palves@redhat.com>
1876 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
1877 after reading the breakpoint's shadow memory.
1879 2015-03-05 Mark Kettenis <kettenis@gnu.org>
1881 * hppabsd-nat.c: Remove file.
1882 * hppaobsd-nat.c: New file.
1883 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
1885 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
1888 2015-03-04 Pedro Alves <palves@redhat.com>
1890 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
1891 (target_decr_pc_after_break): Delete declaration.
1892 * target.c (default_target_decr_pc_after_break)
1893 (target_decr_pc_after_break): Delete.
1894 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
1895 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
1896 * linux-thread-db.c (check_event): Likewise.
1897 * infrun.c (adjust_pc_after_break): Likewise.
1898 * darwin-nat.c (cancel_breakpoint): Likewise.
1899 * aix-thread.c (aix_thread_wait): Likewise.
1900 * target-delegates.c: Regenerate.
1902 2015-03-04 Pedro Alves <palves@redhat.com>
1904 * linux-nat.c (save_sigtrap): Check for breakpoints before
1905 checking watchpoints.
1906 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
1907 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
1908 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
1909 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
1910 (linux_nat_stopped_by_sw_breakpoint)
1911 (linux_nat_supports_stopped_by_sw_breakpoint)
1912 (linux_nat_stopped_by_hw_breakpoint)
1913 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
1914 (linux_nat_wait_1): Don't re-increment the PC if relying on
1915 SIGTRAP's siginfo->si_code.
1916 (linux_nat_add_target): Install new target methods.
1917 * linux-thread-db.c (check_event): Don't account for breakpoint PC
1918 offset if the target already adjusted the PC.
1919 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
1920 (GDB_ARCH_TRAP_BRKPT): New.
1921 (TRAP_HWBKPT): Define if not already defined.
1923 2015-03-04 Pedro Alves <palves@redhat.com>
1925 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
1926 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
1928 <stop_reason>: New field.
1929 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
1930 (packet_set_cmd_state): New function.
1931 (remote_protocol_features): Register the "swbreak" and "hwbreak"
1933 (remote_query_supported): If not disabled with the corresponding
1934 "set remote foo-packet" command, report support for the swbreak
1935 and hwbreak features.
1936 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
1938 <stop_reason>: New field.
1939 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
1940 (remote_wait_as): Adjust.
1941 (remote_stopped_by_sw_breakpoint)
1942 (remote_supports_stopped_by_sw_breakpoint)
1943 (remote_stopped_by_hw_breakpoint)
1944 (remote_supports_stopped_by_hw_breakpoint): New functions.
1945 (remote_stopped_by_watchpoint): New function.
1946 (init_remote_ops): Install them.
1947 (_initialize_remote): Register new "set/show remote
1948 swbreak-feature-packet" and "set/show remote
1949 swbreak-feature-packet" commands.
1951 2015-03-04 Pedro Alves <palves@redhat.com>
1953 * btrace.h: Include target/waitstatus.h.
1954 (struct btrace_thread_info) <stop_reason>: New field.
1955 * record-btrace.c (record_btrace_step_thread): Use
1956 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
1957 (record_btrace_decr_pc_after_break): Delete.
1958 (record_btrace_stopped_by_sw_breakpoint)
1959 (record_btrace_supports_stopped_by_sw_breakpoint)
1960 (record_btrace_stopped_by_hw_breakpoint)
1961 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
1962 (init_record_btrace_ops): Install them.
1963 * record-full.c (record_full_hw_watchpoint): Delete and replace
1965 (record_full_stop_reason): ... this throughout.
1966 (record_full_exec_insn): Adjust.
1967 (record_full_wait_1): Adjust. No longer re-increment the PC.
1968 (record_full_wait_1): Adjust. Use
1969 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
1970 (record_full_stopped_by_watchpoint): Adjust.
1971 (record_full_stopped_by_sw_breakpoint)
1972 (record_full_supports_stopped_by_sw_breakpoint)
1973 (record_full_supports_stopped_by_sw_breakpoint)
1974 (record_full_stopped_by_hw_breakpoint)
1975 (record_full_supports_stopped_by_hw_breakpoint): New functions.
1976 (init_record_full_ops, init_record_full_core_ops): Install them.
1977 * record.c (record_check_stopped_by_breakpoint): New function.
1978 * record.h: Include target/waitstatus.h.
1979 (record_check_stopped_by_breakpoint): New declaration.
1981 2015-03-04 Pedro Alves <palves@redhat.com>
1983 enum lwp_stop_reason -> enum target_stop_reason
1984 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
1985 (linux_nat_stopped_by_watchpoint, status_callback)
1986 (linux_nat_wait_1): Adjust.
1987 * linux-nat.h (enum lwp_stop_reason): Delete.
1988 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
1989 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
1990 * target/waitstatus.h (enum target_stop_reason): New.
1992 2015-03-04 Pedro Alves <palves@redhat.com>
1994 * breakpoint.c (need_moribund_for_location_type): New function.
1995 (bpstat_stop_status): Don't skipping checking moribund locations
1996 of breakpoint types which the target tell caused a stop.
1997 (program_breakpoint_here_p): New function, factored out from ...
1998 (bp_loc_is_permanent): ... this.
1999 (update_global_location_list): Don't create a moribund location if
2000 the target supports reporting stops of the type of the removed
2002 * breakpoint.h (program_breakpoint_here_p): New declaration.
2003 * infrun.c (adjust_pc_after_break): Return early if the target has
2004 already adjusted the PC. Add comments.
2005 (handle_signal_stop): If nothing explains a signal, and the target
2006 tells us the stop was caused by a software breakpoint, check if
2007 there's a breakpoint instruction in the memory. If so, adjust the
2008 PC before presenting the stop to the user. Otherwise, ignore the
2009 trap. If nothing explains a signal, and the target tells us the
2010 stop was caused by a hardware breakpoint, ignore the trap.
2011 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
2012 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
2013 to_supports_stopped_by_hw_breakpoint>: New fields.
2014 (target_stopped_by_sw_breakpoint)
2015 (target_supports_stopped_by_sw_breakpoint)
2016 (target_stopped_by_hw_breakpoint)
2017 (target_supports_stopped_by_hw_breakpoint): Define.
2018 * target-delegates.c: Regenerate.
2020 2015-03-04 Pedro Alves <palves@redhat.com>
2022 * infrun.c (follow_fork_inferior): Use the whole of the
2023 inferior_ptid and pending_follow.related_pid ptids instead of
2024 building ptids from the process components. Adjust verbose output
2025 to use target_pid_to_str.
2026 * linux-nat.c (linux_child_follow_fork): Use the whole of the
2027 inferior_ptid and pending_follow.related_pid ptids instead of
2028 building ptids from the process components.
2030 2015-03-04 Mark Kettenis <kettenis@gnu.org>
2032 * inf-ptrace.c [PT_GET_PROCESS_STATE]
2033 (inf_ptrace_insert_fork_catchpoint): New function.
2034 (inf_ptrace_remove_fork_catchpoint): New function.
2035 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
2037 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
2039 * s390-linux-tdep.c (s390_register_name): Return empty string
2040 instead of NULL for registers that shouldn't be visible.
2042 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
2044 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
2045 XML file for 64-bit targets.
2047 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
2049 * target.h (find_default_create_inferior): Remove declaration.
2050 (find_default_attach): Likewise.
2052 2015-03-03 Pedro Alves <palves@redhat.com>
2054 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
2055 Use ptid_get_pid to get the overall process id when resuming all
2058 2015-03-03 Pedro Alves <palves@redhat.com>
2060 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
2061 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
2062 * inf-ptrace.c (get_ptrace_pid): New function.
2063 (inf_ptrace_resume): Use it.
2064 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
2067 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
2069 * nat/linux-btrace.c: Include sys/utsname.h.
2070 (linux_determine_kernel_ptr_bits): New.
2071 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
2072 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
2075 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
2077 * btrace.c (ftrace_update_function): Treat return as tailcall for
2078 "_dl_runtime_resolve".
2080 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
2082 * btrace.h (btrace_function) <lbegin, lend>: Remove.
2083 * btrace.c (ftrace_debug): Do not print the line range.
2084 (ftrace_skip_file, ftrace_update_lines): Remove.
2085 (ftrace_new_function): Remove lbegin and lend initialization.
2086 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
2087 * record-btrace.c (btrace_compute_src_line_range): New.
2088 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
2090 2015-03-02 Pedro Alves <palves@redhat.com>
2092 * infrun.c (follow_exec): Delete all threads of the process except
2093 the event thread. Extended comments.
2095 2015-03-02 Joel Brobecker <brobecker@adacore.com>
2097 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
2099 2015-03-02 Joel Brobecker <brobecker@adacore.com>
2101 * utils.h: Remove <stdbool.h> #include.
2102 (producer_is_gcc): Change return type to "int".
2103 * utils.c (producer_is_gcc): Change return type to int.
2104 Return 1 instead of true, and 0 instead of false.
2105 Adjust function documentation accordingly.
2107 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
2109 * s390-linux-nat.c (have_regset_vxrs): New static variable.
2110 (s390_linux_fetch_inferior_registers): Handle vector registers, if
2112 (s390_linux_store_inferior_registers): Likewise.
2113 (s390_get_hwcap): Remove function. Embed its logic...
2114 (s390_read_description): ...here. Yield a target description with
2115 vector registers if applicable.
2116 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
2117 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
2118 "features/s390x-tevx-linux64.c".
2119 (struct gdbarch_tdep) <v0_full_regnum>: New field.
2120 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
2121 for "GNU/Linux-specific registers".
2122 (s390_dwarf_reg_r0l): New enum value.
2123 (s390_dwarf_reg_to_regnum): Support vector registers.
2124 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
2125 of GPR lower halves.
2126 (regnum_is_vxr_full): New function.
2127 (s390_register_name): New function.
2128 (s390_pseudo_register_name): Handle v0-v15, which are composed of
2129 f0-f15 and v0l-v15l.
2130 (s390_pseudo_register_type): Likewise.
2131 (s390_pseudo_register_read): Likewise.
2132 (s390_pseudo_register_write): Likewise.
2133 (s390_value_from_register): Account for the fact that values are
2134 placed left-justified in vector registers.
2135 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
2136 the vector reggroup and omit them from the general reggroup.
2137 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
2138 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
2139 (s390_iterate_over_regset_sections): Add iterations for the two
2141 (s390_core_read_description): Yield a target description with
2142 vector registers if applicable.
2143 (s390_gdbarch_init): Handle target descriptions with vector
2144 registers. Add "register_name" gdbarch method.
2145 (_initialize_s390_tdep): Call new tdesc initialization functions.
2146 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
2147 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
2148 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
2149 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
2150 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
2151 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
2152 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
2153 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
2154 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
2155 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
2156 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
2157 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
2158 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
2159 (S390_NUM_REGS): Adjust value.
2160 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
2161 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
2162 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
2163 * NEWS: Announce S/390 vector register support.
2165 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
2167 * features/s390-tevx-linux64.xml: New file.
2168 * features/s390-vx-linux64.xml: New file.
2169 * features/s390-vx.xml: New file.
2170 * features/s390x-tevx-linux64.xml: New file.
2171 * features/s390x-vx-linux64.xml: New file.
2172 * features/Makefile (WHICH): Add s390-vx-linux64,
2173 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
2174 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
2175 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
2177 * features/s390-tevx-linux64.c: New generated file.
2178 * features/s390-vx-linux64.c: Likewise.
2179 * features/s390x-tevx-linux64.c: Likewise.
2180 * features/s390x-vx-linux64.c: Likewise.
2181 * regformats/s390-tevx-linux64.dat: Likewise.
2182 * regformats/s390-vx-linux64.dat: Likewise.
2183 * regformats/s390x-tevx-linux64.dat: Likewise.
2184 * regformats/s390x-vx-linux64.dat: Likewise.
2186 2015-02-28 Doug Evans <xdje42@gmail.com>
2188 * symtab.h (struct symtab) <next>: Fix comment.
2190 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
2192 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
2195 2015-02-27 Pedro Alves <palves@redhat.com>
2197 * dtrace-probe.c (dtrace_probe_ops): Make extern.
2199 2015-02-27 Pedro Alves <palves@redhat.com>
2201 * common/common-exceptions.h (exception_none): Declare.
2202 * common/common-exceptions.c (exception_none): Moved from
2204 (exceptions_state_mc_init): Use exception_none.
2205 * exceptions.c (exception_none): Move to
2206 common/common-exceptions.c.
2207 * exceptions.h (exception_none): Move to
2208 common/common-exceptions.h.
2210 2015-02-27 Pedro Alves <palves@redhat.com>
2212 * main.c (catch_command_errors, catch_command_errors_const):
2213 Remove 'mask' argument. Adjust.
2214 (captured_main): Adjust callers.
2216 2015-02-27 Pedro Alves <palves@redhat.com>
2218 * python/python-internal.h: Include "extension-priv.h".
2220 2015-02-27 Pedro Alves <palves@redhat.com>
2222 * breakpoint.h (enum print_stop_action): Move further up in the
2225 2015-02-27 Pedro Alves <palves@redhat.com>
2227 * gdbarch.sh: Include regcache.h.
2228 * gdbarch.h: Regenerate.
2230 2015-02-27 Pedro Alves <palves@redhat.com>
2232 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
2233 Remove duplicate const.
2234 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
2237 2015-02-27 Pedro Alves <palves@redhat.com>
2239 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
2240 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
2241 * features/feature_to_c.sh: Tag the generated xml_builtin array
2242 with extern const in C++ mode.
2244 2015-02-27 Tom Tromey <tromey@redhat.com>
2246 * minidebug.c (struct lzma_stream): Rename to ...
2247 (struct gdb_lzma_stream): ... this.
2248 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
2250 2015-02-27 Pedro Alves <palves@redhat.com>
2252 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
2254 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
2255 (mi_cmd_stack_list_variables): Use it.
2257 2015-02-27 Pedro Alves <palves@redhat.com>
2259 * x86-linux-nat.c (u_debugreg_offset): New function.
2260 (x86_linux_dr_get, x86_linux_dr_set): Use it.
2262 2015-02-27 Pedro Alves <palves@redhat.com>
2264 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
2266 Include break-common.h.
2268 2015-02-27 Tom Tromey <tromey@redhat.com>
2269 Pedro Alves <palves@redhat.com>
2271 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
2272 local used to iterate over enums.
2273 * completer.c (signal_completer): Likewise.
2274 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
2275 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
2276 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
2277 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
2278 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
2279 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
2280 * tui-wingeneral.c (tui_refresh_all): Likewise.
2282 2015-02-27 Pedro Alves <palves@redhat.com>
2284 * target.h: Include "infrun.h".
2286 2015-02-27 Pedro Alves <palves@redhat.com>
2288 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
2290 2015-02-27 Pedro Alves <palves@redhat.com>
2292 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
2294 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
2296 2015-02-27 Pedro Alves <palves@redhat.com>
2298 * cli-out.c (_rl_erase_entire_line): Move declaration out of
2299 cli_mld_erase_entire_line, and make it extern "C".
2300 * common/common-defs.h (EXTERN_C): New.
2301 * completer.c (_rl_completion_prefix_display_length)
2302 (_rl_print_completions_horizontally, QSFUNC): Move declarations
2303 out of gdb_display_match_list_1.
2304 (_rl_qsort_string_compare): Move declaration out of
2305 gdb_display_match_list_1, and make it extern "C".
2306 * defs.h (re_comp): Use EXTERN_C.
2307 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
2308 and make it extern "C".
2309 (monstartup): Move declaration out of maintenance_set_profile_cmd,
2310 and make it extern "C".
2311 (main): Move declaration out of maintenance_set_profile_cmd.
2312 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
2315 2015-02-27 Pedro Alves <palves@redhat.com>
2317 * python/python.c (GdbMethods): Rename to ...
2318 (python_GdbMethods): ... this and make extern.
2319 (GdbModuleDef): Rename to ...
2320 (python_GdbModuleDef): ... this and make extern.
2322 2015-02-27 Pedro Alves <palves@redhat.com>
2324 * record-btrace.c (set_record_btrace_cmdlist)
2325 (show_record_btrace_cmdlist): Remove redefinitions.
2327 2015-02-27 Tom Tromey <tromey@redhat.com>
2328 Pedro Alves <palves@redhat.com>
2330 * dwarf2-frame.c (enum cfa_how_kind, struct
2331 dwarf2_frame_state_reg_info): Move out of struct
2333 * dwarf2read.c (struct tu_stats): Move out of struct
2335 (struct file_entry): Move out of struct line_header.
2336 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
2337 typedef_field_list): Move out of struct field_info.
2338 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
2339 Move out of struct dynamic_prop.
2340 (union type_owner, union field_location, struct field, struct
2341 range_bounds, union type_specific): Move out of struct main_type.
2342 (struct fn_fieldlist, struct fn_field, struct typedef_field)
2343 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
2344 (struct call_site_target, union call_site_parameter_u, struct
2345 call_site_parameter): Move out of struct call_site.
2346 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
2348 (enum srcdest_kind): Move out of struct srcdest.
2349 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
2350 * prologue-value.h (enum prologue_value_kind): Move out of struct
2352 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
2354 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
2355 out of struct field_info.
2356 * symfile.h (struct other_sections): Move out of struct
2358 * symtab.c (struct symbol_cache_slot): Move out struct
2360 * target-descriptions.c (enum tdesc_type_kind): Move out of
2361 typedef struct tdesc_type.
2362 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
2363 struct tui_line_or_address.
2364 * value.c (enum internalvar_kind, union internalvar_data): Move
2365 out of struct internalvar.
2366 * xtensa-tdep.h (struct ctype_cache): Move out of struct
2369 2015-02-27 Tom Tromey <tromey@redhat.com>
2370 Pedro Alves <palves@redhat.com>
2372 Rename symbols whose names are reserved C++ keywords throughout.
2374 2015-02-27 Pedro Alves <palves@redhat.com>
2376 * Makefile.in (COMPILER): New, get it from autoconf.
2377 (COMPILE.pre, CC_LD): Use COMPILER.
2378 (CXX): Get from autoconf instead.
2379 (CXX_FOR_TARGET): Default to g++ instead of gcc.
2380 * acinclude.m4: Include build-with-cxx.m4.
2381 * build-with-cxx.m4: New file.
2382 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
2383 Disable -Werror by default if building in C++ mode.
2384 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
2385 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
2386 Run supported-warning-flags tests with the C++ compiler.
2387 Save/restore CXXFLAGS too.
2388 * configure: Regenerate.
2390 2015-02-27 Pedro Alves <palves@redhat.com>
2392 * libiberty.m4: New file.
2393 * acinclude.m4: Include libiberty.m4.
2394 * configure.ac: Call libiberty_INIT.
2395 * config.in, configure: Regenerate.
2397 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
2399 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
2400 31-bit targets, but 64-bit targets as well.
2401 (s390_gnu_triplet_regexp): New function.
2402 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
2403 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
2406 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
2408 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
2409 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
2410 from CONTEXT_DEBUGGER.
2412 2015-02-26 Doug Evans <dje@google.com>
2414 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
2416 (set_type_vptr_fieldno): Ditto.
2417 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
2418 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
2420 2015-02-26 Pedro Alves <palves@redhat.com>
2422 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
2423 * complaints.c (vcomplaint): Pass argument FMT directly to
2424 printf-like functions instead of complaint->fmt.
2425 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
2426 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
2427 * compile/compile-loc2c.c (pushf, unary, binary): Add
2429 (do_compile_dwarf_expr_to_c): Pass string literal as format string
2431 (BINARY): Pass string literal as format string to 'binary'.
2432 * compile/compile-object-load.c (link_callbacks_einfo): Add
2434 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
2436 2015-02-26 Pedro Alves <palves@redhat.com>
2438 * windows-termcap.c: Rename to ...
2439 * stub-termcap.c: ... this. Adjust header line.
2440 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
2442 * configure: Regenerate.
2443 * configure.ac: Refer to stub-termcap.o instead of
2445 * gdb_curses.h: Mention stub-termcap.c instead of
2448 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2450 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
2451 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
2453 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
2455 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
2457 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2459 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
2460 bfd_canonicalize_symtab.
2462 2015-02-25 John Baldwin <jhb@FreeBSD.org>
2464 * amd64fbsd-nat.c: Include sys/user.h.
2465 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
2466 instead of KERN_PS_STRINGS to locate the signal trampoline.
2467 * i386fbsd-nat.c: Include sys/user.h.
2468 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
2469 instead of KERN_PS_STRINGS to locate the signal trampoline.
2470 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
2471 (amd64fbsd_sigtramp_p): New.
2472 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
2473 longer set default values.
2474 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
2475 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
2476 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
2477 (i386fbsd_freebsd4_sigtramp_start)
2478 (i386fbsd_freebsd4_sigtramp_middle)
2479 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
2480 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
2481 (i386fbsd_sigtramp_p): New.
2482 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
2483 longer set default values.
2484 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
2486 2015-02-25 John Baldwin <jhb@freebsd.org>
2488 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
2489 get_frame_register instead of frame_unwind_register_unsigned.
2491 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2494 * compile/compile-c-support.c (c_compute_program): Change // comment.
2495 * compile/compile-object-load.c (setup_sections): Change // comment.
2497 2015-02-26 Joel Brobecker <brobecker@adacore.com>
2500 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
2502 2015-02-23 Pedro Alves <palves@redhat.com>
2504 * remote.c (skip_to_semicolon): New function.
2505 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
2506 special case the stop reasons that look like hex numbers
2507 upfront. Instead handle real register numbers after matching
2508 all the known stop reasons.
2510 2015-02-21 Doug Evans <dje@google.com>
2512 PR c++/17976, symtab/17821
2513 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
2514 is_in_anonymous. All callers updated.
2515 (find_symbol_in_baseclass): Ditto.
2516 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
2517 for symbols in an anonymous namespace.
2518 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
2519 DW_AT_name directly.
2520 (dwarf2_name): Convert missing namespace name to
2521 CP_ANONYMOUS_NAMESPACE_STR.
2523 2015-02-20 Pedro Alves <palves@redhat.com>
2525 * linux-nat.c (linux_handle_extended_wait): Call
2526 thread_db_notice_clone whenever a new clone LWP is detected.
2527 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
2529 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
2530 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
2531 (linux_unstop_all_lwps): Declare.
2532 * linux-thread-db.c (struct thread_get_info_inout): Delete.
2533 (thread_get_info_callback): Delete.
2534 (thread_from_lwp): Use td_thr_get_info and record_thread.
2535 (thread_db_attach_lwp): Delete.
2536 (thread_db_notice_clone): New function.
2537 (try_thread_db_load_1): If /proc is mounted and shows the
2538 process'es task list, walk over all LWPs and call thread_from_lwp
2539 instead of relying on td_ta_thr_iter.
2540 (attach_thread): Don't call check_thread_signals here. Split the
2541 tail part of the function (which adds the thread to the core GDB
2543 (record_thread): ... this function. Call check_thread_signals
2545 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
2546 call thread_from_lwp.
2547 (thread_db_update_thread_list): Rename to ...
2548 (thread_db_update_thread_list_org): ... this.
2549 (thread_db_update_thread_list): New function.
2550 (thread_db_find_thread_from_tid): Delete.
2551 (thread_db_get_ada_task_ptid): Simplify.
2552 * nat/linux-procfs.c: Include <sys/stat.h>.
2553 (linux_proc_task_list_dir_exists): New function.
2554 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
2556 2015-02-20 Pedro Alves <palves@redhat.com>
2558 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
2559 main LWP. Handle the case of waitpid returning 0 if we're already
2560 attached to the LWP. Don't set the LWP's last_resume_kind to
2561 resume_stop if we already knew about the LWP.
2562 (linux_nat_filter_event): Add debug logs.
2564 2015-02-20 Pedro Alves <palves@redhat.com>
2566 * target.h (forward_target_decr_pc_after_break): Delete
2569 2015-02-20 Pedro Alves <palves@redhat.com>
2572 * linux-thread-db.c (thread_get_info_callback): Return early if
2573 the thread's lwp id is -1.
2575 2015-02-20 Joel Brobecker <brobecker@adacore.com>
2579 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
2581 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
2582 (dtrace_get_probes) Change type of variable 'dof'.
2584 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
2586 PR breakpoints/16812
2587 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
2588 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
2589 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
2591 2015-02-19 David Taylor <dtaylor@emc.com>
2593 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
2595 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
2597 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
2599 (tui_putc): Don't call tui_handle_resize_during_io.
2600 (tui_getc): Likewise.
2601 (tui_mld_getc): Likewise.
2602 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
2603 (tui_sigwinch_token): New static variable.
2604 (tui_initialize_win): Adjust documentation. Set
2606 (tui_async_resize_screen): New asynchronous callback.
2607 (tui_sigwinch_handler): Adjust documentation. Asynchronously
2608 invoke tui_async_resize_screen.
2610 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
2612 * configure: Regenerated.
2613 * configure.ac: Use GDB_AC_TRANSFORM.
2614 * Makefile.in (aclocal_m4_deps): Added transform.m4.
2615 * acinclude.m4: sinclude transform.m4.
2616 * transform.m4: New file.
2617 (GDB_AC_TRANSFORM): New macro.
2619 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2621 * NEWS: Announce the support for DTrace SDT probes.
2623 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2625 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
2626 (amd64_dtrace_parse_probe_argument): New function.
2627 (amd64_dtrace_probe_is_enabled): Likewise.
2628 (amd64_dtrace_enable_probe): Likewise.
2629 (amd64_dtrace_disable_probe): Likewise.
2630 (amd64_linux_init_abi): Register the
2631 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
2632 `gdbarch_dtrace_disable_probe' and
2633 `gdbarch_dtrace_probe_is_enabled' hooks.
2634 (amd64_dtrace_disabled_probe_sequence_1): New constant.
2635 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
2636 (amd64_dtrace_enable_probe_sequence): Likewise.
2637 (amd64_dtrace_disable_probe_sequence): Likewise.
2639 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2641 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
2642 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
2643 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
2645 * Makefile.in (SFILES): dtrace-probe.c added.
2646 * configure: Regenerate.
2647 * dtrace-probe.c: New file.
2648 (SHT_SUNW_dof): New constant.
2649 (dtrace_probe_type): New enum.
2650 (dtrace_probe_arg): New struct.
2651 (dtrace_probe_arg_s): New typedef.
2652 (struct dtrace_probe_enabler): New struct.
2653 (dtrace_probe_enabler_s): New typedef.
2654 (dtrace_probe): New struct.
2655 (dtrace_probe_is_linespec): New function.
2656 (dtrace_dof_sect_type): New enum.
2657 (dtrace_dof_dofh_ident): Likewise.
2658 (dtrace_dof_encoding): Likewise.
2659 (DTRACE_DOF_ENCODE_LSB): Likewise.
2660 (DTRACE_DOF_ENCODE_MSB): Likewise.
2661 (dtrace_dof_hdr): New struct.
2662 (dtrace_dof_sect): Likewise.
2663 (dtrace_dof_provider): Likewise.
2664 (dtrace_dof_probe): Likewise.
2665 (DOF_UINT): New macro.
2666 (DTRACE_DOF_PTR): Likewise.
2667 (DTRACE_DOF_SECT): Likewise.
2668 (dtrace_process_dof_probe): New function.
2669 (dtrace_process_dof): Likewise.
2670 (dtrace_build_arg_exprs): Likewise.
2671 (dtrace_get_arg): Likewise.
2672 (dtrace_get_probes): Likewise.
2673 (dtrace_get_probe_argument_count): Likewise.
2674 (dtrace_can_evaluate_probe_arguments): Likewise.
2675 (dtrace_evaluate_probe_argument): Likewise.
2676 (dtrace_compile_to_ax): Likewise.
2677 (dtrace_probe_destroy): Likewise.
2678 (dtrace_gen_info_probes_table_header): Likewise.
2679 (dtrace_gen_info_probes_table_values): Likewise.
2680 (dtrace_probe_is_enabled): Likewise.
2681 (dtrace_probe_ops): New variable.
2682 (info_probes_dtrace_command): New function.
2683 (_initialize_dtrace_probe): Likewise.
2684 (dtrace_type_name): Likewise.
2686 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2688 * gdbarch.sh (dtrace_parse_probe_argument): New.
2689 (dtrace_probe_is_enabled): Likewise.
2690 (dtrace_enable_probe): Likewise.
2691 (dtrace_disable_probe): Likewise.
2692 * gdbarch.c: Regenerate.
2693 * gdbarch.h: Regenerate.
2695 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2697 * stap-probe.c (stap_probe_ops): Add NULLs in the static
2698 stap_probe_ops for `enable_probe' and `disable_probe'.
2699 * probe.c (enable_probes_command): New function.
2700 (disable_probes_command): Likewise.
2701 (_initialize_probe): Define the cli commands `enable probe' and
2703 (parse_probe_linespec): New function.
2704 (info_probes_for_ops): Use parse_probe_linespec.
2705 * probe.h (probe_ops): New hooks `enable_probe' and
2708 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2710 * probe.c (compute_probe_arg): Moved from stap-probe.c
2711 (compile_probe_arg): Likewise.
2712 (probe_funcs): Likewise.
2713 * stap-probe.c (compute_probe_arg): Moved to probe.c.
2714 (compile_probe_arg): Likewise.
2715 (probe_funcs): Likewise.
2717 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2719 * probe.c (print_ui_out_not_applicables): New function.
2720 (exists_probe_with_pops): Likewise.
2721 (info_probes_for_ops): Do not include column headers for probe
2722 types for which no probe has been actually found on any object.
2723 Also invoke `print_ui_out_not_applicables' in order to match the
2724 column rows with the header when probes of several types are
2726 Print the "Type" column.
2727 * probe.h (probe_ops): Added a new probe operation `type_name'.
2728 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
2729 (stap_type_name): New function.
2731 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
2733 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
2734 (key_is_command_char): Delete.
2736 2015-02-17 Pedro Alves <palves@redhat.com>
2738 * tui/tui.c (tui_enable): Resize windows before anything
2739 might show a window.
2741 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
2744 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
2745 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
2747 * aarch64-tdep.h (tdesc_aarch64): Declare.
2749 2015-02-12 Mark Wielaard <mjw@redhat.com>
2751 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
2753 2015-02-13 Doug Evans <dje@google.com>
2755 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
2756 anonymous_namespace to is_in_anonymous for consistency with the rest
2758 (cp_lookup_bare_symbol): Fix typo in comment.
2759 (cp_search_static_and_baseclasses): Ditto.
2760 (search_symbol_list): Use vertical space in comment better.
2761 (reset_directive_searched): Ditto. Fix typo.
2762 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
2764 2015-02-13 Yao Qi <yao.qi@arm.com>
2766 * MAINTAINERS: Update my email address.
2768 2015-02-12 Doug Evans <dje@google.com>
2770 * symtab.c (completion_list_add_name): Fix memory leak.
2772 2015-02-12 Doug Evans <dje@google.com>
2774 * completer.c (complete_line): Remove incorrect comment.
2776 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2778 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
2779 (py_print_frame): Use RETURN_MASK_ERROR.
2781 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2783 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
2784 function comment. Wrap all function that can throw in cleanups.
2785 (gdbpy_apply_frame_filter): Wrap all function that can throw in
2788 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2790 * python/py-framefilter.c (py_print_frame): Substitute goto error.
2791 Remove the error label.
2793 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2795 * python/py-framefilter.c (py_print_frame): Put conditional code paths
2796 with goto first, indent the former else codepath left. Put variable
2797 'elided' to a new inner block.
2799 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2801 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
2803 2015-02-11 Pedro Alves <palves@redhat.com>
2805 * xcoffread.c (within_function): Delete.
2807 2015-02-11 Tom Tromey <tromey@redhat.com>
2808 Pedro Alves <palves@redhat.com>
2810 * breakpoint.c (base_breakpoint_ops): Delete.
2811 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
2812 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
2813 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
2814 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
2815 * python/py-arch.c (arch_object_type): Make extern.
2816 * python/py-block.c (block_syms_iterator_object_type): Make extern.
2817 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
2818 * python/py-cmd.c (cmdpy_object_type): Make extern.
2819 * python/py-continueevent.c (continue_event_object_type)
2820 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
2821 parameter. Update all callers.
2822 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
2823 * python/py-exitedevent.c (exited_event_object_type): Make extern.
2824 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
2825 * python/py-function.c (fnpy_object_type): Make extern.
2826 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
2827 * python/py-infevents.c (call_pre_event_object_type)
2828 (inferior_call_post_event_object_type).
2829 (memory_changed_event_object_type): Make extern.
2830 * python/py-infthread.c (thread_object_type): Make extern.
2831 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
2832 * python/py-linetable.c (linetable_entry_object_type)
2833 (linetable_object_type, ltpy_iterator_object_type): Make extern.
2834 * python/py-newobjfileevent.c (new_objfile_event_object_type)
2835 (clear_objfiles_event_object_type): Make extern.
2836 * python/py-objfile.c (objfile_object_type): Make extern.
2837 * python/py-param.c (parmpy_object_type): Make extern.
2838 * python/py-progspace.c (pspace_object_type): Make extern.
2839 * python/py-signalevent.c (signal_event_object_type): Make extern.
2840 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
2841 * python/py-type.c (type_object_type, field_object_type)
2842 (type_iterator_object_type): Make extern.
2843 * python/python.c (python_extension_script_ops)
2844 (python_extension_ops): Make extern.
2845 * stap-probe.c (stap_probe_ops): Make extern.
2847 2015-02-11 Pedro Alves <pedro@codesourcery.com>
2849 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
2850 because the event thread is not the current thread.
2852 2015-02-11 Doug Evans <xdje42@gmail.com>
2854 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
2855 been initialized yet, return NULL.
2857 2015-02-11 Doug Evans <dje@google.com>
2859 * symfile.h (new_symfile_objfile): Delete.
2860 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
2861 All callers updated.
2863 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
2865 * tui/tui-io.c (tui_handle_resize_during_io): Call
2866 tui_update_gdb_sizes() after resizing the screen.
2867 * tui/tui.c (tui_enable): Resize the terminal before
2868 calling tui_update_gdb_sizes().
2870 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
2872 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
2873 line before printing a newline.
2875 2015-02-11 Mark Wielaard <mjw@redhat.com>
2877 * utils.c (producer_is_gcc): Return true or false.
2879 2015-02-10 Mark Wielaard <mjw@redhat.com>
2881 * utils.h (producer_is_gcc): Change return type to bool. Add major
2883 * utils.c (producer_is_gcc): Likewise.
2884 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
2885 * dwarf2read.c (check_producer): Likewise.
2887 2015-02-10 Pedro Alves <palves@redhat.com>
2889 * infrun.c (displaced_step_fixup): Switch to the event thread
2890 before calling gdbarch_displaced_step_fixup.
2892 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
2894 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
2896 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
2898 * ada-varobj.c (ada_name_of_child): Constify parent.
2899 (ada_path_expr_of_child): Same.
2900 (ada_value_of_child): Same.
2901 (ada_type_of_child): Same.
2902 * c-varobj.c (c_is_path_expr_parent): Same.
2903 (c_describe_child): Same.
2904 (c_name_of_child): Same.
2905 (c_value_of_child): Same.
2906 (c_type_of_child): Same.
2907 (cplus_number_of_children): Same.
2908 (cplus_describe_child): Constify var.
2909 (cplus_name_of_child): Constify parent.
2910 (cplus_value_of_child): Same.
2911 (cplus_type_of_child): Same.
2912 * jv-varobj.c (java_name_of_child): Same.
2913 (java_value_of_child): Same.
2914 (java_type_of_child): Same.
2915 * varobj.c (value_of_child): Same.
2916 (varobj_default_is_path_expr_parent): Constify var, parent and return
2918 (varobj_get_path_expr): Constify var, modify path_expr through
2920 (install_new_value): Constify parent.
2921 (value_of_child): Constify parent.
2922 * varobj.h (struct varobj): Constify parent.
2923 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
2925 (varobj_get_path_expr): Constify var.
2926 (varobj_get_path_expr_parent): Constify var and return value.
2928 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
2930 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
2931 (arm_prologue_this_id): Move PC and SP limit checks to
2932 arm_prologue_unwind_stop_reason.
2933 (arm_prologue_unwind) <stop_reason> : Set to
2934 arm_prologue_unwind_stop_reason.
2936 2015-02-09 Mark Wielaard <mjw@redhat.com>
2938 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
2939 DW_LANG_Fortran08 as language_fortran.
2941 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
2944 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
2945 of pointer against char.
2947 2015-02-09 Mark Wielaard <mjw@redhat.com>
2949 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
2950 (c_type_print_modifier): Likewise.
2951 * dwarf2read.c (read_tag_atomic_type): New function.
2952 (read_type_die_1): Handle DW_TAG_atomic_type.
2953 * gdbtypes.c (make_atomic_type): New function.
2954 (recursive_dump_type): Handle TYPE_ATOMIC.
2955 * gdbtypes.h (enum type_flag_values): Renumber.
2956 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
2957 (TYPE_ATOMIC): New macro.
2958 (make_atomic_type): Declare.
2960 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2962 * btrace.c (ftrace_find_call): Skip gaps.
2963 (ftrace_new_function): Initialize level.
2964 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
2965 (ftrace_new_switch): Update
2967 (ftrace_new_gap): New.
2968 (ftrace_update_function): Create new function after gap.
2969 (btrace_compute_ftrace_bts): Create gap on error.
2970 (btrace_stitch_bts): Update parameters. Clear trace if it
2972 (btrace_stitch_trace): Update parameters. Update callers.
2973 (btrace_clear): Reset the number of gaps.
2974 (btrace_insn_get): Return NULL if the iterator points to a gap.
2975 (btrace_insn_number): Return zero if the iterator points to a gap.
2976 (btrace_insn_end): Allow gaps at the end.
2977 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
2978 (btrace_find_insn_by_number): Assert that the found iterator does
2980 (btrace_call_next, btrace_call_prev): Assert that the last function
2982 * btrace.h (btrace_bts_error): New.
2983 (btrace_function): Update comment.
2984 (btrace_function) <insn, insn_offset, number>: Update comment.
2985 (btrace_function) <errcode>: New.
2986 (btrace_thread_info) <ngaps>: New.
2987 (btrace_thread_info) <replay>: Update comment.
2988 (btrace_insn_get): Update comment.
2989 * record-btrace.c (btrace_ui_out_decode_error): New.
2990 (record_btrace_info): Print number of gaps.
2991 (btrace_insn_history, btrace_call_history): Call
2992 btrace_ui_out_decode_error for gaps.
2993 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
2995 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2997 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
2998 * nat/linux-btrace.c: (btrace_this_cpu): New.
2999 (cpu_supports_bts): Call btrace_this_cpu.
3000 (intel_supports_bts): Add cpu parameter.
3002 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3004 * btrace.h (btrace_insn_class): New.
3005 (btrace_insn) <size, iclass>: New.
3006 * btrace.c (ftrace_find_call): Update parameters. Update users.
3007 Use instruction classification.
3008 (ftrace_new_return): Update parameters. Update users.
3009 (ftrace_update_function): Update parameters. Update users. Use
3010 instruction classification.
3011 (ftrace_update_insns): Update parameters. Update users.
3012 (ftrace_classify_insn): New.
3013 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
3014 TRY_CATCH around call to gdb_insn_length.
3016 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3018 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
3019 Update parameters. Update users.
3021 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3023 * btrace.c (parse_xml_btrace_conf_bts): Add size.
3024 (btrace_conf_bts_attributes): New.
3025 (btrace_conf_children): Add attributes.
3026 * common/btrace-common.h (btrace_config_bts): New.
3027 (btrace_config)<bts>: New.
3028 (btrace_config): Update comment.
3029 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
3031 * features/btrace-conf.dtd: Increment version. Add size
3032 attribute to bts element.
3033 * record-btrace.c (set_record_btrace_bts_cmdlist,
3034 show_record_btrace_bts_cmdlist): New.
3035 (record_btrace_adjust_size, record_btrace_print_bts_conf,
3036 record_btrace_print_conf, cmd_set_record_btrace_bts,
3037 cmd_show_record_btrace_bts): New.
3038 (record_btrace_info): Call record_btrace_print_conf.
3039 (_initialize_record_btrace): Add commands.
3040 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
3041 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
3042 (btrace_sync_conf): Synchronize bts size.
3043 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
3044 * NEWS: Announce new commands and new packets.
3046 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3048 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
3049 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
3050 (x86_linux_btrace_conf): New.
3051 (x86_linux_create_target): Initialize to_btrace_conf.
3052 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
3053 Check format. Split into this and ...
3054 (linux_enable_bts): ... this.
3055 (linux_btrace_conf): New.
3056 (perf_event_skip_record): Renamed into ...
3057 (perf_event_skip_bts_record): ... this. Updated users.
3058 (linux_disable_btrace): Split into this and ...
3059 (linux_disable_bts): ... this.
3060 (linux_read_btrace): Check format.
3061 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
3062 (linux_btrace_conf): New.
3063 (btrace_target_info)<ptid>: Moved.
3064 (btrace_target_info)<conf>: New.
3065 (btrace_target_info): Split into this and ...
3066 (btrace_tinfo_bts): ... this. Updated users.
3067 * btrace.c (btrace_enable): Update parameters.
3068 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
3069 (btrace_conf_children, btrace_conf_attributes)
3070 (btrace_conf_elements): New.
3071 * btrace.h (btrace_enable): Update parameters.
3072 (btrace_conf, parse_xml_btrace_conf): New.
3073 * common/btrace-common.h (btrace_config): New.
3074 * feature/btrace-conf.dtd: New.
3075 * record-btrace.c (record_btrace_conf): New.
3076 (record_btrace_cmdlist): New.
3077 (record_btrace_enable_warn, record_btrace_open): Pass
3078 &record_btrace_conf.
3079 (record_btrace_info): Print recording format.
3080 (cmd_record_btrace_bts_start): New.
3081 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
3082 (_initialize_record_btrace): Add "record btrace bts" subcommand.
3083 Add "record bts" alias command.
3084 * remote.c (remote_state)<btrace_config>: New.
3085 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
3086 (remote_protocol_features): Add qXfer:btrace-conf:read.
3087 (remote_open_1): Call remote_btrace_reset.
3088 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
3089 (btrace_target_info)<conf>: New.
3090 (btrace_sync_conf, btrace_read_config): New.
3091 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
3093 (remote_btrace_conf): New.
3094 (init_remote_ops): Initialize to_btrace_conf.
3095 (_initialize_remote): Add qXfer:btrace-conf packet.
3096 * target.c (target_enable_btrace): Update parameters.
3097 (target_btrace_conf): New.
3098 * target.h (target_enable_btrace): Update parameters.
3099 (target_btrace_conf): New.
3100 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
3101 (target_ops)<to_enable_btrace>: Update parameters and comment.
3102 (target_ops)<to_btrace_conf>: New.
3103 * target-delegates: Regenerate.
3104 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
3105 (target_debug_print_const_struct_btrace_target_info_p): New.
3106 * NEWS: Announce new command and new packet.
3108 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3110 * nat/linux-btrace.h (perf_event_buffer): New.
3111 (btrace_target_info) <buffer, size, data_head>: Replace with ...
3113 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
3114 (perf_event_buffer_size, perf_event_buffer_begin)
3115 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
3117 (perf_event_new_data): New.
3119 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3121 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
3122 * record-btrace.c (record_btrace_open): Remove call to
3123 target_supports_btrace.
3124 * remote.c (remote_supports_btrace): Update parameters.
3125 * target.c (target_supports_btrace): Update parameters.
3126 * target.h (to_supports_btrace, target_supports_btrace): Update
3128 * target-delegates.c: Regenerate.
3129 * target-debug.h (target_debug_print_enum_btrace_format): New.
3130 * nat/linux-btrace.c
3131 (kernel_supports_btrace): Rename into ...
3132 (kernel_supports_bts): ... this. Update users. Update warning text.
3133 (intel_supports_btrace): Rename into ...
3134 (intel_supports_bts): ... this. Update users.
3135 (cpu_supports_btrace): Rename into ...
3136 (cpu_supports_bts): ... this. Update users.
3137 (linux_supports_btrace): Update parameters. Split into this and ...
3138 (linux_supports_bts): ... this.
3139 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
3141 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
3143 * Makefile.in (SFILES): Add common/btrace-common.c.
3144 (COMMON_OBS): Add common/btrace-common.o.
3145 (btrace-common.o): Add build rules.
3146 * btrace.c (parse_xml_btrace): Update parameters.
3147 (parse_xml_btrace_block): Set format field.
3148 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
3149 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
3150 (btrace_compute_ftrace): Split into this and...
3151 (btrace_compute_ftrace_bts): ...this.
3152 (btrace_stitch_trace): Split into this and...
3153 (btrace_stitch_bts): ...this.
3154 * btrace.h (parse_xml_btrace): Update parameters.
3155 (make_cleanup_btrace_data): New.
3156 * common/btrace-common.c: New.
3157 * common/btrace-common.h: Include common-defs.h.
3158 (btrace_block_s): Update comment.
3159 (btrace_format): New.
3160 (btrace_format_string): New.
3161 (btrace_data_bts): New.
3163 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
3164 * remote.c (remote_read_btrace): Update parameters.
3165 * target.c (target_read_btrace): Update parameters.
3166 * target.h (target_read_btrace): Update parameters.
3167 (target_ops)<to_read_btrace>: Update parameters.
3168 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
3169 * target-delegates.c: Regenerate.
3170 * target-debug (target_debug_print_struct_btrace_data_p): New.
3171 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
3172 (linux_read_bts): ...this.
3173 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
3175 2015-02-06 Doug Evans <dje@google.com>
3177 * remote-m32r-sdi.c: Include symfile.h.
3179 2015-02-06 Doug Evans <dje@google.com>
3181 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
3182 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
3185 2015-02-06 Pedro Alves <palves@redhat.com>
3187 * linux-thread-db.c (find_new_threads_callback): Add debug output.
3189 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
3192 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
3193 (enable_count_command): Check args for NULL value.
3195 2015-02-05 Doug Evans <xdje42@gmail.com>
3197 * guile/scm-frame.c: Fix spelling errors in a comment.
3199 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3201 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
3202 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
3205 2015-02-04 Pedro Alves <palves@redhat.com>
3207 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
3208 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
3210 (resume_stopped_resumed_lwps): Don't check whether the thread is
3211 marked as executing.
3212 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
3214 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
3216 * regset.h (struct regset): Add flags field.
3217 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
3218 * corelow.c (get_core_register_section): Add warning if the size
3219 exceeds the requested size and the regset does not have the
3220 REGSET_VARIABLE_SIZE flag set.
3221 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
3223 * armbsd-tdep.c (armbsd_gregset): Likewise.
3224 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
3225 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
3226 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
3227 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
3229 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
3231 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
3232 For ".reg-xstate", explicitly specify the requested section size
3233 via X86_XSTATE_SIZE instead of just 0 on input and
3234 X86_XSTATE_MAX_SIZE on output.
3235 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
3238 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
3241 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
3242 function type, particularly its SIZE parameter.
3243 * gdbarch.h: Regenerate.
3244 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
3245 actual against required size using ">=" instead of "==".
3246 (amd64_collect_fpregset): Likewise.
3247 * i386-tdep.c (i386_supply_gregset): Likewise.
3248 (i386_collect_gregset): Likewise.
3249 (i386_supply_fpregset): Likewise.
3250 (i386_collect_fpregset): Likewise.
3251 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
3252 (mips_fill_gregset_wrapper): Likewise.
3253 (mips_supply_fpregset_wrapper): Likewise.
3254 (mips_fill_fpregset_wrapper): Likewise.
3255 (mips64_supply_gregset_wrapper): Likewise.
3256 (mips64_fill_gregset_wrapper): Likewise.
3257 (mips64_supply_fpregset_wrapper): Likewise.
3258 (mips64_fill_fpregset_wrapper): Likewise.
3259 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
3260 (am33_supply_fpregset_method): Likewise.
3261 (am33_collect_gregset_method): Likewise.
3262 (am33_collect_fpregset_method): Likewise.
3264 2015-02-04 Doug Evans <dje@google.com>
3265 Pedro Alves <palves@redhat.com>
3266 Eli Zaretskii <eliz@gnu.org>
3269 * tui/tui-command.c (tui_refresh_cmd_win): New function.
3270 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
3271 * tui/tui-file.c: #include tui/tui-command.h.
3272 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
3273 (tui_file_flush): Refresh command window if stream is gdb_stdout.
3274 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
3276 2015-02-04 Pedro Alves <palves@redhat.com>
3279 * event-loop.c (gdb_do_one_event): Add default switch case.
3281 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3283 Filter out inferior gcc option -fpreprocessed.
3284 * compile/compile.c (filter_args): New function.
3287 2015-02-03 Pedro Alves <palves@redhat.com>
3289 * event-loop.c: Don't declare nor define a queue type for
3291 (event_queue): Delete.
3292 (create_event, create_file_event, gdb_event_xfree)
3293 (initialize_event_loop, process_event): Delete.
3294 (gdb_do_one_event): Return as soon as one event is handled.
3295 (handle_file_event): Change prototype. Used the passed in
3296 file_handler pointer and ready_mask instead of looping over all
3298 (gdb_wait_for_event): Update the poll/select timeouts before
3299 blocking. Run event handlers directly instead of queueing events.
3300 Return as soon as one event is handled.
3301 (struct async_event_handler_data): Delete.
3302 (invoke_async_event_handler): Delete.
3303 (check_async_event_handlers): Change return type to int. Run
3304 event handlers directly instead of queueing events. Return as
3305 soon as one event is handled.
3306 (handle_timer_event): Delete.
3307 (update_wait_timeout): New function, factored out from
3309 (poll_timers): Reimplement.
3310 * event-loop.h (initialize_event_loop): Delete declaration.
3311 * top.c (gdb_init): Don't call initialize_event_loop.
3313 2015-02-03 Pedro Alves <palves@redhat.com>
3315 * event-loop.c (clear_async_event_handler): New function.
3316 * event-loop.h (clear_async_event_handler): New declaration.
3317 * record-btrace.c (record_btrace_async): New function.
3318 (init_record_btrace_ops): Install record_btrace_async.
3319 * record-full.c (record_full_async): New function.
3320 (record_full_resume): Don't mark the async event source here.
3321 (init_record_full_ops): Install record_full_async.
3322 (record_full_core_resume): Don't mark the async event source here.
3323 (init_record_full_core_ops): Install record_full_async.
3324 * remote.c (remote_async): Mark and clear the async stop reply
3325 queue event-loop token as appropriate.
3327 2015-02-03 Pedro Alves <palves@redhat.com>
3329 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
3330 target_is_async_p instead of target_can_async.
3331 (linux_nat_wait): Use target_is_async_p instead of
3332 target_can_async. Don't enable async here.
3333 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
3334 target_is_async_p instead of target_can_async.
3336 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
3338 * varobj.h (lang_varobj_ops): Mention which return values need
3341 2015-02-02 Joel Brobecker <brobecker@adacore.com>
3343 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
3345 2015-02-02 Joel Brobecker <brobecker@adacore.com>
3348 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
3349 results found in the cache.
3351 2015-02-02 Joel Brobecker <brobecker@adacore.com>
3354 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
3355 when allocating a new one.
3357 2015-02-01 Tom Tromey <tom@tromey.com>
3359 * MAINTAINERS: Remove myself.
3361 2015-01-31 Doug Evans <xdje42@gmail.com>
3363 * dwarf2read.c (process_structure_scope): Update setting of
3364 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
3365 * gdbtypes.c (internal_type_vptr_fieldno): New function.
3366 (set_type_vptr_fieldno): New function.
3367 (internal_type_vptr_basetype): New function.
3368 (set_type_vptr_basetype): New function.
3369 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
3371 (allocate_cplus_struct_type): Initialize vptr_fieldno.
3372 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
3373 (print_cplus_stuff): ... moved here.
3374 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
3375 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
3377 (struct cplus_struct_type): ... here. All uses updated.
3378 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
3379 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
3380 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
3381 * stabsread.c (read_tilde_fields): Update setting of
3382 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
3384 2015-01-31 Doug Evans <xdje42@gmail.com>
3386 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
3388 (cp_print_class_member): Rename local domain to self_type.
3389 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
3390 domain_type to self_type.
3391 (set_die_type) <need_gnat_info>: Handle
3392 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
3393 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
3394 TYPE_SPECIFIC_SELF_TYPE.
3395 * gdbtypes.c (internal_type_self_type): New function.
3396 (set_type_self_type): New function.
3397 (smash_to_memberptr_type): Rename parameter domain to self_type.
3398 Update setting of TYPE_SELF_TYPE.
3399 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
3400 (smash_to_method_type): Rename parameter domain to self_type.
3401 Update setting of TYPE_SELF_TYPE.
3402 (check_stub_method): Call smash_to_method_type.
3403 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
3404 (copy_type_recursive): Ditto.
3405 * gdbtypes.h (enum type_specific_kind): New value
3406 TYPE_SPECIFIC_SELF_TYPE.
3407 (struct main_type) <type_specific>: New member self_type.
3408 (struct cplus_struct_type) <fn_field.type>: Update comment.
3409 (TYPE_SELF_TYPE): Rewrite.
3410 (internal_type_self_type, set_type_self_type): Declare.
3411 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
3413 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
3414 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
3416 * stabsread.c (read_member_functions): Mark methods with
3417 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
3420 2015-01-31 Doug Evans <xdje42@gmail.com>
3422 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
3425 2015-01-31 Doug Evans <xdje42@gmail.com>
3427 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
3428 or unions. Return zero if union.
3429 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
3430 (gnuv3_rtti_type): Pass already-check_typedef'd value to
3432 (compute_vtable_size): Assert only passed structs.
3433 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
3435 2015-01-31 Doug Evans <xdje42@gmail.com>
3437 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
3440 2015-01-31 Gary Benson <gbenson@redhat.com>
3441 Doug Evans <dje@google.com>
3446 * cli/cli-cmds.c (complete_command): Notify user if max-completions
3448 * common/common-exceptions.h (enum errors)
3449 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
3450 * completer.h (get_max_completions_reached_message): New declaration.
3451 (max_completions): Likewise.
3452 (completion_tracker_t): New typedef.
3453 (new_completion_tracker): New declaration.
3454 (make_cleanup_free_completion_tracker): Likewise.
3455 (maybe_add_completion_enum): New enum.
3456 (maybe_add_completion): New declaration.
3457 (throw_max_completions_reached_error): Likewise.
3458 * completer.c (max_completions): New global variable.
3459 (new_completion_tracker): New function.
3460 (free_completion_tracker): Likewise.
3461 (make_cleanup_free_completion_tracker): Likewise.
3462 (maybe_add_completions): Likewise.
3463 (throw_max_completions_reached_error): Likewise.
3464 (complete_line): Remove duplicates and limit result to max_completions
3466 (get_max_completions_reached_message): New function.
3467 (gdb_display_match_list): Handle max_completions.
3468 (_initialize_completer): New declaration and function.
3469 * symtab.c: Include completer.h.
3470 (completion_tracker): New static variable.
3471 (completion_list_add_name): Call maybe_add_completion.
3472 (default_make_symbol_completion_list_break_on_1): Renamed from
3473 default_make_symbol_completion_list_break_on. Maintain
3474 completion_tracker across calls to completion_list_add_name.
3475 (default_make_symbol_completion_list_break_on): New function.
3476 * top.c (init_main): Set rl_completion_display_matches_hook.
3477 * tui/tui-io.c: Include completer.h.
3478 (tui_old_rl_display_matches_hook): New static global.
3479 (tui_rl_display_match_list): Notify user if max-completions reached.
3480 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
3481 * NEWS (New Options): Mention set/show max-completions.
3483 2015-01-31 Gary Benson <gbenson@redhat.com>
3485 * symtab.c (struct add_name_data) <code>: New field.
3487 (add_symtab_completions): New function.
3488 (symtab_expansion_callback): Likewise.
3489 (default_make_symbol_completion_list_break_on): Set datum.code.
3490 Move minimal symbol scan before calling expand_symtabs_matching.
3491 Scan known primary symtabs for externs and statics before calling
3492 expand_symtabs_matching. Pass symtab_expansion_callback as
3493 expansion_notify argument to expand_symtabs_matching. Do not scan
3494 primary symtabs for externs and statics after calling
3495 expand_symtabs_matching.
3497 2015-01-31 Gary Benson <gbenson@redhat.com>
3499 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
3500 (struct quick_symbol_functions) <expand_symtabs_matching>:
3501 New argument expansion_notify. All uses updated.
3502 (expand_symtabs_matching): New argument expansion_notify.
3504 * symfile-debug.c (debug_qf_expand_symtabs_matching):
3505 Also print expansion notify.
3506 * symtab.c (expand_symtabs_matching_via_partial): Call
3507 expansion_notify whenever a partial symbol table is expanded.
3508 * dwarf2read.c (dw2_expand_symtabs_matching): Call
3509 expansion_notify whenever a symbol table is instantiated.
3511 2015-01-31 Doug Evans <xdje42@gmail.com>
3513 * cli-out.c: #include completer.h, readline/readline.h.
3514 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
3515 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
3516 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
3517 * cli-out.h (cli_display_match_list): Declare.
3518 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
3519 (ELLIPSIS_LEN): Ditto.
3520 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
3521 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
3522 (gdb_fnprint, gdb_print_filename): Ditto.
3523 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
3524 (gdb_display_match_list): Ditto.
3525 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
3526 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
3527 (mld_beep_ftype, mld_read_key_ftype): Ditto.
3528 (match_list_displayer): New struct.
3529 (gdb_display_match_list): Declare.
3530 * top.c (init_main): Set rl_completion_display_matches_hook.
3531 * tui/tui-io.c: #include completer.h.
3532 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
3533 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
3534 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
3535 (tui_mld_getc, tui_mld_read_key): Ditto.
3536 (tui_rl_display_match_list): Rewrite.
3537 (tui_handle_resize_during_io): New arg for_completion. All callers
3540 2015-01-31 Doug Evans <xdje42@gmail.com>
3542 Add symbol lookup cache.
3543 * NEWS: Document new options and commands.
3544 * symtab.c (symbol_cache_key): New static global.
3545 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
3546 (SYMBOL_LOOKUP_FAILED): New macro.
3547 (symbol_cache_slot_state): New enum.
3548 (block_symbol_cache): New struct.
3549 (symbol_cache): New struct.
3550 (new_symbol_cache_size, symbol_cache_size): New static globals.
3551 (hash_symbol_entry, eq_symbol_entry): New functions.
3552 (symbol_cache_byte_size, resize_symbol_cache): New functions.
3553 (make_symbol_cache, free_symbol_cache): New functions.
3554 (get_symbol_cache, symbol_cache_cleanup): New function.
3555 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
3556 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
3557 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
3558 (symbol_cache_flush, symbol_cache_dump): New functions.
3559 (maintenance_print_symbol_cache): New function.
3560 (maintenance_flush_symbol_cache): New function.
3561 (symbol_cache_stats): New function.
3562 (maintenance_print_symbol_cache_statistics): New function.
3563 (symtab_new_objfile_observer): New function.
3564 (symtab_free_objfile_observer): New function.
3565 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
3566 (_initialize_symtab): Init symbol_cache_key. New parameter
3567 maint symbol-cache-size. New maint commands print symbol-cache,
3568 print symbol-cache-statistics, flush-symbol-cache.
3569 Install new_objfile, free_objfile observers.
3571 2015-01-31 Joel Brobecker <brobecker@adacore.com>
3574 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
3577 2015-01-31 Doug Evans <xdje42@gmail.com>
3579 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
3580 * auto-load.c: #include ctype.h.
3581 (struct auto_load_pspace_info): Replace member loaded_scripts with
3582 new members loaded_script_files, loaded_script_texts.
3583 (auto_load_pspace_data_cleanup): Update.
3584 (init_loaded_scripts_info): Update.
3585 (get_auto_load_pspace_data_for_loading): Update.
3586 (maybe_add_script_file): Renamed from maybe_add_script. All callers
3588 (maybe_add_script_text): New function.
3589 (clear_section_scripts): Update.
3590 (source_script_file, execute_script_contents): New functions.
3591 (source_section_scripts): Add support for
3592 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
3593 (print_scripts): New function.
3594 (auto_load_info_scripts): Also print inlined scripts.
3595 (maybe_print_unsupported_script_warning): Renamed from
3596 unsupported_script_warning_print. All callers updated.
3597 (maybe_print_script_not_found_warning): Renamed from
3598 script_not_found_warning_print. All callers updated.
3599 * extension-priv.h (struct extension_language_script_ops): New member
3600 objfile_script_executor.
3601 * extension.c (ext_lang_objfile_script_executor): New function.
3602 * extension.h (objfile_script_executor_func): New typedef.
3603 (ext_lang_objfile_script_executor): Declare.
3604 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
3605 * guile/guile.c (guile_extension_script_ops): Update.
3606 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
3607 * python/python.c (python_extension_script_ops): Update.
3608 (gdbpy_execute_objfile_script): New function.
3610 2015-01-31 Eli Zaretskii <eliz@gnu.org>
3612 * tui/tui-io.c (tui_expand_tabs): New function.
3613 (tui_puts, tui_redisplay_readline): Expand TABs into the
3614 appropriate number of spaces.
3615 * tui/tui-regs.c: Include tui-io.h.
3616 (tui_register_format): Call tui_expand_tabs to expand TABs into
3617 the appropriate number of spaces.
3618 * tui/tui-io.h: Add prototype for tui_expand_tabs.
3620 2015-01-30 Doug Evans <dje@google.com>
3622 * NEWS: "info source" command now display producer string if present.
3623 * source.c (source_info): Print producer string if present.
3625 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3627 * varobj.c (varobj_delete): Fix comment.
3629 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3631 * varobj.c (create_child): Modify comment.
3633 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3635 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
3637 (ada_name_of_variable): Same.
3638 (ada_path_expr_of_child): Same.
3639 (ada_value_of_variable): Same.
3640 (ada_value_is_changeable_p): Same.
3641 (ada_value_has_mutated): Same.
3642 * c-varobj.c (varobj_is_anonymous_child): Same.
3643 (c_is_path_expr_parent): Same.
3644 (c_number_of_children): Same.
3645 (c_name_of_variable): Same.
3646 (c_path_expr_of_child): Same.
3648 (c_value_of_variable): Same.
3649 (cplus_number_of_children): Same.
3650 (cplus_name_of_variable): Same.
3651 (cplus_path_expr_of_child): Same.
3652 (cplus_value_of_variable): Same.
3653 * jv-varobj.c (java_number_of_children): Same.
3654 (java_name_of_variable): Same.
3655 (java_path_expr_of_child): Same.
3656 (java_value_of_variable): Same.
3657 * varobj.c (number_of_children): Same.
3658 (name_of_variable): Same.
3660 (varobj_ensure_python_env): Same.
3661 (varobj_get_objname): Same.
3662 (varobj_get_expression): Same.
3663 (varobj_get_display_format): Same.
3664 (varobj_get_display_hint): Same.
3665 (varobj_has_more): Same.
3666 (varobj_get_thread_id): Same.
3667 (varobj_get_frozen): Same.
3668 (dynamic_varobj_has_child_method): Same.
3669 (varobj_get_gdb_type): Same.
3670 (is_path_expr_parent): Same.
3671 (varobj_default_is_path_expr_parent): Same.
3672 (varobj_get_language): Same.
3673 (varobj_get_attributes): Same.
3674 (varobj_is_dynamic_p): Same.
3675 (varobj_get_child_range): Same.
3676 (varobj_value_has_mutated): Same.
3677 (varobj_get_value_type): Same.
3678 (number_of_children): Same.
3679 (name_of_variable): Same.
3680 (check_scope): Same.
3681 (varobj_editable_p): Same.
3682 (varobj_value_is_changeable_p): Same.
3683 (varobj_floating_p): Same.
3684 (varobj_default_value_is_changeable_p): Same.
3686 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3688 * varobj.c (varobj_get_path_expr): Set var->path_expr.
3689 * c-varobj.c (c_path_expr_of_child): Set local var instead of
3691 (cplus_path_expr_of_child): Same.
3693 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3695 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
3697 (mi_cmd_var_info_expression): Same.
3698 * varobj.c (varobj_get_expression): Mention in the comment that
3699 the result must by freed by the caller.
3701 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3703 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
3705 (varobj_update_one): Same.
3706 * varobj.c (update_type_if_necessary): Free curr_type_str and
3708 (varobj_get_type): Specify in comment that the result needs to be
3709 freed by the caller.
3711 2015-01-29 Doug Evans <dje@google.com>
3714 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
3716 2015-01-25 Mark Wielaard <mjw@redhat.com>
3718 * dwarf2read.c (checkproducer): Call producer_is_gcc.
3719 * utils.c (producer_is_gcc_ge_4): Likewise.
3720 (producer_is_gcc): New function.
3721 * utils.h (producer_is_gcc): New declaration.
3723 2015-01-29 Joel Brobecker <brobecker@adacore.com>
3725 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
3727 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
3728 parameter by "addr_stack" parameter.
3729 (resolve_dynamic_range): Replace "addr" parameter by
3730 "stack_addr" parameter. Update function documentation.
3731 Update code accordingly.
3732 (resolve_dynamic_array, resolve_dynamic_union)
3733 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
3734 (resolve_dynamic_type): Update code, following the changes made
3735 to resolve_dynamic_type_internal's interface.
3736 * dwarf2loc.h (struct property_addr_info): New.
3737 (dwarf2_evaluate_property): Replace "address" parameter
3738 by "addr_stack" parameter. Adjust function documentation.
3739 (struct dwarf2_offset_baton): New.
3740 (struct dwarf2_property_baton): Update documentation of
3741 field "referenced_type" to be more general. New field
3742 "offset_info" in union data field.
3743 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
3744 parameter by "addr_stack" parameter. Adjust code accordingly.
3745 Add support for PROP_ADDR_OFFSET properties.
3746 * dwarf2read.c (attr_to_dynamic_prop): Add support for
3747 DW_AT_data_member_location attributes as well. Use case
3748 statements instead of if/else condition.
3750 2015-01-29 Joel Brobecker <brobecker@adacore.com>
3752 * ada-varobj.c (ada_varobj_get_array_number_of_children):
3753 Return zero if PARENT_VALUE is NULL and parent_type's
3754 range type is dynamic.
3756 2015-01-29 Joel Brobecker <brobecker@adacore.com>
3758 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
3759 nonzero if the type's subtype is dynamic.
3760 (resolve_dynamic_range): Also resolve the range's subtype.
3762 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
3764 Pushed by Joel Brobecker <brobecker@adacore.com>.
3765 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
3767 2015-01-27 Doug Evans <dje@google.com>
3769 * NEWS: Mention gdb.Objfile.username.
3770 * python/py-objfile.c (objfpy_get_username): New function.
3771 (objfile_getset): Add "username".
3773 2015-01-24 Mark Wielaard <mjw@redhat.com>
3775 * stack.c (return_command): Markup warning message with _.
3777 2015-01-24 Doug Evans <xdje42@gmail.com>
3779 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
3781 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3783 Fix 100x slowdown regression on DWZ files.
3784 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
3785 (struct line_header): Add offset and offset_in_dwz.
3786 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
3787 (free_line_header_voidp): New declaration.
3788 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
3790 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
3791 (handle_DW_AT_stmt_list): Use line_header_hash.
3792 (free_line_header_voidp): New function.
3793 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
3794 (dwarf_decode_lines): New parameter decode_mapping, use it.
3795 (dwarf2_free_objfile): Free line_header_hash.
3797 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
3800 * valops.c (value_rtti_indirect_type): Catch exception thrown by
3803 2015-01-15 Mark Wielaard <mjw@redhat.com>
3805 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
3807 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
3808 calling_convention an 8 bit bit field.
3809 (TYPE_NO_RETURN): New macro.
3810 * infcmd.c (finish_command): Query if function does not return
3812 * stack.c (return_command): Likewise.
3814 2015-01-23 Pedro Alves <palves@redhat.com>
3816 * linux-nat.c (linux_is_async_p): New macro.
3817 (linux_nat_is_async_p):
3818 (linux_nat_terminal_inferior): Check whether the target can async
3819 instead of whether it is already async.
3820 (linux_nat_terminal_ours): Don't check whether the target is
3822 (linux_async_pipe): Use linux_is_async_p.
3824 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3826 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
3828 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
3829 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
3830 Sort tp_array using tp_array_compar.
3831 (_initialize_thread): Extend thread_apply_all_command help.
3833 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3835 * corelow.c (core_open): Call also thread_command.
3836 * gdbthread.h (thread_command): New prototype moved from ...
3837 * thread.c (thread_command): ... here.
3838 (thread_command): Make it global.
3840 2015-01-22 Pedro Alves <palves@redhat.com>
3842 * configure.ac [*mingw32*]: Check $curses_found instead of
3844 * configure: Regenerate.
3845 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
3846 HAVE_NCURSES_NCURSES_H checks.
3848 2015-01-22 Eli Zaretskii <eliz@gnu.org>
3850 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
3851 fails with the 1st arg NULL, try again with "unknown". Don't test
3852 the "cup" capability: it isn't supported by the Windows port of
3853 ncurses, but the Windows console driver is still capable of
3856 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3858 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
3860 2015-01-22 Eli Zaretskii <eliz@gnu.org>
3862 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
3863 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
3864 reason that "make TAGS" is broken.
3866 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
3868 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
3869 and check additional store instructions.
3871 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
3873 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
3875 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
3877 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
3878 ppc_canonicalize_syscall, ppc_linux_syscall_record,
3879 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
3880 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
3881 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
3882 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
3883 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
3884 ppc_process_record_op19, ppc_process_record_op31,
3885 ppc_process_record_op59, ppc_process_record_op60,
3886 ppc_process_record_op63): Likewise.
3888 2015-01-20 Joel Brobecker <brobecker@adacore.com>
3890 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
3891 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
3894 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
3896 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
3897 ppc_process_record_op31, ppc_process_record_op59,
3898 ppc_process_record_op60, ppc_process_record_op63,
3899 ppc_process_record): Fix -Wformat warning.
3900 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
3901 Remove unused variables.
3903 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
3905 * MAINTAINERS (Write After Approval): Add "Chen Gang".
3907 2015-01-19 Eli Zaretskii <eliz@gnu.org>
3909 * configure.ac [*mingw32*]: Only add windows-termcap.o to
3910 CONFIG_OBS if not building with a curses library.
3911 * configure: Regenerate.
3913 * windows-termcap.c: Include defs.h. Make the whole body empty if
3914 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
3915 HAVE_NCURSES_NCURSES_H is defined.
3917 2015-01-19 Joel Brobecker <brobecker@adacore.com>
3919 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
3920 from end of line to start of next line.
3922 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
3924 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
3925 Scan PLT stub backward for reverse debugging.
3926 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
3928 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
3929 Ulrich Weigand <uweigand@de.ibm.com>
3931 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
3933 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
3935 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
3936 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
3937 (ppc_linux_init_abi): Set process_record, process_record_signal.
3938 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
3939 ppc_linux_record_tdep to gdbarch_tdep.
3940 (ppc_process_record): New declaration.
3941 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
3942 ppc_process_record_op19, ppc_process_record_op31,
3943 ppc_process_record_op59, ppc_process_record_op60,
3944 ppc_process_record_op63, ppc_process_record): New functions.
3946 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
3948 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
3949 rs6000_in_function_epilogue_frame_p and add an argument
3951 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
3952 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
3954 (rs6000_epilogue_frame_unwind): New.
3955 (rs6000_gdbarch_init): Append epilogue unwinder.
3957 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
3959 * nat/linux-personality.c: Replace "#ifndef
3960 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
3961 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
3964 2015-01-16 Eli Zaretskii <eliz@gnu.org>
3966 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
3968 (_initialize_tui_win) <border-kind, border-mode>:
3969 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
3970 (tui_set_tab_width_command): Fix the commentary.
3972 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
3974 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
3976 (tui_set_tab_width_command): Delete and recreate the source and
3977 the disassembly windows, to show the effect of the changed tab
3980 * tui/tui-data.h (LINE_PREFIX): Make shorter
3981 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
3982 "Thread NNNNN.XXXX" thread ID notation on Windows.
3984 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3986 Fix gcc-5 compilation.
3987 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
3989 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
3991 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
3992 (linux-personality.o): New rule.
3993 * common/common-defs.h: Include <stdint.h>.
3994 * config/aarch64/linux.mh (NATDEPFILES): Include
3995 linux-personality.o.
3996 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3997 * config/arm/linux.mh (NATDEPFILES): Likewise.
3998 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3999 * config/i386/linux.mh (NATDEPFILES): Likewise.
4000 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4001 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4002 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4003 * config/mips/linux.mh (NATDEPFILES): Likewise.
4004 * config/pa/linux.mh (NATDEPFILES): Likewise.
4005 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4006 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4007 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4008 * config/s390/linux.mh (NATDEPFILES): Likewise.
4009 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4010 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4011 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4012 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4013 * defs.h: Remove #include <stdint.h> (moved to
4014 common/common-defs.h).
4015 * linux-nat.c: Include nat/linux-personality.h. Remove #include
4016 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
4017 nat/linux-personality.c).
4018 (linux_nat_create_inferior): Remove code to disable address space
4019 randomization (moved to nat/linux-personality.c). Create cleanup
4020 to disable address space randomization.
4021 * nat/linux-personality.c: New file.
4022 * nat/linux-personality.h: Likewise.
4024 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
4026 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
4027 common/posix-strerror.c.
4028 (posix-strerror.o): New rule.
4029 (mingw-strerror.o): Likewise.
4030 * common/common-utils.h (safe_strerror): Move prototype to here,
4032 * common/common.host: New file.
4033 * common/mingw-strerror.c: Likewise.
4034 * common/posix-strerror.c: Likewise.
4035 * configure: Regenerated.
4036 * configure.ac: Source common/common.host. Add variable
4037 common_host_obs to gdb_host_obs.
4038 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
4039 gdb/common/posix-strerror.c when warning about the use of
4041 * mingw-hdep.c (safe_strerror): Remove definition; move it to
4042 common/mingw-strerror.c.
4043 * posix-hdep.c (safe_strerror): Remove definition; move it to
4044 common/posix-hdep.c.
4045 * utils.h (safe_strerror): Remove prototype; move to
4046 common/common-utils.h.
4048 2015-01-15 Joel Brobecker <brobecker@adacore.com>
4052 2015-01-15 Joel Brobecker <brobecker@adacore.com>
4054 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
4055 ___XA type if the array has already been fixed.
4057 2015-01-14 Yao Qi <yao@codesourcery.com>
4059 * Makefile.in (ppc-linux.o): New rule.
4060 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
4061 * configure.ac: AC_CHECK_FUNCS(getauxval).
4062 * config.in: Re-generated.
4063 * configure: Re-generated.
4064 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
4066 * nat/ppc-linux.c: New file.
4067 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
4068 Call ppc64_64bit_inferior_p.
4070 2015-01-14 Yao Qi <yao@codesourcery.com>
4072 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
4074 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
4075 (PPC_FEATURE_HAS_DFP): Likewise.
4076 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
4077 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
4078 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
4079 Include "nat/ppc-linux.h".
4080 * nat/ppc-linux.h: New file.
4081 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
4083 2015-01-14 Pedro Alves <palves@redhat.com>
4086 * breakpoint.c: Include "interps.h".
4087 (bpstat_do_actions_1): Also check whether the interpreter is
4090 2015-01-14 Pedro Alves <palves@redhat.com>
4093 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
4094 reinstall if the interpreter is sync.
4096 2015-01-13 Doug Evans <dje@google.com>
4098 * objfiles.c (objfile_filename): New function.
4099 * objfiles.h (objfile_filename): Declare it.
4100 (objfile_name): Add function comment.
4101 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
4102 bfd file name (which may be realpath'd), and the original name.
4104 2015-01-13 Joel Brobecker <brobecker@adacore.com>
4106 * NEWS: Create a new section for the next release branch.
4107 Rename the section of the current branch, now that it has
4110 2015-01-13 Joel Brobecker <brobecker@adacore.com>
4112 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
4113 * version.in: Bump version to 7.9.50.DATE-cvs.
4115 2015-01-13 Joel Brobecker <brobecker@adacore.com>
4117 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
4118 Remove trailing new-line in argument of call to warning.
4120 2015-01-13 Joel Brobecker <brobecker@adacore.com>
4122 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
4123 new-line in argument of call to "warning".
4125 2015-01-13 Joel Brobecker <brobecker@adacore.com>
4127 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
4128 in static block, then try searching for primitive types.
4130 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
4132 * top.h (gdb_add_history): Declare.
4133 * top.c (command_count): New variable.
4134 (gdb_add_history): New function.
4135 (gdb_safe_append_history): New static function.
4136 (quit_force): Call it.
4137 (command_line_input): Use gdb_add_history instead of
4139 * event-top.c (command_line_handler): Likewise.
4141 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
4144 * darwin-nat.c: Replace <machine/setjmp.h> #include by
4145 <setjmp.h> #include.
4147 2015-01-11 Doug Evans <xdje42@gmail.com>
4149 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
4151 2015-01-11 Doug Evans <xdje42@gmail.com>
4154 * NEWS: The "maint demangle" command is renamed as "demangle".
4155 * demangle.c: #include cli/cli-utils.h, language.h.
4156 (demangle_command): New function.
4157 (_initialize_demangle): Add new command "demangle".
4158 * maint.c (maintenance_demangle): Stub out.
4159 (_initialize_maint_cmds): Update help text for "maint demangle",
4160 and mark as deprecated.
4162 2015-01-11 Mark Kettenis <kettenis@gnu.org>
4164 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
4165 inferior_thread is a function.
4167 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
4169 * Makefile.in (.y.c): Don't munge yacc's #line
4172 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
4174 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
4175 to prompt for input.
4176 * tui/tui-hooks.c (tui_query_hook): Remove.
4177 (tui_install_hooks): Don't set deprecated_query_hook.
4178 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
4179 height calculation. Always update the command window's cur_line.
4181 2015-01-09 Pedro Alves <palves@redhat.com>
4183 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
4185 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
4187 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
4188 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
4190 (check_stopped_by_watchpoint): New function.
4191 (save_sigtrap): Reimplement.
4192 (linux_nat_stopped_by_watchpoint): Adjust.
4193 (linux_nat_lp_status_is_event): Delete.
4194 (stop_wait_callback): Only call save_sigtrap after storing the
4196 (status_callback): If the thread had been stopped for a breakpoint
4197 that has since been removed, discard the event and resume the LWP.
4198 (count_events_callback, select_event_lwp_callback): Use
4199 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
4200 (cancel_breakpoint): Rename to ...
4201 (check_stopped_by_breakpoint): ... this. Record whether the LWP
4202 stopped for a software breakpoint or hardware breakpoint.
4203 (select_event_lwp): Only give preference to the stepping LWP in
4204 all-stop mode. Adjust comments.
4205 (stop_and_resume_callback): Remove references to new_pending_p.
4206 (linux_nat_filter_event): Likewise. Leave exit events of the
4207 leader thread pending here. Handle signal short circuiting here.
4208 Only call save_sigtrap after storing the pending waitstatus.
4209 (linux_nat_wait_1): Remove 'retry' label. Remove references to
4210 new_pending. Don't handle leaving events the caller is not
4211 interested in pending here, nor handle signal short-circuiting
4212 here. Also give equal priority to all LWPs that have had events
4213 in non-stop mode. If reporting a software breakpoint event,
4214 unadjust the LWP's PC.
4215 * linux-nat.h (enum lwp_stop_reason): New.
4216 (struct lwp_info) <stop_pc>: New field.
4217 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
4218 (struct lwp_info) <stop_reason>: New field.
4219 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
4221 2015-01-09 Pedro Alves <palves@redhat.com>
4223 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
4224 Set the LWP's 'resumed' flag.
4226 2015-01-09 Pedro Alves <palves@redhat.com>
4228 * linux-nat.c (linux_resume_one_lwp): New function.
4229 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
4230 (linux_nat_resume): Use lwp_status_pending_p and
4231 linux_resume_one_lwp.
4232 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
4233 (linux_handle_extended_wait): Use linux_resume_one_lwp.
4234 (status_callback, running_callback): Use lwp_status_pending_p.
4235 (lwp_status_pending_p): New function.
4236 (stop_and_resume_callback): Use lwp_status_pending_p.
4237 (linux_nat_filter_event): Use linux_resume_one_lwp.
4238 (linux_nat_wait_1): Always use status_callback to look for an LWP
4239 with a pending status. Use linux_resume_one_lwp.
4240 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
4241 linux_resume_one_lwp.
4243 2015-01-09 Pedro Alves <palves@redhat.com>
4245 * breakpoint.c (bp_location_inserted_here_p): New function,
4246 factored out from ...
4247 (breakpoint_inserted_here_p): ... here. Use
4248 ALL_BP_LOCATIONS_AT_ADDR.
4249 (software_breakpoint_inserted_here_p): Use
4250 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
4252 2014-01-09 Pedro Alves <palves@redhat.com>
4254 Skip enabling event reporting if the kernel supports
4256 * linux-thread-db.c: Include "nat/linux-ptrace.h".
4257 (thread_db_use_events): New function.
4258 (try_thread_db_load_1): Check thread_db_use_events before enabling
4260 (update_thread_state): New function.
4261 (attach_thread): Use it. Check thread_db_use_events before
4262 enabling event reporting.
4263 (thread_db_detach): Check thread_db_use_events before disabling
4265 (find_new_threads_callback): Check thread_db_use_events before
4266 enabling event reporting. Update the thread's state if not using
4267 libthread_db events.
4269 2015-01-09 Pedro Alves <palves@redhat.com>
4271 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
4272 about to wait for is > 0.
4273 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
4274 the kernel thread ID is -1.
4276 2015-01-09 Pedro Alves <palves@redhat.com>
4278 * linux-nat.c (attach_proc_task_lwp_callback): New function.
4279 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
4280 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
4281 ptrace option flags.
4282 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
4284 * nat/linux-procfs.c: Include <dirent.h>.
4285 (linux_proc_get_int): New parameter "warn". Handle it.
4286 (linux_proc_get_tgid): Adjust.
4287 (linux_proc_get_tracerpid): Rename to ...
4288 (linux_proc_get_tracerpid_nowarn): ... this.
4289 (linux_proc_pid_get_state): New function, factored out from
4290 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
4292 (linux_proc_pid_is_gone): New function.
4293 (linux_proc_pid_is_stopped): Adjust.
4294 (linux_proc_pid_is_zombie_maybe_warn)
4295 (linux_proc_pid_is_zombie_nowarn): New functions.
4296 (linux_proc_pid_is_zombie): Use
4297 linux_proc_pid_is_zombie_maybe_warn.
4298 (linux_proc_attach_tgid_threads): New function.
4299 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
4300 (linux_proc_get_tracerpid): Rename to ...
4301 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
4302 (linux_proc_pid_is_gone): New declaration.
4303 (linux_proc_pid_is_zombie): Update comment.
4304 (linux_proc_pid_is_zombie_nowarn): New declaration.
4305 (linux_proc_attach_lwp_func): New typedef.
4306 (linux_proc_attach_tgid_threads): New declaration.
4307 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
4308 use nowarn functions.
4309 (linux_ptrace_attach_fail_reason_string): Move here from
4310 gdbserver/linux-low.c and rename.
4311 (ptrace_supports_feature): If the current ptrace options are not
4312 known yet, check them now, instead of asserting.
4313 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
4316 2015-01-09 Pedro Alves <palves@redhat.com>
4318 * linux-thread-db.c (thread_db_find_new_threads_silently)
4319 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
4320 (find_new_threads_once): Print debug output on gdb_stdlog.
4322 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
4323 Pedro Alves <palves@redhat.com>
4325 * compile/compile.c: Include "gdb_wait.h".
4326 (do_rmdir): Check return value, and free 'zap'.
4328 2015-01-08 Pedro Alves <palves@redhat.com>
4329 Yao Qi <yao@codesourcery.com>
4331 * dwarf2loc.c (indirect_pieced_value): Don't call
4332 gdb_sign_extend. Call extract_signed_integer instead.
4333 * utils.c (gdb_sign_extend): Remove.
4334 * utils.h (gdb_sign_extend): Remove declaration.
4336 2015-01-07 Pierre Muller <muller@sourceware.org>
4339 * stabsread.c (define_symbol): Set language for C++ special symbols.
4341 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
4343 * inflow.c (initial_gdb_ttystate): Tweak comment.
4345 2015-01-07 Joel Brobecker <brobecker@adacore.com>
4347 * inflow.c (set_initial_gdb_ttystate): Add empty line after
4348 comment documenting function.
4350 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
4352 * terminal.h (set_initial_gdb_ttystate): Declare.
4353 * inflow.c (initial_gdb_ttystate): New static variable.
4354 (set_initial_gdb_ttystate): New setter.
4355 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
4356 instead of our current terminal state.
4357 * top.c (gdb_init): Call set_initial_gdb_ttystate.
4359 2015-01-07 Joel Brobecker <brobecker@adacore.com>
4361 * guile/scm-type.c (tyscm_array_1): Add comment.
4362 * python/py-type.c (typy_array_1): Add comment.
4364 2015-01-06 Joel Brobecker <brobecker@adacore.com>
4366 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
4367 error if N2 is equal to N1 - 1.
4369 2015-01-06 Joel Brobecker <brobecker@adacore.com>
4371 * python/py-type.c (typy_array_1): Do not raise negative-length
4372 exception if N2 is equal to N1 - 1.
4374 2015-01-03 Doug Evans <xdje42@gmail.com>
4376 * c-exp.y: Whitespace cleanup.
4377 (classify_inner_name): Remove extra ;.
4379 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
4381 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
4384 2015-01-02 Doug Evans <dje@google.com>
4386 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
4388 2015-01-02 Doug Evans <dje@google.com>
4390 * symtab.h (struct symbol): Fix typo in comment.
4392 2015-01-01 Joel Brobecker <brobecker@adacore.com>
4394 Update year range in copyright notice of all files.
4396 2015-01-01 Joel Brobecker <brobecker@adacore.com>
4398 * top.c (print_gdb_version): Update copyright year to 2015.
4400 2015-01-01 Joel Brobecker <brobecker@adacore.com>
4402 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
4404 For older changes see ChangeLog-2014.
4410 version-control: never