1 2015-02-27 Tom Tromey <tromey@redhat.com>
2 Pedro Alves <palves@redhat.com>
4 * dwarf2-frame.c (enum cfa_how_kind, struct
5 dwarf2_frame_state_reg_info): Move out of struct
7 * dwarf2read.c (struct tu_stats): Move out of struct
9 (struct file_entry): Move out of struct line_header.
10 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
11 typedef_field_list): Move out of struct field_info.
12 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
13 Move out of struct dynamic_prop.
14 (union type_owner, union field_location, struct field, struct
15 range_bounds, union type_specific): Move out of struct main_type.
16 (struct fn_fieldlist, struct fn_field, struct typedef_field)
17 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
18 (struct call_site_target, union call_site_parameter_u, struct
19 call_site_parameter): Move out of struct call_site.
20 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
22 (enum srcdest_kind): Move out of struct srcdest.
23 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
24 * prologue-value.h (enum prologue_value_kind): Move out of struct
26 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
28 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
29 out of struct field_info.
30 * symfile.h (struct other_sections): Move out of struct
32 * symtab.c (struct symbol_cache_slot): Move out struct
34 * target-descriptions.c (enum tdesc_type_kind): Move out of
35 typedef struct tdesc_type.
36 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
37 struct tui_line_or_address.
38 * value.c (enum internalvar_kind, union internalvar_data): Move
39 out of struct internalvar.
40 * xtensa-tdep.h (struct ctype_cache): Move out of struct
43 2015-02-27 Tom Tromey <tromey@redhat.com>
44 Pedro Alves <palves@redhat.com>
46 Rename symbols whose names are reserved C++ keywords throughout.
48 2015-02-27 Pedro Alves <palves@redhat.com>
50 * Makefile.in (COMPILER): New, get it from autoconf.
51 (COMPILE.pre, CC_LD): Use COMPILER.
52 (CXX): Get from autoconf instead.
53 (CXX_FOR_TARGET): Default to g++ instead of gcc.
54 * acinclude.m4: Include build-with-cxx.m4.
55 * build-with-cxx.m4: New file.
56 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
57 Disable -Werror by default if building in C++ mode.
58 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
59 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
60 Run supported-warning-flags tests with the C++ compiler.
61 Save/restore CXXFLAGS too.
62 * configure: Regenerate.
64 2015-02-27 Pedro Alves <palves@redhat.com>
66 * libiberty.m4: New file.
67 * acinclude.m4: Include libiberty.m4.
68 * configure.ac: Call libiberty_INIT.
69 * config.in, configure: Regenerate.
71 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
73 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
74 31-bit targets, but 64-bit targets as well.
75 (s390_gnu_triplet_regexp): New function.
76 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
77 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
80 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
82 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
83 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
84 from CONTEXT_DEBUGGER.
86 2015-02-26 Doug Evans <dje@google.com>
88 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
90 (set_type_vptr_fieldno): Ditto.
91 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
92 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
94 2015-02-26 Pedro Alves <palves@redhat.com>
96 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
97 * complaints.c (vcomplaint): Pass argument FMT directly to
98 printf-like functions instead of complaint->fmt.
99 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
100 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
101 * compile/compile-loc2c.c (pushf, unary, binary): Add
103 (do_compile_dwarf_expr_to_c): Pass string literal as format string
105 (BINARY): Pass string literal as format string to 'binary'.
106 * compile/compile-object-load.c (link_callbacks_einfo): Add
108 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
110 2015-02-26 Pedro Alves <palves@redhat.com>
112 * windows-termcap.c: Rename to ...
113 * stub-termcap.c: ... this. Adjust header line.
114 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
116 * configure: Regenerate.
117 * configure.ac: Refer to stub-termcap.o instead of
119 * gdb_curses.h: Mention stub-termcap.c instead of
122 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
124 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
125 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
127 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
129 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
131 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
133 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
134 bfd_canonicalize_symtab.
136 2015-02-25 John Baldwin <jhb@FreeBSD.org>
138 * amd64fbsd-nat.c: Include sys/user.h.
139 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
140 instead of KERN_PS_STRINGS to locate the signal trampoline.
141 * i386fbsd-nat.c: Include sys/user.h.
142 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
143 instead of KERN_PS_STRINGS to locate the signal trampoline.
144 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
145 (amd64fbsd_sigtramp_p): New.
146 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
147 longer set default values.
148 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
149 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
150 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
151 (i386fbsd_freebsd4_sigtramp_start)
152 (i386fbsd_freebsd4_sigtramp_middle)
153 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
154 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
155 (i386fbsd_sigtramp_p): New.
156 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
157 longer set default values.
158 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
160 2015-02-25 John Baldwin <jhb@freebsd.org>
162 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
163 get_frame_register instead of frame_unwind_register_unsigned.
165 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
168 * compile/compile-c-support.c (c_compute_program): Change // comment.
169 * compile/compile-object-load.c (setup_sections): Change // comment.
171 2015-02-26 Joel Brobecker <brobecker@adacore.com>
174 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
176 2015-02-23 Pedro Alves <palves@redhat.com>
178 * remote.c (skip_to_semicolon): New function.
179 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
180 special case the stop reasons that look like hex numbers
181 upfront. Instead handle real register numbers after matching
182 all the known stop reasons.
184 2015-02-21 Doug Evans <dje@google.com>
186 PR c++/17976, symtab/17821
187 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
188 is_in_anonymous. All callers updated.
189 (find_symbol_in_baseclass): Ditto.
190 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
191 for symbols in an anonymous namespace.
192 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
194 (dwarf2_name): Convert missing namespace name to
195 CP_ANONYMOUS_NAMESPACE_STR.
197 2015-02-20 Pedro Alves <palves@redhat.com>
199 * linux-nat.c (linux_handle_extended_wait): Call
200 thread_db_notice_clone whenever a new clone LWP is detected.
201 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
203 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
204 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
205 (linux_unstop_all_lwps): Declare.
206 * linux-thread-db.c (struct thread_get_info_inout): Delete.
207 (thread_get_info_callback): Delete.
208 (thread_from_lwp): Use td_thr_get_info and record_thread.
209 (thread_db_attach_lwp): Delete.
210 (thread_db_notice_clone): New function.
211 (try_thread_db_load_1): If /proc is mounted and shows the
212 process'es task list, walk over all LWPs and call thread_from_lwp
213 instead of relying on td_ta_thr_iter.
214 (attach_thread): Don't call check_thread_signals here. Split the
215 tail part of the function (which adds the thread to the core GDB
217 (record_thread): ... this function. Call check_thread_signals
219 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
220 call thread_from_lwp.
221 (thread_db_update_thread_list): Rename to ...
222 (thread_db_update_thread_list_org): ... this.
223 (thread_db_update_thread_list): New function.
224 (thread_db_find_thread_from_tid): Delete.
225 (thread_db_get_ada_task_ptid): Simplify.
226 * nat/linux-procfs.c: Include <sys/stat.h>.
227 (linux_proc_task_list_dir_exists): New function.
228 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
230 2015-02-20 Pedro Alves <palves@redhat.com>
232 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
233 main LWP. Handle the case of waitpid returning 0 if we're already
234 attached to the LWP. Don't set the LWP's last_resume_kind to
235 resume_stop if we already knew about the LWP.
236 (linux_nat_filter_event): Add debug logs.
238 2015-02-20 Pedro Alves <palves@redhat.com>
240 * target.h (forward_target_decr_pc_after_break): Delete
243 2015-02-20 Pedro Alves <palves@redhat.com>
246 * linux-thread-db.c (thread_get_info_callback): Return early if
247 the thread's lwp id is -1.
249 2015-02-20 Joel Brobecker <brobecker@adacore.com>
253 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
255 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
256 (dtrace_get_probes) Change type of variable 'dof'.
258 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
261 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
262 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
263 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
265 2015-02-19 David Taylor <dtaylor@emc.com>
267 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
269 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
271 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
273 (tui_putc): Don't call tui_handle_resize_during_io.
274 (tui_getc): Likewise.
275 (tui_mld_getc): Likewise.
276 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
277 (tui_sigwinch_token): New static variable.
278 (tui_initialize_win): Adjust documentation. Set
280 (tui_async_resize_screen): New asynchronous callback.
281 (tui_sigwinch_handler): Adjust documentation. Asynchronously
282 invoke tui_async_resize_screen.
284 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
286 * configure: Regenerated.
287 * configure.ac: Use GDB_AC_TRANSFORM.
288 * Makefile.in (aclocal_m4_deps): Added transform.m4.
289 * acinclude.m4: sinclude transform.m4.
290 * transform.m4: New file.
291 (GDB_AC_TRANSFORM): New macro.
293 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
295 * NEWS: Announce the support for DTrace SDT probes.
297 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
299 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
300 (amd64_dtrace_parse_probe_argument): New function.
301 (amd64_dtrace_probe_is_enabled): Likewise.
302 (amd64_dtrace_enable_probe): Likewise.
303 (amd64_dtrace_disable_probe): Likewise.
304 (amd64_linux_init_abi): Register the
305 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
306 `gdbarch_dtrace_disable_probe' and
307 `gdbarch_dtrace_probe_is_enabled' hooks.
308 (amd64_dtrace_disabled_probe_sequence_1): New constant.
309 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
310 (amd64_dtrace_enable_probe_sequence): Likewise.
311 (amd64_dtrace_disable_probe_sequence): Likewise.
313 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
315 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
316 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
317 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
319 * Makefile.in (SFILES): dtrace-probe.c added.
320 * configure: Regenerate.
321 * dtrace-probe.c: New file.
322 (SHT_SUNW_dof): New constant.
323 (dtrace_probe_type): New enum.
324 (dtrace_probe_arg): New struct.
325 (dtrace_probe_arg_s): New typedef.
326 (struct dtrace_probe_enabler): New struct.
327 (dtrace_probe_enabler_s): New typedef.
328 (dtrace_probe): New struct.
329 (dtrace_probe_is_linespec): New function.
330 (dtrace_dof_sect_type): New enum.
331 (dtrace_dof_dofh_ident): Likewise.
332 (dtrace_dof_encoding): Likewise.
333 (DTRACE_DOF_ENCODE_LSB): Likewise.
334 (DTRACE_DOF_ENCODE_MSB): Likewise.
335 (dtrace_dof_hdr): New struct.
336 (dtrace_dof_sect): Likewise.
337 (dtrace_dof_provider): Likewise.
338 (dtrace_dof_probe): Likewise.
339 (DOF_UINT): New macro.
340 (DTRACE_DOF_PTR): Likewise.
341 (DTRACE_DOF_SECT): Likewise.
342 (dtrace_process_dof_probe): New function.
343 (dtrace_process_dof): Likewise.
344 (dtrace_build_arg_exprs): Likewise.
345 (dtrace_get_arg): Likewise.
346 (dtrace_get_probes): Likewise.
347 (dtrace_get_probe_argument_count): Likewise.
348 (dtrace_can_evaluate_probe_arguments): Likewise.
349 (dtrace_evaluate_probe_argument): Likewise.
350 (dtrace_compile_to_ax): Likewise.
351 (dtrace_probe_destroy): Likewise.
352 (dtrace_gen_info_probes_table_header): Likewise.
353 (dtrace_gen_info_probes_table_values): Likewise.
354 (dtrace_probe_is_enabled): Likewise.
355 (dtrace_probe_ops): New variable.
356 (info_probes_dtrace_command): New function.
357 (_initialize_dtrace_probe): Likewise.
358 (dtrace_type_name): Likewise.
360 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
362 * gdbarch.sh (dtrace_parse_probe_argument): New.
363 (dtrace_probe_is_enabled): Likewise.
364 (dtrace_enable_probe): Likewise.
365 (dtrace_disable_probe): Likewise.
366 * gdbarch.c: Regenerate.
367 * gdbarch.h: Regenerate.
369 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
371 * stap-probe.c (stap_probe_ops): Add NULLs in the static
372 stap_probe_ops for `enable_probe' and `disable_probe'.
373 * probe.c (enable_probes_command): New function.
374 (disable_probes_command): Likewise.
375 (_initialize_probe): Define the cli commands `enable probe' and
377 (parse_probe_linespec): New function.
378 (info_probes_for_ops): Use parse_probe_linespec.
379 * probe.h (probe_ops): New hooks `enable_probe' and
382 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
384 * probe.c (compute_probe_arg): Moved from stap-probe.c
385 (compile_probe_arg): Likewise.
386 (probe_funcs): Likewise.
387 * stap-probe.c (compute_probe_arg): Moved to probe.c.
388 (compile_probe_arg): Likewise.
389 (probe_funcs): Likewise.
391 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
393 * probe.c (print_ui_out_not_applicables): New function.
394 (exists_probe_with_pops): Likewise.
395 (info_probes_for_ops): Do not include column headers for probe
396 types for which no probe has been actually found on any object.
397 Also invoke `print_ui_out_not_applicables' in order to match the
398 column rows with the header when probes of several types are
400 Print the "Type" column.
401 * probe.h (probe_ops): Added a new probe operation `type_name'.
402 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
403 (stap_type_name): New function.
405 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
407 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
408 (key_is_command_char): Delete.
410 2015-02-17 Pedro Alves <palves@redhat.com>
412 * tui/tui.c (tui_enable): Resize windows before anything
415 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
418 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
419 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
421 * aarch64-tdep.h (tdesc_aarch64): Declare.
423 2015-02-12 Mark Wielaard <mjw@redhat.com>
425 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
427 2015-02-13 Doug Evans <dje@google.com>
429 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
430 anonymous_namespace to is_in_anonymous for consistency with the rest
432 (cp_lookup_bare_symbol): Fix typo in comment.
433 (cp_search_static_and_baseclasses): Ditto.
434 (search_symbol_list): Use vertical space in comment better.
435 (reset_directive_searched): Ditto. Fix typo.
436 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
438 2015-02-13 Yao Qi <yao.qi@arm.com>
440 * MAINTAINERS: Update my email address.
442 2015-02-12 Doug Evans <dje@google.com>
444 * symtab.c (completion_list_add_name): Fix memory leak.
446 2015-02-12 Doug Evans <dje@google.com>
448 * completer.c (complete_line): Remove incorrect comment.
450 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
452 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
453 (py_print_frame): Use RETURN_MASK_ERROR.
455 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
457 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
458 function comment. Wrap all function that can throw in cleanups.
459 (gdbpy_apply_frame_filter): Wrap all function that can throw in
462 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
464 * python/py-framefilter.c (py_print_frame): Substitute goto error.
465 Remove the error label.
467 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
469 * python/py-framefilter.c (py_print_frame): Put conditional code paths
470 with goto first, indent the former else codepath left. Put variable
471 'elided' to a new inner block.
473 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
475 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
477 2015-02-11 Pedro Alves <palves@redhat.com>
479 * xcoffread.c (within_function): Delete.
481 2015-02-11 Tom Tromey <tromey@redhat.com>
482 Pedro Alves <palves@redhat.com>
484 * breakpoint.c (base_breakpoint_ops): Delete.
485 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
486 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
487 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
488 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
489 * python/py-arch.c (arch_object_type): Make extern.
490 * python/py-block.c (block_syms_iterator_object_type): Make extern.
491 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
492 * python/py-cmd.c (cmdpy_object_type): Make extern.
493 * python/py-continueevent.c (continue_event_object_type)
494 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
495 parameter. Update all callers.
496 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
497 * python/py-exitedevent.c (exited_event_object_type): Make extern.
498 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
499 * python/py-function.c (fnpy_object_type): Make extern.
500 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
501 * python/py-infevents.c (call_pre_event_object_type)
502 (inferior_call_post_event_object_type).
503 (memory_changed_event_object_type): Make extern.
504 * python/py-infthread.c (thread_object_type): Make extern.
505 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
506 * python/py-linetable.c (linetable_entry_object_type)
507 (linetable_object_type, ltpy_iterator_object_type): Make extern.
508 * python/py-newobjfileevent.c (new_objfile_event_object_type)
509 (clear_objfiles_event_object_type): Make extern.
510 * python/py-objfile.c (objfile_object_type): Make extern.
511 * python/py-param.c (parmpy_object_type): Make extern.
512 * python/py-progspace.c (pspace_object_type): Make extern.
513 * python/py-signalevent.c (signal_event_object_type): Make extern.
514 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
515 * python/py-type.c (type_object_type, field_object_type)
516 (type_iterator_object_type): Make extern.
517 * python/python.c (python_extension_script_ops)
518 (python_extension_ops): Make extern.
519 * stap-probe.c (stap_probe_ops): Make extern.
521 2015-02-11 Pedro Alves <pedro@codesourcery.com>
523 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
524 because the event thread is not the current thread.
526 2015-02-11 Doug Evans <xdje42@gmail.com>
528 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
529 been initialized yet, return NULL.
531 2015-02-11 Doug Evans <dje@google.com>
533 * symfile.h (new_symfile_objfile): Delete.
534 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
537 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
539 * tui/tui-io.c (tui_handle_resize_during_io): Call
540 tui_update_gdb_sizes() after resizing the screen.
541 * tui/tui.c (tui_enable): Resize the terminal before
542 calling tui_update_gdb_sizes().
544 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
546 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
547 line before printing a newline.
549 2015-02-11 Mark Wielaard <mjw@redhat.com>
551 * utils.c (producer_is_gcc): Return true or false.
553 2015-02-10 Mark Wielaard <mjw@redhat.com>
555 * utils.h (producer_is_gcc): Change return type to bool. Add major
557 * utils.c (producer_is_gcc): Likewise.
558 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
559 * dwarf2read.c (check_producer): Likewise.
561 2015-02-10 Pedro Alves <palves@redhat.com>
563 * infrun.c (displaced_step_fixup): Switch to the event thread
564 before calling gdbarch_displaced_step_fixup.
566 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
568 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
570 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
572 * ada-varobj.c (ada_name_of_child): Constify parent.
573 (ada_path_expr_of_child): Same.
574 (ada_value_of_child): Same.
575 (ada_type_of_child): Same.
576 * c-varobj.c (c_is_path_expr_parent): Same.
577 (c_describe_child): Same.
578 (c_name_of_child): Same.
579 (c_value_of_child): Same.
580 (c_type_of_child): Same.
581 (cplus_number_of_children): Same.
582 (cplus_describe_child): Constify var.
583 (cplus_name_of_child): Constify parent.
584 (cplus_value_of_child): Same.
585 (cplus_type_of_child): Same.
586 * jv-varobj.c (java_name_of_child): Same.
587 (java_value_of_child): Same.
588 (java_type_of_child): Same.
589 * varobj.c (value_of_child): Same.
590 (varobj_default_is_path_expr_parent): Constify var, parent and return
592 (varobj_get_path_expr): Constify var, modify path_expr through
594 (install_new_value): Constify parent.
595 (value_of_child): Constify parent.
596 * varobj.h (struct varobj): Constify parent.
597 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
599 (varobj_get_path_expr): Constify var.
600 (varobj_get_path_expr_parent): Constify var and return value.
602 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
604 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
605 (arm_prologue_this_id): Move PC and SP limit checks to
606 arm_prologue_unwind_stop_reason.
607 (arm_prologue_unwind) <stop_reason> : Set to
608 arm_prologue_unwind_stop_reason.
610 2015-02-09 Mark Wielaard <mjw@redhat.com>
612 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
613 DW_LANG_Fortran08 as language_fortran.
615 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
618 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
619 of pointer against char.
621 2015-02-09 Mark Wielaard <mjw@redhat.com>
623 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
624 (c_type_print_modifier): Likewise.
625 * dwarf2read.c (read_tag_atomic_type): New function.
626 (read_type_die_1): Handle DW_TAG_atomic_type.
627 * gdbtypes.c (make_atomic_type): New function.
628 (recursive_dump_type): Handle TYPE_ATOMIC.
629 * gdbtypes.h (enum type_flag_values): Renumber.
630 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
631 (TYPE_ATOMIC): New macro.
632 (make_atomic_type): Declare.
634 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
636 * btrace.c (ftrace_find_call): Skip gaps.
637 (ftrace_new_function): Initialize level.
638 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
639 (ftrace_new_switch): Update
641 (ftrace_new_gap): New.
642 (ftrace_update_function): Create new function after gap.
643 (btrace_compute_ftrace_bts): Create gap on error.
644 (btrace_stitch_bts): Update parameters. Clear trace if it
646 (btrace_stitch_trace): Update parameters. Update callers.
647 (btrace_clear): Reset the number of gaps.
648 (btrace_insn_get): Return NULL if the iterator points to a gap.
649 (btrace_insn_number): Return zero if the iterator points to a gap.
650 (btrace_insn_end): Allow gaps at the end.
651 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
652 (btrace_find_insn_by_number): Assert that the found iterator does
654 (btrace_call_next, btrace_call_prev): Assert that the last function
656 * btrace.h (btrace_bts_error): New.
657 (btrace_function): Update comment.
658 (btrace_function) <insn, insn_offset, number>: Update comment.
659 (btrace_function) <errcode>: New.
660 (btrace_thread_info) <ngaps>: New.
661 (btrace_thread_info) <replay>: Update comment.
662 (btrace_insn_get): Update comment.
663 * record-btrace.c (btrace_ui_out_decode_error): New.
664 (record_btrace_info): Print number of gaps.
665 (btrace_insn_history, btrace_call_history): Call
666 btrace_ui_out_decode_error for gaps.
667 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
669 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
671 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
672 * nat/linux-btrace.c: (btrace_this_cpu): New.
673 (cpu_supports_bts): Call btrace_this_cpu.
674 (intel_supports_bts): Add cpu parameter.
676 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
678 * btrace.h (btrace_insn_class): New.
679 (btrace_insn) <size, iclass>: New.
680 * btrace.c (ftrace_find_call): Update parameters. Update users.
681 Use instruction classification.
682 (ftrace_new_return): Update parameters. Update users.
683 (ftrace_update_function): Update parameters. Update users. Use
684 instruction classification.
685 (ftrace_update_insns): Update parameters. Update users.
686 (ftrace_classify_insn): New.
687 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
688 TRY_CATCH around call to gdb_insn_length.
690 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
692 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
693 Update parameters. Update users.
695 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
697 * btrace.c (parse_xml_btrace_conf_bts): Add size.
698 (btrace_conf_bts_attributes): New.
699 (btrace_conf_children): Add attributes.
700 * common/btrace-common.h (btrace_config_bts): New.
701 (btrace_config)<bts>: New.
702 (btrace_config): Update comment.
703 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
705 * features/btrace-conf.dtd: Increment version. Add size
706 attribute to bts element.
707 * record-btrace.c (set_record_btrace_bts_cmdlist,
708 show_record_btrace_bts_cmdlist): New.
709 (record_btrace_adjust_size, record_btrace_print_bts_conf,
710 record_btrace_print_conf, cmd_set_record_btrace_bts,
711 cmd_show_record_btrace_bts): New.
712 (record_btrace_info): Call record_btrace_print_conf.
713 (_initialize_record_btrace): Add commands.
714 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
715 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
716 (btrace_sync_conf): Synchronize bts size.
717 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
718 * NEWS: Announce new commands and new packets.
720 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
722 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
723 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
724 (x86_linux_btrace_conf): New.
725 (x86_linux_create_target): Initialize to_btrace_conf.
726 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
727 Check format. Split into this and ...
728 (linux_enable_bts): ... this.
729 (linux_btrace_conf): New.
730 (perf_event_skip_record): Renamed into ...
731 (perf_event_skip_bts_record): ... this. Updated users.
732 (linux_disable_btrace): Split into this and ...
733 (linux_disable_bts): ... this.
734 (linux_read_btrace): Check format.
735 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
736 (linux_btrace_conf): New.
737 (btrace_target_info)<ptid>: Moved.
738 (btrace_target_info)<conf>: New.
739 (btrace_target_info): Split into this and ...
740 (btrace_tinfo_bts): ... this. Updated users.
741 * btrace.c (btrace_enable): Update parameters.
742 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
743 (btrace_conf_children, btrace_conf_attributes)
744 (btrace_conf_elements): New.
745 * btrace.h (btrace_enable): Update parameters.
746 (btrace_conf, parse_xml_btrace_conf): New.
747 * common/btrace-common.h (btrace_config): New.
748 * feature/btrace-conf.dtd: New.
749 * record-btrace.c (record_btrace_conf): New.
750 (record_btrace_cmdlist): New.
751 (record_btrace_enable_warn, record_btrace_open): Pass
753 (record_btrace_info): Print recording format.
754 (cmd_record_btrace_bts_start): New.
755 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
756 (_initialize_record_btrace): Add "record btrace bts" subcommand.
757 Add "record bts" alias command.
758 * remote.c (remote_state)<btrace_config>: New.
759 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
760 (remote_protocol_features): Add qXfer:btrace-conf:read.
761 (remote_open_1): Call remote_btrace_reset.
762 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
763 (btrace_target_info)<conf>: New.
764 (btrace_sync_conf, btrace_read_config): New.
765 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
767 (remote_btrace_conf): New.
768 (init_remote_ops): Initialize to_btrace_conf.
769 (_initialize_remote): Add qXfer:btrace-conf packet.
770 * target.c (target_enable_btrace): Update parameters.
771 (target_btrace_conf): New.
772 * target.h (target_enable_btrace): Update parameters.
773 (target_btrace_conf): New.
774 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
775 (target_ops)<to_enable_btrace>: Update parameters and comment.
776 (target_ops)<to_btrace_conf>: New.
777 * target-delegates: Regenerate.
778 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
779 (target_debug_print_const_struct_btrace_target_info_p): New.
780 * NEWS: Announce new command and new packet.
782 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
784 * nat/linux-btrace.h (perf_event_buffer): New.
785 (btrace_target_info) <buffer, size, data_head>: Replace with ...
787 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
788 (perf_event_buffer_size, perf_event_buffer_begin)
789 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
791 (perf_event_new_data): New.
793 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
795 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
796 * record-btrace.c (record_btrace_open): Remove call to
797 target_supports_btrace.
798 * remote.c (remote_supports_btrace): Update parameters.
799 * target.c (target_supports_btrace): Update parameters.
800 * target.h (to_supports_btrace, target_supports_btrace): Update
802 * target-delegates.c: Regenerate.
803 * target-debug.h (target_debug_print_enum_btrace_format): New.
805 (kernel_supports_btrace): Rename into ...
806 (kernel_supports_bts): ... this. Update users. Update warning text.
807 (intel_supports_btrace): Rename into ...
808 (intel_supports_bts): ... this. Update users.
809 (cpu_supports_btrace): Rename into ...
810 (cpu_supports_bts): ... this. Update users.
811 (linux_supports_btrace): Update parameters. Split into this and ...
812 (linux_supports_bts): ... this.
813 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
815 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
817 * Makefile.in (SFILES): Add common/btrace-common.c.
818 (COMMON_OBS): Add common/btrace-common.o.
819 (btrace-common.o): Add build rules.
820 * btrace.c (parse_xml_btrace): Update parameters.
821 (parse_xml_btrace_block): Set format field.
822 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
823 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
824 (btrace_compute_ftrace): Split into this and...
825 (btrace_compute_ftrace_bts): ...this.
826 (btrace_stitch_trace): Split into this and...
827 (btrace_stitch_bts): ...this.
828 * btrace.h (parse_xml_btrace): Update parameters.
829 (make_cleanup_btrace_data): New.
830 * common/btrace-common.c: New.
831 * common/btrace-common.h: Include common-defs.h.
832 (btrace_block_s): Update comment.
833 (btrace_format): New.
834 (btrace_format_string): New.
835 (btrace_data_bts): New.
837 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
838 * remote.c (remote_read_btrace): Update parameters.
839 * target.c (target_read_btrace): Update parameters.
840 * target.h (target_read_btrace): Update parameters.
841 (target_ops)<to_read_btrace>: Update parameters.
842 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
843 * target-delegates.c: Regenerate.
844 * target-debug (target_debug_print_struct_btrace_data_p): New.
845 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
846 (linux_read_bts): ...this.
847 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
849 2015-02-06 Doug Evans <dje@google.com>
851 * remote-m32r-sdi.c: Include symfile.h.
853 2015-02-06 Doug Evans <dje@google.com>
855 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
856 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
859 2015-02-06 Pedro Alves <palves@redhat.com>
861 * linux-thread-db.c (find_new_threads_callback): Add debug output.
863 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
866 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
867 (enable_count_command): Check args for NULL value.
869 2015-02-05 Doug Evans <xdje42@gmail.com>
871 * guile/scm-frame.c: Fix spelling errors in a comment.
873 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
875 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
876 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
879 2015-02-04 Pedro Alves <palves@redhat.com>
881 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
882 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
884 (resume_stopped_resumed_lwps): Don't check whether the thread is
886 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
888 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
890 * regset.h (struct regset): Add flags field.
891 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
892 * corelow.c (get_core_register_section): Add warning if the size
893 exceeds the requested size and the regset does not have the
894 REGSET_VARIABLE_SIZE flag set.
895 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
897 * armbsd-tdep.c (armbsd_gregset): Likewise.
898 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
899 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
900 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
901 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
903 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
905 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
906 For ".reg-xstate", explicitly specify the requested section size
907 via X86_XSTATE_SIZE instead of just 0 on input and
908 X86_XSTATE_MAX_SIZE on output.
909 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
912 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
915 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
916 function type, particularly its SIZE parameter.
917 * gdbarch.h: Regenerate.
918 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
919 actual against required size using ">=" instead of "==".
920 (amd64_collect_fpregset): Likewise.
921 * i386-tdep.c (i386_supply_gregset): Likewise.
922 (i386_collect_gregset): Likewise.
923 (i386_supply_fpregset): Likewise.
924 (i386_collect_fpregset): Likewise.
925 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
926 (mips_fill_gregset_wrapper): Likewise.
927 (mips_supply_fpregset_wrapper): Likewise.
928 (mips_fill_fpregset_wrapper): Likewise.
929 (mips64_supply_gregset_wrapper): Likewise.
930 (mips64_fill_gregset_wrapper): Likewise.
931 (mips64_supply_fpregset_wrapper): Likewise.
932 (mips64_fill_fpregset_wrapper): Likewise.
933 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
934 (am33_supply_fpregset_method): Likewise.
935 (am33_collect_gregset_method): Likewise.
936 (am33_collect_fpregset_method): Likewise.
938 2015-02-04 Doug Evans <dje@google.com>
939 Pedro Alves <palves@redhat.com>
940 Eli Zaretskii <eliz@gnu.org>
943 * tui/tui-command.c (tui_refresh_cmd_win): New function.
944 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
945 * tui/tui-file.c: #include tui/tui-command.h.
946 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
947 (tui_file_flush): Refresh command window if stream is gdb_stdout.
948 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
950 2015-02-04 Pedro Alves <palves@redhat.com>
953 * event-loop.c (gdb_do_one_event): Add default switch case.
955 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
957 Filter out inferior gcc option -fpreprocessed.
958 * compile/compile.c (filter_args): New function.
961 2015-02-03 Pedro Alves <palves@redhat.com>
963 * event-loop.c: Don't declare nor define a queue type for
965 (event_queue): Delete.
966 (create_event, create_file_event, gdb_event_xfree)
967 (initialize_event_loop, process_event): Delete.
968 (gdb_do_one_event): Return as soon as one event is handled.
969 (handle_file_event): Change prototype. Used the passed in
970 file_handler pointer and ready_mask instead of looping over all
972 (gdb_wait_for_event): Update the poll/select timeouts before
973 blocking. Run event handlers directly instead of queueing events.
974 Return as soon as one event is handled.
975 (struct async_event_handler_data): Delete.
976 (invoke_async_event_handler): Delete.
977 (check_async_event_handlers): Change return type to int. Run
978 event handlers directly instead of queueing events. Return as
979 soon as one event is handled.
980 (handle_timer_event): Delete.
981 (update_wait_timeout): New function, factored out from
983 (poll_timers): Reimplement.
984 * event-loop.h (initialize_event_loop): Delete declaration.
985 * top.c (gdb_init): Don't call initialize_event_loop.
987 2015-02-03 Pedro Alves <palves@redhat.com>
989 * event-loop.c (clear_async_event_handler): New function.
990 * event-loop.h (clear_async_event_handler): New declaration.
991 * record-btrace.c (record_btrace_async): New function.
992 (init_record_btrace_ops): Install record_btrace_async.
993 * record-full.c (record_full_async): New function.
994 (record_full_resume): Don't mark the async event source here.
995 (init_record_full_ops): Install record_full_async.
996 (record_full_core_resume): Don't mark the async event source here.
997 (init_record_full_core_ops): Install record_full_async.
998 * remote.c (remote_async): Mark and clear the async stop reply
999 queue event-loop token as appropriate.
1001 2015-02-03 Pedro Alves <palves@redhat.com>
1003 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
1004 target_is_async_p instead of target_can_async.
1005 (linux_nat_wait): Use target_is_async_p instead of
1006 target_can_async. Don't enable async here.
1007 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
1008 target_is_async_p instead of target_can_async.
1010 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
1012 * varobj.h (lang_varobj_ops): Mention which return values need
1015 2015-02-02 Joel Brobecker <brobecker@adacore.com>
1017 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
1019 2015-02-02 Joel Brobecker <brobecker@adacore.com>
1022 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
1023 results found in the cache.
1025 2015-02-02 Joel Brobecker <brobecker@adacore.com>
1028 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
1029 when allocating a new one.
1031 2015-02-01 Tom Tromey <tom@tromey.com>
1033 * MAINTAINERS: Remove myself.
1035 2015-01-31 Doug Evans <xdje42@gmail.com>
1037 * dwarf2read.c (process_structure_scope): Update setting of
1038 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
1039 * gdbtypes.c (internal_type_vptr_fieldno): New function.
1040 (set_type_vptr_fieldno): New function.
1041 (internal_type_vptr_basetype): New function.
1042 (set_type_vptr_basetype): New function.
1043 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
1045 (allocate_cplus_struct_type): Initialize vptr_fieldno.
1046 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
1047 (print_cplus_stuff): ... moved here.
1048 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
1049 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
1051 (struct cplus_struct_type): ... here. All uses updated.
1052 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
1053 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
1054 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
1055 * stabsread.c (read_tilde_fields): Update setting of
1056 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
1058 2015-01-31 Doug Evans <xdje42@gmail.com>
1060 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
1062 (cp_print_class_member): Rename local domain to self_type.
1063 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
1064 domain_type to self_type.
1065 (set_die_type) <need_gnat_info>: Handle
1066 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
1067 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
1068 TYPE_SPECIFIC_SELF_TYPE.
1069 * gdbtypes.c (internal_type_self_type): New function.
1070 (set_type_self_type): New function.
1071 (smash_to_memberptr_type): Rename parameter domain to self_type.
1072 Update setting of TYPE_SELF_TYPE.
1073 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
1074 (smash_to_method_type): Rename parameter domain to self_type.
1075 Update setting of TYPE_SELF_TYPE.
1076 (check_stub_method): Call smash_to_method_type.
1077 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
1078 (copy_type_recursive): Ditto.
1079 * gdbtypes.h (enum type_specific_kind): New value
1080 TYPE_SPECIFIC_SELF_TYPE.
1081 (struct main_type) <type_specific>: New member self_type.
1082 (struct cplus_struct_type) <fn_field.type>: Update comment.
1083 (TYPE_SELF_TYPE): Rewrite.
1084 (internal_type_self_type, set_type_self_type): Declare.
1085 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
1087 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
1088 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
1090 * stabsread.c (read_member_functions): Mark methods with
1091 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
1094 2015-01-31 Doug Evans <xdje42@gmail.com>
1096 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
1099 2015-01-31 Doug Evans <xdje42@gmail.com>
1101 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
1102 or unions. Return zero if union.
1103 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
1104 (gnuv3_rtti_type): Pass already-check_typedef'd value to
1106 (compute_vtable_size): Assert only passed structs.
1107 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
1109 2015-01-31 Doug Evans <xdje42@gmail.com>
1111 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
1114 2015-01-31 Gary Benson <gbenson@redhat.com>
1115 Doug Evans <dje@google.com>
1120 * cli/cli-cmds.c (complete_command): Notify user if max-completions
1122 * common/common-exceptions.h (enum errors)
1123 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
1124 * completer.h (get_max_completions_reached_message): New declaration.
1125 (max_completions): Likewise.
1126 (completion_tracker_t): New typedef.
1127 (new_completion_tracker): New declaration.
1128 (make_cleanup_free_completion_tracker): Likewise.
1129 (maybe_add_completion_enum): New enum.
1130 (maybe_add_completion): New declaration.
1131 (throw_max_completions_reached_error): Likewise.
1132 * completer.c (max_completions): New global variable.
1133 (new_completion_tracker): New function.
1134 (free_completion_tracker): Likewise.
1135 (make_cleanup_free_completion_tracker): Likewise.
1136 (maybe_add_completions): Likewise.
1137 (throw_max_completions_reached_error): Likewise.
1138 (complete_line): Remove duplicates and limit result to max_completions
1140 (get_max_completions_reached_message): New function.
1141 (gdb_display_match_list): Handle max_completions.
1142 (_initialize_completer): New declaration and function.
1143 * symtab.c: Include completer.h.
1144 (completion_tracker): New static variable.
1145 (completion_list_add_name): Call maybe_add_completion.
1146 (default_make_symbol_completion_list_break_on_1): Renamed from
1147 default_make_symbol_completion_list_break_on. Maintain
1148 completion_tracker across calls to completion_list_add_name.
1149 (default_make_symbol_completion_list_break_on): New function.
1150 * top.c (init_main): Set rl_completion_display_matches_hook.
1151 * tui/tui-io.c: Include completer.h.
1152 (tui_old_rl_display_matches_hook): New static global.
1153 (tui_rl_display_match_list): Notify user if max-completions reached.
1154 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
1155 * NEWS (New Options): Mention set/show max-completions.
1157 2015-01-31 Gary Benson <gbenson@redhat.com>
1159 * symtab.c (struct add_name_data) <code>: New field.
1161 (add_symtab_completions): New function.
1162 (symtab_expansion_callback): Likewise.
1163 (default_make_symbol_completion_list_break_on): Set datum.code.
1164 Move minimal symbol scan before calling expand_symtabs_matching.
1165 Scan known primary symtabs for externs and statics before calling
1166 expand_symtabs_matching. Pass symtab_expansion_callback as
1167 expansion_notify argument to expand_symtabs_matching. Do not scan
1168 primary symtabs for externs and statics after calling
1169 expand_symtabs_matching.
1171 2015-01-31 Gary Benson <gbenson@redhat.com>
1173 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
1174 (struct quick_symbol_functions) <expand_symtabs_matching>:
1175 New argument expansion_notify. All uses updated.
1176 (expand_symtabs_matching): New argument expansion_notify.
1178 * symfile-debug.c (debug_qf_expand_symtabs_matching):
1179 Also print expansion notify.
1180 * symtab.c (expand_symtabs_matching_via_partial): Call
1181 expansion_notify whenever a partial symbol table is expanded.
1182 * dwarf2read.c (dw2_expand_symtabs_matching): Call
1183 expansion_notify whenever a symbol table is instantiated.
1185 2015-01-31 Doug Evans <xdje42@gmail.com>
1187 * cli-out.c: #include completer.h, readline/readline.h.
1188 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
1189 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
1190 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
1191 * cli-out.h (cli_display_match_list): Declare.
1192 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
1193 (ELLIPSIS_LEN): Ditto.
1194 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
1195 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
1196 (gdb_fnprint, gdb_print_filename): Ditto.
1197 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
1198 (gdb_display_match_list): Ditto.
1199 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
1200 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
1201 (mld_beep_ftype, mld_read_key_ftype): Ditto.
1202 (match_list_displayer): New struct.
1203 (gdb_display_match_list): Declare.
1204 * top.c (init_main): Set rl_completion_display_matches_hook.
1205 * tui/tui-io.c: #include completer.h.
1206 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
1207 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
1208 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
1209 (tui_mld_getc, tui_mld_read_key): Ditto.
1210 (tui_rl_display_match_list): Rewrite.
1211 (tui_handle_resize_during_io): New arg for_completion. All callers
1214 2015-01-31 Doug Evans <xdje42@gmail.com>
1216 Add symbol lookup cache.
1217 * NEWS: Document new options and commands.
1218 * symtab.c (symbol_cache_key): New static global.
1219 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
1220 (SYMBOL_LOOKUP_FAILED): New macro.
1221 (symbol_cache_slot_state): New enum.
1222 (block_symbol_cache): New struct.
1223 (symbol_cache): New struct.
1224 (new_symbol_cache_size, symbol_cache_size): New static globals.
1225 (hash_symbol_entry, eq_symbol_entry): New functions.
1226 (symbol_cache_byte_size, resize_symbol_cache): New functions.
1227 (make_symbol_cache, free_symbol_cache): New functions.
1228 (get_symbol_cache, symbol_cache_cleanup): New function.
1229 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
1230 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
1231 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
1232 (symbol_cache_flush, symbol_cache_dump): New functions.
1233 (maintenance_print_symbol_cache): New function.
1234 (maintenance_flush_symbol_cache): New function.
1235 (symbol_cache_stats): New function.
1236 (maintenance_print_symbol_cache_statistics): New function.
1237 (symtab_new_objfile_observer): New function.
1238 (symtab_free_objfile_observer): New function.
1239 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
1240 (_initialize_symtab): Init symbol_cache_key. New parameter
1241 maint symbol-cache-size. New maint commands print symbol-cache,
1242 print symbol-cache-statistics, flush-symbol-cache.
1243 Install new_objfile, free_objfile observers.
1245 2015-01-31 Joel Brobecker <brobecker@adacore.com>
1248 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
1251 2015-01-31 Doug Evans <xdje42@gmail.com>
1253 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
1254 * auto-load.c: #include ctype.h.
1255 (struct auto_load_pspace_info): Replace member loaded_scripts with
1256 new members loaded_script_files, loaded_script_texts.
1257 (auto_load_pspace_data_cleanup): Update.
1258 (init_loaded_scripts_info): Update.
1259 (get_auto_load_pspace_data_for_loading): Update.
1260 (maybe_add_script_file): Renamed from maybe_add_script. All callers
1262 (maybe_add_script_text): New function.
1263 (clear_section_scripts): Update.
1264 (source_script_file, execute_script_contents): New functions.
1265 (source_section_scripts): Add support for
1266 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
1267 (print_scripts): New function.
1268 (auto_load_info_scripts): Also print inlined scripts.
1269 (maybe_print_unsupported_script_warning): Renamed from
1270 unsupported_script_warning_print. All callers updated.
1271 (maybe_print_script_not_found_warning): Renamed from
1272 script_not_found_warning_print. All callers updated.
1273 * extension-priv.h (struct extension_language_script_ops): New member
1274 objfile_script_executor.
1275 * extension.c (ext_lang_objfile_script_executor): New function.
1276 * extension.h (objfile_script_executor_func): New typedef.
1277 (ext_lang_objfile_script_executor): Declare.
1278 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
1279 * guile/guile.c (guile_extension_script_ops): Update.
1280 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
1281 * python/python.c (python_extension_script_ops): Update.
1282 (gdbpy_execute_objfile_script): New function.
1284 2015-01-31 Eli Zaretskii <eliz@gnu.org>
1286 * tui/tui-io.c (tui_expand_tabs): New function.
1287 (tui_puts, tui_redisplay_readline): Expand TABs into the
1288 appropriate number of spaces.
1289 * tui/tui-regs.c: Include tui-io.h.
1290 (tui_register_format): Call tui_expand_tabs to expand TABs into
1291 the appropriate number of spaces.
1292 * tui/tui-io.h: Add prototype for tui_expand_tabs.
1294 2015-01-30 Doug Evans <dje@google.com>
1296 * NEWS: "info source" command now display producer string if present.
1297 * source.c (source_info): Print producer string if present.
1299 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
1301 * varobj.c (varobj_delete): Fix comment.
1303 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
1305 * varobj.c (create_child): Modify comment.
1307 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
1309 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
1311 (ada_name_of_variable): Same.
1312 (ada_path_expr_of_child): Same.
1313 (ada_value_of_variable): Same.
1314 (ada_value_is_changeable_p): Same.
1315 (ada_value_has_mutated): Same.
1316 * c-varobj.c (varobj_is_anonymous_child): Same.
1317 (c_is_path_expr_parent): Same.
1318 (c_number_of_children): Same.
1319 (c_name_of_variable): Same.
1320 (c_path_expr_of_child): Same.
1322 (c_value_of_variable): Same.
1323 (cplus_number_of_children): Same.
1324 (cplus_name_of_variable): Same.
1325 (cplus_path_expr_of_child): Same.
1326 (cplus_value_of_variable): Same.
1327 * jv-varobj.c (java_number_of_children): Same.
1328 (java_name_of_variable): Same.
1329 (java_path_expr_of_child): Same.
1330 (java_value_of_variable): Same.
1331 * varobj.c (number_of_children): Same.
1332 (name_of_variable): Same.
1334 (varobj_ensure_python_env): Same.
1335 (varobj_get_objname): Same.
1336 (varobj_get_expression): Same.
1337 (varobj_get_display_format): Same.
1338 (varobj_get_display_hint): Same.
1339 (varobj_has_more): Same.
1340 (varobj_get_thread_id): Same.
1341 (varobj_get_frozen): Same.
1342 (dynamic_varobj_has_child_method): Same.
1343 (varobj_get_gdb_type): Same.
1344 (is_path_expr_parent): Same.
1345 (varobj_default_is_path_expr_parent): Same.
1346 (varobj_get_language): Same.
1347 (varobj_get_attributes): Same.
1348 (varobj_is_dynamic_p): Same.
1349 (varobj_get_child_range): Same.
1350 (varobj_value_has_mutated): Same.
1351 (varobj_get_value_type): Same.
1352 (number_of_children): Same.
1353 (name_of_variable): Same.
1354 (check_scope): Same.
1355 (varobj_editable_p): Same.
1356 (varobj_value_is_changeable_p): Same.
1357 (varobj_floating_p): Same.
1358 (varobj_default_value_is_changeable_p): Same.
1360 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
1362 * varobj.c (varobj_get_path_expr): Set var->path_expr.
1363 * c-varobj.c (c_path_expr_of_child): Set local var instead of
1365 (cplus_path_expr_of_child): Same.
1367 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
1369 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
1371 (mi_cmd_var_info_expression): Same.
1372 * varobj.c (varobj_get_expression): Mention in the comment that
1373 the result must by freed by the caller.
1375 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
1377 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
1379 (varobj_update_one): Same.
1380 * varobj.c (update_type_if_necessary): Free curr_type_str and
1382 (varobj_get_type): Specify in comment that the result needs to be
1383 freed by the caller.
1385 2015-01-29 Doug Evans <dje@google.com>
1388 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
1390 2015-01-25 Mark Wielaard <mjw@redhat.com>
1392 * dwarf2read.c (checkproducer): Call producer_is_gcc.
1393 * utils.c (producer_is_gcc_ge_4): Likewise.
1394 (producer_is_gcc): New function.
1395 * utils.h (producer_is_gcc): New declaration.
1397 2015-01-29 Joel Brobecker <brobecker@adacore.com>
1399 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
1401 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
1402 parameter by "addr_stack" parameter.
1403 (resolve_dynamic_range): Replace "addr" parameter by
1404 "stack_addr" parameter. Update function documentation.
1405 Update code accordingly.
1406 (resolve_dynamic_array, resolve_dynamic_union)
1407 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
1408 (resolve_dynamic_type): Update code, following the changes made
1409 to resolve_dynamic_type_internal's interface.
1410 * dwarf2loc.h (struct property_addr_info): New.
1411 (dwarf2_evaluate_property): Replace "address" parameter
1412 by "addr_stack" parameter. Adjust function documentation.
1413 (struct dwarf2_offset_baton): New.
1414 (struct dwarf2_property_baton): Update documentation of
1415 field "referenced_type" to be more general. New field
1416 "offset_info" in union data field.
1417 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
1418 parameter by "addr_stack" parameter. Adjust code accordingly.
1419 Add support for PROP_ADDR_OFFSET properties.
1420 * dwarf2read.c (attr_to_dynamic_prop): Add support for
1421 DW_AT_data_member_location attributes as well. Use case
1422 statements instead of if/else condition.
1424 2015-01-29 Joel Brobecker <brobecker@adacore.com>
1426 * ada-varobj.c (ada_varobj_get_array_number_of_children):
1427 Return zero if PARENT_VALUE is NULL and parent_type's
1428 range type is dynamic.
1430 2015-01-29 Joel Brobecker <brobecker@adacore.com>
1432 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
1433 nonzero if the type's subtype is dynamic.
1434 (resolve_dynamic_range): Also resolve the range's subtype.
1436 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
1438 Pushed by Joel Brobecker <brobecker@adacore.com>.
1439 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
1441 2015-01-27 Doug Evans <dje@google.com>
1443 * NEWS: Mention gdb.Objfile.username.
1444 * python/py-objfile.c (objfpy_get_username): New function.
1445 (objfile_getset): Add "username".
1447 2015-01-24 Mark Wielaard <mjw@redhat.com>
1449 * stack.c (return_command): Markup warning message with _.
1451 2015-01-24 Doug Evans <xdje42@gmail.com>
1453 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
1455 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1457 Fix 100x slowdown regression on DWZ files.
1458 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
1459 (struct line_header): Add offset and offset_in_dwz.
1460 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
1461 (free_line_header_voidp): New declaration.
1462 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
1464 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
1465 (handle_DW_AT_stmt_list): Use line_header_hash.
1466 (free_line_header_voidp): New function.
1467 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
1468 (dwarf_decode_lines): New parameter decode_mapping, use it.
1469 (dwarf2_free_objfile): Free line_header_hash.
1471 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
1474 * valops.c (value_rtti_indirect_type): Catch exception thrown by
1477 2015-01-15 Mark Wielaard <mjw@redhat.com>
1479 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
1481 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
1482 calling_convention an 8 bit bit field.
1483 (TYPE_NO_RETURN): New macro.
1484 * infcmd.c (finish_command): Query if function does not return
1486 * stack.c (return_command): Likewise.
1488 2015-01-23 Pedro Alves <palves@redhat.com>
1490 * linux-nat.c (linux_is_async_p): New macro.
1491 (linux_nat_is_async_p):
1492 (linux_nat_terminal_inferior): Check whether the target can async
1493 instead of whether it is already async.
1494 (linux_nat_terminal_ours): Don't check whether the target is
1496 (linux_async_pipe): Use linux_is_async_p.
1498 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1500 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
1502 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
1503 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
1504 Sort tp_array using tp_array_compar.
1505 (_initialize_thread): Extend thread_apply_all_command help.
1507 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1509 * corelow.c (core_open): Call also thread_command.
1510 * gdbthread.h (thread_command): New prototype moved from ...
1511 * thread.c (thread_command): ... here.
1512 (thread_command): Make it global.
1514 2015-01-22 Pedro Alves <palves@redhat.com>
1516 * configure.ac [*mingw32*]: Check $curses_found instead of
1518 * configure: Regenerate.
1519 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
1520 HAVE_NCURSES_NCURSES_H checks.
1522 2015-01-22 Eli Zaretskii <eliz@gnu.org>
1524 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
1525 fails with the 1st arg NULL, try again with "unknown". Don't test
1526 the "cup" capability: it isn't supported by the Windows port of
1527 ncurses, but the Windows console driver is still capable of
1530 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1532 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
1534 2015-01-22 Eli Zaretskii <eliz@gnu.org>
1536 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
1537 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
1538 reason that "make TAGS" is broken.
1540 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
1542 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
1543 and check additional store instructions.
1545 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
1547 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
1549 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
1551 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
1552 ppc_canonicalize_syscall, ppc_linux_syscall_record,
1553 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
1554 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
1555 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
1556 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
1557 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
1558 ppc_process_record_op19, ppc_process_record_op31,
1559 ppc_process_record_op59, ppc_process_record_op60,
1560 ppc_process_record_op63): Likewise.
1562 2015-01-20 Joel Brobecker <brobecker@adacore.com>
1564 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
1565 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
1568 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
1570 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
1571 ppc_process_record_op31, ppc_process_record_op59,
1572 ppc_process_record_op60, ppc_process_record_op63,
1573 ppc_process_record): Fix -Wformat warning.
1574 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
1575 Remove unused variables.
1577 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
1579 * MAINTAINERS (Write After Approval): Add "Chen Gang".
1581 2015-01-19 Eli Zaretskii <eliz@gnu.org>
1583 * configure.ac [*mingw32*]: Only add windows-termcap.o to
1584 CONFIG_OBS if not building with a curses library.
1585 * configure: Regenerate.
1587 * windows-termcap.c: Include defs.h. Make the whole body empty if
1588 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
1589 HAVE_NCURSES_NCURSES_H is defined.
1591 2015-01-19 Joel Brobecker <brobecker@adacore.com>
1593 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
1594 from end of line to start of next line.
1596 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
1598 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
1599 Scan PLT stub backward for reverse debugging.
1600 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
1602 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
1603 Ulrich Weigand <uweigand@de.ibm.com>
1605 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
1607 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
1609 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
1610 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
1611 (ppc_linux_init_abi): Set process_record, process_record_signal.
1612 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
1613 ppc_linux_record_tdep to gdbarch_tdep.
1614 (ppc_process_record): New declaration.
1615 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
1616 ppc_process_record_op19, ppc_process_record_op31,
1617 ppc_process_record_op59, ppc_process_record_op60,
1618 ppc_process_record_op63, ppc_process_record): New functions.
1620 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
1622 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
1623 rs6000_in_function_epilogue_frame_p and add an argument
1625 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
1626 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
1628 (rs6000_epilogue_frame_unwind): New.
1629 (rs6000_gdbarch_init): Append epilogue unwinder.
1631 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
1633 * nat/linux-personality.c: Replace "#ifndef
1634 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
1635 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
1638 2015-01-16 Eli Zaretskii <eliz@gnu.org>
1640 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
1642 (_initialize_tui_win) <border-kind, border-mode>:
1643 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
1644 (tui_set_tab_width_command): Fix the commentary.
1646 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
1648 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
1650 (tui_set_tab_width_command): Delete and recreate the source and
1651 the disassembly windows, to show the effect of the changed tab
1654 * tui/tui-data.h (LINE_PREFIX): Make shorter
1655 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
1656 "Thread NNNNN.XXXX" thread ID notation on Windows.
1658 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1660 Fix gcc-5 compilation.
1661 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
1663 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
1665 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
1666 (linux-personality.o): New rule.
1667 * common/common-defs.h: Include <stdint.h>.
1668 * config/aarch64/linux.mh (NATDEPFILES): Include
1669 linux-personality.o.
1670 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
1671 * config/arm/linux.mh (NATDEPFILES): Likewise.
1672 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1673 * config/i386/linux.mh (NATDEPFILES): Likewise.
1674 * config/ia64/linux.mh (NATDEPFILES): Likewise.
1675 * config/m32r/linux.mh (NATDEPFILES): Likewise.
1676 * config/m68k/linux.mh (NATDEPFILES): Likewise.
1677 * config/mips/linux.mh (NATDEPFILES): Likewise.
1678 * config/pa/linux.mh (NATDEPFILES): Likewise.
1679 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
1680 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
1681 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
1682 * config/s390/linux.mh (NATDEPFILES): Likewise.
1683 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
1684 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1685 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
1686 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
1687 * defs.h: Remove #include <stdint.h> (moved to
1688 common/common-defs.h).
1689 * linux-nat.c: Include nat/linux-personality.h. Remove #include
1690 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
1691 nat/linux-personality.c).
1692 (linux_nat_create_inferior): Remove code to disable address space
1693 randomization (moved to nat/linux-personality.c). Create cleanup
1694 to disable address space randomization.
1695 * nat/linux-personality.c: New file.
1696 * nat/linux-personality.h: Likewise.
1698 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
1700 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
1701 common/posix-strerror.c.
1702 (posix-strerror.o): New rule.
1703 (mingw-strerror.o): Likewise.
1704 * common/common-utils.h (safe_strerror): Move prototype to here,
1706 * common/common.host: New file.
1707 * common/mingw-strerror.c: Likewise.
1708 * common/posix-strerror.c: Likewise.
1709 * configure: Regenerated.
1710 * configure.ac: Source common/common.host. Add variable
1711 common_host_obs to gdb_host_obs.
1712 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
1713 gdb/common/posix-strerror.c when warning about the use of
1715 * mingw-hdep.c (safe_strerror): Remove definition; move it to
1716 common/mingw-strerror.c.
1717 * posix-hdep.c (safe_strerror): Remove definition; move it to
1718 common/posix-hdep.c.
1719 * utils.h (safe_strerror): Remove prototype; move to
1720 common/common-utils.h.
1722 2015-01-15 Joel Brobecker <brobecker@adacore.com>
1726 2015-01-15 Joel Brobecker <brobecker@adacore.com>
1728 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
1729 ___XA type if the array has already been fixed.
1731 2015-01-14 Yao Qi <yao@codesourcery.com>
1733 * Makefile.in (ppc-linux.o): New rule.
1734 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
1735 * configure.ac: AC_CHECK_FUNCS(getauxval).
1736 * config.in: Re-generated.
1737 * configure: Re-generated.
1738 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
1740 * nat/ppc-linux.c: New file.
1741 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
1742 Call ppc64_64bit_inferior_p.
1744 2015-01-14 Yao Qi <yao@codesourcery.com>
1746 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
1748 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
1749 (PPC_FEATURE_HAS_DFP): Likewise.
1750 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
1751 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
1752 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
1753 Include "nat/ppc-linux.h".
1754 * nat/ppc-linux.h: New file.
1755 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
1757 2015-01-14 Pedro Alves <palves@redhat.com>
1760 * breakpoint.c: Include "interps.h".
1761 (bpstat_do_actions_1): Also check whether the interpreter is
1764 2015-01-14 Pedro Alves <palves@redhat.com>
1767 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
1768 reinstall if the interpreter is sync.
1770 2015-01-13 Doug Evans <dje@google.com>
1772 * objfiles.c (objfile_filename): New function.
1773 * objfiles.h (objfile_filename): Declare it.
1774 (objfile_name): Add function comment.
1775 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
1776 bfd file name (which may be realpath'd), and the original name.
1778 2015-01-13 Joel Brobecker <brobecker@adacore.com>
1780 * NEWS: Create a new section for the next release branch.
1781 Rename the section of the current branch, now that it has
1784 2015-01-13 Joel Brobecker <brobecker@adacore.com>
1786 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
1787 * version.in: Bump version to 7.9.50.DATE-cvs.
1789 2015-01-13 Joel Brobecker <brobecker@adacore.com>
1791 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
1792 Remove trailing new-line in argument of call to warning.
1794 2015-01-13 Joel Brobecker <brobecker@adacore.com>
1796 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
1797 new-line in argument of call to "warning".
1799 2015-01-13 Joel Brobecker <brobecker@adacore.com>
1801 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
1802 in static block, then try searching for primitive types.
1804 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
1806 * top.h (gdb_add_history): Declare.
1807 * top.c (command_count): New variable.
1808 (gdb_add_history): New function.
1809 (gdb_safe_append_history): New static function.
1810 (quit_force): Call it.
1811 (command_line_input): Use gdb_add_history instead of
1813 * event-top.c (command_line_handler): Likewise.
1815 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
1818 * darwin-nat.c: Replace <machine/setjmp.h> #include by
1819 <setjmp.h> #include.
1821 2015-01-11 Doug Evans <xdje42@gmail.com>
1823 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
1825 2015-01-11 Doug Evans <xdje42@gmail.com>
1828 * NEWS: The "maint demangle" command is renamed as "demangle".
1829 * demangle.c: #include cli/cli-utils.h, language.h.
1830 (demangle_command): New function.
1831 (_initialize_demangle): Add new command "demangle".
1832 * maint.c (maintenance_demangle): Stub out.
1833 (_initialize_maint_cmds): Update help text for "maint demangle",
1834 and mark as deprecated.
1836 2015-01-11 Mark Kettenis <kettenis@gnu.org>
1838 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
1839 inferior_thread is a function.
1841 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
1843 * Makefile.in (.y.c): Don't munge yacc's #line
1846 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
1848 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
1849 to prompt for input.
1850 * tui/tui-hooks.c (tui_query_hook): Remove.
1851 (tui_install_hooks): Don't set deprecated_query_hook.
1852 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
1853 height calculation. Always update the command window's cur_line.
1855 2015-01-09 Pedro Alves <palves@redhat.com>
1857 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
1859 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
1861 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
1862 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
1864 (check_stopped_by_watchpoint): New function.
1865 (save_sigtrap): Reimplement.
1866 (linux_nat_stopped_by_watchpoint): Adjust.
1867 (linux_nat_lp_status_is_event): Delete.
1868 (stop_wait_callback): Only call save_sigtrap after storing the
1870 (status_callback): If the thread had been stopped for a breakpoint
1871 that has since been removed, discard the event and resume the LWP.
1872 (count_events_callback, select_event_lwp_callback): Use
1873 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
1874 (cancel_breakpoint): Rename to ...
1875 (check_stopped_by_breakpoint): ... this. Record whether the LWP
1876 stopped for a software breakpoint or hardware breakpoint.
1877 (select_event_lwp): Only give preference to the stepping LWP in
1878 all-stop mode. Adjust comments.
1879 (stop_and_resume_callback): Remove references to new_pending_p.
1880 (linux_nat_filter_event): Likewise. Leave exit events of the
1881 leader thread pending here. Handle signal short circuiting here.
1882 Only call save_sigtrap after storing the pending waitstatus.
1883 (linux_nat_wait_1): Remove 'retry' label. Remove references to
1884 new_pending. Don't handle leaving events the caller is not
1885 interested in pending here, nor handle signal short-circuiting
1886 here. Also give equal priority to all LWPs that have had events
1887 in non-stop mode. If reporting a software breakpoint event,
1888 unadjust the LWP's PC.
1889 * linux-nat.h (enum lwp_stop_reason): New.
1890 (struct lwp_info) <stop_pc>: New field.
1891 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
1892 (struct lwp_info) <stop_reason>: New field.
1893 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
1895 2015-01-09 Pedro Alves <palves@redhat.com>
1897 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
1898 Set the LWP's 'resumed' flag.
1900 2015-01-09 Pedro Alves <palves@redhat.com>
1902 * linux-nat.c (linux_resume_one_lwp): New function.
1903 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
1904 (linux_nat_resume): Use lwp_status_pending_p and
1905 linux_resume_one_lwp.
1906 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
1907 (linux_handle_extended_wait): Use linux_resume_one_lwp.
1908 (status_callback, running_callback): Use lwp_status_pending_p.
1909 (lwp_status_pending_p): New function.
1910 (stop_and_resume_callback): Use lwp_status_pending_p.
1911 (linux_nat_filter_event): Use linux_resume_one_lwp.
1912 (linux_nat_wait_1): Always use status_callback to look for an LWP
1913 with a pending status. Use linux_resume_one_lwp.
1914 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
1915 linux_resume_one_lwp.
1917 2015-01-09 Pedro Alves <palves@redhat.com>
1919 * breakpoint.c (bp_location_inserted_here_p): New function,
1920 factored out from ...
1921 (breakpoint_inserted_here_p): ... here. Use
1922 ALL_BP_LOCATIONS_AT_ADDR.
1923 (software_breakpoint_inserted_here_p): Use
1924 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
1926 2014-01-09 Pedro Alves <palves@redhat.com>
1928 Skip enabling event reporting if the kernel supports
1930 * linux-thread-db.c: Include "nat/linux-ptrace.h".
1931 (thread_db_use_events): New function.
1932 (try_thread_db_load_1): Check thread_db_use_events before enabling
1934 (update_thread_state): New function.
1935 (attach_thread): Use it. Check thread_db_use_events before
1936 enabling event reporting.
1937 (thread_db_detach): Check thread_db_use_events before disabling
1939 (find_new_threads_callback): Check thread_db_use_events before
1940 enabling event reporting. Update the thread's state if not using
1941 libthread_db events.
1943 2015-01-09 Pedro Alves <palves@redhat.com>
1945 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
1946 about to wait for is > 0.
1947 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
1948 the kernel thread ID is -1.
1950 2015-01-09 Pedro Alves <palves@redhat.com>
1952 * linux-nat.c (attach_proc_task_lwp_callback): New function.
1953 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
1954 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
1955 ptrace option flags.
1956 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
1958 * nat/linux-procfs.c: Include <dirent.h>.
1959 (linux_proc_get_int): New parameter "warn". Handle it.
1960 (linux_proc_get_tgid): Adjust.
1961 (linux_proc_get_tracerpid): Rename to ...
1962 (linux_proc_get_tracerpid_nowarn): ... this.
1963 (linux_proc_pid_get_state): New function, factored out from
1964 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
1966 (linux_proc_pid_is_gone): New function.
1967 (linux_proc_pid_is_stopped): Adjust.
1968 (linux_proc_pid_is_zombie_maybe_warn)
1969 (linux_proc_pid_is_zombie_nowarn): New functions.
1970 (linux_proc_pid_is_zombie): Use
1971 linux_proc_pid_is_zombie_maybe_warn.
1972 (linux_proc_attach_tgid_threads): New function.
1973 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
1974 (linux_proc_get_tracerpid): Rename to ...
1975 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
1976 (linux_proc_pid_is_gone): New declaration.
1977 (linux_proc_pid_is_zombie): Update comment.
1978 (linux_proc_pid_is_zombie_nowarn): New declaration.
1979 (linux_proc_attach_lwp_func): New typedef.
1980 (linux_proc_attach_tgid_threads): New declaration.
1981 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
1982 use nowarn functions.
1983 (linux_ptrace_attach_fail_reason_string): Move here from
1984 gdbserver/linux-low.c and rename.
1985 (ptrace_supports_feature): If the current ptrace options are not
1986 known yet, check them now, instead of asserting.
1987 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
1990 2015-01-09 Pedro Alves <palves@redhat.com>
1992 * linux-thread-db.c (thread_db_find_new_threads_silently)
1993 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
1994 (find_new_threads_once): Print debug output on gdb_stdlog.
1996 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
1997 Pedro Alves <palves@redhat.com>
1999 * compile/compile.c: Include "gdb_wait.h".
2000 (do_rmdir): Check return value, and free 'zap'.
2002 2015-01-08 Pedro Alves <palves@redhat.com>
2003 Yao Qi <yao@codesourcery.com>
2005 * dwarf2loc.c (indirect_pieced_value): Don't call
2006 gdb_sign_extend. Call extract_signed_integer instead.
2007 * utils.c (gdb_sign_extend): Remove.
2008 * utils.h (gdb_sign_extend): Remove declaration.
2010 2015-01-07 Pierre Muller <muller@sourceware.org>
2013 * stabsread.c (define_symbol): Set language for C++ special symbols.
2015 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
2017 * inflow.c (initial_gdb_ttystate): Tweak comment.
2019 2015-01-07 Joel Brobecker <brobecker@adacore.com>
2021 * inflow.c (set_initial_gdb_ttystate): Add empty line after
2022 comment documenting function.
2024 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
2026 * terminal.h (set_initial_gdb_ttystate): Declare.
2027 * inflow.c (initial_gdb_ttystate): New static variable.
2028 (set_initial_gdb_ttystate): New setter.
2029 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
2030 instead of our current terminal state.
2031 * top.c (gdb_init): Call set_initial_gdb_ttystate.
2033 2015-01-07 Joel Brobecker <brobecker@adacore.com>
2035 * guile/scm-type.c (tyscm_array_1): Add comment.
2036 * python/py-type.c (typy_array_1): Add comment.
2038 2015-01-06 Joel Brobecker <brobecker@adacore.com>
2040 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
2041 error if N2 is equal to N1 - 1.
2043 2015-01-06 Joel Brobecker <brobecker@adacore.com>
2045 * python/py-type.c (typy_array_1): Do not raise negative-length
2046 exception if N2 is equal to N1 - 1.
2048 2015-01-03 Doug Evans <xdje42@gmail.com>
2050 * c-exp.y: Whitespace cleanup.
2051 (classify_inner_name): Remove extra ;.
2053 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
2055 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
2058 2015-01-02 Doug Evans <dje@google.com>
2060 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
2062 2015-01-02 Doug Evans <dje@google.com>
2064 * symtab.h (struct symbol): Fix typo in comment.
2066 2015-01-01 Joel Brobecker <brobecker@adacore.com>
2068 Update year range in copyright notice of all files.
2070 2015-01-01 Joel Brobecker <brobecker@adacore.com>
2072 * top.c (print_gdb_version): Update copyright year to 2015.
2074 2015-01-01 Joel Brobecker <brobecker@adacore.com>
2076 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
2078 For older changes see ChangeLog-2014.
2084 version-control: never