1 2015-04-06 Doug Evans <xdje42@gmail.com>
3 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
5 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
6 Include symbol domain in debugging output.
8 2015-04-06 Pedro Alves <palves@redhat.com>
9 Bernd Edlinger <bernd.edlinger@hotmail.de>
11 * configure.ac: Remove the mingw32-specific stub-termcap.o
12 fallback, and instead fallback to the stub termcap on all hosts.
13 * configure: Regenerate.
14 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
17 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
19 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
20 "top_level" parameter.
21 (resolve_dynamic_type_internal): Remove the unused "top_level"
22 parameter. Update call to is_dynamic_type_internal.
23 (is_dynamic_type): Update call to is_dynamic_type_internal.
24 (resolve_dynamic_range): Update call to
25 resolve_dynamic_type_internal.
26 (resolve_dynamic_union): Likewise.
27 (resolve_dynamic_struct): Likewise.
28 (resolve_dynamic_type): Likewise.
30 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
32 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
33 TYPE_CODE_REF types so that they are not considered as dynamic
34 depending on the referenced type.
35 (resolve_dynamic_type_internal): Likewise.
37 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
39 * Makefile.in (top_srcdir): New.
40 * configure: Regenerated.
42 2015-04-02 Gary Benson <gbenson@redhat.com>
44 * NEWS: Announce the new default sysroot of "target:".
46 2015-04-02 Gary Benson <gbenson@redhat.com>
48 * main.c (captured_main): Set gdb_sysroot to "target:"
51 2015-04-02 Gary Benson <gbenson@redhat.com>
53 * exec.c (exec_file_attach): Support "target:" filenames.
55 2015-04-02 Gary Benson <gbenson@redhat.com>
57 * solib.c (solib_find): Strip "target:" prefix from sysroot
58 if accessing local files.
60 2015-04-02 Gary Benson <gbenson@redhat.com>
62 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
63 checks and error messages.
65 2015-04-02 Gary Benson <gbenson@redhat.com>
67 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
68 (remote_filename_p): Remove declaration.
69 (remote_bfd_open): Likewise.
70 * remote.c (remote_bfd_iovec_open): Remove function.
71 (remote_bfd_iovec_close): Likewise.
72 (remote_bfd_iovec_pread): Likewise.
73 (remote_bfd_iovec_stat): Likewise.
74 (remote_filename_p): Likewise.
75 (remote_bfd_open): Likewise.
76 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
77 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
78 (gdb_bfd_open_maybe_remote): Remove function.
79 (symfile_bfd_open): Replace remote filename check with
80 target filename check.
81 (reread_symbols): Use gdb_bfd_open.
82 * build-id.c (gdbcore.h): New include.
83 (build_id_to_debug_bfd): Use gdb_bfd_open.
84 * infcmd.c (attach_command_post_wait): Remove remote filename
86 * solib.c (solib_find): Replace remote-specific handling with
87 target-specific handling. Update comments where necessary.
88 (solib_bfd_open): Replace remote-specific handling with
89 target-specific handling.
90 (gdb_sysroot_changed): New function.
91 (_initialize_solib): Call the above when gdb_sysroot changes.
92 * windows-tdep.c (gdbcore.h): New include.
93 (windows_xfer_shared_library): Use gdb_bfd_open.
95 2015-04-02 Gary Benson <gbenson@redhat.com>
97 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
98 (is_target_filename): New declaration.
99 (gdb_bfd_has_target_filename): Likewise.
100 (gdb_bfd_open): Update documentation comment.
101 * gdb_bfd.c (target.h): New include.
102 (gdb/fileio.h): Likewise.
103 (is_target_filename): New function.
104 (gdb_bfd_has_target_filename): Likewise.
105 (fileio_errno_to_host): Likewise.
106 (gdb_bfd_iovec_fileio_open): Likewise.
107 (gdb_bfd_iovec_fileio_pread): Likewise.
108 (gdb_bfd_iovec_fileio_close): Likewise.
109 (gdb_bfd_iovec_fileio_fstat): Likewise.
110 (gdb_bfd_open): Use target fileio to access paths prefixed
111 with "target:" where necessary.
113 2015-04-02 Gary Benson <gbenson@redhat.com>
115 * target.h (struct target_ops) <to_filesystem_is_local>:
117 (target_filesystem_is_local): New macro.
118 * target-delegates.c: Regenerate.
119 * remote.c (remote_filesystem_is_local): New function.
120 (init_remote_ops): Initialize to_filesystem_is_local.
122 2015-04-02 Gary Benson <gbenson@redhat.com>
124 * target.h (struct target_ops) <to_fileio_fstat>: New field.
125 (target_fileio_fstat): New declaration.
126 * target.c (target_fileio_fstat): New function.
127 * inf-child.c (inf_child_fileio_fstat): Likewise.
128 (inf_child_target): Initialize to_fileio_fstat.
129 * remote.c (init_remote_ops): Likewise.
131 2015-04-01 Sasha Smundak <asmundak@google.com>
133 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
134 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
135 (py-unwind.o): New recipe.
136 * NEWS: mention Python frame unwinding.
137 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
138 gdb/unwinder.py and gdb/command/unwinder.py
139 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
141 (execute_unwinders): New function.
142 * python/lib/gdb/command/unwinders.py: New file.
143 * python/lib/gdb/unwinder.py: New file.
144 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
145 (objfpy_dealloc): Decrement frame_unwinders reference count.
146 (objfpy_initialize): Create frame_unwinders list.
147 (objfpy_get_frame_unwinders): New function.
148 (objfpy_set_frame_unwinders): Ditto.
149 (objfile_getset): Add frame_unwinders attribute to Objfile.
150 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
151 (pspy_dealloc): Decrement frame_unwinders reference count.
152 (pspy_initialize): Create frame_unwinders list.
153 (pspy_get_frame_unwinders): New function.
154 (pspy_set_frame_unwinders): Ditto.
155 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
156 * python/py-unwind.c: New file.
157 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
158 (objpy_get_frame_unwinders): New prototype.
159 (gdbpy_initialize_unwind): New prototype.
160 * python/python.c (gdbpy_apply_type_printers): Call
161 gdbpy_initialize_unwind.
163 2015-04-01 Pedro Alves <palves@redhat.com>
165 * infrun.c (resume): Check currently_stepping after clearing
166 stepped_breakpoint, not before.
168 2015-04-01 Pedro Alves <palves@redhat.com>
170 * infrun.c (print_target_wait_results): Print all the ptid
173 2015-04-01 Pedro Alves <palves@redhat.com>
175 * infrun.c (keep_going): Also discard cleanups if inserting
178 2015-04-01 Pedro Alves <palves@redhat.com>
180 * infrun.c (wait_for_inferior): Install the
181 finish_thread_state_cleanup cleanup across the whole function, not
182 just around handle_inferior_event.
184 2015-04-01 Pedro Alves <palves@redhat.com>
186 * infrun.c (resume) <step past permanent breakpoint>: Use
189 2015-04-01 Pedro Alves <palves@redhat.com>
191 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
193 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
195 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
197 2015-04-01 Pedro Alves <palves@redhat.com>
199 * linux-thread-db.c (record_thread): Readd the thread to gdb's
200 list if it was marked exited.
202 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
204 * configure: Regenerated.
206 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
207 Jan Kratochvil <jan.kratochvil@redhat.com>
208 Oleg Nesterov <oleg@redhat.com>
211 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
212 New enum identifying the various options of the coredump_filter
214 (struct smaps_vmflags): New struct.
215 (use_coredump_filter): New variable.
216 (decode_vmflags): New function.
217 (mapping_is_anonymous_p): Likewise.
218 (dump_mapping_p): Likewise.
219 (linux_find_memory_regions_full): New variables
220 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
221 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
222 parsing of its information. Implement memory mapping filtering
223 based on its contents.
224 (show_use_coredump_filter): New function.
225 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
226 * NEWS: Mention the possibility of using the
227 '/proc/PID/coredump_filter' file when generating a corefile.
228 Mention new command 'set use-coredump-filter'.
230 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
232 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
233 read_memory_unsigned_integer.
235 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
237 * Makefile.in (ZLIB): New.
239 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
240 (CLIBS): Add $(ZLIB).
241 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
243 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
244 * top.c (print_gdb_configuration): Remove --with-zlib and
246 * config.in: Regenerated.
247 * configure: Likewise.
249 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
251 * NEWS: Mention info os cpus support.
252 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
253 (struct osdata_type): Add cpus entry, reorder the entries in
256 2015-03-31 Matthias Klose <doko@ubuntu.com>
258 * compile/compile.c (compile_to_object): Allow triplets with or
261 2015-03-30 Doug Evans <dje@google.com>
264 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
267 2015-03-30 Gary Benson <gbenson@redhat.com>
269 * remote.c (remote_mourn_1): Remove function. Update all callers
271 (extended_remote_mourn_1): Remove function. Update all callers
272 to use extended_remote_mourn.
273 (extended_remote_attach_1): Remove function. Update all callers
274 to use extended_remote_attach.
276 2015-03-28 James Bowman <james.bowman@ftdichip.com>
278 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
279 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
280 (ALLDEPFILES): Add ft32-tdep.c.
281 * configure.tgt: Add FT32 entry.
282 * ft32-tdep.c: New file, FT32 target-dependent code.
283 * ft32-tdep.h: New file, FT32 target-dependent code.
285 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
288 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
290 * printcmd.c (print_command_1): Move expr variable scope.
292 2015-03-27 Joel Brobecker <brobecker@adacore.com>
294 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
296 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
298 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
301 2015-03-26 Joel Brobecker <brobecker@adacore.com>
303 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
304 exception raised while parsing the probe arguments.
305 Force parsing to be done using the C language parser.
306 * expression.h (parse_expression_with_language): Declare.
307 * parse.c (parse_expression_with_language): New function.
309 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
311 * MAINTAINERS (Write After Approval): Add "Jon Turney".
313 2015-03-26 Andy Wingo <wingo@igalia.com>
316 * dwarf2read.c (struct partial_die_info): Add has_const_value
318 (add_partial_symbol): Don't punt on symbols that have const_value
320 (read_partial_die): Detect DW_AT_const_value.
322 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
325 * printcmd.c (print_command_1): Move expr variable scope.
327 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
330 * printcmd.c (validate_format): Make the parameter cmdname const.
332 2015-03-26 Don Breazeal <donb@codesourcery.com>
334 * remote.c (_initialize_remote): Update comment.
336 2015-03-26 Pedro Alves <palves@redhat.com>
337 Jon TURNEY <jon.turney@dronecode.org.uk>
339 * coffread.c (coff_symfile_read): When constructing the name of an
340 import stub symbol from import symbol for amd64, only skip the
341 char after _imp_ if the target is underscored (like i386) and the
342 char is indeed the target's leading char.
344 2015-03-25 Pedro Alves <palves@redhat.com>
346 * target.h <to_async>: Replace 'callback' and 'context' parameters
347 with boolean 'enable' parameter.
348 (target_async): Replace CALLBACK and CONTEXT parameters with
349 boolean ENABLE parameter.
350 * inf-loop.c (inferior_event_handler): Adjust.
351 * linux-nat.c (linux_nat_attach, linux_nat_resume)
352 (linux_nat_resume): Adjust.
353 (async_client_callback, async_client_context): Delete.
354 (handle_target_event): Call inferior_event_handler directly.
355 (linux_nat_async): Replace 'callback' and 'context' parameters
356 with boolean 'enable' parameter. Adjust. Remove references to
357 async_client_callback and async_client_context.
358 (linux_nat_close): Adjust.
359 * record-btrace.c (record_btrace_async): Replace 'callback' and
360 'context' parameters with boolean 'enable' parameter. Adjust.
361 (record_btrace_resume): Adjust.
362 * record-full.c (record_full_async): Replace 'callback' and
363 'context' parameters with boolean 'enable' parameter. Adjust.
364 (record_full_resume, record_full_core_resume): Adjust.
365 * remote.c (struct remote_state) <async_client_callback,
366 async_client_context>: Delete fields.
367 (remote_start_remote, extended_remote_attach_1, remote_resume)
368 (extended_remote_create_inferior): Adjust.
369 (remote_async_serial_handler): Call inferior_event_handler
371 (remote_async): Replace 'callback' and 'context' parameters with
372 boolean 'enable' parameter. Adjust.
373 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
375 * target-delegates.c: Regenerate.
377 2015-03-25 Gary Benson <gbenson@redhat.com>
378 Pedro Alves <palves@redhat.com>
380 * target.c (fileio_ft_t): New typedef, define object vector.
381 (fileio_fhandles): New static variable.
382 (is_closed_fileio_fh): New macro.
383 (lowest_closed_fd): New static variable.
384 (acquire_fileio_fd): New function.
385 (release_fileio_fd): Likewise.
386 (fileio_fd_to_fh): New macro.
387 (target_fileio_open): Wrap the file descriptor on success.
388 (target_fileio_pwrite): Updated to use wrapped file descriptor.
389 (target_fileio_pread): Likewise.
390 (target_fileio_close): Likewise.
392 2015-03-24 Pedro Alves <palves@redhat.com>
394 * thread.c (thread_apply_all_command): Take exited threads into
397 2015-03-24 Pedro Alves <palves@redhat.com>
399 * infrun.c (resume, proceed): Mention
400 switch_back_to_stepped_thread, not switch_back_to_stepping.
402 2015-03-24 Pedro Alves <palves@redhat.com>
404 * infrun.c (user_visible_resume_ptid): Rewrite going from
405 most-locked to unlocked instead of the opposite. Move comment ...
406 * infrun.h (user_visible_resume_ptid): ... here.
408 2015-03-24 Pedro Alves <palves@redhat.com>
410 * linux-nat.c (linux_nat_resume): Output debug logs before trying
411 to resume the event lwp. Use the lwp's ptid instead of the passed
412 in (maybe wildcard) ptid.
413 (stop_wait_callback): Tweak debug log output.
414 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
416 (linux_nat_filter_event): In debug output, distinguish a
417 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
418 before trying to resume the lwp.
420 2015-03-24 Joel Brobecker <brobecker@adacore.com>
422 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
424 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
425 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
427 2015-03-24 Joel Brobecker <brobecker@adacore.com>
429 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
430 Renames DYN_ATTR_DATA_LOCATION.
431 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
432 DYN_ATTR_DATA_LOCATION.
433 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
434 instead of DYN_ATTR_DATA_LOCATION.
436 2015-03-24 Pedro Alves <palves@redhat.com>
438 * breakpoint.c (until_break_command): Adjust call to proceed.
439 * gdbthread.h (struct thread_control_state) <stepping_command>:
441 * infcall.c (run_inferior_call): Adjust call to proceed.
442 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
443 Adjust calls to proceed.
444 (set_step_frame): Set the current thread's step_start_function
446 (step_once): Adjust calls to proceed.
447 (jump_command, signal_command, until_next_command)
448 (finish_backward, finish_forward, proceed_after_attach_callback)
449 (attach_command_post_wait): Adjust calls to proceed.
450 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
451 (do_target_resume): New function, factored out from ...
452 (resume): ... here. Remove 'step' parameter. Instead, check
453 currently_stepping to determine whether the thread should be
455 (proceed): Remove 'step' parameter and don't set the thread's
456 step_start_function here. Adjust call to 'resume'.
457 (handle_inferior_event): Adjust calls to 'resume'.
458 (switch_back_to_stepped_thread): Use do_target_resume instead of
460 (keep_going): Adjust calls to 'resume'.
461 * infrun.h (proceed): Remove 'step' parameter.
463 * windows-nat.c (do_initial_windows_stuff): Adjust call to
465 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
467 2015-03-24 Pedro Alves <palves@redhat.com>
469 * gdbthread.h (struct thread_control_state) <stepping_command>:
471 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
472 the thread's stepping_command field.
473 * infrun.c (resume): Check the thread's stepping_command flag to
474 determine which threads should be resumed. Rename 'entry_step'
476 (clear_proceed_status_thread): Clear 'stepping_command'.
477 (schedlock_applies): Change parameter type to struct thread_info
479 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
480 (switch_back_to_stepped_thread): Adjust calls to
482 (_initialize_infrun): Adjust "set scheduler-locking step" help.
484 2015-03-24 Pedro Alves <palves@redhat.com>
486 * infrun.c (step_start_function): Delete and ...
487 * gdbthread.h (struct thread_control_state) <step_start_function>:
488 ... now a field here.
489 * infrun.c (clear_proceed_status_thread): Clear the thread's
491 (proceed, process_event_stop_test, print_stop_event): Adjust.
493 2015-03-24 Pedro Alves <palves@redhat.com>
495 * infrun.c (proceed): No longer handle negative step.
497 2015-03-24 Gary Benson <gbenson@redhat.com>
499 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
500 (x86_linux_prepare_to_resume): Likewise.
501 * x86-linux-nat.c (x86_linux_new_thread):
502 Moved to nat/x86-linux.c.
503 (x86_linux_prepare_to_resume): Likewise.
504 * nat/x86-linux.c (x86_linux_new_thread): New function.
505 (x86_linux_prepare_to_resume): Likewise.
507 2015-03-24 Gary Benson <gbenson@redhat.com>
509 * nat/x86-linux-dregs.h: New file.
510 * nat/x86-linux-dregs.c: Likewise.
511 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
512 (x86-linux-dregs.o): New rule.
513 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
514 * config/i386/linux64.mh (NATDEPFILES): Likewise.
515 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
516 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
517 (x86_linux_dr_get): Likewise.
518 (x86_linux_dr_set): Likewise.
519 (x86_linux_dr_get_addr): Likewise.
520 (x86_linux_dr_get_control): Likewise.
521 (x86_linux_dr_get_status): Likewise.
522 (update_debug_registers_callback): Likewise.
523 (x86_linux_dr_set_control): Likewise.
524 (x86_linux_dr_set_addr): Likewise.
525 (x86_linux_update_debug_registers): Likewise.
527 2015-03-24 Gary Benson <gbenson@redhat.com>
529 * x86-linux-nat.c (x86_linux_update_debug_registers):
530 New function, factored out from...
531 (x86_linux_prepare_to_resume): ...this.
533 2015-03-24 Gary Benson <gbenson@redhat.com>
535 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
536 (x86_linux_dr_set): Likewise.
537 (x86_linux_dr_get_addr): Likewise.
538 (x86_linux_dr_get_control): Likewise.
539 (x86_linux_dr_get_status): Likewise.
540 (update_debug_registers_callback): Likewise.
541 (x86_linux_dr_set_control): Likewise.
542 (x86_linux_dr_set_addr): Likewise.
543 (x86_linux_prepare_to_resume): Likewise.
544 (x86_linux_new_thread): Likewise.
546 2015-03-24 Gary Benson <gbenson@redhat.com>
548 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
549 (x86_linux_new_thread): Rename argument.
551 2015-03-24 Gary Benson <gbenson@redhat.com>
553 * nat/x86-linux.h: New file.
554 * nat/x86-linux.c: Likewise.
555 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
556 (x86-linux.o): New rule.
557 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
558 * config/i386/linux64.mh (NATDEPFILES): Likewise.
559 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
560 (lwp_set_arch_private_info): New declaration.
561 (lwp_arch_private_info): Likewise.
562 * linux-nat.c (lwp_set_arch_private_info): New function.
563 (lwp_arch_private_info): Likewise.
564 * x86-linux-nat.c: Include nat/x86-linux.h.
565 (arch_lwp_info): Removed structure.
566 (update_debug_registers_callback):
567 Use lwp_set_debug_registers_changed.
568 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
569 and lwp_set_debug_registers_changed.
570 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
572 2015-03-24 Gary Benson <gbenson@redhat.com>
574 * nat/linux-nat.h (ptid_of_lwp): New declaration.
575 (lwp_is_stopped): Likewise.
576 (lwp_stop_reason): Likewise.
577 * linux-nat.c (ptid_of_lwp): New function.
578 (lwp_is_stopped): Likewise.
579 (lwp_is_stopped_by_watchpoint): Likewise.
580 * x86-linux-nat.c (update_debug_registers_callback):
582 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
585 2015-03-24 Gary Benson <gbenson@redhat.com>
587 * linux-nat.h (linux_stop_lwp): Move declaration to...
588 * nat/linux-nat.h (linux_stop_lwp): New declaration.
590 2015-03-24 Gary Benson <gbenson@redhat.com>
592 * linux-nat.h: Include nat/linux-nat.h.
593 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
594 * nat/linux-nat.h (struct lwp_info): New forward declaration.
595 (iterate_over_lwps_ftype): New typedef.
596 (iterate_over_lwps): New declaration.
597 * linux-nat.h (iterate_over_lwps): Update comment. Use
598 iterate_over_lwps_ftype. Update callback return value check.
600 2015-03-24 Gary Benson <gbenson@redhat.com>
602 * x86-nat.h (x86_debug_reg_state): Move declaration to...
603 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
605 2015-03-24 Gary Benson <gbenson@redhat.com>
607 * nat/linux-nat.h (current_lwp_ptid): New declaration.
608 * linux-nat.c (current_lwp_ptid): New function.
609 * x86-linux-nat.c: Include nat/linux-nat.h.
610 (x86_linux_dr_get_addr): Use current_lwp_ptid.
611 (x86_linux_dr_get_control): Likewise.
612 (x86_linux_dr_get_status): Likewise.
613 (x86_linux_dr_set_control): Likewise.
614 (x86_linux_dr_set_addr): Likewise.
616 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
619 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
621 2015-03-23 Joel Brobecker <brobecker@adacore.com>
623 * ser-mingw.c (ser_windows_setparity): Fix indentation.
624 * ser-unix.c (hardwire_setparity): Likewise.
626 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
628 * NEWS: Mention set/show serial parity command.
629 * monitor.c (monitor_open): Call serial_setparity.
630 * remote.c (remote_open_1): Likewise.
631 * ser-base.c (ser_base_serparity): New function.
632 * ser-base.h (ser_base_setparity): Add declaration.
633 * ser-go32.c (dos_ops): Set "setparity" field.
634 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
636 (ser_windows_setparity): New function.
637 (hardwire_ops): Add ser_windows_setparity.
638 (tty_ops): Add NULL for setparity field.
639 (pipe_ops): Add ser_base_setparity.
641 * ser-pipe.c (pipe_ops): Likewise.
642 * ser-tcp.c (tcp_ops): Likewise.
643 * ser-unix.c (hardwire_setparity): Add declaration.
644 (hardwire_raw): Don't reset PARENB flag.
645 (hardwire_setparity): New function.
646 (hardwire_ops): Add hardwire_setparity.
647 * serial.c (serial_setparity): New function.
648 (serial_parity): New global.
649 (parity_none, parity_odd, parity_even, parity_enums, parity):
651 (set_parity): New function.
652 (_initialize_serial): Add set/show serial parity commands.
653 * serial.h (GDBPARITY_NONE): Define.
654 (GDBPARITY_ODD): Define.
655 (GDBPARITY_EVEN): Define.
656 (serial_setparity) Add declaration.
657 (struct serial_ops): Add setparity field.
658 * target.h (serial_parity): Add declaration.
660 2015-03-23 Keith Seitz <keiths@redhat.com>
662 * linespec.c (linespec_lexer_lex_keyword): Update comment.
664 2015-03-23 Keith Seitz <keiths@redhat.com>
666 * breakpoint.c (parse_breakpoint_sals): Use
667 linespec_lexer_lex_keyword to ascertain if the user specified
669 * linespec.c [IF_KEYWORD_INDEX]: Define.
670 (linespec_lexer_lex_keyword): Export.
671 (struct ls_parser) <keyword_ok>: Remove.
672 A keyword is only a keyword if not followed by another keyword.
673 (linespec_lexer_lex_one): Remove keyword_ok handling.
674 Add comment explaining why the parsing stream is not advanced
675 when a keyword is seen.
676 (parse_linespec): Remove parser->keyword_ok.
677 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
679 2015-03-23 Keith Seitz <keiths@redhat.com>
682 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
683 if we find a static method with DW_AT_vtable_elem_location.
685 2015-03-21 Eli Zaretskii <eliz@gnu.org>
687 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
688 before the second loop, to avoid undefined behavior. Reported by
689 Anton Blanchard <anton@samba.org>.
691 2015-03-20 Keven Boell <keven.boell@intel.com>
693 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
694 data_location usage to linked list.
695 (resolve_dynamic_type_internal): Adapt data_location to
697 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
698 (copy_type_recursive, copy_type): Add copy of linked list.
699 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
700 (struct dynamic_prop_list): New struct.
701 * dwarf2read.c (set_die_type): Set data_location data.
703 2015-03-20 Pedro Alves <palves@redhat.com>
705 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
706 inner block and make it const.
707 * machoread.c (get_archive_prefix_len): Make "lparen" const.
709 2015-03-20 Pedro Alves <palves@redhat.com>
711 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
712 * breakpoint.h (set_breakpoint_condition): Update declaration.
714 2015-03-20 Pedro Alves <palves@redhat.com>
716 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
718 2015-03-20 Pedro Alves <palves@redhat.com>
720 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
722 2015-03-20 Pedro Alves <palves@redhat.com>
724 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
726 2015-03-20 Pedro Alves <palves@redhat.com>
728 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
729 (nto_init_solib_absolute_prefix): Likewise.
731 2015-03-20 Pedro Alves <palves@redhat.com>
733 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
734 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
736 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
738 * config/djgpp/README: Remove gdb.hp.
740 2015-03-20 Yao Qi <yao.qi@linaro.org>
742 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
743 set_gdbarch_cannot_step_breakpoint.
745 2015-03-19 Pedro Alves <palves@redhat.com>
747 * linux-nat.c (linux_resume_one_lwp): Rename to ...
748 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
749 instead call perror_with_name.
750 (check_ptrace_stopped_lwp_gone): New function.
751 (linux_resume_one_lwp): Reimplement as wrapper around
752 linux_resume_one_lwp_throw that swallows errors if the LWP is
754 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
755 swallows errors if the LWP is gone. Use
756 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
758 2015-03-19 Pedro Alves <palves@redhat.com>
760 * linux-nat.c (status_callback): Return early if the LWP has no
763 2015-03-19 Pedro Alves <palves@redhat.com>
765 * linux-nat.c (select_event_lwp_callback): Update comment to no
766 longer mention SIGTRAP.
768 2015-03-18 Tristan Gingold <gingold@adacore.com>
770 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
771 redirection code to ...
772 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
773 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
775 2015-03-18 Gary Benson <gbenson@redhat.com>
777 (remote_protocol_features): Remove the "vFile:fstat" feature.
778 (remote_hostio_fstat): Probe for "vFile:fstat" support.
780 2015-03-11 Yao Qi <yao.qi@linaro.org>
783 * aarch64-linux-tdep.c: Include xml-syscall.h
784 (aarch64_linux_get_syscall_number): New function.
785 (aarch64_linux_init_abi): Call
786 set_gdbarch_get_syscall_number.
787 * syscalls/aarch64-linux.xml: New file.
789 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
791 * ser-base.h (ser_base_setstopbits): Change second argument name
792 from "rate" to "num".
794 2015-03-17 Gary Benson <gbenson@redhat.com>
795 Luke Allardyce <lukeallardyce@gmail.com>
798 * common/common-remote-fileio.h (sys/stat.h): New include.
799 (stuct stat): Remove forward declaration.
801 2015-03-16 John Baldwin <jhb@FreeBSD.org>
803 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
804 before writing core register notes.
806 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
807 Pedro Alves <palves@redhat.com>
809 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
810 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
811 (tgoto): Wrap with extern "C".
813 2015-03-16 Pedro Alves <palves@redhat.com>
814 Yuanhui Zhang <asmwarrior@gmail.com>
816 * stub-termcap.c (tputs): Change prototype.
818 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
819 Pedro Alves <palves@redhat.com>
821 * windows-nat.c (struct thread_info_struct): Rename to ...
822 (struct windows_thread_info_struct): ... this.
823 (thread_info): Rename to ...
824 (windows_thread_info): ... this.
827 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
828 Pedro Alves <palves@redhat.com>
830 * NEWS: New Removed targets and native configurations.
832 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
835 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
836 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
837 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
838 ia64-hpux-tdep.h, solib-ia64-hpux.h.
839 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
840 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
841 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
843 * config/ia64/hpux.mh: Remove file.
844 * config/pa/hpux.mh: Remove file.
845 * configure: Rebuilt.
846 * configure.ac (dlgetmodinfo, somread.o): Remove.
847 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
848 (ia64-*-hpux*): Remove its float format exception.
849 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
850 * hppa-hpux-nat.c: Remove file.
851 * hppa-hpux-tdep.c: Remove file.
852 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
853 Move them here from hppa-tdep.h
854 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
855 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
856 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
857 Move them to hppa-tdep.c.
858 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
860 * ia64-hpux-nat.c: Remove file.
861 * ia64-hpux-tdep.c: Remove file.
862 * ia64-hpux-tdep.h: Remove file.
863 * inf-ttrace.c: Remove file.
864 * inf-ttrace.h: Remove file.
865 * solib-ia64-hpux.c: Remove file.
866 * solib-ia64-hpux.h: Remove file.
867 * solib-pa64.c: Remove file.
868 * solib-pa64.h: Remove file.
869 * solib-som.c: Remove file.
870 * solib-som.h: Remove file.
871 * somread.c: Remove file.
873 2015-03-13 John Baldwin <jhb@FreeBSD.org>
875 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
876 * config.in: Regenerate.
877 * configure: Regenerate.
878 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
880 (fbsd_find_memory_regions): Use kinfo_getvmmap to
881 enumerate memory regions if present.
883 2015-03-13 John Baldwin <jhb@FreeBSD.org>
885 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
886 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
888 (i386fbsd_sigtramp_p): Likewise.
890 2015-03-12 John Baldwin <jhb@FreeBSD.org>
892 * MAINTAINERS (Write After Approval): Add John Baldwin.
894 2015-03-12 Gary Benson <gbenson@redhat.com>
896 * solib.c (_initialize_solib): Make "set/show sysroot" use
897 add_setshow_optional_filename_cmd so it can be restored to
898 empty after being set.
900 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
902 * Makefile.in (SFILES): New source break-catch-syscall.c.
903 (COMMON_OBS): New object break-catch-syscall.o.
904 * break-catch-syscall.c: New file.
905 * breakpoint.c: Remove inclusion of "xml-syscall.h".
906 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
907 (struct syscall_catchpoint): Likewise.
908 (dtor_catch_syscall): Likewise.
909 (catch_syscall_inferior_data): Likewise.
910 (struct catch_syscall_inferior_data): Likewise.
911 (get_catch_syscall_inferior_data): Likewise.
912 (catch_syscall_inferior_data_cleanup): Likewise.
913 (insert_catch_syscall): Likewise.
914 (remove_catch_syscall): Likewise.
915 (breakpoint_hit_catch_syscall): Likewise.
916 (print_it_catch_syscall): Likewise.
917 (print_one_catch_syscall): Likewise.
918 (print_mention_catch_syscall): Likewise.
919 (print_recreate_catch_syscall): Likewise.
920 (catch_syscall_breakpoint_ops): Likewise.
921 (syscall_catchpoint_p): Likewise.
922 (create_syscall_event_catchpoint): Likewise.
923 (catch_syscall_split_args): Likewise.
924 (catch_syscall_command_1): Likewise.
925 (is_syscall_catchpoint_enabled): Likewise.
926 (catch_syscall_enabled): Likewise.
927 (catching_syscall_number): Likewise.
928 (catch_syscall_completer): Likewise.
929 (clear_syscall_counts): Likewise.
930 (initialize_breakpoint_ops): Move initialization of syscall
931 catchpoints to break-catch-syscall.c.
932 (_initialize_breakpoint): Move code related to syscall catchpoints
933 to break-catch-syscall.c.
935 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
937 * breakpoint.c (breakpoint_find_if): New function.
938 * breakpoint.h (breakpoint_find_if): New prototype.
940 2015-03-11 Gary Benson <gbenson@redhat.com>
942 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
943 * remote-fileio.c (remote_fileio_to_host_uint): New function.
944 (remote_fileio_to_host_ulong): Likewise.
945 (remote_fileio_to_host_mode): Likewise.
946 (remote_fileio_to_host_time): Likewise.
947 (remote_fileio_to_host_stat): Likewise.
948 * remote.c (PACKET_vFile_fstat): New enum value.
949 (remote_protocol_features): Register the "vFile:fstat" feature.
950 (remote_hostio_fstat): New function.
951 (remote_bfd_iovec_stat): Use the above.
952 (_initialize_remote): Register new "set/show remote
953 hostio-fstat-packet" command.
954 * symfile.c (separate_debug_file_exists): Update comment.
955 * NEWS: Announce new vFile:fstat packet.
957 2015-03-11 Gary Benson <gbenson@redhat.com>
959 * common/common-remote-fileio.h: New file.
960 * common/common-remote-fileio.c: Likewise.
961 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
962 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
963 (COMMON_OBS): Add common-remote-fileio.o.
964 (common-remote-fileio.o): New rule.
965 * remote-fileio.h (common-remote-fileio.h): New include.
966 * remote-fileio.c (gdb/fileio.h): Do not include.
967 (remote_fileio_to_be): Moved to common-remote-fileio.h.
968 (remote_fileio_to_fio_uint): Likewise.
969 (remote_fileio_to_fio_time): Likewise.
970 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
971 (remote_fileio_to_fio_mode): Likewise.
972 (remote_fileio_to_fio_ulong): Likewise.
973 (remote_fileio_to_fio_stat): Likewise.
975 2015-03-11 Andy Wingo <wingo@igalia.com>
977 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
978 we were checking the cached type, not the cached dynamic type.
980 2015-03-11 Andy Wingo <wingo@igalia.com>
982 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
983 other strings, as these are on the GC'd heap, and will be
984 collected along with the smob.
986 2015-03-11 Andy Wingo <wingo@igalia.com>
988 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
989 (objfile_functions): Bind gdbscm_objfile_progspace to
991 * guile/lib/gdb.scm: Add objfile-progspace to exports.
993 2015-03-11 Andy Wingo <wingo@igalia.com>
995 * guile/guile.c (_initialize_guile): Disable automatic
996 finalization, if Guile offers us that possibility.
997 * guile/guile.c (call_initialize_gdb_module):
998 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
999 finalizers in appropriate places.
1000 * configure.ac (AC_TRY_LIBGUILE): Add a check for
1001 scm_set_automatic_finalization_enabled.
1002 * configure: Regenerated.
1004 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
1006 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
1009 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
1011 * s390-linux-nat.c (struct arch_lwp_info): New.
1012 (s390_fix_watch_points): Rename to...
1013 (s390_prepare_to_resume): ...this. Skip the PER info update
1014 unless the watch points have changed.
1015 (s390_refresh_per_info, s390_new_thread): New functions.
1016 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
1017 s390_fix_watch_points.
1018 (s390_remove_watchpoint): Likewise.
1019 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
1020 Register s390_prepare_to_resume.
1022 2015-03-09 Pedro Alves <palves@redhat.com>
1025 2015-03-07 Pedro Alves <palves@redhat.com>
1026 * common/gdb_socket.h: New file.
1027 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
1029 (net_open): Use union gdb_sockaddr_u.
1031 2015-03-07 Pedro Alves <palves@redhat.com>
1033 * configure.ac (build_warnings): Move -Wmissing-prototypes
1034 -Wdeclaration-after-statement -Wmissing-parameter-type
1035 -Wold-style-declaration -Wold-style-definition to the C-specific
1037 * configure: Regenerate.
1039 2015-03-07 Pedro Alves <palves@redhat.com>
1041 * common/gdb_socket.h: New file.
1042 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
1044 (net_open): Use union gdb_sockaddr_u.
1046 2015-03-07 Pedro Alves <palves@redhat.com>
1048 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
1049 (exceptions_state_mc_action_iter)
1050 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
1052 [__cplusplus] (try_scope_depth): New global.
1053 [__cplusplus] (exception_try_scope_entry)
1054 (exception_try_scope_exit, gdb_exception_sliced_copy)
1055 (exception_rethrow): New functions.
1056 (throw_exception): In C++ mode, throw
1057 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
1058 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
1059 (throw_it): In C++ mode, use try_scope_depth.
1060 * common/common-exceptions.h [!__cplusplus]
1061 (exceptions_state_mc_action_iter)
1062 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
1064 [__cplusplus] (exception_try_scope_entry)
1065 (exception_try_scope_exit, exception_rethrow): Declare.
1066 [__cplusplus] (struct exception_try_scope): New struct.
1067 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
1069 (struct gdb_exception_RETURN_MASK_ALL)
1070 (struct gdb_exception_RETURN_MASK_ERROR)
1071 (struct gdb_exception_RETURN_MASK_QUIT): New types.
1073 2015-03-07 Pedro Alves <palves@redhat.com>
1075 * main.c (handle_command_errors): Remove volatile qualifier from
1078 2015-03-07 Pedro Alves <palves@redhat.com>
1080 * breakpoint.c (save_breakpoints): Adjust to avoid code between
1082 * gdbtypes.c (safe_parse_type): Remove empty line.
1083 (types_deeply_equal):
1084 * guile/scm-frame.c (gdbscm_frame_name):
1085 * linux-thread-db.c (find_new_threads_once):
1086 * python/py-breakpoint.c (bppy_get_commands):
1087 * record-btrace.c (record_btrace_insert_breakpoint)
1088 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
1089 (record_btrace_start_replaying): Adjust to avoid code between TRY
1092 2015-03-07 Pedro Alves <palves@redhat.com>
1094 * common/common-exceptions.c (struct catcher) <exception>: No
1095 longer a pointer to volatile exception. Now an exception value.
1096 <mask>: Delete field.
1097 (exceptions_state_mc_init): Remove all parameters. Adjust.
1098 (exceptions_state_mc): No longer pop the catcher here.
1099 (exceptions_state_mc_catch): New function.
1100 (throw_exception): Adjust.
1101 * common/common-exceptions.h (exceptions_state_mc_init): Remove
1103 (exceptions_state_mc_catch): Declare.
1104 (TRY_CATCH): Rename to ...
1105 (TRY): ... this. Remove EXCEPTION and MASK parameters.
1106 (CATCH, END_CATCH): New.
1107 All callers adjusted.
1109 2015-03-07 Tom Tromey <tromey@redhat.com>
1111 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
1113 2015-03-07 Pedro Alves <palves@redhat.com>
1115 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
1116 (amd64_epilogue_frame_cache): Normal exception handling code.
1117 * break-catch-throw.c (check_status_exception_catchpoint)
1118 (re_set_exception_catchpoint): Ditto.
1119 * cli/cli-interp.c (safe_execute_command):
1120 * cli/cli-script.c (script_from_file): Ditto.
1121 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
1123 * compile/compile-object-run.c (compile_object_run): Ditto.
1124 * cp-abi.c (baseclass_offset): Ditto.
1125 * cp-valprint.c (cp_print_value): Ditto.
1126 * exceptions.c (catch_exceptions_with_msg):
1127 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
1128 * frame.c (get_frame_address_in_block_if_available): Ditto.
1129 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
1130 (i386_sigtramp_frame_cache): Ditto.
1131 * infcmd.c (post_create_inferior): Ditto.
1132 * linespec.c (parse_linespec, find_linespec_symbols):
1133 * p-valprint.c (pascal_object_print_value): Ditto.
1134 * parse.c (parse_expression_for_completion): Ditto.
1135 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
1136 * remote.c (remote_get_noisy_reply): Ditto.
1137 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
1138 * solib-svr4.c (solib_svr4_r_map): Ditto.
1140 2015-03-06 Gary Benson <gbenson@redhat.com>
1142 * common/common-utils.h (startswith): New inline function.
1143 All places where this logic was used updated to use the above.
1145 2015-03-05 Pedro Alves <palves@redhat.com>
1148 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
1149 after reading the breakpoint's shadow memory.
1151 2015-03-05 Mark Kettenis <kettenis@gnu.org>
1153 * hppabsd-nat.c: Remove file.
1154 * hppaobsd-nat.c: New file.
1155 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
1157 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
1160 2015-03-04 Pedro Alves <palves@redhat.com>
1162 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
1163 (target_decr_pc_after_break): Delete declaration.
1164 * target.c (default_target_decr_pc_after_break)
1165 (target_decr_pc_after_break): Delete.
1166 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
1167 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
1168 * linux-thread-db.c (check_event): Likewise.
1169 * infrun.c (adjust_pc_after_break): Likewise.
1170 * darwin-nat.c (cancel_breakpoint): Likewise.
1171 * aix-thread.c (aix_thread_wait): Likewise.
1172 * target-delegates.c: Regenerate.
1174 2015-03-04 Pedro Alves <palves@redhat.com>
1176 * linux-nat.c (save_sigtrap): Check for breakpoints before
1177 checking watchpoints.
1178 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
1179 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
1180 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
1181 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
1182 (linux_nat_stopped_by_sw_breakpoint)
1183 (linux_nat_supports_stopped_by_sw_breakpoint)
1184 (linux_nat_stopped_by_hw_breakpoint)
1185 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
1186 (linux_nat_wait_1): Don't re-increment the PC if relying on
1187 SIGTRAP's siginfo->si_code.
1188 (linux_nat_add_target): Install new target methods.
1189 * linux-thread-db.c (check_event): Don't account for breakpoint PC
1190 offset if the target already adjusted the PC.
1191 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
1192 (GDB_ARCH_TRAP_BRKPT): New.
1193 (TRAP_HWBKPT): Define if not already defined.
1195 2015-03-04 Pedro Alves <palves@redhat.com>
1197 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
1198 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
1200 <stop_reason>: New field.
1201 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
1202 (packet_set_cmd_state): New function.
1203 (remote_protocol_features): Register the "swbreak" and "hwbreak"
1205 (remote_query_supported): If not disabled with the corresponding
1206 "set remote foo-packet" command, report support for the swbreak
1207 and hwbreak features.
1208 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
1210 <stop_reason>: New field.
1211 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
1212 (remote_wait_as): Adjust.
1213 (remote_stopped_by_sw_breakpoint)
1214 (remote_supports_stopped_by_sw_breakpoint)
1215 (remote_stopped_by_hw_breakpoint)
1216 (remote_supports_stopped_by_hw_breakpoint): New functions.
1217 (remote_stopped_by_watchpoint): New function.
1218 (init_remote_ops): Install them.
1219 (_initialize_remote): Register new "set/show remote
1220 swbreak-feature-packet" and "set/show remote
1221 swbreak-feature-packet" commands.
1223 2015-03-04 Pedro Alves <palves@redhat.com>
1225 * btrace.h: Include target/waitstatus.h.
1226 (struct btrace_thread_info) <stop_reason>: New field.
1227 * record-btrace.c (record_btrace_step_thread): Use
1228 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
1229 (record_btrace_decr_pc_after_break): Delete.
1230 (record_btrace_stopped_by_sw_breakpoint)
1231 (record_btrace_supports_stopped_by_sw_breakpoint)
1232 (record_btrace_stopped_by_hw_breakpoint)
1233 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
1234 (init_record_btrace_ops): Install them.
1235 * record-full.c (record_full_hw_watchpoint): Delete and replace
1237 (record_full_stop_reason): ... this throughout.
1238 (record_full_exec_insn): Adjust.
1239 (record_full_wait_1): Adjust. No longer re-increment the PC.
1240 (record_full_wait_1): Adjust. Use
1241 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
1242 (record_full_stopped_by_watchpoint): Adjust.
1243 (record_full_stopped_by_sw_breakpoint)
1244 (record_full_supports_stopped_by_sw_breakpoint)
1245 (record_full_supports_stopped_by_sw_breakpoint)
1246 (record_full_stopped_by_hw_breakpoint)
1247 (record_full_supports_stopped_by_hw_breakpoint): New functions.
1248 (init_record_full_ops, init_record_full_core_ops): Install them.
1249 * record.c (record_check_stopped_by_breakpoint): New function.
1250 * record.h: Include target/waitstatus.h.
1251 (record_check_stopped_by_breakpoint): New declaration.
1253 2015-03-04 Pedro Alves <palves@redhat.com>
1255 enum lwp_stop_reason -> enum target_stop_reason
1256 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
1257 (linux_nat_stopped_by_watchpoint, status_callback)
1258 (linux_nat_wait_1): Adjust.
1259 * linux-nat.h (enum lwp_stop_reason): Delete.
1260 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
1261 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
1262 * target/waitstatus.h (enum target_stop_reason): New.
1264 2015-03-04 Pedro Alves <palves@redhat.com>
1266 * breakpoint.c (need_moribund_for_location_type): New function.
1267 (bpstat_stop_status): Don't skipping checking moribund locations
1268 of breakpoint types which the target tell caused a stop.
1269 (program_breakpoint_here_p): New function, factored out from ...
1270 (bp_loc_is_permanent): ... this.
1271 (update_global_location_list): Don't create a moribund location if
1272 the target supports reporting stops of the type of the removed
1274 * breakpoint.h (program_breakpoint_here_p): New declaration.
1275 * infrun.c (adjust_pc_after_break): Return early if the target has
1276 already adjusted the PC. Add comments.
1277 (handle_signal_stop): If nothing explains a signal, and the target
1278 tells us the stop was caused by a software breakpoint, check if
1279 there's a breakpoint instruction in the memory. If so, adjust the
1280 PC before presenting the stop to the user. Otherwise, ignore the
1281 trap. If nothing explains a signal, and the target tells us the
1282 stop was caused by a hardware breakpoint, ignore the trap.
1283 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
1284 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
1285 to_supports_stopped_by_hw_breakpoint>: New fields.
1286 (target_stopped_by_sw_breakpoint)
1287 (target_supports_stopped_by_sw_breakpoint)
1288 (target_stopped_by_hw_breakpoint)
1289 (target_supports_stopped_by_hw_breakpoint): Define.
1290 * target-delegates.c: Regenerate.
1292 2015-03-04 Pedro Alves <palves@redhat.com>
1294 * infrun.c (follow_fork_inferior): Use the whole of the
1295 inferior_ptid and pending_follow.related_pid ptids instead of
1296 building ptids from the process components. Adjust verbose output
1297 to use target_pid_to_str.
1298 * linux-nat.c (linux_child_follow_fork): Use the whole of the
1299 inferior_ptid and pending_follow.related_pid ptids instead of
1300 building ptids from the process components.
1302 2015-03-04 Mark Kettenis <kettenis@gnu.org>
1304 * inf-ptrace.c [PT_GET_PROCESS_STATE]
1305 (inf_ptrace_insert_fork_catchpoint): New function.
1306 (inf_ptrace_remove_fork_catchpoint): New function.
1307 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
1309 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
1311 * s390-linux-tdep.c (s390_register_name): Return empty string
1312 instead of NULL for registers that shouldn't be visible.
1314 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
1316 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
1317 XML file for 64-bit targets.
1319 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
1321 * target.h (find_default_create_inferior): Remove declaration.
1322 (find_default_attach): Likewise.
1324 2015-03-03 Pedro Alves <palves@redhat.com>
1326 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
1327 Use ptid_get_pid to get the overall process id when resuming all
1330 2015-03-03 Pedro Alves <palves@redhat.com>
1332 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
1333 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
1334 * inf-ptrace.c (get_ptrace_pid): New function.
1335 (inf_ptrace_resume): Use it.
1336 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
1339 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
1341 * nat/linux-btrace.c: Include sys/utsname.h.
1342 (linux_determine_kernel_ptr_bits): New.
1343 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
1344 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
1347 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
1349 * btrace.c (ftrace_update_function): Treat return as tailcall for
1350 "_dl_runtime_resolve".
1352 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
1354 * btrace.h (btrace_function) <lbegin, lend>: Remove.
1355 * btrace.c (ftrace_debug): Do not print the line range.
1356 (ftrace_skip_file, ftrace_update_lines): Remove.
1357 (ftrace_new_function): Remove lbegin and lend initialization.
1358 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
1359 * record-btrace.c (btrace_compute_src_line_range): New.
1360 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
1362 2015-03-02 Pedro Alves <palves@redhat.com>
1364 * infrun.c (follow_exec): Delete all threads of the process except
1365 the event thread. Extended comments.
1367 2015-03-02 Joel Brobecker <brobecker@adacore.com>
1369 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
1371 2015-03-02 Joel Brobecker <brobecker@adacore.com>
1373 * utils.h: Remove <stdbool.h> #include.
1374 (producer_is_gcc): Change return type to "int".
1375 * utils.c (producer_is_gcc): Change return type to int.
1376 Return 1 instead of true, and 0 instead of false.
1377 Adjust function documentation accordingly.
1379 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
1381 * s390-linux-nat.c (have_regset_vxrs): New static variable.
1382 (s390_linux_fetch_inferior_registers): Handle vector registers, if
1384 (s390_linux_store_inferior_registers): Likewise.
1385 (s390_get_hwcap): Remove function. Embed its logic...
1386 (s390_read_description): ...here. Yield a target description with
1387 vector registers if applicable.
1388 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
1389 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
1390 "features/s390x-tevx-linux64.c".
1391 (struct gdbarch_tdep) <v0_full_regnum>: New field.
1392 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
1393 for "GNU/Linux-specific registers".
1394 (s390_dwarf_reg_r0l): New enum value.
1395 (s390_dwarf_reg_to_regnum): Support vector registers.
1396 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
1397 of GPR lower halves.
1398 (regnum_is_vxr_full): New function.
1399 (s390_register_name): New function.
1400 (s390_pseudo_register_name): Handle v0-v15, which are composed of
1401 f0-f15 and v0l-v15l.
1402 (s390_pseudo_register_type): Likewise.
1403 (s390_pseudo_register_read): Likewise.
1404 (s390_pseudo_register_write): Likewise.
1405 (s390_value_from_register): Account for the fact that values are
1406 placed left-justified in vector registers.
1407 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
1408 the vector reggroup and omit them from the general reggroup.
1409 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
1410 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
1411 (s390_iterate_over_regset_sections): Add iterations for the two
1413 (s390_core_read_description): Yield a target description with
1414 vector registers if applicable.
1415 (s390_gdbarch_init): Handle target descriptions with vector
1416 registers. Add "register_name" gdbarch method.
1417 (_initialize_s390_tdep): Call new tdesc initialization functions.
1418 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
1419 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
1420 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
1421 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
1422 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
1423 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
1424 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
1425 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
1426 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
1427 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
1428 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
1429 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
1430 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
1431 (S390_NUM_REGS): Adjust value.
1432 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
1433 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
1434 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
1435 * NEWS: Announce S/390 vector register support.
1437 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
1439 * features/s390-tevx-linux64.xml: New file.
1440 * features/s390-vx-linux64.xml: New file.
1441 * features/s390-vx.xml: New file.
1442 * features/s390x-tevx-linux64.xml: New file.
1443 * features/s390x-vx-linux64.xml: New file.
1444 * features/Makefile (WHICH): Add s390-vx-linux64,
1445 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
1446 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
1447 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
1449 * features/s390-tevx-linux64.c: New generated file.
1450 * features/s390-vx-linux64.c: Likewise.
1451 * features/s390x-tevx-linux64.c: Likewise.
1452 * features/s390x-vx-linux64.c: Likewise.
1453 * regformats/s390-tevx-linux64.dat: Likewise.
1454 * regformats/s390-vx-linux64.dat: Likewise.
1455 * regformats/s390x-tevx-linux64.dat: Likewise.
1456 * regformats/s390x-vx-linux64.dat: Likewise.
1458 2015-02-28 Doug Evans <xdje42@gmail.com>
1460 * symtab.h (struct symtab) <next>: Fix comment.
1462 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
1464 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
1467 2015-02-27 Pedro Alves <palves@redhat.com>
1469 * dtrace-probe.c (dtrace_probe_ops): Make extern.
1471 2015-02-27 Pedro Alves <palves@redhat.com>
1473 * common/common-exceptions.h (exception_none): Declare.
1474 * common/common-exceptions.c (exception_none): Moved from
1476 (exceptions_state_mc_init): Use exception_none.
1477 * exceptions.c (exception_none): Move to
1478 common/common-exceptions.c.
1479 * exceptions.h (exception_none): Move to
1480 common/common-exceptions.h.
1482 2015-02-27 Pedro Alves <palves@redhat.com>
1484 * main.c (catch_command_errors, catch_command_errors_const):
1485 Remove 'mask' argument. Adjust.
1486 (captured_main): Adjust callers.
1488 2015-02-27 Pedro Alves <palves@redhat.com>
1490 * python/python-internal.h: Include "extension-priv.h".
1492 2015-02-27 Pedro Alves <palves@redhat.com>
1494 * breakpoint.h (enum print_stop_action): Move further up in the
1497 2015-02-27 Pedro Alves <palves@redhat.com>
1499 * gdbarch.sh: Include regcache.h.
1500 * gdbarch.h: Regenerate.
1502 2015-02-27 Pedro Alves <palves@redhat.com>
1504 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
1505 Remove duplicate const.
1506 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
1509 2015-02-27 Pedro Alves <palves@redhat.com>
1511 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
1512 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
1513 * features/feature_to_c.sh: Tag the generated xml_builtin array
1514 with extern const in C++ mode.
1516 2015-02-27 Tom Tromey <tromey@redhat.com>
1518 * minidebug.c (struct lzma_stream): Rename to ...
1519 (struct gdb_lzma_stream): ... this.
1520 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
1522 2015-02-27 Pedro Alves <palves@redhat.com>
1524 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
1526 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
1527 (mi_cmd_stack_list_variables): Use it.
1529 2015-02-27 Pedro Alves <palves@redhat.com>
1531 * x86-linux-nat.c (u_debugreg_offset): New function.
1532 (x86_linux_dr_get, x86_linux_dr_set): Use it.
1534 2015-02-27 Pedro Alves <palves@redhat.com>
1536 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
1538 Include break-common.h.
1540 2015-02-27 Tom Tromey <tromey@redhat.com>
1541 Pedro Alves <palves@redhat.com>
1543 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
1544 local used to iterate over enums.
1545 * completer.c (signal_completer): Likewise.
1546 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
1547 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
1548 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
1549 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
1550 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
1551 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
1552 * tui-wingeneral.c (tui_refresh_all): Likewise.
1554 2015-02-27 Pedro Alves <palves@redhat.com>
1556 * target.h: Include "infrun.h".
1558 2015-02-27 Pedro Alves <palves@redhat.com>
1560 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
1562 2015-02-27 Pedro Alves <palves@redhat.com>
1564 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
1566 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
1568 2015-02-27 Pedro Alves <palves@redhat.com>
1570 * cli-out.c (_rl_erase_entire_line): Move declaration out of
1571 cli_mld_erase_entire_line, and make it extern "C".
1572 * common/common-defs.h (EXTERN_C): New.
1573 * completer.c (_rl_completion_prefix_display_length)
1574 (_rl_print_completions_horizontally, QSFUNC): Move declarations
1575 out of gdb_display_match_list_1.
1576 (_rl_qsort_string_compare): Move declaration out of
1577 gdb_display_match_list_1, and make it extern "C".
1578 * defs.h (re_comp): Use EXTERN_C.
1579 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
1580 and make it extern "C".
1581 (monstartup): Move declaration out of maintenance_set_profile_cmd,
1582 and make it extern "C".
1583 (main): Move declaration out of maintenance_set_profile_cmd.
1584 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
1587 2015-02-27 Pedro Alves <palves@redhat.com>
1589 * python/python.c (GdbMethods): Rename to ...
1590 (python_GdbMethods): ... this and make extern.
1591 (GdbModuleDef): Rename to ...
1592 (python_GdbModuleDef): ... this and make extern.
1594 2015-02-27 Pedro Alves <palves@redhat.com>
1596 * record-btrace.c (set_record_btrace_cmdlist)
1597 (show_record_btrace_cmdlist): Remove redefinitions.
1599 2015-02-27 Tom Tromey <tromey@redhat.com>
1600 Pedro Alves <palves@redhat.com>
1602 * dwarf2-frame.c (enum cfa_how_kind, struct
1603 dwarf2_frame_state_reg_info): Move out of struct
1605 * dwarf2read.c (struct tu_stats): Move out of struct
1607 (struct file_entry): Move out of struct line_header.
1608 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
1609 typedef_field_list): Move out of struct field_info.
1610 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
1611 Move out of struct dynamic_prop.
1612 (union type_owner, union field_location, struct field, struct
1613 range_bounds, union type_specific): Move out of struct main_type.
1614 (struct fn_fieldlist, struct fn_field, struct typedef_field)
1615 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
1616 (struct call_site_target, union call_site_parameter_u, struct
1617 call_site_parameter): Move out of struct call_site.
1618 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
1620 (enum srcdest_kind): Move out of struct srcdest.
1621 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
1622 * prologue-value.h (enum prologue_value_kind): Move out of struct
1624 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
1626 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
1627 out of struct field_info.
1628 * symfile.h (struct other_sections): Move out of struct
1630 * symtab.c (struct symbol_cache_slot): Move out struct
1632 * target-descriptions.c (enum tdesc_type_kind): Move out of
1633 typedef struct tdesc_type.
1634 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
1635 struct tui_line_or_address.
1636 * value.c (enum internalvar_kind, union internalvar_data): Move
1637 out of struct internalvar.
1638 * xtensa-tdep.h (struct ctype_cache): Move out of struct
1641 2015-02-27 Tom Tromey <tromey@redhat.com>
1642 Pedro Alves <palves@redhat.com>
1644 Rename symbols whose names are reserved C++ keywords throughout.
1646 2015-02-27 Pedro Alves <palves@redhat.com>
1648 * Makefile.in (COMPILER): New, get it from autoconf.
1649 (COMPILE.pre, CC_LD): Use COMPILER.
1650 (CXX): Get from autoconf instead.
1651 (CXX_FOR_TARGET): Default to g++ instead of gcc.
1652 * acinclude.m4: Include build-with-cxx.m4.
1653 * build-with-cxx.m4: New file.
1654 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
1655 Disable -Werror by default if building in C++ mode.
1656 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
1657 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
1658 Run supported-warning-flags tests with the C++ compiler.
1659 Save/restore CXXFLAGS too.
1660 * configure: Regenerate.
1662 2015-02-27 Pedro Alves <palves@redhat.com>
1664 * libiberty.m4: New file.
1665 * acinclude.m4: Include libiberty.m4.
1666 * configure.ac: Call libiberty_INIT.
1667 * config.in, configure: Regenerate.
1669 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
1671 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
1672 31-bit targets, but 64-bit targets as well.
1673 (s390_gnu_triplet_regexp): New function.
1674 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
1675 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
1678 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
1680 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
1681 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
1682 from CONTEXT_DEBUGGER.
1684 2015-02-26 Doug Evans <dje@google.com>
1686 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
1688 (set_type_vptr_fieldno): Ditto.
1689 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
1690 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
1692 2015-02-26 Pedro Alves <palves@redhat.com>
1694 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
1695 * complaints.c (vcomplaint): Pass argument FMT directly to
1696 printf-like functions instead of complaint->fmt.
1697 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
1698 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
1699 * compile/compile-loc2c.c (pushf, unary, binary): Add
1701 (do_compile_dwarf_expr_to_c): Pass string literal as format string
1703 (BINARY): Pass string literal as format string to 'binary'.
1704 * compile/compile-object-load.c (link_callbacks_einfo): Add
1706 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
1708 2015-02-26 Pedro Alves <palves@redhat.com>
1710 * windows-termcap.c: Rename to ...
1711 * stub-termcap.c: ... this. Adjust header line.
1712 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
1714 * configure: Regenerate.
1715 * configure.ac: Refer to stub-termcap.o instead of
1717 * gdb_curses.h: Mention stub-termcap.c instead of
1720 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1722 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
1723 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
1725 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
1727 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
1729 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1731 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
1732 bfd_canonicalize_symtab.
1734 2015-02-25 John Baldwin <jhb@FreeBSD.org>
1736 * amd64fbsd-nat.c: Include sys/user.h.
1737 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
1738 instead of KERN_PS_STRINGS to locate the signal trampoline.
1739 * i386fbsd-nat.c: Include sys/user.h.
1740 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
1741 instead of KERN_PS_STRINGS to locate the signal trampoline.
1742 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
1743 (amd64fbsd_sigtramp_p): New.
1744 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
1745 longer set default values.
1746 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
1747 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
1748 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
1749 (i386fbsd_freebsd4_sigtramp_start)
1750 (i386fbsd_freebsd4_sigtramp_middle)
1751 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
1752 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
1753 (i386fbsd_sigtramp_p): New.
1754 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
1755 longer set default values.
1756 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
1758 2015-02-25 John Baldwin <jhb@freebsd.org>
1760 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
1761 get_frame_register instead of frame_unwind_register_unsigned.
1763 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1766 * compile/compile-c-support.c (c_compute_program): Change // comment.
1767 * compile/compile-object-load.c (setup_sections): Change // comment.
1769 2015-02-26 Joel Brobecker <brobecker@adacore.com>
1772 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
1774 2015-02-23 Pedro Alves <palves@redhat.com>
1776 * remote.c (skip_to_semicolon): New function.
1777 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
1778 special case the stop reasons that look like hex numbers
1779 upfront. Instead handle real register numbers after matching
1780 all the known stop reasons.
1782 2015-02-21 Doug Evans <dje@google.com>
1784 PR c++/17976, symtab/17821
1785 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
1786 is_in_anonymous. All callers updated.
1787 (find_symbol_in_baseclass): Ditto.
1788 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
1789 for symbols in an anonymous namespace.
1790 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
1791 DW_AT_name directly.
1792 (dwarf2_name): Convert missing namespace name to
1793 CP_ANONYMOUS_NAMESPACE_STR.
1795 2015-02-20 Pedro Alves <palves@redhat.com>
1797 * linux-nat.c (linux_handle_extended_wait): Call
1798 thread_db_notice_clone whenever a new clone LWP is detected.
1799 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
1801 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
1802 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
1803 (linux_unstop_all_lwps): Declare.
1804 * linux-thread-db.c (struct thread_get_info_inout): Delete.
1805 (thread_get_info_callback): Delete.
1806 (thread_from_lwp): Use td_thr_get_info and record_thread.
1807 (thread_db_attach_lwp): Delete.
1808 (thread_db_notice_clone): New function.
1809 (try_thread_db_load_1): If /proc is mounted and shows the
1810 process'es task list, walk over all LWPs and call thread_from_lwp
1811 instead of relying on td_ta_thr_iter.
1812 (attach_thread): Don't call check_thread_signals here. Split the
1813 tail part of the function (which adds the thread to the core GDB
1815 (record_thread): ... this function. Call check_thread_signals
1817 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
1818 call thread_from_lwp.
1819 (thread_db_update_thread_list): Rename to ...
1820 (thread_db_update_thread_list_org): ... this.
1821 (thread_db_update_thread_list): New function.
1822 (thread_db_find_thread_from_tid): Delete.
1823 (thread_db_get_ada_task_ptid): Simplify.
1824 * nat/linux-procfs.c: Include <sys/stat.h>.
1825 (linux_proc_task_list_dir_exists): New function.
1826 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
1828 2015-02-20 Pedro Alves <palves@redhat.com>
1830 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
1831 main LWP. Handle the case of waitpid returning 0 if we're already
1832 attached to the LWP. Don't set the LWP's last_resume_kind to
1833 resume_stop if we already knew about the LWP.
1834 (linux_nat_filter_event): Add debug logs.
1836 2015-02-20 Pedro Alves <palves@redhat.com>
1838 * target.h (forward_target_decr_pc_after_break): Delete
1841 2015-02-20 Pedro Alves <palves@redhat.com>
1844 * linux-thread-db.c (thread_get_info_callback): Return early if
1845 the thread's lwp id is -1.
1847 2015-02-20 Joel Brobecker <brobecker@adacore.com>
1851 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
1853 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
1854 (dtrace_get_probes) Change type of variable 'dof'.
1856 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
1858 PR breakpoints/16812
1859 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
1860 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
1861 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
1863 2015-02-19 David Taylor <dtaylor@emc.com>
1865 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
1867 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
1869 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
1871 (tui_putc): Don't call tui_handle_resize_during_io.
1872 (tui_getc): Likewise.
1873 (tui_mld_getc): Likewise.
1874 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
1875 (tui_sigwinch_token): New static variable.
1876 (tui_initialize_win): Adjust documentation. Set
1878 (tui_async_resize_screen): New asynchronous callback.
1879 (tui_sigwinch_handler): Adjust documentation. Asynchronously
1880 invoke tui_async_resize_screen.
1882 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
1884 * configure: Regenerated.
1885 * configure.ac: Use GDB_AC_TRANSFORM.
1886 * Makefile.in (aclocal_m4_deps): Added transform.m4.
1887 * acinclude.m4: sinclude transform.m4.
1888 * transform.m4: New file.
1889 (GDB_AC_TRANSFORM): New macro.
1891 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
1893 * NEWS: Announce the support for DTrace SDT probes.
1895 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
1897 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
1898 (amd64_dtrace_parse_probe_argument): New function.
1899 (amd64_dtrace_probe_is_enabled): Likewise.
1900 (amd64_dtrace_enable_probe): Likewise.
1901 (amd64_dtrace_disable_probe): Likewise.
1902 (amd64_linux_init_abi): Register the
1903 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
1904 `gdbarch_dtrace_disable_probe' and
1905 `gdbarch_dtrace_probe_is_enabled' hooks.
1906 (amd64_dtrace_disabled_probe_sequence_1): New constant.
1907 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
1908 (amd64_dtrace_enable_probe_sequence): Likewise.
1909 (amd64_dtrace_disable_probe_sequence): Likewise.
1911 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
1913 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
1914 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
1915 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
1917 * Makefile.in (SFILES): dtrace-probe.c added.
1918 * configure: Regenerate.
1919 * dtrace-probe.c: New file.
1920 (SHT_SUNW_dof): New constant.
1921 (dtrace_probe_type): New enum.
1922 (dtrace_probe_arg): New struct.
1923 (dtrace_probe_arg_s): New typedef.
1924 (struct dtrace_probe_enabler): New struct.
1925 (dtrace_probe_enabler_s): New typedef.
1926 (dtrace_probe): New struct.
1927 (dtrace_probe_is_linespec): New function.
1928 (dtrace_dof_sect_type): New enum.
1929 (dtrace_dof_dofh_ident): Likewise.
1930 (dtrace_dof_encoding): Likewise.
1931 (DTRACE_DOF_ENCODE_LSB): Likewise.
1932 (DTRACE_DOF_ENCODE_MSB): Likewise.
1933 (dtrace_dof_hdr): New struct.
1934 (dtrace_dof_sect): Likewise.
1935 (dtrace_dof_provider): Likewise.
1936 (dtrace_dof_probe): Likewise.
1937 (DOF_UINT): New macro.
1938 (DTRACE_DOF_PTR): Likewise.
1939 (DTRACE_DOF_SECT): Likewise.
1940 (dtrace_process_dof_probe): New function.
1941 (dtrace_process_dof): Likewise.
1942 (dtrace_build_arg_exprs): Likewise.
1943 (dtrace_get_arg): Likewise.
1944 (dtrace_get_probes): Likewise.
1945 (dtrace_get_probe_argument_count): Likewise.
1946 (dtrace_can_evaluate_probe_arguments): Likewise.
1947 (dtrace_evaluate_probe_argument): Likewise.
1948 (dtrace_compile_to_ax): Likewise.
1949 (dtrace_probe_destroy): Likewise.
1950 (dtrace_gen_info_probes_table_header): Likewise.
1951 (dtrace_gen_info_probes_table_values): Likewise.
1952 (dtrace_probe_is_enabled): Likewise.
1953 (dtrace_probe_ops): New variable.
1954 (info_probes_dtrace_command): New function.
1955 (_initialize_dtrace_probe): Likewise.
1956 (dtrace_type_name): Likewise.
1958 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
1960 * gdbarch.sh (dtrace_parse_probe_argument): New.
1961 (dtrace_probe_is_enabled): Likewise.
1962 (dtrace_enable_probe): Likewise.
1963 (dtrace_disable_probe): Likewise.
1964 * gdbarch.c: Regenerate.
1965 * gdbarch.h: Regenerate.
1967 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
1969 * stap-probe.c (stap_probe_ops): Add NULLs in the static
1970 stap_probe_ops for `enable_probe' and `disable_probe'.
1971 * probe.c (enable_probes_command): New function.
1972 (disable_probes_command): Likewise.
1973 (_initialize_probe): Define the cli commands `enable probe' and
1975 (parse_probe_linespec): New function.
1976 (info_probes_for_ops): Use parse_probe_linespec.
1977 * probe.h (probe_ops): New hooks `enable_probe' and
1980 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
1982 * probe.c (compute_probe_arg): Moved from stap-probe.c
1983 (compile_probe_arg): Likewise.
1984 (probe_funcs): Likewise.
1985 * stap-probe.c (compute_probe_arg): Moved to probe.c.
1986 (compile_probe_arg): Likewise.
1987 (probe_funcs): Likewise.
1989 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
1991 * probe.c (print_ui_out_not_applicables): New function.
1992 (exists_probe_with_pops): Likewise.
1993 (info_probes_for_ops): Do not include column headers for probe
1994 types for which no probe has been actually found on any object.
1995 Also invoke `print_ui_out_not_applicables' in order to match the
1996 column rows with the header when probes of several types are
1998 Print the "Type" column.
1999 * probe.h (probe_ops): Added a new probe operation `type_name'.
2000 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
2001 (stap_type_name): New function.
2003 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
2005 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
2006 (key_is_command_char): Delete.
2008 2015-02-17 Pedro Alves <palves@redhat.com>
2010 * tui/tui.c (tui_enable): Resize windows before anything
2011 might show a window.
2013 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
2016 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
2017 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
2019 * aarch64-tdep.h (tdesc_aarch64): Declare.
2021 2015-02-12 Mark Wielaard <mjw@redhat.com>
2023 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
2025 2015-02-13 Doug Evans <dje@google.com>
2027 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
2028 anonymous_namespace to is_in_anonymous for consistency with the rest
2030 (cp_lookup_bare_symbol): Fix typo in comment.
2031 (cp_search_static_and_baseclasses): Ditto.
2032 (search_symbol_list): Use vertical space in comment better.
2033 (reset_directive_searched): Ditto. Fix typo.
2034 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
2036 2015-02-13 Yao Qi <yao.qi@arm.com>
2038 * MAINTAINERS: Update my email address.
2040 2015-02-12 Doug Evans <dje@google.com>
2042 * symtab.c (completion_list_add_name): Fix memory leak.
2044 2015-02-12 Doug Evans <dje@google.com>
2046 * completer.c (complete_line): Remove incorrect comment.
2048 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2050 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
2051 (py_print_frame): Use RETURN_MASK_ERROR.
2053 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2055 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
2056 function comment. Wrap all function that can throw in cleanups.
2057 (gdbpy_apply_frame_filter): Wrap all function that can throw in
2060 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2062 * python/py-framefilter.c (py_print_frame): Substitute goto error.
2063 Remove the error label.
2065 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2067 * python/py-framefilter.c (py_print_frame): Put conditional code paths
2068 with goto first, indent the former else codepath left. Put variable
2069 'elided' to a new inner block.
2071 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2073 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
2075 2015-02-11 Pedro Alves <palves@redhat.com>
2077 * xcoffread.c (within_function): Delete.
2079 2015-02-11 Tom Tromey <tromey@redhat.com>
2080 Pedro Alves <palves@redhat.com>
2082 * breakpoint.c (base_breakpoint_ops): Delete.
2083 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
2084 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
2085 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
2086 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
2087 * python/py-arch.c (arch_object_type): Make extern.
2088 * python/py-block.c (block_syms_iterator_object_type): Make extern.
2089 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
2090 * python/py-cmd.c (cmdpy_object_type): Make extern.
2091 * python/py-continueevent.c (continue_event_object_type)
2092 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
2093 parameter. Update all callers.
2094 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
2095 * python/py-exitedevent.c (exited_event_object_type): Make extern.
2096 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
2097 * python/py-function.c (fnpy_object_type): Make extern.
2098 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
2099 * python/py-infevents.c (call_pre_event_object_type)
2100 (inferior_call_post_event_object_type).
2101 (memory_changed_event_object_type): Make extern.
2102 * python/py-infthread.c (thread_object_type): Make extern.
2103 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
2104 * python/py-linetable.c (linetable_entry_object_type)
2105 (linetable_object_type, ltpy_iterator_object_type): Make extern.
2106 * python/py-newobjfileevent.c (new_objfile_event_object_type)
2107 (clear_objfiles_event_object_type): Make extern.
2108 * python/py-objfile.c (objfile_object_type): Make extern.
2109 * python/py-param.c (parmpy_object_type): Make extern.
2110 * python/py-progspace.c (pspace_object_type): Make extern.
2111 * python/py-signalevent.c (signal_event_object_type): Make extern.
2112 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
2113 * python/py-type.c (type_object_type, field_object_type)
2114 (type_iterator_object_type): Make extern.
2115 * python/python.c (python_extension_script_ops)
2116 (python_extension_ops): Make extern.
2117 * stap-probe.c (stap_probe_ops): Make extern.
2119 2015-02-11 Pedro Alves <pedro@codesourcery.com>
2121 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
2122 because the event thread is not the current thread.
2124 2015-02-11 Doug Evans <xdje42@gmail.com>
2126 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
2127 been initialized yet, return NULL.
2129 2015-02-11 Doug Evans <dje@google.com>
2131 * symfile.h (new_symfile_objfile): Delete.
2132 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
2133 All callers updated.
2135 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
2137 * tui/tui-io.c (tui_handle_resize_during_io): Call
2138 tui_update_gdb_sizes() after resizing the screen.
2139 * tui/tui.c (tui_enable): Resize the terminal before
2140 calling tui_update_gdb_sizes().
2142 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
2144 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
2145 line before printing a newline.
2147 2015-02-11 Mark Wielaard <mjw@redhat.com>
2149 * utils.c (producer_is_gcc): Return true or false.
2151 2015-02-10 Mark Wielaard <mjw@redhat.com>
2153 * utils.h (producer_is_gcc): Change return type to bool. Add major
2155 * utils.c (producer_is_gcc): Likewise.
2156 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
2157 * dwarf2read.c (check_producer): Likewise.
2159 2015-02-10 Pedro Alves <palves@redhat.com>
2161 * infrun.c (displaced_step_fixup): Switch to the event thread
2162 before calling gdbarch_displaced_step_fixup.
2164 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
2166 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
2168 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
2170 * ada-varobj.c (ada_name_of_child): Constify parent.
2171 (ada_path_expr_of_child): Same.
2172 (ada_value_of_child): Same.
2173 (ada_type_of_child): Same.
2174 * c-varobj.c (c_is_path_expr_parent): Same.
2175 (c_describe_child): Same.
2176 (c_name_of_child): Same.
2177 (c_value_of_child): Same.
2178 (c_type_of_child): Same.
2179 (cplus_number_of_children): Same.
2180 (cplus_describe_child): Constify var.
2181 (cplus_name_of_child): Constify parent.
2182 (cplus_value_of_child): Same.
2183 (cplus_type_of_child): Same.
2184 * jv-varobj.c (java_name_of_child): Same.
2185 (java_value_of_child): Same.
2186 (java_type_of_child): Same.
2187 * varobj.c (value_of_child): Same.
2188 (varobj_default_is_path_expr_parent): Constify var, parent and return
2190 (varobj_get_path_expr): Constify var, modify path_expr through
2192 (install_new_value): Constify parent.
2193 (value_of_child): Constify parent.
2194 * varobj.h (struct varobj): Constify parent.
2195 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
2197 (varobj_get_path_expr): Constify var.
2198 (varobj_get_path_expr_parent): Constify var and return value.
2200 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
2202 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
2203 (arm_prologue_this_id): Move PC and SP limit checks to
2204 arm_prologue_unwind_stop_reason.
2205 (arm_prologue_unwind) <stop_reason> : Set to
2206 arm_prologue_unwind_stop_reason.
2208 2015-02-09 Mark Wielaard <mjw@redhat.com>
2210 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
2211 DW_LANG_Fortran08 as language_fortran.
2213 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
2216 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
2217 of pointer against char.
2219 2015-02-09 Mark Wielaard <mjw@redhat.com>
2221 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
2222 (c_type_print_modifier): Likewise.
2223 * dwarf2read.c (read_tag_atomic_type): New function.
2224 (read_type_die_1): Handle DW_TAG_atomic_type.
2225 * gdbtypes.c (make_atomic_type): New function.
2226 (recursive_dump_type): Handle TYPE_ATOMIC.
2227 * gdbtypes.h (enum type_flag_values): Renumber.
2228 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
2229 (TYPE_ATOMIC): New macro.
2230 (make_atomic_type): Declare.
2232 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2234 * btrace.c (ftrace_find_call): Skip gaps.
2235 (ftrace_new_function): Initialize level.
2236 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
2237 (ftrace_new_switch): Update
2239 (ftrace_new_gap): New.
2240 (ftrace_update_function): Create new function after gap.
2241 (btrace_compute_ftrace_bts): Create gap on error.
2242 (btrace_stitch_bts): Update parameters. Clear trace if it
2244 (btrace_stitch_trace): Update parameters. Update callers.
2245 (btrace_clear): Reset the number of gaps.
2246 (btrace_insn_get): Return NULL if the iterator points to a gap.
2247 (btrace_insn_number): Return zero if the iterator points to a gap.
2248 (btrace_insn_end): Allow gaps at the end.
2249 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
2250 (btrace_find_insn_by_number): Assert that the found iterator does
2252 (btrace_call_next, btrace_call_prev): Assert that the last function
2254 * btrace.h (btrace_bts_error): New.
2255 (btrace_function): Update comment.
2256 (btrace_function) <insn, insn_offset, number>: Update comment.
2257 (btrace_function) <errcode>: New.
2258 (btrace_thread_info) <ngaps>: New.
2259 (btrace_thread_info) <replay>: Update comment.
2260 (btrace_insn_get): Update comment.
2261 * record-btrace.c (btrace_ui_out_decode_error): New.
2262 (record_btrace_info): Print number of gaps.
2263 (btrace_insn_history, btrace_call_history): Call
2264 btrace_ui_out_decode_error for gaps.
2265 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
2267 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2269 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
2270 * nat/linux-btrace.c: (btrace_this_cpu): New.
2271 (cpu_supports_bts): Call btrace_this_cpu.
2272 (intel_supports_bts): Add cpu parameter.
2274 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2276 * btrace.h (btrace_insn_class): New.
2277 (btrace_insn) <size, iclass>: New.
2278 * btrace.c (ftrace_find_call): Update parameters. Update users.
2279 Use instruction classification.
2280 (ftrace_new_return): Update parameters. Update users.
2281 (ftrace_update_function): Update parameters. Update users. Use
2282 instruction classification.
2283 (ftrace_update_insns): Update parameters. Update users.
2284 (ftrace_classify_insn): New.
2285 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
2286 TRY_CATCH around call to gdb_insn_length.
2288 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2290 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
2291 Update parameters. Update users.
2293 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2295 * btrace.c (parse_xml_btrace_conf_bts): Add size.
2296 (btrace_conf_bts_attributes): New.
2297 (btrace_conf_children): Add attributes.
2298 * common/btrace-common.h (btrace_config_bts): New.
2299 (btrace_config)<bts>: New.
2300 (btrace_config): Update comment.
2301 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
2303 * features/btrace-conf.dtd: Increment version. Add size
2304 attribute to bts element.
2305 * record-btrace.c (set_record_btrace_bts_cmdlist,
2306 show_record_btrace_bts_cmdlist): New.
2307 (record_btrace_adjust_size, record_btrace_print_bts_conf,
2308 record_btrace_print_conf, cmd_set_record_btrace_bts,
2309 cmd_show_record_btrace_bts): New.
2310 (record_btrace_info): Call record_btrace_print_conf.
2311 (_initialize_record_btrace): Add commands.
2312 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
2313 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
2314 (btrace_sync_conf): Synchronize bts size.
2315 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
2316 * NEWS: Announce new commands and new packets.
2318 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2320 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
2321 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
2322 (x86_linux_btrace_conf): New.
2323 (x86_linux_create_target): Initialize to_btrace_conf.
2324 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
2325 Check format. Split into this and ...
2326 (linux_enable_bts): ... this.
2327 (linux_btrace_conf): New.
2328 (perf_event_skip_record): Renamed into ...
2329 (perf_event_skip_bts_record): ... this. Updated users.
2330 (linux_disable_btrace): Split into this and ...
2331 (linux_disable_bts): ... this.
2332 (linux_read_btrace): Check format.
2333 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
2334 (linux_btrace_conf): New.
2335 (btrace_target_info)<ptid>: Moved.
2336 (btrace_target_info)<conf>: New.
2337 (btrace_target_info): Split into this and ...
2338 (btrace_tinfo_bts): ... this. Updated users.
2339 * btrace.c (btrace_enable): Update parameters.
2340 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
2341 (btrace_conf_children, btrace_conf_attributes)
2342 (btrace_conf_elements): New.
2343 * btrace.h (btrace_enable): Update parameters.
2344 (btrace_conf, parse_xml_btrace_conf): New.
2345 * common/btrace-common.h (btrace_config): New.
2346 * feature/btrace-conf.dtd: New.
2347 * record-btrace.c (record_btrace_conf): New.
2348 (record_btrace_cmdlist): New.
2349 (record_btrace_enable_warn, record_btrace_open): Pass
2350 &record_btrace_conf.
2351 (record_btrace_info): Print recording format.
2352 (cmd_record_btrace_bts_start): New.
2353 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
2354 (_initialize_record_btrace): Add "record btrace bts" subcommand.
2355 Add "record bts" alias command.
2356 * remote.c (remote_state)<btrace_config>: New.
2357 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
2358 (remote_protocol_features): Add qXfer:btrace-conf:read.
2359 (remote_open_1): Call remote_btrace_reset.
2360 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
2361 (btrace_target_info)<conf>: New.
2362 (btrace_sync_conf, btrace_read_config): New.
2363 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
2365 (remote_btrace_conf): New.
2366 (init_remote_ops): Initialize to_btrace_conf.
2367 (_initialize_remote): Add qXfer:btrace-conf packet.
2368 * target.c (target_enable_btrace): Update parameters.
2369 (target_btrace_conf): New.
2370 * target.h (target_enable_btrace): Update parameters.
2371 (target_btrace_conf): New.
2372 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
2373 (target_ops)<to_enable_btrace>: Update parameters and comment.
2374 (target_ops)<to_btrace_conf>: New.
2375 * target-delegates: Regenerate.
2376 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
2377 (target_debug_print_const_struct_btrace_target_info_p): New.
2378 * NEWS: Announce new command and new packet.
2380 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2382 * nat/linux-btrace.h (perf_event_buffer): New.
2383 (btrace_target_info) <buffer, size, data_head>: Replace with ...
2385 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
2386 (perf_event_buffer_size, perf_event_buffer_begin)
2387 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
2389 (perf_event_new_data): New.
2391 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2393 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
2394 * record-btrace.c (record_btrace_open): Remove call to
2395 target_supports_btrace.
2396 * remote.c (remote_supports_btrace): Update parameters.
2397 * target.c (target_supports_btrace): Update parameters.
2398 * target.h (to_supports_btrace, target_supports_btrace): Update
2400 * target-delegates.c: Regenerate.
2401 * target-debug.h (target_debug_print_enum_btrace_format): New.
2402 * nat/linux-btrace.c
2403 (kernel_supports_btrace): Rename into ...
2404 (kernel_supports_bts): ... this. Update users. Update warning text.
2405 (intel_supports_btrace): Rename into ...
2406 (intel_supports_bts): ... this. Update users.
2407 (cpu_supports_btrace): Rename into ...
2408 (cpu_supports_bts): ... this. Update users.
2409 (linux_supports_btrace): Update parameters. Split into this and ...
2410 (linux_supports_bts): ... this.
2411 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
2413 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
2415 * Makefile.in (SFILES): Add common/btrace-common.c.
2416 (COMMON_OBS): Add common/btrace-common.o.
2417 (btrace-common.o): Add build rules.
2418 * btrace.c (parse_xml_btrace): Update parameters.
2419 (parse_xml_btrace_block): Set format field.
2420 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
2421 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
2422 (btrace_compute_ftrace): Split into this and...
2423 (btrace_compute_ftrace_bts): ...this.
2424 (btrace_stitch_trace): Split into this and...
2425 (btrace_stitch_bts): ...this.
2426 * btrace.h (parse_xml_btrace): Update parameters.
2427 (make_cleanup_btrace_data): New.
2428 * common/btrace-common.c: New.
2429 * common/btrace-common.h: Include common-defs.h.
2430 (btrace_block_s): Update comment.
2431 (btrace_format): New.
2432 (btrace_format_string): New.
2433 (btrace_data_bts): New.
2435 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
2436 * remote.c (remote_read_btrace): Update parameters.
2437 * target.c (target_read_btrace): Update parameters.
2438 * target.h (target_read_btrace): Update parameters.
2439 (target_ops)<to_read_btrace>: Update parameters.
2440 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
2441 * target-delegates.c: Regenerate.
2442 * target-debug (target_debug_print_struct_btrace_data_p): New.
2443 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
2444 (linux_read_bts): ...this.
2445 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
2447 2015-02-06 Doug Evans <dje@google.com>
2449 * remote-m32r-sdi.c: Include symfile.h.
2451 2015-02-06 Doug Evans <dje@google.com>
2453 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
2454 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
2457 2015-02-06 Pedro Alves <palves@redhat.com>
2459 * linux-thread-db.c (find_new_threads_callback): Add debug output.
2461 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
2464 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
2465 (enable_count_command): Check args for NULL value.
2467 2015-02-05 Doug Evans <xdje42@gmail.com>
2469 * guile/scm-frame.c: Fix spelling errors in a comment.
2471 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2473 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
2474 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
2477 2015-02-04 Pedro Alves <palves@redhat.com>
2479 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
2480 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
2482 (resume_stopped_resumed_lwps): Don't check whether the thread is
2483 marked as executing.
2484 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
2486 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
2488 * regset.h (struct regset): Add flags field.
2489 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
2490 * corelow.c (get_core_register_section): Add warning if the size
2491 exceeds the requested size and the regset does not have the
2492 REGSET_VARIABLE_SIZE flag set.
2493 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
2495 * armbsd-tdep.c (armbsd_gregset): Likewise.
2496 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
2497 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
2498 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
2499 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
2501 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
2503 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
2504 For ".reg-xstate", explicitly specify the requested section size
2505 via X86_XSTATE_SIZE instead of just 0 on input and
2506 X86_XSTATE_MAX_SIZE on output.
2507 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
2510 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
2513 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
2514 function type, particularly its SIZE parameter.
2515 * gdbarch.h: Regenerate.
2516 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
2517 actual against required size using ">=" instead of "==".
2518 (amd64_collect_fpregset): Likewise.
2519 * i386-tdep.c (i386_supply_gregset): Likewise.
2520 (i386_collect_gregset): Likewise.
2521 (i386_supply_fpregset): Likewise.
2522 (i386_collect_fpregset): Likewise.
2523 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
2524 (mips_fill_gregset_wrapper): Likewise.
2525 (mips_supply_fpregset_wrapper): Likewise.
2526 (mips_fill_fpregset_wrapper): Likewise.
2527 (mips64_supply_gregset_wrapper): Likewise.
2528 (mips64_fill_gregset_wrapper): Likewise.
2529 (mips64_supply_fpregset_wrapper): Likewise.
2530 (mips64_fill_fpregset_wrapper): Likewise.
2531 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
2532 (am33_supply_fpregset_method): Likewise.
2533 (am33_collect_gregset_method): Likewise.
2534 (am33_collect_fpregset_method): Likewise.
2536 2015-02-04 Doug Evans <dje@google.com>
2537 Pedro Alves <palves@redhat.com>
2538 Eli Zaretskii <eliz@gnu.org>
2541 * tui/tui-command.c (tui_refresh_cmd_win): New function.
2542 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
2543 * tui/tui-file.c: #include tui/tui-command.h.
2544 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
2545 (tui_file_flush): Refresh command window if stream is gdb_stdout.
2546 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
2548 2015-02-04 Pedro Alves <palves@redhat.com>
2551 * event-loop.c (gdb_do_one_event): Add default switch case.
2553 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2555 Filter out inferior gcc option -fpreprocessed.
2556 * compile/compile.c (filter_args): New function.
2559 2015-02-03 Pedro Alves <palves@redhat.com>
2561 * event-loop.c: Don't declare nor define a queue type for
2563 (event_queue): Delete.
2564 (create_event, create_file_event, gdb_event_xfree)
2565 (initialize_event_loop, process_event): Delete.
2566 (gdb_do_one_event): Return as soon as one event is handled.
2567 (handle_file_event): Change prototype. Used the passed in
2568 file_handler pointer and ready_mask instead of looping over all
2570 (gdb_wait_for_event): Update the poll/select timeouts before
2571 blocking. Run event handlers directly instead of queueing events.
2572 Return as soon as one event is handled.
2573 (struct async_event_handler_data): Delete.
2574 (invoke_async_event_handler): Delete.
2575 (check_async_event_handlers): Change return type to int. Run
2576 event handlers directly instead of queueing events. Return as
2577 soon as one event is handled.
2578 (handle_timer_event): Delete.
2579 (update_wait_timeout): New function, factored out from
2581 (poll_timers): Reimplement.
2582 * event-loop.h (initialize_event_loop): Delete declaration.
2583 * top.c (gdb_init): Don't call initialize_event_loop.
2585 2015-02-03 Pedro Alves <palves@redhat.com>
2587 * event-loop.c (clear_async_event_handler): New function.
2588 * event-loop.h (clear_async_event_handler): New declaration.
2589 * record-btrace.c (record_btrace_async): New function.
2590 (init_record_btrace_ops): Install record_btrace_async.
2591 * record-full.c (record_full_async): New function.
2592 (record_full_resume): Don't mark the async event source here.
2593 (init_record_full_ops): Install record_full_async.
2594 (record_full_core_resume): Don't mark the async event source here.
2595 (init_record_full_core_ops): Install record_full_async.
2596 * remote.c (remote_async): Mark and clear the async stop reply
2597 queue event-loop token as appropriate.
2599 2015-02-03 Pedro Alves <palves@redhat.com>
2601 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
2602 target_is_async_p instead of target_can_async.
2603 (linux_nat_wait): Use target_is_async_p instead of
2604 target_can_async. Don't enable async here.
2605 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
2606 target_is_async_p instead of target_can_async.
2608 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
2610 * varobj.h (lang_varobj_ops): Mention which return values need
2613 2015-02-02 Joel Brobecker <brobecker@adacore.com>
2615 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
2617 2015-02-02 Joel Brobecker <brobecker@adacore.com>
2620 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
2621 results found in the cache.
2623 2015-02-02 Joel Brobecker <brobecker@adacore.com>
2626 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
2627 when allocating a new one.
2629 2015-02-01 Tom Tromey <tom@tromey.com>
2631 * MAINTAINERS: Remove myself.
2633 2015-01-31 Doug Evans <xdje42@gmail.com>
2635 * dwarf2read.c (process_structure_scope): Update setting of
2636 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
2637 * gdbtypes.c (internal_type_vptr_fieldno): New function.
2638 (set_type_vptr_fieldno): New function.
2639 (internal_type_vptr_basetype): New function.
2640 (set_type_vptr_basetype): New function.
2641 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
2643 (allocate_cplus_struct_type): Initialize vptr_fieldno.
2644 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
2645 (print_cplus_stuff): ... moved here.
2646 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
2647 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
2649 (struct cplus_struct_type): ... here. All uses updated.
2650 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
2651 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
2652 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
2653 * stabsread.c (read_tilde_fields): Update setting of
2654 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
2656 2015-01-31 Doug Evans <xdje42@gmail.com>
2658 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
2660 (cp_print_class_member): Rename local domain to self_type.
2661 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
2662 domain_type to self_type.
2663 (set_die_type) <need_gnat_info>: Handle
2664 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
2665 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
2666 TYPE_SPECIFIC_SELF_TYPE.
2667 * gdbtypes.c (internal_type_self_type): New function.
2668 (set_type_self_type): New function.
2669 (smash_to_memberptr_type): Rename parameter domain to self_type.
2670 Update setting of TYPE_SELF_TYPE.
2671 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
2672 (smash_to_method_type): Rename parameter domain to self_type.
2673 Update setting of TYPE_SELF_TYPE.
2674 (check_stub_method): Call smash_to_method_type.
2675 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
2676 (copy_type_recursive): Ditto.
2677 * gdbtypes.h (enum type_specific_kind): New value
2678 TYPE_SPECIFIC_SELF_TYPE.
2679 (struct main_type) <type_specific>: New member self_type.
2680 (struct cplus_struct_type) <fn_field.type>: Update comment.
2681 (TYPE_SELF_TYPE): Rewrite.
2682 (internal_type_self_type, set_type_self_type): Declare.
2683 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
2685 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
2686 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
2688 * stabsread.c (read_member_functions): Mark methods with
2689 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
2692 2015-01-31 Doug Evans <xdje42@gmail.com>
2694 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
2697 2015-01-31 Doug Evans <xdje42@gmail.com>
2699 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
2700 or unions. Return zero if union.
2701 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
2702 (gnuv3_rtti_type): Pass already-check_typedef'd value to
2704 (compute_vtable_size): Assert only passed structs.
2705 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
2707 2015-01-31 Doug Evans <xdje42@gmail.com>
2709 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
2712 2015-01-31 Gary Benson <gbenson@redhat.com>
2713 Doug Evans <dje@google.com>
2718 * cli/cli-cmds.c (complete_command): Notify user if max-completions
2720 * common/common-exceptions.h (enum errors)
2721 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
2722 * completer.h (get_max_completions_reached_message): New declaration.
2723 (max_completions): Likewise.
2724 (completion_tracker_t): New typedef.
2725 (new_completion_tracker): New declaration.
2726 (make_cleanup_free_completion_tracker): Likewise.
2727 (maybe_add_completion_enum): New enum.
2728 (maybe_add_completion): New declaration.
2729 (throw_max_completions_reached_error): Likewise.
2730 * completer.c (max_completions): New global variable.
2731 (new_completion_tracker): New function.
2732 (free_completion_tracker): Likewise.
2733 (make_cleanup_free_completion_tracker): Likewise.
2734 (maybe_add_completions): Likewise.
2735 (throw_max_completions_reached_error): Likewise.
2736 (complete_line): Remove duplicates and limit result to max_completions
2738 (get_max_completions_reached_message): New function.
2739 (gdb_display_match_list): Handle max_completions.
2740 (_initialize_completer): New declaration and function.
2741 * symtab.c: Include completer.h.
2742 (completion_tracker): New static variable.
2743 (completion_list_add_name): Call maybe_add_completion.
2744 (default_make_symbol_completion_list_break_on_1): Renamed from
2745 default_make_symbol_completion_list_break_on. Maintain
2746 completion_tracker across calls to completion_list_add_name.
2747 (default_make_symbol_completion_list_break_on): New function.
2748 * top.c (init_main): Set rl_completion_display_matches_hook.
2749 * tui/tui-io.c: Include completer.h.
2750 (tui_old_rl_display_matches_hook): New static global.
2751 (tui_rl_display_match_list): Notify user if max-completions reached.
2752 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
2753 * NEWS (New Options): Mention set/show max-completions.
2755 2015-01-31 Gary Benson <gbenson@redhat.com>
2757 * symtab.c (struct add_name_data) <code>: New field.
2759 (add_symtab_completions): New function.
2760 (symtab_expansion_callback): Likewise.
2761 (default_make_symbol_completion_list_break_on): Set datum.code.
2762 Move minimal symbol scan before calling expand_symtabs_matching.
2763 Scan known primary symtabs for externs and statics before calling
2764 expand_symtabs_matching. Pass symtab_expansion_callback as
2765 expansion_notify argument to expand_symtabs_matching. Do not scan
2766 primary symtabs for externs and statics after calling
2767 expand_symtabs_matching.
2769 2015-01-31 Gary Benson <gbenson@redhat.com>
2771 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
2772 (struct quick_symbol_functions) <expand_symtabs_matching>:
2773 New argument expansion_notify. All uses updated.
2774 (expand_symtabs_matching): New argument expansion_notify.
2776 * symfile-debug.c (debug_qf_expand_symtabs_matching):
2777 Also print expansion notify.
2778 * symtab.c (expand_symtabs_matching_via_partial): Call
2779 expansion_notify whenever a partial symbol table is expanded.
2780 * dwarf2read.c (dw2_expand_symtabs_matching): Call
2781 expansion_notify whenever a symbol table is instantiated.
2783 2015-01-31 Doug Evans <xdje42@gmail.com>
2785 * cli-out.c: #include completer.h, readline/readline.h.
2786 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
2787 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
2788 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
2789 * cli-out.h (cli_display_match_list): Declare.
2790 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
2791 (ELLIPSIS_LEN): Ditto.
2792 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
2793 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
2794 (gdb_fnprint, gdb_print_filename): Ditto.
2795 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
2796 (gdb_display_match_list): Ditto.
2797 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
2798 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
2799 (mld_beep_ftype, mld_read_key_ftype): Ditto.
2800 (match_list_displayer): New struct.
2801 (gdb_display_match_list): Declare.
2802 * top.c (init_main): Set rl_completion_display_matches_hook.
2803 * tui/tui-io.c: #include completer.h.
2804 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
2805 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
2806 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
2807 (tui_mld_getc, tui_mld_read_key): Ditto.
2808 (tui_rl_display_match_list): Rewrite.
2809 (tui_handle_resize_during_io): New arg for_completion. All callers
2812 2015-01-31 Doug Evans <xdje42@gmail.com>
2814 Add symbol lookup cache.
2815 * NEWS: Document new options and commands.
2816 * symtab.c (symbol_cache_key): New static global.
2817 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
2818 (SYMBOL_LOOKUP_FAILED): New macro.
2819 (symbol_cache_slot_state): New enum.
2820 (block_symbol_cache): New struct.
2821 (symbol_cache): New struct.
2822 (new_symbol_cache_size, symbol_cache_size): New static globals.
2823 (hash_symbol_entry, eq_symbol_entry): New functions.
2824 (symbol_cache_byte_size, resize_symbol_cache): New functions.
2825 (make_symbol_cache, free_symbol_cache): New functions.
2826 (get_symbol_cache, symbol_cache_cleanup): New function.
2827 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
2828 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
2829 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
2830 (symbol_cache_flush, symbol_cache_dump): New functions.
2831 (maintenance_print_symbol_cache): New function.
2832 (maintenance_flush_symbol_cache): New function.
2833 (symbol_cache_stats): New function.
2834 (maintenance_print_symbol_cache_statistics): New function.
2835 (symtab_new_objfile_observer): New function.
2836 (symtab_free_objfile_observer): New function.
2837 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
2838 (_initialize_symtab): Init symbol_cache_key. New parameter
2839 maint symbol-cache-size. New maint commands print symbol-cache,
2840 print symbol-cache-statistics, flush-symbol-cache.
2841 Install new_objfile, free_objfile observers.
2843 2015-01-31 Joel Brobecker <brobecker@adacore.com>
2846 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
2849 2015-01-31 Doug Evans <xdje42@gmail.com>
2851 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
2852 * auto-load.c: #include ctype.h.
2853 (struct auto_load_pspace_info): Replace member loaded_scripts with
2854 new members loaded_script_files, loaded_script_texts.
2855 (auto_load_pspace_data_cleanup): Update.
2856 (init_loaded_scripts_info): Update.
2857 (get_auto_load_pspace_data_for_loading): Update.
2858 (maybe_add_script_file): Renamed from maybe_add_script. All callers
2860 (maybe_add_script_text): New function.
2861 (clear_section_scripts): Update.
2862 (source_script_file, execute_script_contents): New functions.
2863 (source_section_scripts): Add support for
2864 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
2865 (print_scripts): New function.
2866 (auto_load_info_scripts): Also print inlined scripts.
2867 (maybe_print_unsupported_script_warning): Renamed from
2868 unsupported_script_warning_print. All callers updated.
2869 (maybe_print_script_not_found_warning): Renamed from
2870 script_not_found_warning_print. All callers updated.
2871 * extension-priv.h (struct extension_language_script_ops): New member
2872 objfile_script_executor.
2873 * extension.c (ext_lang_objfile_script_executor): New function.
2874 * extension.h (objfile_script_executor_func): New typedef.
2875 (ext_lang_objfile_script_executor): Declare.
2876 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
2877 * guile/guile.c (guile_extension_script_ops): Update.
2878 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
2879 * python/python.c (python_extension_script_ops): Update.
2880 (gdbpy_execute_objfile_script): New function.
2882 2015-01-31 Eli Zaretskii <eliz@gnu.org>
2884 * tui/tui-io.c (tui_expand_tabs): New function.
2885 (tui_puts, tui_redisplay_readline): Expand TABs into the
2886 appropriate number of spaces.
2887 * tui/tui-regs.c: Include tui-io.h.
2888 (tui_register_format): Call tui_expand_tabs to expand TABs into
2889 the appropriate number of spaces.
2890 * tui/tui-io.h: Add prototype for tui_expand_tabs.
2892 2015-01-30 Doug Evans <dje@google.com>
2894 * NEWS: "info source" command now display producer string if present.
2895 * source.c (source_info): Print producer string if present.
2897 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
2899 * varobj.c (varobj_delete): Fix comment.
2901 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
2903 * varobj.c (create_child): Modify comment.
2905 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
2907 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
2909 (ada_name_of_variable): Same.
2910 (ada_path_expr_of_child): Same.
2911 (ada_value_of_variable): Same.
2912 (ada_value_is_changeable_p): Same.
2913 (ada_value_has_mutated): Same.
2914 * c-varobj.c (varobj_is_anonymous_child): Same.
2915 (c_is_path_expr_parent): Same.
2916 (c_number_of_children): Same.
2917 (c_name_of_variable): Same.
2918 (c_path_expr_of_child): Same.
2920 (c_value_of_variable): Same.
2921 (cplus_number_of_children): Same.
2922 (cplus_name_of_variable): Same.
2923 (cplus_path_expr_of_child): Same.
2924 (cplus_value_of_variable): Same.
2925 * jv-varobj.c (java_number_of_children): Same.
2926 (java_name_of_variable): Same.
2927 (java_path_expr_of_child): Same.
2928 (java_value_of_variable): Same.
2929 * varobj.c (number_of_children): Same.
2930 (name_of_variable): Same.
2932 (varobj_ensure_python_env): Same.
2933 (varobj_get_objname): Same.
2934 (varobj_get_expression): Same.
2935 (varobj_get_display_format): Same.
2936 (varobj_get_display_hint): Same.
2937 (varobj_has_more): Same.
2938 (varobj_get_thread_id): Same.
2939 (varobj_get_frozen): Same.
2940 (dynamic_varobj_has_child_method): Same.
2941 (varobj_get_gdb_type): Same.
2942 (is_path_expr_parent): Same.
2943 (varobj_default_is_path_expr_parent): Same.
2944 (varobj_get_language): Same.
2945 (varobj_get_attributes): Same.
2946 (varobj_is_dynamic_p): Same.
2947 (varobj_get_child_range): Same.
2948 (varobj_value_has_mutated): Same.
2949 (varobj_get_value_type): Same.
2950 (number_of_children): Same.
2951 (name_of_variable): Same.
2952 (check_scope): Same.
2953 (varobj_editable_p): Same.
2954 (varobj_value_is_changeable_p): Same.
2955 (varobj_floating_p): Same.
2956 (varobj_default_value_is_changeable_p): Same.
2958 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
2960 * varobj.c (varobj_get_path_expr): Set var->path_expr.
2961 * c-varobj.c (c_path_expr_of_child): Set local var instead of
2963 (cplus_path_expr_of_child): Same.
2965 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
2967 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
2969 (mi_cmd_var_info_expression): Same.
2970 * varobj.c (varobj_get_expression): Mention in the comment that
2971 the result must by freed by the caller.
2973 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
2975 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
2977 (varobj_update_one): Same.
2978 * varobj.c (update_type_if_necessary): Free curr_type_str and
2980 (varobj_get_type): Specify in comment that the result needs to be
2981 freed by the caller.
2983 2015-01-29 Doug Evans <dje@google.com>
2986 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
2988 2015-01-25 Mark Wielaard <mjw@redhat.com>
2990 * dwarf2read.c (checkproducer): Call producer_is_gcc.
2991 * utils.c (producer_is_gcc_ge_4): Likewise.
2992 (producer_is_gcc): New function.
2993 * utils.h (producer_is_gcc): New declaration.
2995 2015-01-29 Joel Brobecker <brobecker@adacore.com>
2997 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
2999 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
3000 parameter by "addr_stack" parameter.
3001 (resolve_dynamic_range): Replace "addr" parameter by
3002 "stack_addr" parameter. Update function documentation.
3003 Update code accordingly.
3004 (resolve_dynamic_array, resolve_dynamic_union)
3005 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
3006 (resolve_dynamic_type): Update code, following the changes made
3007 to resolve_dynamic_type_internal's interface.
3008 * dwarf2loc.h (struct property_addr_info): New.
3009 (dwarf2_evaluate_property): Replace "address" parameter
3010 by "addr_stack" parameter. Adjust function documentation.
3011 (struct dwarf2_offset_baton): New.
3012 (struct dwarf2_property_baton): Update documentation of
3013 field "referenced_type" to be more general. New field
3014 "offset_info" in union data field.
3015 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
3016 parameter by "addr_stack" parameter. Adjust code accordingly.
3017 Add support for PROP_ADDR_OFFSET properties.
3018 * dwarf2read.c (attr_to_dynamic_prop): Add support for
3019 DW_AT_data_member_location attributes as well. Use case
3020 statements instead of if/else condition.
3022 2015-01-29 Joel Brobecker <brobecker@adacore.com>
3024 * ada-varobj.c (ada_varobj_get_array_number_of_children):
3025 Return zero if PARENT_VALUE is NULL and parent_type's
3026 range type is dynamic.
3028 2015-01-29 Joel Brobecker <brobecker@adacore.com>
3030 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
3031 nonzero if the type's subtype is dynamic.
3032 (resolve_dynamic_range): Also resolve the range's subtype.
3034 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
3036 Pushed by Joel Brobecker <brobecker@adacore.com>.
3037 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
3039 2015-01-27 Doug Evans <dje@google.com>
3041 * NEWS: Mention gdb.Objfile.username.
3042 * python/py-objfile.c (objfpy_get_username): New function.
3043 (objfile_getset): Add "username".
3045 2015-01-24 Mark Wielaard <mjw@redhat.com>
3047 * stack.c (return_command): Markup warning message with _.
3049 2015-01-24 Doug Evans <xdje42@gmail.com>
3051 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
3053 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3055 Fix 100x slowdown regression on DWZ files.
3056 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
3057 (struct line_header): Add offset and offset_in_dwz.
3058 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
3059 (free_line_header_voidp): New declaration.
3060 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
3062 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
3063 (handle_DW_AT_stmt_list): Use line_header_hash.
3064 (free_line_header_voidp): New function.
3065 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
3066 (dwarf_decode_lines): New parameter decode_mapping, use it.
3067 (dwarf2_free_objfile): Free line_header_hash.
3069 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
3072 * valops.c (value_rtti_indirect_type): Catch exception thrown by
3075 2015-01-15 Mark Wielaard <mjw@redhat.com>
3077 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
3079 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
3080 calling_convention an 8 bit bit field.
3081 (TYPE_NO_RETURN): New macro.
3082 * infcmd.c (finish_command): Query if function does not return
3084 * stack.c (return_command): Likewise.
3086 2015-01-23 Pedro Alves <palves@redhat.com>
3088 * linux-nat.c (linux_is_async_p): New macro.
3089 (linux_nat_is_async_p):
3090 (linux_nat_terminal_inferior): Check whether the target can async
3091 instead of whether it is already async.
3092 (linux_nat_terminal_ours): Don't check whether the target is
3094 (linux_async_pipe): Use linux_is_async_p.
3096 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3098 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
3100 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
3101 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
3102 Sort tp_array using tp_array_compar.
3103 (_initialize_thread): Extend thread_apply_all_command help.
3105 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3107 * corelow.c (core_open): Call also thread_command.
3108 * gdbthread.h (thread_command): New prototype moved from ...
3109 * thread.c (thread_command): ... here.
3110 (thread_command): Make it global.
3112 2015-01-22 Pedro Alves <palves@redhat.com>
3114 * configure.ac [*mingw32*]: Check $curses_found instead of
3116 * configure: Regenerate.
3117 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
3118 HAVE_NCURSES_NCURSES_H checks.
3120 2015-01-22 Eli Zaretskii <eliz@gnu.org>
3122 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
3123 fails with the 1st arg NULL, try again with "unknown". Don't test
3124 the "cup" capability: it isn't supported by the Windows port of
3125 ncurses, but the Windows console driver is still capable of
3128 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3130 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
3132 2015-01-22 Eli Zaretskii <eliz@gnu.org>
3134 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
3135 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
3136 reason that "make TAGS" is broken.
3138 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
3140 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
3141 and check additional store instructions.
3143 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
3145 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
3147 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
3149 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
3150 ppc_canonicalize_syscall, ppc_linux_syscall_record,
3151 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
3152 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
3153 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
3154 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
3155 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
3156 ppc_process_record_op19, ppc_process_record_op31,
3157 ppc_process_record_op59, ppc_process_record_op60,
3158 ppc_process_record_op63): Likewise.
3160 2015-01-20 Joel Brobecker <brobecker@adacore.com>
3162 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
3163 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
3166 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
3168 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
3169 ppc_process_record_op31, ppc_process_record_op59,
3170 ppc_process_record_op60, ppc_process_record_op63,
3171 ppc_process_record): Fix -Wformat warning.
3172 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
3173 Remove unused variables.
3175 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
3177 * MAINTAINERS (Write After Approval): Add "Chen Gang".
3179 2015-01-19 Eli Zaretskii <eliz@gnu.org>
3181 * configure.ac [*mingw32*]: Only add windows-termcap.o to
3182 CONFIG_OBS if not building with a curses library.
3183 * configure: Regenerate.
3185 * windows-termcap.c: Include defs.h. Make the whole body empty if
3186 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
3187 HAVE_NCURSES_NCURSES_H is defined.
3189 2015-01-19 Joel Brobecker <brobecker@adacore.com>
3191 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
3192 from end of line to start of next line.
3194 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
3196 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
3197 Scan PLT stub backward for reverse debugging.
3198 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
3200 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
3201 Ulrich Weigand <uweigand@de.ibm.com>
3203 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
3205 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
3207 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
3208 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
3209 (ppc_linux_init_abi): Set process_record, process_record_signal.
3210 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
3211 ppc_linux_record_tdep to gdbarch_tdep.
3212 (ppc_process_record): New declaration.
3213 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
3214 ppc_process_record_op19, ppc_process_record_op31,
3215 ppc_process_record_op59, ppc_process_record_op60,
3216 ppc_process_record_op63, ppc_process_record): New functions.
3218 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
3220 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
3221 rs6000_in_function_epilogue_frame_p and add an argument
3223 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
3224 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
3226 (rs6000_epilogue_frame_unwind): New.
3227 (rs6000_gdbarch_init): Append epilogue unwinder.
3229 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
3231 * nat/linux-personality.c: Replace "#ifndef
3232 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
3233 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
3236 2015-01-16 Eli Zaretskii <eliz@gnu.org>
3238 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
3240 (_initialize_tui_win) <border-kind, border-mode>:
3241 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
3242 (tui_set_tab_width_command): Fix the commentary.
3244 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
3246 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
3248 (tui_set_tab_width_command): Delete and recreate the source and
3249 the disassembly windows, to show the effect of the changed tab
3252 * tui/tui-data.h (LINE_PREFIX): Make shorter
3253 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
3254 "Thread NNNNN.XXXX" thread ID notation on Windows.
3256 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3258 Fix gcc-5 compilation.
3259 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
3261 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
3263 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
3264 (linux-personality.o): New rule.
3265 * common/common-defs.h: Include <stdint.h>.
3266 * config/aarch64/linux.mh (NATDEPFILES): Include
3267 linux-personality.o.
3268 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
3269 * config/arm/linux.mh (NATDEPFILES): Likewise.
3270 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3271 * config/i386/linux.mh (NATDEPFILES): Likewise.
3272 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3273 * config/m32r/linux.mh (NATDEPFILES): Likewise.
3274 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3275 * config/mips/linux.mh (NATDEPFILES): Likewise.
3276 * config/pa/linux.mh (NATDEPFILES): Likewise.
3277 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3278 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
3279 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
3280 * config/s390/linux.mh (NATDEPFILES): Likewise.
3281 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
3282 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3283 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
3284 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
3285 * defs.h: Remove #include <stdint.h> (moved to
3286 common/common-defs.h).
3287 * linux-nat.c: Include nat/linux-personality.h. Remove #include
3288 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
3289 nat/linux-personality.c).
3290 (linux_nat_create_inferior): Remove code to disable address space
3291 randomization (moved to nat/linux-personality.c). Create cleanup
3292 to disable address space randomization.
3293 * nat/linux-personality.c: New file.
3294 * nat/linux-personality.h: Likewise.
3296 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
3298 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
3299 common/posix-strerror.c.
3300 (posix-strerror.o): New rule.
3301 (mingw-strerror.o): Likewise.
3302 * common/common-utils.h (safe_strerror): Move prototype to here,
3304 * common/common.host: New file.
3305 * common/mingw-strerror.c: Likewise.
3306 * common/posix-strerror.c: Likewise.
3307 * configure: Regenerated.
3308 * configure.ac: Source common/common.host. Add variable
3309 common_host_obs to gdb_host_obs.
3310 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
3311 gdb/common/posix-strerror.c when warning about the use of
3313 * mingw-hdep.c (safe_strerror): Remove definition; move it to
3314 common/mingw-strerror.c.
3315 * posix-hdep.c (safe_strerror): Remove definition; move it to
3316 common/posix-hdep.c.
3317 * utils.h (safe_strerror): Remove prototype; move to
3318 common/common-utils.h.
3320 2015-01-15 Joel Brobecker <brobecker@adacore.com>
3324 2015-01-15 Joel Brobecker <brobecker@adacore.com>
3326 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
3327 ___XA type if the array has already been fixed.
3329 2015-01-14 Yao Qi <yao@codesourcery.com>
3331 * Makefile.in (ppc-linux.o): New rule.
3332 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
3333 * configure.ac: AC_CHECK_FUNCS(getauxval).
3334 * config.in: Re-generated.
3335 * configure: Re-generated.
3336 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
3338 * nat/ppc-linux.c: New file.
3339 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
3340 Call ppc64_64bit_inferior_p.
3342 2015-01-14 Yao Qi <yao@codesourcery.com>
3344 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
3346 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
3347 (PPC_FEATURE_HAS_DFP): Likewise.
3348 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
3349 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
3350 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
3351 Include "nat/ppc-linux.h".
3352 * nat/ppc-linux.h: New file.
3353 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
3355 2015-01-14 Pedro Alves <palves@redhat.com>
3358 * breakpoint.c: Include "interps.h".
3359 (bpstat_do_actions_1): Also check whether the interpreter is
3362 2015-01-14 Pedro Alves <palves@redhat.com>
3365 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
3366 reinstall if the interpreter is sync.
3368 2015-01-13 Doug Evans <dje@google.com>
3370 * objfiles.c (objfile_filename): New function.
3371 * objfiles.h (objfile_filename): Declare it.
3372 (objfile_name): Add function comment.
3373 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
3374 bfd file name (which may be realpath'd), and the original name.
3376 2015-01-13 Joel Brobecker <brobecker@adacore.com>
3378 * NEWS: Create a new section for the next release branch.
3379 Rename the section of the current branch, now that it has
3382 2015-01-13 Joel Brobecker <brobecker@adacore.com>
3384 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
3385 * version.in: Bump version to 7.9.50.DATE-cvs.
3387 2015-01-13 Joel Brobecker <brobecker@adacore.com>
3389 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
3390 Remove trailing new-line in argument of call to warning.
3392 2015-01-13 Joel Brobecker <brobecker@adacore.com>
3394 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
3395 new-line in argument of call to "warning".
3397 2015-01-13 Joel Brobecker <brobecker@adacore.com>
3399 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
3400 in static block, then try searching for primitive types.
3402 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
3404 * top.h (gdb_add_history): Declare.
3405 * top.c (command_count): New variable.
3406 (gdb_add_history): New function.
3407 (gdb_safe_append_history): New static function.
3408 (quit_force): Call it.
3409 (command_line_input): Use gdb_add_history instead of
3411 * event-top.c (command_line_handler): Likewise.
3413 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
3416 * darwin-nat.c: Replace <machine/setjmp.h> #include by
3417 <setjmp.h> #include.
3419 2015-01-11 Doug Evans <xdje42@gmail.com>
3421 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
3423 2015-01-11 Doug Evans <xdje42@gmail.com>
3426 * NEWS: The "maint demangle" command is renamed as "demangle".
3427 * demangle.c: #include cli/cli-utils.h, language.h.
3428 (demangle_command): New function.
3429 (_initialize_demangle): Add new command "demangle".
3430 * maint.c (maintenance_demangle): Stub out.
3431 (_initialize_maint_cmds): Update help text for "maint demangle",
3432 and mark as deprecated.
3434 2015-01-11 Mark Kettenis <kettenis@gnu.org>
3436 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
3437 inferior_thread is a function.
3439 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
3441 * Makefile.in (.y.c): Don't munge yacc's #line
3444 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
3446 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
3447 to prompt for input.
3448 * tui/tui-hooks.c (tui_query_hook): Remove.
3449 (tui_install_hooks): Don't set deprecated_query_hook.
3450 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
3451 height calculation. Always update the command window's cur_line.
3453 2015-01-09 Pedro Alves <palves@redhat.com>
3455 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
3457 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
3459 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
3460 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
3462 (check_stopped_by_watchpoint): New function.
3463 (save_sigtrap): Reimplement.
3464 (linux_nat_stopped_by_watchpoint): Adjust.
3465 (linux_nat_lp_status_is_event): Delete.
3466 (stop_wait_callback): Only call save_sigtrap after storing the
3468 (status_callback): If the thread had been stopped for a breakpoint
3469 that has since been removed, discard the event and resume the LWP.
3470 (count_events_callback, select_event_lwp_callback): Use
3471 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
3472 (cancel_breakpoint): Rename to ...
3473 (check_stopped_by_breakpoint): ... this. Record whether the LWP
3474 stopped for a software breakpoint or hardware breakpoint.
3475 (select_event_lwp): Only give preference to the stepping LWP in
3476 all-stop mode. Adjust comments.
3477 (stop_and_resume_callback): Remove references to new_pending_p.
3478 (linux_nat_filter_event): Likewise. Leave exit events of the
3479 leader thread pending here. Handle signal short circuiting here.
3480 Only call save_sigtrap after storing the pending waitstatus.
3481 (linux_nat_wait_1): Remove 'retry' label. Remove references to
3482 new_pending. Don't handle leaving events the caller is not
3483 interested in pending here, nor handle signal short-circuiting
3484 here. Also give equal priority to all LWPs that have had events
3485 in non-stop mode. If reporting a software breakpoint event,
3486 unadjust the LWP's PC.
3487 * linux-nat.h (enum lwp_stop_reason): New.
3488 (struct lwp_info) <stop_pc>: New field.
3489 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
3490 (struct lwp_info) <stop_reason>: New field.
3491 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
3493 2015-01-09 Pedro Alves <palves@redhat.com>
3495 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
3496 Set the LWP's 'resumed' flag.
3498 2015-01-09 Pedro Alves <palves@redhat.com>
3500 * linux-nat.c (linux_resume_one_lwp): New function.
3501 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
3502 (linux_nat_resume): Use lwp_status_pending_p and
3503 linux_resume_one_lwp.
3504 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
3505 (linux_handle_extended_wait): Use linux_resume_one_lwp.
3506 (status_callback, running_callback): Use lwp_status_pending_p.
3507 (lwp_status_pending_p): New function.
3508 (stop_and_resume_callback): Use lwp_status_pending_p.
3509 (linux_nat_filter_event): Use linux_resume_one_lwp.
3510 (linux_nat_wait_1): Always use status_callback to look for an LWP
3511 with a pending status. Use linux_resume_one_lwp.
3512 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
3513 linux_resume_one_lwp.
3515 2015-01-09 Pedro Alves <palves@redhat.com>
3517 * breakpoint.c (bp_location_inserted_here_p): New function,
3518 factored out from ...
3519 (breakpoint_inserted_here_p): ... here. Use
3520 ALL_BP_LOCATIONS_AT_ADDR.
3521 (software_breakpoint_inserted_here_p): Use
3522 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
3524 2014-01-09 Pedro Alves <palves@redhat.com>
3526 Skip enabling event reporting if the kernel supports
3528 * linux-thread-db.c: Include "nat/linux-ptrace.h".
3529 (thread_db_use_events): New function.
3530 (try_thread_db_load_1): Check thread_db_use_events before enabling
3532 (update_thread_state): New function.
3533 (attach_thread): Use it. Check thread_db_use_events before
3534 enabling event reporting.
3535 (thread_db_detach): Check thread_db_use_events before disabling
3537 (find_new_threads_callback): Check thread_db_use_events before
3538 enabling event reporting. Update the thread's state if not using
3539 libthread_db events.
3541 2015-01-09 Pedro Alves <palves@redhat.com>
3543 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
3544 about to wait for is > 0.
3545 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
3546 the kernel thread ID is -1.
3548 2015-01-09 Pedro Alves <palves@redhat.com>
3550 * linux-nat.c (attach_proc_task_lwp_callback): New function.
3551 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
3552 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
3553 ptrace option flags.
3554 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
3556 * nat/linux-procfs.c: Include <dirent.h>.
3557 (linux_proc_get_int): New parameter "warn". Handle it.
3558 (linux_proc_get_tgid): Adjust.
3559 (linux_proc_get_tracerpid): Rename to ...
3560 (linux_proc_get_tracerpid_nowarn): ... this.
3561 (linux_proc_pid_get_state): New function, factored out from
3562 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
3564 (linux_proc_pid_is_gone): New function.
3565 (linux_proc_pid_is_stopped): Adjust.
3566 (linux_proc_pid_is_zombie_maybe_warn)
3567 (linux_proc_pid_is_zombie_nowarn): New functions.
3568 (linux_proc_pid_is_zombie): Use
3569 linux_proc_pid_is_zombie_maybe_warn.
3570 (linux_proc_attach_tgid_threads): New function.
3571 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
3572 (linux_proc_get_tracerpid): Rename to ...
3573 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
3574 (linux_proc_pid_is_gone): New declaration.
3575 (linux_proc_pid_is_zombie): Update comment.
3576 (linux_proc_pid_is_zombie_nowarn): New declaration.
3577 (linux_proc_attach_lwp_func): New typedef.
3578 (linux_proc_attach_tgid_threads): New declaration.
3579 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
3580 use nowarn functions.
3581 (linux_ptrace_attach_fail_reason_string): Move here from
3582 gdbserver/linux-low.c and rename.
3583 (ptrace_supports_feature): If the current ptrace options are not
3584 known yet, check them now, instead of asserting.
3585 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
3588 2015-01-09 Pedro Alves <palves@redhat.com>
3590 * linux-thread-db.c (thread_db_find_new_threads_silently)
3591 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
3592 (find_new_threads_once): Print debug output on gdb_stdlog.
3594 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
3595 Pedro Alves <palves@redhat.com>
3597 * compile/compile.c: Include "gdb_wait.h".
3598 (do_rmdir): Check return value, and free 'zap'.
3600 2015-01-08 Pedro Alves <palves@redhat.com>
3601 Yao Qi <yao@codesourcery.com>
3603 * dwarf2loc.c (indirect_pieced_value): Don't call
3604 gdb_sign_extend. Call extract_signed_integer instead.
3605 * utils.c (gdb_sign_extend): Remove.
3606 * utils.h (gdb_sign_extend): Remove declaration.
3608 2015-01-07 Pierre Muller <muller@sourceware.org>
3611 * stabsread.c (define_symbol): Set language for C++ special symbols.
3613 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
3615 * inflow.c (initial_gdb_ttystate): Tweak comment.
3617 2015-01-07 Joel Brobecker <brobecker@adacore.com>
3619 * inflow.c (set_initial_gdb_ttystate): Add empty line after
3620 comment documenting function.
3622 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
3624 * terminal.h (set_initial_gdb_ttystate): Declare.
3625 * inflow.c (initial_gdb_ttystate): New static variable.
3626 (set_initial_gdb_ttystate): New setter.
3627 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
3628 instead of our current terminal state.
3629 * top.c (gdb_init): Call set_initial_gdb_ttystate.
3631 2015-01-07 Joel Brobecker <brobecker@adacore.com>
3633 * guile/scm-type.c (tyscm_array_1): Add comment.
3634 * python/py-type.c (typy_array_1): Add comment.
3636 2015-01-06 Joel Brobecker <brobecker@adacore.com>
3638 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
3639 error if N2 is equal to N1 - 1.
3641 2015-01-06 Joel Brobecker <brobecker@adacore.com>
3643 * python/py-type.c (typy_array_1): Do not raise negative-length
3644 exception if N2 is equal to N1 - 1.
3646 2015-01-03 Doug Evans <xdje42@gmail.com>
3648 * c-exp.y: Whitespace cleanup.
3649 (classify_inner_name): Remove extra ;.
3651 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
3653 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
3656 2015-01-02 Doug Evans <dje@google.com>
3658 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
3660 2015-01-02 Doug Evans <dje@google.com>
3662 * symtab.h (struct symbol): Fix typo in comment.
3664 2015-01-01 Joel Brobecker <brobecker@adacore.com>
3666 Update year range in copyright notice of all files.
3668 2015-01-01 Joel Brobecker <brobecker@adacore.com>
3670 * top.c (print_gdb_version): Update copyright year to 2015.
3672 2015-01-01 Joel Brobecker <brobecker@adacore.com>
3674 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
3676 For older changes see ChangeLog-2014.
3682 version-control: never