1 2015-04-17 Gary Benson <gbenson@redhat.com>
3 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
4 * remote.c (PACKET_qXfer_exec_file): Likewise.
5 (remote_protocol_features): Register the
6 "qXfer:exec-file:read" feature.
7 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8 (remote_pid_to_exec_file): New function.
9 (init_remote_ops): Initialize to_pid_to_exec_file.
10 (_initialize_remote): Register new "set/show remote
11 pid-to-exec-file-packet" command.
12 * NEWS: Announce new qXfer:exec-file:read packet.
14 2015-04-17 Gary Benson <gbenson@redhat.com>
16 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
18 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
19 New function, factored out from...
20 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
22 2015-04-17 Gary Benson <gbenson@redhat.com>
24 * exec.c (solist.h): New include.
25 (exec_file_locate_attach): Prefix absolute executable
26 paths with gdb_sysroot if set.
27 * NEWS: Mention that executable paths may be prepended
30 2015-04-17 Gary Benson <gbenson@redhat.com>
32 * solist.h (exec_file_find): New declaration.
33 * solib.c (solib_find_1): New function, factored out from...
34 (solib_find): ...here.
35 (exec_file_find): New function.
37 2015-04-17 Gary Benson <gbenson@redhat.com>
39 * gdbcore.h (exec_file_locate_attach): New declaration.
40 * exec.c (exec_file_locate_attach): New function, factored
42 * infcmd.c (attach_command_post_wait): ...here.
44 2015-04-17 Mike Frysinger <vapier@gentoo.org>
46 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
48 2015-04-16 Yao Qi <yao.qi@linaro.org>
50 * infrun.c (maybe_software_singlestep): Declare.
51 (displaced_step_fixup): Call maybe_software_singlestep.
53 2015-04-15 Doug Evans <dje@google.com>
55 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
57 2015-04-15 Doug Evans <dje@google.com>
59 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
61 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
63 * python/lib/gdb/command/unwinders.py: Add parentheses.
65 2015-04-15 Yao Qi <yao.qi@linaro.org>
67 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
69 2015-04-15 Yao Qi <yao.qi@linaro.org>
71 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
73 2015-04-15 Yao Qi <yao.qi@linaro.org>
75 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
76 dsc->insn_size instead of 4.
78 2015-04-14 Gary Benson <gbenson@redhat.com>
80 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
81 * minidebug.c (lzma_stat): Likewise.
82 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
83 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
85 2015-04-13 Stan Shebs <stanshebs@google.com>
87 * MAINTAINERS: Update my email address.
89 2015-04-13 John Baldwin <jhb@FreeBSD.org>
91 * amd64-tdep.c (amd64_target_description): New function.
92 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
93 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
94 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
95 x86 extended save area.
96 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
97 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
98 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
99 (_initialize_amd64fbsd_nat): Set "to_read_description" to
100 "amd64fbsd_read_description".
101 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
102 (amd64fbsd_supply_xstateregset): New function.
103 (amd64fbsd_collect_xstateregset): New function.
104 Add "amd64fbsd_xstateregset".
105 (amd64fbsd_iterate_over_regset_sections): New function.
106 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
107 "I386_FBSD_XSAVE_XCR0_OFFSET".
108 Add "iterate_over_regset_sections" gdbarch method.
109 Add "core_read_description" gdbarch method.
110 * i386-tdep.c (i386_target_description): New function.
111 * i386-tdep.h: Export i386_target_description and tdesc_i386.
112 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
113 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
114 x86 extended save area.
115 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
116 * i386bsd-nat.h: Export i386bsd_xsave_len.
117 * i386fbsd-nat.c (i386fbsd_read_description): New function.
118 (_initialize_i386fbsd_nat): Set "to_read_description" to
119 "i386fbsd_read_description".
120 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
121 (i386fbsd_core_read_description): New function.
122 (i386fbsd_supply_xstateregset): New function.
123 (i386fbsd_collect_xstateregset): New function.
124 Add "i386fbsd_xstateregset".
125 (i386fbsd_iterate_over_regset_sections): New function.
126 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
127 "I386_FBSD_XSAVE_XCR0_OFFSET".
128 Add "iterate_over_regset_sections" gdbarch method.
129 Add "core_read_description" gdbarch method.
130 * i386fbsd-tdep.h: New file.
132 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
134 * NEWS (Changes since GDB 7.9): Add removed -xdb.
135 * breakpoint.c (command_line_is_silent): Remove xdb_commands
137 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
139 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
141 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
143 * defs.h (xdb_commands): Remove declaration.
144 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
145 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
146 * infcmd.c (run_no_args_command, go_command): Remove.
147 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
148 * infrun.c (xdb_handle_command): Remove.
149 (_initialize_infrun): Remove xdb_commands for lz and z.
150 * main.c (xdb_commands): Remove variable.
151 (captured_main): Remove "xdb" from long_options.
152 (print_gdb_help): Remove --xdb from help.
153 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
154 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
155 * stack.c (backtrace_full_command, args_plus_locals_info)
156 (current_frame_command): Remove.
157 (_initialize_stack): Remove xdb_commands for t, T and l.
158 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
159 * thread.c (_initialize_thread): Remove xdb_commands condition.
160 * tui/tui-layout.c (tui_toggle_layout_command)
161 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
162 (_initialize_tui_layout): Remove xdb_commands for td and ts.
163 * tui/tui-regs.c (tui_scroll_regs_forward_command)
164 (tui_scroll_regs_backward_command): Remove.
165 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
166 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
167 (_initialize_tui_win): Remove xdb_commands for U and w.
168 * utils.c (pagination_on_command, pagination_off_command): Remove.
169 (initialize_utils): Remove xdb_commands for am and sm.
171 2015-04-10 Pedro Alves <palves@redhat.com>
173 * infrun.c (displaced_step_fixup): Switch to the event ptid
174 earlier. If the thread stopped for a watchpoint and the
175 target/arch has non-continuable watchpoints, cancel the displaced
177 (resume): Don't start a displaced step if in-line step-over info
180 2015-04-10 Pedro Alves <palves@redhat.com>
182 * infrun.c (displaced_step_in_progress): New function.
183 (do_target_resume): Advise target to report all signals if
186 2015-04-10 Pedro Alves <palves@redhat.com>
189 * infrun.c (process_event_stop_test): Don't assume a step-resume
190 is set if tp->stepped_breakpoint is true.
192 2015-04-10 Yao Qi <yao.qi@linaro.org>
194 * arm-tdep.c (install_alu_reg): Update comment.
195 (thumb_copy_alu_reg): Remove local variable rn. Update
196 debugging message. Use r2 instead of r1 in the modified
199 2015-04-10 Pedro Alves <palves@redhat.com>
202 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
203 linux_displaced_step_location as gdbarch_displaced_step_location
205 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
206 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
207 * linux-tdep.c (linux_displaced_step_location): New function,
208 based on ppc_linux_displaced_step_location.
209 * linux-tdep.h (linux_displaced_step_location): New declaration.
210 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
211 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
213 (ppc_linux_init_abi): Install linux_displaced_step_location as
214 gdbarch_displaced_step_location hook, even without Cell/B.E..
215 (_initialize_ppc_linux_tdep): Don't install
216 ppc_linux_inferior_created as inferior_created observer.
217 * s390-linux-tdep.c (s390_gdbarch_init): Install
218 linux_displaced_step_location as gdbarch_displaced_step_location
221 2015-04-09 Gary Benson <gbenson@redhat.com>
223 * common/common-remote-fileio.h: Rename to...
224 * common/fileio.h: ...this. Update all references.
225 (remote_fileio_to_fio_error): Rename to...
226 (host_to_fileio_error): ...this.
227 (remote_fileio_to_be): Rename to...
228 (host_to_bigendian): ...this. Update all callers.
229 (remote_fileio_to_fio_uint): Rename to...
230 (host_to_fileio_uint): ...this. Update all callers.
231 (remote_fileio_to_fio_time): Rename to...
232 (host_to_fileio_time): ...this. Update all callers.
233 (remote_fileio_to_fio_stat): Rename to...
234 (host_to_fileio_stat): ...this.
235 Update all references.
236 * common/common-remote-fileio.c: Rename to...
237 * common/fileio.c: ...this. Update all references.
238 (remote_fileio_to_fio_error): Rename to...
239 (host_to_fileio_error): ...this. Update all callers.
240 (remote_fileio_mode_to_target): Rename to...
241 (fileio_mode_pack): ...this. Update all callers.
242 (remote_fileio_to_fio_mode): Rename to...
243 (host_to_fileio_mode): ...this. Update all callers.
244 (remote_fileio_to_fio_ulong): Rename to...
245 (host_to_fileio_ulong): ...this. Update all callers.
246 (remote_fileio_to_fio_stat): Rename to...
247 (host_to_fileio_stat): ...this. Update all callers.
249 2015-04-09 Andy Wingo <wingo@igalia.com>
251 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
252 (frame_functions): Bind gdbscm_frame_read_register to
254 * guile/lib/gdb.scm (frame-read-register): Export.
256 2015-04-09 Gary Benson <gbenson@redhat.com>
258 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
260 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
261 New function, factored out the named functions below.
262 * inf-child.c (gdb/fileio.h): Remove include.
263 (common-remote-fileio.h): New include.
264 (inf_child_errno_to_fileio_error): Remove function. Update
265 all callers to use remote_fileio_to_fio_error.
266 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
268 2015-04-09 Andy Wingo <wingo@igalia.com>
270 * MAINTAINERS (Write After Approval): Add Andy Wingo.
272 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
274 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
275 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
276 * configure: Regenerated.
278 2015-04-09 Pedro Alves <palves@redhat.com>
280 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
281 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
282 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
283 * gnulib/import/Makefile.am: Update.
284 * gnulib/import/Makefile.in: Update.
285 * gnulib/import/m4/gnulib-cache.m4: Update.
286 * gnulib/import/m4/gnulib-comp.m4: Update.
287 * gnulib/import/m4/strtok_r.m4: New file.
288 * gnulib/import/strtok_r.c: New file.
290 2015-04-09 Pedro Alves <palves@redhat.com>
292 * gnulib/update-gnulib.sh (aclocal version check): Filter out
293 "called too early to check prototype".
295 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
298 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
299 use a caching mechanism. Adjust comments and code to reflect
300 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
301 (cmdpy_completer_handle_brkchars): Adjust call to
302 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
303 (cmdpy_completer): Likewise.
305 2015-04-08 Yao Qi <yao.qi@linaro.org>
307 * spu-tdep.c (spu_gdbarch_init): Don't call
308 set_gdbarch_cannot_step_breakpoint.
310 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
312 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
314 2015-04-07 Pedro Alves <palves@redhat.com>
316 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
317 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
318 (delete_exited_threads): New declaration.
319 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
320 * linux-nat.c (linux_nat_update_thread_list): New function.
321 (linux_nat_add_target): Install it.
322 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
323 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
324 (delete_exited_threads): New function.
326 2015-04-07 Pedro Alves <pedro@codesourcery.com>
328 * infrun.c (resume) <displaced stepping debug output>: Get the
329 leader thread's regcache, not resume_ptid's.
331 2015-04-06 Doug Evans <xdje42@gmail.com>
333 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
335 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
336 Include symbol domain in debugging output.
338 2015-04-06 Pedro Alves <palves@redhat.com>
339 Bernd Edlinger <bernd.edlinger@hotmail.de>
341 * configure.ac: Remove the mingw32-specific stub-termcap.o
342 fallback, and instead fallback to the stub termcap on all hosts.
343 * configure: Regenerate.
344 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
347 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
349 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
350 "top_level" parameter.
351 (resolve_dynamic_type_internal): Remove the unused "top_level"
352 parameter. Update call to is_dynamic_type_internal.
353 (is_dynamic_type): Update call to is_dynamic_type_internal.
354 (resolve_dynamic_range): Update call to
355 resolve_dynamic_type_internal.
356 (resolve_dynamic_union): Likewise.
357 (resolve_dynamic_struct): Likewise.
358 (resolve_dynamic_type): Likewise.
360 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
362 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
363 TYPE_CODE_REF types so that they are not considered as dynamic
364 depending on the referenced type.
365 (resolve_dynamic_type_internal): Likewise.
367 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
369 * Makefile.in (top_srcdir): New.
370 * configure: Regenerated.
372 2015-04-02 Gary Benson <gbenson@redhat.com>
374 * NEWS: Announce the new default sysroot of "target:".
376 2015-04-02 Gary Benson <gbenson@redhat.com>
378 * main.c (captured_main): Set gdb_sysroot to "target:"
379 if not otherwise set.
381 2015-04-02 Gary Benson <gbenson@redhat.com>
383 * exec.c (exec_file_attach): Support "target:" filenames.
385 2015-04-02 Gary Benson <gbenson@redhat.com>
387 * solib.c (solib_find): Strip "target:" prefix from sysroot
388 if accessing local files.
390 2015-04-02 Gary Benson <gbenson@redhat.com>
392 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
393 checks and error messages.
395 2015-04-02 Gary Benson <gbenson@redhat.com>
397 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
398 (remote_filename_p): Remove declaration.
399 (remote_bfd_open): Likewise.
400 * remote.c (remote_bfd_iovec_open): Remove function.
401 (remote_bfd_iovec_close): Likewise.
402 (remote_bfd_iovec_pread): Likewise.
403 (remote_bfd_iovec_stat): Likewise.
404 (remote_filename_p): Likewise.
405 (remote_bfd_open): Likewise.
406 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
407 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
408 (gdb_bfd_open_maybe_remote): Remove function.
409 (symfile_bfd_open): Replace remote filename check with
410 target filename check.
411 (reread_symbols): Use gdb_bfd_open.
412 * build-id.c (gdbcore.h): New include.
413 (build_id_to_debug_bfd): Use gdb_bfd_open.
414 * infcmd.c (attach_command_post_wait): Remove remote filename
416 * solib.c (solib_find): Replace remote-specific handling with
417 target-specific handling. Update comments where necessary.
418 (solib_bfd_open): Replace remote-specific handling with
419 target-specific handling.
420 (gdb_sysroot_changed): New function.
421 (_initialize_solib): Call the above when gdb_sysroot changes.
422 * windows-tdep.c (gdbcore.h): New include.
423 (windows_xfer_shared_library): Use gdb_bfd_open.
425 2015-04-02 Gary Benson <gbenson@redhat.com>
427 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
428 (is_target_filename): New declaration.
429 (gdb_bfd_has_target_filename): Likewise.
430 (gdb_bfd_open): Update documentation comment.
431 * gdb_bfd.c (target.h): New include.
432 (gdb/fileio.h): Likewise.
433 (is_target_filename): New function.
434 (gdb_bfd_has_target_filename): Likewise.
435 (fileio_errno_to_host): Likewise.
436 (gdb_bfd_iovec_fileio_open): Likewise.
437 (gdb_bfd_iovec_fileio_pread): Likewise.
438 (gdb_bfd_iovec_fileio_close): Likewise.
439 (gdb_bfd_iovec_fileio_fstat): Likewise.
440 (gdb_bfd_open): Use target fileio to access paths prefixed
441 with "target:" where necessary.
443 2015-04-02 Gary Benson <gbenson@redhat.com>
445 * target.h (struct target_ops) <to_filesystem_is_local>:
447 (target_filesystem_is_local): New macro.
448 * target-delegates.c: Regenerate.
449 * remote.c (remote_filesystem_is_local): New function.
450 (init_remote_ops): Initialize to_filesystem_is_local.
452 2015-04-02 Gary Benson <gbenson@redhat.com>
454 * target.h (struct target_ops) <to_fileio_fstat>: New field.
455 (target_fileio_fstat): New declaration.
456 * target.c (target_fileio_fstat): New function.
457 * inf-child.c (inf_child_fileio_fstat): Likewise.
458 (inf_child_target): Initialize to_fileio_fstat.
459 * remote.c (init_remote_ops): Likewise.
461 2015-04-01 Sasha Smundak <asmundak@google.com>
463 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
464 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
465 (py-unwind.o): New recipe.
466 * NEWS: mention Python frame unwinding.
467 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
468 gdb/unwinder.py and gdb/command/unwinder.py
469 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
471 (execute_unwinders): New function.
472 * python/lib/gdb/command/unwinders.py: New file.
473 * python/lib/gdb/unwinder.py: New file.
474 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
475 (objfpy_dealloc): Decrement frame_unwinders reference count.
476 (objfpy_initialize): Create frame_unwinders list.
477 (objfpy_get_frame_unwinders): New function.
478 (objfpy_set_frame_unwinders): Ditto.
479 (objfile_getset): Add frame_unwinders attribute to Objfile.
480 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
481 (pspy_dealloc): Decrement frame_unwinders reference count.
482 (pspy_initialize): Create frame_unwinders list.
483 (pspy_get_frame_unwinders): New function.
484 (pspy_set_frame_unwinders): Ditto.
485 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
486 * python/py-unwind.c: New file.
487 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
488 (objpy_get_frame_unwinders): New prototype.
489 (gdbpy_initialize_unwind): New prototype.
490 * python/python.c (gdbpy_apply_type_printers): Call
491 gdbpy_initialize_unwind.
493 2015-04-01 Pedro Alves <palves@redhat.com>
495 * infrun.c (resume): Check currently_stepping after clearing
496 stepped_breakpoint, not before.
498 2015-04-01 Pedro Alves <palves@redhat.com>
500 * infrun.c (print_target_wait_results): Print all the ptid
503 2015-04-01 Pedro Alves <palves@redhat.com>
505 * infrun.c (keep_going): Also discard cleanups if inserting
508 2015-04-01 Pedro Alves <palves@redhat.com>
510 * infrun.c (wait_for_inferior): Install the
511 finish_thread_state_cleanup cleanup across the whole function, not
512 just around handle_inferior_event.
514 2015-04-01 Pedro Alves <palves@redhat.com>
516 * infrun.c (resume) <step past permanent breakpoint>: Use
519 2015-04-01 Pedro Alves <palves@redhat.com>
521 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
523 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
525 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
527 2015-04-01 Pedro Alves <palves@redhat.com>
529 * linux-thread-db.c (record_thread): Readd the thread to gdb's
530 list if it was marked exited.
532 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
534 * configure: Regenerated.
536 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
537 Jan Kratochvil <jan.kratochvil@redhat.com>
538 Oleg Nesterov <oleg@redhat.com>
541 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
542 New enum identifying the various options of the coredump_filter
544 (struct smaps_vmflags): New struct.
545 (use_coredump_filter): New variable.
546 (decode_vmflags): New function.
547 (mapping_is_anonymous_p): Likewise.
548 (dump_mapping_p): Likewise.
549 (linux_find_memory_regions_full): New variables
550 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
551 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
552 parsing of its information. Implement memory mapping filtering
553 based on its contents.
554 (show_use_coredump_filter): New function.
555 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
556 * NEWS: Mention the possibility of using the
557 '/proc/PID/coredump_filter' file when generating a corefile.
558 Mention new command 'set use-coredump-filter'.
560 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
562 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
563 read_memory_unsigned_integer.
565 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
567 * Makefile.in (ZLIB): New.
569 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
570 (CLIBS): Add $(ZLIB).
571 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
573 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
574 * top.c (print_gdb_configuration): Remove --with-zlib and
576 * config.in: Regenerated.
577 * configure: Likewise.
579 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
581 * NEWS: Mention info os cpus support.
582 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
583 (struct osdata_type): Add cpus entry, reorder the entries in
586 2015-03-31 Matthias Klose <doko@ubuntu.com>
588 * compile/compile.c (compile_to_object): Allow triplets with or
591 2015-03-30 Doug Evans <dje@google.com>
594 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
597 2015-03-30 Gary Benson <gbenson@redhat.com>
599 * remote.c (remote_mourn_1): Remove function. Update all callers
601 (extended_remote_mourn_1): Remove function. Update all callers
602 to use extended_remote_mourn.
603 (extended_remote_attach_1): Remove function. Update all callers
604 to use extended_remote_attach.
606 2015-03-28 James Bowman <james.bowman@ftdichip.com>
608 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
609 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
610 (ALLDEPFILES): Add ft32-tdep.c.
611 * configure.tgt: Add FT32 entry.
612 * ft32-tdep.c: New file, FT32 target-dependent code.
613 * ft32-tdep.h: New file, FT32 target-dependent code.
615 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
618 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
620 * printcmd.c (print_command_1): Move expr variable scope.
622 2015-03-27 Joel Brobecker <brobecker@adacore.com>
624 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
626 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
628 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
631 2015-03-26 Joel Brobecker <brobecker@adacore.com>
633 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
634 exception raised while parsing the probe arguments.
635 Force parsing to be done using the C language parser.
636 * expression.h (parse_expression_with_language): Declare.
637 * parse.c (parse_expression_with_language): New function.
639 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
641 * MAINTAINERS (Write After Approval): Add "Jon Turney".
643 2015-03-26 Andy Wingo <wingo@igalia.com>
646 * dwarf2read.c (struct partial_die_info): Add has_const_value
648 (add_partial_symbol): Don't punt on symbols that have const_value
650 (read_partial_die): Detect DW_AT_const_value.
652 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
655 * printcmd.c (print_command_1): Move expr variable scope.
657 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
660 * printcmd.c (validate_format): Make the parameter cmdname const.
662 2015-03-26 Don Breazeal <donb@codesourcery.com>
664 * remote.c (_initialize_remote): Update comment.
666 2015-03-26 Pedro Alves <palves@redhat.com>
667 Jon TURNEY <jon.turney@dronecode.org.uk>
669 * coffread.c (coff_symfile_read): When constructing the name of an
670 import stub symbol from import symbol for amd64, only skip the
671 char after _imp_ if the target is underscored (like i386) and the
672 char is indeed the target's leading char.
674 2015-03-25 Pedro Alves <palves@redhat.com>
676 * target.h <to_async>: Replace 'callback' and 'context' parameters
677 with boolean 'enable' parameter.
678 (target_async): Replace CALLBACK and CONTEXT parameters with
679 boolean ENABLE parameter.
680 * inf-loop.c (inferior_event_handler): Adjust.
681 * linux-nat.c (linux_nat_attach, linux_nat_resume)
682 (linux_nat_resume): Adjust.
683 (async_client_callback, async_client_context): Delete.
684 (handle_target_event): Call inferior_event_handler directly.
685 (linux_nat_async): Replace 'callback' and 'context' parameters
686 with boolean 'enable' parameter. Adjust. Remove references to
687 async_client_callback and async_client_context.
688 (linux_nat_close): Adjust.
689 * record-btrace.c (record_btrace_async): Replace 'callback' and
690 'context' parameters with boolean 'enable' parameter. Adjust.
691 (record_btrace_resume): Adjust.
692 * record-full.c (record_full_async): Replace 'callback' and
693 'context' parameters with boolean 'enable' parameter. Adjust.
694 (record_full_resume, record_full_core_resume): Adjust.
695 * remote.c (struct remote_state) <async_client_callback,
696 async_client_context>: Delete fields.
697 (remote_start_remote, extended_remote_attach_1, remote_resume)
698 (extended_remote_create_inferior): Adjust.
699 (remote_async_serial_handler): Call inferior_event_handler
701 (remote_async): Replace 'callback' and 'context' parameters with
702 boolean 'enable' parameter. Adjust.
703 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
705 * target-delegates.c: Regenerate.
707 2015-03-25 Gary Benson <gbenson@redhat.com>
708 Pedro Alves <palves@redhat.com>
710 * target.c (fileio_ft_t): New typedef, define object vector.
711 (fileio_fhandles): New static variable.
712 (is_closed_fileio_fh): New macro.
713 (lowest_closed_fd): New static variable.
714 (acquire_fileio_fd): New function.
715 (release_fileio_fd): Likewise.
716 (fileio_fd_to_fh): New macro.
717 (target_fileio_open): Wrap the file descriptor on success.
718 (target_fileio_pwrite): Updated to use wrapped file descriptor.
719 (target_fileio_pread): Likewise.
720 (target_fileio_close): Likewise.
722 2015-03-24 Pedro Alves <palves@redhat.com>
724 * thread.c (thread_apply_all_command): Take exited threads into
727 2015-03-24 Pedro Alves <palves@redhat.com>
729 * infrun.c (resume, proceed): Mention
730 switch_back_to_stepped_thread, not switch_back_to_stepping.
732 2015-03-24 Pedro Alves <palves@redhat.com>
734 * infrun.c (user_visible_resume_ptid): Rewrite going from
735 most-locked to unlocked instead of the opposite. Move comment ...
736 * infrun.h (user_visible_resume_ptid): ... here.
738 2015-03-24 Pedro Alves <palves@redhat.com>
740 * linux-nat.c (linux_nat_resume): Output debug logs before trying
741 to resume the event lwp. Use the lwp's ptid instead of the passed
742 in (maybe wildcard) ptid.
743 (stop_wait_callback): Tweak debug log output.
744 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
746 (linux_nat_filter_event): In debug output, distinguish a
747 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
748 before trying to resume the lwp.
750 2015-03-24 Joel Brobecker <brobecker@adacore.com>
752 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
754 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
755 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
757 2015-03-24 Joel Brobecker <brobecker@adacore.com>
759 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
760 Renames DYN_ATTR_DATA_LOCATION.
761 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
762 DYN_ATTR_DATA_LOCATION.
763 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
764 instead of DYN_ATTR_DATA_LOCATION.
766 2015-03-24 Pedro Alves <palves@redhat.com>
768 * breakpoint.c (until_break_command): Adjust call to proceed.
769 * gdbthread.h (struct thread_control_state) <stepping_command>:
771 * infcall.c (run_inferior_call): Adjust call to proceed.
772 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
773 Adjust calls to proceed.
774 (set_step_frame): Set the current thread's step_start_function
776 (step_once): Adjust calls to proceed.
777 (jump_command, signal_command, until_next_command)
778 (finish_backward, finish_forward, proceed_after_attach_callback)
779 (attach_command_post_wait): Adjust calls to proceed.
780 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
781 (do_target_resume): New function, factored out from ...
782 (resume): ... here. Remove 'step' parameter. Instead, check
783 currently_stepping to determine whether the thread should be
785 (proceed): Remove 'step' parameter and don't set the thread's
786 step_start_function here. Adjust call to 'resume'.
787 (handle_inferior_event): Adjust calls to 'resume'.
788 (switch_back_to_stepped_thread): Use do_target_resume instead of
790 (keep_going): Adjust calls to 'resume'.
791 * infrun.h (proceed): Remove 'step' parameter.
793 * windows-nat.c (do_initial_windows_stuff): Adjust call to
795 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
797 2015-03-24 Pedro Alves <palves@redhat.com>
799 * gdbthread.h (struct thread_control_state) <stepping_command>:
801 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
802 the thread's stepping_command field.
803 * infrun.c (resume): Check the thread's stepping_command flag to
804 determine which threads should be resumed. Rename 'entry_step'
806 (clear_proceed_status_thread): Clear 'stepping_command'.
807 (schedlock_applies): Change parameter type to struct thread_info
809 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
810 (switch_back_to_stepped_thread): Adjust calls to
812 (_initialize_infrun): Adjust "set scheduler-locking step" help.
814 2015-03-24 Pedro Alves <palves@redhat.com>
816 * infrun.c (step_start_function): Delete and ...
817 * gdbthread.h (struct thread_control_state) <step_start_function>:
818 ... now a field here.
819 * infrun.c (clear_proceed_status_thread): Clear the thread's
821 (proceed, process_event_stop_test, print_stop_event): Adjust.
823 2015-03-24 Pedro Alves <palves@redhat.com>
825 * infrun.c (proceed): No longer handle negative step.
827 2015-03-24 Gary Benson <gbenson@redhat.com>
829 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
830 (x86_linux_prepare_to_resume): Likewise.
831 * x86-linux-nat.c (x86_linux_new_thread):
832 Moved to nat/x86-linux.c.
833 (x86_linux_prepare_to_resume): Likewise.
834 * nat/x86-linux.c (x86_linux_new_thread): New function.
835 (x86_linux_prepare_to_resume): Likewise.
837 2015-03-24 Gary Benson <gbenson@redhat.com>
839 * nat/x86-linux-dregs.h: New file.
840 * nat/x86-linux-dregs.c: Likewise.
841 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
842 (x86-linux-dregs.o): New rule.
843 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
844 * config/i386/linux64.mh (NATDEPFILES): Likewise.
845 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
846 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
847 (x86_linux_dr_get): Likewise.
848 (x86_linux_dr_set): Likewise.
849 (x86_linux_dr_get_addr): Likewise.
850 (x86_linux_dr_get_control): Likewise.
851 (x86_linux_dr_get_status): Likewise.
852 (update_debug_registers_callback): Likewise.
853 (x86_linux_dr_set_control): Likewise.
854 (x86_linux_dr_set_addr): Likewise.
855 (x86_linux_update_debug_registers): Likewise.
857 2015-03-24 Gary Benson <gbenson@redhat.com>
859 * x86-linux-nat.c (x86_linux_update_debug_registers):
860 New function, factored out from...
861 (x86_linux_prepare_to_resume): ...this.
863 2015-03-24 Gary Benson <gbenson@redhat.com>
865 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
866 (x86_linux_dr_set): Likewise.
867 (x86_linux_dr_get_addr): Likewise.
868 (x86_linux_dr_get_control): Likewise.
869 (x86_linux_dr_get_status): Likewise.
870 (update_debug_registers_callback): Likewise.
871 (x86_linux_dr_set_control): Likewise.
872 (x86_linux_dr_set_addr): Likewise.
873 (x86_linux_prepare_to_resume): Likewise.
874 (x86_linux_new_thread): Likewise.
876 2015-03-24 Gary Benson <gbenson@redhat.com>
878 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
879 (x86_linux_new_thread): Rename argument.
881 2015-03-24 Gary Benson <gbenson@redhat.com>
883 * nat/x86-linux.h: New file.
884 * nat/x86-linux.c: Likewise.
885 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
886 (x86-linux.o): New rule.
887 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
888 * config/i386/linux64.mh (NATDEPFILES): Likewise.
889 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
890 (lwp_set_arch_private_info): New declaration.
891 (lwp_arch_private_info): Likewise.
892 * linux-nat.c (lwp_set_arch_private_info): New function.
893 (lwp_arch_private_info): Likewise.
894 * x86-linux-nat.c: Include nat/x86-linux.h.
895 (arch_lwp_info): Removed structure.
896 (update_debug_registers_callback):
897 Use lwp_set_debug_registers_changed.
898 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
899 and lwp_set_debug_registers_changed.
900 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
902 2015-03-24 Gary Benson <gbenson@redhat.com>
904 * nat/linux-nat.h (ptid_of_lwp): New declaration.
905 (lwp_is_stopped): Likewise.
906 (lwp_stop_reason): Likewise.
907 * linux-nat.c (ptid_of_lwp): New function.
908 (lwp_is_stopped): Likewise.
909 (lwp_is_stopped_by_watchpoint): Likewise.
910 * x86-linux-nat.c (update_debug_registers_callback):
912 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
915 2015-03-24 Gary Benson <gbenson@redhat.com>
917 * linux-nat.h (linux_stop_lwp): Move declaration to...
918 * nat/linux-nat.h (linux_stop_lwp): New declaration.
920 2015-03-24 Gary Benson <gbenson@redhat.com>
922 * linux-nat.h: Include nat/linux-nat.h.
923 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
924 * nat/linux-nat.h (struct lwp_info): New forward declaration.
925 (iterate_over_lwps_ftype): New typedef.
926 (iterate_over_lwps): New declaration.
927 * linux-nat.h (iterate_over_lwps): Update comment. Use
928 iterate_over_lwps_ftype. Update callback return value check.
930 2015-03-24 Gary Benson <gbenson@redhat.com>
932 * x86-nat.h (x86_debug_reg_state): Move declaration to...
933 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
935 2015-03-24 Gary Benson <gbenson@redhat.com>
937 * nat/linux-nat.h (current_lwp_ptid): New declaration.
938 * linux-nat.c (current_lwp_ptid): New function.
939 * x86-linux-nat.c: Include nat/linux-nat.h.
940 (x86_linux_dr_get_addr): Use current_lwp_ptid.
941 (x86_linux_dr_get_control): Likewise.
942 (x86_linux_dr_get_status): Likewise.
943 (x86_linux_dr_set_control): Likewise.
944 (x86_linux_dr_set_addr): Likewise.
946 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
949 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
951 2015-03-23 Joel Brobecker <brobecker@adacore.com>
953 * ser-mingw.c (ser_windows_setparity): Fix indentation.
954 * ser-unix.c (hardwire_setparity): Likewise.
956 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
958 * NEWS: Mention set/show serial parity command.
959 * monitor.c (monitor_open): Call serial_setparity.
960 * remote.c (remote_open_1): Likewise.
961 * ser-base.c (ser_base_serparity): New function.
962 * ser-base.h (ser_base_setparity): Add declaration.
963 * ser-go32.c (dos_ops): Set "setparity" field.
964 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
966 (ser_windows_setparity): New function.
967 (hardwire_ops): Add ser_windows_setparity.
968 (tty_ops): Add NULL for setparity field.
969 (pipe_ops): Add ser_base_setparity.
971 * ser-pipe.c (pipe_ops): Likewise.
972 * ser-tcp.c (tcp_ops): Likewise.
973 * ser-unix.c (hardwire_setparity): Add declaration.
974 (hardwire_raw): Don't reset PARENB flag.
975 (hardwire_setparity): New function.
976 (hardwire_ops): Add hardwire_setparity.
977 * serial.c (serial_setparity): New function.
978 (serial_parity): New global.
979 (parity_none, parity_odd, parity_even, parity_enums, parity):
981 (set_parity): New function.
982 (_initialize_serial): Add set/show serial parity commands.
983 * serial.h (GDBPARITY_NONE): Define.
984 (GDBPARITY_ODD): Define.
985 (GDBPARITY_EVEN): Define.
986 (serial_setparity) Add declaration.
987 (struct serial_ops): Add setparity field.
988 * target.h (serial_parity): Add declaration.
990 2015-03-23 Keith Seitz <keiths@redhat.com>
992 * linespec.c (linespec_lexer_lex_keyword): Update comment.
994 2015-03-23 Keith Seitz <keiths@redhat.com>
996 * breakpoint.c (parse_breakpoint_sals): Use
997 linespec_lexer_lex_keyword to ascertain if the user specified
999 * linespec.c [IF_KEYWORD_INDEX]: Define.
1000 (linespec_lexer_lex_keyword): Export.
1001 (struct ls_parser) <keyword_ok>: Remove.
1002 A keyword is only a keyword if not followed by another keyword.
1003 (linespec_lexer_lex_one): Remove keyword_ok handling.
1004 Add comment explaining why the parsing stream is not advanced
1005 when a keyword is seen.
1006 (parse_linespec): Remove parser->keyword_ok.
1007 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
1009 2015-03-23 Keith Seitz <keiths@redhat.com>
1012 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
1013 if we find a static method with DW_AT_vtable_elem_location.
1015 2015-03-21 Eli Zaretskii <eliz@gnu.org>
1017 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
1018 before the second loop, to avoid undefined behavior. Reported by
1019 Anton Blanchard <anton@samba.org>.
1021 2015-03-20 Keven Boell <keven.boell@intel.com>
1023 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
1024 data_location usage to linked list.
1025 (resolve_dynamic_type_internal): Adapt data_location to
1027 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
1028 (copy_type_recursive, copy_type): Add copy of linked list.
1029 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
1030 (struct dynamic_prop_list): New struct.
1031 * dwarf2read.c (set_die_type): Set data_location data.
1033 2015-03-20 Pedro Alves <palves@redhat.com>
1035 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
1036 inner block and make it const.
1037 * machoread.c (get_archive_prefix_len): Make "lparen" const.
1039 2015-03-20 Pedro Alves <palves@redhat.com>
1041 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
1042 * breakpoint.h (set_breakpoint_condition): Update declaration.
1044 2015-03-20 Pedro Alves <palves@redhat.com>
1046 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
1048 2015-03-20 Pedro Alves <palves@redhat.com>
1050 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
1052 2015-03-20 Pedro Alves <palves@redhat.com>
1054 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
1056 2015-03-20 Pedro Alves <palves@redhat.com>
1058 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
1059 (nto_init_solib_absolute_prefix): Likewise.
1061 2015-03-20 Pedro Alves <palves@redhat.com>
1063 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
1064 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
1066 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1068 * config/djgpp/README: Remove gdb.hp.
1070 2015-03-20 Yao Qi <yao.qi@linaro.org>
1072 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
1073 set_gdbarch_cannot_step_breakpoint.
1075 2015-03-19 Pedro Alves <palves@redhat.com>
1077 * linux-nat.c (linux_resume_one_lwp): Rename to ...
1078 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
1079 instead call perror_with_name.
1080 (check_ptrace_stopped_lwp_gone): New function.
1081 (linux_resume_one_lwp): Reimplement as wrapper around
1082 linux_resume_one_lwp_throw that swallows errors if the LWP is
1084 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
1085 swallows errors if the LWP is gone. Use
1086 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
1088 2015-03-19 Pedro Alves <palves@redhat.com>
1090 * linux-nat.c (status_callback): Return early if the LWP has no
1093 2015-03-19 Pedro Alves <palves@redhat.com>
1095 * linux-nat.c (select_event_lwp_callback): Update comment to no
1096 longer mention SIGTRAP.
1098 2015-03-18 Tristan Gingold <gingold@adacore.com>
1100 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
1101 redirection code to ...
1102 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
1103 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
1105 2015-03-18 Gary Benson <gbenson@redhat.com>
1107 (remote_protocol_features): Remove the "vFile:fstat" feature.
1108 (remote_hostio_fstat): Probe for "vFile:fstat" support.
1110 2015-03-11 Yao Qi <yao.qi@linaro.org>
1113 * aarch64-linux-tdep.c: Include xml-syscall.h
1114 (aarch64_linux_get_syscall_number): New function.
1115 (aarch64_linux_init_abi): Call
1116 set_gdbarch_get_syscall_number.
1117 * syscalls/aarch64-linux.xml: New file.
1119 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
1121 * ser-base.h (ser_base_setstopbits): Change second argument name
1122 from "rate" to "num".
1124 2015-03-17 Gary Benson <gbenson@redhat.com>
1125 Luke Allardyce <lukeallardyce@gmail.com>
1128 * common/common-remote-fileio.h (sys/stat.h): New include.
1129 (stuct stat): Remove forward declaration.
1131 2015-03-16 John Baldwin <jhb@FreeBSD.org>
1133 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
1134 before writing core register notes.
1136 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
1137 Pedro Alves <palves@redhat.com>
1139 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
1140 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
1141 (tgoto): Wrap with extern "C".
1143 2015-03-16 Pedro Alves <palves@redhat.com>
1144 Yuanhui Zhang <asmwarrior@gmail.com>
1146 * stub-termcap.c (tputs): Change prototype.
1148 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
1149 Pedro Alves <palves@redhat.com>
1151 * windows-nat.c (struct thread_info_struct): Rename to ...
1152 (struct windows_thread_info_struct): ... this.
1153 (thread_info): Rename to ...
1154 (windows_thread_info): ... this.
1157 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1158 Pedro Alves <palves@redhat.com>
1160 * NEWS: New Removed targets and native configurations.
1162 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1165 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
1166 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
1167 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
1168 ia64-hpux-tdep.h, solib-ia64-hpux.h.
1169 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
1170 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
1171 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
1173 * config/ia64/hpux.mh: Remove file.
1174 * config/pa/hpux.mh: Remove file.
1175 * configure: Rebuilt.
1176 * configure.ac (dlgetmodinfo, somread.o): Remove.
1177 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
1178 (ia64-*-hpux*): Remove its float format exception.
1179 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
1180 * hppa-hpux-nat.c: Remove file.
1181 * hppa-hpux-tdep.c: Remove file.
1182 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
1183 Move them here from hppa-tdep.h
1184 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
1185 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
1186 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
1187 Move them to hppa-tdep.c.
1188 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
1190 * ia64-hpux-nat.c: Remove file.
1191 * ia64-hpux-tdep.c: Remove file.
1192 * ia64-hpux-tdep.h: Remove file.
1193 * inf-ttrace.c: Remove file.
1194 * inf-ttrace.h: Remove file.
1195 * solib-ia64-hpux.c: Remove file.
1196 * solib-ia64-hpux.h: Remove file.
1197 * solib-pa64.c: Remove file.
1198 * solib-pa64.h: Remove file.
1199 * solib-som.c: Remove file.
1200 * solib-som.h: Remove file.
1201 * somread.c: Remove file.
1203 2015-03-13 John Baldwin <jhb@FreeBSD.org>
1205 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
1206 * config.in: Regenerate.
1207 * configure: Regenerate.
1208 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
1210 (fbsd_find_memory_regions): Use kinfo_getvmmap to
1211 enumerate memory regions if present.
1213 2015-03-13 John Baldwin <jhb@FreeBSD.org>
1215 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
1216 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
1218 (i386fbsd_sigtramp_p): Likewise.
1220 2015-03-12 John Baldwin <jhb@FreeBSD.org>
1222 * MAINTAINERS (Write After Approval): Add John Baldwin.
1224 2015-03-12 Gary Benson <gbenson@redhat.com>
1226 * solib.c (_initialize_solib): Make "set/show sysroot" use
1227 add_setshow_optional_filename_cmd so it can be restored to
1228 empty after being set.
1230 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
1232 * Makefile.in (SFILES): New source break-catch-syscall.c.
1233 (COMMON_OBS): New object break-catch-syscall.o.
1234 * break-catch-syscall.c: New file.
1235 * breakpoint.c: Remove inclusion of "xml-syscall.h".
1236 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
1237 (struct syscall_catchpoint): Likewise.
1238 (dtor_catch_syscall): Likewise.
1239 (catch_syscall_inferior_data): Likewise.
1240 (struct catch_syscall_inferior_data): Likewise.
1241 (get_catch_syscall_inferior_data): Likewise.
1242 (catch_syscall_inferior_data_cleanup): Likewise.
1243 (insert_catch_syscall): Likewise.
1244 (remove_catch_syscall): Likewise.
1245 (breakpoint_hit_catch_syscall): Likewise.
1246 (print_it_catch_syscall): Likewise.
1247 (print_one_catch_syscall): Likewise.
1248 (print_mention_catch_syscall): Likewise.
1249 (print_recreate_catch_syscall): Likewise.
1250 (catch_syscall_breakpoint_ops): Likewise.
1251 (syscall_catchpoint_p): Likewise.
1252 (create_syscall_event_catchpoint): Likewise.
1253 (catch_syscall_split_args): Likewise.
1254 (catch_syscall_command_1): Likewise.
1255 (is_syscall_catchpoint_enabled): Likewise.
1256 (catch_syscall_enabled): Likewise.
1257 (catching_syscall_number): Likewise.
1258 (catch_syscall_completer): Likewise.
1259 (clear_syscall_counts): Likewise.
1260 (initialize_breakpoint_ops): Move initialization of syscall
1261 catchpoints to break-catch-syscall.c.
1262 (_initialize_breakpoint): Move code related to syscall catchpoints
1263 to break-catch-syscall.c.
1265 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
1267 * breakpoint.c (breakpoint_find_if): New function.
1268 * breakpoint.h (breakpoint_find_if): New prototype.
1270 2015-03-11 Gary Benson <gbenson@redhat.com>
1272 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
1273 * remote-fileio.c (remote_fileio_to_host_uint): New function.
1274 (remote_fileio_to_host_ulong): Likewise.
1275 (remote_fileio_to_host_mode): Likewise.
1276 (remote_fileio_to_host_time): Likewise.
1277 (remote_fileio_to_host_stat): Likewise.
1278 * remote.c (PACKET_vFile_fstat): New enum value.
1279 (remote_protocol_features): Register the "vFile:fstat" feature.
1280 (remote_hostio_fstat): New function.
1281 (remote_bfd_iovec_stat): Use the above.
1282 (_initialize_remote): Register new "set/show remote
1283 hostio-fstat-packet" command.
1284 * symfile.c (separate_debug_file_exists): Update comment.
1285 * NEWS: Announce new vFile:fstat packet.
1287 2015-03-11 Gary Benson <gbenson@redhat.com>
1289 * common/common-remote-fileio.h: New file.
1290 * common/common-remote-fileio.c: Likewise.
1291 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
1292 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
1293 (COMMON_OBS): Add common-remote-fileio.o.
1294 (common-remote-fileio.o): New rule.
1295 * remote-fileio.h (common-remote-fileio.h): New include.
1296 * remote-fileio.c (gdb/fileio.h): Do not include.
1297 (remote_fileio_to_be): Moved to common-remote-fileio.h.
1298 (remote_fileio_to_fio_uint): Likewise.
1299 (remote_fileio_to_fio_time): Likewise.
1300 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
1301 (remote_fileio_to_fio_mode): Likewise.
1302 (remote_fileio_to_fio_ulong): Likewise.
1303 (remote_fileio_to_fio_stat): Likewise.
1305 2015-03-11 Andy Wingo <wingo@igalia.com>
1307 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
1308 we were checking the cached type, not the cached dynamic type.
1310 2015-03-11 Andy Wingo <wingo@igalia.com>
1312 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
1313 other strings, as these are on the GC'd heap, and will be
1314 collected along with the smob.
1316 2015-03-11 Andy Wingo <wingo@igalia.com>
1318 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
1319 (objfile_functions): Bind gdbscm_objfile_progspace to
1321 * guile/lib/gdb.scm: Add objfile-progspace to exports.
1323 2015-03-11 Andy Wingo <wingo@igalia.com>
1325 * guile/guile.c (_initialize_guile): Disable automatic
1326 finalization, if Guile offers us that possibility.
1327 * guile/guile.c (call_initialize_gdb_module):
1328 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
1329 finalizers in appropriate places.
1330 * configure.ac (AC_TRY_LIBGUILE): Add a check for
1331 scm_set_automatic_finalization_enabled.
1332 * configure: Regenerated.
1334 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
1336 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
1339 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
1341 * s390-linux-nat.c (struct arch_lwp_info): New.
1342 (s390_fix_watch_points): Rename to...
1343 (s390_prepare_to_resume): ...this. Skip the PER info update
1344 unless the watch points have changed.
1345 (s390_refresh_per_info, s390_new_thread): New functions.
1346 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
1347 s390_fix_watch_points.
1348 (s390_remove_watchpoint): Likewise.
1349 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
1350 Register s390_prepare_to_resume.
1352 2015-03-09 Pedro Alves <palves@redhat.com>
1355 2015-03-07 Pedro Alves <palves@redhat.com>
1356 * common/gdb_socket.h: New file.
1357 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
1359 (net_open): Use union gdb_sockaddr_u.
1361 2015-03-07 Pedro Alves <palves@redhat.com>
1363 * configure.ac (build_warnings): Move -Wmissing-prototypes
1364 -Wdeclaration-after-statement -Wmissing-parameter-type
1365 -Wold-style-declaration -Wold-style-definition to the C-specific
1367 * configure: Regenerate.
1369 2015-03-07 Pedro Alves <palves@redhat.com>
1371 * common/gdb_socket.h: New file.
1372 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
1374 (net_open): Use union gdb_sockaddr_u.
1376 2015-03-07 Pedro Alves <palves@redhat.com>
1378 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
1379 (exceptions_state_mc_action_iter)
1380 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
1382 [__cplusplus] (try_scope_depth): New global.
1383 [__cplusplus] (exception_try_scope_entry)
1384 (exception_try_scope_exit, gdb_exception_sliced_copy)
1385 (exception_rethrow): New functions.
1386 (throw_exception): In C++ mode, throw
1387 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
1388 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
1389 (throw_it): In C++ mode, use try_scope_depth.
1390 * common/common-exceptions.h [!__cplusplus]
1391 (exceptions_state_mc_action_iter)
1392 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
1394 [__cplusplus] (exception_try_scope_entry)
1395 (exception_try_scope_exit, exception_rethrow): Declare.
1396 [__cplusplus] (struct exception_try_scope): New struct.
1397 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
1399 (struct gdb_exception_RETURN_MASK_ALL)
1400 (struct gdb_exception_RETURN_MASK_ERROR)
1401 (struct gdb_exception_RETURN_MASK_QUIT): New types.
1403 2015-03-07 Pedro Alves <palves@redhat.com>
1405 * main.c (handle_command_errors): Remove volatile qualifier from
1408 2015-03-07 Pedro Alves <palves@redhat.com>
1410 * breakpoint.c (save_breakpoints): Adjust to avoid code between
1412 * gdbtypes.c (safe_parse_type): Remove empty line.
1413 (types_deeply_equal):
1414 * guile/scm-frame.c (gdbscm_frame_name):
1415 * linux-thread-db.c (find_new_threads_once):
1416 * python/py-breakpoint.c (bppy_get_commands):
1417 * record-btrace.c (record_btrace_insert_breakpoint)
1418 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
1419 (record_btrace_start_replaying): Adjust to avoid code between TRY
1422 2015-03-07 Pedro Alves <palves@redhat.com>
1424 * common/common-exceptions.c (struct catcher) <exception>: No
1425 longer a pointer to volatile exception. Now an exception value.
1426 <mask>: Delete field.
1427 (exceptions_state_mc_init): Remove all parameters. Adjust.
1428 (exceptions_state_mc): No longer pop the catcher here.
1429 (exceptions_state_mc_catch): New function.
1430 (throw_exception): Adjust.
1431 * common/common-exceptions.h (exceptions_state_mc_init): Remove
1433 (exceptions_state_mc_catch): Declare.
1434 (TRY_CATCH): Rename to ...
1435 (TRY): ... this. Remove EXCEPTION and MASK parameters.
1436 (CATCH, END_CATCH): New.
1437 All callers adjusted.
1439 2015-03-07 Tom Tromey <tromey@redhat.com>
1441 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
1443 2015-03-07 Pedro Alves <palves@redhat.com>
1445 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
1446 (amd64_epilogue_frame_cache): Normal exception handling code.
1447 * break-catch-throw.c (check_status_exception_catchpoint)
1448 (re_set_exception_catchpoint): Ditto.
1449 * cli/cli-interp.c (safe_execute_command):
1450 * cli/cli-script.c (script_from_file): Ditto.
1451 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
1453 * compile/compile-object-run.c (compile_object_run): Ditto.
1454 * cp-abi.c (baseclass_offset): Ditto.
1455 * cp-valprint.c (cp_print_value): Ditto.
1456 * exceptions.c (catch_exceptions_with_msg):
1457 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
1458 * frame.c (get_frame_address_in_block_if_available): Ditto.
1459 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
1460 (i386_sigtramp_frame_cache): Ditto.
1461 * infcmd.c (post_create_inferior): Ditto.
1462 * linespec.c (parse_linespec, find_linespec_symbols):
1463 * p-valprint.c (pascal_object_print_value): Ditto.
1464 * parse.c (parse_expression_for_completion): Ditto.
1465 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
1466 * remote.c (remote_get_noisy_reply): Ditto.
1467 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
1468 * solib-svr4.c (solib_svr4_r_map): Ditto.
1470 2015-03-06 Gary Benson <gbenson@redhat.com>
1472 * common/common-utils.h (startswith): New inline function.
1473 All places where this logic was used updated to use the above.
1475 2015-03-05 Pedro Alves <palves@redhat.com>
1478 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
1479 after reading the breakpoint's shadow memory.
1481 2015-03-05 Mark Kettenis <kettenis@gnu.org>
1483 * hppabsd-nat.c: Remove file.
1484 * hppaobsd-nat.c: New file.
1485 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
1487 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
1490 2015-03-04 Pedro Alves <palves@redhat.com>
1492 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
1493 (target_decr_pc_after_break): Delete declaration.
1494 * target.c (default_target_decr_pc_after_break)
1495 (target_decr_pc_after_break): Delete.
1496 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
1497 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
1498 * linux-thread-db.c (check_event): Likewise.
1499 * infrun.c (adjust_pc_after_break): Likewise.
1500 * darwin-nat.c (cancel_breakpoint): Likewise.
1501 * aix-thread.c (aix_thread_wait): Likewise.
1502 * target-delegates.c: Regenerate.
1504 2015-03-04 Pedro Alves <palves@redhat.com>
1506 * linux-nat.c (save_sigtrap): Check for breakpoints before
1507 checking watchpoints.
1508 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
1509 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
1510 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
1511 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
1512 (linux_nat_stopped_by_sw_breakpoint)
1513 (linux_nat_supports_stopped_by_sw_breakpoint)
1514 (linux_nat_stopped_by_hw_breakpoint)
1515 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
1516 (linux_nat_wait_1): Don't re-increment the PC if relying on
1517 SIGTRAP's siginfo->si_code.
1518 (linux_nat_add_target): Install new target methods.
1519 * linux-thread-db.c (check_event): Don't account for breakpoint PC
1520 offset if the target already adjusted the PC.
1521 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
1522 (GDB_ARCH_TRAP_BRKPT): New.
1523 (TRAP_HWBKPT): Define if not already defined.
1525 2015-03-04 Pedro Alves <palves@redhat.com>
1527 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
1528 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
1530 <stop_reason>: New field.
1531 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
1532 (packet_set_cmd_state): New function.
1533 (remote_protocol_features): Register the "swbreak" and "hwbreak"
1535 (remote_query_supported): If not disabled with the corresponding
1536 "set remote foo-packet" command, report support for the swbreak
1537 and hwbreak features.
1538 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
1540 <stop_reason>: New field.
1541 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
1542 (remote_wait_as): Adjust.
1543 (remote_stopped_by_sw_breakpoint)
1544 (remote_supports_stopped_by_sw_breakpoint)
1545 (remote_stopped_by_hw_breakpoint)
1546 (remote_supports_stopped_by_hw_breakpoint): New functions.
1547 (remote_stopped_by_watchpoint): New function.
1548 (init_remote_ops): Install them.
1549 (_initialize_remote): Register new "set/show remote
1550 swbreak-feature-packet" and "set/show remote
1551 swbreak-feature-packet" commands.
1553 2015-03-04 Pedro Alves <palves@redhat.com>
1555 * btrace.h: Include target/waitstatus.h.
1556 (struct btrace_thread_info) <stop_reason>: New field.
1557 * record-btrace.c (record_btrace_step_thread): Use
1558 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
1559 (record_btrace_decr_pc_after_break): Delete.
1560 (record_btrace_stopped_by_sw_breakpoint)
1561 (record_btrace_supports_stopped_by_sw_breakpoint)
1562 (record_btrace_stopped_by_hw_breakpoint)
1563 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
1564 (init_record_btrace_ops): Install them.
1565 * record-full.c (record_full_hw_watchpoint): Delete and replace
1567 (record_full_stop_reason): ... this throughout.
1568 (record_full_exec_insn): Adjust.
1569 (record_full_wait_1): Adjust. No longer re-increment the PC.
1570 (record_full_wait_1): Adjust. Use
1571 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
1572 (record_full_stopped_by_watchpoint): Adjust.
1573 (record_full_stopped_by_sw_breakpoint)
1574 (record_full_supports_stopped_by_sw_breakpoint)
1575 (record_full_supports_stopped_by_sw_breakpoint)
1576 (record_full_stopped_by_hw_breakpoint)
1577 (record_full_supports_stopped_by_hw_breakpoint): New functions.
1578 (init_record_full_ops, init_record_full_core_ops): Install them.
1579 * record.c (record_check_stopped_by_breakpoint): New function.
1580 * record.h: Include target/waitstatus.h.
1581 (record_check_stopped_by_breakpoint): New declaration.
1583 2015-03-04 Pedro Alves <palves@redhat.com>
1585 enum lwp_stop_reason -> enum target_stop_reason
1586 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
1587 (linux_nat_stopped_by_watchpoint, status_callback)
1588 (linux_nat_wait_1): Adjust.
1589 * linux-nat.h (enum lwp_stop_reason): Delete.
1590 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
1591 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
1592 * target/waitstatus.h (enum target_stop_reason): New.
1594 2015-03-04 Pedro Alves <palves@redhat.com>
1596 * breakpoint.c (need_moribund_for_location_type): New function.
1597 (bpstat_stop_status): Don't skipping checking moribund locations
1598 of breakpoint types which the target tell caused a stop.
1599 (program_breakpoint_here_p): New function, factored out from ...
1600 (bp_loc_is_permanent): ... this.
1601 (update_global_location_list): Don't create a moribund location if
1602 the target supports reporting stops of the type of the removed
1604 * breakpoint.h (program_breakpoint_here_p): New declaration.
1605 * infrun.c (adjust_pc_after_break): Return early if the target has
1606 already adjusted the PC. Add comments.
1607 (handle_signal_stop): If nothing explains a signal, and the target
1608 tells us the stop was caused by a software breakpoint, check if
1609 there's a breakpoint instruction in the memory. If so, adjust the
1610 PC before presenting the stop to the user. Otherwise, ignore the
1611 trap. If nothing explains a signal, and the target tells us the
1612 stop was caused by a hardware breakpoint, ignore the trap.
1613 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
1614 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
1615 to_supports_stopped_by_hw_breakpoint>: New fields.
1616 (target_stopped_by_sw_breakpoint)
1617 (target_supports_stopped_by_sw_breakpoint)
1618 (target_stopped_by_hw_breakpoint)
1619 (target_supports_stopped_by_hw_breakpoint): Define.
1620 * target-delegates.c: Regenerate.
1622 2015-03-04 Pedro Alves <palves@redhat.com>
1624 * infrun.c (follow_fork_inferior): Use the whole of the
1625 inferior_ptid and pending_follow.related_pid ptids instead of
1626 building ptids from the process components. Adjust verbose output
1627 to use target_pid_to_str.
1628 * linux-nat.c (linux_child_follow_fork): Use the whole of the
1629 inferior_ptid and pending_follow.related_pid ptids instead of
1630 building ptids from the process components.
1632 2015-03-04 Mark Kettenis <kettenis@gnu.org>
1634 * inf-ptrace.c [PT_GET_PROCESS_STATE]
1635 (inf_ptrace_insert_fork_catchpoint): New function.
1636 (inf_ptrace_remove_fork_catchpoint): New function.
1637 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
1639 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
1641 * s390-linux-tdep.c (s390_register_name): Return empty string
1642 instead of NULL for registers that shouldn't be visible.
1644 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
1646 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
1647 XML file for 64-bit targets.
1649 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
1651 * target.h (find_default_create_inferior): Remove declaration.
1652 (find_default_attach): Likewise.
1654 2015-03-03 Pedro Alves <palves@redhat.com>
1656 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
1657 Use ptid_get_pid to get the overall process id when resuming all
1660 2015-03-03 Pedro Alves <palves@redhat.com>
1662 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
1663 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
1664 * inf-ptrace.c (get_ptrace_pid): New function.
1665 (inf_ptrace_resume): Use it.
1666 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
1669 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
1671 * nat/linux-btrace.c: Include sys/utsname.h.
1672 (linux_determine_kernel_ptr_bits): New.
1673 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
1674 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
1677 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
1679 * btrace.c (ftrace_update_function): Treat return as tailcall for
1680 "_dl_runtime_resolve".
1682 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
1684 * btrace.h (btrace_function) <lbegin, lend>: Remove.
1685 * btrace.c (ftrace_debug): Do not print the line range.
1686 (ftrace_skip_file, ftrace_update_lines): Remove.
1687 (ftrace_new_function): Remove lbegin and lend initialization.
1688 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
1689 * record-btrace.c (btrace_compute_src_line_range): New.
1690 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
1692 2015-03-02 Pedro Alves <palves@redhat.com>
1694 * infrun.c (follow_exec): Delete all threads of the process except
1695 the event thread. Extended comments.
1697 2015-03-02 Joel Brobecker <brobecker@adacore.com>
1699 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
1701 2015-03-02 Joel Brobecker <brobecker@adacore.com>
1703 * utils.h: Remove <stdbool.h> #include.
1704 (producer_is_gcc): Change return type to "int".
1705 * utils.c (producer_is_gcc): Change return type to int.
1706 Return 1 instead of true, and 0 instead of false.
1707 Adjust function documentation accordingly.
1709 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
1711 * s390-linux-nat.c (have_regset_vxrs): New static variable.
1712 (s390_linux_fetch_inferior_registers): Handle vector registers, if
1714 (s390_linux_store_inferior_registers): Likewise.
1715 (s390_get_hwcap): Remove function. Embed its logic...
1716 (s390_read_description): ...here. Yield a target description with
1717 vector registers if applicable.
1718 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
1719 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
1720 "features/s390x-tevx-linux64.c".
1721 (struct gdbarch_tdep) <v0_full_regnum>: New field.
1722 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
1723 for "GNU/Linux-specific registers".
1724 (s390_dwarf_reg_r0l): New enum value.
1725 (s390_dwarf_reg_to_regnum): Support vector registers.
1726 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
1727 of GPR lower halves.
1728 (regnum_is_vxr_full): New function.
1729 (s390_register_name): New function.
1730 (s390_pseudo_register_name): Handle v0-v15, which are composed of
1731 f0-f15 and v0l-v15l.
1732 (s390_pseudo_register_type): Likewise.
1733 (s390_pseudo_register_read): Likewise.
1734 (s390_pseudo_register_write): Likewise.
1735 (s390_value_from_register): Account for the fact that values are
1736 placed left-justified in vector registers.
1737 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
1738 the vector reggroup and omit them from the general reggroup.
1739 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
1740 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
1741 (s390_iterate_over_regset_sections): Add iterations for the two
1743 (s390_core_read_description): Yield a target description with
1744 vector registers if applicable.
1745 (s390_gdbarch_init): Handle target descriptions with vector
1746 registers. Add "register_name" gdbarch method.
1747 (_initialize_s390_tdep): Call new tdesc initialization functions.
1748 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
1749 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
1750 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
1751 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
1752 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
1753 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
1754 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
1755 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
1756 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
1757 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
1758 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
1759 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
1760 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
1761 (S390_NUM_REGS): Adjust value.
1762 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
1763 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
1764 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
1765 * NEWS: Announce S/390 vector register support.
1767 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
1769 * features/s390-tevx-linux64.xml: New file.
1770 * features/s390-vx-linux64.xml: New file.
1771 * features/s390-vx.xml: New file.
1772 * features/s390x-tevx-linux64.xml: New file.
1773 * features/s390x-vx-linux64.xml: New file.
1774 * features/Makefile (WHICH): Add s390-vx-linux64,
1775 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
1776 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
1777 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
1779 * features/s390-tevx-linux64.c: New generated file.
1780 * features/s390-vx-linux64.c: Likewise.
1781 * features/s390x-tevx-linux64.c: Likewise.
1782 * features/s390x-vx-linux64.c: Likewise.
1783 * regformats/s390-tevx-linux64.dat: Likewise.
1784 * regformats/s390-vx-linux64.dat: Likewise.
1785 * regformats/s390x-tevx-linux64.dat: Likewise.
1786 * regformats/s390x-vx-linux64.dat: Likewise.
1788 2015-02-28 Doug Evans <xdje42@gmail.com>
1790 * symtab.h (struct symtab) <next>: Fix comment.
1792 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
1794 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
1797 2015-02-27 Pedro Alves <palves@redhat.com>
1799 * dtrace-probe.c (dtrace_probe_ops): Make extern.
1801 2015-02-27 Pedro Alves <palves@redhat.com>
1803 * common/common-exceptions.h (exception_none): Declare.
1804 * common/common-exceptions.c (exception_none): Moved from
1806 (exceptions_state_mc_init): Use exception_none.
1807 * exceptions.c (exception_none): Move to
1808 common/common-exceptions.c.
1809 * exceptions.h (exception_none): Move to
1810 common/common-exceptions.h.
1812 2015-02-27 Pedro Alves <palves@redhat.com>
1814 * main.c (catch_command_errors, catch_command_errors_const):
1815 Remove 'mask' argument. Adjust.
1816 (captured_main): Adjust callers.
1818 2015-02-27 Pedro Alves <palves@redhat.com>
1820 * python/python-internal.h: Include "extension-priv.h".
1822 2015-02-27 Pedro Alves <palves@redhat.com>
1824 * breakpoint.h (enum print_stop_action): Move further up in the
1827 2015-02-27 Pedro Alves <palves@redhat.com>
1829 * gdbarch.sh: Include regcache.h.
1830 * gdbarch.h: Regenerate.
1832 2015-02-27 Pedro Alves <palves@redhat.com>
1834 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
1835 Remove duplicate const.
1836 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
1839 2015-02-27 Pedro Alves <palves@redhat.com>
1841 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
1842 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
1843 * features/feature_to_c.sh: Tag the generated xml_builtin array
1844 with extern const in C++ mode.
1846 2015-02-27 Tom Tromey <tromey@redhat.com>
1848 * minidebug.c (struct lzma_stream): Rename to ...
1849 (struct gdb_lzma_stream): ... this.
1850 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
1852 2015-02-27 Pedro Alves <palves@redhat.com>
1854 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
1856 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
1857 (mi_cmd_stack_list_variables): Use it.
1859 2015-02-27 Pedro Alves <palves@redhat.com>
1861 * x86-linux-nat.c (u_debugreg_offset): New function.
1862 (x86_linux_dr_get, x86_linux_dr_set): Use it.
1864 2015-02-27 Pedro Alves <palves@redhat.com>
1866 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
1868 Include break-common.h.
1870 2015-02-27 Tom Tromey <tromey@redhat.com>
1871 Pedro Alves <palves@redhat.com>
1873 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
1874 local used to iterate over enums.
1875 * completer.c (signal_completer): Likewise.
1876 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
1877 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
1878 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
1879 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
1880 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
1881 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
1882 * tui-wingeneral.c (tui_refresh_all): Likewise.
1884 2015-02-27 Pedro Alves <palves@redhat.com>
1886 * target.h: Include "infrun.h".
1888 2015-02-27 Pedro Alves <palves@redhat.com>
1890 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
1892 2015-02-27 Pedro Alves <palves@redhat.com>
1894 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
1896 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
1898 2015-02-27 Pedro Alves <palves@redhat.com>
1900 * cli-out.c (_rl_erase_entire_line): Move declaration out of
1901 cli_mld_erase_entire_line, and make it extern "C".
1902 * common/common-defs.h (EXTERN_C): New.
1903 * completer.c (_rl_completion_prefix_display_length)
1904 (_rl_print_completions_horizontally, QSFUNC): Move declarations
1905 out of gdb_display_match_list_1.
1906 (_rl_qsort_string_compare): Move declaration out of
1907 gdb_display_match_list_1, and make it extern "C".
1908 * defs.h (re_comp): Use EXTERN_C.
1909 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
1910 and make it extern "C".
1911 (monstartup): Move declaration out of maintenance_set_profile_cmd,
1912 and make it extern "C".
1913 (main): Move declaration out of maintenance_set_profile_cmd.
1914 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
1917 2015-02-27 Pedro Alves <palves@redhat.com>
1919 * python/python.c (GdbMethods): Rename to ...
1920 (python_GdbMethods): ... this and make extern.
1921 (GdbModuleDef): Rename to ...
1922 (python_GdbModuleDef): ... this and make extern.
1924 2015-02-27 Pedro Alves <palves@redhat.com>
1926 * record-btrace.c (set_record_btrace_cmdlist)
1927 (show_record_btrace_cmdlist): Remove redefinitions.
1929 2015-02-27 Tom Tromey <tromey@redhat.com>
1930 Pedro Alves <palves@redhat.com>
1932 * dwarf2-frame.c (enum cfa_how_kind, struct
1933 dwarf2_frame_state_reg_info): Move out of struct
1935 * dwarf2read.c (struct tu_stats): Move out of struct
1937 (struct file_entry): Move out of struct line_header.
1938 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
1939 typedef_field_list): Move out of struct field_info.
1940 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
1941 Move out of struct dynamic_prop.
1942 (union type_owner, union field_location, struct field, struct
1943 range_bounds, union type_specific): Move out of struct main_type.
1944 (struct fn_fieldlist, struct fn_field, struct typedef_field)
1945 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
1946 (struct call_site_target, union call_site_parameter_u, struct
1947 call_site_parameter): Move out of struct call_site.
1948 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
1950 (enum srcdest_kind): Move out of struct srcdest.
1951 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
1952 * prologue-value.h (enum prologue_value_kind): Move out of struct
1954 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
1956 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
1957 out of struct field_info.
1958 * symfile.h (struct other_sections): Move out of struct
1960 * symtab.c (struct symbol_cache_slot): Move out struct
1962 * target-descriptions.c (enum tdesc_type_kind): Move out of
1963 typedef struct tdesc_type.
1964 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
1965 struct tui_line_or_address.
1966 * value.c (enum internalvar_kind, union internalvar_data): Move
1967 out of struct internalvar.
1968 * xtensa-tdep.h (struct ctype_cache): Move out of struct
1971 2015-02-27 Tom Tromey <tromey@redhat.com>
1972 Pedro Alves <palves@redhat.com>
1974 Rename symbols whose names are reserved C++ keywords throughout.
1976 2015-02-27 Pedro Alves <palves@redhat.com>
1978 * Makefile.in (COMPILER): New, get it from autoconf.
1979 (COMPILE.pre, CC_LD): Use COMPILER.
1980 (CXX): Get from autoconf instead.
1981 (CXX_FOR_TARGET): Default to g++ instead of gcc.
1982 * acinclude.m4: Include build-with-cxx.m4.
1983 * build-with-cxx.m4: New file.
1984 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
1985 Disable -Werror by default if building in C++ mode.
1986 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
1987 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
1988 Run supported-warning-flags tests with the C++ compiler.
1989 Save/restore CXXFLAGS too.
1990 * configure: Regenerate.
1992 2015-02-27 Pedro Alves <palves@redhat.com>
1994 * libiberty.m4: New file.
1995 * acinclude.m4: Include libiberty.m4.
1996 * configure.ac: Call libiberty_INIT.
1997 * config.in, configure: Regenerate.
1999 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
2001 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
2002 31-bit targets, but 64-bit targets as well.
2003 (s390_gnu_triplet_regexp): New function.
2004 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
2005 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
2008 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
2010 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
2011 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
2012 from CONTEXT_DEBUGGER.
2014 2015-02-26 Doug Evans <dje@google.com>
2016 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
2018 (set_type_vptr_fieldno): Ditto.
2019 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
2020 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
2022 2015-02-26 Pedro Alves <palves@redhat.com>
2024 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
2025 * complaints.c (vcomplaint): Pass argument FMT directly to
2026 printf-like functions instead of complaint->fmt.
2027 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
2028 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
2029 * compile/compile-loc2c.c (pushf, unary, binary): Add
2031 (do_compile_dwarf_expr_to_c): Pass string literal as format string
2033 (BINARY): Pass string literal as format string to 'binary'.
2034 * compile/compile-object-load.c (link_callbacks_einfo): Add
2036 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
2038 2015-02-26 Pedro Alves <palves@redhat.com>
2040 * windows-termcap.c: Rename to ...
2041 * stub-termcap.c: ... this. Adjust header line.
2042 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
2044 * configure: Regenerate.
2045 * configure.ac: Refer to stub-termcap.o instead of
2047 * gdb_curses.h: Mention stub-termcap.c instead of
2050 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2052 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
2053 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
2055 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
2057 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
2059 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2061 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
2062 bfd_canonicalize_symtab.
2064 2015-02-25 John Baldwin <jhb@FreeBSD.org>
2066 * amd64fbsd-nat.c: Include sys/user.h.
2067 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
2068 instead of KERN_PS_STRINGS to locate the signal trampoline.
2069 * i386fbsd-nat.c: Include sys/user.h.
2070 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
2071 instead of KERN_PS_STRINGS to locate the signal trampoline.
2072 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
2073 (amd64fbsd_sigtramp_p): New.
2074 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
2075 longer set default values.
2076 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
2077 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
2078 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
2079 (i386fbsd_freebsd4_sigtramp_start)
2080 (i386fbsd_freebsd4_sigtramp_middle)
2081 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
2082 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
2083 (i386fbsd_sigtramp_p): New.
2084 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
2085 longer set default values.
2086 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
2088 2015-02-25 John Baldwin <jhb@freebsd.org>
2090 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
2091 get_frame_register instead of frame_unwind_register_unsigned.
2093 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2096 * compile/compile-c-support.c (c_compute_program): Change // comment.
2097 * compile/compile-object-load.c (setup_sections): Change // comment.
2099 2015-02-26 Joel Brobecker <brobecker@adacore.com>
2102 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
2104 2015-02-23 Pedro Alves <palves@redhat.com>
2106 * remote.c (skip_to_semicolon): New function.
2107 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
2108 special case the stop reasons that look like hex numbers
2109 upfront. Instead handle real register numbers after matching
2110 all the known stop reasons.
2112 2015-02-21 Doug Evans <dje@google.com>
2114 PR c++/17976, symtab/17821
2115 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
2116 is_in_anonymous. All callers updated.
2117 (find_symbol_in_baseclass): Ditto.
2118 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
2119 for symbols in an anonymous namespace.
2120 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
2121 DW_AT_name directly.
2122 (dwarf2_name): Convert missing namespace name to
2123 CP_ANONYMOUS_NAMESPACE_STR.
2125 2015-02-20 Pedro Alves <palves@redhat.com>
2127 * linux-nat.c (linux_handle_extended_wait): Call
2128 thread_db_notice_clone whenever a new clone LWP is detected.
2129 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
2131 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
2132 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
2133 (linux_unstop_all_lwps): Declare.
2134 * linux-thread-db.c (struct thread_get_info_inout): Delete.
2135 (thread_get_info_callback): Delete.
2136 (thread_from_lwp): Use td_thr_get_info and record_thread.
2137 (thread_db_attach_lwp): Delete.
2138 (thread_db_notice_clone): New function.
2139 (try_thread_db_load_1): If /proc is mounted and shows the
2140 process'es task list, walk over all LWPs and call thread_from_lwp
2141 instead of relying on td_ta_thr_iter.
2142 (attach_thread): Don't call check_thread_signals here. Split the
2143 tail part of the function (which adds the thread to the core GDB
2145 (record_thread): ... this function. Call check_thread_signals
2147 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
2148 call thread_from_lwp.
2149 (thread_db_update_thread_list): Rename to ...
2150 (thread_db_update_thread_list_org): ... this.
2151 (thread_db_update_thread_list): New function.
2152 (thread_db_find_thread_from_tid): Delete.
2153 (thread_db_get_ada_task_ptid): Simplify.
2154 * nat/linux-procfs.c: Include <sys/stat.h>.
2155 (linux_proc_task_list_dir_exists): New function.
2156 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
2158 2015-02-20 Pedro Alves <palves@redhat.com>
2160 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
2161 main LWP. Handle the case of waitpid returning 0 if we're already
2162 attached to the LWP. Don't set the LWP's last_resume_kind to
2163 resume_stop if we already knew about the LWP.
2164 (linux_nat_filter_event): Add debug logs.
2166 2015-02-20 Pedro Alves <palves@redhat.com>
2168 * target.h (forward_target_decr_pc_after_break): Delete
2171 2015-02-20 Pedro Alves <palves@redhat.com>
2174 * linux-thread-db.c (thread_get_info_callback): Return early if
2175 the thread's lwp id is -1.
2177 2015-02-20 Joel Brobecker <brobecker@adacore.com>
2181 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
2183 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
2184 (dtrace_get_probes) Change type of variable 'dof'.
2186 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
2188 PR breakpoints/16812
2189 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
2190 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
2191 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
2193 2015-02-19 David Taylor <dtaylor@emc.com>
2195 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
2197 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
2199 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
2201 (tui_putc): Don't call tui_handle_resize_during_io.
2202 (tui_getc): Likewise.
2203 (tui_mld_getc): Likewise.
2204 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
2205 (tui_sigwinch_token): New static variable.
2206 (tui_initialize_win): Adjust documentation. Set
2208 (tui_async_resize_screen): New asynchronous callback.
2209 (tui_sigwinch_handler): Adjust documentation. Asynchronously
2210 invoke tui_async_resize_screen.
2212 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
2214 * configure: Regenerated.
2215 * configure.ac: Use GDB_AC_TRANSFORM.
2216 * Makefile.in (aclocal_m4_deps): Added transform.m4.
2217 * acinclude.m4: sinclude transform.m4.
2218 * transform.m4: New file.
2219 (GDB_AC_TRANSFORM): New macro.
2221 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2223 * NEWS: Announce the support for DTrace SDT probes.
2225 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2227 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
2228 (amd64_dtrace_parse_probe_argument): New function.
2229 (amd64_dtrace_probe_is_enabled): Likewise.
2230 (amd64_dtrace_enable_probe): Likewise.
2231 (amd64_dtrace_disable_probe): Likewise.
2232 (amd64_linux_init_abi): Register the
2233 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
2234 `gdbarch_dtrace_disable_probe' and
2235 `gdbarch_dtrace_probe_is_enabled' hooks.
2236 (amd64_dtrace_disabled_probe_sequence_1): New constant.
2237 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
2238 (amd64_dtrace_enable_probe_sequence): Likewise.
2239 (amd64_dtrace_disable_probe_sequence): Likewise.
2241 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2243 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
2244 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
2245 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
2247 * Makefile.in (SFILES): dtrace-probe.c added.
2248 * configure: Regenerate.
2249 * dtrace-probe.c: New file.
2250 (SHT_SUNW_dof): New constant.
2251 (dtrace_probe_type): New enum.
2252 (dtrace_probe_arg): New struct.
2253 (dtrace_probe_arg_s): New typedef.
2254 (struct dtrace_probe_enabler): New struct.
2255 (dtrace_probe_enabler_s): New typedef.
2256 (dtrace_probe): New struct.
2257 (dtrace_probe_is_linespec): New function.
2258 (dtrace_dof_sect_type): New enum.
2259 (dtrace_dof_dofh_ident): Likewise.
2260 (dtrace_dof_encoding): Likewise.
2261 (DTRACE_DOF_ENCODE_LSB): Likewise.
2262 (DTRACE_DOF_ENCODE_MSB): Likewise.
2263 (dtrace_dof_hdr): New struct.
2264 (dtrace_dof_sect): Likewise.
2265 (dtrace_dof_provider): Likewise.
2266 (dtrace_dof_probe): Likewise.
2267 (DOF_UINT): New macro.
2268 (DTRACE_DOF_PTR): Likewise.
2269 (DTRACE_DOF_SECT): Likewise.
2270 (dtrace_process_dof_probe): New function.
2271 (dtrace_process_dof): Likewise.
2272 (dtrace_build_arg_exprs): Likewise.
2273 (dtrace_get_arg): Likewise.
2274 (dtrace_get_probes): Likewise.
2275 (dtrace_get_probe_argument_count): Likewise.
2276 (dtrace_can_evaluate_probe_arguments): Likewise.
2277 (dtrace_evaluate_probe_argument): Likewise.
2278 (dtrace_compile_to_ax): Likewise.
2279 (dtrace_probe_destroy): Likewise.
2280 (dtrace_gen_info_probes_table_header): Likewise.
2281 (dtrace_gen_info_probes_table_values): Likewise.
2282 (dtrace_probe_is_enabled): Likewise.
2283 (dtrace_probe_ops): New variable.
2284 (info_probes_dtrace_command): New function.
2285 (_initialize_dtrace_probe): Likewise.
2286 (dtrace_type_name): Likewise.
2288 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2290 * gdbarch.sh (dtrace_parse_probe_argument): New.
2291 (dtrace_probe_is_enabled): Likewise.
2292 (dtrace_enable_probe): Likewise.
2293 (dtrace_disable_probe): Likewise.
2294 * gdbarch.c: Regenerate.
2295 * gdbarch.h: Regenerate.
2297 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2299 * stap-probe.c (stap_probe_ops): Add NULLs in the static
2300 stap_probe_ops for `enable_probe' and `disable_probe'.
2301 * probe.c (enable_probes_command): New function.
2302 (disable_probes_command): Likewise.
2303 (_initialize_probe): Define the cli commands `enable probe' and
2305 (parse_probe_linespec): New function.
2306 (info_probes_for_ops): Use parse_probe_linespec.
2307 * probe.h (probe_ops): New hooks `enable_probe' and
2310 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2312 * probe.c (compute_probe_arg): Moved from stap-probe.c
2313 (compile_probe_arg): Likewise.
2314 (probe_funcs): Likewise.
2315 * stap-probe.c (compute_probe_arg): Moved to probe.c.
2316 (compile_probe_arg): Likewise.
2317 (probe_funcs): Likewise.
2319 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
2321 * probe.c (print_ui_out_not_applicables): New function.
2322 (exists_probe_with_pops): Likewise.
2323 (info_probes_for_ops): Do not include column headers for probe
2324 types for which no probe has been actually found on any object.
2325 Also invoke `print_ui_out_not_applicables' in order to match the
2326 column rows with the header when probes of several types are
2328 Print the "Type" column.
2329 * probe.h (probe_ops): Added a new probe operation `type_name'.
2330 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
2331 (stap_type_name): New function.
2333 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
2335 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
2336 (key_is_command_char): Delete.
2338 2015-02-17 Pedro Alves <palves@redhat.com>
2340 * tui/tui.c (tui_enable): Resize windows before anything
2341 might show a window.
2343 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
2346 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
2347 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
2349 * aarch64-tdep.h (tdesc_aarch64): Declare.
2351 2015-02-12 Mark Wielaard <mjw@redhat.com>
2353 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
2355 2015-02-13 Doug Evans <dje@google.com>
2357 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
2358 anonymous_namespace to is_in_anonymous for consistency with the rest
2360 (cp_lookup_bare_symbol): Fix typo in comment.
2361 (cp_search_static_and_baseclasses): Ditto.
2362 (search_symbol_list): Use vertical space in comment better.
2363 (reset_directive_searched): Ditto. Fix typo.
2364 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
2366 2015-02-13 Yao Qi <yao.qi@arm.com>
2368 * MAINTAINERS: Update my email address.
2370 2015-02-12 Doug Evans <dje@google.com>
2372 * symtab.c (completion_list_add_name): Fix memory leak.
2374 2015-02-12 Doug Evans <dje@google.com>
2376 * completer.c (complete_line): Remove incorrect comment.
2378 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2380 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
2381 (py_print_frame): Use RETURN_MASK_ERROR.
2383 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2385 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
2386 function comment. Wrap all function that can throw in cleanups.
2387 (gdbpy_apply_frame_filter): Wrap all function that can throw in
2390 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2392 * python/py-framefilter.c (py_print_frame): Substitute goto error.
2393 Remove the error label.
2395 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2397 * python/py-framefilter.c (py_print_frame): Put conditional code paths
2398 with goto first, indent the former else codepath left. Put variable
2399 'elided' to a new inner block.
2401 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2403 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
2405 2015-02-11 Pedro Alves <palves@redhat.com>
2407 * xcoffread.c (within_function): Delete.
2409 2015-02-11 Tom Tromey <tromey@redhat.com>
2410 Pedro Alves <palves@redhat.com>
2412 * breakpoint.c (base_breakpoint_ops): Delete.
2413 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
2414 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
2415 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
2416 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
2417 * python/py-arch.c (arch_object_type): Make extern.
2418 * python/py-block.c (block_syms_iterator_object_type): Make extern.
2419 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
2420 * python/py-cmd.c (cmdpy_object_type): Make extern.
2421 * python/py-continueevent.c (continue_event_object_type)
2422 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
2423 parameter. Update all callers.
2424 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
2425 * python/py-exitedevent.c (exited_event_object_type): Make extern.
2426 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
2427 * python/py-function.c (fnpy_object_type): Make extern.
2428 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
2429 * python/py-infevents.c (call_pre_event_object_type)
2430 (inferior_call_post_event_object_type).
2431 (memory_changed_event_object_type): Make extern.
2432 * python/py-infthread.c (thread_object_type): Make extern.
2433 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
2434 * python/py-linetable.c (linetable_entry_object_type)
2435 (linetable_object_type, ltpy_iterator_object_type): Make extern.
2436 * python/py-newobjfileevent.c (new_objfile_event_object_type)
2437 (clear_objfiles_event_object_type): Make extern.
2438 * python/py-objfile.c (objfile_object_type): Make extern.
2439 * python/py-param.c (parmpy_object_type): Make extern.
2440 * python/py-progspace.c (pspace_object_type): Make extern.
2441 * python/py-signalevent.c (signal_event_object_type): Make extern.
2442 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
2443 * python/py-type.c (type_object_type, field_object_type)
2444 (type_iterator_object_type): Make extern.
2445 * python/python.c (python_extension_script_ops)
2446 (python_extension_ops): Make extern.
2447 * stap-probe.c (stap_probe_ops): Make extern.
2449 2015-02-11 Pedro Alves <pedro@codesourcery.com>
2451 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
2452 because the event thread is not the current thread.
2454 2015-02-11 Doug Evans <xdje42@gmail.com>
2456 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
2457 been initialized yet, return NULL.
2459 2015-02-11 Doug Evans <dje@google.com>
2461 * symfile.h (new_symfile_objfile): Delete.
2462 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
2463 All callers updated.
2465 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
2467 * tui/tui-io.c (tui_handle_resize_during_io): Call
2468 tui_update_gdb_sizes() after resizing the screen.
2469 * tui/tui.c (tui_enable): Resize the terminal before
2470 calling tui_update_gdb_sizes().
2472 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
2474 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
2475 line before printing a newline.
2477 2015-02-11 Mark Wielaard <mjw@redhat.com>
2479 * utils.c (producer_is_gcc): Return true or false.
2481 2015-02-10 Mark Wielaard <mjw@redhat.com>
2483 * utils.h (producer_is_gcc): Change return type to bool. Add major
2485 * utils.c (producer_is_gcc): Likewise.
2486 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
2487 * dwarf2read.c (check_producer): Likewise.
2489 2015-02-10 Pedro Alves <palves@redhat.com>
2491 * infrun.c (displaced_step_fixup): Switch to the event thread
2492 before calling gdbarch_displaced_step_fixup.
2494 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
2496 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
2498 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
2500 * ada-varobj.c (ada_name_of_child): Constify parent.
2501 (ada_path_expr_of_child): Same.
2502 (ada_value_of_child): Same.
2503 (ada_type_of_child): Same.
2504 * c-varobj.c (c_is_path_expr_parent): Same.
2505 (c_describe_child): Same.
2506 (c_name_of_child): Same.
2507 (c_value_of_child): Same.
2508 (c_type_of_child): Same.
2509 (cplus_number_of_children): Same.
2510 (cplus_describe_child): Constify var.
2511 (cplus_name_of_child): Constify parent.
2512 (cplus_value_of_child): Same.
2513 (cplus_type_of_child): Same.
2514 * jv-varobj.c (java_name_of_child): Same.
2515 (java_value_of_child): Same.
2516 (java_type_of_child): Same.
2517 * varobj.c (value_of_child): Same.
2518 (varobj_default_is_path_expr_parent): Constify var, parent and return
2520 (varobj_get_path_expr): Constify var, modify path_expr through
2522 (install_new_value): Constify parent.
2523 (value_of_child): Constify parent.
2524 * varobj.h (struct varobj): Constify parent.
2525 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
2527 (varobj_get_path_expr): Constify var.
2528 (varobj_get_path_expr_parent): Constify var and return value.
2530 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
2532 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
2533 (arm_prologue_this_id): Move PC and SP limit checks to
2534 arm_prologue_unwind_stop_reason.
2535 (arm_prologue_unwind) <stop_reason> : Set to
2536 arm_prologue_unwind_stop_reason.
2538 2015-02-09 Mark Wielaard <mjw@redhat.com>
2540 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
2541 DW_LANG_Fortran08 as language_fortran.
2543 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
2546 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
2547 of pointer against char.
2549 2015-02-09 Mark Wielaard <mjw@redhat.com>
2551 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
2552 (c_type_print_modifier): Likewise.
2553 * dwarf2read.c (read_tag_atomic_type): New function.
2554 (read_type_die_1): Handle DW_TAG_atomic_type.
2555 * gdbtypes.c (make_atomic_type): New function.
2556 (recursive_dump_type): Handle TYPE_ATOMIC.
2557 * gdbtypes.h (enum type_flag_values): Renumber.
2558 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
2559 (TYPE_ATOMIC): New macro.
2560 (make_atomic_type): Declare.
2562 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2564 * btrace.c (ftrace_find_call): Skip gaps.
2565 (ftrace_new_function): Initialize level.
2566 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
2567 (ftrace_new_switch): Update
2569 (ftrace_new_gap): New.
2570 (ftrace_update_function): Create new function after gap.
2571 (btrace_compute_ftrace_bts): Create gap on error.
2572 (btrace_stitch_bts): Update parameters. Clear trace if it
2574 (btrace_stitch_trace): Update parameters. Update callers.
2575 (btrace_clear): Reset the number of gaps.
2576 (btrace_insn_get): Return NULL if the iterator points to a gap.
2577 (btrace_insn_number): Return zero if the iterator points to a gap.
2578 (btrace_insn_end): Allow gaps at the end.
2579 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
2580 (btrace_find_insn_by_number): Assert that the found iterator does
2582 (btrace_call_next, btrace_call_prev): Assert that the last function
2584 * btrace.h (btrace_bts_error): New.
2585 (btrace_function): Update comment.
2586 (btrace_function) <insn, insn_offset, number>: Update comment.
2587 (btrace_function) <errcode>: New.
2588 (btrace_thread_info) <ngaps>: New.
2589 (btrace_thread_info) <replay>: Update comment.
2590 (btrace_insn_get): Update comment.
2591 * record-btrace.c (btrace_ui_out_decode_error): New.
2592 (record_btrace_info): Print number of gaps.
2593 (btrace_insn_history, btrace_call_history): Call
2594 btrace_ui_out_decode_error for gaps.
2595 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
2597 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2599 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
2600 * nat/linux-btrace.c: (btrace_this_cpu): New.
2601 (cpu_supports_bts): Call btrace_this_cpu.
2602 (intel_supports_bts): Add cpu parameter.
2604 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2606 * btrace.h (btrace_insn_class): New.
2607 (btrace_insn) <size, iclass>: New.
2608 * btrace.c (ftrace_find_call): Update parameters. Update users.
2609 Use instruction classification.
2610 (ftrace_new_return): Update parameters. Update users.
2611 (ftrace_update_function): Update parameters. Update users. Use
2612 instruction classification.
2613 (ftrace_update_insns): Update parameters. Update users.
2614 (ftrace_classify_insn): New.
2615 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
2616 TRY_CATCH around call to gdb_insn_length.
2618 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2620 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
2621 Update parameters. Update users.
2623 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2625 * btrace.c (parse_xml_btrace_conf_bts): Add size.
2626 (btrace_conf_bts_attributes): New.
2627 (btrace_conf_children): Add attributes.
2628 * common/btrace-common.h (btrace_config_bts): New.
2629 (btrace_config)<bts>: New.
2630 (btrace_config): Update comment.
2631 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
2633 * features/btrace-conf.dtd: Increment version. Add size
2634 attribute to bts element.
2635 * record-btrace.c (set_record_btrace_bts_cmdlist,
2636 show_record_btrace_bts_cmdlist): New.
2637 (record_btrace_adjust_size, record_btrace_print_bts_conf,
2638 record_btrace_print_conf, cmd_set_record_btrace_bts,
2639 cmd_show_record_btrace_bts): New.
2640 (record_btrace_info): Call record_btrace_print_conf.
2641 (_initialize_record_btrace): Add commands.
2642 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
2643 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
2644 (btrace_sync_conf): Synchronize bts size.
2645 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
2646 * NEWS: Announce new commands and new packets.
2648 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2650 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
2651 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
2652 (x86_linux_btrace_conf): New.
2653 (x86_linux_create_target): Initialize to_btrace_conf.
2654 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
2655 Check format. Split into this and ...
2656 (linux_enable_bts): ... this.
2657 (linux_btrace_conf): New.
2658 (perf_event_skip_record): Renamed into ...
2659 (perf_event_skip_bts_record): ... this. Updated users.
2660 (linux_disable_btrace): Split into this and ...
2661 (linux_disable_bts): ... this.
2662 (linux_read_btrace): Check format.
2663 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
2664 (linux_btrace_conf): New.
2665 (btrace_target_info)<ptid>: Moved.
2666 (btrace_target_info)<conf>: New.
2667 (btrace_target_info): Split into this and ...
2668 (btrace_tinfo_bts): ... this. Updated users.
2669 * btrace.c (btrace_enable): Update parameters.
2670 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
2671 (btrace_conf_children, btrace_conf_attributes)
2672 (btrace_conf_elements): New.
2673 * btrace.h (btrace_enable): Update parameters.
2674 (btrace_conf, parse_xml_btrace_conf): New.
2675 * common/btrace-common.h (btrace_config): New.
2676 * feature/btrace-conf.dtd: New.
2677 * record-btrace.c (record_btrace_conf): New.
2678 (record_btrace_cmdlist): New.
2679 (record_btrace_enable_warn, record_btrace_open): Pass
2680 &record_btrace_conf.
2681 (record_btrace_info): Print recording format.
2682 (cmd_record_btrace_bts_start): New.
2683 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
2684 (_initialize_record_btrace): Add "record btrace bts" subcommand.
2685 Add "record bts" alias command.
2686 * remote.c (remote_state)<btrace_config>: New.
2687 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
2688 (remote_protocol_features): Add qXfer:btrace-conf:read.
2689 (remote_open_1): Call remote_btrace_reset.
2690 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
2691 (btrace_target_info)<conf>: New.
2692 (btrace_sync_conf, btrace_read_config): New.
2693 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
2695 (remote_btrace_conf): New.
2696 (init_remote_ops): Initialize to_btrace_conf.
2697 (_initialize_remote): Add qXfer:btrace-conf packet.
2698 * target.c (target_enable_btrace): Update parameters.
2699 (target_btrace_conf): New.
2700 * target.h (target_enable_btrace): Update parameters.
2701 (target_btrace_conf): New.
2702 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
2703 (target_ops)<to_enable_btrace>: Update parameters and comment.
2704 (target_ops)<to_btrace_conf>: New.
2705 * target-delegates: Regenerate.
2706 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
2707 (target_debug_print_const_struct_btrace_target_info_p): New.
2708 * NEWS: Announce new command and new packet.
2710 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2712 * nat/linux-btrace.h (perf_event_buffer): New.
2713 (btrace_target_info) <buffer, size, data_head>: Replace with ...
2715 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
2716 (perf_event_buffer_size, perf_event_buffer_begin)
2717 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
2719 (perf_event_new_data): New.
2721 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2723 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
2724 * record-btrace.c (record_btrace_open): Remove call to
2725 target_supports_btrace.
2726 * remote.c (remote_supports_btrace): Update parameters.
2727 * target.c (target_supports_btrace): Update parameters.
2728 * target.h (to_supports_btrace, target_supports_btrace): Update
2730 * target-delegates.c: Regenerate.
2731 * target-debug.h (target_debug_print_enum_btrace_format): New.
2732 * nat/linux-btrace.c
2733 (kernel_supports_btrace): Rename into ...
2734 (kernel_supports_bts): ... this. Update users. Update warning text.
2735 (intel_supports_btrace): Rename into ...
2736 (intel_supports_bts): ... this. Update users.
2737 (cpu_supports_btrace): Rename into ...
2738 (cpu_supports_bts): ... this. Update users.
2739 (linux_supports_btrace): Update parameters. Split into this and ...
2740 (linux_supports_bts): ... this.
2741 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
2743 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2745 * Makefile.in (SFILES): Add common/btrace-common.c.
2746 (COMMON_OBS): Add common/btrace-common.o.
2747 (btrace-common.o): Add build rules.
2748 * btrace.c (parse_xml_btrace): Update parameters.
2749 (parse_xml_btrace_block): Set format field.
2750 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
2751 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
2752 (btrace_compute_ftrace): Split into this and...
2753 (btrace_compute_ftrace_bts): ...this.
2754 (btrace_stitch_trace): Split into this and...
2755 (btrace_stitch_bts): ...this.
2756 * btrace.h (parse_xml_btrace): Update parameters.
2757 (make_cleanup_btrace_data): New.
2758 * common/btrace-common.c: New.
2759 * common/btrace-common.h: Include common-defs.h.
2760 (btrace_block_s): Update comment.
2761 (btrace_format): New.
2762 (btrace_format_string): New.
2763 (btrace_data_bts): New.
2765 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
2766 * remote.c (remote_read_btrace): Update parameters.
2767 * target.c (target_read_btrace): Update parameters.
2768 * target.h (target_read_btrace): Update parameters.
2769 (target_ops)<to_read_btrace>: Update parameters.
2770 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
2771 * target-delegates.c: Regenerate.
2772 * target-debug (target_debug_print_struct_btrace_data_p): New.
2773 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
2774 (linux_read_bts): ...this.
2775 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
2777 2015-02-06 Doug Evans <dje@google.com>
2779 * remote-m32r-sdi.c: Include symfile.h.
2781 2015-02-06 Doug Evans <dje@google.com>
2783 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
2784 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
2787 2015-02-06 Pedro Alves <palves@redhat.com>
2789 * linux-thread-db.c (find_new_threads_callback): Add debug output.
2791 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
2794 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
2795 (enable_count_command): Check args for NULL value.
2797 2015-02-05 Doug Evans <xdje42@gmail.com>
2799 * guile/scm-frame.c: Fix spelling errors in a comment.
2801 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2803 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
2804 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
2807 2015-02-04 Pedro Alves <palves@redhat.com>
2809 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
2810 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
2812 (resume_stopped_resumed_lwps): Don't check whether the thread is
2813 marked as executing.
2814 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
2816 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
2818 * regset.h (struct regset): Add flags field.
2819 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
2820 * corelow.c (get_core_register_section): Add warning if the size
2821 exceeds the requested size and the regset does not have the
2822 REGSET_VARIABLE_SIZE flag set.
2823 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
2825 * armbsd-tdep.c (armbsd_gregset): Likewise.
2826 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
2827 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
2828 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
2829 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
2831 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
2833 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
2834 For ".reg-xstate", explicitly specify the requested section size
2835 via X86_XSTATE_SIZE instead of just 0 on input and
2836 X86_XSTATE_MAX_SIZE on output.
2837 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
2840 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
2843 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
2844 function type, particularly its SIZE parameter.
2845 * gdbarch.h: Regenerate.
2846 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
2847 actual against required size using ">=" instead of "==".
2848 (amd64_collect_fpregset): Likewise.
2849 * i386-tdep.c (i386_supply_gregset): Likewise.
2850 (i386_collect_gregset): Likewise.
2851 (i386_supply_fpregset): Likewise.
2852 (i386_collect_fpregset): Likewise.
2853 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
2854 (mips_fill_gregset_wrapper): Likewise.
2855 (mips_supply_fpregset_wrapper): Likewise.
2856 (mips_fill_fpregset_wrapper): Likewise.
2857 (mips64_supply_gregset_wrapper): Likewise.
2858 (mips64_fill_gregset_wrapper): Likewise.
2859 (mips64_supply_fpregset_wrapper): Likewise.
2860 (mips64_fill_fpregset_wrapper): Likewise.
2861 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
2862 (am33_supply_fpregset_method): Likewise.
2863 (am33_collect_gregset_method): Likewise.
2864 (am33_collect_fpregset_method): Likewise.
2866 2015-02-04 Doug Evans <dje@google.com>
2867 Pedro Alves <palves@redhat.com>
2868 Eli Zaretskii <eliz@gnu.org>
2871 * tui/tui-command.c (tui_refresh_cmd_win): New function.
2872 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
2873 * tui/tui-file.c: #include tui/tui-command.h.
2874 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
2875 (tui_file_flush): Refresh command window if stream is gdb_stdout.
2876 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
2878 2015-02-04 Pedro Alves <palves@redhat.com>
2881 * event-loop.c (gdb_do_one_event): Add default switch case.
2883 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2885 Filter out inferior gcc option -fpreprocessed.
2886 * compile/compile.c (filter_args): New function.
2889 2015-02-03 Pedro Alves <palves@redhat.com>
2891 * event-loop.c: Don't declare nor define a queue type for
2893 (event_queue): Delete.
2894 (create_event, create_file_event, gdb_event_xfree)
2895 (initialize_event_loop, process_event): Delete.
2896 (gdb_do_one_event): Return as soon as one event is handled.
2897 (handle_file_event): Change prototype. Used the passed in
2898 file_handler pointer and ready_mask instead of looping over all
2900 (gdb_wait_for_event): Update the poll/select timeouts before
2901 blocking. Run event handlers directly instead of queueing events.
2902 Return as soon as one event is handled.
2903 (struct async_event_handler_data): Delete.
2904 (invoke_async_event_handler): Delete.
2905 (check_async_event_handlers): Change return type to int. Run
2906 event handlers directly instead of queueing events. Return as
2907 soon as one event is handled.
2908 (handle_timer_event): Delete.
2909 (update_wait_timeout): New function, factored out from
2911 (poll_timers): Reimplement.
2912 * event-loop.h (initialize_event_loop): Delete declaration.
2913 * top.c (gdb_init): Don't call initialize_event_loop.
2915 2015-02-03 Pedro Alves <palves@redhat.com>
2917 * event-loop.c (clear_async_event_handler): New function.
2918 * event-loop.h (clear_async_event_handler): New declaration.
2919 * record-btrace.c (record_btrace_async): New function.
2920 (init_record_btrace_ops): Install record_btrace_async.
2921 * record-full.c (record_full_async): New function.
2922 (record_full_resume): Don't mark the async event source here.
2923 (init_record_full_ops): Install record_full_async.
2924 (record_full_core_resume): Don't mark the async event source here.
2925 (init_record_full_core_ops): Install record_full_async.
2926 * remote.c (remote_async): Mark and clear the async stop reply
2927 queue event-loop token as appropriate.
2929 2015-02-03 Pedro Alves <palves@redhat.com>
2931 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
2932 target_is_async_p instead of target_can_async.
2933 (linux_nat_wait): Use target_is_async_p instead of
2934 target_can_async. Don't enable async here.
2935 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
2936 target_is_async_p instead of target_can_async.
2938 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
2940 * varobj.h (lang_varobj_ops): Mention which return values need
2943 2015-02-02 Joel Brobecker <brobecker@adacore.com>
2945 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
2947 2015-02-02 Joel Brobecker <brobecker@adacore.com>
2950 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
2951 results found in the cache.
2953 2015-02-02 Joel Brobecker <brobecker@adacore.com>
2956 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
2957 when allocating a new one.
2959 2015-02-01 Tom Tromey <tom@tromey.com>
2961 * MAINTAINERS: Remove myself.
2963 2015-01-31 Doug Evans <xdje42@gmail.com>
2965 * dwarf2read.c (process_structure_scope): Update setting of
2966 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
2967 * gdbtypes.c (internal_type_vptr_fieldno): New function.
2968 (set_type_vptr_fieldno): New function.
2969 (internal_type_vptr_basetype): New function.
2970 (set_type_vptr_basetype): New function.
2971 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
2973 (allocate_cplus_struct_type): Initialize vptr_fieldno.
2974 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
2975 (print_cplus_stuff): ... moved here.
2976 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
2977 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
2979 (struct cplus_struct_type): ... here. All uses updated.
2980 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
2981 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
2982 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
2983 * stabsread.c (read_tilde_fields): Update setting of
2984 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
2986 2015-01-31 Doug Evans <xdje42@gmail.com>
2988 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
2990 (cp_print_class_member): Rename local domain to self_type.
2991 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
2992 domain_type to self_type.
2993 (set_die_type) <need_gnat_info>: Handle
2994 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
2995 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
2996 TYPE_SPECIFIC_SELF_TYPE.
2997 * gdbtypes.c (internal_type_self_type): New function.
2998 (set_type_self_type): New function.
2999 (smash_to_memberptr_type): Rename parameter domain to self_type.
3000 Update setting of TYPE_SELF_TYPE.
3001 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
3002 (smash_to_method_type): Rename parameter domain to self_type.
3003 Update setting of TYPE_SELF_TYPE.
3004 (check_stub_method): Call smash_to_method_type.
3005 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
3006 (copy_type_recursive): Ditto.
3007 * gdbtypes.h (enum type_specific_kind): New value
3008 TYPE_SPECIFIC_SELF_TYPE.
3009 (struct main_type) <type_specific>: New member self_type.
3010 (struct cplus_struct_type) <fn_field.type>: Update comment.
3011 (TYPE_SELF_TYPE): Rewrite.
3012 (internal_type_self_type, set_type_self_type): Declare.
3013 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
3015 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
3016 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
3018 * stabsread.c (read_member_functions): Mark methods with
3019 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
3022 2015-01-31 Doug Evans <xdje42@gmail.com>
3024 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
3027 2015-01-31 Doug Evans <xdje42@gmail.com>
3029 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
3030 or unions. Return zero if union.
3031 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
3032 (gnuv3_rtti_type): Pass already-check_typedef'd value to
3034 (compute_vtable_size): Assert only passed structs.
3035 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
3037 2015-01-31 Doug Evans <xdje42@gmail.com>
3039 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
3042 2015-01-31 Gary Benson <gbenson@redhat.com>
3043 Doug Evans <dje@google.com>
3048 * cli/cli-cmds.c (complete_command): Notify user if max-completions
3050 * common/common-exceptions.h (enum errors)
3051 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
3052 * completer.h (get_max_completions_reached_message): New declaration.
3053 (max_completions): Likewise.
3054 (completion_tracker_t): New typedef.
3055 (new_completion_tracker): New declaration.
3056 (make_cleanup_free_completion_tracker): Likewise.
3057 (maybe_add_completion_enum): New enum.
3058 (maybe_add_completion): New declaration.
3059 (throw_max_completions_reached_error): Likewise.
3060 * completer.c (max_completions): New global variable.
3061 (new_completion_tracker): New function.
3062 (free_completion_tracker): Likewise.
3063 (make_cleanup_free_completion_tracker): Likewise.
3064 (maybe_add_completions): Likewise.
3065 (throw_max_completions_reached_error): Likewise.
3066 (complete_line): Remove duplicates and limit result to max_completions
3068 (get_max_completions_reached_message): New function.
3069 (gdb_display_match_list): Handle max_completions.
3070 (_initialize_completer): New declaration and function.
3071 * symtab.c: Include completer.h.
3072 (completion_tracker): New static variable.
3073 (completion_list_add_name): Call maybe_add_completion.
3074 (default_make_symbol_completion_list_break_on_1): Renamed from
3075 default_make_symbol_completion_list_break_on. Maintain
3076 completion_tracker across calls to completion_list_add_name.
3077 (default_make_symbol_completion_list_break_on): New function.
3078 * top.c (init_main): Set rl_completion_display_matches_hook.
3079 * tui/tui-io.c: Include completer.h.
3080 (tui_old_rl_display_matches_hook): New static global.
3081 (tui_rl_display_match_list): Notify user if max-completions reached.
3082 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
3083 * NEWS (New Options): Mention set/show max-completions.
3085 2015-01-31 Gary Benson <gbenson@redhat.com>
3087 * symtab.c (struct add_name_data) <code>: New field.
3089 (add_symtab_completions): New function.
3090 (symtab_expansion_callback): Likewise.
3091 (default_make_symbol_completion_list_break_on): Set datum.code.
3092 Move minimal symbol scan before calling expand_symtabs_matching.
3093 Scan known primary symtabs for externs and statics before calling
3094 expand_symtabs_matching. Pass symtab_expansion_callback as
3095 expansion_notify argument to expand_symtabs_matching. Do not scan
3096 primary symtabs for externs and statics after calling
3097 expand_symtabs_matching.
3099 2015-01-31 Gary Benson <gbenson@redhat.com>
3101 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
3102 (struct quick_symbol_functions) <expand_symtabs_matching>:
3103 New argument expansion_notify. All uses updated.
3104 (expand_symtabs_matching): New argument expansion_notify.
3106 * symfile-debug.c (debug_qf_expand_symtabs_matching):
3107 Also print expansion notify.
3108 * symtab.c (expand_symtabs_matching_via_partial): Call
3109 expansion_notify whenever a partial symbol table is expanded.
3110 * dwarf2read.c (dw2_expand_symtabs_matching): Call
3111 expansion_notify whenever a symbol table is instantiated.
3113 2015-01-31 Doug Evans <xdje42@gmail.com>
3115 * cli-out.c: #include completer.h, readline/readline.h.
3116 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
3117 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
3118 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
3119 * cli-out.h (cli_display_match_list): Declare.
3120 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
3121 (ELLIPSIS_LEN): Ditto.
3122 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
3123 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
3124 (gdb_fnprint, gdb_print_filename): Ditto.
3125 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
3126 (gdb_display_match_list): Ditto.
3127 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
3128 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
3129 (mld_beep_ftype, mld_read_key_ftype): Ditto.
3130 (match_list_displayer): New struct.
3131 (gdb_display_match_list): Declare.
3132 * top.c (init_main): Set rl_completion_display_matches_hook.
3133 * tui/tui-io.c: #include completer.h.
3134 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
3135 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
3136 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
3137 (tui_mld_getc, tui_mld_read_key): Ditto.
3138 (tui_rl_display_match_list): Rewrite.
3139 (tui_handle_resize_during_io): New arg for_completion. All callers
3142 2015-01-31 Doug Evans <xdje42@gmail.com>
3144 Add symbol lookup cache.
3145 * NEWS: Document new options and commands.
3146 * symtab.c (symbol_cache_key): New static global.
3147 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
3148 (SYMBOL_LOOKUP_FAILED): New macro.
3149 (symbol_cache_slot_state): New enum.
3150 (block_symbol_cache): New struct.
3151 (symbol_cache): New struct.
3152 (new_symbol_cache_size, symbol_cache_size): New static globals.
3153 (hash_symbol_entry, eq_symbol_entry): New functions.
3154 (symbol_cache_byte_size, resize_symbol_cache): New functions.
3155 (make_symbol_cache, free_symbol_cache): New functions.
3156 (get_symbol_cache, symbol_cache_cleanup): New function.
3157 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
3158 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
3159 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
3160 (symbol_cache_flush, symbol_cache_dump): New functions.
3161 (maintenance_print_symbol_cache): New function.
3162 (maintenance_flush_symbol_cache): New function.
3163 (symbol_cache_stats): New function.
3164 (maintenance_print_symbol_cache_statistics): New function.
3165 (symtab_new_objfile_observer): New function.
3166 (symtab_free_objfile_observer): New function.
3167 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
3168 (_initialize_symtab): Init symbol_cache_key. New parameter
3169 maint symbol-cache-size. New maint commands print symbol-cache,
3170 print symbol-cache-statistics, flush-symbol-cache.
3171 Install new_objfile, free_objfile observers.
3173 2015-01-31 Joel Brobecker <brobecker@adacore.com>
3176 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
3179 2015-01-31 Doug Evans <xdje42@gmail.com>
3181 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
3182 * auto-load.c: #include ctype.h.
3183 (struct auto_load_pspace_info): Replace member loaded_scripts with
3184 new members loaded_script_files, loaded_script_texts.
3185 (auto_load_pspace_data_cleanup): Update.
3186 (init_loaded_scripts_info): Update.
3187 (get_auto_load_pspace_data_for_loading): Update.
3188 (maybe_add_script_file): Renamed from maybe_add_script. All callers
3190 (maybe_add_script_text): New function.
3191 (clear_section_scripts): Update.
3192 (source_script_file, execute_script_contents): New functions.
3193 (source_section_scripts): Add support for
3194 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
3195 (print_scripts): New function.
3196 (auto_load_info_scripts): Also print inlined scripts.
3197 (maybe_print_unsupported_script_warning): Renamed from
3198 unsupported_script_warning_print. All callers updated.
3199 (maybe_print_script_not_found_warning): Renamed from
3200 script_not_found_warning_print. All callers updated.
3201 * extension-priv.h (struct extension_language_script_ops): New member
3202 objfile_script_executor.
3203 * extension.c (ext_lang_objfile_script_executor): New function.
3204 * extension.h (objfile_script_executor_func): New typedef.
3205 (ext_lang_objfile_script_executor): Declare.
3206 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
3207 * guile/guile.c (guile_extension_script_ops): Update.
3208 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
3209 * python/python.c (python_extension_script_ops): Update.
3210 (gdbpy_execute_objfile_script): New function.
3212 2015-01-31 Eli Zaretskii <eliz@gnu.org>
3214 * tui/tui-io.c (tui_expand_tabs): New function.
3215 (tui_puts, tui_redisplay_readline): Expand TABs into the
3216 appropriate number of spaces.
3217 * tui/tui-regs.c: Include tui-io.h.
3218 (tui_register_format): Call tui_expand_tabs to expand TABs into
3219 the appropriate number of spaces.
3220 * tui/tui-io.h: Add prototype for tui_expand_tabs.
3222 2015-01-30 Doug Evans <dje@google.com>
3224 * NEWS: "info source" command now display producer string if present.
3225 * source.c (source_info): Print producer string if present.
3227 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3229 * varobj.c (varobj_delete): Fix comment.
3231 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3233 * varobj.c (create_child): Modify comment.
3235 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3237 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
3239 (ada_name_of_variable): Same.
3240 (ada_path_expr_of_child): Same.
3241 (ada_value_of_variable): Same.
3242 (ada_value_is_changeable_p): Same.
3243 (ada_value_has_mutated): Same.
3244 * c-varobj.c (varobj_is_anonymous_child): Same.
3245 (c_is_path_expr_parent): Same.
3246 (c_number_of_children): Same.
3247 (c_name_of_variable): Same.
3248 (c_path_expr_of_child): Same.
3250 (c_value_of_variable): Same.
3251 (cplus_number_of_children): Same.
3252 (cplus_name_of_variable): Same.
3253 (cplus_path_expr_of_child): Same.
3254 (cplus_value_of_variable): Same.
3255 * jv-varobj.c (java_number_of_children): Same.
3256 (java_name_of_variable): Same.
3257 (java_path_expr_of_child): Same.
3258 (java_value_of_variable): Same.
3259 * varobj.c (number_of_children): Same.
3260 (name_of_variable): Same.
3262 (varobj_ensure_python_env): Same.
3263 (varobj_get_objname): Same.
3264 (varobj_get_expression): Same.
3265 (varobj_get_display_format): Same.
3266 (varobj_get_display_hint): Same.
3267 (varobj_has_more): Same.
3268 (varobj_get_thread_id): Same.
3269 (varobj_get_frozen): Same.
3270 (dynamic_varobj_has_child_method): Same.
3271 (varobj_get_gdb_type): Same.
3272 (is_path_expr_parent): Same.
3273 (varobj_default_is_path_expr_parent): Same.
3274 (varobj_get_language): Same.
3275 (varobj_get_attributes): Same.
3276 (varobj_is_dynamic_p): Same.
3277 (varobj_get_child_range): Same.
3278 (varobj_value_has_mutated): Same.
3279 (varobj_get_value_type): Same.
3280 (number_of_children): Same.
3281 (name_of_variable): Same.
3282 (check_scope): Same.
3283 (varobj_editable_p): Same.
3284 (varobj_value_is_changeable_p): Same.
3285 (varobj_floating_p): Same.
3286 (varobj_default_value_is_changeable_p): Same.
3288 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3290 * varobj.c (varobj_get_path_expr): Set var->path_expr.
3291 * c-varobj.c (c_path_expr_of_child): Set local var instead of
3293 (cplus_path_expr_of_child): Same.
3295 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3297 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
3299 (mi_cmd_var_info_expression): Same.
3300 * varobj.c (varobj_get_expression): Mention in the comment that
3301 the result must by freed by the caller.
3303 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
3305 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
3307 (varobj_update_one): Same.
3308 * varobj.c (update_type_if_necessary): Free curr_type_str and
3310 (varobj_get_type): Specify in comment that the result needs to be
3311 freed by the caller.
3313 2015-01-29 Doug Evans <dje@google.com>
3316 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
3318 2015-01-25 Mark Wielaard <mjw@redhat.com>
3320 * dwarf2read.c (checkproducer): Call producer_is_gcc.
3321 * utils.c (producer_is_gcc_ge_4): Likewise.
3322 (producer_is_gcc): New function.
3323 * utils.h (producer_is_gcc): New declaration.
3325 2015-01-29 Joel Brobecker <brobecker@adacore.com>
3327 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
3329 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
3330 parameter by "addr_stack" parameter.
3331 (resolve_dynamic_range): Replace "addr" parameter by
3332 "stack_addr" parameter. Update function documentation.
3333 Update code accordingly.
3334 (resolve_dynamic_array, resolve_dynamic_union)
3335 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
3336 (resolve_dynamic_type): Update code, following the changes made
3337 to resolve_dynamic_type_internal's interface.
3338 * dwarf2loc.h (struct property_addr_info): New.
3339 (dwarf2_evaluate_property): Replace "address" parameter
3340 by "addr_stack" parameter. Adjust function documentation.
3341 (struct dwarf2_offset_baton): New.
3342 (struct dwarf2_property_baton): Update documentation of
3343 field "referenced_type" to be more general. New field
3344 "offset_info" in union data field.
3345 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
3346 parameter by "addr_stack" parameter. Adjust code accordingly.
3347 Add support for PROP_ADDR_OFFSET properties.
3348 * dwarf2read.c (attr_to_dynamic_prop): Add support for
3349 DW_AT_data_member_location attributes as well. Use case
3350 statements instead of if/else condition.
3352 2015-01-29 Joel Brobecker <brobecker@adacore.com>
3354 * ada-varobj.c (ada_varobj_get_array_number_of_children):
3355 Return zero if PARENT_VALUE is NULL and parent_type's
3356 range type is dynamic.
3358 2015-01-29 Joel Brobecker <brobecker@adacore.com>
3360 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
3361 nonzero if the type's subtype is dynamic.
3362 (resolve_dynamic_range): Also resolve the range's subtype.
3364 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
3366 Pushed by Joel Brobecker <brobecker@adacore.com>.
3367 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
3369 2015-01-27 Doug Evans <dje@google.com>
3371 * NEWS: Mention gdb.Objfile.username.
3372 * python/py-objfile.c (objfpy_get_username): New function.
3373 (objfile_getset): Add "username".
3375 2015-01-24 Mark Wielaard <mjw@redhat.com>
3377 * stack.c (return_command): Markup warning message with _.
3379 2015-01-24 Doug Evans <xdje42@gmail.com>
3381 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
3383 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3385 Fix 100x slowdown regression on DWZ files.
3386 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
3387 (struct line_header): Add offset and offset_in_dwz.
3388 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
3389 (free_line_header_voidp): New declaration.
3390 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
3392 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
3393 (handle_DW_AT_stmt_list): Use line_header_hash.
3394 (free_line_header_voidp): New function.
3395 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
3396 (dwarf_decode_lines): New parameter decode_mapping, use it.
3397 (dwarf2_free_objfile): Free line_header_hash.
3399 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
3402 * valops.c (value_rtti_indirect_type): Catch exception thrown by
3405 2015-01-15 Mark Wielaard <mjw@redhat.com>
3407 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
3409 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
3410 calling_convention an 8 bit bit field.
3411 (TYPE_NO_RETURN): New macro.
3412 * infcmd.c (finish_command): Query if function does not return
3414 * stack.c (return_command): Likewise.
3416 2015-01-23 Pedro Alves <palves@redhat.com>
3418 * linux-nat.c (linux_is_async_p): New macro.
3419 (linux_nat_is_async_p):
3420 (linux_nat_terminal_inferior): Check whether the target can async
3421 instead of whether it is already async.
3422 (linux_nat_terminal_ours): Don't check whether the target is
3424 (linux_async_pipe): Use linux_is_async_p.
3426 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3428 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
3430 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
3431 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
3432 Sort tp_array using tp_array_compar.
3433 (_initialize_thread): Extend thread_apply_all_command help.
3435 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3437 * corelow.c (core_open): Call also thread_command.
3438 * gdbthread.h (thread_command): New prototype moved from ...
3439 * thread.c (thread_command): ... here.
3440 (thread_command): Make it global.
3442 2015-01-22 Pedro Alves <palves@redhat.com>
3444 * configure.ac [*mingw32*]: Check $curses_found instead of
3446 * configure: Regenerate.
3447 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
3448 HAVE_NCURSES_NCURSES_H checks.
3450 2015-01-22 Eli Zaretskii <eliz@gnu.org>
3452 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
3453 fails with the 1st arg NULL, try again with "unknown". Don't test
3454 the "cup" capability: it isn't supported by the Windows port of
3455 ncurses, but the Windows console driver is still capable of
3458 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3460 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
3462 2015-01-22 Eli Zaretskii <eliz@gnu.org>
3464 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
3465 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
3466 reason that "make TAGS" is broken.
3468 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
3470 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
3471 and check additional store instructions.
3473 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
3475 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
3477 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
3479 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
3480 ppc_canonicalize_syscall, ppc_linux_syscall_record,
3481 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
3482 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
3483 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
3484 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
3485 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
3486 ppc_process_record_op19, ppc_process_record_op31,
3487 ppc_process_record_op59, ppc_process_record_op60,
3488 ppc_process_record_op63): Likewise.
3490 2015-01-20 Joel Brobecker <brobecker@adacore.com>
3492 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
3493 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
3496 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
3498 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
3499 ppc_process_record_op31, ppc_process_record_op59,
3500 ppc_process_record_op60, ppc_process_record_op63,
3501 ppc_process_record): Fix -Wformat warning.
3502 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
3503 Remove unused variables.
3505 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
3507 * MAINTAINERS (Write After Approval): Add "Chen Gang".
3509 2015-01-19 Eli Zaretskii <eliz@gnu.org>
3511 * configure.ac [*mingw32*]: Only add windows-termcap.o to
3512 CONFIG_OBS if not building with a curses library.
3513 * configure: Regenerate.
3515 * windows-termcap.c: Include defs.h. Make the whole body empty if
3516 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
3517 HAVE_NCURSES_NCURSES_H is defined.
3519 2015-01-19 Joel Brobecker <brobecker@adacore.com>
3521 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
3522 from end of line to start of next line.
3524 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
3526 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
3527 Scan PLT stub backward for reverse debugging.
3528 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
3530 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
3531 Ulrich Weigand <uweigand@de.ibm.com>
3533 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
3535 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
3537 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
3538 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
3539 (ppc_linux_init_abi): Set process_record, process_record_signal.
3540 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
3541 ppc_linux_record_tdep to gdbarch_tdep.
3542 (ppc_process_record): New declaration.
3543 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
3544 ppc_process_record_op19, ppc_process_record_op31,
3545 ppc_process_record_op59, ppc_process_record_op60,
3546 ppc_process_record_op63, ppc_process_record): New functions.
3548 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
3550 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
3551 rs6000_in_function_epilogue_frame_p and add an argument
3553 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
3554 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
3556 (rs6000_epilogue_frame_unwind): New.
3557 (rs6000_gdbarch_init): Append epilogue unwinder.
3559 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
3561 * nat/linux-personality.c: Replace "#ifndef
3562 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
3563 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
3566 2015-01-16 Eli Zaretskii <eliz@gnu.org>
3568 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
3570 (_initialize_tui_win) <border-kind, border-mode>:
3571 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
3572 (tui_set_tab_width_command): Fix the commentary.
3574 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
3576 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
3578 (tui_set_tab_width_command): Delete and recreate the source and
3579 the disassembly windows, to show the effect of the changed tab
3582 * tui/tui-data.h (LINE_PREFIX): Make shorter
3583 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
3584 "Thread NNNNN.XXXX" thread ID notation on Windows.
3586 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3588 Fix gcc-5 compilation.
3589 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
3591 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
3593 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
3594 (linux-personality.o): New rule.
3595 * common/common-defs.h: Include <stdint.h>.
3596 * config/aarch64/linux.mh (NATDEPFILES): Include
3597 linux-personality.o.
3598 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3599 * config/arm/linux.mh (NATDEPFILES): Likewise.
3600 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3601 * config/i386/linux.mh (NATDEPFILES): Likewise.
3602 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3603 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3604 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3605 * config/mips/linux.mh (NATDEPFILES): Likewise.
3606 * config/pa/linux.mh (NATDEPFILES): Likewise.
3607 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3608 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3609 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3610 * config/s390/linux.mh (NATDEPFILES): Likewise.
3611 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3612 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3613 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3614 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3615 * defs.h: Remove #include <stdint.h> (moved to
3616 common/common-defs.h).
3617 * linux-nat.c: Include nat/linux-personality.h. Remove #include
3618 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
3619 nat/linux-personality.c).
3620 (linux_nat_create_inferior): Remove code to disable address space
3621 randomization (moved to nat/linux-personality.c). Create cleanup
3622 to disable address space randomization.
3623 * nat/linux-personality.c: New file.
3624 * nat/linux-personality.h: Likewise.
3626 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
3628 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
3629 common/posix-strerror.c.
3630 (posix-strerror.o): New rule.
3631 (mingw-strerror.o): Likewise.
3632 * common/common-utils.h (safe_strerror): Move prototype to here,
3634 * common/common.host: New file.
3635 * common/mingw-strerror.c: Likewise.
3636 * common/posix-strerror.c: Likewise.
3637 * configure: Regenerated.
3638 * configure.ac: Source common/common.host. Add variable
3639 common_host_obs to gdb_host_obs.
3640 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
3641 gdb/common/posix-strerror.c when warning about the use of
3643 * mingw-hdep.c (safe_strerror): Remove definition; move it to
3644 common/mingw-strerror.c.
3645 * posix-hdep.c (safe_strerror): Remove definition; move it to
3646 common/posix-hdep.c.
3647 * utils.h (safe_strerror): Remove prototype; move to
3648 common/common-utils.h.
3650 2015-01-15 Joel Brobecker <brobecker@adacore.com>
3654 2015-01-15 Joel Brobecker <brobecker@adacore.com>
3656 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
3657 ___XA type if the array has already been fixed.
3659 2015-01-14 Yao Qi <yao@codesourcery.com>
3661 * Makefile.in (ppc-linux.o): New rule.
3662 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
3663 * configure.ac: AC_CHECK_FUNCS(getauxval).
3664 * config.in: Re-generated.
3665 * configure: Re-generated.
3666 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
3668 * nat/ppc-linux.c: New file.
3669 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
3670 Call ppc64_64bit_inferior_p.
3672 2015-01-14 Yao Qi <yao@codesourcery.com>
3674 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
3676 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
3677 (PPC_FEATURE_HAS_DFP): Likewise.
3678 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
3679 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
3680 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
3681 Include "nat/ppc-linux.h".
3682 * nat/ppc-linux.h: New file.
3683 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
3685 2015-01-14 Pedro Alves <palves@redhat.com>
3688 * breakpoint.c: Include "interps.h".
3689 (bpstat_do_actions_1): Also check whether the interpreter is
3692 2015-01-14 Pedro Alves <palves@redhat.com>
3695 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
3696 reinstall if the interpreter is sync.
3698 2015-01-13 Doug Evans <dje@google.com>
3700 * objfiles.c (objfile_filename): New function.
3701 * objfiles.h (objfile_filename): Declare it.
3702 (objfile_name): Add function comment.
3703 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
3704 bfd file name (which may be realpath'd), and the original name.
3706 2015-01-13 Joel Brobecker <brobecker@adacore.com>
3708 * NEWS: Create a new section for the next release branch.
3709 Rename the section of the current branch, now that it has
3712 2015-01-13 Joel Brobecker <brobecker@adacore.com>
3714 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
3715 * version.in: Bump version to 7.9.50.DATE-cvs.
3717 2015-01-13 Joel Brobecker <brobecker@adacore.com>
3719 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
3720 Remove trailing new-line in argument of call to warning.
3722 2015-01-13 Joel Brobecker <brobecker@adacore.com>
3724 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
3725 new-line in argument of call to "warning".
3727 2015-01-13 Joel Brobecker <brobecker@adacore.com>
3729 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
3730 in static block, then try searching for primitive types.
3732 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
3734 * top.h (gdb_add_history): Declare.
3735 * top.c (command_count): New variable.
3736 (gdb_add_history): New function.
3737 (gdb_safe_append_history): New static function.
3738 (quit_force): Call it.
3739 (command_line_input): Use gdb_add_history instead of
3741 * event-top.c (command_line_handler): Likewise.
3743 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
3746 * darwin-nat.c: Replace <machine/setjmp.h> #include by
3747 <setjmp.h> #include.
3749 2015-01-11 Doug Evans <xdje42@gmail.com>
3751 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
3753 2015-01-11 Doug Evans <xdje42@gmail.com>
3756 * NEWS: The "maint demangle" command is renamed as "demangle".
3757 * demangle.c: #include cli/cli-utils.h, language.h.
3758 (demangle_command): New function.
3759 (_initialize_demangle): Add new command "demangle".
3760 * maint.c (maintenance_demangle): Stub out.
3761 (_initialize_maint_cmds): Update help text for "maint demangle",
3762 and mark as deprecated.
3764 2015-01-11 Mark Kettenis <kettenis@gnu.org>
3766 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
3767 inferior_thread is a function.
3769 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
3771 * Makefile.in (.y.c): Don't munge yacc's #line
3774 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
3776 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
3777 to prompt for input.
3778 * tui/tui-hooks.c (tui_query_hook): Remove.
3779 (tui_install_hooks): Don't set deprecated_query_hook.
3780 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
3781 height calculation. Always update the command window's cur_line.
3783 2015-01-09 Pedro Alves <palves@redhat.com>
3785 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
3787 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
3789 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
3790 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
3792 (check_stopped_by_watchpoint): New function.
3793 (save_sigtrap): Reimplement.
3794 (linux_nat_stopped_by_watchpoint): Adjust.
3795 (linux_nat_lp_status_is_event): Delete.
3796 (stop_wait_callback): Only call save_sigtrap after storing the
3798 (status_callback): If the thread had been stopped for a breakpoint
3799 that has since been removed, discard the event and resume the LWP.
3800 (count_events_callback, select_event_lwp_callback): Use
3801 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
3802 (cancel_breakpoint): Rename to ...
3803 (check_stopped_by_breakpoint): ... this. Record whether the LWP
3804 stopped for a software breakpoint or hardware breakpoint.
3805 (select_event_lwp): Only give preference to the stepping LWP in
3806 all-stop mode. Adjust comments.
3807 (stop_and_resume_callback): Remove references to new_pending_p.
3808 (linux_nat_filter_event): Likewise. Leave exit events of the
3809 leader thread pending here. Handle signal short circuiting here.
3810 Only call save_sigtrap after storing the pending waitstatus.
3811 (linux_nat_wait_1): Remove 'retry' label. Remove references to
3812 new_pending. Don't handle leaving events the caller is not
3813 interested in pending here, nor handle signal short-circuiting
3814 here. Also give equal priority to all LWPs that have had events
3815 in non-stop mode. If reporting a software breakpoint event,
3816 unadjust the LWP's PC.
3817 * linux-nat.h (enum lwp_stop_reason): New.
3818 (struct lwp_info) <stop_pc>: New field.
3819 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
3820 (struct lwp_info) <stop_reason>: New field.
3821 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
3823 2015-01-09 Pedro Alves <palves@redhat.com>
3825 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
3826 Set the LWP's 'resumed' flag.
3828 2015-01-09 Pedro Alves <palves@redhat.com>
3830 * linux-nat.c (linux_resume_one_lwp): New function.
3831 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
3832 (linux_nat_resume): Use lwp_status_pending_p and
3833 linux_resume_one_lwp.
3834 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
3835 (linux_handle_extended_wait): Use linux_resume_one_lwp.
3836 (status_callback, running_callback): Use lwp_status_pending_p.
3837 (lwp_status_pending_p): New function.
3838 (stop_and_resume_callback): Use lwp_status_pending_p.
3839 (linux_nat_filter_event): Use linux_resume_one_lwp.
3840 (linux_nat_wait_1): Always use status_callback to look for an LWP
3841 with a pending status. Use linux_resume_one_lwp.
3842 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
3843 linux_resume_one_lwp.
3845 2015-01-09 Pedro Alves <palves@redhat.com>
3847 * breakpoint.c (bp_location_inserted_here_p): New function,
3848 factored out from ...
3849 (breakpoint_inserted_here_p): ... here. Use
3850 ALL_BP_LOCATIONS_AT_ADDR.
3851 (software_breakpoint_inserted_here_p): Use
3852 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
3854 2014-01-09 Pedro Alves <palves@redhat.com>
3856 Skip enabling event reporting if the kernel supports
3858 * linux-thread-db.c: Include "nat/linux-ptrace.h".
3859 (thread_db_use_events): New function.
3860 (try_thread_db_load_1): Check thread_db_use_events before enabling
3862 (update_thread_state): New function.
3863 (attach_thread): Use it. Check thread_db_use_events before
3864 enabling event reporting.
3865 (thread_db_detach): Check thread_db_use_events before disabling
3867 (find_new_threads_callback): Check thread_db_use_events before
3868 enabling event reporting. Update the thread's state if not using
3869 libthread_db events.
3871 2015-01-09 Pedro Alves <palves@redhat.com>
3873 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
3874 about to wait for is > 0.
3875 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
3876 the kernel thread ID is -1.
3878 2015-01-09 Pedro Alves <palves@redhat.com>
3880 * linux-nat.c (attach_proc_task_lwp_callback): New function.
3881 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
3882 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
3883 ptrace option flags.
3884 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
3886 * nat/linux-procfs.c: Include <dirent.h>.
3887 (linux_proc_get_int): New parameter "warn". Handle it.
3888 (linux_proc_get_tgid): Adjust.
3889 (linux_proc_get_tracerpid): Rename to ...
3890 (linux_proc_get_tracerpid_nowarn): ... this.
3891 (linux_proc_pid_get_state): New function, factored out from
3892 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
3894 (linux_proc_pid_is_gone): New function.
3895 (linux_proc_pid_is_stopped): Adjust.
3896 (linux_proc_pid_is_zombie_maybe_warn)
3897 (linux_proc_pid_is_zombie_nowarn): New functions.
3898 (linux_proc_pid_is_zombie): Use
3899 linux_proc_pid_is_zombie_maybe_warn.
3900 (linux_proc_attach_tgid_threads): New function.
3901 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
3902 (linux_proc_get_tracerpid): Rename to ...
3903 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
3904 (linux_proc_pid_is_gone): New declaration.
3905 (linux_proc_pid_is_zombie): Update comment.
3906 (linux_proc_pid_is_zombie_nowarn): New declaration.
3907 (linux_proc_attach_lwp_func): New typedef.
3908 (linux_proc_attach_tgid_threads): New declaration.
3909 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
3910 use nowarn functions.
3911 (linux_ptrace_attach_fail_reason_string): Move here from
3912 gdbserver/linux-low.c and rename.
3913 (ptrace_supports_feature): If the current ptrace options are not
3914 known yet, check them now, instead of asserting.
3915 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
3918 2015-01-09 Pedro Alves <palves@redhat.com>
3920 * linux-thread-db.c (thread_db_find_new_threads_silently)
3921 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
3922 (find_new_threads_once): Print debug output on gdb_stdlog.
3924 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
3925 Pedro Alves <palves@redhat.com>
3927 * compile/compile.c: Include "gdb_wait.h".
3928 (do_rmdir): Check return value, and free 'zap'.
3930 2015-01-08 Pedro Alves <palves@redhat.com>
3931 Yao Qi <yao@codesourcery.com>
3933 * dwarf2loc.c (indirect_pieced_value): Don't call
3934 gdb_sign_extend. Call extract_signed_integer instead.
3935 * utils.c (gdb_sign_extend): Remove.
3936 * utils.h (gdb_sign_extend): Remove declaration.
3938 2015-01-07 Pierre Muller <muller@sourceware.org>
3941 * stabsread.c (define_symbol): Set language for C++ special symbols.
3943 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
3945 * inflow.c (initial_gdb_ttystate): Tweak comment.
3947 2015-01-07 Joel Brobecker <brobecker@adacore.com>
3949 * inflow.c (set_initial_gdb_ttystate): Add empty line after
3950 comment documenting function.
3952 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
3954 * terminal.h (set_initial_gdb_ttystate): Declare.
3955 * inflow.c (initial_gdb_ttystate): New static variable.
3956 (set_initial_gdb_ttystate): New setter.
3957 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
3958 instead of our current terminal state.
3959 * top.c (gdb_init): Call set_initial_gdb_ttystate.
3961 2015-01-07 Joel Brobecker <brobecker@adacore.com>
3963 * guile/scm-type.c (tyscm_array_1): Add comment.
3964 * python/py-type.c (typy_array_1): Add comment.
3966 2015-01-06 Joel Brobecker <brobecker@adacore.com>
3968 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
3969 error if N2 is equal to N1 - 1.
3971 2015-01-06 Joel Brobecker <brobecker@adacore.com>
3973 * python/py-type.c (typy_array_1): Do not raise negative-length
3974 exception if N2 is equal to N1 - 1.
3976 2015-01-03 Doug Evans <xdje42@gmail.com>
3978 * c-exp.y: Whitespace cleanup.
3979 (classify_inner_name): Remove extra ;.
3981 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
3983 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
3986 2015-01-02 Doug Evans <dje@google.com>
3988 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
3990 2015-01-02 Doug Evans <dje@google.com>
3992 * symtab.h (struct symbol): Fix typo in comment.
3994 2015-01-01 Joel Brobecker <brobecker@adacore.com>
3996 Update year range in copyright notice of all files.
3998 2015-01-01 Joel Brobecker <brobecker@adacore.com>
4000 * top.c (print_gdb_version): Update copyright year to 2015.
4002 2015-01-01 Joel Brobecker <brobecker@adacore.com>
4004 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
4006 For older changes see ChangeLog-2014.
4012 version-control: never