1 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
3 * cli/cli-dump.c (srec_dump_command): Add internationalization
5 (ihex_dump_command): Likewise.
6 (tekhex_dump_command): Likewise.
7 (binary_dump_command): Likewise.
8 (binary_append_command): Likewise.
10 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
12 * cli/cli-dump.c (verilog_cmdlist): New variable.
13 (dump_verilog_memory): New function.
14 (dump_verilog_value): New function.
15 (verilog_dump_command): New function.
16 (_initialize_cli_dump): Add new commands to support verilog dump
18 * NEWS: Add entry for "dump verilog".
20 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
22 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
23 descriptive type when there is none.
25 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
27 * tui/tui-win.c (tui_async_resize_screen): Call
30 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
32 * windows-nat.c (handle_output_debug_string): Don't change
33 current_event.dwThreadId.
34 (get_windows_debug_event): Use thread_id, rather than relying on
35 current_event.dwThreadId being changed.
37 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
39 * windows-nat.c (windows_continue): Report an error if
40 ContinueDebugEvent() fails.
42 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
44 * windows-nat.c (windows_resume): Fix misspelling in debug output.
46 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
48 * windows-nat.c (get_windows_debug_event): Replace retval with
49 thread_id throughout. Update stale comment.
51 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
53 * windows-nat.c (get_windows_debug_event): Don't use ternary
56 2015-04-21 Pierre Muller <muller@sourceware.org>
59 p-exp.y (yylex): Reorganize code to return the matched pattern
62 2015-04-21 Gary Benson <gbenson@redhat.com>
64 * common/fileio.h (fileio_to_host_openflags): New declaration.
65 * common/fileio.c (fcntl.h): New include.
66 (fileio_to_host_openflags): New function, factored out from...
67 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
70 2015-04-21 Kevin Buettner <kevinb@redhat.com>
72 * rl78-tdep.c (RL78_SP_ADDR): Define.
73 (opc_reg_to_gdb_regnum): New static function.
74 (rl78_analyze_prologue): Recognize instructions forming slightly
75 more interesting prologues.
77 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
80 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
81 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
82 TYPE_CODE_REF types so that they are not considered as dynamic
83 depending on the referenced type.
84 (resolve_dynamic_type_internal): Likewise.
86 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
89 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
90 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
91 "top_level" parameter.
92 (resolve_dynamic_type_internal): Remove the unused "top_level"
93 parameter. Update call to is_dynamic_type_internal.
94 (is_dynamic_type): Update call to is_dynamic_type_internal.
95 (resolve_dynamic_range): Update call to
96 resolve_dynamic_type_internal.
97 (resolve_dynamic_union): Likewise.
98 (resolve_dynamic_struct): Likewise.
99 (resolve_dynamic_type): Likewise.
101 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
103 * breakpoint.c (update_dprintf_command_list): Remove duplicated
106 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
108 * reply_mig_hack.awk: Robustify parsing.
110 * reply_mig_hack.awk: Don't bother to declare an intermediate
111 function pointer variable.
113 2015-04-17 Doug Evans <dje@google.com>
115 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
116 to "exec_displacement" to avoid confusion with inner use of the name.
118 2015-04-17 Pedro Alves <palves@redhat.com>
120 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
121 if HW point of TYPE isn't supported.
123 2015-04-17 Yao Qi <yao.qi@linaro.org>
124 Pedro Alves <palves@redhat.com>
126 * target.h (target_can_use_hardware_watchpoint): Update comments.
129 2015-04-17 Gary Benson <gbenson@redhat.com>
131 * remote.c (remote_add_inferior): New argument try_open_exec.
132 If nonzero, attempt to open the inferior's executable file as
133 the main executable if no main executable is open already.
135 * NEWS: Mention that GDB now supports automatic location and
136 retrieval of executable + files from remote targets.
138 2015-04-17 Gary Benson <gbenson@redhat.com>
140 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
141 * remote.c (PACKET_qXfer_exec_file): Likewise.
142 (remote_protocol_features): Register the
143 "qXfer:exec-file:read" feature.
144 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
145 (remote_pid_to_exec_file): New function.
146 (init_remote_ops): Initialize to_pid_to_exec_file.
147 (_initialize_remote): Register new "set/show remote
148 pid-to-exec-file-packet" command.
149 * NEWS: Announce new qXfer:exec-file:read packet.
151 2015-04-17 Gary Benson <gbenson@redhat.com>
153 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
155 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
156 New function, factored out from...
157 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
159 2015-04-17 Gary Benson <gbenson@redhat.com>
161 * exec.c (solist.h): New include.
162 (exec_file_locate_attach): Prefix absolute executable
163 paths with gdb_sysroot if set.
164 * NEWS: Mention that executable paths may be prepended
167 2015-04-17 Gary Benson <gbenson@redhat.com>
169 * solist.h (exec_file_find): New declaration.
170 * solib.c (solib_find_1): New function, factored out from...
171 (solib_find): ...here.
172 (exec_file_find): New function.
174 2015-04-17 Gary Benson <gbenson@redhat.com>
176 * gdbcore.h (exec_file_locate_attach): New declaration.
177 * exec.c (exec_file_locate_attach): New function, factored
179 * infcmd.c (attach_command_post_wait): ...here.
181 2015-04-17 Mike Frysinger <vapier@gentoo.org>
183 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
185 2015-04-16 Yao Qi <yao.qi@linaro.org>
187 * infrun.c (maybe_software_singlestep): Declare.
188 (displaced_step_fixup): Call maybe_software_singlestep.
190 2015-04-15 Doug Evans <dje@google.com>
192 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
194 2015-04-15 Doug Evans <dje@google.com>
196 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
198 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
200 * python/lib/gdb/command/unwinders.py: Add parentheses.
202 2015-04-15 Yao Qi <yao.qi@linaro.org>
204 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
206 2015-04-15 Yao Qi <yao.qi@linaro.org>
208 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
210 2015-04-15 Yao Qi <yao.qi@linaro.org>
212 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
213 dsc->insn_size instead of 4.
215 2015-04-14 Gary Benson <gbenson@redhat.com>
217 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
218 * minidebug.c (lzma_stat): Likewise.
219 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
220 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
222 2015-04-13 Stan Shebs <stanshebs@google.com>
224 * MAINTAINERS: Update my email address.
226 2015-04-13 John Baldwin <jhb@FreeBSD.org>
228 * amd64-tdep.c (amd64_target_description): New function.
229 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
230 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
231 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
232 x86 extended save area.
233 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
234 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
235 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
236 (_initialize_amd64fbsd_nat): Set "to_read_description" to
237 "amd64fbsd_read_description".
238 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
239 (amd64fbsd_supply_xstateregset): New function.
240 (amd64fbsd_collect_xstateregset): New function.
241 Add "amd64fbsd_xstateregset".
242 (amd64fbsd_iterate_over_regset_sections): New function.
243 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
244 "I386_FBSD_XSAVE_XCR0_OFFSET".
245 Add "iterate_over_regset_sections" gdbarch method.
246 Add "core_read_description" gdbarch method.
247 * i386-tdep.c (i386_target_description): New function.
248 * i386-tdep.h: Export i386_target_description and tdesc_i386.
249 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
250 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
251 x86 extended save area.
252 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
253 * i386bsd-nat.h: Export i386bsd_xsave_len.
254 * i386fbsd-nat.c (i386fbsd_read_description): New function.
255 (_initialize_i386fbsd_nat): Set "to_read_description" to
256 "i386fbsd_read_description".
257 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
258 (i386fbsd_core_read_description): New function.
259 (i386fbsd_supply_xstateregset): New function.
260 (i386fbsd_collect_xstateregset): New function.
261 Add "i386fbsd_xstateregset".
262 (i386fbsd_iterate_over_regset_sections): New function.
263 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
264 "I386_FBSD_XSAVE_XCR0_OFFSET".
265 Add "iterate_over_regset_sections" gdbarch method.
266 Add "core_read_description" gdbarch method.
267 * i386fbsd-tdep.h: New file.
269 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
271 * NEWS (Changes since GDB 7.9): Add removed -xdb.
272 * breakpoint.c (command_line_is_silent): Remove xdb_commands
274 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
276 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
278 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
280 * defs.h (xdb_commands): Remove declaration.
281 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
282 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
283 * infcmd.c (run_no_args_command, go_command): Remove.
284 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
285 * infrun.c (xdb_handle_command): Remove.
286 (_initialize_infrun): Remove xdb_commands for lz and z.
287 * main.c (xdb_commands): Remove variable.
288 (captured_main): Remove "xdb" from long_options.
289 (print_gdb_help): Remove --xdb from help.
290 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
291 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
292 * stack.c (backtrace_full_command, args_plus_locals_info)
293 (current_frame_command): Remove.
294 (_initialize_stack): Remove xdb_commands for t, T and l.
295 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
296 * thread.c (_initialize_thread): Remove xdb_commands condition.
297 * tui/tui-layout.c (tui_toggle_layout_command)
298 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
299 (_initialize_tui_layout): Remove xdb_commands for td and ts.
300 * tui/tui-regs.c (tui_scroll_regs_forward_command)
301 (tui_scroll_regs_backward_command): Remove.
302 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
303 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
304 (_initialize_tui_win): Remove xdb_commands for U and w.
305 * utils.c (pagination_on_command, pagination_off_command): Remove.
306 (initialize_utils): Remove xdb_commands for am and sm.
308 2015-04-10 Pedro Alves <palves@redhat.com>
310 * infrun.c (displaced_step_fixup): Switch to the event ptid
311 earlier. If the thread stopped for a watchpoint and the
312 target/arch has non-continuable watchpoints, cancel the displaced
314 (resume): Don't start a displaced step if in-line step-over info
317 2015-04-10 Pedro Alves <palves@redhat.com>
319 * infrun.c (displaced_step_in_progress): New function.
320 (do_target_resume): Advise target to report all signals if
323 2015-04-10 Pedro Alves <palves@redhat.com>
326 * infrun.c (process_event_stop_test): Don't assume a step-resume
327 is set if tp->stepped_breakpoint is true.
329 2015-04-10 Yao Qi <yao.qi@linaro.org>
331 * arm-tdep.c (install_alu_reg): Update comment.
332 (thumb_copy_alu_reg): Remove local variable rn. Update
333 debugging message. Use r2 instead of r1 in the modified
336 2015-04-10 Pedro Alves <palves@redhat.com>
339 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
340 linux_displaced_step_location as gdbarch_displaced_step_location
342 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
343 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
344 * linux-tdep.c (linux_displaced_step_location): New function,
345 based on ppc_linux_displaced_step_location.
346 * linux-tdep.h (linux_displaced_step_location): New declaration.
347 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
348 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
350 (ppc_linux_init_abi): Install linux_displaced_step_location as
351 gdbarch_displaced_step_location hook, even without Cell/B.E..
352 (_initialize_ppc_linux_tdep): Don't install
353 ppc_linux_inferior_created as inferior_created observer.
354 * s390-linux-tdep.c (s390_gdbarch_init): Install
355 linux_displaced_step_location as gdbarch_displaced_step_location
358 2015-04-09 Gary Benson <gbenson@redhat.com>
360 * common/common-remote-fileio.h: Rename to...
361 * common/fileio.h: ...this. Update all references.
362 (remote_fileio_to_fio_error): Rename to...
363 (host_to_fileio_error): ...this.
364 (remote_fileio_to_be): Rename to...
365 (host_to_bigendian): ...this. Update all callers.
366 (remote_fileio_to_fio_uint): Rename to...
367 (host_to_fileio_uint): ...this. Update all callers.
368 (remote_fileio_to_fio_time): Rename to...
369 (host_to_fileio_time): ...this. Update all callers.
370 (remote_fileio_to_fio_stat): Rename to...
371 (host_to_fileio_stat): ...this.
372 Update all references.
373 * common/common-remote-fileio.c: Rename to...
374 * common/fileio.c: ...this. Update all references.
375 (remote_fileio_to_fio_error): Rename to...
376 (host_to_fileio_error): ...this. Update all callers.
377 (remote_fileio_mode_to_target): Rename to...
378 (fileio_mode_pack): ...this. Update all callers.
379 (remote_fileio_to_fio_mode): Rename to...
380 (host_to_fileio_mode): ...this. Update all callers.
381 (remote_fileio_to_fio_ulong): Rename to...
382 (host_to_fileio_ulong): ...this. Update all callers.
383 (remote_fileio_to_fio_stat): Rename to...
384 (host_to_fileio_stat): ...this. Update all callers.
386 2015-04-09 Andy Wingo <wingo@igalia.com>
388 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
389 (frame_functions): Bind gdbscm_frame_read_register to
391 * guile/lib/gdb.scm (frame-read-register): Export.
393 2015-04-09 Gary Benson <gbenson@redhat.com>
395 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
397 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
398 New function, factored out the named functions below.
399 * inf-child.c (gdb/fileio.h): Remove include.
400 (common-remote-fileio.h): New include.
401 (inf_child_errno_to_fileio_error): Remove function. Update
402 all callers to use remote_fileio_to_fio_error.
403 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
405 2015-04-09 Andy Wingo <wingo@igalia.com>
407 * MAINTAINERS (Write After Approval): Add Andy Wingo.
409 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
411 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
412 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
413 * configure: Regenerated.
415 2015-04-09 Pedro Alves <palves@redhat.com>
417 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
418 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
419 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
420 * gnulib/import/Makefile.am: Update.
421 * gnulib/import/Makefile.in: Update.
422 * gnulib/import/m4/gnulib-cache.m4: Update.
423 * gnulib/import/m4/gnulib-comp.m4: Update.
424 * gnulib/import/m4/strtok_r.m4: New file.
425 * gnulib/import/strtok_r.c: New file.
427 2015-04-09 Pedro Alves <palves@redhat.com>
429 * gnulib/update-gnulib.sh (aclocal version check): Filter out
430 "called too early to check prototype".
432 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
435 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
436 use a caching mechanism. Adjust comments and code to reflect
437 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
438 (cmdpy_completer_handle_brkchars): Adjust call to
439 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
440 (cmdpy_completer): Likewise.
442 2015-04-08 Yao Qi <yao.qi@linaro.org>
444 * spu-tdep.c (spu_gdbarch_init): Don't call
445 set_gdbarch_cannot_step_breakpoint.
447 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
449 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
451 2015-04-07 Pedro Alves <palves@redhat.com>
453 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
454 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
455 (delete_exited_threads): New declaration.
456 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
457 * linux-nat.c (linux_nat_update_thread_list): New function.
458 (linux_nat_add_target): Install it.
459 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
460 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
461 (delete_exited_threads): New function.
463 2015-04-07 Pedro Alves <pedro@codesourcery.com>
465 * infrun.c (resume) <displaced stepping debug output>: Get the
466 leader thread's regcache, not resume_ptid's.
468 2015-04-06 Doug Evans <xdje42@gmail.com>
470 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
472 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
473 Include symbol domain in debugging output.
475 2015-04-06 Pedro Alves <palves@redhat.com>
476 Bernd Edlinger <bernd.edlinger@hotmail.de>
478 * configure.ac: Remove the mingw32-specific stub-termcap.o
479 fallback, and instead fallback to the stub termcap on all hosts.
480 * configure: Regenerate.
481 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
484 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
486 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
487 "top_level" parameter.
488 (resolve_dynamic_type_internal): Remove the unused "top_level"
489 parameter. Update call to is_dynamic_type_internal.
490 (is_dynamic_type): Update call to is_dynamic_type_internal.
491 (resolve_dynamic_range): Update call to
492 resolve_dynamic_type_internal.
493 (resolve_dynamic_union): Likewise.
494 (resolve_dynamic_struct): Likewise.
495 (resolve_dynamic_type): Likewise.
497 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
499 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
500 TYPE_CODE_REF types so that they are not considered as dynamic
501 depending on the referenced type.
502 (resolve_dynamic_type_internal): Likewise.
504 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
506 * Makefile.in (top_srcdir): New.
507 * configure: Regenerated.
509 2015-04-02 Gary Benson <gbenson@redhat.com>
511 * NEWS: Announce the new default sysroot of "target:".
513 2015-04-02 Gary Benson <gbenson@redhat.com>
515 * main.c (captured_main): Set gdb_sysroot to "target:"
516 if not otherwise set.
518 2015-04-02 Gary Benson <gbenson@redhat.com>
520 * exec.c (exec_file_attach): Support "target:" filenames.
522 2015-04-02 Gary Benson <gbenson@redhat.com>
524 * solib.c (solib_find): Strip "target:" prefix from sysroot
525 if accessing local files.
527 2015-04-02 Gary Benson <gbenson@redhat.com>
529 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
530 checks and error messages.
532 2015-04-02 Gary Benson <gbenson@redhat.com>
534 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
535 (remote_filename_p): Remove declaration.
536 (remote_bfd_open): Likewise.
537 * remote.c (remote_bfd_iovec_open): Remove function.
538 (remote_bfd_iovec_close): Likewise.
539 (remote_bfd_iovec_pread): Likewise.
540 (remote_bfd_iovec_stat): Likewise.
541 (remote_filename_p): Likewise.
542 (remote_bfd_open): Likewise.
543 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
544 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
545 (gdb_bfd_open_maybe_remote): Remove function.
546 (symfile_bfd_open): Replace remote filename check with
547 target filename check.
548 (reread_symbols): Use gdb_bfd_open.
549 * build-id.c (gdbcore.h): New include.
550 (build_id_to_debug_bfd): Use gdb_bfd_open.
551 * infcmd.c (attach_command_post_wait): Remove remote filename
553 * solib.c (solib_find): Replace remote-specific handling with
554 target-specific handling. Update comments where necessary.
555 (solib_bfd_open): Replace remote-specific handling with
556 target-specific handling.
557 (gdb_sysroot_changed): New function.
558 (_initialize_solib): Call the above when gdb_sysroot changes.
559 * windows-tdep.c (gdbcore.h): New include.
560 (windows_xfer_shared_library): Use gdb_bfd_open.
562 2015-04-02 Gary Benson <gbenson@redhat.com>
564 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
565 (is_target_filename): New declaration.
566 (gdb_bfd_has_target_filename): Likewise.
567 (gdb_bfd_open): Update documentation comment.
568 * gdb_bfd.c (target.h): New include.
569 (gdb/fileio.h): Likewise.
570 (is_target_filename): New function.
571 (gdb_bfd_has_target_filename): Likewise.
572 (fileio_errno_to_host): Likewise.
573 (gdb_bfd_iovec_fileio_open): Likewise.
574 (gdb_bfd_iovec_fileio_pread): Likewise.
575 (gdb_bfd_iovec_fileio_close): Likewise.
576 (gdb_bfd_iovec_fileio_fstat): Likewise.
577 (gdb_bfd_open): Use target fileio to access paths prefixed
578 with "target:" where necessary.
580 2015-04-02 Gary Benson <gbenson@redhat.com>
582 * target.h (struct target_ops) <to_filesystem_is_local>:
584 (target_filesystem_is_local): New macro.
585 * target-delegates.c: Regenerate.
586 * remote.c (remote_filesystem_is_local): New function.
587 (init_remote_ops): Initialize to_filesystem_is_local.
589 2015-04-02 Gary Benson <gbenson@redhat.com>
591 * target.h (struct target_ops) <to_fileio_fstat>: New field.
592 (target_fileio_fstat): New declaration.
593 * target.c (target_fileio_fstat): New function.
594 * inf-child.c (inf_child_fileio_fstat): Likewise.
595 (inf_child_target): Initialize to_fileio_fstat.
596 * remote.c (init_remote_ops): Likewise.
598 2015-04-01 Sasha Smundak <asmundak@google.com>
600 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
601 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
602 (py-unwind.o): New recipe.
603 * NEWS: mention Python frame unwinding.
604 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
605 gdb/unwinder.py and gdb/command/unwinder.py
606 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
608 (execute_unwinders): New function.
609 * python/lib/gdb/command/unwinders.py: New file.
610 * python/lib/gdb/unwinder.py: New file.
611 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
612 (objfpy_dealloc): Decrement frame_unwinders reference count.
613 (objfpy_initialize): Create frame_unwinders list.
614 (objfpy_get_frame_unwinders): New function.
615 (objfpy_set_frame_unwinders): Ditto.
616 (objfile_getset): Add frame_unwinders attribute to Objfile.
617 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
618 (pspy_dealloc): Decrement frame_unwinders reference count.
619 (pspy_initialize): Create frame_unwinders list.
620 (pspy_get_frame_unwinders): New function.
621 (pspy_set_frame_unwinders): Ditto.
622 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
623 * python/py-unwind.c: New file.
624 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
625 (objpy_get_frame_unwinders): New prototype.
626 (gdbpy_initialize_unwind): New prototype.
627 * python/python.c (gdbpy_apply_type_printers): Call
628 gdbpy_initialize_unwind.
630 2015-04-01 Pedro Alves <palves@redhat.com>
632 * infrun.c (resume): Check currently_stepping after clearing
633 stepped_breakpoint, not before.
635 2015-04-01 Pedro Alves <palves@redhat.com>
637 * infrun.c (print_target_wait_results): Print all the ptid
640 2015-04-01 Pedro Alves <palves@redhat.com>
642 * infrun.c (keep_going): Also discard cleanups if inserting
645 2015-04-01 Pedro Alves <palves@redhat.com>
647 * infrun.c (wait_for_inferior): Install the
648 finish_thread_state_cleanup cleanup across the whole function, not
649 just around handle_inferior_event.
651 2015-04-01 Pedro Alves <palves@redhat.com>
653 * infrun.c (resume) <step past permanent breakpoint>: Use
656 2015-04-01 Pedro Alves <palves@redhat.com>
658 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
660 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
662 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
664 2015-04-01 Pedro Alves <palves@redhat.com>
666 * linux-thread-db.c (record_thread): Readd the thread to gdb's
667 list if it was marked exited.
669 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
671 * configure: Regenerated.
673 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
674 Jan Kratochvil <jan.kratochvil@redhat.com>
675 Oleg Nesterov <oleg@redhat.com>
678 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
679 New enum identifying the various options of the coredump_filter
681 (struct smaps_vmflags): New struct.
682 (use_coredump_filter): New variable.
683 (decode_vmflags): New function.
684 (mapping_is_anonymous_p): Likewise.
685 (dump_mapping_p): Likewise.
686 (linux_find_memory_regions_full): New variables
687 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
688 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
689 parsing of its information. Implement memory mapping filtering
690 based on its contents.
691 (show_use_coredump_filter): New function.
692 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
693 * NEWS: Mention the possibility of using the
694 '/proc/PID/coredump_filter' file when generating a corefile.
695 Mention new command 'set use-coredump-filter'.
697 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
699 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
700 read_memory_unsigned_integer.
702 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
704 * Makefile.in (ZLIB): New.
706 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
707 (CLIBS): Add $(ZLIB).
708 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
710 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
711 * top.c (print_gdb_configuration): Remove --with-zlib and
713 * config.in: Regenerated.
714 * configure: Likewise.
716 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
718 * NEWS: Mention info os cpus support.
719 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
720 (struct osdata_type): Add cpus entry, reorder the entries in
723 2015-03-31 Matthias Klose <doko@ubuntu.com>
725 * compile/compile.c (compile_to_object): Allow triplets with or
728 2015-03-30 Doug Evans <dje@google.com>
731 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
734 2015-03-30 Gary Benson <gbenson@redhat.com>
736 * remote.c (remote_mourn_1): Remove function. Update all callers
738 (extended_remote_mourn_1): Remove function. Update all callers
739 to use extended_remote_mourn.
740 (extended_remote_attach_1): Remove function. Update all callers
741 to use extended_remote_attach.
743 2015-03-28 James Bowman <james.bowman@ftdichip.com>
745 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
746 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
747 (ALLDEPFILES): Add ft32-tdep.c.
748 * configure.tgt: Add FT32 entry.
749 * ft32-tdep.c: New file, FT32 target-dependent code.
750 * ft32-tdep.h: New file, FT32 target-dependent code.
752 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
755 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
757 * printcmd.c (print_command_1): Move expr variable scope.
759 2015-03-27 Joel Brobecker <brobecker@adacore.com>
761 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
763 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
765 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
768 2015-03-26 Joel Brobecker <brobecker@adacore.com>
770 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
771 exception raised while parsing the probe arguments.
772 Force parsing to be done using the C language parser.
773 * expression.h (parse_expression_with_language): Declare.
774 * parse.c (parse_expression_with_language): New function.
776 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
778 * MAINTAINERS (Write After Approval): Add "Jon Turney".
780 2015-03-26 Andy Wingo <wingo@igalia.com>
783 * dwarf2read.c (struct partial_die_info): Add has_const_value
785 (add_partial_symbol): Don't punt on symbols that have const_value
787 (read_partial_die): Detect DW_AT_const_value.
789 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
792 * printcmd.c (print_command_1): Move expr variable scope.
794 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
797 * printcmd.c (validate_format): Make the parameter cmdname const.
799 2015-03-26 Don Breazeal <donb@codesourcery.com>
801 * remote.c (_initialize_remote): Update comment.
803 2015-03-26 Pedro Alves <palves@redhat.com>
804 Jon TURNEY <jon.turney@dronecode.org.uk>
806 * coffread.c (coff_symfile_read): When constructing the name of an
807 import stub symbol from import symbol for amd64, only skip the
808 char after _imp_ if the target is underscored (like i386) and the
809 char is indeed the target's leading char.
811 2015-03-25 Pedro Alves <palves@redhat.com>
813 * target.h <to_async>: Replace 'callback' and 'context' parameters
814 with boolean 'enable' parameter.
815 (target_async): Replace CALLBACK and CONTEXT parameters with
816 boolean ENABLE parameter.
817 * inf-loop.c (inferior_event_handler): Adjust.
818 * linux-nat.c (linux_nat_attach, linux_nat_resume)
819 (linux_nat_resume): Adjust.
820 (async_client_callback, async_client_context): Delete.
821 (handle_target_event): Call inferior_event_handler directly.
822 (linux_nat_async): Replace 'callback' and 'context' parameters
823 with boolean 'enable' parameter. Adjust. Remove references to
824 async_client_callback and async_client_context.
825 (linux_nat_close): Adjust.
826 * record-btrace.c (record_btrace_async): Replace 'callback' and
827 'context' parameters with boolean 'enable' parameter. Adjust.
828 (record_btrace_resume): Adjust.
829 * record-full.c (record_full_async): Replace 'callback' and
830 'context' parameters with boolean 'enable' parameter. Adjust.
831 (record_full_resume, record_full_core_resume): Adjust.
832 * remote.c (struct remote_state) <async_client_callback,
833 async_client_context>: Delete fields.
834 (remote_start_remote, extended_remote_attach_1, remote_resume)
835 (extended_remote_create_inferior): Adjust.
836 (remote_async_serial_handler): Call inferior_event_handler
838 (remote_async): Replace 'callback' and 'context' parameters with
839 boolean 'enable' parameter. Adjust.
840 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
842 * target-delegates.c: Regenerate.
844 2015-03-25 Gary Benson <gbenson@redhat.com>
845 Pedro Alves <palves@redhat.com>
847 * target.c (fileio_ft_t): New typedef, define object vector.
848 (fileio_fhandles): New static variable.
849 (is_closed_fileio_fh): New macro.
850 (lowest_closed_fd): New static variable.
851 (acquire_fileio_fd): New function.
852 (release_fileio_fd): Likewise.
853 (fileio_fd_to_fh): New macro.
854 (target_fileio_open): Wrap the file descriptor on success.
855 (target_fileio_pwrite): Updated to use wrapped file descriptor.
856 (target_fileio_pread): Likewise.
857 (target_fileio_close): Likewise.
859 2015-03-24 Pedro Alves <palves@redhat.com>
861 * thread.c (thread_apply_all_command): Take exited threads into
864 2015-03-24 Pedro Alves <palves@redhat.com>
866 * infrun.c (resume, proceed): Mention
867 switch_back_to_stepped_thread, not switch_back_to_stepping.
869 2015-03-24 Pedro Alves <palves@redhat.com>
871 * infrun.c (user_visible_resume_ptid): Rewrite going from
872 most-locked to unlocked instead of the opposite. Move comment ...
873 * infrun.h (user_visible_resume_ptid): ... here.
875 2015-03-24 Pedro Alves <palves@redhat.com>
877 * linux-nat.c (linux_nat_resume): Output debug logs before trying
878 to resume the event lwp. Use the lwp's ptid instead of the passed
879 in (maybe wildcard) ptid.
880 (stop_wait_callback): Tweak debug log output.
881 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
883 (linux_nat_filter_event): In debug output, distinguish a
884 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
885 before trying to resume the lwp.
887 2015-03-24 Joel Brobecker <brobecker@adacore.com>
889 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
891 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
892 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
894 2015-03-24 Joel Brobecker <brobecker@adacore.com>
896 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
897 Renames DYN_ATTR_DATA_LOCATION.
898 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
899 DYN_ATTR_DATA_LOCATION.
900 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
901 instead of DYN_ATTR_DATA_LOCATION.
903 2015-03-24 Pedro Alves <palves@redhat.com>
905 * breakpoint.c (until_break_command): Adjust call to proceed.
906 * gdbthread.h (struct thread_control_state) <stepping_command>:
908 * infcall.c (run_inferior_call): Adjust call to proceed.
909 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
910 Adjust calls to proceed.
911 (set_step_frame): Set the current thread's step_start_function
913 (step_once): Adjust calls to proceed.
914 (jump_command, signal_command, until_next_command)
915 (finish_backward, finish_forward, proceed_after_attach_callback)
916 (attach_command_post_wait): Adjust calls to proceed.
917 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
918 (do_target_resume): New function, factored out from ...
919 (resume): ... here. Remove 'step' parameter. Instead, check
920 currently_stepping to determine whether the thread should be
922 (proceed): Remove 'step' parameter and don't set the thread's
923 step_start_function here. Adjust call to 'resume'.
924 (handle_inferior_event): Adjust calls to 'resume'.
925 (switch_back_to_stepped_thread): Use do_target_resume instead of
927 (keep_going): Adjust calls to 'resume'.
928 * infrun.h (proceed): Remove 'step' parameter.
930 * windows-nat.c (do_initial_windows_stuff): Adjust call to
932 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
934 2015-03-24 Pedro Alves <palves@redhat.com>
936 * gdbthread.h (struct thread_control_state) <stepping_command>:
938 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
939 the thread's stepping_command field.
940 * infrun.c (resume): Check the thread's stepping_command flag to
941 determine which threads should be resumed. Rename 'entry_step'
943 (clear_proceed_status_thread): Clear 'stepping_command'.
944 (schedlock_applies): Change parameter type to struct thread_info
946 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
947 (switch_back_to_stepped_thread): Adjust calls to
949 (_initialize_infrun): Adjust "set scheduler-locking step" help.
951 2015-03-24 Pedro Alves <palves@redhat.com>
953 * infrun.c (step_start_function): Delete and ...
954 * gdbthread.h (struct thread_control_state) <step_start_function>:
955 ... now a field here.
956 * infrun.c (clear_proceed_status_thread): Clear the thread's
958 (proceed, process_event_stop_test, print_stop_event): Adjust.
960 2015-03-24 Pedro Alves <palves@redhat.com>
962 * infrun.c (proceed): No longer handle negative step.
964 2015-03-24 Gary Benson <gbenson@redhat.com>
966 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
967 (x86_linux_prepare_to_resume): Likewise.
968 * x86-linux-nat.c (x86_linux_new_thread):
969 Moved to nat/x86-linux.c.
970 (x86_linux_prepare_to_resume): Likewise.
971 * nat/x86-linux.c (x86_linux_new_thread): New function.
972 (x86_linux_prepare_to_resume): Likewise.
974 2015-03-24 Gary Benson <gbenson@redhat.com>
976 * nat/x86-linux-dregs.h: New file.
977 * nat/x86-linux-dregs.c: Likewise.
978 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
979 (x86-linux-dregs.o): New rule.
980 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
981 * config/i386/linux64.mh (NATDEPFILES): Likewise.
982 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
983 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
984 (x86_linux_dr_get): Likewise.
985 (x86_linux_dr_set): Likewise.
986 (x86_linux_dr_get_addr): Likewise.
987 (x86_linux_dr_get_control): Likewise.
988 (x86_linux_dr_get_status): Likewise.
989 (update_debug_registers_callback): Likewise.
990 (x86_linux_dr_set_control): Likewise.
991 (x86_linux_dr_set_addr): Likewise.
992 (x86_linux_update_debug_registers): Likewise.
994 2015-03-24 Gary Benson <gbenson@redhat.com>
996 * x86-linux-nat.c (x86_linux_update_debug_registers):
997 New function, factored out from...
998 (x86_linux_prepare_to_resume): ...this.
1000 2015-03-24 Gary Benson <gbenson@redhat.com>
1002 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
1003 (x86_linux_dr_set): Likewise.
1004 (x86_linux_dr_get_addr): Likewise.
1005 (x86_linux_dr_get_control): Likewise.
1006 (x86_linux_dr_get_status): Likewise.
1007 (update_debug_registers_callback): Likewise.
1008 (x86_linux_dr_set_control): Likewise.
1009 (x86_linux_dr_set_addr): Likewise.
1010 (x86_linux_prepare_to_resume): Likewise.
1011 (x86_linux_new_thread): Likewise.
1013 2015-03-24 Gary Benson <gbenson@redhat.com>
1015 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
1016 (x86_linux_new_thread): Rename argument.
1018 2015-03-24 Gary Benson <gbenson@redhat.com>
1020 * nat/x86-linux.h: New file.
1021 * nat/x86-linux.c: Likewise.
1022 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
1023 (x86-linux.o): New rule.
1024 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
1025 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1026 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
1027 (lwp_set_arch_private_info): New declaration.
1028 (lwp_arch_private_info): Likewise.
1029 * linux-nat.c (lwp_set_arch_private_info): New function.
1030 (lwp_arch_private_info): Likewise.
1031 * x86-linux-nat.c: Include nat/x86-linux.h.
1032 (arch_lwp_info): Removed structure.
1033 (update_debug_registers_callback):
1034 Use lwp_set_debug_registers_changed.
1035 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
1036 and lwp_set_debug_registers_changed.
1037 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
1039 2015-03-24 Gary Benson <gbenson@redhat.com>
1041 * nat/linux-nat.h (ptid_of_lwp): New declaration.
1042 (lwp_is_stopped): Likewise.
1043 (lwp_stop_reason): Likewise.
1044 * linux-nat.c (ptid_of_lwp): New function.
1045 (lwp_is_stopped): Likewise.
1046 (lwp_is_stopped_by_watchpoint): Likewise.
1047 * x86-linux-nat.c (update_debug_registers_callback):
1049 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
1052 2015-03-24 Gary Benson <gbenson@redhat.com>
1054 * linux-nat.h (linux_stop_lwp): Move declaration to...
1055 * nat/linux-nat.h (linux_stop_lwp): New declaration.
1057 2015-03-24 Gary Benson <gbenson@redhat.com>
1059 * linux-nat.h: Include nat/linux-nat.h.
1060 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
1061 * nat/linux-nat.h (struct lwp_info): New forward declaration.
1062 (iterate_over_lwps_ftype): New typedef.
1063 (iterate_over_lwps): New declaration.
1064 * linux-nat.h (iterate_over_lwps): Update comment. Use
1065 iterate_over_lwps_ftype. Update callback return value check.
1067 2015-03-24 Gary Benson <gbenson@redhat.com>
1069 * x86-nat.h (x86_debug_reg_state): Move declaration to...
1070 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
1072 2015-03-24 Gary Benson <gbenson@redhat.com>
1074 * nat/linux-nat.h (current_lwp_ptid): New declaration.
1075 * linux-nat.c (current_lwp_ptid): New function.
1076 * x86-linux-nat.c: Include nat/linux-nat.h.
1077 (x86_linux_dr_get_addr): Use current_lwp_ptid.
1078 (x86_linux_dr_get_control): Likewise.
1079 (x86_linux_dr_get_status): Likewise.
1080 (x86_linux_dr_set_control): Likewise.
1081 (x86_linux_dr_set_addr): Likewise.
1083 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
1085 PR breakpoints/16466
1086 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
1088 2015-03-23 Joel Brobecker <brobecker@adacore.com>
1090 * ser-mingw.c (ser_windows_setparity): Fix indentation.
1091 * ser-unix.c (hardwire_setparity): Likewise.
1093 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
1095 * NEWS: Mention set/show serial parity command.
1096 * monitor.c (monitor_open): Call serial_setparity.
1097 * remote.c (remote_open_1): Likewise.
1098 * ser-base.c (ser_base_serparity): New function.
1099 * ser-base.h (ser_base_setparity): Add declaration.
1100 * ser-go32.c (dos_ops): Set "setparity" field.
1101 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
1103 (ser_windows_setparity): New function.
1104 (hardwire_ops): Add ser_windows_setparity.
1105 (tty_ops): Add NULL for setparity field.
1106 (pipe_ops): Add ser_base_setparity.
1107 (tcp_ops): Likewise.
1108 * ser-pipe.c (pipe_ops): Likewise.
1109 * ser-tcp.c (tcp_ops): Likewise.
1110 * ser-unix.c (hardwire_setparity): Add declaration.
1111 (hardwire_raw): Don't reset PARENB flag.
1112 (hardwire_setparity): New function.
1113 (hardwire_ops): Add hardwire_setparity.
1114 * serial.c (serial_setparity): New function.
1115 (serial_parity): New global.
1116 (parity_none, parity_odd, parity_even, parity_enums, parity):
1118 (set_parity): New function.
1119 (_initialize_serial): Add set/show serial parity commands.
1120 * serial.h (GDBPARITY_NONE): Define.
1121 (GDBPARITY_ODD): Define.
1122 (GDBPARITY_EVEN): Define.
1123 (serial_setparity) Add declaration.
1124 (struct serial_ops): Add setparity field.
1125 * target.h (serial_parity): Add declaration.
1127 2015-03-23 Keith Seitz <keiths@redhat.com>
1129 * linespec.c (linespec_lexer_lex_keyword): Update comment.
1131 2015-03-23 Keith Seitz <keiths@redhat.com>
1133 * breakpoint.c (parse_breakpoint_sals): Use
1134 linespec_lexer_lex_keyword to ascertain if the user specified
1136 * linespec.c [IF_KEYWORD_INDEX]: Define.
1137 (linespec_lexer_lex_keyword): Export.
1138 (struct ls_parser) <keyword_ok>: Remove.
1139 A keyword is only a keyword if not followed by another keyword.
1140 (linespec_lexer_lex_one): Remove keyword_ok handling.
1141 Add comment explaining why the parsing stream is not advanced
1142 when a keyword is seen.
1143 (parse_linespec): Remove parser->keyword_ok.
1144 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
1146 2015-03-23 Keith Seitz <keiths@redhat.com>
1149 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
1150 if we find a static method with DW_AT_vtable_elem_location.
1152 2015-03-21 Eli Zaretskii <eliz@gnu.org>
1154 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
1155 before the second loop, to avoid undefined behavior. Reported by
1156 Anton Blanchard <anton@samba.org>.
1158 2015-03-20 Keven Boell <keven.boell@intel.com>
1160 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
1161 data_location usage to linked list.
1162 (resolve_dynamic_type_internal): Adapt data_location to
1164 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
1165 (copy_type_recursive, copy_type): Add copy of linked list.
1166 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
1167 (struct dynamic_prop_list): New struct.
1168 * dwarf2read.c (set_die_type): Set data_location data.
1170 2015-03-20 Pedro Alves <palves@redhat.com>
1172 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
1173 inner block and make it const.
1174 * machoread.c (get_archive_prefix_len): Make "lparen" const.
1176 2015-03-20 Pedro Alves <palves@redhat.com>
1178 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
1179 * breakpoint.h (set_breakpoint_condition): Update declaration.
1181 2015-03-20 Pedro Alves <palves@redhat.com>
1183 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
1185 2015-03-20 Pedro Alves <palves@redhat.com>
1187 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
1189 2015-03-20 Pedro Alves <palves@redhat.com>
1191 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
1193 2015-03-20 Pedro Alves <palves@redhat.com>
1195 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
1196 (nto_init_solib_absolute_prefix): Likewise.
1198 2015-03-20 Pedro Alves <palves@redhat.com>
1200 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
1201 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
1203 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1205 * config/djgpp/README: Remove gdb.hp.
1207 2015-03-20 Yao Qi <yao.qi@linaro.org>
1209 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
1210 set_gdbarch_cannot_step_breakpoint.
1212 2015-03-19 Pedro Alves <palves@redhat.com>
1214 * linux-nat.c (linux_resume_one_lwp): Rename to ...
1215 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
1216 instead call perror_with_name.
1217 (check_ptrace_stopped_lwp_gone): New function.
1218 (linux_resume_one_lwp): Reimplement as wrapper around
1219 linux_resume_one_lwp_throw that swallows errors if the LWP is
1221 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
1222 swallows errors if the LWP is gone. Use
1223 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
1225 2015-03-19 Pedro Alves <palves@redhat.com>
1227 * linux-nat.c (status_callback): Return early if the LWP has no
1230 2015-03-19 Pedro Alves <palves@redhat.com>
1232 * linux-nat.c (select_event_lwp_callback): Update comment to no
1233 longer mention SIGTRAP.
1235 2015-03-18 Tristan Gingold <gingold@adacore.com>
1237 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
1238 redirection code to ...
1239 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
1240 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
1242 2015-03-18 Gary Benson <gbenson@redhat.com>
1244 (remote_protocol_features): Remove the "vFile:fstat" feature.
1245 (remote_hostio_fstat): Probe for "vFile:fstat" support.
1247 2015-03-11 Yao Qi <yao.qi@linaro.org>
1250 * aarch64-linux-tdep.c: Include xml-syscall.h
1251 (aarch64_linux_get_syscall_number): New function.
1252 (aarch64_linux_init_abi): Call
1253 set_gdbarch_get_syscall_number.
1254 * syscalls/aarch64-linux.xml: New file.
1256 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
1258 * ser-base.h (ser_base_setstopbits): Change second argument name
1259 from "rate" to "num".
1261 2015-03-17 Gary Benson <gbenson@redhat.com>
1262 Luke Allardyce <lukeallardyce@gmail.com>
1265 * common/common-remote-fileio.h (sys/stat.h): New include.
1266 (stuct stat): Remove forward declaration.
1268 2015-03-16 John Baldwin <jhb@FreeBSD.org>
1270 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
1271 before writing core register notes.
1273 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
1274 Pedro Alves <palves@redhat.com>
1276 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
1277 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
1278 (tgoto): Wrap with extern "C".
1280 2015-03-16 Pedro Alves <palves@redhat.com>
1281 Yuanhui Zhang <asmwarrior@gmail.com>
1283 * stub-termcap.c (tputs): Change prototype.
1285 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
1286 Pedro Alves <palves@redhat.com>
1288 * windows-nat.c (struct thread_info_struct): Rename to ...
1289 (struct windows_thread_info_struct): ... this.
1290 (thread_info): Rename to ...
1291 (windows_thread_info): ... this.
1294 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1295 Pedro Alves <palves@redhat.com>
1297 * NEWS: New Removed targets and native configurations.
1299 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1302 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
1303 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
1304 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
1305 ia64-hpux-tdep.h, solib-ia64-hpux.h.
1306 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
1307 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
1308 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
1310 * config/ia64/hpux.mh: Remove file.
1311 * config/pa/hpux.mh: Remove file.
1312 * configure: Rebuilt.
1313 * configure.ac (dlgetmodinfo, somread.o): Remove.
1314 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
1315 (ia64-*-hpux*): Remove its float format exception.
1316 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
1317 * hppa-hpux-nat.c: Remove file.
1318 * hppa-hpux-tdep.c: Remove file.
1319 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
1320 Move them here from hppa-tdep.h
1321 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
1322 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
1323 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
1324 Move them to hppa-tdep.c.
1325 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
1327 * ia64-hpux-nat.c: Remove file.
1328 * ia64-hpux-tdep.c: Remove file.
1329 * ia64-hpux-tdep.h: Remove file.
1330 * inf-ttrace.c: Remove file.
1331 * inf-ttrace.h: Remove file.
1332 * solib-ia64-hpux.c: Remove file.
1333 * solib-ia64-hpux.h: Remove file.
1334 * solib-pa64.c: Remove file.
1335 * solib-pa64.h: Remove file.
1336 * solib-som.c: Remove file.
1337 * solib-som.h: Remove file.
1338 * somread.c: Remove file.
1340 2015-03-13 John Baldwin <jhb@FreeBSD.org>
1342 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
1343 * config.in: Regenerate.
1344 * configure: Regenerate.
1345 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
1347 (fbsd_find_memory_regions): Use kinfo_getvmmap to
1348 enumerate memory regions if present.
1350 2015-03-13 John Baldwin <jhb@FreeBSD.org>
1352 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
1353 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
1355 (i386fbsd_sigtramp_p): Likewise.
1357 2015-03-12 John Baldwin <jhb@FreeBSD.org>
1359 * MAINTAINERS (Write After Approval): Add John Baldwin.
1361 2015-03-12 Gary Benson <gbenson@redhat.com>
1363 * solib.c (_initialize_solib): Make "set/show sysroot" use
1364 add_setshow_optional_filename_cmd so it can be restored to
1365 empty after being set.
1367 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
1369 * Makefile.in (SFILES): New source break-catch-syscall.c.
1370 (COMMON_OBS): New object break-catch-syscall.o.
1371 * break-catch-syscall.c: New file.
1372 * breakpoint.c: Remove inclusion of "xml-syscall.h".
1373 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
1374 (struct syscall_catchpoint): Likewise.
1375 (dtor_catch_syscall): Likewise.
1376 (catch_syscall_inferior_data): Likewise.
1377 (struct catch_syscall_inferior_data): Likewise.
1378 (get_catch_syscall_inferior_data): Likewise.
1379 (catch_syscall_inferior_data_cleanup): Likewise.
1380 (insert_catch_syscall): Likewise.
1381 (remove_catch_syscall): Likewise.
1382 (breakpoint_hit_catch_syscall): Likewise.
1383 (print_it_catch_syscall): Likewise.
1384 (print_one_catch_syscall): Likewise.
1385 (print_mention_catch_syscall): Likewise.
1386 (print_recreate_catch_syscall): Likewise.
1387 (catch_syscall_breakpoint_ops): Likewise.
1388 (syscall_catchpoint_p): Likewise.
1389 (create_syscall_event_catchpoint): Likewise.
1390 (catch_syscall_split_args): Likewise.
1391 (catch_syscall_command_1): Likewise.
1392 (is_syscall_catchpoint_enabled): Likewise.
1393 (catch_syscall_enabled): Likewise.
1394 (catching_syscall_number): Likewise.
1395 (catch_syscall_completer): Likewise.
1396 (clear_syscall_counts): Likewise.
1397 (initialize_breakpoint_ops): Move initialization of syscall
1398 catchpoints to break-catch-syscall.c.
1399 (_initialize_breakpoint): Move code related to syscall catchpoints
1400 to break-catch-syscall.c.
1402 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
1404 * breakpoint.c (breakpoint_find_if): New function.
1405 * breakpoint.h (breakpoint_find_if): New prototype.
1407 2015-03-11 Gary Benson <gbenson@redhat.com>
1409 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
1410 * remote-fileio.c (remote_fileio_to_host_uint): New function.
1411 (remote_fileio_to_host_ulong): Likewise.
1412 (remote_fileio_to_host_mode): Likewise.
1413 (remote_fileio_to_host_time): Likewise.
1414 (remote_fileio_to_host_stat): Likewise.
1415 * remote.c (PACKET_vFile_fstat): New enum value.
1416 (remote_protocol_features): Register the "vFile:fstat" feature.
1417 (remote_hostio_fstat): New function.
1418 (remote_bfd_iovec_stat): Use the above.
1419 (_initialize_remote): Register new "set/show remote
1420 hostio-fstat-packet" command.
1421 * symfile.c (separate_debug_file_exists): Update comment.
1422 * NEWS: Announce new vFile:fstat packet.
1424 2015-03-11 Gary Benson <gbenson@redhat.com>
1426 * common/common-remote-fileio.h: New file.
1427 * common/common-remote-fileio.c: Likewise.
1428 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
1429 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
1430 (COMMON_OBS): Add common-remote-fileio.o.
1431 (common-remote-fileio.o): New rule.
1432 * remote-fileio.h (common-remote-fileio.h): New include.
1433 * remote-fileio.c (gdb/fileio.h): Do not include.
1434 (remote_fileio_to_be): Moved to common-remote-fileio.h.
1435 (remote_fileio_to_fio_uint): Likewise.
1436 (remote_fileio_to_fio_time): Likewise.
1437 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
1438 (remote_fileio_to_fio_mode): Likewise.
1439 (remote_fileio_to_fio_ulong): Likewise.
1440 (remote_fileio_to_fio_stat): Likewise.
1442 2015-03-11 Andy Wingo <wingo@igalia.com>
1444 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
1445 we were checking the cached type, not the cached dynamic type.
1447 2015-03-11 Andy Wingo <wingo@igalia.com>
1449 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
1450 other strings, as these are on the GC'd heap, and will be
1451 collected along with the smob.
1453 2015-03-11 Andy Wingo <wingo@igalia.com>
1455 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
1456 (objfile_functions): Bind gdbscm_objfile_progspace to
1458 * guile/lib/gdb.scm: Add objfile-progspace to exports.
1460 2015-03-11 Andy Wingo <wingo@igalia.com>
1462 * guile/guile.c (_initialize_guile): Disable automatic
1463 finalization, if Guile offers us that possibility.
1464 * guile/guile.c (call_initialize_gdb_module):
1465 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
1466 finalizers in appropriate places.
1467 * configure.ac (AC_TRY_LIBGUILE): Add a check for
1468 scm_set_automatic_finalization_enabled.
1469 * configure: Regenerated.
1471 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
1473 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
1476 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
1478 * s390-linux-nat.c (struct arch_lwp_info): New.
1479 (s390_fix_watch_points): Rename to...
1480 (s390_prepare_to_resume): ...this. Skip the PER info update
1481 unless the watch points have changed.
1482 (s390_refresh_per_info, s390_new_thread): New functions.
1483 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
1484 s390_fix_watch_points.
1485 (s390_remove_watchpoint): Likewise.
1486 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
1487 Register s390_prepare_to_resume.
1489 2015-03-09 Pedro Alves <palves@redhat.com>
1492 2015-03-07 Pedro Alves <palves@redhat.com>
1493 * common/gdb_socket.h: New file.
1494 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
1496 (net_open): Use union gdb_sockaddr_u.
1498 2015-03-07 Pedro Alves <palves@redhat.com>
1500 * configure.ac (build_warnings): Move -Wmissing-prototypes
1501 -Wdeclaration-after-statement -Wmissing-parameter-type
1502 -Wold-style-declaration -Wold-style-definition to the C-specific
1504 * configure: Regenerate.
1506 2015-03-07 Pedro Alves <palves@redhat.com>
1508 * common/gdb_socket.h: New file.
1509 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
1511 (net_open): Use union gdb_sockaddr_u.
1513 2015-03-07 Pedro Alves <palves@redhat.com>
1515 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
1516 (exceptions_state_mc_action_iter)
1517 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
1519 [__cplusplus] (try_scope_depth): New global.
1520 [__cplusplus] (exception_try_scope_entry)
1521 (exception_try_scope_exit, gdb_exception_sliced_copy)
1522 (exception_rethrow): New functions.
1523 (throw_exception): In C++ mode, throw
1524 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
1525 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
1526 (throw_it): In C++ mode, use try_scope_depth.
1527 * common/common-exceptions.h [!__cplusplus]
1528 (exceptions_state_mc_action_iter)
1529 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
1531 [__cplusplus] (exception_try_scope_entry)
1532 (exception_try_scope_exit, exception_rethrow): Declare.
1533 [__cplusplus] (struct exception_try_scope): New struct.
1534 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
1536 (struct gdb_exception_RETURN_MASK_ALL)
1537 (struct gdb_exception_RETURN_MASK_ERROR)
1538 (struct gdb_exception_RETURN_MASK_QUIT): New types.
1540 2015-03-07 Pedro Alves <palves@redhat.com>
1542 * main.c (handle_command_errors): Remove volatile qualifier from
1545 2015-03-07 Pedro Alves <palves@redhat.com>
1547 * breakpoint.c (save_breakpoints): Adjust to avoid code between
1549 * gdbtypes.c (safe_parse_type): Remove empty line.
1550 (types_deeply_equal):
1551 * guile/scm-frame.c (gdbscm_frame_name):
1552 * linux-thread-db.c (find_new_threads_once):
1553 * python/py-breakpoint.c (bppy_get_commands):
1554 * record-btrace.c (record_btrace_insert_breakpoint)
1555 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
1556 (record_btrace_start_replaying): Adjust to avoid code between TRY
1559 2015-03-07 Pedro Alves <palves@redhat.com>
1561 * common/common-exceptions.c (struct catcher) <exception>: No
1562 longer a pointer to volatile exception. Now an exception value.
1563 <mask>: Delete field.
1564 (exceptions_state_mc_init): Remove all parameters. Adjust.
1565 (exceptions_state_mc): No longer pop the catcher here.
1566 (exceptions_state_mc_catch): New function.
1567 (throw_exception): Adjust.
1568 * common/common-exceptions.h (exceptions_state_mc_init): Remove
1570 (exceptions_state_mc_catch): Declare.
1571 (TRY_CATCH): Rename to ...
1572 (TRY): ... this. Remove EXCEPTION and MASK parameters.
1573 (CATCH, END_CATCH): New.
1574 All callers adjusted.
1576 2015-03-07 Tom Tromey <tromey@redhat.com>
1578 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
1580 2015-03-07 Pedro Alves <palves@redhat.com>
1582 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
1583 (amd64_epilogue_frame_cache): Normal exception handling code.
1584 * break-catch-throw.c (check_status_exception_catchpoint)
1585 (re_set_exception_catchpoint): Ditto.
1586 * cli/cli-interp.c (safe_execute_command):
1587 * cli/cli-script.c (script_from_file): Ditto.
1588 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
1590 * compile/compile-object-run.c (compile_object_run): Ditto.
1591 * cp-abi.c (baseclass_offset): Ditto.
1592 * cp-valprint.c (cp_print_value): Ditto.
1593 * exceptions.c (catch_exceptions_with_msg):
1594 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
1595 * frame.c (get_frame_address_in_block_if_available): Ditto.
1596 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
1597 (i386_sigtramp_frame_cache): Ditto.
1598 * infcmd.c (post_create_inferior): Ditto.
1599 * linespec.c (parse_linespec, find_linespec_symbols):
1600 * p-valprint.c (pascal_object_print_value): Ditto.
1601 * parse.c (parse_expression_for_completion): Ditto.
1602 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
1603 * remote.c (remote_get_noisy_reply): Ditto.
1604 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
1605 * solib-svr4.c (solib_svr4_r_map): Ditto.
1607 2015-03-06 Gary Benson <gbenson@redhat.com>
1609 * common/common-utils.h (startswith): New inline function.
1610 All places where this logic was used updated to use the above.
1612 2015-03-05 Pedro Alves <palves@redhat.com>
1615 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
1616 after reading the breakpoint's shadow memory.
1618 2015-03-05 Mark Kettenis <kettenis@gnu.org>
1620 * hppabsd-nat.c: Remove file.
1621 * hppaobsd-nat.c: New file.
1622 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
1624 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
1627 2015-03-04 Pedro Alves <palves@redhat.com>
1629 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
1630 (target_decr_pc_after_break): Delete declaration.
1631 * target.c (default_target_decr_pc_after_break)
1632 (target_decr_pc_after_break): Delete.
1633 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
1634 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
1635 * linux-thread-db.c (check_event): Likewise.
1636 * infrun.c (adjust_pc_after_break): Likewise.
1637 * darwin-nat.c (cancel_breakpoint): Likewise.
1638 * aix-thread.c (aix_thread_wait): Likewise.
1639 * target-delegates.c: Regenerate.
1641 2015-03-04 Pedro Alves <palves@redhat.com>
1643 * linux-nat.c (save_sigtrap): Check for breakpoints before
1644 checking watchpoints.
1645 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
1646 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
1647 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
1648 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
1649 (linux_nat_stopped_by_sw_breakpoint)
1650 (linux_nat_supports_stopped_by_sw_breakpoint)
1651 (linux_nat_stopped_by_hw_breakpoint)
1652 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
1653 (linux_nat_wait_1): Don't re-increment the PC if relying on
1654 SIGTRAP's siginfo->si_code.
1655 (linux_nat_add_target): Install new target methods.
1656 * linux-thread-db.c (check_event): Don't account for breakpoint PC
1657 offset if the target already adjusted the PC.
1658 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
1659 (GDB_ARCH_TRAP_BRKPT): New.
1660 (TRAP_HWBKPT): Define if not already defined.
1662 2015-03-04 Pedro Alves <palves@redhat.com>
1664 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
1665 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
1667 <stop_reason>: New field.
1668 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
1669 (packet_set_cmd_state): New function.
1670 (remote_protocol_features): Register the "swbreak" and "hwbreak"
1672 (remote_query_supported): If not disabled with the corresponding
1673 "set remote foo-packet" command, report support for the swbreak
1674 and hwbreak features.
1675 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
1677 <stop_reason>: New field.
1678 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
1679 (remote_wait_as): Adjust.
1680 (remote_stopped_by_sw_breakpoint)
1681 (remote_supports_stopped_by_sw_breakpoint)
1682 (remote_stopped_by_hw_breakpoint)
1683 (remote_supports_stopped_by_hw_breakpoint): New functions.
1684 (remote_stopped_by_watchpoint): New function.
1685 (init_remote_ops): Install them.
1686 (_initialize_remote): Register new "set/show remote
1687 swbreak-feature-packet" and "set/show remote
1688 swbreak-feature-packet" commands.
1690 2015-03-04 Pedro Alves <palves@redhat.com>
1692 * btrace.h: Include target/waitstatus.h.
1693 (struct btrace_thread_info) <stop_reason>: New field.
1694 * record-btrace.c (record_btrace_step_thread): Use
1695 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
1696 (record_btrace_decr_pc_after_break): Delete.
1697 (record_btrace_stopped_by_sw_breakpoint)
1698 (record_btrace_supports_stopped_by_sw_breakpoint)
1699 (record_btrace_stopped_by_hw_breakpoint)
1700 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
1701 (init_record_btrace_ops): Install them.
1702 * record-full.c (record_full_hw_watchpoint): Delete and replace
1704 (record_full_stop_reason): ... this throughout.
1705 (record_full_exec_insn): Adjust.
1706 (record_full_wait_1): Adjust. No longer re-increment the PC.
1707 (record_full_wait_1): Adjust. Use
1708 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
1709 (record_full_stopped_by_watchpoint): Adjust.
1710 (record_full_stopped_by_sw_breakpoint)
1711 (record_full_supports_stopped_by_sw_breakpoint)
1712 (record_full_supports_stopped_by_sw_breakpoint)
1713 (record_full_stopped_by_hw_breakpoint)
1714 (record_full_supports_stopped_by_hw_breakpoint): New functions.
1715 (init_record_full_ops, init_record_full_core_ops): Install them.
1716 * record.c (record_check_stopped_by_breakpoint): New function.
1717 * record.h: Include target/waitstatus.h.
1718 (record_check_stopped_by_breakpoint): New declaration.
1720 2015-03-04 Pedro Alves <palves@redhat.com>
1722 enum lwp_stop_reason -> enum target_stop_reason
1723 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
1724 (linux_nat_stopped_by_watchpoint, status_callback)
1725 (linux_nat_wait_1): Adjust.
1726 * linux-nat.h (enum lwp_stop_reason): Delete.
1727 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
1728 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
1729 * target/waitstatus.h (enum target_stop_reason): New.
1731 2015-03-04 Pedro Alves <palves@redhat.com>
1733 * breakpoint.c (need_moribund_for_location_type): New function.
1734 (bpstat_stop_status): Don't skipping checking moribund locations
1735 of breakpoint types which the target tell caused a stop.
1736 (program_breakpoint_here_p): New function, factored out from ...
1737 (bp_loc_is_permanent): ... this.
1738 (update_global_location_list): Don't create a moribund location if
1739 the target supports reporting stops of the type of the removed
1741 * breakpoint.h (program_breakpoint_here_p): New declaration.
1742 * infrun.c (adjust_pc_after_break): Return early if the target has
1743 already adjusted the PC. Add comments.
1744 (handle_signal_stop): If nothing explains a signal, and the target
1745 tells us the stop was caused by a software breakpoint, check if
1746 there's a breakpoint instruction in the memory. If so, adjust the
1747 PC before presenting the stop to the user. Otherwise, ignore the
1748 trap. If nothing explains a signal, and the target tells us the
1749 stop was caused by a hardware breakpoint, ignore the trap.
1750 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
1751 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
1752 to_supports_stopped_by_hw_breakpoint>: New fields.
1753 (target_stopped_by_sw_breakpoint)
1754 (target_supports_stopped_by_sw_breakpoint)
1755 (target_stopped_by_hw_breakpoint)
1756 (target_supports_stopped_by_hw_breakpoint): Define.
1757 * target-delegates.c: Regenerate.
1759 2015-03-04 Pedro Alves <palves@redhat.com>
1761 * infrun.c (follow_fork_inferior): Use the whole of the
1762 inferior_ptid and pending_follow.related_pid ptids instead of
1763 building ptids from the process components. Adjust verbose output
1764 to use target_pid_to_str.
1765 * linux-nat.c (linux_child_follow_fork): Use the whole of the
1766 inferior_ptid and pending_follow.related_pid ptids instead of
1767 building ptids from the process components.
1769 2015-03-04 Mark Kettenis <kettenis@gnu.org>
1771 * inf-ptrace.c [PT_GET_PROCESS_STATE]
1772 (inf_ptrace_insert_fork_catchpoint): New function.
1773 (inf_ptrace_remove_fork_catchpoint): New function.
1774 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
1776 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
1778 * s390-linux-tdep.c (s390_register_name): Return empty string
1779 instead of NULL for registers that shouldn't be visible.
1781 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
1783 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
1784 XML file for 64-bit targets.
1786 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
1788 * target.h (find_default_create_inferior): Remove declaration.
1789 (find_default_attach): Likewise.
1791 2015-03-03 Pedro Alves <palves@redhat.com>
1793 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
1794 Use ptid_get_pid to get the overall process id when resuming all
1797 2015-03-03 Pedro Alves <palves@redhat.com>
1799 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
1800 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
1801 * inf-ptrace.c (get_ptrace_pid): New function.
1802 (inf_ptrace_resume): Use it.
1803 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
1806 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
1808 * nat/linux-btrace.c: Include sys/utsname.h.
1809 (linux_determine_kernel_ptr_bits): New.
1810 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
1811 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
1814 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
1816 * btrace.c (ftrace_update_function): Treat return as tailcall for
1817 "_dl_runtime_resolve".
1819 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
1821 * btrace.h (btrace_function) <lbegin, lend>: Remove.
1822 * btrace.c (ftrace_debug): Do not print the line range.
1823 (ftrace_skip_file, ftrace_update_lines): Remove.
1824 (ftrace_new_function): Remove lbegin and lend initialization.
1825 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
1826 * record-btrace.c (btrace_compute_src_line_range): New.
1827 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
1829 2015-03-02 Pedro Alves <palves@redhat.com>
1831 * infrun.c (follow_exec): Delete all threads of the process except
1832 the event thread. Extended comments.
1834 2015-03-02 Joel Brobecker <brobecker@adacore.com>
1836 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
1838 2015-03-02 Joel Brobecker <brobecker@adacore.com>
1840 * utils.h: Remove <stdbool.h> #include.
1841 (producer_is_gcc): Change return type to "int".
1842 * utils.c (producer_is_gcc): Change return type to int.
1843 Return 1 instead of true, and 0 instead of false.
1844 Adjust function documentation accordingly.
1846 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
1848 * s390-linux-nat.c (have_regset_vxrs): New static variable.
1849 (s390_linux_fetch_inferior_registers): Handle vector registers, if
1851 (s390_linux_store_inferior_registers): Likewise.
1852 (s390_get_hwcap): Remove function. Embed its logic...
1853 (s390_read_description): ...here. Yield a target description with
1854 vector registers if applicable.
1855 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
1856 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
1857 "features/s390x-tevx-linux64.c".
1858 (struct gdbarch_tdep) <v0_full_regnum>: New field.
1859 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
1860 for "GNU/Linux-specific registers".
1861 (s390_dwarf_reg_r0l): New enum value.
1862 (s390_dwarf_reg_to_regnum): Support vector registers.
1863 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
1864 of GPR lower halves.
1865 (regnum_is_vxr_full): New function.
1866 (s390_register_name): New function.
1867 (s390_pseudo_register_name): Handle v0-v15, which are composed of
1868 f0-f15 and v0l-v15l.
1869 (s390_pseudo_register_type): Likewise.
1870 (s390_pseudo_register_read): Likewise.
1871 (s390_pseudo_register_write): Likewise.
1872 (s390_value_from_register): Account for the fact that values are
1873 placed left-justified in vector registers.
1874 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
1875 the vector reggroup and omit them from the general reggroup.
1876 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
1877 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
1878 (s390_iterate_over_regset_sections): Add iterations for the two
1880 (s390_core_read_description): Yield a target description with
1881 vector registers if applicable.
1882 (s390_gdbarch_init): Handle target descriptions with vector
1883 registers. Add "register_name" gdbarch method.
1884 (_initialize_s390_tdep): Call new tdesc initialization functions.
1885 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
1886 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
1887 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
1888 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
1889 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
1890 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
1891 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
1892 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
1893 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
1894 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
1895 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
1896 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
1897 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
1898 (S390_NUM_REGS): Adjust value.
1899 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
1900 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
1901 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
1902 * NEWS: Announce S/390 vector register support.
1904 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
1906 * features/s390-tevx-linux64.xml: New file.
1907 * features/s390-vx-linux64.xml: New file.
1908 * features/s390-vx.xml: New file.
1909 * features/s390x-tevx-linux64.xml: New file.
1910 * features/s390x-vx-linux64.xml: New file.
1911 * features/Makefile (WHICH): Add s390-vx-linux64,
1912 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
1913 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
1914 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
1916 * features/s390-tevx-linux64.c: New generated file.
1917 * features/s390-vx-linux64.c: Likewise.
1918 * features/s390x-tevx-linux64.c: Likewise.
1919 * features/s390x-vx-linux64.c: Likewise.
1920 * regformats/s390-tevx-linux64.dat: Likewise.
1921 * regformats/s390-vx-linux64.dat: Likewise.
1922 * regformats/s390x-tevx-linux64.dat: Likewise.
1923 * regformats/s390x-vx-linux64.dat: Likewise.
1925 2015-02-28 Doug Evans <xdje42@gmail.com>
1927 * symtab.h (struct symtab) <next>: Fix comment.
1929 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
1931 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
1934 2015-02-27 Pedro Alves <palves@redhat.com>
1936 * dtrace-probe.c (dtrace_probe_ops): Make extern.
1938 2015-02-27 Pedro Alves <palves@redhat.com>
1940 * common/common-exceptions.h (exception_none): Declare.
1941 * common/common-exceptions.c (exception_none): Moved from
1943 (exceptions_state_mc_init): Use exception_none.
1944 * exceptions.c (exception_none): Move to
1945 common/common-exceptions.c.
1946 * exceptions.h (exception_none): Move to
1947 common/common-exceptions.h.
1949 2015-02-27 Pedro Alves <palves@redhat.com>
1951 * main.c (catch_command_errors, catch_command_errors_const):
1952 Remove 'mask' argument. Adjust.
1953 (captured_main): Adjust callers.
1955 2015-02-27 Pedro Alves <palves@redhat.com>
1957 * python/python-internal.h: Include "extension-priv.h".
1959 2015-02-27 Pedro Alves <palves@redhat.com>
1961 * breakpoint.h (enum print_stop_action): Move further up in the
1964 2015-02-27 Pedro Alves <palves@redhat.com>
1966 * gdbarch.sh: Include regcache.h.
1967 * gdbarch.h: Regenerate.
1969 2015-02-27 Pedro Alves <palves@redhat.com>
1971 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
1972 Remove duplicate const.
1973 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
1976 2015-02-27 Pedro Alves <palves@redhat.com>
1978 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
1979 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
1980 * features/feature_to_c.sh: Tag the generated xml_builtin array
1981 with extern const in C++ mode.
1983 2015-02-27 Tom Tromey <tromey@redhat.com>
1985 * minidebug.c (struct lzma_stream): Rename to ...
1986 (struct gdb_lzma_stream): ... this.
1987 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
1989 2015-02-27 Pedro Alves <palves@redhat.com>
1991 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
1993 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
1994 (mi_cmd_stack_list_variables): Use it.
1996 2015-02-27 Pedro Alves <palves@redhat.com>
1998 * x86-linux-nat.c (u_debugreg_offset): New function.
1999 (x86_linux_dr_get, x86_linux_dr_set): Use it.
2001 2015-02-27 Pedro Alves <palves@redhat.com>
2003 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
2005 Include break-common.h.
2007 2015-02-27 Tom Tromey <tromey@redhat.com>
2008 Pedro Alves <palves@redhat.com>
2010 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
2011 local used to iterate over enums.
2012 * completer.c (signal_completer): Likewise.
2013 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
2014 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
2015 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
2016 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
2017 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
2018 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
2019 * tui-wingeneral.c (tui_refresh_all): Likewise.
2021 2015-02-27 Pedro Alves <palves@redhat.com>
2023 * target.h: Include "infrun.h".
2025 2015-02-27 Pedro Alves <palves@redhat.com>
2027 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
2029 2015-02-27 Pedro Alves <palves@redhat.com>
2031 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
2033 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
2035 2015-02-27 Pedro Alves <palves@redhat.com>
2037 * cli-out.c (_rl_erase_entire_line): Move declaration out of
2038 cli_mld_erase_entire_line, and make it extern "C".
2039 * common/common-defs.h (EXTERN_C): New.
2040 * completer.c (_rl_completion_prefix_display_length)
2041 (_rl_print_completions_horizontally, QSFUNC): Move declarations
2042 out of gdb_display_match_list_1.
2043 (_rl_qsort_string_compare): Move declaration out of
2044 gdb_display_match_list_1, and make it extern "C".
2045 * defs.h (re_comp): Use EXTERN_C.
2046 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
2047 and make it extern "C".
2048 (monstartup): Move declaration out of maintenance_set_profile_cmd,
2049 and make it extern "C".
2050 (main): Move declaration out of maintenance_set_profile_cmd.
2051 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
2054 2015-02-27 Pedro Alves <palves@redhat.com>
2056 * python/python.c (GdbMethods): Rename to ...
2057 (python_GdbMethods): ... this and make extern.
2058 (GdbModuleDef): Rename to ...
2059 (python_GdbModuleDef): ... this and make extern.
2061 2015-02-27 Pedro Alves <palves@redhat.com>
2063 * record-btrace.c (set_record_btrace_cmdlist)
2064 (show_record_btrace_cmdlist): Remove redefinitions.
2066 2015-02-27 Tom Tromey <tromey@redhat.com>
2067 Pedro Alves <palves@redhat.com>
2069 * dwarf2-frame.c (enum cfa_how_kind, struct
2070 dwarf2_frame_state_reg_info): Move out of struct
2072 * dwarf2read.c (struct tu_stats): Move out of struct
2074 (struct file_entry): Move out of struct line_header.
2075 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
2076 typedef_field_list): Move out of struct field_info.
2077 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
2078 Move out of struct dynamic_prop.
2079 (union type_owner, union field_location, struct field, struct
2080 range_bounds, union type_specific): Move out of struct main_type.
2081 (struct fn_fieldlist, struct fn_field, struct typedef_field)
2082 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
2083 (struct call_site_target, union call_site_parameter_u, struct
2084 call_site_parameter): Move out of struct call_site.
2085 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
2087 (enum srcdest_kind): Move out of struct srcdest.
2088 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
2089 * prologue-value.h (enum prologue_value_kind): Move out of struct
2091 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
2093 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
2094 out of struct field_info.
2095 * symfile.h (struct other_sections): Move out of struct
2097 * symtab.c (struct symbol_cache_slot): Move out struct
2099 * target-descriptions.c (enum tdesc_type_kind): Move out of
2100 typedef struct tdesc_type.
2101 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
2102 struct tui_line_or_address.
2103 * value.c (enum internalvar_kind, union internalvar_data): Move
2104 out of struct internalvar.
2105 * xtensa-tdep.h (struct ctype_cache): Move out of struct
2108 2015-02-27 Tom Tromey <tromey@redhat.com>
2109 Pedro Alves <palves@redhat.com>
2111 Rename symbols whose names are reserved C++ keywords throughout.
2113 2015-02-27 Pedro Alves <palves@redhat.com>
2115 * Makefile.in (COMPILER): New, get it from autoconf.
2116 (COMPILE.pre, CC_LD): Use COMPILER.
2117 (CXX): Get from autoconf instead.
2118 (CXX_FOR_TARGET): Default to g++ instead of gcc.
2119 * acinclude.m4: Include build-with-cxx.m4.
2120 * build-with-cxx.m4: New file.
2121 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
2122 Disable -Werror by default if building in C++ mode.
2123 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
2124 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
2125 Run supported-warning-flags tests with the C++ compiler.
2126 Save/restore CXXFLAGS too.
2127 * configure: Regenerate.
2129 2015-02-27 Pedro Alves <palves@redhat.com>
2131 * libiberty.m4: New file.
2132 * acinclude.m4: Include libiberty.m4.
2133 * configure.ac: Call libiberty_INIT.
2134 * config.in, configure: Regenerate.
2136 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
2138 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
2139 31-bit targets, but 64-bit targets as well.
2140 (s390_gnu_triplet_regexp): New function.
2141 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
2142 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
2145 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
2147 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
2148 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
2149 from CONTEXT_DEBUGGER.
2151 2015-02-26 Doug Evans <dje@google.com>
2153 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
2155 (set_type_vptr_fieldno): Ditto.
2156 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
2157 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
2159 2015-02-26 Pedro Alves <palves@redhat.com>
2161 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
2162 * complaints.c (vcomplaint): Pass argument FMT directly to
2163 printf-like functions instead of complaint->fmt.
2164 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
2165 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
2166 * compile/compile-loc2c.c (pushf, unary, binary): Add
2168 (do_compile_dwarf_expr_to_c): Pass string literal as format string
2170 (BINARY): Pass string literal as format string to 'binary'.
2171 * compile/compile-object-load.c (link_callbacks_einfo): Add
2173 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
2175 2015-02-26 Pedro Alves <palves@redhat.com>
2177 * windows-termcap.c: Rename to ...
2178 * stub-termcap.c: ... this. Adjust header line.
2179 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
2181 * configure: Regenerate.
2182 * configure.ac: Refer to stub-termcap.o instead of
2184 * gdb_curses.h: Mention stub-termcap.c instead of
2187 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2189 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
2190 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
2192 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
2194 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
2196 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2198 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
2199 bfd_canonicalize_symtab.
2201 2015-02-25 John Baldwin <jhb@FreeBSD.org>
2203 * amd64fbsd-nat.c: Include sys/user.h.
2204 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
2205 instead of KERN_PS_STRINGS to locate the signal trampoline.
2206 * i386fbsd-nat.c: Include sys/user.h.
2207 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
2208 instead of KERN_PS_STRINGS to locate the signal trampoline.
2209 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
2210 (amd64fbsd_sigtramp_p): New.
2211 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
2212 longer set default values.
2213 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
2214 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
2215 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
2216 (i386fbsd_freebsd4_sigtramp_start)
2217 (i386fbsd_freebsd4_sigtramp_middle)
2218 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
2219 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
2220 (i386fbsd_sigtramp_p): New.
2221 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
2222 longer set default values.
2223 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
2225 2015-02-25 John Baldwin <jhb@freebsd.org>
2227 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
2228 get_frame_register instead of frame_unwind_register_unsigned.
2230 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2233 * compile/compile-c-support.c (c_compute_program): Change // comment.
2234 * compile/compile-object-load.c (setup_sections): Change // comment.
2236 2015-02-26 Joel Brobecker <brobecker@adacore.com>
2239 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
2241 2015-02-23 Pedro Alves <palves@redhat.com>
2243 * remote.c (skip_to_semicolon): New function.
2244 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
2245 special case the stop reasons that look like hex numbers
2246 upfront. Instead handle real register numbers after matching
2247 all the known stop reasons.
2249 2015-02-21 Doug Evans <dje@google.com>
2251 PR c++/17976, symtab/17821
2252 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
2253 is_in_anonymous. All callers updated.
2254 (find_symbol_in_baseclass): Ditto.
2255 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
2256 for symbols in an anonymous namespace.
2257 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
2258 DW_AT_name directly.
2259 (dwarf2_name): Convert missing namespace name to
2260 CP_ANONYMOUS_NAMESPACE_STR.
2262 2015-02-20 Pedro Alves <palves@redhat.com>
2264 * linux-nat.c (linux_handle_extended_wait): Call
2265 thread_db_notice_clone whenever a new clone LWP is detected.
2266 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
2268 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
2269 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
2270 (linux_unstop_all_lwps): Declare.
2271 * linux-thread-db.c (struct thread_get_info_inout): Delete.
2272 (thread_get_info_callback): Delete.
2273 (thread_from_lwp): Use td_thr_get_info and record_thread.
2274 (thread_db_attach_lwp): Delete.
2275 (thread_db_notice_clone): New function.
2276 (try_thread_db_load_1): If /proc is mounted and shows the
2277 process'es task list, walk over all LWPs and call thread_from_lwp
2278 instead of relying on td_ta_thr_iter.
2279 (attach_thread): Don't call check_thread_signals here. Split the
2280 tail part of the function (which adds the thread to the core GDB
2282 (record_thread): ... this function. Call check_thread_signals
2284 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
2285 call thread_from_lwp.
2286 (thread_db_update_thread_list): Rename to ...
2287 (thread_db_update_thread_list_org): ... this.
2288 (thread_db_update_thread_list): New function.
2289 (thread_db_find_thread_from_tid): Delete.
2290 (thread_db_get_ada_task_ptid): Simplify.
2291 * nat/linux-procfs.c: Include <sys/stat.h>.
2292 (linux_proc_task_list_dir_exists): New function.
2293 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
2295 2015-02-20 Pedro Alves <palves@redhat.com>
2297 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
2298 main LWP. Handle the case of waitpid returning 0 if we're already
2299 attached to the LWP. Don't set the LWP's last_resume_kind to
2300 resume_stop if we already knew about the LWP.
2301 (linux_nat_filter_event): Add debug logs.
2303 2015-02-20 Pedro Alves <palves@redhat.com>
2305 * target.h (forward_target_decr_pc_after_break): Delete
2308 2015-02-20 Pedro Alves <palves@redhat.com>
2311 * linux-thread-db.c (thread_get_info_callback): Return early if
2312 the thread's lwp id is -1.
2314 2015-02-20 Joel Brobecker <brobecker@adacore.com>
2318 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
2320 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
2321 (dtrace_get_probes) Change type of variable 'dof'.
2323 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
2325 PR breakpoints/16812
2326 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
2327 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
2328 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
2330 2015-02-19 David Taylor <dtaylor@emc.com>
2332 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
2334 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
2336 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
2338 (tui_putc): Don't call tui_handle_resize_during_io.
2339 (tui_getc): Likewise.
2340 (tui_mld_getc): Likewise.
2341 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
2342 (tui_sigwinch_token): New static variable.
2343 (tui_initialize_win): Adjust documentation. Set
2345 (tui_async_resize_screen): New asynchronous callback.
2346 (tui_sigwinch_handler): Adjust documentation. Asynchronously
2347 invoke tui_async_resize_screen.
2349 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
2351 * configure: Regenerated.
2352 * configure.ac: Use GDB_AC_TRANSFORM.
2353 * Makefile.in (aclocal_m4_deps): Added transform.m4.
2354 * acinclude.m4: sinclude transform.m4.
2355 * transform.m4: New file.
2356 (GDB_AC_TRANSFORM): New macro.
2358 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2360 * NEWS: Announce the support for DTrace SDT probes.
2362 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2364 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
2365 (amd64_dtrace_parse_probe_argument): New function.
2366 (amd64_dtrace_probe_is_enabled): Likewise.
2367 (amd64_dtrace_enable_probe): Likewise.
2368 (amd64_dtrace_disable_probe): Likewise.
2369 (amd64_linux_init_abi): Register the
2370 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
2371 `gdbarch_dtrace_disable_probe' and
2372 `gdbarch_dtrace_probe_is_enabled' hooks.
2373 (amd64_dtrace_disabled_probe_sequence_1): New constant.
2374 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
2375 (amd64_dtrace_enable_probe_sequence): Likewise.
2376 (amd64_dtrace_disable_probe_sequence): Likewise.
2378 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2380 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
2381 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
2382 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
2384 * Makefile.in (SFILES): dtrace-probe.c added.
2385 * configure: Regenerate.
2386 * dtrace-probe.c: New file.
2387 (SHT_SUNW_dof): New constant.
2388 (dtrace_probe_type): New enum.
2389 (dtrace_probe_arg): New struct.
2390 (dtrace_probe_arg_s): New typedef.
2391 (struct dtrace_probe_enabler): New struct.
2392 (dtrace_probe_enabler_s): New typedef.
2393 (dtrace_probe): New struct.
2394 (dtrace_probe_is_linespec): New function.
2395 (dtrace_dof_sect_type): New enum.
2396 (dtrace_dof_dofh_ident): Likewise.
2397 (dtrace_dof_encoding): Likewise.
2398 (DTRACE_DOF_ENCODE_LSB): Likewise.
2399 (DTRACE_DOF_ENCODE_MSB): Likewise.
2400 (dtrace_dof_hdr): New struct.
2401 (dtrace_dof_sect): Likewise.
2402 (dtrace_dof_provider): Likewise.
2403 (dtrace_dof_probe): Likewise.
2404 (DOF_UINT): New macro.
2405 (DTRACE_DOF_PTR): Likewise.
2406 (DTRACE_DOF_SECT): Likewise.
2407 (dtrace_process_dof_probe): New function.
2408 (dtrace_process_dof): Likewise.
2409 (dtrace_build_arg_exprs): Likewise.
2410 (dtrace_get_arg): Likewise.
2411 (dtrace_get_probes): Likewise.
2412 (dtrace_get_probe_argument_count): Likewise.
2413 (dtrace_can_evaluate_probe_arguments): Likewise.
2414 (dtrace_evaluate_probe_argument): Likewise.
2415 (dtrace_compile_to_ax): Likewise.
2416 (dtrace_probe_destroy): Likewise.
2417 (dtrace_gen_info_probes_table_header): Likewise.
2418 (dtrace_gen_info_probes_table_values): Likewise.
2419 (dtrace_probe_is_enabled): Likewise.
2420 (dtrace_probe_ops): New variable.
2421 (info_probes_dtrace_command): New function.
2422 (_initialize_dtrace_probe): Likewise.
2423 (dtrace_type_name): Likewise.
2425 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2427 * gdbarch.sh (dtrace_parse_probe_argument): New.
2428 (dtrace_probe_is_enabled): Likewise.
2429 (dtrace_enable_probe): Likewise.
2430 (dtrace_disable_probe): Likewise.
2431 * gdbarch.c: Regenerate.
2432 * gdbarch.h: Regenerate.
2434 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2436 * stap-probe.c (stap_probe_ops): Add NULLs in the static
2437 stap_probe_ops for `enable_probe' and `disable_probe'.
2438 * probe.c (enable_probes_command): New function.
2439 (disable_probes_command): Likewise.
2440 (_initialize_probe): Define the cli commands `enable probe' and
2442 (parse_probe_linespec): New function.
2443 (info_probes_for_ops): Use parse_probe_linespec.
2444 * probe.h (probe_ops): New hooks `enable_probe' and
2447 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2449 * probe.c (compute_probe_arg): Moved from stap-probe.c
2450 (compile_probe_arg): Likewise.
2451 (probe_funcs): Likewise.
2452 * stap-probe.c (compute_probe_arg): Moved to probe.c.
2453 (compile_probe_arg): Likewise.
2454 (probe_funcs): Likewise.
2456 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2458 * probe.c (print_ui_out_not_applicables): New function.
2459 (exists_probe_with_pops): Likewise.
2460 (info_probes_for_ops): Do not include column headers for probe
2461 types for which no probe has been actually found on any object.
2462 Also invoke `print_ui_out_not_applicables' in order to match the
2463 column rows with the header when probes of several types are
2465 Print the "Type" column.
2466 * probe.h (probe_ops): Added a new probe operation `type_name'.
2467 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
2468 (stap_type_name): New function.
2470 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
2472 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
2473 (key_is_command_char): Delete.
2475 2015-02-17 Pedro Alves <palves@redhat.com>
2477 * tui/tui.c (tui_enable): Resize windows before anything
2478 might show a window.
2480 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
2483 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
2484 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
2486 * aarch64-tdep.h (tdesc_aarch64): Declare.
2488 2015-02-12 Mark Wielaard <mjw@redhat.com>
2490 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
2492 2015-02-13 Doug Evans <dje@google.com>
2494 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
2495 anonymous_namespace to is_in_anonymous for consistency with the rest
2497 (cp_lookup_bare_symbol): Fix typo in comment.
2498 (cp_search_static_and_baseclasses): Ditto.
2499 (search_symbol_list): Use vertical space in comment better.
2500 (reset_directive_searched): Ditto. Fix typo.
2501 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
2503 2015-02-13 Yao Qi <yao.qi@arm.com>
2505 * MAINTAINERS: Update my email address.
2507 2015-02-12 Doug Evans <dje@google.com>
2509 * symtab.c (completion_list_add_name): Fix memory leak.
2511 2015-02-12 Doug Evans <dje@google.com>
2513 * completer.c (complete_line): Remove incorrect comment.
2515 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2517 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
2518 (py_print_frame): Use RETURN_MASK_ERROR.
2520 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2522 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
2523 function comment. Wrap all function that can throw in cleanups.
2524 (gdbpy_apply_frame_filter): Wrap all function that can throw in
2527 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2529 * python/py-framefilter.c (py_print_frame): Substitute goto error.
2530 Remove the error label.
2532 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2534 * python/py-framefilter.c (py_print_frame): Put conditional code paths
2535 with goto first, indent the former else codepath left. Put variable
2536 'elided' to a new inner block.
2538 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2540 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
2542 2015-02-11 Pedro Alves <palves@redhat.com>
2544 * xcoffread.c (within_function): Delete.
2546 2015-02-11 Tom Tromey <tromey@redhat.com>
2547 Pedro Alves <palves@redhat.com>
2549 * breakpoint.c (base_breakpoint_ops): Delete.
2550 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
2551 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
2552 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
2553 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
2554 * python/py-arch.c (arch_object_type): Make extern.
2555 * python/py-block.c (block_syms_iterator_object_type): Make extern.
2556 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
2557 * python/py-cmd.c (cmdpy_object_type): Make extern.
2558 * python/py-continueevent.c (continue_event_object_type)
2559 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
2560 parameter. Update all callers.
2561 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
2562 * python/py-exitedevent.c (exited_event_object_type): Make extern.
2563 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
2564 * python/py-function.c (fnpy_object_type): Make extern.
2565 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
2566 * python/py-infevents.c (call_pre_event_object_type)
2567 (inferior_call_post_event_object_type).
2568 (memory_changed_event_object_type): Make extern.
2569 * python/py-infthread.c (thread_object_type): Make extern.
2570 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
2571 * python/py-linetable.c (linetable_entry_object_type)
2572 (linetable_object_type, ltpy_iterator_object_type): Make extern.
2573 * python/py-newobjfileevent.c (new_objfile_event_object_type)
2574 (clear_objfiles_event_object_type): Make extern.
2575 * python/py-objfile.c (objfile_object_type): Make extern.
2576 * python/py-param.c (parmpy_object_type): Make extern.
2577 * python/py-progspace.c (pspace_object_type): Make extern.
2578 * python/py-signalevent.c (signal_event_object_type): Make extern.
2579 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
2580 * python/py-type.c (type_object_type, field_object_type)
2581 (type_iterator_object_type): Make extern.
2582 * python/python.c (python_extension_script_ops)
2583 (python_extension_ops): Make extern.
2584 * stap-probe.c (stap_probe_ops): Make extern.
2586 2015-02-11 Pedro Alves <pedro@codesourcery.com>
2588 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
2589 because the event thread is not the current thread.
2591 2015-02-11 Doug Evans <xdje42@gmail.com>
2593 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
2594 been initialized yet, return NULL.
2596 2015-02-11 Doug Evans <dje@google.com>
2598 * symfile.h (new_symfile_objfile): Delete.
2599 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
2600 All callers updated.
2602 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
2604 * tui/tui-io.c (tui_handle_resize_during_io): Call
2605 tui_update_gdb_sizes() after resizing the screen.
2606 * tui/tui.c (tui_enable): Resize the terminal before
2607 calling tui_update_gdb_sizes().
2609 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
2611 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
2612 line before printing a newline.
2614 2015-02-11 Mark Wielaard <mjw@redhat.com>
2616 * utils.c (producer_is_gcc): Return true or false.
2618 2015-02-10 Mark Wielaard <mjw@redhat.com>
2620 * utils.h (producer_is_gcc): Change return type to bool. Add major
2622 * utils.c (producer_is_gcc): Likewise.
2623 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
2624 * dwarf2read.c (check_producer): Likewise.
2626 2015-02-10 Pedro Alves <palves@redhat.com>
2628 * infrun.c (displaced_step_fixup): Switch to the event thread
2629 before calling gdbarch_displaced_step_fixup.
2631 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
2633 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
2635 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
2637 * ada-varobj.c (ada_name_of_child): Constify parent.
2638 (ada_path_expr_of_child): Same.
2639 (ada_value_of_child): Same.
2640 (ada_type_of_child): Same.
2641 * c-varobj.c (c_is_path_expr_parent): Same.
2642 (c_describe_child): Same.
2643 (c_name_of_child): Same.
2644 (c_value_of_child): Same.
2645 (c_type_of_child): Same.
2646 (cplus_number_of_children): Same.
2647 (cplus_describe_child): Constify var.
2648 (cplus_name_of_child): Constify parent.
2649 (cplus_value_of_child): Same.
2650 (cplus_type_of_child): Same.
2651 * jv-varobj.c (java_name_of_child): Same.
2652 (java_value_of_child): Same.
2653 (java_type_of_child): Same.
2654 * varobj.c (value_of_child): Same.
2655 (varobj_default_is_path_expr_parent): Constify var, parent and return
2657 (varobj_get_path_expr): Constify var, modify path_expr through
2659 (install_new_value): Constify parent.
2660 (value_of_child): Constify parent.
2661 * varobj.h (struct varobj): Constify parent.
2662 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
2664 (varobj_get_path_expr): Constify var.
2665 (varobj_get_path_expr_parent): Constify var and return value.
2667 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
2669 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
2670 (arm_prologue_this_id): Move PC and SP limit checks to
2671 arm_prologue_unwind_stop_reason.
2672 (arm_prologue_unwind) <stop_reason> : Set to
2673 arm_prologue_unwind_stop_reason.
2675 2015-02-09 Mark Wielaard <mjw@redhat.com>
2677 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
2678 DW_LANG_Fortran08 as language_fortran.
2680 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
2683 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
2684 of pointer against char.
2686 2015-02-09 Mark Wielaard <mjw@redhat.com>
2688 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
2689 (c_type_print_modifier): Likewise.
2690 * dwarf2read.c (read_tag_atomic_type): New function.
2691 (read_type_die_1): Handle DW_TAG_atomic_type.
2692 * gdbtypes.c (make_atomic_type): New function.
2693 (recursive_dump_type): Handle TYPE_ATOMIC.
2694 * gdbtypes.h (enum type_flag_values): Renumber.
2695 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
2696 (TYPE_ATOMIC): New macro.
2697 (make_atomic_type): Declare.
2699 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2701 * btrace.c (ftrace_find_call): Skip gaps.
2702 (ftrace_new_function): Initialize level.
2703 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
2704 (ftrace_new_switch): Update
2706 (ftrace_new_gap): New.
2707 (ftrace_update_function): Create new function after gap.
2708 (btrace_compute_ftrace_bts): Create gap on error.
2709 (btrace_stitch_bts): Update parameters. Clear trace if it
2711 (btrace_stitch_trace): Update parameters. Update callers.
2712 (btrace_clear): Reset the number of gaps.
2713 (btrace_insn_get): Return NULL if the iterator points to a gap.
2714 (btrace_insn_number): Return zero if the iterator points to a gap.
2715 (btrace_insn_end): Allow gaps at the end.
2716 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
2717 (btrace_find_insn_by_number): Assert that the found iterator does
2719 (btrace_call_next, btrace_call_prev): Assert that the last function
2721 * btrace.h (btrace_bts_error): New.
2722 (btrace_function): Update comment.
2723 (btrace_function) <insn, insn_offset, number>: Update comment.
2724 (btrace_function) <errcode>: New.
2725 (btrace_thread_info) <ngaps>: New.
2726 (btrace_thread_info) <replay>: Update comment.
2727 (btrace_insn_get): Update comment.
2728 * record-btrace.c (btrace_ui_out_decode_error): New.
2729 (record_btrace_info): Print number of gaps.
2730 (btrace_insn_history, btrace_call_history): Call
2731 btrace_ui_out_decode_error for gaps.
2732 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
2734 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2736 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
2737 * nat/linux-btrace.c: (btrace_this_cpu): New.
2738 (cpu_supports_bts): Call btrace_this_cpu.
2739 (intel_supports_bts): Add cpu parameter.
2741 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2743 * btrace.h (btrace_insn_class): New.
2744 (btrace_insn) <size, iclass>: New.
2745 * btrace.c (ftrace_find_call): Update parameters. Update users.
2746 Use instruction classification.
2747 (ftrace_new_return): Update parameters. Update users.
2748 (ftrace_update_function): Update parameters. Update users. Use
2749 instruction classification.
2750 (ftrace_update_insns): Update parameters. Update users.
2751 (ftrace_classify_insn): New.
2752 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
2753 TRY_CATCH around call to gdb_insn_length.
2755 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2757 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
2758 Update parameters. Update users.
2760 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2762 * btrace.c (parse_xml_btrace_conf_bts): Add size.
2763 (btrace_conf_bts_attributes): New.
2764 (btrace_conf_children): Add attributes.
2765 * common/btrace-common.h (btrace_config_bts): New.
2766 (btrace_config)<bts>: New.
2767 (btrace_config): Update comment.
2768 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
2770 * features/btrace-conf.dtd: Increment version. Add size
2771 attribute to bts element.
2772 * record-btrace.c (set_record_btrace_bts_cmdlist,
2773 show_record_btrace_bts_cmdlist): New.
2774 (record_btrace_adjust_size, record_btrace_print_bts_conf,
2775 record_btrace_print_conf, cmd_set_record_btrace_bts,
2776 cmd_show_record_btrace_bts): New.
2777 (record_btrace_info): Call record_btrace_print_conf.
2778 (_initialize_record_btrace): Add commands.
2779 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
2780 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
2781 (btrace_sync_conf): Synchronize bts size.
2782 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
2783 * NEWS: Announce new commands and new packets.
2785 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2787 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
2788 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
2789 (x86_linux_btrace_conf): New.
2790 (x86_linux_create_target): Initialize to_btrace_conf.
2791 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
2792 Check format. Split into this and ...
2793 (linux_enable_bts): ... this.
2794 (linux_btrace_conf): New.
2795 (perf_event_skip_record): Renamed into ...
2796 (perf_event_skip_bts_record): ... this. Updated users.
2797 (linux_disable_btrace): Split into this and ...
2798 (linux_disable_bts): ... this.
2799 (linux_read_btrace): Check format.
2800 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
2801 (linux_btrace_conf): New.
2802 (btrace_target_info)<ptid>: Moved.
2803 (btrace_target_info)<conf>: New.
2804 (btrace_target_info): Split into this and ...
2805 (btrace_tinfo_bts): ... this. Updated users.
2806 * btrace.c (btrace_enable): Update parameters.
2807 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
2808 (btrace_conf_children, btrace_conf_attributes)
2809 (btrace_conf_elements): New.
2810 * btrace.h (btrace_enable): Update parameters.
2811 (btrace_conf, parse_xml_btrace_conf): New.
2812 * common/btrace-common.h (btrace_config): New.
2813 * feature/btrace-conf.dtd: New.
2814 * record-btrace.c (record_btrace_conf): New.
2815 (record_btrace_cmdlist): New.
2816 (record_btrace_enable_warn, record_btrace_open): Pass
2817 &record_btrace_conf.
2818 (record_btrace_info): Print recording format.
2819 (cmd_record_btrace_bts_start): New.
2820 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
2821 (_initialize_record_btrace): Add "record btrace bts" subcommand.
2822 Add "record bts" alias command.
2823 * remote.c (remote_state)<btrace_config>: New.
2824 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
2825 (remote_protocol_features): Add qXfer:btrace-conf:read.
2826 (remote_open_1): Call remote_btrace_reset.
2827 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
2828 (btrace_target_info)<conf>: New.
2829 (btrace_sync_conf, btrace_read_config): New.
2830 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
2832 (remote_btrace_conf): New.
2833 (init_remote_ops): Initialize to_btrace_conf.
2834 (_initialize_remote): Add qXfer:btrace-conf packet.
2835 * target.c (target_enable_btrace): Update parameters.
2836 (target_btrace_conf): New.
2837 * target.h (target_enable_btrace): Update parameters.
2838 (target_btrace_conf): New.
2839 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
2840 (target_ops)<to_enable_btrace>: Update parameters and comment.
2841 (target_ops)<to_btrace_conf>: New.
2842 * target-delegates: Regenerate.
2843 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
2844 (target_debug_print_const_struct_btrace_target_info_p): New.
2845 * NEWS: Announce new command and new packet.
2847 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2849 * nat/linux-btrace.h (perf_event_buffer): New.
2850 (btrace_target_info) <buffer, size, data_head>: Replace with ...
2852 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
2853 (perf_event_buffer_size, perf_event_buffer_begin)
2854 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
2856 (perf_event_new_data): New.
2858 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2860 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
2861 * record-btrace.c (record_btrace_open): Remove call to
2862 target_supports_btrace.
2863 * remote.c (remote_supports_btrace): Update parameters.
2864 * target.c (target_supports_btrace): Update parameters.
2865 * target.h (to_supports_btrace, target_supports_btrace): Update
2867 * target-delegates.c: Regenerate.
2868 * target-debug.h (target_debug_print_enum_btrace_format): New.
2869 * nat/linux-btrace.c
2870 (kernel_supports_btrace): Rename into ...
2871 (kernel_supports_bts): ... this. Update users. Update warning text.
2872 (intel_supports_btrace): Rename into ...
2873 (intel_supports_bts): ... this. Update users.
2874 (cpu_supports_btrace): Rename into ...
2875 (cpu_supports_bts): ... this. Update users.
2876 (linux_supports_btrace): Update parameters. Split into this and ...
2877 (linux_supports_bts): ... this.
2878 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
2880 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2882 * Makefile.in (SFILES): Add common/btrace-common.c.
2883 (COMMON_OBS): Add common/btrace-common.o.
2884 (btrace-common.o): Add build rules.
2885 * btrace.c (parse_xml_btrace): Update parameters.
2886 (parse_xml_btrace_block): Set format field.
2887 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
2888 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
2889 (btrace_compute_ftrace): Split into this and...
2890 (btrace_compute_ftrace_bts): ...this.
2891 (btrace_stitch_trace): Split into this and...
2892 (btrace_stitch_bts): ...this.
2893 * btrace.h (parse_xml_btrace): Update parameters.
2894 (make_cleanup_btrace_data): New.
2895 * common/btrace-common.c: New.
2896 * common/btrace-common.h: Include common-defs.h.
2897 (btrace_block_s): Update comment.
2898 (btrace_format): New.
2899 (btrace_format_string): New.
2900 (btrace_data_bts): New.
2902 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
2903 * remote.c (remote_read_btrace): Update parameters.
2904 * target.c (target_read_btrace): Update parameters.
2905 * target.h (target_read_btrace): Update parameters.
2906 (target_ops)<to_read_btrace>: Update parameters.
2907 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
2908 * target-delegates.c: Regenerate.
2909 * target-debug (target_debug_print_struct_btrace_data_p): New.
2910 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
2911 (linux_read_bts): ...this.
2912 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
2914 2015-02-06 Doug Evans <dje@google.com>
2916 * remote-m32r-sdi.c: Include symfile.h.
2918 2015-02-06 Doug Evans <dje@google.com>
2920 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
2921 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
2924 2015-02-06 Pedro Alves <palves@redhat.com>
2926 * linux-thread-db.c (find_new_threads_callback): Add debug output.
2928 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
2931 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
2932 (enable_count_command): Check args for NULL value.
2934 2015-02-05 Doug Evans <xdje42@gmail.com>
2936 * guile/scm-frame.c: Fix spelling errors in a comment.
2938 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2940 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
2941 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
2944 2015-02-04 Pedro Alves <palves@redhat.com>
2946 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
2947 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
2949 (resume_stopped_resumed_lwps): Don't check whether the thread is
2950 marked as executing.
2951 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
2953 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
2955 * regset.h (struct regset): Add flags field.
2956 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
2957 * corelow.c (get_core_register_section): Add warning if the size
2958 exceeds the requested size and the regset does not have the
2959 REGSET_VARIABLE_SIZE flag set.
2960 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
2962 * armbsd-tdep.c (armbsd_gregset): Likewise.
2963 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
2964 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
2965 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
2966 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
2968 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
2970 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
2971 For ".reg-xstate", explicitly specify the requested section size
2972 via X86_XSTATE_SIZE instead of just 0 on input and
2973 X86_XSTATE_MAX_SIZE on output.
2974 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
2977 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
2980 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
2981 function type, particularly its SIZE parameter.
2982 * gdbarch.h: Regenerate.
2983 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
2984 actual against required size using ">=" instead of "==".
2985 (amd64_collect_fpregset): Likewise.
2986 * i386-tdep.c (i386_supply_gregset): Likewise.
2987 (i386_collect_gregset): Likewise.
2988 (i386_supply_fpregset): Likewise.
2989 (i386_collect_fpregset): Likewise.
2990 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
2991 (mips_fill_gregset_wrapper): Likewise.
2992 (mips_supply_fpregset_wrapper): Likewise.
2993 (mips_fill_fpregset_wrapper): Likewise.
2994 (mips64_supply_gregset_wrapper): Likewise.
2995 (mips64_fill_gregset_wrapper): Likewise.
2996 (mips64_supply_fpregset_wrapper): Likewise.
2997 (mips64_fill_fpregset_wrapper): Likewise.
2998 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
2999 (am33_supply_fpregset_method): Likewise.
3000 (am33_collect_gregset_method): Likewise.
3001 (am33_collect_fpregset_method): Likewise.
3003 2015-02-04 Doug Evans <dje@google.com>
3004 Pedro Alves <palves@redhat.com>
3005 Eli Zaretskii <eliz@gnu.org>
3008 * tui/tui-command.c (tui_refresh_cmd_win): New function.
3009 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
3010 * tui/tui-file.c: #include tui/tui-command.h.
3011 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
3012 (tui_file_flush): Refresh command window if stream is gdb_stdout.
3013 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
3015 2015-02-04 Pedro Alves <palves@redhat.com>
3018 * event-loop.c (gdb_do_one_event): Add default switch case.
3020 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3022 Filter out inferior gcc option -fpreprocessed.
3023 * compile/compile.c (filter_args): New function.
3026 2015-02-03 Pedro Alves <palves@redhat.com>
3028 * event-loop.c: Don't declare nor define a queue type for
3030 (event_queue): Delete.
3031 (create_event, create_file_event, gdb_event_xfree)
3032 (initialize_event_loop, process_event): Delete.
3033 (gdb_do_one_event): Return as soon as one event is handled.
3034 (handle_file_event): Change prototype. Used the passed in
3035 file_handler pointer and ready_mask instead of looping over all
3037 (gdb_wait_for_event): Update the poll/select timeouts before
3038 blocking. Run event handlers directly instead of queueing events.
3039 Return as soon as one event is handled.
3040 (struct async_event_handler_data): Delete.
3041 (invoke_async_event_handler): Delete.
3042 (check_async_event_handlers): Change return type to int. Run
3043 event handlers directly instead of queueing events. Return as
3044 soon as one event is handled.
3045 (handle_timer_event): Delete.
3046 (update_wait_timeout): New function, factored out from
3048 (poll_timers): Reimplement.
3049 * event-loop.h (initialize_event_loop): Delete declaration.
3050 * top.c (gdb_init): Don't call initialize_event_loop.
3052 2015-02-03 Pedro Alves <palves@redhat.com>
3054 * event-loop.c (clear_async_event_handler): New function.
3055 * event-loop.h (clear_async_event_handler): New declaration.
3056 * record-btrace.c (record_btrace_async): New function.
3057 (init_record_btrace_ops): Install record_btrace_async.
3058 * record-full.c (record_full_async): New function.
3059 (record_full_resume): Don't mark the async event source here.
3060 (init_record_full_ops): Install record_full_async.
3061 (record_full_core_resume): Don't mark the async event source here.
3062 (init_record_full_core_ops): Install record_full_async.
3063 * remote.c (remote_async): Mark and clear the async stop reply
3064 queue event-loop token as appropriate.
3066 2015-02-03 Pedro Alves <palves@redhat.com>
3068 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
3069 target_is_async_p instead of target_can_async.
3070 (linux_nat_wait): Use target_is_async_p instead of
3071 target_can_async. Don't enable async here.
3072 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
3073 target_is_async_p instead of target_can_async.
3075 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
3077 * varobj.h (lang_varobj_ops): Mention which return values need
3080 2015-02-02 Joel Brobecker <brobecker@adacore.com>
3082 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
3084 2015-02-02 Joel Brobecker <brobecker@adacore.com>
3087 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
3088 results found in the cache.
3090 2015-02-02 Joel Brobecker <brobecker@adacore.com>
3093 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
3094 when allocating a new one.
3096 2015-02-01 Tom Tromey <tom@tromey.com>
3098 * MAINTAINERS: Remove myself.
3100 2015-01-31 Doug Evans <xdje42@gmail.com>
3102 * dwarf2read.c (process_structure_scope): Update setting of
3103 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
3104 * gdbtypes.c (internal_type_vptr_fieldno): New function.
3105 (set_type_vptr_fieldno): New function.
3106 (internal_type_vptr_basetype): New function.
3107 (set_type_vptr_basetype): New function.
3108 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
3110 (allocate_cplus_struct_type): Initialize vptr_fieldno.
3111 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
3112 (print_cplus_stuff): ... moved here.
3113 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
3114 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
3116 (struct cplus_struct_type): ... here. All uses updated.
3117 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
3118 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
3119 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
3120 * stabsread.c (read_tilde_fields): Update setting of
3121 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
3123 2015-01-31 Doug Evans <xdje42@gmail.com>
3125 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
3127 (cp_print_class_member): Rename local domain to self_type.
3128 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
3129 domain_type to self_type.
3130 (set_die_type) <need_gnat_info>: Handle
3131 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
3132 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
3133 TYPE_SPECIFIC_SELF_TYPE.
3134 * gdbtypes.c (internal_type_self_type): New function.
3135 (set_type_self_type): New function.
3136 (smash_to_memberptr_type): Rename parameter domain to self_type.
3137 Update setting of TYPE_SELF_TYPE.
3138 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
3139 (smash_to_method_type): Rename parameter domain to self_type.
3140 Update setting of TYPE_SELF_TYPE.
3141 (check_stub_method): Call smash_to_method_type.
3142 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
3143 (copy_type_recursive): Ditto.
3144 * gdbtypes.h (enum type_specific_kind): New value
3145 TYPE_SPECIFIC_SELF_TYPE.
3146 (struct main_type) <type_specific>: New member self_type.
3147 (struct cplus_struct_type) <fn_field.type>: Update comment.
3148 (TYPE_SELF_TYPE): Rewrite.
3149 (internal_type_self_type, set_type_self_type): Declare.
3150 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
3152 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
3153 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
3155 * stabsread.c (read_member_functions): Mark methods with
3156 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
3159 2015-01-31 Doug Evans <xdje42@gmail.com>
3161 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
3164 2015-01-31 Doug Evans <xdje42@gmail.com>
3166 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
3167 or unions. Return zero if union.
3168 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
3169 (gnuv3_rtti_type): Pass already-check_typedef'd value to
3171 (compute_vtable_size): Assert only passed structs.
3172 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
3174 2015-01-31 Doug Evans <xdje42@gmail.com>
3176 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
3179 2015-01-31 Gary Benson <gbenson@redhat.com>
3180 Doug Evans <dje@google.com>
3185 * cli/cli-cmds.c (complete_command): Notify user if max-completions
3187 * common/common-exceptions.h (enum errors)
3188 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
3189 * completer.h (get_max_completions_reached_message): New declaration.
3190 (max_completions): Likewise.
3191 (completion_tracker_t): New typedef.
3192 (new_completion_tracker): New declaration.
3193 (make_cleanup_free_completion_tracker): Likewise.
3194 (maybe_add_completion_enum): New enum.
3195 (maybe_add_completion): New declaration.
3196 (throw_max_completions_reached_error): Likewise.
3197 * completer.c (max_completions): New global variable.
3198 (new_completion_tracker): New function.
3199 (free_completion_tracker): Likewise.
3200 (make_cleanup_free_completion_tracker): Likewise.
3201 (maybe_add_completions): Likewise.
3202 (throw_max_completions_reached_error): Likewise.
3203 (complete_line): Remove duplicates and limit result to max_completions
3205 (get_max_completions_reached_message): New function.
3206 (gdb_display_match_list): Handle max_completions.
3207 (_initialize_completer): New declaration and function.
3208 * symtab.c: Include completer.h.
3209 (completion_tracker): New static variable.
3210 (completion_list_add_name): Call maybe_add_completion.
3211 (default_make_symbol_completion_list_break_on_1): Renamed from
3212 default_make_symbol_completion_list_break_on. Maintain
3213 completion_tracker across calls to completion_list_add_name.
3214 (default_make_symbol_completion_list_break_on): New function.
3215 * top.c (init_main): Set rl_completion_display_matches_hook.
3216 * tui/tui-io.c: Include completer.h.
3217 (tui_old_rl_display_matches_hook): New static global.
3218 (tui_rl_display_match_list): Notify user if max-completions reached.
3219 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
3220 * NEWS (New Options): Mention set/show max-completions.
3222 2015-01-31 Gary Benson <gbenson@redhat.com>
3224 * symtab.c (struct add_name_data) <code>: New field.
3226 (add_symtab_completions): New function.
3227 (symtab_expansion_callback): Likewise.
3228 (default_make_symbol_completion_list_break_on): Set datum.code.
3229 Move minimal symbol scan before calling expand_symtabs_matching.
3230 Scan known primary symtabs for externs and statics before calling
3231 expand_symtabs_matching. Pass symtab_expansion_callback as
3232 expansion_notify argument to expand_symtabs_matching. Do not scan
3233 primary symtabs for externs and statics after calling
3234 expand_symtabs_matching.
3236 2015-01-31 Gary Benson <gbenson@redhat.com>
3238 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
3239 (struct quick_symbol_functions) <expand_symtabs_matching>:
3240 New argument expansion_notify. All uses updated.
3241 (expand_symtabs_matching): New argument expansion_notify.
3243 * symfile-debug.c (debug_qf_expand_symtabs_matching):
3244 Also print expansion notify.
3245 * symtab.c (expand_symtabs_matching_via_partial): Call
3246 expansion_notify whenever a partial symbol table is expanded.
3247 * dwarf2read.c (dw2_expand_symtabs_matching): Call
3248 expansion_notify whenever a symbol table is instantiated.
3250 2015-01-31 Doug Evans <xdje42@gmail.com>
3252 * cli-out.c: #include completer.h, readline/readline.h.
3253 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
3254 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
3255 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
3256 * cli-out.h (cli_display_match_list): Declare.
3257 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
3258 (ELLIPSIS_LEN): Ditto.
3259 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
3260 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
3261 (gdb_fnprint, gdb_print_filename): Ditto.
3262 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
3263 (gdb_display_match_list): Ditto.
3264 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
3265 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
3266 (mld_beep_ftype, mld_read_key_ftype): Ditto.
3267 (match_list_displayer): New struct.
3268 (gdb_display_match_list): Declare.
3269 * top.c (init_main): Set rl_completion_display_matches_hook.
3270 * tui/tui-io.c: #include completer.h.
3271 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
3272 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
3273 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
3274 (tui_mld_getc, tui_mld_read_key): Ditto.
3275 (tui_rl_display_match_list): Rewrite.
3276 (tui_handle_resize_during_io): New arg for_completion. All callers
3279 2015-01-31 Doug Evans <xdje42@gmail.com>
3281 Add symbol lookup cache.
3282 * NEWS: Document new options and commands.
3283 * symtab.c (symbol_cache_key): New static global.
3284 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
3285 (SYMBOL_LOOKUP_FAILED): New macro.
3286 (symbol_cache_slot_state): New enum.
3287 (block_symbol_cache): New struct.
3288 (symbol_cache): New struct.
3289 (new_symbol_cache_size, symbol_cache_size): New static globals.
3290 (hash_symbol_entry, eq_symbol_entry): New functions.
3291 (symbol_cache_byte_size, resize_symbol_cache): New functions.
3292 (make_symbol_cache, free_symbol_cache): New functions.
3293 (get_symbol_cache, symbol_cache_cleanup): New function.
3294 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
3295 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
3296 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
3297 (symbol_cache_flush, symbol_cache_dump): New functions.
3298 (maintenance_print_symbol_cache): New function.
3299 (maintenance_flush_symbol_cache): New function.
3300 (symbol_cache_stats): New function.
3301 (maintenance_print_symbol_cache_statistics): New function.
3302 (symtab_new_objfile_observer): New function.
3303 (symtab_free_objfile_observer): New function.
3304 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
3305 (_initialize_symtab): Init symbol_cache_key. New parameter
3306 maint symbol-cache-size. New maint commands print symbol-cache,
3307 print symbol-cache-statistics, flush-symbol-cache.
3308 Install new_objfile, free_objfile observers.
3310 2015-01-31 Joel Brobecker <brobecker@adacore.com>
3313 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
3316 2015-01-31 Doug Evans <xdje42@gmail.com>
3318 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
3319 * auto-load.c: #include ctype.h.
3320 (struct auto_load_pspace_info): Replace member loaded_scripts with
3321 new members loaded_script_files, loaded_script_texts.
3322 (auto_load_pspace_data_cleanup): Update.
3323 (init_loaded_scripts_info): Update.
3324 (get_auto_load_pspace_data_for_loading): Update.
3325 (maybe_add_script_file): Renamed from maybe_add_script. All callers
3327 (maybe_add_script_text): New function.
3328 (clear_section_scripts): Update.
3329 (source_script_file, execute_script_contents): New functions.
3330 (source_section_scripts): Add support for
3331 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
3332 (print_scripts): New function.
3333 (auto_load_info_scripts): Also print inlined scripts.
3334 (maybe_print_unsupported_script_warning): Renamed from
3335 unsupported_script_warning_print. All callers updated.
3336 (maybe_print_script_not_found_warning): Renamed from
3337 script_not_found_warning_print. All callers updated.
3338 * extension-priv.h (struct extension_language_script_ops): New member
3339 objfile_script_executor.
3340 * extension.c (ext_lang_objfile_script_executor): New function.
3341 * extension.h (objfile_script_executor_func): New typedef.
3342 (ext_lang_objfile_script_executor): Declare.
3343 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
3344 * guile/guile.c (guile_extension_script_ops): Update.
3345 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
3346 * python/python.c (python_extension_script_ops): Update.
3347 (gdbpy_execute_objfile_script): New function.
3349 2015-01-31 Eli Zaretskii <eliz@gnu.org>
3351 * tui/tui-io.c (tui_expand_tabs): New function.
3352 (tui_puts, tui_redisplay_readline): Expand TABs into the
3353 appropriate number of spaces.
3354 * tui/tui-regs.c: Include tui-io.h.
3355 (tui_register_format): Call tui_expand_tabs to expand TABs into
3356 the appropriate number of spaces.
3357 * tui/tui-io.h: Add prototype for tui_expand_tabs.
3359 2015-01-30 Doug Evans <dje@google.com>
3361 * NEWS: "info source" command now display producer string if present.
3362 * source.c (source_info): Print producer string if present.
3364 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3366 * varobj.c (varobj_delete): Fix comment.
3368 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3370 * varobj.c (create_child): Modify comment.
3372 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3374 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
3376 (ada_name_of_variable): Same.
3377 (ada_path_expr_of_child): Same.
3378 (ada_value_of_variable): Same.
3379 (ada_value_is_changeable_p): Same.
3380 (ada_value_has_mutated): Same.
3381 * c-varobj.c (varobj_is_anonymous_child): Same.
3382 (c_is_path_expr_parent): Same.
3383 (c_number_of_children): Same.
3384 (c_name_of_variable): Same.
3385 (c_path_expr_of_child): Same.
3387 (c_value_of_variable): Same.
3388 (cplus_number_of_children): Same.
3389 (cplus_name_of_variable): Same.
3390 (cplus_path_expr_of_child): Same.
3391 (cplus_value_of_variable): Same.
3392 * jv-varobj.c (java_number_of_children): Same.
3393 (java_name_of_variable): Same.
3394 (java_path_expr_of_child): Same.
3395 (java_value_of_variable): Same.
3396 * varobj.c (number_of_children): Same.
3397 (name_of_variable): Same.
3399 (varobj_ensure_python_env): Same.
3400 (varobj_get_objname): Same.
3401 (varobj_get_expression): Same.
3402 (varobj_get_display_format): Same.
3403 (varobj_get_display_hint): Same.
3404 (varobj_has_more): Same.
3405 (varobj_get_thread_id): Same.
3406 (varobj_get_frozen): Same.
3407 (dynamic_varobj_has_child_method): Same.
3408 (varobj_get_gdb_type): Same.
3409 (is_path_expr_parent): Same.
3410 (varobj_default_is_path_expr_parent): Same.
3411 (varobj_get_language): Same.
3412 (varobj_get_attributes): Same.
3413 (varobj_is_dynamic_p): Same.
3414 (varobj_get_child_range): Same.
3415 (varobj_value_has_mutated): Same.
3416 (varobj_get_value_type): Same.
3417 (number_of_children): Same.
3418 (name_of_variable): Same.
3419 (check_scope): Same.
3420 (varobj_editable_p): Same.
3421 (varobj_value_is_changeable_p): Same.
3422 (varobj_floating_p): Same.
3423 (varobj_default_value_is_changeable_p): Same.
3425 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3427 * varobj.c (varobj_get_path_expr): Set var->path_expr.
3428 * c-varobj.c (c_path_expr_of_child): Set local var instead of
3430 (cplus_path_expr_of_child): Same.
3432 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3434 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
3436 (mi_cmd_var_info_expression): Same.
3437 * varobj.c (varobj_get_expression): Mention in the comment that
3438 the result must by freed by the caller.
3440 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3442 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
3444 (varobj_update_one): Same.
3445 * varobj.c (update_type_if_necessary): Free curr_type_str and
3447 (varobj_get_type): Specify in comment that the result needs to be
3448 freed by the caller.
3450 2015-01-29 Doug Evans <dje@google.com>
3453 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
3455 2015-01-25 Mark Wielaard <mjw@redhat.com>
3457 * dwarf2read.c (checkproducer): Call producer_is_gcc.
3458 * utils.c (producer_is_gcc_ge_4): Likewise.
3459 (producer_is_gcc): New function.
3460 * utils.h (producer_is_gcc): New declaration.
3462 2015-01-29 Joel Brobecker <brobecker@adacore.com>
3464 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
3466 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
3467 parameter by "addr_stack" parameter.
3468 (resolve_dynamic_range): Replace "addr" parameter by
3469 "stack_addr" parameter. Update function documentation.
3470 Update code accordingly.
3471 (resolve_dynamic_array, resolve_dynamic_union)
3472 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
3473 (resolve_dynamic_type): Update code, following the changes made
3474 to resolve_dynamic_type_internal's interface.
3475 * dwarf2loc.h (struct property_addr_info): New.
3476 (dwarf2_evaluate_property): Replace "address" parameter
3477 by "addr_stack" parameter. Adjust function documentation.
3478 (struct dwarf2_offset_baton): New.
3479 (struct dwarf2_property_baton): Update documentation of
3480 field "referenced_type" to be more general. New field
3481 "offset_info" in union data field.
3482 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
3483 parameter by "addr_stack" parameter. Adjust code accordingly.
3484 Add support for PROP_ADDR_OFFSET properties.
3485 * dwarf2read.c (attr_to_dynamic_prop): Add support for
3486 DW_AT_data_member_location attributes as well. Use case
3487 statements instead of if/else condition.
3489 2015-01-29 Joel Brobecker <brobecker@adacore.com>
3491 * ada-varobj.c (ada_varobj_get_array_number_of_children):
3492 Return zero if PARENT_VALUE is NULL and parent_type's
3493 range type is dynamic.
3495 2015-01-29 Joel Brobecker <brobecker@adacore.com>
3497 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
3498 nonzero if the type's subtype is dynamic.
3499 (resolve_dynamic_range): Also resolve the range's subtype.
3501 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
3503 Pushed by Joel Brobecker <brobecker@adacore.com>.
3504 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
3506 2015-01-27 Doug Evans <dje@google.com>
3508 * NEWS: Mention gdb.Objfile.username.
3509 * python/py-objfile.c (objfpy_get_username): New function.
3510 (objfile_getset): Add "username".
3512 2015-01-24 Mark Wielaard <mjw@redhat.com>
3514 * stack.c (return_command): Markup warning message with _.
3516 2015-01-24 Doug Evans <xdje42@gmail.com>
3518 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
3520 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3522 Fix 100x slowdown regression on DWZ files.
3523 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
3524 (struct line_header): Add offset and offset_in_dwz.
3525 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
3526 (free_line_header_voidp): New declaration.
3527 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
3529 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
3530 (handle_DW_AT_stmt_list): Use line_header_hash.
3531 (free_line_header_voidp): New function.
3532 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
3533 (dwarf_decode_lines): New parameter decode_mapping, use it.
3534 (dwarf2_free_objfile): Free line_header_hash.
3536 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
3539 * valops.c (value_rtti_indirect_type): Catch exception thrown by
3542 2015-01-15 Mark Wielaard <mjw@redhat.com>
3544 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
3546 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
3547 calling_convention an 8 bit bit field.
3548 (TYPE_NO_RETURN): New macro.
3549 * infcmd.c (finish_command): Query if function does not return
3551 * stack.c (return_command): Likewise.
3553 2015-01-23 Pedro Alves <palves@redhat.com>
3555 * linux-nat.c (linux_is_async_p): New macro.
3556 (linux_nat_is_async_p):
3557 (linux_nat_terminal_inferior): Check whether the target can async
3558 instead of whether it is already async.
3559 (linux_nat_terminal_ours): Don't check whether the target is
3561 (linux_async_pipe): Use linux_is_async_p.
3563 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3565 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
3567 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
3568 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
3569 Sort tp_array using tp_array_compar.
3570 (_initialize_thread): Extend thread_apply_all_command help.
3572 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3574 * corelow.c (core_open): Call also thread_command.
3575 * gdbthread.h (thread_command): New prototype moved from ...
3576 * thread.c (thread_command): ... here.
3577 (thread_command): Make it global.
3579 2015-01-22 Pedro Alves <palves@redhat.com>
3581 * configure.ac [*mingw32*]: Check $curses_found instead of
3583 * configure: Regenerate.
3584 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
3585 HAVE_NCURSES_NCURSES_H checks.
3587 2015-01-22 Eli Zaretskii <eliz@gnu.org>
3589 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
3590 fails with the 1st arg NULL, try again with "unknown". Don't test
3591 the "cup" capability: it isn't supported by the Windows port of
3592 ncurses, but the Windows console driver is still capable of
3595 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3597 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
3599 2015-01-22 Eli Zaretskii <eliz@gnu.org>
3601 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
3602 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
3603 reason that "make TAGS" is broken.
3605 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
3607 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
3608 and check additional store instructions.
3610 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
3612 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
3614 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
3616 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
3617 ppc_canonicalize_syscall, ppc_linux_syscall_record,
3618 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
3619 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
3620 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
3621 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
3622 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
3623 ppc_process_record_op19, ppc_process_record_op31,
3624 ppc_process_record_op59, ppc_process_record_op60,
3625 ppc_process_record_op63): Likewise.
3627 2015-01-20 Joel Brobecker <brobecker@adacore.com>
3629 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
3630 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
3633 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
3635 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
3636 ppc_process_record_op31, ppc_process_record_op59,
3637 ppc_process_record_op60, ppc_process_record_op63,
3638 ppc_process_record): Fix -Wformat warning.
3639 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
3640 Remove unused variables.
3642 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
3644 * MAINTAINERS (Write After Approval): Add "Chen Gang".
3646 2015-01-19 Eli Zaretskii <eliz@gnu.org>
3648 * configure.ac [*mingw32*]: Only add windows-termcap.o to
3649 CONFIG_OBS if not building with a curses library.
3650 * configure: Regenerate.
3652 * windows-termcap.c: Include defs.h. Make the whole body empty if
3653 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
3654 HAVE_NCURSES_NCURSES_H is defined.
3656 2015-01-19 Joel Brobecker <brobecker@adacore.com>
3658 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
3659 from end of line to start of next line.
3661 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
3663 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
3664 Scan PLT stub backward for reverse debugging.
3665 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
3667 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
3668 Ulrich Weigand <uweigand@de.ibm.com>
3670 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
3672 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
3674 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
3675 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
3676 (ppc_linux_init_abi): Set process_record, process_record_signal.
3677 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
3678 ppc_linux_record_tdep to gdbarch_tdep.
3679 (ppc_process_record): New declaration.
3680 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
3681 ppc_process_record_op19, ppc_process_record_op31,
3682 ppc_process_record_op59, ppc_process_record_op60,
3683 ppc_process_record_op63, ppc_process_record): New functions.
3685 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
3687 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
3688 rs6000_in_function_epilogue_frame_p and add an argument
3690 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
3691 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
3693 (rs6000_epilogue_frame_unwind): New.
3694 (rs6000_gdbarch_init): Append epilogue unwinder.
3696 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
3698 * nat/linux-personality.c: Replace "#ifndef
3699 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
3700 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
3703 2015-01-16 Eli Zaretskii <eliz@gnu.org>
3705 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
3707 (_initialize_tui_win) <border-kind, border-mode>:
3708 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
3709 (tui_set_tab_width_command): Fix the commentary.
3711 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
3713 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
3715 (tui_set_tab_width_command): Delete and recreate the source and
3716 the disassembly windows, to show the effect of the changed tab
3719 * tui/tui-data.h (LINE_PREFIX): Make shorter
3720 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
3721 "Thread NNNNN.XXXX" thread ID notation on Windows.
3723 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3725 Fix gcc-5 compilation.
3726 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
3728 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
3730 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
3731 (linux-personality.o): New rule.
3732 * common/common-defs.h: Include <stdint.h>.
3733 * config/aarch64/linux.mh (NATDEPFILES): Include
3734 linux-personality.o.
3735 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3736 * config/arm/linux.mh (NATDEPFILES): Likewise.
3737 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3738 * config/i386/linux.mh (NATDEPFILES): Likewise.
3739 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3740 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3741 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3742 * config/mips/linux.mh (NATDEPFILES): Likewise.
3743 * config/pa/linux.mh (NATDEPFILES): Likewise.
3744 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3745 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3746 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3747 * config/s390/linux.mh (NATDEPFILES): Likewise.
3748 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3749 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3750 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3751 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3752 * defs.h: Remove #include <stdint.h> (moved to
3753 common/common-defs.h).
3754 * linux-nat.c: Include nat/linux-personality.h. Remove #include
3755 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
3756 nat/linux-personality.c).
3757 (linux_nat_create_inferior): Remove code to disable address space
3758 randomization (moved to nat/linux-personality.c). Create cleanup
3759 to disable address space randomization.
3760 * nat/linux-personality.c: New file.
3761 * nat/linux-personality.h: Likewise.
3763 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
3765 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
3766 common/posix-strerror.c.
3767 (posix-strerror.o): New rule.
3768 (mingw-strerror.o): Likewise.
3769 * common/common-utils.h (safe_strerror): Move prototype to here,
3771 * common/common.host: New file.
3772 * common/mingw-strerror.c: Likewise.
3773 * common/posix-strerror.c: Likewise.
3774 * configure: Regenerated.
3775 * configure.ac: Source common/common.host. Add variable
3776 common_host_obs to gdb_host_obs.
3777 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
3778 gdb/common/posix-strerror.c when warning about the use of
3780 * mingw-hdep.c (safe_strerror): Remove definition; move it to
3781 common/mingw-strerror.c.
3782 * posix-hdep.c (safe_strerror): Remove definition; move it to
3783 common/posix-hdep.c.
3784 * utils.h (safe_strerror): Remove prototype; move to
3785 common/common-utils.h.
3787 2015-01-15 Joel Brobecker <brobecker@adacore.com>
3791 2015-01-15 Joel Brobecker <brobecker@adacore.com>
3793 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
3794 ___XA type if the array has already been fixed.
3796 2015-01-14 Yao Qi <yao@codesourcery.com>
3798 * Makefile.in (ppc-linux.o): New rule.
3799 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
3800 * configure.ac: AC_CHECK_FUNCS(getauxval).
3801 * config.in: Re-generated.
3802 * configure: Re-generated.
3803 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
3805 * nat/ppc-linux.c: New file.
3806 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
3807 Call ppc64_64bit_inferior_p.
3809 2015-01-14 Yao Qi <yao@codesourcery.com>
3811 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
3813 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
3814 (PPC_FEATURE_HAS_DFP): Likewise.
3815 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
3816 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
3817 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
3818 Include "nat/ppc-linux.h".
3819 * nat/ppc-linux.h: New file.
3820 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
3822 2015-01-14 Pedro Alves <palves@redhat.com>
3825 * breakpoint.c: Include "interps.h".
3826 (bpstat_do_actions_1): Also check whether the interpreter is
3829 2015-01-14 Pedro Alves <palves@redhat.com>
3832 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
3833 reinstall if the interpreter is sync.
3835 2015-01-13 Doug Evans <dje@google.com>
3837 * objfiles.c (objfile_filename): New function.
3838 * objfiles.h (objfile_filename): Declare it.
3839 (objfile_name): Add function comment.
3840 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
3841 bfd file name (which may be realpath'd), and the original name.
3843 2015-01-13 Joel Brobecker <brobecker@adacore.com>
3845 * NEWS: Create a new section for the next release branch.
3846 Rename the section of the current branch, now that it has
3849 2015-01-13 Joel Brobecker <brobecker@adacore.com>
3851 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
3852 * version.in: Bump version to 7.9.50.DATE-cvs.
3854 2015-01-13 Joel Brobecker <brobecker@adacore.com>
3856 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
3857 Remove trailing new-line in argument of call to warning.
3859 2015-01-13 Joel Brobecker <brobecker@adacore.com>
3861 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
3862 new-line in argument of call to "warning".
3864 2015-01-13 Joel Brobecker <brobecker@adacore.com>
3866 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
3867 in static block, then try searching for primitive types.
3869 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
3871 * top.h (gdb_add_history): Declare.
3872 * top.c (command_count): New variable.
3873 (gdb_add_history): New function.
3874 (gdb_safe_append_history): New static function.
3875 (quit_force): Call it.
3876 (command_line_input): Use gdb_add_history instead of
3878 * event-top.c (command_line_handler): Likewise.
3880 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
3883 * darwin-nat.c: Replace <machine/setjmp.h> #include by
3884 <setjmp.h> #include.
3886 2015-01-11 Doug Evans <xdje42@gmail.com>
3888 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
3890 2015-01-11 Doug Evans <xdje42@gmail.com>
3893 * NEWS: The "maint demangle" command is renamed as "demangle".
3894 * demangle.c: #include cli/cli-utils.h, language.h.
3895 (demangle_command): New function.
3896 (_initialize_demangle): Add new command "demangle".
3897 * maint.c (maintenance_demangle): Stub out.
3898 (_initialize_maint_cmds): Update help text for "maint demangle",
3899 and mark as deprecated.
3901 2015-01-11 Mark Kettenis <kettenis@gnu.org>
3903 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
3904 inferior_thread is a function.
3906 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
3908 * Makefile.in (.y.c): Don't munge yacc's #line
3911 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
3913 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
3914 to prompt for input.
3915 * tui/tui-hooks.c (tui_query_hook): Remove.
3916 (tui_install_hooks): Don't set deprecated_query_hook.
3917 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
3918 height calculation. Always update the command window's cur_line.
3920 2015-01-09 Pedro Alves <palves@redhat.com>
3922 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
3924 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
3926 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
3927 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
3929 (check_stopped_by_watchpoint): New function.
3930 (save_sigtrap): Reimplement.
3931 (linux_nat_stopped_by_watchpoint): Adjust.
3932 (linux_nat_lp_status_is_event): Delete.
3933 (stop_wait_callback): Only call save_sigtrap after storing the
3935 (status_callback): If the thread had been stopped for a breakpoint
3936 that has since been removed, discard the event and resume the LWP.
3937 (count_events_callback, select_event_lwp_callback): Use
3938 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
3939 (cancel_breakpoint): Rename to ...
3940 (check_stopped_by_breakpoint): ... this. Record whether the LWP
3941 stopped for a software breakpoint or hardware breakpoint.
3942 (select_event_lwp): Only give preference to the stepping LWP in
3943 all-stop mode. Adjust comments.
3944 (stop_and_resume_callback): Remove references to new_pending_p.
3945 (linux_nat_filter_event): Likewise. Leave exit events of the
3946 leader thread pending here. Handle signal short circuiting here.
3947 Only call save_sigtrap after storing the pending waitstatus.
3948 (linux_nat_wait_1): Remove 'retry' label. Remove references to
3949 new_pending. Don't handle leaving events the caller is not
3950 interested in pending here, nor handle signal short-circuiting
3951 here. Also give equal priority to all LWPs that have had events
3952 in non-stop mode. If reporting a software breakpoint event,
3953 unadjust the LWP's PC.
3954 * linux-nat.h (enum lwp_stop_reason): New.
3955 (struct lwp_info) <stop_pc>: New field.
3956 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
3957 (struct lwp_info) <stop_reason>: New field.
3958 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
3960 2015-01-09 Pedro Alves <palves@redhat.com>
3962 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
3963 Set the LWP's 'resumed' flag.
3965 2015-01-09 Pedro Alves <palves@redhat.com>
3967 * linux-nat.c (linux_resume_one_lwp): New function.
3968 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
3969 (linux_nat_resume): Use lwp_status_pending_p and
3970 linux_resume_one_lwp.
3971 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
3972 (linux_handle_extended_wait): Use linux_resume_one_lwp.
3973 (status_callback, running_callback): Use lwp_status_pending_p.
3974 (lwp_status_pending_p): New function.
3975 (stop_and_resume_callback): Use lwp_status_pending_p.
3976 (linux_nat_filter_event): Use linux_resume_one_lwp.
3977 (linux_nat_wait_1): Always use status_callback to look for an LWP
3978 with a pending status. Use linux_resume_one_lwp.
3979 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
3980 linux_resume_one_lwp.
3982 2015-01-09 Pedro Alves <palves@redhat.com>
3984 * breakpoint.c (bp_location_inserted_here_p): New function,
3985 factored out from ...
3986 (breakpoint_inserted_here_p): ... here. Use
3987 ALL_BP_LOCATIONS_AT_ADDR.
3988 (software_breakpoint_inserted_here_p): Use
3989 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
3991 2014-01-09 Pedro Alves <palves@redhat.com>
3993 Skip enabling event reporting if the kernel supports
3995 * linux-thread-db.c: Include "nat/linux-ptrace.h".
3996 (thread_db_use_events): New function.
3997 (try_thread_db_load_1): Check thread_db_use_events before enabling
3999 (update_thread_state): New function.
4000 (attach_thread): Use it. Check thread_db_use_events before
4001 enabling event reporting.
4002 (thread_db_detach): Check thread_db_use_events before disabling
4004 (find_new_threads_callback): Check thread_db_use_events before
4005 enabling event reporting. Update the thread's state if not using
4006 libthread_db events.
4008 2015-01-09 Pedro Alves <palves@redhat.com>
4010 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
4011 about to wait for is > 0.
4012 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
4013 the kernel thread ID is -1.
4015 2015-01-09 Pedro Alves <palves@redhat.com>
4017 * linux-nat.c (attach_proc_task_lwp_callback): New function.
4018 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
4019 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
4020 ptrace option flags.
4021 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
4023 * nat/linux-procfs.c: Include <dirent.h>.
4024 (linux_proc_get_int): New parameter "warn". Handle it.
4025 (linux_proc_get_tgid): Adjust.
4026 (linux_proc_get_tracerpid): Rename to ...
4027 (linux_proc_get_tracerpid_nowarn): ... this.
4028 (linux_proc_pid_get_state): New function, factored out from
4029 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
4031 (linux_proc_pid_is_gone): New function.
4032 (linux_proc_pid_is_stopped): Adjust.
4033 (linux_proc_pid_is_zombie_maybe_warn)
4034 (linux_proc_pid_is_zombie_nowarn): New functions.
4035 (linux_proc_pid_is_zombie): Use
4036 linux_proc_pid_is_zombie_maybe_warn.
4037 (linux_proc_attach_tgid_threads): New function.
4038 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
4039 (linux_proc_get_tracerpid): Rename to ...
4040 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
4041 (linux_proc_pid_is_gone): New declaration.
4042 (linux_proc_pid_is_zombie): Update comment.
4043 (linux_proc_pid_is_zombie_nowarn): New declaration.
4044 (linux_proc_attach_lwp_func): New typedef.
4045 (linux_proc_attach_tgid_threads): New declaration.
4046 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
4047 use nowarn functions.
4048 (linux_ptrace_attach_fail_reason_string): Move here from
4049 gdbserver/linux-low.c and rename.
4050 (ptrace_supports_feature): If the current ptrace options are not
4051 known yet, check them now, instead of asserting.
4052 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
4055 2015-01-09 Pedro Alves <palves@redhat.com>
4057 * linux-thread-db.c (thread_db_find_new_threads_silently)
4058 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
4059 (find_new_threads_once): Print debug output on gdb_stdlog.
4061 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
4062 Pedro Alves <palves@redhat.com>
4064 * compile/compile.c: Include "gdb_wait.h".
4065 (do_rmdir): Check return value, and free 'zap'.
4067 2015-01-08 Pedro Alves <palves@redhat.com>
4068 Yao Qi <yao@codesourcery.com>
4070 * dwarf2loc.c (indirect_pieced_value): Don't call
4071 gdb_sign_extend. Call extract_signed_integer instead.
4072 * utils.c (gdb_sign_extend): Remove.
4073 * utils.h (gdb_sign_extend): Remove declaration.
4075 2015-01-07 Pierre Muller <muller@sourceware.org>
4078 * stabsread.c (define_symbol): Set language for C++ special symbols.
4080 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
4082 * inflow.c (initial_gdb_ttystate): Tweak comment.
4084 2015-01-07 Joel Brobecker <brobecker@adacore.com>
4086 * inflow.c (set_initial_gdb_ttystate): Add empty line after
4087 comment documenting function.
4089 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
4091 * terminal.h (set_initial_gdb_ttystate): Declare.
4092 * inflow.c (initial_gdb_ttystate): New static variable.
4093 (set_initial_gdb_ttystate): New setter.
4094 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
4095 instead of our current terminal state.
4096 * top.c (gdb_init): Call set_initial_gdb_ttystate.
4098 2015-01-07 Joel Brobecker <brobecker@adacore.com>
4100 * guile/scm-type.c (tyscm_array_1): Add comment.
4101 * python/py-type.c (typy_array_1): Add comment.
4103 2015-01-06 Joel Brobecker <brobecker@adacore.com>
4105 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
4106 error if N2 is equal to N1 - 1.
4108 2015-01-06 Joel Brobecker <brobecker@adacore.com>
4110 * python/py-type.c (typy_array_1): Do not raise negative-length
4111 exception if N2 is equal to N1 - 1.
4113 2015-01-03 Doug Evans <xdje42@gmail.com>
4115 * c-exp.y: Whitespace cleanup.
4116 (classify_inner_name): Remove extra ;.
4118 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
4120 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
4123 2015-01-02 Doug Evans <dje@google.com>
4125 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
4127 2015-01-02 Doug Evans <dje@google.com>
4129 * symtab.h (struct symbol): Fix typo in comment.
4131 2015-01-01 Joel Brobecker <brobecker@adacore.com>
4133 Update year range in copyright notice of all files.
4135 2015-01-01 Joel Brobecker <brobecker@adacore.com>
4137 * top.c (print_gdb_version): Update copyright year to 2015.
4139 2015-01-01 Joel Brobecker <brobecker@adacore.com>
4141 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
4143 For older changes see ChangeLog-2014.
4149 version-control: never