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